Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix ucontext build
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.175 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for simgrid 3.3-cvs.
5 #
6 # Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 case X$ECHO in
560 X*--fallback-echo)
561   # Remove one level of quotation (which was required for Make).
562   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563   ;;
564 esac
565
566 echo=${ECHO-echo}
567 if test "X$1" = X--no-reexec; then
568   # Discard the --no-reexec flag, and continue.
569   shift
570 elif test "X$1" = X--fallback-echo; then
571   # Avoid inline document here, it may be left over
572   :
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574   # Yippee, $echo works!
575   :
576 else
577   # Restart under the correct shell.
578   exec $SHELL "$0" --no-reexec ${1+"$@"}
579 fi
580
581 if test "X$1" = X--fallback-echo; then
582   # used as fallback echo
583   shift
584   cat <<EOF
585 $*
586 EOF
587   exit 0
588 fi
589
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 # if CDPATH is set.
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600        echo_test_string=`eval $cmd` &&
601        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602     then
603       break
604     fi
605   done
606 fi
607
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610    test "X$echo_testing_string" = "X$echo_test_string"; then
611   :
612 else
613   # The Solaris, AIX, and Digital Unix default echo programs unquote
614   # backslashes.  This makes it impossible to quote backslashes using
615   #   echo "$something" | sed 's/\\/\\\\/g'
616   #
617   # So, first we look for a working echo in the user's PATH.
618
619   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620   for dir in $PATH /usr/ucb; do
621     IFS="$lt_save_ifs"
622     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625        test "X$echo_testing_string" = "X$echo_test_string"; then
626       echo="$dir/echo"
627       break
628     fi
629   done
630   IFS="$lt_save_ifs"
631
632   if test "X$echo" = Xecho; then
633     # We didn't find a better echo, so look for alternatives.
634     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636        test "X$echo_testing_string" = "X$echo_test_string"; then
637       # This shell has a builtin print -r that does the trick.
638       echo='print -r'
639     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640          test "X$CONFIG_SHELL" != X/bin/ksh; then
641       # If we have ksh, try running configure again with it.
642       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643       export ORIGINAL_CONFIG_SHELL
644       CONFIG_SHELL=/bin/ksh
645       export CONFIG_SHELL
646       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647     else
648       # Try using printf.
649       echo='printf %s\n'
650       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652          test "X$echo_testing_string" = "X$echo_test_string"; then
653         # Cool, printf works
654         :
655       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656            test "X$echo_testing_string" = 'X\t' &&
657            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658            test "X$echo_testing_string" = "X$echo_test_string"; then
659         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660         export CONFIG_SHELL
661         SHELL="$CONFIG_SHELL"
662         export SHELL
663         echo="$CONFIG_SHELL $0 --fallback-echo"
664       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665            test "X$echo_testing_string" = 'X\t' &&
666            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667            test "X$echo_testing_string" = "X$echo_test_string"; then
668         echo="$CONFIG_SHELL $0 --fallback-echo"
669       else
670         # maybe with a smaller string...
671         prev=:
672
673         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675           then
676             break
677           fi
678           prev="$cmd"
679         done
680
681         if test "$prev" != 'sed 50q "$0"'; then
682           echo_test_string=`eval $prev`
683           export echo_test_string
684           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685         else
686           # Oops.  We lost completely, so just stick with echo.
687           echo=echo
688         fi
689       fi
690     fi
691   fi
692 fi
693 fi
694
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
697 ECHO=$echo
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
700 fi
701
702
703
704
705 tagnames=${tagnames+${tagnames},}CXX
706
707 tagnames=${tagnames+${tagnames},}F77
708
709 tagnames=${tagnames+${tagnames},}GCJ
710
711 exec 7<&0 </dev/null 6>&1
712
713 # Name of the host.
714 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
715 # so uname gets run too.
716 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
717
718 #
719 # Initializations.
720 #
721 ac_default_prefix=/usr/local
722 ac_clean_files=
723 ac_config_libobj_dir=.
724 LIBOBJS=
725 cross_compiling=no
726 subdirs=
727 MFLAGS=
728 MAKEFLAGS=
729 SHELL=${CONFIG_SHELL-/bin/sh}
730
731 # Identity of this package.
732 PACKAGE_NAME='simgrid'
733 PACKAGE_TARNAME='simgrid'
734 PACKAGE_VERSION='3.3-cvs'
735 PACKAGE_STRING='simgrid 3.3-cvs'
736 PACKAGE_BUGREPORT='simgrid-devel@lists.gforge.inria.fr'
737
738 ac_unique_file="include/gras.h"
739 # Factoring default headers for most tests.
740 ac_includes_default="\
741 #include <stdio.h>
742 #ifdef HAVE_SYS_TYPES_H
743 # include <sys/types.h>
744 #endif
745 #ifdef HAVE_SYS_STAT_H
746 # include <sys/stat.h>
747 #endif
748 #ifdef STDC_HEADERS
749 # include <stdlib.h>
750 # include <stddef.h>
751 #else
752 # ifdef HAVE_STDLIB_H
753 #  include <stdlib.h>
754 # endif
755 #endif
756 #ifdef HAVE_STRING_H
757 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 #  include <memory.h>
759 # endif
760 # include <string.h>
761 #endif
762 #ifdef HAVE_STRINGS_H
763 # include <strings.h>
764 #endif
765 #ifdef HAVE_INTTYPES_H
766 # include <inttypes.h>
767 #endif
768 #ifdef HAVE_STDINT_H
769 # include <stdint.h>
770 #endif
771 #ifdef HAVE_UNISTD_H
772 # include <unistd.h>
773 #endif"
774
775 ac_subst_vars='SHELL
776 PATH_SEPARATOR
777 PACKAGE_NAME
778 PACKAGE_TARNAME
779 PACKAGE_VERSION
780 PACKAGE_STRING
781 PACKAGE_BUGREPORT
782 exec_prefix
783 prefix
784 program_transform_name
785 bindir
786 sbindir
787 libexecdir
788 datarootdir
789 datadir
790 sysconfdir
791 sharedstatedir
792 localstatedir
793 includedir
794 oldincludedir
795 docdir
796 infodir
797 htmldir
798 dvidir
799 pdfdir
800 psdir
801 libdir
802 localedir
803 mandir
804 DEFS
805 ECHO_C
806 ECHO_N
807 ECHO_T
808 LIBS
809 build_alias
810 host_alias
811 target_alias
812 build
813 build_cpu
814 build_vendor
815 build_os
816 host
817 host_cpu
818 host_vendor
819 host_os
820 target
821 target_cpu
822 target_vendor
823 target_os
824 GCJ
825 GCJFLAGS
826 am__leading_dot
827 DEPDIR
828 am__include
829 am__quote
830 AMDEP_TRUE
831 AMDEP_FALSE
832 AMDEPBACKSLASH
833 GCJDEPMODE
834 am__fastdepGCJ_TRUE
835 am__fastdepGCJ_FALSE
836 INSTALL_PROGRAM
837 INSTALL_SCRIPT
838 INSTALL_DATA
839 am__isrc
840 CYGPATH_W
841 PACKAGE
842 VERSION
843 ACLOCAL
844 AUTOCONF
845 AUTOMAKE
846 AUTOHEADER
847 MAKEINFO
848 install_sh
849 STRIP
850 INSTALL_STRIP_PROGRAM
851 mkdir_p
852 AWK
853 SET_MAKE
854 AMTAR
855 am__tar
856 am__untar
857 CC
858 CFLAGS
859 LDFLAGS
860 CPPFLAGS
861 ac_ct_CC
862 EXEEXT
863 OBJEXT
864 CCDEPMODE
865 am__fastdepCC_TRUE
866 am__fastdepCC_FALSE
867 GREP
868 EGREP
869 LN_S
870 ECHO
871 AR
872 RANLIB
873 DLLTOOL
874 AS
875 OBJDUMP
876 CPP
877 CXX
878 CXXFLAGS
879 ac_ct_CXX
880 CXXDEPMODE
881 am__fastdepCXX_TRUE
882 am__fastdepCXX_FALSE
883 CXXCPP
884 LIBTOOL
885 LIBOBJS
886 GRAS_ARCH_32_BITS_TRUE
887 GRAS_ARCH_32_BITS_FALSE
888 PTH_STACK_GROWTH
889 pth_skaddr_makecontext
890 pth_sksize_makecontext
891 HAVE_GTNETS_TRUE
892 HAVE_GTNETS_FALSE
893 HAVE_SDP_TRUE
894 HAVE_SDP_FALSE
895 SIMGRID_DEP
896 AM_CFLAGS
897 GRAS_DEP
898 GRAMINE_MODE_TRUE
899 GRAMINE_MODE_FALSE
900 MAINTAINER_MODE_TRUE
901 MAINTAINER_MODE_FALSE
902 MAINT
903 LD_DYNAMIC_FLAGS
904 abs_builddir
905 abs_srcdir
906 abs_top_builddir
907 abs_top_srcdir
908 JAVAC
909 JAVA
910 JAR
911 HAVE_JAVA_TRUE
912 HAVE_JAVA_FALSE
913 BASH
914 WARNING
915 LEX
916 LEX_OUTPUT_ROOT
917 LEXLIB
918 FLEXML
919 HAVE_FLEXML_TRUE
920 HAVE_FLEXML_FALSE
921 DOXYGEN
922 ADDR2LINE
923 ac_configure_args
924 MD5SUM
925 build_id
926 LTLIBOBJS'
927 ac_subst_files=''
928       ac_precious_vars='build_alias
929 host_alias
930 target_alias
931 CC
932 CFLAGS
933 LDFLAGS
934 LIBS
935 CPPFLAGS
936 CPP
937 CXX
938 CXXFLAGS
939 CCC
940 CXXCPP'
941
942
943 # Initialize some variables set by options.
944 ac_init_help=
945 ac_init_version=false
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
948 cache_file=/dev/null
949 exec_prefix=NONE
950 no_create=
951 no_recursion=
952 prefix=NONE
953 program_prefix=NONE
954 program_suffix=NONE
955 program_transform_name=s,x,x,
956 silent=
957 site=
958 srcdir=
959 verbose=
960 x_includes=NONE
961 x_libraries=NONE
962
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 includedir='${prefix}/include'
978 oldincludedir='/usr/include'
979 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
980 infodir='${datarootdir}/info'
981 htmldir='${docdir}'
982 dvidir='${docdir}'
983 pdfdir='${docdir}'
984 psdir='${docdir}'
985 libdir='${exec_prefix}/lib'
986 localedir='${datarootdir}/locale'
987 mandir='${datarootdir}/man'
988
989 ac_prev=
990 ac_dashdash=
991 for ac_option
992 do
993   # If the previous option needs an argument, assign it.
994   if test -n "$ac_prev"; then
995     eval $ac_prev=\$ac_option
996     ac_prev=
997     continue
998   fi
999
1000   case $ac_option in
1001   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1002   *)    ac_optarg=yes ;;
1003   esac
1004
1005   # Accept the important Cygnus configure options, so we can diagnose typos.
1006
1007   case $ac_dashdash$ac_option in
1008   --)
1009     ac_dashdash=yes ;;
1010
1011   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012     ac_prev=bindir ;;
1013   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014     bindir=$ac_optarg ;;
1015
1016   -build | --build | --buil | --bui | --bu)
1017     ac_prev=build_alias ;;
1018   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019     build_alias=$ac_optarg ;;
1020
1021   -cache-file | --cache-file | --cache-fil | --cache-fi \
1022   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023     ac_prev=cache_file ;;
1024   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026     cache_file=$ac_optarg ;;
1027
1028   --config-cache | -C)
1029     cache_file=config.cache ;;
1030
1031   -datadir | --datadir | --datadi | --datad)
1032     ac_prev=datadir ;;
1033   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034     datadir=$ac_optarg ;;
1035
1036   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037   | --dataroo | --dataro | --datar)
1038     ac_prev=datarootdir ;;
1039   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041     datarootdir=$ac_optarg ;;
1042
1043   -disable-* | --disable-*)
1044     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045     # Reject names that are not valid shell variable names.
1046     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1047       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1048    { (exit 1); exit 1; }; }
1049     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1050     eval enable_$ac_feature=no ;;
1051
1052   -docdir | --docdir | --docdi | --doc | --do)
1053     ac_prev=docdir ;;
1054   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055     docdir=$ac_optarg ;;
1056
1057   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1058     ac_prev=dvidir ;;
1059   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060     dvidir=$ac_optarg ;;
1061
1062   -enable-* | --enable-*)
1063     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064     # Reject names that are not valid shell variable names.
1065     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1067    { (exit 1); exit 1; }; }
1068     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1069     eval enable_$ac_feature=\$ac_optarg ;;
1070
1071   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1072   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1073   | --exec | --exe | --ex)
1074     ac_prev=exec_prefix ;;
1075   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1076   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1077   | --exec=* | --exe=* | --ex=*)
1078     exec_prefix=$ac_optarg ;;
1079
1080   -gas | --gas | --ga | --g)
1081     # Obsolete; use --with-gas.
1082     with_gas=yes ;;
1083
1084   -help | --help | --hel | --he | -h)
1085     ac_init_help=long ;;
1086   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1087     ac_init_help=recursive ;;
1088   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1089     ac_init_help=short ;;
1090
1091   -host | --host | --hos | --ho)
1092     ac_prev=host_alias ;;
1093   -host=* | --host=* | --hos=* | --ho=*)
1094     host_alias=$ac_optarg ;;
1095
1096   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1097     ac_prev=htmldir ;;
1098   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1099   | --ht=*)
1100     htmldir=$ac_optarg ;;
1101
1102   -includedir | --includedir | --includedi | --included | --include \
1103   | --includ | --inclu | --incl | --inc)
1104     ac_prev=includedir ;;
1105   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1106   | --includ=* | --inclu=* | --incl=* | --inc=*)
1107     includedir=$ac_optarg ;;
1108
1109   -infodir | --infodir | --infodi | --infod | --info | --inf)
1110     ac_prev=infodir ;;
1111   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1112     infodir=$ac_optarg ;;
1113
1114   -libdir | --libdir | --libdi | --libd)
1115     ac_prev=libdir ;;
1116   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1117     libdir=$ac_optarg ;;
1118
1119   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1120   | --libexe | --libex | --libe)
1121     ac_prev=libexecdir ;;
1122   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1123   | --libexe=* | --libex=* | --libe=*)
1124     libexecdir=$ac_optarg ;;
1125
1126   -localedir | --localedir | --localedi | --localed | --locale)
1127     ac_prev=localedir ;;
1128   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1129     localedir=$ac_optarg ;;
1130
1131   -localstatedir | --localstatedir | --localstatedi | --localstated \
1132   | --localstate | --localstat | --localsta | --localst | --locals)
1133     ac_prev=localstatedir ;;
1134   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1135   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1136     localstatedir=$ac_optarg ;;
1137
1138   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1139     ac_prev=mandir ;;
1140   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1141     mandir=$ac_optarg ;;
1142
1143   -nfp | --nfp | --nf)
1144     # Obsolete; use --without-fp.
1145     with_fp=no ;;
1146
1147   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1148   | --no-cr | --no-c | -n)
1149     no_create=yes ;;
1150
1151   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1152   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1153     no_recursion=yes ;;
1154
1155   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1156   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1157   | --oldin | --oldi | --old | --ol | --o)
1158     ac_prev=oldincludedir ;;
1159   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1160   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1161   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1162     oldincludedir=$ac_optarg ;;
1163
1164   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1165     ac_prev=prefix ;;
1166   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1167     prefix=$ac_optarg ;;
1168
1169   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1170   | --program-pre | --program-pr | --program-p)
1171     ac_prev=program_prefix ;;
1172   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1173   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1174     program_prefix=$ac_optarg ;;
1175
1176   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1177   | --program-suf | --program-su | --program-s)
1178     ac_prev=program_suffix ;;
1179   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1180   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1181     program_suffix=$ac_optarg ;;
1182
1183   -program-transform-name | --program-transform-name \
1184   | --program-transform-nam | --program-transform-na \
1185   | --program-transform-n | --program-transform- \
1186   | --program-transform | --program-transfor \
1187   | --program-transfo | --program-transf \
1188   | --program-trans | --program-tran \
1189   | --progr-tra | --program-tr | --program-t)
1190     ac_prev=program_transform_name ;;
1191   -program-transform-name=* | --program-transform-name=* \
1192   | --program-transform-nam=* | --program-transform-na=* \
1193   | --program-transform-n=* | --program-transform-=* \
1194   | --program-transform=* | --program-transfor=* \
1195   | --program-transfo=* | --program-transf=* \
1196   | --program-trans=* | --program-tran=* \
1197   | --progr-tra=* | --program-tr=* | --program-t=*)
1198     program_transform_name=$ac_optarg ;;
1199
1200   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1201     ac_prev=pdfdir ;;
1202   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1203     pdfdir=$ac_optarg ;;
1204
1205   -psdir | --psdir | --psdi | --psd | --ps)
1206     ac_prev=psdir ;;
1207   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1208     psdir=$ac_optarg ;;
1209
1210   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1211   | -silent | --silent | --silen | --sile | --sil)
1212     silent=yes ;;
1213
1214   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1215     ac_prev=sbindir ;;
1216   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1217   | --sbi=* | --sb=*)
1218     sbindir=$ac_optarg ;;
1219
1220   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1221   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1222   | --sharedst | --shareds | --shared | --share | --shar \
1223   | --sha | --sh)
1224     ac_prev=sharedstatedir ;;
1225   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1226   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1227   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1228   | --sha=* | --sh=*)
1229     sharedstatedir=$ac_optarg ;;
1230
1231   -site | --site | --sit)
1232     ac_prev=site ;;
1233   -site=* | --site=* | --sit=*)
1234     site=$ac_optarg ;;
1235
1236   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1237     ac_prev=srcdir ;;
1238   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1239     srcdir=$ac_optarg ;;
1240
1241   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1242   | --syscon | --sysco | --sysc | --sys | --sy)
1243     ac_prev=sysconfdir ;;
1244   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1245   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1246     sysconfdir=$ac_optarg ;;
1247
1248   -target | --target | --targe | --targ | --tar | --ta | --t)
1249     ac_prev=target_alias ;;
1250   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1251     target_alias=$ac_optarg ;;
1252
1253   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1254     verbose=yes ;;
1255
1256   -version | --version | --versio | --versi | --vers | -V)
1257     ac_init_version=: ;;
1258
1259   -with-* | --with-*)
1260     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1261     # Reject names that are not valid shell variable names.
1262     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263       { echo "$as_me: error: invalid package name: $ac_package" >&2
1264    { (exit 1); exit 1; }; }
1265     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1266     eval with_$ac_package=\$ac_optarg ;;
1267
1268   -without-* | --without-*)
1269     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1270     # Reject names that are not valid shell variable names.
1271     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272       { echo "$as_me: error: invalid package name: $ac_package" >&2
1273    { (exit 1); exit 1; }; }
1274     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1275     eval with_$ac_package=no ;;
1276
1277   --x)
1278     # Obsolete; use --with-x.
1279     with_x=yes ;;
1280
1281   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1282   | --x-incl | --x-inc | --x-in | --x-i)
1283     ac_prev=x_includes ;;
1284   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1285   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1286     x_includes=$ac_optarg ;;
1287
1288   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1289   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1290     ac_prev=x_libraries ;;
1291   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1292   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1293     x_libraries=$ac_optarg ;;
1294
1295   -*) { echo "$as_me: error: unrecognized option: $ac_option
1296 Try \`$0 --help' for more information." >&2
1297    { (exit 1); exit 1; }; }
1298     ;;
1299
1300   *=*)
1301     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1302     # Reject names that are not valid shell variable names.
1303     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1304       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1305    { (exit 1); exit 1; }; }
1306     eval $ac_envvar=\$ac_optarg
1307     export $ac_envvar ;;
1308
1309   *)
1310     # FIXME: should be removed in autoconf 3.0.
1311     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1312     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1313       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1314     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1315     ;;
1316
1317   esac
1318 done
1319
1320 if test -n "$ac_prev"; then
1321   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1322   { echo "$as_me: error: missing argument to $ac_option" >&2
1323    { (exit 1); exit 1; }; }
1324 fi
1325
1326 # Be sure to have absolute directory names.
1327 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328                 datadir sysconfdir sharedstatedir localstatedir includedir \
1329                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330                 libdir localedir mandir
1331 do
1332   eval ac_val=\$$ac_var
1333   case $ac_val in
1334     [\\/$]* | ?:[\\/]* )  continue;;
1335     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1336   esac
1337   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1338    { (exit 1); exit 1; }; }
1339 done
1340
1341 # There might be people who depend on the old broken behavior: `$host'
1342 # used to hold the argument of --host etc.
1343 # FIXME: To remove some day.
1344 build=$build_alias
1345 host=$host_alias
1346 target=$target_alias
1347
1348 # FIXME: To remove some day.
1349 if test "x$host_alias" != x; then
1350   if test "x$build_alias" = x; then
1351     cross_compiling=maybe
1352     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1353     If a cross compiler is detected then cross compile mode will be used." >&2
1354   elif test "x$build_alias" != "x$host_alias"; then
1355     cross_compiling=yes
1356   fi
1357 fi
1358
1359 ac_tool_prefix=
1360 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361
1362 test "$silent" = yes && exec 6>/dev/null
1363
1364
1365 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366 ac_ls_di=`ls -di .` &&
1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368   { echo "$as_me: error: Working directory cannot be determined" >&2
1369    { (exit 1); exit 1; }; }
1370 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1371   { echo "$as_me: error: pwd does not report name of working directory" >&2
1372    { (exit 1); exit 1; }; }
1373
1374
1375 # Find the source files, if location was not specified.
1376 if test -z "$srcdir"; then
1377   ac_srcdir_defaulted=yes
1378   # Try the directory containing this script, then the parent directory.
1379   ac_confdir=`$as_dirname -- "$0" ||
1380 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381          X"$0" : 'X\(//\)[^/]' \| \
1382          X"$0" : 'X\(//\)$' \| \
1383          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1384 echo X"$0" |
1385     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386             s//\1/
1387             q
1388           }
1389           /^X\(\/\/\)[^/].*/{
1390             s//\1/
1391             q
1392           }
1393           /^X\(\/\/\)$/{
1394             s//\1/
1395             q
1396           }
1397           /^X\(\/\).*/{
1398             s//\1/
1399             q
1400           }
1401           s/.*/./; q'`
1402   srcdir=$ac_confdir
1403   if test ! -r "$srcdir/$ac_unique_file"; then
1404     srcdir=..
1405   fi
1406 else
1407   ac_srcdir_defaulted=no
1408 fi
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1410   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1411   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1412    { (exit 1); exit 1; }; }
1413 fi
1414 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1415 ac_abs_confdir=`(
1416         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1417    { (exit 1); exit 1; }; }
1418         pwd)`
1419 # When building in place, set srcdir=.
1420 if test "$ac_abs_confdir" = "$ac_pwd"; then
1421   srcdir=.
1422 fi
1423 # Remove unnecessary trailing slashes from srcdir.
1424 # Double slashes in file names in object file debugging info
1425 # mess up M-x gdb in Emacs.
1426 case $srcdir in
1427 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428 esac
1429 for ac_var in $ac_precious_vars; do
1430   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1431   eval ac_env_${ac_var}_value=\$${ac_var}
1432   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1433   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1434 done
1435
1436 #
1437 # Report the --help message.
1438 #
1439 if test "$ac_init_help" = "long"; then
1440   # Omit some internal or obsolete options to make the list less imposing.
1441   # This message is too long to be a string in the A/UX 3.1 sh.
1442   cat <<_ACEOF
1443 \`configure' configures simgrid 3.3-cvs to adapt to many kinds of systems.
1444
1445 Usage: $0 [OPTION]... [VAR=VALUE]...
1446
1447 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1448 VAR=VALUE.  See below for descriptions of some of the useful variables.
1449
1450 Defaults for the options are specified in brackets.
1451
1452 Configuration:
1453   -h, --help              display this help and exit
1454       --help=short        display options specific to this package
1455       --help=recursive    display the short help of all the included packages
1456   -V, --version           display version information and exit
1457   -q, --quiet, --silent   do not print \`checking...' messages
1458       --cache-file=FILE   cache test results in FILE [disabled]
1459   -C, --config-cache      alias for \`--cache-file=config.cache'
1460   -n, --no-create         do not create output files
1461       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1462
1463 Installation directories:
1464   --prefix=PREFIX         install architecture-independent files in PREFIX
1465                           [$ac_default_prefix]
1466   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1467                           [PREFIX]
1468
1469 By default, \`make install' will install all the files in
1470 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1471 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1472 for instance \`--prefix=\$HOME'.
1473
1474 For better control, use the options below.
1475
1476 Fine tuning of the installation directories:
1477   --bindir=DIR           user executables [EPREFIX/bin]
1478   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1479   --libexecdir=DIR       program executables [EPREFIX/libexec]
1480   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1481   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1482   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1483   --libdir=DIR           object code libraries [EPREFIX/lib]
1484   --includedir=DIR       C header files [PREFIX/include]
1485   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1486   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1487   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1488   --infodir=DIR          info documentation [DATAROOTDIR/info]
1489   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1490   --mandir=DIR           man documentation [DATAROOTDIR/man]
1491   --docdir=DIR           documentation root [DATAROOTDIR/doc/simgrid]
1492   --htmldir=DIR          html documentation [DOCDIR]
1493   --dvidir=DIR           dvi documentation [DOCDIR]
1494   --pdfdir=DIR           pdf documentation [DOCDIR]
1495   --psdir=DIR            ps documentation [DOCDIR]
1496 _ACEOF
1497
1498   cat <<\_ACEOF
1499
1500 Program names:
1501   --program-prefix=PREFIX            prepend PREFIX to installed program names
1502   --program-suffix=SUFFIX            append SUFFIX to installed program names
1503   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1504
1505 System types:
1506   --build=BUILD     configure for building on BUILD [guessed]
1507   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1508   --target=TARGET   configure for building compilers for TARGET [HOST]
1509 _ACEOF
1510 fi
1511
1512 if test -n "$ac_init_help"; then
1513   case $ac_init_help in
1514      short | recursive ) echo "Configuration of simgrid 3.3-cvs:";;
1515    esac
1516   cat <<\_ACEOF
1517
1518 Optional Features:
1519   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1520   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1521   --disable-dependency-tracking  speeds up one-time build
1522   --enable-dependency-tracking   do not reject slow dependency extractors
1523   --enable-shared[=PKGS]  build shared libraries [default=yes]
1524   --enable-static[=PKGS]  build static libraries [default=yes]
1525   --enable-fast-install[=PKGS]
1526                           optimize for fast installation [default=yes]
1527   --disable-libtool-lock  avoid locking (might break parallel builds)
1528   --enable-maintainer-mode  enable make rules and dependencies not useful
1529                           (and sometimes confusing) to the casual installer
1530   --enable-compile-warnings
1531                           use compiler warnings (default=no, unless in
1532                           maintainer mode)
1533   --disable-compile-optimizations
1534                           use compiler optimizations (default=yes, unless if
1535                           CFLAGS is explicitly set)
1536   --disable-java          To not compile the Java bindings even if the tools
1537                           are found
1538
1539 Optional Packages:
1540   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1541   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1542   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1543   --with-pic              try to use only PIC/non-PIC objects [default=use
1544                           both]
1545   --with-tags[=TAGS]      include additional configurations [automatic]
1546   --with-pthread   Use pthread instead of ucontext.
1547   --with-pthreads   Use pthread instead of ucontext.
1548   --with-context=ucontext/pthread   Use either (System V) swapcontext or pthread [default=auto].
1549   --with-gtnets           Path to GTNetS installation (default to empty, ie
1550                           not using GTNetS)
1551   --with-csdp             Path to csdp installation (default to empty, i.e.
1552                           not using csdp)
1553
1554 Some influential environment variables:
1555   CC          C compiler command
1556   CFLAGS      C compiler flags
1557   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1558               nonstandard directory <lib dir>
1559   LIBS        libraries to pass to the linker, e.g. -l<library>
1560   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1561               you have headers in a nonstandard directory <include dir>
1562   CPP         C preprocessor
1563   CXX         C++ compiler command
1564   CXXFLAGS    C++ compiler flags
1565   CXXCPP      C++ preprocessor
1566
1567 Use these variables to override the choices made by `configure' or to help
1568 it to find libraries and programs with nonstandard names/locations.
1569
1570 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1571 _ACEOF
1572 ac_status=$?
1573 fi
1574
1575 if test "$ac_init_help" = "recursive"; then
1576   # If there are subdirs, report their specific --help.
1577   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1578     test -d "$ac_dir" || continue
1579     ac_builddir=.
1580
1581 case "$ac_dir" in
1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 *)
1584   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1585   # A ".." for each directory in $ac_dir_suffix.
1586   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1587   case $ac_top_builddir_sub in
1588   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1590   esac ;;
1591 esac
1592 ac_abs_top_builddir=$ac_pwd
1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594 # for backward compatibility:
1595 ac_top_builddir=$ac_top_build_prefix
1596
1597 case $srcdir in
1598   .)  # We are building in place.
1599     ac_srcdir=.
1600     ac_top_srcdir=$ac_top_builddir_sub
1601     ac_abs_top_srcdir=$ac_pwd ;;
1602   [\\/]* | ?:[\\/]* )  # Absolute name.
1603     ac_srcdir=$srcdir$ac_dir_suffix;
1604     ac_top_srcdir=$srcdir
1605     ac_abs_top_srcdir=$srcdir ;;
1606   *) # Relative name.
1607     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608     ac_top_srcdir=$ac_top_build_prefix$srcdir
1609     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610 esac
1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612
1613     cd "$ac_dir" || { ac_status=$?; continue; }
1614     # Check for guested configure.
1615     if test -f "$ac_srcdir/configure.gnu"; then
1616       echo &&
1617       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618     elif test -f "$ac_srcdir/configure"; then
1619       echo &&
1620       $SHELL "$ac_srcdir/configure" --help=recursive
1621     else
1622       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623     fi || ac_status=$?
1624     cd "$ac_pwd" || { ac_status=$?; break; }
1625   done
1626 fi
1627
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1630   cat <<\_ACEOF
1631 simgrid configure 3.3-cvs
1632 generated by GNU Autoconf 2.61
1633
1634 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1635 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1636 This configure script is free software; the Free Software Foundation
1637 gives unlimited permission to copy, distribute and modify it.
1638 _ACEOF
1639   exit
1640 fi
1641 cat >config.log <<_ACEOF
1642 This file contains any messages produced by compilers while
1643 running configure, to aid debugging if configure makes a mistake.
1644
1645 It was created by simgrid $as_me 3.3-cvs, which was
1646 generated by GNU Autoconf 2.61.  Invocation command line was
1647
1648   $ $0 $@
1649
1650 _ACEOF
1651 exec 5>>config.log
1652 {
1653 cat <<_ASUNAME
1654 ## --------- ##
1655 ## Platform. ##
1656 ## --------- ##
1657
1658 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1659 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1660 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1661 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1662 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1663
1664 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1665 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1666
1667 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1668 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1669 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1670 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1671 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1672 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1673 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1674
1675 _ASUNAME
1676
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678 for as_dir in $PATH
1679 do
1680   IFS=$as_save_IFS
1681   test -z "$as_dir" && as_dir=.
1682   echo "PATH: $as_dir"
1683 done
1684 IFS=$as_save_IFS
1685
1686 } >&5
1687
1688 cat >&5 <<_ACEOF
1689
1690
1691 ## ----------- ##
1692 ## Core tests. ##
1693 ## ----------- ##
1694
1695 _ACEOF
1696
1697
1698 # Keep a trace of the command line.
1699 # Strip out --no-create and --no-recursion so they do not pile up.
1700 # Strip out --silent because we don't want to record it for future runs.
1701 # Also quote any args containing shell meta-characters.
1702 # Make two passes to allow for proper duplicate-argument suppression.
1703 ac_configure_args=
1704 ac_configure_args0=
1705 ac_configure_args1=
1706 ac_must_keep_next=false
1707 for ac_pass in 1 2
1708 do
1709   for ac_arg
1710   do
1711     case $ac_arg in
1712     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1713     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1714     | -silent | --silent | --silen | --sile | --sil)
1715       continue ;;
1716     *\'*)
1717       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1718     esac
1719     case $ac_pass in
1720     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1721     2)
1722       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1723       if test $ac_must_keep_next = true; then
1724         ac_must_keep_next=false # Got value, back to normal.
1725       else
1726         case $ac_arg in
1727           *=* | --config-cache | -C | -disable-* | --disable-* \
1728           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1729           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1730           | -with-* | --with-* | -without-* | --without-* | --x)
1731             case "$ac_configure_args0 " in
1732               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1733             esac
1734             ;;
1735           -* ) ac_must_keep_next=true ;;
1736         esac
1737       fi
1738       ac_configure_args="$ac_configure_args '$ac_arg'"
1739       ;;
1740     esac
1741   done
1742 done
1743 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1744 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1745
1746 # When interrupted or exit'd, cleanup temporary files, and complete
1747 # config.log.  We remove comments because anyway the quotes in there
1748 # would cause problems or look ugly.
1749 # WARNING: Use '\'' to represent an apostrophe within the trap.
1750 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1751 trap 'exit_status=$?
1752   # Save into config.log some information that might help in debugging.
1753   {
1754     echo
1755
1756     cat <<\_ASBOX
1757 ## ---------------- ##
1758 ## Cache variables. ##
1759 ## ---------------- ##
1760 _ASBOX
1761     echo
1762     # The following way of writing the cache mishandles newlines in values,
1763 (
1764   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1765     eval ac_val=\$$ac_var
1766     case $ac_val in #(
1767     *${as_nl}*)
1768       case $ac_var in #(
1769       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1770 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1771       esac
1772       case $ac_var in #(
1773       _ | IFS | as_nl) ;; #(
1774       *) $as_unset $ac_var ;;
1775       esac ;;
1776     esac
1777   done
1778   (set) 2>&1 |
1779     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1780     *${as_nl}ac_space=\ *)
1781       sed -n \
1782         "s/'\''/'\''\\\\'\'''\''/g;
1783           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1784       ;; #(
1785     *)
1786       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1787       ;;
1788     esac |
1789     sort
1790 )
1791     echo
1792
1793     cat <<\_ASBOX
1794 ## ----------------- ##
1795 ## Output variables. ##
1796 ## ----------------- ##
1797 _ASBOX
1798     echo
1799     for ac_var in $ac_subst_vars
1800     do
1801       eval ac_val=\$$ac_var
1802       case $ac_val in
1803       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1804       esac
1805       echo "$ac_var='\''$ac_val'\''"
1806     done | sort
1807     echo
1808
1809     if test -n "$ac_subst_files"; then
1810       cat <<\_ASBOX
1811 ## ------------------- ##
1812 ## File substitutions. ##
1813 ## ------------------- ##
1814 _ASBOX
1815       echo
1816       for ac_var in $ac_subst_files
1817       do
1818         eval ac_val=\$$ac_var
1819         case $ac_val in
1820         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1821         esac
1822         echo "$ac_var='\''$ac_val'\''"
1823       done | sort
1824       echo
1825     fi
1826
1827     if test -s confdefs.h; then
1828       cat <<\_ASBOX
1829 ## ----------- ##
1830 ## confdefs.h. ##
1831 ## ----------- ##
1832 _ASBOX
1833       echo
1834       cat confdefs.h
1835       echo
1836     fi
1837     test "$ac_signal" != 0 &&
1838       echo "$as_me: caught signal $ac_signal"
1839     echo "$as_me: exit $exit_status"
1840   } >&5
1841   rm -f core *.core core.conftest.* &&
1842     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1843     exit $exit_status
1844 ' 0
1845 for ac_signal in 1 2 13 15; do
1846   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1847 done
1848 ac_signal=0
1849
1850 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1851 rm -f -r conftest* confdefs.h
1852
1853 # Predefined preprocessor variables.
1854
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_NAME "$PACKAGE_NAME"
1857 _ACEOF
1858
1859
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1862 _ACEOF
1863
1864
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1867 _ACEOF
1868
1869
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_STRING "$PACKAGE_STRING"
1872 _ACEOF
1873
1874
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1877 _ACEOF
1878
1879
1880 # Let the site file select an alternate cache file if it wants to.
1881 # Prefer explicitly selected file to automatically selected ones.
1882 if test -n "$CONFIG_SITE"; then
1883   set x "$CONFIG_SITE"
1884 elif test "x$prefix" != xNONE; then
1885   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1886 else
1887   set x "$ac_default_prefix/share/config.site" \
1888         "$ac_default_prefix/etc/config.site"
1889 fi
1890 shift
1891 for ac_site_file
1892 do
1893   if test -r "$ac_site_file"; then
1894     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1895 echo "$as_me: loading site script $ac_site_file" >&6;}
1896     sed 's/^/| /' "$ac_site_file" >&5
1897     . "$ac_site_file"
1898   fi
1899 done
1900
1901 if test -r "$cache_file"; then
1902   # Some versions of bash will fail to source /dev/null (special
1903   # files actually), so we avoid doing that.
1904   if test -f "$cache_file"; then
1905     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1906 echo "$as_me: loading cache $cache_file" >&6;}
1907     case $cache_file in
1908       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1909       *)                      . "./$cache_file";;
1910     esac
1911   fi
1912 else
1913   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1914 echo "$as_me: creating cache $cache_file" >&6;}
1915   >$cache_file
1916 fi
1917
1918 # Check that the precious variables saved in the cache have kept the same
1919 # value.
1920 ac_cache_corrupted=false
1921 for ac_var in $ac_precious_vars; do
1922   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1923   eval ac_new_set=\$ac_env_${ac_var}_set
1924   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1925   eval ac_new_val=\$ac_env_${ac_var}_value
1926   case $ac_old_set,$ac_new_set in
1927     set,)
1928       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1929 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1930       ac_cache_corrupted=: ;;
1931     ,set)
1932       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1933 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1934       ac_cache_corrupted=: ;;
1935     ,);;
1936     *)
1937       if test "x$ac_old_val" != "x$ac_new_val"; then
1938         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1939 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1940         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1941 echo "$as_me:   former value:  $ac_old_val" >&2;}
1942         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1943 echo "$as_me:   current value: $ac_new_val" >&2;}
1944         ac_cache_corrupted=:
1945       fi;;
1946   esac
1947   # Pass precious variables to config.status.
1948   if test "$ac_new_set" = set; then
1949     case $ac_new_val in
1950     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1951     *) ac_arg=$ac_var=$ac_new_val ;;
1952     esac
1953     case " $ac_configure_args " in
1954       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1955       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1956     esac
1957   fi
1958 done
1959 if $ac_cache_corrupted; then
1960   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1961 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1962   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1963 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1964    { (exit 1); exit 1; }; }
1965 fi
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991 ac_ext=c
1992 ac_cpp='$CPP $CPPFLAGS'
1993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1996
1997
1998
1999 ac_config_headers="$ac_config_headers src/gras_config.h"
2000
2001 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
2002
2003
2004 ac_aux_dir=
2005 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2006   if test -f "$ac_dir/install-sh"; then
2007     ac_aux_dir=$ac_dir
2008     ac_install_sh="$ac_aux_dir/install-sh -c"
2009     break
2010   elif test -f "$ac_dir/install.sh"; then
2011     ac_aux_dir=$ac_dir
2012     ac_install_sh="$ac_aux_dir/install.sh -c"
2013     break
2014   elif test -f "$ac_dir/shtool"; then
2015     ac_aux_dir=$ac_dir
2016     ac_install_sh="$ac_aux_dir/shtool install -c"
2017     break
2018   fi
2019 done
2020 if test -z "$ac_aux_dir"; then
2021   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2022 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2023    { (exit 1); exit 1; }; }
2024 fi
2025
2026 # These three variables are undocumented and unsupported,
2027 # and are intended to be withdrawn in a future Autoconf release.
2028 # They can cause serious problems if a builder's source tree is in a directory
2029 # whose full name contains unusual characters.
2030 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2031 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2032 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2033
2034
2035 # Make sure we can run config.sub.
2036 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2037   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2038 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2039    { (exit 1); exit 1; }; }
2040
2041 { echo "$as_me:$LINENO: checking build system type" >&5
2042 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2043 if test "${ac_cv_build+set}" = set; then
2044   echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046   ac_build_alias=$build_alias
2047 test "x$ac_build_alias" = x &&
2048   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2049 test "x$ac_build_alias" = x &&
2050   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2051 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2052    { (exit 1); exit 1; }; }
2053 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2054   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2055 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2056    { (exit 1); exit 1; }; }
2057
2058 fi
2059 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2060 echo "${ECHO_T}$ac_cv_build" >&6; }
2061 case $ac_cv_build in
2062 *-*-*) ;;
2063 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2064 echo "$as_me: error: invalid value of canonical build" >&2;}
2065    { (exit 1); exit 1; }; };;
2066 esac
2067 build=$ac_cv_build
2068 ac_save_IFS=$IFS; IFS='-'
2069 set x $ac_cv_build
2070 shift
2071 build_cpu=$1
2072 build_vendor=$2
2073 shift; shift
2074 # Remember, the first character of IFS is used to create $*,
2075 # except with old shells:
2076 build_os=$*
2077 IFS=$ac_save_IFS
2078 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2079
2080
2081 { echo "$as_me:$LINENO: checking host system type" >&5
2082 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2083 if test "${ac_cv_host+set}" = set; then
2084   echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086   if test "x$host_alias" = x; then
2087   ac_cv_host=$ac_cv_build
2088 else
2089   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2090     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2091 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2092    { (exit 1); exit 1; }; }
2093 fi
2094
2095 fi
2096 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2097 echo "${ECHO_T}$ac_cv_host" >&6; }
2098 case $ac_cv_host in
2099 *-*-*) ;;
2100 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2101 echo "$as_me: error: invalid value of canonical host" >&2;}
2102    { (exit 1); exit 1; }; };;
2103 esac
2104 host=$ac_cv_host
2105 ac_save_IFS=$IFS; IFS='-'
2106 set x $ac_cv_host
2107 shift
2108 host_cpu=$1
2109 host_vendor=$2
2110 shift; shift
2111 # Remember, the first character of IFS is used to create $*,
2112 # except with old shells:
2113 host_os=$*
2114 IFS=$ac_save_IFS
2115 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2116
2117
2118 { echo "$as_me:$LINENO: checking target system type" >&5
2119 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2120 if test "${ac_cv_target+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   if test "x$target_alias" = x; then
2124   ac_cv_target=$ac_cv_host
2125 else
2126   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2127     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2128 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2129    { (exit 1); exit 1; }; }
2130 fi
2131
2132 fi
2133 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2134 echo "${ECHO_T}$ac_cv_target" >&6; }
2135 case $ac_cv_target in
2136 *-*-*) ;;
2137 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2138 echo "$as_me: error: invalid value of canonical target" >&2;}
2139    { (exit 1); exit 1; }; };;
2140 esac
2141 target=$ac_cv_target
2142 ac_save_IFS=$IFS; IFS='-'
2143 set x $ac_cv_target
2144 shift
2145 target_cpu=$1
2146 target_vendor=$2
2147 shift; shift
2148 # Remember, the first character of IFS is used to create $*,
2149 # except with old shells:
2150 target_os=$*
2151 IFS=$ac_save_IFS
2152 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2153
2154
2155 # The aliases save the names the user supplied, while $host etc.
2156 # will get canonicalized.
2157 test -n "$target_alias" &&
2158   test "$program_prefix$program_suffix$program_transform_name" = \
2159     NONENONEs,x,x, &&
2160   program_prefix=${target_alias}-
2161 ac_ext=c
2162 ac_cpp='$CPP $CPPFLAGS'
2163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2166
2167 rm -rf .tst 2>/dev/null
2168 mkdir .tst 2>/dev/null
2169 if test -d .tst; then
2170   am__leading_dot=.
2171 else
2172   am__leading_dot=_
2173 fi
2174 rmdir .tst 2>/dev/null
2175
2176 DEPDIR="${am__leading_dot}deps"
2177
2178 ac_config_commands="$ac_config_commands depfiles"
2179
2180
2181 am_make=${MAKE-make}
2182 cat > confinc << 'END'
2183 am__doit:
2184         @echo done
2185 .PHONY: am__doit
2186 END
2187 # If we don't find an include directive, just comment out the code.
2188 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2189 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2190 am__include="#"
2191 am__quote=
2192 _am_result=none
2193 # First try GNU make style include.
2194 echo "include confinc" > confmf
2195 # We grep out `Entering directory' and `Leaving directory'
2196 # messages which can occur if `w' ends up in MAKEFLAGS.
2197 # In particular we don't look at `^make:' because GNU make might
2198 # be invoked under some other name (usually "gmake"), in which
2199 # case it prints its new name instead of `make'.
2200 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2201    am__include=include
2202    am__quote=
2203    _am_result=GNU
2204 fi
2205 # Now try BSD make style include.
2206 if test "$am__include" = "#"; then
2207    echo '.include "confinc"' > confmf
2208    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2209       am__include=.include
2210       am__quote="\""
2211       _am_result=BSD
2212    fi
2213 fi
2214
2215
2216 { echo "$as_me:$LINENO: result: $_am_result" >&5
2217 echo "${ECHO_T}$_am_result" >&6; }
2218 rm -f confinc confmf
2219
2220 # Check whether --enable-dependency-tracking was given.
2221 if test "${enable_dependency_tracking+set}" = set; then
2222   enableval=$enable_dependency_tracking;
2223 fi
2224
2225 if test "x$enable_dependency_tracking" != xno; then
2226   am_depcomp="$ac_aux_dir/depcomp"
2227   AMDEPBACKSLASH='\'
2228 fi
2229  if test "x$enable_dependency_tracking" != xno; then
2230   AMDEP_TRUE=
2231   AMDEP_FALSE='#'
2232 else
2233   AMDEP_TRUE='#'
2234   AMDEP_FALSE=
2235 fi
2236
2237
2238
2239 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
2240 do
2241   # Extract the first word of "$ac_prog", so it can be a program name with args.
2242 set dummy $ac_prog; ac_word=$2
2243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2245 if test "${ac_cv_prog_GCJ+set}" = set; then
2246   echo $ECHO_N "(cached) $ECHO_C" >&6
2247 else
2248   if test -n "$GCJ"; then
2249   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
2250 else
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 for as_dir in $PATH
2253 do
2254   IFS=$as_save_IFS
2255   test -z "$as_dir" && as_dir=.
2256   for ac_exec_ext in '' $ac_executable_extensions; do
2257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2258     ac_cv_prog_GCJ="$ac_prog"
2259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260     break 2
2261   fi
2262 done
2263 done
2264 IFS=$as_save_IFS
2265
2266 fi
2267 fi
2268 GCJ=$ac_cv_prog_GCJ
2269 if test -n "$GCJ"; then
2270   { echo "$as_me:$LINENO: result: $GCJ" >&5
2271 echo "${ECHO_T}$GCJ" >&6; }
2272 else
2273   { echo "$as_me:$LINENO: result: no" >&5
2274 echo "${ECHO_T}no" >&6; }
2275 fi
2276
2277
2278   test -n "$GCJ" && break
2279 done
2280 test -n "$GCJ" || GCJ="gcj"
2281
2282 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
2283 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
2284    { (exit 1); exit 1; }; }
2285 if test "x${GCJFLAGS-unset}" = xunset; then
2286    GCJFLAGS="-g -O2"
2287 fi
2288
2289
2290 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
2291
2292 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2293 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2294 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
2295   echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2298   # We make a subdir and do the tests there.  Otherwise we can end up
2299   # making bogus files that we don't know about and never remove.  For
2300   # instance it was reported that on HP-UX the gcc test will end up
2301   # making a dummy file named `D' -- because `-MD' means `put the output
2302   # in D'.
2303   mkdir conftest.dir
2304   # Copy depcomp to subdir because otherwise we won't find it if we're
2305   # using a relative directory.
2306   cp "$am_depcomp" conftest.dir
2307   cd conftest.dir
2308   # We will build objects and dependencies in a subdirectory because
2309   # it helps to detect inapplicable dependency modes.  For instance
2310   # both Tru64's cc and ICC support -MD to output dependencies as a
2311   # side effect of compilation, but ICC will put the dependencies in
2312   # the current directory while Tru64 will put them in the object
2313   # directory.
2314   mkdir sub
2315
2316   am_cv_GCJ_dependencies_compiler_type=none
2317   if test "$am_compiler_list" = ""; then
2318      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2319   fi
2320   for depmode in $am_compiler_list; do
2321     # Setup a source with many dependencies, because some compilers
2322     # like to wrap large dependency lists on column 80 (with \), and
2323     # we should not choose a depcomp mode which is confused by this.
2324     #
2325     # We need to recreate these files for each test, as the compiler may
2326     # overwrite some of them when testing with obscure command lines.
2327     # This happens at least with the AIX C compiler.
2328     : > sub/conftest.c
2329     for i in 1 2 3 4 5 6; do
2330       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2331       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2332       # Solaris 8's {/usr,}/bin/sh.
2333       touch sub/conftst$i.h
2334     done
2335     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2336
2337     case $depmode in
2338     nosideeffect)
2339       # after this tag, mechanisms are not by side-effect, so they'll
2340       # only be used when explicitly requested
2341       if test "x$enable_dependency_tracking" = xyes; then
2342         continue
2343       else
2344         break
2345       fi
2346       ;;
2347     none) break ;;
2348     esac
2349     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2350     # mode.  It turns out that the SunPro C++ compiler does not properly
2351     # handle `-M -o', and we need to detect this.
2352     if depmode=$depmode \
2353        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2354        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2355        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2356          >/dev/null 2>conftest.err &&
2357        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2358        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2359        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2360        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2361       # icc doesn't choke on unknown options, it will just issue warnings
2362       # or remarks (even with -Werror).  So we grep stderr for any message
2363       # that says an option was ignored or not supported.
2364       # When given -MP, icc 7.0 and 7.1 complain thusly:
2365       #   icc: Command line warning: ignoring option '-M'; no argument required
2366       # The diagnosis changed in icc 8.0:
2367       #   icc: Command line remark: option '-MP' not supported
2368       if (grep 'ignoring option' conftest.err ||
2369           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2370         am_cv_GCJ_dependencies_compiler_type=$depmode
2371         break
2372       fi
2373     fi
2374   done
2375
2376   cd ..
2377   rm -rf conftest.dir
2378 else
2379   am_cv_GCJ_dependencies_compiler_type=none
2380 fi
2381
2382 fi
2383 { echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
2384 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6; }
2385 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
2386
2387  if
2388   test "x$enable_dependency_tracking" != xno \
2389   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
2390   am__fastdepGCJ_TRUE=
2391   am__fastdepGCJ_FALSE='#'
2392 else
2393   am__fastdepGCJ_TRUE='#'
2394   am__fastdepGCJ_FALSE=
2395 fi
2396
2397
2398
2399
2400 am__api_version='1.10'
2401
2402 # Find a good install program.  We prefer a C program (faster),
2403 # so one script is as good as another.  But avoid the broken or
2404 # incompatible versions:
2405 # SysV /etc/install, /usr/sbin/install
2406 # SunOS /usr/etc/install
2407 # IRIX /sbin/install
2408 # AIX /bin/install
2409 # AmigaOS /C/install, which installs bootblocks on floppy discs
2410 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2411 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2412 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2413 # OS/2's system install, which has a completely different semantic
2414 # ./install, which can be erroneously created by make from ./install.sh.
2415 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2416 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2417 if test -z "$INSTALL"; then
2418 if test "${ac_cv_path_install+set}" = set; then
2419   echo $ECHO_N "(cached) $ECHO_C" >&6
2420 else
2421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 for as_dir in $PATH
2423 do
2424   IFS=$as_save_IFS
2425   test -z "$as_dir" && as_dir=.
2426   # Account for people who put trailing slashes in PATH elements.
2427 case $as_dir/ in
2428   ./ | .// | /cC/* | \
2429   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2430   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2431   /usr/ucb/* ) ;;
2432   *)
2433     # OSF1 and SCO ODT 3.0 have their own names for install.
2434     # Don't use installbsd from OSF since it installs stuff as root
2435     # by default.
2436     for ac_prog in ginstall scoinst install; do
2437       for ac_exec_ext in '' $ac_executable_extensions; do
2438         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2439           if test $ac_prog = install &&
2440             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2441             # AIX install.  It has an incompatible calling convention.
2442             :
2443           elif test $ac_prog = install &&
2444             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2445             # program-specific install script used by HP pwplus--don't use.
2446             :
2447           else
2448             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2449             break 3
2450           fi
2451         fi
2452       done
2453     done
2454     ;;
2455 esac
2456 done
2457 IFS=$as_save_IFS
2458
2459
2460 fi
2461   if test "${ac_cv_path_install+set}" = set; then
2462     INSTALL=$ac_cv_path_install
2463   else
2464     # As a last resort, use the slow shell script.  Don't cache a
2465     # value for INSTALL within a source directory, because that will
2466     # break other packages using the cache if that directory is
2467     # removed, or if the value is a relative name.
2468     INSTALL=$ac_install_sh
2469   fi
2470 fi
2471 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2472 echo "${ECHO_T}$INSTALL" >&6; }
2473
2474 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2475 # It thinks the first close brace ends the variable substitution.
2476 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2477
2478 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2479
2480 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2481
2482 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2483 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2484 # Just in case
2485 sleep 1
2486 echo timestamp > conftest.file
2487 # Do `set' in a subshell so we don't clobber the current shell's
2488 # arguments.  Must try -L first in case configure is actually a
2489 # symlink; some systems play weird games with the mod time of symlinks
2490 # (eg FreeBSD returns the mod time of the symlink's containing
2491 # directory).
2492 if (
2493    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2494    if test "$*" = "X"; then
2495       # -L didn't work.
2496       set X `ls -t $srcdir/configure conftest.file`
2497    fi
2498    rm -f conftest.file
2499    if test "$*" != "X $srcdir/configure conftest.file" \
2500       && test "$*" != "X conftest.file $srcdir/configure"; then
2501
2502       # If neither matched, then we have a broken ls.  This can happen
2503       # if, for instance, CONFIG_SHELL is bash and it inherits a
2504       # broken ls alias from the environment.  This has actually
2505       # happened.  Such a system could not be considered "sane".
2506       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2507 alias in your environment" >&5
2508 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2509 alias in your environment" >&2;}
2510    { (exit 1); exit 1; }; }
2511    fi
2512
2513    test "$2" = conftest.file
2514    )
2515 then
2516    # Ok.
2517    :
2518 else
2519    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2520 Check your system clock" >&5
2521 echo "$as_me: error: newly created file is older than distributed files!
2522 Check your system clock" >&2;}
2523    { (exit 1); exit 1; }; }
2524 fi
2525 { echo "$as_me:$LINENO: result: yes" >&5
2526 echo "${ECHO_T}yes" >&6; }
2527 test "$program_prefix" != NONE &&
2528   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2529 # Use a double $ so make ignores it.
2530 test "$program_suffix" != NONE &&
2531   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2532 # Double any \ or $.  echo might interpret backslashes.
2533 # By default was `s,x,x', remove it if useless.
2534 cat <<\_ACEOF >conftest.sed
2535 s/[\\$]/&&/g;s/;s,x,x,$//
2536 _ACEOF
2537 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2538 rm -f conftest.sed
2539
2540 # expand $ac_aux_dir to an absolute path
2541 am_aux_dir=`cd $ac_aux_dir && pwd`
2542
2543 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2544 # Use eval to expand $SHELL
2545 if eval "$MISSING --run true"; then
2546   am_missing_run="$MISSING --run "
2547 else
2548   am_missing_run=
2549   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2550 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2551 fi
2552
2553 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2554 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2555 if test -z "$MKDIR_P"; then
2556   if test "${ac_cv_path_mkdir+set}" = set; then
2557   echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2561 do
2562   IFS=$as_save_IFS
2563   test -z "$as_dir" && as_dir=.
2564   for ac_prog in mkdir gmkdir; do
2565          for ac_exec_ext in '' $ac_executable_extensions; do
2566            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2567            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2568              'mkdir (GNU coreutils) '* | \
2569              'mkdir (coreutils) '* | \
2570              'mkdir (fileutils) '4.1*)
2571                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2572                break 3;;
2573            esac
2574          done
2575        done
2576 done
2577 IFS=$as_save_IFS
2578
2579 fi
2580
2581   if test "${ac_cv_path_mkdir+set}" = set; then
2582     MKDIR_P="$ac_cv_path_mkdir -p"
2583   else
2584     # As a last resort, use the slow shell script.  Don't cache a
2585     # value for MKDIR_P within a source directory, because that will
2586     # break other packages using the cache if that directory is
2587     # removed, or if the value is a relative name.
2588     test -d ./--version && rmdir ./--version
2589     MKDIR_P="$ac_install_sh -d"
2590   fi
2591 fi
2592 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2593 echo "${ECHO_T}$MKDIR_P" >&6; }
2594
2595 mkdir_p="$MKDIR_P"
2596 case $mkdir_p in
2597   [\\/$]* | ?:[\\/]*) ;;
2598   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2599 esac
2600
2601 for ac_prog in gawk mawk nawk awk
2602 do
2603   # Extract the first word of "$ac_prog", so it can be a program name with args.
2604 set dummy $ac_prog; ac_word=$2
2605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2607 if test "${ac_cv_prog_AWK+set}" = set; then
2608   echo $ECHO_N "(cached) $ECHO_C" >&6
2609 else
2610   if test -n "$AWK"; then
2611   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2612 else
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH
2615 do
2616   IFS=$as_save_IFS
2617   test -z "$as_dir" && as_dir=.
2618   for ac_exec_ext in '' $ac_executable_extensions; do
2619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620     ac_cv_prog_AWK="$ac_prog"
2621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2622     break 2
2623   fi
2624 done
2625 done
2626 IFS=$as_save_IFS
2627
2628 fi
2629 fi
2630 AWK=$ac_cv_prog_AWK
2631 if test -n "$AWK"; then
2632   { echo "$as_me:$LINENO: result: $AWK" >&5
2633 echo "${ECHO_T}$AWK" >&6; }
2634 else
2635   { echo "$as_me:$LINENO: result: no" >&5
2636 echo "${ECHO_T}no" >&6; }
2637 fi
2638
2639
2640   test -n "$AWK" && break
2641 done
2642
2643 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2644 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2645 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2646 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2647   echo $ECHO_N "(cached) $ECHO_C" >&6
2648 else
2649   cat >conftest.make <<\_ACEOF
2650 SHELL = /bin/sh
2651 all:
2652         @echo '@@@%%%=$(MAKE)=@@@%%%'
2653 _ACEOF
2654 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2655 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2656   *@@@%%%=?*=@@@%%%*)
2657     eval ac_cv_prog_make_${ac_make}_set=yes;;
2658   *)
2659     eval ac_cv_prog_make_${ac_make}_set=no;;
2660 esac
2661 rm -f conftest.make
2662 fi
2663 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2664   { echo "$as_me:$LINENO: result: yes" >&5
2665 echo "${ECHO_T}yes" >&6; }
2666   SET_MAKE=
2667 else
2668   { echo "$as_me:$LINENO: result: no" >&5
2669 echo "${ECHO_T}no" >&6; }
2670   SET_MAKE="MAKE=${MAKE-make}"
2671 fi
2672
2673 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2674   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2675   # is not polluted with repeated "-I."
2676   am__isrc=' -I$(srcdir)'
2677   # test to see if srcdir already configured
2678   if test -f $srcdir/config.status; then
2679     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2680 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2681    { (exit 1); exit 1; }; }
2682   fi
2683 fi
2684
2685 # test whether we have cygpath
2686 if test -z "$CYGPATH_W"; then
2687   if (cygpath --version) >/dev/null 2>/dev/null; then
2688     CYGPATH_W='cygpath -w'
2689   else
2690     CYGPATH_W=echo
2691   fi
2692 fi
2693
2694
2695 # Define the identity of the package.
2696  PACKAGE='simgrid'
2697  VERSION='3.3-cvs'
2698
2699
2700 cat >>confdefs.h <<_ACEOF
2701 #define PACKAGE "$PACKAGE"
2702 _ACEOF
2703
2704
2705 cat >>confdefs.h <<_ACEOF
2706 #define VERSION "$VERSION"
2707 _ACEOF
2708
2709 # Some tools Automake needs.
2710
2711 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2712
2713
2714 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2715
2716
2717 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2718
2719
2720 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2721
2722
2723 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2724
2725 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2726
2727 # Installed binaries are usually stripped using `strip' when the user
2728 # run `make install-strip'.  However `strip' might not be the right
2729 # tool to use in cross-compilation environments, therefore Automake
2730 # will honor the `STRIP' environment variable to overrule this program.
2731 if test "$cross_compiling" != no; then
2732   if test -n "$ac_tool_prefix"; then
2733   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2734 set dummy ${ac_tool_prefix}strip; ac_word=$2
2735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2737 if test "${ac_cv_prog_STRIP+set}" = set; then
2738   echo $ECHO_N "(cached) $ECHO_C" >&6
2739 else
2740   if test -n "$STRIP"; then
2741   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2742 else
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH
2745 do
2746   IFS=$as_save_IFS
2747   test -z "$as_dir" && as_dir=.
2748   for ac_exec_ext in '' $ac_executable_extensions; do
2749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752     break 2
2753   fi
2754 done
2755 done
2756 IFS=$as_save_IFS
2757
2758 fi
2759 fi
2760 STRIP=$ac_cv_prog_STRIP
2761 if test -n "$STRIP"; then
2762   { echo "$as_me:$LINENO: result: $STRIP" >&5
2763 echo "${ECHO_T}$STRIP" >&6; }
2764 else
2765   { echo "$as_me:$LINENO: result: no" >&5
2766 echo "${ECHO_T}no" >&6; }
2767 fi
2768
2769
2770 fi
2771 if test -z "$ac_cv_prog_STRIP"; then
2772   ac_ct_STRIP=$STRIP
2773   # Extract the first word of "strip", so it can be a program name with args.
2774 set dummy strip; ac_word=$2
2775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2777 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2778   echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780   if test -n "$ac_ct_STRIP"; then
2781   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2785 do
2786   IFS=$as_save_IFS
2787   test -z "$as_dir" && as_dir=.
2788   for ac_exec_ext in '' $ac_executable_extensions; do
2789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790     ac_cv_prog_ac_ct_STRIP="strip"
2791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792     break 2
2793   fi
2794 done
2795 done
2796 IFS=$as_save_IFS
2797
2798 fi
2799 fi
2800 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2801 if test -n "$ac_ct_STRIP"; then
2802   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2803 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2804 else
2805   { echo "$as_me:$LINENO: result: no" >&5
2806 echo "${ECHO_T}no" >&6; }
2807 fi
2808
2809   if test "x$ac_ct_STRIP" = x; then
2810     STRIP=":"
2811   else
2812     case $cross_compiling:$ac_tool_warned in
2813 yes:)
2814 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2815 whose name does not start with the host triplet.  If you think this
2816 configuration is useful to you, please write to autoconf@gnu.org." >&5
2817 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2818 whose name does not start with the host triplet.  If you think this
2819 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2820 ac_tool_warned=yes ;;
2821 esac
2822     STRIP=$ac_ct_STRIP
2823   fi
2824 else
2825   STRIP="$ac_cv_prog_STRIP"
2826 fi
2827
2828 fi
2829 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2830
2831 # We need awk for the "check" target.  The system "awk" is bad on
2832 # some platforms.
2833 # Always define AMTAR for backward compatibility.
2834
2835 AMTAR=${AMTAR-"${am_missing_run}tar"}
2836
2837 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2838
2839
2840
2841
2842
2843
2844 ACLOCAL="$ACLOCAL -I acmacro"
2845
2846
2847
2848
2849
2850
2851 # Check whether --enable-shared was given.
2852 if test "${enable_shared+set}" = set; then
2853   enableval=$enable_shared; p=${PACKAGE-default}
2854     case $enableval in
2855     yes) enable_shared=yes ;;
2856     no) enable_shared=no ;;
2857     *)
2858       enable_shared=no
2859       # Look at the argument we got.  We use all the common list separators.
2860       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2861       for pkg in $enableval; do
2862         IFS="$lt_save_ifs"
2863         if test "X$pkg" = "X$p"; then
2864           enable_shared=yes
2865         fi
2866       done
2867       IFS="$lt_save_ifs"
2868       ;;
2869     esac
2870 else
2871   enable_shared=yes
2872 fi
2873
2874
2875 # Check whether --enable-static was given.
2876 if test "${enable_static+set}" = set; then
2877   enableval=$enable_static; p=${PACKAGE-default}
2878     case $enableval in
2879     yes) enable_static=yes ;;
2880     no) enable_static=no ;;
2881     *)
2882      enable_static=no
2883       # Look at the argument we got.  We use all the common list separators.
2884       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2885       for pkg in $enableval; do
2886         IFS="$lt_save_ifs"
2887         if test "X$pkg" = "X$p"; then
2888           enable_static=yes
2889         fi
2890       done
2891       IFS="$lt_save_ifs"
2892       ;;
2893     esac
2894 else
2895   enable_static=yes
2896 fi
2897
2898
2899 # Check whether --enable-fast-install was given.
2900 if test "${enable_fast_install+set}" = set; then
2901   enableval=$enable_fast_install; p=${PACKAGE-default}
2902     case $enableval in
2903     yes) enable_fast_install=yes ;;
2904     no) enable_fast_install=no ;;
2905     *)
2906       enable_fast_install=no
2907       # Look at the argument we got.  We use all the common list separators.
2908       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2909       for pkg in $enableval; do
2910         IFS="$lt_save_ifs"
2911         if test "X$pkg" = "X$p"; then
2912           enable_fast_install=yes
2913         fi
2914       done
2915       IFS="$lt_save_ifs"
2916       ;;
2917     esac
2918 else
2919   enable_fast_install=yes
2920 fi
2921
2922
2923 ac_ext=c
2924 ac_cpp='$CPP $CPPFLAGS'
2925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928 if test -n "$ac_tool_prefix"; then
2929   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2930 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2933 if test "${ac_cv_prog_CC+set}" = set; then
2934   echo $ECHO_N "(cached) $ECHO_C" >&6
2935 else
2936   if test -n "$CC"; then
2937   ac_cv_prog_CC="$CC" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2941 do
2942   IFS=$as_save_IFS
2943   test -z "$as_dir" && as_dir=.
2944   for ac_exec_ext in '' $ac_executable_extensions; do
2945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2948     break 2
2949   fi
2950 done
2951 done
2952 IFS=$as_save_IFS
2953
2954 fi
2955 fi
2956 CC=$ac_cv_prog_CC
2957 if test -n "$CC"; then
2958   { echo "$as_me:$LINENO: result: $CC" >&5
2959 echo "${ECHO_T}$CC" >&6; }
2960 else
2961   { echo "$as_me:$LINENO: result: no" >&5
2962 echo "${ECHO_T}no" >&6; }
2963 fi
2964
2965
2966 fi
2967 if test -z "$ac_cv_prog_CC"; then
2968   ac_ct_CC=$CC
2969   # Extract the first word of "gcc", so it can be a program name with args.
2970 set dummy gcc; ac_word=$2
2971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2973 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2974   echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976   if test -n "$ac_ct_CC"; then
2977   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982   IFS=$as_save_IFS
2983   test -z "$as_dir" && as_dir=.
2984   for ac_exec_ext in '' $ac_executable_extensions; do
2985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986     ac_cv_prog_ac_ct_CC="gcc"
2987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2988     break 2
2989   fi
2990 done
2991 done
2992 IFS=$as_save_IFS
2993
2994 fi
2995 fi
2996 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2997 if test -n "$ac_ct_CC"; then
2998   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2999 echo "${ECHO_T}$ac_ct_CC" >&6; }
3000 else
3001   { echo "$as_me:$LINENO: result: no" >&5
3002 echo "${ECHO_T}no" >&6; }
3003 fi
3004
3005   if test "x$ac_ct_CC" = x; then
3006     CC=""
3007   else
3008     case $cross_compiling:$ac_tool_warned in
3009 yes:)
3010 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3011 whose name does not start with the host triplet.  If you think this
3012 configuration is useful to you, please write to autoconf@gnu.org." >&5
3013 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3014 whose name does not start with the host triplet.  If you think this
3015 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3016 ac_tool_warned=yes ;;
3017 esac
3018     CC=$ac_ct_CC
3019   fi
3020 else
3021   CC="$ac_cv_prog_CC"
3022 fi
3023
3024 if test -z "$CC"; then
3025           if test -n "$ac_tool_prefix"; then
3026     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3027 set dummy ${ac_tool_prefix}cc; ac_word=$2
3028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3030 if test "${ac_cv_prog_CC+set}" = set; then
3031   echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033   if test -n "$CC"; then
3034   ac_cv_prog_CC="$CC" # Let the user override the test.
3035 else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039   IFS=$as_save_IFS
3040   test -z "$as_dir" && as_dir=.
3041   for ac_exec_ext in '' $ac_executable_extensions; do
3042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3043     ac_cv_prog_CC="${ac_tool_prefix}cc"
3044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3045     break 2
3046   fi
3047 done
3048 done
3049 IFS=$as_save_IFS
3050
3051 fi
3052 fi
3053 CC=$ac_cv_prog_CC
3054 if test -n "$CC"; then
3055   { echo "$as_me:$LINENO: result: $CC" >&5
3056 echo "${ECHO_T}$CC" >&6; }
3057 else
3058   { echo "$as_me:$LINENO: result: no" >&5
3059 echo "${ECHO_T}no" >&6; }
3060 fi
3061
3062
3063   fi
3064 fi
3065 if test -z "$CC"; then
3066   # Extract the first word of "cc", so it can be a program name with args.
3067 set dummy cc; ac_word=$2
3068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3070 if test "${ac_cv_prog_CC+set}" = set; then
3071   echo $ECHO_N "(cached) $ECHO_C" >&6
3072 else
3073   if test -n "$CC"; then
3074   ac_cv_prog_CC="$CC" # Let the user override the test.
3075 else
3076   ac_prog_rejected=no
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3079 do
3080   IFS=$as_save_IFS
3081   test -z "$as_dir" && as_dir=.
3082   for ac_exec_ext in '' $ac_executable_extensions; do
3083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3084     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3085        ac_prog_rejected=yes
3086        continue
3087      fi
3088     ac_cv_prog_CC="cc"
3089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090     break 2
3091   fi
3092 done
3093 done
3094 IFS=$as_save_IFS
3095
3096 if test $ac_prog_rejected = yes; then
3097   # We found a bogon in the path, so make sure we never use it.
3098   set dummy $ac_cv_prog_CC
3099   shift
3100   if test $# != 0; then
3101     # We chose a different compiler from the bogus one.
3102     # However, it has the same basename, so the bogon will be chosen
3103     # first if we set CC to just the basename; use the full file name.
3104     shift
3105     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3106   fi
3107 fi
3108 fi
3109 fi
3110 CC=$ac_cv_prog_CC
3111 if test -n "$CC"; then
3112   { echo "$as_me:$LINENO: result: $CC" >&5
3113 echo "${ECHO_T}$CC" >&6; }
3114 else
3115   { echo "$as_me:$LINENO: result: no" >&5
3116 echo "${ECHO_T}no" >&6; }
3117 fi
3118
3119
3120 fi
3121 if test -z "$CC"; then
3122   if test -n "$ac_tool_prefix"; then
3123   for ac_prog in cl.exe
3124   do
3125     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3129 if test "${ac_cv_prog_CC+set}" = set; then
3130   echo $ECHO_N "(cached) $ECHO_C" >&6
3131 else
3132   if test -n "$CC"; then
3133   ac_cv_prog_CC="$CC" # Let the user override the test.
3134 else
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH
3137 do
3138   IFS=$as_save_IFS
3139   test -z "$as_dir" && as_dir=.
3140   for ac_exec_ext in '' $ac_executable_extensions; do
3141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3142     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3144     break 2
3145   fi
3146 done
3147 done
3148 IFS=$as_save_IFS
3149
3150 fi
3151 fi
3152 CC=$ac_cv_prog_CC
3153 if test -n "$CC"; then
3154   { echo "$as_me:$LINENO: result: $CC" >&5
3155 echo "${ECHO_T}$CC" >&6; }
3156 else
3157   { echo "$as_me:$LINENO: result: no" >&5
3158 echo "${ECHO_T}no" >&6; }
3159 fi
3160
3161
3162     test -n "$CC" && break
3163   done
3164 fi
3165 if test -z "$CC"; then
3166   ac_ct_CC=$CC
3167   for ac_prog in cl.exe
3168 do
3169   # Extract the first word of "$ac_prog", so it can be a program name with args.
3170 set dummy $ac_prog; ac_word=$2
3171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3173 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3174   echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176   if test -n "$ac_ct_CC"; then
3177   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3178 else
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH
3181 do
3182   IFS=$as_save_IFS
3183   test -z "$as_dir" && as_dir=.
3184   for ac_exec_ext in '' $ac_executable_extensions; do
3185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3186     ac_cv_prog_ac_ct_CC="$ac_prog"
3187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3188     break 2
3189   fi
3190 done
3191 done
3192 IFS=$as_save_IFS
3193
3194 fi
3195 fi
3196 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3197 if test -n "$ac_ct_CC"; then
3198   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3199 echo "${ECHO_T}$ac_ct_CC" >&6; }
3200 else
3201   { echo "$as_me:$LINENO: result: no" >&5
3202 echo "${ECHO_T}no" >&6; }
3203 fi
3204
3205
3206   test -n "$ac_ct_CC" && break
3207 done
3208
3209   if test "x$ac_ct_CC" = x; then
3210     CC=""
3211   else
3212     case $cross_compiling:$ac_tool_warned in
3213 yes:)
3214 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3215 whose name does not start with the host triplet.  If you think this
3216 configuration is useful to you, please write to autoconf@gnu.org." >&5
3217 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3218 whose name does not start with the host triplet.  If you think this
3219 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3220 ac_tool_warned=yes ;;
3221 esac
3222     CC=$ac_ct_CC
3223   fi
3224 fi
3225
3226 fi
3227
3228
3229 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3230 See \`config.log' for more details." >&5
3231 echo "$as_me: error: no acceptable C compiler found in \$PATH
3232 See \`config.log' for more details." >&2;}
3233    { (exit 1); exit 1; }; }
3234
3235 # Provide some information about the compiler.
3236 echo "$as_me:$LINENO: checking for C compiler version" >&5
3237 ac_compiler=`set X $ac_compile; echo $2`
3238 { (ac_try="$ac_compiler --version >&5"
3239 case "(($ac_try" in
3240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241   *) ac_try_echo=$ac_try;;
3242 esac
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244   (eval "$ac_compiler --version >&5") 2>&5
3245   ac_status=$?
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); }
3248 { (ac_try="$ac_compiler -v >&5"
3249 case "(($ac_try" in
3250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251   *) ac_try_echo=$ac_try;;
3252 esac
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254   (eval "$ac_compiler -v >&5") 2>&5
3255   ac_status=$?
3256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257   (exit $ac_status); }
3258 { (ac_try="$ac_compiler -V >&5"
3259 case "(($ac_try" in
3260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261   *) ac_try_echo=$ac_try;;
3262 esac
3263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3264   (eval "$ac_compiler -V >&5") 2>&5
3265   ac_status=$?
3266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267   (exit $ac_status); }
3268
3269 cat >conftest.$ac_ext <<_ACEOF
3270 /* confdefs.h.  */
3271 _ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h.  */
3275
3276 int
3277 main ()
3278 {
3279
3280   ;
3281   return 0;
3282 }
3283 _ACEOF
3284 ac_clean_files_save=$ac_clean_files
3285 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3286 # Try to create an executable without -o first, disregard a.out.
3287 # It will help us diagnose broken compilers, and finding out an intuition
3288 # of exeext.
3289 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3290 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3291 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3292 #
3293 # List of possible output files, starting from the most likely.
3294 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3295 # only as a last resort.  b.out is created by i960 compilers.
3296 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3297 #
3298 # The IRIX 6 linker writes into existing files which may not be
3299 # executable, retaining their permissions.  Remove them first so a
3300 # subsequent execution test works.
3301 ac_rmfiles=
3302 for ac_file in $ac_files
3303 do
3304   case $ac_file in
3305     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3306     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3307   esac
3308 done
3309 rm -f $ac_rmfiles
3310
3311 if { (ac_try="$ac_link_default"
3312 case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317   (eval "$ac_link_default") 2>&5
3318   ac_status=$?
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); }; then
3321   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3322 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3323 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3324 # so that the user can short-circuit this test for compilers unknown to
3325 # Autoconf.
3326 for ac_file in $ac_files ''
3327 do
3328   test -f "$ac_file" || continue
3329   case $ac_file in
3330     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3331         ;;
3332     [ab].out )
3333         # We found the default executable, but exeext='' is most
3334         # certainly right.
3335         break;;
3336     *.* )
3337         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3338         then :; else
3339            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3340         fi
3341         # We set ac_cv_exeext here because the later test for it is not
3342         # safe: cross compilers may not add the suffix if given an `-o'
3343         # argument, so we may need to know it at that point already.
3344         # Even if this section looks crufty: it has the advantage of
3345         # actually working.
3346         break;;
3347     * )
3348         break;;
3349   esac
3350 done
3351 test "$ac_cv_exeext" = no && ac_cv_exeext=
3352
3353 else
3354   ac_file=''
3355 fi
3356
3357 { echo "$as_me:$LINENO: result: $ac_file" >&5
3358 echo "${ECHO_T}$ac_file" >&6; }
3359 if test -z "$ac_file"; then
3360   echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3364 See \`config.log' for more details." >&5
3365 echo "$as_me: error: C compiler cannot create executables
3366 See \`config.log' for more details." >&2;}
3367    { (exit 77); exit 77; }; }
3368 fi
3369
3370 ac_exeext=$ac_cv_exeext
3371
3372 # Check that the compiler produces executables we can run.  If not, either
3373 # the compiler is broken, or we cross compile.
3374 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3375 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3376 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3377 # If not cross compiling, check that we can run a simple program.
3378 if test "$cross_compiling" != yes; then
3379   if { ac_try='./$ac_file'
3380   { (case "(($ac_try" in
3381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382   *) ac_try_echo=$ac_try;;
3383 esac
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385   (eval "$ac_try") 2>&5
3386   ac_status=$?
3387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388   (exit $ac_status); }; }; then
3389     cross_compiling=no
3390   else
3391     if test "$cross_compiling" = maybe; then
3392         cross_compiling=yes
3393     else
3394         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3395 If you meant to cross compile, use \`--host'.
3396 See \`config.log' for more details." >&5
3397 echo "$as_me: error: cannot run C compiled programs.
3398 If you meant to cross compile, use \`--host'.
3399 See \`config.log' for more details." >&2;}
3400    { (exit 1); exit 1; }; }
3401     fi
3402   fi
3403 fi
3404 { echo "$as_me:$LINENO: result: yes" >&5
3405 echo "${ECHO_T}yes" >&6; }
3406
3407 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3408 ac_clean_files=$ac_clean_files_save
3409 # Check that the compiler produces executables we can run.  If not, either
3410 # the compiler is broken, or we cross compile.
3411 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3412 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3413 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3414 echo "${ECHO_T}$cross_compiling" >&6; }
3415
3416 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3417 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3418 if { (ac_try="$ac_link"
3419 case "(($ac_try" in
3420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421   *) ac_try_echo=$ac_try;;
3422 esac
3423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424   (eval "$ac_link") 2>&5
3425   ac_status=$?
3426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427   (exit $ac_status); }; then
3428   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3429 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3430 # work properly (i.e., refer to `conftest.exe'), while it won't with
3431 # `rm'.
3432 for ac_file in conftest.exe conftest conftest.*; do
3433   test -f "$ac_file" || continue
3434   case $ac_file in
3435     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3436     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3437           break;;
3438     * ) break;;
3439   esac
3440 done
3441 else
3442   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3443 See \`config.log' for more details." >&5
3444 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3445 See \`config.log' for more details." >&2;}
3446    { (exit 1); exit 1; }; }
3447 fi
3448
3449 rm -f conftest$ac_cv_exeext
3450 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3451 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3452
3453 rm -f conftest.$ac_ext
3454 EXEEXT=$ac_cv_exeext
3455 ac_exeext=$EXEEXT
3456 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3457 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3458 if test "${ac_cv_objext+set}" = set; then
3459   echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461   cat >conftest.$ac_ext <<_ACEOF
3462 /* confdefs.h.  */
3463 _ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h.  */
3467
3468 int
3469 main ()
3470 {
3471
3472   ;
3473   return 0;
3474 }
3475 _ACEOF
3476 rm -f conftest.o conftest.obj
3477 if { (ac_try="$ac_compile"
3478 case "(($ac_try" in
3479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480   *) ac_try_echo=$ac_try;;
3481 esac
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483   (eval "$ac_compile") 2>&5
3484   ac_status=$?
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); }; then
3487   for ac_file in conftest.o conftest.obj conftest.*; do
3488   test -f "$ac_file" || continue;
3489   case $ac_file in
3490     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3491     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3492        break;;
3493   esac
3494 done
3495 else
3496   echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3498
3499 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3500 See \`config.log' for more details." >&5
3501 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3502 See \`config.log' for more details." >&2;}
3503    { (exit 1); exit 1; }; }
3504 fi
3505
3506 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3507 fi
3508 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3509 echo "${ECHO_T}$ac_cv_objext" >&6; }
3510 OBJEXT=$ac_cv_objext
3511 ac_objext=$OBJEXT
3512 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3513 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3514 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3515   echo $ECHO_N "(cached) $ECHO_C" >&6
3516 else
3517   cat >conftest.$ac_ext <<_ACEOF
3518 /* confdefs.h.  */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h.  */
3523
3524 int
3525 main ()
3526 {
3527 #ifndef __GNUC__
3528        choke me
3529 #endif
3530
3531   ;
3532   return 0;
3533 }
3534 _ACEOF
3535 rm -f conftest.$ac_objext
3536 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3543   ac_status=$?
3544   grep -v '^ *+' conftest.er1 >conftest.err
3545   rm -f conftest.er1
3546   cat conftest.err >&5
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); } && {
3549          test -z "$ac_c_werror_flag" ||
3550          test ! -s conftest.err
3551        } && test -s conftest.$ac_objext; then
3552   ac_compiler_gnu=yes
3553 else
3554   echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557         ac_compiler_gnu=no
3558 fi
3559
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3562
3563 fi
3564 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3565 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3566 GCC=`test $ac_compiler_gnu = yes && echo yes`
3567 ac_test_CFLAGS=${CFLAGS+set}
3568 ac_save_CFLAGS=$CFLAGS
3569 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3570 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3571 if test "${ac_cv_prog_cc_g+set}" = set; then
3572   echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574   ac_save_c_werror_flag=$ac_c_werror_flag
3575    ac_c_werror_flag=yes
3576    ac_cv_prog_cc_g=no
3577    CFLAGS="-g"
3578    cat >conftest.$ac_ext <<_ACEOF
3579 /* confdefs.h.  */
3580 _ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h.  */
3584
3585 int
3586 main ()
3587 {
3588
3589   ;
3590   return 0;
3591 }
3592 _ACEOF
3593 rm -f conftest.$ac_objext
3594 if { (ac_try="$ac_compile"
3595 case "(($ac_try" in
3596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597   *) ac_try_echo=$ac_try;;
3598 esac
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600   (eval "$ac_compile") 2>conftest.er1
3601   ac_status=$?
3602   grep -v '^ *+' conftest.er1 >conftest.err
3603   rm -f conftest.er1
3604   cat conftest.err >&5
3605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606   (exit $ac_status); } && {
3607          test -z "$ac_c_werror_flag" ||
3608          test ! -s conftest.err
3609        } && test -s conftest.$ac_objext; then
3610   ac_cv_prog_cc_g=yes
3611 else
3612   echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3614
3615         CFLAGS=""
3616       cat >conftest.$ac_ext <<_ACEOF
3617 /* confdefs.h.  */
3618 _ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h.  */
3622
3623 int
3624 main ()
3625 {
3626
3627   ;
3628   return 0;
3629 }
3630 _ACEOF
3631 rm -f conftest.$ac_objext
3632 if { (ac_try="$ac_compile"
3633 case "(($ac_try" in
3634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635   *) ac_try_echo=$ac_try;;
3636 esac
3637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3638   (eval "$ac_compile") 2>conftest.er1
3639   ac_status=$?
3640   grep -v '^ *+' conftest.er1 >conftest.err
3641   rm -f conftest.er1
3642   cat conftest.err >&5
3643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644   (exit $ac_status); } && {
3645          test -z "$ac_c_werror_flag" ||
3646          test ! -s conftest.err
3647        } && test -s conftest.$ac_objext; then
3648   :
3649 else
3650   echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3652
3653         ac_c_werror_flag=$ac_save_c_werror_flag
3654          CFLAGS="-g"
3655          cat >conftest.$ac_ext <<_ACEOF
3656 /* confdefs.h.  */
3657 _ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h.  */
3661
3662 int
3663 main ()
3664 {
3665
3666   ;
3667   return 0;
3668 }
3669 _ACEOF
3670 rm -f conftest.$ac_objext
3671 if { (ac_try="$ac_compile"
3672 case "(($ac_try" in
3673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674   *) ac_try_echo=$ac_try;;
3675 esac
3676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677   (eval "$ac_compile") 2>conftest.er1
3678   ac_status=$?
3679   grep -v '^ *+' conftest.er1 >conftest.err
3680   rm -f conftest.er1
3681   cat conftest.err >&5
3682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); } && {
3684          test -z "$ac_c_werror_flag" ||
3685          test ! -s conftest.err
3686        } && test -s conftest.$ac_objext; then
3687   ac_cv_prog_cc_g=yes
3688 else
3689   echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3691
3692
3693 fi
3694
3695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696 fi
3697
3698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699 fi
3700
3701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702    ac_c_werror_flag=$ac_save_c_werror_flag
3703 fi
3704 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3705 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3706 if test "$ac_test_CFLAGS" = set; then
3707   CFLAGS=$ac_save_CFLAGS
3708 elif test $ac_cv_prog_cc_g = yes; then
3709   if test "$GCC" = yes; then
3710     CFLAGS="-g -O2"
3711   else
3712     CFLAGS="-g"
3713   fi
3714 else
3715   if test "$GCC" = yes; then
3716     CFLAGS="-O2"
3717   else
3718     CFLAGS=
3719   fi
3720 fi
3721 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3722 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3723 if test "${ac_cv_prog_cc_c89+set}" = set; then
3724   echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726   ac_cv_prog_cc_c89=no
3727 ac_save_CC=$CC
3728 cat >conftest.$ac_ext <<_ACEOF
3729 /* confdefs.h.  */
3730 _ACEOF
3731 cat confdefs.h >>conftest.$ac_ext
3732 cat >>conftest.$ac_ext <<_ACEOF
3733 /* end confdefs.h.  */
3734 #include <stdarg.h>
3735 #include <stdio.h>
3736 #include <sys/types.h>
3737 #include <sys/stat.h>
3738 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3739 struct buf { int x; };
3740 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3741 static char *e (p, i)
3742      char **p;
3743      int i;
3744 {
3745   return p[i];
3746 }
3747 static char *f (char * (*g) (char **, int), char **p, ...)
3748 {
3749   char *s;
3750   va_list v;
3751   va_start (v,p);
3752   s = g (p, va_arg (v,int));
3753   va_end (v);
3754   return s;
3755 }
3756
3757 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3758    function prototypes and stuff, but not '\xHH' hex character constants.
3759    These don't provoke an error unfortunately, instead are silently treated
3760    as 'x'.  The following induces an error, until -std is added to get
3761    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3762    array size at least.  It's necessary to write '\x00'==0 to get something
3763    that's true only with -std.  */
3764 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3765
3766 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3767    inside strings and character constants.  */
3768 #define FOO(x) 'x'
3769 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3770
3771 int test (int i, double x);
3772 struct s1 {int (*f) (int a);};
3773 struct s2 {int (*f) (double a);};
3774 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3775 int argc;
3776 char **argv;
3777 int
3778 main ()
3779 {
3780 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3781   ;
3782   return 0;
3783 }
3784 _ACEOF
3785 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3786         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3787 do
3788   CC="$ac_save_CC $ac_arg"
3789   rm -f conftest.$ac_objext
3790 if { (ac_try="$ac_compile"
3791 case "(($ac_try" in
3792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793   *) ac_try_echo=$ac_try;;
3794 esac
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796   (eval "$ac_compile") 2>conftest.er1
3797   ac_status=$?
3798   grep -v '^ *+' conftest.er1 >conftest.err
3799   rm -f conftest.er1
3800   cat conftest.err >&5
3801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802   (exit $ac_status); } && {
3803          test -z "$ac_c_werror_flag" ||
3804          test ! -s conftest.err
3805        } && test -s conftest.$ac_objext; then
3806   ac_cv_prog_cc_c89=$ac_arg
3807 else
3808   echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3810
3811
3812 fi
3813
3814 rm -f core conftest.err conftest.$ac_objext
3815   test "x$ac_cv_prog_cc_c89" != "xno" && break
3816 done
3817 rm -f conftest.$ac_ext
3818 CC=$ac_save_CC
3819
3820 fi
3821 # AC_CACHE_VAL
3822 case "x$ac_cv_prog_cc_c89" in
3823   x)
3824     { echo "$as_me:$LINENO: result: none needed" >&5
3825 echo "${ECHO_T}none needed" >&6; } ;;
3826   xno)
3827     { echo "$as_me:$LINENO: result: unsupported" >&5
3828 echo "${ECHO_T}unsupported" >&6; } ;;
3829   *)
3830     CC="$CC $ac_cv_prog_cc_c89"
3831     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3832 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3833 esac
3834
3835
3836 ac_ext=c
3837 ac_cpp='$CPP $CPPFLAGS'
3838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841
3842 depcc="$CC"   am_compiler_list=
3843
3844 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3845 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3846 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3847   echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3850   # We make a subdir and do the tests there.  Otherwise we can end up
3851   # making bogus files that we don't know about and never remove.  For
3852   # instance it was reported that on HP-UX the gcc test will end up
3853   # making a dummy file named `D' -- because `-MD' means `put the output
3854   # in D'.
3855   mkdir conftest.dir
3856   # Copy depcomp to subdir because otherwise we won't find it if we're
3857   # using a relative directory.
3858   cp "$am_depcomp" conftest.dir
3859   cd conftest.dir
3860   # We will build objects and dependencies in a subdirectory because
3861   # it helps to detect inapplicable dependency modes.  For instance
3862   # both Tru64's cc and ICC support -MD to output dependencies as a
3863   # side effect of compilation, but ICC will put the dependencies in
3864   # the current directory while Tru64 will put them in the object
3865   # directory.
3866   mkdir sub
3867
3868   am_cv_CC_dependencies_compiler_type=none
3869   if test "$am_compiler_list" = ""; then
3870      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3871   fi
3872   for depmode in $am_compiler_list; do
3873     # Setup a source with many dependencies, because some compilers
3874     # like to wrap large dependency lists on column 80 (with \), and
3875     # we should not choose a depcomp mode which is confused by this.
3876     #
3877     # We need to recreate these files for each test, as the compiler may
3878     # overwrite some of them when testing with obscure command lines.
3879     # This happens at least with the AIX C compiler.
3880     : > sub/conftest.c
3881     for i in 1 2 3 4 5 6; do
3882       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3883       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3884       # Solaris 8's {/usr,}/bin/sh.
3885       touch sub/conftst$i.h
3886     done
3887     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3888
3889     case $depmode in
3890     nosideeffect)
3891       # after this tag, mechanisms are not by side-effect, so they'll
3892       # only be used when explicitly requested
3893       if test "x$enable_dependency_tracking" = xyes; then
3894         continue
3895       else
3896         break
3897       fi
3898       ;;
3899     none) break ;;
3900     esac
3901     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3902     # mode.  It turns out that the SunPro C++ compiler does not properly
3903     # handle `-M -o', and we need to detect this.
3904     if depmode=$depmode \
3905        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3906        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3907        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3908          >/dev/null 2>conftest.err &&
3909        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3910        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3911        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3912        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3913       # icc doesn't choke on unknown options, it will just issue warnings
3914       # or remarks (even with -Werror).  So we grep stderr for any message
3915       # that says an option was ignored or not supported.
3916       # When given -MP, icc 7.0 and 7.1 complain thusly:
3917       #   icc: Command line warning: ignoring option '-M'; no argument required
3918       # The diagnosis changed in icc 8.0:
3919       #   icc: Command line remark: option '-MP' not supported
3920       if (grep 'ignoring option' conftest.err ||
3921           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3922         am_cv_CC_dependencies_compiler_type=$depmode
3923         break
3924       fi
3925     fi
3926   done
3927
3928   cd ..
3929   rm -rf conftest.dir
3930 else
3931   am_cv_CC_dependencies_compiler_type=none
3932 fi
3933
3934 fi
3935 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3936 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3937 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3938
3939  if
3940   test "x$enable_dependency_tracking" != xno \
3941   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3942   am__fastdepCC_TRUE=
3943   am__fastdepCC_FALSE='#'
3944 else
3945   am__fastdepCC_TRUE='#'
3946   am__fastdepCC_FALSE=
3947 fi
3948
3949
3950 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3951 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3952 if test "${lt_cv_path_SED+set}" = set; then
3953   echo $ECHO_N "(cached) $ECHO_C" >&6
3954 else
3955   # Loop through the user's path and test for sed and gsed.
3956 # Then use that list of sed's as ones to test for truncation.
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH
3959 do
3960   IFS=$as_save_IFS
3961   test -z "$as_dir" && as_dir=.
3962   for lt_ac_prog in sed gsed; do
3963     for ac_exec_ext in '' $ac_executable_extensions; do
3964       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3965         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3966       fi
3967     done
3968   done
3969 done
3970 lt_ac_max=0
3971 lt_ac_count=0
3972 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3973 # along with /bin/sed that truncates output.
3974 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3975   test ! -f $lt_ac_sed && continue
3976   cat /dev/null > conftest.in
3977   lt_ac_count=0
3978   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3979   # Check for GNU sed and select it if it is found.
3980   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3981     lt_cv_path_SED=$lt_ac_sed
3982     break
3983   fi
3984   while true; do
3985     cat conftest.in conftest.in >conftest.tmp
3986     mv conftest.tmp conftest.in
3987     cp conftest.in conftest.nl
3988     echo >>conftest.nl
3989     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3990     cmp -s conftest.out conftest.nl || break
3991     # 10000 chars as input seems more than enough
3992     test $lt_ac_count -gt 10 && break
3993     lt_ac_count=`expr $lt_ac_count + 1`
3994     if test $lt_ac_count -gt $lt_ac_max; then
3995       lt_ac_max=$lt_ac_count
3996       lt_cv_path_SED=$lt_ac_sed
3997     fi
3998   done
3999 done
4000
4001 fi
4002
4003 SED=$lt_cv_path_SED
4004 { echo "$as_me:$LINENO: result: $SED" >&5
4005 echo "${ECHO_T}$SED" >&6; }
4006
4007 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4008 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4009 if test "${ac_cv_path_GREP+set}" = set; then
4010   echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012   # Extract the first word of "grep ggrep" to use in msg output
4013 if test -z "$GREP"; then
4014 set dummy grep ggrep; ac_prog_name=$2
4015 if test "${ac_cv_path_GREP+set}" = set; then
4016   echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018   ac_path_GREP_found=false
4019 # Loop through the user's path and test for each of PROGNAME-LIST
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4022 do
4023   IFS=$as_save_IFS
4024   test -z "$as_dir" && as_dir=.
4025   for ac_prog in grep ggrep; do
4026   for ac_exec_ext in '' $ac_executable_extensions; do
4027     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4028     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4029     # Check for GNU ac_path_GREP and select it if it is found.
4030   # Check for GNU $ac_path_GREP
4031 case `"$ac_path_GREP" --version 2>&1` in
4032 *GNU*)
4033   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4034 *)
4035   ac_count=0
4036   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4037   while :
4038   do
4039     cat "conftest.in" "conftest.in" >"conftest.tmp"
4040     mv "conftest.tmp" "conftest.in"
4041     cp "conftest.in" "conftest.nl"
4042     echo 'GREP' >> "conftest.nl"
4043     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4044     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4045     ac_count=`expr $ac_count + 1`
4046     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4047       # Best one so far, save it but keep looking for a better one
4048       ac_cv_path_GREP="$ac_path_GREP"
4049       ac_path_GREP_max=$ac_count
4050     fi
4051     # 10*(2^10) chars as input seems more than enough
4052     test $ac_count -gt 10 && break
4053   done
4054   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4055 esac
4056
4057
4058     $ac_path_GREP_found && break 3
4059   done
4060 done
4061
4062 done
4063 IFS=$as_save_IFS
4064
4065
4066 fi
4067
4068 GREP="$ac_cv_path_GREP"
4069 if test -z "$GREP"; then
4070   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4071 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4072    { (exit 1); exit 1; }; }
4073 fi
4074
4075 else
4076   ac_cv_path_GREP=$GREP
4077 fi
4078
4079
4080 fi
4081 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4082 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4083  GREP="$ac_cv_path_GREP"
4084
4085
4086 { echo "$as_me:$LINENO: checking for egrep" >&5
4087 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4088 if test "${ac_cv_path_EGREP+set}" = set; then
4089   echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4092    then ac_cv_path_EGREP="$GREP -E"
4093    else
4094      # Extract the first word of "egrep" to use in msg output
4095 if test -z "$EGREP"; then
4096 set dummy egrep; ac_prog_name=$2
4097 if test "${ac_cv_path_EGREP+set}" = set; then
4098   echo $ECHO_N "(cached) $ECHO_C" >&6
4099 else
4100   ac_path_EGREP_found=false
4101 # Loop through the user's path and test for each of PROGNAME-LIST
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4104 do
4105   IFS=$as_save_IFS
4106   test -z "$as_dir" && as_dir=.
4107   for ac_prog in egrep; do
4108   for ac_exec_ext in '' $ac_executable_extensions; do
4109     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4110     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4111     # Check for GNU ac_path_EGREP and select it if it is found.
4112   # Check for GNU $ac_path_EGREP
4113 case `"$ac_path_EGREP" --version 2>&1` in
4114 *GNU*)
4115   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4116 *)
4117   ac_count=0
4118   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4119   while :
4120   do
4121     cat "conftest.in" "conftest.in" >"conftest.tmp"
4122     mv "conftest.tmp" "conftest.in"
4123     cp "conftest.in" "conftest.nl"
4124     echo 'EGREP' >> "conftest.nl"
4125     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4126     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4127     ac_count=`expr $ac_count + 1`
4128     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4129       # Best one so far, save it but keep looking for a better one
4130       ac_cv_path_EGREP="$ac_path_EGREP"
4131       ac_path_EGREP_max=$ac_count
4132     fi
4133     # 10*(2^10) chars as input seems more than enough
4134     test $ac_count -gt 10 && break
4135   done
4136   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4137 esac
4138
4139
4140     $ac_path_EGREP_found && break 3
4141   done
4142 done
4143
4144 done
4145 IFS=$as_save_IFS
4146
4147
4148 fi
4149
4150 EGREP="$ac_cv_path_EGREP"
4151 if test -z "$EGREP"; then
4152   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4153 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4154    { (exit 1); exit 1; }; }
4155 fi
4156
4157 else
4158   ac_cv_path_EGREP=$EGREP
4159 fi
4160
4161
4162    fi
4163 fi
4164 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4165 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4166  EGREP="$ac_cv_path_EGREP"
4167
4168
4169
4170 # Check whether --with-gnu-ld was given.
4171 if test "${with_gnu_ld+set}" = set; then
4172   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4173 else
4174   with_gnu_ld=no
4175 fi
4176
4177 ac_prog=ld
4178 if test "$GCC" = yes; then
4179   # Check if gcc -print-prog-name=ld gives a path.
4180   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4181 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4182   case $host in
4183   *-*-mingw*)
4184     # gcc leaves a trailing carriage return which upsets mingw
4185     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4186   *)
4187     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4188   esac
4189   case $ac_prog in
4190     # Accept absolute paths.
4191     [\\/]* | ?:[\\/]*)
4192       re_direlt='/[^/][^/]*/\.\./'
4193       # Canonicalize the pathname of ld
4194       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4195       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4196         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4197       done
4198       test -z "$LD" && LD="$ac_prog"
4199       ;;
4200   "")
4201     # If it fails, then pretend we aren't using GCC.
4202     ac_prog=ld
4203     ;;
4204   *)
4205     # If it is relative, then search for the first ld in PATH.
4206     with_gnu_ld=unknown
4207     ;;
4208   esac
4209 elif test "$with_gnu_ld" = yes; then
4210   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4211 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4212 else
4213   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4214 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4215 fi
4216 if test "${lt_cv_path_LD+set}" = set; then
4217   echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219   if test -z "$LD"; then
4220   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4221   for ac_dir in $PATH; do
4222     IFS="$lt_save_ifs"
4223     test -z "$ac_dir" && ac_dir=.
4224     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4225       lt_cv_path_LD="$ac_dir/$ac_prog"
4226       # Check to see if the program is GNU ld.  I'd rather use --version,
4227       # but apparently some variants of GNU ld only accept -v.
4228       # Break only if it was the GNU/non-GNU ld that we prefer.
4229       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4230       *GNU* | *'with BFD'*)
4231         test "$with_gnu_ld" != no && break
4232         ;;
4233       *)
4234         test "$with_gnu_ld" != yes && break
4235         ;;
4236       esac
4237     fi
4238   done
4239   IFS="$lt_save_ifs"
4240 else
4241   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4242 fi
4243 fi
4244
4245 LD="$lt_cv_path_LD"
4246 if test -n "$LD"; then
4247   { echo "$as_me:$LINENO: result: $LD" >&5
4248 echo "${ECHO_T}$LD" >&6; }
4249 else
4250   { echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6; }
4252 fi
4253 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4254 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4255    { (exit 1); exit 1; }; }
4256 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4257 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4258 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4259   echo $ECHO_N "(cached) $ECHO_C" >&6
4260 else
4261   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4262 case `$LD -v 2>&1 </dev/null` in
4263 *GNU* | *'with BFD'*)
4264   lt_cv_prog_gnu_ld=yes
4265   ;;
4266 *)
4267   lt_cv_prog_gnu_ld=no
4268   ;;
4269 esac
4270 fi
4271 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4272 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4273 with_gnu_ld=$lt_cv_prog_gnu_ld
4274
4275
4276 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4277 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4278 if test "${lt_cv_ld_reload_flag+set}" = set; then
4279   echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281   lt_cv_ld_reload_flag='-r'
4282 fi
4283 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4284 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4285 reload_flag=$lt_cv_ld_reload_flag
4286 case $reload_flag in
4287 "" | " "*) ;;
4288 *) reload_flag=" $reload_flag" ;;
4289 esac
4290 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4291 case $host_os in
4292   darwin*)
4293     if test "$GCC" = yes; then
4294       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4295     else
4296       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4297     fi
4298     ;;
4299 esac
4300
4301 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4302 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4303 if test "${lt_cv_path_NM+set}" = set; then
4304   echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306   if test -n "$NM"; then
4307   # Let the user override the test.
4308   lt_cv_path_NM="$NM"
4309 else
4310   lt_nm_to_check="${ac_tool_prefix}nm"
4311   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4312     lt_nm_to_check="$lt_nm_to_check nm"
4313   fi
4314   for lt_tmp_nm in $lt_nm_to_check; do
4315     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4316     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4317       IFS="$lt_save_ifs"
4318       test -z "$ac_dir" && ac_dir=.
4319       tmp_nm="$ac_dir/$lt_tmp_nm"
4320       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4321         # Check to see if the nm accepts a BSD-compat flag.
4322         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4323         #   nm: unknown option "B" ignored
4324         # Tru64's nm complains that /dev/null is an invalid object file
4325         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4326         */dev/null* | *'Invalid file or object type'*)
4327           lt_cv_path_NM="$tmp_nm -B"
4328           break
4329           ;;
4330         *)
4331           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4332           */dev/null*)
4333             lt_cv_path_NM="$tmp_nm -p"
4334             break
4335             ;;
4336           *)
4337             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4338             continue # so that we can try to find one that supports BSD flags
4339             ;;
4340           esac
4341           ;;
4342         esac
4343       fi
4344     done
4345     IFS="$lt_save_ifs"
4346   done
4347   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4348 fi
4349 fi
4350 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4351 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4352 NM="$lt_cv_path_NM"
4353
4354 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4355 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4356 LN_S=$as_ln_s
4357 if test "$LN_S" = "ln -s"; then
4358   { echo "$as_me:$LINENO: result: yes" >&5
4359 echo "${ECHO_T}yes" >&6; }
4360 else
4361   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4362 echo "${ECHO_T}no, using $LN_S" >&6; }
4363 fi
4364
4365 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4366 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4367 if test "${lt_cv_deplibs_check_method+set}" = set; then
4368   echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370   lt_cv_file_magic_cmd='$MAGIC_CMD'
4371 lt_cv_file_magic_test_file=
4372 lt_cv_deplibs_check_method='unknown'
4373 # Need to set the preceding variable on all platforms that support
4374 # interlibrary dependencies.
4375 # 'none' -- dependencies not supported.
4376 # `unknown' -- same as none, but documents that we really don't know.
4377 # 'pass_all' -- all dependencies passed with no checks.
4378 # 'test_compile' -- check by making test program.
4379 # 'file_magic [[regex]]' -- check by looking for files in library path
4380 # which responds to the $file_magic_cmd with a given extended regex.
4381 # If you have `file' or equivalent on your system and you're not sure
4382 # whether `pass_all' will *always* work, you probably want this one.
4383
4384 case $host_os in
4385 aix4* | aix5*)
4386   lt_cv_deplibs_check_method=pass_all
4387   ;;
4388
4389 beos*)
4390   lt_cv_deplibs_check_method=pass_all
4391   ;;
4392
4393 bsdi[45]*)
4394   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4395   lt_cv_file_magic_cmd='/usr/bin/file -L'
4396   lt_cv_file_magic_test_file=/shlib/libc.so
4397   ;;
4398
4399 cygwin*)
4400   # func_win32_libid is a shell function defined in ltmain.sh
4401   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4402   lt_cv_file_magic_cmd='func_win32_libid'
4403   ;;
4404
4405 mingw* | pw32*)
4406   # Base MSYS/MinGW do not provide the 'file' command needed by
4407   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4408   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4409   lt_cv_file_magic_cmd='$OBJDUMP -f'
4410   ;;
4411
4412 darwin* | rhapsody*)
4413   lt_cv_deplibs_check_method=pass_all
4414   ;;
4415
4416 freebsd* | dragonfly*)
4417   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4418     case $host_cpu in
4419     i*86 )
4420       # Not sure whether the presence of OpenBSD here was a mistake.
4421       # Let's accept both of them until this is cleared up.
4422       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4423       lt_cv_file_magic_cmd=/usr/bin/file
4424       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4425       ;;
4426     esac
4427   else
4428     lt_cv_deplibs_check_method=pass_all
4429   fi
4430   ;;
4431
4432 gnu*)
4433   lt_cv_deplibs_check_method=pass_all
4434   ;;
4435
4436 hpux10.20* | hpux11*)
4437   lt_cv_file_magic_cmd=/usr/bin/file
4438   case $host_cpu in
4439   ia64*)
4440     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4441     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4442     ;;
4443   hppa*64*)
4444     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]'
4445     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4446     ;;
4447   *)
4448     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4449     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4450     ;;
4451   esac
4452   ;;
4453
4454 interix3*)
4455   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4456   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4457   ;;
4458
4459 irix5* | irix6* | nonstopux*)
4460   case $LD in
4461   *-32|*"-32 ") libmagic=32-bit;;
4462   *-n32|*"-n32 ") libmagic=N32;;
4463   *-64|*"-64 ") libmagic=64-bit;;
4464   *) libmagic=never-match;;
4465   esac
4466   lt_cv_deplibs_check_method=pass_all
4467   ;;
4468
4469 # This must be Linux ELF.
4470 linux* | k*bsd*-gnu)
4471   lt_cv_deplibs_check_method=pass_all
4472   ;;
4473
4474 netbsd* | netbsdelf*-gnu)
4475   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4476     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4477   else
4478     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4479   fi
4480   ;;
4481
4482 newos6*)
4483   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4484   lt_cv_file_magic_cmd=/usr/bin/file
4485   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4486   ;;
4487
4488 nto-qnx*)
4489   lt_cv_deplibs_check_method=unknown
4490   ;;
4491
4492 openbsd*)
4493   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4494     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4495   else
4496     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4497   fi
4498   ;;
4499
4500 osf3* | osf4* | osf5*)
4501   lt_cv_deplibs_check_method=pass_all
4502   ;;
4503
4504 solaris*)
4505   lt_cv_deplibs_check_method=pass_all
4506   ;;
4507
4508 sysv4 | sysv4.3*)
4509   case $host_vendor in
4510   motorola)
4511     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]'
4512     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4513     ;;
4514   ncr)
4515     lt_cv_deplibs_check_method=pass_all
4516     ;;
4517   sequent)
4518     lt_cv_file_magic_cmd='/bin/file'
4519     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4520     ;;
4521   sni)
4522     lt_cv_file_magic_cmd='/bin/file'
4523     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4524     lt_cv_file_magic_test_file=/lib/libc.so
4525     ;;
4526   siemens)
4527     lt_cv_deplibs_check_method=pass_all
4528     ;;
4529   pc)
4530     lt_cv_deplibs_check_method=pass_all
4531     ;;
4532   esac
4533   ;;
4534
4535 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4536   lt_cv_deplibs_check_method=pass_all
4537   ;;
4538 esac
4539
4540 fi
4541 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4542 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4543 file_magic_cmd=$lt_cv_file_magic_cmd
4544 deplibs_check_method=$lt_cv_deplibs_check_method
4545 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4546
4547
4548
4549
4550 # If no C compiler was specified, use CC.
4551 LTCC=${LTCC-"$CC"}
4552
4553 # If no C compiler flags were specified, use CFLAGS.
4554 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4555
4556 # Allow CC to be a program name with arguments.
4557 compiler=$CC
4558
4559
4560 # Check whether --enable-libtool-lock was given.
4561 if test "${enable_libtool_lock+set}" = set; then
4562   enableval=$enable_libtool_lock;
4563 fi
4564
4565 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4566
4567 # Some flags need to be propagated to the compiler or linker for good
4568 # libtool support.
4569 case $host in
4570 ia64-*-hpux*)
4571   # Find out which ABI we are using.
4572   echo 'int i;' > conftest.$ac_ext
4573   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4574   (eval $ac_compile) 2>&5
4575   ac_status=$?
4576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577   (exit $ac_status); }; then
4578     case `/usr/bin/file conftest.$ac_objext` in
4579     *ELF-32*)
4580       HPUX_IA64_MODE="32"
4581       ;;
4582     *ELF-64*)
4583       HPUX_IA64_MODE="64"
4584       ;;
4585     esac
4586   fi
4587   rm -rf conftest*
4588   ;;
4589 *-*-irix6*)
4590   # Find out which ABI we are using.
4591   echo '#line 4591 "configure"' > conftest.$ac_ext
4592   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593   (eval $ac_compile) 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); }; then
4597    if test "$lt_cv_prog_gnu_ld" = yes; then
4598     case `/usr/bin/file conftest.$ac_objext` in
4599     *32-bit*)
4600       LD="${LD-ld} -melf32bsmip"
4601       ;;
4602     *N32*)
4603       LD="${LD-ld} -melf32bmipn32"
4604       ;;
4605     *64-bit*)
4606       LD="${LD-ld} -melf64bmip"
4607       ;;
4608     esac
4609    else
4610     case `/usr/bin/file conftest.$ac_objext` in
4611     *32-bit*)
4612       LD="${LD-ld} -32"
4613       ;;
4614     *N32*)
4615       LD="${LD-ld} -n32"
4616       ;;
4617     *64-bit*)
4618       LD="${LD-ld} -64"
4619       ;;
4620     esac
4621    fi
4622   fi
4623   rm -rf conftest*
4624   ;;
4625
4626 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4627   # Find out which ABI we are using.
4628   echo 'int i;' > conftest.$ac_ext
4629   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4630   (eval $ac_compile) 2>&5
4631   ac_status=$?
4632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633   (exit $ac_status); }; then
4634     case `/usr/bin/file conftest.o` in
4635     *32-bit*)
4636       case $host in
4637         x86_64-*linux*)
4638           LD="${LD-ld} -m elf_i386"
4639           ;;
4640         ppc64-*linux*|powerpc64-*linux*)
4641           LD="${LD-ld} -m elf32ppclinux"
4642           ;;
4643         s390x-*linux*)
4644           LD="${LD-ld} -m elf_s390"
4645           ;;
4646         sparc64-*linux*)
4647           LD="${LD-ld} -m elf32_sparc"
4648           ;;
4649       esac
4650       ;;
4651     *64-bit*)
4652       case $host in
4653         x86_64-*linux*)
4654           LD="${LD-ld} -m elf_x86_64"
4655           ;;
4656         ppc*-*linux*|powerpc*-*linux*)
4657           LD="${LD-ld} -m elf64ppc"
4658           ;;
4659         s390*-*linux*)
4660           LD="${LD-ld} -m elf64_s390"
4661           ;;
4662         sparc*-*linux*)
4663           LD="${LD-ld} -m elf64_sparc"
4664           ;;
4665       esac
4666       ;;
4667     esac
4668   fi
4669   rm -rf conftest*
4670   ;;
4671
4672 *-*-sco3.2v5*)
4673   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4674   SAVE_CFLAGS="$CFLAGS"
4675   CFLAGS="$CFLAGS -belf"
4676   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4677 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4678 if test "${lt_cv_cc_needs_belf+set}" = set; then
4679   echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681   ac_ext=c
4682 ac_cpp='$CPP $CPPFLAGS'
4683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4686
4687      cat >conftest.$ac_ext <<_ACEOF
4688 /* confdefs.h.  */
4689 _ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h.  */
4693
4694 int
4695 main ()
4696 {
4697
4698   ;
4699   return 0;
4700 }
4701 _ACEOF
4702 rm -f conftest.$ac_objext conftest$ac_exeext
4703 if { (ac_try="$ac_link"
4704 case "(($ac_try" in
4705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706   *) ac_try_echo=$ac_try;;
4707 esac
4708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4709   (eval "$ac_link") 2>conftest.er1
4710   ac_status=$?
4711   grep -v '^ *+' conftest.er1 >conftest.err
4712   rm -f conftest.er1
4713   cat conftest.err >&5
4714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715   (exit $ac_status); } && {
4716          test -z "$ac_c_werror_flag" ||
4717          test ! -s conftest.err
4718        } && test -s conftest$ac_exeext &&
4719        $as_test_x conftest$ac_exeext; then
4720   lt_cv_cc_needs_belf=yes
4721 else
4722   echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4724
4725         lt_cv_cc_needs_belf=no
4726 fi
4727
4728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4729       conftest$ac_exeext conftest.$ac_ext
4730      ac_ext=c
4731 ac_cpp='$CPP $CPPFLAGS'
4732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4735
4736 fi
4737 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4738 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4739   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4740     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4741     CFLAGS="$SAVE_CFLAGS"
4742   fi
4743   ;;
4744 sparc*-*solaris*)
4745   # Find out which ABI we are using.
4746   echo 'int i;' > conftest.$ac_ext
4747   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4748   (eval $ac_compile) 2>&5
4749   ac_status=$?
4750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); }; then
4752     case `/usr/bin/file conftest.o` in
4753     *64-bit*)
4754       case $lt_cv_prog_gnu_ld in
4755       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4756       *)    LD="${LD-ld} -64" ;;
4757       esac
4758       ;;
4759     esac
4760   fi
4761   rm -rf conftest*
4762   ;;
4763
4764 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4765   if test -n "$ac_tool_prefix"; then
4766   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4767 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4770 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4771   echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773   if test -n "$DLLTOOL"; then
4774   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4775 else
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4778 do
4779   IFS=$as_save_IFS
4780   test -z "$as_dir" && as_dir=.
4781   for ac_exec_ext in '' $ac_executable_extensions; do
4782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4783     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4785     break 2
4786   fi
4787 done
4788 done
4789 IFS=$as_save_IFS
4790
4791 fi
4792 fi
4793 DLLTOOL=$ac_cv_prog_DLLTOOL
4794 if test -n "$DLLTOOL"; then
4795   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4796 echo "${ECHO_T}$DLLTOOL" >&6; }
4797 else
4798   { echo "$as_me:$LINENO: result: no" >&5
4799 echo "${ECHO_T}no" >&6; }
4800 fi
4801
4802
4803 fi
4804 if test -z "$ac_cv_prog_DLLTOOL"; then
4805   ac_ct_DLLTOOL=$DLLTOOL
4806   # Extract the first word of "dlltool", so it can be a program name with args.
4807 set dummy dlltool; ac_word=$2
4808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4810 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4811   echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813   if test -n "$ac_ct_DLLTOOL"; then
4814   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4815 else
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4818 do
4819   IFS=$as_save_IFS
4820   test -z "$as_dir" && as_dir=.
4821   for ac_exec_ext in '' $ac_executable_extensions; do
4822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825     break 2
4826   fi
4827 done
4828 done
4829 IFS=$as_save_IFS
4830
4831 fi
4832 fi
4833 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4834 if test -n "$ac_ct_DLLTOOL"; then
4835   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4836 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4837 else
4838   { echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6; }
4840 fi
4841
4842   if test "x$ac_ct_DLLTOOL" = x; then
4843     DLLTOOL="false"
4844   else
4845     case $cross_compiling:$ac_tool_warned in
4846 yes:)
4847 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4848 whose name does not start with the host triplet.  If you think this
4849 configuration is useful to you, please write to autoconf@gnu.org." >&5
4850 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4851 whose name does not start with the host triplet.  If you think this
4852 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4853 ac_tool_warned=yes ;;
4854 esac
4855     DLLTOOL=$ac_ct_DLLTOOL
4856   fi
4857 else
4858   DLLTOOL="$ac_cv_prog_DLLTOOL"
4859 fi
4860
4861   if test -n "$ac_tool_prefix"; then
4862   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4863 set dummy ${ac_tool_prefix}as; ac_word=$2
4864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4866 if test "${ac_cv_prog_AS+set}" = set; then
4867   echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869   if test -n "$AS"; then
4870   ac_cv_prog_AS="$AS" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875   IFS=$as_save_IFS
4876   test -z "$as_dir" && as_dir=.
4877   for ac_exec_ext in '' $ac_executable_extensions; do
4878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4879     ac_cv_prog_AS="${ac_tool_prefix}as"
4880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881     break 2
4882   fi
4883 done
4884 done
4885 IFS=$as_save_IFS
4886
4887 fi
4888 fi
4889 AS=$ac_cv_prog_AS
4890 if test -n "$AS"; then
4891   { echo "$as_me:$LINENO: result: $AS" >&5
4892 echo "${ECHO_T}$AS" >&6; }
4893 else
4894   { echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6; }
4896 fi
4897
4898
4899 fi
4900 if test -z "$ac_cv_prog_AS"; then
4901   ac_ct_AS=$AS
4902   # Extract the first word of "as", so it can be a program name with args.
4903 set dummy as; ac_word=$2
4904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4906 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4907   echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909   if test -n "$ac_ct_AS"; then
4910   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4911 else
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4914 do
4915   IFS=$as_save_IFS
4916   test -z "$as_dir" && as_dir=.
4917   for ac_exec_ext in '' $ac_executable_extensions; do
4918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919     ac_cv_prog_ac_ct_AS="as"
4920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921     break 2
4922   fi
4923 done
4924 done
4925 IFS=$as_save_IFS
4926
4927 fi
4928 fi
4929 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4930 if test -n "$ac_ct_AS"; then
4931   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4932 echo "${ECHO_T}$ac_ct_AS" >&6; }
4933 else
4934   { echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6; }
4936 fi
4937
4938   if test "x$ac_ct_AS" = x; then
4939     AS="false"
4940   else
4941     case $cross_compiling:$ac_tool_warned in
4942 yes:)
4943 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4944 whose name does not start with the host triplet.  If you think this
4945 configuration is useful to you, please write to autoconf@gnu.org." >&5
4946 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4947 whose name does not start with the host triplet.  If you think this
4948 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4949 ac_tool_warned=yes ;;
4950 esac
4951     AS=$ac_ct_AS
4952   fi
4953 else
4954   AS="$ac_cv_prog_AS"
4955 fi
4956
4957   if test -n "$ac_tool_prefix"; then
4958   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4959 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4962 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4963   echo $ECHO_N "(cached) $ECHO_C" >&6
4964 else
4965   if test -n "$OBJDUMP"; then
4966   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4967 else
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 for as_dir in $PATH
4970 do
4971   IFS=$as_save_IFS
4972   test -z "$as_dir" && as_dir=.
4973   for ac_exec_ext in '' $ac_executable_extensions; do
4974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4975     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4977     break 2
4978   fi
4979 done
4980 done
4981 IFS=$as_save_IFS
4982
4983 fi
4984 fi
4985 OBJDUMP=$ac_cv_prog_OBJDUMP
4986 if test -n "$OBJDUMP"; then
4987   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4988 echo "${ECHO_T}$OBJDUMP" >&6; }
4989 else
4990   { echo "$as_me:$LINENO: result: no" >&5
4991 echo "${ECHO_T}no" >&6; }
4992 fi
4993
4994
4995 fi
4996 if test -z "$ac_cv_prog_OBJDUMP"; then
4997   ac_ct_OBJDUMP=$OBJDUMP
4998   # Extract the first word of "objdump", so it can be a program name with args.
4999 set dummy objdump; ac_word=$2
5000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5002 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5003   echo $ECHO_N "(cached) $ECHO_C" >&6
5004 else
5005   if test -n "$ac_ct_OBJDUMP"; then
5006   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5007 else
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5010 do
5011   IFS=$as_save_IFS
5012   test -z "$as_dir" && as_dir=.
5013   for ac_exec_ext in '' $ac_executable_extensions; do
5014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5017     break 2
5018   fi
5019 done
5020 done
5021 IFS=$as_save_IFS
5022
5023 fi
5024 fi
5025 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5026 if test -n "$ac_ct_OBJDUMP"; then
5027   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5028 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5029 else
5030   { echo "$as_me:$LINENO: result: no" >&5
5031 echo "${ECHO_T}no" >&6; }
5032 fi
5033
5034   if test "x$ac_ct_OBJDUMP" = x; then
5035     OBJDUMP="false"
5036   else
5037     case $cross_compiling:$ac_tool_warned in
5038 yes:)
5039 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5040 whose name does not start with the host triplet.  If you think this
5041 configuration is useful to you, please write to autoconf@gnu.org." >&5
5042 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5043 whose name does not start with the host triplet.  If you think this
5044 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5045 ac_tool_warned=yes ;;
5046 esac
5047     OBJDUMP=$ac_ct_OBJDUMP
5048   fi
5049 else
5050   OBJDUMP="$ac_cv_prog_OBJDUMP"
5051 fi
5052
5053   ;;
5054
5055 esac
5056
5057 need_locks="$enable_libtool_lock"
5058
5059
5060 ac_ext=c
5061 ac_cpp='$CPP $CPPFLAGS'
5062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5065 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5066 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5067 # On Suns, sometimes $CPP names a directory.
5068 if test -n "$CPP" && test -d "$CPP"; then
5069   CPP=
5070 fi
5071 if test -z "$CPP"; then
5072   if test "${ac_cv_prog_CPP+set}" = set; then
5073   echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075       # Double quotes because CPP needs to be expanded
5076     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5077     do
5078       ac_preproc_ok=false
5079 for ac_c_preproc_warn_flag in '' yes
5080 do
5081   # Use a header file that comes with gcc, so configuring glibc
5082   # with a fresh cross-compiler works.
5083   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084   # <limits.h> exists even on freestanding compilers.
5085   # On the NeXT, cc -E runs the code through the compiler's parser,
5086   # not just through cpp. "Syntax error" is here to catch this case.
5087   cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h.  */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h.  */
5093 #ifdef __STDC__
5094 # include <limits.h>
5095 #else
5096 # include <assert.h>
5097 #endif
5098                      Syntax error
5099 _ACEOF
5100 if { (ac_try="$ac_cpp conftest.$ac_ext"
5101 case "(($ac_try" in
5102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103   *) ac_try_echo=$ac_try;;
5104 esac
5105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5107   ac_status=$?
5108   grep -v '^ *+' conftest.er1 >conftest.err
5109   rm -f conftest.er1
5110   cat conftest.err >&5
5111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112   (exit $ac_status); } >/dev/null && {
5113          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5114          test ! -s conftest.err
5115        }; then
5116   :
5117 else
5118   echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5120
5121   # Broken: fails on valid input.
5122 continue
5123 fi
5124
5125 rm -f conftest.err conftest.$ac_ext
5126
5127   # OK, works on sane cases.  Now check whether nonexistent headers
5128   # can be detected and how.
5129   cat >conftest.$ac_ext <<_ACEOF
5130 /* confdefs.h.  */
5131 _ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h.  */
5135 #include <ac_nonexistent.h>
5136 _ACEOF
5137 if { (ac_try="$ac_cpp conftest.$ac_ext"
5138 case "(($ac_try" in
5139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140   *) ac_try_echo=$ac_try;;
5141 esac
5142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5143   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5144   ac_status=$?
5145   grep -v '^ *+' conftest.er1 >conftest.err
5146   rm -f conftest.er1
5147   cat conftest.err >&5
5148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149   (exit $ac_status); } >/dev/null && {
5150          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5151          test ! -s conftest.err
5152        }; then
5153   # Broken: success on invalid input.
5154 continue
5155 else
5156   echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5158
5159   # Passes both tests.
5160 ac_preproc_ok=:
5161 break
5162 fi
5163
5164 rm -f conftest.err conftest.$ac_ext
5165
5166 done
5167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5168 rm -f conftest.err conftest.$ac_ext
5169 if $ac_preproc_ok; then
5170   break
5171 fi
5172
5173     done
5174     ac_cv_prog_CPP=$CPP
5175
5176 fi
5177   CPP=$ac_cv_prog_CPP
5178 else
5179   ac_cv_prog_CPP=$CPP
5180 fi
5181 { echo "$as_me:$LINENO: result: $CPP" >&5
5182 echo "${ECHO_T}$CPP" >&6; }
5183 ac_preproc_ok=false
5184 for ac_c_preproc_warn_flag in '' yes
5185 do
5186   # Use a header file that comes with gcc, so configuring glibc
5187   # with a fresh cross-compiler works.
5188   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5189   # <limits.h> exists even on freestanding compilers.
5190   # On the NeXT, cc -E runs the code through the compiler's parser,
5191   # not just through cpp. "Syntax error" is here to catch this case.
5192   cat >conftest.$ac_ext <<_ACEOF
5193 /* confdefs.h.  */
5194 _ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h.  */
5198 #ifdef __STDC__
5199 # include <limits.h>
5200 #else
5201 # include <assert.h>
5202 #endif
5203                      Syntax error
5204 _ACEOF
5205 if { (ac_try="$ac_cpp conftest.$ac_ext"
5206 case "(($ac_try" in
5207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208   *) ac_try_echo=$ac_try;;
5209 esac
5210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5211   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5212   ac_status=$?
5213   grep -v '^ *+' conftest.er1 >conftest.err
5214   rm -f conftest.er1
5215   cat conftest.err >&5
5216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); } >/dev/null && {
5218          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5219          test ! -s conftest.err
5220        }; then
5221   :
5222 else
5223   echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5225
5226   # Broken: fails on valid input.
5227 continue
5228 fi
5229
5230 rm -f conftest.err conftest.$ac_ext
5231
5232   # OK, works on sane cases.  Now check whether nonexistent headers
5233   # can be detected and how.
5234   cat >conftest.$ac_ext <<_ACEOF
5235 /* confdefs.h.  */
5236 _ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h.  */
5240 #include <ac_nonexistent.h>
5241 _ACEOF
5242 if { (ac_try="$ac_cpp conftest.$ac_ext"
5243 case "(($ac_try" in
5244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245   *) ac_try_echo=$ac_try;;
5246 esac
5247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5249   ac_status=$?
5250   grep -v '^ *+' conftest.er1 >conftest.err
5251   rm -f conftest.er1
5252   cat conftest.err >&5
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); } >/dev/null && {
5255          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5256          test ! -s conftest.err
5257        }; then
5258   # Broken: success on invalid input.
5259 continue
5260 else
5261   echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5263
5264   # Passes both tests.
5265 ac_preproc_ok=:
5266 break
5267 fi
5268
5269 rm -f conftest.err conftest.$ac_ext
5270
5271 done
5272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5273 rm -f conftest.err conftest.$ac_ext
5274 if $ac_preproc_ok; then
5275   :
5276 else
5277   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5278 See \`config.log' for more details." >&5
5279 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5280 See \`config.log' for more details." >&2;}
5281    { (exit 1); exit 1; }; }
5282 fi
5283
5284 ac_ext=c
5285 ac_cpp='$CPP $CPPFLAGS'
5286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5289
5290
5291 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5292 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5293 if test "${ac_cv_header_stdc+set}" = set; then
5294   echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296   cat >conftest.$ac_ext <<_ACEOF
5297 /* confdefs.h.  */
5298 _ACEOF
5299 cat confdefs.h >>conftest.$ac_ext
5300 cat >>conftest.$ac_ext <<_ACEOF
5301 /* end confdefs.h.  */
5302 #include <stdlib.h>
5303 #include <stdarg.h>
5304 #include <string.h>
5305 #include <float.h>
5306
5307 int
5308 main ()
5309 {
5310
5311   ;
5312   return 0;
5313 }
5314 _ACEOF
5315 rm -f conftest.$ac_objext
5316 if { (ac_try="$ac_compile"
5317 case "(($ac_try" in
5318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5319   *) ac_try_echo=$ac_try;;
5320 esac
5321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5322   (eval "$ac_compile") 2>conftest.er1
5323   ac_status=$?
5324   grep -v '^ *+' conftest.er1 >conftest.err
5325   rm -f conftest.er1
5326   cat conftest.err >&5
5327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328   (exit $ac_status); } && {
5329          test -z "$ac_c_werror_flag" ||
5330          test ! -s conftest.err
5331        } && test -s conftest.$ac_objext; then
5332   ac_cv_header_stdc=yes
5333 else
5334   echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.$ac_ext >&5
5336
5337         ac_cv_header_stdc=no
5338 fi
5339
5340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5341
5342 if test $ac_cv_header_stdc = yes; then
5343   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5344   cat >conftest.$ac_ext <<_ACEOF
5345 /* confdefs.h.  */
5346 _ACEOF
5347 cat confdefs.h >>conftest.$ac_ext
5348 cat >>conftest.$ac_ext <<_ACEOF
5349 /* end confdefs.h.  */
5350 #include <string.h>
5351
5352 _ACEOF
5353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5354   $EGREP "memchr" >/dev/null 2>&1; then
5355   :
5356 else
5357   ac_cv_header_stdc=no
5358 fi
5359 rm -f conftest*
5360
5361 fi
5362
5363 if test $ac_cv_header_stdc = yes; then
5364   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5365   cat >conftest.$ac_ext <<_ACEOF
5366 /* confdefs.h.  */
5367 _ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h.  */
5371 #include <stdlib.h>
5372
5373 _ACEOF
5374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5375   $EGREP "free" >/dev/null 2>&1; then
5376   :
5377 else
5378   ac_cv_header_stdc=no
5379 fi
5380 rm -f conftest*
5381
5382 fi
5383
5384 if test $ac_cv_header_stdc = yes; then
5385   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5386   if test "$cross_compiling" = yes; then
5387   :
5388 else
5389   cat >conftest.$ac_ext <<_ACEOF
5390 /* confdefs.h.  */
5391 _ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h.  */
5395 #include <ctype.h>
5396 #include <stdlib.h>
5397 #if ((' ' & 0x0FF) == 0x020)
5398 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5399 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5400 #else
5401 # define ISLOWER(c) \
5402                    (('a' <= (c) && (c) <= 'i') \
5403                      || ('j' <= (c) && (c) <= 'r') \
5404                      || ('s' <= (c) && (c) <= 'z'))
5405 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5406 #endif
5407
5408 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5409 int
5410 main ()
5411 {
5412   int i;
5413   for (i = 0; i < 256; i++)
5414     if (XOR (islower (i), ISLOWER (i))
5415         || toupper (i) != TOUPPER (i))
5416       return 2;
5417   return 0;
5418 }
5419 _ACEOF
5420 rm -f conftest$ac_exeext
5421 if { (ac_try="$ac_link"
5422 case "(($ac_try" in
5423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424   *) ac_try_echo=$ac_try;;
5425 esac
5426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5427   (eval "$ac_link") 2>&5
5428   ac_status=$?
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5431   { (case "(($ac_try" in
5432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433   *) ac_try_echo=$ac_try;;
5434 esac
5435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5436   (eval "$ac_try") 2>&5
5437   ac_status=$?
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); }; }; then
5440   :
5441 else
5442   echo "$as_me: program exited with status $ac_status" >&5
5443 echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5445
5446 ( exit $ac_status )
5447 ac_cv_header_stdc=no
5448 fi
5449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5450 fi
5451
5452
5453 fi
5454 fi
5455 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5456 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5457 if test $ac_cv_header_stdc = yes; then
5458
5459 cat >>confdefs.h <<\_ACEOF
5460 #define STDC_HEADERS 1
5461 _ACEOF
5462
5463 fi
5464
5465 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5476                   inttypes.h stdint.h unistd.h
5477 do
5478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5482   echo $ECHO_N "(cached) $ECHO_C" >&6
5483 else
5484   cat >conftest.$ac_ext <<_ACEOF
5485 /* confdefs.h.  */
5486 _ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h.  */
5490 $ac_includes_default
5491
5492 #include <$ac_header>
5493 _ACEOF
5494 rm -f conftest.$ac_objext
5495 if { (ac_try="$ac_compile"
5496 case "(($ac_try" in
5497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498   *) ac_try_echo=$ac_try;;
5499 esac
5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501   (eval "$ac_compile") 2>conftest.er1
5502   ac_status=$?
5503   grep -v '^ *+' conftest.er1 >conftest.err
5504   rm -f conftest.er1
5505   cat conftest.err >&5
5506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507   (exit $ac_status); } && {
5508          test -z "$ac_c_werror_flag" ||
5509          test ! -s conftest.err
5510        } && test -s conftest.$ac_objext; then
5511   eval "$as_ac_Header=yes"
5512 else
5513   echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5515
5516         eval "$as_ac_Header=no"
5517 fi
5518
5519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520 fi
5521 ac_res=`eval echo '${'$as_ac_Header'}'`
5522                { echo "$as_me:$LINENO: result: $ac_res" >&5
5523 echo "${ECHO_T}$ac_res" >&6; }
5524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5525   cat >>confdefs.h <<_ACEOF
5526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5527 _ACEOF
5528
5529 fi
5530
5531 done
5532
5533
5534
5535 for ac_header in dlfcn.h
5536 do
5537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5539   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5542   echo $ECHO_N "(cached) $ECHO_C" >&6
5543 fi
5544 ac_res=`eval echo '${'$as_ac_Header'}'`
5545                { echo "$as_me:$LINENO: result: $ac_res" >&5
5546 echo "${ECHO_T}$ac_res" >&6; }
5547 else
5548   # Is the header compilable?
5549 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5551 cat >conftest.$ac_ext <<_ACEOF
5552 /* confdefs.h.  */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h.  */
5557 $ac_includes_default
5558 #include <$ac_header>
5559 _ACEOF
5560 rm -f conftest.$ac_objext
5561 if { (ac_try="$ac_compile"
5562 case "(($ac_try" in
5563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564   *) ac_try_echo=$ac_try;;
5565 esac
5566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567   (eval "$ac_compile") 2>conftest.er1
5568   ac_status=$?
5569   grep -v '^ *+' conftest.er1 >conftest.err
5570   rm -f conftest.er1
5571   cat conftest.err >&5
5572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573   (exit $ac_status); } && {
5574          test -z "$ac_c_werror_flag" ||
5575          test ! -s conftest.err
5576        } && test -s conftest.$ac_objext; then
5577   ac_header_compiler=yes
5578 else
5579   echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5581
5582         ac_header_compiler=no
5583 fi
5584
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5587 echo "${ECHO_T}$ac_header_compiler" >&6; }
5588
5589 # Is the header present?
5590 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5592 cat >conftest.$ac_ext <<_ACEOF
5593 /* confdefs.h.  */
5594 _ACEOF
5595 cat confdefs.h >>conftest.$ac_ext
5596 cat >>conftest.$ac_ext <<_ACEOF
5597 /* end confdefs.h.  */
5598 #include <$ac_header>
5599 _ACEOF
5600 if { (ac_try="$ac_cpp conftest.$ac_ext"
5601 case "(($ac_try" in
5602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603   *) ac_try_echo=$ac_try;;
5604 esac
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5607   ac_status=$?
5608   grep -v '^ *+' conftest.er1 >conftest.err
5609   rm -f conftest.er1
5610   cat conftest.err >&5
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); } >/dev/null && {
5613          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5614          test ! -s conftest.err
5615        }; then
5616   ac_header_preproc=yes
5617 else
5618   echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5620
5621   ac_header_preproc=no
5622 fi
5623
5624 rm -f conftest.err conftest.$ac_ext
5625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5626 echo "${ECHO_T}$ac_header_preproc" >&6; }
5627
5628 # So?  What about this header?
5629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5630   yes:no: )
5631     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5633     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5635     ac_header_preproc=yes
5636     ;;
5637   no:yes:* )
5638     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5640     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5641 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5642     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5644     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5645 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5648     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5650     ( cat <<\_ASBOX
5651 ## -------------------------------------------------- ##
5652 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5653 ## -------------------------------------------------- ##
5654 _ASBOX
5655      ) | sed "s/^/$as_me: WARNING:     /" >&2
5656     ;;
5657 esac
5658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5661   echo $ECHO_N "(cached) $ECHO_C" >&6
5662 else
5663   eval "$as_ac_Header=\$ac_header_preproc"
5664 fi
5665 ac_res=`eval echo '${'$as_ac_Header'}'`
5666                { echo "$as_me:$LINENO: result: $ac_res" >&5
5667 echo "${ECHO_T}$ac_res" >&6; }
5668
5669 fi
5670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5671   cat >>confdefs.h <<_ACEOF
5672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5673 _ACEOF
5674
5675 fi
5676
5677 done
5678
5679 ac_ext=cpp
5680 ac_cpp='$CXXCPP $CPPFLAGS'
5681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5684 if test -z "$CXX"; then
5685   if test -n "$CCC"; then
5686     CXX=$CCC
5687   else
5688     if test -n "$ac_tool_prefix"; then
5689   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5690   do
5691     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5695 if test "${ac_cv_prog_CXX+set}" = set; then
5696   echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698   if test -n "$CXX"; then
5699   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5700 else
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5703 do
5704   IFS=$as_save_IFS
5705   test -z "$as_dir" && as_dir=.
5706   for ac_exec_ext in '' $ac_executable_extensions; do
5707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5710     break 2
5711   fi
5712 done
5713 done
5714 IFS=$as_save_IFS
5715
5716 fi
5717 fi
5718 CXX=$ac_cv_prog_CXX
5719 if test -n "$CXX"; then
5720   { echo "$as_me:$LINENO: result: $CXX" >&5
5721 echo "${ECHO_T}$CXX" >&6; }
5722 else
5723   { echo "$as_me:$LINENO: result: no" >&5
5724 echo "${ECHO_T}no" >&6; }
5725 fi
5726
5727
5728     test -n "$CXX" && break
5729   done
5730 fi
5731 if test -z "$CXX"; then
5732   ac_ct_CXX=$CXX
5733   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5734 do
5735   # Extract the first word of "$ac_prog", so it can be a program name with args.
5736 set dummy $ac_prog; ac_word=$2
5737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5739 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5740   echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742   if test -n "$ac_ct_CXX"; then
5743   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5744 else
5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 for as_dir in $PATH
5747 do
5748   IFS=$as_save_IFS
5749   test -z "$as_dir" && as_dir=.
5750   for ac_exec_ext in '' $ac_executable_extensions; do
5751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5752     ac_cv_prog_ac_ct_CXX="$ac_prog"
5753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5754     break 2
5755   fi
5756 done
5757 done
5758 IFS=$as_save_IFS
5759
5760 fi
5761 fi
5762 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5763 if test -n "$ac_ct_CXX"; then
5764   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5765 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5766 else
5767   { echo "$as_me:$LINENO: result: no" >&5
5768 echo "${ECHO_T}no" >&6; }
5769 fi
5770
5771
5772   test -n "$ac_ct_CXX" && break
5773 done
5774
5775   if test "x$ac_ct_CXX" = x; then
5776     CXX="g++"
5777   else
5778     case $cross_compiling:$ac_tool_warned in
5779 yes:)
5780 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5781 whose name does not start with the host triplet.  If you think this
5782 configuration is useful to you, please write to autoconf@gnu.org." >&5
5783 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5784 whose name does not start with the host triplet.  If you think this
5785 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5786 ac_tool_warned=yes ;;
5787 esac
5788     CXX=$ac_ct_CXX
5789   fi
5790 fi
5791
5792   fi
5793 fi
5794 # Provide some information about the compiler.
5795 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5796 ac_compiler=`set X $ac_compile; echo $2`
5797 { (ac_try="$ac_compiler --version >&5"
5798 case "(($ac_try" in
5799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800   *) ac_try_echo=$ac_try;;
5801 esac
5802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5803   (eval "$ac_compiler --version >&5") 2>&5
5804   ac_status=$?
5805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806   (exit $ac_status); }
5807 { (ac_try="$ac_compiler -v >&5"
5808 case "(($ac_try" in
5809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810   *) ac_try_echo=$ac_try;;
5811 esac
5812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5813   (eval "$ac_compiler -v >&5") 2>&5
5814   ac_status=$?
5815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816   (exit $ac_status); }
5817 { (ac_try="$ac_compiler -V >&5"
5818 case "(($ac_try" in
5819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820   *) ac_try_echo=$ac_try;;
5821 esac
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823   (eval "$ac_compiler -V >&5") 2>&5
5824   ac_status=$?
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); }
5827
5828 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5829 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5830 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5831   echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833   cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h.  */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h.  */
5839
5840 int
5841 main ()
5842 {
5843 #ifndef __GNUC__
5844        choke me
5845 #endif
5846
5847   ;
5848   return 0;
5849 }
5850 _ACEOF
5851 rm -f conftest.$ac_objext
5852 if { (ac_try="$ac_compile"
5853 case "(($ac_try" in
5854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855   *) ac_try_echo=$ac_try;;
5856 esac
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858   (eval "$ac_compile") 2>conftest.er1
5859   ac_status=$?
5860   grep -v '^ *+' conftest.er1 >conftest.err
5861   rm -f conftest.er1
5862   cat conftest.err >&5
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); } && {
5865          test -z "$ac_cxx_werror_flag" ||
5866          test ! -s conftest.err
5867        } && test -s conftest.$ac_objext; then
5868   ac_compiler_gnu=yes
5869 else
5870   echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5872
5873         ac_compiler_gnu=no
5874 fi
5875
5876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5878
5879 fi
5880 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5881 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5882 GXX=`test $ac_compiler_gnu = yes && echo yes`
5883 ac_test_CXXFLAGS=${CXXFLAGS+set}
5884 ac_save_CXXFLAGS=$CXXFLAGS
5885 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5886 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5887 if test "${ac_cv_prog_cxx_g+set}" = set; then
5888   echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5891    ac_cxx_werror_flag=yes
5892    ac_cv_prog_cxx_g=no
5893    CXXFLAGS="-g"
5894    cat >conftest.$ac_ext <<_ACEOF
5895 /* confdefs.h.  */
5896 _ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h.  */
5900
5901 int
5902 main ()
5903 {
5904
5905   ;
5906   return 0;
5907 }
5908 _ACEOF
5909 rm -f conftest.$ac_objext
5910 if { (ac_try="$ac_compile"
5911 case "(($ac_try" in
5912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5913   *) ac_try_echo=$ac_try;;
5914 esac
5915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5916   (eval "$ac_compile") 2>conftest.er1
5917   ac_status=$?
5918   grep -v '^ *+' conftest.er1 >conftest.err
5919   rm -f conftest.er1
5920   cat conftest.err >&5
5921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922   (exit $ac_status); } && {
5923          test -z "$ac_cxx_werror_flag" ||
5924          test ! -s conftest.err
5925        } && test -s conftest.$ac_objext; then
5926   ac_cv_prog_cxx_g=yes
5927 else
5928   echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5930
5931         CXXFLAGS=""
5932       cat >conftest.$ac_ext <<_ACEOF
5933 /* confdefs.h.  */
5934 _ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h.  */
5938
5939 int
5940 main ()
5941 {
5942
5943   ;
5944   return 0;
5945 }
5946 _ACEOF
5947 rm -f conftest.$ac_objext
5948 if { (ac_try="$ac_compile"
5949 case "(($ac_try" in
5950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951   *) ac_try_echo=$ac_try;;
5952 esac
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954   (eval "$ac_compile") 2>conftest.er1
5955   ac_status=$?
5956   grep -v '^ *+' conftest.er1 >conftest.err
5957   rm -f conftest.er1
5958   cat conftest.err >&5
5959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960   (exit $ac_status); } && {
5961          test -z "$ac_cxx_werror_flag" ||
5962          test ! -s conftest.err
5963        } && test -s conftest.$ac_objext; then
5964   :
5965 else
5966   echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5968
5969         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5970          CXXFLAGS="-g"
5971          cat >conftest.$ac_ext <<_ACEOF
5972 /* confdefs.h.  */
5973 _ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h.  */
5977
5978 int
5979 main ()
5980 {
5981
5982   ;
5983   return 0;
5984 }
5985 _ACEOF
5986 rm -f conftest.$ac_objext
5987 if { (ac_try="$ac_compile"
5988 case "(($ac_try" in
5989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990   *) ac_try_echo=$ac_try;;
5991 esac
5992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993   (eval "$ac_compile") 2>conftest.er1
5994   ac_status=$?
5995   grep -v '^ *+' conftest.er1 >conftest.err
5996   rm -f conftest.er1
5997   cat conftest.err >&5
5998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999   (exit $ac_status); } && {
6000          test -z "$ac_cxx_werror_flag" ||
6001          test ! -s conftest.err
6002        } && test -s conftest.$ac_objext; then
6003   ac_cv_prog_cxx_g=yes
6004 else
6005   echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6007
6008
6009 fi
6010
6011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012 fi
6013
6014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015 fi
6016
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6019 fi
6020 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6021 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6022 if test "$ac_test_CXXFLAGS" = set; then
6023   CXXFLAGS=$ac_save_CXXFLAGS
6024 elif test $ac_cv_prog_cxx_g = yes; then
6025   if test "$GXX" = yes; then
6026     CXXFLAGS="-g -O2"
6027   else
6028     CXXFLAGS="-g"
6029   fi
6030 else
6031   if test "$GXX" = yes; then
6032     CXXFLAGS="-O2"
6033   else
6034     CXXFLAGS=
6035   fi
6036 fi
6037 ac_ext=cpp
6038 ac_cpp='$CXXCPP $CPPFLAGS'
6039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6042
6043 depcc="$CXX"  am_compiler_list=
6044
6045 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6046 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6047 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6048   echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6051   # We make a subdir and do the tests there.  Otherwise we can end up
6052   # making bogus files that we don't know about and never remove.  For
6053   # instance it was reported that on HP-UX the gcc test will end up
6054   # making a dummy file named `D' -- because `-MD' means `put the output
6055   # in D'.
6056   mkdir conftest.dir
6057   # Copy depcomp to subdir because otherwise we won't find it if we're
6058   # using a relative directory.
6059   cp "$am_depcomp" conftest.dir
6060   cd conftest.dir
6061   # We will build objects and dependencies in a subdirectory because
6062   # it helps to detect inapplicable dependency modes.  For instance
6063   # both Tru64's cc and ICC support -MD to output dependencies as a
6064   # side effect of compilation, but ICC will put the dependencies in
6065   # the current directory while Tru64 will put them in the object
6066   # directory.
6067   mkdir sub
6068
6069   am_cv_CXX_dependencies_compiler_type=none
6070   if test "$am_compiler_list" = ""; then
6071      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6072   fi
6073   for depmode in $am_compiler_list; do
6074     # Setup a source with many dependencies, because some compilers
6075     # like to wrap large dependency lists on column 80 (with \), and
6076     # we should not choose a depcomp mode which is confused by this.
6077     #
6078     # We need to recreate these files for each test, as the compiler may
6079     # overwrite some of them when testing with obscure command lines.
6080     # This happens at least with the AIX C compiler.
6081     : > sub/conftest.c
6082     for i in 1 2 3 4 5 6; do
6083       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6084       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6085       # Solaris 8's {/usr,}/bin/sh.
6086       touch sub/conftst$i.h
6087     done
6088     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6089
6090     case $depmode in
6091     nosideeffect)
6092       # after this tag, mechanisms are not by side-effect, so they'll
6093       # only be used when explicitly requested
6094       if test "x$enable_dependency_tracking" = xyes; then
6095         continue
6096       else
6097         break
6098       fi
6099       ;;
6100     none) break ;;
6101     esac
6102     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6103     # mode.  It turns out that the SunPro C++ compiler does not properly
6104     # handle `-M -o', and we need to detect this.
6105     if depmode=$depmode \
6106        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6107        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6108        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6109          >/dev/null 2>conftest.err &&
6110        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6111        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6112        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6113        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6114       # icc doesn't choke on unknown options, it will just issue warnings
6115       # or remarks (even with -Werror).  So we grep stderr for any message
6116       # that says an option was ignored or not supported.
6117       # When given -MP, icc 7.0 and 7.1 complain thusly:
6118       #   icc: Command line warning: ignoring option '-M'; no argument required
6119       # The diagnosis changed in icc 8.0:
6120       #   icc: Command line remark: option '-MP' not supported
6121       if (grep 'ignoring option' conftest.err ||
6122           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6123         am_cv_CXX_dependencies_compiler_type=$depmode
6124         break
6125       fi
6126     fi
6127   done
6128
6129   cd ..
6130   rm -rf conftest.dir
6131 else
6132   am_cv_CXX_dependencies_compiler_type=none
6133 fi
6134
6135 fi
6136 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6137 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6138 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6139
6140  if
6141   test "x$enable_dependency_tracking" != xno \
6142   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6143   am__fastdepCXX_TRUE=
6144   am__fastdepCXX_FALSE='#'
6145 else
6146   am__fastdepCXX_TRUE='#'
6147   am__fastdepCXX_FALSE=
6148 fi
6149
6150
6151
6152
6153 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6154     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6155     (test "X$CXX" != "Xg++"))) ; then
6156   ac_ext=cpp
6157 ac_cpp='$CXXCPP $CPPFLAGS'
6158 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6159 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6160 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6161 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6162 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6163 if test -z "$CXXCPP"; then
6164   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6165   echo $ECHO_N "(cached) $ECHO_C" >&6
6166 else
6167       # Double quotes because CXXCPP needs to be expanded
6168     for CXXCPP in "$CXX -E" "/lib/cpp"
6169     do
6170       ac_preproc_ok=false
6171 for ac_cxx_preproc_warn_flag in '' yes
6172 do
6173   # Use a header file that comes with gcc, so configuring glibc
6174   # with a fresh cross-compiler works.
6175   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6176   # <limits.h> exists even on freestanding compilers.
6177   # On the NeXT, cc -E runs the code through the compiler's parser,
6178   # not just through cpp. "Syntax error" is here to catch this case.
6179   cat >conftest.$ac_ext <<_ACEOF
6180 /* confdefs.h.  */
6181 _ACEOF
6182 cat confdefs.h >>conftest.$ac_ext
6183 cat >>conftest.$ac_ext <<_ACEOF
6184 /* end confdefs.h.  */
6185 #ifdef __STDC__
6186 # include <limits.h>
6187 #else
6188 # include <assert.h>
6189 #endif
6190                      Syntax error
6191 _ACEOF
6192 if { (ac_try="$ac_cpp conftest.$ac_ext"
6193 case "(($ac_try" in
6194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195   *) ac_try_echo=$ac_try;;
6196 esac
6197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6199   ac_status=$?
6200   grep -v '^ *+' conftest.er1 >conftest.err
6201   rm -f conftest.er1
6202   cat conftest.err >&5
6203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204   (exit $ac_status); } >/dev/null && {
6205          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6206          test ! -s conftest.err
6207        }; then
6208   :
6209 else
6210   echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6212
6213   # Broken: fails on valid input.
6214 continue
6215 fi
6216
6217 rm -f conftest.err conftest.$ac_ext
6218
6219   # OK, works on sane cases.  Now check whether nonexistent headers
6220   # can be detected and how.
6221   cat >conftest.$ac_ext <<_ACEOF
6222 /* confdefs.h.  */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h.  */
6227 #include <ac_nonexistent.h>
6228 _ACEOF
6229 if { (ac_try="$ac_cpp conftest.$ac_ext"
6230 case "(($ac_try" in
6231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6232   *) ac_try_echo=$ac_try;;
6233 esac
6234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6235   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6236   ac_status=$?
6237   grep -v '^ *+' conftest.er1 >conftest.err
6238   rm -f conftest.er1
6239   cat conftest.err >&5
6240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241   (exit $ac_status); } >/dev/null && {
6242          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6243          test ! -s conftest.err
6244        }; then
6245   # Broken: success on invalid input.
6246 continue
6247 else
6248   echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6250
6251   # Passes both tests.
6252 ac_preproc_ok=:
6253 break
6254 fi
6255
6256 rm -f conftest.err conftest.$ac_ext
6257
6258 done
6259 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6260 rm -f conftest.err conftest.$ac_ext
6261 if $ac_preproc_ok; then
6262   break
6263 fi
6264
6265     done
6266     ac_cv_prog_CXXCPP=$CXXCPP
6267
6268 fi
6269   CXXCPP=$ac_cv_prog_CXXCPP
6270 else
6271   ac_cv_prog_CXXCPP=$CXXCPP
6272 fi
6273 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6274 echo "${ECHO_T}$CXXCPP" >&6; }
6275 ac_preproc_ok=false
6276 for ac_cxx_preproc_warn_flag in '' yes
6277 do
6278   # Use a header file that comes with gcc, so configuring glibc
6279   # with a fresh cross-compiler works.
6280   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6281   # <limits.h> exists even on freestanding compilers.
6282   # On the NeXT, cc -E runs the code through the compiler's parser,
6283   # not just through cpp. "Syntax error" is here to catch this case.
6284   cat >conftest.$ac_ext <<_ACEOF
6285 /* confdefs.h.  */
6286 _ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h.  */
6290 #ifdef __STDC__
6291 # include <limits.h>
6292 #else
6293 # include <assert.h>
6294 #endif
6295                      Syntax error
6296 _ACEOF
6297 if { (ac_try="$ac_cpp conftest.$ac_ext"
6298 case "(($ac_try" in
6299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300   *) ac_try_echo=$ac_try;;
6301 esac
6302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6304   ac_status=$?
6305   grep -v '^ *+' conftest.er1 >conftest.err
6306   rm -f conftest.er1
6307   cat conftest.err >&5
6308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); } >/dev/null && {
6310          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6311          test ! -s conftest.err
6312        }; then
6313   :
6314 else
6315   echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6317
6318   # Broken: fails on valid input.
6319 continue
6320 fi
6321
6322 rm -f conftest.err conftest.$ac_ext
6323
6324   # OK, works on sane cases.  Now check whether nonexistent headers
6325   # can be detected and how.
6326   cat >conftest.$ac_ext <<_ACEOF
6327 /* confdefs.h.  */
6328 _ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h.  */
6332 #include <ac_nonexistent.h>
6333 _ACEOF
6334 if { (ac_try="$ac_cpp conftest.$ac_ext"
6335 case "(($ac_try" in
6336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337   *) ac_try_echo=$ac_try;;
6338 esac
6339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6340   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6341   ac_status=$?
6342   grep -v '^ *+' conftest.er1 >conftest.err
6343   rm -f conftest.er1
6344   cat conftest.err >&5
6345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346   (exit $ac_status); } >/dev/null && {
6347          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6348          test ! -s conftest.err
6349        }; then
6350   # Broken: success on invalid input.
6351 continue
6352 else
6353   echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.$ac_ext >&5
6355
6356   # Passes both tests.
6357 ac_preproc_ok=:
6358 break
6359 fi
6360
6361 rm -f conftest.err conftest.$ac_ext
6362
6363 done
6364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6365 rm -f conftest.err conftest.$ac_ext
6366 if $ac_preproc_ok; then
6367   :
6368 else
6369   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6370 See \`config.log' for more details." >&5
6371 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6372 See \`config.log' for more details." >&2;}
6373    { (exit 1); exit 1; }; }
6374 fi
6375
6376 ac_ext=cpp
6377 ac_cpp='$CXXCPP $CPPFLAGS'
6378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6381
6382 fi
6383
6384
6385
6386
6387
6388 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6389
6390 # find the maximum length of command line arguments
6391 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6392 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6393 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6394   echo $ECHO_N "(cached) $ECHO_C" >&6
6395 else
6396     i=0
6397   teststring="ABCD"
6398
6399   case $build_os in
6400   msdosdjgpp*)
6401     # On DJGPP, this test can blow up pretty badly due to problems in libc
6402     # (any single argument exceeding 2000 bytes causes a buffer overrun
6403     # during glob expansion).  Even if it were fixed, the result of this
6404     # check would be larger than it should be.
6405     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6406     ;;
6407
6408   gnu*)
6409     # Under GNU Hurd, this test is not required because there is
6410     # no limit to the length of command line arguments.
6411     # Libtool will interpret -1 as no limit whatsoever
6412     lt_cv_sys_max_cmd_len=-1;
6413     ;;
6414
6415   cygwin* | mingw*)
6416     # On Win9x/ME, this test blows up -- it succeeds, but takes
6417     # about 5 minutes as the teststring grows exponentially.
6418     # Worse, since 9x/ME are not pre-emptively multitasking,
6419     # you end up with a "frozen" computer, even though with patience
6420     # the test eventually succeeds (with a max line length of 256k).
6421     # Instead, let's just punt: use the minimum linelength reported by
6422     # all of the supported platforms: 8192 (on NT/2K/XP).
6423     lt_cv_sys_max_cmd_len=8192;
6424     ;;
6425
6426   amigaos*)
6427     # On AmigaOS with pdksh, this test takes hours, literally.
6428     # So we just punt and use a minimum line length of 8192.
6429     lt_cv_sys_max_cmd_len=8192;
6430     ;;
6431
6432   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6433     # This has been around since 386BSD, at least.  Likely further.
6434     if test -x /sbin/sysctl; then
6435       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6436     elif test -x /usr/sbin/sysctl; then
6437       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6438     else
6439       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6440     fi
6441     # And add a safety zone
6442     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6443     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6444     ;;
6445
6446   interix*)
6447     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6448     lt_cv_sys_max_cmd_len=196608
6449     ;;
6450
6451   osf*)
6452     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6453     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6454     # nice to cause kernel panics so lets avoid the loop below.
6455     # First set a reasonable default.
6456     lt_cv_sys_max_cmd_len=16384
6457     #
6458     if test -x /sbin/sysconfig; then
6459       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6460         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6461       esac
6462     fi
6463     ;;
6464   sco3.2v5*)
6465     lt_cv_sys_max_cmd_len=102400
6466     ;;
6467   sysv5* | sco5v6* | sysv4.2uw2*)
6468     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6469     if test -n "$kargmax"; then
6470       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6471     else
6472       lt_cv_sys_max_cmd_len=32768
6473     fi
6474     ;;
6475   *)
6476     # If test is not a shell built-in, we'll probably end up computing a
6477     # maximum length that is only half of the actual maximum length, but
6478     # we can't tell.
6479     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6480     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6481                = "XX$teststring") >/dev/null 2>&1 &&
6482             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6483             lt_cv_sys_max_cmd_len=$new_result &&
6484             test $i != 17 # 1/2 MB should be enough
6485     do
6486       i=`expr $i + 1`
6487       teststring=$teststring$teststring
6488     done
6489     teststring=
6490     # Add a significant safety factor because C++ compilers can tack on massive
6491     # amounts of additional arguments before passing them to the linker.
6492     # It appears as though 1/2 is a usable value.
6493     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6494     ;;
6495   esac
6496
6497 fi
6498
6499 if test -n $lt_cv_sys_max_cmd_len ; then
6500   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6501 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6502 else
6503   { echo "$as_me:$LINENO: result: none" >&5
6504 echo "${ECHO_T}none" >&6; }
6505 fi
6506
6507
6508
6509
6510 # Check for command to grab the raw symbol name followed by C symbol from nm.
6511 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6512 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6513 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6514   echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516
6517 # These are sane defaults that work on at least a few old systems.
6518 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6519
6520 # Character class describing NM global symbol codes.
6521 symcode='[BCDEGRST]'
6522
6523 # Regexp to match symbols that can be accessed directly from C.
6524 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6525
6526 # Transform an extracted symbol line into a proper C declaration
6527 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6528
6529 # Transform an extracted symbol line into symbol name and symbol address
6530 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'"
6531
6532 # Define system-specific variables.
6533 case $host_os in
6534 aix*)
6535   symcode='[BCDT]'
6536   ;;
6537 cygwin* | mingw* | pw32*)
6538   symcode='[ABCDGISTW]'
6539   ;;
6540 hpux*) # Its linker distinguishes data from code symbols
6541   if test "$host_cpu" = ia64; then
6542     symcode='[ABCDEGRST]'
6543   fi
6544   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6545   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'"
6546   ;;
6547 linux* | k*bsd*-gnu)
6548   if test "$host_cpu" = ia64; then
6549     symcode='[ABCDGIRSTW]'
6550     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6551     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'"
6552   fi
6553   ;;
6554 irix* | nonstopux*)
6555   symcode='[BCDEGRST]'
6556   ;;
6557 osf*)
6558   symcode='[BCDEGQRST]'
6559   ;;
6560 solaris*)
6561   symcode='[BDRT]'
6562   ;;
6563 sco3.2v5*)
6564   symcode='[DT]'
6565   ;;
6566 sysv4.2uw2*)
6567   symcode='[DT]'
6568   ;;
6569 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6570   symcode='[ABDT]'
6571   ;;
6572 sysv4)
6573   symcode='[DFNSTU]'
6574   ;;
6575 esac
6576
6577 # Handle CRLF in mingw tool chain
6578 opt_cr=
6579 case $build_os in
6580 mingw*)
6581   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6582   ;;
6583 esac
6584
6585 # If we're using GNU nm, then use its standard symbol codes.
6586 case `$NM -V 2>&1` in
6587 *GNU* | *'with BFD'*)
6588   symcode='[ABCDGIRSTW]' ;;
6589 esac
6590
6591 # Try without a prefix undercore, then with it.
6592 for ac_symprfx in "" "_"; do
6593
6594   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6595   symxfrm="\\1 $ac_symprfx\\2 \\2"
6596
6597   # Write the raw and C identifiers.
6598   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6599
6600   # Check to see that the pipe works correctly.
6601   pipe_works=no
6602
6603   rm -f conftest*
6604   cat > conftest.$ac_ext <<EOF
6605 #ifdef __cplusplus
6606 extern "C" {
6607 #endif
6608 char nm_test_var;
6609 void nm_test_func(){}
6610 #ifdef __cplusplus
6611 }
6612 #endif
6613 int main(){nm_test_var='a';nm_test_func();return(0);}
6614 EOF
6615
6616   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6617   (eval $ac_compile) 2>&5
6618   ac_status=$?
6619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620   (exit $ac_status); }; then
6621     # Now try to grab the symbols.
6622     nlist=conftest.nm
6623     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6624   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6625   ac_status=$?
6626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627   (exit $ac_status); } && test -s "$nlist"; then
6628       # Try sorting and uniquifying the output.
6629       if sort "$nlist" | uniq > "$nlist"T; then
6630         mv -f "$nlist"T "$nlist"
6631       else
6632         rm -f "$nlist"T
6633       fi
6634
6635       # Make sure that we snagged all the symbols we need.
6636       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6637         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6638           cat <<EOF > conftest.$ac_ext
6639 #ifdef __cplusplus
6640 extern "C" {
6641 #endif
6642
6643 EOF
6644           # Now generate the symbol file.
6645           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6646
6647           cat <<EOF >> conftest.$ac_ext
6648 #if defined (__STDC__) && __STDC__
6649 # define lt_ptr_t void *
6650 #else
6651 # define lt_ptr_t char *
6652 # define const
6653 #endif
6654
6655 /* The mapping between symbol names and symbols. */
6656 const struct {
6657   const char *name;
6658   lt_ptr_t address;
6659 }
6660 lt_preloaded_symbols[] =
6661 {
6662 EOF
6663           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6664           cat <<\EOF >> conftest.$ac_ext
6665   {0, (lt_ptr_t) 0}
6666 };
6667
6668 #ifdef __cplusplus
6669 }
6670 #endif
6671 EOF
6672           # Now try linking the two files.
6673           mv conftest.$ac_objext conftstm.$ac_objext
6674           lt_save_LIBS="$LIBS"
6675           lt_save_CFLAGS="$CFLAGS"
6676           LIBS="conftstm.$ac_objext"
6677           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6678           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6679   (eval $ac_link) 2>&5
6680   ac_status=$?
6681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6683             pipe_works=yes
6684           fi
6685           LIBS="$lt_save_LIBS"
6686           CFLAGS="$lt_save_CFLAGS"
6687         else
6688           echo "cannot find nm_test_func in $nlist" >&5
6689         fi
6690       else
6691         echo "cannot find nm_test_var in $nlist" >&5
6692       fi
6693     else
6694       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6695     fi
6696   else
6697     echo "$progname: failed program was:" >&5
6698     cat conftest.$ac_ext >&5
6699   fi
6700   rm -f conftest* conftst*
6701
6702   # Do not use the global_symbol_pipe unless it works.
6703   if test "$pipe_works" = yes; then
6704     break
6705   else
6706     lt_cv_sys_global_symbol_pipe=
6707   fi
6708 done
6709
6710 fi
6711
6712 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6713   lt_cv_sys_global_symbol_to_cdecl=
6714 fi
6715 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6716   { echo "$as_me:$LINENO: result: failed" >&5
6717 echo "${ECHO_T}failed" >&6; }
6718 else
6719   { echo "$as_me:$LINENO: result: ok" >&5
6720 echo "${ECHO_T}ok" >&6; }
6721 fi
6722
6723 { echo "$as_me:$LINENO: checking for objdir" >&5
6724 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6725 if test "${lt_cv_objdir+set}" = set; then
6726   echo $ECHO_N "(cached) $ECHO_C" >&6
6727 else
6728   rm -f .libs 2>/dev/null
6729 mkdir .libs 2>/dev/null
6730 if test -d .libs; then
6731   lt_cv_objdir=.libs
6732 else
6733   # MS-DOS does not allow filenames that begin with a dot.
6734   lt_cv_objdir=_libs
6735 fi
6736 rmdir .libs 2>/dev/null
6737 fi
6738 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6739 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6740 objdir=$lt_cv_objdir
6741
6742
6743
6744
6745
6746 case $host_os in
6747 aix3*)
6748   # AIX sometimes has problems with the GCC collect2 program.  For some
6749   # reason, if we set the COLLECT_NAMES environment variable, the problems
6750   # vanish in a puff of smoke.
6751   if test "X${COLLECT_NAMES+set}" != Xset; then
6752     COLLECT_NAMES=
6753     export COLLECT_NAMES
6754   fi
6755   ;;
6756 esac
6757
6758 # Sed substitution that helps us do robust quoting.  It backslashifies
6759 # metacharacters that are still active within double-quoted strings.
6760 Xsed='sed -e 1s/^X//'
6761 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6762
6763 # Same as above, but do not quote variable references.
6764 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6765
6766 # Sed substitution to delay expansion of an escaped shell variable in a
6767 # double_quote_subst'ed string.
6768 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6769
6770 # Sed substitution to avoid accidental globbing in evaled expressions
6771 no_glob_subst='s/\*/\\\*/g'
6772
6773 # Constants:
6774 rm="rm -f"
6775
6776 # Global variables:
6777 default_ofile=libtool
6778 can_build_shared=yes
6779
6780 # All known linkers require a `.a' archive for static linking (except MSVC,
6781 # which needs '.lib').
6782 libext=a
6783 ltmain="$ac_aux_dir/ltmain.sh"
6784 ofile="$default_ofile"
6785 with_gnu_ld="$lt_cv_prog_gnu_ld"
6786
6787 if test -n "$ac_tool_prefix"; then
6788   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6789 set dummy ${ac_tool_prefix}ar; ac_word=$2
6790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6792 if test "${ac_cv_prog_AR+set}" = set; then
6793   echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795   if test -n "$AR"; then
6796   ac_cv_prog_AR="$AR" # Let the user override the test.
6797 else
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 for as_dir in $PATH
6800 do
6801   IFS=$as_save_IFS
6802   test -z "$as_dir" && as_dir=.
6803   for ac_exec_ext in '' $ac_executable_extensions; do
6804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6805     ac_cv_prog_AR="${ac_tool_prefix}ar"
6806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6807     break 2
6808   fi
6809 done
6810 done
6811 IFS=$as_save_IFS
6812
6813 fi
6814 fi
6815 AR=$ac_cv_prog_AR
6816 if test -n "$AR"; then
6817   { echo "$as_me:$LINENO: result: $AR" >&5
6818 echo "${ECHO_T}$AR" >&6; }
6819 else
6820   { echo "$as_me:$LINENO: result: no" >&5
6821 echo "${ECHO_T}no" >&6; }
6822 fi
6823
6824
6825 fi
6826 if test -z "$ac_cv_prog_AR"; then
6827   ac_ct_AR=$AR
6828   # Extract the first word of "ar", so it can be a program name with args.
6829 set dummy ar; ac_word=$2
6830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6833   echo $ECHO_N "(cached) $ECHO_C" >&6
6834 else
6835   if test -n "$ac_ct_AR"; then
6836   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6837 else
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 for as_dir in $PATH
6840 do
6841   IFS=$as_save_IFS
6842   test -z "$as_dir" && as_dir=.
6843   for ac_exec_ext in '' $ac_executable_extensions; do
6844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6845     ac_cv_prog_ac_ct_AR="ar"
6846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847     break 2
6848   fi
6849 done
6850 done
6851 IFS=$as_save_IFS
6852
6853 fi
6854 fi
6855 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6856 if test -n "$ac_ct_AR"; then
6857   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6858 echo "${ECHO_T}$ac_ct_AR" >&6; }
6859 else
6860   { echo "$as_me:$LINENO: result: no" >&5
6861 echo "${ECHO_T}no" >&6; }
6862 fi
6863
6864   if test "x$ac_ct_AR" = x; then
6865     AR="false"
6866   else
6867     case $cross_compiling:$ac_tool_warned in
6868 yes:)
6869 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6870 whose name does not start with the host triplet.  If you think this
6871 configuration is useful to you, please write to autoconf@gnu.org." >&5
6872 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6873 whose name does not start with the host triplet.  If you think this
6874 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6875 ac_tool_warned=yes ;;
6876 esac
6877     AR=$ac_ct_AR
6878   fi
6879 else
6880   AR="$ac_cv_prog_AR"
6881 fi
6882
6883 if test -n "$ac_tool_prefix"; then
6884   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6885 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6888 if test "${ac_cv_prog_RANLIB+set}" = set; then
6889   echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891   if test -n "$RANLIB"; then
6892   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6893 else
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6896 do
6897   IFS=$as_save_IFS
6898   test -z "$as_dir" && as_dir=.
6899   for ac_exec_ext in '' $ac_executable_extensions; do
6900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6901     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903     break 2
6904   fi
6905 done
6906 done
6907 IFS=$as_save_IFS
6908
6909 fi
6910 fi
6911 RANLIB=$ac_cv_prog_RANLIB
6912 if test -n "$RANLIB"; then
6913   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6914 echo "${ECHO_T}$RANLIB" >&6; }
6915 else
6916   { echo "$as_me:$LINENO: result: no" >&5
6917 echo "${ECHO_T}no" >&6; }
6918 fi
6919
6920
6921 fi
6922 if test -z "$ac_cv_prog_RANLIB"; then
6923   ac_ct_RANLIB=$RANLIB
6924   # Extract the first word of "ranlib", so it can be a program name with args.
6925 set dummy ranlib; ac_word=$2
6926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6928 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6929   echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931   if test -n "$ac_ct_RANLIB"; then
6932   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6933 else
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6936 do
6937   IFS=$as_save_IFS
6938   test -z "$as_dir" && as_dir=.
6939   for ac_exec_ext in '' $ac_executable_extensions; do
6940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6941     ac_cv_prog_ac_ct_RANLIB="ranlib"
6942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6943     break 2
6944   fi
6945 done
6946 done
6947 IFS=$as_save_IFS
6948
6949 fi
6950 fi
6951 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6952 if test -n "$ac_ct_RANLIB"; then
6953   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6954 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6955 else
6956   { echo "$as_me:$LINENO: result: no" >&5
6957 echo "${ECHO_T}no" >&6; }
6958 fi
6959
6960   if test "x$ac_ct_RANLIB" = x; then
6961     RANLIB=":"
6962   else
6963     case $cross_compiling:$ac_tool_warned in
6964 yes:)
6965 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6966 whose name does not start with the host triplet.  If you think this
6967 configuration is useful to you, please write to autoconf@gnu.org." >&5
6968 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6969 whose name does not start with the host triplet.  If you think this
6970 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6971 ac_tool_warned=yes ;;
6972 esac
6973     RANLIB=$ac_ct_RANLIB
6974   fi
6975 else
6976   RANLIB="$ac_cv_prog_RANLIB"
6977 fi
6978
6979 if test -n "$ac_tool_prefix"; then
6980   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6981 set dummy ${ac_tool_prefix}strip; ac_word=$2
6982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6984 if test "${ac_cv_prog_STRIP+set}" = set; then
6985   echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987   if test -n "$STRIP"; then
6988   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6989 else
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 for as_dir in $PATH
6992 do
6993   IFS=$as_save_IFS
6994   test -z "$as_dir" && as_dir=.
6995   for ac_exec_ext in '' $ac_executable_extensions; do
6996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6997     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6999     break 2
7000   fi
7001 done
7002 done
7003 IFS=$as_save_IFS
7004
7005 fi
7006 fi
7007 STRIP=$ac_cv_prog_STRIP
7008 if test -n "$STRIP"; then
7009   { echo "$as_me:$LINENO: result: $STRIP" >&5
7010 echo "${ECHO_T}$STRIP" >&6; }
7011 else
7012   { echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6; }
7014 fi
7015
7016
7017 fi
7018 if test -z "$ac_cv_prog_STRIP"; then
7019   ac_ct_STRIP=$STRIP
7020   # Extract the first word of "strip", so it can be a program name with args.
7021 set dummy strip; ac_word=$2
7022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7024 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7025   echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027   if test -n "$ac_ct_STRIP"; then
7028   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7029 else
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 for as_dir in $PATH
7032 do
7033   IFS=$as_save_IFS
7034   test -z "$as_dir" && as_dir=.
7035   for ac_exec_ext in '' $ac_executable_extensions; do
7036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037     ac_cv_prog_ac_ct_STRIP="strip"
7038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7039     break 2
7040   fi
7041 done
7042 done
7043 IFS=$as_save_IFS
7044
7045 fi
7046 fi
7047 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7048 if test -n "$ac_ct_STRIP"; then
7049   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7050 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7051 else
7052   { echo "$as_me:$LINENO: result: no" >&5
7053 echo "${ECHO_T}no" >&6; }
7054 fi
7055
7056   if test "x$ac_ct_STRIP" = x; then
7057     STRIP=":"
7058   else
7059     case $cross_compiling:$ac_tool_warned in
7060 yes:)
7061 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7062 whose name does not start with the host triplet.  If you think this
7063 configuration is useful to you, please write to autoconf@gnu.org." >&5
7064 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7065 whose name does not start with the host triplet.  If you think this
7066 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7067 ac_tool_warned=yes ;;
7068 esac
7069     STRIP=$ac_ct_STRIP
7070   fi
7071 else
7072   STRIP="$ac_cv_prog_STRIP"
7073 fi
7074
7075
7076 old_CC="$CC"
7077 old_CFLAGS="$CFLAGS"
7078
7079 # Set sane defaults for various variables
7080 test -z "$AR" && AR=ar
7081 test -z "$AR_FLAGS" && AR_FLAGS=cru
7082 test -z "$AS" && AS=as
7083 test -z "$CC" && CC=cc
7084 test -z "$LTCC" && LTCC=$CC
7085 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7086 test -z "$DLLTOOL" && DLLTOOL=dlltool
7087 test -z "$LD" && LD=ld
7088 test -z "$LN_S" && LN_S="ln -s"
7089 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7090 test -z "$NM" && NM=nm
7091 test -z "$SED" && SED=sed
7092 test -z "$OBJDUMP" && OBJDUMP=objdump
7093 test -z "$RANLIB" && RANLIB=:
7094 test -z "$STRIP" && STRIP=:
7095 test -z "$ac_objext" && ac_objext=o
7096
7097 # Determine commands to create old-style static archives.
7098 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7099 old_postinstall_cmds='chmod 644 $oldlib'
7100 old_postuninstall_cmds=
7101
7102 if test -n "$RANLIB"; then
7103   case $host_os in
7104   openbsd*)
7105     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7106     ;;
7107   *)
7108     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7109     ;;
7110   esac
7111   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7112 fi
7113
7114 for cc_temp in $compiler""; do
7115   case $cc_temp in
7116     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7117     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7118     \-*) ;;
7119     *) break;;
7120   esac
7121 done
7122 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7123
7124
7125 # Only perform the check for file, if the check method requires it
7126 case $deplibs_check_method in
7127 file_magic*)
7128   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7129     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7130 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7131 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7132   echo $ECHO_N "(cached) $ECHO_C" >&6
7133 else
7134   case $MAGIC_CMD in
7135 [\\/*] |  ?:[\\/]*)
7136   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7137   ;;
7138 *)
7139   lt_save_MAGIC_CMD="$MAGIC_CMD"
7140   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7141   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7142   for ac_dir in $ac_dummy; do
7143     IFS="$lt_save_ifs"
7144     test -z "$ac_dir" && ac_dir=.
7145     if test -f $ac_dir/${ac_tool_prefix}file; then
7146       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7147       if test -n "$file_magic_test_file"; then
7148         case $deplibs_check_method in
7149         "file_magic "*)
7150           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7151           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7152           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7153             $EGREP "$file_magic_regex" > /dev/null; then
7154             :
7155           else
7156             cat <<EOF 1>&2
7157
7158 *** Warning: the command libtool uses to detect shared libraries,
7159 *** $file_magic_cmd, produces output that libtool cannot recognize.
7160 *** The result is that libtool may fail to recognize shared libraries
7161 *** as such.  This will affect the creation of libtool libraries that
7162 *** depend on shared libraries, but programs linked with such libtool
7163 *** libraries will work regardless of this problem.  Nevertheless, you
7164 *** may want to report the problem to your system manager and/or to
7165 *** bug-libtool@gnu.org
7166
7167 EOF
7168           fi ;;
7169         esac
7170       fi
7171       break
7172     fi
7173   done
7174   IFS="$lt_save_ifs"
7175   MAGIC_CMD="$lt_save_MAGIC_CMD"
7176   ;;
7177 esac
7178 fi
7179
7180 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7181 if test -n "$MAGIC_CMD"; then
7182   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7183 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7184 else
7185   { echo "$as_me:$LINENO: result: no" >&5
7186 echo "${ECHO_T}no" >&6; }
7187 fi
7188
7189 if test -z "$lt_cv_path_MAGIC_CMD"; then
7190   if test -n "$ac_tool_prefix"; then
7191     { echo "$as_me:$LINENO: checking for file" >&5
7192 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7193 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7194   echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196   case $MAGIC_CMD in
7197 [\\/*] |  ?:[\\/]*)
7198   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7199   ;;
7200 *)
7201   lt_save_MAGIC_CMD="$MAGIC_CMD"
7202   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7203   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7204   for ac_dir in $ac_dummy; do
7205     IFS="$lt_save_ifs"
7206     test -z "$ac_dir" && ac_dir=.
7207     if test -f $ac_dir/file; then
7208       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7209       if test -n "$file_magic_test_file"; then
7210         case $deplibs_check_method in
7211         "file_magic "*)
7212           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7213           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7214           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7215             $EGREP "$file_magic_regex" > /dev/null; then
7216             :
7217           else
7218             cat <<EOF 1>&2
7219
7220 *** Warning: the command libtool uses to detect shared libraries,
7221 *** $file_magic_cmd, produces output that libtool cannot recognize.
7222 *** The result is that libtool may fail to recognize shared libraries
7223 *** as such.  This will affect the creation of libtool libraries that
7224 *** depend on shared libraries, but programs linked with such libtool
7225 *** libraries will work regardless of this problem.  Nevertheless, you
7226 *** may want to report the problem to your system manager and/or to
7227 *** bug-libtool@gnu.org
7228
7229 EOF
7230           fi ;;
7231         esac
7232       fi
7233       break
7234     fi
7235   done
7236   IFS="$lt_save_ifs"
7237   MAGIC_CMD="$lt_save_MAGIC_CMD"
7238   ;;
7239 esac
7240 fi
7241
7242 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7243 if test -n "$MAGIC_CMD"; then
7244   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7245 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7246 else
7247   { echo "$as_me:$LINENO: result: no" >&5
7248 echo "${ECHO_T}no" >&6; }
7249 fi
7250
7251   else
7252     MAGIC_CMD=:
7253   fi
7254 fi
7255
7256   fi
7257   ;;
7258 esac
7259
7260 enable_dlopen=no
7261 enable_win32_dll=yes
7262
7263 # Check whether --enable-libtool-lock was given.
7264 if test "${enable_libtool_lock+set}" = set; then
7265   enableval=$enable_libtool_lock;
7266 fi
7267
7268 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7269
7270
7271 # Check whether --with-pic was given.
7272 if test "${with_pic+set}" = set; then
7273   withval=$with_pic; pic_mode="$withval"
7274 else
7275   pic_mode=default
7276 fi
7277
7278 test -z "$pic_mode" && pic_mode=default
7279
7280 # Use C for the default configuration in the libtool script
7281 tagname=
7282 lt_save_CC="$CC"
7283 ac_ext=c
7284 ac_cpp='$CPP $CPPFLAGS'
7285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7288
7289
7290 # Source file extension for C test sources.
7291 ac_ext=c
7292
7293 # Object file extension for compiled C test sources.
7294 objext=o
7295 objext=$objext
7296
7297 # Code to be used in simple compile tests
7298 lt_simple_compile_test_code="int some_variable = 0;\n"
7299
7300 # Code to be used in simple link tests
7301 lt_simple_link_test_code='int main(){return(0);}\n'
7302
7303
7304 # If no C compiler was specified, use CC.
7305 LTCC=${LTCC-"$CC"}
7306
7307 # If no C compiler flags were specified, use CFLAGS.
7308 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7309
7310 # Allow CC to be a program name with arguments.
7311 compiler=$CC
7312
7313
7314 # save warnings/boilerplate of simple test code
7315 ac_outfile=conftest.$ac_objext
7316 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7317 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7318 _lt_compiler_boilerplate=`cat conftest.err`
7319 $rm conftest*
7320
7321 ac_outfile=conftest.$ac_objext
7322 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7323 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7324 _lt_linker_boilerplate=`cat conftest.err`
7325 $rm conftest*
7326
7327
7328
7329 lt_prog_compiler_no_builtin_flag=
7330
7331 if test "$GCC" = yes; then
7332   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7333
7334
7335 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7336 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7337 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7338   echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340   lt_cv_prog_compiler_rtti_exceptions=no
7341   ac_outfile=conftest.$ac_objext
7342    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7343    lt_compiler_flag="-fno-rtti -fno-exceptions"
7344    # Insert the option either (1) after the last *FLAGS variable, or
7345    # (2) before a word containing "conftest.", or (3) at the end.
7346    # Note that $ac_compile itself does not contain backslashes and begins
7347    # with a dollar sign (not a hyphen), so the echo should work correctly.
7348    # The option is referenced via a variable to avoid confusing sed.
7349    lt_compile=`echo "$ac_compile" | $SED \
7350    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7351    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7352    -e 's:$: $lt_compiler_flag:'`
7353    (eval echo "\"\$as_me:7353: $lt_compile\"" >&5)
7354    (eval "$lt_compile" 2>conftest.err)
7355    ac_status=$?
7356    cat conftest.err >&5
7357    echo "$as_me:7357: \$? = $ac_status" >&5
7358    if (exit $ac_status) && test -s "$ac_outfile"; then
7359      # The compiler can only warn and ignore the option if not recognized
7360      # So say no if there are warnings other than the usual output.
7361      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7362      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7363      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7364        lt_cv_prog_compiler_rtti_exceptions=yes
7365      fi
7366    fi
7367    $rm conftest*
7368
7369 fi
7370 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7371 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7372
7373 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7374     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7375 else
7376     :
7377 fi
7378
7379 fi
7380
7381 lt_prog_compiler_wl=
7382 lt_prog_compiler_pic=
7383 lt_prog_compiler_static=
7384
7385 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7386 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7387
7388   if test "$GCC" = yes; then
7389     lt_prog_compiler_wl='-Wl,'
7390     lt_prog_compiler_static='-static'
7391
7392     case $host_os in
7393       aix*)
7394       # All AIX code is PIC.
7395       if test "$host_cpu" = ia64; then
7396         # AIX 5 now supports IA64 processor
7397         lt_prog_compiler_static='-Bstatic'
7398       fi
7399       ;;
7400
7401     amigaos*)
7402       # FIXME: we need at least 68020 code to build shared libraries, but
7403       # adding the `-m68020' flag to GCC prevents building anything better,
7404       # like `-m68040'.
7405       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7406       ;;
7407
7408     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7409       # PIC is the default for these OSes.
7410       ;;
7411
7412     mingw* | pw32* | os2*)
7413       # This hack is so that the source file can tell whether it is being
7414       # built for inclusion in a dll (and should export symbols for example).
7415       lt_prog_compiler_pic='-DDLL_EXPORT'
7416       ;;
7417
7418     darwin* | rhapsody*)
7419       # PIC is the default on this platform
7420       # Common symbols not allowed in MH_DYLIB files
7421       lt_prog_compiler_pic='-fno-common'
7422       ;;
7423
7424     interix3*)
7425       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7426       # Instead, we relocate shared libraries at runtime.
7427       ;;
7428
7429     msdosdjgpp*)
7430       # Just because we use GCC doesn't mean we suddenly get shared libraries
7431       # on systems that don't support them.
7432       lt_prog_compiler_can_build_shared=no
7433       enable_shared=no
7434       ;;
7435
7436     sysv4*MP*)
7437       if test -d /usr/nec; then
7438         lt_prog_compiler_pic=-Kconform_pic
7439       fi
7440       ;;
7441
7442     hpux*)
7443       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7444       # not for PA HP-UX.
7445       case $host_cpu in
7446       hppa*64*|ia64*)
7447         # +Z the default
7448         ;;
7449       *)
7450         lt_prog_compiler_pic='-fPIC'
7451         ;;
7452       esac
7453       ;;
7454
7455     *)
7456       lt_prog_compiler_pic='-fPIC'
7457       ;;
7458     esac
7459   else
7460     # PORTME Check for flag to pass linker flags through the system compiler.
7461     case $host_os in
7462     aix*)
7463       lt_prog_compiler_wl='-Wl,'
7464       if test "$host_cpu" = ia64; then
7465         # AIX 5 now supports IA64 processor
7466         lt_prog_compiler_static='-Bstatic'
7467       else
7468         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7469       fi
7470       ;;
7471       darwin*)
7472         # PIC is the default on this platform
7473         # Common symbols not allowed in MH_DYLIB files
7474        case $cc_basename in
7475          xlc*)
7476          lt_prog_compiler_pic='-qnocommon'
7477          lt_prog_compiler_wl='-Wl,'
7478          ;;
7479        esac
7480        ;;
7481
7482     mingw* | pw32* | os2*)
7483       # This hack is so that the source file can tell whether it is being
7484       # built for inclusion in a dll (and should export symbols for example).
7485       lt_prog_compiler_pic='-DDLL_EXPORT'
7486       ;;
7487
7488     hpux9* | hpux10* | hpux11*)
7489       lt_prog_compiler_wl='-Wl,'
7490       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7491       # not for PA HP-UX.
7492       case $host_cpu in
7493       hppa*64*|ia64*)
7494         # +Z the default
7495         ;;
7496       *)
7497         lt_prog_compiler_pic='+Z'
7498         ;;
7499       esac
7500       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7501       lt_prog_compiler_static='${wl}-a ${wl}archive'
7502       ;;
7503
7504     irix5* | irix6* | nonstopux*)
7505       lt_prog_compiler_wl='-Wl,'
7506       # PIC (with -KPIC) is the default.
7507       lt_prog_compiler_static='-non_shared'
7508       ;;
7509
7510     newsos6)
7511       lt_prog_compiler_pic='-KPIC'
7512       lt_prog_compiler_static='-Bstatic'
7513       ;;
7514
7515     linux* | k*bsd*-gnu)
7516       case $cc_basename in
7517       icc* | ecc*)
7518         lt_prog_compiler_wl='-Wl,'
7519         lt_prog_compiler_pic='-KPIC'
7520         lt_prog_compiler_static='-static'
7521         ;;
7522       pgcc* | pgf77* | pgf90* | pgf95*)
7523         # Portland Group compilers (*not* the Pentium gcc compiler,
7524         # which looks to be a dead project)
7525         lt_prog_compiler_wl='-Wl,'
7526         lt_prog_compiler_pic='-fpic'
7527         lt_prog_compiler_static='-Bstatic'
7528         ;;
7529       ccc*)
7530         lt_prog_compiler_wl='-Wl,'
7531         # All Alpha code is PIC.
7532         lt_prog_compiler_static='-non_shared'
7533         ;;
7534       esac
7535       ;;
7536
7537     osf3* | osf4* | osf5*)
7538       lt_prog_compiler_wl='-Wl,'
7539       # All OSF/1 code is PIC.
7540       lt_prog_compiler_static='-non_shared'
7541       ;;
7542
7543     solaris*)
7544       lt_prog_compiler_pic='-KPIC'
7545       lt_prog_compiler_static='-Bstatic'
7546       case $cc_basename in
7547       f77* | f90* | f95*)
7548         lt_prog_compiler_wl='-Qoption ld ';;
7549       *)
7550         lt_prog_compiler_wl='-Wl,';;
7551       esac
7552       ;;
7553
7554     sunos4*)
7555       lt_prog_compiler_wl='-Qoption ld '
7556       lt_prog_compiler_pic='-PIC'
7557       lt_prog_compiler_static='-Bstatic'
7558       ;;
7559
7560     sysv4 | sysv4.2uw2* | sysv4.3*)
7561       lt_prog_compiler_wl='-Wl,'
7562       lt_prog_compiler_pic='-KPIC'
7563       lt_prog_compiler_static='-Bstatic'
7564       ;;
7565
7566     sysv4*MP*)
7567       if test -d /usr/nec ;then
7568         lt_prog_compiler_pic='-Kconform_pic'
7569         lt_prog_compiler_static='-Bstatic'
7570       fi
7571       ;;
7572
7573     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7574       lt_prog_compiler_wl='-Wl,'
7575       lt_prog_compiler_pic='-KPIC'
7576       lt_prog_compiler_static='-Bstatic'
7577       ;;
7578
7579     unicos*)
7580       lt_prog_compiler_wl='-Wl,'
7581       lt_prog_compiler_can_build_shared=no
7582       ;;
7583
7584     uts4*)
7585       lt_prog_compiler_pic='-pic'
7586       lt_prog_compiler_static='-Bstatic'
7587       ;;
7588
7589     *)
7590       lt_prog_compiler_can_build_shared=no
7591       ;;
7592     esac
7593   fi
7594
7595 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7596 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7597
7598 #
7599 # Check to make sure the PIC flag actually works.
7600 #
7601 if test -n "$lt_prog_compiler_pic"; then
7602
7603 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7604 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7605 if test "${lt_prog_compiler_pic_works+set}" = set; then
7606   echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
7608   lt_prog_compiler_pic_works=no
7609   ac_outfile=conftest.$ac_objext
7610    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7611    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7612    # Insert the option either (1) after the last *FLAGS variable, or
7613    # (2) before a word containing "conftest.", or (3) at the end.
7614    # Note that $ac_compile itself does not contain backslashes and begins
7615    # with a dollar sign (not a hyphen), so the echo should work correctly.
7616    # The option is referenced via a variable to avoid confusing sed.
7617    lt_compile=`echo "$ac_compile" | $SED \
7618    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7619    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7620    -e 's:$: $lt_compiler_flag:'`
7621    (eval echo "\"\$as_me:7621: $lt_compile\"" >&5)
7622    (eval "$lt_compile" 2>conftest.err)
7623    ac_status=$?
7624    cat conftest.err >&5
7625    echo "$as_me:7625: \$? = $ac_status" >&5
7626    if (exit $ac_status) && test -s "$ac_outfile"; then
7627      # The compiler can only warn and ignore the option if not recognized
7628      # So say no if there are warnings other than the usual output.
7629      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7630      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7631      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7632        lt_prog_compiler_pic_works=yes
7633      fi
7634    fi
7635    $rm conftest*
7636
7637 fi
7638 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7639 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7640
7641 if test x"$lt_prog_compiler_pic_works" = xyes; then
7642     case $lt_prog_compiler_pic in
7643      "" | " "*) ;;
7644      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7645      esac
7646 else
7647     lt_prog_compiler_pic=
7648      lt_prog_compiler_can_build_shared=no
7649 fi
7650
7651 fi
7652 case $host_os in
7653   # For platforms which do not support PIC, -DPIC is meaningless:
7654   *djgpp*)
7655     lt_prog_compiler_pic=
7656     ;;
7657   *)
7658     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7659     ;;
7660 esac
7661
7662 #
7663 # Check to make sure the static flag actually works.
7664 #
7665 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7666 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7667 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7668 if test "${lt_prog_compiler_static_works+set}" = set; then
7669   echo $ECHO_N "(cached) $ECHO_C" >&6
7670 else
7671   lt_prog_compiler_static_works=no
7672    save_LDFLAGS="$LDFLAGS"
7673    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7674    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7675    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7676      # The linker can only warn and ignore the option if not recognized
7677      # So say no if there are warnings
7678      if test -s conftest.err; then
7679        # Append any errors to the config.log.
7680        cat conftest.err 1>&5
7681        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7682        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7683        if diff conftest.exp conftest.er2 >/dev/null; then
7684          lt_prog_compiler_static_works=yes
7685        fi
7686      else
7687        lt_prog_compiler_static_works=yes
7688      fi
7689    fi
7690    $rm conftest*
7691    LDFLAGS="$save_LDFLAGS"
7692
7693 fi
7694 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7695 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7696
7697 if test x"$lt_prog_compiler_static_works" = xyes; then
7698     :
7699 else
7700     lt_prog_compiler_static=
7701 fi
7702
7703
7704 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7705 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7706 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7707   echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709   lt_cv_prog_compiler_c_o=no
7710    $rm -r conftest 2>/dev/null
7711    mkdir conftest
7712    cd conftest
7713    mkdir out
7714    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7715
7716    lt_compiler_flag="-o out/conftest2.$ac_objext"
7717    # Insert the option either (1) after the last *FLAGS variable, or
7718    # (2) before a word containing "conftest.", or (3) at the end.
7719    # Note that $ac_compile itself does not contain backslashes and begins
7720    # with a dollar sign (not a hyphen), so the echo should work correctly.
7721    lt_compile=`echo "$ac_compile" | $SED \
7722    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7723    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7724    -e 's:$: $lt_compiler_flag:'`
7725    (eval echo "\"\$as_me:7725: $lt_compile\"" >&5)
7726    (eval "$lt_compile" 2>out/conftest.err)
7727    ac_status=$?
7728    cat out/conftest.err >&5
7729    echo "$as_me:7729: \$? = $ac_status" >&5
7730    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7731    then
7732      # The compiler can only warn and ignore the option if not recognized
7733      # So say no if there are warnings
7734      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7735      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7736      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7737        lt_cv_prog_compiler_c_o=yes
7738      fi
7739    fi
7740    chmod u+w . 2>&5
7741    $rm conftest*
7742    # SGI C++ compiler will create directory out/ii_files/ for
7743    # template instantiation
7744    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7745    $rm out/* && rmdir out
7746    cd ..
7747    rmdir conftest
7748    $rm conftest*
7749
7750 fi
7751 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7752 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7753
7754
7755 hard_links="nottested"
7756 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7757   # do not overwrite the value of need_locks provided by the user
7758   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7759 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7760   hard_links=yes
7761   $rm conftest*
7762   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7763   touch conftest.a
7764   ln conftest.a conftest.b 2>&5 || hard_links=no
7765   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7766   { echo "$as_me:$LINENO: result: $hard_links" >&5
7767 echo "${ECHO_T}$hard_links" >&6; }
7768   if test "$hard_links" = no; then
7769     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7770 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7771     need_locks=warn
7772   fi
7773 else
7774   need_locks=no
7775 fi
7776
7777 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7778 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7779
7780   runpath_var=
7781   allow_undefined_flag=
7782   enable_shared_with_static_runtimes=no
7783   archive_cmds=
7784   archive_expsym_cmds=
7785   old_archive_From_new_cmds=
7786   old_archive_from_expsyms_cmds=
7787   export_dynamic_flag_spec=
7788   whole_archive_flag_spec=
7789   thread_safe_flag_spec=
7790   hardcode_libdir_flag_spec=
7791   hardcode_libdir_flag_spec_ld=
7792   hardcode_libdir_separator=
7793   hardcode_direct=no
7794   hardcode_minus_L=no
7795   hardcode_shlibpath_var=unsupported
7796   link_all_deplibs=unknown
7797   hardcode_automatic=no
7798   module_cmds=
7799   module_expsym_cmds=
7800   always_export_symbols=no
7801   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7802   # include_expsyms should be a list of space-separated symbols to be *always*
7803   # included in the symbol list
7804   include_expsyms=
7805   # exclude_expsyms can be an extended regexp of symbols to exclude
7806   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7807   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7808   # as well as any symbol that contains `d'.
7809   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7810   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7811   # platforms (ab)use it in PIC code, but their linkers get confused if
7812   # the symbol is explicitly referenced.  Since portable code cannot
7813   # rely on this symbol name, it's probably fine to never include it in
7814   # preloaded symbol tables.
7815   extract_expsyms_cmds=
7816   # Just being paranoid about ensuring that cc_basename is set.
7817   for cc_temp in $compiler""; do
7818   case $cc_temp in
7819     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7820     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7821     \-*) ;;
7822     *) break;;
7823   esac
7824 done
7825 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7826
7827   case $host_os in
7828   cygwin* | mingw* | pw32*)
7829     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7830     # When not using gcc, we currently assume that we are using
7831     # Microsoft Visual C++.
7832     if test "$GCC" != yes; then
7833       with_gnu_ld=no
7834     fi
7835     ;;
7836   interix*)
7837     # we just hope/assume this is gcc and not c89 (= MSVC++)
7838     with_gnu_ld=yes
7839     ;;
7840   openbsd*)
7841     with_gnu_ld=no
7842     ;;
7843   esac
7844
7845   ld_shlibs=yes
7846   if test "$with_gnu_ld" = yes; then
7847     # If archive_cmds runs LD, not CC, wlarc should be empty
7848     wlarc='${wl}'
7849
7850     # Set some defaults for GNU ld with shared library support. These
7851     # are reset later if shared libraries are not supported. Putting them
7852     # here allows them to be overridden if necessary.
7853     runpath_var=LD_RUN_PATH
7854     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7855     export_dynamic_flag_spec='${wl}--export-dynamic'
7856     # ancient GNU ld didn't support --whole-archive et. al.
7857     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7858         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7859       else
7860         whole_archive_flag_spec=
7861     fi
7862     supports_anon_versioning=no
7863     case `$LD -v 2>/dev/null` in
7864       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7865       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7866       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7867       *\ 2.11.*) ;; # other 2.11 versions
7868       *) supports_anon_versioning=yes ;;
7869     esac
7870
7871     # See if GNU ld supports shared libraries.
7872     case $host_os in
7873     aix3* | aix4* | aix5*)
7874       # On AIX/PPC, the GNU linker is very broken
7875       if test "$host_cpu" != ia64; then
7876         ld_shlibs=no
7877         cat <<EOF 1>&2
7878
7879 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7880 *** to be unable to reliably create shared libraries on AIX.
7881 *** Therefore, libtool is disabling shared libraries support.  If you
7882 *** really care for shared libraries, you may want to modify your PATH
7883 *** so that a non-GNU linker is found, and then restart.
7884
7885 EOF
7886       fi
7887       ;;
7888
7889     amigaos*)
7890       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)'
7891       hardcode_libdir_flag_spec='-L$libdir'
7892       hardcode_minus_L=yes
7893
7894       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7895       # that the semantics of dynamic libraries on AmigaOS, at least up
7896       # to version 4, is to share data among multiple programs linked
7897       # with the same dynamic library.  Since this doesn't match the
7898       # behavior of shared libraries on other platforms, we can't use
7899       # them.
7900       ld_shlibs=no
7901       ;;
7902
7903     beos*)
7904       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7905         allow_undefined_flag=unsupported
7906         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7907         # support --undefined.  This deserves some investigation.  FIXME
7908         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7909       else
7910         ld_shlibs=no
7911       fi
7912       ;;
7913
7914     cygwin* | mingw* | pw32*)
7915       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7916       # as there is no search path for DLLs.
7917       hardcode_libdir_flag_spec='-L$libdir'
7918       allow_undefined_flag=unsupported
7919       always_export_symbols=no
7920       enable_shared_with_static_runtimes=yes
7921       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7922
7923       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7924         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7925         # If the export-symbols file already is a .def file (1st line
7926         # is EXPORTS), use it as is; otherwise, prepend...
7927         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7928           cp $export_symbols $output_objdir/$soname.def;
7929         else
7930           echo EXPORTS > $output_objdir/$soname.def;
7931           cat $export_symbols >> $output_objdir/$soname.def;
7932         fi~
7933         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7934       else
7935         ld_shlibs=no
7936       fi
7937       ;;
7938
7939     interix3*)
7940       hardcode_direct=no
7941       hardcode_shlibpath_var=no
7942       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7943       export_dynamic_flag_spec='${wl}-E'
7944       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7945       # Instead, shared libraries are loaded at an image base (0x10000000 by
7946       # default) and relocated if they conflict, which is a slow very memory
7947       # consuming and fragmenting process.  To avoid this, we pick a random,
7948       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7949       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7950       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7951       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'
7952       ;;
7953
7954     linux* | k*bsd*-gnu)
7955       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7956         tmp_addflag=
7957         case $cc_basename,$host_cpu in
7958         pgcc*)                          # Portland Group C compiler
7959           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'
7960           tmp_addflag=' $pic_flag'
7961           ;;
7962         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7963           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'
7964           tmp_addflag=' $pic_flag -Mnomain' ;;
7965         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7966           tmp_addflag=' -i_dynamic' ;;
7967         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7968           tmp_addflag=' -i_dynamic -nofor_main' ;;
7969         ifc* | ifort*)                  # Intel Fortran compiler
7970           tmp_addflag=' -nofor_main' ;;
7971         esac
7972         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7973
7974         if test $supports_anon_versioning = yes; then
7975           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7976   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7977   $echo "local: *; };" >> $output_objdir/$libname.ver~
7978           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7979         fi
7980         link_all_deplibs=no
7981       else
7982         ld_shlibs=no
7983       fi
7984       ;;
7985
7986     netbsd* | netbsdelf*-gnu)
7987       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7988         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7989         wlarc=
7990       else
7991         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7992         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7993       fi
7994       ;;
7995
7996     solaris*)
7997       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7998         ld_shlibs=no
7999         cat <<EOF 1>&2
8000
8001 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8002 *** create shared libraries on Solaris systems.  Therefore, libtool
8003 *** is disabling shared libraries support.  We urge you to upgrade GNU
8004 *** binutils to release 2.9.1 or newer.  Another option is to modify
8005 *** your PATH or compiler configuration so that the native linker is
8006 *** used, and then restart.
8007
8008 EOF
8009       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8010         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8011         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8012       else
8013         ld_shlibs=no
8014       fi
8015       ;;
8016
8017     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8018       case `$LD -v 2>&1` in
8019         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8020         ld_shlibs=no
8021         cat <<_LT_EOF 1>&2
8022
8023 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8024 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8025 *** is disabling shared libraries support.  We urge you to upgrade GNU
8026 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8027 *** your PATH or compiler configuration so that the native linker is
8028 *** used, and then restart.
8029
8030 _LT_EOF
8031         ;;
8032         *)
8033           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8034             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8035             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8036             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8037           else
8038             ld_shlibs=no
8039           fi
8040         ;;
8041       esac
8042       ;;
8043
8044     sunos4*)
8045       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8046       wlarc=
8047       hardcode_direct=yes
8048       hardcode_shlibpath_var=no
8049       ;;
8050
8051     *)
8052       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8053         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8054         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8055       else
8056         ld_shlibs=no
8057       fi
8058       ;;
8059     esac
8060
8061     if test "$ld_shlibs" = no; then
8062       runpath_var=
8063       hardcode_libdir_flag_spec=
8064       export_dynamic_flag_spec=
8065       whole_archive_flag_spec=
8066     fi
8067   else
8068     # PORTME fill in a description of your system's linker (not GNU ld)
8069     case $host_os in
8070     aix3*)
8071       allow_undefined_flag=unsupported
8072       always_export_symbols=yes
8073       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'
8074       # Note: this linker hardcodes the directories in LIBPATH if there
8075       # are no directories specified by -L.
8076       hardcode_minus_L=yes
8077       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8078         # Neither direct hardcoding nor static linking is supported with a
8079         # broken collect2.
8080         hardcode_direct=unsupported
8081       fi
8082       ;;
8083
8084     aix4* | aix5*)
8085       if test "$host_cpu" = ia64; then
8086         # On IA64, the linker does run time linking by default, so we don't
8087         # have to do anything special.
8088         aix_use_runtimelinking=no
8089         exp_sym_flag='-Bexport'
8090         no_entry_flag=""
8091       else
8092         # If we're using GNU nm, then we don't want the "-C" option.
8093         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8094         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8095           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'
8096         else
8097           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'
8098         fi
8099         aix_use_runtimelinking=no
8100
8101         # Test if we are trying to use run time linking or normal
8102         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8103         # need to do runtime linking.
8104         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8105           for ld_flag in $LDFLAGS; do
8106           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8107             aix_use_runtimelinking=yes
8108             break
8109           fi
8110           done
8111           ;;
8112         esac
8113
8114         exp_sym_flag='-bexport'
8115         no_entry_flag='-bnoentry'
8116       fi
8117
8118       # When large executables or shared objects are built, AIX ld can
8119       # have problems creating the table of contents.  If linking a library
8120       # or program results in "error TOC overflow" add -mminimal-toc to
8121       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8122       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8123
8124       archive_cmds=''
8125       hardcode_direct=yes
8126       hardcode_libdir_separator=':'
8127       link_all_deplibs=yes
8128
8129       if test "$GCC" = yes; then
8130         case $host_os in aix4.[012]|aix4.[012].*)
8131         # We only want to do this on AIX 4.2 and lower, the check
8132         # below for broken collect2 doesn't work under 4.3+
8133           collect2name=`${CC} -print-prog-name=collect2`
8134           if test -f "$collect2name" && \
8135            strings "$collect2name" | grep resolve_lib_name >/dev/null
8136           then
8137           # We have reworked collect2
8138           hardcode_direct=yes
8139           else
8140           # We have old collect2
8141           hardcode_direct=unsupported
8142           # It fails to find uninstalled libraries when the uninstalled
8143           # path is not listed in the libpath.  Setting hardcode_minus_L
8144           # to unsupported forces relinking
8145           hardcode_minus_L=yes
8146           hardcode_libdir_flag_spec='-L$libdir'
8147           hardcode_libdir_separator=
8148           fi
8149           ;;
8150         esac
8151         shared_flag='-shared'
8152         if test "$aix_use_runtimelinking" = yes; then
8153           shared_flag="$shared_flag "'${wl}-G'
8154         fi
8155       else
8156         # not using gcc
8157         if test "$host_cpu" = ia64; then
8158         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8159         # chokes on -Wl,-G. The following line is correct:
8160           shared_flag='-G'
8161         else
8162           if test "$aix_use_runtimelinking" = yes; then
8163             shared_flag='${wl}-G'
8164           else
8165             shared_flag='${wl}-bM:SRE'
8166           fi
8167         fi
8168       fi
8169
8170       # It seems that -bexpall does not export symbols beginning with
8171       # underscore (_), so it is better to generate a list of symbols to export.
8172       always_export_symbols=yes
8173       if test "$aix_use_runtimelinking" = yes; then
8174         # Warning - without using the other runtime loading flags (-brtl),
8175         # -berok will link without error, but may produce a broken library.
8176         allow_undefined_flag='-berok'
8177        # Determine the default libpath from the value encoded in an empty executable.
8178        cat >conftest.$ac_ext <<_ACEOF
8179 /* confdefs.h.  */
8180 _ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h.  */
8184
8185 int
8186 main ()
8187 {
8188
8189   ;
8190   return 0;
8191 }
8192 _ACEOF
8193 rm -f conftest.$ac_objext conftest$ac_exeext
8194 if { (ac_try="$ac_link"
8195 case "(($ac_try" in
8196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197   *) ac_try_echo=$ac_try;;
8198 esac
8199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200   (eval "$ac_link") 2>conftest.er1
8201   ac_status=$?
8202   grep -v '^ *+' conftest.er1 >conftest.err
8203   rm -f conftest.er1
8204   cat conftest.err >&5
8205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206   (exit $ac_status); } && {
8207          test -z "$ac_c_werror_flag" ||
8208          test ! -s conftest.err
8209        } && test -s conftest$ac_exeext &&
8210        $as_test_x conftest$ac_exeext; then
8211
8212 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8213 }'`
8214 # Check for a 64-bit object if we didn't find anything.
8215 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; }
8216 }'`; fi
8217 else
8218   echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8220
8221
8222 fi
8223
8224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8225       conftest$ac_exeext conftest.$ac_ext
8226 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8227
8228        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8229         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"
8230        else
8231         if test "$host_cpu" = ia64; then
8232           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8233           allow_undefined_flag="-z nodefs"
8234           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"
8235         else
8236          # Determine the default libpath from the value encoded in an empty executable.
8237          cat >conftest.$ac_ext <<_ACEOF
8238 /* confdefs.h.  */
8239 _ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h.  */
8243
8244 int
8245 main ()
8246 {
8247
8248   ;
8249   return 0;
8250 }
8251 _ACEOF
8252 rm -f conftest.$ac_objext conftest$ac_exeext
8253 if { (ac_try="$ac_link"
8254 case "(($ac_try" in
8255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256   *) ac_try_echo=$ac_try;;
8257 esac
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259   (eval "$ac_link") 2>conftest.er1
8260   ac_status=$?
8261   grep -v '^ *+' conftest.er1 >conftest.err
8262   rm -f conftest.er1
8263   cat conftest.err >&5
8264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265   (exit $ac_status); } && {
8266          test -z "$ac_c_werror_flag" ||
8267          test ! -s conftest.err
8268        } && test -s conftest$ac_exeext &&
8269        $as_test_x conftest$ac_exeext; then
8270
8271 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8272 }'`
8273 # Check for a 64-bit object if we didn't find anything.
8274 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; }
8275 }'`; fi
8276 else
8277   echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8279
8280
8281 fi
8282
8283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8284       conftest$ac_exeext conftest.$ac_ext
8285 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8286
8287          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8288           # Warning - without using the other run time loading flags,
8289           # -berok will link without error, but may produce a broken library.
8290           no_undefined_flag=' ${wl}-bernotok'
8291           allow_undefined_flag=' ${wl}-berok'
8292           # Exported symbols can be pulled into shared objects from archives
8293           whole_archive_flag_spec='$convenience'
8294           archive_cmds_need_lc=yes
8295           # This is similar to how AIX traditionally builds its shared libraries.
8296           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'
8297         fi
8298       fi
8299       ;;
8300
8301     amigaos*)
8302       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)'
8303       hardcode_libdir_flag_spec='-L$libdir'
8304       hardcode_minus_L=yes
8305       # see comment about different semantics on the GNU ld section
8306       ld_shlibs=no
8307       ;;
8308
8309     bsdi[45]*)
8310       export_dynamic_flag_spec=-rdynamic
8311       ;;
8312
8313     cygwin* | mingw* | pw32*)
8314       # When not using gcc, we currently assume that we are using
8315       # Microsoft Visual C++.
8316       # hardcode_libdir_flag_spec is actually meaningless, as there is
8317       # no search path for DLLs.
8318       hardcode_libdir_flag_spec=' '
8319       allow_undefined_flag=unsupported
8320       # Tell ltmain to make .lib files, not .a files.
8321       libext=lib
8322       # Tell ltmain to make .dll files, not .so files.
8323       shrext_cmds=".dll"
8324       # FIXME: Setting linknames here is a bad hack.
8325       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8326       # The linker will automatically build a .lib file if we build a DLL.
8327       old_archive_From_new_cmds='true'
8328       # FIXME: Should let the user specify the lib program.
8329       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8330       fix_srcfile_path='`cygpath -w "$srcfile"`'
8331       enable_shared_with_static_runtimes=yes
8332       ;;
8333
8334     darwin* | rhapsody*)
8335       case $host_os in
8336         rhapsody* | darwin1.[012])
8337          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8338          ;;
8339        *) # Darwin 1.3 on
8340          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8341            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8342          else
8343            case ${MACOSX_DEPLOYMENT_TARGET} in
8344              10.[012])
8345                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8346                ;;
8347              10.*)
8348                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8349                ;;
8350            esac
8351          fi
8352          ;;
8353       esac
8354       archive_cmds_need_lc=no
8355       hardcode_direct=no
8356       hardcode_automatic=yes
8357       hardcode_shlibpath_var=unsupported
8358       whole_archive_flag_spec=''
8359       link_all_deplibs=yes
8360     if test "$GCC" = yes ; then
8361         output_verbose_link_cmd='echo'
8362         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8363       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8364       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8365       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}'
8366       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}'
8367     else
8368       case $cc_basename in
8369         xlc*)
8370          output_verbose_link_cmd='echo'
8371          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8372          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8373           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8374          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}'
8375           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}'
8376           ;;
8377        *)
8378          ld_shlibs=no
8379           ;;
8380       esac
8381     fi
8382       ;;
8383
8384     dgux*)
8385       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8386       hardcode_libdir_flag_spec='-L$libdir'
8387       hardcode_shlibpath_var=no
8388       ;;
8389
8390     freebsd1*)
8391       ld_shlibs=no
8392       ;;
8393
8394     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8395     # support.  Future versions do this automatically, but an explicit c++rt0.o
8396     # does not break anything, and helps significantly (at the cost of a little
8397     # extra space).
8398     freebsd2.2*)
8399       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8400       hardcode_libdir_flag_spec='-R$libdir'
8401       hardcode_direct=yes
8402       hardcode_shlibpath_var=no
8403       ;;
8404
8405     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8406     freebsd2*)
8407       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8408       hardcode_direct=yes
8409       hardcode_minus_L=yes
8410       hardcode_shlibpath_var=no
8411       ;;
8412
8413     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8414     freebsd* | dragonfly*)
8415       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8416       hardcode_libdir_flag_spec='-R$libdir'
8417       hardcode_direct=yes
8418       hardcode_shlibpath_var=no
8419       ;;
8420
8421     hpux9*)
8422       if test "$GCC" = yes; then
8423         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'
8424       else
8425         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'
8426       fi
8427       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8428       hardcode_libdir_separator=:
8429       hardcode_direct=yes
8430
8431       # hardcode_minus_L: Not really in the search PATH,
8432       # but as the default location of the library.
8433       hardcode_minus_L=yes
8434       export_dynamic_flag_spec='${wl}-E'
8435       ;;
8436
8437     hpux10*)
8438       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8439         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8440       else
8441         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8442       fi
8443       if test "$with_gnu_ld" = no; then
8444         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8445         hardcode_libdir_separator=:
8446
8447         hardcode_direct=yes
8448         export_dynamic_flag_spec='${wl}-E'
8449
8450         # hardcode_minus_L: Not really in the search PATH,
8451         # but as the default location of the library.
8452         hardcode_minus_L=yes
8453       fi
8454       ;;
8455
8456     hpux11*)
8457       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8458         case $host_cpu in
8459         hppa*64*)
8460           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8461           ;;
8462         ia64*)
8463           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8464           ;;
8465         *)
8466           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8467           ;;
8468         esac
8469       else
8470         case $host_cpu in
8471         hppa*64*)
8472           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8473           ;;
8474         ia64*)
8475           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8476           ;;
8477         *)
8478           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8479           ;;
8480         esac
8481       fi
8482       if test "$with_gnu_ld" = no; then
8483         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8484         hardcode_libdir_separator=:
8485
8486         case $host_cpu in
8487         hppa*64*|ia64*)
8488           hardcode_libdir_flag_spec_ld='+b $libdir'
8489           hardcode_direct=no
8490           hardcode_shlibpath_var=no
8491           ;;
8492         *)
8493           hardcode_direct=yes
8494           export_dynamic_flag_spec='${wl}-E'
8495
8496           # hardcode_minus_L: Not really in the search PATH,
8497           # but as the default location of the library.
8498           hardcode_minus_L=yes
8499           ;;
8500         esac
8501       fi
8502       ;;
8503
8504     irix5* | irix6* | nonstopux*)
8505       if test "$GCC" = yes; then
8506         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'
8507       else
8508         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'
8509         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8510       fi
8511       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8512       hardcode_libdir_separator=:
8513       link_all_deplibs=yes
8514       ;;
8515
8516     netbsd* | netbsdelf*-gnu)
8517       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8518         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8519       else
8520         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8521       fi
8522       hardcode_libdir_flag_spec='-R$libdir'
8523       hardcode_direct=yes
8524       hardcode_shlibpath_var=no
8525       ;;
8526
8527     newsos6)
8528       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8529       hardcode_direct=yes
8530       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8531       hardcode_libdir_separator=:
8532       hardcode_shlibpath_var=no
8533       ;;
8534
8535     openbsd*)
8536       hardcode_direct=yes
8537       hardcode_shlibpath_var=no
8538       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8539         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8540         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8541         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8542         export_dynamic_flag_spec='${wl}-E'
8543       else
8544        case $host_os in
8545          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8546            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8547            hardcode_libdir_flag_spec='-R$libdir'
8548            ;;
8549          *)
8550            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8551            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8552            ;;
8553        esac
8554       fi
8555       ;;
8556
8557     os2*)
8558       hardcode_libdir_flag_spec='-L$libdir'
8559       hardcode_minus_L=yes
8560       allow_undefined_flag=unsupported
8561       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'
8562       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8563       ;;
8564
8565     osf3*)
8566       if test "$GCC" = yes; then
8567         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8568         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'
8569       else
8570         allow_undefined_flag=' -expect_unresolved \*'
8571         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'
8572       fi
8573       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8574       hardcode_libdir_separator=:
8575       ;;
8576
8577     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8578       if test "$GCC" = yes; then
8579         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8580         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'
8581         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8582       else
8583         allow_undefined_flag=' -expect_unresolved \*'
8584         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'
8585         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8586         $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'
8587
8588         # Both c and cxx compiler support -rpath directly
8589         hardcode_libdir_flag_spec='-rpath $libdir'
8590       fi
8591       hardcode_libdir_separator=:
8592       ;;
8593
8594     solaris*)
8595       no_undefined_flag=' -z text'
8596       if test "$GCC" = yes; then
8597         wlarc='${wl}'
8598         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8599         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8600           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8601       else
8602         wlarc=''
8603         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8604         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8605         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8606       fi
8607       hardcode_libdir_flag_spec='-R$libdir'
8608       hardcode_shlibpath_var=no
8609       case $host_os in
8610       solaris2.[0-5] | solaris2.[0-5].*) ;;
8611       *)
8612         # The compiler driver will combine linker options so we
8613         # cannot just pass the convience library names through
8614         # without $wl, iff we do not link with $LD.
8615         # Luckily, gcc supports the same syntax we need for Sun Studio.
8616         # Supported since Solaris 2.6 (maybe 2.5.1?)
8617         case $wlarc in
8618         '')
8619           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8620         *)
8621           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' ;;
8622         esac ;;
8623       esac
8624       link_all_deplibs=yes
8625       ;;
8626
8627     sunos4*)
8628       if test "x$host_vendor" = xsequent; then
8629         # Use $CC to link under sequent, because it throws in some extra .o
8630         # files that make .init and .fini sections work.
8631         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8632       else
8633         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8634       fi
8635       hardcode_libdir_flag_spec='-L$libdir'
8636       hardcode_direct=yes
8637       hardcode_minus_L=yes
8638       hardcode_shlibpath_var=no
8639       ;;
8640
8641     sysv4)
8642       case $host_vendor in
8643         sni)
8644           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8645           hardcode_direct=yes # is this really true???
8646         ;;
8647         siemens)
8648           ## LD is ld it makes a PLAMLIB
8649           ## CC just makes a GrossModule.
8650           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8651           reload_cmds='$CC -r -o $output$reload_objs'
8652           hardcode_direct=no
8653         ;;
8654         motorola)
8655           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8656           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8657         ;;
8658       esac
8659       runpath_var='LD_RUN_PATH'
8660       hardcode_shlibpath_var=no
8661       ;;
8662
8663     sysv4.3*)
8664       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8665       hardcode_shlibpath_var=no
8666       export_dynamic_flag_spec='-Bexport'
8667       ;;
8668
8669     sysv4*MP*)
8670       if test -d /usr/nec; then
8671         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8672         hardcode_shlibpath_var=no
8673         runpath_var=LD_RUN_PATH
8674         hardcode_runpath_var=yes
8675         ld_shlibs=yes
8676       fi
8677       ;;
8678
8679     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8680       no_undefined_flag='${wl}-z,text'
8681       archive_cmds_need_lc=no
8682       hardcode_shlibpath_var=no
8683       runpath_var='LD_RUN_PATH'
8684
8685       if test "$GCC" = yes; then
8686         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8687         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8688       else
8689         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8690         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8691       fi
8692       ;;
8693
8694     sysv5* | sco3.2v5* | sco5v6*)
8695       # Note: We can NOT use -z defs as we might desire, because we do not
8696       # link with -lc, and that would cause any symbols used from libc to
8697       # always be unresolved, which means just about no library would
8698       # ever link correctly.  If we're not using GNU ld we use -z text
8699       # though, which does catch some bad symbols but isn't as heavy-handed
8700       # as -z defs.
8701       no_undefined_flag='${wl}-z,text'
8702       allow_undefined_flag='${wl}-z,nodefs'
8703       archive_cmds_need_lc=no
8704       hardcode_shlibpath_var=no
8705       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8706       hardcode_libdir_separator=':'
8707       link_all_deplibs=yes
8708       export_dynamic_flag_spec='${wl}-Bexport'
8709       runpath_var='LD_RUN_PATH'
8710
8711       if test "$GCC" = yes; then
8712         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8713         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8714       else
8715         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8716         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8717       fi
8718       ;;
8719
8720     uts4*)
8721       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8722       hardcode_libdir_flag_spec='-L$libdir'
8723       hardcode_shlibpath_var=no
8724       ;;
8725
8726     *)
8727       ld_shlibs=no
8728       ;;
8729     esac
8730   fi
8731
8732 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8733 echo "${ECHO_T}$ld_shlibs" >&6; }
8734 test "$ld_shlibs" = no && can_build_shared=no
8735
8736 #
8737 # Do we need to explicitly link libc?
8738 #
8739 case "x$archive_cmds_need_lc" in
8740 x|xyes)
8741   # Assume -lc should be added
8742   archive_cmds_need_lc=yes
8743
8744   if test "$enable_shared" = yes && test "$GCC" = yes; then
8745     case $archive_cmds in
8746     *'~'*)
8747       # FIXME: we may have to deal with multi-command sequences.
8748       ;;
8749     '$CC '*)
8750       # Test whether the compiler implicitly links with -lc since on some
8751       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8752       # to ld, don't add -lc before -lgcc.
8753       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8754 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8755       $rm conftest*
8756       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8757
8758       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8759   (eval $ac_compile) 2>&5
8760   ac_status=$?
8761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); } 2>conftest.err; then
8763         soname=conftest
8764         lib=conftest
8765         libobjs=conftest.$ac_objext
8766         deplibs=
8767         wl=$lt_prog_compiler_wl
8768         pic_flag=$lt_prog_compiler_pic
8769         compiler_flags=-v
8770         linker_flags=-v
8771         verstring=
8772         output_objdir=.
8773         libname=conftest
8774         lt_save_allow_undefined_flag=$allow_undefined_flag
8775         allow_undefined_flag=
8776         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8777   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8778   ac_status=$?
8779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   (exit $ac_status); }
8781         then
8782           archive_cmds_need_lc=no
8783         else
8784           archive_cmds_need_lc=yes
8785         fi
8786         allow_undefined_flag=$lt_save_allow_undefined_flag
8787       else
8788         cat conftest.err 1>&5
8789       fi
8790       $rm conftest*
8791       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8792 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8793       ;;
8794     esac
8795   fi
8796   ;;
8797 esac
8798
8799 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8800 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8801 library_names_spec=
8802 libname_spec='lib$name'
8803 soname_spec=
8804 shrext_cmds=".so"
8805 postinstall_cmds=
8806 postuninstall_cmds=
8807 finish_cmds=
8808 finish_eval=
8809 shlibpath_var=
8810 shlibpath_overrides_runpath=unknown
8811 version_type=none
8812 dynamic_linker="$host_os ld.so"
8813 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8814 if test "$GCC" = yes; then
8815   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8816   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8817     # if the path contains ";" then we assume it to be the separator
8818     # otherwise default to the standard path separator (i.e. ":") - it is
8819     # assumed that no part of a normal pathname contains ";" but that should
8820     # okay in the real world where ";" in dirpaths is itself problematic.
8821     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8822   else
8823     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8824   fi
8825 else
8826   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8827 fi
8828 need_lib_prefix=unknown
8829 hardcode_into_libs=no
8830
8831 # when you set need_version to no, make sure it does not cause -set_version
8832 # flags to be left without arguments
8833 need_version=unknown
8834
8835 case $host_os in
8836 aix3*)
8837   version_type=linux
8838   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8839   shlibpath_var=LIBPATH
8840
8841   # AIX 3 has no versioning support, so we append a major version to the name.
8842   soname_spec='${libname}${release}${shared_ext}$major'
8843   ;;
8844
8845 aix4* | aix5*)
8846   version_type=linux
8847   need_lib_prefix=no
8848   need_version=no
8849   hardcode_into_libs=yes
8850   if test "$host_cpu" = ia64; then
8851     # AIX 5 supports IA64
8852     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8853     shlibpath_var=LD_LIBRARY_PATH
8854   else
8855     # With GCC up to 2.95.x, collect2 would create an import file
8856     # for dependence libraries.  The import file would start with
8857     # the line `#! .'.  This would cause the generated library to
8858     # depend on `.', always an invalid library.  This was fixed in
8859     # development snapshots of GCC prior to 3.0.
8860     case $host_os in
8861       aix4 | aix4.[01] | aix4.[01].*)
8862       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8863            echo ' yes '
8864            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8865         :
8866       else
8867         can_build_shared=no
8868       fi
8869       ;;
8870     esac
8871     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8872     # soname into executable. Probably we can add versioning support to
8873     # collect2, so additional links can be useful in future.
8874     if test "$aix_use_runtimelinking" = yes; then
8875       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8876       # instead of lib<name>.a to let people know that these are not
8877       # typical AIX shared libraries.
8878       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8879     else
8880       # We preserve .a as extension for shared libraries through AIX4.2
8881       # and later when we are not doing run time linking.
8882       library_names_spec='${libname}${release}.a $libname.a'
8883       soname_spec='${libname}${release}${shared_ext}$major'
8884     fi
8885     shlibpath_var=LIBPATH
8886   fi
8887   ;;
8888
8889 amigaos*)
8890   library_names_spec='$libname.ixlibrary $libname.a'
8891   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8892   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'
8893   ;;
8894
8895 beos*)
8896   library_names_spec='${libname}${shared_ext}'
8897   dynamic_linker="$host_os ld.so"
8898   shlibpath_var=LIBRARY_PATH
8899   ;;
8900
8901 bsdi[45]*)
8902   version_type=linux
8903   need_version=no
8904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905   soname_spec='${libname}${release}${shared_ext}$major'
8906   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8907   shlibpath_var=LD_LIBRARY_PATH
8908   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8909   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8910   # the default ld.so.conf also contains /usr/contrib/lib and
8911   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8912   # libtool to hard-code these into programs
8913   ;;
8914
8915 cygwin* | mingw* | pw32*)
8916   version_type=windows
8917   shrext_cmds=".dll"
8918   need_version=no
8919   need_lib_prefix=no
8920
8921   case $GCC,$host_os in
8922   yes,cygwin* | yes,mingw* | yes,pw32*)
8923     library_names_spec='$libname.dll.a'
8924     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8925     postinstall_cmds='base_file=`basename \${file}`~
8926       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8927       dldir=$destdir/`dirname \$dlpath`~
8928       test -d \$dldir || mkdir -p \$dldir~
8929       $install_prog $dir/$dlname \$dldir/$dlname~
8930       chmod a+x \$dldir/$dlname'
8931     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8932       dlpath=$dir/\$dldll~
8933        $rm \$dlpath'
8934     shlibpath_overrides_runpath=yes
8935
8936     case $host_os in
8937     cygwin*)
8938       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8939       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8940       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8941       ;;
8942     mingw*)
8943       # MinGW DLLs use traditional 'lib' prefix
8944       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8945       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8946       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8947         # It is most probably a Windows format PATH printed by
8948         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8949         # path with ; separators, and with drive letters. We can handle the
8950         # drive letters (cygwin fileutils understands them), so leave them,
8951         # especially as we might pass files found there to a mingw objdump,
8952         # which wouldn't understand a cygwinified path. Ahh.
8953         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8954       else
8955         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8956       fi
8957       ;;
8958     pw32*)
8959       # pw32 DLLs use 'pw' prefix rather than 'lib'
8960       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8961       ;;
8962     esac
8963     ;;
8964
8965   *)
8966     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8967     ;;
8968   esac
8969   dynamic_linker='Win32 ld.exe'
8970   # FIXME: first we should search . and the directory the executable is in
8971   shlibpath_var=PATH
8972   ;;
8973
8974 darwin* | rhapsody*)
8975   dynamic_linker="$host_os dyld"
8976   version_type=darwin
8977   need_lib_prefix=no
8978   need_version=no
8979   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8980   soname_spec='${libname}${release}${major}$shared_ext'
8981   shlibpath_overrides_runpath=yes
8982   shlibpath_var=DYLD_LIBRARY_PATH
8983   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8984   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8985   if test "$GCC" = yes; then
8986     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"`
8987   else
8988     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8989   fi
8990   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8991   ;;
8992
8993 dgux*)
8994   version_type=linux
8995   need_lib_prefix=no
8996   need_version=no
8997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8998   soname_spec='${libname}${release}${shared_ext}$major'
8999   shlibpath_var=LD_LIBRARY_PATH
9000   ;;
9001
9002 freebsd1*)
9003   dynamic_linker=no
9004   ;;
9005
9006 freebsd* | dragonfly*)
9007   # DragonFly does not have aout.  When/if they implement a new
9008   # versioning mechanism, adjust this.
9009   if test -x /usr/bin/objformat; then
9010     objformat=`/usr/bin/objformat`
9011   else
9012     case $host_os in
9013     freebsd[123]*) objformat=aout ;;
9014     *) objformat=elf ;;
9015     esac
9016   fi
9017   version_type=freebsd-$objformat
9018   case $version_type in
9019     freebsd-elf*)
9020       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9021       need_version=no
9022       need_lib_prefix=no
9023       ;;
9024     freebsd-*)
9025       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9026       need_version=yes
9027       ;;
9028   esac
9029   shlibpath_var=LD_LIBRARY_PATH
9030   case $host_os in
9031   freebsd2*)
9032     shlibpath_overrides_runpath=yes
9033     ;;
9034   freebsd3.[01]* | freebsdelf3.[01]*)
9035     shlibpath_overrides_runpath=yes
9036     hardcode_into_libs=yes
9037     ;;
9038   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9039   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9040     shlibpath_overrides_runpath=no
9041     hardcode_into_libs=yes
9042     ;;
9043   freebsd*) # from 4.6 on
9044     shlibpath_overrides_runpath=yes
9045     hardcode_into_libs=yes
9046     ;;
9047   esac
9048   ;;
9049
9050 gnu*)
9051   version_type=linux
9052   need_lib_prefix=no
9053   need_version=no
9054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9055   soname_spec='${libname}${release}${shared_ext}$major'
9056   shlibpath_var=LD_LIBRARY_PATH
9057   hardcode_into_libs=yes
9058   ;;
9059
9060 hpux9* | hpux10* | hpux11*)
9061   # Give a soname corresponding to the major version so that dld.sl refuses to
9062   # link against other versions.
9063   version_type=sunos
9064   need_lib_prefix=no
9065   need_version=no
9066   case $host_cpu in
9067   ia64*)
9068     shrext_cmds='.so'
9069     hardcode_into_libs=yes
9070     dynamic_linker="$host_os dld.so"
9071     shlibpath_var=LD_LIBRARY_PATH
9072     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9073     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074     soname_spec='${libname}${release}${shared_ext}$major'
9075     if test "X$HPUX_IA64_MODE" = X32; then
9076       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9077     else
9078       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9079     fi
9080     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9081     ;;
9082    hppa*64*)
9083      shrext_cmds='.sl'
9084      hardcode_into_libs=yes
9085      dynamic_linker="$host_os dld.sl"
9086      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9087      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9088      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9089      soname_spec='${libname}${release}${shared_ext}$major'
9090      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9091      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9092      ;;
9093    *)
9094     shrext_cmds='.sl'
9095     dynamic_linker="$host_os dld.sl"
9096     shlibpath_var=SHLIB_PATH
9097     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9098     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9099     soname_spec='${libname}${release}${shared_ext}$major'
9100     ;;
9101   esac
9102   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9103   postinstall_cmds='chmod 555 $lib'
9104   ;;
9105
9106 interix3*)
9107   version_type=linux
9108   need_lib_prefix=no
9109   need_version=no
9110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9111   soname_spec='${libname}${release}${shared_ext}$major'
9112   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9113   shlibpath_var=LD_LIBRARY_PATH
9114   shlibpath_overrides_runpath=no
9115   hardcode_into_libs=yes
9116   ;;
9117
9118 irix5* | irix6* | nonstopux*)
9119   case $host_os in
9120     nonstopux*) version_type=nonstopux ;;
9121     *)
9122         if test "$lt_cv_prog_gnu_ld" = yes; then
9123                 version_type=linux
9124         else
9125                 version_type=irix
9126         fi ;;
9127   esac
9128   need_lib_prefix=no
9129   need_version=no
9130   soname_spec='${libname}${release}${shared_ext}$major'
9131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9132   case $host_os in
9133   irix5* | nonstopux*)
9134     libsuff= shlibsuff=
9135     ;;
9136   *)
9137     case $LD in # libtool.m4 will add one of these switches to LD
9138     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9139       libsuff= shlibsuff= libmagic=32-bit;;
9140     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9141       libsuff=32 shlibsuff=N32 libmagic=N32;;
9142     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9143       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9144     *) libsuff= shlibsuff= libmagic=never-match;;
9145     esac
9146     ;;
9147   esac
9148   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9149   shlibpath_overrides_runpath=no
9150   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9151   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9152   hardcode_into_libs=yes
9153   ;;
9154
9155 # No shared lib support for Linux oldld, aout, or coff.
9156 linux*oldld* | linux*aout* | linux*coff*)
9157   dynamic_linker=no
9158   ;;
9159
9160 # This must be Linux ELF.
9161 linux* | k*bsd*-gnu)
9162   version_type=linux
9163   need_lib_prefix=no
9164   need_version=no
9165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9166   soname_spec='${libname}${release}${shared_ext}$major'
9167   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9168   shlibpath_var=LD_LIBRARY_PATH
9169   shlibpath_overrides_runpath=no
9170   # This implies no fast_install, which is unacceptable.
9171   # Some rework will be needed to allow for fast_install
9172   # before this can be enabled.
9173   hardcode_into_libs=yes
9174
9175   # Append ld.so.conf contents to the search path
9176   if test -f /etc/ld.so.conf; then
9177     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' ' '`
9178     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9179   fi
9180
9181   # We used to test for /lib/ld.so.1 and disable shared libraries on
9182   # powerpc, because MkLinux only supported shared libraries with the
9183   # GNU dynamic linker.  Since this was broken with cross compilers,
9184   # most powerpc-linux boxes support dynamic linking these days and
9185   # people can always --disable-shared, the test was removed, and we
9186   # assume the GNU/Linux dynamic linker is in use.
9187   dynamic_linker='GNU/Linux ld.so'
9188   ;;
9189
9190 netbsdelf*-gnu)
9191   version_type=linux
9192   need_lib_prefix=no
9193   need_version=no
9194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9195   soname_spec='${libname}${release}${shared_ext}$major'
9196   shlibpath_var=LD_LIBRARY_PATH
9197   shlibpath_overrides_runpath=no
9198   hardcode_into_libs=yes
9199   dynamic_linker='NetBSD ld.elf_so'
9200   ;;
9201
9202 netbsd*)
9203   version_type=sunos
9204   need_lib_prefix=no
9205   need_version=no
9206   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9207     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9208     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9209     dynamic_linker='NetBSD (a.out) ld.so'
9210   else
9211     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9212     soname_spec='${libname}${release}${shared_ext}$major'
9213     dynamic_linker='NetBSD ld.elf_so'
9214   fi
9215   shlibpath_var=LD_LIBRARY_PATH
9216   shlibpath_overrides_runpath=yes
9217   hardcode_into_libs=yes
9218   ;;
9219
9220 newsos6)
9221   version_type=linux
9222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9223   shlibpath_var=LD_LIBRARY_PATH
9224   shlibpath_overrides_runpath=yes
9225   ;;
9226
9227 nto-qnx*)
9228   version_type=linux
9229   need_lib_prefix=no
9230   need_version=no
9231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9232   soname_spec='${libname}${release}${shared_ext}$major'
9233   shlibpath_var=LD_LIBRARY_PATH
9234   shlibpath_overrides_runpath=yes
9235   ;;
9236
9237 openbsd*)
9238   version_type=sunos
9239   sys_lib_dlsearch_path_spec="/usr/lib"
9240   need_lib_prefix=no
9241   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9242   case $host_os in
9243     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9244     *)                         need_version=no  ;;
9245   esac
9246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9247   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9248   shlibpath_var=LD_LIBRARY_PATH
9249   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9250     case $host_os in
9251       openbsd2.[89] | openbsd2.[89].*)
9252         shlibpath_overrides_runpath=no
9253         ;;
9254       *)
9255         shlibpath_overrides_runpath=yes
9256         ;;
9257       esac
9258   else
9259     shlibpath_overrides_runpath=yes
9260   fi
9261   ;;
9262
9263 os2*)
9264   libname_spec='$name'
9265   shrext_cmds=".dll"
9266   need_lib_prefix=no
9267   library_names_spec='$libname${shared_ext} $libname.a'
9268   dynamic_linker='OS/2 ld.exe'
9269   shlibpath_var=LIBPATH
9270   ;;
9271
9272 osf3* | osf4* | osf5*)
9273   version_type=osf
9274   need_lib_prefix=no
9275   need_version=no
9276   soname_spec='${libname}${release}${shared_ext}$major'
9277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9278   shlibpath_var=LD_LIBRARY_PATH
9279   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9280   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9281   ;;
9282
9283 solaris*)
9284   version_type=linux
9285   need_lib_prefix=no
9286   need_version=no
9287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9288   soname_spec='${libname}${release}${shared_ext}$major'
9289   shlibpath_var=LD_LIBRARY_PATH
9290   shlibpath_overrides_runpath=yes
9291   hardcode_into_libs=yes
9292   # ldd complains unless libraries are executable
9293   postinstall_cmds='chmod +x $lib'
9294   ;;
9295
9296 sunos4*)
9297   version_type=sunos
9298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9299   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9300   shlibpath_var=LD_LIBRARY_PATH
9301   shlibpath_overrides_runpath=yes
9302   if test "$with_gnu_ld" = yes; then
9303     need_lib_prefix=no
9304   fi
9305   need_version=yes
9306   ;;
9307
9308 sysv4 | sysv4.3*)
9309   version_type=linux
9310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311   soname_spec='${libname}${release}${shared_ext}$major'
9312   shlibpath_var=LD_LIBRARY_PATH
9313   case $host_vendor in
9314     sni)
9315       shlibpath_overrides_runpath=no
9316       need_lib_prefix=no
9317       export_dynamic_flag_spec='${wl}-Blargedynsym'
9318       runpath_var=LD_RUN_PATH
9319       ;;
9320     siemens)
9321       need_lib_prefix=no
9322       ;;
9323     motorola)
9324       need_lib_prefix=no
9325       need_version=no
9326       shlibpath_overrides_runpath=no
9327       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9328       ;;
9329   esac
9330   ;;
9331
9332 sysv4*MP*)
9333   if test -d /usr/nec ;then
9334     version_type=linux
9335     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9336     soname_spec='$libname${shared_ext}.$major'
9337     shlibpath_var=LD_LIBRARY_PATH
9338   fi
9339   ;;
9340
9341 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9342   version_type=freebsd-elf
9343   need_lib_prefix=no
9344   need_version=no
9345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9346   soname_spec='${libname}${release}${shared_ext}$major'
9347   shlibpath_var=LD_LIBRARY_PATH
9348   hardcode_into_libs=yes
9349   if test "$with_gnu_ld" = yes; then
9350     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9351     shlibpath_overrides_runpath=no
9352   else
9353     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9354     shlibpath_overrides_runpath=yes
9355     case $host_os in
9356       sco3.2v5*)
9357         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9358         ;;
9359     esac
9360   fi
9361   sys_lib_dlsearch_path_spec='/usr/lib'
9362   ;;
9363
9364 uts4*)
9365   version_type=linux
9366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367   soname_spec='${libname}${release}${shared_ext}$major'
9368   shlibpath_var=LD_LIBRARY_PATH
9369   ;;
9370
9371 *)
9372   dynamic_linker=no
9373   ;;
9374 esac
9375 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9376 echo "${ECHO_T}$dynamic_linker" >&6; }
9377 test "$dynamic_linker" = no && can_build_shared=no
9378
9379 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9380 if test "$GCC" = yes; then
9381   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9382 fi
9383
9384 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9385 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9386 hardcode_action=
9387 if test -n "$hardcode_libdir_flag_spec" || \
9388    test -n "$runpath_var" || \
9389    test "X$hardcode_automatic" = "Xyes" ; then
9390
9391   # We can hardcode non-existant directories.
9392   if test "$hardcode_direct" != no &&
9393      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9394      # have to relink, otherwise we might link with an installed library
9395      # when we should be linking with a yet-to-be-installed one
9396      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9397      test "$hardcode_minus_L" != no; then
9398     # Linking always hardcodes the temporary library directory.
9399     hardcode_action=relink
9400   else
9401     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9402     hardcode_action=immediate
9403   fi
9404 else
9405   # We cannot hardcode anything, or else we can only hardcode existing
9406   # directories.
9407   hardcode_action=unsupported
9408 fi
9409 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9410 echo "${ECHO_T}$hardcode_action" >&6; }
9411
9412 if test "$hardcode_action" = relink; then
9413   # Fast installation is not supported
9414   enable_fast_install=no
9415 elif test "$shlibpath_overrides_runpath" = yes ||
9416      test "$enable_shared" = no; then
9417   # Fast installation is not necessary
9418   enable_fast_install=needless
9419 fi
9420
9421 striplib=
9422 old_striplib=
9423 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9424 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9425 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9426   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9427   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9428   { echo "$as_me:$LINENO: result: yes" >&5
9429 echo "${ECHO_T}yes" >&6; }
9430 else
9431 # FIXME - insert some real tests, host_os isn't really good enough
9432   case $host_os in
9433    darwin*)
9434        if test -n "$STRIP" ; then
9435          striplib="$STRIP -x"
9436          { echo "$as_me:$LINENO: result: yes" >&5
9437 echo "${ECHO_T}yes" >&6; }
9438        else
9439   { echo "$as_me:$LINENO: result: no" >&5
9440 echo "${ECHO_T}no" >&6; }
9441 fi
9442        ;;
9443    *)
9444   { echo "$as_me:$LINENO: result: no" >&5
9445 echo "${ECHO_T}no" >&6; }
9446     ;;
9447   esac
9448 fi
9449
9450 if test "x$enable_dlopen" != xyes; then
9451   enable_dlopen=unknown
9452   enable_dlopen_self=unknown
9453   enable_dlopen_self_static=unknown
9454 else
9455   lt_cv_dlopen=no
9456   lt_cv_dlopen_libs=
9457
9458   case $host_os in
9459   beos*)
9460     lt_cv_dlopen="load_add_on"
9461     lt_cv_dlopen_libs=
9462     lt_cv_dlopen_self=yes
9463     ;;
9464
9465   mingw* | pw32*)
9466     lt_cv_dlopen="LoadLibrary"
9467     lt_cv_dlopen_libs=
9468    ;;
9469
9470   cygwin*)
9471     lt_cv_dlopen="dlopen"
9472     lt_cv_dlopen_libs=
9473    ;;
9474
9475   darwin*)
9476   # if libdl is installed we need to link against it
9477     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9478 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9479 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9480   echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482   ac_check_lib_save_LIBS=$LIBS
9483 LIBS="-ldl  $LIBS"
9484 cat >conftest.$ac_ext <<_ACEOF
9485 /* confdefs.h.  */
9486 _ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h.  */
9490
9491 /* Override any GCC internal prototype to avoid an error.
9492    Use char because int might match the return type of a GCC
9493    builtin and then its argument prototype would still apply.  */
9494 #ifdef __cplusplus
9495 extern "C"
9496 #endif
9497 char dlopen ();
9498 int
9499 main ()
9500 {
9501 return dlopen ();
9502   ;
9503   return 0;
9504 }
9505 _ACEOF
9506 rm -f conftest.$ac_objext conftest$ac_exeext
9507 if { (ac_try="$ac_link"
9508 case "(($ac_try" in
9509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9510   *) ac_try_echo=$ac_try;;
9511 esac
9512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9513   (eval "$ac_link") 2>conftest.er1
9514   ac_status=$?
9515   grep -v '^ *+' conftest.er1 >conftest.err
9516   rm -f conftest.er1
9517   cat conftest.err >&5
9518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519   (exit $ac_status); } && {
9520          test -z "$ac_c_werror_flag" ||
9521          test ! -s conftest.err
9522        } && test -s conftest$ac_exeext &&
9523        $as_test_x conftest$ac_exeext; then
9524   ac_cv_lib_dl_dlopen=yes
9525 else
9526   echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9528
9529         ac_cv_lib_dl_dlopen=no
9530 fi
9531
9532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9533       conftest$ac_exeext conftest.$ac_ext
9534 LIBS=$ac_check_lib_save_LIBS
9535 fi
9536 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9537 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9538 if test $ac_cv_lib_dl_dlopen = yes; then
9539   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9540 else
9541
9542     lt_cv_dlopen="dyld"
9543     lt_cv_dlopen_libs=
9544     lt_cv_dlopen_self=yes
9545
9546 fi
9547
9548    ;;
9549
9550   *)
9551     { echo "$as_me:$LINENO: checking for shl_load" >&5
9552 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9553 if test "${ac_cv_func_shl_load+set}" = set; then
9554   echo $ECHO_N "(cached) $ECHO_C" >&6
9555 else
9556   cat >conftest.$ac_ext <<_ACEOF
9557 /* confdefs.h.  */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h.  */
9562 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9563    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9564 #define shl_load innocuous_shl_load
9565
9566 /* System header to define __stub macros and hopefully few prototypes,
9567     which can conflict with char shl_load (); below.
9568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9569     <limits.h> exists even on freestanding compilers.  */
9570
9571 #ifdef __STDC__
9572 # include <limits.h>
9573 #else
9574 # include <assert.h>
9575 #endif
9576
9577 #undef shl_load
9578
9579 /* Override any GCC internal prototype to avoid an error.
9580    Use char because int might match the return type of a GCC
9581    builtin and then its argument prototype would still apply.  */
9582 #ifdef __cplusplus
9583 extern "C"
9584 #endif
9585 char shl_load ();
9586 /* The GNU C library defines this for functions which it implements
9587     to always fail with ENOSYS.  Some functions are actually named
9588     something starting with __ and the normal name is an alias.  */
9589 #if defined __stub_shl_load || defined __stub___shl_load
9590 choke me
9591 #endif
9592
9593 int
9594 main ()
9595 {
9596 return shl_load ();
9597   ;
9598   return 0;
9599 }
9600 _ACEOF
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (ac_try="$ac_link"
9603 case "(($ac_try" in
9604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605   *) ac_try_echo=$ac_try;;
9606 esac
9607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608   (eval "$ac_link") 2>conftest.er1
9609   ac_status=$?
9610   grep -v '^ *+' conftest.er1 >conftest.err
9611   rm -f conftest.er1
9612   cat conftest.err >&5
9613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614   (exit $ac_status); } && {
9615          test -z "$ac_c_werror_flag" ||
9616          test ! -s conftest.err
9617        } && test -s conftest$ac_exeext &&
9618        $as_test_x conftest$ac_exeext; then
9619   ac_cv_func_shl_load=yes
9620 else
9621   echo "$as_me: failed program was:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9623
9624         ac_cv_func_shl_load=no
9625 fi
9626
9627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9628       conftest$ac_exeext conftest.$ac_ext
9629 fi
9630 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9631 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9632 if test $ac_cv_func_shl_load = yes; then
9633   lt_cv_dlopen="shl_load"
9634 else
9635   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9636 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9637 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9638   echo $ECHO_N "(cached) $ECHO_C" >&6
9639 else
9640   ac_check_lib_save_LIBS=$LIBS
9641 LIBS="-ldld  $LIBS"
9642 cat >conftest.$ac_ext <<_ACEOF
9643 /* confdefs.h.  */
9644 _ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h.  */
9648
9649 /* Override any GCC internal prototype to avoid an error.
9650    Use char because int might match the return type of a GCC
9651    builtin and then its argument prototype would still apply.  */
9652 #ifdef __cplusplus
9653 extern "C"
9654 #endif
9655 char shl_load ();
9656 int
9657 main ()
9658 {
9659 return shl_load ();
9660   ;
9661   return 0;
9662 }
9663 _ACEOF
9664 rm -f conftest.$ac_objext conftest$ac_exeext
9665 if { (ac_try="$ac_link"
9666 case "(($ac_try" in
9667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668   *) ac_try_echo=$ac_try;;
9669 esac
9670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9671   (eval "$ac_link") 2>conftest.er1
9672   ac_status=$?
9673   grep -v '^ *+' conftest.er1 >conftest.err
9674   rm -f conftest.er1
9675   cat conftest.err >&5
9676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); } && {
9678          test -z "$ac_c_werror_flag" ||
9679          test ! -s conftest.err
9680        } && test -s conftest$ac_exeext &&
9681        $as_test_x conftest$ac_exeext; then
9682   ac_cv_lib_dld_shl_load=yes
9683 else
9684   echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9686
9687         ac_cv_lib_dld_shl_load=no
9688 fi
9689
9690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9691       conftest$ac_exeext conftest.$ac_ext
9692 LIBS=$ac_check_lib_save_LIBS
9693 fi
9694 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9695 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9696 if test $ac_cv_lib_dld_shl_load = yes; then
9697   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9698 else
9699   { echo "$as_me:$LINENO: checking for dlopen" >&5
9700 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9701 if test "${ac_cv_func_dlopen+set}" = set; then
9702   echo $ECHO_N "(cached) $ECHO_C" >&6
9703 else
9704   cat >conftest.$ac_ext <<_ACEOF
9705 /* confdefs.h.  */
9706 _ACEOF
9707 cat confdefs.h >>conftest.$ac_ext
9708 cat >>conftest.$ac_ext <<_ACEOF
9709 /* end confdefs.h.  */
9710 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9711    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9712 #define dlopen innocuous_dlopen
9713
9714 /* System header to define __stub macros and hopefully few prototypes,
9715     which can conflict with char dlopen (); below.
9716     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9717     <limits.h> exists even on freestanding compilers.  */
9718
9719 #ifdef __STDC__
9720 # include <limits.h>
9721 #else
9722 # include <assert.h>
9723 #endif
9724
9725 #undef dlopen
9726
9727 /* Override any GCC internal prototype to avoid an error.
9728    Use char because int might match the return type of a GCC
9729    builtin and then its argument prototype would still apply.  */
9730 #ifdef __cplusplus
9731 extern "C"
9732 #endif
9733 char dlopen ();
9734 /* The GNU C library defines this for functions which it implements
9735     to always fail with ENOSYS.  Some functions are actually named
9736     something starting with __ and the normal name is an alias.  */
9737 #if defined __stub_dlopen || defined __stub___dlopen
9738 choke me
9739 #endif
9740
9741 int
9742 main ()
9743 {
9744 return dlopen ();
9745   ;
9746   return 0;
9747 }
9748 _ACEOF
9749 rm -f conftest.$ac_objext conftest$ac_exeext
9750 if { (ac_try="$ac_link"
9751 case "(($ac_try" in
9752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9753   *) ac_try_echo=$ac_try;;
9754 esac
9755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9756   (eval "$ac_link") 2>conftest.er1
9757   ac_status=$?
9758   grep -v '^ *+' conftest.er1 >conftest.err
9759   rm -f conftest.er1
9760   cat conftest.err >&5
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); } && {
9763          test -z "$ac_c_werror_flag" ||
9764          test ! -s conftest.err
9765        } && test -s conftest$ac_exeext &&
9766        $as_test_x conftest$ac_exeext; then
9767   ac_cv_func_dlopen=yes
9768 else
9769   echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9771
9772         ac_cv_func_dlopen=no
9773 fi
9774
9775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9776       conftest$ac_exeext conftest.$ac_ext
9777 fi
9778 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9779 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9780 if test $ac_cv_func_dlopen = yes; then
9781   lt_cv_dlopen="dlopen"
9782 else
9783   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9784 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9785 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9786   echo $ECHO_N "(cached) $ECHO_C" >&6
9787 else
9788   ac_check_lib_save_LIBS=$LIBS
9789 LIBS="-ldl  $LIBS"
9790 cat >conftest.$ac_ext <<_ACEOF
9791 /* confdefs.h.  */
9792 _ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h.  */
9796
9797 /* Override any GCC internal prototype to avoid an error.
9798    Use char because int might match the return type of a GCC
9799    builtin and then its argument prototype would still apply.  */
9800 #ifdef __cplusplus
9801 extern "C"
9802 #endif
9803 char dlopen ();
9804 int
9805 main ()
9806 {
9807 return dlopen ();
9808   ;
9809   return 0;
9810 }
9811 _ACEOF
9812 rm -f conftest.$ac_objext conftest$ac_exeext
9813 if { (ac_try="$ac_link"
9814 case "(($ac_try" in
9815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816   *) ac_try_echo=$ac_try;;
9817 esac
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819   (eval "$ac_link") 2>conftest.er1
9820   ac_status=$?
9821   grep -v '^ *+' conftest.er1 >conftest.err
9822   rm -f conftest.er1
9823   cat conftest.err >&5
9824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825   (exit $ac_status); } && {
9826          test -z "$ac_c_werror_flag" ||
9827          test ! -s conftest.err
9828        } && test -s conftest$ac_exeext &&
9829        $as_test_x conftest$ac_exeext; then
9830   ac_cv_lib_dl_dlopen=yes
9831 else
9832   echo "$as_me: failed program was:" >&5
9833 sed 's/^/| /' conftest.$ac_ext >&5
9834
9835         ac_cv_lib_dl_dlopen=no
9836 fi
9837
9838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9839       conftest$ac_exeext conftest.$ac_ext
9840 LIBS=$ac_check_lib_save_LIBS
9841 fi
9842 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9843 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9844 if test $ac_cv_lib_dl_dlopen = yes; then
9845   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9846 else
9847   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9848 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9849 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9850   echo $ECHO_N "(cached) $ECHO_C" >&6
9851 else
9852   ac_check_lib_save_LIBS=$LIBS
9853 LIBS="-lsvld  $LIBS"
9854 cat >conftest.$ac_ext <<_ACEOF
9855 /* confdefs.h.  */
9856 _ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h.  */
9860
9861 /* Override any GCC internal prototype to avoid an error.
9862    Use char because int might match the return type of a GCC
9863    builtin and then its argument prototype would still apply.  */
9864 #ifdef __cplusplus
9865 extern "C"
9866 #endif
9867 char dlopen ();
9868 int
9869 main ()
9870 {
9871 return dlopen ();
9872   ;
9873   return 0;
9874 }
9875 _ACEOF
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (ac_try="$ac_link"
9878 case "(($ac_try" in
9879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880   *) ac_try_echo=$ac_try;;
9881 esac
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883   (eval "$ac_link") 2>conftest.er1
9884   ac_status=$?
9885   grep -v '^ *+' conftest.er1 >conftest.err
9886   rm -f conftest.er1
9887   cat conftest.err >&5
9888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889   (exit $ac_status); } && {
9890          test -z "$ac_c_werror_flag" ||
9891          test ! -s conftest.err
9892        } && test -s conftest$ac_exeext &&
9893        $as_test_x conftest$ac_exeext; then
9894   ac_cv_lib_svld_dlopen=yes
9895 else
9896   echo "$as_me: failed program was:" >&5
9897 sed 's/^/| /' conftest.$ac_ext >&5
9898
9899         ac_cv_lib_svld_dlopen=no
9900 fi
9901
9902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9903       conftest$ac_exeext conftest.$ac_ext
9904 LIBS=$ac_check_lib_save_LIBS
9905 fi
9906 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9907 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9908 if test $ac_cv_lib_svld_dlopen = yes; then
9909   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9910 else
9911   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9912 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9913 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9914   echo $ECHO_N "(cached) $ECHO_C" >&6
9915 else
9916   ac_check_lib_save_LIBS=$LIBS
9917 LIBS="-ldld  $LIBS"
9918 cat >conftest.$ac_ext <<_ACEOF
9919 /* confdefs.h.  */
9920 _ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h.  */
9924
9925 /* Override any GCC internal prototype to avoid an error.
9926    Use char because int might match the return type of a GCC
9927    builtin and then its argument prototype would still apply.  */
9928 #ifdef __cplusplus
9929 extern "C"
9930 #endif
9931 char dld_link ();
9932 int
9933 main ()
9934 {
9935 return dld_link ();
9936   ;
9937   return 0;
9938 }
9939 _ACEOF
9940 rm -f conftest.$ac_objext conftest$ac_exeext
9941 if { (ac_try="$ac_link"
9942 case "(($ac_try" in
9943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944   *) ac_try_echo=$ac_try;;
9945 esac
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947   (eval "$ac_link") 2>conftest.er1
9948   ac_status=$?
9949   grep -v '^ *+' conftest.er1 >conftest.err
9950   rm -f conftest.er1
9951   cat conftest.err >&5
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); } && {
9954          test -z "$ac_c_werror_flag" ||
9955          test ! -s conftest.err
9956        } && test -s conftest$ac_exeext &&
9957        $as_test_x conftest$ac_exeext; then
9958   ac_cv_lib_dld_dld_link=yes
9959 else
9960   echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9962
9963         ac_cv_lib_dld_dld_link=no
9964 fi
9965
9966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9967       conftest$ac_exeext conftest.$ac_ext
9968 LIBS=$ac_check_lib_save_LIBS
9969 fi
9970 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9971 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9972 if test $ac_cv_lib_dld_dld_link = yes; then
9973   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9974 fi
9975
9976
9977 fi
9978
9979
9980 fi
9981
9982
9983 fi
9984
9985
9986 fi
9987
9988
9989 fi
9990
9991     ;;
9992   esac
9993
9994   if test "x$lt_cv_dlopen" != xno; then
9995     enable_dlopen=yes
9996   else
9997     enable_dlopen=no
9998   fi
9999
10000   case $lt_cv_dlopen in
10001   dlopen)
10002     save_CPPFLAGS="$CPPFLAGS"
10003     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10004
10005     save_LDFLAGS="$LDFLAGS"
10006     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10007
10008     save_LIBS="$LIBS"
10009     LIBS="$lt_cv_dlopen_libs $LIBS"
10010
10011     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10012 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10013 if test "${lt_cv_dlopen_self+set}" = set; then
10014   echo $ECHO_N "(cached) $ECHO_C" >&6
10015 else
10016           if test "$cross_compiling" = yes; then :
10017   lt_cv_dlopen_self=cross
10018 else
10019   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10020   lt_status=$lt_dlunknown
10021   cat > conftest.$ac_ext <<EOF
10022 #line 10022 "configure"
10023 #include "confdefs.h"
10024
10025 #if HAVE_DLFCN_H
10026 #include <dlfcn.h>
10027 #endif
10028
10029 #include <stdio.h>
10030
10031 #ifdef RTLD_GLOBAL
10032 #  define LT_DLGLOBAL           RTLD_GLOBAL
10033 #else
10034 #  ifdef DL_GLOBAL
10035 #    define LT_DLGLOBAL         DL_GLOBAL
10036 #  else
10037 #    define LT_DLGLOBAL         0
10038 #  endif
10039 #endif
10040
10041 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10042    find out it does not work in some platform. */
10043 #ifndef LT_DLLAZY_OR_NOW
10044 #  ifdef RTLD_LAZY
10045 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10046 #  else
10047 #    ifdef DL_LAZY
10048 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10049 #    else
10050 #      ifdef RTLD_NOW
10051 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10052 #      else
10053 #        ifdef DL_NOW
10054 #          define LT_DLLAZY_OR_NOW      DL_NOW
10055 #        else
10056 #          define LT_DLLAZY_OR_NOW      0
10057 #        endif
10058 #      endif
10059 #    endif
10060 #  endif
10061 #endif
10062
10063 #ifdef __cplusplus
10064 extern "C" void exit (int);
10065 #endif
10066
10067 void fnord() { int i=42;}
10068 int main ()
10069 {
10070   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10071   int status = $lt_dlunknown;
10072
10073   if (self)
10074     {
10075       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10076       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10077       /* dlclose (self); */
10078     }
10079   else
10080     puts (dlerror ());
10081
10082     exit (status);
10083 }
10084 EOF
10085   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10086   (eval $ac_link) 2>&5
10087   ac_status=$?
10088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10090     (./conftest; exit; ) >&5 2>/dev/null
10091     lt_status=$?
10092     case x$lt_status in
10093       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10094       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10095       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10096     esac
10097   else :
10098     # compilation failed
10099     lt_cv_dlopen_self=no
10100   fi
10101 fi
10102 rm -fr conftest*
10103
10104
10105 fi
10106 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10107 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10108
10109     if test "x$lt_cv_dlopen_self" = xyes; then
10110       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10111       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10112 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10113 if test "${lt_cv_dlopen_self_static+set}" = set; then
10114   echo $ECHO_N "(cached) $ECHO_C" >&6
10115 else
10116           if test "$cross_compiling" = yes; then :
10117   lt_cv_dlopen_self_static=cross
10118 else
10119   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10120   lt_status=$lt_dlunknown
10121   cat > conftest.$ac_ext <<EOF
10122 #line 10122 "configure"
10123 #include "confdefs.h"
10124
10125 #if HAVE_DLFCN_H
10126 #include <dlfcn.h>
10127 #endif
10128
10129 #include <stdio.h>
10130
10131 #ifdef RTLD_GLOBAL
10132 #  define LT_DLGLOBAL           RTLD_GLOBAL
10133 #else
10134 #  ifdef DL_GLOBAL
10135 #    define LT_DLGLOBAL         DL_GLOBAL
10136 #  else
10137 #    define LT_DLGLOBAL         0
10138 #  endif
10139 #endif
10140
10141 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10142    find out it does not work in some platform. */
10143 #ifndef LT_DLLAZY_OR_NOW
10144 #  ifdef RTLD_LAZY
10145 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10146 #  else
10147 #    ifdef DL_LAZY
10148 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10149 #    else
10150 #      ifdef RTLD_NOW
10151 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10152 #      else
10153 #        ifdef DL_NOW
10154 #          define LT_DLLAZY_OR_NOW      DL_NOW
10155 #        else
10156 #          define LT_DLLAZY_OR_NOW      0
10157 #        endif
10158 #      endif
10159 #    endif
10160 #  endif
10161 #endif
10162
10163 #ifdef __cplusplus
10164 extern "C" void exit (int);
10165 #endif
10166
10167 void fnord() { int i=42;}
10168 int main ()
10169 {
10170   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10171   int status = $lt_dlunknown;
10172
10173   if (self)
10174     {
10175       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10176       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10177       /* dlclose (self); */
10178     }
10179   else
10180     puts (dlerror ());
10181
10182     exit (status);
10183 }
10184 EOF
10185   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10186   (eval $ac_link) 2>&5
10187   ac_status=$?
10188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10190     (./conftest; exit; ) >&5 2>/dev/null
10191     lt_status=$?
10192     case x$lt_status in
10193       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10194       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10195       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10196     esac
10197   else :
10198     # compilation failed
10199     lt_cv_dlopen_self_static=no
10200   fi
10201 fi
10202 rm -fr conftest*
10203
10204
10205 fi
10206 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10207 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10208     fi
10209
10210     CPPFLAGS="$save_CPPFLAGS"
10211     LDFLAGS="$save_LDFLAGS"
10212     LIBS="$save_LIBS"
10213     ;;
10214   esac
10215
10216   case $lt_cv_dlopen_self in
10217   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10218   *) enable_dlopen_self=unknown ;;
10219   esac
10220
10221   case $lt_cv_dlopen_self_static in
10222   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10223   *) enable_dlopen_self_static=unknown ;;
10224   esac
10225 fi
10226
10227
10228 # Report which library types will actually be built
10229 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10230 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10231 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10232 echo "${ECHO_T}$can_build_shared" >&6; }
10233
10234 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10235 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10236 test "$can_build_shared" = "no" && enable_shared=no
10237
10238 # On AIX, shared libraries and static libraries use the same namespace, and
10239 # are all built from PIC.
10240 case $host_os in
10241 aix3*)
10242   test "$enable_shared" = yes && enable_static=no
10243   if test -n "$RANLIB"; then
10244     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10245     postinstall_cmds='$RANLIB $lib'
10246   fi
10247   ;;
10248
10249 aix4* | aix5*)
10250   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10251     test "$enable_shared" = yes && enable_static=no
10252   fi
10253     ;;
10254 esac
10255 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10256 echo "${ECHO_T}$enable_shared" >&6; }
10257
10258 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10259 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10260 # Make sure either enable_shared or enable_static is yes.
10261 test "$enable_shared" = yes || enable_static=yes
10262 { echo "$as_me:$LINENO: result: $enable_static" >&5
10263 echo "${ECHO_T}$enable_static" >&6; }
10264
10265 # The else clause should only fire when bootstrapping the
10266 # libtool distribution, otherwise you forgot to ship ltmain.sh
10267 # with your package, and you will get complaints that there are
10268 # no rules to generate ltmain.sh.
10269 if test -f "$ltmain"; then
10270   # See if we are running on zsh, and set the options which allow our commands through
10271   # without removal of \ escapes.
10272   if test -n "${ZSH_VERSION+set}" ; then
10273     setopt NO_GLOB_SUBST
10274   fi
10275   # Now quote all the things that may contain metacharacters while being
10276   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10277   # variables and quote the copies for generation of the libtool script.
10278   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10279     SED SHELL STRIP \
10280     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10281     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10282     deplibs_check_method reload_flag reload_cmds need_locks \
10283     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10284     lt_cv_sys_global_symbol_to_c_name_address \
10285     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10286     old_postinstall_cmds old_postuninstall_cmds \
10287     compiler \
10288     CC \
10289     LD \
10290     lt_prog_compiler_wl \
10291     lt_prog_compiler_pic \
10292     lt_prog_compiler_static \
10293     lt_prog_compiler_no_builtin_flag \
10294     export_dynamic_flag_spec \
10295     thread_safe_flag_spec \
10296     whole_archive_flag_spec \
10297     enable_shared_with_static_runtimes \
10298     old_archive_cmds \
10299     old_archive_from_new_cmds \
10300     predep_objects \
10301     postdep_objects \
10302     predeps \
10303     postdeps \
10304     compiler_lib_search_path \
10305     archive_cmds \
10306     archive_expsym_cmds \
10307     postinstall_cmds \
10308     postuninstall_cmds \
10309     old_archive_from_expsyms_cmds \
10310     allow_undefined_flag \
10311     no_undefined_flag \
10312     export_symbols_cmds \
10313     hardcode_libdir_flag_spec \
10314     hardcode_libdir_flag_spec_ld \
10315     hardcode_libdir_separator \
10316     hardcode_automatic \
10317     module_cmds \
10318     module_expsym_cmds \
10319     lt_cv_prog_compiler_c_o \
10320     exclude_expsyms \
10321     include_expsyms; do
10322
10323     case $var in
10324     old_archive_cmds | \
10325     old_archive_from_new_cmds | \
10326     archive_cmds | \
10327     archive_expsym_cmds | \
10328     module_cmds | \
10329     module_expsym_cmds | \
10330     old_archive_from_expsyms_cmds | \
10331     export_symbols_cmds | \
10332     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10333     postinstall_cmds | postuninstall_cmds | \
10334     old_postinstall_cmds | old_postuninstall_cmds | \
10335     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10336       # Double-quote double-evaled strings.
10337       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10338       ;;
10339     *)
10340       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10341       ;;
10342     esac
10343   done
10344
10345   case $lt_echo in
10346   *'\$0 --fallback-echo"')
10347     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10348     ;;
10349   esac
10350
10351 cfgfile="${ofile}T"
10352   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10353   $rm -f "$cfgfile"
10354   { echo "$as_me:$LINENO: creating $ofile" >&5
10355 echo "$as_me: creating $ofile" >&6;}
10356
10357   cat <<__EOF__ >> "$cfgfile"
10358 #! $SHELL
10359
10360 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10361 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10362 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10363 #
10364 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10365 # Free Software Foundation, Inc.
10366 #
10367 # This file is part of GNU Libtool:
10368 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10369 #
10370 # This program is free software; you can redistribute it and/or modify
10371 # it under the terms of the GNU General Public License as published by
10372 # the Free Software Foundation; either version 2 of the License, or
10373 # (at your option) any later version.
10374 #
10375 # This program is distributed in the hope that it will be useful, but
10376 # WITHOUT ANY WARRANTY; without even the implied warranty of
10377 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10378 # General Public License for more details.
10379 #
10380 # You should have received a copy of the GNU General Public License
10381 # along with this program; if not, write to the Free Software
10382 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10383 #
10384 # As a special exception to the GNU General Public License, if you
10385 # distribute this file as part of a program that contains a
10386 # configuration script generated by Autoconf, you may include it under
10387 # the same distribution terms that you use for the rest of that program.
10388
10389 # A sed program that does not truncate output.
10390 SED=$lt_SED
10391
10392 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10393 Xsed="$SED -e 1s/^X//"
10394
10395 # The HP-UX ksh and POSIX shell print the target directory to stdout
10396 # if CDPATH is set.
10397 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10398
10399 # The names of the tagged configurations supported by this script.
10400 available_tags=
10401
10402 # ### BEGIN LIBTOOL CONFIG
10403
10404 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10405
10406 # Shell to use when invoking shell scripts.
10407 SHELL=$lt_SHELL
10408
10409 # Whether or not to build shared libraries.
10410 build_libtool_libs=$enable_shared
10411
10412 # Whether or not to build static libraries.
10413 build_old_libs=$enable_static
10414
10415 # Whether or not to add -lc for building shared libraries.
10416 build_libtool_need_lc=$archive_cmds_need_lc
10417
10418 # Whether or not to disallow shared libs when runtime libs are static
10419 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10420
10421 # Whether or not to optimize for fast installation.
10422 fast_install=$enable_fast_install
10423
10424 # The host system.
10425 host_alias=$host_alias
10426 host=$host
10427 host_os=$host_os
10428
10429 # The build system.
10430 build_alias=$build_alias
10431 build=$build
10432 build_os=$build_os
10433
10434 # An echo program that does not interpret backslashes.
10435 echo=$lt_echo
10436
10437 # The archiver.
10438 AR=$lt_AR
10439 AR_FLAGS=$lt_AR_FLAGS
10440
10441 # A C compiler.
10442 LTCC=$lt_LTCC
10443
10444 # LTCC compiler flags.
10445 LTCFLAGS=$lt_LTCFLAGS
10446
10447 # A language-specific compiler.
10448 CC=$lt_compiler
10449
10450 # Is the compiler the GNU C compiler?
10451 with_gcc=$GCC
10452
10453 # An ERE matcher.
10454 EGREP=$lt_EGREP
10455
10456 # The linker used to build libraries.
10457 LD=$lt_LD
10458
10459 # Whether we need hard or soft links.
10460 LN_S=$lt_LN_S
10461
10462 # A BSD-compatible nm program.
10463 NM=$lt_NM
10464
10465 # A symbol stripping program
10466 STRIP=$lt_STRIP
10467
10468 # Used to examine libraries when file_magic_cmd begins "file"
10469 MAGIC_CMD=$MAGIC_CMD
10470
10471 # Used on cygwin: DLL creation program.
10472 DLLTOOL="$DLLTOOL"
10473
10474 # Used on cygwin: object dumper.
10475 OBJDUMP="$OBJDUMP"
10476
10477 # Used on cygwin: assembler.
10478 AS="$AS"
10479
10480 # The name of the directory that contains temporary libtool files.
10481 objdir=$objdir
10482
10483 # How to create reloadable object files.
10484 reload_flag=$lt_reload_flag
10485 reload_cmds=$lt_reload_cmds
10486
10487 # How to pass a linker flag through the compiler.
10488 wl=$lt_lt_prog_compiler_wl
10489
10490 # Object file suffix (normally "o").
10491 objext="$ac_objext"
10492
10493 # Old archive suffix (normally "a").
10494 libext="$libext"
10495
10496 # Shared library suffix (normally ".so").
10497 shrext_cmds='$shrext_cmds'
10498
10499 # Executable file suffix (normally "").
10500 exeext="$exeext"
10501
10502 # Additional compiler flags for building library objects.
10503 pic_flag=$lt_lt_prog_compiler_pic
10504 pic_mode=$pic_mode
10505
10506 # What is the maximum length of a command?
10507 max_cmd_len=$lt_cv_sys_max_cmd_len
10508
10509 # Does compiler simultaneously support -c and -o options?
10510 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10511
10512 # Must we lock files when doing compilation?
10513 need_locks=$lt_need_locks
10514
10515 # Do we need the lib prefix for modules?
10516 need_lib_prefix=$need_lib_prefix
10517
10518 # Do we need a version for libraries?
10519 need_version=$need_version
10520
10521 # Whether dlopen is supported.
10522 dlopen_support=$enable_dlopen
10523
10524 # Whether dlopen of programs is supported.
10525 dlopen_self=$enable_dlopen_self
10526
10527 # Whether dlopen of statically linked programs is supported.
10528 dlopen_self_static=$enable_dlopen_self_static
10529
10530 # Compiler flag to prevent dynamic linking.
10531 link_static_flag=$lt_lt_prog_compiler_static
10532
10533 # Compiler flag to turn off builtin functions.
10534 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10535
10536 # Compiler flag to allow reflexive dlopens.
10537 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10538
10539 # Compiler flag to generate shared objects directly from archives.
10540 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10541
10542 # Compiler flag to generate thread-safe objects.
10543 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10544
10545 # Library versioning type.
10546 version_type=$version_type
10547
10548 # Format of library name prefix.
10549 libname_spec=$lt_libname_spec
10550
10551 # List of archive names.  First name is the real one, the rest are links.
10552 # The last name is the one that the linker finds with -lNAME.
10553 library_names_spec=$lt_library_names_spec
10554
10555 # The coded name of the library, if different from the real name.
10556 soname_spec=$lt_soname_spec
10557
10558 # Commands used to build and install an old-style archive.
10559 RANLIB=$lt_RANLIB
10560 old_archive_cmds=$lt_old_archive_cmds
10561 old_postinstall_cmds=$lt_old_postinstall_cmds
10562 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10563
10564 # Create an old-style archive from a shared archive.
10565 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10566
10567 # Create a temporary old-style archive to link instead of a shared archive.
10568 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10569
10570 # Commands used to build and install a shared archive.
10571 archive_cmds=$lt_archive_cmds
10572 archive_expsym_cmds=$lt_archive_expsym_cmds
10573 postinstall_cmds=$lt_postinstall_cmds
10574 postuninstall_cmds=$lt_postuninstall_cmds
10575
10576 # Commands used to build a loadable module (assumed same as above if empty)
10577 module_cmds=$lt_module_cmds
10578 module_expsym_cmds=$lt_module_expsym_cmds
10579
10580 # Commands to strip libraries.
10581 old_striplib=$lt_old_striplib
10582 striplib=$lt_striplib
10583
10584 # Dependencies to place before the objects being linked to create a
10585 # shared library.
10586 predep_objects=$lt_predep_objects
10587
10588 # Dependencies to place after the objects being linked to create a
10589 # shared library.
10590 postdep_objects=$lt_postdep_objects
10591
10592 # Dependencies to place before the objects being linked to create a
10593 # shared library.
10594 predeps=$lt_predeps
10595
10596 # Dependencies to place after the objects being linked to create a
10597 # shared library.
10598 postdeps=$lt_postdeps
10599
10600 # The library search path used internally by the compiler when linking
10601 # a shared library.
10602 compiler_lib_search_path=$lt_compiler_lib_search_path
10603
10604 # Method to check whether dependent libraries are shared objects.
10605 deplibs_check_method=$lt_deplibs_check_method
10606
10607 # Command to use when deplibs_check_method == file_magic.
10608 file_magic_cmd=$lt_file_magic_cmd
10609
10610 # Flag that allows shared libraries with undefined symbols to be built.
10611 allow_undefined_flag=$lt_allow_undefined_flag
10612
10613 # Flag that forces no undefined symbols.
10614 no_undefined_flag=$lt_no_undefined_flag
10615
10616 # Commands used to finish a libtool library installation in a directory.
10617 finish_cmds=$lt_finish_cmds
10618
10619 # Same as above, but a single script fragment to be evaled but not shown.
10620 finish_eval=$lt_finish_eval
10621
10622 # Take the output of nm and produce a listing of raw symbols and C names.
10623 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10624
10625 # Transform the output of nm in a proper C declaration
10626 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10627
10628 # Transform the output of nm in a C name address pair
10629 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10630
10631 # This is the shared library runtime path variable.
10632 runpath_var=$runpath_var
10633
10634 # This is the shared library path variable.
10635 shlibpath_var=$shlibpath_var
10636
10637 # Is shlibpath searched before the hard-coded library search path?
10638 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10639
10640 # How to hardcode a shared library path into an executable.
10641 hardcode_action=$hardcode_action
10642
10643 # Whether we should hardcode library paths into libraries.
10644 hardcode_into_libs=$hardcode_into_libs
10645
10646 # Flag to hardcode \$libdir into a binary during linking.
10647 # This must work even if \$libdir does not exist.
10648 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10649
10650 # If ld is used when linking, flag to hardcode \$libdir into
10651 # a binary during linking. This must work even if \$libdir does
10652 # not exist.
10653 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10654
10655 # Whether we need a single -rpath flag with a separated argument.
10656 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10657
10658 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10659 # resulting binary.
10660 hardcode_direct=$hardcode_direct
10661
10662 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10663 # resulting binary.
10664 hardcode_minus_L=$hardcode_minus_L
10665
10666 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10667 # the resulting binary.
10668 hardcode_shlibpath_var=$hardcode_shlibpath_var
10669
10670 # Set to yes if building a shared library automatically hardcodes DIR into the library
10671 # and all subsequent libraries and executables linked against it.
10672 hardcode_automatic=$hardcode_automatic
10673
10674 # Variables whose values should be saved in libtool wrapper scripts and
10675 # restored at relink time.
10676 variables_saved_for_relink="$variables_saved_for_relink"
10677
10678 # Whether libtool must link a program against all its dependency libraries.
10679 link_all_deplibs=$link_all_deplibs
10680
10681 # Compile-time system search path for libraries
10682 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10683
10684 # Run-time system search path for libraries
10685 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10686
10687 # Fix the shell variable \$srcfile for the compiler.
10688 fix_srcfile_path="$fix_srcfile_path"
10689
10690 # Set to yes if exported symbols are required.
10691 always_export_symbols=$always_export_symbols
10692
10693 # The commands to list exported symbols.
10694 export_symbols_cmds=$lt_export_symbols_cmds
10695
10696 # The commands to extract the exported symbol list from a shared archive.
10697 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10698
10699 # Symbols that should not be listed in the preloaded symbols.
10700 exclude_expsyms=$lt_exclude_expsyms
10701
10702 # Symbols that must always be exported.
10703 include_expsyms=$lt_include_expsyms
10704
10705 # ### END LIBTOOL CONFIG
10706
10707 __EOF__
10708
10709
10710   case $host_os in
10711   aix3*)
10712     cat <<\EOF >> "$cfgfile"
10713
10714 # AIX sometimes has problems with the GCC collect2 program.  For some
10715 # reason, if we set the COLLECT_NAMES environment variable, the problems
10716 # vanish in a puff of smoke.
10717 if test "X${COLLECT_NAMES+set}" != Xset; then
10718   COLLECT_NAMES=
10719   export COLLECT_NAMES
10720 fi
10721 EOF
10722     ;;
10723   esac
10724
10725   # We use sed instead of cat because bash on DJGPP gets confused if
10726   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10727   # text mode, it properly converts lines to CR/LF.  This bash problem
10728   # is reportedly fixed, but why not run on old versions too?
10729   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10730
10731   mv -f "$cfgfile" "$ofile" || \
10732     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10733   chmod +x "$ofile"
10734
10735 else
10736   # If there is no Makefile yet, we rely on a make rule to execute
10737   # `config.status --recheck' to rerun these tests and create the
10738   # libtool script then.
10739   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10740   if test -f "$ltmain_in"; then
10741     test -f Makefile && make "$ltmain"
10742   fi
10743 fi
10744
10745
10746 ac_ext=c
10747 ac_cpp='$CPP $CPPFLAGS'
10748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10751
10752 CC="$lt_save_CC"
10753
10754
10755 # Check whether --with-tags was given.
10756 if test "${with_tags+set}" = set; then
10757   withval=$with_tags; tagnames="$withval"
10758 fi
10759
10760
10761 if test -f "$ltmain" && test -n "$tagnames"; then
10762   if test ! -f "${ofile}"; then
10763     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10764 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10765   fi
10766
10767   if test -z "$LTCC"; then
10768     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10769     if test -z "$LTCC"; then
10770       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10771 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10772     else
10773       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10774 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10775     fi
10776   fi
10777   if test -z "$LTCFLAGS"; then
10778     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10779   fi
10780
10781   # Extract list of available tagged configurations in $ofile.
10782   # Note that this assumes the entire list is on one line.
10783   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10784
10785   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10786   for tagname in $tagnames; do
10787     IFS="$lt_save_ifs"
10788     # Check whether tagname contains only valid characters
10789     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10790     "") ;;
10791     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10792 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10793    { (exit 1); exit 1; }; }
10794         ;;
10795     esac
10796
10797     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10798     then
10799       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10800 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10801    { (exit 1); exit 1; }; }
10802     fi
10803
10804     # Update the list of available tags.
10805     if test -n "$tagname"; then
10806       echo appending configuration tag \"$tagname\" to $ofile
10807
10808       case $tagname in
10809       CXX)
10810         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10811             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10812             (test "X$CXX" != "Xg++"))) ; then
10813           ac_ext=cpp
10814 ac_cpp='$CXXCPP $CPPFLAGS'
10815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10818
10819
10820
10821
10822 archive_cmds_need_lc_CXX=no
10823 allow_undefined_flag_CXX=
10824 always_export_symbols_CXX=no
10825 archive_expsym_cmds_CXX=
10826 export_dynamic_flag_spec_CXX=
10827 hardcode_direct_CXX=no
10828 hardcode_libdir_flag_spec_CXX=
10829 hardcode_libdir_flag_spec_ld_CXX=
10830 hardcode_libdir_separator_CXX=
10831 hardcode_minus_L_CXX=no
10832 hardcode_shlibpath_var_CXX=unsupported
10833 hardcode_automatic_CXX=no
10834 module_cmds_CXX=
10835 module_expsym_cmds_CXX=
10836 link_all_deplibs_CXX=unknown
10837 old_archive_cmds_CXX=$old_archive_cmds
10838 no_undefined_flag_CXX=
10839 whole_archive_flag_spec_CXX=
10840 enable_shared_with_static_runtimes_CXX=no
10841
10842 # Dependencies to place before and after the object being linked:
10843 predep_objects_CXX=
10844 postdep_objects_CXX=
10845 predeps_CXX=
10846 postdeps_CXX=
10847 compiler_lib_search_path_CXX=
10848
10849 # Source file extension for C++ test sources.
10850 ac_ext=cpp
10851
10852 # Object file extension for compiled C++ test sources.
10853 objext=o
10854 objext_CXX=$objext
10855
10856 # Code to be used in simple compile tests
10857 lt_simple_compile_test_code="int some_variable = 0;\n"
10858
10859 # Code to be used in simple link tests
10860 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10861
10862 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10863
10864 # If no C compiler was specified, use CC.
10865 LTCC=${LTCC-"$CC"}
10866
10867 # If no C compiler flags were specified, use CFLAGS.
10868 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10869
10870 # Allow CC to be a program name with arguments.
10871 compiler=$CC
10872
10873
10874 # save warnings/boilerplate of simple test code
10875 ac_outfile=conftest.$ac_objext
10876 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10877 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10878 _lt_compiler_boilerplate=`cat conftest.err`
10879 $rm conftest*
10880
10881 ac_outfile=conftest.$ac_objext
10882 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10883 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10884 _lt_linker_boilerplate=`cat conftest.err`
10885 $rm conftest*
10886
10887
10888 # Allow CC to be a program name with arguments.
10889 lt_save_CC=$CC
10890 lt_save_LD=$LD
10891 lt_save_GCC=$GCC
10892 GCC=$GXX
10893 lt_save_with_gnu_ld=$with_gnu_ld
10894 lt_save_path_LD=$lt_cv_path_LD
10895 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10896   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10897 else
10898   $as_unset lt_cv_prog_gnu_ld
10899 fi
10900 if test -n "${lt_cv_path_LDCXX+set}"; then
10901   lt_cv_path_LD=$lt_cv_path_LDCXX
10902 else
10903   $as_unset lt_cv_path_LD
10904 fi
10905 test -z "${LDCXX+set}" || LD=$LDCXX
10906 CC=${CXX-"c++"}
10907 compiler=$CC
10908 compiler_CXX=$CC
10909 for cc_temp in $compiler""; do
10910   case $cc_temp in
10911     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10912     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10913     \-*) ;;
10914     *) break;;
10915   esac
10916 done
10917 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10918
10919
10920 # We don't want -fno-exception wen compiling C++ code, so set the
10921 # no_builtin_flag separately
10922 if test "$GXX" = yes; then
10923   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10924 else
10925   lt_prog_compiler_no_builtin_flag_CXX=
10926 fi
10927
10928 if test "$GXX" = yes; then
10929   # Set up default GNU C++ configuration
10930
10931
10932 # Check whether --with-gnu-ld was given.
10933 if test "${with_gnu_ld+set}" = set; then
10934   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10935 else
10936   with_gnu_ld=no
10937 fi
10938
10939 ac_prog=ld
10940 if test "$GCC" = yes; then
10941   # Check if gcc -print-prog-name=ld gives a path.
10942   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10943 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10944   case $host in
10945   *-*-mingw*)
10946     # gcc leaves a trailing carriage return which upsets mingw
10947     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10948   *)
10949     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10950   esac
10951   case $ac_prog in
10952     # Accept absolute paths.
10953     [\\/]* | ?:[\\/]*)
10954       re_direlt='/[^/][^/]*/\.\./'
10955       # Canonicalize the pathname of ld
10956       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10957       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10958         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10959       done
10960       test -z "$LD" && LD="$ac_prog"
10961       ;;
10962   "")
10963     # If it fails, then pretend we aren't using GCC.
10964     ac_prog=ld
10965     ;;
10966   *)
10967     # If it is relative, then search for the first ld in PATH.
10968     with_gnu_ld=unknown
10969     ;;
10970   esac
10971 elif test "$with_gnu_ld" = yes; then
10972   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10973 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10974 else
10975   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10976 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10977 fi
10978 if test "${lt_cv_path_LD+set}" = set; then
10979   echo $ECHO_N "(cached) $ECHO_C" >&6
10980 else
10981   if test -z "$LD"; then
10982   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10983   for ac_dir in $PATH; do
10984     IFS="$lt_save_ifs"
10985     test -z "$ac_dir" && ac_dir=.
10986     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10987       lt_cv_path_LD="$ac_dir/$ac_prog"
10988       # Check to see if the program is GNU ld.  I'd rather use --version,
10989       # but apparently some variants of GNU ld only accept -v.
10990       # Break only if it was the GNU/non-GNU ld that we prefer.
10991       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10992       *GNU* | *'with BFD'*)
10993         test "$with_gnu_ld" != no && break
10994         ;;
10995       *)
10996         test "$with_gnu_ld" != yes && break
10997         ;;
10998       esac
10999     fi
11000   done
11001   IFS="$lt_save_ifs"
11002 else
11003   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11004 fi
11005 fi
11006
11007 LD="$lt_cv_path_LD"
11008 if test -n "$LD"; then
11009   { echo "$as_me:$LINENO: result: $LD" >&5
11010 echo "${ECHO_T}$LD" >&6; }
11011 else
11012   { echo "$as_me:$LINENO: result: no" >&5
11013 echo "${ECHO_T}no" >&6; }
11014 fi
11015 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11016 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11017    { (exit 1); exit 1; }; }
11018 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11019 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11020 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11021   echo $ECHO_N "(cached) $ECHO_C" >&6
11022 else
11023   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11024 case `$LD -v 2>&1 </dev/null` in
11025 *GNU* | *'with BFD'*)
11026   lt_cv_prog_gnu_ld=yes
11027   ;;
11028 *)
11029   lt_cv_prog_gnu_ld=no
11030   ;;
11031 esac
11032 fi
11033 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11034 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11035 with_gnu_ld=$lt_cv_prog_gnu_ld
11036
11037
11038
11039   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11040   # archiving commands below assume that GNU ld is being used.
11041   if test "$with_gnu_ld" = yes; then
11042     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11043     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'
11044
11045     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11046     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11047
11048     # If archive_cmds runs LD, not CC, wlarc should be empty
11049     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11050     #     investigate it a little bit more. (MM)
11051     wlarc='${wl}'
11052
11053     # ancient GNU ld didn't support --whole-archive et. al.
11054     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11055         grep 'no-whole-archive' > /dev/null; then
11056       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11057     else
11058       whole_archive_flag_spec_CXX=
11059     fi
11060   else
11061     with_gnu_ld=no
11062     wlarc=
11063
11064     # A generic and very simple default shared library creation
11065     # command for GNU C++ for the case where it uses the native
11066     # linker, instead of GNU ld.  If possible, this setting should
11067     # overridden to take advantage of the native linker features on
11068     # the platform it is being used on.
11069     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11070   fi
11071
11072   # Commands to make compiler produce verbose output that lists
11073   # what "hidden" libraries, object files and flags are used when
11074   # linking a shared library.
11075   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11076
11077 else
11078   GXX=no
11079   with_gnu_ld=no
11080   wlarc=
11081 fi
11082
11083 # PORTME: fill in a description of your system's C++ link characteristics
11084 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11085 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11086 ld_shlibs_CXX=yes
11087 case $host_os in
11088   aix3*)
11089     # FIXME: insert proper C++ library support
11090     ld_shlibs_CXX=no
11091     ;;
11092   aix4* | aix5*)
11093     if test "$host_cpu" = ia64; then
11094       # On IA64, the linker does run time linking by default, so we don't
11095       # have to do anything special.
11096       aix_use_runtimelinking=no
11097       exp_sym_flag='-Bexport'
11098       no_entry_flag=""
11099     else
11100       aix_use_runtimelinking=no
11101
11102       # Test if we are trying to use run time linking or normal
11103       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11104       # need to do runtime linking.
11105       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11106         for ld_flag in $LDFLAGS; do
11107           case $ld_flag in
11108           *-brtl*)
11109             aix_use_runtimelinking=yes
11110             break
11111             ;;
11112           esac
11113         done
11114         ;;
11115       esac
11116
11117       exp_sym_flag='-bexport'
11118       no_entry_flag='-bnoentry'
11119     fi
11120
11121     # When large executables or shared objects are built, AIX ld can
11122     # have problems creating the table of contents.  If linking a library
11123     # or program results in "error TOC overflow" add -mminimal-toc to
11124     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11125     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11126
11127     archive_cmds_CXX=''
11128     hardcode_direct_CXX=yes
11129     hardcode_libdir_separator_CXX=':'
11130     link_all_deplibs_CXX=yes
11131
11132     if test "$GXX" = yes; then
11133       case $host_os in aix4.[012]|aix4.[012].*)
11134       # We only want to do this on AIX 4.2 and lower, the check
11135       # below for broken collect2 doesn't work under 4.3+
11136         collect2name=`${CC} -print-prog-name=collect2`
11137         if test -f "$collect2name" && \
11138            strings "$collect2name" | grep resolve_lib_name >/dev/null
11139         then
11140           # We have reworked collect2
11141           hardcode_direct_CXX=yes
11142         else
11143           # We have old collect2
11144           hardcode_direct_CXX=unsupported
11145           # It fails to find uninstalled libraries when the uninstalled
11146           # path is not listed in the libpath.  Setting hardcode_minus_L
11147           # to unsupported forces relinking
11148           hardcode_minus_L_CXX=yes
11149           hardcode_libdir_flag_spec_CXX='-L$libdir'
11150           hardcode_libdir_separator_CXX=
11151         fi
11152         ;;
11153       esac
11154       shared_flag='-shared'
11155       if test "$aix_use_runtimelinking" = yes; then
11156         shared_flag="$shared_flag "'${wl}-G'
11157       fi
11158     else
11159       # not using gcc
11160       if test "$host_cpu" = ia64; then
11161         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11162         # chokes on -Wl,-G. The following line is correct:
11163         shared_flag='-G'
11164       else
11165         if test "$aix_use_runtimelinking" = yes; then
11166           shared_flag='${wl}-G'
11167         else
11168           shared_flag='${wl}-bM:SRE'
11169         fi
11170       fi
11171     fi
11172
11173     # It seems that -bexpall does not export symbols beginning with
11174     # underscore (_), so it is better to generate a list of symbols to export.
11175     always_export_symbols_CXX=yes
11176     if test "$aix_use_runtimelinking" = yes; then
11177       # Warning - without using the other runtime loading flags (-brtl),
11178       # -berok will link without error, but may produce a broken library.
11179       allow_undefined_flag_CXX='-berok'
11180       # Determine the default libpath from the value encoded in an empty executable.
11181       cat >conftest.$ac_ext <<_ACEOF
11182 /* confdefs.h.  */
11183 _ACEOF
11184 cat confdefs.h >>conftest.$ac_ext
11185 cat >>conftest.$ac_ext <<_ACEOF
11186 /* end confdefs.h.  */
11187
11188 int
11189 main ()
11190 {
11191
11192   ;
11193   return 0;
11194 }
11195 _ACEOF
11196 rm -f conftest.$ac_objext conftest$ac_exeext
11197 if { (ac_try="$ac_link"
11198 case "(($ac_try" in
11199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200   *) ac_try_echo=$ac_try;;
11201 esac
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203   (eval "$ac_link") 2>conftest.er1
11204   ac_status=$?
11205   grep -v '^ *+' conftest.er1 >conftest.err
11206   rm -f conftest.er1
11207   cat conftest.err >&5
11208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209   (exit $ac_status); } && {
11210          test -z "$ac_cxx_werror_flag" ||
11211          test ! -s conftest.err
11212        } && test -s conftest$ac_exeext &&
11213        $as_test_x conftest$ac_exeext; then
11214
11215 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11216 }'`
11217 # Check for a 64-bit object if we didn't find anything.
11218 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; }
11219 }'`; fi
11220 else
11221   echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11223
11224
11225 fi
11226
11227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11228       conftest$ac_exeext conftest.$ac_ext
11229 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11230
11231       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11232
11233       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"
11234      else
11235       if test "$host_cpu" = ia64; then
11236         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11237         allow_undefined_flag_CXX="-z nodefs"
11238         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"
11239       else
11240         # Determine the default libpath from the value encoded in an empty executable.
11241         cat >conftest.$ac_ext <<_ACEOF
11242 /* confdefs.h.  */
11243 _ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h.  */
11247
11248 int
11249 main ()
11250 {
11251
11252   ;
11253   return 0;
11254 }
11255 _ACEOF
11256 rm -f conftest.$ac_objext conftest$ac_exeext
11257 if { (ac_try="$ac_link"
11258 case "(($ac_try" in
11259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11260   *) ac_try_echo=$ac_try;;
11261 esac
11262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11263   (eval "$ac_link") 2>conftest.er1
11264   ac_status=$?
11265   grep -v '^ *+' conftest.er1 >conftest.err
11266   rm -f conftest.er1
11267   cat conftest.err >&5
11268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269   (exit $ac_status); } && {
11270          test -z "$ac_cxx_werror_flag" ||
11271          test ! -s conftest.err
11272        } && test -s conftest$ac_exeext &&
11273        $as_test_x conftest$ac_exeext; then
11274
11275 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11276 }'`
11277 # Check for a 64-bit object if we didn't find anything.
11278 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; }
11279 }'`; fi
11280 else
11281   echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11283
11284
11285 fi
11286
11287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11288       conftest$ac_exeext conftest.$ac_ext
11289 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11290
11291         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11292         # Warning - without using the other run time loading flags,
11293         # -berok will link without error, but may produce a broken library.
11294         no_undefined_flag_CXX=' ${wl}-bernotok'
11295         allow_undefined_flag_CXX=' ${wl}-berok'
11296         # Exported symbols can be pulled into shared objects from archives
11297         whole_archive_flag_spec_CXX='$convenience'
11298         archive_cmds_need_lc_CXX=yes
11299         # This is similar to how AIX traditionally builds its shared libraries.
11300         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'
11301       fi
11302     fi
11303     ;;
11304
11305   beos*)
11306     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11307       allow_undefined_flag_CXX=unsupported
11308       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11309       # support --undefined.  This deserves some investigation.  FIXME
11310       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11311     else
11312       ld_shlibs_CXX=no
11313     fi
11314     ;;
11315
11316   chorus*)
11317     case $cc_basename in
11318       *)
11319         # FIXME: insert proper C++ library support
11320         ld_shlibs_CXX=no
11321         ;;
11322     esac
11323     ;;
11324
11325   cygwin* | mingw* | pw32*)
11326     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11327     # as there is no search path for DLLs.
11328     hardcode_libdir_flag_spec_CXX='-L$libdir'
11329     allow_undefined_flag_CXX=unsupported
11330     always_export_symbols_CXX=no
11331     enable_shared_with_static_runtimes_CXX=yes
11332
11333     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11334       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'
11335       # If the export-symbols file already is a .def file (1st line
11336       # is EXPORTS), use it as is; otherwise, prepend...
11337       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11338         cp $export_symbols $output_objdir/$soname.def;
11339       else
11340         echo EXPORTS > $output_objdir/$soname.def;
11341         cat $export_symbols >> $output_objdir/$soname.def;
11342       fi~
11343       $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'
11344     else
11345       ld_shlibs_CXX=no
11346     fi
11347   ;;
11348       darwin* | rhapsody*)
11349         case $host_os in
11350         rhapsody* | darwin1.[012])
11351          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11352          ;;
11353        *) # Darwin 1.3 on
11354          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11355            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11356          else
11357            case ${MACOSX_DEPLOYMENT_TARGET} in
11358              10.[012])
11359                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11360                ;;
11361              10.*)
11362                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11363                ;;
11364            esac
11365          fi
11366          ;;
11367         esac
11368       archive_cmds_need_lc_CXX=no
11369       hardcode_direct_CXX=no
11370       hardcode_automatic_CXX=yes
11371       hardcode_shlibpath_var_CXX=unsupported
11372       whole_archive_flag_spec_CXX=''
11373       link_all_deplibs_CXX=yes
11374
11375     if test "$GXX" = yes ; then
11376       lt_int_apple_cc_single_mod=no
11377       output_verbose_link_cmd='echo'
11378       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11379        lt_int_apple_cc_single_mod=yes
11380       fi
11381       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11382        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11383       else
11384           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'
11385         fi
11386         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11387         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11388           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11389             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}'
11390           else
11391             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}'
11392           fi
11393             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}'
11394       else
11395       case $cc_basename in
11396         xlc*)
11397          output_verbose_link_cmd='echo'
11398           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'
11399           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11400           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11401           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}'
11402           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}'
11403           ;;
11404        *)
11405          ld_shlibs_CXX=no
11406           ;;
11407       esac
11408       fi
11409         ;;
11410
11411   dgux*)
11412     case $cc_basename in
11413       ec++*)
11414         # FIXME: insert proper C++ library support
11415         ld_shlibs_CXX=no
11416         ;;
11417       ghcx*)
11418         # Green Hills C++ Compiler
11419         # FIXME: insert proper C++ library support
11420         ld_shlibs_CXX=no
11421         ;;
11422       *)
11423         # FIXME: insert proper C++ library support
11424         ld_shlibs_CXX=no
11425         ;;
11426     esac
11427     ;;
11428   freebsd[12]*)
11429     # C++ shared libraries reported to be fairly broken before switch to ELF
11430     ld_shlibs_CXX=no
11431     ;;
11432   freebsd-elf*)
11433     archive_cmds_need_lc_CXX=no
11434     ;;
11435   freebsd* | dragonfly*)
11436     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11437     # conventions
11438     ld_shlibs_CXX=yes
11439     ;;
11440   gnu*)
11441     ;;
11442   hpux9*)
11443     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11444     hardcode_libdir_separator_CXX=:
11445     export_dynamic_flag_spec_CXX='${wl}-E'
11446     hardcode_direct_CXX=yes
11447     hardcode_minus_L_CXX=yes # Not in the search PATH,
11448                                 # but as the default
11449                                 # location of the library.
11450
11451     case $cc_basename in
11452     CC*)
11453       # FIXME: insert proper C++ library support
11454       ld_shlibs_CXX=no
11455       ;;
11456     aCC*)
11457       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'
11458       # Commands to make compiler produce verbose output that lists
11459       # what "hidden" libraries, object files and flags are used when
11460       # linking a shared library.
11461       #
11462       # There doesn't appear to be a way to prevent this compiler from
11463       # explicitly linking system object files so we need to strip them
11464       # from the output so that they don't get included in the library
11465       # dependencies.
11466       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'
11467       ;;
11468     *)
11469       if test "$GXX" = yes; then
11470         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'
11471       else
11472         # FIXME: insert proper C++ library support
11473         ld_shlibs_CXX=no
11474       fi
11475       ;;
11476     esac
11477     ;;
11478   hpux10*|hpux11*)
11479     if test $with_gnu_ld = no; then
11480       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11481       hardcode_libdir_separator_CXX=:
11482
11483       case $host_cpu in
11484       hppa*64*|ia64*)
11485         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11486         ;;
11487       *)
11488         export_dynamic_flag_spec_CXX='${wl}-E'
11489         ;;
11490       esac
11491     fi
11492     case $host_cpu in
11493     hppa*64*|ia64*)
11494       hardcode_direct_CXX=no
11495       hardcode_shlibpath_var_CXX=no
11496       ;;
11497     *)
11498       hardcode_direct_CXX=yes
11499       hardcode_minus_L_CXX=yes # Not in the search PATH,
11500                                               # but as the default
11501                                               # location of the library.
11502       ;;
11503     esac
11504
11505     case $cc_basename in
11506       CC*)
11507         # FIXME: insert proper C++ library support
11508         ld_shlibs_CXX=no
11509         ;;
11510       aCC*)
11511         case $host_cpu in
11512         hppa*64*)
11513           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11514           ;;
11515         ia64*)
11516           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11517           ;;
11518         *)
11519           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11520           ;;
11521         esac
11522         # Commands to make compiler produce verbose output that lists
11523         # what "hidden" libraries, object files and flags are used when
11524         # linking a shared library.
11525         #
11526         # There doesn't appear to be a way to prevent this compiler from
11527         # explicitly linking system object files so we need to strip them
11528         # from the output so that they don't get included in the library
11529         # dependencies.
11530         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'
11531         ;;
11532       *)
11533         if test "$GXX" = yes; then
11534           if test $with_gnu_ld = no; then
11535             case $host_cpu in
11536             hppa*64*)
11537               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11538               ;;
11539             ia64*)
11540               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11541               ;;
11542             *)
11543               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'
11544               ;;
11545             esac
11546           fi
11547         else
11548           # FIXME: insert proper C++ library support
11549           ld_shlibs_CXX=no
11550         fi
11551         ;;
11552     esac
11553     ;;
11554   interix3*)
11555     hardcode_direct_CXX=no
11556     hardcode_shlibpath_var_CXX=no
11557     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11558     export_dynamic_flag_spec_CXX='${wl}-E'
11559     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11560     # Instead, shared libraries are loaded at an image base (0x10000000 by
11561     # default) and relocated if they conflict, which is a slow very memory
11562     # consuming and fragmenting process.  To avoid this, we pick a random,
11563     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11564     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11565     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'
11566     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'
11567     ;;
11568   irix5* | irix6*)
11569     case $cc_basename in
11570       CC*)
11571         # SGI C++
11572         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'
11573
11574         # Archives containing C++ object files must be created using
11575         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11576         # necessary to make sure instantiated templates are included
11577         # in the archive.
11578         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11579         ;;
11580       *)
11581         if test "$GXX" = yes; then
11582           if test "$with_gnu_ld" = no; then
11583             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'
11584           else
11585             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'
11586           fi
11587         fi
11588         link_all_deplibs_CXX=yes
11589         ;;
11590     esac
11591     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11592     hardcode_libdir_separator_CXX=:
11593     ;;
11594   linux* | k*bsd*-gnu)
11595     case $cc_basename in
11596       KCC*)
11597         # Kuck and Associates, Inc. (KAI) C++ Compiler
11598
11599         # KCC will only create a shared library if the output file
11600         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11601         # to its proper name (with version) after linking.
11602         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'
11603         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'
11604         # Commands to make compiler produce verbose output that lists
11605         # what "hidden" libraries, object files and flags are used when
11606         # linking a shared library.
11607         #
11608         # There doesn't appear to be a way to prevent this compiler from
11609         # explicitly linking system object files so we need to strip them
11610         # from the output so that they don't get included in the library
11611         # dependencies.
11612         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'
11613
11614         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11615         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11616
11617         # Archives containing C++ object files must be created using
11618         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11619         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11620         ;;
11621       icpc*)
11622         # Intel C++
11623         with_gnu_ld=yes
11624         # version 8.0 and above of icpc choke on multiply defined symbols
11625         # if we add $predep_objects and $postdep_objects, however 7.1 and
11626         # earlier do not add the objects themselves.
11627         case `$CC -V 2>&1` in
11628         *"Version 7."*)
11629           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11630           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'
11631           ;;
11632         *)  # Version 8.0 or newer
11633           tmp_idyn=
11634           case $host_cpu in
11635             ia64*) tmp_idyn=' -i_dynamic';;
11636           esac
11637           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11638           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'
11639           ;;
11640         esac
11641         archive_cmds_need_lc_CXX=no
11642         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11643         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11644         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11645         ;;
11646       pgCC*)
11647         # Portland Group C++ compiler
11648         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11649         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'
11650
11651         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11652         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11653         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'
11654         ;;
11655       cxx*)
11656         # Compaq C++
11657         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11658         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'
11659
11660         runpath_var=LD_RUN_PATH
11661         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11662         hardcode_libdir_separator_CXX=:
11663
11664         # Commands to make compiler produce verbose output that lists
11665         # what "hidden" libraries, object files and flags are used when
11666         # linking a shared library.
11667         #
11668         # There doesn't appear to be a way to prevent this compiler from
11669         # explicitly linking system object files so we need to strip them
11670         # from the output so that they don't get included in the library
11671         # dependencies.
11672         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'
11673         ;;
11674     esac
11675     ;;
11676   lynxos*)
11677     # FIXME: insert proper C++ library support
11678     ld_shlibs_CXX=no
11679     ;;
11680   m88k*)
11681     # FIXME: insert proper C++ library support
11682     ld_shlibs_CXX=no
11683     ;;
11684   mvs*)
11685     case $cc_basename in
11686       cxx*)
11687         # FIXME: insert proper C++ library support
11688         ld_shlibs_CXX=no
11689         ;;
11690       *)
11691         # FIXME: insert proper C++ library support
11692         ld_shlibs_CXX=no
11693         ;;
11694     esac
11695     ;;
11696   netbsd* | netbsdelf*-gnu)
11697     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11698       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11699       wlarc=
11700       hardcode_libdir_flag_spec_CXX='-R$libdir'
11701       hardcode_direct_CXX=yes
11702       hardcode_shlibpath_var_CXX=no
11703     fi
11704     # Workaround some broken pre-1.5 toolchains
11705     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11706     ;;
11707   openbsd2*)
11708     # C++ shared libraries are fairly broken
11709     ld_shlibs_CXX=no
11710     ;;
11711   openbsd*)
11712     hardcode_direct_CXX=yes
11713     hardcode_shlibpath_var_CXX=no
11714     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11715     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11716     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11717       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11718       export_dynamic_flag_spec_CXX='${wl}-E'
11719       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11720     fi
11721     output_verbose_link_cmd='echo'
11722     ;;
11723   osf3*)
11724     case $cc_basename in
11725       KCC*)
11726         # Kuck and Associates, Inc. (KAI) C++ Compiler
11727
11728         # KCC will only create a shared library if the output file
11729         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11730         # to its proper name (with version) after linking.
11731         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'
11732
11733         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11734         hardcode_libdir_separator_CXX=:
11735
11736         # Archives containing C++ object files must be created using
11737         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11738         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11739
11740         ;;
11741       RCC*)
11742         # Rational C++ 2.4.1
11743         # FIXME: insert proper C++ library support
11744         ld_shlibs_CXX=no
11745         ;;
11746       cxx*)
11747         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11748         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'
11749
11750         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11751         hardcode_libdir_separator_CXX=:
11752
11753         # Commands to make compiler produce verbose output that lists
11754         # what "hidden" libraries, object files and flags are used when
11755         # linking a shared library.
11756         #
11757         # There doesn't appear to be a way to prevent this compiler from
11758         # explicitly linking system object files so we need to strip them
11759         # from the output so that they don't get included in the library
11760         # dependencies.
11761         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'
11762         ;;
11763       *)
11764         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11765           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11766           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'
11767
11768           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11769           hardcode_libdir_separator_CXX=:
11770
11771           # Commands to make compiler produce verbose output that lists
11772           # what "hidden" libraries, object files and flags are used when
11773           # linking a shared library.
11774           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11775
11776         else
11777           # FIXME: insert proper C++ library support
11778           ld_shlibs_CXX=no
11779         fi
11780         ;;
11781     esac
11782     ;;
11783   osf4* | osf5*)
11784     case $cc_basename in
11785       KCC*)
11786         # Kuck and Associates, Inc. (KAI) C++ Compiler
11787
11788         # KCC will only create a shared library if the output file
11789         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11790         # to its proper name (with version) after linking.
11791         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'
11792
11793         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11794         hardcode_libdir_separator_CXX=:
11795
11796         # Archives containing C++ object files must be created using
11797         # the KAI C++ compiler.
11798         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11799         ;;
11800       RCC*)
11801         # Rational C++ 2.4.1
11802         # FIXME: insert proper C++ library support
11803         ld_shlibs_CXX=no
11804         ;;
11805       cxx*)
11806         allow_undefined_flag_CXX=' -expect_unresolved \*'
11807         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'
11808         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11809           echo "-hidden">> $lib.exp~
11810           $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~
11811           $rm $lib.exp'
11812
11813         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11814         hardcode_libdir_separator_CXX=:
11815
11816         # Commands to make compiler produce verbose output that lists
11817         # what "hidden" libraries, object files and flags are used when
11818         # linking a shared library.
11819         #
11820         # There doesn't appear to be a way to prevent this compiler from
11821         # explicitly linking system object files so we need to strip them
11822         # from the output so that they don't get included in the library
11823         # dependencies.
11824         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'
11825         ;;
11826       *)
11827         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11828           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11829          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'
11830
11831           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11832           hardcode_libdir_separator_CXX=:
11833
11834           # Commands to make compiler produce verbose output that lists
11835           # what "hidden" libraries, object files and flags are used when
11836           # linking a shared library.
11837           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11838
11839         else
11840           # FIXME: insert proper C++ library support
11841           ld_shlibs_CXX=no
11842         fi
11843         ;;
11844     esac
11845     ;;
11846   psos*)
11847     # FIXME: insert proper C++ library support
11848     ld_shlibs_CXX=no
11849     ;;
11850   sunos4*)
11851     case $cc_basename in
11852       CC*)
11853         # Sun C++ 4.x
11854         # FIXME: insert proper C++ library support
11855         ld_shlibs_CXX=no
11856         ;;
11857       lcc*)
11858         # Lucid
11859         # FIXME: insert proper C++ library support
11860         ld_shlibs_CXX=no
11861         ;;
11862       *)
11863         # FIXME: insert proper C++ library support
11864         ld_shlibs_CXX=no
11865         ;;
11866     esac
11867     ;;
11868   solaris*)
11869     case $cc_basename in
11870       CC*)
11871         # Sun C++ 4.2, 5.x and Centerline C++
11872         archive_cmds_need_lc_CXX=yes
11873         no_undefined_flag_CXX=' -zdefs'
11874         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11875         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11876         $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'
11877
11878         hardcode_libdir_flag_spec_CXX='-R$libdir'
11879         hardcode_shlibpath_var_CXX=no
11880         case $host_os in
11881           solaris2.[0-5] | solaris2.[0-5].*) ;;
11882           *)
11883             # The C++ compiler is used as linker so we must use $wl
11884             # flag to pass the commands to the underlying system
11885             # linker. We must also pass each convience library through
11886             # to the system linker between allextract/defaultextract.
11887             # The C++ compiler will combine linker options so we
11888             # cannot just pass the convience library names through
11889             # without $wl.
11890             # Supported since Solaris 2.6 (maybe 2.5.1?)
11891             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'
11892             ;;
11893         esac
11894         link_all_deplibs_CXX=yes
11895
11896         output_verbose_link_cmd='echo'
11897
11898         # Archives containing C++ object files must be created using
11899         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11900         # necessary to make sure instantiated templates are included
11901         # in the archive.
11902         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11903         ;;
11904       gcx*)
11905         # Green Hills C++ Compiler
11906         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11907
11908         # The C++ compiler must be used to create the archive.
11909         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11910         ;;
11911       *)
11912         # GNU C++ compiler with Solaris linker
11913         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11914           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11915           if $CC --version | grep -v '^2\.7' > /dev/null; then
11916             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11917             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11918                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11919
11920             # Commands to make compiler produce verbose output that lists
11921             # what "hidden" libraries, object files and flags are used when
11922             # linking a shared library.
11923             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11924           else
11925             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11926             # platform.
11927             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11928             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11929                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11930
11931             # Commands to make compiler produce verbose output that lists
11932             # what "hidden" libraries, object files and flags are used when
11933             # linking a shared library.
11934             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11935           fi
11936
11937           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11938         fi
11939         ;;
11940     esac
11941     ;;
11942   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11943     no_undefined_flag_CXX='${wl}-z,text'
11944     archive_cmds_need_lc_CXX=no
11945     hardcode_shlibpath_var_CXX=no
11946     runpath_var='LD_RUN_PATH'
11947
11948     case $cc_basename in
11949       CC*)
11950         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11951         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11952         ;;
11953       *)
11954         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11955         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11956         ;;
11957     esac
11958     ;;
11959   sysv5* | sco3.2v5* | sco5v6*)
11960     # Note: We can NOT use -z defs as we might desire, because we do not
11961     # link with -lc, and that would cause any symbols used from libc to
11962     # always be unresolved, which means just about no library would
11963     # ever link correctly.  If we're not using GNU ld we use -z text
11964     # though, which does catch some bad symbols but isn't as heavy-handed
11965     # as -z defs.
11966     # For security reasons, it is highly recommended that you always
11967     # use absolute paths for naming shared libraries, and exclude the
11968     # DT_RUNPATH tag from executables and libraries.  But doing so
11969     # requires that you compile everything twice, which is a pain.
11970     # So that behaviour is only enabled if SCOABSPATH is set to a
11971     # non-empty value in the environment.  Most likely only useful for
11972     # creating official distributions of packages.
11973     # This is a hack until libtool officially supports absolute path
11974     # names for shared libraries.
11975     no_undefined_flag_CXX='${wl}-z,text'
11976     allow_undefined_flag_CXX='${wl}-z,nodefs'
11977     archive_cmds_need_lc_CXX=no
11978     hardcode_shlibpath_var_CXX=no
11979     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11980     hardcode_libdir_separator_CXX=':'
11981     link_all_deplibs_CXX=yes
11982     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11983     runpath_var='LD_RUN_PATH'
11984
11985     case $cc_basename in
11986       CC*)
11987         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11988         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11989         ;;
11990       *)
11991         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11992         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11993         ;;
11994     esac
11995     ;;
11996   tandem*)
11997     case $cc_basename in
11998       NCC*)
11999         # NonStop-UX NCC 3.20
12000         # FIXME: insert proper C++ library support
12001         ld_shlibs_CXX=no
12002         ;;
12003       *)
12004         # FIXME: insert proper C++ library support
12005         ld_shlibs_CXX=no
12006         ;;
12007     esac
12008     ;;
12009   vxworks*)
12010     # FIXME: insert proper C++ library support
12011     ld_shlibs_CXX=no
12012     ;;
12013   *)
12014     # FIXME: insert proper C++ library support
12015     ld_shlibs_CXX=no
12016     ;;
12017 esac
12018 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12019 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12020 test "$ld_shlibs_CXX" = no && can_build_shared=no
12021
12022 GCC_CXX="$GXX"
12023 LD_CXX="$LD"
12024
12025
12026 cat > conftest.$ac_ext <<EOF
12027 class Foo
12028 {
12029 public:
12030   Foo (void) { a = 0; }
12031 private:
12032   int a;
12033 };
12034 EOF
12035
12036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12037   (eval $ac_compile) 2>&5
12038   ac_status=$?
12039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040   (exit $ac_status); }; then
12041   # Parse the compiler output and extract the necessary
12042   # objects, libraries and library flags.
12043
12044   # Sentinel used to keep track of whether or not we are before
12045   # the conftest object file.
12046   pre_test_object_deps_done=no
12047
12048   # The `*' in the case matches for architectures that use `case' in
12049   # $output_verbose_cmd can trigger glob expansion during the loop
12050   # eval without this substitution.
12051   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12052
12053   for p in `eval $output_verbose_link_cmd`; do
12054     case $p in
12055
12056     -L* | -R* | -l*)
12057        # Some compilers place space between "-{L,R}" and the path.
12058        # Remove the space.
12059        if test $p = "-L" \
12060           || test $p = "-R"; then
12061          prev=$p
12062          continue
12063        else
12064          prev=
12065        fi
12066
12067        if test "$pre_test_object_deps_done" = no; then
12068          case $p in
12069          -L* | -R*)
12070            # Internal compiler library paths should come after those
12071            # provided the user.  The postdeps already come after the
12072            # user supplied libs so there is no need to process them.
12073            if test -z "$compiler_lib_search_path_CXX"; then
12074              compiler_lib_search_path_CXX="${prev}${p}"
12075            else
12076              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12077            fi
12078            ;;
12079          # The "-l" case would never come before the object being
12080          # linked, so don't bother handling this case.
12081          esac
12082        else
12083          if test -z "$postdeps_CXX"; then
12084            postdeps_CXX="${prev}${p}"
12085          else
12086            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12087          fi
12088        fi
12089        ;;
12090
12091     *.$objext)
12092        # This assumes that the test object file only shows up
12093        # once in the compiler output.
12094        if test "$p" = "conftest.$objext"; then
12095          pre_test_object_deps_done=yes
12096          continue
12097        fi
12098
12099        if test "$pre_test_object_deps_done" = no; then
12100          if test -z "$predep_objects_CXX"; then
12101            predep_objects_CXX="$p"
12102          else
12103            predep_objects_CXX="$predep_objects_CXX $p"
12104          fi
12105        else
12106          if test -z "$postdep_objects_CXX"; then
12107            postdep_objects_CXX="$p"
12108          else
12109            postdep_objects_CXX="$postdep_objects_CXX $p"
12110          fi
12111        fi
12112        ;;
12113
12114     *) ;; # Ignore the rest.
12115
12116     esac
12117   done
12118
12119   # Clean up.
12120   rm -f a.out a.exe
12121 else
12122   echo "libtool.m4: error: problem compiling CXX test program"
12123 fi
12124
12125 $rm -f confest.$objext
12126
12127 # PORTME: override above test on systems where it is broken
12128 case $host_os in
12129 interix3*)
12130   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12131   # hack all around it, let's just trust "g++" to DTRT.
12132   predep_objects_CXX=
12133   postdep_objects_CXX=
12134   postdeps_CXX=
12135   ;;
12136
12137 solaris*)
12138   case $cc_basename in
12139   CC*)
12140     # Adding this requires a known-good setup of shared libraries for
12141     # Sun compiler versions before 5.6, else PIC objects from an old
12142     # archive will be linked into the output, leading to subtle bugs.
12143     postdeps_CXX='-lCstd -lCrun'
12144     ;;
12145   esac
12146   ;;
12147 esac
12148
12149
12150 case " $postdeps_CXX " in
12151 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12152 esac
12153
12154 lt_prog_compiler_wl_CXX=
12155 lt_prog_compiler_pic_CXX=
12156 lt_prog_compiler_static_CXX=
12157
12158 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12159 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12160
12161   # C++ specific cases for pic, static, wl, etc.
12162   if test "$GXX" = yes; then
12163     lt_prog_compiler_wl_CXX='-Wl,'
12164     lt_prog_compiler_static_CXX='-static'
12165
12166     case $host_os in
12167     aix*)
12168       # All AIX code is PIC.
12169       if test "$host_cpu" = ia64; then
12170         # AIX 5 now supports IA64 processor
12171         lt_prog_compiler_static_CXX='-Bstatic'
12172       fi
12173       ;;
12174     amigaos*)
12175       # FIXME: we need at least 68020 code to build shared libraries, but
12176       # adding the `-m68020' flag to GCC prevents building anything better,
12177       # like `-m68040'.
12178       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12179       ;;
12180     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12181       # PIC is the default for these OSes.
12182       ;;
12183     mingw* | os2* | pw32*)
12184       # This hack is so that the source file can tell whether it is being
12185       # built for inclusion in a dll (and should export symbols for example).
12186       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12187       ;;
12188     darwin* | rhapsody*)
12189       # PIC is the default on this platform
12190       # Common symbols not allowed in MH_DYLIB files
12191       lt_prog_compiler_pic_CXX='-fno-common'
12192       ;;
12193     *djgpp*)
12194       # DJGPP does not support shared libraries at all
12195       lt_prog_compiler_pic_CXX=
12196       ;;
12197     interix3*)
12198       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12199       # Instead, we relocate shared libraries at runtime.
12200       ;;
12201     sysv4*MP*)
12202       if test -d /usr/nec; then
12203         lt_prog_compiler_pic_CXX=-Kconform_pic
12204       fi
12205       ;;
12206     hpux*)
12207       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12208       # not for PA HP-UX.
12209       case $host_cpu in
12210       hppa*64*|ia64*)
12211         ;;
12212       *)
12213         lt_prog_compiler_pic_CXX='-fPIC'
12214         ;;
12215       esac
12216       ;;
12217     *)
12218       lt_prog_compiler_pic_CXX='-fPIC'
12219       ;;
12220     esac
12221   else
12222     case $host_os in
12223       aix4* | aix5*)
12224         # All AIX code is PIC.
12225         if test "$host_cpu" = ia64; then
12226           # AIX 5 now supports IA64 processor
12227           lt_prog_compiler_static_CXX='-Bstatic'
12228         else
12229           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12230         fi
12231         ;;
12232       chorus*)
12233         case $cc_basename in
12234         cxch68*)
12235           # Green Hills C++ Compiler
12236           # _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"
12237           ;;
12238         esac
12239         ;;
12240        darwin*)
12241          # PIC is the default on this platform
12242          # Common symbols not allowed in MH_DYLIB files
12243          case $cc_basename in
12244            xlc*)
12245            lt_prog_compiler_pic_CXX='-qnocommon'
12246            lt_prog_compiler_wl_CXX='-Wl,'
12247            ;;
12248          esac
12249        ;;
12250       dgux*)
12251         case $cc_basename in
12252           ec++*)
12253             lt_prog_compiler_pic_CXX='-KPIC'
12254             ;;
12255           ghcx*)
12256             # Green Hills C++ Compiler
12257             lt_prog_compiler_pic_CXX='-pic'
12258             ;;
12259           *)
12260             ;;
12261         esac
12262         ;;
12263       freebsd* | dragonfly*)
12264         # FreeBSD uses GNU C++
12265         ;;
12266       hpux9* | hpux10* | hpux11*)
12267         case $cc_basename in
12268           CC*)
12269             lt_prog_compiler_wl_CXX='-Wl,'
12270             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12271             if test "$host_cpu" != ia64; then
12272               lt_prog_compiler_pic_CXX='+Z'
12273             fi
12274             ;;
12275           aCC*)
12276             lt_prog_compiler_wl_CXX='-Wl,'
12277             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12278             case $host_cpu in
12279             hppa*64*|ia64*)
12280               # +Z the default
12281               ;;
12282             *)
12283               lt_prog_compiler_pic_CXX='+Z'
12284               ;;
12285             esac
12286             ;;
12287           *)
12288             ;;
12289         esac
12290         ;;
12291       interix*)
12292         # This is c89, which is MS Visual C++ (no shared libs)
12293         # Anyone wants to do a port?
12294         ;;
12295       irix5* | irix6* | nonstopux*)
12296         case $cc_basename in
12297           CC*)
12298             lt_prog_compiler_wl_CXX='-Wl,'
12299             lt_prog_compiler_static_CXX='-non_shared'
12300             # CC pic flag -KPIC is the default.
12301             ;;
12302           *)
12303             ;;
12304         esac
12305         ;;
12306       linux* | k*bsd*-gnu)
12307         case $cc_basename in
12308           KCC*)
12309             # KAI C++ Compiler
12310             lt_prog_compiler_wl_CXX='--backend -Wl,'
12311             lt_prog_compiler_pic_CXX='-fPIC'
12312             ;;
12313           icpc* | ecpc*)
12314             # Intel C++
12315             lt_prog_compiler_wl_CXX='-Wl,'
12316             lt_prog_compiler_pic_CXX='-KPIC'
12317             lt_prog_compiler_static_CXX='-static'
12318             ;;
12319           pgCC*)
12320             # Portland Group C++ compiler.
12321             lt_prog_compiler_wl_CXX='-Wl,'
12322             lt_prog_compiler_pic_CXX='-fpic'
12323             lt_prog_compiler_static_CXX='-Bstatic'
12324             ;;
12325           cxx*)
12326             # Compaq C++
12327             # Make sure the PIC flag is empty.  It appears that all Alpha
12328             # Linux and Compaq Tru64 Unix objects are PIC.
12329             lt_prog_compiler_pic_CXX=
12330             lt_prog_compiler_static_CXX='-non_shared'
12331             ;;
12332           *)
12333             ;;
12334         esac
12335         ;;
12336       lynxos*)
12337         ;;
12338       m88k*)
12339         ;;
12340       mvs*)
12341         case $cc_basename in
12342           cxx*)
12343             lt_prog_compiler_pic_CXX='-W c,exportall'
12344             ;;
12345           *)
12346             ;;
12347         esac
12348         ;;
12349       netbsd* | netbsdelf*-gnu)
12350         ;;
12351       osf3* | osf4* | osf5*)
12352         case $cc_basename in
12353           KCC*)
12354             lt_prog_compiler_wl_CXX='--backend -Wl,'
12355             ;;
12356           RCC*)
12357             # Rational C++ 2.4.1
12358             lt_prog_compiler_pic_CXX='-pic'
12359             ;;
12360           cxx*)
12361             # Digital/Compaq C++
12362             lt_prog_compiler_wl_CXX='-Wl,'
12363             # Make sure the PIC flag is empty.  It appears that all Alpha
12364             # Linux and Compaq Tru64 Unix objects are PIC.
12365             lt_prog_compiler_pic_CXX=
12366             lt_prog_compiler_static_CXX='-non_shared'
12367             ;;
12368           *)
12369             ;;
12370         esac
12371         ;;
12372       psos*)
12373         ;;
12374       solaris*)
12375         case $cc_basename in
12376           CC*)
12377             # Sun C++ 4.2, 5.x and Centerline C++
12378             lt_prog_compiler_pic_CXX='-KPIC'
12379             lt_prog_compiler_static_CXX='-Bstatic'
12380             lt_prog_compiler_wl_CXX='-Qoption ld '
12381             ;;
12382           gcx*)
12383             # Green Hills C++ Compiler
12384             lt_prog_compiler_pic_CXX='-PIC'
12385             ;;
12386           *)
12387             ;;
12388         esac
12389         ;;
12390       sunos4*)
12391         case $cc_basename in
12392           CC*)
12393             # Sun C++ 4.x
12394             lt_prog_compiler_pic_CXX='-pic'
12395             lt_prog_compiler_static_CXX='-Bstatic'
12396             ;;
12397           lcc*)
12398             # Lucid
12399             lt_prog_compiler_pic_CXX='-pic'
12400             ;;
12401           *)
12402             ;;
12403         esac
12404         ;;
12405       tandem*)
12406         case $cc_basename in
12407           NCC*)
12408             # NonStop-UX NCC 3.20
12409             lt_prog_compiler_pic_CXX='-KPIC'
12410             ;;
12411           *)
12412             ;;
12413         esac
12414         ;;
12415       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12416         case $cc_basename in
12417           CC*)
12418             lt_prog_compiler_wl_CXX='-Wl,'
12419             lt_prog_compiler_pic_CXX='-KPIC'
12420             lt_prog_compiler_static_CXX='-Bstatic'
12421             ;;
12422         esac
12423         ;;
12424       vxworks*)
12425         ;;
12426       *)
12427         lt_prog_compiler_can_build_shared_CXX=no
12428         ;;
12429     esac
12430   fi
12431
12432 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12433 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12434
12435 #
12436 # Check to make sure the PIC flag actually works.
12437 #
12438 if test -n "$lt_prog_compiler_pic_CXX"; then
12439
12440 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12441 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12442 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12443   echo $ECHO_N "(cached) $ECHO_C" >&6
12444 else
12445   lt_prog_compiler_pic_works_CXX=no
12446   ac_outfile=conftest.$ac_objext
12447    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12448    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12449    # Insert the option either (1) after the last *FLAGS variable, or
12450    # (2) before a word containing "conftest.", or (3) at the end.
12451    # Note that $ac_compile itself does not contain backslashes and begins
12452    # with a dollar sign (not a hyphen), so the echo should work correctly.
12453    # The option is referenced via a variable to avoid confusing sed.
12454    lt_compile=`echo "$ac_compile" | $SED \
12455    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12456    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12457    -e 's:$: $lt_compiler_flag:'`
12458    (eval echo "\"\$as_me:12458: $lt_compile\"" >&5)
12459    (eval "$lt_compile" 2>conftest.err)
12460    ac_status=$?
12461    cat conftest.err >&5
12462    echo "$as_me:12462: \$? = $ac_status" >&5
12463    if (exit $ac_status) && test -s "$ac_outfile"; then
12464      # The compiler can only warn and ignore the option if not recognized
12465      # So say no if there are warnings other than the usual output.
12466      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12467      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12468      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12469        lt_prog_compiler_pic_works_CXX=yes
12470      fi
12471    fi
12472    $rm conftest*
12473
12474 fi
12475 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12476 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12477
12478 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12479     case $lt_prog_compiler_pic_CXX in
12480      "" | " "*) ;;
12481      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12482      esac
12483 else
12484     lt_prog_compiler_pic_CXX=
12485      lt_prog_compiler_can_build_shared_CXX=no
12486 fi
12487
12488 fi
12489 case $host_os in
12490   # For platforms which do not support PIC, -DPIC is meaningless:
12491   *djgpp*)
12492     lt_prog_compiler_pic_CXX=
12493     ;;
12494   *)
12495     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12496     ;;
12497 esac
12498
12499 #
12500 # Check to make sure the static flag actually works.
12501 #
12502 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12503 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12504 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12505 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12506   echo $ECHO_N "(cached) $ECHO_C" >&6
12507 else
12508   lt_prog_compiler_static_works_CXX=no
12509    save_LDFLAGS="$LDFLAGS"
12510    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12511    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12512    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12513      # The linker can only warn and ignore the option if not recognized
12514      # So say no if there are warnings
12515      if test -s conftest.err; then
12516        # Append any errors to the config.log.
12517        cat conftest.err 1>&5
12518        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12519        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12520        if diff conftest.exp conftest.er2 >/dev/null; then
12521          lt_prog_compiler_static_works_CXX=yes
12522        fi
12523      else
12524        lt_prog_compiler_static_works_CXX=yes
12525      fi
12526    fi
12527    $rm conftest*
12528    LDFLAGS="$save_LDFLAGS"
12529
12530 fi
12531 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12532 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12533
12534 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12535     :
12536 else
12537     lt_prog_compiler_static_CXX=
12538 fi
12539
12540
12541 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12542 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12543 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12544   echo $ECHO_N "(cached) $ECHO_C" >&6
12545 else
12546   lt_cv_prog_compiler_c_o_CXX=no
12547    $rm -r conftest 2>/dev/null
12548    mkdir conftest
12549    cd conftest
12550    mkdir out
12551    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12552
12553    lt_compiler_flag="-o out/conftest2.$ac_objext"
12554    # Insert the option either (1) after the last *FLAGS variable, or
12555    # (2) before a word containing "conftest.", or (3) at the end.
12556    # Note that $ac_compile itself does not contain backslashes and begins
12557    # with a dollar sign (not a hyphen), so the echo should work correctly.
12558    lt_compile=`echo "$ac_compile" | $SED \
12559    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12560    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12561    -e 's:$: $lt_compiler_flag:'`
12562    (eval echo "\"\$as_me:12562: $lt_compile\"" >&5)
12563    (eval "$lt_compile" 2>out/conftest.err)
12564    ac_status=$?
12565    cat out/conftest.err >&5
12566    echo "$as_me:12566: \$? = $ac_status" >&5
12567    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12568    then
12569      # The compiler can only warn and ignore the option if not recognized
12570      # So say no if there are warnings
12571      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12572      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12573      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12574        lt_cv_prog_compiler_c_o_CXX=yes
12575      fi
12576    fi
12577    chmod u+w . 2>&5
12578    $rm conftest*
12579    # SGI C++ compiler will create directory out/ii_files/ for
12580    # template instantiation
12581    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12582    $rm out/* && rmdir out
12583    cd ..
12584    rmdir conftest
12585    $rm conftest*
12586
12587 fi
12588 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12589 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12590
12591
12592 hard_links="nottested"
12593 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12594   # do not overwrite the value of need_locks provided by the user
12595   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12596 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12597   hard_links=yes
12598   $rm conftest*
12599   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12600   touch conftest.a
12601   ln conftest.a conftest.b 2>&5 || hard_links=no
12602   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12603   { echo "$as_me:$LINENO: result: $hard_links" >&5
12604 echo "${ECHO_T}$hard_links" >&6; }
12605   if test "$hard_links" = no; then
12606     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12607 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12608     need_locks=warn
12609   fi
12610 else
12611   need_locks=no
12612 fi
12613
12614 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12615 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12616
12617   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12618   case $host_os in
12619   aix4* | aix5*)
12620     # If we're using GNU nm, then we don't want the "-C" option.
12621     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12622     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12623       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'
12624     else
12625       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'
12626     fi
12627     ;;
12628   pw32*)
12629     export_symbols_cmds_CXX="$ltdll_cmds"
12630   ;;
12631   cygwin* | mingw*)
12632     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'
12633   ;;
12634   linux* | k*bsd*-gnu)
12635     link_all_deplibs_CXX=no
12636   ;;
12637   *)
12638     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12639   ;;
12640   esac
12641
12642 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12643 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12644 test "$ld_shlibs_CXX" = no && can_build_shared=no
12645
12646 #
12647 # Do we need to explicitly link libc?
12648 #
12649 case "x$archive_cmds_need_lc_CXX" in
12650 x|xyes)
12651   # Assume -lc should be added
12652   archive_cmds_need_lc_CXX=yes
12653
12654   if test "$enable_shared" = yes && test "$GCC" = yes; then
12655     case $archive_cmds_CXX in
12656     *'~'*)
12657       # FIXME: we may have to deal with multi-command sequences.
12658       ;;
12659     '$CC '*)
12660       # Test whether the compiler implicitly links with -lc since on some
12661       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12662       # to ld, don't add -lc before -lgcc.
12663       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12664 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12665       $rm conftest*
12666       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12667
12668       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12669   (eval $ac_compile) 2>&5
12670   ac_status=$?
12671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672   (exit $ac_status); } 2>conftest.err; then
12673         soname=conftest
12674         lib=conftest
12675         libobjs=conftest.$ac_objext
12676         deplibs=
12677         wl=$lt_prog_compiler_wl_CXX
12678         pic_flag=$lt_prog_compiler_pic_CXX
12679         compiler_flags=-v
12680         linker_flags=-v
12681         verstring=
12682         output_objdir=.
12683         libname=conftest
12684         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12685         allow_undefined_flag_CXX=
12686         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12687   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12688   ac_status=$?
12689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690   (exit $ac_status); }
12691         then
12692           archive_cmds_need_lc_CXX=no
12693         else
12694           archive_cmds_need_lc_CXX=yes
12695         fi
12696         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12697       else
12698         cat conftest.err 1>&5
12699       fi
12700       $rm conftest*
12701       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12702 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12703       ;;
12704     esac
12705   fi
12706   ;;
12707 esac
12708
12709 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12710 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12711 library_names_spec=
12712 libname_spec='lib$name'
12713 soname_spec=
12714 shrext_cmds=".so"
12715 postinstall_cmds=
12716 postuninstall_cmds=
12717 finish_cmds=
12718 finish_eval=
12719 shlibpath_var=
12720 shlibpath_overrides_runpath=unknown
12721 version_type=none
12722 dynamic_linker="$host_os ld.so"
12723 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12724 if test "$GCC" = yes; then
12725   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12726   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12727     # if the path contains ";" then we assume it to be the separator
12728     # otherwise default to the standard path separator (i.e. ":") - it is
12729     # assumed that no part of a normal pathname contains ";" but that should
12730     # okay in the real world where ";" in dirpaths is itself problematic.
12731     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12732   else
12733     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12734   fi
12735 else
12736   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12737 fi
12738 need_lib_prefix=unknown
12739 hardcode_into_libs=no
12740
12741 # when you set need_version to no, make sure it does not cause -set_version
12742 # flags to be left without arguments
12743 need_version=unknown
12744
12745 case $host_os in
12746 aix3*)
12747   version_type=linux
12748   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12749   shlibpath_var=LIBPATH
12750
12751   # AIX 3 has no versioning support, so we append a major version to the name.
12752   soname_spec='${libname}${release}${shared_ext}$major'
12753   ;;
12754
12755 aix4* | aix5*)
12756   version_type=linux
12757   need_lib_prefix=no
12758   need_version=no
12759   hardcode_into_libs=yes
12760   if test "$host_cpu" = ia64; then
12761     # AIX 5 supports IA64
12762     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12763     shlibpath_var=LD_LIBRARY_PATH
12764   else
12765     # With GCC up to 2.95.x, collect2 would create an import file
12766     # for dependence libraries.  The import file would start with
12767     # the line `#! .'.  This would cause the generated library to
12768     # depend on `.', always an invalid library.  This was fixed in
12769     # development snapshots of GCC prior to 3.0.
12770     case $host_os in
12771       aix4 | aix4.[01] | aix4.[01].*)
12772       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12773            echo ' yes '
12774            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12775         :
12776       else
12777         can_build_shared=no
12778       fi
12779       ;;
12780     esac
12781     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12782     # soname into executable. Probably we can add versioning support to
12783     # collect2, so additional links can be useful in future.
12784     if test "$aix_use_runtimelinking" = yes; then
12785       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12786       # instead of lib<name>.a to let people know that these are not
12787       # typical AIX shared libraries.
12788       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12789     else
12790       # We preserve .a as extension for shared libraries through AIX4.2
12791       # and later when we are not doing run time linking.
12792       library_names_spec='${libname}${release}.a $libname.a'
12793       soname_spec='${libname}${release}${shared_ext}$major'
12794     fi
12795     shlibpath_var=LIBPATH
12796   fi
12797   ;;
12798
12799 amigaos*)
12800   library_names_spec='$libname.ixlibrary $libname.a'
12801   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12802   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'
12803   ;;
12804
12805 beos*)
12806   library_names_spec='${libname}${shared_ext}'
12807   dynamic_linker="$host_os ld.so"
12808   shlibpath_var=LIBRARY_PATH
12809   ;;
12810
12811 bsdi[45]*)
12812   version_type=linux
12813   need_version=no
12814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12815   soname_spec='${libname}${release}${shared_ext}$major'
12816   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12817   shlibpath_var=LD_LIBRARY_PATH
12818   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12819   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12820   # the default ld.so.conf also contains /usr/contrib/lib and
12821   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12822   # libtool to hard-code these into programs
12823   ;;
12824
12825 cygwin* | mingw* | pw32*)
12826   version_type=windows
12827   shrext_cmds=".dll"
12828   need_version=no
12829   need_lib_prefix=no
12830
12831   case $GCC,$host_os in
12832   yes,cygwin* | yes,mingw* | yes,pw32*)
12833     library_names_spec='$libname.dll.a'
12834     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12835     postinstall_cmds='base_file=`basename \${file}`~
12836       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12837       dldir=$destdir/`dirname \$dlpath`~
12838       test -d \$dldir || mkdir -p \$dldir~
12839       $install_prog $dir/$dlname \$dldir/$dlname~
12840       chmod a+x \$dldir/$dlname'
12841     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12842       dlpath=$dir/\$dldll~
12843        $rm \$dlpath'
12844     shlibpath_overrides_runpath=yes
12845
12846     case $host_os in
12847     cygwin*)
12848       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12849       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12850       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12851       ;;
12852     mingw*)
12853       # MinGW DLLs use traditional 'lib' prefix
12854       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12855       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12856       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12857         # It is most probably a Windows format PATH printed by
12858         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12859         # path with ; separators, and with drive letters. We can handle the
12860         # drive letters (cygwin fileutils understands them), so leave them,
12861         # especially as we might pass files found there to a mingw objdump,
12862         # which wouldn't understand a cygwinified path. Ahh.
12863         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12864       else
12865         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12866       fi
12867       ;;
12868     pw32*)
12869       # pw32 DLLs use 'pw' prefix rather than 'lib'
12870       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12871       ;;
12872     esac
12873     ;;
12874
12875   *)
12876     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12877     ;;
12878   esac
12879   dynamic_linker='Win32 ld.exe'
12880   # FIXME: first we should search . and the directory the executable is in
12881   shlibpath_var=PATH
12882   ;;
12883
12884 darwin* | rhapsody*)
12885   dynamic_linker="$host_os dyld"
12886   version_type=darwin
12887   need_lib_prefix=no
12888   need_version=no
12889   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12890   soname_spec='${libname}${release}${major}$shared_ext'
12891   shlibpath_overrides_runpath=yes
12892   shlibpath_var=DYLD_LIBRARY_PATH
12893   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12894   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12895   if test "$GCC" = yes; then
12896     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"`
12897   else
12898     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12899   fi
12900   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12901   ;;
12902
12903 dgux*)
12904   version_type=linux
12905   need_lib_prefix=no
12906   need_version=no
12907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12908   soname_spec='${libname}${release}${shared_ext}$major'
12909   shlibpath_var=LD_LIBRARY_PATH
12910   ;;
12911
12912 freebsd1*)
12913   dynamic_linker=no
12914   ;;
12915
12916 freebsd* | dragonfly*)
12917   # DragonFly does not have aout.  When/if they implement a new
12918   # versioning mechanism, adjust this.
12919   if test -x /usr/bin/objformat; then
12920     objformat=`/usr/bin/objformat`
12921   else
12922     case $host_os in
12923     freebsd[123]*) objformat=aout ;;
12924     *) objformat=elf ;;
12925     esac
12926   fi
12927   version_type=freebsd-$objformat
12928   case $version_type in
12929     freebsd-elf*)
12930       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12931       need_version=no
12932       need_lib_prefix=no
12933       ;;
12934     freebsd-*)
12935       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12936       need_version=yes
12937       ;;
12938   esac
12939   shlibpath_var=LD_LIBRARY_PATH
12940   case $host_os in
12941   freebsd2*)
12942     shlibpath_overrides_runpath=yes
12943     ;;
12944   freebsd3.[01]* | freebsdelf3.[01]*)
12945     shlibpath_overrides_runpath=yes
12946     hardcode_into_libs=yes
12947     ;;
12948   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12949   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12950     shlibpath_overrides_runpath=no
12951     hardcode_into_libs=yes
12952     ;;
12953   freebsd*) # from 4.6 on
12954     shlibpath_overrides_runpath=yes
12955     hardcode_into_libs=yes
12956     ;;
12957   esac
12958   ;;
12959
12960 gnu*)
12961   version_type=linux
12962   need_lib_prefix=no
12963   need_version=no
12964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12965   soname_spec='${libname}${release}${shared_ext}$major'
12966   shlibpath_var=LD_LIBRARY_PATH
12967   hardcode_into_libs=yes
12968   ;;
12969
12970 hpux9* | hpux10* | hpux11*)
12971   # Give a soname corresponding to the major version so that dld.sl refuses to
12972   # link against other versions.
12973   version_type=sunos
12974   need_lib_prefix=no
12975   need_version=no
12976   case $host_cpu in
12977   ia64*)
12978     shrext_cmds='.so'
12979     hardcode_into_libs=yes
12980     dynamic_linker="$host_os dld.so"
12981     shlibpath_var=LD_LIBRARY_PATH
12982     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12983     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12984     soname_spec='${libname}${release}${shared_ext}$major'
12985     if test "X$HPUX_IA64_MODE" = X32; then
12986       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12987     else
12988       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12989     fi
12990     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12991     ;;
12992    hppa*64*)
12993      shrext_cmds='.sl'
12994      hardcode_into_libs=yes
12995      dynamic_linker="$host_os dld.sl"
12996      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12997      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12998      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12999      soname_spec='${libname}${release}${shared_ext}$major'
13000      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13001      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13002      ;;
13003    *)
13004     shrext_cmds='.sl'
13005     dynamic_linker="$host_os dld.sl"
13006     shlibpath_var=SHLIB_PATH
13007     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13008     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13009     soname_spec='${libname}${release}${shared_ext}$major'
13010     ;;
13011   esac
13012   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13013   postinstall_cmds='chmod 555 $lib'
13014   ;;
13015
13016 interix3*)
13017   version_type=linux
13018   need_lib_prefix=no
13019   need_version=no
13020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13021   soname_spec='${libname}${release}${shared_ext}$major'
13022   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13023   shlibpath_var=LD_LIBRARY_PATH
13024   shlibpath_overrides_runpath=no
13025   hardcode_into_libs=yes
13026   ;;
13027
13028 irix5* | irix6* | nonstopux*)
13029   case $host_os in
13030     nonstopux*) version_type=nonstopux ;;
13031     *)
13032         if test "$lt_cv_prog_gnu_ld" = yes; then
13033                 version_type=linux
13034         else
13035                 version_type=irix
13036         fi ;;
13037   esac
13038   need_lib_prefix=no
13039   need_version=no
13040   soname_spec='${libname}${release}${shared_ext}$major'
13041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13042   case $host_os in
13043   irix5* | nonstopux*)
13044     libsuff= shlibsuff=
13045     ;;
13046   *)
13047     case $LD in # libtool.m4 will add one of these switches to LD
13048     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13049       libsuff= shlibsuff= libmagic=32-bit;;
13050     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13051       libsuff=32 shlibsuff=N32 libmagic=N32;;
13052     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13053       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13054     *) libsuff= shlibsuff= libmagic=never-match;;
13055     esac
13056     ;;
13057   esac
13058   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13059   shlibpath_overrides_runpath=no
13060   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13061   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13062   hardcode_into_libs=yes
13063   ;;
13064
13065 # No shared lib support for Linux oldld, aout, or coff.
13066 linux*oldld* | linux*aout* | linux*coff*)
13067   dynamic_linker=no
13068   ;;
13069
13070 # This must be Linux ELF.
13071 linux* | k*bsd*-gnu)
13072   version_type=linux
13073   need_lib_prefix=no
13074   need_version=no
13075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13076   soname_spec='${libname}${release}${shared_ext}$major'
13077   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13078   shlibpath_var=LD_LIBRARY_PATH
13079   shlibpath_overrides_runpath=no
13080   # This implies no fast_install, which is unacceptable.
13081   # Some rework will be needed to allow for fast_install
13082   # before this can be enabled.
13083   hardcode_into_libs=yes
13084
13085   # Append ld.so.conf contents to the search path
13086   if test -f /etc/ld.so.conf; then
13087     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' ' '`
13088     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13089   fi
13090
13091   # We used to test for /lib/ld.so.1 and disable shared libraries on
13092   # powerpc, because MkLinux only supported shared libraries with the
13093   # GNU dynamic linker.  Since this was broken with cross compilers,
13094   # most powerpc-linux boxes support dynamic linking these days and
13095   # people can always --disable-shared, the test was removed, and we
13096   # assume the GNU/Linux dynamic linker is in use.
13097   dynamic_linker='GNU/Linux ld.so'
13098   ;;
13099
13100 netbsdelf*-gnu)
13101   version_type=linux
13102   need_lib_prefix=no
13103   need_version=no
13104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13105   soname_spec='${libname}${release}${shared_ext}$major'
13106   shlibpath_var=LD_LIBRARY_PATH
13107   shlibpath_overrides_runpath=no
13108   hardcode_into_libs=yes
13109   dynamic_linker='NetBSD ld.elf_so'
13110   ;;
13111
13112 netbsd*)
13113   version_type=sunos
13114   need_lib_prefix=no
13115   need_version=no
13116   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13117     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13118     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13119     dynamic_linker='NetBSD (a.out) ld.so'
13120   else
13121     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13122     soname_spec='${libname}${release}${shared_ext}$major'
13123     dynamic_linker='NetBSD ld.elf_so'
13124   fi
13125   shlibpath_var=LD_LIBRARY_PATH
13126   shlibpath_overrides_runpath=yes
13127   hardcode_into_libs=yes
13128   ;;
13129
13130 newsos6)
13131   version_type=linux
13132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13133   shlibpath_var=LD_LIBRARY_PATH
13134   shlibpath_overrides_runpath=yes
13135   ;;
13136
13137 nto-qnx*)
13138   version_type=linux
13139   need_lib_prefix=no
13140   need_version=no
13141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13142   soname_spec='${libname}${release}${shared_ext}$major'
13143   shlibpath_var=LD_LIBRARY_PATH
13144   shlibpath_overrides_runpath=yes
13145   ;;
13146
13147 openbsd*)
13148   version_type=sunos
13149   sys_lib_dlsearch_path_spec="/usr/lib"
13150   need_lib_prefix=no
13151   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13152   case $host_os in
13153     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13154     *)                         need_version=no  ;;
13155   esac
13156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13157   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13158   shlibpath_var=LD_LIBRARY_PATH
13159   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13160     case $host_os in
13161       openbsd2.[89] | openbsd2.[89].*)
13162         shlibpath_overrides_runpath=no
13163         ;;
13164       *)
13165         shlibpath_overrides_runpath=yes
13166         ;;
13167       esac
13168   else
13169     shlibpath_overrides_runpath=yes
13170   fi
13171   ;;
13172
13173 os2*)
13174   libname_spec='$name'
13175   shrext_cmds=".dll"
13176   need_lib_prefix=no
13177   library_names_spec='$libname${shared_ext} $libname.a'
13178   dynamic_linker='OS/2 ld.exe'
13179   shlibpath_var=LIBPATH
13180   ;;
13181
13182 osf3* | osf4* | osf5*)
13183   version_type=osf
13184   need_lib_prefix=no
13185   need_version=no
13186   soname_spec='${libname}${release}${shared_ext}$major'
13187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13188   shlibpath_var=LD_LIBRARY_PATH
13189   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13190   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13191   ;;
13192
13193 solaris*)
13194   version_type=linux
13195   need_lib_prefix=no
13196   need_version=no
13197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13198   soname_spec='${libname}${release}${shared_ext}$major'
13199   shlibpath_var=LD_LIBRARY_PATH
13200   shlibpath_overrides_runpath=yes
13201   hardcode_into_libs=yes
13202   # ldd complains unless libraries are executable
13203   postinstall_cmds='chmod +x $lib'
13204   ;;
13205
13206 sunos4*)
13207   version_type=sunos
13208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13209   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13210   shlibpath_var=LD_LIBRARY_PATH
13211   shlibpath_overrides_runpath=yes
13212   if test "$with_gnu_ld" = yes; then
13213     need_lib_prefix=no
13214   fi
13215   need_version=yes
13216   ;;
13217
13218 sysv4 | sysv4.3*)
13219   version_type=linux
13220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13221   soname_spec='${libname}${release}${shared_ext}$major'
13222   shlibpath_var=LD_LIBRARY_PATH
13223   case $host_vendor in
13224     sni)
13225       shlibpath_overrides_runpath=no
13226       need_lib_prefix=no
13227       export_dynamic_flag_spec='${wl}-Blargedynsym'
13228       runpath_var=LD_RUN_PATH
13229       ;;
13230     siemens)
13231       need_lib_prefix=no
13232       ;;
13233     motorola)
13234       need_lib_prefix=no
13235       need_version=no
13236       shlibpath_overrides_runpath=no
13237       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13238       ;;
13239   esac
13240   ;;
13241
13242 sysv4*MP*)
13243   if test -d /usr/nec ;then
13244     version_type=linux
13245     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13246     soname_spec='$libname${shared_ext}.$major'
13247     shlibpath_var=LD_LIBRARY_PATH
13248   fi
13249   ;;
13250
13251 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13252   version_type=freebsd-elf
13253   need_lib_prefix=no
13254   need_version=no
13255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13256   soname_spec='${libname}${release}${shared_ext}$major'
13257   shlibpath_var=LD_LIBRARY_PATH
13258   hardcode_into_libs=yes
13259   if test "$with_gnu_ld" = yes; then
13260     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13261     shlibpath_overrides_runpath=no
13262   else
13263     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13264     shlibpath_overrides_runpath=yes
13265     case $host_os in
13266       sco3.2v5*)
13267         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13268         ;;
13269     esac
13270   fi
13271   sys_lib_dlsearch_path_spec='/usr/lib'
13272   ;;
13273
13274 uts4*)
13275   version_type=linux
13276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13277   soname_spec='${libname}${release}${shared_ext}$major'
13278   shlibpath_var=LD_LIBRARY_PATH
13279   ;;
13280
13281 *)
13282   dynamic_linker=no
13283   ;;
13284 esac
13285 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13286 echo "${ECHO_T}$dynamic_linker" >&6; }
13287 test "$dynamic_linker" = no && can_build_shared=no
13288
13289 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13290 if test "$GCC" = yes; then
13291   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13292 fi
13293
13294 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13295 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13296 hardcode_action_CXX=
13297 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13298    test -n "$runpath_var_CXX" || \
13299    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13300
13301   # We can hardcode non-existant directories.
13302   if test "$hardcode_direct_CXX" != no &&
13303      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13304      # have to relink, otherwise we might link with an installed library
13305      # when we should be linking with a yet-to-be-installed one
13306      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13307      test "$hardcode_minus_L_CXX" != no; then
13308     # Linking always hardcodes the temporary library directory.
13309     hardcode_action_CXX=relink
13310   else
13311     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13312     hardcode_action_CXX=immediate
13313   fi
13314 else
13315   # We cannot hardcode anything, or else we can only hardcode existing
13316   # directories.
13317   hardcode_action_CXX=unsupported
13318 fi
13319 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13320 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13321
13322 if test "$hardcode_action_CXX" = relink; then
13323   # Fast installation is not supported
13324   enable_fast_install=no
13325 elif test "$shlibpath_overrides_runpath" = yes ||
13326      test "$enable_shared" = no; then
13327   # Fast installation is not necessary
13328   enable_fast_install=needless
13329 fi
13330
13331
13332 # The else clause should only fire when bootstrapping the
13333 # libtool distribution, otherwise you forgot to ship ltmain.sh
13334 # with your package, and you will get complaints that there are
13335 # no rules to generate ltmain.sh.
13336 if test -f "$ltmain"; then
13337   # See if we are running on zsh, and set the options which allow our commands through
13338   # without removal of \ escapes.
13339   if test -n "${ZSH_VERSION+set}" ; then
13340     setopt NO_GLOB_SUBST
13341   fi
13342   # Now quote all the things that may contain metacharacters while being
13343   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13344   # variables and quote the copies for generation of the libtool script.
13345   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13346     SED SHELL STRIP \
13347     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13348     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13349     deplibs_check_method reload_flag reload_cmds need_locks \
13350     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13351     lt_cv_sys_global_symbol_to_c_name_address \
13352     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13353     old_postinstall_cmds old_postuninstall_cmds \
13354     compiler_CXX \
13355     CC_CXX \
13356     LD_CXX \
13357     lt_prog_compiler_wl_CXX \
13358     lt_prog_compiler_pic_CXX \
13359     lt_prog_compiler_static_CXX \
13360     lt_prog_compiler_no_builtin_flag_CXX \
13361     export_dynamic_flag_spec_CXX \
13362     thread_safe_flag_spec_CXX \
13363     whole_archive_flag_spec_CXX \
13364     enable_shared_with_static_runtimes_CXX \
13365     old_archive_cmds_CXX \
13366     old_archive_from_new_cmds_CXX \
13367     predep_objects_CXX \
13368     postdep_objects_CXX \
13369     predeps_CXX \
13370     postdeps_CXX \
13371     compiler_lib_search_path_CXX \
13372     archive_cmds_CXX \
13373     archive_expsym_cmds_CXX \
13374     postinstall_cmds_CXX \
13375     postuninstall_cmds_CXX \
13376     old_archive_from_expsyms_cmds_CXX \
13377     allow_undefined_flag_CXX \
13378     no_undefined_flag_CXX \
13379     export_symbols_cmds_CXX \
13380     hardcode_libdir_flag_spec_CXX \
13381     hardcode_libdir_flag_spec_ld_CXX \
13382     hardcode_libdir_separator_CXX \
13383     hardcode_automatic_CXX \
13384     module_cmds_CXX \
13385     module_expsym_cmds_CXX \
13386     lt_cv_prog_compiler_c_o_CXX \
13387     exclude_expsyms_CXX \
13388     include_expsyms_CXX; do
13389
13390     case $var in
13391     old_archive_cmds_CXX | \
13392     old_archive_from_new_cmds_CXX | \
13393     archive_cmds_CXX | \
13394     archive_expsym_cmds_CXX | \
13395     module_cmds_CXX | \
13396     module_expsym_cmds_CXX | \
13397     old_archive_from_expsyms_cmds_CXX | \
13398     export_symbols_cmds_CXX | \
13399     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13400     postinstall_cmds | postuninstall_cmds | \
13401     old_postinstall_cmds | old_postuninstall_cmds | \
13402     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13403       # Double-quote double-evaled strings.
13404       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13405       ;;
13406     *)
13407       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13408       ;;
13409     esac
13410   done
13411
13412   case $lt_echo in
13413   *'\$0 --fallback-echo"')
13414     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13415     ;;
13416   esac
13417
13418 cfgfile="$ofile"
13419
13420   cat <<__EOF__ >> "$cfgfile"
13421 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13422
13423 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13424
13425 # Shell to use when invoking shell scripts.
13426 SHELL=$lt_SHELL
13427
13428 # Whether or not to build shared libraries.
13429 build_libtool_libs=$enable_shared
13430
13431 # Whether or not to build static libraries.
13432 build_old_libs=$enable_static
13433
13434 # Whether or not to add -lc for building shared libraries.
13435 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13436
13437 # Whether or not to disallow shared libs when runtime libs are static
13438 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13439
13440 # Whether or not to optimize for fast installation.
13441 fast_install=$enable_fast_install
13442
13443 # The host system.
13444 host_alias=$host_alias
13445 host=$host
13446 host_os=$host_os
13447
13448 # The build system.
13449 build_alias=$build_alias
13450 build=$build
13451 build_os=$build_os
13452
13453 # An echo program that does not interpret backslashes.
13454 echo=$lt_echo
13455
13456 # The archiver.
13457 AR=$lt_AR
13458 AR_FLAGS=$lt_AR_FLAGS
13459
13460 # A C compiler.
13461 LTCC=$lt_LTCC
13462
13463 # LTCC compiler flags.
13464 LTCFLAGS=$lt_LTCFLAGS
13465
13466 # A language-specific compiler.
13467 CC=$lt_compiler_CXX
13468
13469 # Is the compiler the GNU C compiler?
13470 with_gcc=$GCC_CXX
13471
13472 # An ERE matcher.
13473 EGREP=$lt_EGREP
13474
13475 # The linker used to build libraries.
13476 LD=$lt_LD_CXX
13477
13478 # Whether we need hard or soft links.
13479 LN_S=$lt_LN_S
13480
13481 # A BSD-compatible nm program.
13482 NM=$lt_NM
13483
13484 # A symbol stripping program
13485 STRIP=$lt_STRIP
13486
13487 # Used to examine libraries when file_magic_cmd begins "file"
13488 MAGIC_CMD=$MAGIC_CMD
13489
13490 # Used on cygwin: DLL creation program.
13491 DLLTOOL="$DLLTOOL"
13492
13493 # Used on cygwin: object dumper.
13494 OBJDUMP="$OBJDUMP"
13495
13496 # Used on cygwin: assembler.
13497 AS="$AS"
13498
13499 # The name of the directory that contains temporary libtool files.
13500 objdir=$objdir
13501
13502 # How to create reloadable object files.
13503 reload_flag=$lt_reload_flag
13504 reload_cmds=$lt_reload_cmds
13505
13506 # How to pass a linker flag through the compiler.
13507 wl=$lt_lt_prog_compiler_wl_CXX
13508
13509 # Object file suffix (normally "o").
13510 objext="$ac_objext"
13511
13512 # Old archive suffix (normally "a").
13513 libext="$libext"
13514
13515 # Shared library suffix (normally ".so").
13516 shrext_cmds='$shrext_cmds'
13517
13518 # Executable file suffix (normally "").
13519 exeext="$exeext"
13520
13521 # Additional compiler flags for building library objects.
13522 pic_flag=$lt_lt_prog_compiler_pic_CXX
13523 pic_mode=$pic_mode
13524
13525 # What is the maximum length of a command?
13526 max_cmd_len=$lt_cv_sys_max_cmd_len
13527
13528 # Does compiler simultaneously support -c and -o options?
13529 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13530
13531 # Must we lock files when doing compilation?
13532 need_locks=$lt_need_locks
13533
13534 # Do we need the lib prefix for modules?
13535 need_lib_prefix=$need_lib_prefix
13536
13537 # Do we need a version for libraries?
13538 need_version=$need_version
13539
13540 # Whether dlopen is supported.
13541 dlopen_support=$enable_dlopen
13542
13543 # Whether dlopen of programs is supported.
13544 dlopen_self=$enable_dlopen_self
13545
13546 # Whether dlopen of statically linked programs is supported.
13547 dlopen_self_static=$enable_dlopen_self_static
13548
13549 # Compiler flag to prevent dynamic linking.
13550 link_static_flag=$lt_lt_prog_compiler_static_CXX
13551
13552 # Compiler flag to turn off builtin functions.
13553 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13554
13555 # Compiler flag to allow reflexive dlopens.
13556 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13557
13558 # Compiler flag to generate shared objects directly from archives.
13559 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13560
13561 # Compiler flag to generate thread-safe objects.
13562 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13563
13564 # Library versioning type.
13565 version_type=$version_type
13566
13567 # Format of library name prefix.
13568 libname_spec=$lt_libname_spec
13569
13570 # List of archive names.  First name is the real one, the rest are links.
13571 # The last name is the one that the linker finds with -lNAME.
13572 library_names_spec=$lt_library_names_spec
13573
13574 # The coded name of the library, if different from the real name.
13575 soname_spec=$lt_soname_spec
13576
13577 # Commands used to build and install an old-style archive.
13578 RANLIB=$lt_RANLIB
13579 old_archive_cmds=$lt_old_archive_cmds_CXX
13580 old_postinstall_cmds=$lt_old_postinstall_cmds
13581 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13582
13583 # Create an old-style archive from a shared archive.
13584 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13585
13586 # Create a temporary old-style archive to link instead of a shared archive.
13587 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13588
13589 # Commands used to build and install a shared archive.
13590 archive_cmds=$lt_archive_cmds_CXX
13591 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13592 postinstall_cmds=$lt_postinstall_cmds
13593 postuninstall_cmds=$lt_postuninstall_cmds
13594
13595 # Commands used to build a loadable module (assumed same as above if empty)
13596 module_cmds=$lt_module_cmds_CXX
13597 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13598
13599 # Commands to strip libraries.
13600 old_striplib=$lt_old_striplib
13601 striplib=$lt_striplib
13602
13603 # Dependencies to place before the objects being linked to create a
13604 # shared library.
13605 predep_objects=$lt_predep_objects_CXX
13606
13607 # Dependencies to place after the objects being linked to create a
13608 # shared library.
13609 postdep_objects=$lt_postdep_objects_CXX
13610
13611 # Dependencies to place before the objects being linked to create a
13612 # shared library.
13613 predeps=$lt_predeps_CXX
13614
13615 # Dependencies to place after the objects being linked to create a
13616 # shared library.
13617 postdeps=$lt_postdeps_CXX
13618
13619 # The library search path used internally by the compiler when linking
13620 # a shared library.
13621 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13622
13623 # Method to check whether dependent libraries are shared objects.
13624 deplibs_check_method=$lt_deplibs_check_method
13625
13626 # Command to use when deplibs_check_method == file_magic.
13627 file_magic_cmd=$lt_file_magic_cmd
13628
13629 # Flag that allows shared libraries with undefined symbols to be built.
13630 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13631
13632 # Flag that forces no undefined symbols.
13633 no_undefined_flag=$lt_no_undefined_flag_CXX
13634
13635 # Commands used to finish a libtool library installation in a directory.
13636 finish_cmds=$lt_finish_cmds
13637
13638 # Same as above, but a single script fragment to be evaled but not shown.
13639 finish_eval=$lt_finish_eval
13640
13641 # Take the output of nm and produce a listing of raw symbols and C names.
13642 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13643
13644 # Transform the output of nm in a proper C declaration
13645 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13646
13647 # Transform the output of nm in a C name address pair
13648 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13649
13650 # This is the shared library runtime path variable.
13651 runpath_var=$runpath_var
13652
13653 # This is the shared library path variable.
13654 shlibpath_var=$shlibpath_var
13655
13656 # Is shlibpath searched before the hard-coded library search path?
13657 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13658
13659 # How to hardcode a shared library path into an executable.
13660 hardcode_action=$hardcode_action_CXX
13661
13662 # Whether we should hardcode library paths into libraries.
13663 hardcode_into_libs=$hardcode_into_libs
13664
13665 # Flag to hardcode \$libdir into a binary during linking.
13666 # This must work even if \$libdir does not exist.
13667 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13668
13669 # If ld is used when linking, flag to hardcode \$libdir into
13670 # a binary during linking. This must work even if \$libdir does
13671 # not exist.
13672 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13673
13674 # Whether we need a single -rpath flag with a separated argument.
13675 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13676
13677 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13678 # resulting binary.
13679 hardcode_direct=$hardcode_direct_CXX
13680
13681 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13682 # resulting binary.
13683 hardcode_minus_L=$hardcode_minus_L_CXX
13684
13685 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13686 # the resulting binary.
13687 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13688
13689 # Set to yes if building a shared library automatically hardcodes DIR into the library
13690 # and all subsequent libraries and executables linked against it.
13691 hardcode_automatic=$hardcode_automatic_CXX
13692
13693 # Variables whose values should be saved in libtool wrapper scripts and
13694 # restored at relink time.
13695 variables_saved_for_relink="$variables_saved_for_relink"
13696
13697 # Whether libtool must link a program against all its dependency libraries.
13698 link_all_deplibs=$link_all_deplibs_CXX
13699
13700 # Compile-time system search path for libraries
13701 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13702
13703 # Run-time system search path for libraries
13704 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13705
13706 # Fix the shell variable \$srcfile for the compiler.
13707 fix_srcfile_path="$fix_srcfile_path_CXX"
13708
13709 # Set to yes if exported symbols are required.
13710 always_export_symbols=$always_export_symbols_CXX
13711
13712 # The commands to list exported symbols.
13713 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13714
13715 # The commands to extract the exported symbol list from a shared archive.
13716 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13717
13718 # Symbols that should not be listed in the preloaded symbols.
13719 exclude_expsyms=$lt_exclude_expsyms_CXX
13720
13721 # Symbols that must always be exported.
13722 include_expsyms=$lt_include_expsyms_CXX
13723
13724 # ### END LIBTOOL TAG CONFIG: $tagname
13725
13726 __EOF__
13727
13728
13729 else
13730   # If there is no Makefile yet, we rely on a make rule to execute
13731   # `config.status --recheck' to rerun these tests and create the
13732   # libtool script then.
13733   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13734   if test -f "$ltmain_in"; then
13735     test -f Makefile && make "$ltmain"
13736   fi
13737 fi
13738
13739
13740 ac_ext=c
13741 ac_cpp='$CPP $CPPFLAGS'
13742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13745
13746 CC=$lt_save_CC
13747 LDCXX=$LD
13748 LD=$lt_save_LD
13749 GCC=$lt_save_GCC
13750 with_gnu_ldcxx=$with_gnu_ld
13751 with_gnu_ld=$lt_save_with_gnu_ld
13752 lt_cv_path_LDCXX=$lt_cv_path_LD
13753 lt_cv_path_LD=$lt_save_path_LD
13754 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13755 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13756
13757         else
13758           tagname=""
13759         fi
13760         ;;
13761
13762       F77)
13763         if test -n "$F77" && test "X$F77" != "Xno"; then
13764
13765 ac_ext=f
13766 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13767 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13768 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13769
13770
13771 archive_cmds_need_lc_F77=no
13772 allow_undefined_flag_F77=
13773 always_export_symbols_F77=no
13774 archive_expsym_cmds_F77=
13775 export_dynamic_flag_spec_F77=
13776 hardcode_direct_F77=no
13777 hardcode_libdir_flag_spec_F77=
13778 hardcode_libdir_flag_spec_ld_F77=
13779 hardcode_libdir_separator_F77=
13780 hardcode_minus_L_F77=no
13781 hardcode_automatic_F77=no
13782 module_cmds_F77=
13783 module_expsym_cmds_F77=
13784 link_all_deplibs_F77=unknown
13785 old_archive_cmds_F77=$old_archive_cmds
13786 no_undefined_flag_F77=
13787 whole_archive_flag_spec_F77=
13788 enable_shared_with_static_runtimes_F77=no
13789
13790 # Source file extension for f77 test sources.
13791 ac_ext=f
13792
13793 # Object file extension for compiled f77 test sources.
13794 objext=o
13795 objext_F77=$objext
13796
13797 # Code to be used in simple compile tests
13798 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13799
13800 # Code to be used in simple link tests
13801 lt_simple_link_test_code="      program t\n      end\n"
13802
13803 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13804
13805 # If no C compiler was specified, use CC.
13806 LTCC=${LTCC-"$CC"}
13807
13808 # If no C compiler flags were specified, use CFLAGS.
13809 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13810
13811 # Allow CC to be a program name with arguments.
13812 compiler=$CC
13813
13814
13815 # save warnings/boilerplate of simple test code
13816 ac_outfile=conftest.$ac_objext
13817 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13818 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13819 _lt_compiler_boilerplate=`cat conftest.err`
13820 $rm conftest*
13821
13822 ac_outfile=conftest.$ac_objext
13823 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13824 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13825 _lt_linker_boilerplate=`cat conftest.err`
13826 $rm conftest*
13827
13828
13829 # Allow CC to be a program name with arguments.
13830 lt_save_CC="$CC"
13831 CC=${F77-"f77"}
13832 compiler=$CC
13833 compiler_F77=$CC
13834 for cc_temp in $compiler""; do
13835   case $cc_temp in
13836     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13837     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13838     \-*) ;;
13839     *) break;;
13840   esac
13841 done
13842 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13843
13844
13845 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13846 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13847 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13848 echo "${ECHO_T}$can_build_shared" >&6; }
13849
13850 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13851 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13852 test "$can_build_shared" = "no" && enable_shared=no
13853
13854 # On AIX, shared libraries and static libraries use the same namespace, and
13855 # are all built from PIC.
13856 case $host_os in
13857 aix3*)
13858   test "$enable_shared" = yes && enable_static=no
13859   if test -n "$RANLIB"; then
13860     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13861     postinstall_cmds='$RANLIB $lib'
13862   fi
13863   ;;
13864 aix4* | aix5*)
13865   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13866     test "$enable_shared" = yes && enable_static=no
13867   fi
13868   ;;
13869 esac
13870 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13871 echo "${ECHO_T}$enable_shared" >&6; }
13872
13873 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13874 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13875 # Make sure either enable_shared or enable_static is yes.
13876 test "$enable_shared" = yes || enable_static=yes
13877 { echo "$as_me:$LINENO: result: $enable_static" >&5
13878 echo "${ECHO_T}$enable_static" >&6; }
13879
13880 GCC_F77="$G77"
13881 LD_F77="$LD"
13882
13883 lt_prog_compiler_wl_F77=
13884 lt_prog_compiler_pic_F77=
13885 lt_prog_compiler_static_F77=
13886
13887 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13888 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13889
13890   if test "$GCC" = yes; then
13891     lt_prog_compiler_wl_F77='-Wl,'
13892     lt_prog_compiler_static_F77='-static'
13893
13894     case $host_os in
13895       aix*)
13896       # All AIX code is PIC.
13897       if test "$host_cpu" = ia64; then
13898         # AIX 5 now supports IA64 processor
13899         lt_prog_compiler_static_F77='-Bstatic'
13900       fi
13901       ;;
13902
13903     amigaos*)
13904       # FIXME: we need at least 68020 code to build shared libraries, but
13905       # adding the `-m68020' flag to GCC prevents building anything better,
13906       # like `-m68040'.
13907       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13908       ;;
13909
13910     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13911       # PIC is the default for these OSes.
13912       ;;
13913
13914     mingw* | pw32* | os2*)
13915       # This hack is so that the source file can tell whether it is being
13916       # built for inclusion in a dll (and should export symbols for example).
13917       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13918       ;;
13919
13920     darwin* | rhapsody*)
13921       # PIC is the default on this platform
13922       # Common symbols not allowed in MH_DYLIB files
13923       lt_prog_compiler_pic_F77='-fno-common'
13924       ;;
13925
13926     interix3*)
13927       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13928       # Instead, we relocate shared libraries at runtime.
13929       ;;
13930
13931     msdosdjgpp*)
13932       # Just because we use GCC doesn't mean we suddenly get shared libraries
13933       # on systems that don't support them.
13934       lt_prog_compiler_can_build_shared_F77=no
13935       enable_shared=no
13936       ;;
13937
13938     sysv4*MP*)
13939       if test -d /usr/nec; then
13940         lt_prog_compiler_pic_F77=-Kconform_pic
13941       fi
13942       ;;
13943
13944     hpux*)
13945       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13946       # not for PA HP-UX.
13947       case $host_cpu in
13948       hppa*64*|ia64*)
13949         # +Z the default
13950         ;;
13951       *)
13952         lt_prog_compiler_pic_F77='-fPIC'
13953         ;;
13954       esac
13955       ;;
13956
13957     *)
13958       lt_prog_compiler_pic_F77='-fPIC'
13959       ;;
13960     esac
13961   else
13962     # PORTME Check for flag to pass linker flags through the system compiler.
13963     case $host_os in
13964     aix*)
13965       lt_prog_compiler_wl_F77='-Wl,'
13966       if test "$host_cpu" = ia64; then
13967         # AIX 5 now supports IA64 processor
13968         lt_prog_compiler_static_F77='-Bstatic'
13969       else
13970         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13971       fi
13972       ;;
13973       darwin*)
13974         # PIC is the default on this platform
13975         # Common symbols not allowed in MH_DYLIB files
13976        case $cc_basename in
13977          xlc*)
13978          lt_prog_compiler_pic_F77='-qnocommon'
13979          lt_prog_compiler_wl_F77='-Wl,'
13980          ;;
13981        esac
13982        ;;
13983
13984     mingw* | pw32* | os2*)
13985       # This hack is so that the source file can tell whether it is being
13986       # built for inclusion in a dll (and should export symbols for example).
13987       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13988       ;;
13989
13990     hpux9* | hpux10* | hpux11*)
13991       lt_prog_compiler_wl_F77='-Wl,'
13992       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13993       # not for PA HP-UX.
13994       case $host_cpu in
13995       hppa*64*|ia64*)
13996         # +Z the default
13997         ;;
13998       *)
13999         lt_prog_compiler_pic_F77='+Z'
14000         ;;
14001       esac
14002       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14003       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14004       ;;
14005
14006     irix5* | irix6* | nonstopux*)
14007       lt_prog_compiler_wl_F77='-Wl,'
14008       # PIC (with -KPIC) is the default.
14009       lt_prog_compiler_static_F77='-non_shared'
14010       ;;
14011
14012     newsos6)
14013       lt_prog_compiler_pic_F77='-KPIC'
14014       lt_prog_compiler_static_F77='-Bstatic'
14015       ;;
14016
14017     linux* | k*bsd*-gnu)
14018       case $cc_basename in
14019       icc* | ecc*)
14020         lt_prog_compiler_wl_F77='-Wl,'
14021         lt_prog_compiler_pic_F77='-KPIC'
14022         lt_prog_compiler_static_F77='-static'
14023         ;;
14024       pgcc* | pgf77* | pgf90* | pgf95*)
14025         # Portland Group compilers (*not* the Pentium gcc compiler,
14026         # which looks to be a dead project)
14027         lt_prog_compiler_wl_F77='-Wl,'
14028         lt_prog_compiler_pic_F77='-fpic'
14029         lt_prog_compiler_static_F77='-Bstatic'
14030         ;;
14031       ccc*)
14032         lt_prog_compiler_wl_F77='-Wl,'
14033         # All Alpha code is PIC.
14034         lt_prog_compiler_static_F77='-non_shared'
14035         ;;
14036       esac
14037       ;;
14038
14039     osf3* | osf4* | osf5*)
14040       lt_prog_compiler_wl_F77='-Wl,'
14041       # All OSF/1 code is PIC.
14042       lt_prog_compiler_static_F77='-non_shared'
14043       ;;
14044
14045     solaris*)
14046       lt_prog_compiler_pic_F77='-KPIC'
14047       lt_prog_compiler_static_F77='-Bstatic'
14048       case $cc_basename in
14049       f77* | f90* | f95*)
14050         lt_prog_compiler_wl_F77='-Qoption ld ';;
14051       *)
14052         lt_prog_compiler_wl_F77='-Wl,';;
14053       esac
14054       ;;
14055
14056     sunos4*)
14057       lt_prog_compiler_wl_F77='-Qoption ld '
14058       lt_prog_compiler_pic_F77='-PIC'
14059       lt_prog_compiler_static_F77='-Bstatic'
14060       ;;
14061
14062     sysv4 | sysv4.2uw2* | sysv4.3*)
14063       lt_prog_compiler_wl_F77='-Wl,'
14064       lt_prog_compiler_pic_F77='-KPIC'
14065       lt_prog_compiler_static_F77='-Bstatic'
14066       ;;
14067
14068     sysv4*MP*)
14069       if test -d /usr/nec ;then
14070         lt_prog_compiler_pic_F77='-Kconform_pic'
14071         lt_prog_compiler_static_F77='-Bstatic'
14072       fi
14073       ;;
14074
14075     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14076       lt_prog_compiler_wl_F77='-Wl,'
14077       lt_prog_compiler_pic_F77='-KPIC'
14078       lt_prog_compiler_static_F77='-Bstatic'
14079       ;;
14080
14081     unicos*)
14082       lt_prog_compiler_wl_F77='-Wl,'
14083       lt_prog_compiler_can_build_shared_F77=no
14084       ;;
14085
14086     uts4*)
14087       lt_prog_compiler_pic_F77='-pic'
14088       lt_prog_compiler_static_F77='-Bstatic'
14089       ;;
14090
14091     *)
14092       lt_prog_compiler_can_build_shared_F77=no
14093       ;;
14094     esac
14095   fi
14096
14097 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14098 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14099
14100 #
14101 # Check to make sure the PIC flag actually works.
14102 #
14103 if test -n "$lt_prog_compiler_pic_F77"; then
14104
14105 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14106 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14107 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14108   echo $ECHO_N "(cached) $ECHO_C" >&6
14109 else
14110   lt_prog_compiler_pic_works_F77=no
14111   ac_outfile=conftest.$ac_objext
14112    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14113    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14114    # Insert the option either (1) after the last *FLAGS variable, or
14115    # (2) before a word containing "conftest.", or (3) at the end.
14116    # Note that $ac_compile itself does not contain backslashes and begins
14117    # with a dollar sign (not a hyphen), so the echo should work correctly.
14118    # The option is referenced via a variable to avoid confusing sed.
14119    lt_compile=`echo "$ac_compile" | $SED \
14120    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14121    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14122    -e 's:$: $lt_compiler_flag:'`
14123    (eval echo "\"\$as_me:14123: $lt_compile\"" >&5)
14124    (eval "$lt_compile" 2>conftest.err)
14125    ac_status=$?
14126    cat conftest.err >&5
14127    echo "$as_me:14127: \$? = $ac_status" >&5
14128    if (exit $ac_status) && test -s "$ac_outfile"; then
14129      # The compiler can only warn and ignore the option if not recognized
14130      # So say no if there are warnings other than the usual output.
14131      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14132      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14133      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14134        lt_prog_compiler_pic_works_F77=yes
14135      fi
14136    fi
14137    $rm conftest*
14138
14139 fi
14140 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14141 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14142
14143 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14144     case $lt_prog_compiler_pic_F77 in
14145      "" | " "*) ;;
14146      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14147      esac
14148 else
14149     lt_prog_compiler_pic_F77=
14150      lt_prog_compiler_can_build_shared_F77=no
14151 fi
14152
14153 fi
14154 case $host_os in
14155   # For platforms which do not support PIC, -DPIC is meaningless:
14156   *djgpp*)
14157     lt_prog_compiler_pic_F77=
14158     ;;
14159   *)
14160     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14161     ;;
14162 esac
14163
14164 #
14165 # Check to make sure the static flag actually works.
14166 #
14167 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14168 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14169 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14170 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14171   echo $ECHO_N "(cached) $ECHO_C" >&6
14172 else
14173   lt_prog_compiler_static_works_F77=no
14174    save_LDFLAGS="$LDFLAGS"
14175    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14176    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14177    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14178      # The linker can only warn and ignore the option if not recognized
14179      # So say no if there are warnings
14180      if test -s conftest.err; then
14181        # Append any errors to the config.log.
14182        cat conftest.err 1>&5
14183        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14184        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14185        if diff conftest.exp conftest.er2 >/dev/null; then
14186          lt_prog_compiler_static_works_F77=yes
14187        fi
14188      else
14189        lt_prog_compiler_static_works_F77=yes
14190      fi
14191    fi
14192    $rm conftest*
14193    LDFLAGS="$save_LDFLAGS"
14194
14195 fi
14196 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14197 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14198
14199 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14200     :
14201 else
14202     lt_prog_compiler_static_F77=
14203 fi
14204
14205
14206 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14207 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14208 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14209   echo $ECHO_N "(cached) $ECHO_C" >&6
14210 else
14211   lt_cv_prog_compiler_c_o_F77=no
14212    $rm -r conftest 2>/dev/null
14213    mkdir conftest
14214    cd conftest
14215    mkdir out
14216    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14217
14218    lt_compiler_flag="-o out/conftest2.$ac_objext"
14219    # Insert the option either (1) after the last *FLAGS variable, or
14220    # (2) before a word containing "conftest.", or (3) at the end.
14221    # Note that $ac_compile itself does not contain backslashes and begins
14222    # with a dollar sign (not a hyphen), so the echo should work correctly.
14223    lt_compile=`echo "$ac_compile" | $SED \
14224    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14225    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14226    -e 's:$: $lt_compiler_flag:'`
14227    (eval echo "\"\$as_me:14227: $lt_compile\"" >&5)
14228    (eval "$lt_compile" 2>out/conftest.err)
14229    ac_status=$?
14230    cat out/conftest.err >&5
14231    echo "$as_me:14231: \$? = $ac_status" >&5
14232    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14233    then
14234      # The compiler can only warn and ignore the option if not recognized
14235      # So say no if there are warnings
14236      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14237      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14238      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14239        lt_cv_prog_compiler_c_o_F77=yes
14240      fi
14241    fi
14242    chmod u+w . 2>&5
14243    $rm conftest*
14244    # SGI C++ compiler will create directory out/ii_files/ for
14245    # template instantiation
14246    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14247    $rm out/* && rmdir out
14248    cd ..
14249    rmdir conftest
14250    $rm conftest*
14251
14252 fi
14253 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14254 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14255
14256
14257 hard_links="nottested"
14258 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14259   # do not overwrite the value of need_locks provided by the user
14260   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14261 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14262   hard_links=yes
14263   $rm conftest*
14264   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14265   touch conftest.a
14266   ln conftest.a conftest.b 2>&5 || hard_links=no
14267   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14268   { echo "$as_me:$LINENO: result: $hard_links" >&5
14269 echo "${ECHO_T}$hard_links" >&6; }
14270   if test "$hard_links" = no; then
14271     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14272 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14273     need_locks=warn
14274   fi
14275 else
14276   need_locks=no
14277 fi
14278
14279 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14280 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14281
14282   runpath_var=
14283   allow_undefined_flag_F77=
14284   enable_shared_with_static_runtimes_F77=no
14285   archive_cmds_F77=
14286   archive_expsym_cmds_F77=
14287   old_archive_From_new_cmds_F77=
14288   old_archive_from_expsyms_cmds_F77=
14289   export_dynamic_flag_spec_F77=
14290   whole_archive_flag_spec_F77=
14291   thread_safe_flag_spec_F77=
14292   hardcode_libdir_flag_spec_F77=
14293   hardcode_libdir_flag_spec_ld_F77=
14294   hardcode_libdir_separator_F77=
14295   hardcode_direct_F77=no
14296   hardcode_minus_L_F77=no
14297   hardcode_shlibpath_var_F77=unsupported
14298   link_all_deplibs_F77=unknown
14299   hardcode_automatic_F77=no
14300   module_cmds_F77=
14301   module_expsym_cmds_F77=
14302   always_export_symbols_F77=no
14303   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14304   # include_expsyms should be a list of space-separated symbols to be *always*
14305   # included in the symbol list
14306   include_expsyms_F77=
14307   # exclude_expsyms can be an extended regexp of symbols to exclude
14308   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14309   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14310   # as well as any symbol that contains `d'.
14311   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14312   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14313   # platforms (ab)use it in PIC code, but their linkers get confused if
14314   # the symbol is explicitly referenced.  Since portable code cannot
14315   # rely on this symbol name, it's probably fine to never include it in
14316   # preloaded symbol tables.
14317   extract_expsyms_cmds=
14318   # Just being paranoid about ensuring that cc_basename is set.
14319   for cc_temp in $compiler""; do
14320   case $cc_temp in
14321     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14322     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14323     \-*) ;;
14324     *) break;;
14325   esac
14326 done
14327 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14328
14329   case $host_os in
14330   cygwin* | mingw* | pw32*)
14331     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14332     # When not using gcc, we currently assume that we are using
14333     # Microsoft Visual C++.
14334     if test "$GCC" != yes; then
14335       with_gnu_ld=no
14336     fi
14337     ;;
14338   interix*)
14339     # we just hope/assume this is gcc and not c89 (= MSVC++)
14340     with_gnu_ld=yes
14341     ;;
14342   openbsd*)
14343     with_gnu_ld=no
14344     ;;
14345   esac
14346
14347   ld_shlibs_F77=yes
14348   if test "$with_gnu_ld" = yes; then
14349     # If archive_cmds runs LD, not CC, wlarc should be empty
14350     wlarc='${wl}'
14351
14352     # Set some defaults for GNU ld with shared library support. These
14353     # are reset later if shared libraries are not supported. Putting them
14354     # here allows them to be overridden if necessary.
14355     runpath_var=LD_RUN_PATH
14356     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14357     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14358     # ancient GNU ld didn't support --whole-archive et. al.
14359     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14360         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14361       else
14362         whole_archive_flag_spec_F77=
14363     fi
14364     supports_anon_versioning=no
14365     case `$LD -v 2>/dev/null` in
14366       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14367       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14368       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14369       *\ 2.11.*) ;; # other 2.11 versions
14370       *) supports_anon_versioning=yes ;;
14371     esac
14372
14373     # See if GNU ld supports shared libraries.
14374     case $host_os in
14375     aix3* | aix4* | aix5*)
14376       # On AIX/PPC, the GNU linker is very broken
14377       if test "$host_cpu" != ia64; then
14378         ld_shlibs_F77=no
14379         cat <<EOF 1>&2
14380
14381 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14382 *** to be unable to reliably create shared libraries on AIX.
14383 *** Therefore, libtool is disabling shared libraries support.  If you
14384 *** really care for shared libraries, you may want to modify your PATH
14385 *** so that a non-GNU linker is found, and then restart.
14386
14387 EOF
14388       fi
14389       ;;
14390
14391     amigaos*)
14392       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)'
14393       hardcode_libdir_flag_spec_F77='-L$libdir'
14394       hardcode_minus_L_F77=yes
14395
14396       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14397       # that the semantics of dynamic libraries on AmigaOS, at least up
14398       # to version 4, is to share data among multiple programs linked
14399       # with the same dynamic library.  Since this doesn't match the
14400       # behavior of shared libraries on other platforms, we can't use
14401       # them.
14402       ld_shlibs_F77=no
14403       ;;
14404
14405     beos*)
14406       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14407         allow_undefined_flag_F77=unsupported
14408         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14409         # support --undefined.  This deserves some investigation.  FIXME
14410         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14411       else
14412         ld_shlibs_F77=no
14413       fi
14414       ;;
14415
14416     cygwin* | mingw* | pw32*)
14417       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14418       # as there is no search path for DLLs.
14419       hardcode_libdir_flag_spec_F77='-L$libdir'
14420       allow_undefined_flag_F77=unsupported
14421       always_export_symbols_F77=no
14422       enable_shared_with_static_runtimes_F77=yes
14423       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14424
14425       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14426         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14427         # If the export-symbols file already is a .def file (1st line
14428         # is EXPORTS), use it as is; otherwise, prepend...
14429         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14430           cp $export_symbols $output_objdir/$soname.def;
14431         else
14432           echo EXPORTS > $output_objdir/$soname.def;
14433           cat $export_symbols >> $output_objdir/$soname.def;
14434         fi~
14435         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14436       else
14437         ld_shlibs_F77=no
14438       fi
14439       ;;
14440
14441     interix3*)
14442       hardcode_direct_F77=no
14443       hardcode_shlibpath_var_F77=no
14444       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14445       export_dynamic_flag_spec_F77='${wl}-E'
14446       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14447       # Instead, shared libraries are loaded at an image base (0x10000000 by
14448       # default) and relocated if they conflict, which is a slow very memory
14449       # consuming and fragmenting process.  To avoid this, we pick a random,
14450       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14451       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14452       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'
14453       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'
14454       ;;
14455
14456     linux* | k*bsd*-gnu)
14457       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14458         tmp_addflag=
14459         case $cc_basename,$host_cpu in
14460         pgcc*)                          # Portland Group C compiler
14461           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'
14462           tmp_addflag=' $pic_flag'
14463           ;;
14464         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14465           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'
14466           tmp_addflag=' $pic_flag -Mnomain' ;;
14467         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14468           tmp_addflag=' -i_dynamic' ;;
14469         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14470           tmp_addflag=' -i_dynamic -nofor_main' ;;
14471         ifc* | ifort*)                  # Intel Fortran compiler
14472           tmp_addflag=' -nofor_main' ;;
14473         esac
14474         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14475
14476         if test $supports_anon_versioning = yes; then
14477           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14478   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14479   $echo "local: *; };" >> $output_objdir/$libname.ver~
14480           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14481         fi
14482         link_all_deplibs_F77=no
14483       else
14484         ld_shlibs_F77=no
14485       fi
14486       ;;
14487
14488     netbsd* | netbsdelf*-gnu)
14489       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14490         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14491         wlarc=
14492       else
14493         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14494         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14495       fi
14496       ;;
14497
14498     solaris*)
14499       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14500         ld_shlibs_F77=no
14501         cat <<EOF 1>&2
14502
14503 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14504 *** create shared libraries on Solaris systems.  Therefore, libtool
14505 *** is disabling shared libraries support.  We urge you to upgrade GNU
14506 *** binutils to release 2.9.1 or newer.  Another option is to modify
14507 *** your PATH or compiler configuration so that the native linker is
14508 *** used, and then restart.
14509
14510 EOF
14511       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14512         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14513         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14514       else
14515         ld_shlibs_F77=no
14516       fi
14517       ;;
14518
14519     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14520       case `$LD -v 2>&1` in
14521         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14522         ld_shlibs_F77=no
14523         cat <<_LT_EOF 1>&2
14524
14525 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14526 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14527 *** is disabling shared libraries support.  We urge you to upgrade GNU
14528 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14529 *** your PATH or compiler configuration so that the native linker is
14530 *** used, and then restart.
14531
14532 _LT_EOF
14533         ;;
14534         *)
14535           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14536             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14537             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14538             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14539           else
14540             ld_shlibs_F77=no
14541           fi
14542         ;;
14543       esac
14544       ;;
14545
14546     sunos4*)
14547       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14548       wlarc=
14549       hardcode_direct_F77=yes
14550       hardcode_shlibpath_var_F77=no
14551       ;;
14552
14553     *)
14554       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14555         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14556         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14557       else
14558         ld_shlibs_F77=no
14559       fi
14560       ;;
14561     esac
14562
14563     if test "$ld_shlibs_F77" = no; then
14564       runpath_var=
14565       hardcode_libdir_flag_spec_F77=
14566       export_dynamic_flag_spec_F77=
14567       whole_archive_flag_spec_F77=
14568     fi
14569   else
14570     # PORTME fill in a description of your system's linker (not GNU ld)
14571     case $host_os in
14572     aix3*)
14573       allow_undefined_flag_F77=unsupported
14574       always_export_symbols_F77=yes
14575       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'
14576       # Note: this linker hardcodes the directories in LIBPATH if there
14577       # are no directories specified by -L.
14578       hardcode_minus_L_F77=yes
14579       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14580         # Neither direct hardcoding nor static linking is supported with a
14581         # broken collect2.
14582         hardcode_direct_F77=unsupported
14583       fi
14584       ;;
14585
14586     aix4* | aix5*)
14587       if test "$host_cpu" = ia64; then
14588         # On IA64, the linker does run time linking by default, so we don't
14589         # have to do anything special.
14590         aix_use_runtimelinking=no
14591         exp_sym_flag='-Bexport'
14592         no_entry_flag=""
14593       else
14594         # If we're using GNU nm, then we don't want the "-C" option.
14595         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14596         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14597           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'
14598         else
14599           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'
14600         fi
14601         aix_use_runtimelinking=no
14602
14603         # Test if we are trying to use run time linking or normal
14604         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14605         # need to do runtime linking.
14606         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14607           for ld_flag in $LDFLAGS; do
14608           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14609             aix_use_runtimelinking=yes
14610             break
14611           fi
14612           done
14613           ;;
14614         esac
14615
14616         exp_sym_flag='-bexport'
14617         no_entry_flag='-bnoentry'
14618       fi
14619
14620       # When large executables or shared objects are built, AIX ld can
14621       # have problems creating the table of contents.  If linking a library
14622       # or program results in "error TOC overflow" add -mminimal-toc to
14623       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14624       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14625
14626       archive_cmds_F77=''
14627       hardcode_direct_F77=yes
14628       hardcode_libdir_separator_F77=':'
14629       link_all_deplibs_F77=yes
14630
14631       if test "$GCC" = yes; then
14632         case $host_os in aix4.[012]|aix4.[012].*)
14633         # We only want to do this on AIX 4.2 and lower, the check
14634         # below for broken collect2 doesn't work under 4.3+
14635           collect2name=`${CC} -print-prog-name=collect2`
14636           if test -f "$collect2name" && \
14637            strings "$collect2name" | grep resolve_lib_name >/dev/null
14638           then
14639           # We have reworked collect2
14640           hardcode_direct_F77=yes
14641           else
14642           # We have old collect2
14643           hardcode_direct_F77=unsupported
14644           # It fails to find uninstalled libraries when the uninstalled
14645           # path is not listed in the libpath.  Setting hardcode_minus_L
14646           # to unsupported forces relinking
14647           hardcode_minus_L_F77=yes
14648           hardcode_libdir_flag_spec_F77='-L$libdir'
14649           hardcode_libdir_separator_F77=
14650           fi
14651           ;;
14652         esac
14653         shared_flag='-shared'
14654         if test "$aix_use_runtimelinking" = yes; then
14655           shared_flag="$shared_flag "'${wl}-G'
14656         fi
14657       else
14658         # not using gcc
14659         if test "$host_cpu" = ia64; then
14660         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14661         # chokes on -Wl,-G. The following line is correct:
14662           shared_flag='-G'
14663         else
14664           if test "$aix_use_runtimelinking" = yes; then
14665             shared_flag='${wl}-G'
14666           else
14667             shared_flag='${wl}-bM:SRE'
14668           fi
14669         fi
14670       fi
14671
14672       # It seems that -bexpall does not export symbols beginning with
14673       # underscore (_), so it is better to generate a list of symbols to export.
14674       always_export_symbols_F77=yes
14675       if test "$aix_use_runtimelinking" = yes; then
14676         # Warning - without using the other runtime loading flags (-brtl),
14677         # -berok will link without error, but may produce a broken library.
14678         allow_undefined_flag_F77='-berok'
14679        # Determine the default libpath from the value encoded in an empty executable.
14680        cat >conftest.$ac_ext <<_ACEOF
14681       program main
14682
14683       end
14684 _ACEOF
14685 rm -f conftest.$ac_objext conftest$ac_exeext
14686 if { (ac_try="$ac_link"
14687 case "(($ac_try" in
14688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14689   *) ac_try_echo=$ac_try;;
14690 esac
14691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14692   (eval "$ac_link") 2>conftest.er1
14693   ac_status=$?
14694   grep -v '^ *+' conftest.er1 >conftest.err
14695   rm -f conftest.er1
14696   cat conftest.err >&5
14697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698   (exit $ac_status); } && {
14699          test -z "$ac_f77_werror_flag" ||
14700          test ! -s conftest.err
14701        } && test -s conftest$ac_exeext &&
14702        $as_test_x conftest$ac_exeext; then
14703
14704 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14705 }'`
14706 # Check for a 64-bit object if we didn't find anything.
14707 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; }
14708 }'`; fi
14709 else
14710   echo "$as_me: failed program was:" >&5
14711 sed 's/^/| /' conftest.$ac_ext >&5
14712
14713
14714 fi
14715
14716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14717       conftest$ac_exeext conftest.$ac_ext
14718 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14719
14720        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14721         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"
14722        else
14723         if test "$host_cpu" = ia64; then
14724           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14725           allow_undefined_flag_F77="-z nodefs"
14726           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"
14727         else
14728          # Determine the default libpath from the value encoded in an empty executable.
14729          cat >conftest.$ac_ext <<_ACEOF
14730       program main
14731
14732       end
14733 _ACEOF
14734 rm -f conftest.$ac_objext conftest$ac_exeext
14735 if { (ac_try="$ac_link"
14736 case "(($ac_try" in
14737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14738   *) ac_try_echo=$ac_try;;
14739 esac
14740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14741   (eval "$ac_link") 2>conftest.er1
14742   ac_status=$?
14743   grep -v '^ *+' conftest.er1 >conftest.err
14744   rm -f conftest.er1
14745   cat conftest.err >&5
14746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747   (exit $ac_status); } && {
14748          test -z "$ac_f77_werror_flag" ||
14749          test ! -s conftest.err
14750        } && test -s conftest$ac_exeext &&
14751        $as_test_x conftest$ac_exeext; then
14752
14753 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14754 }'`
14755 # Check for a 64-bit object if we didn't find anything.
14756 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; }
14757 }'`; fi
14758 else
14759   echo "$as_me: failed program was:" >&5
14760 sed 's/^/| /' conftest.$ac_ext >&5
14761
14762
14763 fi
14764
14765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14766       conftest$ac_exeext conftest.$ac_ext
14767 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14768
14769          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14770           # Warning - without using the other run time loading flags,
14771           # -berok will link without error, but may produce a broken library.
14772           no_undefined_flag_F77=' ${wl}-bernotok'
14773           allow_undefined_flag_F77=' ${wl}-berok'
14774           # Exported symbols can be pulled into shared objects from archives
14775           whole_archive_flag_spec_F77='$convenience'
14776           archive_cmds_need_lc_F77=yes
14777           # This is similar to how AIX traditionally builds its shared libraries.
14778           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'
14779         fi
14780       fi
14781       ;;
14782
14783     amigaos*)
14784       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)'
14785       hardcode_libdir_flag_spec_F77='-L$libdir'
14786       hardcode_minus_L_F77=yes
14787       # see comment about different semantics on the GNU ld section
14788       ld_shlibs_F77=no
14789       ;;
14790
14791     bsdi[45]*)
14792       export_dynamic_flag_spec_F77=-rdynamic
14793       ;;
14794
14795     cygwin* | mingw* | pw32*)
14796       # When not using gcc, we currently assume that we are using
14797       # Microsoft Visual C++.
14798       # hardcode_libdir_flag_spec is actually meaningless, as there is
14799       # no search path for DLLs.
14800       hardcode_libdir_flag_spec_F77=' '
14801       allow_undefined_flag_F77=unsupported
14802       # Tell ltmain to make .lib files, not .a files.
14803       libext=lib
14804       # Tell ltmain to make .dll files, not .so files.
14805       shrext_cmds=".dll"
14806       # FIXME: Setting linknames here is a bad hack.
14807       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14808       # The linker will automatically build a .lib file if we build a DLL.
14809       old_archive_From_new_cmds_F77='true'
14810       # FIXME: Should let the user specify the lib program.
14811       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14812       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14813       enable_shared_with_static_runtimes_F77=yes
14814       ;;
14815
14816     darwin* | rhapsody*)
14817       case $host_os in
14818         rhapsody* | darwin1.[012])
14819          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14820          ;;
14821        *) # Darwin 1.3 on
14822          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14823            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14824          else
14825            case ${MACOSX_DEPLOYMENT_TARGET} in
14826              10.[012])
14827                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14828                ;;
14829              10.*)
14830                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14831                ;;
14832            esac
14833          fi
14834          ;;
14835       esac
14836       archive_cmds_need_lc_F77=no
14837       hardcode_direct_F77=no
14838       hardcode_automatic_F77=yes
14839       hardcode_shlibpath_var_F77=unsupported
14840       whole_archive_flag_spec_F77=''
14841       link_all_deplibs_F77=yes
14842     if test "$GCC" = yes ; then
14843         output_verbose_link_cmd='echo'
14844         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14845       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14846       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14847       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}'
14848       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}'
14849     else
14850       case $cc_basename in
14851         xlc*)
14852          output_verbose_link_cmd='echo'
14853          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14854          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14855           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14856          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}'
14857           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}'
14858           ;;
14859        *)
14860          ld_shlibs_F77=no
14861           ;;
14862       esac
14863     fi
14864       ;;
14865
14866     dgux*)
14867       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14868       hardcode_libdir_flag_spec_F77='-L$libdir'
14869       hardcode_shlibpath_var_F77=no
14870       ;;
14871
14872     freebsd1*)
14873       ld_shlibs_F77=no
14874       ;;
14875
14876     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14877     # support.  Future versions do this automatically, but an explicit c++rt0.o
14878     # does not break anything, and helps significantly (at the cost of a little
14879     # extra space).
14880     freebsd2.2*)
14881       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14882       hardcode_libdir_flag_spec_F77='-R$libdir'
14883       hardcode_direct_F77=yes
14884       hardcode_shlibpath_var_F77=no
14885       ;;
14886
14887     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14888     freebsd2*)
14889       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14890       hardcode_direct_F77=yes
14891       hardcode_minus_L_F77=yes
14892       hardcode_shlibpath_var_F77=no
14893       ;;
14894
14895     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14896     freebsd* | dragonfly*)
14897       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14898       hardcode_libdir_flag_spec_F77='-R$libdir'
14899       hardcode_direct_F77=yes
14900       hardcode_shlibpath_var_F77=no
14901       ;;
14902
14903     hpux9*)
14904       if test "$GCC" = yes; then
14905         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'
14906       else
14907         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'
14908       fi
14909       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14910       hardcode_libdir_separator_F77=:
14911       hardcode_direct_F77=yes
14912
14913       # hardcode_minus_L: Not really in the search PATH,
14914       # but as the default location of the library.
14915       hardcode_minus_L_F77=yes
14916       export_dynamic_flag_spec_F77='${wl}-E'
14917       ;;
14918
14919     hpux10*)
14920       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14921         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14922       else
14923         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14924       fi
14925       if test "$with_gnu_ld" = no; then
14926         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14927         hardcode_libdir_separator_F77=:
14928
14929         hardcode_direct_F77=yes
14930         export_dynamic_flag_spec_F77='${wl}-E'
14931
14932         # hardcode_minus_L: Not really in the search PATH,
14933         # but as the default location of the library.
14934         hardcode_minus_L_F77=yes
14935       fi
14936       ;;
14937
14938     hpux11*)
14939       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14940         case $host_cpu in
14941         hppa*64*)
14942           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14943           ;;
14944         ia64*)
14945           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14946           ;;
14947         *)
14948           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14949           ;;
14950         esac
14951       else
14952         case $host_cpu in
14953         hppa*64*)
14954           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14955           ;;
14956         ia64*)
14957           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14958           ;;
14959         *)
14960           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14961           ;;
14962         esac
14963       fi
14964       if test "$with_gnu_ld" = no; then
14965         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14966         hardcode_libdir_separator_F77=:
14967
14968         case $host_cpu in
14969         hppa*64*|ia64*)
14970           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14971           hardcode_direct_F77=no
14972           hardcode_shlibpath_var_F77=no
14973           ;;
14974         *)
14975           hardcode_direct_F77=yes
14976           export_dynamic_flag_spec_F77='${wl}-E'
14977
14978           # hardcode_minus_L: Not really in the search PATH,
14979           # but as the default location of the library.
14980           hardcode_minus_L_F77=yes
14981           ;;
14982         esac
14983       fi
14984       ;;
14985
14986     irix5* | irix6* | nonstopux*)
14987       if test "$GCC" = yes; then
14988         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'
14989       else
14990         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'
14991         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14992       fi
14993       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14994       hardcode_libdir_separator_F77=:
14995       link_all_deplibs_F77=yes
14996       ;;
14997
14998     netbsd* | netbsdelf*-gnu)
14999       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15000         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15001       else
15002         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15003       fi
15004       hardcode_libdir_flag_spec_F77='-R$libdir'
15005       hardcode_direct_F77=yes
15006       hardcode_shlibpath_var_F77=no
15007       ;;
15008
15009     newsos6)
15010       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15011       hardcode_direct_F77=yes
15012       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15013       hardcode_libdir_separator_F77=:
15014       hardcode_shlibpath_var_F77=no
15015       ;;
15016
15017     openbsd*)
15018       hardcode_direct_F77=yes
15019       hardcode_shlibpath_var_F77=no
15020       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15021         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15022         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15023         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15024         export_dynamic_flag_spec_F77='${wl}-E'
15025       else
15026        case $host_os in
15027          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15028            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15029            hardcode_libdir_flag_spec_F77='-R$libdir'
15030            ;;
15031          *)
15032            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15033            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15034            ;;
15035        esac
15036       fi
15037       ;;
15038
15039     os2*)
15040       hardcode_libdir_flag_spec_F77='-L$libdir'
15041       hardcode_minus_L_F77=yes
15042       allow_undefined_flag_F77=unsupported
15043       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'
15044       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15045       ;;
15046
15047     osf3*)
15048       if test "$GCC" = yes; then
15049         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15050         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'
15051       else
15052         allow_undefined_flag_F77=' -expect_unresolved \*'
15053         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'
15054       fi
15055       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15056       hardcode_libdir_separator_F77=:
15057       ;;
15058
15059     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15060       if test "$GCC" = yes; then
15061         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15062         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'
15063         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15064       else
15065         allow_undefined_flag_F77=' -expect_unresolved \*'
15066         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'
15067         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~
15068         $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'
15069
15070         # Both c and cxx compiler support -rpath directly
15071         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15072       fi
15073       hardcode_libdir_separator_F77=:
15074       ;;
15075
15076     solaris*)
15077       no_undefined_flag_F77=' -z text'
15078       if test "$GCC" = yes; then
15079         wlarc='${wl}'
15080         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15081         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15082           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15083       else
15084         wlarc=''
15085         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15086         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15087         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15088       fi
15089       hardcode_libdir_flag_spec_F77='-R$libdir'
15090       hardcode_shlibpath_var_F77=no
15091       case $host_os in
15092       solaris2.[0-5] | solaris2.[0-5].*) ;;
15093       *)
15094         # The compiler driver will combine linker options so we
15095         # cannot just pass the convience library names through
15096         # without $wl, iff we do not link with $LD.
15097         # Luckily, gcc supports the same syntax we need for Sun Studio.
15098         # Supported since Solaris 2.6 (maybe 2.5.1?)
15099         case $wlarc in
15100         '')
15101           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15102         *)
15103           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' ;;
15104         esac ;;
15105       esac
15106       link_all_deplibs_F77=yes
15107       ;;
15108
15109     sunos4*)
15110       if test "x$host_vendor" = xsequent; then
15111         # Use $CC to link under sequent, because it throws in some extra .o
15112         # files that make .init and .fini sections work.
15113         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15114       else
15115         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15116       fi
15117       hardcode_libdir_flag_spec_F77='-L$libdir'
15118       hardcode_direct_F77=yes
15119       hardcode_minus_L_F77=yes
15120       hardcode_shlibpath_var_F77=no
15121       ;;
15122
15123     sysv4)
15124       case $host_vendor in
15125         sni)
15126           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15127           hardcode_direct_F77=yes # is this really true???
15128         ;;
15129         siemens)
15130           ## LD is ld it makes a PLAMLIB
15131           ## CC just makes a GrossModule.
15132           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15133           reload_cmds_F77='$CC -r -o $output$reload_objs'
15134           hardcode_direct_F77=no
15135         ;;
15136         motorola)
15137           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15138           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15139         ;;
15140       esac
15141       runpath_var='LD_RUN_PATH'
15142       hardcode_shlibpath_var_F77=no
15143       ;;
15144
15145     sysv4.3*)
15146       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15147       hardcode_shlibpath_var_F77=no
15148       export_dynamic_flag_spec_F77='-Bexport'
15149       ;;
15150
15151     sysv4*MP*)
15152       if test -d /usr/nec; then
15153         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15154         hardcode_shlibpath_var_F77=no
15155         runpath_var=LD_RUN_PATH
15156         hardcode_runpath_var=yes
15157         ld_shlibs_F77=yes
15158       fi
15159       ;;
15160
15161     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15162       no_undefined_flag_F77='${wl}-z,text'
15163       archive_cmds_need_lc_F77=no
15164       hardcode_shlibpath_var_F77=no
15165       runpath_var='LD_RUN_PATH'
15166
15167       if test "$GCC" = yes; then
15168         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15169         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15170       else
15171         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15172         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15173       fi
15174       ;;
15175
15176     sysv5* | sco3.2v5* | sco5v6*)
15177       # Note: We can NOT use -z defs as we might desire, because we do not
15178       # link with -lc, and that would cause any symbols used from libc to
15179       # always be unresolved, which means just about no library would
15180       # ever link correctly.  If we're not using GNU ld we use -z text
15181       # though, which does catch some bad symbols but isn't as heavy-handed
15182       # as -z defs.
15183       no_undefined_flag_F77='${wl}-z,text'
15184       allow_undefined_flag_F77='${wl}-z,nodefs'
15185       archive_cmds_need_lc_F77=no
15186       hardcode_shlibpath_var_F77=no
15187       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15188       hardcode_libdir_separator_F77=':'
15189       link_all_deplibs_F77=yes
15190       export_dynamic_flag_spec_F77='${wl}-Bexport'
15191       runpath_var='LD_RUN_PATH'
15192
15193       if test "$GCC" = yes; then
15194         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15195         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15196       else
15197         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15198         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15199       fi
15200       ;;
15201
15202     uts4*)
15203       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15204       hardcode_libdir_flag_spec_F77='-L$libdir'
15205       hardcode_shlibpath_var_F77=no
15206       ;;
15207
15208     *)
15209       ld_shlibs_F77=no
15210       ;;
15211     esac
15212   fi
15213
15214 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15215 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15216 test "$ld_shlibs_F77" = no && can_build_shared=no
15217
15218 #
15219 # Do we need to explicitly link libc?
15220 #
15221 case "x$archive_cmds_need_lc_F77" in
15222 x|xyes)
15223   # Assume -lc should be added
15224   archive_cmds_need_lc_F77=yes
15225
15226   if test "$enable_shared" = yes && test "$GCC" = yes; then
15227     case $archive_cmds_F77 in
15228     *'~'*)
15229       # FIXME: we may have to deal with multi-command sequences.
15230       ;;
15231     '$CC '*)
15232       # Test whether the compiler implicitly links with -lc since on some
15233       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15234       # to ld, don't add -lc before -lgcc.
15235       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15236 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15237       $rm conftest*
15238       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15239
15240       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15241   (eval $ac_compile) 2>&5
15242   ac_status=$?
15243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244   (exit $ac_status); } 2>conftest.err; then
15245         soname=conftest
15246         lib=conftest
15247         libobjs=conftest.$ac_objext
15248         deplibs=
15249         wl=$lt_prog_compiler_wl_F77
15250         pic_flag=$lt_prog_compiler_pic_F77
15251         compiler_flags=-v
15252         linker_flags=-v
15253         verstring=
15254         output_objdir=.
15255         libname=conftest
15256         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15257         allow_undefined_flag_F77=
15258         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15259   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15260   ac_status=$?
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); }
15263         then
15264           archive_cmds_need_lc_F77=no
15265         else
15266           archive_cmds_need_lc_F77=yes
15267         fi
15268         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15269       else
15270         cat conftest.err 1>&5
15271       fi
15272       $rm conftest*
15273       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15274 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15275       ;;
15276     esac
15277   fi
15278   ;;
15279 esac
15280
15281 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15282 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15283 library_names_spec=
15284 libname_spec='lib$name'
15285 soname_spec=
15286 shrext_cmds=".so"
15287 postinstall_cmds=
15288 postuninstall_cmds=
15289 finish_cmds=
15290 finish_eval=
15291 shlibpath_var=
15292 shlibpath_overrides_runpath=unknown
15293 version_type=none
15294 dynamic_linker="$host_os ld.so"
15295 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15296 if test "$GCC" = yes; then
15297   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15298   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15299     # if the path contains ";" then we assume it to be the separator
15300     # otherwise default to the standard path separator (i.e. ":") - it is
15301     # assumed that no part of a normal pathname contains ";" but that should
15302     # okay in the real world where ";" in dirpaths is itself problematic.
15303     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15304   else
15305     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15306   fi
15307 else
15308   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15309 fi
15310 need_lib_prefix=unknown
15311 hardcode_into_libs=no
15312
15313 # when you set need_version to no, make sure it does not cause -set_version
15314 # flags to be left without arguments
15315 need_version=unknown
15316
15317 case $host_os in
15318 aix3*)
15319   version_type=linux
15320   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15321   shlibpath_var=LIBPATH
15322
15323   # AIX 3 has no versioning support, so we append a major version to the name.
15324   soname_spec='${libname}${release}${shared_ext}$major'
15325   ;;
15326
15327 aix4* | aix5*)
15328   version_type=linux
15329   need_lib_prefix=no
15330   need_version=no
15331   hardcode_into_libs=yes
15332   if test "$host_cpu" = ia64; then
15333     # AIX 5 supports IA64
15334     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15335     shlibpath_var=LD_LIBRARY_PATH
15336   else
15337     # With GCC up to 2.95.x, collect2 would create an import file
15338     # for dependence libraries.  The import file would start with
15339     # the line `#! .'.  This would cause the generated library to
15340     # depend on `.', always an invalid library.  This was fixed in
15341     # development snapshots of GCC prior to 3.0.
15342     case $host_os in
15343       aix4 | aix4.[01] | aix4.[01].*)
15344       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15345            echo ' yes '
15346            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15347         :
15348       else
15349         can_build_shared=no
15350       fi
15351       ;;
15352     esac
15353     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15354     # soname into executable. Probably we can add versioning support to
15355     # collect2, so additional links can be useful in future.
15356     if test "$aix_use_runtimelinking" = yes; then
15357       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15358       # instead of lib<name>.a to let people know that these are not
15359       # typical AIX shared libraries.
15360       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15361     else
15362       # We preserve .a as extension for shared libraries through AIX4.2
15363       # and later when we are not doing run time linking.
15364       library_names_spec='${libname}${release}.a $libname.a'
15365       soname_spec='${libname}${release}${shared_ext}$major'
15366     fi
15367     shlibpath_var=LIBPATH
15368   fi
15369   ;;
15370
15371 amigaos*)
15372   library_names_spec='$libname.ixlibrary $libname.a'
15373   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15374   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'
15375   ;;
15376
15377 beos*)
15378   library_names_spec='${libname}${shared_ext}'
15379   dynamic_linker="$host_os ld.so"
15380   shlibpath_var=LIBRARY_PATH
15381   ;;
15382
15383 bsdi[45]*)
15384   version_type=linux
15385   need_version=no
15386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15387   soname_spec='${libname}${release}${shared_ext}$major'
15388   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15389   shlibpath_var=LD_LIBRARY_PATH
15390   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15391   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15392   # the default ld.so.conf also contains /usr/contrib/lib and
15393   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15394   # libtool to hard-code these into programs
15395   ;;
15396
15397 cygwin* | mingw* | pw32*)
15398   version_type=windows
15399   shrext_cmds=".dll"
15400   need_version=no
15401   need_lib_prefix=no
15402
15403   case $GCC,$host_os in
15404   yes,cygwin* | yes,mingw* | yes,pw32*)
15405     library_names_spec='$libname.dll.a'
15406     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15407     postinstall_cmds='base_file=`basename \${file}`~
15408       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15409       dldir=$destdir/`dirname \$dlpath`~
15410       test -d \$dldir || mkdir -p \$dldir~
15411       $install_prog $dir/$dlname \$dldir/$dlname~
15412       chmod a+x \$dldir/$dlname'
15413     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15414       dlpath=$dir/\$dldll~
15415        $rm \$dlpath'
15416     shlibpath_overrides_runpath=yes
15417
15418     case $host_os in
15419     cygwin*)
15420       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15421       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15422       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15423       ;;
15424     mingw*)
15425       # MinGW DLLs use traditional 'lib' prefix
15426       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15427       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15428       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15429         # It is most probably a Windows format PATH printed by
15430         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15431         # path with ; separators, and with drive letters. We can handle the
15432         # drive letters (cygwin fileutils understands them), so leave them,
15433         # especially as we might pass files found there to a mingw objdump,
15434         # which wouldn't understand a cygwinified path. Ahh.
15435         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15436       else
15437         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15438       fi
15439       ;;
15440     pw32*)
15441       # pw32 DLLs use 'pw' prefix rather than 'lib'
15442       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15443       ;;
15444     esac
15445     ;;
15446
15447   *)
15448     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15449     ;;
15450   esac
15451   dynamic_linker='Win32 ld.exe'
15452   # FIXME: first we should search . and the directory the executable is in
15453   shlibpath_var=PATH
15454   ;;
15455
15456 darwin* | rhapsody*)
15457   dynamic_linker="$host_os dyld"
15458   version_type=darwin
15459   need_lib_prefix=no
15460   need_version=no
15461   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15462   soname_spec='${libname}${release}${major}$shared_ext'
15463   shlibpath_overrides_runpath=yes
15464   shlibpath_var=DYLD_LIBRARY_PATH
15465   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15466   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15467   if test "$GCC" = yes; then
15468     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"`
15469   else
15470     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15471   fi
15472   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15473   ;;
15474
15475 dgux*)
15476   version_type=linux
15477   need_lib_prefix=no
15478   need_version=no
15479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15480   soname_spec='${libname}${release}${shared_ext}$major'
15481   shlibpath_var=LD_LIBRARY_PATH
15482   ;;
15483
15484 freebsd1*)
15485   dynamic_linker=no
15486   ;;
15487
15488 freebsd* | dragonfly*)
15489   # DragonFly does not have aout.  When/if they implement a new
15490   # versioning mechanism, adjust this.
15491   if test -x /usr/bin/objformat; then
15492     objformat=`/usr/bin/objformat`
15493   else
15494     case $host_os in
15495     freebsd[123]*) objformat=aout ;;
15496     *) objformat=elf ;;
15497     esac
15498   fi
15499   version_type=freebsd-$objformat
15500   case $version_type in
15501     freebsd-elf*)
15502       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15503       need_version=no
15504       need_lib_prefix=no
15505       ;;
15506     freebsd-*)
15507       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15508       need_version=yes
15509       ;;
15510   esac
15511   shlibpath_var=LD_LIBRARY_PATH
15512   case $host_os in
15513   freebsd2*)
15514     shlibpath_overrides_runpath=yes
15515     ;;
15516   freebsd3.[01]* | freebsdelf3.[01]*)
15517     shlibpath_overrides_runpath=yes
15518     hardcode_into_libs=yes
15519     ;;
15520   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15521   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15522     shlibpath_overrides_runpath=no
15523     hardcode_into_libs=yes
15524     ;;
15525   freebsd*) # from 4.6 on
15526     shlibpath_overrides_runpath=yes
15527     hardcode_into_libs=yes
15528     ;;
15529   esac
15530   ;;
15531
15532 gnu*)
15533   version_type=linux
15534   need_lib_prefix=no
15535   need_version=no
15536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15537   soname_spec='${libname}${release}${shared_ext}$major'
15538   shlibpath_var=LD_LIBRARY_PATH
15539   hardcode_into_libs=yes
15540   ;;
15541
15542 hpux9* | hpux10* | hpux11*)
15543   # Give a soname corresponding to the major version so that dld.sl refuses to
15544   # link against other versions.
15545   version_type=sunos
15546   need_lib_prefix=no
15547   need_version=no
15548   case $host_cpu in
15549   ia64*)
15550     shrext_cmds='.so'
15551     hardcode_into_libs=yes
15552     dynamic_linker="$host_os dld.so"
15553     shlibpath_var=LD_LIBRARY_PATH
15554     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15555     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15556     soname_spec='${libname}${release}${shared_ext}$major'
15557     if test "X$HPUX_IA64_MODE" = X32; then
15558       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15559     else
15560       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15561     fi
15562     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15563     ;;
15564    hppa*64*)
15565      shrext_cmds='.sl'
15566      hardcode_into_libs=yes
15567      dynamic_linker="$host_os dld.sl"
15568      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15569      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15570      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15571      soname_spec='${libname}${release}${shared_ext}$major'
15572      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15573      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15574      ;;
15575    *)
15576     shrext_cmds='.sl'
15577     dynamic_linker="$host_os dld.sl"
15578     shlibpath_var=SHLIB_PATH
15579     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15580     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15581     soname_spec='${libname}${release}${shared_ext}$major'
15582     ;;
15583   esac
15584   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15585   postinstall_cmds='chmod 555 $lib'
15586   ;;
15587
15588 interix3*)
15589   version_type=linux
15590   need_lib_prefix=no
15591   need_version=no
15592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15593   soname_spec='${libname}${release}${shared_ext}$major'
15594   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15595   shlibpath_var=LD_LIBRARY_PATH
15596   shlibpath_overrides_runpath=no
15597   hardcode_into_libs=yes
15598   ;;
15599
15600 irix5* | irix6* | nonstopux*)
15601   case $host_os in
15602     nonstopux*) version_type=nonstopux ;;
15603     *)
15604         if test "$lt_cv_prog_gnu_ld" = yes; then
15605                 version_type=linux
15606         else
15607                 version_type=irix
15608         fi ;;
15609   esac
15610   need_lib_prefix=no
15611   need_version=no
15612   soname_spec='${libname}${release}${shared_ext}$major'
15613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15614   case $host_os in
15615   irix5* | nonstopux*)
15616     libsuff= shlibsuff=
15617     ;;
15618   *)
15619     case $LD in # libtool.m4 will add one of these switches to LD
15620     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15621       libsuff= shlibsuff= libmagic=32-bit;;
15622     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15623       libsuff=32 shlibsuff=N32 libmagic=N32;;
15624     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15625       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15626     *) libsuff= shlibsuff= libmagic=never-match;;
15627     esac
15628     ;;
15629   esac
15630   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15631   shlibpath_overrides_runpath=no
15632   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15633   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15634   hardcode_into_libs=yes
15635   ;;
15636
15637 # No shared lib support for Linux oldld, aout, or coff.
15638 linux*oldld* | linux*aout* | linux*coff*)
15639   dynamic_linker=no
15640   ;;
15641
15642 # This must be Linux ELF.
15643 linux* | k*bsd*-gnu)
15644   version_type=linux
15645   need_lib_prefix=no
15646   need_version=no
15647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15648   soname_spec='${libname}${release}${shared_ext}$major'
15649   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15650   shlibpath_var=LD_LIBRARY_PATH
15651   shlibpath_overrides_runpath=no
15652   # This implies no fast_install, which is unacceptable.
15653   # Some rework will be needed to allow for fast_install
15654   # before this can be enabled.
15655   hardcode_into_libs=yes
15656
15657   # Append ld.so.conf contents to the search path
15658   if test -f /etc/ld.so.conf; then
15659     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' ' '`
15660     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15661   fi
15662
15663   # We used to test for /lib/ld.so.1 and disable shared libraries on
15664   # powerpc, because MkLinux only supported shared libraries with the
15665   # GNU dynamic linker.  Since this was broken with cross compilers,
15666   # most powerpc-linux boxes support dynamic linking these days and
15667   # people can always --disable-shared, the test was removed, and we
15668   # assume the GNU/Linux dynamic linker is in use.
15669   dynamic_linker='GNU/Linux ld.so'
15670   ;;
15671
15672 netbsdelf*-gnu)
15673   version_type=linux
15674   need_lib_prefix=no
15675   need_version=no
15676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15677   soname_spec='${libname}${release}${shared_ext}$major'
15678   shlibpath_var=LD_LIBRARY_PATH
15679   shlibpath_overrides_runpath=no
15680   hardcode_into_libs=yes
15681   dynamic_linker='NetBSD ld.elf_so'
15682   ;;
15683
15684 netbsd*)
15685   version_type=sunos
15686   need_lib_prefix=no
15687   need_version=no
15688   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15689     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15690     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15691     dynamic_linker='NetBSD (a.out) ld.so'
15692   else
15693     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15694     soname_spec='${libname}${release}${shared_ext}$major'
15695     dynamic_linker='NetBSD ld.elf_so'
15696   fi
15697   shlibpath_var=LD_LIBRARY_PATH
15698   shlibpath_overrides_runpath=yes
15699   hardcode_into_libs=yes
15700   ;;
15701
15702 newsos6)
15703   version_type=linux
15704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15705   shlibpath_var=LD_LIBRARY_PATH
15706   shlibpath_overrides_runpath=yes
15707   ;;
15708
15709 nto-qnx*)
15710   version_type=linux
15711   need_lib_prefix=no
15712   need_version=no
15713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15714   soname_spec='${libname}${release}${shared_ext}$major'
15715   shlibpath_var=LD_LIBRARY_PATH
15716   shlibpath_overrides_runpath=yes
15717   ;;
15718
15719 openbsd*)
15720   version_type=sunos
15721   sys_lib_dlsearch_path_spec="/usr/lib"
15722   need_lib_prefix=no
15723   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15724   case $host_os in
15725     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15726     *)                         need_version=no  ;;
15727   esac
15728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15729   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15730   shlibpath_var=LD_LIBRARY_PATH
15731   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15732     case $host_os in
15733       openbsd2.[89] | openbsd2.[89].*)
15734         shlibpath_overrides_runpath=no
15735         ;;
15736       *)
15737         shlibpath_overrides_runpath=yes
15738         ;;
15739       esac
15740   else
15741     shlibpath_overrides_runpath=yes
15742   fi
15743   ;;
15744
15745 os2*)
15746   libname_spec='$name'
15747   shrext_cmds=".dll"
15748   need_lib_prefix=no
15749   library_names_spec='$libname${shared_ext} $libname.a'
15750   dynamic_linker='OS/2 ld.exe'
15751   shlibpath_var=LIBPATH
15752   ;;
15753
15754 osf3* | osf4* | osf5*)
15755   version_type=osf
15756   need_lib_prefix=no
15757   need_version=no
15758   soname_spec='${libname}${release}${shared_ext}$major'
15759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15760   shlibpath_var=LD_LIBRARY_PATH
15761   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15762   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15763   ;;
15764
15765 solaris*)
15766   version_type=linux
15767   need_lib_prefix=no
15768   need_version=no
15769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15770   soname_spec='${libname}${release}${shared_ext}$major'
15771   shlibpath_var=LD_LIBRARY_PATH
15772   shlibpath_overrides_runpath=yes
15773   hardcode_into_libs=yes
15774   # ldd complains unless libraries are executable
15775   postinstall_cmds='chmod +x $lib'
15776   ;;
15777
15778 sunos4*)
15779   version_type=sunos
15780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15781   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15782   shlibpath_var=LD_LIBRARY_PATH
15783   shlibpath_overrides_runpath=yes
15784   if test "$with_gnu_ld" = yes; then
15785     need_lib_prefix=no
15786   fi
15787   need_version=yes
15788   ;;
15789
15790 sysv4 | sysv4.3*)
15791   version_type=linux
15792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15793   soname_spec='${libname}${release}${shared_ext}$major'
15794   shlibpath_var=LD_LIBRARY_PATH
15795   case $host_vendor in
15796     sni)
15797       shlibpath_overrides_runpath=no
15798       need_lib_prefix=no
15799       export_dynamic_flag_spec='${wl}-Blargedynsym'
15800       runpath_var=LD_RUN_PATH
15801       ;;
15802     siemens)
15803       need_lib_prefix=no
15804       ;;
15805     motorola)
15806       need_lib_prefix=no
15807       need_version=no
15808       shlibpath_overrides_runpath=no
15809       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15810       ;;
15811   esac
15812   ;;
15813
15814 sysv4*MP*)
15815   if test -d /usr/nec ;then
15816     version_type=linux
15817     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15818     soname_spec='$libname${shared_ext}.$major'
15819     shlibpath_var=LD_LIBRARY_PATH
15820   fi
15821   ;;
15822
15823 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15824   version_type=freebsd-elf
15825   need_lib_prefix=no
15826   need_version=no
15827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15828   soname_spec='${libname}${release}${shared_ext}$major'
15829   shlibpath_var=LD_LIBRARY_PATH
15830   hardcode_into_libs=yes
15831   if test "$with_gnu_ld" = yes; then
15832     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15833     shlibpath_overrides_runpath=no
15834   else
15835     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15836     shlibpath_overrides_runpath=yes
15837     case $host_os in
15838       sco3.2v5*)
15839         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15840         ;;
15841     esac
15842   fi
15843   sys_lib_dlsearch_path_spec='/usr/lib'
15844   ;;
15845
15846 uts4*)
15847   version_type=linux
15848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15849   soname_spec='${libname}${release}${shared_ext}$major'
15850   shlibpath_var=LD_LIBRARY_PATH
15851   ;;
15852
15853 *)
15854   dynamic_linker=no
15855   ;;
15856 esac
15857 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15858 echo "${ECHO_T}$dynamic_linker" >&6; }
15859 test "$dynamic_linker" = no && can_build_shared=no
15860
15861 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15862 if test "$GCC" = yes; then
15863   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15864 fi
15865
15866 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15867 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15868 hardcode_action_F77=
15869 if test -n "$hardcode_libdir_flag_spec_F77" || \
15870    test -n "$runpath_var_F77" || \
15871    test "X$hardcode_automatic_F77" = "Xyes" ; then
15872
15873   # We can hardcode non-existant directories.
15874   if test "$hardcode_direct_F77" != no &&
15875      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15876      # have to relink, otherwise we might link with an installed library
15877      # when we should be linking with a yet-to-be-installed one
15878      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15879      test "$hardcode_minus_L_F77" != no; then
15880     # Linking always hardcodes the temporary library directory.
15881     hardcode_action_F77=relink
15882   else
15883     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15884     hardcode_action_F77=immediate
15885   fi
15886 else
15887   # We cannot hardcode anything, or else we can only hardcode existing
15888   # directories.
15889   hardcode_action_F77=unsupported
15890 fi
15891 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15892 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15893
15894 if test "$hardcode_action_F77" = relink; then
15895   # Fast installation is not supported
15896   enable_fast_install=no
15897 elif test "$shlibpath_overrides_runpath" = yes ||
15898      test "$enable_shared" = no; then
15899   # Fast installation is not necessary
15900   enable_fast_install=needless
15901 fi
15902
15903
15904 # The else clause should only fire when bootstrapping the
15905 # libtool distribution, otherwise you forgot to ship ltmain.sh
15906 # with your package, and you will get complaints that there are
15907 # no rules to generate ltmain.sh.
15908 if test -f "$ltmain"; then
15909   # See if we are running on zsh, and set the options which allow our commands through
15910   # without removal of \ escapes.
15911   if test -n "${ZSH_VERSION+set}" ; then
15912     setopt NO_GLOB_SUBST
15913   fi
15914   # Now quote all the things that may contain metacharacters while being
15915   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15916   # variables and quote the copies for generation of the libtool script.
15917   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15918     SED SHELL STRIP \
15919     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15920     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15921     deplibs_check_method reload_flag reload_cmds need_locks \
15922     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15923     lt_cv_sys_global_symbol_to_c_name_address \
15924     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15925     old_postinstall_cmds old_postuninstall_cmds \
15926     compiler_F77 \
15927     CC_F77 \
15928     LD_F77 \
15929     lt_prog_compiler_wl_F77 \
15930     lt_prog_compiler_pic_F77 \
15931     lt_prog_compiler_static_F77 \
15932     lt_prog_compiler_no_builtin_flag_F77 \
15933     export_dynamic_flag_spec_F77 \
15934     thread_safe_flag_spec_F77 \
15935     whole_archive_flag_spec_F77 \
15936     enable_shared_with_static_runtimes_F77 \
15937     old_archive_cmds_F77 \
15938     old_archive_from_new_cmds_F77 \
15939     predep_objects_F77 \
15940     postdep_objects_F77 \
15941     predeps_F77 \
15942     postdeps_F77 \
15943     compiler_lib_search_path_F77 \
15944     archive_cmds_F77 \
15945     archive_expsym_cmds_F77 \
15946     postinstall_cmds_F77 \
15947     postuninstall_cmds_F77 \
15948     old_archive_from_expsyms_cmds_F77 \
15949     allow_undefined_flag_F77 \
15950     no_undefined_flag_F77 \
15951     export_symbols_cmds_F77 \
15952     hardcode_libdir_flag_spec_F77 \
15953     hardcode_libdir_flag_spec_ld_F77 \
15954     hardcode_libdir_separator_F77 \
15955     hardcode_automatic_F77 \
15956     module_cmds_F77 \
15957     module_expsym_cmds_F77 \
15958     lt_cv_prog_compiler_c_o_F77 \
15959     exclude_expsyms_F77 \
15960     include_expsyms_F77; do
15961
15962     case $var in
15963     old_archive_cmds_F77 | \
15964     old_archive_from_new_cmds_F77 | \
15965     archive_cmds_F77 | \
15966     archive_expsym_cmds_F77 | \
15967     module_cmds_F77 | \
15968     module_expsym_cmds_F77 | \
15969     old_archive_from_expsyms_cmds_F77 | \
15970     export_symbols_cmds_F77 | \
15971     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15972     postinstall_cmds | postuninstall_cmds | \
15973     old_postinstall_cmds | old_postuninstall_cmds | \
15974     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15975       # Double-quote double-evaled strings.
15976       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15977       ;;
15978     *)
15979       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15980       ;;
15981     esac
15982   done
15983
15984   case $lt_echo in
15985   *'\$0 --fallback-echo"')
15986     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15987     ;;
15988   esac
15989
15990 cfgfile="$ofile"
15991
15992   cat <<__EOF__ >> "$cfgfile"
15993 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15994
15995 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15996
15997 # Shell to use when invoking shell scripts.
15998 SHELL=$lt_SHELL
15999
16000 # Whether or not to build shared libraries.
16001 build_libtool_libs=$enable_shared
16002
16003 # Whether or not to build static libraries.
16004 build_old_libs=$enable_static
16005
16006 # Whether or not to add -lc for building shared libraries.
16007 build_libtool_need_lc=$archive_cmds_need_lc_F77
16008
16009 # Whether or not to disallow shared libs when runtime libs are static
16010 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16011
16012 # Whether or not to optimize for fast installation.
16013 fast_install=$enable_fast_install
16014
16015 # The host system.
16016 host_alias=$host_alias
16017 host=$host
16018 host_os=$host_os
16019
16020 # The build system.
16021 build_alias=$build_alias
16022 build=$build
16023 build_os=$build_os
16024
16025 # An echo program that does not interpret backslashes.
16026 echo=$lt_echo
16027
16028 # The archiver.
16029 AR=$lt_AR
16030 AR_FLAGS=$lt_AR_FLAGS
16031
16032 # A C compiler.
16033 LTCC=$lt_LTCC
16034
16035 # LTCC compiler flags.
16036 LTCFLAGS=$lt_LTCFLAGS
16037
16038 # A language-specific compiler.
16039 CC=$lt_compiler_F77
16040
16041 # Is the compiler the GNU C compiler?
16042 with_gcc=$GCC_F77
16043
16044 # An ERE matcher.
16045 EGREP=$lt_EGREP
16046
16047 # The linker used to build libraries.
16048 LD=$lt_LD_F77
16049
16050 # Whether we need hard or soft links.
16051 LN_S=$lt_LN_S
16052
16053 # A BSD-compatible nm program.
16054 NM=$lt_NM
16055
16056 # A symbol stripping program
16057 STRIP=$lt_STRIP
16058
16059 # Used to examine libraries when file_magic_cmd begins "file"
16060 MAGIC_CMD=$MAGIC_CMD
16061
16062 # Used on cygwin: DLL creation program.
16063 DLLTOOL="$DLLTOOL"
16064
16065 # Used on cygwin: object dumper.
16066 OBJDUMP="$OBJDUMP"
16067
16068 # Used on cygwin: assembler.
16069 AS="$AS"
16070
16071 # The name of the directory that contains temporary libtool files.
16072 objdir=$objdir
16073
16074 # How to create reloadable object files.
16075 reload_flag=$lt_reload_flag
16076 reload_cmds=$lt_reload_cmds
16077
16078 # How to pass a linker flag through the compiler.
16079 wl=$lt_lt_prog_compiler_wl_F77
16080
16081 # Object file suffix (normally "o").
16082 objext="$ac_objext"
16083
16084 # Old archive suffix (normally "a").
16085 libext="$libext"
16086
16087 # Shared library suffix (normally ".so").
16088 shrext_cmds='$shrext_cmds'
16089
16090 # Executable file suffix (normally "").
16091 exeext="$exeext"
16092
16093 # Additional compiler flags for building library objects.
16094 pic_flag=$lt_lt_prog_compiler_pic_F77
16095 pic_mode=$pic_mode
16096
16097 # What is the maximum length of a command?
16098 max_cmd_len=$lt_cv_sys_max_cmd_len
16099
16100 # Does compiler simultaneously support -c and -o options?
16101 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16102
16103 # Must we lock files when doing compilation?
16104 need_locks=$lt_need_locks
16105
16106 # Do we need the lib prefix for modules?
16107 need_lib_prefix=$need_lib_prefix
16108
16109 # Do we need a version for libraries?
16110 need_version=$need_version
16111
16112 # Whether dlopen is supported.
16113 dlopen_support=$enable_dlopen
16114
16115 # Whether dlopen of programs is supported.
16116 dlopen_self=$enable_dlopen_self
16117
16118 # Whether dlopen of statically linked programs is supported.
16119 dlopen_self_static=$enable_dlopen_self_static
16120
16121 # Compiler flag to prevent dynamic linking.
16122 link_static_flag=$lt_lt_prog_compiler_static_F77
16123
16124 # Compiler flag to turn off builtin functions.
16125 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16126
16127 # Compiler flag to allow reflexive dlopens.
16128 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16129
16130 # Compiler flag to generate shared objects directly from archives.
16131 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16132
16133 # Compiler flag to generate thread-safe objects.
16134 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16135
16136 # Library versioning type.
16137 version_type=$version_type
16138
16139 # Format of library name prefix.
16140 libname_spec=$lt_libname_spec
16141
16142 # List of archive names.  First name is the real one, the rest are links.
16143 # The last name is the one that the linker finds with -lNAME.
16144 library_names_spec=$lt_library_names_spec
16145
16146 # The coded name of the library, if different from the real name.
16147 soname_spec=$lt_soname_spec
16148
16149 # Commands used to build and install an old-style archive.
16150 RANLIB=$lt_RANLIB
16151 old_archive_cmds=$lt_old_archive_cmds_F77
16152 old_postinstall_cmds=$lt_old_postinstall_cmds
16153 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16154
16155 # Create an old-style archive from a shared archive.
16156 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16157
16158 # Create a temporary old-style archive to link instead of a shared archive.
16159 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16160
16161 # Commands used to build and install a shared archive.
16162 archive_cmds=$lt_archive_cmds_F77
16163 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16164 postinstall_cmds=$lt_postinstall_cmds
16165 postuninstall_cmds=$lt_postuninstall_cmds
16166
16167 # Commands used to build a loadable module (assumed same as above if empty)
16168 module_cmds=$lt_module_cmds_F77
16169 module_expsym_cmds=$lt_module_expsym_cmds_F77
16170
16171 # Commands to strip libraries.
16172 old_striplib=$lt_old_striplib
16173 striplib=$lt_striplib
16174
16175 # Dependencies to place before the objects being linked to create a
16176 # shared library.
16177 predep_objects=$lt_predep_objects_F77
16178
16179 # Dependencies to place after the objects being linked to create a
16180 # shared library.
16181 postdep_objects=$lt_postdep_objects_F77
16182
16183 # Dependencies to place before the objects being linked to create a
16184 # shared library.
16185 predeps=$lt_predeps_F77
16186
16187 # Dependencies to place after the objects being linked to create a
16188 # shared library.
16189 postdeps=$lt_postdeps_F77
16190
16191 # The library search path used internally by the compiler when linking
16192 # a shared library.
16193 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16194
16195 # Method to check whether dependent libraries are shared objects.
16196 deplibs_check_method=$lt_deplibs_check_method
16197
16198 # Command to use when deplibs_check_method == file_magic.
16199 file_magic_cmd=$lt_file_magic_cmd
16200
16201 # Flag that allows shared libraries with undefined symbols to be built.
16202 allow_undefined_flag=$lt_allow_undefined_flag_F77
16203
16204 # Flag that forces no undefined symbols.
16205 no_undefined_flag=$lt_no_undefined_flag_F77
16206
16207 # Commands used to finish a libtool library installation in a directory.
16208 finish_cmds=$lt_finish_cmds
16209
16210 # Same as above, but a single script fragment to be evaled but not shown.
16211 finish_eval=$lt_finish_eval
16212
16213 # Take the output of nm and produce a listing of raw symbols and C names.
16214 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16215
16216 # Transform the output of nm in a proper C declaration
16217 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16218
16219 # Transform the output of nm in a C name address pair
16220 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16221
16222 # This is the shared library runtime path variable.
16223 runpath_var=$runpath_var
16224
16225 # This is the shared library path variable.
16226 shlibpath_var=$shlibpath_var
16227
16228 # Is shlibpath searched before the hard-coded library search path?
16229 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16230
16231 # How to hardcode a shared library path into an executable.
16232 hardcode_action=$hardcode_action_F77
16233
16234 # Whether we should hardcode library paths into libraries.
16235 hardcode_into_libs=$hardcode_into_libs
16236
16237 # Flag to hardcode \$libdir into a binary during linking.
16238 # This must work even if \$libdir does not exist.
16239 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16240
16241 # If ld is used when linking, flag to hardcode \$libdir into
16242 # a binary during linking. This must work even if \$libdir does
16243 # not exist.
16244 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16245
16246 # Whether we need a single -rpath flag with a separated argument.
16247 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16248
16249 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16250 # resulting binary.
16251 hardcode_direct=$hardcode_direct_F77
16252
16253 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16254 # resulting binary.
16255 hardcode_minus_L=$hardcode_minus_L_F77
16256
16257 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16258 # the resulting binary.
16259 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16260
16261 # Set to yes if building a shared library automatically hardcodes DIR into the library
16262 # and all subsequent libraries and executables linked against it.
16263 hardcode_automatic=$hardcode_automatic_F77
16264
16265 # Variables whose values should be saved in libtool wrapper scripts and
16266 # restored at relink time.
16267 variables_saved_for_relink="$variables_saved_for_relink"
16268
16269 # Whether libtool must link a program against all its dependency libraries.
16270 link_all_deplibs=$link_all_deplibs_F77
16271
16272 # Compile-time system search path for libraries
16273 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16274
16275 # Run-time system search path for libraries
16276 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16277
16278 # Fix the shell variable \$srcfile for the compiler.
16279 fix_srcfile_path="$fix_srcfile_path_F77"
16280
16281 # Set to yes if exported symbols are required.
16282 always_export_symbols=$always_export_symbols_F77
16283
16284 # The commands to list exported symbols.
16285 export_symbols_cmds=$lt_export_symbols_cmds_F77
16286
16287 # The commands to extract the exported symbol list from a shared archive.
16288 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16289
16290 # Symbols that should not be listed in the preloaded symbols.
16291 exclude_expsyms=$lt_exclude_expsyms_F77
16292
16293 # Symbols that must always be exported.
16294 include_expsyms=$lt_include_expsyms_F77
16295
16296 # ### END LIBTOOL TAG CONFIG: $tagname
16297
16298 __EOF__
16299
16300
16301 else
16302   # If there is no Makefile yet, we rely on a make rule to execute
16303   # `config.status --recheck' to rerun these tests and create the
16304   # libtool script then.
16305   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16306   if test -f "$ltmain_in"; then
16307     test -f Makefile && make "$ltmain"
16308   fi
16309 fi
16310
16311
16312 ac_ext=c
16313 ac_cpp='$CPP $CPPFLAGS'
16314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16317
16318 CC="$lt_save_CC"
16319
16320         else
16321           tagname=""
16322         fi
16323         ;;
16324
16325       GCJ)
16326         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16327
16328
16329 # Source file extension for Java test sources.
16330 ac_ext=java
16331
16332 # Object file extension for compiled Java test sources.
16333 objext=o
16334 objext_GCJ=$objext
16335
16336 # Code to be used in simple compile tests
16337 lt_simple_compile_test_code="class foo {}\n"
16338
16339 # Code to be used in simple link tests
16340 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16341
16342 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16343
16344 # If no C compiler was specified, use CC.
16345 LTCC=${LTCC-"$CC"}
16346
16347 # If no C compiler flags were specified, use CFLAGS.
16348 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16349
16350 # Allow CC to be a program name with arguments.
16351 compiler=$CC
16352
16353
16354 # save warnings/boilerplate of simple test code
16355 ac_outfile=conftest.$ac_objext
16356 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16357 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16358 _lt_compiler_boilerplate=`cat conftest.err`
16359 $rm conftest*
16360
16361 ac_outfile=conftest.$ac_objext
16362 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16363 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16364 _lt_linker_boilerplate=`cat conftest.err`
16365 $rm conftest*
16366
16367
16368 # Allow CC to be a program name with arguments.
16369 lt_save_CC="$CC"
16370 CC=${GCJ-"gcj"}
16371 compiler=$CC
16372 compiler_GCJ=$CC
16373 for cc_temp in $compiler""; do
16374   case $cc_temp in
16375     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16376     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16377     \-*) ;;
16378     *) break;;
16379   esac
16380 done
16381 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16382
16383
16384 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16385 archive_cmds_need_lc_GCJ=no
16386
16387 old_archive_cmds_GCJ=$old_archive_cmds
16388
16389
16390 lt_prog_compiler_no_builtin_flag_GCJ=
16391
16392 if test "$GCC" = yes; then
16393   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16394
16395
16396 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16397 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16398 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16399   echo $ECHO_N "(cached) $ECHO_C" >&6
16400 else
16401   lt_cv_prog_compiler_rtti_exceptions=no
16402   ac_outfile=conftest.$ac_objext
16403    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16404    lt_compiler_flag="-fno-rtti -fno-exceptions"
16405    # Insert the option either (1) after the last *FLAGS variable, or
16406    # (2) before a word containing "conftest.", or (3) at the end.
16407    # Note that $ac_compile itself does not contain backslashes and begins
16408    # with a dollar sign (not a hyphen), so the echo should work correctly.
16409    # The option is referenced via a variable to avoid confusing sed.
16410    lt_compile=`echo "$ac_compile" | $SED \
16411    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16412    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16413    -e 's:$: $lt_compiler_flag:'`
16414    (eval echo "\"\$as_me:16414: $lt_compile\"" >&5)
16415    (eval "$lt_compile" 2>conftest.err)
16416    ac_status=$?
16417    cat conftest.err >&5
16418    echo "$as_me:16418: \$? = $ac_status" >&5
16419    if (exit $ac_status) && test -s "$ac_outfile"; then
16420      # The compiler can only warn and ignore the option if not recognized
16421      # So say no if there are warnings other than the usual output.
16422      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16423      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16424      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16425        lt_cv_prog_compiler_rtti_exceptions=yes
16426      fi
16427    fi
16428    $rm conftest*
16429
16430 fi
16431 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16432 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16433
16434 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16435     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16436 else
16437     :
16438 fi
16439
16440 fi
16441
16442 lt_prog_compiler_wl_GCJ=
16443 lt_prog_compiler_pic_GCJ=
16444 lt_prog_compiler_static_GCJ=
16445
16446 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16447 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16448
16449   if test "$GCC" = yes; then
16450     lt_prog_compiler_wl_GCJ='-Wl,'
16451     lt_prog_compiler_static_GCJ='-static'
16452
16453     case $host_os in
16454       aix*)
16455       # All AIX code is PIC.
16456       if test "$host_cpu" = ia64; then
16457         # AIX 5 now supports IA64 processor
16458         lt_prog_compiler_static_GCJ='-Bstatic'
16459       fi
16460       ;;
16461
16462     amigaos*)
16463       # FIXME: we need at least 68020 code to build shared libraries, but
16464       # adding the `-m68020' flag to GCC prevents building anything better,
16465       # like `-m68040'.
16466       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16467       ;;
16468
16469     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16470       # PIC is the default for these OSes.
16471       ;;
16472
16473     mingw* | pw32* | os2*)
16474       # This hack is so that the source file can tell whether it is being
16475       # built for inclusion in a dll (and should export symbols for example).
16476       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16477       ;;
16478
16479     darwin* | rhapsody*)
16480       # PIC is the default on this platform
16481       # Common symbols not allowed in MH_DYLIB files
16482       lt_prog_compiler_pic_GCJ='-fno-common'
16483       ;;
16484
16485     interix3*)
16486       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16487       # Instead, we relocate shared libraries at runtime.
16488       ;;
16489
16490     msdosdjgpp*)
16491       # Just because we use GCC doesn't mean we suddenly get shared libraries
16492       # on systems that don't support them.
16493       lt_prog_compiler_can_build_shared_GCJ=no
16494       enable_shared=no
16495       ;;
16496
16497     sysv4*MP*)
16498       if test -d /usr/nec; then
16499         lt_prog_compiler_pic_GCJ=-Kconform_pic
16500       fi
16501       ;;
16502
16503     hpux*)
16504       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16505       # not for PA HP-UX.
16506       case $host_cpu in
16507       hppa*64*|ia64*)
16508         # +Z the default
16509         ;;
16510       *)
16511         lt_prog_compiler_pic_GCJ='-fPIC'
16512         ;;
16513       esac
16514       ;;
16515
16516     *)
16517       lt_prog_compiler_pic_GCJ='-fPIC'
16518       ;;
16519     esac
16520   else
16521     # PORTME Check for flag to pass linker flags through the system compiler.
16522     case $host_os in
16523     aix*)
16524       lt_prog_compiler_wl_GCJ='-Wl,'
16525       if test "$host_cpu" = ia64; then
16526         # AIX 5 now supports IA64 processor
16527         lt_prog_compiler_static_GCJ='-Bstatic'
16528       else
16529         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16530       fi
16531       ;;
16532       darwin*)
16533         # PIC is the default on this platform
16534         # Common symbols not allowed in MH_DYLIB files
16535        case $cc_basename in
16536          xlc*)
16537          lt_prog_compiler_pic_GCJ='-qnocommon'
16538          lt_prog_compiler_wl_GCJ='-Wl,'
16539          ;;
16540        esac
16541        ;;
16542
16543     mingw* | pw32* | os2*)
16544       # This hack is so that the source file can tell whether it is being
16545       # built for inclusion in a dll (and should export symbols for example).
16546       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16547       ;;
16548
16549     hpux9* | hpux10* | hpux11*)
16550       lt_prog_compiler_wl_GCJ='-Wl,'
16551       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16552       # not for PA HP-UX.
16553       case $host_cpu in
16554       hppa*64*|ia64*)
16555         # +Z the default
16556         ;;
16557       *)
16558         lt_prog_compiler_pic_GCJ='+Z'
16559         ;;
16560       esac
16561       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16562       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16563       ;;
16564
16565     irix5* | irix6* | nonstopux*)
16566       lt_prog_compiler_wl_GCJ='-Wl,'
16567       # PIC (with -KPIC) is the default.
16568       lt_prog_compiler_static_GCJ='-non_shared'
16569       ;;
16570
16571     newsos6)
16572       lt_prog_compiler_pic_GCJ='-KPIC'
16573       lt_prog_compiler_static_GCJ='-Bstatic'
16574       ;;
16575
16576     linux* | k*bsd*-gnu)
16577       case $cc_basename in
16578       icc* | ecc*)
16579         lt_prog_compiler_wl_GCJ='-Wl,'
16580         lt_prog_compiler_pic_GCJ='-KPIC'
16581         lt_prog_compiler_static_GCJ='-static'
16582         ;;
16583       pgcc* | pgf77* | pgf90* | pgf95*)
16584         # Portland Group compilers (*not* the Pentium gcc compiler,
16585         # which looks to be a dead project)
16586         lt_prog_compiler_wl_GCJ='-Wl,'
16587         lt_prog_compiler_pic_GCJ='-fpic'
16588         lt_prog_compiler_static_GCJ='-Bstatic'
16589         ;;
16590       ccc*)
16591         lt_prog_compiler_wl_GCJ='-Wl,'
16592         # All Alpha code is PIC.
16593         lt_prog_compiler_static_GCJ='-non_shared'
16594         ;;
16595       esac
16596       ;;
16597
16598     osf3* | osf4* | osf5*)
16599       lt_prog_compiler_wl_GCJ='-Wl,'
16600       # All OSF/1 code is PIC.
16601       lt_prog_compiler_static_GCJ='-non_shared'
16602       ;;
16603
16604     solaris*)
16605       lt_prog_compiler_pic_GCJ='-KPIC'
16606       lt_prog_compiler_static_GCJ='-Bstatic'
16607       case $cc_basename in
16608       f77* | f90* | f95*)
16609         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16610       *)
16611         lt_prog_compiler_wl_GCJ='-Wl,';;
16612       esac
16613       ;;
16614
16615     sunos4*)
16616       lt_prog_compiler_wl_GCJ='-Qoption ld '
16617       lt_prog_compiler_pic_GCJ='-PIC'
16618       lt_prog_compiler_static_GCJ='-Bstatic'
16619       ;;
16620
16621     sysv4 | sysv4.2uw2* | sysv4.3*)
16622       lt_prog_compiler_wl_GCJ='-Wl,'
16623       lt_prog_compiler_pic_GCJ='-KPIC'
16624       lt_prog_compiler_static_GCJ='-Bstatic'
16625       ;;
16626
16627     sysv4*MP*)
16628       if test -d /usr/nec ;then
16629         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16630         lt_prog_compiler_static_GCJ='-Bstatic'
16631       fi
16632       ;;
16633
16634     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16635       lt_prog_compiler_wl_GCJ='-Wl,'
16636       lt_prog_compiler_pic_GCJ='-KPIC'
16637       lt_prog_compiler_static_GCJ='-Bstatic'
16638       ;;
16639
16640     unicos*)
16641       lt_prog_compiler_wl_GCJ='-Wl,'
16642       lt_prog_compiler_can_build_shared_GCJ=no
16643       ;;
16644
16645     uts4*)
16646       lt_prog_compiler_pic_GCJ='-pic'
16647       lt_prog_compiler_static_GCJ='-Bstatic'
16648       ;;
16649
16650     *)
16651       lt_prog_compiler_can_build_shared_GCJ=no
16652       ;;
16653     esac
16654   fi
16655
16656 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16657 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16658
16659 #
16660 # Check to make sure the PIC flag actually works.
16661 #
16662 if test -n "$lt_prog_compiler_pic_GCJ"; then
16663
16664 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16665 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16666 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16667   echo $ECHO_N "(cached) $ECHO_C" >&6
16668 else
16669   lt_prog_compiler_pic_works_GCJ=no
16670   ac_outfile=conftest.$ac_objext
16671    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16672    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16673    # Insert the option either (1) after the last *FLAGS variable, or
16674    # (2) before a word containing "conftest.", or (3) at the end.
16675    # Note that $ac_compile itself does not contain backslashes and begins
16676    # with a dollar sign (not a hyphen), so the echo should work correctly.
16677    # The option is referenced via a variable to avoid confusing sed.
16678    lt_compile=`echo "$ac_compile" | $SED \
16679    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16680    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16681    -e 's:$: $lt_compiler_flag:'`
16682    (eval echo "\"\$as_me:16682: $lt_compile\"" >&5)
16683    (eval "$lt_compile" 2>conftest.err)
16684    ac_status=$?
16685    cat conftest.err >&5
16686    echo "$as_me:16686: \$? = $ac_status" >&5
16687    if (exit $ac_status) && test -s "$ac_outfile"; then
16688      # The compiler can only warn and ignore the option if not recognized
16689      # So say no if there are warnings other than the usual output.
16690      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16691      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16692      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16693        lt_prog_compiler_pic_works_GCJ=yes
16694      fi
16695    fi
16696    $rm conftest*
16697
16698 fi
16699 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16700 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16701
16702 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16703     case $lt_prog_compiler_pic_GCJ in
16704      "" | " "*) ;;
16705      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16706      esac
16707 else
16708     lt_prog_compiler_pic_GCJ=
16709      lt_prog_compiler_can_build_shared_GCJ=no
16710 fi
16711
16712 fi
16713 case $host_os in
16714   # For platforms which do not support PIC, -DPIC is meaningless:
16715   *djgpp*)
16716     lt_prog_compiler_pic_GCJ=
16717     ;;
16718   *)
16719     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16720     ;;
16721 esac
16722
16723 #
16724 # Check to make sure the static flag actually works.
16725 #
16726 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16727 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16728 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16729 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16730   echo $ECHO_N "(cached) $ECHO_C" >&6
16731 else
16732   lt_prog_compiler_static_works_GCJ=no
16733    save_LDFLAGS="$LDFLAGS"
16734    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16735    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16736    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16737      # The linker can only warn and ignore the option if not recognized
16738      # So say no if there are warnings
16739      if test -s conftest.err; then
16740        # Append any errors to the config.log.
16741        cat conftest.err 1>&5
16742        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16743        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16744        if diff conftest.exp conftest.er2 >/dev/null; then
16745          lt_prog_compiler_static_works_GCJ=yes
16746        fi
16747      else
16748        lt_prog_compiler_static_works_GCJ=yes
16749      fi
16750    fi
16751    $rm conftest*
16752    LDFLAGS="$save_LDFLAGS"
16753
16754 fi
16755 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16756 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16757
16758 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16759     :
16760 else
16761     lt_prog_compiler_static_GCJ=
16762 fi
16763
16764
16765 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16766 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16767 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16768   echo $ECHO_N "(cached) $ECHO_C" >&6
16769 else
16770   lt_cv_prog_compiler_c_o_GCJ=no
16771    $rm -r conftest 2>/dev/null
16772    mkdir conftest
16773    cd conftest
16774    mkdir out
16775    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16776
16777    lt_compiler_flag="-o out/conftest2.$ac_objext"
16778    # Insert the option either (1) after the last *FLAGS variable, or
16779    # (2) before a word containing "conftest.", or (3) at the end.
16780    # Note that $ac_compile itself does not contain backslashes and begins
16781    # with a dollar sign (not a hyphen), so the echo should work correctly.
16782    lt_compile=`echo "$ac_compile" | $SED \
16783    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16784    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16785    -e 's:$: $lt_compiler_flag:'`
16786    (eval echo "\"\$as_me:16786: $lt_compile\"" >&5)
16787    (eval "$lt_compile" 2>out/conftest.err)
16788    ac_status=$?
16789    cat out/conftest.err >&5
16790    echo "$as_me:16790: \$? = $ac_status" >&5
16791    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16792    then
16793      # The compiler can only warn and ignore the option if not recognized
16794      # So say no if there are warnings
16795      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16796      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16797      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16798        lt_cv_prog_compiler_c_o_GCJ=yes
16799      fi
16800    fi
16801    chmod u+w . 2>&5
16802    $rm conftest*
16803    # SGI C++ compiler will create directory out/ii_files/ for
16804    # template instantiation
16805    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16806    $rm out/* && rmdir out
16807    cd ..
16808    rmdir conftest
16809    $rm conftest*
16810
16811 fi
16812 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16813 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16814
16815
16816 hard_links="nottested"
16817 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16818   # do not overwrite the value of need_locks provided by the user
16819   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16820 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16821   hard_links=yes
16822   $rm conftest*
16823   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16824   touch conftest.a
16825   ln conftest.a conftest.b 2>&5 || hard_links=no
16826   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16827   { echo "$as_me:$LINENO: result: $hard_links" >&5
16828 echo "${ECHO_T}$hard_links" >&6; }
16829   if test "$hard_links" = no; then
16830     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16831 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16832     need_locks=warn
16833   fi
16834 else
16835   need_locks=no
16836 fi
16837
16838 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16839 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16840
16841   runpath_var=
16842   allow_undefined_flag_GCJ=
16843   enable_shared_with_static_runtimes_GCJ=no
16844   archive_cmds_GCJ=
16845   archive_expsym_cmds_GCJ=
16846   old_archive_From_new_cmds_GCJ=
16847   old_archive_from_expsyms_cmds_GCJ=
16848   export_dynamic_flag_spec_GCJ=
16849   whole_archive_flag_spec_GCJ=
16850   thread_safe_flag_spec_GCJ=
16851   hardcode_libdir_flag_spec_GCJ=
16852   hardcode_libdir_flag_spec_ld_GCJ=
16853   hardcode_libdir_separator_GCJ=
16854   hardcode_direct_GCJ=no
16855   hardcode_minus_L_GCJ=no
16856   hardcode_shlibpath_var_GCJ=unsupported
16857   link_all_deplibs_GCJ=unknown
16858   hardcode_automatic_GCJ=no
16859   module_cmds_GCJ=
16860   module_expsym_cmds_GCJ=
16861   always_export_symbols_GCJ=no
16862   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16863   # include_expsyms should be a list of space-separated symbols to be *always*
16864   # included in the symbol list
16865   include_expsyms_GCJ=
16866   # exclude_expsyms can be an extended regexp of symbols to exclude
16867   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16868   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16869   # as well as any symbol that contains `d'.
16870   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16871   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16872   # platforms (ab)use it in PIC code, but their linkers get confused if
16873   # the symbol is explicitly referenced.  Since portable code cannot
16874   # rely on this symbol name, it's probably fine to never include it in
16875   # preloaded symbol tables.
16876   extract_expsyms_cmds=
16877   # Just being paranoid about ensuring that cc_basename is set.
16878   for cc_temp in $compiler""; do
16879   case $cc_temp in
16880     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16881     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16882     \-*) ;;
16883     *) break;;
16884   esac
16885 done
16886 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16887
16888   case $host_os in
16889   cygwin* | mingw* | pw32*)
16890     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16891     # When not using gcc, we currently assume that we are using
16892     # Microsoft Visual C++.
16893     if test "$GCC" != yes; then
16894       with_gnu_ld=no
16895     fi
16896     ;;
16897   interix*)
16898     # we just hope/assume this is gcc and not c89 (= MSVC++)
16899     with_gnu_ld=yes
16900     ;;
16901   openbsd*)
16902     with_gnu_ld=no
16903     ;;
16904   esac
16905
16906   ld_shlibs_GCJ=yes
16907   if test "$with_gnu_ld" = yes; then
16908     # If archive_cmds runs LD, not CC, wlarc should be empty
16909     wlarc='${wl}'
16910
16911     # Set some defaults for GNU ld with shared library support. These
16912     # are reset later if shared libraries are not supported. Putting them
16913     # here allows them to be overridden if necessary.
16914     runpath_var=LD_RUN_PATH
16915     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16916     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16917     # ancient GNU ld didn't support --whole-archive et. al.
16918     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16919         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16920       else
16921         whole_archive_flag_spec_GCJ=
16922     fi
16923     supports_anon_versioning=no
16924     case `$LD -v 2>/dev/null` in
16925       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16926       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16927       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16928       *\ 2.11.*) ;; # other 2.11 versions
16929       *) supports_anon_versioning=yes ;;
16930     esac
16931
16932     # See if GNU ld supports shared libraries.
16933     case $host_os in
16934     aix3* | aix4* | aix5*)
16935       # On AIX/PPC, the GNU linker is very broken
16936       if test "$host_cpu" != ia64; then
16937         ld_shlibs_GCJ=no
16938         cat <<EOF 1>&2
16939
16940 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16941 *** to be unable to reliably create shared libraries on AIX.
16942 *** Therefore, libtool is disabling shared libraries support.  If you
16943 *** really care for shared libraries, you may want to modify your PATH
16944 *** so that a non-GNU linker is found, and then restart.
16945
16946 EOF
16947       fi
16948       ;;
16949
16950     amigaos*)
16951       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)'
16952       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16953       hardcode_minus_L_GCJ=yes
16954
16955       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16956       # that the semantics of dynamic libraries on AmigaOS, at least up
16957       # to version 4, is to share data among multiple programs linked
16958       # with the same dynamic library.  Since this doesn't match the
16959       # behavior of shared libraries on other platforms, we can't use
16960       # them.
16961       ld_shlibs_GCJ=no
16962       ;;
16963
16964     beos*)
16965       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16966         allow_undefined_flag_GCJ=unsupported
16967         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16968         # support --undefined.  This deserves some investigation.  FIXME
16969         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16970       else
16971         ld_shlibs_GCJ=no
16972       fi
16973       ;;
16974
16975     cygwin* | mingw* | pw32*)
16976       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16977       # as there is no search path for DLLs.
16978       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16979       allow_undefined_flag_GCJ=unsupported
16980       always_export_symbols_GCJ=no
16981       enable_shared_with_static_runtimes_GCJ=yes
16982       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16983
16984       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16985         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16986         # If the export-symbols file already is a .def file (1st line
16987         # is EXPORTS), use it as is; otherwise, prepend...
16988         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16989           cp $export_symbols $output_objdir/$soname.def;
16990         else
16991           echo EXPORTS > $output_objdir/$soname.def;
16992           cat $export_symbols >> $output_objdir/$soname.def;
16993         fi~
16994         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16995       else
16996         ld_shlibs_GCJ=no
16997       fi
16998       ;;
16999
17000     interix3*)
17001       hardcode_direct_GCJ=no
17002       hardcode_shlibpath_var_GCJ=no
17003       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17004       export_dynamic_flag_spec_GCJ='${wl}-E'
17005       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17006       # Instead, shared libraries are loaded at an image base (0x10000000 by
17007       # default) and relocated if they conflict, which is a slow very memory
17008       # consuming and fragmenting process.  To avoid this, we pick a random,
17009       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17010       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17011       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'
17012       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'
17013       ;;
17014
17015     linux* | k*bsd*-gnu)
17016       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17017         tmp_addflag=
17018         case $cc_basename,$host_cpu in
17019         pgcc*)                          # Portland Group C compiler
17020           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'
17021           tmp_addflag=' $pic_flag'
17022           ;;
17023         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17024           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'
17025           tmp_addflag=' $pic_flag -Mnomain' ;;
17026         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17027           tmp_addflag=' -i_dynamic' ;;
17028         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17029           tmp_addflag=' -i_dynamic -nofor_main' ;;
17030         ifc* | ifort*)                  # Intel Fortran compiler
17031           tmp_addflag=' -nofor_main' ;;
17032         esac
17033         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17034
17035         if test $supports_anon_versioning = yes; then
17036           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17037   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17038   $echo "local: *; };" >> $output_objdir/$libname.ver~
17039           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17040         fi
17041         link_all_deplibs_GCJ=no
17042       else
17043         ld_shlibs_GCJ=no
17044       fi
17045       ;;
17046
17047     netbsd* | netbsdelf*-gnu)
17048       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17049         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17050         wlarc=
17051       else
17052         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17053         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17054       fi
17055       ;;
17056
17057     solaris*)
17058       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17059         ld_shlibs_GCJ=no
17060         cat <<EOF 1>&2
17061
17062 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17063 *** create shared libraries on Solaris systems.  Therefore, libtool
17064 *** is disabling shared libraries support.  We urge you to upgrade GNU
17065 *** binutils to release 2.9.1 or newer.  Another option is to modify
17066 *** your PATH or compiler configuration so that the native linker is
17067 *** used, and then restart.
17068
17069 EOF
17070       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17071         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17072         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17073       else
17074         ld_shlibs_GCJ=no
17075       fi
17076       ;;
17077
17078     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17079       case `$LD -v 2>&1` in
17080         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17081         ld_shlibs_GCJ=no
17082         cat <<_LT_EOF 1>&2
17083
17084 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17085 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17086 *** is disabling shared libraries support.  We urge you to upgrade GNU
17087 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17088 *** your PATH or compiler configuration so that the native linker is
17089 *** used, and then restart.
17090
17091 _LT_EOF
17092         ;;
17093         *)
17094           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17095             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17096             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17097             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17098           else
17099             ld_shlibs_GCJ=no
17100           fi
17101         ;;
17102       esac
17103       ;;
17104
17105     sunos4*)
17106       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17107       wlarc=
17108       hardcode_direct_GCJ=yes
17109       hardcode_shlibpath_var_GCJ=no
17110       ;;
17111
17112     *)
17113       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17114         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17115         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17116       else
17117         ld_shlibs_GCJ=no
17118       fi
17119       ;;
17120     esac
17121
17122     if test "$ld_shlibs_GCJ" = no; then
17123       runpath_var=
17124       hardcode_libdir_flag_spec_GCJ=
17125       export_dynamic_flag_spec_GCJ=
17126       whole_archive_flag_spec_GCJ=
17127     fi
17128   else
17129     # PORTME fill in a description of your system's linker (not GNU ld)
17130     case $host_os in
17131     aix3*)
17132       allow_undefined_flag_GCJ=unsupported
17133       always_export_symbols_GCJ=yes
17134       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'
17135       # Note: this linker hardcodes the directories in LIBPATH if there
17136       # are no directories specified by -L.
17137       hardcode_minus_L_GCJ=yes
17138       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17139         # Neither direct hardcoding nor static linking is supported with a
17140         # broken collect2.
17141         hardcode_direct_GCJ=unsupported
17142       fi
17143       ;;
17144
17145     aix4* | aix5*)
17146       if test "$host_cpu" = ia64; then
17147         # On IA64, the linker does run time linking by default, so we don't
17148         # have to do anything special.
17149         aix_use_runtimelinking=no
17150         exp_sym_flag='-Bexport'
17151         no_entry_flag=""
17152       else
17153         # If we're using GNU nm, then we don't want the "-C" option.
17154         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17155         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17156           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'
17157         else
17158           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'
17159         fi
17160         aix_use_runtimelinking=no
17161
17162         # Test if we are trying to use run time linking or normal
17163         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17164         # need to do runtime linking.
17165         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17166           for ld_flag in $LDFLAGS; do
17167           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17168             aix_use_runtimelinking=yes
17169             break
17170           fi
17171           done
17172           ;;
17173         esac
17174
17175         exp_sym_flag='-bexport'
17176         no_entry_flag='-bnoentry'
17177       fi
17178
17179       # When large executables or shared objects are built, AIX ld can
17180       # have problems creating the table of contents.  If linking a library
17181       # or program results in "error TOC overflow" add -mminimal-toc to
17182       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17183       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17184
17185       archive_cmds_GCJ=''
17186       hardcode_direct_GCJ=yes
17187       hardcode_libdir_separator_GCJ=':'
17188       link_all_deplibs_GCJ=yes
17189
17190       if test "$GCC" = yes; then
17191         case $host_os in aix4.[012]|aix4.[012].*)
17192         # We only want to do this on AIX 4.2 and lower, the check
17193         # below for broken collect2 doesn't work under 4.3+
17194           collect2name=`${CC} -print-prog-name=collect2`
17195           if test -f "$collect2name" && \
17196            strings "$collect2name" | grep resolve_lib_name >/dev/null
17197           then
17198           # We have reworked collect2
17199           hardcode_direct_GCJ=yes
17200           else
17201           # We have old collect2
17202           hardcode_direct_GCJ=unsupported
17203           # It fails to find uninstalled libraries when the uninstalled
17204           # path is not listed in the libpath.  Setting hardcode_minus_L
17205           # to unsupported forces relinking
17206           hardcode_minus_L_GCJ=yes
17207           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17208           hardcode_libdir_separator_GCJ=
17209           fi
17210           ;;
17211         esac
17212         shared_flag='-shared'
17213         if test "$aix_use_runtimelinking" = yes; then
17214           shared_flag="$shared_flag "'${wl}-G'
17215         fi
17216       else
17217         # not using gcc
17218         if test "$host_cpu" = ia64; then
17219         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17220         # chokes on -Wl,-G. The following line is correct:
17221           shared_flag='-G'
17222         else
17223           if test "$aix_use_runtimelinking" = yes; then
17224             shared_flag='${wl}-G'
17225           else
17226             shared_flag='${wl}-bM:SRE'
17227           fi
17228         fi
17229       fi
17230
17231       # It seems that -bexpall does not export symbols beginning with
17232       # underscore (_), so it is better to generate a list of symbols to export.
17233       always_export_symbols_GCJ=yes
17234       if test "$aix_use_runtimelinking" = yes; then
17235         # Warning - without using the other runtime loading flags (-brtl),
17236         # -berok will link without error, but may produce a broken library.
17237         allow_undefined_flag_GCJ='-berok'
17238        # Determine the default libpath from the value encoded in an empty executable.
17239        cat >conftest.$ac_ext <<_ACEOF
17240 /* confdefs.h.  */
17241 _ACEOF
17242 cat confdefs.h >>conftest.$ac_ext
17243 cat >>conftest.$ac_ext <<_ACEOF
17244 /* end confdefs.h.  */
17245
17246 int
17247 main ()
17248 {
17249
17250   ;
17251   return 0;
17252 }
17253 _ACEOF
17254 rm -f conftest.$ac_objext conftest$ac_exeext
17255 if { (ac_try="$ac_link"
17256 case "(($ac_try" in
17257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258   *) ac_try_echo=$ac_try;;
17259 esac
17260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261   (eval "$ac_link") 2>conftest.er1
17262   ac_status=$?
17263   grep -v '^ *+' conftest.er1 >conftest.err
17264   rm -f conftest.er1
17265   cat conftest.err >&5
17266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267   (exit $ac_status); } && {
17268          test -z "$ac_c_werror_flag" ||
17269          test ! -s conftest.err
17270        } && test -s conftest$ac_exeext &&
17271        $as_test_x conftest$ac_exeext; then
17272
17273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17274 }'`
17275 # Check for a 64-bit object if we didn't find anything.
17276 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; }
17277 }'`; fi
17278 else
17279   echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17281
17282
17283 fi
17284
17285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17286       conftest$ac_exeext conftest.$ac_ext
17287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17288
17289        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17290         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"
17291        else
17292         if test "$host_cpu" = ia64; then
17293           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17294           allow_undefined_flag_GCJ="-z nodefs"
17295           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"
17296         else
17297          # Determine the default libpath from the value encoded in an empty executable.
17298          cat >conftest.$ac_ext <<_ACEOF
17299 /* confdefs.h.  */
17300 _ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h.  */
17304
17305 int
17306 main ()
17307 {
17308
17309   ;
17310   return 0;
17311 }
17312 _ACEOF
17313 rm -f conftest.$ac_objext conftest$ac_exeext
17314 if { (ac_try="$ac_link"
17315 case "(($ac_try" in
17316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17317   *) ac_try_echo=$ac_try;;
17318 esac
17319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17320   (eval "$ac_link") 2>conftest.er1
17321   ac_status=$?
17322   grep -v '^ *+' conftest.er1 >conftest.err
17323   rm -f conftest.er1
17324   cat conftest.err >&5
17325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326   (exit $ac_status); } && {
17327          test -z "$ac_c_werror_flag" ||
17328          test ! -s conftest.err
17329        } && test -s conftest$ac_exeext &&
17330        $as_test_x conftest$ac_exeext; then
17331
17332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17333 }'`
17334 # Check for a 64-bit object if we didn't find anything.
17335 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; }
17336 }'`; fi
17337 else
17338   echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17340
17341
17342 fi
17343
17344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17345       conftest$ac_exeext conftest.$ac_ext
17346 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17347
17348          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17349           # Warning - without using the other run time loading flags,
17350           # -berok will link without error, but may produce a broken library.
17351           no_undefined_flag_GCJ=' ${wl}-bernotok'
17352           allow_undefined_flag_GCJ=' ${wl}-berok'
17353           # Exported symbols can be pulled into shared objects from archives
17354           whole_archive_flag_spec_GCJ='$convenience'
17355           archive_cmds_need_lc_GCJ=yes
17356           # This is similar to how AIX traditionally builds its shared libraries.
17357           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'
17358         fi
17359       fi
17360       ;;
17361
17362     amigaos*)
17363       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)'
17364       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17365       hardcode_minus_L_GCJ=yes
17366       # see comment about different semantics on the GNU ld section
17367       ld_shlibs_GCJ=no
17368       ;;
17369
17370     bsdi[45]*)
17371       export_dynamic_flag_spec_GCJ=-rdynamic
17372       ;;
17373
17374     cygwin* | mingw* | pw32*)
17375       # When not using gcc, we currently assume that we are using
17376       # Microsoft Visual C++.
17377       # hardcode_libdir_flag_spec is actually meaningless, as there is
17378       # no search path for DLLs.
17379       hardcode_libdir_flag_spec_GCJ=' '
17380       allow_undefined_flag_GCJ=unsupported
17381       # Tell ltmain to make .lib files, not .a files.
17382       libext=lib
17383       # Tell ltmain to make .dll files, not .so files.
17384       shrext_cmds=".dll"
17385       # FIXME: Setting linknames here is a bad hack.
17386       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17387       # The linker will automatically build a .lib file if we build a DLL.
17388       old_archive_From_new_cmds_GCJ='true'
17389       # FIXME: Should let the user specify the lib program.
17390       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17391       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17392       enable_shared_with_static_runtimes_GCJ=yes
17393       ;;
17394
17395     darwin* | rhapsody*)
17396       case $host_os in
17397         rhapsody* | darwin1.[012])
17398          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17399          ;;
17400        *) # Darwin 1.3 on
17401          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17402            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17403          else
17404            case ${MACOSX_DEPLOYMENT_TARGET} in
17405              10.[012])
17406                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17407                ;;
17408              10.*)
17409                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17410                ;;
17411            esac
17412          fi
17413          ;;
17414       esac
17415       archive_cmds_need_lc_GCJ=no
17416       hardcode_direct_GCJ=no
17417       hardcode_automatic_GCJ=yes
17418       hardcode_shlibpath_var_GCJ=unsupported
17419       whole_archive_flag_spec_GCJ=''
17420       link_all_deplibs_GCJ=yes
17421     if test "$GCC" = yes ; then
17422         output_verbose_link_cmd='echo'
17423         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17424       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17425       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17426       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}'
17427       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}'
17428     else
17429       case $cc_basename in
17430         xlc*)
17431          output_verbose_link_cmd='echo'
17432          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17433          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17434           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17435          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}'
17436           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}'
17437           ;;
17438        *)
17439          ld_shlibs_GCJ=no
17440           ;;
17441       esac
17442     fi
17443       ;;
17444
17445     dgux*)
17446       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17447       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17448       hardcode_shlibpath_var_GCJ=no
17449       ;;
17450
17451     freebsd1*)
17452       ld_shlibs_GCJ=no
17453       ;;
17454
17455     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17456     # support.  Future versions do this automatically, but an explicit c++rt0.o
17457     # does not break anything, and helps significantly (at the cost of a little
17458     # extra space).
17459     freebsd2.2*)
17460       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17461       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17462       hardcode_direct_GCJ=yes
17463       hardcode_shlibpath_var_GCJ=no
17464       ;;
17465
17466     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17467     freebsd2*)
17468       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17469       hardcode_direct_GCJ=yes
17470       hardcode_minus_L_GCJ=yes
17471       hardcode_shlibpath_var_GCJ=no
17472       ;;
17473
17474     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17475     freebsd* | dragonfly*)
17476       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17477       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17478       hardcode_direct_GCJ=yes
17479       hardcode_shlibpath_var_GCJ=no
17480       ;;
17481
17482     hpux9*)
17483       if test "$GCC" = yes; then
17484         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'
17485       else
17486         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'
17487       fi
17488       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17489       hardcode_libdir_separator_GCJ=:
17490       hardcode_direct_GCJ=yes
17491
17492       # hardcode_minus_L: Not really in the search PATH,
17493       # but as the default location of the library.
17494       hardcode_minus_L_GCJ=yes
17495       export_dynamic_flag_spec_GCJ='${wl}-E'
17496       ;;
17497
17498     hpux10*)
17499       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17500         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17501       else
17502         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17503       fi
17504       if test "$with_gnu_ld" = no; then
17505         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17506         hardcode_libdir_separator_GCJ=:
17507
17508         hardcode_direct_GCJ=yes
17509         export_dynamic_flag_spec_GCJ='${wl}-E'
17510
17511         # hardcode_minus_L: Not really in the search PATH,
17512         # but as the default location of the library.
17513         hardcode_minus_L_GCJ=yes
17514       fi
17515       ;;
17516
17517     hpux11*)
17518       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17519         case $host_cpu in
17520         hppa*64*)
17521           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17522           ;;
17523         ia64*)
17524           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17525           ;;
17526         *)
17527           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17528           ;;
17529         esac
17530       else
17531         case $host_cpu in
17532         hppa*64*)
17533           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17534           ;;
17535         ia64*)
17536           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17537           ;;
17538         *)
17539           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17540           ;;
17541         esac
17542       fi
17543       if test "$with_gnu_ld" = no; then
17544         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17545         hardcode_libdir_separator_GCJ=:
17546
17547         case $host_cpu in
17548         hppa*64*|ia64*)
17549           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17550           hardcode_direct_GCJ=no
17551           hardcode_shlibpath_var_GCJ=no
17552           ;;
17553         *)
17554           hardcode_direct_GCJ=yes
17555           export_dynamic_flag_spec_GCJ='${wl}-E'
17556
17557           # hardcode_minus_L: Not really in the search PATH,
17558           # but as the default location of the library.
17559           hardcode_minus_L_GCJ=yes
17560           ;;
17561         esac
17562       fi
17563       ;;
17564
17565     irix5* | irix6* | nonstopux*)
17566       if test "$GCC" = yes; then
17567         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'
17568       else
17569         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'
17570         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17571       fi
17572       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17573       hardcode_libdir_separator_GCJ=:
17574       link_all_deplibs_GCJ=yes
17575       ;;
17576
17577     netbsd* | netbsdelf*-gnu)
17578       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17579         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17580       else
17581         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17582       fi
17583       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17584       hardcode_direct_GCJ=yes
17585       hardcode_shlibpath_var_GCJ=no
17586       ;;
17587
17588     newsos6)
17589       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17590       hardcode_direct_GCJ=yes
17591       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17592       hardcode_libdir_separator_GCJ=:
17593       hardcode_shlibpath_var_GCJ=no
17594       ;;
17595
17596     openbsd*)
17597       hardcode_direct_GCJ=yes
17598       hardcode_shlibpath_var_GCJ=no
17599       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17600         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17601         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17602         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17603         export_dynamic_flag_spec_GCJ='${wl}-E'
17604       else
17605        case $host_os in
17606          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17607            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17608            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17609            ;;
17610          *)
17611            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17612            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17613            ;;
17614        esac
17615       fi
17616       ;;
17617
17618     os2*)
17619       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17620       hardcode_minus_L_GCJ=yes
17621       allow_undefined_flag_GCJ=unsupported
17622       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'
17623       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17624       ;;
17625
17626     osf3*)
17627       if test "$GCC" = yes; then
17628         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17629         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'
17630       else
17631         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17632         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'
17633       fi
17634       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17635       hardcode_libdir_separator_GCJ=:
17636       ;;
17637
17638     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17639       if test "$GCC" = yes; then
17640         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17641         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'
17642         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17643       else
17644         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17645         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'
17646         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~
17647         $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'
17648
17649         # Both c and cxx compiler support -rpath directly
17650         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17651       fi
17652       hardcode_libdir_separator_GCJ=:
17653       ;;
17654
17655     solaris*)
17656       no_undefined_flag_GCJ=' -z text'
17657       if test "$GCC" = yes; then
17658         wlarc='${wl}'
17659         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17660         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17661           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17662       else
17663         wlarc=''
17664         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17665         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17666         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17667       fi
17668       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17669       hardcode_shlibpath_var_GCJ=no
17670       case $host_os in
17671       solaris2.[0-5] | solaris2.[0-5].*) ;;
17672       *)
17673         # The compiler driver will combine linker options so we
17674         # cannot just pass the convience library names through
17675         # without $wl, iff we do not link with $LD.
17676         # Luckily, gcc supports the same syntax we need for Sun Studio.
17677         # Supported since Solaris 2.6 (maybe 2.5.1?)
17678         case $wlarc in
17679         '')
17680           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17681         *)
17682           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' ;;
17683         esac ;;
17684       esac
17685       link_all_deplibs_GCJ=yes
17686       ;;
17687
17688     sunos4*)
17689       if test "x$host_vendor" = xsequent; then
17690         # Use $CC to link under sequent, because it throws in some extra .o
17691         # files that make .init and .fini sections work.
17692         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17693       else
17694         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17695       fi
17696       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17697       hardcode_direct_GCJ=yes
17698       hardcode_minus_L_GCJ=yes
17699       hardcode_shlibpath_var_GCJ=no
17700       ;;
17701
17702     sysv4)
17703       case $host_vendor in
17704         sni)
17705           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17706           hardcode_direct_GCJ=yes # is this really true???
17707         ;;
17708         siemens)
17709           ## LD is ld it makes a PLAMLIB
17710           ## CC just makes a GrossModule.
17711           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17712           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17713           hardcode_direct_GCJ=no
17714         ;;
17715         motorola)
17716           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17717           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17718         ;;
17719       esac
17720       runpath_var='LD_RUN_PATH'
17721       hardcode_shlibpath_var_GCJ=no
17722       ;;
17723
17724     sysv4.3*)
17725       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17726       hardcode_shlibpath_var_GCJ=no
17727       export_dynamic_flag_spec_GCJ='-Bexport'
17728       ;;
17729
17730     sysv4*MP*)
17731       if test -d /usr/nec; then
17732         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17733         hardcode_shlibpath_var_GCJ=no
17734         runpath_var=LD_RUN_PATH
17735         hardcode_runpath_var=yes
17736         ld_shlibs_GCJ=yes
17737       fi
17738       ;;
17739
17740     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17741       no_undefined_flag_GCJ='${wl}-z,text'
17742       archive_cmds_need_lc_GCJ=no
17743       hardcode_shlibpath_var_GCJ=no
17744       runpath_var='LD_RUN_PATH'
17745
17746       if test "$GCC" = yes; then
17747         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17748         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17749       else
17750         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17751         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17752       fi
17753       ;;
17754
17755     sysv5* | sco3.2v5* | sco5v6*)
17756       # Note: We can NOT use -z defs as we might desire, because we do not
17757       # link with -lc, and that would cause any symbols used from libc to
17758       # always be unresolved, which means just about no library would
17759       # ever link correctly.  If we're not using GNU ld we use -z text
17760       # though, which does catch some bad symbols but isn't as heavy-handed
17761       # as -z defs.
17762       no_undefined_flag_GCJ='${wl}-z,text'
17763       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17764       archive_cmds_need_lc_GCJ=no
17765       hardcode_shlibpath_var_GCJ=no
17766       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17767       hardcode_libdir_separator_GCJ=':'
17768       link_all_deplibs_GCJ=yes
17769       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17770       runpath_var='LD_RUN_PATH'
17771
17772       if test "$GCC" = yes; then
17773         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17774         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17775       else
17776         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17777         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17778       fi
17779       ;;
17780
17781     uts4*)
17782       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17783       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17784       hardcode_shlibpath_var_GCJ=no
17785       ;;
17786
17787     *)
17788       ld_shlibs_GCJ=no
17789       ;;
17790     esac
17791   fi
17792
17793 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17794 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17795 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17796
17797 #
17798 # Do we need to explicitly link libc?
17799 #
17800 case "x$archive_cmds_need_lc_GCJ" in
17801 x|xyes)
17802   # Assume -lc should be added
17803   archive_cmds_need_lc_GCJ=yes
17804
17805   if test "$enable_shared" = yes && test "$GCC" = yes; then
17806     case $archive_cmds_GCJ in
17807     *'~'*)
17808       # FIXME: we may have to deal with multi-command sequences.
17809       ;;
17810     '$CC '*)
17811       # Test whether the compiler implicitly links with -lc since on some
17812       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17813       # to ld, don't add -lc before -lgcc.
17814       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17815 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17816       $rm conftest*
17817       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17818
17819       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17820   (eval $ac_compile) 2>&5
17821   ac_status=$?
17822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823   (exit $ac_status); } 2>conftest.err; then
17824         soname=conftest
17825         lib=conftest
17826         libobjs=conftest.$ac_objext
17827         deplibs=
17828         wl=$lt_prog_compiler_wl_GCJ
17829         pic_flag=$lt_prog_compiler_pic_GCJ
17830         compiler_flags=-v
17831         linker_flags=-v
17832         verstring=
17833         output_objdir=.
17834         libname=conftest
17835         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17836         allow_undefined_flag_GCJ=
17837         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17838   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17839   ac_status=$?
17840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841   (exit $ac_status); }
17842         then
17843           archive_cmds_need_lc_GCJ=no
17844         else
17845           archive_cmds_need_lc_GCJ=yes
17846         fi
17847         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17848       else
17849         cat conftest.err 1>&5
17850       fi
17851       $rm conftest*
17852       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17853 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17854       ;;
17855     esac
17856   fi
17857   ;;
17858 esac
17859
17860 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17861 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17862 library_names_spec=
17863 libname_spec='lib$name'
17864 soname_spec=
17865 shrext_cmds=".so"
17866 postinstall_cmds=
17867 postuninstall_cmds=
17868 finish_cmds=
17869 finish_eval=
17870 shlibpath_var=
17871 shlibpath_overrides_runpath=unknown
17872 version_type=none
17873 dynamic_linker="$host_os ld.so"
17874 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17875 if test "$GCC" = yes; then
17876   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17877   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17878     # if the path contains ";" then we assume it to be the separator
17879     # otherwise default to the standard path separator (i.e. ":") - it is
17880     # assumed that no part of a normal pathname contains ";" but that should
17881     # okay in the real world where ";" in dirpaths is itself problematic.
17882     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17883   else
17884     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17885   fi
17886 else
17887   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17888 fi
17889 need_lib_prefix=unknown
17890 hardcode_into_libs=no
17891
17892 # when you set need_version to no, make sure it does not cause -set_version
17893 # flags to be left without arguments
17894 need_version=unknown
17895
17896 case $host_os in
17897 aix3*)
17898   version_type=linux
17899   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17900   shlibpath_var=LIBPATH
17901
17902   # AIX 3 has no versioning support, so we append a major version to the name.
17903   soname_spec='${libname}${release}${shared_ext}$major'
17904   ;;
17905
17906 aix4* | aix5*)
17907   version_type=linux
17908   need_lib_prefix=no
17909   need_version=no
17910   hardcode_into_libs=yes
17911   if test "$host_cpu" = ia64; then
17912     # AIX 5 supports IA64
17913     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17914     shlibpath_var=LD_LIBRARY_PATH
17915   else
17916     # With GCC up to 2.95.x, collect2 would create an import file
17917     # for dependence libraries.  The import file would start with
17918     # the line `#! .'.  This would cause the generated library to
17919     # depend on `.', always an invalid library.  This was fixed in
17920     # development snapshots of GCC prior to 3.0.
17921     case $host_os in
17922       aix4 | aix4.[01] | aix4.[01].*)
17923       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17924            echo ' yes '
17925            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17926         :
17927       else
17928         can_build_shared=no
17929       fi
17930       ;;
17931     esac
17932     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17933     # soname into executable. Probably we can add versioning support to
17934     # collect2, so additional links can be useful in future.
17935     if test "$aix_use_runtimelinking" = yes; then
17936       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17937       # instead of lib<name>.a to let people know that these are not
17938       # typical AIX shared libraries.
17939       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17940     else
17941       # We preserve .a as extension for shared libraries through AIX4.2
17942       # and later when we are not doing run time linking.
17943       library_names_spec='${libname}${release}.a $libname.a'
17944       soname_spec='${libname}${release}${shared_ext}$major'
17945     fi
17946     shlibpath_var=LIBPATH
17947   fi
17948   ;;
17949
17950 amigaos*)
17951   library_names_spec='$libname.ixlibrary $libname.a'
17952   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17953   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'
17954   ;;
17955
17956 beos*)
17957   library_names_spec='${libname}${shared_ext}'
17958   dynamic_linker="$host_os ld.so"
17959   shlibpath_var=LIBRARY_PATH
17960   ;;
17961
17962 bsdi[45]*)
17963   version_type=linux
17964   need_version=no
17965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17966   soname_spec='${libname}${release}${shared_ext}$major'
17967   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17968   shlibpath_var=LD_LIBRARY_PATH
17969   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17970   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17971   # the default ld.so.conf also contains /usr/contrib/lib and
17972   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17973   # libtool to hard-code these into programs
17974   ;;
17975
17976 cygwin* | mingw* | pw32*)
17977   version_type=windows
17978   shrext_cmds=".dll"
17979   need_version=no
17980   need_lib_prefix=no
17981
17982   case $GCC,$host_os in
17983   yes,cygwin* | yes,mingw* | yes,pw32*)
17984     library_names_spec='$libname.dll.a'
17985     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17986     postinstall_cmds='base_file=`basename \${file}`~
17987       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17988       dldir=$destdir/`dirname \$dlpath`~
17989       test -d \$dldir || mkdir -p \$dldir~
17990       $install_prog $dir/$dlname \$dldir/$dlname~
17991       chmod a+x \$dldir/$dlname'
17992     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17993       dlpath=$dir/\$dldll~
17994        $rm \$dlpath'
17995     shlibpath_overrides_runpath=yes
17996
17997     case $host_os in
17998     cygwin*)
17999       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18000       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18001       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18002       ;;
18003     mingw*)
18004       # MinGW DLLs use traditional 'lib' prefix
18005       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18006       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18007       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18008         # It is most probably a Windows format PATH printed by
18009         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18010         # path with ; separators, and with drive letters. We can handle the
18011         # drive letters (cygwin fileutils understands them), so leave them,
18012         # especially as we might pass files found there to a mingw objdump,
18013         # which wouldn't understand a cygwinified path. Ahh.
18014         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18015       else
18016         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18017       fi
18018       ;;
18019     pw32*)
18020       # pw32 DLLs use 'pw' prefix rather than 'lib'
18021       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18022       ;;
18023     esac
18024     ;;
18025
18026   *)
18027     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18028     ;;
18029   esac
18030   dynamic_linker='Win32 ld.exe'
18031   # FIXME: first we should search . and the directory the executable is in
18032   shlibpath_var=PATH
18033   ;;
18034
18035 darwin* | rhapsody*)
18036   dynamic_linker="$host_os dyld"
18037   version_type=darwin
18038   need_lib_prefix=no
18039   need_version=no
18040   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18041   soname_spec='${libname}${release}${major}$shared_ext'
18042   shlibpath_overrides_runpath=yes
18043   shlibpath_var=DYLD_LIBRARY_PATH
18044   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18045   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18046   if test "$GCC" = yes; then
18047     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"`
18048   else
18049     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18050   fi
18051   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18052   ;;
18053
18054 dgux*)
18055   version_type=linux
18056   need_lib_prefix=no
18057   need_version=no
18058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18059   soname_spec='${libname}${release}${shared_ext}$major'
18060   shlibpath_var=LD_LIBRARY_PATH
18061   ;;
18062
18063 freebsd1*)
18064   dynamic_linker=no
18065   ;;
18066
18067 freebsd* | dragonfly*)
18068   # DragonFly does not have aout.  When/if they implement a new
18069   # versioning mechanism, adjust this.
18070   if test -x /usr/bin/objformat; then
18071     objformat=`/usr/bin/objformat`
18072   else
18073     case $host_os in
18074     freebsd[123]*) objformat=aout ;;
18075     *) objformat=elf ;;
18076     esac
18077   fi
18078   version_type=freebsd-$objformat
18079   case $version_type in
18080     freebsd-elf*)
18081       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18082       need_version=no
18083       need_lib_prefix=no
18084       ;;
18085     freebsd-*)
18086       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18087       need_version=yes
18088       ;;
18089   esac
18090   shlibpath_var=LD_LIBRARY_PATH
18091   case $host_os in
18092   freebsd2*)
18093     shlibpath_overrides_runpath=yes
18094     ;;
18095   freebsd3.[01]* | freebsdelf3.[01]*)
18096     shlibpath_overrides_runpath=yes
18097     hardcode_into_libs=yes
18098     ;;
18099   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18100   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18101     shlibpath_overrides_runpath=no
18102     hardcode_into_libs=yes
18103     ;;
18104   freebsd*) # from 4.6 on
18105     shlibpath_overrides_runpath=yes
18106     hardcode_into_libs=yes
18107     ;;
18108   esac
18109   ;;
18110
18111 gnu*)
18112   version_type=linux
18113   need_lib_prefix=no
18114   need_version=no
18115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18116   soname_spec='${libname}${release}${shared_ext}$major'
18117   shlibpath_var=LD_LIBRARY_PATH
18118   hardcode_into_libs=yes
18119   ;;
18120
18121 hpux9* | hpux10* | hpux11*)
18122   # Give a soname corresponding to the major version so that dld.sl refuses to
18123   # link against other versions.
18124   version_type=sunos
18125   need_lib_prefix=no
18126   need_version=no
18127   case $host_cpu in
18128   ia64*)
18129     shrext_cmds='.so'
18130     hardcode_into_libs=yes
18131     dynamic_linker="$host_os dld.so"
18132     shlibpath_var=LD_LIBRARY_PATH
18133     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18134     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18135     soname_spec='${libname}${release}${shared_ext}$major'
18136     if test "X$HPUX_IA64_MODE" = X32; then
18137       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18138     else
18139       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18140     fi
18141     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18142     ;;
18143    hppa*64*)
18144      shrext_cmds='.sl'
18145      hardcode_into_libs=yes
18146      dynamic_linker="$host_os dld.sl"
18147      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18148      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18149      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18150      soname_spec='${libname}${release}${shared_ext}$major'
18151      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18152      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18153      ;;
18154    *)
18155     shrext_cmds='.sl'
18156     dynamic_linker="$host_os dld.sl"
18157     shlibpath_var=SHLIB_PATH
18158     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18159     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18160     soname_spec='${libname}${release}${shared_ext}$major'
18161     ;;
18162   esac
18163   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18164   postinstall_cmds='chmod 555 $lib'
18165   ;;
18166
18167 interix3*)
18168   version_type=linux
18169   need_lib_prefix=no
18170   need_version=no
18171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18172   soname_spec='${libname}${release}${shared_ext}$major'
18173   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18174   shlibpath_var=LD_LIBRARY_PATH
18175   shlibpath_overrides_runpath=no
18176   hardcode_into_libs=yes
18177   ;;
18178
18179 irix5* | irix6* | nonstopux*)
18180   case $host_os in
18181     nonstopux*) version_type=nonstopux ;;
18182     *)
18183         if test "$lt_cv_prog_gnu_ld" = yes; then
18184                 version_type=linux
18185         else
18186                 version_type=irix
18187         fi ;;
18188   esac
18189   need_lib_prefix=no
18190   need_version=no
18191   soname_spec='${libname}${release}${shared_ext}$major'
18192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18193   case $host_os in
18194   irix5* | nonstopux*)
18195     libsuff= shlibsuff=
18196     ;;
18197   *)
18198     case $LD in # libtool.m4 will add one of these switches to LD
18199     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18200       libsuff= shlibsuff= libmagic=32-bit;;
18201     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18202       libsuff=32 shlibsuff=N32 libmagic=N32;;
18203     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18204       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18205     *) libsuff= shlibsuff= libmagic=never-match;;
18206     esac
18207     ;;
18208   esac
18209   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18210   shlibpath_overrides_runpath=no
18211   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18212   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18213   hardcode_into_libs=yes
18214   ;;
18215
18216 # No shared lib support for Linux oldld, aout, or coff.
18217 linux*oldld* | linux*aout* | linux*coff*)
18218   dynamic_linker=no
18219   ;;
18220
18221 # This must be Linux ELF.
18222 linux* | k*bsd*-gnu)
18223   version_type=linux
18224   need_lib_prefix=no
18225   need_version=no
18226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18227   soname_spec='${libname}${release}${shared_ext}$major'
18228   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18229   shlibpath_var=LD_LIBRARY_PATH
18230   shlibpath_overrides_runpath=no
18231   # This implies no fast_install, which is unacceptable.
18232   # Some rework will be needed to allow for fast_install
18233   # before this can be enabled.
18234   hardcode_into_libs=yes
18235
18236   # Append ld.so.conf contents to the search path
18237   if test -f /etc/ld.so.conf; then
18238     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' ' '`
18239     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18240   fi
18241
18242   # We used to test for /lib/ld.so.1 and disable shared libraries on
18243   # powerpc, because MkLinux only supported shared libraries with the
18244   # GNU dynamic linker.  Since this was broken with cross compilers,
18245   # most powerpc-linux boxes support dynamic linking these days and
18246   # people can always --disable-shared, the test was removed, and we
18247   # assume the GNU/Linux dynamic linker is in use.
18248   dynamic_linker='GNU/Linux ld.so'
18249   ;;
18250
18251 netbsdelf*-gnu)
18252   version_type=linux
18253   need_lib_prefix=no
18254   need_version=no
18255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18256   soname_spec='${libname}${release}${shared_ext}$major'
18257   shlibpath_var=LD_LIBRARY_PATH
18258   shlibpath_overrides_runpath=no
18259   hardcode_into_libs=yes
18260   dynamic_linker='NetBSD ld.elf_so'
18261   ;;
18262
18263 netbsd*)
18264   version_type=sunos
18265   need_lib_prefix=no
18266   need_version=no
18267   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18268     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18269     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18270     dynamic_linker='NetBSD (a.out) ld.so'
18271   else
18272     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18273     soname_spec='${libname}${release}${shared_ext}$major'
18274     dynamic_linker='NetBSD ld.elf_so'
18275   fi
18276   shlibpath_var=LD_LIBRARY_PATH
18277   shlibpath_overrides_runpath=yes
18278   hardcode_into_libs=yes
18279   ;;
18280
18281 newsos6)
18282   version_type=linux
18283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18284   shlibpath_var=LD_LIBRARY_PATH
18285   shlibpath_overrides_runpath=yes
18286   ;;
18287
18288 nto-qnx*)
18289   version_type=linux
18290   need_lib_prefix=no
18291   need_version=no
18292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18293   soname_spec='${libname}${release}${shared_ext}$major'
18294   shlibpath_var=LD_LIBRARY_PATH
18295   shlibpath_overrides_runpath=yes
18296   ;;
18297
18298 openbsd*)
18299   version_type=sunos
18300   sys_lib_dlsearch_path_spec="/usr/lib"
18301   need_lib_prefix=no
18302   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18303   case $host_os in
18304     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18305     *)                         need_version=no  ;;
18306   esac
18307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18308   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18309   shlibpath_var=LD_LIBRARY_PATH
18310   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18311     case $host_os in
18312       openbsd2.[89] | openbsd2.[89].*)
18313         shlibpath_overrides_runpath=no
18314         ;;
18315       *)
18316         shlibpath_overrides_runpath=yes
18317         ;;
18318       esac
18319   else
18320     shlibpath_overrides_runpath=yes
18321   fi
18322   ;;
18323
18324 os2*)
18325   libname_spec='$name'
18326   shrext_cmds=".dll"
18327   need_lib_prefix=no
18328   library_names_spec='$libname${shared_ext} $libname.a'
18329   dynamic_linker='OS/2 ld.exe'
18330   shlibpath_var=LIBPATH
18331   ;;
18332
18333 osf3* | osf4* | osf5*)
18334   version_type=osf
18335   need_lib_prefix=no
18336   need_version=no
18337   soname_spec='${libname}${release}${shared_ext}$major'
18338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18339   shlibpath_var=LD_LIBRARY_PATH
18340   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18341   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18342   ;;
18343
18344 solaris*)
18345   version_type=linux
18346   need_lib_prefix=no
18347   need_version=no
18348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18349   soname_spec='${libname}${release}${shared_ext}$major'
18350   shlibpath_var=LD_LIBRARY_PATH
18351   shlibpath_overrides_runpath=yes
18352   hardcode_into_libs=yes
18353   # ldd complains unless libraries are executable
18354   postinstall_cmds='chmod +x $lib'
18355   ;;
18356
18357 sunos4*)
18358   version_type=sunos
18359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18360   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18361   shlibpath_var=LD_LIBRARY_PATH
18362   shlibpath_overrides_runpath=yes
18363   if test "$with_gnu_ld" = yes; then
18364     need_lib_prefix=no
18365   fi
18366   need_version=yes
18367   ;;
18368
18369 sysv4 | sysv4.3*)
18370   version_type=linux
18371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18372   soname_spec='${libname}${release}${shared_ext}$major'
18373   shlibpath_var=LD_LIBRARY_PATH
18374   case $host_vendor in
18375     sni)
18376       shlibpath_overrides_runpath=no
18377       need_lib_prefix=no
18378       export_dynamic_flag_spec='${wl}-Blargedynsym'
18379       runpath_var=LD_RUN_PATH
18380       ;;
18381     siemens)
18382       need_lib_prefix=no
18383       ;;
18384     motorola)
18385       need_lib_prefix=no
18386       need_version=no
18387       shlibpath_overrides_runpath=no
18388       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18389       ;;
18390   esac
18391   ;;
18392
18393 sysv4*MP*)
18394   if test -d /usr/nec ;then
18395     version_type=linux
18396     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18397     soname_spec='$libname${shared_ext}.$major'
18398     shlibpath_var=LD_LIBRARY_PATH
18399   fi
18400   ;;
18401
18402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18403   version_type=freebsd-elf
18404   need_lib_prefix=no
18405   need_version=no
18406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18407   soname_spec='${libname}${release}${shared_ext}$major'
18408   shlibpath_var=LD_LIBRARY_PATH
18409   hardcode_into_libs=yes
18410   if test "$with_gnu_ld" = yes; then
18411     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18412     shlibpath_overrides_runpath=no
18413   else
18414     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18415     shlibpath_overrides_runpath=yes
18416     case $host_os in
18417       sco3.2v5*)
18418         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18419         ;;
18420     esac
18421   fi
18422   sys_lib_dlsearch_path_spec='/usr/lib'
18423   ;;
18424
18425 uts4*)
18426   version_type=linux
18427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18428   soname_spec='${libname}${release}${shared_ext}$major'
18429   shlibpath_var=LD_LIBRARY_PATH
18430   ;;
18431
18432 *)
18433   dynamic_linker=no
18434   ;;
18435 esac
18436 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18437 echo "${ECHO_T}$dynamic_linker" >&6; }
18438 test "$dynamic_linker" = no && can_build_shared=no
18439
18440 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18441 if test "$GCC" = yes; then
18442   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18443 fi
18444
18445 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18446 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18447 hardcode_action_GCJ=
18448 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18449    test -n "$runpath_var_GCJ" || \
18450    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18451
18452   # We can hardcode non-existant directories.
18453   if test "$hardcode_direct_GCJ" != no &&
18454      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18455      # have to relink, otherwise we might link with an installed library
18456      # when we should be linking with a yet-to-be-installed one
18457      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18458      test "$hardcode_minus_L_GCJ" != no; then
18459     # Linking always hardcodes the temporary library directory.
18460     hardcode_action_GCJ=relink
18461   else
18462     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18463     hardcode_action_GCJ=immediate
18464   fi
18465 else
18466   # We cannot hardcode anything, or else we can only hardcode existing
18467   # directories.
18468   hardcode_action_GCJ=unsupported
18469 fi
18470 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18471 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18472
18473 if test "$hardcode_action_GCJ" = relink; then
18474   # Fast installation is not supported
18475   enable_fast_install=no
18476 elif test "$shlibpath_overrides_runpath" = yes ||
18477      test "$enable_shared" = no; then
18478   # Fast installation is not necessary
18479   enable_fast_install=needless
18480 fi
18481
18482
18483 # The else clause should only fire when bootstrapping the
18484 # libtool distribution, otherwise you forgot to ship ltmain.sh
18485 # with your package, and you will get complaints that there are
18486 # no rules to generate ltmain.sh.
18487 if test -f "$ltmain"; then
18488   # See if we are running on zsh, and set the options which allow our commands through
18489   # without removal of \ escapes.
18490   if test -n "${ZSH_VERSION+set}" ; then
18491     setopt NO_GLOB_SUBST
18492   fi
18493   # Now quote all the things that may contain metacharacters while being
18494   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18495   # variables and quote the copies for generation of the libtool script.
18496   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18497     SED SHELL STRIP \
18498     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18499     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18500     deplibs_check_method reload_flag reload_cmds need_locks \
18501     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18502     lt_cv_sys_global_symbol_to_c_name_address \
18503     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18504     old_postinstall_cmds old_postuninstall_cmds \
18505     compiler_GCJ \
18506     CC_GCJ \
18507     LD_GCJ \
18508     lt_prog_compiler_wl_GCJ \
18509     lt_prog_compiler_pic_GCJ \
18510     lt_prog_compiler_static_GCJ \
18511     lt_prog_compiler_no_builtin_flag_GCJ \
18512     export_dynamic_flag_spec_GCJ \
18513     thread_safe_flag_spec_GCJ \
18514     whole_archive_flag_spec_GCJ \
18515     enable_shared_with_static_runtimes_GCJ \
18516     old_archive_cmds_GCJ \
18517     old_archive_from_new_cmds_GCJ \
18518     predep_objects_GCJ \
18519     postdep_objects_GCJ \
18520     predeps_GCJ \
18521     postdeps_GCJ \
18522     compiler_lib_search_path_GCJ \
18523     archive_cmds_GCJ \
18524     archive_expsym_cmds_GCJ \
18525     postinstall_cmds_GCJ \
18526     postuninstall_cmds_GCJ \
18527     old_archive_from_expsyms_cmds_GCJ \
18528     allow_undefined_flag_GCJ \
18529     no_undefined_flag_GCJ \
18530     export_symbols_cmds_GCJ \
18531     hardcode_libdir_flag_spec_GCJ \
18532     hardcode_libdir_flag_spec_ld_GCJ \
18533     hardcode_libdir_separator_GCJ \
18534     hardcode_automatic_GCJ \
18535     module_cmds_GCJ \
18536     module_expsym_cmds_GCJ \
18537     lt_cv_prog_compiler_c_o_GCJ \
18538     exclude_expsyms_GCJ \
18539     include_expsyms_GCJ; do
18540
18541     case $var in
18542     old_archive_cmds_GCJ | \
18543     old_archive_from_new_cmds_GCJ | \
18544     archive_cmds_GCJ | \
18545     archive_expsym_cmds_GCJ | \
18546     module_cmds_GCJ | \
18547     module_expsym_cmds_GCJ | \
18548     old_archive_from_expsyms_cmds_GCJ | \
18549     export_symbols_cmds_GCJ | \
18550     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18551     postinstall_cmds | postuninstall_cmds | \
18552     old_postinstall_cmds | old_postuninstall_cmds | \
18553     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18554       # Double-quote double-evaled strings.
18555       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18556       ;;
18557     *)
18558       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18559       ;;
18560     esac
18561   done
18562
18563   case $lt_echo in
18564   *'\$0 --fallback-echo"')
18565     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18566     ;;
18567   esac
18568
18569 cfgfile="$ofile"
18570
18571   cat <<__EOF__ >> "$cfgfile"
18572 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18573
18574 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18575
18576 # Shell to use when invoking shell scripts.
18577 SHELL=$lt_SHELL
18578
18579 # Whether or not to build shared libraries.
18580 build_libtool_libs=$enable_shared
18581
18582 # Whether or not to build static libraries.
18583 build_old_libs=$enable_static
18584
18585 # Whether or not to add -lc for building shared libraries.
18586 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18587
18588 # Whether or not to disallow shared libs when runtime libs are static
18589 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18590
18591 # Whether or not to optimize for fast installation.
18592 fast_install=$enable_fast_install
18593
18594 # The host system.
18595 host_alias=$host_alias
18596 host=$host
18597 host_os=$host_os
18598
18599 # The build system.
18600 build_alias=$build_alias
18601 build=$build
18602 build_os=$build_os
18603
18604 # An echo program that does not interpret backslashes.
18605 echo=$lt_echo
18606
18607 # The archiver.
18608 AR=$lt_AR
18609 AR_FLAGS=$lt_AR_FLAGS
18610
18611 # A C compiler.
18612 LTCC=$lt_LTCC
18613
18614 # LTCC compiler flags.
18615 LTCFLAGS=$lt_LTCFLAGS
18616
18617 # A language-specific compiler.
18618 CC=$lt_compiler_GCJ
18619
18620 # Is the compiler the GNU C compiler?
18621 with_gcc=$GCC_GCJ
18622
18623 # An ERE matcher.
18624 EGREP=$lt_EGREP
18625
18626 # The linker used to build libraries.
18627 LD=$lt_LD_GCJ
18628
18629 # Whether we need hard or soft links.
18630 LN_S=$lt_LN_S
18631
18632 # A BSD-compatible nm program.
18633 NM=$lt_NM
18634
18635 # A symbol stripping program
18636 STRIP=$lt_STRIP
18637
18638 # Used to examine libraries when file_magic_cmd begins "file"
18639 MAGIC_CMD=$MAGIC_CMD
18640
18641 # Used on cygwin: DLL creation program.
18642 DLLTOOL="$DLLTOOL"
18643
18644 # Used on cygwin: object dumper.
18645 OBJDUMP="$OBJDUMP"
18646
18647 # Used on cygwin: assembler.
18648 AS="$AS"
18649
18650 # The name of the directory that contains temporary libtool files.
18651 objdir=$objdir
18652
18653 # How to create reloadable object files.
18654 reload_flag=$lt_reload_flag
18655 reload_cmds=$lt_reload_cmds
18656
18657 # How to pass a linker flag through the compiler.
18658 wl=$lt_lt_prog_compiler_wl_GCJ
18659
18660 # Object file suffix (normally "o").
18661 objext="$ac_objext"
18662
18663 # Old archive suffix (normally "a").
18664 libext="$libext"
18665
18666 # Shared library suffix (normally ".so").
18667 shrext_cmds='$shrext_cmds'
18668
18669 # Executable file suffix (normally "").
18670 exeext="$exeext"
18671
18672 # Additional compiler flags for building library objects.
18673 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18674 pic_mode=$pic_mode
18675
18676 # What is the maximum length of a command?
18677 max_cmd_len=$lt_cv_sys_max_cmd_len
18678
18679 # Does compiler simultaneously support -c and -o options?
18680 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18681
18682 # Must we lock files when doing compilation?
18683 need_locks=$lt_need_locks
18684
18685 # Do we need the lib prefix for modules?
18686 need_lib_prefix=$need_lib_prefix
18687
18688 # Do we need a version for libraries?
18689 need_version=$need_version
18690
18691 # Whether dlopen is supported.
18692 dlopen_support=$enable_dlopen
18693
18694 # Whether dlopen of programs is supported.
18695 dlopen_self=$enable_dlopen_self
18696
18697 # Whether dlopen of statically linked programs is supported.
18698 dlopen_self_static=$enable_dlopen_self_static
18699
18700 # Compiler flag to prevent dynamic linking.
18701 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18702
18703 # Compiler flag to turn off builtin functions.
18704 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18705
18706 # Compiler flag to allow reflexive dlopens.
18707 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18708
18709 # Compiler flag to generate shared objects directly from archives.
18710 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18711
18712 # Compiler flag to generate thread-safe objects.
18713 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18714
18715 # Library versioning type.
18716 version_type=$version_type
18717
18718 # Format of library name prefix.
18719 libname_spec=$lt_libname_spec
18720
18721 # List of archive names.  First name is the real one, the rest are links.
18722 # The last name is the one that the linker finds with -lNAME.
18723 library_names_spec=$lt_library_names_spec
18724
18725 # The coded name of the library, if different from the real name.
18726 soname_spec=$lt_soname_spec
18727
18728 # Commands used to build and install an old-style archive.
18729 RANLIB=$lt_RANLIB
18730 old_archive_cmds=$lt_old_archive_cmds_GCJ
18731 old_postinstall_cmds=$lt_old_postinstall_cmds
18732 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18733
18734 # Create an old-style archive from a shared archive.
18735 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18736
18737 # Create a temporary old-style archive to link instead of a shared archive.
18738 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18739
18740 # Commands used to build and install a shared archive.
18741 archive_cmds=$lt_archive_cmds_GCJ
18742 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18743 postinstall_cmds=$lt_postinstall_cmds
18744 postuninstall_cmds=$lt_postuninstall_cmds
18745
18746 # Commands used to build a loadable module (assumed same as above if empty)
18747 module_cmds=$lt_module_cmds_GCJ
18748 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18749
18750 # Commands to strip libraries.
18751 old_striplib=$lt_old_striplib
18752 striplib=$lt_striplib
18753
18754 # Dependencies to place before the objects being linked to create a
18755 # shared library.
18756 predep_objects=$lt_predep_objects_GCJ
18757
18758 # Dependencies to place after the objects being linked to create a
18759 # shared library.
18760 postdep_objects=$lt_postdep_objects_GCJ
18761
18762 # Dependencies to place before the objects being linked to create a
18763 # shared library.
18764 predeps=$lt_predeps_GCJ
18765
18766 # Dependencies to place after the objects being linked to create a
18767 # shared library.
18768 postdeps=$lt_postdeps_GCJ
18769
18770 # The library search path used internally by the compiler when linking
18771 # a shared library.
18772 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18773
18774 # Method to check whether dependent libraries are shared objects.
18775 deplibs_check_method=$lt_deplibs_check_method
18776
18777 # Command to use when deplibs_check_method == file_magic.
18778 file_magic_cmd=$lt_file_magic_cmd
18779
18780 # Flag that allows shared libraries with undefined symbols to be built.
18781 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18782
18783 # Flag that forces no undefined symbols.
18784 no_undefined_flag=$lt_no_undefined_flag_GCJ
18785
18786 # Commands used to finish a libtool library installation in a directory.
18787 finish_cmds=$lt_finish_cmds
18788
18789 # Same as above, but a single script fragment to be evaled but not shown.
18790 finish_eval=$lt_finish_eval
18791
18792 # Take the output of nm and produce a listing of raw symbols and C names.
18793 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18794
18795 # Transform the output of nm in a proper C declaration
18796 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18797
18798 # Transform the output of nm in a C name address pair
18799 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18800
18801 # This is the shared library runtime path variable.
18802 runpath_var=$runpath_var
18803
18804 # This is the shared library path variable.
18805 shlibpath_var=$shlibpath_var
18806
18807 # Is shlibpath searched before the hard-coded library search path?
18808 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18809
18810 # How to hardcode a shared library path into an executable.
18811 hardcode_action=$hardcode_action_GCJ
18812
18813 # Whether we should hardcode library paths into libraries.
18814 hardcode_into_libs=$hardcode_into_libs
18815
18816 # Flag to hardcode \$libdir into a binary during linking.
18817 # This must work even if \$libdir does not exist.
18818 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18819
18820 # If ld is used when linking, flag to hardcode \$libdir into
18821 # a binary during linking. This must work even if \$libdir does
18822 # not exist.
18823 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18824
18825 # Whether we need a single -rpath flag with a separated argument.
18826 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18827
18828 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18829 # resulting binary.
18830 hardcode_direct=$hardcode_direct_GCJ
18831
18832 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18833 # resulting binary.
18834 hardcode_minus_L=$hardcode_minus_L_GCJ
18835
18836 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18837 # the resulting binary.
18838 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18839
18840 # Set to yes if building a shared library automatically hardcodes DIR into the library
18841 # and all subsequent libraries and executables linked against it.
18842 hardcode_automatic=$hardcode_automatic_GCJ
18843
18844 # Variables whose values should be saved in libtool wrapper scripts and
18845 # restored at relink time.
18846 variables_saved_for_relink="$variables_saved_for_relink"
18847
18848 # Whether libtool must link a program against all its dependency libraries.
18849 link_all_deplibs=$link_all_deplibs_GCJ
18850
18851 # Compile-time system search path for libraries
18852 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18853
18854 # Run-time system search path for libraries
18855 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18856
18857 # Fix the shell variable \$srcfile for the compiler.
18858 fix_srcfile_path="$fix_srcfile_path_GCJ"
18859
18860 # Set to yes if exported symbols are required.
18861 always_export_symbols=$always_export_symbols_GCJ
18862
18863 # The commands to list exported symbols.
18864 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18865
18866 # The commands to extract the exported symbol list from a shared archive.
18867 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18868
18869 # Symbols that should not be listed in the preloaded symbols.
18870 exclude_expsyms=$lt_exclude_expsyms_GCJ
18871
18872 # Symbols that must always be exported.
18873 include_expsyms=$lt_include_expsyms_GCJ
18874
18875 # ### END LIBTOOL TAG CONFIG: $tagname
18876
18877 __EOF__
18878
18879
18880 else
18881   # If there is no Makefile yet, we rely on a make rule to execute
18882   # `config.status --recheck' to rerun these tests and create the
18883   # libtool script then.
18884   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18885   if test -f "$ltmain_in"; then
18886     test -f Makefile && make "$ltmain"
18887   fi
18888 fi
18889
18890
18891 ac_ext=c
18892 ac_cpp='$CPP $CPPFLAGS'
18893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18896
18897 CC="$lt_save_CC"
18898
18899         else
18900           tagname=""
18901         fi
18902         ;;
18903
18904       RC)
18905
18906
18907 # Source file extension for RC test sources.
18908 ac_ext=rc
18909
18910 # Object file extension for compiled RC test sources.
18911 objext=o
18912 objext_RC=$objext
18913
18914 # Code to be used in simple compile tests
18915 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18916
18917 # Code to be used in simple link tests
18918 lt_simple_link_test_code="$lt_simple_compile_test_code"
18919
18920 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18921
18922 # If no C compiler was specified, use CC.
18923 LTCC=${LTCC-"$CC"}
18924
18925 # If no C compiler flags were specified, use CFLAGS.
18926 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18927
18928 # Allow CC to be a program name with arguments.
18929 compiler=$CC
18930
18931
18932 # save warnings/boilerplate of simple test code
18933 ac_outfile=conftest.$ac_objext
18934 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18935 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18936 _lt_compiler_boilerplate=`cat conftest.err`
18937 $rm conftest*
18938
18939 ac_outfile=conftest.$ac_objext
18940 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18941 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18942 _lt_linker_boilerplate=`cat conftest.err`
18943 $rm conftest*
18944
18945
18946 # Allow CC to be a program name with arguments.
18947 lt_save_CC="$CC"
18948 CC=${RC-"windres"}
18949 compiler=$CC
18950 compiler_RC=$CC
18951 for cc_temp in $compiler""; do
18952   case $cc_temp in
18953     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18954     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18955     \-*) ;;
18956     *) break;;
18957   esac
18958 done
18959 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18960
18961 lt_cv_prog_compiler_c_o_RC=yes
18962
18963 # The else clause should only fire when bootstrapping the
18964 # libtool distribution, otherwise you forgot to ship ltmain.sh
18965 # with your package, and you will get complaints that there are
18966 # no rules to generate ltmain.sh.
18967 if test -f "$ltmain"; then
18968   # See if we are running on zsh, and set the options which allow our commands through
18969   # without removal of \ escapes.
18970   if test -n "${ZSH_VERSION+set}" ; then
18971     setopt NO_GLOB_SUBST
18972   fi
18973   # Now quote all the things that may contain metacharacters while being
18974   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18975   # variables and quote the copies for generation of the libtool script.
18976   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18977     SED SHELL STRIP \
18978     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18979     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18980     deplibs_check_method reload_flag reload_cmds need_locks \
18981     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18982     lt_cv_sys_global_symbol_to_c_name_address \
18983     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18984     old_postinstall_cmds old_postuninstall_cmds \
18985     compiler_RC \
18986     CC_RC \
18987     LD_RC \
18988     lt_prog_compiler_wl_RC \
18989     lt_prog_compiler_pic_RC \
18990     lt_prog_compiler_static_RC \
18991     lt_prog_compiler_no_builtin_flag_RC \
18992     export_dynamic_flag_spec_RC \
18993     thread_safe_flag_spec_RC \
18994     whole_archive_flag_spec_RC \
18995     enable_shared_with_static_runtimes_RC \
18996     old_archive_cmds_RC \
18997     old_archive_from_new_cmds_RC \
18998     predep_objects_RC \
18999     postdep_objects_RC \
19000     predeps_RC \
19001     postdeps_RC \
19002     compiler_lib_search_path_RC \
19003     archive_cmds_RC \
19004     archive_expsym_cmds_RC \
19005     postinstall_cmds_RC \
19006     postuninstall_cmds_RC \
19007     old_archive_from_expsyms_cmds_RC \
19008     allow_undefined_flag_RC \
19009     no_undefined_flag_RC \
19010     export_symbols_cmds_RC \
19011     hardcode_libdir_flag_spec_RC \
19012     hardcode_libdir_flag_spec_ld_RC \
19013     hardcode_libdir_separator_RC \
19014     hardcode_automatic_RC \
19015     module_cmds_RC \
19016     module_expsym_cmds_RC \
19017     lt_cv_prog_compiler_c_o_RC \
19018     exclude_expsyms_RC \
19019     include_expsyms_RC; do
19020
19021     case $var in
19022     old_archive_cmds_RC | \
19023     old_archive_from_new_cmds_RC | \
19024     archive_cmds_RC | \
19025     archive_expsym_cmds_RC | \
19026     module_cmds_RC | \
19027     module_expsym_cmds_RC | \
19028     old_archive_from_expsyms_cmds_RC | \
19029     export_symbols_cmds_RC | \
19030     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19031     postinstall_cmds | postuninstall_cmds | \
19032     old_postinstall_cmds | old_postuninstall_cmds | \
19033     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19034       # Double-quote double-evaled strings.
19035       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19036       ;;
19037     *)
19038       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19039       ;;
19040     esac
19041   done
19042
19043   case $lt_echo in
19044   *'\$0 --fallback-echo"')
19045     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19046     ;;
19047   esac
19048
19049 cfgfile="$ofile"
19050
19051   cat <<__EOF__ >> "$cfgfile"
19052 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19053
19054 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19055
19056 # Shell to use when invoking shell scripts.
19057 SHELL=$lt_SHELL
19058
19059 # Whether or not to build shared libraries.
19060 build_libtool_libs=$enable_shared
19061
19062 # Whether or not to build static libraries.
19063 build_old_libs=$enable_static
19064
19065 # Whether or not to add -lc for building shared libraries.
19066 build_libtool_need_lc=$archive_cmds_need_lc_RC
19067
19068 # Whether or not to disallow shared libs when runtime libs are static
19069 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19070
19071 # Whether or not to optimize for fast installation.
19072 fast_install=$enable_fast_install
19073
19074 # The host system.
19075 host_alias=$host_alias
19076 host=$host
19077 host_os=$host_os
19078
19079 # The build system.
19080 build_alias=$build_alias
19081 build=$build
19082 build_os=$build_os
19083
19084 # An echo program that does not interpret backslashes.
19085 echo=$lt_echo
19086
19087 # The archiver.
19088 AR=$lt_AR
19089 AR_FLAGS=$lt_AR_FLAGS
19090
19091 # A C compiler.
19092 LTCC=$lt_LTCC
19093
19094 # LTCC compiler flags.
19095 LTCFLAGS=$lt_LTCFLAGS
19096
19097 # A language-specific compiler.
19098 CC=$lt_compiler_RC
19099
19100 # Is the compiler the GNU C compiler?
19101 with_gcc=$GCC_RC
19102
19103 # An ERE matcher.
19104 EGREP=$lt_EGREP
19105
19106 # The linker used to build libraries.
19107 LD=$lt_LD_RC
19108
19109 # Whether we need hard or soft links.
19110 LN_S=$lt_LN_S
19111
19112 # A BSD-compatible nm program.
19113 NM=$lt_NM
19114
19115 # A symbol stripping program
19116 STRIP=$lt_STRIP
19117
19118 # Used to examine libraries when file_magic_cmd begins "file"
19119 MAGIC_CMD=$MAGIC_CMD
19120
19121 # Used on cygwin: DLL creation program.
19122 DLLTOOL="$DLLTOOL"
19123
19124 # Used on cygwin: object dumper.
19125 OBJDUMP="$OBJDUMP"
19126
19127 # Used on cygwin: assembler.
19128 AS="$AS"
19129
19130 # The name of the directory that contains temporary libtool files.
19131 objdir=$objdir
19132
19133 # How to create reloadable object files.
19134 reload_flag=$lt_reload_flag
19135 reload_cmds=$lt_reload_cmds
19136
19137 # How to pass a linker flag through the compiler.
19138 wl=$lt_lt_prog_compiler_wl_RC
19139
19140 # Object file suffix (normally "o").
19141 objext="$ac_objext"
19142
19143 # Old archive suffix (normally "a").
19144 libext="$libext"
19145
19146 # Shared library suffix (normally ".so").
19147 shrext_cmds='$shrext_cmds'
19148
19149 # Executable file suffix (normally "").
19150 exeext="$exeext"
19151
19152 # Additional compiler flags for building library objects.
19153 pic_flag=$lt_lt_prog_compiler_pic_RC
19154 pic_mode=$pic_mode
19155
19156 # What is the maximum length of a command?
19157 max_cmd_len=$lt_cv_sys_max_cmd_len
19158
19159 # Does compiler simultaneously support -c and -o options?
19160 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19161
19162 # Must we lock files when doing compilation?
19163 need_locks=$lt_need_locks
19164
19165 # Do we need the lib prefix for modules?
19166 need_lib_prefix=$need_lib_prefix
19167
19168 # Do we need a version for libraries?
19169 need_version=$need_version
19170
19171 # Whether dlopen is supported.
19172 dlopen_support=$enable_dlopen
19173
19174 # Whether dlopen of programs is supported.
19175 dlopen_self=$enable_dlopen_self
19176
19177 # Whether dlopen of statically linked programs is supported.
19178 dlopen_self_static=$enable_dlopen_self_static
19179
19180 # Compiler flag to prevent dynamic linking.
19181 link_static_flag=$lt_lt_prog_compiler_static_RC
19182
19183 # Compiler flag to turn off builtin functions.
19184 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19185
19186 # Compiler flag to allow reflexive dlopens.
19187 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19188
19189 # Compiler flag to generate shared objects directly from archives.
19190 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19191
19192 # Compiler flag to generate thread-safe objects.
19193 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19194
19195 # Library versioning type.
19196 version_type=$version_type
19197
19198 # Format of library name prefix.
19199 libname_spec=$lt_libname_spec
19200
19201 # List of archive names.  First name is the real one, the rest are links.
19202 # The last name is the one that the linker finds with -lNAME.
19203 library_names_spec=$lt_library_names_spec
19204
19205 # The coded name of the library, if different from the real name.
19206 soname_spec=$lt_soname_spec
19207
19208 # Commands used to build and install an old-style archive.
19209 RANLIB=$lt_RANLIB
19210 old_archive_cmds=$lt_old_archive_cmds_RC
19211 old_postinstall_cmds=$lt_old_postinstall_cmds
19212 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19213
19214 # Create an old-style archive from a shared archive.
19215 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19216
19217 # Create a temporary old-style archive to link instead of a shared archive.
19218 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19219
19220 # Commands used to build and install a shared archive.
19221 archive_cmds=$lt_archive_cmds_RC
19222 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19223 postinstall_cmds=$lt_postinstall_cmds
19224 postuninstall_cmds=$lt_postuninstall_cmds
19225
19226 # Commands used to build a loadable module (assumed same as above if empty)
19227 module_cmds=$lt_module_cmds_RC
19228 module_expsym_cmds=$lt_module_expsym_cmds_RC
19229
19230 # Commands to strip libraries.
19231 old_striplib=$lt_old_striplib
19232 striplib=$lt_striplib
19233
19234 # Dependencies to place before the objects being linked to create a
19235 # shared library.
19236 predep_objects=$lt_predep_objects_RC
19237
19238 # Dependencies to place after the objects being linked to create a
19239 # shared library.
19240 postdep_objects=$lt_postdep_objects_RC
19241
19242 # Dependencies to place before the objects being linked to create a
19243 # shared library.
19244 predeps=$lt_predeps_RC
19245
19246 # Dependencies to place after the objects being linked to create a
19247 # shared library.
19248 postdeps=$lt_postdeps_RC
19249
19250 # The library search path used internally by the compiler when linking
19251 # a shared library.
19252 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19253
19254 # Method to check whether dependent libraries are shared objects.
19255 deplibs_check_method=$lt_deplibs_check_method
19256
19257 # Command to use when deplibs_check_method == file_magic.
19258 file_magic_cmd=$lt_file_magic_cmd
19259
19260 # Flag that allows shared libraries with undefined symbols to be built.
19261 allow_undefined_flag=$lt_allow_undefined_flag_RC
19262
19263 # Flag that forces no undefined symbols.
19264 no_undefined_flag=$lt_no_undefined_flag_RC
19265
19266 # Commands used to finish a libtool library installation in a directory.
19267 finish_cmds=$lt_finish_cmds
19268
19269 # Same as above, but a single script fragment to be evaled but not shown.
19270 finish_eval=$lt_finish_eval
19271
19272 # Take the output of nm and produce a listing of raw symbols and C names.
19273 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19274
19275 # Transform the output of nm in a proper C declaration
19276 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19277
19278 # Transform the output of nm in a C name address pair
19279 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19280
19281 # This is the shared library runtime path variable.
19282 runpath_var=$runpath_var
19283
19284 # This is the shared library path variable.
19285 shlibpath_var=$shlibpath_var
19286
19287 # Is shlibpath searched before the hard-coded library search path?
19288 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19289
19290 # How to hardcode a shared library path into an executable.
19291 hardcode_action=$hardcode_action_RC
19292
19293 # Whether we should hardcode library paths into libraries.
19294 hardcode_into_libs=$hardcode_into_libs
19295
19296 # Flag to hardcode \$libdir into a binary during linking.
19297 # This must work even if \$libdir does not exist.
19298 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19299
19300 # If ld is used when linking, flag to hardcode \$libdir into
19301 # a binary during linking. This must work even if \$libdir does
19302 # not exist.
19303 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19304
19305 # Whether we need a single -rpath flag with a separated argument.
19306 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19307
19308 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19309 # resulting binary.
19310 hardcode_direct=$hardcode_direct_RC
19311
19312 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19313 # resulting binary.
19314 hardcode_minus_L=$hardcode_minus_L_RC
19315
19316 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19317 # the resulting binary.
19318 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19319
19320 # Set to yes if building a shared library automatically hardcodes DIR into the library
19321 # and all subsequent libraries and executables linked against it.
19322 hardcode_automatic=$hardcode_automatic_RC
19323
19324 # Variables whose values should be saved in libtool wrapper scripts and
19325 # restored at relink time.
19326 variables_saved_for_relink="$variables_saved_for_relink"
19327
19328 # Whether libtool must link a program against all its dependency libraries.
19329 link_all_deplibs=$link_all_deplibs_RC
19330
19331 # Compile-time system search path for libraries
19332 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19333
19334 # Run-time system search path for libraries
19335 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19336
19337 # Fix the shell variable \$srcfile for the compiler.
19338 fix_srcfile_path="$fix_srcfile_path_RC"
19339
19340 # Set to yes if exported symbols are required.
19341 always_export_symbols=$always_export_symbols_RC
19342
19343 # The commands to list exported symbols.
19344 export_symbols_cmds=$lt_export_symbols_cmds_RC
19345
19346 # The commands to extract the exported symbol list from a shared archive.
19347 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19348
19349 # Symbols that should not be listed in the preloaded symbols.
19350 exclude_expsyms=$lt_exclude_expsyms_RC
19351
19352 # Symbols that must always be exported.
19353 include_expsyms=$lt_include_expsyms_RC
19354
19355 # ### END LIBTOOL TAG CONFIG: $tagname
19356
19357 __EOF__
19358
19359
19360 else
19361   # If there is no Makefile yet, we rely on a make rule to execute
19362   # `config.status --recheck' to rerun these tests and create the
19363   # libtool script then.
19364   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19365   if test -f "$ltmain_in"; then
19366     test -f Makefile && make "$ltmain"
19367   fi
19368 fi
19369
19370
19371 ac_ext=c
19372 ac_cpp='$CPP $CPPFLAGS'
19373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19376
19377 CC="$lt_save_CC"
19378
19379         ;;
19380
19381       *)
19382         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19383 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19384    { (exit 1); exit 1; }; }
19385         ;;
19386       esac
19387
19388       # Append the new tag name to the list of available tags.
19389       if test -n "$tagname" ; then
19390       available_tags="$available_tags $tagname"
19391     fi
19392     fi
19393   done
19394   IFS="$lt_save_ifs"
19395
19396   # Now substitute the updated list of available tags.
19397   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19398     mv "${ofile}T" "$ofile"
19399     chmod +x "$ofile"
19400   else
19401     rm -f "${ofile}T"
19402     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19403 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19404    { (exit 1); exit 1; }; }
19405   fi
19406 fi
19407
19408
19409
19410 # This can be used to rebuild libtool when needed
19411 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19412
19413 # Always use our own libtool.
19414 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19415
19416 # Prevent multiple expansion
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441 ###############
19442 ## System checks
19443 ##
19444
19445   { echo "$as_me:$LINENO: result: " >&5
19446 echo "${ECHO_T}" >&6; }
19447   { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19448 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19449
19450 ac_ext=c
19451 ac_cpp='$CPP $CPPFLAGS'
19452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19455 if test -n "$ac_tool_prefix"; then
19456   for ac_prog in xlC gcc cc
19457   do
19458     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19462 if test "${ac_cv_prog_CC+set}" = set; then
19463   echo $ECHO_N "(cached) $ECHO_C" >&6
19464 else
19465   if test -n "$CC"; then
19466   ac_cv_prog_CC="$CC" # Let the user override the test.
19467 else
19468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19469 for as_dir in $PATH
19470 do
19471   IFS=$as_save_IFS
19472   test -z "$as_dir" && as_dir=.
19473   for ac_exec_ext in '' $ac_executable_extensions; do
19474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19475     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19477     break 2
19478   fi
19479 done
19480 done
19481 IFS=$as_save_IFS
19482
19483 fi
19484 fi
19485 CC=$ac_cv_prog_CC
19486 if test -n "$CC"; then
19487   { echo "$as_me:$LINENO: result: $CC" >&5
19488 echo "${ECHO_T}$CC" >&6; }
19489 else
19490   { echo "$as_me:$LINENO: result: no" >&5
19491 echo "${ECHO_T}no" >&6; }
19492 fi
19493
19494
19495     test -n "$CC" && break
19496   done
19497 fi
19498 if test -z "$CC"; then
19499   ac_ct_CC=$CC
19500   for ac_prog in xlC gcc cc
19501 do
19502   # Extract the first word of "$ac_prog", so it can be a program name with args.
19503 set dummy $ac_prog; ac_word=$2
19504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19507   echo $ECHO_N "(cached) $ECHO_C" >&6
19508 else
19509   if test -n "$ac_ct_CC"; then
19510   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19511 else
19512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19513 for as_dir in $PATH
19514 do
19515   IFS=$as_save_IFS
19516   test -z "$as_dir" && as_dir=.
19517   for ac_exec_ext in '' $ac_executable_extensions; do
19518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19519     ac_cv_prog_ac_ct_CC="$ac_prog"
19520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19521     break 2
19522   fi
19523 done
19524 done
19525 IFS=$as_save_IFS
19526
19527 fi
19528 fi
19529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19530 if test -n "$ac_ct_CC"; then
19531   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19532 echo "${ECHO_T}$ac_ct_CC" >&6; }
19533 else
19534   { echo "$as_me:$LINENO: result: no" >&5
19535 echo "${ECHO_T}no" >&6; }
19536 fi
19537
19538
19539   test -n "$ac_ct_CC" && break
19540 done
19541
19542   if test "x$ac_ct_CC" = x; then
19543     CC=""
19544   else
19545     case $cross_compiling:$ac_tool_warned in
19546 yes:)
19547 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19548 whose name does not start with the host triplet.  If you think this
19549 configuration is useful to you, please write to autoconf@gnu.org." >&5
19550 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19551 whose name does not start with the host triplet.  If you think this
19552 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19553 ac_tool_warned=yes ;;
19554 esac
19555     CC=$ac_ct_CC
19556   fi
19557 fi
19558
19559
19560 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19561 See \`config.log' for more details." >&5
19562 echo "$as_me: error: no acceptable C compiler found in \$PATH
19563 See \`config.log' for more details." >&2;}
19564    { (exit 1); exit 1; }; }
19565
19566 # Provide some information about the compiler.
19567 echo "$as_me:$LINENO: checking for C compiler version" >&5
19568 ac_compiler=`set X $ac_compile; echo $2`
19569 { (ac_try="$ac_compiler --version >&5"
19570 case "(($ac_try" in
19571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572   *) ac_try_echo=$ac_try;;
19573 esac
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575   (eval "$ac_compiler --version >&5") 2>&5
19576   ac_status=$?
19577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578   (exit $ac_status); }
19579 { (ac_try="$ac_compiler -v >&5"
19580 case "(($ac_try" in
19581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582   *) ac_try_echo=$ac_try;;
19583 esac
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585   (eval "$ac_compiler -v >&5") 2>&5
19586   ac_status=$?
19587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588   (exit $ac_status); }
19589 { (ac_try="$ac_compiler -V >&5"
19590 case "(($ac_try" in
19591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592   *) ac_try_echo=$ac_try;;
19593 esac
19594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19595   (eval "$ac_compiler -V >&5") 2>&5
19596   ac_status=$?
19597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598   (exit $ac_status); }
19599
19600 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19601 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19602 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19603   echo $ECHO_N "(cached) $ECHO_C" >&6
19604 else
19605   cat >conftest.$ac_ext <<_ACEOF
19606 /* confdefs.h.  */
19607 _ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h.  */
19611
19612 int
19613 main ()
19614 {
19615 #ifndef __GNUC__
19616        choke me
19617 #endif
19618
19619   ;
19620   return 0;
19621 }
19622 _ACEOF
19623 rm -f conftest.$ac_objext
19624 if { (ac_try="$ac_compile"
19625 case "(($ac_try" in
19626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19627   *) ac_try_echo=$ac_try;;
19628 esac
19629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19630   (eval "$ac_compile") 2>conftest.er1
19631   ac_status=$?
19632   grep -v '^ *+' conftest.er1 >conftest.err
19633   rm -f conftest.er1
19634   cat conftest.err >&5
19635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636   (exit $ac_status); } && {
19637          test -z "$ac_c_werror_flag" ||
19638          test ! -s conftest.err
19639        } && test -s conftest.$ac_objext; then
19640   ac_compiler_gnu=yes
19641 else
19642   echo "$as_me: failed program was:" >&5
19643 sed 's/^/| /' conftest.$ac_ext >&5
19644
19645         ac_compiler_gnu=no
19646 fi
19647
19648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19649 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19650
19651 fi
19652 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19653 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19654 GCC=`test $ac_compiler_gnu = yes && echo yes`
19655 ac_test_CFLAGS=${CFLAGS+set}
19656 ac_save_CFLAGS=$CFLAGS
19657 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19658 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19659 if test "${ac_cv_prog_cc_g+set}" = set; then
19660   echo $ECHO_N "(cached) $ECHO_C" >&6
19661 else
19662   ac_save_c_werror_flag=$ac_c_werror_flag
19663    ac_c_werror_flag=yes
19664    ac_cv_prog_cc_g=no
19665    CFLAGS="-g"
19666    cat >conftest.$ac_ext <<_ACEOF
19667 /* confdefs.h.  */
19668 _ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h.  */
19672
19673 int
19674 main ()
19675 {
19676
19677   ;
19678   return 0;
19679 }
19680 _ACEOF
19681 rm -f conftest.$ac_objext
19682 if { (ac_try="$ac_compile"
19683 case "(($ac_try" in
19684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685   *) ac_try_echo=$ac_try;;
19686 esac
19687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688   (eval "$ac_compile") 2>conftest.er1
19689   ac_status=$?
19690   grep -v '^ *+' conftest.er1 >conftest.err
19691   rm -f conftest.er1
19692   cat conftest.err >&5
19693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694   (exit $ac_status); } && {
19695          test -z "$ac_c_werror_flag" ||
19696          test ! -s conftest.err
19697        } && test -s conftest.$ac_objext; then
19698   ac_cv_prog_cc_g=yes
19699 else
19700   echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.$ac_ext >&5
19702
19703         CFLAGS=""
19704       cat >conftest.$ac_ext <<_ACEOF
19705 /* confdefs.h.  */
19706 _ACEOF
19707 cat confdefs.h >>conftest.$ac_ext
19708 cat >>conftest.$ac_ext <<_ACEOF
19709 /* end confdefs.h.  */
19710
19711 int
19712 main ()
19713 {
19714
19715   ;
19716   return 0;
19717 }
19718 _ACEOF
19719 rm -f conftest.$ac_objext
19720 if { (ac_try="$ac_compile"
19721 case "(($ac_try" in
19722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19723   *) ac_try_echo=$ac_try;;
19724 esac
19725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19726   (eval "$ac_compile") 2>conftest.er1
19727   ac_status=$?
19728   grep -v '^ *+' conftest.er1 >conftest.err
19729   rm -f conftest.er1
19730   cat conftest.err >&5
19731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732   (exit $ac_status); } && {
19733          test -z "$ac_c_werror_flag" ||
19734          test ! -s conftest.err
19735        } && test -s conftest.$ac_objext; then
19736   :
19737 else
19738   echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19740
19741         ac_c_werror_flag=$ac_save_c_werror_flag
19742          CFLAGS="-g"
19743          cat >conftest.$ac_ext <<_ACEOF
19744 /* confdefs.h.  */
19745 _ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h.  */
19749
19750 int
19751 main ()
19752 {
19753
19754   ;
19755   return 0;
19756 }
19757 _ACEOF
19758 rm -f conftest.$ac_objext
19759 if { (ac_try="$ac_compile"
19760 case "(($ac_try" in
19761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762   *) ac_try_echo=$ac_try;;
19763 esac
19764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765   (eval "$ac_compile") 2>conftest.er1
19766   ac_status=$?
19767   grep -v '^ *+' conftest.er1 >conftest.err
19768   rm -f conftest.er1
19769   cat conftest.err >&5
19770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771   (exit $ac_status); } && {
19772          test -z "$ac_c_werror_flag" ||
19773          test ! -s conftest.err
19774        } && test -s conftest.$ac_objext; then
19775   ac_cv_prog_cc_g=yes
19776 else
19777   echo "$as_me: failed program was:" >&5
19778 sed 's/^/| /' conftest.$ac_ext >&5
19779
19780
19781 fi
19782
19783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19784 fi
19785
19786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19787 fi
19788
19789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19790    ac_c_werror_flag=$ac_save_c_werror_flag
19791 fi
19792 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19793 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19794 if test "$ac_test_CFLAGS" = set; then
19795   CFLAGS=$ac_save_CFLAGS
19796 elif test $ac_cv_prog_cc_g = yes; then
19797   if test "$GCC" = yes; then
19798     CFLAGS="-g -O2"
19799   else
19800     CFLAGS="-g"
19801   fi
19802 else
19803   if test "$GCC" = yes; then
19804     CFLAGS="-O2"
19805   else
19806     CFLAGS=
19807   fi
19808 fi
19809 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19810 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19811 if test "${ac_cv_prog_cc_c89+set}" = set; then
19812   echo $ECHO_N "(cached) $ECHO_C" >&6
19813 else
19814   ac_cv_prog_cc_c89=no
19815 ac_save_CC=$CC
19816 cat >conftest.$ac_ext <<_ACEOF
19817 /* confdefs.h.  */
19818 _ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h.  */
19822 #include <stdarg.h>
19823 #include <stdio.h>
19824 #include <sys/types.h>
19825 #include <sys/stat.h>
19826 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19827 struct buf { int x; };
19828 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19829 static char *e (p, i)
19830      char **p;
19831      int i;
19832 {
19833   return p[i];
19834 }
19835 static char *f (char * (*g) (char **, int), char **p, ...)
19836 {
19837   char *s;
19838   va_list v;
19839   va_start (v,p);
19840   s = g (p, va_arg (v,int));
19841   va_end (v);
19842   return s;
19843 }
19844
19845 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19846    function prototypes and stuff, but not '\xHH' hex character constants.
19847    These don't provoke an error unfortunately, instead are silently treated
19848    as 'x'.  The following induces an error, until -std is added to get
19849    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19850    array size at least.  It's necessary to write '\x00'==0 to get something
19851    that's true only with -std.  */
19852 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19853
19854 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19855    inside strings and character constants.  */
19856 #define FOO(x) 'x'
19857 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19858
19859 int test (int i, double x);
19860 struct s1 {int (*f) (int a);};
19861 struct s2 {int (*f) (double a);};
19862 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19863 int argc;
19864 char **argv;
19865 int
19866 main ()
19867 {
19868 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19869   ;
19870   return 0;
19871 }
19872 _ACEOF
19873 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19874         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19875 do
19876   CC="$ac_save_CC $ac_arg"
19877   rm -f conftest.$ac_objext
19878 if { (ac_try="$ac_compile"
19879 case "(($ac_try" in
19880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881   *) ac_try_echo=$ac_try;;
19882 esac
19883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884   (eval "$ac_compile") 2>conftest.er1
19885   ac_status=$?
19886   grep -v '^ *+' conftest.er1 >conftest.err
19887   rm -f conftest.er1
19888   cat conftest.err >&5
19889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890   (exit $ac_status); } && {
19891          test -z "$ac_c_werror_flag" ||
19892          test ! -s conftest.err
19893        } && test -s conftest.$ac_objext; then
19894   ac_cv_prog_cc_c89=$ac_arg
19895 else
19896   echo "$as_me: failed program was:" >&5
19897 sed 's/^/| /' conftest.$ac_ext >&5
19898
19899
19900 fi
19901
19902 rm -f core conftest.err conftest.$ac_objext
19903   test "x$ac_cv_prog_cc_c89" != "xno" && break
19904 done
19905 rm -f conftest.$ac_ext
19906 CC=$ac_save_CC
19907
19908 fi
19909 # AC_CACHE_VAL
19910 case "x$ac_cv_prog_cc_c89" in
19911   x)
19912     { echo "$as_me:$LINENO: result: none needed" >&5
19913 echo "${ECHO_T}none needed" >&6; } ;;
19914   xno)
19915     { echo "$as_me:$LINENO: result: unsupported" >&5
19916 echo "${ECHO_T}unsupported" >&6; } ;;
19917   *)
19918     CC="$CC $ac_cv_prog_cc_c89"
19919     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19920 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19921 esac
19922
19923
19924 ac_ext=c
19925 ac_cpp='$CPP $CPPFLAGS'
19926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19929
19930 depcc="$CC"   am_compiler_list=
19931
19932 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19933 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19934 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19935   echo $ECHO_N "(cached) $ECHO_C" >&6
19936 else
19937   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19938   # We make a subdir and do the tests there.  Otherwise we can end up
19939   # making bogus files that we don't know about and never remove.  For
19940   # instance it was reported that on HP-UX the gcc test will end up
19941   # making a dummy file named `D' -- because `-MD' means `put the output
19942   # in D'.
19943   mkdir conftest.dir
19944   # Copy depcomp to subdir because otherwise we won't find it if we're
19945   # using a relative directory.
19946   cp "$am_depcomp" conftest.dir
19947   cd conftest.dir
19948   # We will build objects and dependencies in a subdirectory because
19949   # it helps to detect inapplicable dependency modes.  For instance
19950   # both Tru64's cc and ICC support -MD to output dependencies as a
19951   # side effect of compilation, but ICC will put the dependencies in
19952   # the current directory while Tru64 will put them in the object
19953   # directory.
19954   mkdir sub
19955
19956   am_cv_CC_dependencies_compiler_type=none
19957   if test "$am_compiler_list" = ""; then
19958      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19959   fi
19960   for depmode in $am_compiler_list; do
19961     # Setup a source with many dependencies, because some compilers
19962     # like to wrap large dependency lists on column 80 (with \), and
19963     # we should not choose a depcomp mode which is confused by this.
19964     #
19965     # We need to recreate these files for each test, as the compiler may
19966     # overwrite some of them when testing with obscure command lines.
19967     # This happens at least with the AIX C compiler.
19968     : > sub/conftest.c
19969     for i in 1 2 3 4 5 6; do
19970       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19971       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19972       # Solaris 8's {/usr,}/bin/sh.
19973       touch sub/conftst$i.h
19974     done
19975     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19976
19977     case $depmode in
19978     nosideeffect)
19979       # after this tag, mechanisms are not by side-effect, so they'll
19980       # only be used when explicitly requested
19981       if test "x$enable_dependency_tracking" = xyes; then
19982         continue
19983       else
19984         break
19985       fi
19986       ;;
19987     none) break ;;
19988     esac
19989     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19990     # mode.  It turns out that the SunPro C++ compiler does not properly
19991     # handle `-M -o', and we need to detect this.
19992     if depmode=$depmode \
19993        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19994        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19995        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19996          >/dev/null 2>conftest.err &&
19997        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19998        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19999        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20000        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20001       # icc doesn't choke on unknown options, it will just issue warnings
20002       # or remarks (even with -Werror).  So we grep stderr for any message
20003       # that says an option was ignored or not supported.
20004       # When given -MP, icc 7.0 and 7.1 complain thusly:
20005       #   icc: Command line warning: ignoring option '-M'; no argument required
20006       # The diagnosis changed in icc 8.0:
20007       #   icc: Command line remark: option '-MP' not supported
20008       if (grep 'ignoring option' conftest.err ||
20009           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20010         am_cv_CC_dependencies_compiler_type=$depmode
20011         break
20012       fi
20013     fi
20014   done
20015
20016   cd ..
20017   rm -rf conftest.dir
20018 else
20019   am_cv_CC_dependencies_compiler_type=none
20020 fi
20021
20022 fi
20023 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20024 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20025 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20026
20027  if
20028   test "x$enable_dependency_tracking" != xno \
20029   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20030   am__fastdepCC_TRUE=
20031   am__fastdepCC_FALSE='#'
20032 else
20033   am__fastdepCC_TRUE='#'
20034   am__fastdepCC_FALSE=
20035 fi
20036
20037
20038 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20039 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20040 # Just in case
20041 sleep 1
20042 echo timestamp > conftest.file
20043 # Do `set' in a subshell so we don't clobber the current shell's
20044 # arguments.  Must try -L first in case configure is actually a
20045 # symlink; some systems play weird games with the mod time of symlinks
20046 # (eg FreeBSD returns the mod time of the symlink's containing
20047 # directory).
20048 if (
20049    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20050    if test "$*" = "X"; then
20051       # -L didn't work.
20052       set X `ls -t $srcdir/configure conftest.file`
20053    fi
20054    rm -f conftest.file
20055    if test "$*" != "X $srcdir/configure conftest.file" \
20056       && test "$*" != "X conftest.file $srcdir/configure"; then
20057
20058       # If neither matched, then we have a broken ls.  This can happen
20059       # if, for instance, CONFIG_SHELL is bash and it inherits a
20060       # broken ls alias from the environment.  This has actually
20061       # happened.  Such a system could not be considered "sane".
20062       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
20063 alias in your environment" >&5
20064 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
20065 alias in your environment" >&2;}
20066    { (exit 1); exit 1; }; }
20067    fi
20068
20069    test "$2" = conftest.file
20070    )
20071 then
20072    # Ok.
20073    :
20074 else
20075    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20076 Check your system clock" >&5
20077 echo "$as_me: error: newly created file is older than distributed files!
20078 Check your system clock" >&2;}
20079    { (exit 1); exit 1; }; }
20080 fi
20081 { echo "$as_me:$LINENO: result: yes" >&5
20082 echo "${ECHO_T}yes" >&6; }
20083 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20084 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20085 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20086 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20087   echo $ECHO_N "(cached) $ECHO_C" >&6
20088 else
20089   cat >conftest.make <<\_ACEOF
20090 SHELL = /bin/sh
20091 all:
20092         @echo '@@@%%%=$(MAKE)=@@@%%%'
20093 _ACEOF
20094 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20095 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20096   *@@@%%%=?*=@@@%%%*)
20097     eval ac_cv_prog_make_${ac_make}_set=yes;;
20098   *)
20099     eval ac_cv_prog_make_${ac_make}_set=no;;
20100 esac
20101 rm -f conftest.make
20102 fi
20103 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20104   { echo "$as_me:$LINENO: result: yes" >&5
20105 echo "${ECHO_T}yes" >&6; }
20106   SET_MAKE=
20107 else
20108   { echo "$as_me:$LINENO: result: no" >&5
20109 echo "${ECHO_T}no" >&6; }
20110   SET_MAKE="MAKE=${MAKE-make}"
20111 fi
20112
20113
20114 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20115 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20116 if test "$cross_compiling" = yes; then
20117   { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20118 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20119 else
20120   cat >conftest.$ac_ext <<_ACEOF
20121 /* confdefs.h.  */
20122 _ACEOF
20123 cat confdefs.h >>conftest.$ac_ext
20124 cat >>conftest.$ac_ext <<_ACEOF
20125 /* end confdefs.h.  */
20126 #include <stdio.h>
20127 int
20128 main ()
20129 {
20130 printf("%s",NULL);
20131   ;
20132   return 0;
20133 }
20134 _ACEOF
20135 rm -f conftest$ac_exeext
20136 if { (ac_try="$ac_link"
20137 case "(($ac_try" in
20138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139   *) ac_try_echo=$ac_try;;
20140 esac
20141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142   (eval "$ac_link") 2>&5
20143   ac_status=$?
20144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20146   { (case "(($ac_try" in
20147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148   *) ac_try_echo=$ac_try;;
20149 esac
20150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151   (eval "$ac_try") 2>&5
20152   ac_status=$?
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); }; }; then
20155
20156 cat >>confdefs.h <<\_ACEOF
20157 #define PRINTF_NULL_WORKING 1
20158 _ACEOF
20159
20160               { echo "$as_me:$LINENO: result: yes" >&5
20161 echo "${ECHO_T}yes" >&6; }
20162 else
20163   echo "$as_me: program exited with status $ac_status" >&5
20164 echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20166
20167 ( exit $ac_status )
20168 { echo "$as_me:$LINENO: result: no" >&5
20169 echo "${ECHO_T}no" >&6; }
20170 fi
20171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20172 fi
20173
20174
20175
20176
20177     { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20178 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20179     if test "${ac_cv_va_copy+set}" = set; then
20180   echo $ECHO_N "(cached) $ECHO_C" >&6
20181 else
20182
20183     ac_cv_va_copy=""
20184
20185
20186
20187     if test ".$ac_cv_va_copy" = .; then
20188         if test "$cross_compiling" = yes; then
20189   ac_cv_va_copy="C99"
20190 else
20191   cat >conftest.$ac_ext <<_ACEOF
20192 /* confdefs.h.  */
20193 _ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h.  */
20197
20198 #include <stdlib.h>
20199 #include <stdarg.h>
20200 #include <string.h>
20201 #define DO_VA_COPY(d, s) va_copy((d), (s))
20202 void test(char *str, ...)
20203 {
20204     va_list ap, ap2;
20205     int i;
20206     va_start(ap, str);
20207     DO_VA_COPY(ap2, ap);
20208     for (i = 1; i <= 9; i++) {
20209         int k = (int)va_arg(ap, int);
20210         if (k != i)
20211             abort();
20212     }
20213     DO_VA_COPY(ap, ap2);
20214     for (i = 1; i <= 9; i++) {
20215         int k = (int)va_arg(ap, int);
20216         if (k != i)
20217             abort();
20218     }
20219     va_end(ap);
20220 }
20221 int main(int argc, char *argv[])
20222 {
20223     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20224     exit(0);
20225 }
20226
20227 _ACEOF
20228 rm -f conftest$ac_exeext
20229 if { (ac_try="$ac_link"
20230 case "(($ac_try" in
20231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232   *) ac_try_echo=$ac_try;;
20233 esac
20234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235   (eval "$ac_link") 2>&5
20236   ac_status=$?
20237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20239   { (case "(($ac_try" in
20240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241   *) ac_try_echo=$ac_try;;
20242 esac
20243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20244   (eval "$ac_try") 2>&5
20245   ac_status=$?
20246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247   (exit $ac_status); }; }; then
20248   ac_cv_va_copy="C99"
20249 else
20250   echo "$as_me: program exited with status $ac_status" >&5
20251 echo "$as_me: failed program was:" >&5
20252 sed 's/^/| /' conftest.$ac_ext >&5
20253
20254 fi
20255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20256 fi
20257
20258
20259             fi
20260
20261
20262
20263
20264     if test ".$ac_cv_va_copy" = .; then
20265         if test "$cross_compiling" = yes; then
20266   ac_cv_va_copy="GCM"
20267 else
20268   cat >conftest.$ac_ext <<_ACEOF
20269 /* confdefs.h.  */
20270 _ACEOF
20271 cat confdefs.h >>conftest.$ac_ext
20272 cat >>conftest.$ac_ext <<_ACEOF
20273 /* end confdefs.h.  */
20274
20275 #include <stdlib.h>
20276 #include <stdarg.h>
20277 #include <string.h>
20278 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20279 void test(char *str, ...)
20280 {
20281     va_list ap, ap2;
20282     int i;
20283     va_start(ap, str);
20284     DO_VA_COPY(ap2, ap);
20285     for (i = 1; i <= 9; i++) {
20286         int k = (int)va_arg(ap, int);
20287         if (k != i)
20288             abort();
20289     }
20290     DO_VA_COPY(ap, ap2);
20291     for (i = 1; i <= 9; i++) {
20292         int k = (int)va_arg(ap, int);
20293         if (k != i)
20294             abort();
20295     }
20296     va_end(ap);
20297 }
20298 int main(int argc, char *argv[])
20299 {
20300     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20301     exit(0);
20302 }
20303
20304 _ACEOF
20305 rm -f conftest$ac_exeext
20306 if { (ac_try="$ac_link"
20307 case "(($ac_try" in
20308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309   *) ac_try_echo=$ac_try;;
20310 esac
20311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312   (eval "$ac_link") 2>&5
20313   ac_status=$?
20314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20316   { (case "(($ac_try" in
20317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20318   *) ac_try_echo=$ac_try;;
20319 esac
20320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20321   (eval "$ac_try") 2>&5
20322   ac_status=$?
20323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324   (exit $ac_status); }; }; then
20325   ac_cv_va_copy="GCM"
20326 else
20327   echo "$as_me: program exited with status $ac_status" >&5
20328 echo "$as_me: failed program was:" >&5
20329 sed 's/^/| /' conftest.$ac_ext >&5
20330
20331 fi
20332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20333 fi
20334
20335
20336             fi
20337
20338
20339
20340
20341     if test ".$ac_cv_va_copy" = .; then
20342         if test "$cross_compiling" = yes; then
20343   ac_cv_va_copy="GCH"
20344 else
20345   cat >conftest.$ac_ext <<_ACEOF
20346 /* confdefs.h.  */
20347 _ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h.  */
20351
20352 #include <stdlib.h>
20353 #include <stdarg.h>
20354 #include <string.h>
20355 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20356 void test(char *str, ...)
20357 {
20358     va_list ap, ap2;
20359     int i;
20360     va_start(ap, str);
20361     DO_VA_COPY(ap2, ap);
20362     for (i = 1; i <= 9; i++) {
20363         int k = (int)va_arg(ap, int);
20364         if (k != i)
20365             abort();
20366     }
20367     DO_VA_COPY(ap, ap2);
20368     for (i = 1; i <= 9; i++) {
20369         int k = (int)va_arg(ap, int);
20370         if (k != i)
20371             abort();
20372     }
20373     va_end(ap);
20374 }
20375 int main(int argc, char *argv[])
20376 {
20377     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20378     exit(0);
20379 }
20380
20381 _ACEOF
20382 rm -f conftest$ac_exeext
20383 if { (ac_try="$ac_link"
20384 case "(($ac_try" in
20385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386   *) ac_try_echo=$ac_try;;
20387 esac
20388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389   (eval "$ac_link") 2>&5
20390   ac_status=$?
20391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20393   { (case "(($ac_try" in
20394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395   *) ac_try_echo=$ac_try;;
20396 esac
20397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20398   (eval "$ac_try") 2>&5
20399   ac_status=$?
20400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401   (exit $ac_status); }; }; then
20402   ac_cv_va_copy="GCH"
20403 else
20404   echo "$as_me: program exited with status $ac_status" >&5
20405 echo "$as_me: failed program was:" >&5
20406 sed 's/^/| /' conftest.$ac_ext >&5
20407
20408 fi
20409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20410 fi
20411
20412
20413             fi
20414
20415
20416
20417
20418     if test ".$ac_cv_va_copy" = .; then
20419         if test "$cross_compiling" = yes; then
20420   ac_cv_va_copy="GCB"
20421 else
20422   cat >conftest.$ac_ext <<_ACEOF
20423 /* confdefs.h.  */
20424 _ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h.  */
20428
20429 #include <stdlib.h>
20430 #include <stdarg.h>
20431 #include <string.h>
20432 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20433 void test(char *str, ...)
20434 {
20435     va_list ap, ap2;
20436     int i;
20437     va_start(ap, str);
20438     DO_VA_COPY(ap2, ap);
20439     for (i = 1; i <= 9; i++) {
20440         int k = (int)va_arg(ap, int);
20441         if (k != i)
20442             abort();
20443     }
20444     DO_VA_COPY(ap, ap2);
20445     for (i = 1; i <= 9; i++) {
20446         int k = (int)va_arg(ap, int);
20447         if (k != i)
20448             abort();
20449     }
20450     va_end(ap);
20451 }
20452 int main(int argc, char *argv[])
20453 {
20454     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20455     exit(0);
20456 }
20457
20458 _ACEOF
20459 rm -f conftest$ac_exeext
20460 if { (ac_try="$ac_link"
20461 case "(($ac_try" in
20462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463   *) ac_try_echo=$ac_try;;
20464 esac
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466   (eval "$ac_link") 2>&5
20467   ac_status=$?
20468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20470   { (case "(($ac_try" in
20471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472   *) ac_try_echo=$ac_try;;
20473 esac
20474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475   (eval "$ac_try") 2>&5
20476   ac_status=$?
20477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478   (exit $ac_status); }; }; then
20479   ac_cv_va_copy="GCB"
20480 else
20481   echo "$as_me: program exited with status $ac_status" >&5
20482 echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20484
20485 fi
20486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20487 fi
20488
20489
20490             fi
20491
20492
20493
20494
20495     if test ".$ac_cv_va_copy" = .; then
20496         if test "$cross_compiling" = yes; then
20497   ac_cv_va_copy="ASS"
20498 else
20499   cat >conftest.$ac_ext <<_ACEOF
20500 /* confdefs.h.  */
20501 _ACEOF
20502 cat confdefs.h >>conftest.$ac_ext
20503 cat >>conftest.$ac_ext <<_ACEOF
20504 /* end confdefs.h.  */
20505
20506 #include <stdlib.h>
20507 #include <stdarg.h>
20508 #include <string.h>
20509 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20510 void test(char *str, ...)
20511 {
20512     va_list ap, ap2;
20513     int i;
20514     va_start(ap, str);
20515     DO_VA_COPY(ap2, ap);
20516     for (i = 1; i <= 9; i++) {
20517         int k = (int)va_arg(ap, int);
20518         if (k != i)
20519             abort();
20520     }
20521     DO_VA_COPY(ap, ap2);
20522     for (i = 1; i <= 9; i++) {
20523         int k = (int)va_arg(ap, int);
20524         if (k != i)
20525             abort();
20526     }
20527     va_end(ap);
20528 }
20529 int main(int argc, char *argv[])
20530 {
20531     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20532     exit(0);
20533 }
20534
20535 _ACEOF
20536 rm -f conftest$ac_exeext
20537 if { (ac_try="$ac_link"
20538 case "(($ac_try" in
20539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540   *) ac_try_echo=$ac_try;;
20541 esac
20542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543   (eval "$ac_link") 2>&5
20544   ac_status=$?
20545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20547   { (case "(($ac_try" in
20548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20549   *) ac_try_echo=$ac_try;;
20550 esac
20551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20552   (eval "$ac_try") 2>&5
20553   ac_status=$?
20554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555   (exit $ac_status); }; }; then
20556   ac_cv_va_copy="ASS"
20557 else
20558   echo "$as_me: program exited with status $ac_status" >&5
20559 echo "$as_me: failed program was:" >&5
20560 sed 's/^/| /' conftest.$ac_ext >&5
20561
20562 fi
20563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20564 fi
20565
20566
20567             fi
20568
20569
20570
20571
20572     if test ".$ac_cv_va_copy" = .; then
20573         if test "$cross_compiling" = yes; then
20574   ac_cv_va_copy="ASP"
20575 else
20576   cat >conftest.$ac_ext <<_ACEOF
20577 /* confdefs.h.  */
20578 _ACEOF
20579 cat confdefs.h >>conftest.$ac_ext
20580 cat >>conftest.$ac_ext <<_ACEOF
20581 /* end confdefs.h.  */
20582
20583 #include <stdlib.h>
20584 #include <stdarg.h>
20585 #include <string.h>
20586 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20587 void test(char *str, ...)
20588 {
20589     va_list ap, ap2;
20590     int i;
20591     va_start(ap, str);
20592     DO_VA_COPY(ap2, ap);
20593     for (i = 1; i <= 9; i++) {
20594         int k = (int)va_arg(ap, int);
20595         if (k != i)
20596             abort();
20597     }
20598     DO_VA_COPY(ap, ap2);
20599     for (i = 1; i <= 9; i++) {
20600         int k = (int)va_arg(ap, int);
20601         if (k != i)
20602             abort();
20603     }
20604     va_end(ap);
20605 }
20606 int main(int argc, char *argv[])
20607 {
20608     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20609     exit(0);
20610 }
20611
20612 _ACEOF
20613 rm -f conftest$ac_exeext
20614 if { (ac_try="$ac_link"
20615 case "(($ac_try" in
20616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617   *) ac_try_echo=$ac_try;;
20618 esac
20619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20620   (eval "$ac_link") 2>&5
20621   ac_status=$?
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20624   { (case "(($ac_try" in
20625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626   *) ac_try_echo=$ac_try;;
20627 esac
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629   (eval "$ac_try") 2>&5
20630   ac_status=$?
20631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632   (exit $ac_status); }; }; then
20633   ac_cv_va_copy="ASP"
20634 else
20635   echo "$as_me: program exited with status $ac_status" >&5
20636 echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20638
20639 fi
20640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20641 fi
20642
20643
20644             fi
20645
20646
20647
20648
20649     if test ".$ac_cv_va_copy" = .; then
20650         if test "$cross_compiling" = yes; then
20651   ac_cv_va_copy="CPS"
20652 else
20653   cat >conftest.$ac_ext <<_ACEOF
20654 /* confdefs.h.  */
20655 _ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h.  */
20659
20660 #include <stdlib.h>
20661 #include <stdarg.h>
20662 #include <string.h>
20663 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20664 void test(char *str, ...)
20665 {
20666     va_list ap, ap2;
20667     int i;
20668     va_start(ap, str);
20669     DO_VA_COPY(ap2, ap);
20670     for (i = 1; i <= 9; i++) {
20671         int k = (int)va_arg(ap, int);
20672         if (k != i)
20673             abort();
20674     }
20675     DO_VA_COPY(ap, ap2);
20676     for (i = 1; i <= 9; i++) {
20677         int k = (int)va_arg(ap, int);
20678         if (k != i)
20679             abort();
20680     }
20681     va_end(ap);
20682 }
20683 int main(int argc, char *argv[])
20684 {
20685     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20686     exit(0);
20687 }
20688
20689 _ACEOF
20690 rm -f conftest$ac_exeext
20691 if { (ac_try="$ac_link"
20692 case "(($ac_try" in
20693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20694   *) ac_try_echo=$ac_try;;
20695 esac
20696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20697   (eval "$ac_link") 2>&5
20698   ac_status=$?
20699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20701   { (case "(($ac_try" in
20702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20703   *) ac_try_echo=$ac_try;;
20704 esac
20705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20706   (eval "$ac_try") 2>&5
20707   ac_status=$?
20708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709   (exit $ac_status); }; }; then
20710   ac_cv_va_copy="CPS"
20711 else
20712   echo "$as_me: program exited with status $ac_status" >&5
20713 echo "$as_me: failed program was:" >&5
20714 sed 's/^/| /' conftest.$ac_ext >&5
20715
20716 fi
20717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20718 fi
20719
20720
20721             fi
20722
20723
20724
20725
20726     if test ".$ac_cv_va_copy" = .; then
20727         if test "$cross_compiling" = yes; then
20728   ac_cv_va_copy="CPP"
20729 else
20730   cat >conftest.$ac_ext <<_ACEOF
20731 /* confdefs.h.  */
20732 _ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h.  */
20736
20737 #include <stdlib.h>
20738 #include <stdarg.h>
20739 #include <string.h>
20740 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20741 void test(char *str, ...)
20742 {
20743     va_list ap, ap2;
20744     int i;
20745     va_start(ap, str);
20746     DO_VA_COPY(ap2, ap);
20747     for (i = 1; i <= 9; i++) {
20748         int k = (int)va_arg(ap, int);
20749         if (k != i)
20750             abort();
20751     }
20752     DO_VA_COPY(ap, ap2);
20753     for (i = 1; i <= 9; i++) {
20754         int k = (int)va_arg(ap, int);
20755         if (k != i)
20756             abort();
20757     }
20758     va_end(ap);
20759 }
20760 int main(int argc, char *argv[])
20761 {
20762     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20763     exit(0);
20764 }
20765
20766 _ACEOF
20767 rm -f conftest$ac_exeext
20768 if { (ac_try="$ac_link"
20769 case "(($ac_try" in
20770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20771   *) ac_try_echo=$ac_try;;
20772 esac
20773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20774   (eval "$ac_link") 2>&5
20775   ac_status=$?
20776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20778   { (case "(($ac_try" in
20779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780   *) ac_try_echo=$ac_try;;
20781 esac
20782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20783   (eval "$ac_try") 2>&5
20784   ac_status=$?
20785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786   (exit $ac_status); }; }; then
20787   ac_cv_va_copy="CPP"
20788 else
20789   echo "$as_me: program exited with status $ac_status" >&5
20790 echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20792
20793 fi
20794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20795 fi
20796
20797
20798             fi
20799
20800     if test ".$ac_cv_va_copy" = .; then
20801         { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20802 echo "$as_me: error: no working implementation found" >&2;}
20803    { (exit 1); exit 1; }; }
20804     fi
20805
20806 fi
20807
20808     if test ".$ac_cv_va_copy" = ".C99"; then
20809
20810 cat >>confdefs.h <<\_ACEOF
20811 #define HAVE_VA_COPY 1
20812 _ACEOF
20813
20814   fi
20815
20816 cat >>confdefs.h <<_ACEOF
20817 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20818 _ACEOF
20819
20820
20821
20822     if test ".$ac_cv_va_copy" = ".C99"; then
20823       { echo "$as_me:$LINENO: result: yes" >&5
20824 echo "${ECHO_T}yes" >&6; }
20825   else
20826       { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20827 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20828   fi
20829
20830
20831 # Checks for header files.
20832 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20833 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20834 if test "${ac_cv_header_stdc+set}" = set; then
20835   echo $ECHO_N "(cached) $ECHO_C" >&6
20836 else
20837   cat >conftest.$ac_ext <<_ACEOF
20838 /* confdefs.h.  */
20839 _ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h.  */
20843 #include <stdlib.h>
20844 #include <stdarg.h>
20845 #include <string.h>
20846 #include <float.h>
20847
20848 int
20849 main ()
20850 {
20851
20852   ;
20853   return 0;
20854 }
20855 _ACEOF
20856 rm -f conftest.$ac_objext
20857 if { (ac_try="$ac_compile"
20858 case "(($ac_try" in
20859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860   *) ac_try_echo=$ac_try;;
20861 esac
20862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863   (eval "$ac_compile") 2>conftest.er1
20864   ac_status=$?
20865   grep -v '^ *+' conftest.er1 >conftest.err
20866   rm -f conftest.er1
20867   cat conftest.err >&5
20868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869   (exit $ac_status); } && {
20870          test -z "$ac_c_werror_flag" ||
20871          test ! -s conftest.err
20872        } && test -s conftest.$ac_objext; then
20873   ac_cv_header_stdc=yes
20874 else
20875   echo "$as_me: failed program was:" >&5
20876 sed 's/^/| /' conftest.$ac_ext >&5
20877
20878         ac_cv_header_stdc=no
20879 fi
20880
20881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20882
20883 if test $ac_cv_header_stdc = yes; then
20884   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20885   cat >conftest.$ac_ext <<_ACEOF
20886 /* confdefs.h.  */
20887 _ACEOF
20888 cat confdefs.h >>conftest.$ac_ext
20889 cat >>conftest.$ac_ext <<_ACEOF
20890 /* end confdefs.h.  */
20891 #include <string.h>
20892
20893 _ACEOF
20894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20895   $EGREP "memchr" >/dev/null 2>&1; then
20896   :
20897 else
20898   ac_cv_header_stdc=no
20899 fi
20900 rm -f conftest*
20901
20902 fi
20903
20904 if test $ac_cv_header_stdc = yes; then
20905   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20906   cat >conftest.$ac_ext <<_ACEOF
20907 /* confdefs.h.  */
20908 _ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h.  */
20912 #include <stdlib.h>
20913
20914 _ACEOF
20915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20916   $EGREP "free" >/dev/null 2>&1; then
20917   :
20918 else
20919   ac_cv_header_stdc=no
20920 fi
20921 rm -f conftest*
20922
20923 fi
20924
20925 if test $ac_cv_header_stdc = yes; then
20926   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20927   if test "$cross_compiling" = yes; then
20928   :
20929 else
20930   cat >conftest.$ac_ext <<_ACEOF
20931 /* confdefs.h.  */
20932 _ACEOF
20933 cat confdefs.h >>conftest.$ac_ext
20934 cat >>conftest.$ac_ext <<_ACEOF
20935 /* end confdefs.h.  */
20936 #include <ctype.h>
20937 #include <stdlib.h>
20938 #if ((' ' & 0x0FF) == 0x020)
20939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20941 #else
20942 # define ISLOWER(c) \
20943                    (('a' <= (c) && (c) <= 'i') \
20944                      || ('j' <= (c) && (c) <= 'r') \
20945                      || ('s' <= (c) && (c) <= 'z'))
20946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20947 #endif
20948
20949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20950 int
20951 main ()
20952 {
20953   int i;
20954   for (i = 0; i < 256; i++)
20955     if (XOR (islower (i), ISLOWER (i))
20956         || toupper (i) != TOUPPER (i))
20957       return 2;
20958   return 0;
20959 }
20960 _ACEOF
20961 rm -f conftest$ac_exeext
20962 if { (ac_try="$ac_link"
20963 case "(($ac_try" in
20964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965   *) ac_try_echo=$ac_try;;
20966 esac
20967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20968   (eval "$ac_link") 2>&5
20969   ac_status=$?
20970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20972   { (case "(($ac_try" in
20973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974   *) ac_try_echo=$ac_try;;
20975 esac
20976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20977   (eval "$ac_try") 2>&5
20978   ac_status=$?
20979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980   (exit $ac_status); }; }; then
20981   :
20982 else
20983   echo "$as_me: program exited with status $ac_status" >&5
20984 echo "$as_me: failed program was:" >&5
20985 sed 's/^/| /' conftest.$ac_ext >&5
20986
20987 ( exit $ac_status )
20988 ac_cv_header_stdc=no
20989 fi
20990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20991 fi
20992
20993
20994 fi
20995 fi
20996 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20997 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20998 if test $ac_cv_header_stdc = yes; then
20999
21000 cat >>confdefs.h <<\_ACEOF
21001 #define STDC_HEADERS 1
21002 _ACEOF
21003
21004 fi
21005
21006 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21007 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21008 if test "${ac_cv_header_time+set}" = set; then
21009   echo $ECHO_N "(cached) $ECHO_C" >&6
21010 else
21011   cat >conftest.$ac_ext <<_ACEOF
21012 /* confdefs.h.  */
21013 _ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h.  */
21017 #include <sys/types.h>
21018 #include <sys/time.h>
21019 #include <time.h>
21020
21021 int
21022 main ()
21023 {
21024 if ((struct tm *) 0)
21025 return 0;
21026   ;
21027   return 0;
21028 }
21029 _ACEOF
21030 rm -f conftest.$ac_objext
21031 if { (ac_try="$ac_compile"
21032 case "(($ac_try" in
21033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21034   *) ac_try_echo=$ac_try;;
21035 esac
21036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21037   (eval "$ac_compile") 2>conftest.er1
21038   ac_status=$?
21039   grep -v '^ *+' conftest.er1 >conftest.err
21040   rm -f conftest.er1
21041   cat conftest.err >&5
21042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043   (exit $ac_status); } && {
21044          test -z "$ac_c_werror_flag" ||
21045          test ! -s conftest.err
21046        } && test -s conftest.$ac_objext; then
21047   ac_cv_header_time=yes
21048 else
21049   echo "$as_me: failed program was:" >&5
21050 sed 's/^/| /' conftest.$ac_ext >&5
21051
21052         ac_cv_header_time=no
21053 fi
21054
21055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21056 fi
21057 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21058 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21059 if test $ac_cv_header_time = yes; then
21060
21061 cat >>confdefs.h <<\_ACEOF
21062 #define TIME_WITH_SYS_TIME 1
21063 _ACEOF
21064
21065 fi
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077 for ac_header in sys/socket.h \
21078                   sys/stat.h \
21079                   windows.h winsock.h winsock2.h \
21080                   sys/time.h \
21081                   errno.h unistd.h \
21082                   execinfo.h\
21083                   signal.h
21084 do
21085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21087   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21090   echo $ECHO_N "(cached) $ECHO_C" >&6
21091 fi
21092 ac_res=`eval echo '${'$as_ac_Header'}'`
21093                { echo "$as_me:$LINENO: result: $ac_res" >&5
21094 echo "${ECHO_T}$ac_res" >&6; }
21095 else
21096   # Is the header compilable?
21097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21099 cat >conftest.$ac_ext <<_ACEOF
21100 /* confdefs.h.  */
21101 _ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h.  */
21105 $ac_includes_default
21106 #include <$ac_header>
21107 _ACEOF
21108 rm -f conftest.$ac_objext
21109 if { (ac_try="$ac_compile"
21110 case "(($ac_try" in
21111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21112   *) ac_try_echo=$ac_try;;
21113 esac
21114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21115   (eval "$ac_compile") 2>conftest.er1
21116   ac_status=$?
21117   grep -v '^ *+' conftest.er1 >conftest.err
21118   rm -f conftest.er1
21119   cat conftest.err >&5
21120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121   (exit $ac_status); } && {
21122          test -z "$ac_c_werror_flag" ||
21123          test ! -s conftest.err
21124        } && test -s conftest.$ac_objext; then
21125   ac_header_compiler=yes
21126 else
21127   echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21129
21130         ac_header_compiler=no
21131 fi
21132
21133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21134 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21135 echo "${ECHO_T}$ac_header_compiler" >&6; }
21136
21137 # Is the header present?
21138 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21140 cat >conftest.$ac_ext <<_ACEOF
21141 /* confdefs.h.  */
21142 _ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h.  */
21146 #include <$ac_header>
21147 _ACEOF
21148 if { (ac_try="$ac_cpp conftest.$ac_ext"
21149 case "(($ac_try" in
21150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151   *) ac_try_echo=$ac_try;;
21152 esac
21153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21154   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21155   ac_status=$?
21156   grep -v '^ *+' conftest.er1 >conftest.err
21157   rm -f conftest.er1
21158   cat conftest.err >&5
21159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160   (exit $ac_status); } >/dev/null && {
21161          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21162          test ! -s conftest.err
21163        }; then
21164   ac_header_preproc=yes
21165 else
21166   echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21168
21169   ac_header_preproc=no
21170 fi
21171
21172 rm -f conftest.err conftest.$ac_ext
21173 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21174 echo "${ECHO_T}$ac_header_preproc" >&6; }
21175
21176 # So?  What about this header?
21177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21178   yes:no: )
21179     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21181     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21183     ac_header_preproc=yes
21184     ;;
21185   no:yes:* )
21186     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21188     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21189 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21190     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21192     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21193 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21196     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21198     ( cat <<\_ASBOX
21199 ## -------------------------------------------------- ##
21200 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21201 ## -------------------------------------------------- ##
21202 _ASBOX
21203      ) | sed "s/^/$as_me: WARNING:     /" >&2
21204     ;;
21205 esac
21206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21209   echo $ECHO_N "(cached) $ECHO_C" >&6
21210 else
21211   eval "$as_ac_Header=\$ac_header_preproc"
21212 fi
21213 ac_res=`eval echo '${'$as_ac_Header'}'`
21214                { echo "$as_me:$LINENO: result: $ac_res" >&5
21215 echo "${ECHO_T}$ac_res" >&6; }
21216
21217 fi
21218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21219   cat >>confdefs.h <<_ACEOF
21220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21221 _ACEOF
21222
21223 fi
21224
21225 done
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235 for ac_func in gettimeofday usleep \
21236                 getdtablesize \
21237                 sysconf\
21238                 readv\
21239                 popen\
21240                 signal\
21241                 getline
21242 do
21243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21244 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21246 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21247   echo $ECHO_N "(cached) $ECHO_C" >&6
21248 else
21249   cat >conftest.$ac_ext <<_ACEOF
21250 /* confdefs.h.  */
21251 _ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h.  */
21255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21256    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21257 #define $ac_func innocuous_$ac_func
21258
21259 /* System header to define __stub macros and hopefully few prototypes,
21260     which can conflict with char $ac_func (); below.
21261     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21262     <limits.h> exists even on freestanding compilers.  */
21263
21264 #ifdef __STDC__
21265 # include <limits.h>
21266 #else
21267 # include <assert.h>
21268 #endif
21269
21270 #undef $ac_func
21271
21272 /* Override any GCC internal prototype to avoid an error.
21273    Use char because int might match the return type of a GCC
21274    builtin and then its argument prototype would still apply.  */
21275 #ifdef __cplusplus
21276 extern "C"
21277 #endif
21278 char $ac_func ();
21279 /* The GNU C library defines this for functions which it implements
21280     to always fail with ENOSYS.  Some functions are actually named
21281     something starting with __ and the normal name is an alias.  */
21282 #if defined __stub_$ac_func || defined __stub___$ac_func
21283 choke me
21284 #endif
21285
21286 int
21287 main ()
21288 {
21289 return $ac_func ();
21290   ;
21291   return 0;
21292 }
21293 _ACEOF
21294 rm -f conftest.$ac_objext conftest$ac_exeext
21295 if { (ac_try="$ac_link"
21296 case "(($ac_try" in
21297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298   *) ac_try_echo=$ac_try;;
21299 esac
21300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301   (eval "$ac_link") 2>conftest.er1
21302   ac_status=$?
21303   grep -v '^ *+' conftest.er1 >conftest.err
21304   rm -f conftest.er1
21305   cat conftest.err >&5
21306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307   (exit $ac_status); } && {
21308          test -z "$ac_c_werror_flag" ||
21309          test ! -s conftest.err
21310        } && test -s conftest$ac_exeext &&
21311        $as_test_x conftest$ac_exeext; then
21312   eval "$as_ac_var=yes"
21313 else
21314   echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21316
21317         eval "$as_ac_var=no"
21318 fi
21319
21320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21321       conftest$ac_exeext conftest.$ac_ext
21322 fi
21323 ac_res=`eval echo '${'$as_ac_var'}'`
21324                { echo "$as_me:$LINENO: result: $ac_res" >&5
21325 echo "${ECHO_T}$ac_res" >&6; }
21326 if test `eval echo '${'$as_ac_var'}'` = yes; then
21327   cat >>confdefs.h <<_ACEOF
21328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21329 _ACEOF
21330
21331 fi
21332 done
21333
21334
21335 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21336
21337
21338 for ac_func in snprintf vsnprintf
21339 do
21340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21344   echo $ECHO_N "(cached) $ECHO_C" >&6
21345 else
21346   cat >conftest.$ac_ext <<_ACEOF
21347 /* confdefs.h.  */
21348 _ACEOF
21349 cat confdefs.h >>conftest.$ac_ext
21350 cat >>conftest.$ac_ext <<_ACEOF
21351 /* end confdefs.h.  */
21352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21354 #define $ac_func innocuous_$ac_func
21355
21356 /* System header to define __stub macros and hopefully few prototypes,
21357     which can conflict with char $ac_func (); below.
21358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21359     <limits.h> exists even on freestanding compilers.  */
21360
21361 #ifdef __STDC__
21362 # include <limits.h>
21363 #else
21364 # include <assert.h>
21365 #endif
21366
21367 #undef $ac_func
21368
21369 /* Override any GCC internal prototype to avoid an error.
21370    Use char because int might match the return type of a GCC
21371    builtin and then its argument prototype would still apply.  */
21372 #ifdef __cplusplus
21373 extern "C"
21374 #endif
21375 char $ac_func ();
21376 /* The GNU C library defines this for functions which it implements
21377     to always fail with ENOSYS.  Some functions are actually named
21378     something starting with __ and the normal name is an alias.  */
21379 #if defined __stub_$ac_func || defined __stub___$ac_func
21380 choke me
21381 #endif
21382
21383 int
21384 main ()
21385 {
21386 return $ac_func ();
21387   ;
21388   return 0;
21389 }
21390 _ACEOF
21391 rm -f conftest.$ac_objext conftest$ac_exeext
21392 if { (ac_try="$ac_link"
21393 case "(($ac_try" in
21394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395   *) ac_try_echo=$ac_try;;
21396 esac
21397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21398   (eval "$ac_link") 2>conftest.er1
21399   ac_status=$?
21400   grep -v '^ *+' conftest.er1 >conftest.err
21401   rm -f conftest.er1
21402   cat conftest.err >&5
21403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404   (exit $ac_status); } && {
21405          test -z "$ac_c_werror_flag" ||
21406          test ! -s conftest.err
21407        } && test -s conftest$ac_exeext &&
21408        $as_test_x conftest$ac_exeext; then
21409   eval "$as_ac_var=yes"
21410 else
21411   echo "$as_me: failed program was:" >&5
21412 sed 's/^/| /' conftest.$ac_ext >&5
21413
21414         eval "$as_ac_var=no"
21415 fi
21416
21417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21418       conftest$ac_exeext conftest.$ac_ext
21419 fi
21420 ac_res=`eval echo '${'$as_ac_var'}'`
21421                { echo "$as_me:$LINENO: result: $ac_res" >&5
21422 echo "${ECHO_T}$ac_res" >&6; }
21423 if test `eval echo '${'$as_ac_var'}'` = yes; then
21424   cat >>confdefs.h <<_ACEOF
21425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21426 _ACEOF
21427
21428 fi
21429 done
21430
21431 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21432 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21433 if test "${ac_cv_have_working_snprintf+set}" = set; then
21434   echo $ECHO_N "(cached) $ECHO_C" >&6
21435 else
21436   if test "$cross_compiling" = yes; then
21437   ac_cv_have_working_snprintf=cross
21438 else
21439   cat >conftest.$ac_ext <<_ACEOF
21440 /* confdefs.h.  */
21441 _ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h.  */
21445 #include <stdio.h>
21446
21447 int main(void)
21448 {
21449     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21450     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21451     int i;
21452     i = snprintf (bufs, 2, "%s", "111");
21453     if (strcmp (bufs, "1")) exit (1);
21454     if (i != 3) exit (1);
21455     i = snprintf (bufd, 2, "%d", 111);
21456     if (strcmp (bufd, "1")) exit (1);
21457     if (i != 3) exit (1);
21458     exit(0);
21459 }
21460 _ACEOF
21461 rm -f conftest$ac_exeext
21462 if { (ac_try="$ac_link"
21463 case "(($ac_try" in
21464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21465   *) ac_try_echo=$ac_try;;
21466 esac
21467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21468   (eval "$ac_link") 2>&5
21469   ac_status=$?
21470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21472   { (case "(($ac_try" in
21473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21474   *) ac_try_echo=$ac_try;;
21475 esac
21476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21477   (eval "$ac_try") 2>&5
21478   ac_status=$?
21479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480   (exit $ac_status); }; }; then
21481   ac_cv_have_working_snprintf=yes
21482 else
21483   echo "$as_me: program exited with status $ac_status" >&5
21484 echo "$as_me: failed program was:" >&5
21485 sed 's/^/| /' conftest.$ac_ext >&5
21486
21487 ( exit $ac_status )
21488 ac_cv_have_working_snprintf=no
21489 fi
21490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21491 fi
21492
21493
21494 fi
21495
21496 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21497 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21498 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21499 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21500 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21501   echo $ECHO_N "(cached) $ECHO_C" >&6
21502 else
21503   if test "$cross_compiling" = yes; then
21504   ac_cv_have_working_vsnprintf=cross
21505 else
21506   cat >conftest.$ac_ext <<_ACEOF
21507 /* confdefs.h.  */
21508 _ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h.  */
21512 #include <stdio.h>
21513 #include <stdarg.h>
21514
21515 int my_vsnprintf (char *buf, const char *tmpl, ...)
21516 {
21517     int i;
21518     va_list args;
21519     va_start (args, tmpl);
21520     i = vsnprintf (buf, 2, tmpl, args);
21521     va_end (args);
21522     return i;
21523 }
21524
21525 int main(void)
21526 {
21527     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21528     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21529     int i;
21530     i = my_vsnprintf (bufs, "%s", "111");
21531     if (strcmp (bufs, "1")) exit (1);
21532     if (i != 3) exit (1);
21533     i = my_vsnprintf (bufd, "%d", 111);
21534     if (strcmp (bufd, "1")) exit (1);
21535     if (i != 3) exit (1);
21536     exit(0);
21537 }
21538 _ACEOF
21539 rm -f conftest$ac_exeext
21540 if { (ac_try="$ac_link"
21541 case "(($ac_try" in
21542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21543   *) ac_try_echo=$ac_try;;
21544 esac
21545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21546   (eval "$ac_link") 2>&5
21547   ac_status=$?
21548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21550   { (case "(($ac_try" in
21551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21552   *) ac_try_echo=$ac_try;;
21553 esac
21554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21555   (eval "$ac_try") 2>&5
21556   ac_status=$?
21557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558   (exit $ac_status); }; }; then
21559   ac_cv_have_working_vsnprintf=yes
21560 else
21561   echo "$as_me: program exited with status $ac_status" >&5
21562 echo "$as_me: failed program was:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21564
21565 ( exit $ac_status )
21566 ac_cv_have_working_vsnprintf=no
21567 fi
21568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21569 fi
21570
21571
21572 fi
21573
21574 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21575 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21576 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21577   case " $LIBOBJS " in
21578   *" snprintf.$ac_objext "* ) ;;
21579   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21580  ;;
21581 esac
21582
21583   { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21584 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21585
21586 cat >>confdefs.h <<\_ACEOF
21587 #define PREFER_PORTABLE_SNPRINTF 1
21588 _ACEOF
21589
21590 fi
21591 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21592 { echo "$as_me:$LINENO: checking for asprintf" >&5
21593 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21594 if test "${ac_cv_func_asprintf+set}" = set; then
21595   echo $ECHO_N "(cached) $ECHO_C" >&6
21596 else
21597   cat >conftest.$ac_ext <<_ACEOF
21598 /* confdefs.h.  */
21599 _ACEOF
21600 cat confdefs.h >>conftest.$ac_ext
21601 cat >>conftest.$ac_ext <<_ACEOF
21602 /* end confdefs.h.  */
21603 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21604    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21605 #define asprintf innocuous_asprintf
21606
21607 /* System header to define __stub macros and hopefully few prototypes,
21608     which can conflict with char asprintf (); below.
21609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21610     <limits.h> exists even on freestanding compilers.  */
21611
21612 #ifdef __STDC__
21613 # include <limits.h>
21614 #else
21615 # include <assert.h>
21616 #endif
21617
21618 #undef asprintf
21619
21620 /* Override any GCC internal prototype to avoid an error.
21621    Use char because int might match the return type of a GCC
21622    builtin and then its argument prototype would still apply.  */
21623 #ifdef __cplusplus
21624 extern "C"
21625 #endif
21626 char asprintf ();
21627 /* The GNU C library defines this for functions which it implements
21628     to always fail with ENOSYS.  Some functions are actually named
21629     something starting with __ and the normal name is an alias.  */
21630 #if defined __stub_asprintf || defined __stub___asprintf
21631 choke me
21632 #endif
21633
21634 int
21635 main ()
21636 {
21637 return asprintf ();
21638   ;
21639   return 0;
21640 }
21641 _ACEOF
21642 rm -f conftest.$ac_objext conftest$ac_exeext
21643 if { (ac_try="$ac_link"
21644 case "(($ac_try" in
21645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21646   *) ac_try_echo=$ac_try;;
21647 esac
21648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21649   (eval "$ac_link") 2>conftest.er1
21650   ac_status=$?
21651   grep -v '^ *+' conftest.er1 >conftest.err
21652   rm -f conftest.er1
21653   cat conftest.err >&5
21654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655   (exit $ac_status); } && {
21656          test -z "$ac_c_werror_flag" ||
21657          test ! -s conftest.err
21658        } && test -s conftest$ac_exeext &&
21659        $as_test_x conftest$ac_exeext; then
21660   ac_cv_func_asprintf=yes
21661 else
21662   echo "$as_me: failed program was:" >&5
21663 sed 's/^/| /' conftest.$ac_ext >&5
21664
21665         ac_cv_func_asprintf=no
21666 fi
21667
21668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21669       conftest$ac_exeext conftest.$ac_ext
21670 fi
21671 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21672 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21673 if test $ac_cv_func_asprintf = yes; then
21674   :
21675 else
21676
21677 cat >>confdefs.h <<\_ACEOF
21678 #define NEED_ASPRINTF 1
21679 _ACEOF
21680
21681 fi
21682
21683 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21684 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21685 if test "${ac_cv_func_vasprintf+set}" = set; then
21686   echo $ECHO_N "(cached) $ECHO_C" >&6
21687 else
21688   cat >conftest.$ac_ext <<_ACEOF
21689 /* confdefs.h.  */
21690 _ACEOF
21691 cat confdefs.h >>conftest.$ac_ext
21692 cat >>conftest.$ac_ext <<_ACEOF
21693 /* end confdefs.h.  */
21694 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21696 #define vasprintf innocuous_vasprintf
21697
21698 /* System header to define __stub macros and hopefully few prototypes,
21699     which can conflict with char vasprintf (); below.
21700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21701     <limits.h> exists even on freestanding compilers.  */
21702
21703 #ifdef __STDC__
21704 # include <limits.h>
21705 #else
21706 # include <assert.h>
21707 #endif
21708
21709 #undef vasprintf
21710
21711 /* Override any GCC internal prototype to avoid an error.
21712    Use char because int might match the return type of a GCC
21713    builtin and then its argument prototype would still apply.  */
21714 #ifdef __cplusplus
21715 extern "C"
21716 #endif
21717 char vasprintf ();
21718 /* The GNU C library defines this for functions which it implements
21719     to always fail with ENOSYS.  Some functions are actually named
21720     something starting with __ and the normal name is an alias.  */
21721 #if defined __stub_vasprintf || defined __stub___vasprintf
21722 choke me
21723 #endif
21724
21725 int
21726 main ()
21727 {
21728 return vasprintf ();
21729   ;
21730   return 0;
21731 }
21732 _ACEOF
21733 rm -f conftest.$ac_objext conftest$ac_exeext
21734 if { (ac_try="$ac_link"
21735 case "(($ac_try" in
21736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21737   *) ac_try_echo=$ac_try;;
21738 esac
21739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21740   (eval "$ac_link") 2>conftest.er1
21741   ac_status=$?
21742   grep -v '^ *+' conftest.er1 >conftest.err
21743   rm -f conftest.er1
21744   cat conftest.err >&5
21745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746   (exit $ac_status); } && {
21747          test -z "$ac_c_werror_flag" ||
21748          test ! -s conftest.err
21749        } && test -s conftest$ac_exeext &&
21750        $as_test_x conftest$ac_exeext; then
21751   ac_cv_func_vasprintf=yes
21752 else
21753   echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21755
21756         ac_cv_func_vasprintf=no
21757 fi
21758
21759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21760       conftest$ac_exeext conftest.$ac_ext
21761 fi
21762 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21763 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21764 if test $ac_cv_func_vasprintf = yes; then
21765   :
21766 else
21767
21768 cat >>confdefs.h <<\_ACEOF
21769 #define NEED_VASPRINTF 1
21770 _ACEOF
21771
21772 fi
21773
21774
21775 # Checks for typedefs, structures, and compiler characteristics.
21776 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21777 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21778 if test "${ac_cv_c_const+set}" = set; then
21779   echo $ECHO_N "(cached) $ECHO_C" >&6
21780 else
21781   cat >conftest.$ac_ext <<_ACEOF
21782 /* confdefs.h.  */
21783 _ACEOF
21784 cat confdefs.h >>conftest.$ac_ext
21785 cat >>conftest.$ac_ext <<_ACEOF
21786 /* end confdefs.h.  */
21787
21788 int
21789 main ()
21790 {
21791 /* FIXME: Include the comments suggested by Paul. */
21792 #ifndef __cplusplus
21793   /* Ultrix mips cc rejects this.  */
21794   typedef int charset[2];
21795   const charset cs;
21796   /* SunOS 4.1.1 cc rejects this.  */
21797   char const *const *pcpcc;
21798   char **ppc;
21799   /* NEC SVR4.0.2 mips cc rejects this.  */
21800   struct point {int x, y;};
21801   static struct point const zero = {0,0};
21802   /* AIX XL C 1.02.0.0 rejects this.
21803      It does not let you subtract one const X* pointer from another in
21804      an arm of an if-expression whose if-part is not a constant
21805      expression */
21806   const char *g = "string";
21807   pcpcc = &g + (g ? g-g : 0);
21808   /* HPUX 7.0 cc rejects these. */
21809   ++pcpcc;
21810   ppc = (char**) pcpcc;
21811   pcpcc = (char const *const *) ppc;
21812   { /* SCO 3.2v4 cc rejects this.  */
21813     char *t;
21814     char const *s = 0 ? (char *) 0 : (char const *) 0;
21815
21816     *t++ = 0;
21817     if (s) return 0;
21818   }
21819   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21820     int x[] = {25, 17};
21821     const int *foo = &x[0];
21822     ++foo;
21823   }
21824   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21825     typedef const int *iptr;
21826     iptr p = 0;
21827     ++p;
21828   }
21829   { /* AIX XL C 1.02.0.0 rejects this saying
21830        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21831     struct s { int j; const int *ap[3]; };
21832     struct s *b; b->j = 5;
21833   }
21834   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21835     const int foo = 10;
21836     if (!foo) return 0;
21837   }
21838   return !cs[0] && !zero.x;
21839 #endif
21840
21841   ;
21842   return 0;
21843 }
21844 _ACEOF
21845 rm -f conftest.$ac_objext
21846 if { (ac_try="$ac_compile"
21847 case "(($ac_try" in
21848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21849   *) ac_try_echo=$ac_try;;
21850 esac
21851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21852   (eval "$ac_compile") 2>conftest.er1
21853   ac_status=$?
21854   grep -v '^ *+' conftest.er1 >conftest.err
21855   rm -f conftest.er1
21856   cat conftest.err >&5
21857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858   (exit $ac_status); } && {
21859          test -z "$ac_c_werror_flag" ||
21860          test ! -s conftest.err
21861        } && test -s conftest.$ac_objext; then
21862   ac_cv_c_const=yes
21863 else
21864   echo "$as_me: failed program was:" >&5
21865 sed 's/^/| /' conftest.$ac_ext >&5
21866
21867         ac_cv_c_const=no
21868 fi
21869
21870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21871 fi
21872 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21873 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21874 if test $ac_cv_c_const = no; then
21875
21876 cat >>confdefs.h <<\_ACEOF
21877 #define const
21878 _ACEOF
21879
21880 fi
21881
21882 { echo "$as_me:$LINENO: checking for inline" >&5
21883 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21884 if test "${ac_cv_c_inline+set}" = set; then
21885   echo $ECHO_N "(cached) $ECHO_C" >&6
21886 else
21887   ac_cv_c_inline=no
21888 for ac_kw in inline __inline__ __inline; do
21889   cat >conftest.$ac_ext <<_ACEOF
21890 /* confdefs.h.  */
21891 _ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h.  */
21895 #ifndef __cplusplus
21896 typedef int foo_t;
21897 static $ac_kw foo_t static_foo () {return 0; }
21898 $ac_kw foo_t foo () {return 0; }
21899 #endif
21900
21901 _ACEOF
21902 rm -f conftest.$ac_objext
21903 if { (ac_try="$ac_compile"
21904 case "(($ac_try" in
21905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906   *) ac_try_echo=$ac_try;;
21907 esac
21908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21909   (eval "$ac_compile") 2>conftest.er1
21910   ac_status=$?
21911   grep -v '^ *+' conftest.er1 >conftest.err
21912   rm -f conftest.er1
21913   cat conftest.err >&5
21914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915   (exit $ac_status); } && {
21916          test -z "$ac_c_werror_flag" ||
21917          test ! -s conftest.err
21918        } && test -s conftest.$ac_objext; then
21919   ac_cv_c_inline=$ac_kw
21920 else
21921   echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21923
21924
21925 fi
21926
21927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21928   test "$ac_cv_c_inline" != no && break
21929 done
21930
21931 fi
21932 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21933 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21934
21935
21936 case $ac_cv_c_inline in
21937   inline | yes) ;;
21938   *)
21939     case $ac_cv_c_inline in
21940       no) ac_val=;;
21941       *) ac_val=$ac_cv_c_inline;;
21942     esac
21943     cat >>confdefs.h <<_ACEOF
21944 #ifndef __cplusplus
21945 #define inline $ac_val
21946 #endif
21947 _ACEOF
21948     ;;
21949 esac
21950
21951 { echo "$as_me:$LINENO: checking for size_t" >&5
21952 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21953 if test "${ac_cv_type_size_t+set}" = set; then
21954   echo $ECHO_N "(cached) $ECHO_C" >&6
21955 else
21956   cat >conftest.$ac_ext <<_ACEOF
21957 /* confdefs.h.  */
21958 _ACEOF
21959 cat confdefs.h >>conftest.$ac_ext
21960 cat >>conftest.$ac_ext <<_ACEOF
21961 /* end confdefs.h.  */
21962 $ac_includes_default
21963 typedef size_t ac__type_new_;
21964 int
21965 main ()
21966 {
21967 if ((ac__type_new_ *) 0)
21968   return 0;
21969 if (sizeof (ac__type_new_))
21970   return 0;
21971   ;
21972   return 0;
21973 }
21974 _ACEOF
21975 rm -f conftest.$ac_objext
21976 if { (ac_try="$ac_compile"
21977 case "(($ac_try" in
21978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21979   *) ac_try_echo=$ac_try;;
21980 esac
21981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21982   (eval "$ac_compile") 2>conftest.er1
21983   ac_status=$?
21984   grep -v '^ *+' conftest.er1 >conftest.err
21985   rm -f conftest.er1
21986   cat conftest.err >&5
21987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988   (exit $ac_status); } && {
21989          test -z "$ac_c_werror_flag" ||
21990          test ! -s conftest.err
21991        } && test -s conftest.$ac_objext; then
21992   ac_cv_type_size_t=yes
21993 else
21994   echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.$ac_ext >&5
21996
21997         ac_cv_type_size_t=no
21998 fi
21999
22000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22001 fi
22002 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22003 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22004 if test $ac_cv_type_size_t = yes; then
22005   :
22006 else
22007
22008 cat >>confdefs.h <<_ACEOF
22009 #define size_t unsigned int
22010 _ACEOF
22011
22012 fi
22013
22014
22015 ###################################
22016 ## SimGrid and GRAS specific checks
22017 ##
22018
22019
22020   { echo "$as_me:$LINENO: result: " >&5
22021 echo "${ECHO_T}" >&6; }
22022   { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22023 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22024
22025 # Check architecture signature begin
22026
22027 # Check for the architecture
22028 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22029 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22030 if test "${ac_cv_c_bigendian+set}" = set; then
22031   echo $ECHO_N "(cached) $ECHO_C" >&6
22032 else
22033   # See if sys/param.h defines the BYTE_ORDER macro.
22034 cat >conftest.$ac_ext <<_ACEOF
22035 /* confdefs.h.  */
22036 _ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h.  */
22040 #include <sys/types.h>
22041 #include <sys/param.h>
22042
22043 int
22044 main ()
22045 {
22046 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22047         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22048  bogus endian macros
22049 #endif
22050
22051   ;
22052   return 0;
22053 }
22054 _ACEOF
22055 rm -f conftest.$ac_objext
22056 if { (ac_try="$ac_compile"
22057 case "(($ac_try" in
22058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22059   *) ac_try_echo=$ac_try;;
22060 esac
22061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22062   (eval "$ac_compile") 2>conftest.er1
22063   ac_status=$?
22064   grep -v '^ *+' conftest.er1 >conftest.err
22065   rm -f conftest.er1
22066   cat conftest.err >&5
22067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068   (exit $ac_status); } && {
22069          test -z "$ac_c_werror_flag" ||
22070          test ! -s conftest.err
22071        } && test -s conftest.$ac_objext; then
22072   # It does; now see whether it defined to BIG_ENDIAN or not.
22073 cat >conftest.$ac_ext <<_ACEOF
22074 /* confdefs.h.  */
22075 _ACEOF
22076 cat confdefs.h >>conftest.$ac_ext
22077 cat >>conftest.$ac_ext <<_ACEOF
22078 /* end confdefs.h.  */
22079 #include <sys/types.h>
22080 #include <sys/param.h>
22081
22082 int
22083 main ()
22084 {
22085 #if BYTE_ORDER != BIG_ENDIAN
22086  not big endian
22087 #endif
22088
22089   ;
22090   return 0;
22091 }
22092 _ACEOF
22093 rm -f conftest.$ac_objext
22094 if { (ac_try="$ac_compile"
22095 case "(($ac_try" in
22096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097   *) ac_try_echo=$ac_try;;
22098 esac
22099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100   (eval "$ac_compile") 2>conftest.er1
22101   ac_status=$?
22102   grep -v '^ *+' conftest.er1 >conftest.err
22103   rm -f conftest.er1
22104   cat conftest.err >&5
22105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106   (exit $ac_status); } && {
22107          test -z "$ac_c_werror_flag" ||
22108          test ! -s conftest.err
22109        } && test -s conftest.$ac_objext; then
22110   ac_cv_c_bigendian=yes
22111 else
22112   echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22114
22115         ac_cv_c_bigendian=no
22116 fi
22117
22118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22119 else
22120   echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22122
22123         # It does not; compile a test program.
22124 if test "$cross_compiling" = yes; then
22125   # try to guess the endianness by grepping values into an object file
22126   ac_cv_c_bigendian=unknown
22127   cat >conftest.$ac_ext <<_ACEOF
22128 /* confdefs.h.  */
22129 _ACEOF
22130 cat confdefs.h >>conftest.$ac_ext
22131 cat >>conftest.$ac_ext <<_ACEOF
22132 /* end confdefs.h.  */
22133 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22134 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22135 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22136 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22137 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22138 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22139 int
22140 main ()
22141 {
22142  _ascii (); _ebcdic ();
22143   ;
22144   return 0;
22145 }
22146 _ACEOF
22147 rm -f conftest.$ac_objext
22148 if { (ac_try="$ac_compile"
22149 case "(($ac_try" in
22150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22151   *) ac_try_echo=$ac_try;;
22152 esac
22153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22154   (eval "$ac_compile") 2>conftest.er1
22155   ac_status=$?
22156   grep -v '^ *+' conftest.er1 >conftest.err
22157   rm -f conftest.er1
22158   cat conftest.err >&5
22159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160   (exit $ac_status); } && {
22161          test -z "$ac_c_werror_flag" ||
22162          test ! -s conftest.err
22163        } && test -s conftest.$ac_objext; then
22164   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22165   ac_cv_c_bigendian=yes
22166 fi
22167 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22168   if test "$ac_cv_c_bigendian" = unknown; then
22169     ac_cv_c_bigendian=no
22170   else
22171     # finding both strings is unlikely to happen, but who knows?
22172     ac_cv_c_bigendian=unknown
22173   fi
22174 fi
22175 else
22176   echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.$ac_ext >&5
22178
22179
22180 fi
22181
22182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22183 else
22184   cat >conftest.$ac_ext <<_ACEOF
22185 /* confdefs.h.  */
22186 _ACEOF
22187 cat confdefs.h >>conftest.$ac_ext
22188 cat >>conftest.$ac_ext <<_ACEOF
22189 /* end confdefs.h.  */
22190 $ac_includes_default
22191 int
22192 main ()
22193 {
22194
22195   /* Are we little or big endian?  From Harbison&Steele.  */
22196   union
22197   {
22198     long int l;
22199     char c[sizeof (long int)];
22200   } u;
22201   u.l = 1;
22202   return u.c[sizeof (long int) - 1] == 1;
22203
22204   ;
22205   return 0;
22206 }
22207 _ACEOF
22208 rm -f conftest$ac_exeext
22209 if { (ac_try="$ac_link"
22210 case "(($ac_try" in
22211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22212   *) ac_try_echo=$ac_try;;
22213 esac
22214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22215   (eval "$ac_link") 2>&5
22216   ac_status=$?
22217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22219   { (case "(($ac_try" in
22220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22221   *) ac_try_echo=$ac_try;;
22222 esac
22223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22224   (eval "$ac_try") 2>&5
22225   ac_status=$?
22226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227   (exit $ac_status); }; }; then
22228   ac_cv_c_bigendian=no
22229 else
22230   echo "$as_me: program exited with status $ac_status" >&5
22231 echo "$as_me: failed program was:" >&5
22232 sed 's/^/| /' conftest.$ac_ext >&5
22233
22234 ( exit $ac_status )
22235 ac_cv_c_bigendian=yes
22236 fi
22237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22238 fi
22239
22240
22241 fi
22242
22243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22244 fi
22245 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22246 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22247 case $ac_cv_c_bigendian in
22248   yes)
22249     endian=1 ;;
22250   no)
22251     endian=0 ;;
22252   *)
22253     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22254 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22255    { (exit 1); exit 1; }; } ;;
22256 esac
22257
22258
22259 cat >>confdefs.h <<_ACEOF
22260 #define GRAS_BIGENDIAN $endian
22261 _ACEOF
22262
22263
22264 { echo "$as_me:$LINENO: checking size of char" >&5
22265 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22266     if test "${ac_cv_sizeof_char+set}" = set; then
22267   echo $ECHO_N "(cached) $ECHO_C" >&6
22268 else
22269   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22270    cat >conftest.$ac_ext <<_ACEOF
22271 /* confdefs.h.  */
22272 _ACEOF
22273 cat confdefs.h >>conftest.$ac_ext
22274 cat >>conftest.$ac_ext <<_ACEOF
22275 /* end confdefs.h.  */
22276 #include "confdefs.h"
22277    #include <sys/types.h>
22278
22279
22280 int
22281 main ()
22282 {
22283 switch (0) case 0: case (sizeof (char) == $ac_size):;
22284   ;
22285   return 0;
22286 }
22287 _ACEOF
22288 rm -f conftest.$ac_objext
22289 if { (ac_try="$ac_compile"
22290 case "(($ac_try" in
22291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292   *) ac_try_echo=$ac_try;;
22293 esac
22294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22295   (eval "$ac_compile") 2>conftest.er1
22296   ac_status=$?
22297   grep -v '^ *+' conftest.er1 >conftest.err
22298   rm -f conftest.er1
22299   cat conftest.err >&5
22300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301   (exit $ac_status); } && {
22302          test -z "$ac_c_werror_flag" ||
22303          test ! -s conftest.err
22304        } && test -s conftest.$ac_objext; then
22305   ac_cv_sizeof_char=$ac_size
22306 else
22307   echo "$as_me: failed program was:" >&5
22308 sed 's/^/| /' conftest.$ac_ext >&5
22309
22310
22311 fi
22312
22313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22314    if test x$ac_cv_sizeof_char != x ; then break; fi
22315   done
22316
22317 fi
22318
22319
22320 unspecif=$ac_cv_sizeof_char
22321 if test x$unspecif = x ; then
22322   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22323 echo "$as_me: error: cannot determine a size for char" >&2;}
22324    { (exit 1); exit 1; }; }
22325 fi
22326
22327     if test "${ac_cv_sizeof_signed_char+set}" = set; then
22328   echo $ECHO_N "(cached) $ECHO_C" >&6
22329 else
22330   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22331    cat >conftest.$ac_ext <<_ACEOF
22332 /* confdefs.h.  */
22333 _ACEOF
22334 cat confdefs.h >>conftest.$ac_ext
22335 cat >>conftest.$ac_ext <<_ACEOF
22336 /* end confdefs.h.  */
22337 #include "confdefs.h"
22338    #include <sys/types.h>
22339
22340
22341 int
22342 main ()
22343 {
22344 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22345   ;
22346   return 0;
22347 }
22348 _ACEOF
22349 rm -f conftest.$ac_objext
22350 if { (ac_try="$ac_compile"
22351 case "(($ac_try" in
22352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22353   *) ac_try_echo=$ac_try;;
22354 esac
22355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22356   (eval "$ac_compile") 2>conftest.er1
22357   ac_status=$?
22358   grep -v '^ *+' conftest.er1 >conftest.err
22359   rm -f conftest.er1
22360   cat conftest.err >&5
22361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362   (exit $ac_status); } && {
22363          test -z "$ac_c_werror_flag" ||
22364          test ! -s conftest.err
22365        } && test -s conftest.$ac_objext; then
22366   ac_cv_sizeof_signed_char=$ac_size
22367 else
22368   echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22370
22371
22372 fi
22373
22374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22375    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22376   done
22377
22378 fi
22379
22380
22381 signed=$ac_cv_sizeof_signed_char
22382 if test x$signed = x ; then
22383   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22384 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22385    { (exit 1); exit 1; }; }
22386 fi
22387 if test x$unspecif != x$signed ; then
22388   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22389 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22390    { (exit 1); exit 1; }; }
22391 fi
22392
22393     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22394   echo $ECHO_N "(cached) $ECHO_C" >&6
22395 else
22396   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22397    cat >conftest.$ac_ext <<_ACEOF
22398 /* confdefs.h.  */
22399 _ACEOF
22400 cat confdefs.h >>conftest.$ac_ext
22401 cat >>conftest.$ac_ext <<_ACEOF
22402 /* end confdefs.h.  */
22403 #include "confdefs.h"
22404    #include <sys/types.h>
22405
22406
22407 int
22408 main ()
22409 {
22410 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22411   ;
22412   return 0;
22413 }
22414 _ACEOF
22415 rm -f conftest.$ac_objext
22416 if { (ac_try="$ac_compile"
22417 case "(($ac_try" in
22418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22419   *) ac_try_echo=$ac_try;;
22420 esac
22421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22422   (eval "$ac_compile") 2>conftest.er1
22423   ac_status=$?
22424   grep -v '^ *+' conftest.er1 >conftest.err
22425   rm -f conftest.er1
22426   cat conftest.err >&5
22427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428   (exit $ac_status); } && {
22429          test -z "$ac_c_werror_flag" ||
22430          test ! -s conftest.err
22431        } && test -s conftest.$ac_objext; then
22432   ac_cv_sizeof_unsigned_char=$ac_size
22433 else
22434   echo "$as_me: failed program was:" >&5
22435 sed 's/^/| /' conftest.$ac_ext >&5
22436
22437
22438 fi
22439
22440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22441    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22442   done
22443
22444 fi
22445
22446
22447 unsigned=$ac_cv_sizeof_unsigned_char
22448 if test x$unsigned = x ; then
22449   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22450 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22451    { (exit 1); exit 1; }; }
22452 fi
22453 if test x$unsigned != x$signed ; then
22454   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22455 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22456    { (exit 1); exit 1; }; }
22457 fi
22458
22459 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22460 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22461                   { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22462 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22463
22464  if test "${ac_cv_struct_boundary_char+set}" = set; then
22465   echo $ECHO_N "(cached) $ECHO_C" >&6
22466 else
22467   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22468    cat >conftest.$ac_ext <<_ACEOF
22469 /* confdefs.h.  */
22470 _ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h.  */
22474 #include "confdefs.h"
22475      #include <sys/types.h>
22476      struct s { char c; char i; };
22477
22478 int
22479 main ()
22480 {
22481 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22482   ;
22483   return 0;
22484 }
22485 _ACEOF
22486 rm -f conftest.$ac_objext
22487 if { (ac_try="$ac_compile"
22488 case "(($ac_try" in
22489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22490   *) ac_try_echo=$ac_try;;
22491 esac
22492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22493   (eval "$ac_compile") 2>conftest.er1
22494   ac_status=$?
22495   grep -v '^ *+' conftest.er1 >conftest.err
22496   rm -f conftest.er1
22497   cat conftest.err >&5
22498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499   (exit $ac_status); } && {
22500          test -z "$ac_c_werror_flag" ||
22501          test ! -s conftest.err
22502        } && test -s conftest.$ac_objext; then
22503   ac_cv_struct_boundary_char=$ac_size
22504 else
22505   echo "$as_me: failed program was:" >&5
22506 sed 's/^/| /' conftest.$ac_ext >&5
22507
22508
22509 fi
22510
22511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22512    if test x$ac_cv_struct_boundary_char != x ; then break; fi
22513   done
22514
22515 fi
22516
22517  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22518 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22519  if test x$ac_cv_struct_boundary_char = x ; then
22520    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22521 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22522    { (exit 1); exit 1; }; }
22523  fi
22524
22525 { echo "$as_me:$LINENO: checking size of short int" >&5
22526 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22527     if test "${ac_cv_sizeof_short_int+set}" = set; then
22528   echo $ECHO_N "(cached) $ECHO_C" >&6
22529 else
22530   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22531    cat >conftest.$ac_ext <<_ACEOF
22532 /* confdefs.h.  */
22533 _ACEOF
22534 cat confdefs.h >>conftest.$ac_ext
22535 cat >>conftest.$ac_ext <<_ACEOF
22536 /* end confdefs.h.  */
22537 #include "confdefs.h"
22538    #include <sys/types.h>
22539
22540
22541 int
22542 main ()
22543 {
22544 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22545   ;
22546   return 0;
22547 }
22548 _ACEOF
22549 rm -f conftest.$ac_objext
22550 if { (ac_try="$ac_compile"
22551 case "(($ac_try" in
22552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22553   *) ac_try_echo=$ac_try;;
22554 esac
22555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22556   (eval "$ac_compile") 2>conftest.er1
22557   ac_status=$?
22558   grep -v '^ *+' conftest.er1 >conftest.err
22559   rm -f conftest.er1
22560   cat conftest.err >&5
22561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562   (exit $ac_status); } && {
22563          test -z "$ac_c_werror_flag" ||
22564          test ! -s conftest.err
22565        } && test -s conftest.$ac_objext; then
22566   ac_cv_sizeof_short_int=$ac_size
22567 else
22568   echo "$as_me: failed program was:" >&5
22569 sed 's/^/| /' conftest.$ac_ext >&5
22570
22571
22572 fi
22573
22574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22575    if test x$ac_cv_sizeof_short_int != x ; then break; fi
22576   done
22577
22578 fi
22579
22580
22581 unspecif=$ac_cv_sizeof_short_int
22582 if test x$unspecif = x ; then
22583   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22584 echo "$as_me: error: cannot determine a size for short int" >&2;}
22585    { (exit 1); exit 1; }; }
22586 fi
22587
22588     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22589   echo $ECHO_N "(cached) $ECHO_C" >&6
22590 else
22591   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22592    cat >conftest.$ac_ext <<_ACEOF
22593 /* confdefs.h.  */
22594 _ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h.  */
22598 #include "confdefs.h"
22599    #include <sys/types.h>
22600
22601
22602 int
22603 main ()
22604 {
22605 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22606   ;
22607   return 0;
22608 }
22609 _ACEOF
22610 rm -f conftest.$ac_objext
22611 if { (ac_try="$ac_compile"
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_compile") 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          test -z "$ac_c_werror_flag" ||
22625          test ! -s conftest.err
22626        } && test -s conftest.$ac_objext; then
22627   ac_cv_sizeof_signed_short_int=$ac_size
22628 else
22629   echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22631
22632
22633 fi
22634
22635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22636    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22637   done
22638
22639 fi
22640
22641
22642 signed=$ac_cv_sizeof_signed_short_int
22643 if test x$signed = x ; then
22644   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22645 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22646    { (exit 1); exit 1; }; }
22647 fi
22648 if test x$unspecif != x$signed ; then
22649   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22650 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22651    { (exit 1); exit 1; }; }
22652 fi
22653
22654     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22655   echo $ECHO_N "(cached) $ECHO_C" >&6
22656 else
22657   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22658    cat >conftest.$ac_ext <<_ACEOF
22659 /* confdefs.h.  */
22660 _ACEOF
22661 cat confdefs.h >>conftest.$ac_ext
22662 cat >>conftest.$ac_ext <<_ACEOF
22663 /* end confdefs.h.  */
22664 #include "confdefs.h"
22665    #include <sys/types.h>
22666
22667
22668 int
22669 main ()
22670 {
22671 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22672   ;
22673   return 0;
22674 }
22675 _ACEOF
22676 rm -f conftest.$ac_objext
22677 if { (ac_try="$ac_compile"
22678 case "(($ac_try" in
22679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22680   *) ac_try_echo=$ac_try;;
22681 esac
22682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22683   (eval "$ac_compile") 2>conftest.er1
22684   ac_status=$?
22685   grep -v '^ *+' conftest.er1 >conftest.err
22686   rm -f conftest.er1
22687   cat conftest.err >&5
22688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689   (exit $ac_status); } && {
22690          test -z "$ac_c_werror_flag" ||
22691          test ! -s conftest.err
22692        } && test -s conftest.$ac_objext; then
22693   ac_cv_sizeof_unsigned_short_int=$ac_size
22694 else
22695   echo "$as_me: failed program was:" >&5
22696 sed 's/^/| /' conftest.$ac_ext >&5
22697
22698
22699 fi
22700
22701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22702    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22703   done
22704
22705 fi
22706
22707
22708 unsigned=$ac_cv_sizeof_unsigned_short_int
22709 if test x$unsigned = x ; then
22710   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22711 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22712    { (exit 1); exit 1; }; }
22713 fi
22714 if test x$unsigned != x$signed ; then
22715   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22716 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22717    { (exit 1); exit 1; }; }
22718 fi
22719
22720 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22721 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22722              { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22723 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22724
22725  if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22726   echo $ECHO_N "(cached) $ECHO_C" >&6
22727 else
22728   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22729    cat >conftest.$ac_ext <<_ACEOF
22730 /* confdefs.h.  */
22731 _ACEOF
22732 cat confdefs.h >>conftest.$ac_ext
22733 cat >>conftest.$ac_ext <<_ACEOF
22734 /* end confdefs.h.  */
22735 #include "confdefs.h"
22736      #include <sys/types.h>
22737      struct s { char c; short int i; };
22738
22739 int
22740 main ()
22741 {
22742 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22743   ;
22744   return 0;
22745 }
22746 _ACEOF
22747 rm -f conftest.$ac_objext
22748 if { (ac_try="$ac_compile"
22749 case "(($ac_try" in
22750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22751   *) ac_try_echo=$ac_try;;
22752 esac
22753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22754   (eval "$ac_compile") 2>conftest.er1
22755   ac_status=$?
22756   grep -v '^ *+' conftest.er1 >conftest.err
22757   rm -f conftest.er1
22758   cat conftest.err >&5
22759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760   (exit $ac_status); } && {
22761          test -z "$ac_c_werror_flag" ||
22762          test ! -s conftest.err
22763        } && test -s conftest.$ac_objext; then
22764   ac_cv_struct_boundary_short_int=$ac_size
22765 else
22766   echo "$as_me: failed program was:" >&5
22767 sed 's/^/| /' conftest.$ac_ext >&5
22768
22769
22770 fi
22771
22772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22773    if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22774   done
22775
22776 fi
22777
22778  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22779 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22780  if test x$ac_cv_struct_boundary_short_int = x ; then
22781    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22782 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22783    { (exit 1); exit 1; }; }
22784  fi
22785
22786 { echo "$as_me:$LINENO: checking size of int" >&5
22787 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22788     if test "${ac_cv_sizeof_int+set}" = set; then
22789   echo $ECHO_N "(cached) $ECHO_C" >&6
22790 else
22791   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22792    cat >conftest.$ac_ext <<_ACEOF
22793 /* confdefs.h.  */
22794 _ACEOF
22795 cat confdefs.h >>conftest.$ac_ext
22796 cat >>conftest.$ac_ext <<_ACEOF
22797 /* end confdefs.h.  */
22798 #include "confdefs.h"
22799    #include <sys/types.h>
22800
22801
22802 int
22803 main ()
22804 {
22805 switch (0) case 0: case (sizeof (int) == $ac_size):;
22806   ;
22807   return 0;
22808 }
22809 _ACEOF
22810 rm -f conftest.$ac_objext
22811 if { (ac_try="$ac_compile"
22812 case "(($ac_try" in
22813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22814   *) ac_try_echo=$ac_try;;
22815 esac
22816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22817   (eval "$ac_compile") 2>conftest.er1
22818   ac_status=$?
22819   grep -v '^ *+' conftest.er1 >conftest.err
22820   rm -f conftest.er1
22821   cat conftest.err >&5
22822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823   (exit $ac_status); } && {
22824          test -z "$ac_c_werror_flag" ||
22825          test ! -s conftest.err
22826        } && test -s conftest.$ac_objext; then
22827   ac_cv_sizeof_int=$ac_size
22828 else
22829   echo "$as_me: failed program was:" >&5
22830 sed 's/^/| /' conftest.$ac_ext >&5
22831
22832
22833 fi
22834
22835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22836    if test x$ac_cv_sizeof_int != x ; then break; fi
22837   done
22838
22839 fi
22840
22841
22842 unspecif=$ac_cv_sizeof_int
22843 if test x$unspecif = x ; then
22844   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22845 echo "$as_me: error: cannot determine a size for int" >&2;}
22846    { (exit 1); exit 1; }; }
22847 fi
22848
22849     if test "${ac_cv_sizeof_signed_int+set}" = set; then
22850   echo $ECHO_N "(cached) $ECHO_C" >&6
22851 else
22852   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22853    cat >conftest.$ac_ext <<_ACEOF
22854 /* confdefs.h.  */
22855 _ACEOF
22856 cat confdefs.h >>conftest.$ac_ext
22857 cat >>conftest.$ac_ext <<_ACEOF
22858 /* end confdefs.h.  */
22859 #include "confdefs.h"
22860    #include <sys/types.h>
22861
22862
22863 int
22864 main ()
22865 {
22866 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22867   ;
22868   return 0;
22869 }
22870 _ACEOF
22871 rm -f conftest.$ac_objext
22872 if { (ac_try="$ac_compile"
22873 case "(($ac_try" in
22874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875   *) ac_try_echo=$ac_try;;
22876 esac
22877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22878   (eval "$ac_compile") 2>conftest.er1
22879   ac_status=$?
22880   grep -v '^ *+' conftest.er1 >conftest.err
22881   rm -f conftest.er1
22882   cat conftest.err >&5
22883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884   (exit $ac_status); } && {
22885          test -z "$ac_c_werror_flag" ||
22886          test ! -s conftest.err
22887        } && test -s conftest.$ac_objext; then
22888   ac_cv_sizeof_signed_int=$ac_size
22889 else
22890   echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22892
22893
22894 fi
22895
22896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22897    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22898   done
22899
22900 fi
22901
22902
22903 signed=$ac_cv_sizeof_signed_int
22904 if test x$signed = x ; then
22905   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22906 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22907    { (exit 1); exit 1; }; }
22908 fi
22909 if test x$unspecif != x$signed ; then
22910   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22911 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22912    { (exit 1); exit 1; }; }
22913 fi
22914
22915     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22916   echo $ECHO_N "(cached) $ECHO_C" >&6
22917 else
22918   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22919    cat >conftest.$ac_ext <<_ACEOF
22920 /* confdefs.h.  */
22921 _ACEOF
22922 cat confdefs.h >>conftest.$ac_ext
22923 cat >>conftest.$ac_ext <<_ACEOF
22924 /* end confdefs.h.  */
22925 #include "confdefs.h"
22926    #include <sys/types.h>
22927
22928
22929 int
22930 main ()
22931 {
22932 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22933   ;
22934   return 0;
22935 }
22936 _ACEOF
22937 rm -f conftest.$ac_objext
22938 if { (ac_try="$ac_compile"
22939 case "(($ac_try" in
22940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22941   *) ac_try_echo=$ac_try;;
22942 esac
22943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22944   (eval "$ac_compile") 2>conftest.er1
22945   ac_status=$?
22946   grep -v '^ *+' conftest.er1 >conftest.err
22947   rm -f conftest.er1
22948   cat conftest.err >&5
22949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950   (exit $ac_status); } && {
22951          test -z "$ac_c_werror_flag" ||
22952          test ! -s conftest.err
22953        } && test -s conftest.$ac_objext; then
22954   ac_cv_sizeof_unsigned_int=$ac_size
22955 else
22956   echo "$as_me: failed program was:" >&5
22957 sed 's/^/| /' conftest.$ac_ext >&5
22958
22959
22960 fi
22961
22962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22963    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
22964   done
22965
22966 fi
22967
22968
22969 unsigned=$ac_cv_sizeof_unsigned_int
22970 if test x$unsigned = x ; then
22971   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
22972 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
22973    { (exit 1); exit 1; }; }
22974 fi
22975 if test x$unsigned != x$signed ; then
22976   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
22977 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
22978    { (exit 1); exit 1; }; }
22979 fi
22980
22981 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
22982 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
22983                    { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
22984 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
22985
22986  if test "${ac_cv_struct_boundary_int+set}" = set; then
22987   echo $ECHO_N "(cached) $ECHO_C" >&6
22988 else
22989   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22990    cat >conftest.$ac_ext <<_ACEOF
22991 /* confdefs.h.  */
22992 _ACEOF
22993 cat confdefs.h >>conftest.$ac_ext
22994 cat >>conftest.$ac_ext <<_ACEOF
22995 /* end confdefs.h.  */
22996 #include "confdefs.h"
22997      #include <sys/types.h>
22998      struct s { char c; int i; };
22999
23000 int
23001 main ()
23002 {
23003 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23004   ;
23005   return 0;
23006 }
23007 _ACEOF
23008 rm -f conftest.$ac_objext
23009 if { (ac_try="$ac_compile"
23010 case "(($ac_try" in
23011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23012   *) ac_try_echo=$ac_try;;
23013 esac
23014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23015   (eval "$ac_compile") 2>conftest.er1
23016   ac_status=$?
23017   grep -v '^ *+' conftest.er1 >conftest.err
23018   rm -f conftest.er1
23019   cat conftest.err >&5
23020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021   (exit $ac_status); } && {
23022          test -z "$ac_c_werror_flag" ||
23023          test ! -s conftest.err
23024        } && test -s conftest.$ac_objext; then
23025   ac_cv_struct_boundary_int=$ac_size
23026 else
23027   echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23029
23030
23031 fi
23032
23033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23034    if test x$ac_cv_struct_boundary_int != x ; then break; fi
23035   done
23036
23037 fi
23038
23039  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23040 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23041  if test x$ac_cv_struct_boundary_int = x ; then
23042    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23043 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23044    { (exit 1); exit 1; }; }
23045  fi
23046
23047 { echo "$as_me:$LINENO: checking size of long int" >&5
23048 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23049     if test "${ac_cv_sizeof_long_int+set}" = set; then
23050   echo $ECHO_N "(cached) $ECHO_C" >&6
23051 else
23052   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23053    cat >conftest.$ac_ext <<_ACEOF
23054 /* confdefs.h.  */
23055 _ACEOF
23056 cat confdefs.h >>conftest.$ac_ext
23057 cat >>conftest.$ac_ext <<_ACEOF
23058 /* end confdefs.h.  */
23059 #include "confdefs.h"
23060    #include <sys/types.h>
23061
23062
23063 int
23064 main ()
23065 {
23066 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23067   ;
23068   return 0;
23069 }
23070 _ACEOF
23071 rm -f conftest.$ac_objext
23072 if { (ac_try="$ac_compile"
23073 case "(($ac_try" in
23074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23075   *) ac_try_echo=$ac_try;;
23076 esac
23077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23078   (eval "$ac_compile") 2>conftest.er1
23079   ac_status=$?
23080   grep -v '^ *+' conftest.er1 >conftest.err
23081   rm -f conftest.er1
23082   cat conftest.err >&5
23083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084   (exit $ac_status); } && {
23085          test -z "$ac_c_werror_flag" ||
23086          test ! -s conftest.err
23087        } && test -s conftest.$ac_objext; then
23088   ac_cv_sizeof_long_int=$ac_size
23089 else
23090   echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23092
23093
23094 fi
23095
23096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23097    if test x$ac_cv_sizeof_long_int != x ; then break; fi
23098   done
23099
23100 fi
23101
23102
23103 unspecif=$ac_cv_sizeof_long_int
23104 if test x$unspecif = x ; then
23105   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23106 echo "$as_me: error: cannot determine a size for long int" >&2;}
23107    { (exit 1); exit 1; }; }
23108 fi
23109
23110     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23111   echo $ECHO_N "(cached) $ECHO_C" >&6
23112 else
23113   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23114    cat >conftest.$ac_ext <<_ACEOF
23115 /* confdefs.h.  */
23116 _ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h.  */
23120 #include "confdefs.h"
23121    #include <sys/types.h>
23122
23123
23124 int
23125 main ()
23126 {
23127 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23128   ;
23129   return 0;
23130 }
23131 _ACEOF
23132 rm -f conftest.$ac_objext
23133 if { (ac_try="$ac_compile"
23134 case "(($ac_try" in
23135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136   *) ac_try_echo=$ac_try;;
23137 esac
23138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23139   (eval "$ac_compile") 2>conftest.er1
23140   ac_status=$?
23141   grep -v '^ *+' conftest.er1 >conftest.err
23142   rm -f conftest.er1
23143   cat conftest.err >&5
23144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145   (exit $ac_status); } && {
23146          test -z "$ac_c_werror_flag" ||
23147          test ! -s conftest.err
23148        } && test -s conftest.$ac_objext; then
23149   ac_cv_sizeof_signed_long_int=$ac_size
23150 else
23151   echo "$as_me: failed program was:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23153
23154
23155 fi
23156
23157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23158    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23159   done
23160
23161 fi
23162
23163
23164 signed=$ac_cv_sizeof_signed_long_int
23165 if test x$signed = x ; then
23166   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23167 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23168    { (exit 1); exit 1; }; }
23169 fi
23170 if test x$unspecif != x$signed ; then
23171   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23172 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23173    { (exit 1); exit 1; }; }
23174 fi
23175
23176     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23177   echo $ECHO_N "(cached) $ECHO_C" >&6
23178 else
23179   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23180    cat >conftest.$ac_ext <<_ACEOF
23181 /* confdefs.h.  */
23182 _ACEOF
23183 cat confdefs.h >>conftest.$ac_ext
23184 cat >>conftest.$ac_ext <<_ACEOF
23185 /* end confdefs.h.  */
23186 #include "confdefs.h"
23187    #include <sys/types.h>
23188
23189
23190 int
23191 main ()
23192 {
23193 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23194   ;
23195   return 0;
23196 }
23197 _ACEOF
23198 rm -f conftest.$ac_objext
23199 if { (ac_try="$ac_compile"
23200 case "(($ac_try" in
23201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23202   *) ac_try_echo=$ac_try;;
23203 esac
23204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23205   (eval "$ac_compile") 2>conftest.er1
23206   ac_status=$?
23207   grep -v '^ *+' conftest.er1 >conftest.err
23208   rm -f conftest.er1
23209   cat conftest.err >&5
23210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211   (exit $ac_status); } && {
23212          test -z "$ac_c_werror_flag" ||
23213          test ! -s conftest.err
23214        } && test -s conftest.$ac_objext; then
23215   ac_cv_sizeof_unsigned_long_int=$ac_size
23216 else
23217   echo "$as_me: failed program was:" >&5
23218 sed 's/^/| /' conftest.$ac_ext >&5
23219
23220
23221 fi
23222
23223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23224    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23225   done
23226
23227 fi
23228
23229
23230 unsigned=$ac_cv_sizeof_unsigned_long_int
23231 if test x$unsigned = x ; then
23232   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23233 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23234    { (exit 1); exit 1; }; }
23235 fi
23236 if test x$unsigned != x$signed ; then
23237   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23238 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23239    { (exit 1); exit 1; }; }
23240 fi
23241
23242 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23243 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23244               { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23245 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23246
23247  if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23248   echo $ECHO_N "(cached) $ECHO_C" >&6
23249 else
23250   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
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 #include "confdefs.h"
23258      #include <sys/types.h>
23259      struct s { char c; long int i; };
23260
23261 int
23262 main ()
23263 {
23264 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23265   ;
23266   return 0;
23267 }
23268 _ACEOF
23269 rm -f conftest.$ac_objext
23270 if { (ac_try="$ac_compile"
23271 case "(($ac_try" in
23272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23273   *) ac_try_echo=$ac_try;;
23274 esac
23275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23276   (eval "$ac_compile") 2>conftest.er1
23277   ac_status=$?
23278   grep -v '^ *+' conftest.er1 >conftest.err
23279   rm -f conftest.er1
23280   cat conftest.err >&5
23281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282   (exit $ac_status); } && {
23283          test -z "$ac_c_werror_flag" ||
23284          test ! -s conftest.err
23285        } && test -s conftest.$ac_objext; then
23286   ac_cv_struct_boundary_long_int=$ac_size
23287 else
23288   echo "$as_me: failed program was:" >&5
23289 sed 's/^/| /' conftest.$ac_ext >&5
23290
23291
23292 fi
23293
23294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23295    if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23296   done
23297
23298 fi
23299
23300  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23301 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23302  if test x$ac_cv_struct_boundary_long_int = x ; then
23303    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23304 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23305    { (exit 1); exit 1; }; }
23306  fi
23307
23308 { echo "$as_me:$LINENO: checking size of long long int" >&5
23309 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23310     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23311   echo $ECHO_N "(cached) $ECHO_C" >&6
23312 else
23313   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23314    cat >conftest.$ac_ext <<_ACEOF
23315 /* confdefs.h.  */
23316 _ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h.  */
23320 #include "confdefs.h"
23321    #include <sys/types.h>
23322
23323
23324 int
23325 main ()
23326 {
23327 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23328   ;
23329   return 0;
23330 }
23331 _ACEOF
23332 rm -f conftest.$ac_objext
23333 if { (ac_try="$ac_compile"
23334 case "(($ac_try" in
23335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23336   *) ac_try_echo=$ac_try;;
23337 esac
23338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23339   (eval "$ac_compile") 2>conftest.er1
23340   ac_status=$?
23341   grep -v '^ *+' conftest.er1 >conftest.err
23342   rm -f conftest.er1
23343   cat conftest.err >&5
23344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345   (exit $ac_status); } && {
23346          test -z "$ac_c_werror_flag" ||
23347          test ! -s conftest.err
23348        } && test -s conftest.$ac_objext; then
23349   ac_cv_sizeof_long_long_int=$ac_size
23350 else
23351   echo "$as_me: failed program was:" >&5
23352 sed 's/^/| /' conftest.$ac_ext >&5
23353
23354
23355 fi
23356
23357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23358    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23359   done
23360
23361 fi
23362
23363
23364 unspecif=$ac_cv_sizeof_long_long_int
23365 if test x$unspecif = x ; then
23366   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23367 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23368    { (exit 1); exit 1; }; }
23369 fi
23370
23371     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23372   echo $ECHO_N "(cached) $ECHO_C" >&6
23373 else
23374   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23375    cat >conftest.$ac_ext <<_ACEOF
23376 /* confdefs.h.  */
23377 _ACEOF
23378 cat confdefs.h >>conftest.$ac_ext
23379 cat >>conftest.$ac_ext <<_ACEOF
23380 /* end confdefs.h.  */
23381 #include "confdefs.h"
23382    #include <sys/types.h>
23383
23384
23385 int
23386 main ()
23387 {
23388 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23389   ;
23390   return 0;
23391 }
23392 _ACEOF
23393 rm -f conftest.$ac_objext
23394 if { (ac_try="$ac_compile"
23395 case "(($ac_try" in
23396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23397   *) ac_try_echo=$ac_try;;
23398 esac
23399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23400   (eval "$ac_compile") 2>conftest.er1
23401   ac_status=$?
23402   grep -v '^ *+' conftest.er1 >conftest.err
23403   rm -f conftest.er1
23404   cat conftest.err >&5
23405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406   (exit $ac_status); } && {
23407          test -z "$ac_c_werror_flag" ||
23408          test ! -s conftest.err
23409        } && test -s conftest.$ac_objext; then
23410   ac_cv_sizeof_signed_long_long_int=$ac_size
23411 else
23412   echo "$as_me: failed program was:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23414
23415
23416 fi
23417
23418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23419    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23420   done
23421
23422 fi
23423
23424
23425 signed=$ac_cv_sizeof_signed_long_long_int
23426 if test x$signed = x ; then
23427   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23428 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23429    { (exit 1); exit 1; }; }
23430 fi
23431 if test x$unspecif != x$signed ; then
23432   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23433 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23434    { (exit 1); exit 1; }; }
23435 fi
23436
23437     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23438   echo $ECHO_N "(cached) $ECHO_C" >&6
23439 else
23440   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23441    cat >conftest.$ac_ext <<_ACEOF
23442 /* confdefs.h.  */
23443 _ACEOF
23444 cat confdefs.h >>conftest.$ac_ext
23445 cat >>conftest.$ac_ext <<_ACEOF
23446 /* end confdefs.h.  */
23447 #include "confdefs.h"
23448    #include <sys/types.h>
23449
23450
23451 int
23452 main ()
23453 {
23454 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23455   ;
23456   return 0;
23457 }
23458 _ACEOF
23459 rm -f conftest.$ac_objext
23460 if { (ac_try="$ac_compile"
23461 case "(($ac_try" in
23462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23463   *) ac_try_echo=$ac_try;;
23464 esac
23465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23466   (eval "$ac_compile") 2>conftest.er1
23467   ac_status=$?
23468   grep -v '^ *+' conftest.er1 >conftest.err
23469   rm -f conftest.er1
23470   cat conftest.err >&5
23471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472   (exit $ac_status); } && {
23473          test -z "$ac_c_werror_flag" ||
23474          test ! -s conftest.err
23475        } && test -s conftest.$ac_objext; then
23476   ac_cv_sizeof_unsigned_long_long_int=$ac_size
23477 else
23478   echo "$as_me: failed program was:" >&5
23479 sed 's/^/| /' conftest.$ac_ext >&5
23480
23481
23482 fi
23483
23484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23485    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23486   done
23487
23488 fi
23489
23490
23491 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23492 if test x$unsigned = x ; then
23493   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23494 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23495    { (exit 1); exit 1; }; }
23496 fi
23497 if test x$unsigned != x$signed ; then
23498   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23499 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23500    { (exit 1); exit 1; }; }
23501 fi
23502
23503 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23504 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23505          { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23506 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23507
23508  if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23509   echo $ECHO_N "(cached) $ECHO_C" >&6
23510 else
23511   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23512    cat >conftest.$ac_ext <<_ACEOF
23513 /* confdefs.h.  */
23514 _ACEOF
23515 cat confdefs.h >>conftest.$ac_ext
23516 cat >>conftest.$ac_ext <<_ACEOF
23517 /* end confdefs.h.  */
23518 #include "confdefs.h"
23519      #include <sys/types.h>
23520      struct s { char c; long long int i; };
23521
23522 int
23523 main ()
23524 {
23525 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23526   ;
23527   return 0;
23528 }
23529 _ACEOF
23530 rm -f conftest.$ac_objext
23531 if { (ac_try="$ac_compile"
23532 case "(($ac_try" in
23533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23534   *) ac_try_echo=$ac_try;;
23535 esac
23536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23537   (eval "$ac_compile") 2>conftest.er1
23538   ac_status=$?
23539   grep -v '^ *+' conftest.er1 >conftest.err
23540   rm -f conftest.er1
23541   cat conftest.err >&5
23542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543   (exit $ac_status); } && {
23544          test -z "$ac_c_werror_flag" ||
23545          test ! -s conftest.err
23546        } && test -s conftest.$ac_objext; then
23547   ac_cv_struct_boundary_long_long_int=$ac_size
23548 else
23549   echo "$as_me: failed program was:" >&5
23550 sed 's/^/| /' conftest.$ac_ext >&5
23551
23552
23553 fi
23554
23555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23556    if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23557   done
23558
23559 fi
23560
23561  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23562 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23563  if test x$ac_cv_struct_boundary_long_long_int = x ; then
23564    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23565 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23566    { (exit 1); exit 1; }; }
23567  fi
23568
23569
23570     { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23571 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23572
23573  if test "${ac_cv_struct_boundary_float+set}" = set; then
23574   echo $ECHO_N "(cached) $ECHO_C" >&6
23575 else
23576   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23577    cat >conftest.$ac_ext <<_ACEOF
23578 /* confdefs.h.  */
23579 _ACEOF
23580 cat confdefs.h >>conftest.$ac_ext
23581 cat >>conftest.$ac_ext <<_ACEOF
23582 /* end confdefs.h.  */
23583 #include "confdefs.h"
23584      #include <sys/types.h>
23585      struct s { char c; float i; };
23586
23587 int
23588 main ()
23589 {
23590 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23591   ;
23592   return 0;
23593 }
23594 _ACEOF
23595 rm -f conftest.$ac_objext
23596 if { (ac_try="$ac_compile"
23597 case "(($ac_try" in
23598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23599   *) ac_try_echo=$ac_try;;
23600 esac
23601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23602   (eval "$ac_compile") 2>conftest.er1
23603   ac_status=$?
23604   grep -v '^ *+' conftest.er1 >conftest.err
23605   rm -f conftest.er1
23606   cat conftest.err >&5
23607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608   (exit $ac_status); } && {
23609          test -z "$ac_c_werror_flag" ||
23610          test ! -s conftest.err
23611        } && test -s conftest.$ac_objext; then
23612   ac_cv_struct_boundary_float=$ac_size
23613 else
23614   echo "$as_me: failed program was:" >&5
23615 sed 's/^/| /' conftest.$ac_ext >&5
23616
23617
23618 fi
23619
23620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23621    if test x$ac_cv_struct_boundary_float != x ; then break; fi
23622   done
23623
23624 fi
23625
23626  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23627 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23628  if test x$ac_cv_struct_boundary_float = x ; then
23629    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23630 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23631    { (exit 1); exit 1; }; }
23632  fi
23633                { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23634 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23635
23636  if test "${ac_cv_struct_boundary_double+set}" = set; then
23637   echo $ECHO_N "(cached) $ECHO_C" >&6
23638 else
23639   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23640    cat >conftest.$ac_ext <<_ACEOF
23641 /* confdefs.h.  */
23642 _ACEOF
23643 cat confdefs.h >>conftest.$ac_ext
23644 cat >>conftest.$ac_ext <<_ACEOF
23645 /* end confdefs.h.  */
23646 #include "confdefs.h"
23647      #include <sys/types.h>
23648      struct s { char c; double i; };
23649
23650 int
23651 main ()
23652 {
23653 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23654   ;
23655   return 0;
23656 }
23657 _ACEOF
23658 rm -f conftest.$ac_objext
23659 if { (ac_try="$ac_compile"
23660 case "(($ac_try" in
23661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23662   *) ac_try_echo=$ac_try;;
23663 esac
23664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23665   (eval "$ac_compile") 2>conftest.er1
23666   ac_status=$?
23667   grep -v '^ *+' conftest.er1 >conftest.err
23668   rm -f conftest.er1
23669   cat conftest.err >&5
23670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671   (exit $ac_status); } && {
23672          test -z "$ac_c_werror_flag" ||
23673          test ! -s conftest.err
23674        } && test -s conftest.$ac_objext; then
23675   ac_cv_struct_boundary_double=$ac_size
23676 else
23677   echo "$as_me: failed program was:" >&5
23678 sed 's/^/| /' conftest.$ac_ext >&5
23679
23680
23681 fi
23682
23683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23684    if test x$ac_cv_struct_boundary_double != x ; then break; fi
23685   done
23686
23687 fi
23688
23689  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23690 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23691  if test x$ac_cv_struct_boundary_double = x ; then
23692    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23693 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23694    { (exit 1); exit 1; }; }
23695  fi
23696
23697
23698 { echo "$as_me:$LINENO: checking size of void *" >&5
23699 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23700     if test "${ac_cv_sizeof_void_p+set}" = set; then
23701   echo $ECHO_N "(cached) $ECHO_C" >&6
23702 else
23703   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23704    cat >conftest.$ac_ext <<_ACEOF
23705 /* confdefs.h.  */
23706 _ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h.  */
23710 #include "confdefs.h"
23711    #include <sys/types.h>
23712
23713
23714 int
23715 main ()
23716 {
23717 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23718   ;
23719   return 0;
23720 }
23721 _ACEOF
23722 rm -f conftest.$ac_objext
23723 if { (ac_try="$ac_compile"
23724 case "(($ac_try" in
23725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23726   *) ac_try_echo=$ac_try;;
23727 esac
23728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23729   (eval "$ac_compile") 2>conftest.er1
23730   ac_status=$?
23731   grep -v '^ *+' conftest.er1 >conftest.err
23732   rm -f conftest.er1
23733   cat conftest.err >&5
23734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735   (exit $ac_status); } && {
23736          test -z "$ac_c_werror_flag" ||
23737          test ! -s conftest.err
23738        } && test -s conftest.$ac_objext; then
23739   ac_cv_sizeof_void_p=$ac_size
23740 else
23741   echo "$as_me: failed program was:" >&5
23742 sed 's/^/| /' conftest.$ac_ext >&5
23743
23744
23745 fi
23746
23747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23748    if test x$ac_cv_sizeof_void_p != x ; then break; fi
23749   done
23750
23751 fi
23752
23753
23754 if test x$ac_cv_sizeof_void_p = x ; then
23755   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23756 echo "$as_me: error: cannot determine a size for void *" >&2;}
23757    { (exit 1); exit 1; }; }
23758 fi
23759 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23760 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23761                  { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23762 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23763
23764  if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23765   echo $ECHO_N "(cached) $ECHO_C" >&6
23766 else
23767   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23768    cat >conftest.$ac_ext <<_ACEOF
23769 /* confdefs.h.  */
23770 _ACEOF
23771 cat confdefs.h >>conftest.$ac_ext
23772 cat >>conftest.$ac_ext <<_ACEOF
23773 /* end confdefs.h.  */
23774 #include "confdefs.h"
23775      #include <sys/types.h>
23776      struct s { char c; void * i; };
23777
23778 int
23779 main ()
23780 {
23781 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23782   ;
23783   return 0;
23784 }
23785 _ACEOF
23786 rm -f conftest.$ac_objext
23787 if { (ac_try="$ac_compile"
23788 case "(($ac_try" in
23789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23790   *) ac_try_echo=$ac_try;;
23791 esac
23792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23793   (eval "$ac_compile") 2>conftest.er1
23794   ac_status=$?
23795   grep -v '^ *+' conftest.er1 >conftest.err
23796   rm -f conftest.er1
23797   cat conftest.err >&5
23798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799   (exit $ac_status); } && {
23800          test -z "$ac_c_werror_flag" ||
23801          test ! -s conftest.err
23802        } && test -s conftest.$ac_objext; then
23803   ac_cv_struct_boundary_void_p=$ac_size
23804 else
23805   echo "$as_me: failed program was:" >&5
23806 sed 's/^/| /' conftest.$ac_ext >&5
23807
23808
23809 fi
23810
23811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23812    if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23813   done
23814
23815 fi
23816
23817  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23818 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23819  if test x$ac_cv_struct_boundary_void_p = x ; then
23820    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23821 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23822    { (exit 1); exit 1; }; }
23823  fi
23824
23825 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23826 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23827     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23828   echo $ECHO_N "(cached) $ECHO_C" >&6
23829 else
23830   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23831    cat >conftest.$ac_ext <<_ACEOF
23832 /* confdefs.h.  */
23833 _ACEOF
23834 cat confdefs.h >>conftest.$ac_ext
23835 cat >>conftest.$ac_ext <<_ACEOF
23836 /* end confdefs.h.  */
23837 #include "confdefs.h"
23838    #include <sys/types.h>
23839
23840
23841 int
23842 main ()
23843 {
23844 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23845   ;
23846   return 0;
23847 }
23848 _ACEOF
23849 rm -f conftest.$ac_objext
23850 if { (ac_try="$ac_compile"
23851 case "(($ac_try" in
23852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23853   *) ac_try_echo=$ac_try;;
23854 esac
23855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23856   (eval "$ac_compile") 2>conftest.er1
23857   ac_status=$?
23858   grep -v '^ *+' conftest.er1 >conftest.err
23859   rm -f conftest.er1
23860   cat conftest.err >&5
23861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862   (exit $ac_status); } && {
23863          test -z "$ac_c_werror_flag" ||
23864          test ! -s conftest.err
23865        } && test -s conftest.$ac_objext; then
23866   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23867 else
23868   echo "$as_me: failed program was:" >&5
23869 sed 's/^/| /' conftest.$ac_ext >&5
23870
23871
23872 fi
23873
23874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23875    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23876   done
23877
23878 fi
23879
23880
23881 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23882   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23883 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23884    { (exit 1); exit 1; }; }
23885 fi
23886 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23887 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23888
23889
23890
23891 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23892 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23893 if test x$endian = x1 ; then
23894   trace_endian=B
23895 else
23896   trace_endian=l
23897 fi
23898 gras_arch=unknown
23899 trace="$trace_endian"
23900
23901 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23902
23903 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23904 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23905 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23906 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23907
23908 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23909 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23910
23911 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23912
23913 # sizeof float/double are not tested since IEEE 754 is assumed.
23914 # Check README.IEEE for rational.
23915
23916 # The numbers after the _ in the arch name are the maximal packing boundary.
23917 # big32_2   means that all data are aligned on a 2 bytes boundary.              (ARM)
23918 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23919 case $trace in
23920   l_C:1/1:_I:2/1:4/1:4/1:8/1:_P:4/1:4/1:_D:4/1:8/1:) gras_arch=0; gras_size=32; gras_arch_name=little32_1;;
23921   l_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=1; gras_size=32; gras_arch_name=little32_2;;
23922   l_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=2; gras_size=32; gras_arch_name=little32_4;;
23923   l_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=3; gras_size=32; gras_arch_name=little32_8;;
23924
23925   l_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=4; gras_size=64; gras_arch_name=little64;;
23926
23927   B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=5; gras_size=32; gras_arch_name=big32;;
23928   B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=6; gras_size=32; gras_arch_name=big32_8_4;;
23929   B_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=7; gras_size=32; gras_arch_name=big32_4;;
23930   B_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=8; gras_size=32; gras_arch_name=big32_2;;
23931
23932   B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=9; gras_size=64; gras_arch_name=big64;;
23933   B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/4:) gras_arch=10;gras_size=64; gras_arch_name=big64_8_4;;
23934 esac
23935 if test x$gras_arch = xunknown ; then
23936   { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
23937 echo "${ECHO_T}damnit ($trace)" >&6; }
23938   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
23939 Please report this architecture trace ($trace) and what it corresponds to." >&5
23940 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
23941 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
23942    { (exit 1); exit 1; }; }
23943 fi
23944 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
23945
23946 cat >>confdefs.h <<_ACEOF
23947 #define GRAS_THISARCH $gras_arch
23948 _ACEOF
23949
23950 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
23951 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
23952
23953  if test "$gras_size" = 32; then
23954   GRAS_ARCH_32_BITS_TRUE=
23955   GRAS_ARCH_32_BITS_FALSE='#'
23956 else
23957   GRAS_ARCH_32_BITS_TRUE='#'
23958   GRAS_ARCH_32_BITS_FALSE=
23959 fi
23960
23961
23962 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
23963 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
23964 ac_cv_sizeof_max=0
23965 for s in $ac_cv_sizeof_char \
23966          $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
23967          $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
23968          4 8; do
23969
23970   if test $ac_cv_sizeof_max -lt $s ; then
23971     ac_cv_sizeof_max=$s
23972   fi
23973 done
23974 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
23975 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
23976
23977 cat >>confdefs.h <<_ACEOF
23978 #define SIZEOF_MAX $ac_cv_sizeof_max
23979 _ACEOF
23980
23981
23982
23983 # Check architecture signature end
23984   { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
23985 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
23986    cat >conftest.$ac_ext <<_ACEOF
23987 /* confdefs.h.  */
23988 _ACEOF
23989 cat confdefs.h >>conftest.$ac_ext
23990 cat >>conftest.$ac_ext <<_ACEOF
23991 /* end confdefs.h.  */
23992 #include "confdefs.h"
23993         #include <sys/types.h>
23994         #include <stddef.h> /* offsetof() */
23995         struct s {char c; double d;};
23996
23997 int
23998 main ()
23999 {
24000 switch (0)
24001         case 0:
24002         case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24003
24004   ;
24005   return 0;
24006 }
24007 _ACEOF
24008 rm -f conftest.$ac_objext
24009 if { (ac_try="$ac_compile"
24010 case "(($ac_try" in
24011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24012   *) ac_try_echo=$ac_try;;
24013 esac
24014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24015   (eval "$ac_compile") 2>conftest.er1
24016   ac_status=$?
24017   grep -v '^ *+' conftest.er1 >conftest.err
24018   rm -f conftest.er1
24019   cat conftest.err >&5
24020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24021   (exit $ac_status); } && {
24022          test -z "$ac_c_werror_flag" ||
24023          test ! -s conftest.err
24024        } && test -s conftest.$ac_objext; then
24025   gras_struct_packed=yes
24026 else
24027   echo "$as_me: failed program was:" >&5
24028 sed 's/^/| /' conftest.$ac_ext >&5
24029
24030         gras_struct_packed=no
24031 fi
24032
24033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24034
24035    { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24036 echo "${ECHO_T}$gras_struct_packed" >&6; }
24037    if test x$gras_struct_packed = "xyes" ; then
24038      { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24039 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24040    { (exit 1); exit 1; }; }
24041    fi
24042
24043    { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24044 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24045    cat >conftest.$ac_ext <<_ACEOF
24046 /* confdefs.h.  */
24047 _ACEOF
24048 cat confdefs.h >>conftest.$ac_ext
24049 cat >>conftest.$ac_ext <<_ACEOF
24050 /* end confdefs.h.  */
24051 #include "confdefs.h"
24052         #include <sys/types.h>
24053         #include <stddef.h> /* offsetof() */
24054         struct s {double d; int i; char c;};
24055
24056 int
24057 main ()
24058 {
24059 switch (0)
24060         case 0:
24061         case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24062
24063   ;
24064   return 0;
24065 }
24066 _ACEOF
24067 rm -f conftest.$ac_objext
24068 if { (ac_try="$ac_compile"
24069 case "(($ac_try" in
24070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24071   *) ac_try_echo=$ac_try;;
24072 esac
24073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24074   (eval "$ac_compile") 2>conftest.er1
24075   ac_status=$?
24076   grep -v '^ *+' conftest.er1 >conftest.err
24077   rm -f conftest.er1
24078   cat conftest.err >&5
24079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080   (exit $ac_status); } && {
24081          test -z "$ac_c_werror_flag" ||
24082          test ! -s conftest.err
24083        } && test -s conftest.$ac_objext; then
24084   gras_struct_compact=yes
24085 else
24086   echo "$as_me: failed program was:" >&5
24087 sed 's/^/| /' conftest.$ac_ext >&5
24088
24089         gras_struct_compact=no
24090 fi
24091
24092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24093
24094    { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24095 echo "${ECHO_T}$gras_struct_compact" >&6; }
24096
24097    if test x$gras_struct_compact != xyes ; then
24098      { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24099 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24100    { (exit 1); exit 1; }; }
24101    fi
24102
24103 cat >>confdefs.h <<_ACEOF
24104 #define GRAS_STRUCT_COMPACT 1
24105 _ACEOF
24106
24107    { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24108 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24109
24110    cat >conftest.$ac_ext <<_ACEOF
24111 /* confdefs.h.  */
24112 _ACEOF
24113 cat confdefs.h >>conftest.$ac_ext
24114 cat >>conftest.$ac_ext <<_ACEOF
24115 /* end confdefs.h.  */
24116 #include "confdefs.h"
24117       #include <sys/types.h>
24118         #include <stddef.h> /* offsetof() */
24119         struct s { double d; int i; char c[6]; };
24120
24121 int
24122 main ()
24123 {
24124 switch (0)
24125       case 0:
24126       case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24127
24128   ;
24129   return 0;
24130 }
24131 _ACEOF
24132 rm -f conftest.$ac_objext
24133 if { (ac_try="$ac_compile"
24134 case "(($ac_try" in
24135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24136   *) ac_try_echo=$ac_try;;
24137 esac
24138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24139   (eval "$ac_compile") 2>conftest.er1
24140   ac_status=$?
24141   grep -v '^ *+' conftest.er1 >conftest.err
24142   rm -f conftest.er1
24143   cat conftest.err >&5
24144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145   (exit $ac_status); } && {
24146          test -z "$ac_c_werror_flag" ||
24147          test ! -s conftest.err
24148        } && test -s conftest.$ac_objext; then
24149   gras_array_straddle_struct=yes
24150 else
24151   echo "$as_me: failed program was:" >&5
24152 sed 's/^/| /' conftest.$ac_ext >&5
24153
24154         gras_array_straddle_struct=no
24155 fi
24156
24157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24158
24159    { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24160 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24161
24162    if test x$gras_array_straddle_struct = xyes ; then
24163
24164 cat >>confdefs.h <<_ACEOF
24165 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24166 _ACEOF
24167
24168    else
24169      { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24170 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24171    { (exit 1); exit 1; }; }
24172    fi
24173
24174
24175
24176
24177
24178   { echo "$as_me:$LINENO: result: " >&5
24179 echo "${ECHO_T}" >&6; }
24180   { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24181 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24182
24183
24184
24185
24186 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24187 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24188 if test "${ac_cv_check_mcsc+set}" = set; then
24189   echo $ECHO_N "(cached) $ECHO_C" >&6
24190 else
24191
24192 if test "$cross_compiling" = yes; then
24193   ac_cv_check_mcsc=no
24194
24195 else
24196   cat >conftest.$ac_ext <<_ACEOF
24197 /* confdefs.h.  */
24198 _ACEOF
24199 cat confdefs.h >>conftest.$ac_ext
24200 cat >>conftest.$ac_ext <<_ACEOF
24201 /* end confdefs.h.  */
24202
24203
24204 #include <stdio.h>
24205 #include <stdlib.h>
24206 #include <ucontext.h>
24207
24208 ucontext_t uc_child;
24209 ucontext_t uc_main;
24210
24211 void child(void *arg)
24212 {
24213     if (arg != (void *)12345)
24214         exit(1);
24215     if (swapcontext(&uc_child, &uc_main) != 0)
24216         exit(2);
24217 }
24218
24219 int main(int argc, char *argv[])
24220 {
24221     FILE *fp;
24222     void *stack;
24223
24224     /* the default is that it fails */
24225     if ((fp = fopen("conftestval", "w")) == NULL)
24226         exit(3);
24227     fprintf(fp, "no\n");
24228     fclose(fp);
24229
24230     /* configure a child user-space context */
24231     if ((stack = malloc(64*1024)) == NULL)
24232         exit(4);
24233     if (getcontext(&uc_child) != 0)
24234         exit(5);
24235     uc_child.uc_link = NULL;
24236     uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24237     uc_child.uc_stack.ss_size = 32*1024;
24238     uc_child.uc_stack.ss_flags = 0;
24239     makecontext(&uc_child, child, 2, (void *)12345);
24240
24241     /* switch into the user context */
24242     if (swapcontext(&uc_main, &uc_child) != 0)
24243         exit(6);
24244
24245     /* Fine, child came home */
24246     if ((fp = fopen("conftestval", "w")) == NULL)
24247         exit(7);
24248     fprintf(fp, "yes\n");
24249     fclose(fp);
24250
24251     /* die successfully */
24252     exit(0);
24253 }
24254
24255 _ACEOF
24256 rm -f conftest$ac_exeext
24257 if { (ac_try="$ac_link"
24258 case "(($ac_try" in
24259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24260   *) ac_try_echo=$ac_try;;
24261 esac
24262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24263   (eval "$ac_link") 2>&5
24264   ac_status=$?
24265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24267   { (case "(($ac_try" in
24268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24269   *) ac_try_echo=$ac_try;;
24270 esac
24271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24272   (eval "$ac_try") 2>&5
24273   ac_status=$?
24274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275   (exit $ac_status); }; }; then
24276   ac_cv_check_mcsc=`cat conftestval`
24277 else
24278   echo "$as_me: program exited with status $ac_status" >&5
24279 echo "$as_me: failed program was:" >&5
24280 sed 's/^/| /' conftest.$ac_ext >&5
24281
24282 ( exit $ac_status )
24283 ac_cv_check_mcsc=no
24284 fi
24285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24286 fi
24287
24288
24289 fi
24290 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24291 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24292 if test ".$ac_cv_check_mcsc" = .yes; then
24293     mcsc=yes
24294 else
24295     mcsc=no
24296 fi
24297
24298
24299
24300 for ac_header in pthread.h
24301 do
24302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24304   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24307   echo $ECHO_N "(cached) $ECHO_C" >&6
24308 fi
24309 ac_res=`eval echo '${'$as_ac_Header'}'`
24310                { echo "$as_me:$LINENO: result: $ac_res" >&5
24311 echo "${ECHO_T}$ac_res" >&6; }
24312 else
24313   # Is the header compilable?
24314 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24316 cat >conftest.$ac_ext <<_ACEOF
24317 /* confdefs.h.  */
24318 _ACEOF
24319 cat confdefs.h >>conftest.$ac_ext
24320 cat >>conftest.$ac_ext <<_ACEOF
24321 /* end confdefs.h.  */
24322 $ac_includes_default
24323 #include <$ac_header>
24324 _ACEOF
24325 rm -f conftest.$ac_objext
24326 if { (ac_try="$ac_compile"
24327 case "(($ac_try" in
24328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24329   *) ac_try_echo=$ac_try;;
24330 esac
24331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24332   (eval "$ac_compile") 2>conftest.er1
24333   ac_status=$?
24334   grep -v '^ *+' conftest.er1 >conftest.err
24335   rm -f conftest.er1
24336   cat conftest.err >&5
24337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338   (exit $ac_status); } && {
24339          test -z "$ac_c_werror_flag" ||
24340          test ! -s conftest.err
24341        } && test -s conftest.$ac_objext; then
24342   ac_header_compiler=yes
24343 else
24344   echo "$as_me: failed program was:" >&5
24345 sed 's/^/| /' conftest.$ac_ext >&5
24346
24347         ac_header_compiler=no
24348 fi
24349
24350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24351 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24352 echo "${ECHO_T}$ac_header_compiler" >&6; }
24353
24354 # Is the header present?
24355 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24357 cat >conftest.$ac_ext <<_ACEOF
24358 /* confdefs.h.  */
24359 _ACEOF
24360 cat confdefs.h >>conftest.$ac_ext
24361 cat >>conftest.$ac_ext <<_ACEOF
24362 /* end confdefs.h.  */
24363 #include <$ac_header>
24364 _ACEOF
24365 if { (ac_try="$ac_cpp conftest.$ac_ext"
24366 case "(($ac_try" in
24367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24368   *) ac_try_echo=$ac_try;;
24369 esac
24370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24371   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24372   ac_status=$?
24373   grep -v '^ *+' conftest.er1 >conftest.err
24374   rm -f conftest.er1
24375   cat conftest.err >&5
24376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377   (exit $ac_status); } >/dev/null && {
24378          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24379          test ! -s conftest.err
24380        }; then
24381   ac_header_preproc=yes
24382 else
24383   echo "$as_me: failed program was:" >&5
24384 sed 's/^/| /' conftest.$ac_ext >&5
24385
24386   ac_header_preproc=no
24387 fi
24388
24389 rm -f conftest.err conftest.$ac_ext
24390 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24391 echo "${ECHO_T}$ac_header_preproc" >&6; }
24392
24393 # So?  What about this header?
24394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24395   yes:no: )
24396     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24400     ac_header_preproc=yes
24401     ;;
24402   no:yes:* )
24403     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24405     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24406 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24407     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24409     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24410 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24413     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24415     ( cat <<\_ASBOX
24416 ## -------------------------------------------------- ##
24417 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24418 ## -------------------------------------------------- ##
24419 _ASBOX
24420      ) | sed "s/^/$as_me: WARNING:     /" >&2
24421     ;;
24422 esac
24423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24426   echo $ECHO_N "(cached) $ECHO_C" >&6
24427 else
24428   eval "$as_ac_Header=\$ac_header_preproc"
24429 fi
24430 ac_res=`eval echo '${'$as_ac_Header'}'`
24431                { echo "$as_me:$LINENO: result: $ac_res" >&5
24432 echo "${ECHO_T}$ac_res" >&6; }
24433
24434 fi
24435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24436   cat >>confdefs.h <<_ACEOF
24437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24438 _ACEOF
24439
24440 fi
24441
24442 done
24443
24444 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24445 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24446 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24447   echo $ECHO_N "(cached) $ECHO_C" >&6
24448 else
24449   ac_check_lib_save_LIBS=$LIBS
24450 LIBS="-lpthread  $LIBS"
24451 cat >conftest.$ac_ext <<_ACEOF
24452 /* confdefs.h.  */
24453 _ACEOF
24454 cat confdefs.h >>conftest.$ac_ext
24455 cat >>conftest.$ac_ext <<_ACEOF
24456 /* end confdefs.h.  */
24457
24458 /* Override any GCC internal prototype to avoid an error.
24459    Use char because int might match the return type of a GCC
24460    builtin and then its argument prototype would still apply.  */
24461 #ifdef __cplusplus
24462 extern "C"
24463 #endif
24464 char pthread_create ();
24465 int
24466 main ()
24467 {
24468 return pthread_create ();
24469   ;
24470   return 0;
24471 }
24472 _ACEOF
24473 rm -f conftest.$ac_objext conftest$ac_exeext
24474 if { (ac_try="$ac_link"
24475 case "(($ac_try" in
24476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24477   *) ac_try_echo=$ac_try;;
24478 esac
24479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24480   (eval "$ac_link") 2>conftest.er1
24481   ac_status=$?
24482   grep -v '^ *+' conftest.er1 >conftest.err
24483   rm -f conftest.er1
24484   cat conftest.err >&5
24485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486   (exit $ac_status); } && {
24487          test -z "$ac_c_werror_flag" ||
24488          test ! -s conftest.err
24489        } && test -s conftest$ac_exeext &&
24490        $as_test_x conftest$ac_exeext; then
24491   ac_cv_lib_pthread_pthread_create=yes
24492 else
24493   echo "$as_me: failed program was:" >&5
24494 sed 's/^/| /' conftest.$ac_ext >&5
24495
24496         ac_cv_lib_pthread_pthread_create=no
24497 fi
24498
24499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24500       conftest$ac_exeext conftest.$ac_ext
24501 LIBS=$ac_check_lib_save_LIBS
24502 fi
24503 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24504 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24505 if test $ac_cv_lib_pthread_pthread_create = yes; then
24506   pthread=yes
24507 else
24508   pthread=no
24509 fi
24510
24511
24512
24513 if test ".$mcsc" = .yes; then
24514    mcsc=yes
24515 elif test ".$pthread" = .yes; then
24516    pthread=yes
24517 else
24518     ac_header=windows.h
24519     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24520     if test `eval echo '${'$as_ac_Header'}'` = yes; then
24521       windows_context=yes
24522     else
24523       { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24524 echo "$as_me: error: no appropriate backend found" >&2;}
24525    { (exit 1); exit 1; }; }
24526     fi
24527 fi
24528
24529
24530 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24531 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24532
24533
24534 # Check whether --with-pthread was given.
24535 if test "${with_pthread+set}" = set; then
24536   withval=$with_pthread; with_context=pthread
24537 fi
24538
24539
24540 # Check whether --with-pthread was given.
24541 if test "${with_pthread+set}" = set; then
24542   withval=$with_pthread; with_context=pthread
24543 fi
24544
24545
24546
24547 # Check whether --with-context was given.
24548 if test "${with_context+set}" = set; then
24549   withval=$with_context;
24550 else
24551   with_context=auto
24552 fi
24553
24554
24555 if test "x$with_context$mcsc" = "xucontextno" ; then
24556   { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24557 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24558    { (exit 77); exit 77; }; }
24559 fi
24560
24561 case $with_context in
24562  ucontext) ;;
24563  pthread) ;;
24564  pthreads) ;;
24565  windows) ;;
24566  auto) with_context=ucontext;;
24567  *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24568 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24569    { (exit 1); exit 1; }; } ;;
24570 esac
24571
24572 if test "x$with_context" = "xucontext" ; then
24573   if test ".$mcsc" = .yes; then
24574     { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24575 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24576
24577 cat >>confdefs.h <<\_ACEOF
24578 #define CONTEXT_UCONTEXT 1
24579 _ACEOF
24580
24581   else
24582     if test ".$windows_context" = .yes ; then
24583       { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24584 echo "${ECHO_T}use windows context portability layer." >&6; }
24585       with_context=windows
24586     else
24587       { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24588 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24589       with_context=pthread
24590     fi
24591   fi
24592 fi
24593
24594 if test "x$with_context" = "xpthreads"; then
24595   with_context=pthread
24596 fi
24597 if test "x$with_context" = "xpthread"; then
24598
24599 for ac_header in pthread.h
24600 do
24601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24603   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24606   echo $ECHO_N "(cached) $ECHO_C" >&6
24607 fi
24608 ac_res=`eval echo '${'$as_ac_Header'}'`
24609                { echo "$as_me:$LINENO: result: $ac_res" >&5
24610 echo "${ECHO_T}$ac_res" >&6; }
24611 else
24612   # Is the header compilable?
24613 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24615 cat >conftest.$ac_ext <<_ACEOF
24616 /* confdefs.h.  */
24617 _ACEOF
24618 cat confdefs.h >>conftest.$ac_ext
24619 cat >>conftest.$ac_ext <<_ACEOF
24620 /* end confdefs.h.  */
24621 $ac_includes_default
24622 #include <$ac_header>
24623 _ACEOF
24624 rm -f conftest.$ac_objext
24625 if { (ac_try="$ac_compile"
24626 case "(($ac_try" in
24627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24628   *) ac_try_echo=$ac_try;;
24629 esac
24630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24631   (eval "$ac_compile") 2>conftest.er1
24632   ac_status=$?
24633   grep -v '^ *+' conftest.er1 >conftest.err
24634   rm -f conftest.er1
24635   cat conftest.err >&5
24636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637   (exit $ac_status); } && {
24638          test -z "$ac_c_werror_flag" ||
24639          test ! -s conftest.err
24640        } && test -s conftest.$ac_objext; then
24641   ac_header_compiler=yes
24642 else
24643   echo "$as_me: failed program was:" >&5
24644 sed 's/^/| /' conftest.$ac_ext >&5
24645
24646         ac_header_compiler=no
24647 fi
24648
24649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24651 echo "${ECHO_T}$ac_header_compiler" >&6; }
24652
24653 # Is the header present?
24654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24656 cat >conftest.$ac_ext <<_ACEOF
24657 /* confdefs.h.  */
24658 _ACEOF
24659 cat confdefs.h >>conftest.$ac_ext
24660 cat >>conftest.$ac_ext <<_ACEOF
24661 /* end confdefs.h.  */
24662 #include <$ac_header>
24663 _ACEOF
24664 if { (ac_try="$ac_cpp conftest.$ac_ext"
24665 case "(($ac_try" in
24666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24667   *) ac_try_echo=$ac_try;;
24668 esac
24669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24670   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24671   ac_status=$?
24672   grep -v '^ *+' conftest.er1 >conftest.err
24673   rm -f conftest.er1
24674   cat conftest.err >&5
24675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676   (exit $ac_status); } >/dev/null && {
24677          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24678          test ! -s conftest.err
24679        }; then
24680   ac_header_preproc=yes
24681 else
24682   echo "$as_me: failed program was:" >&5
24683 sed 's/^/| /' conftest.$ac_ext >&5
24684
24685   ac_header_preproc=no
24686 fi
24687
24688 rm -f conftest.err conftest.$ac_ext
24689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24690 echo "${ECHO_T}$ac_header_preproc" >&6; }
24691
24692 # So?  What about this header?
24693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24694   yes:no: )
24695     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24697     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24698 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24699     ac_header_preproc=yes
24700     ;;
24701   no:yes:* )
24702     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24704     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24705 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24706     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24707 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24708     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24709 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24710     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24712     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24713 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24714     ( cat <<\_ASBOX
24715 ## -------------------------------------------------- ##
24716 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24717 ## -------------------------------------------------- ##
24718 _ASBOX
24719      ) | sed "s/^/$as_me: WARNING:     /" >&2
24720     ;;
24721 esac
24722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24725   echo $ECHO_N "(cached) $ECHO_C" >&6
24726 else
24727   eval "$as_ac_Header=\$ac_header_preproc"
24728 fi
24729 ac_res=`eval echo '${'$as_ac_Header'}'`
24730                { echo "$as_me:$LINENO: result: $ac_res" >&5
24731 echo "${ECHO_T}$ac_res" >&6; }
24732
24733 fi
24734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24735   cat >>confdefs.h <<_ACEOF
24736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24737 _ACEOF
24738
24739 fi
24740
24741 done
24742
24743
24744 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24745 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24746 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24747   echo $ECHO_N "(cached) $ECHO_C" >&6
24748 else
24749   ac_check_lib_save_LIBS=$LIBS
24750 LIBS="-lpthread  $LIBS"
24751 cat >conftest.$ac_ext <<_ACEOF
24752 /* confdefs.h.  */
24753 _ACEOF
24754 cat confdefs.h >>conftest.$ac_ext
24755 cat >>conftest.$ac_ext <<_ACEOF
24756 /* end confdefs.h.  */
24757
24758 /* Override any GCC internal prototype to avoid an error.
24759    Use char because int might match the return type of a GCC
24760    builtin and then its argument prototype would still apply.  */
24761 #ifdef __cplusplus
24762 extern "C"
24763 #endif
24764 char pthread_create ();
24765 int
24766 main ()
24767 {
24768 return pthread_create ();
24769   ;
24770   return 0;
24771 }
24772 _ACEOF
24773 rm -f conftest.$ac_objext conftest$ac_exeext
24774 if { (ac_try="$ac_link"
24775 case "(($ac_try" in
24776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24777   *) ac_try_echo=$ac_try;;
24778 esac
24779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24780   (eval "$ac_link") 2>conftest.er1
24781   ac_status=$?
24782   grep -v '^ *+' conftest.er1 >conftest.err
24783   rm -f conftest.er1
24784   cat conftest.err >&5
24785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786   (exit $ac_status); } && {
24787          test -z "$ac_c_werror_flag" ||
24788          test ! -s conftest.err
24789        } && test -s conftest$ac_exeext &&
24790        $as_test_x conftest$ac_exeext; then
24791   ac_cv_lib_pthread_pthread_create=yes
24792 else
24793   echo "$as_me: failed program was:" >&5
24794 sed 's/^/| /' conftest.$ac_ext >&5
24795
24796         ac_cv_lib_pthread_pthread_create=no
24797 fi
24798
24799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24800       conftest$ac_exeext conftest.$ac_ext
24801 LIBS=$ac_check_lib_save_LIBS
24802 fi
24803 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24804 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24805 if test $ac_cv_lib_pthread_pthread_create = yes; then
24806   cat >>confdefs.h <<_ACEOF
24807 #define HAVE_LIBPTHREAD 1
24808 _ACEOF
24809
24810   LIBS="-lpthread $LIBS"
24811
24812 else
24813   { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
24814 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
24815    { (exit 1); exit 1; }; }
24816 fi
24817
24818
24819 cat >>confdefs.h <<\_ACEOF
24820 #define CONTEXT_THREADS 1
24821 _ACEOF
24822
24823   { echo "$as_me:$LINENO: result: You have pthreads. Let's use them." >&5
24824 echo "${ECHO_T}You have pthreads. Let's use them." >&6; }
24825 fi
24826
24827
24828 if test "x$with_context" = "xucontext" ; then
24829   { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24830 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
24831 if test "${ac_cv_check_stackgrowth+set}" = set; then
24832   echo $ECHO_N "(cached) $ECHO_C" >&6
24833 else
24834
24835 cross_compiling=no
24836 if test "$cross_compiling" = yes; then
24837   ac_cv_check_stackgrowth=down
24838
24839 else
24840   cat >conftest.$ac_ext <<_ACEOF
24841 /* confdefs.h.  */
24842 _ACEOF
24843 cat confdefs.h >>conftest.$ac_ext
24844 cat >>conftest.$ac_ext <<_ACEOF
24845 /* end confdefs.h.  */
24846
24847 #include <stdio.h>
24848 #include <stdlib.h>
24849 static int iterate = 10;
24850 static int growsdown(int *x)
24851 {
24852     auto int y;
24853     y = (x > &y);
24854     if (--iterate > 0)
24855         y = growsdown(&y);
24856     if (y != (x > &y))
24857         exit(1);
24858     return y;
24859 }
24860 int main(int argc, char *argv[])
24861 {
24862     FILE *f;
24863     auto int x;
24864     if ((f = fopen("conftestval", "w")) == NULL)
24865         exit(1);
24866     fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24867     fclose(f);
24868     exit(0);
24869 }
24870
24871
24872 _ACEOF
24873 rm -f conftest$ac_exeext
24874 if { (ac_try="$ac_link"
24875 case "(($ac_try" in
24876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24877   *) ac_try_echo=$ac_try;;
24878 esac
24879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24880   (eval "$ac_link") 2>&5
24881   ac_status=$?
24882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24884   { (case "(($ac_try" in
24885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24886   *) ac_try_echo=$ac_try;;
24887 esac
24888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24889   (eval "$ac_try") 2>&5
24890   ac_status=$?
24891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892   (exit $ac_status); }; }; then
24893   ac_cv_check_stackgrowth=`cat conftestval`
24894 else
24895   echo "$as_me: program exited with status $ac_status" >&5
24896 echo "$as_me: failed program was:" >&5
24897 sed 's/^/| /' conftest.$ac_ext >&5
24898
24899 ( exit $ac_status )
24900 ac_cv_check_stackgrowth=down
24901 fi
24902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24903 fi
24904
24905
24906 fi
24907 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24908 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
24909 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24910     val="-1"
24911 else
24912     val="+1"
24913 fi
24914
24915 cat >>confdefs.h <<_ACEOF
24916 #define PTH_STACKGROWTH $val
24917 _ACEOF
24918
24919
24920   if test ".$ac_cv_check_stackgrowth" = ".down"; then
24921       PTH_STACK_GROWTH="down"
24922   else
24923       PTH_STACK_GROWTH="up"
24924   fi
24925
24926
24927
24928
24929
24930
24931 for ac_func in makecontext
24932 do
24933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24937   echo $ECHO_N "(cached) $ECHO_C" >&6
24938 else
24939   cat >conftest.$ac_ext <<_ACEOF
24940 /* confdefs.h.  */
24941 _ACEOF
24942 cat confdefs.h >>conftest.$ac_ext
24943 cat >>conftest.$ac_ext <<_ACEOF
24944 /* end confdefs.h.  */
24945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24947 #define $ac_func innocuous_$ac_func
24948
24949 /* System header to define __stub macros and hopefully few prototypes,
24950     which can conflict with char $ac_func (); below.
24951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24952     <limits.h> exists even on freestanding compilers.  */
24953
24954 #ifdef __STDC__
24955 # include <limits.h>
24956 #else
24957 # include <assert.h>
24958 #endif
24959
24960 #undef $ac_func
24961
24962 /* Override any GCC internal prototype to avoid an error.
24963    Use char because int might match the return type of a GCC
24964    builtin and then its argument prototype would still apply.  */
24965 #ifdef __cplusplus
24966 extern "C"
24967 #endif
24968 char $ac_func ();
24969 /* The GNU C library defines this for functions which it implements
24970     to always fail with ENOSYS.  Some functions are actually named
24971     something starting with __ and the normal name is an alias.  */
24972 #if defined __stub_$ac_func || defined __stub___$ac_func
24973 choke me
24974 #endif
24975
24976 int
24977 main ()
24978 {
24979 return $ac_func ();
24980   ;
24981   return 0;
24982 }
24983 _ACEOF
24984 rm -f conftest.$ac_objext conftest$ac_exeext
24985 if { (ac_try="$ac_link"
24986 case "(($ac_try" in
24987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24988   *) ac_try_echo=$ac_try;;
24989 esac
24990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24991   (eval "$ac_link") 2>conftest.er1
24992   ac_status=$?
24993   grep -v '^ *+' conftest.er1 >conftest.err
24994   rm -f conftest.er1
24995   cat conftest.err >&5
24996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997   (exit $ac_status); } && {
24998          test -z "$ac_c_werror_flag" ||
24999          test ! -s conftest.err
25000        } && test -s conftest$ac_exeext &&
25001        $as_test_x conftest$ac_exeext; then
25002   eval "$as_ac_var=yes"
25003 else
25004   echo "$as_me: failed program was:" >&5
25005 sed 's/^/| /' conftest.$ac_ext >&5
25006
25007         eval "$as_ac_var=no"
25008 fi
25009
25010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25011       conftest$ac_exeext conftest.$ac_ext
25012 fi
25013 ac_res=`eval echo '${'$as_ac_var'}'`
25014                { echo "$as_me:$LINENO: result: $ac_res" >&5
25015 echo "${ECHO_T}$ac_res" >&6; }
25016 if test `eval echo '${'$as_ac_var'}'` = yes; then
25017   cat >>confdefs.h <<_ACEOF
25018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25019 _ACEOF
25020
25021 fi
25022 done
25023
25024
25025 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25026 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25027 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25028   echo $ECHO_N "(cached) $ECHO_C" >&6
25029 else
25030
25031 if test ".$ac_cv_func_makecontext" = .no; then
25032         ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25033 else
25034         OCFLAGS="$CFLAGS"
25035     CFLAGS="$CFLAGS -DTEST_makecontext"
25036     cross_compiling=no
25037         if test "$cross_compiling" = yes; then
25038
25039 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25040
25041 else
25042   cat >conftest.$ac_ext <<_ACEOF
25043 /* confdefs.h.  */
25044 _ACEOF
25045 cat confdefs.h >>conftest.$ac_ext
25046 cat >>conftest.$ac_ext <<_ACEOF
25047 /* end confdefs.h.  */
25048
25049 #include <stdio.h>
25050 #include <stdlib.h>
25051 #include <string.h>
25052 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25053 #include <sys/types.h>
25054 #include <signal.h>
25055 #include <unistd.h>
25056 #endif
25057 #if defined(TEST_makecontext)
25058 #include <ucontext.h>
25059 #endif
25060 union alltypes {
25061     long   l;
25062     double d;
25063     void  *vp;
25064     void (*fp)(void);
25065     char  *cp;
25066 };
25067 static volatile char *handler_addr = (char *)0xDEAD;
25068 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25069 static volatile int handler_done = 0;
25070 void handler(int sig)
25071 {
25072     char garbage[1024];
25073     int i;
25074     auto int dummy;
25075     for (i = 0; i < 1024; i++)
25076         garbage[i] = 'X';
25077     handler_addr = (char *)&dummy;
25078     handler_done = 1;
25079     return;
25080 }
25081 #endif
25082 #if defined(TEST_makecontext)
25083 static ucontext_t uc_handler;
25084 static ucontext_t uc_main;
25085 void handler(void)
25086 {
25087     char garbage[1024];
25088     int i;
25089     auto int dummy;
25090     for (i = 0; i < 1024; i++)
25091         garbage[i] = 'X';
25092     handler_addr = (char *)&dummy;
25093     swapcontext(&uc_handler, &uc_main);
25094     return;
25095 }
25096 #endif
25097 int main(int argc, char *argv[])
25098 {
25099     FILE *f;
25100     char *skaddr;
25101     char *skbuf;
25102     int sksize;
25103     char result[1024];
25104     int i;
25105     sksize = 32768;
25106     skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25107     if (skbuf == NULL)
25108         exit(1);
25109     for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25110         skbuf[i] = 'A';
25111     skaddr = skbuf+sizeof(union alltypes);
25112 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25113     {
25114         struct sigaction sa;
25115 #if defined(TEST_sigstack)
25116         struct sigstack ss;
25117 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25118         stack_t ss;
25119 #else
25120         struct sigaltstack ss;
25121 #endif
25122 #if defined(TEST_sigstack)
25123         ss.ss_sp      = (void *)(skaddr + sksize);
25124         ss.ss_onstack = 0;
25125         if (sigstack(&ss, NULL) < 0)
25126             exit(1);
25127 #elif defined(TEST_sigaltstack)
25128         ss.ss_sp    = (void *)(skaddr + sksize);
25129         ss.ss_size  = sksize;
25130         ss.ss_flags = 0;
25131         if (sigaltstack(&ss, NULL) < 0)
25132             exit(1);
25133 #endif
25134         memset((void *)&sa, 0, sizeof(struct sigaction));
25135         sa.sa_handler = handler;
25136         sa.sa_flags = SA_ONSTACK;
25137         sigemptyset(&sa.sa_mask);
25138         sigaction(SIGUSR1, &sa, NULL);
25139         kill(getpid(), SIGUSR1);
25140         while (!handler_done)
25141             /*nop*/;
25142     }
25143 #endif
25144 #if defined(TEST_makecontext)
25145     {
25146         if (getcontext(&uc_handler) != 0)
25147             exit(1);
25148         uc_handler.uc_link = NULL;
25149         uc_handler.uc_stack.ss_sp    = (void *)(skaddr + sksize);
25150         uc_handler.uc_stack.ss_size  = sksize;
25151         uc_handler.uc_stack.ss_flags = 0;
25152         makecontext(&uc_handler, handler, 1);
25153         swapcontext(&uc_main, &uc_handler);
25154     }
25155 #endif
25156     if (handler_addr == (char *)0xDEAD)
25157         exit(1);
25158     if (handler_addr < skaddr+sksize) {
25159         /* stack was placed into lower area */
25160         if (*(skaddr+sksize) != 'A')
25161              sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25162                      sizeof(union alltypes), sizeof(union alltypes));
25163         else
25164              strcpy(result, "(skaddr)+(sksize),(sksize)");
25165     }
25166     else {
25167         /* stack was placed into higher area */
25168         if (*(skaddr+sksize*2) != 'A')
25169             sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
25170         else
25171             strcpy(result, "(skaddr),(sksize)");
25172     }
25173     if ((f = fopen("conftestval", "w")) == NULL)
25174         exit(1);
25175     fprintf(f, "%s\n", result);
25176     fclose(f);
25177     exit(0);
25178 }
25179
25180 _ACEOF
25181 rm -f conftest$ac_exeext
25182 if { (ac_try="$ac_link"
25183 case "(($ac_try" in
25184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25185   *) ac_try_echo=$ac_try;;
25186 esac
25187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25188   (eval "$ac_link") 2>&5
25189   ac_status=$?
25190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25192   { (case "(($ac_try" in
25193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25194   *) ac_try_echo=$ac_try;;
25195 esac
25196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25197   (eval "$ac_try") 2>&5
25198   ac_status=$?
25199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25200   (exit $ac_status); }; }; then
25201
25202 ac_cv_stacksetup_makecontext=`cat conftestval`
25203 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25204
25205 else
25206   echo "$as_me: program exited with status $ac_status" >&5
25207 echo "$as_me: failed program was:" >&5
25208 sed 's/^/| /' conftest.$ac_ext >&5
25209
25210 ( exit $ac_status )
25211
25212 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25213
25214 fi
25215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25216 fi
25217
25218
25219 CFLAGS="$OCFLAGS"
25220
25221 fi
25222 fi
25223 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25224 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25225 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25226 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25227 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25228 { echo "$as_me:$LINENO: result: $type" >&5
25229 echo "${ECHO_T}$type" >&6; }
25230 if test ".$verbose" = .yes; then
25231     { echo "$as_me:$LINENO: result:   $pth_skaddr_makecontext" >&5
25232 echo "${ECHO_T}  $pth_skaddr_makecontext" >&6; }
25233 fi
25234
25235 if test ".$verbose" = .yes; then
25236     { echo "$as_me:$LINENO: result:   $pth_sksize_makecontext" >&5
25237 echo "${ECHO_T}  $pth_sksize_makecontext" >&6; }
25238 fi
25239
25240
25241 fi
25242
25243 #########################################
25244 ## Check for libraries extra-dependencies
25245 ##
25246
25247
25248   { echo "$as_me:$LINENO: result: " >&5
25249 echo "${ECHO_T}" >&6; }
25250   { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25251 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25252
25253
25254 SIMGRID_DEP=""
25255 GRAS_DEP=""
25256
25257 if test xpthread=xyes ; then
25258   # if the pthreads are usable
25259   if test "x$with_context" = "xpthread" ; then
25260     # if we use them to implement the xbt_context
25261     SIMGRID_DEP="-lpthread"
25262   fi
25263   # we need them in any case for the gras lib (which is multithreaded), but on windows (of course)
25264   if test "x$with_context" != "xwindows" ; then
25265     GRAS_DEP="-lpthread"
25266   fi
25267 fi
25268
25269
25270 #########################################
25271 ## Build optional modules (gtnets)
25272 ##
25273 gtnets=no
25274
25275 # Check whether --with-gtnets was given.
25276 if test "${with_gtnets+set}" = set; then
25277   withval=$with_gtnets; gtnets_path="$withval"
25278 else
25279   gtnets_path="no"
25280 fi
25281
25282 if test "x$gtnets_path" = "xno" ; then
25283   { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
25284 echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
25285 else
25286   { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&5
25287 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&6; }
25288   { echo "$as_me:$LINENO: checking for gtnets" >&5
25289 echo $ECHO_N "checking for gtnets... $ECHO_C" >&6; }
25290   ac_ext=cpp
25291 ac_cpp='$CXXCPP $CPPFLAGS'
25292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25295
25296   GTNETS_LDFLAGS="-lgtnets -L$gtnets_path/lib"
25297   GTNETS_CPPFLAGS="-I$gtnets_path/include -I$gtnets_path/include/gtnets"
25298   LDFLAGS_SAV=$LDFLAGS
25299   CPPFLAGS_SAV=$CPPFLAGS
25300   CPPFLAGS+=$GTNETS_CPPFLAGS
25301   LDFLAGS+=$GTNETS_LDFLAGS
25302   cat >conftest.$ac_ext <<_ACEOF
25303 /* confdefs.h.  */
25304 _ACEOF
25305 cat confdefs.h >>conftest.$ac_ext
25306 cat >>conftest.$ac_ext <<_ACEOF
25307 /* end confdefs.h.  */
25308  #include <simulator.h>
25309
25310 int
25311 main ()
25312 {
25313 Simulator s; s.RunUntilNextCompletion();
25314   ;
25315   return 0;
25316 }
25317 _ACEOF
25318 rm -f conftest.$ac_objext conftest$ac_exeext
25319 if { (ac_try="$ac_link"
25320 case "(($ac_try" in
25321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25322   *) ac_try_echo=$ac_try;;
25323 esac
25324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25325   (eval "$ac_link") 2>conftest.er1
25326   ac_status=$?
25327   grep -v '^ *+' conftest.er1 >conftest.err
25328   rm -f conftest.er1
25329   cat conftest.err >&5
25330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331   (exit $ac_status); } && {
25332          test -z "$ac_cxx_werror_flag" ||
25333          test ! -s conftest.err
25334        } && test -s conftest$ac_exeext &&
25335        $as_test_x conftest$ac_exeext; then
25336   gtnets=yes
25337 else
25338   echo "$as_me: failed program was:" >&5
25339 sed 's/^/| /' conftest.$ac_ext >&5
25340
25341         gtnets=no
25342 fi
25343
25344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25345       conftest$ac_exeext conftest.$ac_ext
25346   CPPFLAGS=$CPPFLAGS_SAV
25347   LDFLAGS=$LDFLAGS_SAV
25348   ac_ext=c
25349 ac_cpp='$CPP $CPPFLAGS'
25350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25353
25354
25355   if test "x$gtnets" = xyes ; then
25356     CPPFLAGS+=$GTNETS_CPPFLAGS
25357     LDFLAGS+=$GTNETS_LDFLAGS
25358     SIMGRID_DEP="$SIMGRID_DEP $GTNETS_LDFLAGS"
25359     { echo "$as_me:$LINENO: result: Found working gtnets library." >&5
25360 echo "${ECHO_T}Found working gtnets library." >&6; }
25361
25362 cat >>confdefs.h <<\_ACEOF
25363 #define HAVE_GTNETS 1
25364 _ACEOF
25365
25366   else
25367     { echo "$as_me:$LINENO: result: Could not find any working gtnets library or not patched version" >&5
25368 echo "${ECHO_T}Could not find any working gtnets library or not patched version" >&6; }
25369   fi
25370 fi
25371  if test "x$gtnets" != xno; then
25372   HAVE_GTNETS_TRUE=
25373   HAVE_GTNETS_FALSE='#'
25374 else
25375   HAVE_GTNETS_TRUE='#'
25376   HAVE_GTNETS_FALSE=
25377 fi
25378
25379
25380 #########################################
25381 ## Build optional modules (csdp)
25382 ##
25383 csdp=no
25384
25385 # Check whether --with-csdp was given.
25386 if test "${with_csdp+set}" = set; then
25387   withval=$with_csdp; csdp_path="$withval"
25388 else
25389   csdp_path="no"
25390 fi
25391
25392 if test "x$csdp_path" = "xno" ; then
25393   { echo "$as_me:$LINENO: result: Eventually you will come to csdp." >&5
25394 echo "${ECHO_T}Eventually you will come to csdp." >&6; }
25395 else
25396   { echo "$as_me:$LINENO: result: ***** You have decided to use csdp. Let's check whether it works or not *****" >&5
25397 echo "${ECHO_T}***** You have decided to use csdp. Let's check whether it works or not *****" >&6; }
25398   { echo "$as_me:$LINENO: checking for csdp" >&5
25399 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25400   CSDP_LDFLAGS="-L$csdp_path/lib -lsdp -llapack -lblas -lm"
25401   CSDP_CPPFLAGS="-I$csdp_path/include -I$csdp_path/include/csdp"
25402
25403   { echo "$as_me:$LINENO: checking for easy_sdp in -lsdp" >&5
25404 echo $ECHO_N "checking for easy_sdp in -lsdp... $ECHO_C" >&6; }
25405 if test "${ac_cv_lib_sdp_easy_sdp+set}" = set; then
25406   echo $ECHO_N "(cached) $ECHO_C" >&6
25407 else
25408   ac_check_lib_save_LIBS=$LIBS
25409 LIBS="-lsdp $CSDP_LDFLAGS $LIBS"
25410 cat >conftest.$ac_ext <<_ACEOF
25411 /* confdefs.h.  */
25412 _ACEOF
25413 cat confdefs.h >>conftest.$ac_ext
25414 cat >>conftest.$ac_ext <<_ACEOF
25415 /* end confdefs.h.  */
25416
25417 /* Override any GCC internal prototype to avoid an error.
25418    Use char because int might match the return type of a GCC
25419    builtin and then its argument prototype would still apply.  */
25420 #ifdef __cplusplus
25421 extern "C"
25422 #endif
25423 char easy_sdp ();
25424 int
25425 main ()
25426 {
25427 return easy_sdp ();
25428   ;
25429   return 0;
25430 }
25431 _ACEOF
25432 rm -f conftest.$ac_objext conftest$ac_exeext
25433 if { (ac_try="$ac_link"
25434 case "(($ac_try" in
25435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25436   *) ac_try_echo=$ac_try;;
25437 esac
25438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25439   (eval "$ac_link") 2>conftest.er1
25440   ac_status=$?
25441   grep -v '^ *+' conftest.er1 >conftest.err
25442   rm -f conftest.er1
25443   cat conftest.err >&5
25444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445   (exit $ac_status); } && {
25446          test -z "$ac_c_werror_flag" ||
25447          test ! -s conftest.err
25448        } && test -s conftest$ac_exeext &&
25449        $as_test_x conftest$ac_exeext; then
25450   ac_cv_lib_sdp_easy_sdp=yes
25451 else
25452   echo "$as_me: failed program was:" >&5
25453 sed 's/^/| /' conftest.$ac_ext >&5
25454
25455         ac_cv_lib_sdp_easy_sdp=no
25456 fi
25457
25458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25459       conftest$ac_exeext conftest.$ac_ext
25460 LIBS=$ac_check_lib_save_LIBS
25461 fi
25462 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_easy_sdp" >&5
25463 echo "${ECHO_T}$ac_cv_lib_sdp_easy_sdp" >&6; }
25464 if test $ac_cv_lib_sdp_easy_sdp = yes; then
25465   csdp_lib=yes
25466 else
25467   csdp_lib=no
25468 fi
25469
25470
25471   CPPFLAGS_SAV=$CPPFLAGS
25472   CPPFLAGS+=$CSDP_CPPFLAGS
25473   if test "${ac_cv_header_declarations_h+set}" = set; then
25474   { echo "$as_me:$LINENO: checking for declarations.h" >&5
25475 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
25476 if test "${ac_cv_header_declarations_h+set}" = set; then
25477   echo $ECHO_N "(cached) $ECHO_C" >&6
25478 fi
25479 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
25480 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
25481 else
25482   # Is the header compilable?
25483 { echo "$as_me:$LINENO: checking declarations.h usability" >&5
25484 echo $ECHO_N "checking declarations.h usability... $ECHO_C" >&6; }
25485 cat >conftest.$ac_ext <<_ACEOF
25486 /* confdefs.h.  */
25487 _ACEOF
25488 cat confdefs.h >>conftest.$ac_ext
25489 cat >>conftest.$ac_ext <<_ACEOF
25490 /* end confdefs.h.  */
25491 $ac_includes_default
25492 #include <declarations.h>
25493 _ACEOF
25494 rm -f conftest.$ac_objext
25495 if { (ac_try="$ac_compile"
25496 case "(($ac_try" in
25497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25498   *) ac_try_echo=$ac_try;;
25499 esac
25500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25501   (eval "$ac_compile") 2>conftest.er1
25502   ac_status=$?
25503   grep -v '^ *+' conftest.er1 >conftest.err
25504   rm -f conftest.er1
25505   cat conftest.err >&5
25506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507   (exit $ac_status); } && {
25508          test -z "$ac_c_werror_flag" ||
25509          test ! -s conftest.err
25510        } && test -s conftest.$ac_objext; then
25511   ac_header_compiler=yes
25512 else
25513   echo "$as_me: failed program was:" >&5
25514 sed 's/^/| /' conftest.$ac_ext >&5
25515
25516         ac_header_compiler=no
25517 fi
25518
25519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25521 echo "${ECHO_T}$ac_header_compiler" >&6; }
25522
25523 # Is the header present?
25524 { echo "$as_me:$LINENO: checking declarations.h presence" >&5
25525 echo $ECHO_N "checking declarations.h presence... $ECHO_C" >&6; }
25526 cat >conftest.$ac_ext <<_ACEOF
25527 /* confdefs.h.  */
25528 _ACEOF
25529 cat confdefs.h >>conftest.$ac_ext
25530 cat >>conftest.$ac_ext <<_ACEOF
25531 /* end confdefs.h.  */
25532 #include <declarations.h>
25533 _ACEOF
25534 if { (ac_try="$ac_cpp conftest.$ac_ext"
25535 case "(($ac_try" in
25536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25537   *) ac_try_echo=$ac_try;;
25538 esac
25539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25540   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25541   ac_status=$?
25542   grep -v '^ *+' conftest.er1 >conftest.err
25543   rm -f conftest.er1
25544   cat conftest.err >&5
25545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25546   (exit $ac_status); } >/dev/null && {
25547          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25548          test ! -s conftest.err
25549        }; then
25550   ac_header_preproc=yes
25551 else
25552   echo "$as_me: failed program was:" >&5
25553 sed 's/^/| /' conftest.$ac_ext >&5
25554
25555   ac_header_preproc=no
25556 fi
25557
25558 rm -f conftest.err conftest.$ac_ext
25559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25560 echo "${ECHO_T}$ac_header_preproc" >&6; }
25561
25562 # So?  What about this header?
25563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25564   yes:no: )
25565     { echo "$as_me:$LINENO: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&5
25566 echo "$as_me: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25567     { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the compiler's result" >&5
25568 echo "$as_me: WARNING: declarations.h: proceeding with the compiler's result" >&2;}
25569     ac_header_preproc=yes
25570     ;;
25571   no:yes:* )
25572     { echo "$as_me:$LINENO: WARNING: declarations.h: present but cannot be compiled" >&5
25573 echo "$as_me: WARNING: declarations.h: present but cannot be compiled" >&2;}
25574     { echo "$as_me:$LINENO: WARNING: declarations.h:     check for missing prerequisite headers?" >&5
25575 echo "$as_me: WARNING: declarations.h:     check for missing prerequisite headers?" >&2;}
25576     { echo "$as_me:$LINENO: WARNING: declarations.h: see the Autoconf documentation" >&5
25577 echo "$as_me: WARNING: declarations.h: see the Autoconf documentation" >&2;}
25578     { echo "$as_me:$LINENO: WARNING: declarations.h:     section \"Present But Cannot Be Compiled\"" >&5
25579 echo "$as_me: WARNING: declarations.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25580     { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the preprocessor's result" >&5
25581 echo "$as_me: WARNING: declarations.h: proceeding with the preprocessor's result" >&2;}
25582     { echo "$as_me:$LINENO: WARNING: declarations.h: in the future, the compiler will take precedence" >&5
25583 echo "$as_me: WARNING: declarations.h: in the future, the compiler will take precedence" >&2;}
25584     ( cat <<\_ASBOX
25585 ## -------------------------------------------------- ##
25586 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
25587 ## -------------------------------------------------- ##
25588 _ASBOX
25589      ) | sed "s/^/$as_me: WARNING:     /" >&2
25590     ;;
25591 esac
25592 { echo "$as_me:$LINENO: checking for declarations.h" >&5
25593 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
25594 if test "${ac_cv_header_declarations_h+set}" = set; then
25595   echo $ECHO_N "(cached) $ECHO_C" >&6
25596 else
25597   ac_cv_header_declarations_h=$ac_header_preproc
25598 fi
25599 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
25600 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
25601
25602 fi
25603 if test $ac_cv_header_declarations_h = yes; then
25604   csdp_header=yes
25605 else
25606   csdp_header=no
25607 fi
25608
25609
25610   CPPFLAGS=$CPPFLAGS_SAV
25611
25612
25613
25614   if test "x$csdp_lib = xyes" -a "x$csdp_header = xyes" ; then
25615      csdp=yes;
25616   else
25617      csdp=no;
25618   fi
25619   if test "x$csdp" = xyes; then
25620     CPPFLAGS+=$CSDP_CPPFLAGS
25621     SIMGRID_DEP="$SIMGRID_DEP $CSDP_LDFLAGS"
25622     { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25623 echo "${ECHO_T}Found working sdp library." >&6; }
25624
25625 cat >>confdefs.h <<\_ACEOF
25626 #define HAVE_SDP 1
25627 _ACEOF
25628
25629   else
25630     { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25631 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25632   fi;
25633 fi
25634  if test x$csdp != xno; then
25635   HAVE_SDP_TRUE=
25636   HAVE_SDP_FALSE='#'
25637 else
25638   HAVE_SDP_TRUE='#'
25639   HAVE_SDP_FALSE=
25640 fi
25641
25642
25643
25644
25645 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25646 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25647 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25648   echo $ECHO_N "(cached) $ECHO_C" >&6
25649 else
25650   ac_check_lib_save_LIBS=$LIBS
25651 LIBS="-lnsl  $LIBS"
25652 cat >conftest.$ac_ext <<_ACEOF
25653 /* confdefs.h.  */
25654 _ACEOF
25655 cat confdefs.h >>conftest.$ac_ext
25656 cat >>conftest.$ac_ext <<_ACEOF
25657 /* end confdefs.h.  */
25658
25659 /* Override any GCC internal prototype to avoid an error.
25660    Use char because int might match the return type of a GCC
25661    builtin and then its argument prototype would still apply.  */
25662 #ifdef __cplusplus
25663 extern "C"
25664 #endif
25665 char gethostbyname ();
25666 int
25667 main ()
25668 {
25669 return gethostbyname ();
25670   ;
25671   return 0;
25672 }
25673 _ACEOF
25674 rm -f conftest.$ac_objext conftest$ac_exeext
25675 if { (ac_try="$ac_link"
25676 case "(($ac_try" in
25677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25678   *) ac_try_echo=$ac_try;;
25679 esac
25680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25681   (eval "$ac_link") 2>conftest.er1
25682   ac_status=$?
25683   grep -v '^ *+' conftest.er1 >conftest.err
25684   rm -f conftest.er1
25685   cat conftest.err >&5
25686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25687   (exit $ac_status); } && {
25688          test -z "$ac_c_werror_flag" ||
25689          test ! -s conftest.err
25690        } && test -s conftest$ac_exeext &&
25691        $as_test_x conftest$ac_exeext; then
25692   ac_cv_lib_nsl_gethostbyname=yes
25693 else
25694   echo "$as_me: failed program was:" >&5
25695 sed 's/^/| /' conftest.$ac_ext >&5
25696
25697         ac_cv_lib_nsl_gethostbyname=no
25698 fi
25699
25700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25701       conftest$ac_exeext conftest.$ac_ext
25702 LIBS=$ac_check_lib_save_LIBS
25703 fi
25704 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25705 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25706 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25707   GRAS_DEP="$GRAS_DEP -lnsl"
25708 fi
25709
25710 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25711 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25712 if test "${ac_cv_lib_socket_connect+set}" = set; then
25713   echo $ECHO_N "(cached) $ECHO_C" >&6
25714 else
25715   ac_check_lib_save_LIBS=$LIBS
25716 LIBS="-lsocket  $LIBS"
25717 cat >conftest.$ac_ext <<_ACEOF
25718 /* confdefs.h.  */
25719 _ACEOF
25720 cat confdefs.h >>conftest.$ac_ext
25721 cat >>conftest.$ac_ext <<_ACEOF
25722 /* end confdefs.h.  */
25723
25724 /* Override any GCC internal prototype to avoid an error.
25725    Use char because int might match the return type of a GCC
25726    builtin and then its argument prototype would still apply.  */
25727 #ifdef __cplusplus
25728 extern "C"
25729 #endif
25730 char connect ();
25731 int
25732 main ()
25733 {
25734 return connect ();
25735   ;
25736   return 0;
25737 }
25738 _ACEOF
25739 rm -f conftest.$ac_objext conftest$ac_exeext
25740 if { (ac_try="$ac_link"
25741 case "(($ac_try" in
25742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25743   *) ac_try_echo=$ac_try;;
25744 esac
25745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25746   (eval "$ac_link") 2>conftest.er1
25747   ac_status=$?
25748   grep -v '^ *+' conftest.er1 >conftest.err
25749   rm -f conftest.er1
25750   cat conftest.err >&5
25751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25752   (exit $ac_status); } && {
25753          test -z "$ac_c_werror_flag" ||
25754          test ! -s conftest.err
25755        } && test -s conftest$ac_exeext &&
25756        $as_test_x conftest$ac_exeext; then
25757   ac_cv_lib_socket_connect=yes
25758 else
25759   echo "$as_me: failed program was:" >&5
25760 sed 's/^/| /' conftest.$ac_ext >&5
25761
25762         ac_cv_lib_socket_connect=no
25763 fi
25764
25765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25766       conftest$ac_exeext conftest.$ac_ext
25767 LIBS=$ac_check_lib_save_LIBS
25768 fi
25769 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25770 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25771 if test $ac_cv_lib_socket_connect = yes; then
25772   GRAS_DEP="$GRAS_DEP -lsocket"
25773 fi
25774
25775
25776 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25777 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25778 case $host_os in
25779   *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
25780             AM_CFLAGS=-DDLL_EXPORT
25781
25782             cat >>confdefs.h <<\_ACEOF
25783 #define CONTEXT_THREADS 1
25784 _ACEOF
25785 ;;
25786 esac
25787
25788 if test "x$GRAS_DEP" = x; then
25789    { echo "$as_me:$LINENO: result: none" >&5
25790 echo "${ECHO_T}none" >&6; }
25791 else
25792    { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25793 echo "${ECHO_T}$GRAS_DEP" >&6; }
25794 fi
25795
25796
25797 ##############################################
25798 ## Enhance maintainer mode and SUBST variables
25799 ## (must be placed after any compilation tests since our overprotective flags
25800 ##  let some tests fail)
25801
25802 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25803 # Next line is modified by sed when building gramine source tree
25804 gramine_mode=no
25805 if test x$gramine_mode = xyes
25806 then
25807   USE_MAINTAINER_MODE=no
25808 fi
25809  if test x$gramine_mode != xno; then
25810   GRAMINE_MODE_TRUE=
25811   GRAMINE_MODE_FALSE='#'
25812 else
25813   GRAMINE_MODE_TRUE='#'
25814   GRAMINE_MODE_FALSE=
25815 fi
25816
25817
25818
25819 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25820 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
25821     # Check whether --enable-maintainer-mode was given.
25822 if test "${enable_maintainer_mode+set}" = set; then
25823   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25824 else
25825   USE_MAINTAINER_MODE=no
25826 fi
25827
25828   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25829 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
25830    if test $USE_MAINTAINER_MODE = yes; then
25831   MAINTAINER_MODE_TRUE=
25832   MAINTAINER_MODE_FALSE='#'
25833 else
25834   MAINTAINER_MODE_TRUE='#'
25835   MAINTAINER_MODE_FALSE=
25836 fi
25837
25838   MAINT=$MAINTAINER_MODE_TRUE
25839
25840
25841 if test x$USE_MAINTAINER_MODE = xyes
25842 then
25843    # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25844    enable_compile_warnings=yes
25845 fi
25846
25847   # Check whether --enable-compile-warnings was given.
25848 if test "${enable_compile_warnings+set}" = set; then
25849   enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
25850 else
25851   enable_compile_warnings=no
25852 fi
25853
25854
25855   # Check whether --enable-compile-optimizations was given.
25856 if test "${enable_compile_optimizations+set}" = set; then
25857   enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
25858 else
25859   enable_compile_optimizations=auto
25860 fi
25861
25862
25863   if test "x$cflags_set" != "xyes" ; then
25864     # if user didn't specify CFLAGS explicitely
25865
25866     # AC PROG CC tests whether -g is accepted.
25867     # Cool, but it also tries to set -O2. I don't want it with gcc
25868     saveCFLAGS="$CFLAGS"
25869     CFLAGS=
25870     case " $saveCFLAGS " in
25871     *-g*) CFLAGS="-g" ;;
25872     esac
25873     case " $saveCFLAGS " in
25874     *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
25875     esac
25876
25877     # damn AC PROG CC, why did you set -O??
25878     CFLAGS="-g"
25879   fi
25880
25881   if test "x$enable_compile_warnings" = "xyes" ; then
25882     { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25883 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
25884     warnCFLAGS=
25885     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25886       case " $CFLAGS " in
25887       *-Wall*) ;;
25888       *) warnCFLAGS="-Wall -Wunused" ;;
25889       esac
25890
25891       ## -W is not all that useful.  And it cannot be controlled
25892       ## with individual -Wno-xxx flags, unlike -Wall
25893
25894       ## -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25895       ## -Wshadow chokes on try{ try{} } constructs
25896       if test "x$enable_compile_warnings" = "xyes"; then
25897         warnCFLAGS=`echo $warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations \
25898         -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25899         -Wno-unused-function  \
25900         -Werror \
25901         | sed 's/ +/ /g'`
25902         # -Wno-unused-variable  -Wno-unused-label
25903       fi
25904     fi
25905     { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25906 echo "${ECHO_T}$warnCFLAGS" >&6; }
25907     # placed before since gcc remembers the last one on conflict
25908     CFLAGS="$warnCFLAGS $CFLAGS"
25909   fi
25910
25911   if test "x$enable_compile_optimizations" = "xyes" ||
25912      test "x$enable_compile_optimizations" = "xauto" ; then
25913     { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25914 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
25915     optCFLAGS=
25916     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25917         case " $CFLAGS " in
25918         *-O*) ;;
25919         *) optCFLAGS="$optCFLAGS -O3" ;;
25920         esac
25921         optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25922
25923         GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25924         GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25925         if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" == "x3" ; then
25926           # avoid gcc bug #12828, which apeared in 3.x branch and is fixed in 3.4.0
25927           # but the check would be too complicated to get 3.4.
25928           # Instead, rule out any 3.x compiler.
25929
25930           # Note that the flag didn't exist before gcc 3.0
25931           optCFLAGS="$optCFLAGS -fno-loop-optimize"
25932         fi
25933             fi
25934     { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25935 echo "${ECHO_T}$optCFLAGS" >&6; }
25936     # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25937     if test "x$cflags_set" != "xyes" ; then
25938       CFLAGS="$optCFLAGS $CFLAGS"
25939     fi
25940   fi
25941
25942   if test x$lt_cv_prog_gnu_ld = xyes ; then
25943     LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25944   else
25945     LD_DYNAMIC_FLAGS=
25946   fi
25947
25948
25949
25950
25951
25952
25953
25954
25955
25956
25957
25958
25959
25960
25961
25962   { echo "$as_me:$LINENO: result: " >&5
25963 echo "${ECHO_T}" >&6; }
25964   { echo "$as_me:$LINENO: result: ${T_MD}Check for Java bindings...${T_ME}" >&5
25965 echo "${ECHO_T}${T_MD}Check for Java bindings...${T_ME}" >&6; }
25966
25967 # Java cruft
25968 # Check whether --enable-java was given.
25969 if test "${enable_java+set}" = set; then
25970   enableval=$enable_java; want_java=$enableval
25971 else
25972   want_java=yes
25973 fi
25974
25975 if test "x$want_java" != "xyes" ; then
25976    { echo "$as_me:$LINENO: checking whether to compile java bindings" >&5
25977 echo $ECHO_N "checking whether to compile java bindings... $ECHO_C" >&6; }
25978    { echo "$as_me:$LINENO: result: disabled by user" >&5
25979 echo "${ECHO_T}disabled by user" >&6; }
25980    use_java="disabled by user"
25981 else
25982   # Extract the first word of "javac", so it can be a program name with args.
25983 set dummy javac; ac_word=$2
25984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25986 if test "${ac_cv_path_JAVAC+set}" = set; then
25987   echo $ECHO_N "(cached) $ECHO_C" >&6
25988 else
25989   case $JAVAC in
25990   [\\/]* | ?:[\\/]*)
25991   ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
25992   ;;
25993   *)
25994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25995 for as_dir in $PATH
25996 do
25997   IFS=$as_save_IFS
25998   test -z "$as_dir" && as_dir=.
25999   for ac_exec_ext in '' $ac_executable_extensions; do
26000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26001     ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
26002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26003     break 2
26004   fi
26005 done
26006 done
26007 IFS=$as_save_IFS
26008
26009   test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="`which javac`"
26010   ;;
26011 esac
26012 fi
26013 JAVAC=$ac_cv_path_JAVAC
26014 if test -n "$JAVAC"; then
26015   { echo "$as_me:$LINENO: result: $JAVAC" >&5
26016 echo "${ECHO_T}$JAVAC" >&6; }
26017 else
26018   { echo "$as_me:$LINENO: result: no" >&5
26019 echo "${ECHO_T}no" >&6; }
26020 fi
26021
26022
26023   # Extract the first word of "java ", so it can be a program name with args.
26024 set dummy java ; ac_word=$2
26025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26027 if test "${ac_cv_path_JAVA+set}" = set; then
26028   echo $ECHO_N "(cached) $ECHO_C" >&6
26029 else
26030   case $JAVA in
26031   [\\/]* | ?:[\\/]*)
26032   ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
26033   ;;
26034   *)
26035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26036 for as_dir in $PATH
26037 do
26038   IFS=$as_save_IFS
26039   test -z "$as_dir" && as_dir=.
26040   for ac_exec_ext in '' $ac_executable_extensions; do
26041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26042     ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
26043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26044     break 2
26045   fi
26046 done
26047 done
26048 IFS=$as_save_IFS
26049
26050   test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="`which java`"
26051   ;;
26052 esac
26053 fi
26054 JAVA=$ac_cv_path_JAVA
26055 if test -n "$JAVA"; then
26056   { echo "$as_me:$LINENO: result: $JAVA" >&5
26057 echo "${ECHO_T}$JAVA" >&6; }
26058 else
26059   { echo "$as_me:$LINENO: result: no" >&5
26060 echo "${ECHO_T}no" >&6; }
26061 fi
26062
26063
26064   # Extract the first word of "jar  ", so it can be a program name with args.
26065 set dummy jar  ; ac_word=$2
26066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26068 if test "${ac_cv_path_JAR+set}" = set; then
26069   echo $ECHO_N "(cached) $ECHO_C" >&6
26070 else
26071   case $JAR in
26072   [\\/]* | ?:[\\/]*)
26073   ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
26074   ;;
26075   *)
26076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26077 for as_dir in $PATH
26078 do
26079   IFS=$as_save_IFS
26080   test -z "$as_dir" && as_dir=.
26081   for ac_exec_ext in '' $ac_executable_extensions; do
26082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26083     ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
26084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26085     break 2
26086   fi
26087 done
26088 done
26089 IFS=$as_save_IFS
26090
26091   test -z "$ac_cv_path_JAR" && ac_cv_path_JAR="`which jar`"
26092   ;;
26093 esac
26094 fi
26095 JAR=$ac_cv_path_JAR
26096 if test -n "$JAR"; then
26097   { echo "$as_me:$LINENO: result: $JAR" >&5
26098 echo "${ECHO_T}$JAR" >&6; }
26099 else
26100   { echo "$as_me:$LINENO: result: no" >&5
26101 echo "${ECHO_T}no" >&6; }
26102 fi
26103
26104
26105
26106 for ac_header in jni.h
26107 do
26108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26110   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26113   echo $ECHO_N "(cached) $ECHO_C" >&6
26114 fi
26115 ac_res=`eval echo '${'$as_ac_Header'}'`
26116                { echo "$as_me:$LINENO: result: $ac_res" >&5
26117 echo "${ECHO_T}$ac_res" >&6; }
26118 else
26119   # Is the header compilable?
26120 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26122 cat >conftest.$ac_ext <<_ACEOF
26123 /* confdefs.h.  */
26124 _ACEOF
26125 cat confdefs.h >>conftest.$ac_ext
26126 cat >>conftest.$ac_ext <<_ACEOF
26127 /* end confdefs.h.  */
26128 $ac_includes_default
26129 #include <$ac_header>
26130 _ACEOF
26131 rm -f conftest.$ac_objext
26132 if { (ac_try="$ac_compile"
26133 case "(($ac_try" in
26134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26135   *) ac_try_echo=$ac_try;;
26136 esac
26137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26138   (eval "$ac_compile") 2>conftest.er1
26139   ac_status=$?
26140   grep -v '^ *+' conftest.er1 >conftest.err
26141   rm -f conftest.er1
26142   cat conftest.err >&5
26143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144   (exit $ac_status); } && {
26145          test -z "$ac_c_werror_flag" ||
26146          test ! -s conftest.err
26147        } && test -s conftest.$ac_objext; then
26148   ac_header_compiler=yes
26149 else
26150   echo "$as_me: failed program was:" >&5
26151 sed 's/^/| /' conftest.$ac_ext >&5
26152
26153         ac_header_compiler=no
26154 fi
26155
26156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26157 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26158 echo "${ECHO_T}$ac_header_compiler" >&6; }
26159
26160 # Is the header present?
26161 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26163 cat >conftest.$ac_ext <<_ACEOF
26164 /* confdefs.h.  */
26165 _ACEOF
26166 cat confdefs.h >>conftest.$ac_ext
26167 cat >>conftest.$ac_ext <<_ACEOF
26168 /* end confdefs.h.  */
26169 #include <$ac_header>
26170 _ACEOF
26171 if { (ac_try="$ac_cpp conftest.$ac_ext"
26172 case "(($ac_try" in
26173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26174   *) ac_try_echo=$ac_try;;
26175 esac
26176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26177   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26178   ac_status=$?
26179   grep -v '^ *+' conftest.er1 >conftest.err
26180   rm -f conftest.er1
26181   cat conftest.err >&5
26182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183   (exit $ac_status); } >/dev/null && {
26184          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26185          test ! -s conftest.err
26186        }; then
26187   ac_header_preproc=yes
26188 else
26189   echo "$as_me: failed program was:" >&5
26190 sed 's/^/| /' conftest.$ac_ext >&5
26191
26192   ac_header_preproc=no
26193 fi
26194
26195 rm -f conftest.err conftest.$ac_ext
26196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26197 echo "${ECHO_T}$ac_header_preproc" >&6; }
26198
26199 # So?  What about this header?
26200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26201   yes:no: )
26202     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26206     ac_header_preproc=yes
26207     ;;
26208   no:yes:* )
26209     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26211     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26212 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26213     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26215     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26216 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26217     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26219     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26221     ( cat <<\_ASBOX
26222 ## -------------------------------------------------- ##
26223 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
26224 ## -------------------------------------------------- ##
26225 _ASBOX
26226      ) | sed "s/^/$as_me: WARNING:     /" >&2
26227     ;;
26228 esac
26229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26232   echo $ECHO_N "(cached) $ECHO_C" >&6
26233 else
26234   eval "$as_ac_Header=\$ac_header_preproc"
26235 fi
26236 ac_res=`eval echo '${'$as_ac_Header'}'`
26237                { echo "$as_me:$LINENO: result: $ac_res" >&5
26238 echo "${ECHO_T}$ac_res" >&6; }
26239
26240 fi
26241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26242   cat >>confdefs.h <<_ACEOF
26243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26244 _ACEOF
26245
26246 fi
26247
26248 done
26249
26250   { echo "$as_me:$LINENO: checking whether to compile java bindings" >&5
26251 echo $ECHO_N "checking whether to compile java bindings... $ECHO_C" >&6; }
26252   if test -n "$JAVAC"   \
26253      && test -n "$JAVA" \
26254      && test -n "$JAR"  \
26255      && test "x$ac_cv_header_jni_h" = "xyes" ; then
26256
26257      use_java="yes"
26258   else
26259      use_java="no"
26260   fi
26261   { echo "$as_me:$LINENO: result: $use_java" >&5
26262 echo "${ECHO_T}$use_java" >&6; }
26263 fi
26264  if test "x$use_java" = "xyes"; then
26265   HAVE_JAVA_TRUE=
26266   HAVE_JAVA_FALSE='#'
26267 else
26268   HAVE_JAVA_TRUE='#'
26269   HAVE_JAVA_FALSE=
26270 fi
26271
26272
26273 #####################
26274 ## Check for programs
26275 ##
26276
26277
26278   { echo "$as_me:$LINENO: result: " >&5
26279 echo "${ECHO_T}" >&6; }
26280   { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
26281 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
26282
26283 # Extract the first word of "bash", so it can be a program name with args.
26284 set dummy bash; ac_word=$2
26285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26287 if test "${ac_cv_prog_BASH+set}" = set; then
26288   echo $ECHO_N "(cached) $ECHO_C" >&6
26289 else
26290   if test -n "$BASH"; then
26291   ac_cv_prog_BASH="$BASH" # Let the user override the test.
26292 else
26293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26294 for as_dir in $PATH
26295 do
26296   IFS=$as_save_IFS
26297   test -z "$as_dir" && as_dir=.
26298   for ac_exec_ext in '' $ac_executable_extensions; do
26299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26300     ac_cv_prog_BASH="`which bash`"
26301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26302     break 2
26303   fi
26304 done
26305 done
26306 IFS=$as_save_IFS
26307
26308   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
26309 fi
26310 fi
26311 BASH=$ac_cv_prog_BASH
26312 if test -n "$BASH"; then
26313   { echo "$as_me:$LINENO: result: $BASH" >&5
26314 echo "${ECHO_T}$BASH" >&6; }
26315 else
26316   { echo "$as_me:$LINENO: result: no" >&5
26317 echo "${ECHO_T}no" >&6; }
26318 fi
26319
26320
26321 WARNING="This file is generated, do not edit"
26322
26323
26324
26325 # Can we rebuild the parsers?
26326 # We really want flex and refuse other lex. So, the parser is portable and
26327 # does not induce extra lib dependency
26328 for ac_prog in flex lex
26329 do
26330   # Extract the first word of "$ac_prog", so it can be a program name with args.
26331 set dummy $ac_prog; ac_word=$2
26332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26334 if test "${ac_cv_prog_LEX+set}" = set; then
26335   echo $ECHO_N "(cached) $ECHO_C" >&6
26336 else
26337   if test -n "$LEX"; then
26338   ac_cv_prog_LEX="$LEX" # Let the user override the test.
26339 else
26340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26341 for as_dir in $PATH
26342 do
26343   IFS=$as_save_IFS
26344   test -z "$as_dir" && as_dir=.
26345   for ac_exec_ext in '' $ac_executable_extensions; do
26346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26347     ac_cv_prog_LEX="$ac_prog"
26348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26349     break 2
26350   fi
26351 done
26352 done
26353 IFS=$as_save_IFS
26354
26355 fi
26356 fi
26357 LEX=$ac_cv_prog_LEX
26358 if test -n "$LEX"; then
26359   { echo "$as_me:$LINENO: result: $LEX" >&5
26360 echo "${ECHO_T}$LEX" >&6; }
26361 else
26362   { echo "$as_me:$LINENO: result: no" >&5
26363 echo "${ECHO_T}no" >&6; }
26364 fi
26365
26366
26367   test -n "$LEX" && break
26368 done
26369 test -n "$LEX" || LEX=":"
26370
26371 if test "x$LEX" != "x:"; then
26372   cat >conftest.l <<_ACEOF
26373 %%
26374 a { ECHO; }
26375 b { REJECT; }
26376 c { yymore (); }
26377 d { yyless (1); }
26378 e { yyless (input () != 0); }
26379 f { unput (yytext[0]); }
26380 . { BEGIN INITIAL; }
26381 %%
26382 #ifdef YYTEXT_POINTER
26383 extern char *yytext;
26384 #endif
26385 int
26386 main (void)
26387 {
26388   return ! yylex () + ! yywrap ();
26389 }
26390 _ACEOF
26391 { (ac_try="$LEX conftest.l"
26392 case "(($ac_try" in
26393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26394   *) ac_try_echo=$ac_try;;
26395 esac
26396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26397   (eval "$LEX conftest.l") 2>&5
26398   ac_status=$?
26399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400   (exit $ac_status); }
26401 { echo "$as_me:$LINENO: checking lex output file root" >&5
26402 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
26403 if test "${ac_cv_prog_lex_root+set}" = set; then
26404   echo $ECHO_N "(cached) $ECHO_C" >&6
26405 else
26406
26407 if test -f lex.yy.c; then
26408   ac_cv_prog_lex_root=lex.yy
26409 elif test -f lexyy.c; then
26410   ac_cv_prog_lex_root=lexyy
26411 else
26412   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
26413 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
26414    { (exit 1); exit 1; }; }
26415 fi
26416 fi
26417 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
26418 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
26419 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
26420
26421 if test -z "${LEXLIB+set}"; then
26422   { echo "$as_me:$LINENO: checking lex library" >&5
26423 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
26424 if test "${ac_cv_lib_lex+set}" = set; then
26425   echo $ECHO_N "(cached) $ECHO_C" >&6
26426 else
26427
26428     ac_save_LIBS=$LIBS
26429     ac_cv_lib_lex='none needed'
26430     for ac_lib in '' -lfl -ll; do
26431       LIBS="$ac_lib $ac_save_LIBS"
26432       cat >conftest.$ac_ext <<_ACEOF
26433 `cat $LEX_OUTPUT_ROOT.c`
26434 _ACEOF
26435 rm -f conftest.$ac_objext conftest$ac_exeext
26436 if { (ac_try="$ac_link"
26437 case "(($ac_try" in
26438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26439   *) ac_try_echo=$ac_try;;
26440 esac
26441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26442   (eval "$ac_link") 2>conftest.er1
26443   ac_status=$?
26444   grep -v '^ *+' conftest.er1 >conftest.err
26445   rm -f conftest.er1
26446   cat conftest.err >&5
26447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26448   (exit $ac_status); } && {
26449          test -z "$ac_c_werror_flag" ||
26450          test ! -s conftest.err
26451        } && test -s conftest$ac_exeext &&
26452        $as_test_x conftest$ac_exeext; then
26453   ac_cv_lib_lex=$ac_lib
26454 else
26455   echo "$as_me: failed program was:" >&5
26456 sed 's/^/| /' conftest.$ac_ext >&5
26457
26458
26459 fi
26460
26461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26462       conftest$ac_exeext conftest.$ac_ext
26463       test "$ac_cv_lib_lex" != 'none needed' && break
26464     done
26465     LIBS=$ac_save_LIBS
26466
26467 fi
26468 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
26469 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
26470   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
26471 fi
26472
26473
26474 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
26475 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
26476 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
26477   echo $ECHO_N "(cached) $ECHO_C" >&6
26478 else
26479   # POSIX says lex can declare yytext either as a pointer or an array; the
26480 # default is implementation-dependent.  Figure out which it is, since
26481 # not all implementations provide the %pointer and %array declarations.
26482 ac_cv_prog_lex_yytext_pointer=no
26483 ac_save_LIBS=$LIBS
26484 LIBS="$LEXLIB $ac_save_LIBS"
26485 cat >conftest.$ac_ext <<_ACEOF
26486 #define YYTEXT_POINTER 1
26487 `cat $LEX_OUTPUT_ROOT.c`
26488 _ACEOF
26489 rm -f conftest.$ac_objext conftest$ac_exeext
26490 if { (ac_try="$ac_link"
26491 case "(($ac_try" in
26492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26493   *) ac_try_echo=$ac_try;;
26494 esac
26495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26496   (eval "$ac_link") 2>conftest.er1
26497   ac_status=$?
26498   grep -v '^ *+' conftest.er1 >conftest.err
26499   rm -f conftest.er1
26500   cat conftest.err >&5
26501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26502   (exit $ac_status); } && {
26503          test -z "$ac_c_werror_flag" ||
26504          test ! -s conftest.err
26505        } && test -s conftest$ac_exeext &&
26506        $as_test_x conftest$ac_exeext; then
26507   ac_cv_prog_lex_yytext_pointer=yes
26508 else
26509   echo "$as_me: failed program was:" >&5
26510 sed 's/^/| /' conftest.$ac_ext >&5
26511
26512
26513 fi
26514
26515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26516       conftest$ac_exeext conftest.$ac_ext
26517 LIBS=$ac_save_LIBS
26518
26519 fi
26520 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
26521 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
26522 if test $ac_cv_prog_lex_yytext_pointer = yes; then
26523
26524 cat >>confdefs.h <<\_ACEOF
26525 #define YYTEXT_POINTER 1
26526 _ACEOF
26527
26528 fi
26529 rm -f conftest.l $LEX_OUTPUT_ROOT.c
26530
26531 fi
26532
26533   if test "$LEX" != flex; then
26534     { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
26535 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
26536     LEX=${am_missing_run}flex
26537     LEXLIB=''
26538
26539   else
26540     if test "x2.5.30" != "x" ; then
26541                               FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
26542
26543       FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
26544       FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
26545       FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
26546
26547       WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
26548       WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
26549       WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
26550
26551       if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
26552          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED"  ||
26553          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
26554       then
26555         { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
26556 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
26557         LEX=${am_missing_run}flex
26558         LEXLIB=''
26559
26560       else
26561         { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
26562 echo "$as_me: Flex found. Parsers will get updated" >&6;}
26563       fi
26564     fi
26565   fi
26566
26567
26568 # Can we rebuild the xml-lexers from the XML specification?
26569 # if not, simply touch the flex source files (which are distributed in
26570 #  tarballs even if generated by flexml) and hope for the best.
26571 # Extract the first word of "flexml", so it can be a program name with args.
26572 set dummy flexml; ac_word=$2
26573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26575 if test "${ac_cv_prog_FLEXML+set}" = set; then
26576   echo $ECHO_N "(cached) $ECHO_C" >&6
26577 else
26578   if test -n "$FLEXML"; then
26579   ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
26580 else
26581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26582 for as_dir in $PATH
26583 do
26584   IFS=$as_save_IFS
26585   test -z "$as_dir" && as_dir=.
26586   for ac_exec_ext in '' $ac_executable_extensions; do
26587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26588     ac_cv_prog_FLEXML="`which flexml`"
26589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26590     break 2
26591   fi
26592 done
26593 done
26594 IFS=$as_save_IFS
26595
26596   test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
26597 fi
26598 fi
26599 FLEXML=$ac_cv_prog_FLEXML
26600 if test -n "$FLEXML"; then
26601   { echo "$as_me:$LINENO: result: $FLEXML" >&5
26602 echo "${ECHO_T}$FLEXML" >&6; }
26603 else
26604   { echo "$as_me:$LINENO: result: no" >&5
26605 echo "${ECHO_T}no" >&6; }
26606 fi
26607
26608
26609  if test x$FLEXML != xNOTFOUND; then
26610   HAVE_FLEXML_TRUE=
26611   HAVE_FLEXML_FALSE='#'
26612 else
26613   HAVE_FLEXML_TRUE='#'
26614   HAVE_FLEXML_FALSE=
26615 fi
26616
26617
26618 if test x$USE_MAINTAINER_MODE = xyes
26619 then
26620    # Check for doxygen when in maintainer mode since dist* targets fail
26621    # without it
26622    # Extract the first word of "doxygen", so it can be a program name with args.
26623 set dummy doxygen; ac_word=$2
26624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26626 if test "${ac_cv_path_DOXYGEN+set}" = set; then
26627   echo $ECHO_N "(cached) $ECHO_C" >&6
26628 else
26629   case $DOXYGEN in
26630   [\\/]* | ?:[\\/]*)
26631   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26632   ;;
26633   *)
26634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26635 for as_dir in $PATH
26636 do
26637   IFS=$as_save_IFS
26638   test -z "$as_dir" && as_dir=.
26639   for ac_exec_ext in '' $ac_executable_extensions; do
26640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26641     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26643     break 2
26644   fi
26645 done
26646 done
26647 IFS=$as_save_IFS
26648
26649   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
26650   ;;
26651 esac
26652 fi
26653 DOXYGEN=$ac_cv_path_DOXYGEN
26654 if test -n "$DOXYGEN"; then
26655   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
26656 echo "${ECHO_T}$DOXYGEN" >&6; }
26657 else
26658   { echo "$as_me:$LINENO: result: no" >&5
26659 echo "${ECHO_T}no" >&6; }
26660 fi
26661
26662
26663    if test x$DOXYGEN = x ; then
26664      { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
26665 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
26666    { (exit 1); exit 1; }; }
26667    fi
26668 fi
26669
26670 # Can we extract really usable backtraces? (also need the popen function)
26671 # Extract the first word of "addr2line", so it can be a program name with args.
26672 set dummy addr2line; ac_word=$2
26673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26675 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
26676   echo $ECHO_N "(cached) $ECHO_C" >&6
26677 else
26678   case $ADDR2LINE in
26679   [\\/]* | ?:[\\/]*)
26680   ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
26681   ;;
26682   *)
26683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26684 for as_dir in $PATH
26685 do
26686   IFS=$as_save_IFS
26687   test -z "$as_dir" && as_dir=.
26688   for ac_exec_ext in '' $ac_executable_extensions; do
26689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26690     ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
26691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26692     break 2
26693   fi
26694 done
26695 done
26696 IFS=$as_save_IFS
26697
26698   ;;
26699 esac
26700 fi
26701 ADDR2LINE=$ac_cv_path_ADDR2LINE
26702 if test -n "$ADDR2LINE"; then
26703   { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
26704 echo "${ECHO_T}$ADDR2LINE" >&6; }
26705 else
26706   { echo "$as_me:$LINENO: result: no" >&5
26707 echo "${ECHO_T}no" >&6; }
26708 fi
26709
26710
26711 if test x$ADDR2LINE != x ; then
26712
26713 cat >>confdefs.h <<_ACEOF
26714 #define ADDR2LINE "$ADDR2LINE"
26715 _ACEOF
26716
26717 fi
26718
26719
26720 # Can we make status line about the compilation result?
26721 # Extract the first word of "md5sum", so it can be a program name with args.
26722 set dummy md5sum; ac_word=$2
26723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26725 if test "${ac_cv_prog_MD5SUM+set}" = set; then
26726   echo $ECHO_N "(cached) $ECHO_C" >&6
26727 else
26728   if test -n "$MD5SUM"; then
26729   ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
26730 else
26731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26732 for as_dir in $PATH
26733 do
26734   IFS=$as_save_IFS
26735   test -z "$as_dir" && as_dir=.
26736   for ac_exec_ext in '' $ac_executable_extensions; do
26737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26738     ac_cv_prog_MD5SUM="`which md5sum`"
26739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26740     break 2
26741   fi
26742 done
26743 done
26744 IFS=$as_save_IFS
26745
26746 fi
26747 fi
26748 MD5SUM=$ac_cv_prog_MD5SUM
26749 if test -n "$MD5SUM"; then
26750   { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26751 echo "${ECHO_T}$MD5SUM" >&6; }
26752 else
26753   { echo "$as_me:$LINENO: result: no" >&5
26754 echo "${ECHO_T}no" >&6; }
26755 fi
26756
26757
26758 if test x$MD5SUM != xno ; then
26759   build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26760                  xargs cat| $MD5SUM | sed 's/ .*$//'`
26761 else
26762   build_version="no_md5sum_binary"
26763 fi
26764 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26765
26766
26767 ###################
26768 ## Makes the output
26769 ##
26770
26771
26772 #
26773 #      examples/gras/chord/Makefile  examples/gras/chord/test_sg examples/gras/chord/test_rl
26774 #  src/amok/Makefile
26775
26776
26777   { echo "$as_me:$LINENO: result: " >&5
26778 echo "${ECHO_T}" >&6; }
26779   { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
26780 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
26781
26782
26783 # Core of the libraries
26784
26785 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
26786
26787
26788 # Tools being embeeded in gramine (stub generator)
26789 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
26790
26791
26792
26793 # GRAMINE_CUT_BEGIN
26794
26795 # Tools NOT being embeeded in gramine
26796 ac_config_files="$ac_config_files tools/graspe-slave"
26797
26798
26799 # Testsuite
26800
26801 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
26802
26803
26804 # Documentation
26805 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
26806
26807
26808 # Examples
26809
26810 #      examples/gras/p2p/Makefile
26811 #      examples/gras/p2p/chord/Makefile
26812 #      examples/gras/p2p/can/Makefile
26813
26814 if test "x$use_java" = "xyes" ; then
26815 ac_config_files="$ac_config_files examples/java/Makefile examples/java/basic/Makefile examples/java/comm_time/Makefile examples/java/suspend/Makefile examples/java/ping_pong/Makefile"
26816
26817 fi
26818
26819 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/simdag/Makefile examples/simdag/test_simdag examples/gras/Makefile examples/gras/ping/Makefile examples/gras/rpc/Makefile examples/gras/spawn/Makefile examples/gras/synchro/Makefile examples/gras/timer/Makefile examples/gras/chrono/Makefile examples/gras/mutual_exclusion/simple_token/Makefile examples/gras/mmrpc/Makefile examples/gras/pmm/Makefile examples/gras/all2all/Makefile examples/amok/Makefile examples/amok/bandwidth/Makefile examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl examples/amok/saturate/Makefile examples/amok/saturate/test_sg examples/amok/saturate/test_rl"
26820
26821
26822
26823 # GRAMINE_CUT_END
26824
26825 cat >confcache <<\_ACEOF
26826 # This file is a shell script that caches the results of configure
26827 # tests run on this system so they can be shared between configure
26828 # scripts and configure runs, see configure's option --config-cache.
26829 # It is not useful on other systems.  If it contains results you don't
26830 # want to keep, you may remove or edit it.
26831 #
26832 # config.status only pays attention to the cache file if you give it
26833 # the --recheck option to rerun configure.
26834 #
26835 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26836 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26837 # following values.
26838
26839 _ACEOF
26840
26841 # The following way of writing the cache mishandles newlines in values,
26842 # but we know of no workaround that is simple, portable, and efficient.
26843 # So, we kill variables containing newlines.
26844 # Ultrix sh set writes to stderr and can't be redirected directly,
26845 # and sets the high bit in the cache file unless we assign to the vars.
26846 (
26847   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26848     eval ac_val=\$$ac_var
26849     case $ac_val in #(
26850     *${as_nl}*)
26851       case $ac_var in #(
26852       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26853 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26854       esac
26855       case $ac_var in #(
26856       _ | IFS | as_nl) ;; #(
26857       *) $as_unset $ac_var ;;
26858       esac ;;
26859     esac
26860   done
26861
26862   (set) 2>&1 |
26863     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26864     *${as_nl}ac_space=\ *)
26865       # `set' does not quote correctly, so add quotes (double-quote
26866       # substitution turns \\\\ into \\, and sed turns \\ into \).
26867       sed -n \
26868         "s/'/'\\\\''/g;
26869           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26870       ;; #(
26871     *)
26872       # `set' quotes correctly as required by POSIX, so do not add quotes.
26873       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26874       ;;
26875     esac |
26876     sort
26877 ) |
26878   sed '
26879      /^ac_cv_env_/b end
26880      t clear
26881      :clear
26882      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26883      t end
26884      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26885      :end' >>confcache
26886 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26887   if test -w "$cache_file"; then
26888     test "x$cache_file" != "x/dev/null" &&
26889       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26890 echo "$as_me: updating cache $cache_file" >&6;}
26891     cat confcache >$cache_file
26892   else
26893     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26894 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26895   fi
26896 fi
26897 rm -f confcache
26898
26899 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26900 # Let make expand exec_prefix.
26901 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26902
26903 DEFS=-DHAVE_CONFIG_H
26904
26905 ac_libobjs=
26906 ac_ltlibobjs=
26907 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26908   # 1. Remove the extension, and $U if already installed.
26909   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26910   ac_i=`echo "$ac_i" | sed "$ac_script"`
26911   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26912   #    will be set to the directory where LIBOBJS objects are built.
26913   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26914   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26915 done
26916 LIBOBJS=$ac_libobjs
26917
26918 LTLIBOBJS=$ac_ltlibobjs
26919
26920
26921 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26922   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26923 Usually this means the macro was only invoked conditionally." >&5
26924 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26925 Usually this means the macro was only invoked conditionally." >&2;}
26926    { (exit 1); exit 1; }; }
26927 fi
26928 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
26929   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
26930 Usually this means the macro was only invoked conditionally." >&5
26931 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
26932 Usually this means the macro was only invoked conditionally." >&2;}
26933    { (exit 1); exit 1; }; }
26934 fi
26935 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26936   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26937 Usually this means the macro was only invoked conditionally." >&5
26938 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26939 Usually this means the macro was only invoked conditionally." >&2;}
26940    { (exit 1); exit 1; }; }
26941 fi
26942 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26943   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26944 Usually this means the macro was only invoked conditionally." >&5
26945 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26946 Usually this means the macro was only invoked conditionally." >&2;}
26947    { (exit 1); exit 1; }; }
26948 fi
26949 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26950   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26951 Usually this means the macro was only invoked conditionally." >&5
26952 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26953 Usually this means the macro was only invoked conditionally." >&2;}
26954    { (exit 1); exit 1; }; }
26955 fi
26956 if test -z "${GRAS_ARCH_32_BITS_TRUE}" && test -z "${GRAS_ARCH_32_BITS_FALSE}"; then
26957   { { echo "$as_me:$LINENO: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26958 Usually this means the macro was only invoked conditionally." >&5
26959 echo "$as_me: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26960 Usually this means the macro was only invoked conditionally." >&2;}
26961    { (exit 1); exit 1; }; }
26962 fi
26963 if test -z "${HAVE_GTNETS_TRUE}" && test -z "${HAVE_GTNETS_FALSE}"; then
26964   { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTNETS\" was never defined.
26965 Usually this means the macro was only invoked conditionally." >&5
26966 echo "$as_me: error: conditional \"HAVE_GTNETS\" was never defined.
26967 Usually this means the macro was only invoked conditionally." >&2;}
26968    { (exit 1); exit 1; }; }
26969 fi
26970 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
26971   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
26972 Usually this means the macro was only invoked conditionally." >&5
26973 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
26974 Usually this means the macro was only invoked conditionally." >&2;}
26975    { (exit 1); exit 1; }; }
26976 fi
26977 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
26978   { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
26979 Usually this means the macro was only invoked conditionally." >&5
26980 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
26981 Usually this means the macro was only invoked conditionally." >&2;}
26982    { (exit 1); exit 1; }; }
26983 fi
26984 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26985   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26986 Usually this means the macro was only invoked conditionally." >&5
26987 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26988 Usually this means the macro was only invoked conditionally." >&2;}
26989    { (exit 1); exit 1; }; }
26990 fi
26991 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
26992   { { echo "$as_me:$LINENO: error: conditional \"HAVE_JAVA\" was never defined.
26993 Usually this means the macro was only invoked conditionally." >&5
26994 echo "$as_me: error: conditional \"HAVE_JAVA\" was never defined.
26995 Usually this means the macro was only invoked conditionally." >&2;}
26996    { (exit 1); exit 1; }; }
26997 fi
26998 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
26999   { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
27000 Usually this means the macro was only invoked conditionally." >&5
27001 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
27002 Usually this means the macro was only invoked conditionally." >&2;}
27003    { (exit 1); exit 1; }; }
27004 fi
27005
27006 : ${CONFIG_STATUS=./config.status}
27007 ac_clean_files_save=$ac_clean_files
27008 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27009 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27010 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27011 cat >$CONFIG_STATUS <<_ACEOF
27012 #! $SHELL
27013 # Generated by $as_me.
27014 # Run this file to recreate the current configuration.
27015 # Compiler output produced by configure, useful for debugging
27016 # configure, is in config.log if it exists.
27017
27018 debug=false
27019 ac_cs_recheck=false
27020 ac_cs_silent=false
27021 SHELL=\${CONFIG_SHELL-$SHELL}
27022 _ACEOF
27023
27024 cat >>$CONFIG_STATUS <<\_ACEOF
27025 ## --------------------- ##
27026 ## M4sh Initialization.  ##
27027 ## --------------------- ##
27028
27029 # Be more Bourne compatible
27030 DUALCASE=1; export DUALCASE # for MKS sh
27031 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27032   emulate sh
27033   NULLCMD=:
27034   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27035   # is contrary to our usage.  Disable this feature.
27036   alias -g '${1+"$@"}'='"$@"'
27037   setopt NO_GLOB_SUBST
27038 else
27039   case `(set -o) 2>/dev/null` in
27040   *posix*) set -o posix ;;
27041 esac
27042
27043 fi
27044
27045
27046
27047
27048 # PATH needs CR
27049 # Avoid depending upon Character Ranges.
27050 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27051 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27052 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27053 as_cr_digits='0123456789'
27054 as_cr_alnum=$as_cr_Letters$as_cr_digits
27055
27056 # The user is always right.
27057 if test "${PATH_SEPARATOR+set}" != set; then
27058   echo "#! /bin/sh" >conf$$.sh
27059   echo  "exit 0"   >>conf$$.sh
27060   chmod +x conf$$.sh
27061   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27062     PATH_SEPARATOR=';'
27063   else
27064     PATH_SEPARATOR=:
27065   fi
27066   rm -f conf$$.sh
27067 fi
27068
27069 # Support unset when possible.
27070 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27071   as_unset=unset
27072 else
27073   as_unset=false
27074 fi
27075
27076
27077 # IFS
27078 # We need space, tab and new line, in precisely that order.  Quoting is
27079 # there to prevent editors from complaining about space-tab.
27080 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27081 # splitting by setting IFS to empty value.)
27082 as_nl='
27083 '
27084 IFS=" ""        $as_nl"
27085
27086 # Find who we are.  Look in the path if we contain no directory separator.
27087 case $0 in
27088   *[\\/]* ) as_myself=$0 ;;
27089   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27090 for as_dir in $PATH
27091 do
27092   IFS=$as_save_IFS
27093   test -z "$as_dir" && as_dir=.
27094   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27095 done
27096 IFS=$as_save_IFS
27097
27098      ;;
27099 esac
27100 # We did not find ourselves, most probably we were run as `sh COMMAND'
27101 # in which case we are not to be found in the path.
27102 if test "x$as_myself" = x; then
27103   as_myself=$0
27104 fi
27105 if test ! -f "$as_myself"; then
27106   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27107   { (exit 1); exit 1; }
27108 fi
27109
27110 # Work around bugs in pre-3.0 UWIN ksh.
27111 for as_var in ENV MAIL MAILPATH
27112 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27113 done
27114 PS1='$ '
27115 PS2='> '
27116 PS4='+ '
27117
27118 # NLS nuisances.
27119 for as_var in \
27120   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27121   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27122   LC_TELEPHONE LC_TIME
27123 do
27124   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27125     eval $as_var=C; export $as_var
27126   else
27127     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27128   fi
27129 done
27130
27131 # Required to use basename.
27132 if expr a : '\(a\)' >/dev/null 2>&1 &&
27133    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27134   as_expr=expr
27135 else
27136   as_expr=false
27137 fi
27138
27139 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27140   as_basename=basename
27141 else
27142   as_basename=false
27143 fi
27144
27145
27146 # Name of the executable.
27147 as_me=`$as_basename -- "$0" ||
27148 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27149          X"$0" : 'X\(//\)$' \| \
27150          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27151 echo X/"$0" |
27152     sed '/^.*\/\([^/][^/]*\)\/*$/{
27153             s//\1/
27154             q
27155           }
27156           /^X\/\(\/\/\)$/{
27157             s//\1/
27158             q
27159           }
27160           /^X\/\(\/\).*/{
27161             s//\1/
27162             q
27163           }
27164           s/.*/./; q'`
27165
27166 # CDPATH.
27167 $as_unset CDPATH
27168
27169
27170
27171   as_lineno_1=$LINENO
27172   as_lineno_2=$LINENO
27173   test "x$as_lineno_1" != "x$as_lineno_2" &&
27174   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27175
27176   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27177   # uniformly replaced by the line number.  The first 'sed' inserts a
27178   # line-number line after each line using $LINENO; the second 'sed'
27179   # does the real work.  The second script uses 'N' to pair each
27180   # line-number line with the line containing $LINENO, and appends
27181   # trailing '-' during substitution so that $LINENO is not a special
27182   # case at line end.
27183   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27184   # scripts with optimization help from Paolo Bonzini.  Blame Lee
27185   # E. McMahon (1931-1989) for sed's syntax.  :-)
27186   sed -n '
27187     p
27188     /[$]LINENO/=
27189   ' <$as_myself |
27190     sed '
27191       s/[$]LINENO.*/&-/
27192       t lineno
27193       b
27194       :lineno
27195       N
27196       :loop
27197       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27198       t loop
27199       s/-\n.*//
27200     ' >$as_me.lineno &&
27201   chmod +x "$as_me.lineno" ||
27202     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27203    { (exit 1); exit 1; }; }
27204
27205   # Don't try to exec as it changes $[0], causing all sort of problems
27206   # (the dirname of $[0] is not the place where we might find the
27207   # original and so on.  Autoconf is especially sensitive to this).
27208   . "./$as_me.lineno"
27209   # Exit status is that of the last command.
27210   exit
27211 }
27212
27213
27214 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27215   as_dirname=dirname
27216 else
27217   as_dirname=false
27218 fi
27219
27220 ECHO_C= ECHO_N= ECHO_T=
27221 case `echo -n x` in
27222 -n*)
27223   case `echo 'x\c'` in
27224   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27225   *)   ECHO_C='\c';;
27226   esac;;
27227 *)
27228   ECHO_N='-n';;
27229 esac
27230
27231 if expr a : '\(a\)' >/dev/null 2>&1 &&
27232    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27233   as_expr=expr
27234 else
27235   as_expr=false
27236 fi
27237
27238 rm -f conf$$ conf$$.exe conf$$.file
27239 if test -d conf$$.dir; then
27240   rm -f conf$$.dir/conf$$.file
27241 else
27242   rm -f conf$$.dir
27243   mkdir conf$$.dir
27244 fi
27245 echo >conf$$.file
27246 if ln -s conf$$.file conf$$ 2>/dev/null; then
27247   as_ln_s='ln -s'
27248   # ... but there are two gotchas:
27249   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27250   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27251   # In both cases, we have to default to `cp -p'.
27252   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27253     as_ln_s='cp -p'
27254 elif ln conf$$.file conf$$ 2>/dev/null; then
27255   as_ln_s=ln
27256 else
27257   as_ln_s='cp -p'
27258 fi
27259 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27260 rmdir conf$$.dir 2>/dev/null
27261
27262 if mkdir -p . 2>/dev/null; then
27263   as_mkdir_p=:
27264 else
27265   test -d ./-p && rmdir ./-p
27266   as_mkdir_p=false
27267 fi
27268
27269 if test -x / >/dev/null 2>&1; then
27270   as_test_x='test -x'
27271 else
27272   if ls -dL / >/dev/null 2>&1; then
27273     as_ls_L_option=L
27274   else
27275     as_ls_L_option=
27276   fi
27277   as_test_x='
27278     eval sh -c '\''
27279       if test -d "$1"; then
27280         test -d "$1/.";
27281       else
27282         case $1 in
27283         -*)set "./$1";;
27284         esac;
27285         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27286         ???[sx]*):;;*)false;;esac;fi
27287     '\'' sh
27288   '
27289 fi
27290 as_executable_p=$as_test_x
27291
27292 # Sed expression to map a string onto a valid CPP name.
27293 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27294
27295 # Sed expression to map a string onto a valid variable name.
27296 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27297
27298
27299 exec 6>&1
27300
27301 # Save the log message, to keep $[0] and so on meaningful, and to
27302 # report actual input values of CONFIG_FILES etc. instead of their
27303 # values after options handling.
27304 ac_log="
27305 This file was extended by simgrid $as_me 3.3-cvs, which was
27306 generated by GNU Autoconf 2.61.  Invocation command line was
27307
27308   CONFIG_FILES    = $CONFIG_FILES
27309   CONFIG_HEADERS  = $CONFIG_HEADERS
27310   CONFIG_LINKS    = $CONFIG_LINKS
27311   CONFIG_COMMANDS = $CONFIG_COMMANDS
27312   $ $0 $@
27313
27314 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27315 "
27316
27317 _ACEOF
27318
27319 cat >>$CONFIG_STATUS <<_ACEOF
27320 # Files that config.status was made for.
27321 config_files="$ac_config_files"
27322 config_headers="$ac_config_headers"
27323 config_commands="$ac_config_commands"
27324
27325 _ACEOF
27326
27327 cat >>$CONFIG_STATUS <<\_ACEOF
27328 ac_cs_usage="\
27329 \`$as_me' instantiates files from templates according to the
27330 current configuration.
27331
27332 Usage: $0 [OPTIONS] [FILE]...
27333
27334   -h, --help       print this help, then exit
27335   -V, --version    print version number and configuration settings, then exit
27336   -q, --quiet      do not print progress messages
27337   -d, --debug      don't remove temporary files
27338       --recheck    update $as_me by reconfiguring in the same conditions
27339   --file=FILE[:TEMPLATE]
27340                    instantiate the configuration file FILE
27341   --header=FILE[:TEMPLATE]
27342                    instantiate the configuration header FILE
27343
27344 Configuration files:
27345 $config_files
27346
27347 Configuration headers:
27348 $config_headers
27349
27350 Configuration commands:
27351 $config_commands
27352
27353 Report bugs to <bug-autoconf@gnu.org>."
27354
27355 _ACEOF
27356 cat >>$CONFIG_STATUS <<_ACEOF
27357 ac_cs_version="\\
27358 simgrid config.status 3.3-cvs
27359 configured by $0, generated by GNU Autoconf 2.61,
27360   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27361
27362 Copyright (C) 2006 Free Software Foundation, Inc.
27363 This config.status script is free software; the Free Software Foundation
27364 gives unlimited permission to copy, distribute and modify it."
27365
27366 ac_pwd='$ac_pwd'
27367 srcdir='$srcdir'
27368 INSTALL='$INSTALL'
27369 MKDIR_P='$MKDIR_P'
27370 _ACEOF
27371
27372 cat >>$CONFIG_STATUS <<\_ACEOF
27373 # If no file are specified by the user, then we need to provide default
27374 # value.  By we need to know if files were specified by the user.
27375 ac_need_defaults=:
27376 while test $# != 0
27377 do
27378   case $1 in
27379   --*=*)
27380     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27381     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27382     ac_shift=:
27383     ;;
27384   *)
27385     ac_option=$1
27386     ac_optarg=$2
27387     ac_shift=shift
27388     ;;
27389   esac
27390
27391   case $ac_option in
27392   # Handling of the options.
27393   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27394     ac_cs_recheck=: ;;
27395   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27396     echo "$ac_cs_version"; exit ;;
27397   --debug | --debu | --deb | --de | --d | -d )
27398     debug=: ;;
27399   --file | --fil | --fi | --f )
27400     $ac_shift
27401     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27402     ac_need_defaults=false;;
27403   --header | --heade | --head | --hea )
27404     $ac_shift
27405     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27406     ac_need_defaults=false;;
27407   --he | --h)
27408     # Conflict between --help and --header
27409     { echo "$as_me: error: ambiguous option: $1
27410 Try \`$0 --help' for more information." >&2
27411    { (exit 1); exit 1; }; };;
27412   --help | --hel | -h )
27413     echo "$ac_cs_usage"; exit ;;
27414   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27415   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27416     ac_cs_silent=: ;;
27417
27418   # This is an error.
27419   -*) { echo "$as_me: error: unrecognized option: $1
27420 Try \`$0 --help' for more information." >&2
27421    { (exit 1); exit 1; }; } ;;
27422
27423   *) ac_config_targets="$ac_config_targets $1"
27424      ac_need_defaults=false ;;
27425
27426   esac
27427   shift
27428 done
27429
27430 ac_configure_extra_args=
27431
27432 if $ac_cs_silent; then
27433   exec 6>/dev/null
27434   ac_configure_extra_args="$ac_configure_extra_args --silent"
27435 fi
27436
27437 _ACEOF
27438 cat >>$CONFIG_STATUS <<_ACEOF
27439 if \$ac_cs_recheck; then
27440   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27441   CONFIG_SHELL=$SHELL
27442   export CONFIG_SHELL
27443   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27444 fi
27445
27446 _ACEOF
27447 cat >>$CONFIG_STATUS <<\_ACEOF
27448 exec 5>>config.log
27449 {
27450   echo
27451   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27452 ## Running $as_me. ##
27453 _ASBOX
27454   echo "$ac_log"
27455 } >&5
27456
27457 _ACEOF
27458 cat >>$CONFIG_STATUS <<_ACEOF
27459 #
27460 # INIT-COMMANDS
27461 #
27462 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27463
27464 _ACEOF
27465
27466 cat >>$CONFIG_STATUS <<\_ACEOF
27467
27468 # Handling of arguments.
27469 for ac_config_target in $ac_config_targets
27470 do
27471   case $ac_config_target in
27472     "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
27473     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27474     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27475     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27476     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27477     "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
27478     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27479     "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
27480     "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
27481     "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
27482     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
27483     "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
27484     "testsuite/gras/trp_tcp_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
27485     "testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
27486     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27487     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
27488     "examples/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/Makefile" ;;
27489     "examples/java/basic/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/basic/Makefile" ;;
27490     "examples/java/comm_time/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/comm_time/Makefile" ;;
27491     "examples/java/suspend/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/suspend/Makefile" ;;
27492     "examples/java/ping_pong/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/ping_pong/Makefile" ;;
27493     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
27494     "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
27495     "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
27496     "examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
27497     "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
27498     "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
27499     "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
27500     "examples/gras/spawn/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/spawn/Makefile" ;;
27501     "examples/gras/synchro/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/synchro/Makefile" ;;
27502     "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
27503     "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
27504     "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
27505     "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
27506     "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
27507     "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
27508     "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
27509     "examples/amok/bandwidth/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
27510     "examples/amok/bandwidth/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
27511     "examples/amok/bandwidth/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
27512     "examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
27513     "examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
27514     "examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
27515
27516   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27517 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27518    { (exit 1); exit 1; }; };;
27519   esac
27520 done
27521
27522
27523 # If the user did not use the arguments to specify the items to instantiate,
27524 # then the envvar interface is used.  Set only those that are not.
27525 # We use the long form for the default assignment because of an extremely
27526 # bizarre bug on SunOS 4.1.3.
27527 if $ac_need_defaults; then
27528   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27529   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27530   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27531 fi
27532
27533 # Have a temporary directory for convenience.  Make it in the build tree
27534 # simply because there is no reason against having it here, and in addition,
27535 # creating and moving files from /tmp can sometimes cause problems.
27536 # Hook for its removal unless debugging.
27537 # Note that there is a small window in which the directory will not be cleaned:
27538 # after its creation but before its name has been assigned to `$tmp'.
27539 $debug ||
27540 {
27541   tmp=
27542   trap 'exit_status=$?
27543   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27544 ' 0
27545   trap '{ (exit 1); exit 1; }' 1 2 13 15
27546 }
27547 # Create a (secure) tmp directory for tmp files.
27548
27549 {
27550   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27551   test -n "$tmp" && test -d "$tmp"
27552 }  ||
27553 {
27554   tmp=./conf$$-$RANDOM
27555   (umask 077 && mkdir "$tmp")
27556 } ||
27557 {
27558    echo "$me: cannot create a temporary directory in ." >&2
27559    { (exit 1); exit 1; }
27560 }
27561
27562 #
27563 # Set up the sed scripts for CONFIG_FILES section.
27564 #
27565
27566 # No need to generate the scripts if there are no CONFIG_FILES.
27567 # This happens for instance when ./config.status config.h
27568 if test -n "$CONFIG_FILES"; then
27569
27570 _ACEOF
27571
27572
27573
27574 ac_delim='%!_!# '
27575 for ac_last_try in false false false false false :; do
27576   cat >conf$$subs.sed <<_ACEOF
27577 SHELL!$SHELL$ac_delim
27578 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27579 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27580 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27581 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27582 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27583 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27584 exec_prefix!$exec_prefix$ac_delim
27585 prefix!$prefix$ac_delim
27586 program_transform_name!$program_transform_name$ac_delim
27587 bindir!$bindir$ac_delim
27588 sbindir!$sbindir$ac_delim
27589 libexecdir!$libexecdir$ac_delim
27590 datarootdir!$datarootdir$ac_delim
27591 datadir!$datadir$ac_delim
27592 sysconfdir!$sysconfdir$ac_delim
27593 sharedstatedir!$sharedstatedir$ac_delim
27594 localstatedir!$localstatedir$ac_delim
27595 includedir!$includedir$ac_delim
27596 oldincludedir!$oldincludedir$ac_delim
27597 docdir!$docdir$ac_delim
27598 infodir!$infodir$ac_delim
27599 htmldir!$htmldir$ac_delim
27600 dvidir!$dvidir$ac_delim
27601 pdfdir!$pdfdir$ac_delim
27602 psdir!$psdir$ac_delim
27603 libdir!$libdir$ac_delim
27604 localedir!$localedir$ac_delim
27605 mandir!$mandir$ac_delim
27606 DEFS!$DEFS$ac_delim
27607 ECHO_C!$ECHO_C$ac_delim
27608 ECHO_N!$ECHO_N$ac_delim
27609 ECHO_T!$ECHO_T$ac_delim
27610 LIBS!$LIBS$ac_delim
27611 build_alias!$build_alias$ac_delim
27612 host_alias!$host_alias$ac_delim
27613 target_alias!$target_alias$ac_delim
27614 build!$build$ac_delim
27615 build_cpu!$build_cpu$ac_delim
27616 build_vendor!$build_vendor$ac_delim
27617 build_os!$build_os$ac_delim
27618 host!$host$ac_delim
27619 host_cpu!$host_cpu$ac_delim
27620 host_vendor!$host_vendor$ac_delim
27621 host_os!$host_os$ac_delim
27622 target!$target$ac_delim
27623 target_cpu!$target_cpu$ac_delim
27624 target_vendor!$target_vendor$ac_delim
27625 target_os!$target_os$ac_delim
27626 GCJ!$GCJ$ac_delim
27627 GCJFLAGS!$GCJFLAGS$ac_delim
27628 am__leading_dot!$am__leading_dot$ac_delim
27629 DEPDIR!$DEPDIR$ac_delim
27630 am__include!$am__include$ac_delim
27631 am__quote!$am__quote$ac_delim
27632 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27633 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27634 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27635 GCJDEPMODE!$GCJDEPMODE$ac_delim
27636 am__fastdepGCJ_TRUE!$am__fastdepGCJ_TRUE$ac_delim
27637 am__fastdepGCJ_FALSE!$am__fastdepGCJ_FALSE$ac_delim
27638 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27639 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27640 INSTALL_DATA!$INSTALL_DATA$ac_delim
27641 am__isrc!$am__isrc$ac_delim
27642 CYGPATH_W!$CYGPATH_W$ac_delim
27643 PACKAGE!$PACKAGE$ac_delim
27644 VERSION!$VERSION$ac_delim
27645 ACLOCAL!$ACLOCAL$ac_delim
27646 AUTOCONF!$AUTOCONF$ac_delim
27647 AUTOMAKE!$AUTOMAKE$ac_delim
27648 AUTOHEADER!$AUTOHEADER$ac_delim
27649 MAKEINFO!$MAKEINFO$ac_delim
27650 install_sh!$install_sh$ac_delim
27651 STRIP!$STRIP$ac_delim
27652 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27653 mkdir_p!$mkdir_p$ac_delim
27654 AWK!$AWK$ac_delim
27655 SET_MAKE!$SET_MAKE$ac_delim
27656 AMTAR!$AMTAR$ac_delim
27657 am__tar!$am__tar$ac_delim
27658 am__untar!$am__untar$ac_delim
27659 CC!$CC$ac_delim
27660 CFLAGS!$CFLAGS$ac_delim
27661 LDFLAGS!$LDFLAGS$ac_delim
27662 CPPFLAGS!$CPPFLAGS$ac_delim
27663 ac_ct_CC!$ac_ct_CC$ac_delim
27664 EXEEXT!$EXEEXT$ac_delim
27665 OBJEXT!$OBJEXT$ac_delim
27666 CCDEPMODE!$CCDEPMODE$ac_delim
27667 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27668 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27669 GREP!$GREP$ac_delim
27670 EGREP!$EGREP$ac_delim
27671 LN_S!$LN_S$ac_delim
27672 ECHO!$ECHO$ac_delim
27673 AR!$AR$ac_delim
27674 _ACEOF
27675
27676   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27677     break
27678   elif $ac_last_try; then
27679     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27680 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27681    { (exit 1); exit 1; }; }
27682   else
27683     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27684   fi
27685 done
27686
27687 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27688 if test -n "$ac_eof"; then
27689   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27690   ac_eof=`expr $ac_eof + 1`
27691 fi
27692
27693 cat >>$CONFIG_STATUS <<_ACEOF
27694 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27695 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27696 _ACEOF
27697 sed '
27698 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27699 s/^/s,@/; s/!/@,|#_!!_#|/
27700 :n
27701 t n
27702 s/'"$ac_delim"'$/,g/; t
27703 s/$/\\/; p
27704 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27705 ' >>$CONFIG_STATUS <conf$$subs.sed
27706 rm -f conf$$subs.sed
27707 cat >>$CONFIG_STATUS <<_ACEOF
27708 CEOF$ac_eof
27709 _ACEOF
27710
27711
27712 ac_delim='%!_!# '
27713 for ac_last_try in false false false false false :; do
27714   cat >conf$$subs.sed <<_ACEOF
27715 RANLIB!$RANLIB$ac_delim
27716 DLLTOOL!$DLLTOOL$ac_delim
27717 AS!$AS$ac_delim
27718 OBJDUMP!$OBJDUMP$ac_delim
27719 CPP!$CPP$ac_delim
27720 CXX!$CXX$ac_delim
27721 CXXFLAGS!$CXXFLAGS$ac_delim
27722 ac_ct_CXX!$ac_ct_CXX$ac_delim
27723 CXXDEPMODE!$CXXDEPMODE$ac_delim
27724 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27725 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27726 CXXCPP!$CXXCPP$ac_delim
27727 LIBTOOL!$LIBTOOL$ac_delim
27728 LIBOBJS!$LIBOBJS$ac_delim
27729 GRAS_ARCH_32_BITS_TRUE!$GRAS_ARCH_32_BITS_TRUE$ac_delim
27730 GRAS_ARCH_32_BITS_FALSE!$GRAS_ARCH_32_BITS_FALSE$ac_delim
27731 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
27732 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
27733 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
27734 HAVE_GTNETS_TRUE!$HAVE_GTNETS_TRUE$ac_delim
27735 HAVE_GTNETS_FALSE!$HAVE_GTNETS_FALSE$ac_delim
27736 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
27737 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
27738 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
27739 AM_CFLAGS!$AM_CFLAGS$ac_delim
27740 GRAS_DEP!$GRAS_DEP$ac_delim
27741 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
27742 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
27743 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27744 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27745 MAINT!$MAINT$ac_delim
27746 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
27747 abs_builddir!$abs_builddir$ac_delim
27748 abs_srcdir!$abs_srcdir$ac_delim
27749 abs_top_builddir!$abs_top_builddir$ac_delim
27750 abs_top_srcdir!$abs_top_srcdir$ac_delim
27751 JAVAC!$JAVAC$ac_delim
27752 JAVA!$JAVA$ac_delim
27753 JAR!$JAR$ac_delim
27754 HAVE_JAVA_TRUE!$HAVE_JAVA_TRUE$ac_delim
27755 HAVE_JAVA_FALSE!$HAVE_JAVA_FALSE$ac_delim
27756 BASH!$BASH$ac_delim
27757 WARNING!$WARNING$ac_delim
27758 LEX!$LEX$ac_delim
27759 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27760 LEXLIB!$LEXLIB$ac_delim
27761 FLEXML!$FLEXML$ac_delim
27762 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
27763 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
27764 DOXYGEN!$DOXYGEN$ac_delim
27765 ADDR2LINE!$ADDR2LINE$ac_delim
27766 ac_configure_args!$ac_configure_args$ac_delim
27767 MD5SUM!$MD5SUM$ac_delim
27768 build_id!$build_id$ac_delim
27769 LTLIBOBJS!$LTLIBOBJS$ac_delim
27770 _ACEOF
27771
27772   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 55; then
27773     break
27774   elif $ac_last_try; then
27775     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27776 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27777    { (exit 1); exit 1; }; }
27778   else
27779     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27780   fi
27781 done
27782
27783 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27784 if test -n "$ac_eof"; then
27785   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27786   ac_eof=`expr $ac_eof + 1`
27787 fi
27788
27789 cat >>$CONFIG_STATUS <<_ACEOF
27790 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27791 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27792 _ACEOF
27793 sed '
27794 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27795 s/^/s,@/; s/!/@,|#_!!_#|/
27796 :n
27797 t n
27798 s/'"$ac_delim"'$/,g/; t
27799 s/$/\\/; p
27800 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27801 ' >>$CONFIG_STATUS <conf$$subs.sed
27802 rm -f conf$$subs.sed
27803 cat >>$CONFIG_STATUS <<_ACEOF
27804 :end
27805 s/|#_!!_#|//g
27806 CEOF$ac_eof
27807 _ACEOF
27808
27809
27810 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27811 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27812 # trailing colons and then remove the whole line if VPATH becomes empty
27813 # (actually we leave an empty line to preserve line numbers).
27814 if test "x$srcdir" = x.; then
27815   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27816 s/:*\$(srcdir):*/:/
27817 s/:*\${srcdir}:*/:/
27818 s/:*@srcdir@:*/:/
27819 s/^\([^=]*=[     ]*\):*/\1/
27820 s/:*$//
27821 s/^[^=]*=[       ]*$//
27822 }'
27823 fi
27824
27825 cat >>$CONFIG_STATUS <<\_ACEOF
27826 fi # test -n "$CONFIG_FILES"
27827
27828
27829 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
27830 do
27831   case $ac_tag in
27832   :[FHLC]) ac_mode=$ac_tag; continue;;
27833   esac
27834   case $ac_mode$ac_tag in
27835   :[FHL]*:*);;
27836   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27837 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27838    { (exit 1); exit 1; }; };;
27839   :[FH]-) ac_tag=-:-;;
27840   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27841   esac
27842   ac_save_IFS=$IFS
27843   IFS=:
27844   set x $ac_tag
27845   IFS=$ac_save_IFS
27846   shift
27847   ac_file=$1
27848   shift
27849
27850   case $ac_mode in
27851   :L) ac_source=$1;;
27852   :[FH])
27853     ac_file_inputs=
27854     for ac_f
27855     do
27856       case $ac_f in
27857       -) ac_f="$tmp/stdin";;
27858       *) # Look for the file first in the build tree, then in the source tree
27859          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27860          # because $ac_f cannot contain `:'.
27861          test -f "$ac_f" ||
27862            case $ac_f in
27863            [\\/$]*) false;;
27864            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27865            esac ||
27866            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27867 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27868    { (exit 1); exit 1; }; };;
27869       esac
27870       ac_file_inputs="$ac_file_inputs $ac_f"
27871     done
27872
27873     # Let's still pretend it is `configure' which instantiates (i.e., don't
27874     # use $as_me), people would be surprised to read:
27875     #    /* config.h.  Generated by config.status.  */
27876     configure_input="Generated from "`IFS=:
27877           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27878     if test x"$ac_file" != x-; then
27879       configure_input="$ac_file.  $configure_input"
27880       { echo "$as_me:$LINENO: creating $ac_file" >&5
27881 echo "$as_me: creating $ac_file" >&6;}
27882     fi
27883
27884     case $ac_tag in
27885     *:-:* | *:-) cat >"$tmp/stdin";;
27886     esac
27887     ;;
27888   esac
27889
27890   ac_dir=`$as_dirname -- "$ac_file" ||
27891 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27892          X"$ac_file" : 'X\(//\)[^/]' \| \
27893          X"$ac_file" : 'X\(//\)$' \| \
27894          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27895 echo X"$ac_file" |
27896     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27897             s//\1/
27898             q
27899           }
27900           /^X\(\/\/\)[^/].*/{
27901             s//\1/
27902             q
27903           }
27904           /^X\(\/\/\)$/{
27905             s//\1/
27906             q
27907           }
27908           /^X\(\/\).*/{
27909             s//\1/
27910             q
27911           }
27912           s/.*/./; q'`
27913   { as_dir="$ac_dir"
27914   case $as_dir in #(
27915   -*) as_dir=./$as_dir;;
27916   esac
27917   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27918     as_dirs=
27919     while :; do
27920       case $as_dir in #(
27921       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27922       *) as_qdir=$as_dir;;
27923       esac
27924       as_dirs="'$as_qdir' $as_dirs"
27925       as_dir=`$as_dirname -- "$as_dir" ||
27926 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27927          X"$as_dir" : 'X\(//\)[^/]' \| \
27928          X"$as_dir" : 'X\(//\)$' \| \
27929          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27930 echo X"$as_dir" |
27931     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27932             s//\1/
27933             q
27934           }
27935           /^X\(\/\/\)[^/].*/{
27936             s//\1/
27937             q
27938           }
27939           /^X\(\/\/\)$/{
27940             s//\1/
27941             q
27942           }
27943           /^X\(\/\).*/{
27944             s//\1/
27945             q
27946           }
27947           s/.*/./; q'`
27948       test -d "$as_dir" && break
27949     done
27950     test -z "$as_dirs" || eval "mkdir $as_dirs"
27951   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27952 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27953    { (exit 1); exit 1; }; }; }
27954   ac_builddir=.
27955
27956 case "$ac_dir" in
27957 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27958 *)
27959   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27960   # A ".." for each directory in $ac_dir_suffix.
27961   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27962   case $ac_top_builddir_sub in
27963   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27964   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27965   esac ;;
27966 esac
27967 ac_abs_top_builddir=$ac_pwd
27968 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27969 # for backward compatibility:
27970 ac_top_builddir=$ac_top_build_prefix
27971
27972 case $srcdir in
27973   .)  # We are building in place.
27974     ac_srcdir=.
27975     ac_top_srcdir=$ac_top_builddir_sub
27976     ac_abs_top_srcdir=$ac_pwd ;;
27977   [\\/]* | ?:[\\/]* )  # Absolute name.
27978     ac_srcdir=$srcdir$ac_dir_suffix;
27979     ac_top_srcdir=$srcdir
27980     ac_abs_top_srcdir=$srcdir ;;
27981   *) # Relative name.
27982     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27983     ac_top_srcdir=$ac_top_build_prefix$srcdir
27984     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27985 esac
27986 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27987
27988
27989   case $ac_mode in
27990   :F)
27991   #
27992   # CONFIG_FILE
27993   #
27994
27995   case $INSTALL in
27996   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27997   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27998   esac
27999   ac_MKDIR_P=$MKDIR_P
28000   case $MKDIR_P in
28001   [\\/$]* | ?:[\\/]* ) ;;
28002   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28003   esac
28004 _ACEOF
28005
28006 cat >>$CONFIG_STATUS <<\_ACEOF
28007 # If the template does not know about datarootdir, expand it.
28008 # FIXME: This hack should be removed a few years after 2.60.
28009 ac_datarootdir_hack=; ac_datarootdir_seen=
28010
28011 case `sed -n '/datarootdir/ {
28012   p
28013   q
28014 }
28015 /@datadir@/p
28016 /@docdir@/p
28017 /@infodir@/p
28018 /@localedir@/p
28019 /@mandir@/p
28020 ' $ac_file_inputs` in
28021 *datarootdir*) ac_datarootdir_seen=yes;;
28022 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28023   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28024 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28025 _ACEOF
28026 cat >>$CONFIG_STATUS <<_ACEOF
28027   ac_datarootdir_hack='
28028   s&@datadir@&$datadir&g
28029   s&@docdir@&$docdir&g
28030   s&@infodir@&$infodir&g
28031   s&@localedir@&$localedir&g
28032   s&@mandir@&$mandir&g
28033     s&\\\${datarootdir}&$datarootdir&g' ;;
28034 esac
28035 _ACEOF
28036
28037 # Neutralize VPATH when `$srcdir' = `.'.
28038 # Shell code in configure.ac might set extrasub.
28039 # FIXME: do we really want to maintain this feature?
28040 cat >>$CONFIG_STATUS <<_ACEOF
28041   sed "$ac_vpsub
28042 $extrasub
28043 _ACEOF
28044 cat >>$CONFIG_STATUS <<\_ACEOF
28045 :t
28046 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28047 s&@configure_input@&$configure_input&;t t
28048 s&@top_builddir@&$ac_top_builddir_sub&;t t
28049 s&@srcdir@&$ac_srcdir&;t t
28050 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28051 s&@top_srcdir@&$ac_top_srcdir&;t t
28052 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28053 s&@builddir@&$ac_builddir&;t t
28054 s&@abs_builddir@&$ac_abs_builddir&;t t
28055 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28056 s&@INSTALL@&$ac_INSTALL&;t t
28057 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28058 $ac_datarootdir_hack
28059 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28060
28061 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28062   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28063   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28064   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28065 which seems to be undefined.  Please make sure it is defined." >&5
28066 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28067 which seems to be undefined.  Please make sure it is defined." >&2;}
28068
28069   rm -f "$tmp/stdin"
28070   case $ac_file in
28071   -) cat "$tmp/out"; rm -f "$tmp/out";;
28072   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28073   esac
28074  ;;
28075   :H)
28076   #
28077   # CONFIG_HEADER
28078   #
28079 _ACEOF
28080
28081 # Transform confdefs.h into a sed script `conftest.defines', that
28082 # substitutes the proper values into config.h.in to produce config.h.
28083 rm -f conftest.defines conftest.tail
28084 # First, append a space to every undef/define line, to ease matching.
28085 echo 's/$/ /' >conftest.defines
28086 # Then, protect against being on the right side of a sed subst, or in
28087 # an unquoted here document, in config.status.  If some macros were
28088 # called several times there might be several #defines for the same
28089 # symbol, which is useless.  But do not sort them, since the last
28090 # AC_DEFINE must be honored.
28091 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28092 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28093 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28094 # PARAMS is the parameter list in the macro definition--in most cases, it's
28095 # just an empty string.
28096 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
28097 ac_dB='\\)[      (].*,\\1define\\2'
28098 ac_dC=' '
28099 ac_dD=' ,'
28100
28101 uniq confdefs.h |
28102   sed -n '
28103         t rset
28104         :rset
28105         s/^[     ]*#[    ]*define[       ][      ]*//
28106         t ok
28107         d
28108         :ok
28109         s/[\\&,]/\\&/g
28110         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28111         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28112   ' >>conftest.defines
28113
28114 # Remove the space that was appended to ease matching.
28115 # Then replace #undef with comments.  This is necessary, for
28116 # example, in the case of _POSIX_SOURCE, which is predefined and required
28117 # on some systems where configure will not decide to define it.
28118 # (The regexp can be short, since the line contains either #define or #undef.)
28119 echo 's/ $//
28120 s,^[     #]*u.*,/* & */,' >>conftest.defines
28121
28122 # Break up conftest.defines:
28123 ac_max_sed_lines=50
28124
28125 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28126 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28127 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28128 # et cetera.
28129 ac_in='$ac_file_inputs'
28130 ac_out='"$tmp/out1"'
28131 ac_nxt='"$tmp/out2"'
28132
28133 while :
28134 do
28135   # Write a here document:
28136     cat >>$CONFIG_STATUS <<_ACEOF
28137     # First, check the format of the line:
28138     cat >"\$tmp/defines.sed" <<\\CEOF
28139 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
28140 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
28141 b
28142 :def
28143 _ACEOF
28144   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28145   echo 'CEOF
28146     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28147   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28148   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28149   grep . conftest.tail >/dev/null || break
28150   rm -f conftest.defines
28151   mv conftest.tail conftest.defines
28152 done
28153 rm -f conftest.defines conftest.tail
28154
28155 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28156 cat >>$CONFIG_STATUS <<\_ACEOF
28157   if test x"$ac_file" != x-; then
28158     echo "/* $configure_input  */" >"$tmp/config.h"
28159     cat "$ac_result" >>"$tmp/config.h"
28160     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28161       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28162 echo "$as_me: $ac_file is unchanged" >&6;}
28163     else
28164       rm -f $ac_file
28165       mv "$tmp/config.h" $ac_file
28166     fi
28167   else
28168     echo "/* $configure_input  */"
28169     cat "$ac_result"
28170   fi
28171   rm -f "$tmp/out12"
28172 # Compute $ac_file's index in $config_headers.
28173 _am_stamp_count=1
28174 for _am_header in $config_headers :; do
28175   case $_am_header in
28176     $ac_file | $ac_file:* )
28177       break ;;
28178     * )
28179       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28180   esac
28181 done
28182 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
28183 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28184          X$ac_file : 'X\(//\)[^/]' \| \
28185          X$ac_file : 'X\(//\)$' \| \
28186          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
28187 echo X$ac_file |
28188     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28189             s//\1/
28190             q
28191           }
28192           /^X\(\/\/\)[^/].*/{
28193             s//\1/
28194             q
28195           }
28196           /^X\(\/\/\)$/{
28197             s//\1/
28198             q
28199           }
28200           /^X\(\/\).*/{
28201             s//\1/
28202             q
28203           }
28204           s/.*/./; q'`/stamp-h$_am_stamp_count
28205  ;;
28206
28207   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28208 echo "$as_me: executing $ac_file commands" >&6;}
28209  ;;
28210   esac
28211
28212
28213   case $ac_file$ac_mode in
28214     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28215   # Strip MF so we end up with the name of the file.
28216   mf=`echo "$mf" | sed -e 's/:.*$//'`
28217   # Check whether this is an Automake generated Makefile or not.
28218   # We used to match only the files named `Makefile.in', but
28219   # some people rename them; so instead we look at the file content.
28220   # Grep'ing the first line is not enough: some people post-process
28221   # each Makefile.in and add a new line on top of each file to say so.
28222   # Grep'ing the whole file is not good either: AIX grep has a line
28223   # limit of 2048, but all sed's we know have understand at least 4000.
28224   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
28225     dirpart=`$as_dirname -- "$mf" ||
28226 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28227          X"$mf" : 'X\(//\)[^/]' \| \
28228          X"$mf" : 'X\(//\)$' \| \
28229          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28230 echo X"$mf" |
28231     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28232             s//\1/
28233             q
28234           }
28235           /^X\(\/\/\)[^/].*/{
28236             s//\1/
28237             q
28238           }
28239           /^X\(\/\/\)$/{
28240             s//\1/
28241             q
28242           }
28243           /^X\(\/\).*/{
28244             s//\1/
28245             q
28246           }
28247           s/.*/./; q'`
28248   else
28249     continue
28250   fi
28251   # Extract the definition of DEPDIR, am__include, and am__quote
28252   # from the Makefile without running `make'.
28253   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28254   test -z "$DEPDIR" && continue
28255   am__include=`sed -n 's/^am__include = //p' < "$mf"`
28256   test -z "am__include" && continue
28257   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28258   # When using ansi2knr, U may be empty or an underscore; expand it
28259   U=`sed -n 's/^U = //p' < "$mf"`
28260   # Find all dependency output files, they are included files with
28261   # $(DEPDIR) in their names.  We invoke sed twice because it is the
28262   # simplest approach to changing $(DEPDIR) to its actual value in the
28263   # expansion.
28264   for file in `sed -n "
28265     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28266        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28267     # Make sure the directory exists.
28268     test -f "$dirpart/$file" && continue
28269     fdir=`$as_dirname -- "$file" ||
28270 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28271          X"$file" : 'X\(//\)[^/]' \| \
28272          X"$file" : 'X\(//\)$' \| \
28273          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28274 echo X"$file" |
28275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28276             s//\1/
28277             q
28278           }
28279           /^X\(\/\/\)[^/].*/{
28280             s//\1/
28281             q
28282           }
28283           /^X\(\/\/\)$/{
28284             s//\1/
28285             q
28286           }
28287           /^X\(\/\).*/{
28288             s//\1/
28289             q
28290           }
28291           s/.*/./; q'`
28292     { as_dir=$dirpart/$fdir
28293   case $as_dir in #(
28294   -*) as_dir=./$as_dir;;
28295   esac
28296   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28297     as_dirs=
28298     while :; do
28299       case $as_dir in #(
28300       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28301       *) as_qdir=$as_dir;;
28302       esac
28303       as_dirs="'$as_qdir' $as_dirs"
28304       as_dir=`$as_dirname -- "$as_dir" ||
28305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28306          X"$as_dir" : 'X\(//\)[^/]' \| \
28307          X"$as_dir" : 'X\(//\)$' \| \
28308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28309 echo X"$as_dir" |
28310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28311             s//\1/
28312             q
28313           }
28314           /^X\(\/\/\)[^/].*/{
28315             s//\1/
28316             q
28317           }
28318           /^X\(\/\/\)$/{
28319             s//\1/
28320             q
28321           }
28322           /^X\(\/\).*/{
28323             s//\1/
28324             q
28325           }
28326           s/.*/./; q'`
28327       test -d "$as_dir" && break
28328     done
28329     test -z "$as_dirs" || eval "mkdir $as_dirs"
28330   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28331 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28332    { (exit 1); exit 1; }; }; }
28333     # echo "creating $dirpart/$file"
28334     echo '# dummy' > "$dirpart/$file"
28335   done
28336 done
28337  ;;
28338     "tools/graspe-slave":F)
28339     for file in                                                 \
28340      tools/graspe-slave           tools/graspe-master           \
28341     ; do                                                        \
28342       test -e $file && chmod +x $file;                          \
28343     done
28344  ;;
28345     "testsuite/Makefile":F)
28346     for file in                                                 \
28347      testsuite/run_tests                                        \
28348      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28349     ; do                                                        \
28350       test -e $file && chmod +x $file;                          \
28351     done
28352  ;;
28353     "testsuite/run_tests":F)
28354     for file in                                                 \
28355      testsuite/run_tests                                        \
28356      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28357     ; do                                                        \
28358       test -e $file && chmod +x $file;                          \
28359     done
28360  ;;
28361     "testsuite/gras/trp_tcp_usage":F)
28362     for file in                                                 \
28363      testsuite/run_tests                                        \
28364      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28365     ; do                                                        \
28366       test -e $file && chmod +x $file;                          \
28367     done
28368  ;;
28369     "testsuite/gras/trp_file_usage":F)
28370     for file in                                                 \
28371      testsuite/run_tests                                        \
28372      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
28373     ; do                                                        \
28374       test -e $file && chmod +x $file;                          \
28375     done
28376  ;;
28377     "examples/Makefile":F)
28378     for file in                                                 \
28379      \
28380      examples/simdag/test_simdag                                \
28381      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28382      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28383     ; do                                                        \
28384       test -e $file && chmod +x $file;                          \
28385     done
28386  ;;
28387     "examples/msg/Makefile":F)
28388     for file in                                                 \
28389      \
28390      examples/simdag/test_simdag                                \
28391      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28392      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28393     ; do                                                        \
28394       test -e $file && chmod +x $file;                          \
28395     done
28396  ;;
28397     "examples/simdag/Makefile":F)
28398     for file in                                                 \
28399      \
28400      examples/simdag/test_simdag                                \
28401      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28402      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28403     ; do                                                        \
28404       test -e $file && chmod +x $file;                          \
28405     done
28406  ;;
28407     "examples/simdag/test_simdag":F)
28408     for file in                                                 \
28409      \
28410      examples/simdag/test_simdag                                \
28411      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28412      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28413     ; do                                                        \
28414       test -e $file && chmod +x $file;                          \
28415     done
28416  ;;
28417     "examples/gras/Makefile":F)
28418     for file in                                                 \
28419      \
28420      examples/simdag/test_simdag                                \
28421      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28422      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28423     ; do                                                        \
28424       test -e $file && chmod +x $file;                          \
28425     done
28426  ;;
28427     "examples/gras/ping/Makefile":F)
28428     for file in                                                 \
28429      \
28430      examples/simdag/test_simdag                                \
28431      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28432      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28433     ; do                                                        \
28434       test -e $file && chmod +x $file;                          \
28435     done
28436  ;;
28437     "examples/gras/rpc/Makefile":F)
28438     for file in                                                 \
28439      \
28440      examples/simdag/test_simdag                                \
28441      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28442      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28443     ; do                                                        \
28444       test -e $file && chmod +x $file;                          \
28445     done
28446  ;;
28447     "examples/gras/spawn/Makefile":F)
28448     for file in                                                 \
28449      \
28450      examples/simdag/test_simdag                                \
28451      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28452      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28453     ; do                                                        \
28454       test -e $file && chmod +x $file;                          \
28455     done
28456  ;;
28457     "examples/gras/synchro/Makefile":F)
28458     for file in                                                 \
28459      \
28460      examples/simdag/test_simdag                                \
28461      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28462      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28463     ; do                                                        \
28464       test -e $file && chmod +x $file;                          \
28465     done
28466  ;;
28467     "examples/gras/timer/Makefile":F)
28468     for file in                                                 \
28469      \
28470      examples/simdag/test_simdag                                \
28471      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28472      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28473     ; do                                                        \
28474       test -e $file && chmod +x $file;                          \
28475     done
28476  ;;
28477     "examples/gras/chrono/Makefile":F)
28478     for file in                                                 \
28479      \
28480      examples/simdag/test_simdag                                \
28481      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28482      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28483     ; do                                                        \
28484       test -e $file && chmod +x $file;                          \
28485     done
28486  ;;
28487     "examples/gras/mutual_exclusion/simple_token/Makefile":F)
28488     for file in                                                 \
28489      \
28490      examples/simdag/test_simdag                                \
28491      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28492      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28493     ; do                                                        \
28494       test -e $file && chmod +x $file;                          \
28495     done
28496  ;;
28497     "examples/gras/mmrpc/Makefile":F)
28498     for file in                                                 \
28499      \
28500      examples/simdag/test_simdag                                \
28501      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28502      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28503     ; do                                                        \
28504       test -e $file && chmod +x $file;                          \
28505     done
28506  ;;
28507     "examples/gras/pmm/Makefile":F)
28508     for file in                                                 \
28509      \
28510      examples/simdag/test_simdag                                \
28511      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28512      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28513     ; do                                                        \
28514       test -e $file && chmod +x $file;                          \
28515     done
28516  ;;
28517     "examples/gras/all2all/Makefile":F)
28518     for file in                                                 \
28519      \
28520      examples/simdag/test_simdag                                \
28521      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28522      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28523     ; do                                                        \
28524       test -e $file && chmod +x $file;                          \
28525     done
28526  ;;
28527     "examples/amok/Makefile":F)
28528     for file in                                                 \
28529      \
28530      examples/simdag/test_simdag                                \
28531      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28532      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28533     ; do                                                        \
28534       test -e $file && chmod +x $file;                          \
28535     done
28536  ;;
28537     "examples/amok/bandwidth/Makefile":F)
28538     for file in                                                 \
28539      \
28540      examples/simdag/test_simdag                                \
28541      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28542      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28543     ; do                                                        \
28544       test -e $file && chmod +x $file;                          \
28545     done
28546  ;;
28547     "examples/amok/bandwidth/test_sg":F)
28548     for file in                                                 \
28549      \
28550      examples/simdag/test_simdag                                \
28551      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28552      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28553     ; do                                                        \
28554       test -e $file && chmod +x $file;                          \
28555     done
28556  ;;
28557     "examples/amok/bandwidth/test_rl":F)
28558     for file in                                                 \
28559      \
28560      examples/simdag/test_simdag                                \
28561      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28562      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28563     ; do                                                        \
28564       test -e $file && chmod +x $file;                          \
28565     done
28566  ;;
28567     "examples/amok/saturate/Makefile":F)
28568     for file in                                                 \
28569      \
28570      examples/simdag/test_simdag                                \
28571      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28572      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28573     ; do                                                        \
28574       test -e $file && chmod +x $file;                          \
28575     done
28576  ;;
28577     "examples/amok/saturate/test_sg":F)
28578     for file in                                                 \
28579      \
28580      examples/simdag/test_simdag                                \
28581      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28582      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28583     ; do                                                        \
28584       test -e $file && chmod +x $file;                          \
28585     done
28586  ;;
28587     "examples/amok/saturate/test_rl":F)
28588     for file in                                                 \
28589      \
28590      examples/simdag/test_simdag                                \
28591      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28592      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28593     ; do                                                        \
28594       test -e $file && chmod +x $file;                          \
28595     done
28596  ;;
28597
28598   esac
28599 done # for ac_tag
28600
28601
28602 { (exit 0); exit 0; }
28603 _ACEOF
28604 chmod +x $CONFIG_STATUS
28605 ac_clean_files=$ac_clean_files_save
28606
28607
28608 # configure is writing to config.log, and then calls config.status.
28609 # config.status does its own redirection, appending to config.log.
28610 # Unfortunately, on DOS this fails, as config.log is still kept open
28611 # by configure, so config.status won't be able to write to it; its
28612 # output is simply discarded.  So we exec the FD to /dev/null,
28613 # effectively closing config.log, so it can be properly (re)opened and
28614 # appended to by config.status.  When coming back to configure, we
28615 # need to make the FD available again.
28616 if test "$no_create" != yes; then
28617   ac_cs_success=:
28618   ac_config_status_args=
28619   test "$silent" = yes &&
28620     ac_config_status_args="$ac_config_status_args --quiet"
28621   exec 5>/dev/null
28622   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28623   exec 5>>config.log
28624   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28625   # would make configure fail if this is the last instruction.
28626   $ac_cs_success || { (exit 1); exit 1; }
28627 fi
28628
28629
28630 echo "
28631
28632 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28633
28634         Compiler:        ${CC} (version: ${GCC_VERSION})
28635
28636         CFlags:          ${CFLAGS}
28637         CPPFlags:        ${CPPFLAGS}
28638         LDFlags:         ${LDFLAGS}
28639
28640         Context backend: ${with_context}
28641 "
28642
28643 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28644   echo "WARNING:"
28645   echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28646   echo "WARNING: You won't be able to build archives that way (make dist is likely to fail). "
28647   echo "WARNING: If you want to enable the maintainer mode, juste specify it like this:"
28648   echo "WARNING:"
28649   echo "WARNING: ./configure '--enable-maintainer-mode' $ac_configure_args"
28650   echo "WARNING:"
28651 fi
28652 echo $build_id > stamp.configure
28653
28654 exit 0;