Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Missing file
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.136 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for simgrid 3.1.1-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 exec 7<&0 </dev/null 6>&1
710
711 # Name of the host.
712 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713 # so uname gets run too.
714 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
715
716 #
717 # Initializations.
718 #
719 ac_default_prefix=/usr/local
720 ac_clean_files=
721 ac_config_libobj_dir=.
722 LIBOBJS=
723 cross_compiling=no
724 subdirs=
725 MFLAGS=
726 MAKEFLAGS=
727 SHELL=${CONFIG_SHELL-/bin/sh}
728
729 # Identity of this package.
730 PACKAGE_NAME='simgrid'
731 PACKAGE_TARNAME='simgrid'
732 PACKAGE_VERSION='3.1.1-cvs'
733 PACKAGE_STRING='simgrid 3.1.1-cvs'
734 PACKAGE_BUGREPORT='simgrid-devel@lists.gforge.inria.fr'
735
736 ac_unique_file="include/gras.h"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
739 #include <stdio.h>
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
742 #endif
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
745 #endif
746 #ifdef STDC_HEADERS
747 # include <stdlib.h>
748 # include <stddef.h>
749 #else
750 # ifdef HAVE_STDLIB_H
751 #  include <stdlib.h>
752 # endif
753 #endif
754 #ifdef HAVE_STRING_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #  include <memory.h>
757 # endif
758 # include <string.h>
759 #endif
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
762 #endif
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
765 #endif
766 #ifdef HAVE_STDINT_H
767 # include <stdint.h>
768 #endif
769 #ifdef HAVE_UNISTD_H
770 # include <unistd.h>
771 #endif"
772
773 ac_subst_vars='SHELL
774 PATH_SEPARATOR
775 PACKAGE_NAME
776 PACKAGE_TARNAME
777 PACKAGE_VERSION
778 PACKAGE_STRING
779 PACKAGE_BUGREPORT
780 exec_prefix
781 prefix
782 program_transform_name
783 bindir
784 sbindir
785 libexecdir
786 datarootdir
787 datadir
788 sysconfdir
789 sharedstatedir
790 localstatedir
791 includedir
792 oldincludedir
793 docdir
794 infodir
795 htmldir
796 dvidir
797 pdfdir
798 psdir
799 libdir
800 localedir
801 mandir
802 DEFS
803 ECHO_C
804 ECHO_N
805 ECHO_T
806 LIBS
807 build_alias
808 host_alias
809 target_alias
810 build
811 build_cpu
812 build_vendor
813 build_os
814 host
815 host_cpu
816 host_vendor
817 host_os
818 target
819 target_cpu
820 target_vendor
821 target_os
822 INSTALL_PROGRAM
823 INSTALL_SCRIPT
824 INSTALL_DATA
825 CYGPATH_W
826 PACKAGE
827 VERSION
828 ACLOCAL
829 AUTOCONF
830 AUTOMAKE
831 AUTOHEADER
832 MAKEINFO
833 install_sh
834 STRIP
835 INSTALL_STRIP_PROGRAM
836 mkdir_p
837 AWK
838 SET_MAKE
839 am__leading_dot
840 AMTAR
841 am__tar
842 am__untar
843 CC
844 CFLAGS
845 LDFLAGS
846 CPPFLAGS
847 ac_ct_CC
848 EXEEXT
849 OBJEXT
850 DEPDIR
851 am__include
852 am__quote
853 AMDEP_TRUE
854 AMDEP_FALSE
855 AMDEPBACKSLASH
856 CCDEPMODE
857 am__fastdepCC_TRUE
858 am__fastdepCC_FALSE
859 GREP
860 EGREP
861 LN_S
862 ECHO
863 AR
864 RANLIB
865 DLLTOOL
866 AS
867 OBJDUMP
868 CPP
869 CXX
870 CXXFLAGS
871 ac_ct_CXX
872 CXXDEPMODE
873 am__fastdepCXX_TRUE
874 am__fastdepCXX_FALSE
875 CXXCPP
876 F77
877 FFLAGS
878 ac_ct_F77
879 LIBTOOL
880 LIBOBJS
881 PTH_STACK_GROWTH
882 pth_skaddr_makecontext
883 pth_sksize_makecontext
884 SIMGRID_DEP
885 GRAS_DEP
886 GRAMINE_MODE_TRUE
887 GRAMINE_MODE_FALSE
888 MAINTAINER_MODE_TRUE
889 MAINTAINER_MODE_FALSE
890 MAINT
891 LD_DYNAMIC_FLAGS
892 abs_builddir
893 abs_srcdir
894 abs_top_builddir
895 abs_top_srcdir
896 BASH
897 WARNING
898 LEX
899 LEX_OUTPUT_ROOT
900 LEXLIB
901 FLEXML
902 HAVE_FLEXML_TRUE
903 HAVE_FLEXML_FALSE
904 DOXYGEN
905 ADDR2LINE
906 ac_configure_args
907 MD5SUM
908 build_id
909 LTLIBOBJS'
910 ac_subst_files=''
911       ac_precious_vars='build_alias
912 host_alias
913 target_alias
914 CC
915 CFLAGS
916 LDFLAGS
917 LIBS
918 CPPFLAGS
919 CPP
920 CXX
921 CXXFLAGS
922 CCC
923 CXXCPP
924 F77
925 FFLAGS'
926
927
928 # Initialize some variables set by options.
929 ac_init_help=
930 ac_init_version=false
931 # The variables have the same names as the options, with
932 # dashes changed to underlines.
933 cache_file=/dev/null
934 exec_prefix=NONE
935 no_create=
936 no_recursion=
937 prefix=NONE
938 program_prefix=NONE
939 program_suffix=NONE
940 program_transform_name=s,x,x,
941 silent=
942 site=
943 srcdir=
944 verbose=
945 x_includes=NONE
946 x_libraries=NONE
947
948 # Installation directory options.
949 # These are left unexpanded so users can "make install exec_prefix=/foo"
950 # and all the variables that are supposed to be based on exec_prefix
951 # by default will actually change.
952 # Use braces instead of parens because sh, perl, etc. also accept them.
953 # (The list follows the same order as the GNU Coding Standards.)
954 bindir='${exec_prefix}/bin'
955 sbindir='${exec_prefix}/sbin'
956 libexecdir='${exec_prefix}/libexec'
957 datarootdir='${prefix}/share'
958 datadir='${datarootdir}'
959 sysconfdir='${prefix}/etc'
960 sharedstatedir='${prefix}/com'
961 localstatedir='${prefix}/var'
962 includedir='${prefix}/include'
963 oldincludedir='/usr/include'
964 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
965 infodir='${datarootdir}/info'
966 htmldir='${docdir}'
967 dvidir='${docdir}'
968 pdfdir='${docdir}'
969 psdir='${docdir}'
970 libdir='${exec_prefix}/lib'
971 localedir='${datarootdir}/locale'
972 mandir='${datarootdir}/man'
973
974 ac_prev=
975 ac_dashdash=
976 for ac_option
977 do
978   # If the previous option needs an argument, assign it.
979   if test -n "$ac_prev"; then
980     eval $ac_prev=\$ac_option
981     ac_prev=
982     continue
983   fi
984
985   case $ac_option in
986   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
987   *)    ac_optarg=yes ;;
988   esac
989
990   # Accept the important Cygnus configure options, so we can diagnose typos.
991
992   case $ac_dashdash$ac_option in
993   --)
994     ac_dashdash=yes ;;
995
996   -bindir | --bindir | --bindi | --bind | --bin | --bi)
997     ac_prev=bindir ;;
998   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
999     bindir=$ac_optarg ;;
1000
1001   -build | --build | --buil | --bui | --bu)
1002     ac_prev=build_alias ;;
1003   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1004     build_alias=$ac_optarg ;;
1005
1006   -cache-file | --cache-file | --cache-fil | --cache-fi \
1007   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1008     ac_prev=cache_file ;;
1009   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1010   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1011     cache_file=$ac_optarg ;;
1012
1013   --config-cache | -C)
1014     cache_file=config.cache ;;
1015
1016   -datadir | --datadir | --datadi | --datad)
1017     ac_prev=datadir ;;
1018   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1019     datadir=$ac_optarg ;;
1020
1021   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1022   | --dataroo | --dataro | --datar)
1023     ac_prev=datarootdir ;;
1024   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1025   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1026     datarootdir=$ac_optarg ;;
1027
1028   -disable-* | --disable-*)
1029     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1030     # Reject names that are not valid shell variable names.
1031     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1032       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1033    { (exit 1); exit 1; }; }
1034     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1035     eval enable_$ac_feature=no ;;
1036
1037   -docdir | --docdir | --docdi | --doc | --do)
1038     ac_prev=docdir ;;
1039   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1040     docdir=$ac_optarg ;;
1041
1042   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1043     ac_prev=dvidir ;;
1044   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1045     dvidir=$ac_optarg ;;
1046
1047   -enable-* | --enable-*)
1048     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1049     # Reject names that are not valid shell variable names.
1050     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1051       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1052    { (exit 1); exit 1; }; }
1053     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1054     eval enable_$ac_feature=\$ac_optarg ;;
1055
1056   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1057   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1058   | --exec | --exe | --ex)
1059     ac_prev=exec_prefix ;;
1060   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1061   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1062   | --exec=* | --exe=* | --ex=*)
1063     exec_prefix=$ac_optarg ;;
1064
1065   -gas | --gas | --ga | --g)
1066     # Obsolete; use --with-gas.
1067     with_gas=yes ;;
1068
1069   -help | --help | --hel | --he | -h)
1070     ac_init_help=long ;;
1071   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1072     ac_init_help=recursive ;;
1073   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1074     ac_init_help=short ;;
1075
1076   -host | --host | --hos | --ho)
1077     ac_prev=host_alias ;;
1078   -host=* | --host=* | --hos=* | --ho=*)
1079     host_alias=$ac_optarg ;;
1080
1081   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1082     ac_prev=htmldir ;;
1083   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1084   | --ht=*)
1085     htmldir=$ac_optarg ;;
1086
1087   -includedir | --includedir | --includedi | --included | --include \
1088   | --includ | --inclu | --incl | --inc)
1089     ac_prev=includedir ;;
1090   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1091   | --includ=* | --inclu=* | --incl=* | --inc=*)
1092     includedir=$ac_optarg ;;
1093
1094   -infodir | --infodir | --infodi | --infod | --info | --inf)
1095     ac_prev=infodir ;;
1096   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1097     infodir=$ac_optarg ;;
1098
1099   -libdir | --libdir | --libdi | --libd)
1100     ac_prev=libdir ;;
1101   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1102     libdir=$ac_optarg ;;
1103
1104   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1105   | --libexe | --libex | --libe)
1106     ac_prev=libexecdir ;;
1107   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1108   | --libexe=* | --libex=* | --libe=*)
1109     libexecdir=$ac_optarg ;;
1110
1111   -localedir | --localedir | --localedi | --localed | --locale)
1112     ac_prev=localedir ;;
1113   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1114     localedir=$ac_optarg ;;
1115
1116   -localstatedir | --localstatedir | --localstatedi | --localstated \
1117   | --localstate | --localstat | --localsta | --localst | --locals)
1118     ac_prev=localstatedir ;;
1119   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1120   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1121     localstatedir=$ac_optarg ;;
1122
1123   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1124     ac_prev=mandir ;;
1125   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1126     mandir=$ac_optarg ;;
1127
1128   -nfp | --nfp | --nf)
1129     # Obsolete; use --without-fp.
1130     with_fp=no ;;
1131
1132   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1133   | --no-cr | --no-c | -n)
1134     no_create=yes ;;
1135
1136   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1137   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1138     no_recursion=yes ;;
1139
1140   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1141   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1142   | --oldin | --oldi | --old | --ol | --o)
1143     ac_prev=oldincludedir ;;
1144   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1145   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1146   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1147     oldincludedir=$ac_optarg ;;
1148
1149   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1150     ac_prev=prefix ;;
1151   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1152     prefix=$ac_optarg ;;
1153
1154   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1155   | --program-pre | --program-pr | --program-p)
1156     ac_prev=program_prefix ;;
1157   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1158   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1159     program_prefix=$ac_optarg ;;
1160
1161   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1162   | --program-suf | --program-su | --program-s)
1163     ac_prev=program_suffix ;;
1164   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1165   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1166     program_suffix=$ac_optarg ;;
1167
1168   -program-transform-name | --program-transform-name \
1169   | --program-transform-nam | --program-transform-na \
1170   | --program-transform-n | --program-transform- \
1171   | --program-transform | --program-transfor \
1172   | --program-transfo | --program-transf \
1173   | --program-trans | --program-tran \
1174   | --progr-tra | --program-tr | --program-t)
1175     ac_prev=program_transform_name ;;
1176   -program-transform-name=* | --program-transform-name=* \
1177   | --program-transform-nam=* | --program-transform-na=* \
1178   | --program-transform-n=* | --program-transform-=* \
1179   | --program-transform=* | --program-transfor=* \
1180   | --program-transfo=* | --program-transf=* \
1181   | --program-trans=* | --program-tran=* \
1182   | --progr-tra=* | --program-tr=* | --program-t=*)
1183     program_transform_name=$ac_optarg ;;
1184
1185   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1186     ac_prev=pdfdir ;;
1187   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1188     pdfdir=$ac_optarg ;;
1189
1190   -psdir | --psdir | --psdi | --psd | --ps)
1191     ac_prev=psdir ;;
1192   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1193     psdir=$ac_optarg ;;
1194
1195   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1196   | -silent | --silent | --silen | --sile | --sil)
1197     silent=yes ;;
1198
1199   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1200     ac_prev=sbindir ;;
1201   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1202   | --sbi=* | --sb=*)
1203     sbindir=$ac_optarg ;;
1204
1205   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1206   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1207   | --sharedst | --shareds | --shared | --share | --shar \
1208   | --sha | --sh)
1209     ac_prev=sharedstatedir ;;
1210   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1211   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1212   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1213   | --sha=* | --sh=*)
1214     sharedstatedir=$ac_optarg ;;
1215
1216   -site | --site | --sit)
1217     ac_prev=site ;;
1218   -site=* | --site=* | --sit=*)
1219     site=$ac_optarg ;;
1220
1221   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1222     ac_prev=srcdir ;;
1223   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1224     srcdir=$ac_optarg ;;
1225
1226   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1227   | --syscon | --sysco | --sysc | --sys | --sy)
1228     ac_prev=sysconfdir ;;
1229   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1230   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1231     sysconfdir=$ac_optarg ;;
1232
1233   -target | --target | --targe | --targ | --tar | --ta | --t)
1234     ac_prev=target_alias ;;
1235   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1236     target_alias=$ac_optarg ;;
1237
1238   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1239     verbose=yes ;;
1240
1241   -version | --version | --versio | --versi | --vers | -V)
1242     ac_init_version=: ;;
1243
1244   -with-* | --with-*)
1245     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1246     # Reject names that are not valid shell variable names.
1247     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248       { echo "$as_me: error: invalid package name: $ac_package" >&2
1249    { (exit 1); exit 1; }; }
1250     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1251     eval with_$ac_package=\$ac_optarg ;;
1252
1253   -without-* | --without-*)
1254     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1255     # Reject names that are not valid shell variable names.
1256     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257       { echo "$as_me: error: invalid package name: $ac_package" >&2
1258    { (exit 1); exit 1; }; }
1259     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1260     eval with_$ac_package=no ;;
1261
1262   --x)
1263     # Obsolete; use --with-x.
1264     with_x=yes ;;
1265
1266   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1267   | --x-incl | --x-inc | --x-in | --x-i)
1268     ac_prev=x_includes ;;
1269   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1270   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1271     x_includes=$ac_optarg ;;
1272
1273   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1274   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1275     ac_prev=x_libraries ;;
1276   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1277   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1278     x_libraries=$ac_optarg ;;
1279
1280   -*) { echo "$as_me: error: unrecognized option: $ac_option
1281 Try \`$0 --help' for more information." >&2
1282    { (exit 1); exit 1; }; }
1283     ;;
1284
1285   *=*)
1286     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1287     # Reject names that are not valid shell variable names.
1288     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1289       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1290    { (exit 1); exit 1; }; }
1291     eval $ac_envvar=\$ac_optarg
1292     export $ac_envvar ;;
1293
1294   *)
1295     # FIXME: should be removed in autoconf 3.0.
1296     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1297     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1299     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1300     ;;
1301
1302   esac
1303 done
1304
1305 if test -n "$ac_prev"; then
1306   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1307   { echo "$as_me: error: missing argument to $ac_option" >&2
1308    { (exit 1); exit 1; }; }
1309 fi
1310
1311 # Be sure to have absolute directory names.
1312 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313                 datadir sysconfdir sharedstatedir localstatedir includedir \
1314                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315                 libdir localedir mandir
1316 do
1317   eval ac_val=\$$ac_var
1318   case $ac_val in
1319     [\\/$]* | ?:[\\/]* )  continue;;
1320     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1321   esac
1322   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1323    { (exit 1); exit 1; }; }
1324 done
1325
1326 # There might be people who depend on the old broken behavior: `$host'
1327 # used to hold the argument of --host etc.
1328 # FIXME: To remove some day.
1329 build=$build_alias
1330 host=$host_alias
1331 target=$target_alias
1332
1333 # FIXME: To remove some day.
1334 if test "x$host_alias" != x; then
1335   if test "x$build_alias" = x; then
1336     cross_compiling=maybe
1337     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1338     If a cross compiler is detected then cross compile mode will be used." >&2
1339   elif test "x$build_alias" != "x$host_alias"; then
1340     cross_compiling=yes
1341   fi
1342 fi
1343
1344 ac_tool_prefix=
1345 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
1347 test "$silent" = yes && exec 6>/dev/null
1348
1349
1350 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351 ac_ls_di=`ls -di .` &&
1352 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353   { echo "$as_me: error: Working directory cannot be determined" >&2
1354    { (exit 1); exit 1; }; }
1355 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356   { echo "$as_me: error: pwd does not report name of working directory" >&2
1357    { (exit 1); exit 1; }; }
1358
1359
1360 # Find the source files, if location was not specified.
1361 if test -z "$srcdir"; then
1362   ac_srcdir_defaulted=yes
1363   # Try the directory containing this script, then the parent directory.
1364   ac_confdir=`$as_dirname -- "$0" ||
1365 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366          X"$0" : 'X\(//\)[^/]' \| \
1367          X"$0" : 'X\(//\)$' \| \
1368          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1369 echo X"$0" |
1370     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371             s//\1/
1372             q
1373           }
1374           /^X\(\/\/\)[^/].*/{
1375             s//\1/
1376             q
1377           }
1378           /^X\(\/\/\)$/{
1379             s//\1/
1380             q
1381           }
1382           /^X\(\/\).*/{
1383             s//\1/
1384             q
1385           }
1386           s/.*/./; q'`
1387   srcdir=$ac_confdir
1388   if test ! -r "$srcdir/$ac_unique_file"; then
1389     srcdir=..
1390   fi
1391 else
1392   ac_srcdir_defaulted=no
1393 fi
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1396   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1397    { (exit 1); exit 1; }; }
1398 fi
1399 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400 ac_abs_confdir=`(
1401         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1402    { (exit 1); exit 1; }; }
1403         pwd)`
1404 # When building in place, set srcdir=.
1405 if test "$ac_abs_confdir" = "$ac_pwd"; then
1406   srcdir=.
1407 fi
1408 # Remove unnecessary trailing slashes from srcdir.
1409 # Double slashes in file names in object file debugging info
1410 # mess up M-x gdb in Emacs.
1411 case $srcdir in
1412 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413 esac
1414 for ac_var in $ac_precious_vars; do
1415   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416   eval ac_env_${ac_var}_value=\$${ac_var}
1417   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1419 done
1420
1421 #
1422 # Report the --help message.
1423 #
1424 if test "$ac_init_help" = "long"; then
1425   # Omit some internal or obsolete options to make the list less imposing.
1426   # This message is too long to be a string in the A/UX 3.1 sh.
1427   cat <<_ACEOF
1428 \`configure' configures simgrid 3.1.1-cvs to adapt to many kinds of systems.
1429
1430 Usage: $0 [OPTION]... [VAR=VALUE]...
1431
1432 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433 VAR=VALUE.  See below for descriptions of some of the useful variables.
1434
1435 Defaults for the options are specified in brackets.
1436
1437 Configuration:
1438   -h, --help              display this help and exit
1439       --help=short        display options specific to this package
1440       --help=recursive    display the short help of all the included packages
1441   -V, --version           display version information and exit
1442   -q, --quiet, --silent   do not print \`checking...' messages
1443       --cache-file=FILE   cache test results in FILE [disabled]
1444   -C, --config-cache      alias for \`--cache-file=config.cache'
1445   -n, --no-create         do not create output files
1446       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1447
1448 Installation directories:
1449   --prefix=PREFIX         install architecture-independent files in PREFIX
1450                           [$ac_default_prefix]
1451   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1452                           [PREFIX]
1453
1454 By default, \`make install' will install all the files in
1455 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1456 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457 for instance \`--prefix=\$HOME'.
1458
1459 For better control, use the options below.
1460
1461 Fine tuning of the installation directories:
1462   --bindir=DIR           user executables [EPREFIX/bin]
1463   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1464   --libexecdir=DIR       program executables [EPREFIX/libexec]
1465   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1466   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1467   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1468   --libdir=DIR           object code libraries [EPREFIX/lib]
1469   --includedir=DIR       C header files [PREFIX/include]
1470   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1471   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1472   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1473   --infodir=DIR          info documentation [DATAROOTDIR/info]
1474   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1475   --mandir=DIR           man documentation [DATAROOTDIR/man]
1476   --docdir=DIR           documentation root [DATAROOTDIR/doc/simgrid]
1477   --htmldir=DIR          html documentation [DOCDIR]
1478   --dvidir=DIR           dvi documentation [DOCDIR]
1479   --pdfdir=DIR           pdf documentation [DOCDIR]
1480   --psdir=DIR            ps documentation [DOCDIR]
1481 _ACEOF
1482
1483   cat <<\_ACEOF
1484
1485 Program names:
1486   --program-prefix=PREFIX            prepend PREFIX to installed program names
1487   --program-suffix=SUFFIX            append SUFFIX to installed program names
1488   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1489
1490 System types:
1491   --build=BUILD     configure for building on BUILD [guessed]
1492   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1493   --target=TARGET   configure for building compilers for TARGET [HOST]
1494 _ACEOF
1495 fi
1496
1497 if test -n "$ac_init_help"; then
1498   case $ac_init_help in
1499      short | recursive ) echo "Configuration of simgrid 3.1.1-cvs:";;
1500    esac
1501   cat <<\_ACEOF
1502
1503 Optional Features:
1504   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1505   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1506   --enable-shared[=PKGS]  build shared libraries [default=yes]
1507   --enable-static[=PKGS]  build static libraries [default=yes]
1508   --enable-fast-install[=PKGS]
1509                           optimize for fast installation [default=yes]
1510   --disable-dependency-tracking  speeds up one-time build
1511   --enable-dependency-tracking   do not reject slow dependency extractors
1512   --disable-libtool-lock  avoid locking (might break parallel builds)
1513   --enable-maintainer-mode  enable make rules and dependencies not useful
1514                           (and sometimes confusing) to the casual installer
1515   --enable-compile-warnings
1516                           use compiler warnings (default=no, unless in
1517                           maintainer mode)
1518   --disable-compile-optimizations
1519                           use compiler optimizations (default=yes, unless if
1520                           CFLAGS is explicitly set)
1521
1522 Optional Packages:
1523   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1524   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1525   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1526   --with-pic              try to use only PIC/non-PIC objects [default=use
1527                           both]
1528   --with-tags[=TAGS]      include additional configurations [automatic]
1529   --with-pthread   Use pthread instead of ucontext.
1530   --with-context=ucontext/pthread   Use either (System V) swapcontext or pthread [default=auto].
1531
1532 Some influential environment variables:
1533   CC          C compiler command
1534   CFLAGS      C compiler flags
1535   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1536               nonstandard directory <lib dir>
1537   LIBS        libraries to pass to the linker, e.g. -l<library>
1538   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1539               you have headers in a nonstandard directory <include dir>
1540   CPP         C preprocessor
1541   CXX         C++ compiler command
1542   CXXFLAGS    C++ compiler flags
1543   CXXCPP      C++ preprocessor
1544   F77         Fortran 77 compiler command
1545   FFLAGS      Fortran 77 compiler flags
1546
1547 Use these variables to override the choices made by `configure' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1549
1550 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1551 _ACEOF
1552 ac_status=$?
1553 fi
1554
1555 if test "$ac_init_help" = "recursive"; then
1556   # If there are subdirs, report their specific --help.
1557   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558     test -d "$ac_dir" || continue
1559     ac_builddir=.
1560
1561 case "$ac_dir" in
1562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *)
1564   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1565   # A ".." for each directory in $ac_dir_suffix.
1566   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1567   case $ac_top_builddir_sub in
1568   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570   esac ;;
1571 esac
1572 ac_abs_top_builddir=$ac_pwd
1573 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1574 # for backward compatibility:
1575 ac_top_builddir=$ac_top_build_prefix
1576
1577 case $srcdir in
1578   .)  # We are building in place.
1579     ac_srcdir=.
1580     ac_top_srcdir=$ac_top_builddir_sub
1581     ac_abs_top_srcdir=$ac_pwd ;;
1582   [\\/]* | ?:[\\/]* )  # Absolute name.
1583     ac_srcdir=$srcdir$ac_dir_suffix;
1584     ac_top_srcdir=$srcdir
1585     ac_abs_top_srcdir=$srcdir ;;
1586   *) # Relative name.
1587     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1588     ac_top_srcdir=$ac_top_build_prefix$srcdir
1589     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590 esac
1591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592
1593     cd "$ac_dir" || { ac_status=$?; continue; }
1594     # Check for guested configure.
1595     if test -f "$ac_srcdir/configure.gnu"; then
1596       echo &&
1597       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598     elif test -f "$ac_srcdir/configure"; then
1599       echo &&
1600       $SHELL "$ac_srcdir/configure" --help=recursive
1601     else
1602       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603     fi || ac_status=$?
1604     cd "$ac_pwd" || { ac_status=$?; break; }
1605   done
1606 fi
1607
1608 test -n "$ac_init_help" && exit $ac_status
1609 if $ac_init_version; then
1610   cat <<\_ACEOF
1611 simgrid configure 3.1.1-cvs
1612 generated by GNU Autoconf 2.61
1613
1614 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1615 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it.
1618 _ACEOF
1619   exit
1620 fi
1621 cat >config.log <<_ACEOF
1622 This file contains any messages produced by compilers while
1623 running configure, to aid debugging if configure makes a mistake.
1624
1625 It was created by simgrid $as_me 3.1.1-cvs, which was
1626 generated by GNU Autoconf 2.61.  Invocation command line was
1627
1628   $ $0 $@
1629
1630 _ACEOF
1631 exec 5>>config.log
1632 {
1633 cat <<_ASUNAME
1634 ## --------- ##
1635 ## Platform. ##
1636 ## --------- ##
1637
1638 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1639 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1640 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1641 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1642 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1643
1644 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1645 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1646
1647 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1648 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1649 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1650 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1651 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1652 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1653 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1654
1655 _ASUNAME
1656
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 for as_dir in $PATH
1659 do
1660   IFS=$as_save_IFS
1661   test -z "$as_dir" && as_dir=.
1662   echo "PATH: $as_dir"
1663 done
1664 IFS=$as_save_IFS
1665
1666 } >&5
1667
1668 cat >&5 <<_ACEOF
1669
1670
1671 ## ----------- ##
1672 ## Core tests. ##
1673 ## ----------- ##
1674
1675 _ACEOF
1676
1677
1678 # Keep a trace of the command line.
1679 # Strip out --no-create and --no-recursion so they do not pile up.
1680 # Strip out --silent because we don't want to record it for future runs.
1681 # Also quote any args containing shell meta-characters.
1682 # Make two passes to allow for proper duplicate-argument suppression.
1683 ac_configure_args=
1684 ac_configure_args0=
1685 ac_configure_args1=
1686 ac_must_keep_next=false
1687 for ac_pass in 1 2
1688 do
1689   for ac_arg
1690   do
1691     case $ac_arg in
1692     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1693     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1694     | -silent | --silent | --silen | --sile | --sil)
1695       continue ;;
1696     *\'*)
1697       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1698     esac
1699     case $ac_pass in
1700     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1701     2)
1702       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1703       if test $ac_must_keep_next = true; then
1704         ac_must_keep_next=false # Got value, back to normal.
1705       else
1706         case $ac_arg in
1707           *=* | --config-cache | -C | -disable-* | --disable-* \
1708           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1709           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1710           | -with-* | --with-* | -without-* | --without-* | --x)
1711             case "$ac_configure_args0 " in
1712               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1713             esac
1714             ;;
1715           -* ) ac_must_keep_next=true ;;
1716         esac
1717       fi
1718       ac_configure_args="$ac_configure_args '$ac_arg'"
1719       ;;
1720     esac
1721   done
1722 done
1723 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1724 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1725
1726 # When interrupted or exit'd, cleanup temporary files, and complete
1727 # config.log.  We remove comments because anyway the quotes in there
1728 # would cause problems or look ugly.
1729 # WARNING: Use '\'' to represent an apostrophe within the trap.
1730 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1731 trap 'exit_status=$?
1732   # Save into config.log some information that might help in debugging.
1733   {
1734     echo
1735
1736     cat <<\_ASBOX
1737 ## ---------------- ##
1738 ## Cache variables. ##
1739 ## ---------------- ##
1740 _ASBOX
1741     echo
1742     # The following way of writing the cache mishandles newlines in values,
1743 (
1744   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1745     eval ac_val=\$$ac_var
1746     case $ac_val in #(
1747     *${as_nl}*)
1748       case $ac_var in #(
1749       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1750 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1751       esac
1752       case $ac_var in #(
1753       _ | IFS | as_nl) ;; #(
1754       *) $as_unset $ac_var ;;
1755       esac ;;
1756     esac
1757   done
1758   (set) 2>&1 |
1759     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1760     *${as_nl}ac_space=\ *)
1761       sed -n \
1762         "s/'\''/'\''\\\\'\'''\''/g;
1763           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1764       ;; #(
1765     *)
1766       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1767       ;;
1768     esac |
1769     sort
1770 )
1771     echo
1772
1773     cat <<\_ASBOX
1774 ## ----------------- ##
1775 ## Output variables. ##
1776 ## ----------------- ##
1777 _ASBOX
1778     echo
1779     for ac_var in $ac_subst_vars
1780     do
1781       eval ac_val=\$$ac_var
1782       case $ac_val in
1783       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1784       esac
1785       echo "$ac_var='\''$ac_val'\''"
1786     done | sort
1787     echo
1788
1789     if test -n "$ac_subst_files"; then
1790       cat <<\_ASBOX
1791 ## ------------------- ##
1792 ## File substitutions. ##
1793 ## ------------------- ##
1794 _ASBOX
1795       echo
1796       for ac_var in $ac_subst_files
1797       do
1798         eval ac_val=\$$ac_var
1799         case $ac_val in
1800         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1801         esac
1802         echo "$ac_var='\''$ac_val'\''"
1803       done | sort
1804       echo
1805     fi
1806
1807     if test -s confdefs.h; then
1808       cat <<\_ASBOX
1809 ## ----------- ##
1810 ## confdefs.h. ##
1811 ## ----------- ##
1812 _ASBOX
1813       echo
1814       cat confdefs.h
1815       echo
1816     fi
1817     test "$ac_signal" != 0 &&
1818       echo "$as_me: caught signal $ac_signal"
1819     echo "$as_me: exit $exit_status"
1820   } >&5
1821   rm -f core *.core core.conftest.* &&
1822     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1823     exit $exit_status
1824 ' 0
1825 for ac_signal in 1 2 13 15; do
1826   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1827 done
1828 ac_signal=0
1829
1830 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1831 rm -f -r conftest* confdefs.h
1832
1833 # Predefined preprocessor variables.
1834
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_NAME "$PACKAGE_NAME"
1837 _ACEOF
1838
1839
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1842 _ACEOF
1843
1844
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1847 _ACEOF
1848
1849
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_STRING "$PACKAGE_STRING"
1852 _ACEOF
1853
1854
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1857 _ACEOF
1858
1859
1860 # Let the site file select an alternate cache file if it wants to.
1861 # Prefer explicitly selected file to automatically selected ones.
1862 if test -n "$CONFIG_SITE"; then
1863   set x "$CONFIG_SITE"
1864 elif test "x$prefix" != xNONE; then
1865   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1866 else
1867   set x "$ac_default_prefix/share/config.site" \
1868         "$ac_default_prefix/etc/config.site"
1869 fi
1870 shift
1871 for ac_site_file
1872 do
1873   if test -r "$ac_site_file"; then
1874     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1875 echo "$as_me: loading site script $ac_site_file" >&6;}
1876     sed 's/^/| /' "$ac_site_file" >&5
1877     . "$ac_site_file"
1878   fi
1879 done
1880
1881 if test -r "$cache_file"; then
1882   # Some versions of bash will fail to source /dev/null (special
1883   # files actually), so we avoid doing that.
1884   if test -f "$cache_file"; then
1885     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1886 echo "$as_me: loading cache $cache_file" >&6;}
1887     case $cache_file in
1888       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1889       *)                      . "./$cache_file";;
1890     esac
1891   fi
1892 else
1893   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1894 echo "$as_me: creating cache $cache_file" >&6;}
1895   >$cache_file
1896 fi
1897
1898 # Check that the precious variables saved in the cache have kept the same
1899 # value.
1900 ac_cache_corrupted=false
1901 for ac_var in $ac_precious_vars; do
1902   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1903   eval ac_new_set=\$ac_env_${ac_var}_set
1904   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1905   eval ac_new_val=\$ac_env_${ac_var}_value
1906   case $ac_old_set,$ac_new_set in
1907     set,)
1908       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1909 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1910       ac_cache_corrupted=: ;;
1911     ,set)
1912       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1913 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1914       ac_cache_corrupted=: ;;
1915     ,);;
1916     *)
1917       if test "x$ac_old_val" != "x$ac_new_val"; then
1918         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1919 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1920         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1921 echo "$as_me:   former value:  $ac_old_val" >&2;}
1922         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1923 echo "$as_me:   current value: $ac_new_val" >&2;}
1924         ac_cache_corrupted=:
1925       fi;;
1926   esac
1927   # Pass precious variables to config.status.
1928   if test "$ac_new_set" = set; then
1929     case $ac_new_val in
1930     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1931     *) ac_arg=$ac_var=$ac_new_val ;;
1932     esac
1933     case " $ac_configure_args " in
1934       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1935       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1936     esac
1937   fi
1938 done
1939 if $ac_cache_corrupted; then
1940   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1941 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1942   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1943 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1944    { (exit 1); exit 1; }; }
1945 fi
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971 ac_ext=c
1972 ac_cpp='$CPP $CPPFLAGS'
1973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1976
1977
1978
1979 ac_config_headers="$ac_config_headers src/gras_config.h"
1980
1981 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
1982
1983
1984 ac_aux_dir=
1985 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1986   if test -f "$ac_dir/install-sh"; then
1987     ac_aux_dir=$ac_dir
1988     ac_install_sh="$ac_aux_dir/install-sh -c"
1989     break
1990   elif test -f "$ac_dir/install.sh"; then
1991     ac_aux_dir=$ac_dir
1992     ac_install_sh="$ac_aux_dir/install.sh -c"
1993     break
1994   elif test -f "$ac_dir/shtool"; then
1995     ac_aux_dir=$ac_dir
1996     ac_install_sh="$ac_aux_dir/shtool install -c"
1997     break
1998   fi
1999 done
2000 if test -z "$ac_aux_dir"; then
2001   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2002 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2003    { (exit 1); exit 1; }; }
2004 fi
2005
2006 # These three variables are undocumented and unsupported,
2007 # and are intended to be withdrawn in a future Autoconf release.
2008 # They can cause serious problems if a builder's source tree is in a directory
2009 # whose full name contains unusual characters.
2010 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2011 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2012 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2013
2014
2015 # Make sure we can run config.sub.
2016 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2017   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2018 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2019    { (exit 1); exit 1; }; }
2020
2021 { echo "$as_me:$LINENO: checking build system type" >&5
2022 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2023 if test "${ac_cv_build+set}" = set; then
2024   echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026   ac_build_alias=$build_alias
2027 test "x$ac_build_alias" = x &&
2028   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2029 test "x$ac_build_alias" = x &&
2030   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2031 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2032    { (exit 1); exit 1; }; }
2033 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2034   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2035 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2036    { (exit 1); exit 1; }; }
2037
2038 fi
2039 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2040 echo "${ECHO_T}$ac_cv_build" >&6; }
2041 case $ac_cv_build in
2042 *-*-*) ;;
2043 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2044 echo "$as_me: error: invalid value of canonical build" >&2;}
2045    { (exit 1); exit 1; }; };;
2046 esac
2047 build=$ac_cv_build
2048 ac_save_IFS=$IFS; IFS='-'
2049 set x $ac_cv_build
2050 shift
2051 build_cpu=$1
2052 build_vendor=$2
2053 shift; shift
2054 # Remember, the first character of IFS is used to create $*,
2055 # except with old shells:
2056 build_os=$*
2057 IFS=$ac_save_IFS
2058 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2059
2060
2061 { echo "$as_me:$LINENO: checking host system type" >&5
2062 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2063 if test "${ac_cv_host+set}" = set; then
2064   echo $ECHO_N "(cached) $ECHO_C" >&6
2065 else
2066   if test "x$host_alias" = x; then
2067   ac_cv_host=$ac_cv_build
2068 else
2069   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2070     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2071 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2072    { (exit 1); exit 1; }; }
2073 fi
2074
2075 fi
2076 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2077 echo "${ECHO_T}$ac_cv_host" >&6; }
2078 case $ac_cv_host in
2079 *-*-*) ;;
2080 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2081 echo "$as_me: error: invalid value of canonical host" >&2;}
2082    { (exit 1); exit 1; }; };;
2083 esac
2084 host=$ac_cv_host
2085 ac_save_IFS=$IFS; IFS='-'
2086 set x $ac_cv_host
2087 shift
2088 host_cpu=$1
2089 host_vendor=$2
2090 shift; shift
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2093 host_os=$*
2094 IFS=$ac_save_IFS
2095 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2096
2097
2098 { echo "$as_me:$LINENO: checking target system type" >&5
2099 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2100 if test "${ac_cv_target+set}" = set; then
2101   echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103   if test "x$target_alias" = x; then
2104   ac_cv_target=$ac_cv_host
2105 else
2106   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2107     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2109    { (exit 1); exit 1; }; }
2110 fi
2111
2112 fi
2113 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2114 echo "${ECHO_T}$ac_cv_target" >&6; }
2115 case $ac_cv_target in
2116 *-*-*) ;;
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2118 echo "$as_me: error: invalid value of canonical target" >&2;}
2119    { (exit 1); exit 1; }; };;
2120 esac
2121 target=$ac_cv_target
2122 ac_save_IFS=$IFS; IFS='-'
2123 set x $ac_cv_target
2124 shift
2125 target_cpu=$1
2126 target_vendor=$2
2127 shift; shift
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2130 target_os=$*
2131 IFS=$ac_save_IFS
2132 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2133
2134
2135 # The aliases save the names the user supplied, while $host etc.
2136 # will get canonicalized.
2137 test -n "$target_alias" &&
2138   test "$program_prefix$program_suffix$program_transform_name" = \
2139     NONENONEs,x,x, &&
2140   program_prefix=${target_alias}-
2141 ac_ext=c
2142 ac_cpp='$CPP $CPPFLAGS'
2143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2146
2147
2148 am__api_version="1.9"
2149 # Find a good install program.  We prefer a C program (faster),
2150 # so one script is as good as another.  But avoid the broken or
2151 # incompatible versions:
2152 # SysV /etc/install, /usr/sbin/install
2153 # SunOS /usr/etc/install
2154 # IRIX /sbin/install
2155 # AIX /bin/install
2156 # AmigaOS /C/install, which installs bootblocks on floppy discs
2157 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2158 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2159 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2160 # OS/2's system install, which has a completely different semantic
2161 # ./install, which can be erroneously created by make from ./install.sh.
2162 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2163 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2164 if test -z "$INSTALL"; then
2165 if test "${ac_cv_path_install+set}" = set; then
2166   echo $ECHO_N "(cached) $ECHO_C" >&6
2167 else
2168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169 for as_dir in $PATH
2170 do
2171   IFS=$as_save_IFS
2172   test -z "$as_dir" && as_dir=.
2173   # Account for people who put trailing slashes in PATH elements.
2174 case $as_dir/ in
2175   ./ | .// | /cC/* | \
2176   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2177   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2178   /usr/ucb/* ) ;;
2179   *)
2180     # OSF1 and SCO ODT 3.0 have their own names for install.
2181     # Don't use installbsd from OSF since it installs stuff as root
2182     # by default.
2183     for ac_prog in ginstall scoinst install; do
2184       for ac_exec_ext in '' $ac_executable_extensions; do
2185         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2186           if test $ac_prog = install &&
2187             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2188             # AIX install.  It has an incompatible calling convention.
2189             :
2190           elif test $ac_prog = install &&
2191             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2192             # program-specific install script used by HP pwplus--don't use.
2193             :
2194           else
2195             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2196             break 3
2197           fi
2198         fi
2199       done
2200     done
2201     ;;
2202 esac
2203 done
2204 IFS=$as_save_IFS
2205
2206
2207 fi
2208   if test "${ac_cv_path_install+set}" = set; then
2209     INSTALL=$ac_cv_path_install
2210   else
2211     # As a last resort, use the slow shell script.  Don't cache a
2212     # value for INSTALL within a source directory, because that will
2213     # break other packages using the cache if that directory is
2214     # removed, or if the value is a relative name.
2215     INSTALL=$ac_install_sh
2216   fi
2217 fi
2218 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2219 echo "${ECHO_T}$INSTALL" >&6; }
2220
2221 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2222 # It thinks the first close brace ends the variable substitution.
2223 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2224
2225 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2226
2227 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2228
2229 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2230 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2231 # Just in case
2232 sleep 1
2233 echo timestamp > conftest.file
2234 # Do `set' in a subshell so we don't clobber the current shell's
2235 # arguments.  Must try -L first in case configure is actually a
2236 # symlink; some systems play weird games with the mod time of symlinks
2237 # (eg FreeBSD returns the mod time of the symlink's containing
2238 # directory).
2239 if (
2240    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2241    if test "$*" = "X"; then
2242       # -L didn't work.
2243       set X `ls -t $srcdir/configure conftest.file`
2244    fi
2245    rm -f conftest.file
2246    if test "$*" != "X $srcdir/configure conftest.file" \
2247       && test "$*" != "X conftest.file $srcdir/configure"; then
2248
2249       # If neither matched, then we have a broken ls.  This can happen
2250       # if, for instance, CONFIG_SHELL is bash and it inherits a
2251       # broken ls alias from the environment.  This has actually
2252       # happened.  Such a system could not be considered "sane".
2253       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2254 alias in your environment" >&5
2255 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2256 alias in your environment" >&2;}
2257    { (exit 1); exit 1; }; }
2258    fi
2259
2260    test "$2" = conftest.file
2261    )
2262 then
2263    # Ok.
2264    :
2265 else
2266    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2267 Check your system clock" >&5
2268 echo "$as_me: error: newly created file is older than distributed files!
2269 Check your system clock" >&2;}
2270    { (exit 1); exit 1; }; }
2271 fi
2272 { echo "$as_me:$LINENO: result: yes" >&5
2273 echo "${ECHO_T}yes" >&6; }
2274 test "$program_prefix" != NONE &&
2275   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2276 # Use a double $ so make ignores it.
2277 test "$program_suffix" != NONE &&
2278   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2279 # Double any \ or $.  echo might interpret backslashes.
2280 # By default was `s,x,x', remove it if useless.
2281 cat <<\_ACEOF >conftest.sed
2282 s/[\\$]/&&/g;s/;s,x,x,$//
2283 _ACEOF
2284 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2285 rm -f conftest.sed
2286
2287 # expand $ac_aux_dir to an absolute path
2288 am_aux_dir=`cd $ac_aux_dir && pwd`
2289
2290 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2291 # Use eval to expand $SHELL
2292 if eval "$MISSING --run true"; then
2293   am_missing_run="$MISSING --run "
2294 else
2295   am_missing_run=
2296   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2297 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2298 fi
2299
2300 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2301   # We used to keeping the `.' as first argument, in order to
2302   # allow $(mkdir_p) to be used without argument.  As in
2303   #   $(mkdir_p) $(somedir)
2304   # where $(somedir) is conditionally defined.  However this is wrong
2305   # for two reasons:
2306   #  1. if the package is installed by a user who cannot write `.'
2307   #     make install will fail,
2308   #  2. the above comment should most certainly read
2309   #     $(mkdir_p) $(DESTDIR)$(somedir)
2310   #     so it does not work when $(somedir) is undefined and
2311   #     $(DESTDIR) is not.
2312   #  To support the latter case, we have to write
2313   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2314   #  so the `.' trick is pointless.
2315   mkdir_p='mkdir -p --'
2316 else
2317   # On NextStep and OpenStep, the `mkdir' command does not
2318   # recognize any option.  It will interpret all options as
2319   # directories to create, and then abort because `.' already
2320   # exists.
2321   for d in ./-p ./--version;
2322   do
2323     test -d $d && rmdir $d
2324   done
2325   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2326   if test -f "$ac_aux_dir/mkinstalldirs"; then
2327     mkdir_p='$(mkinstalldirs)'
2328   else
2329     mkdir_p='$(install_sh) -d'
2330   fi
2331 fi
2332
2333 for ac_prog in gawk mawk nawk awk
2334 do
2335   # Extract the first word of "$ac_prog", so it can be a program name with args.
2336 set dummy $ac_prog; ac_word=$2
2337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2339 if test "${ac_cv_prog_AWK+set}" = set; then
2340   echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342   if test -n "$AWK"; then
2343   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2344 else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2347 do
2348   IFS=$as_save_IFS
2349   test -z "$as_dir" && as_dir=.
2350   for ac_exec_ext in '' $ac_executable_extensions; do
2351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352     ac_cv_prog_AWK="$ac_prog"
2353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354     break 2
2355   fi
2356 done
2357 done
2358 IFS=$as_save_IFS
2359
2360 fi
2361 fi
2362 AWK=$ac_cv_prog_AWK
2363 if test -n "$AWK"; then
2364   { echo "$as_me:$LINENO: result: $AWK" >&5
2365 echo "${ECHO_T}$AWK" >&6; }
2366 else
2367   { echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6; }
2369 fi
2370
2371
2372   test -n "$AWK" && break
2373 done
2374
2375 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2376 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2377 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2378 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2379   echo $ECHO_N "(cached) $ECHO_C" >&6
2380 else
2381   cat >conftest.make <<\_ACEOF
2382 SHELL = /bin/sh
2383 all:
2384         @echo '@@@%%%=$(MAKE)=@@@%%%'
2385 _ACEOF
2386 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2387 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2388   *@@@%%%=?*=@@@%%%*)
2389     eval ac_cv_prog_make_${ac_make}_set=yes;;
2390   *)
2391     eval ac_cv_prog_make_${ac_make}_set=no;;
2392 esac
2393 rm -f conftest.make
2394 fi
2395 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2396   { echo "$as_me:$LINENO: result: yes" >&5
2397 echo "${ECHO_T}yes" >&6; }
2398   SET_MAKE=
2399 else
2400   { echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6; }
2402   SET_MAKE="MAKE=${MAKE-make}"
2403 fi
2404
2405 rm -rf .tst 2>/dev/null
2406 mkdir .tst 2>/dev/null
2407 if test -d .tst; then
2408   am__leading_dot=.
2409 else
2410   am__leading_dot=_
2411 fi
2412 rmdir .tst 2>/dev/null
2413
2414 # test to see if srcdir already configured
2415 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2416    test -f $srcdir/config.status; then
2417   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2418 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2419    { (exit 1); exit 1; }; }
2420 fi
2421
2422 # test whether we have cygpath
2423 if test -z "$CYGPATH_W"; then
2424   if (cygpath --version) >/dev/null 2>/dev/null; then
2425     CYGPATH_W='cygpath -w'
2426   else
2427     CYGPATH_W=echo
2428   fi
2429 fi
2430
2431
2432 # Define the identity of the package.
2433  PACKAGE='simgrid'
2434  VERSION='3.1.1-cvs'
2435
2436
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE "$PACKAGE"
2439 _ACEOF
2440
2441
2442 cat >>confdefs.h <<_ACEOF
2443 #define VERSION "$VERSION"
2444 _ACEOF
2445
2446 # Some tools Automake needs.
2447
2448 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2449
2450
2451 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2452
2453
2454 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2455
2456
2457 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2458
2459
2460 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2461
2462 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2463
2464 # Installed binaries are usually stripped using `strip' when the user
2465 # run `make install-strip'.  However `strip' might not be the right
2466 # tool to use in cross-compilation environments, therefore Automake
2467 # will honor the `STRIP' environment variable to overrule this program.
2468 if test "$cross_compiling" != no; then
2469   if test -n "$ac_tool_prefix"; then
2470   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2471 set dummy ${ac_tool_prefix}strip; ac_word=$2
2472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2474 if test "${ac_cv_prog_STRIP+set}" = set; then
2475   echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477   if test -n "$STRIP"; then
2478   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2479 else
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2482 do
2483   IFS=$as_save_IFS
2484   test -z "$as_dir" && as_dir=.
2485   for ac_exec_ext in '' $ac_executable_extensions; do
2486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2487     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489     break 2
2490   fi
2491 done
2492 done
2493 IFS=$as_save_IFS
2494
2495 fi
2496 fi
2497 STRIP=$ac_cv_prog_STRIP
2498 if test -n "$STRIP"; then
2499   { echo "$as_me:$LINENO: result: $STRIP" >&5
2500 echo "${ECHO_T}$STRIP" >&6; }
2501 else
2502   { echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6; }
2504 fi
2505
2506
2507 fi
2508 if test -z "$ac_cv_prog_STRIP"; then
2509   ac_ct_STRIP=$STRIP
2510   # Extract the first word of "strip", so it can be a program name with args.
2511 set dummy strip; ac_word=$2
2512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2514 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2515   echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517   if test -n "$ac_ct_STRIP"; then
2518   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2519 else
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH
2522 do
2523   IFS=$as_save_IFS
2524   test -z "$as_dir" && as_dir=.
2525   for ac_exec_ext in '' $ac_executable_extensions; do
2526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2527     ac_cv_prog_ac_ct_STRIP="strip"
2528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529     break 2
2530   fi
2531 done
2532 done
2533 IFS=$as_save_IFS
2534
2535 fi
2536 fi
2537 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2538 if test -n "$ac_ct_STRIP"; then
2539   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2540 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2541 else
2542   { echo "$as_me:$LINENO: result: no" >&5
2543 echo "${ECHO_T}no" >&6; }
2544 fi
2545
2546   if test "x$ac_ct_STRIP" = x; then
2547     STRIP=":"
2548   else
2549     case $cross_compiling:$ac_tool_warned in
2550 yes:)
2551 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2552 whose name does not start with the host triplet.  If you think this
2553 configuration is useful to you, please write to autoconf@gnu.org." >&5
2554 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2555 whose name does not start with the host triplet.  If you think this
2556 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2557 ac_tool_warned=yes ;;
2558 esac
2559     STRIP=$ac_ct_STRIP
2560   fi
2561 else
2562   STRIP="$ac_cv_prog_STRIP"
2563 fi
2564
2565 fi
2566 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2567
2568 # We need awk for the "check" target.  The system "awk" is bad on
2569 # some platforms.
2570 # Always define AMTAR for backward compatibility.
2571
2572 AMTAR=${AMTAR-"${am_missing_run}tar"}
2573
2574 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2575
2576
2577
2578
2579
2580
2581 ACLOCAL="$ACLOCAL -I acmacro"
2582
2583
2584 # Check whether --enable-shared was given.
2585 if test "${enable_shared+set}" = set; then
2586   enableval=$enable_shared; p=${PACKAGE-default}
2587     case $enableval in
2588     yes) enable_shared=yes ;;
2589     no) enable_shared=no ;;
2590     *)
2591       enable_shared=no
2592       # Look at the argument we got.  We use all the common list separators.
2593       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2594       for pkg in $enableval; do
2595         IFS="$lt_save_ifs"
2596         if test "X$pkg" = "X$p"; then
2597           enable_shared=yes
2598         fi
2599       done
2600       IFS="$lt_save_ifs"
2601       ;;
2602     esac
2603 else
2604   enable_shared=yes
2605 fi
2606
2607
2608 # Check whether --enable-static was given.
2609 if test "${enable_static+set}" = set; then
2610   enableval=$enable_static; p=${PACKAGE-default}
2611     case $enableval in
2612     yes) enable_static=yes ;;
2613     no) enable_static=no ;;
2614     *)
2615      enable_static=no
2616       # Look at the argument we got.  We use all the common list separators.
2617       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2618       for pkg in $enableval; do
2619         IFS="$lt_save_ifs"
2620         if test "X$pkg" = "X$p"; then
2621           enable_static=yes
2622         fi
2623       done
2624       IFS="$lt_save_ifs"
2625       ;;
2626     esac
2627 else
2628   enable_static=yes
2629 fi
2630
2631
2632 # Check whether --enable-fast-install was given.
2633 if test "${enable_fast_install+set}" = set; then
2634   enableval=$enable_fast_install; p=${PACKAGE-default}
2635     case $enableval in
2636     yes) enable_fast_install=yes ;;
2637     no) enable_fast_install=no ;;
2638     *)
2639       enable_fast_install=no
2640       # Look at the argument we got.  We use all the common list separators.
2641       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2642       for pkg in $enableval; do
2643         IFS="$lt_save_ifs"
2644         if test "X$pkg" = "X$p"; then
2645           enable_fast_install=yes
2646         fi
2647       done
2648       IFS="$lt_save_ifs"
2649       ;;
2650     esac
2651 else
2652   enable_fast_install=yes
2653 fi
2654
2655
2656 DEPDIR="${am__leading_dot}deps"
2657
2658 ac_config_commands="$ac_config_commands depfiles"
2659
2660
2661 am_make=${MAKE-make}
2662 cat > confinc << 'END'
2663 am__doit:
2664         @echo done
2665 .PHONY: am__doit
2666 END
2667 # If we don't find an include directive, just comment out the code.
2668 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2669 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2670 am__include="#"
2671 am__quote=
2672 _am_result=none
2673 # First try GNU make style include.
2674 echo "include confinc" > confmf
2675 # We grep out `Entering directory' and `Leaving directory'
2676 # messages which can occur if `w' ends up in MAKEFLAGS.
2677 # In particular we don't look at `^make:' because GNU make might
2678 # be invoked under some other name (usually "gmake"), in which
2679 # case it prints its new name instead of `make'.
2680 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2681    am__include=include
2682    am__quote=
2683    _am_result=GNU
2684 fi
2685 # Now try BSD make style include.
2686 if test "$am__include" = "#"; then
2687    echo '.include "confinc"' > confmf
2688    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2689       am__include=.include
2690       am__quote="\""
2691       _am_result=BSD
2692    fi
2693 fi
2694
2695
2696 { echo "$as_me:$LINENO: result: $_am_result" >&5
2697 echo "${ECHO_T}$_am_result" >&6; }
2698 rm -f confinc confmf
2699
2700 # Check whether --enable-dependency-tracking was given.
2701 if test "${enable_dependency_tracking+set}" = set; then
2702   enableval=$enable_dependency_tracking;
2703 fi
2704
2705 if test "x$enable_dependency_tracking" != xno; then
2706   am_depcomp="$ac_aux_dir/depcomp"
2707   AMDEPBACKSLASH='\'
2708 fi
2709
2710
2711 if test "x$enable_dependency_tracking" != xno; then
2712   AMDEP_TRUE=
2713   AMDEP_FALSE='#'
2714 else
2715   AMDEP_TRUE='#'
2716   AMDEP_FALSE=
2717 fi
2718
2719
2720
2721 ac_ext=c
2722 ac_cpp='$CPP $CPPFLAGS'
2723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2726 if test -n "$ac_tool_prefix"; then
2727   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2728 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2731 if test "${ac_cv_prog_CC+set}" = set; then
2732   echo $ECHO_N "(cached) $ECHO_C" >&6
2733 else
2734   if test -n "$CC"; then
2735   ac_cv_prog_CC="$CC" # Let the user override the test.
2736 else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2739 do
2740   IFS=$as_save_IFS
2741   test -z "$as_dir" && as_dir=.
2742   for ac_exec_ext in '' $ac_executable_extensions; do
2743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2744     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2746     break 2
2747   fi
2748 done
2749 done
2750 IFS=$as_save_IFS
2751
2752 fi
2753 fi
2754 CC=$ac_cv_prog_CC
2755 if test -n "$CC"; then
2756   { echo "$as_me:$LINENO: result: $CC" >&5
2757 echo "${ECHO_T}$CC" >&6; }
2758 else
2759   { echo "$as_me:$LINENO: result: no" >&5
2760 echo "${ECHO_T}no" >&6; }
2761 fi
2762
2763
2764 fi
2765 if test -z "$ac_cv_prog_CC"; then
2766   ac_ct_CC=$CC
2767   # Extract the first word of "gcc", so it can be a program name with args.
2768 set dummy gcc; ac_word=$2
2769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2771 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2772   echo $ECHO_N "(cached) $ECHO_C" >&6
2773 else
2774   if test -n "$ac_ct_CC"; then
2775   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2779 do
2780   IFS=$as_save_IFS
2781   test -z "$as_dir" && as_dir=.
2782   for ac_exec_ext in '' $ac_executable_extensions; do
2783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2784     ac_cv_prog_ac_ct_CC="gcc"
2785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786     break 2
2787   fi
2788 done
2789 done
2790 IFS=$as_save_IFS
2791
2792 fi
2793 fi
2794 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2795 if test -n "$ac_ct_CC"; then
2796   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2797 echo "${ECHO_T}$ac_ct_CC" >&6; }
2798 else
2799   { echo "$as_me:$LINENO: result: no" >&5
2800 echo "${ECHO_T}no" >&6; }
2801 fi
2802
2803   if test "x$ac_ct_CC" = x; then
2804     CC=""
2805   else
2806     case $cross_compiling:$ac_tool_warned in
2807 yes:)
2808 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2809 whose name does not start with the host triplet.  If you think this
2810 configuration is useful to you, please write to autoconf@gnu.org." >&5
2811 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2812 whose name does not start with the host triplet.  If you think this
2813 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2814 ac_tool_warned=yes ;;
2815 esac
2816     CC=$ac_ct_CC
2817   fi
2818 else
2819   CC="$ac_cv_prog_CC"
2820 fi
2821
2822 if test -z "$CC"; then
2823           if test -n "$ac_tool_prefix"; then
2824     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2825 set dummy ${ac_tool_prefix}cc; ac_word=$2
2826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2828 if test "${ac_cv_prog_CC+set}" = set; then
2829   echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831   if test -n "$CC"; then
2832   ac_cv_prog_CC="$CC" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837   IFS=$as_save_IFS
2838   test -z "$as_dir" && as_dir=.
2839   for ac_exec_ext in '' $ac_executable_extensions; do
2840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841     ac_cv_prog_CC="${ac_tool_prefix}cc"
2842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843     break 2
2844   fi
2845 done
2846 done
2847 IFS=$as_save_IFS
2848
2849 fi
2850 fi
2851 CC=$ac_cv_prog_CC
2852 if test -n "$CC"; then
2853   { echo "$as_me:$LINENO: result: $CC" >&5
2854 echo "${ECHO_T}$CC" >&6; }
2855 else
2856   { echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6; }
2858 fi
2859
2860
2861   fi
2862 fi
2863 if test -z "$CC"; then
2864   # Extract the first word of "cc", so it can be a program name with args.
2865 set dummy cc; ac_word=$2
2866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2868 if test "${ac_cv_prog_CC+set}" = set; then
2869   echo $ECHO_N "(cached) $ECHO_C" >&6
2870 else
2871   if test -n "$CC"; then
2872   ac_cv_prog_CC="$CC" # Let the user override the test.
2873 else
2874   ac_prog_rejected=no
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2877 do
2878   IFS=$as_save_IFS
2879   test -z "$as_dir" && as_dir=.
2880   for ac_exec_ext in '' $ac_executable_extensions; do
2881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2882     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2883        ac_prog_rejected=yes
2884        continue
2885      fi
2886     ac_cv_prog_CC="cc"
2887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888     break 2
2889   fi
2890 done
2891 done
2892 IFS=$as_save_IFS
2893
2894 if test $ac_prog_rejected = yes; then
2895   # We found a bogon in the path, so make sure we never use it.
2896   set dummy $ac_cv_prog_CC
2897   shift
2898   if test $# != 0; then
2899     # We chose a different compiler from the bogus one.
2900     # However, it has the same basename, so the bogon will be chosen
2901     # first if we set CC to just the basename; use the full file name.
2902     shift
2903     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2904   fi
2905 fi
2906 fi
2907 fi
2908 CC=$ac_cv_prog_CC
2909 if test -n "$CC"; then
2910   { echo "$as_me:$LINENO: result: $CC" >&5
2911 echo "${ECHO_T}$CC" >&6; }
2912 else
2913   { echo "$as_me:$LINENO: result: no" >&5
2914 echo "${ECHO_T}no" >&6; }
2915 fi
2916
2917
2918 fi
2919 if test -z "$CC"; then
2920   if test -n "$ac_tool_prefix"; then
2921   for ac_prog in cl.exe
2922   do
2923     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2924 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2927 if test "${ac_cv_prog_CC+set}" = set; then
2928   echo $ECHO_N "(cached) $ECHO_C" >&6
2929 else
2930   if test -n "$CC"; then
2931   ac_cv_prog_CC="$CC" # Let the user override the test.
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2935 do
2936   IFS=$as_save_IFS
2937   test -z "$as_dir" && as_dir=.
2938   for ac_exec_ext in '' $ac_executable_extensions; do
2939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2942     break 2
2943   fi
2944 done
2945 done
2946 IFS=$as_save_IFS
2947
2948 fi
2949 fi
2950 CC=$ac_cv_prog_CC
2951 if test -n "$CC"; then
2952   { echo "$as_me:$LINENO: result: $CC" >&5
2953 echo "${ECHO_T}$CC" >&6; }
2954 else
2955   { echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6; }
2957 fi
2958
2959
2960     test -n "$CC" && break
2961   done
2962 fi
2963 if test -z "$CC"; then
2964   ac_ct_CC=$CC
2965   for ac_prog in cl.exe
2966 do
2967   # Extract the first word of "$ac_prog", so it can be a program name with args.
2968 set dummy $ac_prog; ac_word=$2
2969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2972   echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974   if test -n "$ac_ct_CC"; then
2975   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2979 do
2980   IFS=$as_save_IFS
2981   test -z "$as_dir" && as_dir=.
2982   for ac_exec_ext in '' $ac_executable_extensions; do
2983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984     ac_cv_prog_ac_ct_CC="$ac_prog"
2985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2986     break 2
2987   fi
2988 done
2989 done
2990 IFS=$as_save_IFS
2991
2992 fi
2993 fi
2994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995 if test -n "$ac_ct_CC"; then
2996   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2997 echo "${ECHO_T}$ac_ct_CC" >&6; }
2998 else
2999   { echo "$as_me:$LINENO: result: no" >&5
3000 echo "${ECHO_T}no" >&6; }
3001 fi
3002
3003
3004   test -n "$ac_ct_CC" && break
3005 done
3006
3007   if test "x$ac_ct_CC" = x; then
3008     CC=""
3009   else
3010     case $cross_compiling:$ac_tool_warned in
3011 yes:)
3012 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3013 whose name does not start with the host triplet.  If you think this
3014 configuration is useful to you, please write to autoconf@gnu.org." >&5
3015 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3016 whose name does not start with the host triplet.  If you think this
3017 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3018 ac_tool_warned=yes ;;
3019 esac
3020     CC=$ac_ct_CC
3021   fi
3022 fi
3023
3024 fi
3025
3026
3027 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3028 See \`config.log' for more details." >&5
3029 echo "$as_me: error: no acceptable C compiler found in \$PATH
3030 See \`config.log' for more details." >&2;}
3031    { (exit 1); exit 1; }; }
3032
3033 # Provide some information about the compiler.
3034 echo "$as_me:$LINENO: checking for C compiler version" >&5
3035 ac_compiler=`set X $ac_compile; echo $2`
3036 { (ac_try="$ac_compiler --version >&5"
3037 case "(($ac_try" in
3038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039   *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042   (eval "$ac_compiler --version >&5") 2>&5
3043   ac_status=$?
3044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045   (exit $ac_status); }
3046 { (ac_try="$ac_compiler -v >&5"
3047 case "(($ac_try" in
3048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049   *) ac_try_echo=$ac_try;;
3050 esac
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052   (eval "$ac_compiler -v >&5") 2>&5
3053   ac_status=$?
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); }
3056 { (ac_try="$ac_compiler -V >&5"
3057 case "(($ac_try" in
3058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059   *) ac_try_echo=$ac_try;;
3060 esac
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062   (eval "$ac_compiler -V >&5") 2>&5
3063   ac_status=$?
3064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065   (exit $ac_status); }
3066
3067 cat >conftest.$ac_ext <<_ACEOF
3068 /* confdefs.h.  */
3069 _ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h.  */
3073
3074 int
3075 main ()
3076 {
3077
3078   ;
3079   return 0;
3080 }
3081 _ACEOF
3082 ac_clean_files_save=$ac_clean_files
3083 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3084 # Try to create an executable without -o first, disregard a.out.
3085 # It will help us diagnose broken compilers, and finding out an intuition
3086 # of exeext.
3087 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3088 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3089 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3090 #
3091 # List of possible output files, starting from the most likely.
3092 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3093 # only as a last resort.  b.out is created by i960 compilers.
3094 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3095 #
3096 # The IRIX 6 linker writes into existing files which may not be
3097 # executable, retaining their permissions.  Remove them first so a
3098 # subsequent execution test works.
3099 ac_rmfiles=
3100 for ac_file in $ac_files
3101 do
3102   case $ac_file in
3103     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3104     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3105   esac
3106 done
3107 rm -f $ac_rmfiles
3108
3109 if { (ac_try="$ac_link_default"
3110 case "(($ac_try" in
3111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112   *) ac_try_echo=$ac_try;;
3113 esac
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115   (eval "$ac_link_default") 2>&5
3116   ac_status=$?
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); }; then
3119   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3120 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3121 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3122 # so that the user can short-circuit this test for compilers unknown to
3123 # Autoconf.
3124 for ac_file in $ac_files ''
3125 do
3126   test -f "$ac_file" || continue
3127   case $ac_file in
3128     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3129         ;;
3130     [ab].out )
3131         # We found the default executable, but exeext='' is most
3132         # certainly right.
3133         break;;
3134     *.* )
3135         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3136         then :; else
3137            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3138         fi
3139         # We set ac_cv_exeext here because the later test for it is not
3140         # safe: cross compilers may not add the suffix if given an `-o'
3141         # argument, so we may need to know it at that point already.
3142         # Even if this section looks crufty: it has the advantage of
3143         # actually working.
3144         break;;
3145     * )
3146         break;;
3147   esac
3148 done
3149 test "$ac_cv_exeext" = no && ac_cv_exeext=
3150
3151 else
3152   ac_file=''
3153 fi
3154
3155 { echo "$as_me:$LINENO: result: $ac_file" >&5
3156 echo "${ECHO_T}$ac_file" >&6; }
3157 if test -z "$ac_file"; then
3158   echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3160
3161 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3162 See \`config.log' for more details." >&5
3163 echo "$as_me: error: C compiler cannot create executables
3164 See \`config.log' for more details." >&2;}
3165    { (exit 77); exit 77; }; }
3166 fi
3167
3168 ac_exeext=$ac_cv_exeext
3169
3170 # Check that the compiler produces executables we can run.  If not, either
3171 # the compiler is broken, or we cross compile.
3172 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3173 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3174 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3175 # If not cross compiling, check that we can run a simple program.
3176 if test "$cross_compiling" != yes; then
3177   if { ac_try='./$ac_file'
3178   { (case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_try") 2>&5
3184   ac_status=$?
3185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186   (exit $ac_status); }; }; then
3187     cross_compiling=no
3188   else
3189     if test "$cross_compiling" = maybe; then
3190         cross_compiling=yes
3191     else
3192         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3193 If you meant to cross compile, use \`--host'.
3194 See \`config.log' for more details." >&5
3195 echo "$as_me: error: cannot run C compiled programs.
3196 If you meant to cross compile, use \`--host'.
3197 See \`config.log' for more details." >&2;}
3198    { (exit 1); exit 1; }; }
3199     fi
3200   fi
3201 fi
3202 { echo "$as_me:$LINENO: result: yes" >&5
3203 echo "${ECHO_T}yes" >&6; }
3204
3205 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3206 ac_clean_files=$ac_clean_files_save
3207 # Check that the compiler produces executables we can run.  If not, either
3208 # the compiler is broken, or we cross compile.
3209 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3210 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3211 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3212 echo "${ECHO_T}$cross_compiling" >&6; }
3213
3214 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3215 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3216 if { (ac_try="$ac_link"
3217 case "(($ac_try" in
3218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219   *) ac_try_echo=$ac_try;;
3220 esac
3221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3222   (eval "$ac_link") 2>&5
3223   ac_status=$?
3224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225   (exit $ac_status); }; then
3226   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3227 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3228 # work properly (i.e., refer to `conftest.exe'), while it won't with
3229 # `rm'.
3230 for ac_file in conftest.exe conftest conftest.*; do
3231   test -f "$ac_file" || continue
3232   case $ac_file in
3233     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3234     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3235           break;;
3236     * ) break;;
3237   esac
3238 done
3239 else
3240   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3241 See \`config.log' for more details." >&5
3242 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3243 See \`config.log' for more details." >&2;}
3244    { (exit 1); exit 1; }; }
3245 fi
3246
3247 rm -f conftest$ac_cv_exeext
3248 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3249 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3250
3251 rm -f conftest.$ac_ext
3252 EXEEXT=$ac_cv_exeext
3253 ac_exeext=$EXEEXT
3254 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3255 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3256 if test "${ac_cv_objext+set}" = set; then
3257   echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259   cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h.  */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h.  */
3265
3266 int
3267 main ()
3268 {
3269
3270   ;
3271   return 0;
3272 }
3273 _ACEOF
3274 rm -f conftest.o conftest.obj
3275 if { (ac_try="$ac_compile"
3276 case "(($ac_try" in
3277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278   *) ac_try_echo=$ac_try;;
3279 esac
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281   (eval "$ac_compile") 2>&5
3282   ac_status=$?
3283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284   (exit $ac_status); }; then
3285   for ac_file in conftest.o conftest.obj conftest.*; do
3286   test -f "$ac_file" || continue;
3287   case $ac_file in
3288     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3289     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3290        break;;
3291   esac
3292 done
3293 else
3294   echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3296
3297 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3298 See \`config.log' for more details." >&5
3299 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3300 See \`config.log' for more details." >&2;}
3301    { (exit 1); exit 1; }; }
3302 fi
3303
3304 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3305 fi
3306 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3307 echo "${ECHO_T}$ac_cv_objext" >&6; }
3308 OBJEXT=$ac_cv_objext
3309 ac_objext=$OBJEXT
3310 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3311 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3312 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3313   echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315   cat >conftest.$ac_ext <<_ACEOF
3316 /* confdefs.h.  */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h.  */
3321
3322 int
3323 main ()
3324 {
3325 #ifndef __GNUC__
3326        choke me
3327 #endif
3328
3329   ;
3330   return 0;
3331 }
3332 _ACEOF
3333 rm -f conftest.$ac_objext
3334 if { (ac_try="$ac_compile"
3335 case "(($ac_try" in
3336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337   *) ac_try_echo=$ac_try;;
3338 esac
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340   (eval "$ac_compile") 2>conftest.er1
3341   ac_status=$?
3342   grep -v '^ *+' conftest.er1 >conftest.err
3343   rm -f conftest.er1
3344   cat conftest.err >&5
3345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346   (exit $ac_status); } && {
3347          test -z "$ac_c_werror_flag" ||
3348          test ! -s conftest.err
3349        } && test -s conftest.$ac_objext; then
3350   ac_compiler_gnu=yes
3351 else
3352   echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3354
3355         ac_compiler_gnu=no
3356 fi
3357
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3360
3361 fi
3362 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3363 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3364 GCC=`test $ac_compiler_gnu = yes && echo yes`
3365 ac_test_CFLAGS=${CFLAGS+set}
3366 ac_save_CFLAGS=$CFLAGS
3367 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3368 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3369 if test "${ac_cv_prog_cc_g+set}" = set; then
3370   echo $ECHO_N "(cached) $ECHO_C" >&6
3371 else
3372   ac_save_c_werror_flag=$ac_c_werror_flag
3373    ac_c_werror_flag=yes
3374    ac_cv_prog_cc_g=no
3375    CFLAGS="-g"
3376    cat >conftest.$ac_ext <<_ACEOF
3377 /* confdefs.h.  */
3378 _ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h.  */
3382
3383 int
3384 main ()
3385 {
3386
3387   ;
3388   return 0;
3389 }
3390 _ACEOF
3391 rm -f conftest.$ac_objext
3392 if { (ac_try="$ac_compile"
3393 case "(($ac_try" in
3394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395   *) ac_try_echo=$ac_try;;
3396 esac
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398   (eval "$ac_compile") 2>conftest.er1
3399   ac_status=$?
3400   grep -v '^ *+' conftest.er1 >conftest.err
3401   rm -f conftest.er1
3402   cat conftest.err >&5
3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); } && {
3405          test -z "$ac_c_werror_flag" ||
3406          test ! -s conftest.err
3407        } && test -s conftest.$ac_objext; then
3408   ac_cv_prog_cc_g=yes
3409 else
3410   echo "$as_me: failed program was:" >&5
3411 sed 's/^/| /' conftest.$ac_ext >&5
3412
3413         CFLAGS=""
3414       cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h.  */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h.  */
3420
3421 int
3422 main ()
3423 {
3424
3425   ;
3426   return 0;
3427 }
3428 _ACEOF
3429 rm -f conftest.$ac_objext
3430 if { (ac_try="$ac_compile"
3431 case "(($ac_try" in
3432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433   *) ac_try_echo=$ac_try;;
3434 esac
3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436   (eval "$ac_compile") 2>conftest.er1
3437   ac_status=$?
3438   grep -v '^ *+' conftest.er1 >conftest.err
3439   rm -f conftest.er1
3440   cat conftest.err >&5
3441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442   (exit $ac_status); } && {
3443          test -z "$ac_c_werror_flag" ||
3444          test ! -s conftest.err
3445        } && test -s conftest.$ac_objext; then
3446   :
3447 else
3448   echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451         ac_c_werror_flag=$ac_save_c_werror_flag
3452          CFLAGS="-g"
3453          cat >conftest.$ac_ext <<_ACEOF
3454 /* confdefs.h.  */
3455 _ACEOF
3456 cat confdefs.h >>conftest.$ac_ext
3457 cat >>conftest.$ac_ext <<_ACEOF
3458 /* end confdefs.h.  */
3459
3460 int
3461 main ()
3462 {
3463
3464   ;
3465   return 0;
3466 }
3467 _ACEOF
3468 rm -f conftest.$ac_objext
3469 if { (ac_try="$ac_compile"
3470 case "(($ac_try" in
3471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472   *) ac_try_echo=$ac_try;;
3473 esac
3474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3475   (eval "$ac_compile") 2>conftest.er1
3476   ac_status=$?
3477   grep -v '^ *+' conftest.er1 >conftest.err
3478   rm -f conftest.er1
3479   cat conftest.err >&5
3480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481   (exit $ac_status); } && {
3482          test -z "$ac_c_werror_flag" ||
3483          test ! -s conftest.err
3484        } && test -s conftest.$ac_objext; then
3485   ac_cv_prog_cc_g=yes
3486 else
3487   echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3489
3490
3491 fi
3492
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 fi
3495
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 fi
3498
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500    ac_c_werror_flag=$ac_save_c_werror_flag
3501 fi
3502 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3503 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3504 if test "$ac_test_CFLAGS" = set; then
3505   CFLAGS=$ac_save_CFLAGS
3506 elif test $ac_cv_prog_cc_g = yes; then
3507   if test "$GCC" = yes; then
3508     CFLAGS="-g -O2"
3509   else
3510     CFLAGS="-g"
3511   fi
3512 else
3513   if test "$GCC" = yes; then
3514     CFLAGS="-O2"
3515   else
3516     CFLAGS=
3517   fi
3518 fi
3519 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3520 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3521 if test "${ac_cv_prog_cc_c89+set}" = set; then
3522   echo $ECHO_N "(cached) $ECHO_C" >&6
3523 else
3524   ac_cv_prog_cc_c89=no
3525 ac_save_CC=$CC
3526 cat >conftest.$ac_ext <<_ACEOF
3527 /* confdefs.h.  */
3528 _ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h.  */
3532 #include <stdarg.h>
3533 #include <stdio.h>
3534 #include <sys/types.h>
3535 #include <sys/stat.h>
3536 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3537 struct buf { int x; };
3538 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3539 static char *e (p, i)
3540      char **p;
3541      int i;
3542 {
3543   return p[i];
3544 }
3545 static char *f (char * (*g) (char **, int), char **p, ...)
3546 {
3547   char *s;
3548   va_list v;
3549   va_start (v,p);
3550   s = g (p, va_arg (v,int));
3551   va_end (v);
3552   return s;
3553 }
3554
3555 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3556    function prototypes and stuff, but not '\xHH' hex character constants.
3557    These don't provoke an error unfortunately, instead are silently treated
3558    as 'x'.  The following induces an error, until -std is added to get
3559    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3560    array size at least.  It's necessary to write '\x00'==0 to get something
3561    that's true only with -std.  */
3562 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3563
3564 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3565    inside strings and character constants.  */
3566 #define FOO(x) 'x'
3567 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3568
3569 int test (int i, double x);
3570 struct s1 {int (*f) (int a);};
3571 struct s2 {int (*f) (double a);};
3572 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3573 int argc;
3574 char **argv;
3575 int
3576 main ()
3577 {
3578 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3579   ;
3580   return 0;
3581 }
3582 _ACEOF
3583 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3584         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3585 do
3586   CC="$ac_save_CC $ac_arg"
3587   rm -f conftest.$ac_objext
3588 if { (ac_try="$ac_compile"
3589 case "(($ac_try" in
3590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591   *) ac_try_echo=$ac_try;;
3592 esac
3593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594   (eval "$ac_compile") 2>conftest.er1
3595   ac_status=$?
3596   grep -v '^ *+' conftest.er1 >conftest.err
3597   rm -f conftest.er1
3598   cat conftest.err >&5
3599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600   (exit $ac_status); } && {
3601          test -z "$ac_c_werror_flag" ||
3602          test ! -s conftest.err
3603        } && test -s conftest.$ac_objext; then
3604   ac_cv_prog_cc_c89=$ac_arg
3605 else
3606   echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3608
3609
3610 fi
3611
3612 rm -f core conftest.err conftest.$ac_objext
3613   test "x$ac_cv_prog_cc_c89" != "xno" && break
3614 done
3615 rm -f conftest.$ac_ext
3616 CC=$ac_save_CC
3617
3618 fi
3619 # AC_CACHE_VAL
3620 case "x$ac_cv_prog_cc_c89" in
3621   x)
3622     { echo "$as_me:$LINENO: result: none needed" >&5
3623 echo "${ECHO_T}none needed" >&6; } ;;
3624   xno)
3625     { echo "$as_me:$LINENO: result: unsupported" >&5
3626 echo "${ECHO_T}unsupported" >&6; } ;;
3627   *)
3628     CC="$CC $ac_cv_prog_cc_c89"
3629     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3630 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3631 esac
3632
3633
3634 ac_ext=c
3635 ac_cpp='$CPP $CPPFLAGS'
3636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639
3640 depcc="$CC"   am_compiler_list=
3641
3642 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3643 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3644 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3645   echo $ECHO_N "(cached) $ECHO_C" >&6
3646 else
3647   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3648   # We make a subdir and do the tests there.  Otherwise we can end up
3649   # making bogus files that we don't know about and never remove.  For
3650   # instance it was reported that on HP-UX the gcc test will end up
3651   # making a dummy file named `D' -- because `-MD' means `put the output
3652   # in D'.
3653   mkdir conftest.dir
3654   # Copy depcomp to subdir because otherwise we won't find it if we're
3655   # using a relative directory.
3656   cp "$am_depcomp" conftest.dir
3657   cd conftest.dir
3658   # We will build objects and dependencies in a subdirectory because
3659   # it helps to detect inapplicable dependency modes.  For instance
3660   # both Tru64's cc and ICC support -MD to output dependencies as a
3661   # side effect of compilation, but ICC will put the dependencies in
3662   # the current directory while Tru64 will put them in the object
3663   # directory.
3664   mkdir sub
3665
3666   am_cv_CC_dependencies_compiler_type=none
3667   if test "$am_compiler_list" = ""; then
3668      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3669   fi
3670   for depmode in $am_compiler_list; do
3671     # Setup a source with many dependencies, because some compilers
3672     # like to wrap large dependency lists on column 80 (with \), and
3673     # we should not choose a depcomp mode which is confused by this.
3674     #
3675     # We need to recreate these files for each test, as the compiler may
3676     # overwrite some of them when testing with obscure command lines.
3677     # This happens at least with the AIX C compiler.
3678     : > sub/conftest.c
3679     for i in 1 2 3 4 5 6; do
3680       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3681       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3682       # Solaris 8's {/usr,}/bin/sh.
3683       touch sub/conftst$i.h
3684     done
3685     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3686
3687     case $depmode in
3688     nosideeffect)
3689       # after this tag, mechanisms are not by side-effect, so they'll
3690       # only be used when explicitly requested
3691       if test "x$enable_dependency_tracking" = xyes; then
3692         continue
3693       else
3694         break
3695       fi
3696       ;;
3697     none) break ;;
3698     esac
3699     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3700     # mode.  It turns out that the SunPro C++ compiler does not properly
3701     # handle `-M -o', and we need to detect this.
3702     if depmode=$depmode \
3703        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3704        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3705        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3706          >/dev/null 2>conftest.err &&
3707        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3708        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3709        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3710       # icc doesn't choke on unknown options, it will just issue warnings
3711       # or remarks (even with -Werror).  So we grep stderr for any message
3712       # that says an option was ignored or not supported.
3713       # When given -MP, icc 7.0 and 7.1 complain thusly:
3714       #   icc: Command line warning: ignoring option '-M'; no argument required
3715       # The diagnosis changed in icc 8.0:
3716       #   icc: Command line remark: option '-MP' not supported
3717       if (grep 'ignoring option' conftest.err ||
3718           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3719         am_cv_CC_dependencies_compiler_type=$depmode
3720         break
3721       fi
3722     fi
3723   done
3724
3725   cd ..
3726   rm -rf conftest.dir
3727 else
3728   am_cv_CC_dependencies_compiler_type=none
3729 fi
3730
3731 fi
3732 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3733 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3734 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3735
3736
3737
3738 if
3739   test "x$enable_dependency_tracking" != xno \
3740   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3741   am__fastdepCC_TRUE=
3742   am__fastdepCC_FALSE='#'
3743 else
3744   am__fastdepCC_TRUE='#'
3745   am__fastdepCC_FALSE=
3746 fi
3747
3748
3749 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3750 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3751 if test "${lt_cv_path_SED+set}" = set; then
3752   echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754   # Loop through the user's path and test for sed and gsed.
3755 # Then use that list of sed's as ones to test for truncation.
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 for as_dir in $PATH
3758 do
3759   IFS=$as_save_IFS
3760   test -z "$as_dir" && as_dir=.
3761   for lt_ac_prog in sed gsed; do
3762     for ac_exec_ext in '' $ac_executable_extensions; do
3763       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3764         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3765       fi
3766     done
3767   done
3768 done
3769 lt_ac_max=0
3770 lt_ac_count=0
3771 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3772 # along with /bin/sed that truncates output.
3773 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3774   test ! -f $lt_ac_sed && continue
3775   cat /dev/null > conftest.in
3776   lt_ac_count=0
3777   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3778   # Check for GNU sed and select it if it is found.
3779   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3780     lt_cv_path_SED=$lt_ac_sed
3781     break
3782   fi
3783   while true; do
3784     cat conftest.in conftest.in >conftest.tmp
3785     mv conftest.tmp conftest.in
3786     cp conftest.in conftest.nl
3787     echo >>conftest.nl
3788     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3789     cmp -s conftest.out conftest.nl || break
3790     # 10000 chars as input seems more than enough
3791     test $lt_ac_count -gt 10 && break
3792     lt_ac_count=`expr $lt_ac_count + 1`
3793     if test $lt_ac_count -gt $lt_ac_max; then
3794       lt_ac_max=$lt_ac_count
3795       lt_cv_path_SED=$lt_ac_sed
3796     fi
3797   done
3798 done
3799
3800 fi
3801
3802 SED=$lt_cv_path_SED
3803 { echo "$as_me:$LINENO: result: $SED" >&5
3804 echo "${ECHO_T}$SED" >&6; }
3805
3806 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3807 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3808 if test "${ac_cv_path_GREP+set}" = set; then
3809   echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811   # Extract the first word of "grep ggrep" to use in msg output
3812 if test -z "$GREP"; then
3813 set dummy grep ggrep; ac_prog_name=$2
3814 if test "${ac_cv_path_GREP+set}" = set; then
3815   echo $ECHO_N "(cached) $ECHO_C" >&6
3816 else
3817   ac_path_GREP_found=false
3818 # Loop through the user's path and test for each of PROGNAME-LIST
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3821 do
3822   IFS=$as_save_IFS
3823   test -z "$as_dir" && as_dir=.
3824   for ac_prog in grep ggrep; do
3825   for ac_exec_ext in '' $ac_executable_extensions; do
3826     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3827     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3828     # Check for GNU ac_path_GREP and select it if it is found.
3829   # Check for GNU $ac_path_GREP
3830 case `"$ac_path_GREP" --version 2>&1` in
3831 *GNU*)
3832   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3833 *)
3834   ac_count=0
3835   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3836   while :
3837   do
3838     cat "conftest.in" "conftest.in" >"conftest.tmp"
3839     mv "conftest.tmp" "conftest.in"
3840     cp "conftest.in" "conftest.nl"
3841     echo 'GREP' >> "conftest.nl"
3842     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3843     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3844     ac_count=`expr $ac_count + 1`
3845     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3846       # Best one so far, save it but keep looking for a better one
3847       ac_cv_path_GREP="$ac_path_GREP"
3848       ac_path_GREP_max=$ac_count
3849     fi
3850     # 10*(2^10) chars as input seems more than enough
3851     test $ac_count -gt 10 && break
3852   done
3853   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3854 esac
3855
3856
3857     $ac_path_GREP_found && break 3
3858   done
3859 done
3860
3861 done
3862 IFS=$as_save_IFS
3863
3864
3865 fi
3866
3867 GREP="$ac_cv_path_GREP"
3868 if test -z "$GREP"; then
3869   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3870 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3871    { (exit 1); exit 1; }; }
3872 fi
3873
3874 else
3875   ac_cv_path_GREP=$GREP
3876 fi
3877
3878
3879 fi
3880 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3881 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3882  GREP="$ac_cv_path_GREP"
3883
3884
3885 { echo "$as_me:$LINENO: checking for egrep" >&5
3886 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3887 if test "${ac_cv_path_EGREP+set}" = set; then
3888   echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3891    then ac_cv_path_EGREP="$GREP -E"
3892    else
3893      # Extract the first word of "egrep" to use in msg output
3894 if test -z "$EGREP"; then
3895 set dummy egrep; ac_prog_name=$2
3896 if test "${ac_cv_path_EGREP+set}" = set; then
3897   echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899   ac_path_EGREP_found=false
3900 # Loop through the user's path and test for each of PROGNAME-LIST
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3903 do
3904   IFS=$as_save_IFS
3905   test -z "$as_dir" && as_dir=.
3906   for ac_prog in egrep; do
3907   for ac_exec_ext in '' $ac_executable_extensions; do
3908     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3909     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3910     # Check for GNU ac_path_EGREP and select it if it is found.
3911   # Check for GNU $ac_path_EGREP
3912 case `"$ac_path_EGREP" --version 2>&1` in
3913 *GNU*)
3914   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3915 *)
3916   ac_count=0
3917   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3918   while :
3919   do
3920     cat "conftest.in" "conftest.in" >"conftest.tmp"
3921     mv "conftest.tmp" "conftest.in"
3922     cp "conftest.in" "conftest.nl"
3923     echo 'EGREP' >> "conftest.nl"
3924     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3925     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3926     ac_count=`expr $ac_count + 1`
3927     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3928       # Best one so far, save it but keep looking for a better one
3929       ac_cv_path_EGREP="$ac_path_EGREP"
3930       ac_path_EGREP_max=$ac_count
3931     fi
3932     # 10*(2^10) chars as input seems more than enough
3933     test $ac_count -gt 10 && break
3934   done
3935   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3936 esac
3937
3938
3939     $ac_path_EGREP_found && break 3
3940   done
3941 done
3942
3943 done
3944 IFS=$as_save_IFS
3945
3946
3947 fi
3948
3949 EGREP="$ac_cv_path_EGREP"
3950 if test -z "$EGREP"; then
3951   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3952 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3953    { (exit 1); exit 1; }; }
3954 fi
3955
3956 else
3957   ac_cv_path_EGREP=$EGREP
3958 fi
3959
3960
3961    fi
3962 fi
3963 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3964 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3965  EGREP="$ac_cv_path_EGREP"
3966
3967
3968
3969 # Check whether --with-gnu-ld was given.
3970 if test "${with_gnu_ld+set}" = set; then
3971   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3972 else
3973   with_gnu_ld=no
3974 fi
3975
3976 ac_prog=ld
3977 if test "$GCC" = yes; then
3978   # Check if gcc -print-prog-name=ld gives a path.
3979   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3980 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3981   case $host in
3982   *-*-mingw*)
3983     # gcc leaves a trailing carriage return which upsets mingw
3984     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3985   *)
3986     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3987   esac
3988   case $ac_prog in
3989     # Accept absolute paths.
3990     [\\/]* | ?:[\\/]*)
3991       re_direlt='/[^/][^/]*/\.\./'
3992       # Canonicalize the pathname of ld
3993       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3994       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3995         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3996       done
3997       test -z "$LD" && LD="$ac_prog"
3998       ;;
3999   "")
4000     # If it fails, then pretend we aren't using GCC.
4001     ac_prog=ld
4002     ;;
4003   *)
4004     # If it is relative, then search for the first ld in PATH.
4005     with_gnu_ld=unknown
4006     ;;
4007   esac
4008 elif test "$with_gnu_ld" = yes; then
4009   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4010 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4011 else
4012   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4013 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4014 fi
4015 if test "${lt_cv_path_LD+set}" = set; then
4016   echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018   if test -z "$LD"; then
4019   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4020   for ac_dir in $PATH; do
4021     IFS="$lt_save_ifs"
4022     test -z "$ac_dir" && ac_dir=.
4023     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4024       lt_cv_path_LD="$ac_dir/$ac_prog"
4025       # Check to see if the program is GNU ld.  I'd rather use --version,
4026       # but apparently some variants of GNU ld only accept -v.
4027       # Break only if it was the GNU/non-GNU ld that we prefer.
4028       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4029       *GNU* | *'with BFD'*)
4030         test "$with_gnu_ld" != no && break
4031         ;;
4032       *)
4033         test "$with_gnu_ld" != yes && break
4034         ;;
4035       esac
4036     fi
4037   done
4038   IFS="$lt_save_ifs"
4039 else
4040   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4041 fi
4042 fi
4043
4044 LD="$lt_cv_path_LD"
4045 if test -n "$LD"; then
4046   { echo "$as_me:$LINENO: result: $LD" >&5
4047 echo "${ECHO_T}$LD" >&6; }
4048 else
4049   { echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6; }
4051 fi
4052 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4053 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4054    { (exit 1); exit 1; }; }
4055 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4056 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4057 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4058   echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4061 case `$LD -v 2>&1 </dev/null` in
4062 *GNU* | *'with BFD'*)
4063   lt_cv_prog_gnu_ld=yes
4064   ;;
4065 *)
4066   lt_cv_prog_gnu_ld=no
4067   ;;
4068 esac
4069 fi
4070 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4071 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4072 with_gnu_ld=$lt_cv_prog_gnu_ld
4073
4074
4075 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4076 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4077 if test "${lt_cv_ld_reload_flag+set}" = set; then
4078   echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080   lt_cv_ld_reload_flag='-r'
4081 fi
4082 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4083 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4084 reload_flag=$lt_cv_ld_reload_flag
4085 case $reload_flag in
4086 "" | " "*) ;;
4087 *) reload_flag=" $reload_flag" ;;
4088 esac
4089 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4090 case $host_os in
4091   darwin*)
4092     if test "$GCC" = yes; then
4093       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4094     else
4095       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4096     fi
4097     ;;
4098 esac
4099
4100 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4101 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4102 if test "${lt_cv_path_NM+set}" = set; then
4103   echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105   if test -n "$NM"; then
4106   # Let the user override the test.
4107   lt_cv_path_NM="$NM"
4108 else
4109   lt_nm_to_check="${ac_tool_prefix}nm"
4110   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4111     lt_nm_to_check="$lt_nm_to_check nm"
4112   fi
4113   for lt_tmp_nm in $lt_nm_to_check; do
4114     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4115     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4116       IFS="$lt_save_ifs"
4117       test -z "$ac_dir" && ac_dir=.
4118       tmp_nm="$ac_dir/$lt_tmp_nm"
4119       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4120         # Check to see if the nm accepts a BSD-compat flag.
4121         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4122         #   nm: unknown option "B" ignored
4123         # Tru64's nm complains that /dev/null is an invalid object file
4124         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4125         */dev/null* | *'Invalid file or object type'*)
4126           lt_cv_path_NM="$tmp_nm -B"
4127           break
4128           ;;
4129         *)
4130           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4131           */dev/null*)
4132             lt_cv_path_NM="$tmp_nm -p"
4133             break
4134             ;;
4135           *)
4136             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4137             continue # so that we can try to find one that supports BSD flags
4138             ;;
4139           esac
4140           ;;
4141         esac
4142       fi
4143     done
4144     IFS="$lt_save_ifs"
4145   done
4146   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4147 fi
4148 fi
4149 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4150 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4151 NM="$lt_cv_path_NM"
4152
4153 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4154 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4155 LN_S=$as_ln_s
4156 if test "$LN_S" = "ln -s"; then
4157   { echo "$as_me:$LINENO: result: yes" >&5
4158 echo "${ECHO_T}yes" >&6; }
4159 else
4160   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4161 echo "${ECHO_T}no, using $LN_S" >&6; }
4162 fi
4163
4164 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4165 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4166 if test "${lt_cv_deplibs_check_method+set}" = set; then
4167   echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169   lt_cv_file_magic_cmd='$MAGIC_CMD'
4170 lt_cv_file_magic_test_file=
4171 lt_cv_deplibs_check_method='unknown'
4172 # Need to set the preceding variable on all platforms that support
4173 # interlibrary dependencies.
4174 # 'none' -- dependencies not supported.
4175 # `unknown' -- same as none, but documents that we really don't know.
4176 # 'pass_all' -- all dependencies passed with no checks.
4177 # 'test_compile' -- check by making test program.
4178 # 'file_magic [[regex]]' -- check by looking for files in library path
4179 # which responds to the $file_magic_cmd with a given extended regex.
4180 # If you have `file' or equivalent on your system and you're not sure
4181 # whether `pass_all' will *always* work, you probably want this one.
4182
4183 case $host_os in
4184 aix4* | aix5*)
4185   lt_cv_deplibs_check_method=pass_all
4186   ;;
4187
4188 beos*)
4189   lt_cv_deplibs_check_method=pass_all
4190   ;;
4191
4192 bsdi[45]*)
4193   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4194   lt_cv_file_magic_cmd='/usr/bin/file -L'
4195   lt_cv_file_magic_test_file=/shlib/libc.so
4196   ;;
4197
4198 cygwin*)
4199   # func_win32_libid is a shell function defined in ltmain.sh
4200   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4201   lt_cv_file_magic_cmd='func_win32_libid'
4202   ;;
4203
4204 mingw* | pw32*)
4205   # Base MSYS/MinGW do not provide the 'file' command needed by
4206   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4207   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4208   lt_cv_file_magic_cmd='$OBJDUMP -f'
4209   ;;
4210
4211 darwin* | rhapsody*)
4212   lt_cv_deplibs_check_method=pass_all
4213   ;;
4214
4215 freebsd* | dragonfly*)
4216   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4217     case $host_cpu in
4218     i*86 )
4219       # Not sure whether the presence of OpenBSD here was a mistake.
4220       # Let's accept both of them until this is cleared up.
4221       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4222       lt_cv_file_magic_cmd=/usr/bin/file
4223       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4224       ;;
4225     esac
4226   else
4227     lt_cv_deplibs_check_method=pass_all
4228   fi
4229   ;;
4230
4231 gnu*)
4232   lt_cv_deplibs_check_method=pass_all
4233   ;;
4234
4235 hpux10.20* | hpux11*)
4236   lt_cv_file_magic_cmd=/usr/bin/file
4237   case $host_cpu in
4238   ia64*)
4239     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4240     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4241     ;;
4242   hppa*64*)
4243     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]'
4244     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4245     ;;
4246   *)
4247     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4248     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4249     ;;
4250   esac
4251   ;;
4252
4253 interix3*)
4254   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4255   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4256   ;;
4257
4258 irix5* | irix6* | nonstopux*)
4259   case $LD in
4260   *-32|*"-32 ") libmagic=32-bit;;
4261   *-n32|*"-n32 ") libmagic=N32;;
4262   *-64|*"-64 ") libmagic=64-bit;;
4263   *) libmagic=never-match;;
4264   esac
4265   lt_cv_deplibs_check_method=pass_all
4266   ;;
4267
4268 # This must be Linux ELF.
4269 linux* | k*bsd*-gnu)
4270   lt_cv_deplibs_check_method=pass_all
4271   ;;
4272
4273 netbsd* | netbsdelf*-gnu)
4274   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4275     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4276   else
4277     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4278   fi
4279   ;;
4280
4281 newos6*)
4282   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4283   lt_cv_file_magic_cmd=/usr/bin/file
4284   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4285   ;;
4286
4287 nto-qnx*)
4288   lt_cv_deplibs_check_method=unknown
4289   ;;
4290
4291 openbsd*)
4292   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4293     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4294   else
4295     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4296   fi
4297   ;;
4298
4299 osf3* | osf4* | osf5*)
4300   lt_cv_deplibs_check_method=pass_all
4301   ;;
4302
4303 solaris*)
4304   lt_cv_deplibs_check_method=pass_all
4305   ;;
4306
4307 sysv4 | sysv4.3*)
4308   case $host_vendor in
4309   motorola)
4310     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]'
4311     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4312     ;;
4313   ncr)
4314     lt_cv_deplibs_check_method=pass_all
4315     ;;
4316   sequent)
4317     lt_cv_file_magic_cmd='/bin/file'
4318     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4319     ;;
4320   sni)
4321     lt_cv_file_magic_cmd='/bin/file'
4322     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4323     lt_cv_file_magic_test_file=/lib/libc.so
4324     ;;
4325   siemens)
4326     lt_cv_deplibs_check_method=pass_all
4327     ;;
4328   pc)
4329     lt_cv_deplibs_check_method=pass_all
4330     ;;
4331   esac
4332   ;;
4333
4334 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4335   lt_cv_deplibs_check_method=pass_all
4336   ;;
4337 esac
4338
4339 fi
4340 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4341 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4342 file_magic_cmd=$lt_cv_file_magic_cmd
4343 deplibs_check_method=$lt_cv_deplibs_check_method
4344 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4345
4346
4347
4348
4349 # If no C compiler was specified, use CC.
4350 LTCC=${LTCC-"$CC"}
4351
4352 # If no C compiler flags were specified, use CFLAGS.
4353 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4354
4355 # Allow CC to be a program name with arguments.
4356 compiler=$CC
4357
4358
4359 # Check whether --enable-libtool-lock was given.
4360 if test "${enable_libtool_lock+set}" = set; then
4361   enableval=$enable_libtool_lock;
4362 fi
4363
4364 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4365
4366 # Some flags need to be propagated to the compiler or linker for good
4367 # libtool support.
4368 case $host in
4369 ia64-*-hpux*)
4370   # Find out which ABI we are using.
4371   echo 'int i;' > conftest.$ac_ext
4372   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373   (eval $ac_compile) 2>&5
4374   ac_status=$?
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); }; then
4377     case `/usr/bin/file conftest.$ac_objext` in
4378     *ELF-32*)
4379       HPUX_IA64_MODE="32"
4380       ;;
4381     *ELF-64*)
4382       HPUX_IA64_MODE="64"
4383       ;;
4384     esac
4385   fi
4386   rm -rf conftest*
4387   ;;
4388 *-*-irix6*)
4389   # Find out which ABI we are using.
4390   echo '#line 4390 "configure"' > conftest.$ac_ext
4391   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392   (eval $ac_compile) 2>&5
4393   ac_status=$?
4394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395   (exit $ac_status); }; then
4396    if test "$lt_cv_prog_gnu_ld" = yes; then
4397     case `/usr/bin/file conftest.$ac_objext` in
4398     *32-bit*)
4399       LD="${LD-ld} -melf32bsmip"
4400       ;;
4401     *N32*)
4402       LD="${LD-ld} -melf32bmipn32"
4403       ;;
4404     *64-bit*)
4405       LD="${LD-ld} -melf64bmip"
4406       ;;
4407     esac
4408    else
4409     case `/usr/bin/file conftest.$ac_objext` in
4410     *32-bit*)
4411       LD="${LD-ld} -32"
4412       ;;
4413     *N32*)
4414       LD="${LD-ld} -n32"
4415       ;;
4416     *64-bit*)
4417       LD="${LD-ld} -64"
4418       ;;
4419     esac
4420    fi
4421   fi
4422   rm -rf conftest*
4423   ;;
4424
4425 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4426   # Find out which ABI we are using.
4427   echo 'int i;' > conftest.$ac_ext
4428   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429   (eval $ac_compile) 2>&5
4430   ac_status=$?
4431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432   (exit $ac_status); }; then
4433     case `/usr/bin/file conftest.o` in
4434     *32-bit*)
4435       case $host in
4436         x86_64-*linux*)
4437           LD="${LD-ld} -m elf_i386"
4438           ;;
4439         ppc64-*linux*|powerpc64-*linux*)
4440           LD="${LD-ld} -m elf32ppclinux"
4441           ;;
4442         s390x-*linux*)
4443           LD="${LD-ld} -m elf_s390"
4444           ;;
4445         sparc64-*linux*)
4446           LD="${LD-ld} -m elf32_sparc"
4447           ;;
4448       esac
4449       ;;
4450     *64-bit*)
4451       case $host in
4452         x86_64-*linux*)
4453           LD="${LD-ld} -m elf_x86_64"
4454           ;;
4455         ppc*-*linux*|powerpc*-*linux*)
4456           LD="${LD-ld} -m elf64ppc"
4457           ;;
4458         s390*-*linux*)
4459           LD="${LD-ld} -m elf64_s390"
4460           ;;
4461         sparc*-*linux*)
4462           LD="${LD-ld} -m elf64_sparc"
4463           ;;
4464       esac
4465       ;;
4466     esac
4467   fi
4468   rm -rf conftest*
4469   ;;
4470
4471 *-*-sco3.2v5*)
4472   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4473   SAVE_CFLAGS="$CFLAGS"
4474   CFLAGS="$CFLAGS -belf"
4475   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4476 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4477 if test "${lt_cv_cc_needs_belf+set}" = set; then
4478   echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480   ac_ext=c
4481 ac_cpp='$CPP $CPPFLAGS'
4482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4485
4486      cat >conftest.$ac_ext <<_ACEOF
4487 /* confdefs.h.  */
4488 _ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h.  */
4492
4493 int
4494 main ()
4495 {
4496
4497   ;
4498   return 0;
4499 }
4500 _ACEOF
4501 rm -f conftest.$ac_objext conftest$ac_exeext
4502 if { (ac_try="$ac_link"
4503 case "(($ac_try" in
4504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505   *) ac_try_echo=$ac_try;;
4506 esac
4507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4508   (eval "$ac_link") 2>conftest.er1
4509   ac_status=$?
4510   grep -v '^ *+' conftest.er1 >conftest.err
4511   rm -f conftest.er1
4512   cat conftest.err >&5
4513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514   (exit $ac_status); } && {
4515          test -z "$ac_c_werror_flag" ||
4516          test ! -s conftest.err
4517        } && test -s conftest$ac_exeext &&
4518        $as_test_x conftest$ac_exeext; then
4519   lt_cv_cc_needs_belf=yes
4520 else
4521   echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4523
4524         lt_cv_cc_needs_belf=no
4525 fi
4526
4527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4528       conftest$ac_exeext conftest.$ac_ext
4529      ac_ext=c
4530 ac_cpp='$CPP $CPPFLAGS'
4531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4534
4535 fi
4536 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4537 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4538   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4539     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4540     CFLAGS="$SAVE_CFLAGS"
4541   fi
4542   ;;
4543 sparc*-*solaris*)
4544   # Find out which ABI we are using.
4545   echo 'int i;' > conftest.$ac_ext
4546   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547   (eval $ac_compile) 2>&5
4548   ac_status=$?
4549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550   (exit $ac_status); }; then
4551     case `/usr/bin/file conftest.o` in
4552     *64-bit*)
4553       case $lt_cv_prog_gnu_ld in
4554       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4555       *)    LD="${LD-ld} -64" ;;
4556       esac
4557       ;;
4558     esac
4559   fi
4560   rm -rf conftest*
4561   ;;
4562
4563 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4564   if test -n "$ac_tool_prefix"; then
4565   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4566 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4569 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4570   echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572   if test -n "$DLLTOOL"; then
4573   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4574 else
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4577 do
4578   IFS=$as_save_IFS
4579   test -z "$as_dir" && as_dir=.
4580   for ac_exec_ext in '' $ac_executable_extensions; do
4581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4582     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584     break 2
4585   fi
4586 done
4587 done
4588 IFS=$as_save_IFS
4589
4590 fi
4591 fi
4592 DLLTOOL=$ac_cv_prog_DLLTOOL
4593 if test -n "$DLLTOOL"; then
4594   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4595 echo "${ECHO_T}$DLLTOOL" >&6; }
4596 else
4597   { echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6; }
4599 fi
4600
4601
4602 fi
4603 if test -z "$ac_cv_prog_DLLTOOL"; then
4604   ac_ct_DLLTOOL=$DLLTOOL
4605   # Extract the first word of "dlltool", so it can be a program name with args.
4606 set dummy dlltool; ac_word=$2
4607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4609 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4610   echo $ECHO_N "(cached) $ECHO_C" >&6
4611 else
4612   if test -n "$ac_ct_DLLTOOL"; then
4613   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4614 else
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4617 do
4618   IFS=$as_save_IFS
4619   test -z "$as_dir" && as_dir=.
4620   for ac_exec_ext in '' $ac_executable_extensions; do
4621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624     break 2
4625   fi
4626 done
4627 done
4628 IFS=$as_save_IFS
4629
4630 fi
4631 fi
4632 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4633 if test -n "$ac_ct_DLLTOOL"; then
4634   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4635 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4636 else
4637   { echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6; }
4639 fi
4640
4641   if test "x$ac_ct_DLLTOOL" = x; then
4642     DLLTOOL="false"
4643   else
4644     case $cross_compiling:$ac_tool_warned in
4645 yes:)
4646 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4647 whose name does not start with the host triplet.  If you think this
4648 configuration is useful to you, please write to autoconf@gnu.org." >&5
4649 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4650 whose name does not start with the host triplet.  If you think this
4651 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4652 ac_tool_warned=yes ;;
4653 esac
4654     DLLTOOL=$ac_ct_DLLTOOL
4655   fi
4656 else
4657   DLLTOOL="$ac_cv_prog_DLLTOOL"
4658 fi
4659
4660   if test -n "$ac_tool_prefix"; then
4661   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4662 set dummy ${ac_tool_prefix}as; ac_word=$2
4663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665 if test "${ac_cv_prog_AS+set}" = set; then
4666   echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668   if test -n "$AS"; then
4669   ac_cv_prog_AS="$AS" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4673 do
4674   IFS=$as_save_IFS
4675   test -z "$as_dir" && as_dir=.
4676   for ac_exec_ext in '' $ac_executable_extensions; do
4677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678     ac_cv_prog_AS="${ac_tool_prefix}as"
4679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680     break 2
4681   fi
4682 done
4683 done
4684 IFS=$as_save_IFS
4685
4686 fi
4687 fi
4688 AS=$ac_cv_prog_AS
4689 if test -n "$AS"; then
4690   { echo "$as_me:$LINENO: result: $AS" >&5
4691 echo "${ECHO_T}$AS" >&6; }
4692 else
4693   { echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6; }
4695 fi
4696
4697
4698 fi
4699 if test -z "$ac_cv_prog_AS"; then
4700   ac_ct_AS=$AS
4701   # Extract the first word of "as", so it can be a program name with args.
4702 set dummy as; ac_word=$2
4703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4705 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4706   echo $ECHO_N "(cached) $ECHO_C" >&6
4707 else
4708   if test -n "$ac_ct_AS"; then
4709   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4710 else
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714   IFS=$as_save_IFS
4715   test -z "$as_dir" && as_dir=.
4716   for ac_exec_ext in '' $ac_executable_extensions; do
4717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4718     ac_cv_prog_ac_ct_AS="as"
4719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4720     break 2
4721   fi
4722 done
4723 done
4724 IFS=$as_save_IFS
4725
4726 fi
4727 fi
4728 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4729 if test -n "$ac_ct_AS"; then
4730   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4731 echo "${ECHO_T}$ac_ct_AS" >&6; }
4732 else
4733   { echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6; }
4735 fi
4736
4737   if test "x$ac_ct_AS" = x; then
4738     AS="false"
4739   else
4740     case $cross_compiling:$ac_tool_warned in
4741 yes:)
4742 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4743 whose name does not start with the host triplet.  If you think this
4744 configuration is useful to you, please write to autoconf@gnu.org." >&5
4745 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4746 whose name does not start with the host triplet.  If you think this
4747 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4748 ac_tool_warned=yes ;;
4749 esac
4750     AS=$ac_ct_AS
4751   fi
4752 else
4753   AS="$ac_cv_prog_AS"
4754 fi
4755
4756   if test -n "$ac_tool_prefix"; then
4757   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4758 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4761 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4762   echo $ECHO_N "(cached) $ECHO_C" >&6
4763 else
4764   if test -n "$OBJDUMP"; then
4765   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4766 else
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH
4769 do
4770   IFS=$as_save_IFS
4771   test -z "$as_dir" && as_dir=.
4772   for ac_exec_ext in '' $ac_executable_extensions; do
4773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4774     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4776     break 2
4777   fi
4778 done
4779 done
4780 IFS=$as_save_IFS
4781
4782 fi
4783 fi
4784 OBJDUMP=$ac_cv_prog_OBJDUMP
4785 if test -n "$OBJDUMP"; then
4786   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4787 echo "${ECHO_T}$OBJDUMP" >&6; }
4788 else
4789   { echo "$as_me:$LINENO: result: no" >&5
4790 echo "${ECHO_T}no" >&6; }
4791 fi
4792
4793
4794 fi
4795 if test -z "$ac_cv_prog_OBJDUMP"; then
4796   ac_ct_OBJDUMP=$OBJDUMP
4797   # Extract the first word of "objdump", so it can be a program name with args.
4798 set dummy objdump; ac_word=$2
4799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4801 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4802   echo $ECHO_N "(cached) $ECHO_C" >&6
4803 else
4804   if test -n "$ac_ct_OBJDUMP"; then
4805   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4806 else
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH
4809 do
4810   IFS=$as_save_IFS
4811   test -z "$as_dir" && as_dir=.
4812   for ac_exec_ext in '' $ac_executable_extensions; do
4813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4814     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4816     break 2
4817   fi
4818 done
4819 done
4820 IFS=$as_save_IFS
4821
4822 fi
4823 fi
4824 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4825 if test -n "$ac_ct_OBJDUMP"; then
4826   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4827 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4828 else
4829   { echo "$as_me:$LINENO: result: no" >&5
4830 echo "${ECHO_T}no" >&6; }
4831 fi
4832
4833   if test "x$ac_ct_OBJDUMP" = x; then
4834     OBJDUMP="false"
4835   else
4836     case $cross_compiling:$ac_tool_warned in
4837 yes:)
4838 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4839 whose name does not start with the host triplet.  If you think this
4840 configuration is useful to you, please write to autoconf@gnu.org." >&5
4841 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4842 whose name does not start with the host triplet.  If you think this
4843 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4844 ac_tool_warned=yes ;;
4845 esac
4846     OBJDUMP=$ac_ct_OBJDUMP
4847   fi
4848 else
4849   OBJDUMP="$ac_cv_prog_OBJDUMP"
4850 fi
4851
4852   ;;
4853
4854 esac
4855
4856 need_locks="$enable_libtool_lock"
4857
4858
4859 ac_ext=c
4860 ac_cpp='$CPP $CPPFLAGS'
4861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4864 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4865 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4866 # On Suns, sometimes $CPP names a directory.
4867 if test -n "$CPP" && test -d "$CPP"; then
4868   CPP=
4869 fi
4870 if test -z "$CPP"; then
4871   if test "${ac_cv_prog_CPP+set}" = set; then
4872   echo $ECHO_N "(cached) $ECHO_C" >&6
4873 else
4874       # Double quotes because CPP needs to be expanded
4875     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4876     do
4877       ac_preproc_ok=false
4878 for ac_c_preproc_warn_flag in '' yes
4879 do
4880   # Use a header file that comes with gcc, so configuring glibc
4881   # with a fresh cross-compiler works.
4882   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4883   # <limits.h> exists even on freestanding compilers.
4884   # On the NeXT, cc -E runs the code through the compiler's parser,
4885   # not just through cpp. "Syntax error" is here to catch this case.
4886   cat >conftest.$ac_ext <<_ACEOF
4887 /* confdefs.h.  */
4888 _ACEOF
4889 cat confdefs.h >>conftest.$ac_ext
4890 cat >>conftest.$ac_ext <<_ACEOF
4891 /* end confdefs.h.  */
4892 #ifdef __STDC__
4893 # include <limits.h>
4894 #else
4895 # include <assert.h>
4896 #endif
4897                      Syntax error
4898 _ACEOF
4899 if { (ac_try="$ac_cpp conftest.$ac_ext"
4900 case "(($ac_try" in
4901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902   *) ac_try_echo=$ac_try;;
4903 esac
4904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4905   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4906   ac_status=$?
4907   grep -v '^ *+' conftest.er1 >conftest.err
4908   rm -f conftest.er1
4909   cat conftest.err >&5
4910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911   (exit $ac_status); } >/dev/null && {
4912          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4913          test ! -s conftest.err
4914        }; then
4915   :
4916 else
4917   echo "$as_me: failed program was:" >&5
4918 sed 's/^/| /' conftest.$ac_ext >&5
4919
4920   # Broken: fails on valid input.
4921 continue
4922 fi
4923
4924 rm -f conftest.err conftest.$ac_ext
4925
4926   # OK, works on sane cases.  Now check whether nonexistent headers
4927   # can be detected and how.
4928   cat >conftest.$ac_ext <<_ACEOF
4929 /* confdefs.h.  */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h.  */
4934 #include <ac_nonexistent.h>
4935 _ACEOF
4936 if { (ac_try="$ac_cpp conftest.$ac_ext"
4937 case "(($ac_try" in
4938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4939   *) ac_try_echo=$ac_try;;
4940 esac
4941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4942   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4943   ac_status=$?
4944   grep -v '^ *+' conftest.er1 >conftest.err
4945   rm -f conftest.er1
4946   cat conftest.err >&5
4947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948   (exit $ac_status); } >/dev/null && {
4949          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4950          test ! -s conftest.err
4951        }; then
4952   # Broken: success on invalid input.
4953 continue
4954 else
4955   echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4957
4958   # Passes both tests.
4959 ac_preproc_ok=:
4960 break
4961 fi
4962
4963 rm -f conftest.err conftest.$ac_ext
4964
4965 done
4966 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4967 rm -f conftest.err conftest.$ac_ext
4968 if $ac_preproc_ok; then
4969   break
4970 fi
4971
4972     done
4973     ac_cv_prog_CPP=$CPP
4974
4975 fi
4976   CPP=$ac_cv_prog_CPP
4977 else
4978   ac_cv_prog_CPP=$CPP
4979 fi
4980 { echo "$as_me:$LINENO: result: $CPP" >&5
4981 echo "${ECHO_T}$CPP" >&6; }
4982 ac_preproc_ok=false
4983 for ac_c_preproc_warn_flag in '' yes
4984 do
4985   # Use a header file that comes with gcc, so configuring glibc
4986   # with a fresh cross-compiler works.
4987   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4988   # <limits.h> exists even on freestanding compilers.
4989   # On the NeXT, cc -E runs the code through the compiler's parser,
4990   # not just through cpp. "Syntax error" is here to catch this case.
4991   cat >conftest.$ac_ext <<_ACEOF
4992 /* confdefs.h.  */
4993 _ACEOF
4994 cat confdefs.h >>conftest.$ac_ext
4995 cat >>conftest.$ac_ext <<_ACEOF
4996 /* end confdefs.h.  */
4997 #ifdef __STDC__
4998 # include <limits.h>
4999 #else
5000 # include <assert.h>
5001 #endif
5002                      Syntax error
5003 _ACEOF
5004 if { (ac_try="$ac_cpp conftest.$ac_ext"
5005 case "(($ac_try" in
5006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007   *) ac_try_echo=$ac_try;;
5008 esac
5009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5011   ac_status=$?
5012   grep -v '^ *+' conftest.er1 >conftest.err
5013   rm -f conftest.er1
5014   cat conftest.err >&5
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); } >/dev/null && {
5017          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5018          test ! -s conftest.err
5019        }; then
5020   :
5021 else
5022   echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5024
5025   # Broken: fails on valid input.
5026 continue
5027 fi
5028
5029 rm -f conftest.err conftest.$ac_ext
5030
5031   # OK, works on sane cases.  Now check whether nonexistent headers
5032   # can be detected and how.
5033   cat >conftest.$ac_ext <<_ACEOF
5034 /* confdefs.h.  */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h.  */
5039 #include <ac_nonexistent.h>
5040 _ACEOF
5041 if { (ac_try="$ac_cpp conftest.$ac_ext"
5042 case "(($ac_try" in
5043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044   *) ac_try_echo=$ac_try;;
5045 esac
5046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5048   ac_status=$?
5049   grep -v '^ *+' conftest.er1 >conftest.err
5050   rm -f conftest.er1
5051   cat conftest.err >&5
5052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053   (exit $ac_status); } >/dev/null && {
5054          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5055          test ! -s conftest.err
5056        }; then
5057   # Broken: success on invalid input.
5058 continue
5059 else
5060   echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5062
5063   # Passes both tests.
5064 ac_preproc_ok=:
5065 break
5066 fi
5067
5068 rm -f conftest.err conftest.$ac_ext
5069
5070 done
5071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5072 rm -f conftest.err conftest.$ac_ext
5073 if $ac_preproc_ok; then
5074   :
5075 else
5076   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5077 See \`config.log' for more details." >&5
5078 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5079 See \`config.log' for more details." >&2;}
5080    { (exit 1); exit 1; }; }
5081 fi
5082
5083 ac_ext=c
5084 ac_cpp='$CPP $CPPFLAGS'
5085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088
5089
5090 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5091 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5092 if test "${ac_cv_header_stdc+set}" = set; then
5093   echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095   cat >conftest.$ac_ext <<_ACEOF
5096 /* confdefs.h.  */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h.  */
5101 #include <stdlib.h>
5102 #include <stdarg.h>
5103 #include <string.h>
5104 #include <float.h>
5105
5106 int
5107 main ()
5108 {
5109
5110   ;
5111   return 0;
5112 }
5113 _ACEOF
5114 rm -f conftest.$ac_objext
5115 if { (ac_try="$ac_compile"
5116 case "(($ac_try" in
5117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118   *) ac_try_echo=$ac_try;;
5119 esac
5120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5121   (eval "$ac_compile") 2>conftest.er1
5122   ac_status=$?
5123   grep -v '^ *+' conftest.er1 >conftest.err
5124   rm -f conftest.er1
5125   cat conftest.err >&5
5126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127   (exit $ac_status); } && {
5128          test -z "$ac_c_werror_flag" ||
5129          test ! -s conftest.err
5130        } && test -s conftest.$ac_objext; then
5131   ac_cv_header_stdc=yes
5132 else
5133   echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5135
5136         ac_cv_header_stdc=no
5137 fi
5138
5139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140
5141 if test $ac_cv_header_stdc = yes; then
5142   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5143   cat >conftest.$ac_ext <<_ACEOF
5144 /* confdefs.h.  */
5145 _ACEOF
5146 cat confdefs.h >>conftest.$ac_ext
5147 cat >>conftest.$ac_ext <<_ACEOF
5148 /* end confdefs.h.  */
5149 #include <string.h>
5150
5151 _ACEOF
5152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5153   $EGREP "memchr" >/dev/null 2>&1; then
5154   :
5155 else
5156   ac_cv_header_stdc=no
5157 fi
5158 rm -f conftest*
5159
5160 fi
5161
5162 if test $ac_cv_header_stdc = yes; then
5163   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5164   cat >conftest.$ac_ext <<_ACEOF
5165 /* confdefs.h.  */
5166 _ACEOF
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h.  */
5170 #include <stdlib.h>
5171
5172 _ACEOF
5173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5174   $EGREP "free" >/dev/null 2>&1; then
5175   :
5176 else
5177   ac_cv_header_stdc=no
5178 fi
5179 rm -f conftest*
5180
5181 fi
5182
5183 if test $ac_cv_header_stdc = yes; then
5184   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5185   if test "$cross_compiling" = yes; then
5186   :
5187 else
5188   cat >conftest.$ac_ext <<_ACEOF
5189 /* confdefs.h.  */
5190 _ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h.  */
5194 #include <ctype.h>
5195 #include <stdlib.h>
5196 #if ((' ' & 0x0FF) == 0x020)
5197 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5198 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5199 #else
5200 # define ISLOWER(c) \
5201                    (('a' <= (c) && (c) <= 'i') \
5202                      || ('j' <= (c) && (c) <= 'r') \
5203                      || ('s' <= (c) && (c) <= 'z'))
5204 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5205 #endif
5206
5207 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5208 int
5209 main ()
5210 {
5211   int i;
5212   for (i = 0; i < 256; i++)
5213     if (XOR (islower (i), ISLOWER (i))
5214         || toupper (i) != TOUPPER (i))
5215       return 2;
5216   return 0;
5217 }
5218 _ACEOF
5219 rm -f conftest$ac_exeext
5220 if { (ac_try="$ac_link"
5221 case "(($ac_try" in
5222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223   *) ac_try_echo=$ac_try;;
5224 esac
5225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226   (eval "$ac_link") 2>&5
5227   ac_status=$?
5228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5230   { (case "(($ac_try" in
5231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232   *) ac_try_echo=$ac_try;;
5233 esac
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235   (eval "$ac_try") 2>&5
5236   ac_status=$?
5237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238   (exit $ac_status); }; }; then
5239   :
5240 else
5241   echo "$as_me: program exited with status $ac_status" >&5
5242 echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5244
5245 ( exit $ac_status )
5246 ac_cv_header_stdc=no
5247 fi
5248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5249 fi
5250
5251
5252 fi
5253 fi
5254 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5255 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5256 if test $ac_cv_header_stdc = yes; then
5257
5258 cat >>confdefs.h <<\_ACEOF
5259 #define STDC_HEADERS 1
5260 _ACEOF
5261
5262 fi
5263
5264 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5275                   inttypes.h stdint.h unistd.h
5276 do
5277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5281   echo $ECHO_N "(cached) $ECHO_C" >&6
5282 else
5283   cat >conftest.$ac_ext <<_ACEOF
5284 /* confdefs.h.  */
5285 _ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h.  */
5289 $ac_includes_default
5290
5291 #include <$ac_header>
5292 _ACEOF
5293 rm -f conftest.$ac_objext
5294 if { (ac_try="$ac_compile"
5295 case "(($ac_try" in
5296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297   *) ac_try_echo=$ac_try;;
5298 esac
5299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5300   (eval "$ac_compile") 2>conftest.er1
5301   ac_status=$?
5302   grep -v '^ *+' conftest.er1 >conftest.err
5303   rm -f conftest.er1
5304   cat conftest.err >&5
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); } && {
5307          test -z "$ac_c_werror_flag" ||
5308          test ! -s conftest.err
5309        } && test -s conftest.$ac_objext; then
5310   eval "$as_ac_Header=yes"
5311 else
5312   echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5314
5315         eval "$as_ac_Header=no"
5316 fi
5317
5318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5319 fi
5320 ac_res=`eval echo '${'$as_ac_Header'}'`
5321                { echo "$as_me:$LINENO: result: $ac_res" >&5
5322 echo "${ECHO_T}$ac_res" >&6; }
5323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5324   cat >>confdefs.h <<_ACEOF
5325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5326 _ACEOF
5327
5328 fi
5329
5330 done
5331
5332
5333
5334 for ac_header in dlfcn.h
5335 do
5336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5338   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5341   echo $ECHO_N "(cached) $ECHO_C" >&6
5342 fi
5343 ac_res=`eval echo '${'$as_ac_Header'}'`
5344                { echo "$as_me:$LINENO: result: $ac_res" >&5
5345 echo "${ECHO_T}$ac_res" >&6; }
5346 else
5347   # Is the header compilable?
5348 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5350 cat >conftest.$ac_ext <<_ACEOF
5351 /* confdefs.h.  */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h.  */
5356 $ac_includes_default
5357 #include <$ac_header>
5358 _ACEOF
5359 rm -f conftest.$ac_objext
5360 if { (ac_try="$ac_compile"
5361 case "(($ac_try" in
5362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363   *) ac_try_echo=$ac_try;;
5364 esac
5365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5366   (eval "$ac_compile") 2>conftest.er1
5367   ac_status=$?
5368   grep -v '^ *+' conftest.er1 >conftest.err
5369   rm -f conftest.er1
5370   cat conftest.err >&5
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); } && {
5373          test -z "$ac_c_werror_flag" ||
5374          test ! -s conftest.err
5375        } && test -s conftest.$ac_objext; then
5376   ac_header_compiler=yes
5377 else
5378   echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5380
5381         ac_header_compiler=no
5382 fi
5383
5384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5386 echo "${ECHO_T}$ac_header_compiler" >&6; }
5387
5388 # Is the header present?
5389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5391 cat >conftest.$ac_ext <<_ACEOF
5392 /* confdefs.h.  */
5393 _ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h.  */
5397 #include <$ac_header>
5398 _ACEOF
5399 if { (ac_try="$ac_cpp conftest.$ac_ext"
5400 case "(($ac_try" in
5401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402   *) ac_try_echo=$ac_try;;
5403 esac
5404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5406   ac_status=$?
5407   grep -v '^ *+' conftest.er1 >conftest.err
5408   rm -f conftest.er1
5409   cat conftest.err >&5
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); } >/dev/null && {
5412          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5413          test ! -s conftest.err
5414        }; then
5415   ac_header_preproc=yes
5416 else
5417   echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5419
5420   ac_header_preproc=no
5421 fi
5422
5423 rm -f conftest.err conftest.$ac_ext
5424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5425 echo "${ECHO_T}$ac_header_preproc" >&6; }
5426
5427 # So?  What about this header?
5428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5429   yes:no: )
5430     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5434     ac_header_preproc=yes
5435     ;;
5436   no:yes:* )
5437     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5439     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5440 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5441     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5443     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5444 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5447     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5449     ( cat <<\_ASBOX
5450 ## -------------------------------------------------- ##
5451 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5452 ## -------------------------------------------------- ##
5453 _ASBOX
5454      ) | sed "s/^/$as_me: WARNING:     /" >&2
5455     ;;
5456 esac
5457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5460   echo $ECHO_N "(cached) $ECHO_C" >&6
5461 else
5462   eval "$as_ac_Header=\$ac_header_preproc"
5463 fi
5464 ac_res=`eval echo '${'$as_ac_Header'}'`
5465                { echo "$as_me:$LINENO: result: $ac_res" >&5
5466 echo "${ECHO_T}$ac_res" >&6; }
5467
5468 fi
5469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5470   cat >>confdefs.h <<_ACEOF
5471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5472 _ACEOF
5473
5474 fi
5475
5476 done
5477
5478 ac_ext=cpp
5479 ac_cpp='$CXXCPP $CPPFLAGS'
5480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5483 if test -z "$CXX"; then
5484   if test -n "$CCC"; then
5485     CXX=$CCC
5486   else
5487     if test -n "$ac_tool_prefix"; then
5488   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5489   do
5490     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5494 if test "${ac_cv_prog_CXX+set}" = set; then
5495   echo $ECHO_N "(cached) $ECHO_C" >&6
5496 else
5497   if test -n "$CXX"; then
5498   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5499 else
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 for as_dir in $PATH
5502 do
5503   IFS=$as_save_IFS
5504   test -z "$as_dir" && as_dir=.
5505   for ac_exec_ext in '' $ac_executable_extensions; do
5506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5507     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5509     break 2
5510   fi
5511 done
5512 done
5513 IFS=$as_save_IFS
5514
5515 fi
5516 fi
5517 CXX=$ac_cv_prog_CXX
5518 if test -n "$CXX"; then
5519   { echo "$as_me:$LINENO: result: $CXX" >&5
5520 echo "${ECHO_T}$CXX" >&6; }
5521 else
5522   { echo "$as_me:$LINENO: result: no" >&5
5523 echo "${ECHO_T}no" >&6; }
5524 fi
5525
5526
5527     test -n "$CXX" && break
5528   done
5529 fi
5530 if test -z "$CXX"; then
5531   ac_ct_CXX=$CXX
5532   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5533 do
5534   # Extract the first word of "$ac_prog", so it can be a program name with args.
5535 set dummy $ac_prog; ac_word=$2
5536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5538 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5539   echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541   if test -n "$ac_ct_CXX"; then
5542   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5546 do
5547   IFS=$as_save_IFS
5548   test -z "$as_dir" && as_dir=.
5549   for ac_exec_ext in '' $ac_executable_extensions; do
5550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551     ac_cv_prog_ac_ct_CXX="$ac_prog"
5552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5553     break 2
5554   fi
5555 done
5556 done
5557 IFS=$as_save_IFS
5558
5559 fi
5560 fi
5561 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5562 if test -n "$ac_ct_CXX"; then
5563   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5564 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5565 else
5566   { echo "$as_me:$LINENO: result: no" >&5
5567 echo "${ECHO_T}no" >&6; }
5568 fi
5569
5570
5571   test -n "$ac_ct_CXX" && break
5572 done
5573
5574   if test "x$ac_ct_CXX" = x; then
5575     CXX="g++"
5576   else
5577     case $cross_compiling:$ac_tool_warned in
5578 yes:)
5579 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5580 whose name does not start with the host triplet.  If you think this
5581 configuration is useful to you, please write to autoconf@gnu.org." >&5
5582 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5583 whose name does not start with the host triplet.  If you think this
5584 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5585 ac_tool_warned=yes ;;
5586 esac
5587     CXX=$ac_ct_CXX
5588   fi
5589 fi
5590
5591   fi
5592 fi
5593 # Provide some information about the compiler.
5594 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5595 ac_compiler=`set X $ac_compile; echo $2`
5596 { (ac_try="$ac_compiler --version >&5"
5597 case "(($ac_try" in
5598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599   *) ac_try_echo=$ac_try;;
5600 esac
5601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602   (eval "$ac_compiler --version >&5") 2>&5
5603   ac_status=$?
5604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605   (exit $ac_status); }
5606 { (ac_try="$ac_compiler -v >&5"
5607 case "(($ac_try" in
5608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609   *) ac_try_echo=$ac_try;;
5610 esac
5611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612   (eval "$ac_compiler -v >&5") 2>&5
5613   ac_status=$?
5614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615   (exit $ac_status); }
5616 { (ac_try="$ac_compiler -V >&5"
5617 case "(($ac_try" in
5618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619   *) ac_try_echo=$ac_try;;
5620 esac
5621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622   (eval "$ac_compiler -V >&5") 2>&5
5623   ac_status=$?
5624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625   (exit $ac_status); }
5626
5627 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5628 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5629 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5630   echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632   cat >conftest.$ac_ext <<_ACEOF
5633 /* confdefs.h.  */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h.  */
5638
5639 int
5640 main ()
5641 {
5642 #ifndef __GNUC__
5643        choke me
5644 #endif
5645
5646   ;
5647   return 0;
5648 }
5649 _ACEOF
5650 rm -f conftest.$ac_objext
5651 if { (ac_try="$ac_compile"
5652 case "(($ac_try" in
5653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654   *) ac_try_echo=$ac_try;;
5655 esac
5656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657   (eval "$ac_compile") 2>conftest.er1
5658   ac_status=$?
5659   grep -v '^ *+' conftest.er1 >conftest.err
5660   rm -f conftest.er1
5661   cat conftest.err >&5
5662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663   (exit $ac_status); } && {
5664          test -z "$ac_cxx_werror_flag" ||
5665          test ! -s conftest.err
5666        } && test -s conftest.$ac_objext; then
5667   ac_compiler_gnu=yes
5668 else
5669   echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5671
5672         ac_compiler_gnu=no
5673 fi
5674
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5677
5678 fi
5679 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5680 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5681 GXX=`test $ac_compiler_gnu = yes && echo yes`
5682 ac_test_CXXFLAGS=${CXXFLAGS+set}
5683 ac_save_CXXFLAGS=$CXXFLAGS
5684 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5685 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5686 if test "${ac_cv_prog_cxx_g+set}" = set; then
5687   echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5690    ac_cxx_werror_flag=yes
5691    ac_cv_prog_cxx_g=no
5692    CXXFLAGS="-g"
5693    cat >conftest.$ac_ext <<_ACEOF
5694 /* confdefs.h.  */
5695 _ACEOF
5696 cat confdefs.h >>conftest.$ac_ext
5697 cat >>conftest.$ac_ext <<_ACEOF
5698 /* end confdefs.h.  */
5699
5700 int
5701 main ()
5702 {
5703
5704   ;
5705   return 0;
5706 }
5707 _ACEOF
5708 rm -f conftest.$ac_objext
5709 if { (ac_try="$ac_compile"
5710 case "(($ac_try" in
5711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712   *) ac_try_echo=$ac_try;;
5713 esac
5714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715   (eval "$ac_compile") 2>conftest.er1
5716   ac_status=$?
5717   grep -v '^ *+' conftest.er1 >conftest.err
5718   rm -f conftest.er1
5719   cat conftest.err >&5
5720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); } && {
5722          test -z "$ac_cxx_werror_flag" ||
5723          test ! -s conftest.err
5724        } && test -s conftest.$ac_objext; then
5725   ac_cv_prog_cxx_g=yes
5726 else
5727   echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.$ac_ext >&5
5729
5730         CXXFLAGS=""
5731       cat >conftest.$ac_ext <<_ACEOF
5732 /* confdefs.h.  */
5733 _ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h.  */
5737
5738 int
5739 main ()
5740 {
5741
5742   ;
5743   return 0;
5744 }
5745 _ACEOF
5746 rm -f conftest.$ac_objext
5747 if { (ac_try="$ac_compile"
5748 case "(($ac_try" in
5749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750   *) ac_try_echo=$ac_try;;
5751 esac
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753   (eval "$ac_compile") 2>conftest.er1
5754   ac_status=$?
5755   grep -v '^ *+' conftest.er1 >conftest.err
5756   rm -f conftest.er1
5757   cat conftest.err >&5
5758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759   (exit $ac_status); } && {
5760          test -z "$ac_cxx_werror_flag" ||
5761          test ! -s conftest.err
5762        } && test -s conftest.$ac_objext; then
5763   :
5764 else
5765   echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5767
5768         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5769          CXXFLAGS="-g"
5770          cat >conftest.$ac_ext <<_ACEOF
5771 /* confdefs.h.  */
5772 _ACEOF
5773 cat confdefs.h >>conftest.$ac_ext
5774 cat >>conftest.$ac_ext <<_ACEOF
5775 /* end confdefs.h.  */
5776
5777 int
5778 main ()
5779 {
5780
5781   ;
5782   return 0;
5783 }
5784 _ACEOF
5785 rm -f conftest.$ac_objext
5786 if { (ac_try="$ac_compile"
5787 case "(($ac_try" in
5788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789   *) ac_try_echo=$ac_try;;
5790 esac
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792   (eval "$ac_compile") 2>conftest.er1
5793   ac_status=$?
5794   grep -v '^ *+' conftest.er1 >conftest.err
5795   rm -f conftest.er1
5796   cat conftest.err >&5
5797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798   (exit $ac_status); } && {
5799          test -z "$ac_cxx_werror_flag" ||
5800          test ! -s conftest.err
5801        } && test -s conftest.$ac_objext; then
5802   ac_cv_prog_cxx_g=yes
5803 else
5804   echo "$as_me: failed program was:" >&5
5805 sed 's/^/| /' conftest.$ac_ext >&5
5806
5807
5808 fi
5809
5810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5811 fi
5812
5813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5814 fi
5815
5816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5817    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5818 fi
5819 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5820 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5821 if test "$ac_test_CXXFLAGS" = set; then
5822   CXXFLAGS=$ac_save_CXXFLAGS
5823 elif test $ac_cv_prog_cxx_g = yes; then
5824   if test "$GXX" = yes; then
5825     CXXFLAGS="-g -O2"
5826   else
5827     CXXFLAGS="-g"
5828   fi
5829 else
5830   if test "$GXX" = yes; then
5831     CXXFLAGS="-O2"
5832   else
5833     CXXFLAGS=
5834   fi
5835 fi
5836 ac_ext=cpp
5837 ac_cpp='$CXXCPP $CPPFLAGS'
5838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5841
5842 depcc="$CXX"  am_compiler_list=
5843
5844 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5845 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5846 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5847   echo $ECHO_N "(cached) $ECHO_C" >&6
5848 else
5849   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5850   # We make a subdir and do the tests there.  Otherwise we can end up
5851   # making bogus files that we don't know about and never remove.  For
5852   # instance it was reported that on HP-UX the gcc test will end up
5853   # making a dummy file named `D' -- because `-MD' means `put the output
5854   # in D'.
5855   mkdir conftest.dir
5856   # Copy depcomp to subdir because otherwise we won't find it if we're
5857   # using a relative directory.
5858   cp "$am_depcomp" conftest.dir
5859   cd conftest.dir
5860   # We will build objects and dependencies in a subdirectory because
5861   # it helps to detect inapplicable dependency modes.  For instance
5862   # both Tru64's cc and ICC support -MD to output dependencies as a
5863   # side effect of compilation, but ICC will put the dependencies in
5864   # the current directory while Tru64 will put them in the object
5865   # directory.
5866   mkdir sub
5867
5868   am_cv_CXX_dependencies_compiler_type=none
5869   if test "$am_compiler_list" = ""; then
5870      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5871   fi
5872   for depmode in $am_compiler_list; do
5873     # Setup a source with many dependencies, because some compilers
5874     # like to wrap large dependency lists on column 80 (with \), and
5875     # we should not choose a depcomp mode which is confused by this.
5876     #
5877     # We need to recreate these files for each test, as the compiler may
5878     # overwrite some of them when testing with obscure command lines.
5879     # This happens at least with the AIX C compiler.
5880     : > sub/conftest.c
5881     for i in 1 2 3 4 5 6; do
5882       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5883       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5884       # Solaris 8's {/usr,}/bin/sh.
5885       touch sub/conftst$i.h
5886     done
5887     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5888
5889     case $depmode in
5890     nosideeffect)
5891       # after this tag, mechanisms are not by side-effect, so they'll
5892       # only be used when explicitly requested
5893       if test "x$enable_dependency_tracking" = xyes; then
5894         continue
5895       else
5896         break
5897       fi
5898       ;;
5899     none) break ;;
5900     esac
5901     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5902     # mode.  It turns out that the SunPro C++ compiler does not properly
5903     # handle `-M -o', and we need to detect this.
5904     if depmode=$depmode \
5905        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5906        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5907        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5908          >/dev/null 2>conftest.err &&
5909        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5910        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5911        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5912       # icc doesn't choke on unknown options, it will just issue warnings
5913       # or remarks (even with -Werror).  So we grep stderr for any message
5914       # that says an option was ignored or not supported.
5915       # When given -MP, icc 7.0 and 7.1 complain thusly:
5916       #   icc: Command line warning: ignoring option '-M'; no argument required
5917       # The diagnosis changed in icc 8.0:
5918       #   icc: Command line remark: option '-MP' not supported
5919       if (grep 'ignoring option' conftest.err ||
5920           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5921         am_cv_CXX_dependencies_compiler_type=$depmode
5922         break
5923       fi
5924     fi
5925   done
5926
5927   cd ..
5928   rm -rf conftest.dir
5929 else
5930   am_cv_CXX_dependencies_compiler_type=none
5931 fi
5932
5933 fi
5934 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5935 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5936 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5937
5938
5939
5940 if
5941   test "x$enable_dependency_tracking" != xno \
5942   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5943   am__fastdepCXX_TRUE=
5944   am__fastdepCXX_FALSE='#'
5945 else
5946   am__fastdepCXX_TRUE='#'
5947   am__fastdepCXX_FALSE=
5948 fi
5949
5950
5951
5952
5953 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5954     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5955     (test "X$CXX" != "Xg++"))) ; then
5956   ac_ext=cpp
5957 ac_cpp='$CXXCPP $CPPFLAGS'
5958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5961 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5962 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5963 if test -z "$CXXCPP"; then
5964   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5965   echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967       # Double quotes because CXXCPP needs to be expanded
5968     for CXXCPP in "$CXX -E" "/lib/cpp"
5969     do
5970       ac_preproc_ok=false
5971 for ac_cxx_preproc_warn_flag in '' yes
5972 do
5973   # Use a header file that comes with gcc, so configuring glibc
5974   # with a fresh cross-compiler works.
5975   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5976   # <limits.h> exists even on freestanding compilers.
5977   # On the NeXT, cc -E runs the code through the compiler's parser,
5978   # not just through cpp. "Syntax error" is here to catch this case.
5979   cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h.  */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h.  */
5985 #ifdef __STDC__
5986 # include <limits.h>
5987 #else
5988 # include <assert.h>
5989 #endif
5990                      Syntax error
5991 _ACEOF
5992 if { (ac_try="$ac_cpp conftest.$ac_ext"
5993 case "(($ac_try" in
5994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995   *) ac_try_echo=$ac_try;;
5996 esac
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5999   ac_status=$?
6000   grep -v '^ *+' conftest.er1 >conftest.err
6001   rm -f conftest.er1
6002   cat conftest.err >&5
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); } >/dev/null && {
6005          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6006          test ! -s conftest.err
6007        }; then
6008   :
6009 else
6010   echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6012
6013   # Broken: fails on valid input.
6014 continue
6015 fi
6016
6017 rm -f conftest.err conftest.$ac_ext
6018
6019   # OK, works on sane cases.  Now check whether nonexistent headers
6020   # can be detected and how.
6021   cat >conftest.$ac_ext <<_ACEOF
6022 /* confdefs.h.  */
6023 _ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h.  */
6027 #include <ac_nonexistent.h>
6028 _ACEOF
6029 if { (ac_try="$ac_cpp conftest.$ac_ext"
6030 case "(($ac_try" in
6031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032   *) ac_try_echo=$ac_try;;
6033 esac
6034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6036   ac_status=$?
6037   grep -v '^ *+' conftest.er1 >conftest.err
6038   rm -f conftest.er1
6039   cat conftest.err >&5
6040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041   (exit $ac_status); } >/dev/null && {
6042          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6043          test ! -s conftest.err
6044        }; then
6045   # Broken: success on invalid input.
6046 continue
6047 else
6048   echo "$as_me: failed program was:" >&5
6049 sed 's/^/| /' conftest.$ac_ext >&5
6050
6051   # Passes both tests.
6052 ac_preproc_ok=:
6053 break
6054 fi
6055
6056 rm -f conftest.err conftest.$ac_ext
6057
6058 done
6059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6060 rm -f conftest.err conftest.$ac_ext
6061 if $ac_preproc_ok; then
6062   break
6063 fi
6064
6065     done
6066     ac_cv_prog_CXXCPP=$CXXCPP
6067
6068 fi
6069   CXXCPP=$ac_cv_prog_CXXCPP
6070 else
6071   ac_cv_prog_CXXCPP=$CXXCPP
6072 fi
6073 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6074 echo "${ECHO_T}$CXXCPP" >&6; }
6075 ac_preproc_ok=false
6076 for ac_cxx_preproc_warn_flag in '' yes
6077 do
6078   # Use a header file that comes with gcc, so configuring glibc
6079   # with a fresh cross-compiler works.
6080   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6081   # <limits.h> exists even on freestanding compilers.
6082   # On the NeXT, cc -E runs the code through the compiler's parser,
6083   # not just through cpp. "Syntax error" is here to catch this case.
6084   cat >conftest.$ac_ext <<_ACEOF
6085 /* confdefs.h.  */
6086 _ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h.  */
6090 #ifdef __STDC__
6091 # include <limits.h>
6092 #else
6093 # include <assert.h>
6094 #endif
6095                      Syntax error
6096 _ACEOF
6097 if { (ac_try="$ac_cpp conftest.$ac_ext"
6098 case "(($ac_try" in
6099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100   *) ac_try_echo=$ac_try;;
6101 esac
6102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6103   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6104   ac_status=$?
6105   grep -v '^ *+' conftest.er1 >conftest.err
6106   rm -f conftest.er1
6107   cat conftest.err >&5
6108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109   (exit $ac_status); } >/dev/null && {
6110          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6111          test ! -s conftest.err
6112        }; then
6113   :
6114 else
6115   echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.$ac_ext >&5
6117
6118   # Broken: fails on valid input.
6119 continue
6120 fi
6121
6122 rm -f conftest.err conftest.$ac_ext
6123
6124   # OK, works on sane cases.  Now check whether nonexistent headers
6125   # can be detected and how.
6126   cat >conftest.$ac_ext <<_ACEOF
6127 /* confdefs.h.  */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h.  */
6132 #include <ac_nonexistent.h>
6133 _ACEOF
6134 if { (ac_try="$ac_cpp conftest.$ac_ext"
6135 case "(($ac_try" in
6136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137   *) ac_try_echo=$ac_try;;
6138 esac
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6141   ac_status=$?
6142   grep -v '^ *+' conftest.er1 >conftest.err
6143   rm -f conftest.er1
6144   cat conftest.err >&5
6145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146   (exit $ac_status); } >/dev/null && {
6147          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6148          test ! -s conftest.err
6149        }; then
6150   # Broken: success on invalid input.
6151 continue
6152 else
6153   echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6155
6156   # Passes both tests.
6157 ac_preproc_ok=:
6158 break
6159 fi
6160
6161 rm -f conftest.err conftest.$ac_ext
6162
6163 done
6164 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6165 rm -f conftest.err conftest.$ac_ext
6166 if $ac_preproc_ok; then
6167   :
6168 else
6169   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6170 See \`config.log' for more details." >&5
6171 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6172 See \`config.log' for more details." >&2;}
6173    { (exit 1); exit 1; }; }
6174 fi
6175
6176 ac_ext=cpp
6177 ac_cpp='$CXXCPP $CPPFLAGS'
6178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6181
6182 fi
6183
6184
6185 ac_ext=f
6186 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6187 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6188 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6189 if test -n "$ac_tool_prefix"; then
6190   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6191   do
6192     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6196 if test "${ac_cv_prog_F77+set}" = set; then
6197   echo $ECHO_N "(cached) $ECHO_C" >&6
6198 else
6199   if test -n "$F77"; then
6200   ac_cv_prog_F77="$F77" # Let the user override the test.
6201 else
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH
6204 do
6205   IFS=$as_save_IFS
6206   test -z "$as_dir" && as_dir=.
6207   for ac_exec_ext in '' $ac_executable_extensions; do
6208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6211     break 2
6212   fi
6213 done
6214 done
6215 IFS=$as_save_IFS
6216
6217 fi
6218 fi
6219 F77=$ac_cv_prog_F77
6220 if test -n "$F77"; then
6221   { echo "$as_me:$LINENO: result: $F77" >&5
6222 echo "${ECHO_T}$F77" >&6; }
6223 else
6224   { echo "$as_me:$LINENO: result: no" >&5
6225 echo "${ECHO_T}no" >&6; }
6226 fi
6227
6228
6229     test -n "$F77" && break
6230   done
6231 fi
6232 if test -z "$F77"; then
6233   ac_ct_F77=$F77
6234   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6235 do
6236   # Extract the first word of "$ac_prog", so it can be a program name with args.
6237 set dummy $ac_prog; ac_word=$2
6238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6240 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6241   echo $ECHO_N "(cached) $ECHO_C" >&6
6242 else
6243   if test -n "$ac_ct_F77"; then
6244   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6245 else
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $PATH
6248 do
6249   IFS=$as_save_IFS
6250   test -z "$as_dir" && as_dir=.
6251   for ac_exec_ext in '' $ac_executable_extensions; do
6252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6253     ac_cv_prog_ac_ct_F77="$ac_prog"
6254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255     break 2
6256   fi
6257 done
6258 done
6259 IFS=$as_save_IFS
6260
6261 fi
6262 fi
6263 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6264 if test -n "$ac_ct_F77"; then
6265   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6266 echo "${ECHO_T}$ac_ct_F77" >&6; }
6267 else
6268   { echo "$as_me:$LINENO: result: no" >&5
6269 echo "${ECHO_T}no" >&6; }
6270 fi
6271
6272
6273   test -n "$ac_ct_F77" && break
6274 done
6275
6276   if test "x$ac_ct_F77" = x; then
6277     F77=""
6278   else
6279     case $cross_compiling:$ac_tool_warned in
6280 yes:)
6281 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6282 whose name does not start with the host triplet.  If you think this
6283 configuration is useful to you, please write to autoconf@gnu.org." >&5
6284 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6285 whose name does not start with the host triplet.  If you think this
6286 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6287 ac_tool_warned=yes ;;
6288 esac
6289     F77=$ac_ct_F77
6290   fi
6291 fi
6292
6293
6294 # Provide some information about the compiler.
6295 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6296 ac_compiler=`set X $ac_compile; echo $2`
6297 { (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
6304   ac_status=$?
6305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); }
6307 { (ac_try="$ac_compiler -v >&5"
6308 case "(($ac_try" in
6309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310   *) ac_try_echo=$ac_try;;
6311 esac
6312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313   (eval "$ac_compiler -v >&5") 2>&5
6314   ac_status=$?
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); }
6317 { (ac_try="$ac_compiler -V >&5"
6318 case "(($ac_try" in
6319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320   *) ac_try_echo=$ac_try;;
6321 esac
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323   (eval "$ac_compiler -V >&5") 2>&5
6324   ac_status=$?
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); }
6327 rm -f a.out
6328
6329 # If we don't use `.F' as extension, the preprocessor is not run on the
6330 # input file.  (Note that this only needs to work for GNU compilers.)
6331 ac_save_ext=$ac_ext
6332 ac_ext=F
6333 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6334 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6335 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6336   echo $ECHO_N "(cached) $ECHO_C" >&6
6337 else
6338   cat >conftest.$ac_ext <<_ACEOF
6339       program main
6340 #ifndef __GNUC__
6341        choke me
6342 #endif
6343
6344       end
6345 _ACEOF
6346 rm -f conftest.$ac_objext
6347 if { (ac_try="$ac_compile"
6348 case "(($ac_try" in
6349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350   *) ac_try_echo=$ac_try;;
6351 esac
6352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6353   (eval "$ac_compile") 2>conftest.er1
6354   ac_status=$?
6355   grep -v '^ *+' conftest.er1 >conftest.err
6356   rm -f conftest.er1
6357   cat conftest.err >&5
6358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359   (exit $ac_status); } && {
6360          test -z "$ac_f77_werror_flag" ||
6361          test ! -s conftest.err
6362        } && test -s conftest.$ac_objext; then
6363   ac_compiler_gnu=yes
6364 else
6365   echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6367
6368         ac_compiler_gnu=no
6369 fi
6370
6371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6373
6374 fi
6375 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6376 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6377 ac_ext=$ac_save_ext
6378 ac_test_FFLAGS=${FFLAGS+set}
6379 ac_save_FFLAGS=$FFLAGS
6380 FFLAGS=
6381 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6382 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6383 if test "${ac_cv_prog_f77_g+set}" = set; then
6384   echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386   FFLAGS=-g
6387 cat >conftest.$ac_ext <<_ACEOF
6388       program main
6389
6390       end
6391 _ACEOF
6392 rm -f conftest.$ac_objext
6393 if { (ac_try="$ac_compile"
6394 case "(($ac_try" in
6395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6396   *) ac_try_echo=$ac_try;;
6397 esac
6398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6399   (eval "$ac_compile") 2>conftest.er1
6400   ac_status=$?
6401   grep -v '^ *+' conftest.er1 >conftest.err
6402   rm -f conftest.er1
6403   cat conftest.err >&5
6404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405   (exit $ac_status); } && {
6406          test -z "$ac_f77_werror_flag" ||
6407          test ! -s conftest.err
6408        } && test -s conftest.$ac_objext; then
6409   ac_cv_prog_f77_g=yes
6410 else
6411   echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6413
6414         ac_cv_prog_f77_g=no
6415 fi
6416
6417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418
6419 fi
6420 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6421 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6422 if test "$ac_test_FFLAGS" = set; then
6423   FFLAGS=$ac_save_FFLAGS
6424 elif test $ac_cv_prog_f77_g = yes; then
6425   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6426     FFLAGS="-g -O2"
6427   else
6428     FFLAGS="-g"
6429   fi
6430 else
6431   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6432     FFLAGS="-O2"
6433   else
6434     FFLAGS=
6435   fi
6436 fi
6437
6438 G77=`test $ac_compiler_gnu = yes && echo yes`
6439 ac_ext=c
6440 ac_cpp='$CPP $CPPFLAGS'
6441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6444
6445
6446
6447 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6448
6449 # find the maximum length of command line arguments
6450 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6451 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6452 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6453   echo $ECHO_N "(cached) $ECHO_C" >&6
6454 else
6455     i=0
6456   teststring="ABCD"
6457
6458   case $build_os in
6459   msdosdjgpp*)
6460     # On DJGPP, this test can blow up pretty badly due to problems in libc
6461     # (any single argument exceeding 2000 bytes causes a buffer overrun
6462     # during glob expansion).  Even if it were fixed, the result of this
6463     # check would be larger than it should be.
6464     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6465     ;;
6466
6467   gnu*)
6468     # Under GNU Hurd, this test is not required because there is
6469     # no limit to the length of command line arguments.
6470     # Libtool will interpret -1 as no limit whatsoever
6471     lt_cv_sys_max_cmd_len=-1;
6472     ;;
6473
6474   cygwin* | mingw*)
6475     # On Win9x/ME, this test blows up -- it succeeds, but takes
6476     # about 5 minutes as the teststring grows exponentially.
6477     # Worse, since 9x/ME are not pre-emptively multitasking,
6478     # you end up with a "frozen" computer, even though with patience
6479     # the test eventually succeeds (with a max line length of 256k).
6480     # Instead, let's just punt: use the minimum linelength reported by
6481     # all of the supported platforms: 8192 (on NT/2K/XP).
6482     lt_cv_sys_max_cmd_len=8192;
6483     ;;
6484
6485   amigaos*)
6486     # On AmigaOS with pdksh, this test takes hours, literally.
6487     # So we just punt and use a minimum line length of 8192.
6488     lt_cv_sys_max_cmd_len=8192;
6489     ;;
6490
6491   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6492     # This has been around since 386BSD, at least.  Likely further.
6493     if test -x /sbin/sysctl; then
6494       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6495     elif test -x /usr/sbin/sysctl; then
6496       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6497     else
6498       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6499     fi
6500     # And add a safety zone
6501     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6502     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6503     ;;
6504
6505   interix*)
6506     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6507     lt_cv_sys_max_cmd_len=196608
6508     ;;
6509
6510   osf*)
6511     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6512     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6513     # nice to cause kernel panics so lets avoid the loop below.
6514     # First set a reasonable default.
6515     lt_cv_sys_max_cmd_len=16384
6516     #
6517     if test -x /sbin/sysconfig; then
6518       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6519         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6520       esac
6521     fi
6522     ;;
6523   sco3.2v5*)
6524     lt_cv_sys_max_cmd_len=102400
6525     ;;
6526   sysv5* | sco5v6* | sysv4.2uw2*)
6527     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6528     if test -n "$kargmax"; then
6529       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6530     else
6531       lt_cv_sys_max_cmd_len=32768
6532     fi
6533     ;;
6534   *)
6535     # If test is not a shell built-in, we'll probably end up computing a
6536     # maximum length that is only half of the actual maximum length, but
6537     # we can't tell.
6538     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6539     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6540                = "XX$teststring") >/dev/null 2>&1 &&
6541             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6542             lt_cv_sys_max_cmd_len=$new_result &&
6543             test $i != 17 # 1/2 MB should be enough
6544     do
6545       i=`expr $i + 1`
6546       teststring=$teststring$teststring
6547     done
6548     teststring=
6549     # Add a significant safety factor because C++ compilers can tack on massive
6550     # amounts of additional arguments before passing them to the linker.
6551     # It appears as though 1/2 is a usable value.
6552     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6553     ;;
6554   esac
6555
6556 fi
6557
6558 if test -n $lt_cv_sys_max_cmd_len ; then
6559   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6560 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6561 else
6562   { echo "$as_me:$LINENO: result: none" >&5
6563 echo "${ECHO_T}none" >&6; }
6564 fi
6565
6566
6567
6568
6569 # Check for command to grab the raw symbol name followed by C symbol from nm.
6570 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6571 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6572 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6573   echo $ECHO_N "(cached) $ECHO_C" >&6
6574 else
6575
6576 # These are sane defaults that work on at least a few old systems.
6577 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6578
6579 # Character class describing NM global symbol codes.
6580 symcode='[BCDEGRST]'
6581
6582 # Regexp to match symbols that can be accessed directly from C.
6583 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6584
6585 # Transform an extracted symbol line into a proper C declaration
6586 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6587
6588 # Transform an extracted symbol line into symbol name and symbol address
6589 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'"
6590
6591 # Define system-specific variables.
6592 case $host_os in
6593 aix*)
6594   symcode='[BCDT]'
6595   ;;
6596 cygwin* | mingw* | pw32*)
6597   symcode='[ABCDGISTW]'
6598   ;;
6599 hpux*) # Its linker distinguishes data from code symbols
6600   if test "$host_cpu" = ia64; then
6601     symcode='[ABCDEGRST]'
6602   fi
6603   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6604   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'"
6605   ;;
6606 linux* | k*bsd*-gnu)
6607   if test "$host_cpu" = ia64; then
6608     symcode='[ABCDGIRSTW]'
6609     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6610     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'"
6611   fi
6612   ;;
6613 irix* | nonstopux*)
6614   symcode='[BCDEGRST]'
6615   ;;
6616 osf*)
6617   symcode='[BCDEGQRST]'
6618   ;;
6619 solaris*)
6620   symcode='[BDRT]'
6621   ;;
6622 sco3.2v5*)
6623   symcode='[DT]'
6624   ;;
6625 sysv4.2uw2*)
6626   symcode='[DT]'
6627   ;;
6628 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6629   symcode='[ABDT]'
6630   ;;
6631 sysv4)
6632   symcode='[DFNSTU]'
6633   ;;
6634 esac
6635
6636 # Handle CRLF in mingw tool chain
6637 opt_cr=
6638 case $build_os in
6639 mingw*)
6640   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6641   ;;
6642 esac
6643
6644 # If we're using GNU nm, then use its standard symbol codes.
6645 case `$NM -V 2>&1` in
6646 *GNU* | *'with BFD'*)
6647   symcode='[ABCDGIRSTW]' ;;
6648 esac
6649
6650 # Try without a prefix undercore, then with it.
6651 for ac_symprfx in "" "_"; do
6652
6653   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6654   symxfrm="\\1 $ac_symprfx\\2 \\2"
6655
6656   # Write the raw and C identifiers.
6657   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6658
6659   # Check to see that the pipe works correctly.
6660   pipe_works=no
6661
6662   rm -f conftest*
6663   cat > conftest.$ac_ext <<EOF
6664 #ifdef __cplusplus
6665 extern "C" {
6666 #endif
6667 char nm_test_var;
6668 void nm_test_func(){}
6669 #ifdef __cplusplus
6670 }
6671 #endif
6672 int main(){nm_test_var='a';nm_test_func();return(0);}
6673 EOF
6674
6675   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6676   (eval $ac_compile) 2>&5
6677   ac_status=$?
6678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679   (exit $ac_status); }; then
6680     # Now try to grab the symbols.
6681     nlist=conftest.nm
6682     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6683   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6684   ac_status=$?
6685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686   (exit $ac_status); } && test -s "$nlist"; then
6687       # Try sorting and uniquifying the output.
6688       if sort "$nlist" | uniq > "$nlist"T; then
6689         mv -f "$nlist"T "$nlist"
6690       else
6691         rm -f "$nlist"T
6692       fi
6693
6694       # Make sure that we snagged all the symbols we need.
6695       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6696         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6697           cat <<EOF > conftest.$ac_ext
6698 #ifdef __cplusplus
6699 extern "C" {
6700 #endif
6701
6702 EOF
6703           # Now generate the symbol file.
6704           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6705
6706           cat <<EOF >> conftest.$ac_ext
6707 #if defined (__STDC__) && __STDC__
6708 # define lt_ptr_t void *
6709 #else
6710 # define lt_ptr_t char *
6711 # define const
6712 #endif
6713
6714 /* The mapping between symbol names and symbols. */
6715 const struct {
6716   const char *name;
6717   lt_ptr_t address;
6718 }
6719 lt_preloaded_symbols[] =
6720 {
6721 EOF
6722           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6723           cat <<\EOF >> conftest.$ac_ext
6724   {0, (lt_ptr_t) 0}
6725 };
6726
6727 #ifdef __cplusplus
6728 }
6729 #endif
6730 EOF
6731           # Now try linking the two files.
6732           mv conftest.$ac_objext conftstm.$ac_objext
6733           lt_save_LIBS="$LIBS"
6734           lt_save_CFLAGS="$CFLAGS"
6735           LIBS="conftstm.$ac_objext"
6736           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6737           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6738   (eval $ac_link) 2>&5
6739   ac_status=$?
6740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6742             pipe_works=yes
6743           fi
6744           LIBS="$lt_save_LIBS"
6745           CFLAGS="$lt_save_CFLAGS"
6746         else
6747           echo "cannot find nm_test_func in $nlist" >&5
6748         fi
6749       else
6750         echo "cannot find nm_test_var in $nlist" >&5
6751       fi
6752     else
6753       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6754     fi
6755   else
6756     echo "$progname: failed program was:" >&5
6757     cat conftest.$ac_ext >&5
6758   fi
6759   rm -f conftest* conftst*
6760
6761   # Do not use the global_symbol_pipe unless it works.
6762   if test "$pipe_works" = yes; then
6763     break
6764   else
6765     lt_cv_sys_global_symbol_pipe=
6766   fi
6767 done
6768
6769 fi
6770
6771 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6772   lt_cv_sys_global_symbol_to_cdecl=
6773 fi
6774 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6775   { echo "$as_me:$LINENO: result: failed" >&5
6776 echo "${ECHO_T}failed" >&6; }
6777 else
6778   { echo "$as_me:$LINENO: result: ok" >&5
6779 echo "${ECHO_T}ok" >&6; }
6780 fi
6781
6782 { echo "$as_me:$LINENO: checking for objdir" >&5
6783 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6784 if test "${lt_cv_objdir+set}" = set; then
6785   echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787   rm -f .libs 2>/dev/null
6788 mkdir .libs 2>/dev/null
6789 if test -d .libs; then
6790   lt_cv_objdir=.libs
6791 else
6792   # MS-DOS does not allow filenames that begin with a dot.
6793   lt_cv_objdir=_libs
6794 fi
6795 rmdir .libs 2>/dev/null
6796 fi
6797 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6798 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6799 objdir=$lt_cv_objdir
6800
6801
6802
6803
6804
6805 case $host_os in
6806 aix3*)
6807   # AIX sometimes has problems with the GCC collect2 program.  For some
6808   # reason, if we set the COLLECT_NAMES environment variable, the problems
6809   # vanish in a puff of smoke.
6810   if test "X${COLLECT_NAMES+set}" != Xset; then
6811     COLLECT_NAMES=
6812     export COLLECT_NAMES
6813   fi
6814   ;;
6815 esac
6816
6817 # Sed substitution that helps us do robust quoting.  It backslashifies
6818 # metacharacters that are still active within double-quoted strings.
6819 Xsed='sed -e 1s/^X//'
6820 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6821
6822 # Same as above, but do not quote variable references.
6823 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6824
6825 # Sed substitution to delay expansion of an escaped shell variable in a
6826 # double_quote_subst'ed string.
6827 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6828
6829 # Sed substitution to avoid accidental globbing in evaled expressions
6830 no_glob_subst='s/\*/\\\*/g'
6831
6832 # Constants:
6833 rm="rm -f"
6834
6835 # Global variables:
6836 default_ofile=libtool
6837 can_build_shared=yes
6838
6839 # All known linkers require a `.a' archive for static linking (except MSVC,
6840 # which needs '.lib').
6841 libext=a
6842 ltmain="$ac_aux_dir/ltmain.sh"
6843 ofile="$default_ofile"
6844 with_gnu_ld="$lt_cv_prog_gnu_ld"
6845
6846 if test -n "$ac_tool_prefix"; then
6847   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6848 set dummy ${ac_tool_prefix}ar; ac_word=$2
6849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851 if test "${ac_cv_prog_AR+set}" = set; then
6852   echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854   if test -n "$AR"; then
6855   ac_cv_prog_AR="$AR" # Let the user override the test.
6856 else
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6859 do
6860   IFS=$as_save_IFS
6861   test -z "$as_dir" && as_dir=.
6862   for ac_exec_ext in '' $ac_executable_extensions; do
6863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6864     ac_cv_prog_AR="${ac_tool_prefix}ar"
6865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866     break 2
6867   fi
6868 done
6869 done
6870 IFS=$as_save_IFS
6871
6872 fi
6873 fi
6874 AR=$ac_cv_prog_AR
6875 if test -n "$AR"; then
6876   { echo "$as_me:$LINENO: result: $AR" >&5
6877 echo "${ECHO_T}$AR" >&6; }
6878 else
6879   { echo "$as_me:$LINENO: result: no" >&5
6880 echo "${ECHO_T}no" >&6; }
6881 fi
6882
6883
6884 fi
6885 if test -z "$ac_cv_prog_AR"; then
6886   ac_ct_AR=$AR
6887   # Extract the first word of "ar", so it can be a program name with args.
6888 set dummy ar; ac_word=$2
6889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6891 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6892   echo $ECHO_N "(cached) $ECHO_C" >&6
6893 else
6894   if test -n "$ac_ct_AR"; then
6895   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6896 else
6897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 for as_dir in $PATH
6899 do
6900   IFS=$as_save_IFS
6901   test -z "$as_dir" && as_dir=.
6902   for ac_exec_ext in '' $ac_executable_extensions; do
6903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6904     ac_cv_prog_ac_ct_AR="ar"
6905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6906     break 2
6907   fi
6908 done
6909 done
6910 IFS=$as_save_IFS
6911
6912 fi
6913 fi
6914 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6915 if test -n "$ac_ct_AR"; then
6916   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6917 echo "${ECHO_T}$ac_ct_AR" >&6; }
6918 else
6919   { echo "$as_me:$LINENO: result: no" >&5
6920 echo "${ECHO_T}no" >&6; }
6921 fi
6922
6923   if test "x$ac_ct_AR" = x; then
6924     AR="false"
6925   else
6926     case $cross_compiling:$ac_tool_warned in
6927 yes:)
6928 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6929 whose name does not start with the host triplet.  If you think this
6930 configuration is useful to you, please write to autoconf@gnu.org." >&5
6931 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6932 whose name does not start with the host triplet.  If you think this
6933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6934 ac_tool_warned=yes ;;
6935 esac
6936     AR=$ac_ct_AR
6937   fi
6938 else
6939   AR="$ac_cv_prog_AR"
6940 fi
6941
6942 if test -n "$ac_tool_prefix"; then
6943   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6944 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6947 if test "${ac_cv_prog_RANLIB+set}" = set; then
6948   echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950   if test -n "$RANLIB"; then
6951   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6952 else
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH
6955 do
6956   IFS=$as_save_IFS
6957   test -z "$as_dir" && as_dir=.
6958   for ac_exec_ext in '' $ac_executable_extensions; do
6959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6960     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962     break 2
6963   fi
6964 done
6965 done
6966 IFS=$as_save_IFS
6967
6968 fi
6969 fi
6970 RANLIB=$ac_cv_prog_RANLIB
6971 if test -n "$RANLIB"; then
6972   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6973 echo "${ECHO_T}$RANLIB" >&6; }
6974 else
6975   { echo "$as_me:$LINENO: result: no" >&5
6976 echo "${ECHO_T}no" >&6; }
6977 fi
6978
6979
6980 fi
6981 if test -z "$ac_cv_prog_RANLIB"; then
6982   ac_ct_RANLIB=$RANLIB
6983   # Extract the first word of "ranlib", so it can be a program name with args.
6984 set dummy ranlib; ac_word=$2
6985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6987 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6988   echo $ECHO_N "(cached) $ECHO_C" >&6
6989 else
6990   if test -n "$ac_ct_RANLIB"; then
6991   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6992 else
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6995 do
6996   IFS=$as_save_IFS
6997   test -z "$as_dir" && as_dir=.
6998   for ac_exec_ext in '' $ac_executable_extensions; do
6999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7000     ac_cv_prog_ac_ct_RANLIB="ranlib"
7001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002     break 2
7003   fi
7004 done
7005 done
7006 IFS=$as_save_IFS
7007
7008 fi
7009 fi
7010 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7011 if test -n "$ac_ct_RANLIB"; then
7012   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7013 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7014 else
7015   { echo "$as_me:$LINENO: result: no" >&5
7016 echo "${ECHO_T}no" >&6; }
7017 fi
7018
7019   if test "x$ac_ct_RANLIB" = x; then
7020     RANLIB=":"
7021   else
7022     case $cross_compiling:$ac_tool_warned in
7023 yes:)
7024 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7025 whose name does not start with the host triplet.  If you think this
7026 configuration is useful to you, please write to autoconf@gnu.org." >&5
7027 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7028 whose name does not start with the host triplet.  If you think this
7029 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7030 ac_tool_warned=yes ;;
7031 esac
7032     RANLIB=$ac_ct_RANLIB
7033   fi
7034 else
7035   RANLIB="$ac_cv_prog_RANLIB"
7036 fi
7037
7038 if test -n "$ac_tool_prefix"; then
7039   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7040 set dummy ${ac_tool_prefix}strip; ac_word=$2
7041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7043 if test "${ac_cv_prog_STRIP+set}" = set; then
7044   echo $ECHO_N "(cached) $ECHO_C" >&6
7045 else
7046   if test -n "$STRIP"; then
7047   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7048 else
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $PATH
7051 do
7052   IFS=$as_save_IFS
7053   test -z "$as_dir" && as_dir=.
7054   for ac_exec_ext in '' $ac_executable_extensions; do
7055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7056     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058     break 2
7059   fi
7060 done
7061 done
7062 IFS=$as_save_IFS
7063
7064 fi
7065 fi
7066 STRIP=$ac_cv_prog_STRIP
7067 if test -n "$STRIP"; then
7068   { echo "$as_me:$LINENO: result: $STRIP" >&5
7069 echo "${ECHO_T}$STRIP" >&6; }
7070 else
7071   { echo "$as_me:$LINENO: result: no" >&5
7072 echo "${ECHO_T}no" >&6; }
7073 fi
7074
7075
7076 fi
7077 if test -z "$ac_cv_prog_STRIP"; then
7078   ac_ct_STRIP=$STRIP
7079   # Extract the first word of "strip", so it can be a program name with args.
7080 set dummy strip; ac_word=$2
7081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7083 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7084   echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086   if test -n "$ac_ct_STRIP"; then
7087   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092   IFS=$as_save_IFS
7093   test -z "$as_dir" && as_dir=.
7094   for ac_exec_ext in '' $ac_executable_extensions; do
7095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7096     ac_cv_prog_ac_ct_STRIP="strip"
7097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098     break 2
7099   fi
7100 done
7101 done
7102 IFS=$as_save_IFS
7103
7104 fi
7105 fi
7106 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7107 if test -n "$ac_ct_STRIP"; then
7108   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7109 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7110 else
7111   { echo "$as_me:$LINENO: result: no" >&5
7112 echo "${ECHO_T}no" >&6; }
7113 fi
7114
7115   if test "x$ac_ct_STRIP" = x; then
7116     STRIP=":"
7117   else
7118     case $cross_compiling:$ac_tool_warned in
7119 yes:)
7120 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7121 whose name does not start with the host triplet.  If you think this
7122 configuration is useful to you, please write to autoconf@gnu.org." >&5
7123 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7124 whose name does not start with the host triplet.  If you think this
7125 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7126 ac_tool_warned=yes ;;
7127 esac
7128     STRIP=$ac_ct_STRIP
7129   fi
7130 else
7131   STRIP="$ac_cv_prog_STRIP"
7132 fi
7133
7134
7135 old_CC="$CC"
7136 old_CFLAGS="$CFLAGS"
7137
7138 # Set sane defaults for various variables
7139 test -z "$AR" && AR=ar
7140 test -z "$AR_FLAGS" && AR_FLAGS=cru
7141 test -z "$AS" && AS=as
7142 test -z "$CC" && CC=cc
7143 test -z "$LTCC" && LTCC=$CC
7144 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7145 test -z "$DLLTOOL" && DLLTOOL=dlltool
7146 test -z "$LD" && LD=ld
7147 test -z "$LN_S" && LN_S="ln -s"
7148 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7149 test -z "$NM" && NM=nm
7150 test -z "$SED" && SED=sed
7151 test -z "$OBJDUMP" && OBJDUMP=objdump
7152 test -z "$RANLIB" && RANLIB=:
7153 test -z "$STRIP" && STRIP=:
7154 test -z "$ac_objext" && ac_objext=o
7155
7156 # Determine commands to create old-style static archives.
7157 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7158 old_postinstall_cmds='chmod 644 $oldlib'
7159 old_postuninstall_cmds=
7160
7161 if test -n "$RANLIB"; then
7162   case $host_os in
7163   openbsd*)
7164     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7165     ;;
7166   *)
7167     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7168     ;;
7169   esac
7170   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7171 fi
7172
7173 for cc_temp in $compiler""; do
7174   case $cc_temp in
7175     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7176     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7177     \-*) ;;
7178     *) break;;
7179   esac
7180 done
7181 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7182
7183
7184 # Only perform the check for file, if the check method requires it
7185 case $deplibs_check_method in
7186 file_magic*)
7187   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7188     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7189 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7190 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7191   echo $ECHO_N "(cached) $ECHO_C" >&6
7192 else
7193   case $MAGIC_CMD in
7194 [\\/*] |  ?:[\\/]*)
7195   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7196   ;;
7197 *)
7198   lt_save_MAGIC_CMD="$MAGIC_CMD"
7199   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7200   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7201   for ac_dir in $ac_dummy; do
7202     IFS="$lt_save_ifs"
7203     test -z "$ac_dir" && ac_dir=.
7204     if test -f $ac_dir/${ac_tool_prefix}file; then
7205       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7206       if test -n "$file_magic_test_file"; then
7207         case $deplibs_check_method in
7208         "file_magic "*)
7209           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7210           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7211           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7212             $EGREP "$file_magic_regex" > /dev/null; then
7213             :
7214           else
7215             cat <<EOF 1>&2
7216
7217 *** Warning: the command libtool uses to detect shared libraries,
7218 *** $file_magic_cmd, produces output that libtool cannot recognize.
7219 *** The result is that libtool may fail to recognize shared libraries
7220 *** as such.  This will affect the creation of libtool libraries that
7221 *** depend on shared libraries, but programs linked with such libtool
7222 *** libraries will work regardless of this problem.  Nevertheless, you
7223 *** may want to report the problem to your system manager and/or to
7224 *** bug-libtool@gnu.org
7225
7226 EOF
7227           fi ;;
7228         esac
7229       fi
7230       break
7231     fi
7232   done
7233   IFS="$lt_save_ifs"
7234   MAGIC_CMD="$lt_save_MAGIC_CMD"
7235   ;;
7236 esac
7237 fi
7238
7239 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7240 if test -n "$MAGIC_CMD"; then
7241   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7242 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7243 else
7244   { echo "$as_me:$LINENO: result: no" >&5
7245 echo "${ECHO_T}no" >&6; }
7246 fi
7247
7248 if test -z "$lt_cv_path_MAGIC_CMD"; then
7249   if test -n "$ac_tool_prefix"; then
7250     { echo "$as_me:$LINENO: checking for file" >&5
7251 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7252 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7253   echo $ECHO_N "(cached) $ECHO_C" >&6
7254 else
7255   case $MAGIC_CMD in
7256 [\\/*] |  ?:[\\/]*)
7257   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7258   ;;
7259 *)
7260   lt_save_MAGIC_CMD="$MAGIC_CMD"
7261   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7262   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7263   for ac_dir in $ac_dummy; do
7264     IFS="$lt_save_ifs"
7265     test -z "$ac_dir" && ac_dir=.
7266     if test -f $ac_dir/file; then
7267       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7268       if test -n "$file_magic_test_file"; then
7269         case $deplibs_check_method in
7270         "file_magic "*)
7271           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7272           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7273           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7274             $EGREP "$file_magic_regex" > /dev/null; then
7275             :
7276           else
7277             cat <<EOF 1>&2
7278
7279 *** Warning: the command libtool uses to detect shared libraries,
7280 *** $file_magic_cmd, produces output that libtool cannot recognize.
7281 *** The result is that libtool may fail to recognize shared libraries
7282 *** as such.  This will affect the creation of libtool libraries that
7283 *** depend on shared libraries, but programs linked with such libtool
7284 *** libraries will work regardless of this problem.  Nevertheless, you
7285 *** may want to report the problem to your system manager and/or to
7286 *** bug-libtool@gnu.org
7287
7288 EOF
7289           fi ;;
7290         esac
7291       fi
7292       break
7293     fi
7294   done
7295   IFS="$lt_save_ifs"
7296   MAGIC_CMD="$lt_save_MAGIC_CMD"
7297   ;;
7298 esac
7299 fi
7300
7301 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7302 if test -n "$MAGIC_CMD"; then
7303   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7304 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7305 else
7306   { echo "$as_me:$LINENO: result: no" >&5
7307 echo "${ECHO_T}no" >&6; }
7308 fi
7309
7310   else
7311     MAGIC_CMD=:
7312   fi
7313 fi
7314
7315   fi
7316   ;;
7317 esac
7318
7319 enable_dlopen=no
7320 enable_win32_dll=yes
7321
7322 # Check whether --enable-libtool-lock was given.
7323 if test "${enable_libtool_lock+set}" = set; then
7324   enableval=$enable_libtool_lock;
7325 fi
7326
7327 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7328
7329
7330 # Check whether --with-pic was given.
7331 if test "${with_pic+set}" = set; then
7332   withval=$with_pic; pic_mode="$withval"
7333 else
7334   pic_mode=default
7335 fi
7336
7337 test -z "$pic_mode" && pic_mode=default
7338
7339 # Use C for the default configuration in the libtool script
7340 tagname=
7341 lt_save_CC="$CC"
7342 ac_ext=c
7343 ac_cpp='$CPP $CPPFLAGS'
7344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7347
7348
7349 # Source file extension for C test sources.
7350 ac_ext=c
7351
7352 # Object file extension for compiled C test sources.
7353 objext=o
7354 objext=$objext
7355
7356 # Code to be used in simple compile tests
7357 lt_simple_compile_test_code="int some_variable = 0;\n"
7358
7359 # Code to be used in simple link tests
7360 lt_simple_link_test_code='int main(){return(0);}\n'
7361
7362
7363 # If no C compiler was specified, use CC.
7364 LTCC=${LTCC-"$CC"}
7365
7366 # If no C compiler flags were specified, use CFLAGS.
7367 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7368
7369 # Allow CC to be a program name with arguments.
7370 compiler=$CC
7371
7372
7373 # save warnings/boilerplate of simple test code
7374 ac_outfile=conftest.$ac_objext
7375 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7376 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7377 _lt_compiler_boilerplate=`cat conftest.err`
7378 $rm conftest*
7379
7380 ac_outfile=conftest.$ac_objext
7381 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7382 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7383 _lt_linker_boilerplate=`cat conftest.err`
7384 $rm conftest*
7385
7386
7387
7388 lt_prog_compiler_no_builtin_flag=
7389
7390 if test "$GCC" = yes; then
7391   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7392
7393
7394 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7395 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7396 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7397   echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399   lt_cv_prog_compiler_rtti_exceptions=no
7400   ac_outfile=conftest.$ac_objext
7401    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7402    lt_compiler_flag="-fno-rtti -fno-exceptions"
7403    # Insert the option either (1) after the last *FLAGS variable, or
7404    # (2) before a word containing "conftest.", or (3) at the end.
7405    # Note that $ac_compile itself does not contain backslashes and begins
7406    # with a dollar sign (not a hyphen), so the echo should work correctly.
7407    # The option is referenced via a variable to avoid confusing sed.
7408    lt_compile=`echo "$ac_compile" | $SED \
7409    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7410    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7411    -e 's:$: $lt_compiler_flag:'`
7412    (eval echo "\"\$as_me:7412: $lt_compile\"" >&5)
7413    (eval "$lt_compile" 2>conftest.err)
7414    ac_status=$?
7415    cat conftest.err >&5
7416    echo "$as_me:7416: \$? = $ac_status" >&5
7417    if (exit $ac_status) && test -s "$ac_outfile"; then
7418      # The compiler can only warn and ignore the option if not recognized
7419      # So say no if there are warnings other than the usual output.
7420      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7421      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7422      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7423        lt_cv_prog_compiler_rtti_exceptions=yes
7424      fi
7425    fi
7426    $rm conftest*
7427
7428 fi
7429 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7430 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7431
7432 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7433     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7434 else
7435     :
7436 fi
7437
7438 fi
7439
7440 lt_prog_compiler_wl=
7441 lt_prog_compiler_pic=
7442 lt_prog_compiler_static=
7443
7444 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7445 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7446
7447   if test "$GCC" = yes; then
7448     lt_prog_compiler_wl='-Wl,'
7449     lt_prog_compiler_static='-static'
7450
7451     case $host_os in
7452       aix*)
7453       # All AIX code is PIC.
7454       if test "$host_cpu" = ia64; then
7455         # AIX 5 now supports IA64 processor
7456         lt_prog_compiler_static='-Bstatic'
7457       fi
7458       ;;
7459
7460     amigaos*)
7461       # FIXME: we need at least 68020 code to build shared libraries, but
7462       # adding the `-m68020' flag to GCC prevents building anything better,
7463       # like `-m68040'.
7464       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7465       ;;
7466
7467     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7468       # PIC is the default for these OSes.
7469       ;;
7470
7471     mingw* | pw32* | os2*)
7472       # This hack is so that the source file can tell whether it is being
7473       # built for inclusion in a dll (and should export symbols for example).
7474       lt_prog_compiler_pic='-DDLL_EXPORT'
7475       ;;
7476
7477     darwin* | rhapsody*)
7478       # PIC is the default on this platform
7479       # Common symbols not allowed in MH_DYLIB files
7480       lt_prog_compiler_pic='-fno-common'
7481       ;;
7482
7483     interix3*)
7484       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7485       # Instead, we relocate shared libraries at runtime.
7486       ;;
7487
7488     msdosdjgpp*)
7489       # Just because we use GCC doesn't mean we suddenly get shared libraries
7490       # on systems that don't support them.
7491       lt_prog_compiler_can_build_shared=no
7492       enable_shared=no
7493       ;;
7494
7495     sysv4*MP*)
7496       if test -d /usr/nec; then
7497         lt_prog_compiler_pic=-Kconform_pic
7498       fi
7499       ;;
7500
7501     hpux*)
7502       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7503       # not for PA HP-UX.
7504       case $host_cpu in
7505       hppa*64*|ia64*)
7506         # +Z the default
7507         ;;
7508       *)
7509         lt_prog_compiler_pic='-fPIC'
7510         ;;
7511       esac
7512       ;;
7513
7514     *)
7515       lt_prog_compiler_pic='-fPIC'
7516       ;;
7517     esac
7518   else
7519     # PORTME Check for flag to pass linker flags through the system compiler.
7520     case $host_os in
7521     aix*)
7522       lt_prog_compiler_wl='-Wl,'
7523       if test "$host_cpu" = ia64; then
7524         # AIX 5 now supports IA64 processor
7525         lt_prog_compiler_static='-Bstatic'
7526       else
7527         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7528       fi
7529       ;;
7530       darwin*)
7531         # PIC is the default on this platform
7532         # Common symbols not allowed in MH_DYLIB files
7533        case $cc_basename in
7534          xlc*)
7535          lt_prog_compiler_pic='-qnocommon'
7536          lt_prog_compiler_wl='-Wl,'
7537          ;;
7538        esac
7539        ;;
7540
7541     mingw* | pw32* | os2*)
7542       # This hack is so that the source file can tell whether it is being
7543       # built for inclusion in a dll (and should export symbols for example).
7544       lt_prog_compiler_pic='-DDLL_EXPORT'
7545       ;;
7546
7547     hpux9* | hpux10* | hpux11*)
7548       lt_prog_compiler_wl='-Wl,'
7549       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7550       # not for PA HP-UX.
7551       case $host_cpu in
7552       hppa*64*|ia64*)
7553         # +Z the default
7554         ;;
7555       *)
7556         lt_prog_compiler_pic='+Z'
7557         ;;
7558       esac
7559       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7560       lt_prog_compiler_static='${wl}-a ${wl}archive'
7561       ;;
7562
7563     irix5* | irix6* | nonstopux*)
7564       lt_prog_compiler_wl='-Wl,'
7565       # PIC (with -KPIC) is the default.
7566       lt_prog_compiler_static='-non_shared'
7567       ;;
7568
7569     newsos6)
7570       lt_prog_compiler_pic='-KPIC'
7571       lt_prog_compiler_static='-Bstatic'
7572       ;;
7573
7574     linux* | k*bsd*-gnu)
7575       case $cc_basename in
7576       icc* | ecc*)
7577         lt_prog_compiler_wl='-Wl,'
7578         lt_prog_compiler_pic='-KPIC'
7579         lt_prog_compiler_static='-static'
7580         ;;
7581       pgcc* | pgf77* | pgf90* | pgf95*)
7582         # Portland Group compilers (*not* the Pentium gcc compiler,
7583         # which looks to be a dead project)
7584         lt_prog_compiler_wl='-Wl,'
7585         lt_prog_compiler_pic='-fpic'
7586         lt_prog_compiler_static='-Bstatic'
7587         ;;
7588       ccc*)
7589         lt_prog_compiler_wl='-Wl,'
7590         # All Alpha code is PIC.
7591         lt_prog_compiler_static='-non_shared'
7592         ;;
7593       esac
7594       ;;
7595
7596     osf3* | osf4* | osf5*)
7597       lt_prog_compiler_wl='-Wl,'
7598       # All OSF/1 code is PIC.
7599       lt_prog_compiler_static='-non_shared'
7600       ;;
7601
7602     solaris*)
7603       lt_prog_compiler_pic='-KPIC'
7604       lt_prog_compiler_static='-Bstatic'
7605       case $cc_basename in
7606       f77* | f90* | f95*)
7607         lt_prog_compiler_wl='-Qoption ld ';;
7608       *)
7609         lt_prog_compiler_wl='-Wl,';;
7610       esac
7611       ;;
7612
7613     sunos4*)
7614       lt_prog_compiler_wl='-Qoption ld '
7615       lt_prog_compiler_pic='-PIC'
7616       lt_prog_compiler_static='-Bstatic'
7617       ;;
7618
7619     sysv4 | sysv4.2uw2* | sysv4.3*)
7620       lt_prog_compiler_wl='-Wl,'
7621       lt_prog_compiler_pic='-KPIC'
7622       lt_prog_compiler_static='-Bstatic'
7623       ;;
7624
7625     sysv4*MP*)
7626       if test -d /usr/nec ;then
7627         lt_prog_compiler_pic='-Kconform_pic'
7628         lt_prog_compiler_static='-Bstatic'
7629       fi
7630       ;;
7631
7632     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7633       lt_prog_compiler_wl='-Wl,'
7634       lt_prog_compiler_pic='-KPIC'
7635       lt_prog_compiler_static='-Bstatic'
7636       ;;
7637
7638     unicos*)
7639       lt_prog_compiler_wl='-Wl,'
7640       lt_prog_compiler_can_build_shared=no
7641       ;;
7642
7643     uts4*)
7644       lt_prog_compiler_pic='-pic'
7645       lt_prog_compiler_static='-Bstatic'
7646       ;;
7647
7648     *)
7649       lt_prog_compiler_can_build_shared=no
7650       ;;
7651     esac
7652   fi
7653
7654 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7655 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7656
7657 #
7658 # Check to make sure the PIC flag actually works.
7659 #
7660 if test -n "$lt_prog_compiler_pic"; then
7661
7662 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7663 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7664 if test "${lt_prog_compiler_pic_works+set}" = set; then
7665   echo $ECHO_N "(cached) $ECHO_C" >&6
7666 else
7667   lt_prog_compiler_pic_works=no
7668   ac_outfile=conftest.$ac_objext
7669    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7670    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7671    # Insert the option either (1) after the last *FLAGS variable, or
7672    # (2) before a word containing "conftest.", or (3) at the end.
7673    # Note that $ac_compile itself does not contain backslashes and begins
7674    # with a dollar sign (not a hyphen), so the echo should work correctly.
7675    # The option is referenced via a variable to avoid confusing sed.
7676    lt_compile=`echo "$ac_compile" | $SED \
7677    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7678    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7679    -e 's:$: $lt_compiler_flag:'`
7680    (eval echo "\"\$as_me:7680: $lt_compile\"" >&5)
7681    (eval "$lt_compile" 2>conftest.err)
7682    ac_status=$?
7683    cat conftest.err >&5
7684    echo "$as_me:7684: \$? = $ac_status" >&5
7685    if (exit $ac_status) && test -s "$ac_outfile"; then
7686      # The compiler can only warn and ignore the option if not recognized
7687      # So say no if there are warnings other than the usual output.
7688      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7689      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7690      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7691        lt_prog_compiler_pic_works=yes
7692      fi
7693    fi
7694    $rm conftest*
7695
7696 fi
7697 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7698 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7699
7700 if test x"$lt_prog_compiler_pic_works" = xyes; then
7701     case $lt_prog_compiler_pic in
7702      "" | " "*) ;;
7703      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7704      esac
7705 else
7706     lt_prog_compiler_pic=
7707      lt_prog_compiler_can_build_shared=no
7708 fi
7709
7710 fi
7711 case $host_os in
7712   # For platforms which do not support PIC, -DPIC is meaningless:
7713   *djgpp*)
7714     lt_prog_compiler_pic=
7715     ;;
7716   *)
7717     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7718     ;;
7719 esac
7720
7721 #
7722 # Check to make sure the static flag actually works.
7723 #
7724 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7725 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7726 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7727 if test "${lt_prog_compiler_static_works+set}" = set; then
7728   echo $ECHO_N "(cached) $ECHO_C" >&6
7729 else
7730   lt_prog_compiler_static_works=no
7731    save_LDFLAGS="$LDFLAGS"
7732    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7733    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7734    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7735      # The linker can only warn and ignore the option if not recognized
7736      # So say no if there are warnings
7737      if test -s conftest.err; then
7738        # Append any errors to the config.log.
7739        cat conftest.err 1>&5
7740        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7741        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7742        if diff conftest.exp conftest.er2 >/dev/null; then
7743          lt_prog_compiler_static_works=yes
7744        fi
7745      else
7746        lt_prog_compiler_static_works=yes
7747      fi
7748    fi
7749    $rm conftest*
7750    LDFLAGS="$save_LDFLAGS"
7751
7752 fi
7753 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7754 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7755
7756 if test x"$lt_prog_compiler_static_works" = xyes; then
7757     :
7758 else
7759     lt_prog_compiler_static=
7760 fi
7761
7762
7763 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7764 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7765 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7766   echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768   lt_cv_prog_compiler_c_o=no
7769    $rm -r conftest 2>/dev/null
7770    mkdir conftest
7771    cd conftest
7772    mkdir out
7773    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7774
7775    lt_compiler_flag="-o out/conftest2.$ac_objext"
7776    # Insert the option either (1) after the last *FLAGS variable, or
7777    # (2) before a word containing "conftest.", or (3) at the end.
7778    # Note that $ac_compile itself does not contain backslashes and begins
7779    # with a dollar sign (not a hyphen), so the echo should work correctly.
7780    lt_compile=`echo "$ac_compile" | $SED \
7781    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7782    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7783    -e 's:$: $lt_compiler_flag:'`
7784    (eval echo "\"\$as_me:7784: $lt_compile\"" >&5)
7785    (eval "$lt_compile" 2>out/conftest.err)
7786    ac_status=$?
7787    cat out/conftest.err >&5
7788    echo "$as_me:7788: \$? = $ac_status" >&5
7789    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7790    then
7791      # The compiler can only warn and ignore the option if not recognized
7792      # So say no if there are warnings
7793      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7794      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7795      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7796        lt_cv_prog_compiler_c_o=yes
7797      fi
7798    fi
7799    chmod u+w . 2>&5
7800    $rm conftest*
7801    # SGI C++ compiler will create directory out/ii_files/ for
7802    # template instantiation
7803    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7804    $rm out/* && rmdir out
7805    cd ..
7806    rmdir conftest
7807    $rm conftest*
7808
7809 fi
7810 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7811 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7812
7813
7814 hard_links="nottested"
7815 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7816   # do not overwrite the value of need_locks provided by the user
7817   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7818 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7819   hard_links=yes
7820   $rm conftest*
7821   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7822   touch conftest.a
7823   ln conftest.a conftest.b 2>&5 || hard_links=no
7824   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7825   { echo "$as_me:$LINENO: result: $hard_links" >&5
7826 echo "${ECHO_T}$hard_links" >&6; }
7827   if test "$hard_links" = no; then
7828     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7829 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7830     need_locks=warn
7831   fi
7832 else
7833   need_locks=no
7834 fi
7835
7836 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7837 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7838
7839   runpath_var=
7840   allow_undefined_flag=
7841   enable_shared_with_static_runtimes=no
7842   archive_cmds=
7843   archive_expsym_cmds=
7844   old_archive_From_new_cmds=
7845   old_archive_from_expsyms_cmds=
7846   export_dynamic_flag_spec=
7847   whole_archive_flag_spec=
7848   thread_safe_flag_spec=
7849   hardcode_libdir_flag_spec=
7850   hardcode_libdir_flag_spec_ld=
7851   hardcode_libdir_separator=
7852   hardcode_direct=no
7853   hardcode_minus_L=no
7854   hardcode_shlibpath_var=unsupported
7855   link_all_deplibs=unknown
7856   hardcode_automatic=no
7857   module_cmds=
7858   module_expsym_cmds=
7859   always_export_symbols=no
7860   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7861   # include_expsyms should be a list of space-separated symbols to be *always*
7862   # included in the symbol list
7863   include_expsyms=
7864   # exclude_expsyms can be an extended regexp of symbols to exclude
7865   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7866   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7867   # as well as any symbol that contains `d'.
7868   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7869   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7870   # platforms (ab)use it in PIC code, but their linkers get confused if
7871   # the symbol is explicitly referenced.  Since portable code cannot
7872   # rely on this symbol name, it's probably fine to never include it in
7873   # preloaded symbol tables.
7874   extract_expsyms_cmds=
7875   # Just being paranoid about ensuring that cc_basename is set.
7876   for cc_temp in $compiler""; do
7877   case $cc_temp in
7878     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7879     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7880     \-*) ;;
7881     *) break;;
7882   esac
7883 done
7884 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7885
7886   case $host_os in
7887   cygwin* | mingw* | pw32*)
7888     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7889     # When not using gcc, we currently assume that we are using
7890     # Microsoft Visual C++.
7891     if test "$GCC" != yes; then
7892       with_gnu_ld=no
7893     fi
7894     ;;
7895   interix*)
7896     # we just hope/assume this is gcc and not c89 (= MSVC++)
7897     with_gnu_ld=yes
7898     ;;
7899   openbsd*)
7900     with_gnu_ld=no
7901     ;;
7902   esac
7903
7904   ld_shlibs=yes
7905   if test "$with_gnu_ld" = yes; then
7906     # If archive_cmds runs LD, not CC, wlarc should be empty
7907     wlarc='${wl}'
7908
7909     # Set some defaults for GNU ld with shared library support. These
7910     # are reset later if shared libraries are not supported. Putting them
7911     # here allows them to be overridden if necessary.
7912     runpath_var=LD_RUN_PATH
7913     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7914     export_dynamic_flag_spec='${wl}--export-dynamic'
7915     # ancient GNU ld didn't support --whole-archive et. al.
7916     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7917         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7918       else
7919         whole_archive_flag_spec=
7920     fi
7921     supports_anon_versioning=no
7922     case `$LD -v 2>/dev/null` in
7923       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7924       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7925       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7926       *\ 2.11.*) ;; # other 2.11 versions
7927       *) supports_anon_versioning=yes ;;
7928     esac
7929
7930     # See if GNU ld supports shared libraries.
7931     case $host_os in
7932     aix3* | aix4* | aix5*)
7933       # On AIX/PPC, the GNU linker is very broken
7934       if test "$host_cpu" != ia64; then
7935         ld_shlibs=no
7936         cat <<EOF 1>&2
7937
7938 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7939 *** to be unable to reliably create shared libraries on AIX.
7940 *** Therefore, libtool is disabling shared libraries support.  If you
7941 *** really care for shared libraries, you may want to modify your PATH
7942 *** so that a non-GNU linker is found, and then restart.
7943
7944 EOF
7945       fi
7946       ;;
7947
7948     amigaos*)
7949       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)'
7950       hardcode_libdir_flag_spec='-L$libdir'
7951       hardcode_minus_L=yes
7952
7953       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7954       # that the semantics of dynamic libraries on AmigaOS, at least up
7955       # to version 4, is to share data among multiple programs linked
7956       # with the same dynamic library.  Since this doesn't match the
7957       # behavior of shared libraries on other platforms, we can't use
7958       # them.
7959       ld_shlibs=no
7960       ;;
7961
7962     beos*)
7963       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7964         allow_undefined_flag=unsupported
7965         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7966         # support --undefined.  This deserves some investigation.  FIXME
7967         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7968       else
7969         ld_shlibs=no
7970       fi
7971       ;;
7972
7973     cygwin* | mingw* | pw32*)
7974       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7975       # as there is no search path for DLLs.
7976       hardcode_libdir_flag_spec='-L$libdir'
7977       allow_undefined_flag=unsupported
7978       always_export_symbols=no
7979       enable_shared_with_static_runtimes=yes
7980       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7981
7982       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7983         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7984         # If the export-symbols file already is a .def file (1st line
7985         # is EXPORTS), use it as is; otherwise, prepend...
7986         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7987           cp $export_symbols $output_objdir/$soname.def;
7988         else
7989           echo EXPORTS > $output_objdir/$soname.def;
7990           cat $export_symbols >> $output_objdir/$soname.def;
7991         fi~
7992         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7993       else
7994         ld_shlibs=no
7995       fi
7996       ;;
7997
7998     interix3*)
7999       hardcode_direct=no
8000       hardcode_shlibpath_var=no
8001       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8002       export_dynamic_flag_spec='${wl}-E'
8003       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8004       # Instead, shared libraries are loaded at an image base (0x10000000 by
8005       # default) and relocated if they conflict, which is a slow very memory
8006       # consuming and fragmenting process.  To avoid this, we pick a random,
8007       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8008       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8009       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8010       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'
8011       ;;
8012
8013     linux* | k*bsd*-gnu)
8014       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8015         tmp_addflag=
8016         case $cc_basename,$host_cpu in
8017         pgcc*)                          # Portland Group C compiler
8018           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'
8019           tmp_addflag=' $pic_flag'
8020           ;;
8021         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8022           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'
8023           tmp_addflag=' $pic_flag -Mnomain' ;;
8024         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8025           tmp_addflag=' -i_dynamic' ;;
8026         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8027           tmp_addflag=' -i_dynamic -nofor_main' ;;
8028         ifc* | ifort*)                  # Intel Fortran compiler
8029           tmp_addflag=' -nofor_main' ;;
8030         esac
8031         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8032
8033         if test $supports_anon_versioning = yes; then
8034           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8035   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8036   $echo "local: *; };" >> $output_objdir/$libname.ver~
8037           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8038         fi
8039         link_all_deplibs=no
8040       else
8041         ld_shlibs=no
8042       fi
8043       ;;
8044
8045     netbsd* | netbsdelf*-gnu)
8046       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8047         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8048         wlarc=
8049       else
8050         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8051         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8052       fi
8053       ;;
8054
8055     solaris*)
8056       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8057         ld_shlibs=no
8058         cat <<EOF 1>&2
8059
8060 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8061 *** create shared libraries on Solaris systems.  Therefore, libtool
8062 *** is disabling shared libraries support.  We urge you to upgrade GNU
8063 *** binutils to release 2.9.1 or newer.  Another option is to modify
8064 *** your PATH or compiler configuration so that the native linker is
8065 *** used, and then restart.
8066
8067 EOF
8068       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8069         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8070         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8071       else
8072         ld_shlibs=no
8073       fi
8074       ;;
8075
8076     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8077       case `$LD -v 2>&1` in
8078         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8079         ld_shlibs=no
8080         cat <<_LT_EOF 1>&2
8081
8082 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8083 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8084 *** is disabling shared libraries support.  We urge you to upgrade GNU
8085 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8086 *** your PATH or compiler configuration so that the native linker is
8087 *** used, and then restart.
8088
8089 _LT_EOF
8090         ;;
8091         *)
8092           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8093             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8094             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8095             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8096           else
8097             ld_shlibs=no
8098           fi
8099         ;;
8100       esac
8101       ;;
8102
8103     sunos4*)
8104       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8105       wlarc=
8106       hardcode_direct=yes
8107       hardcode_shlibpath_var=no
8108       ;;
8109
8110     *)
8111       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8112         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8113         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8114       else
8115         ld_shlibs=no
8116       fi
8117       ;;
8118     esac
8119
8120     if test "$ld_shlibs" = no; then
8121       runpath_var=
8122       hardcode_libdir_flag_spec=
8123       export_dynamic_flag_spec=
8124       whole_archive_flag_spec=
8125     fi
8126   else
8127     # PORTME fill in a description of your system's linker (not GNU ld)
8128     case $host_os in
8129     aix3*)
8130       allow_undefined_flag=unsupported
8131       always_export_symbols=yes
8132       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'
8133       # Note: this linker hardcodes the directories in LIBPATH if there
8134       # are no directories specified by -L.
8135       hardcode_minus_L=yes
8136       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8137         # Neither direct hardcoding nor static linking is supported with a
8138         # broken collect2.
8139         hardcode_direct=unsupported
8140       fi
8141       ;;
8142
8143     aix4* | aix5*)
8144       if test "$host_cpu" = ia64; then
8145         # On IA64, the linker does run time linking by default, so we don't
8146         # have to do anything special.
8147         aix_use_runtimelinking=no
8148         exp_sym_flag='-Bexport'
8149         no_entry_flag=""
8150       else
8151         # If we're using GNU nm, then we don't want the "-C" option.
8152         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8153         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8154           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'
8155         else
8156           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'
8157         fi
8158         aix_use_runtimelinking=no
8159
8160         # Test if we are trying to use run time linking or normal
8161         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8162         # need to do runtime linking.
8163         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8164           for ld_flag in $LDFLAGS; do
8165           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8166             aix_use_runtimelinking=yes
8167             break
8168           fi
8169           done
8170           ;;
8171         esac
8172
8173         exp_sym_flag='-bexport'
8174         no_entry_flag='-bnoentry'
8175       fi
8176
8177       # When large executables or shared objects are built, AIX ld can
8178       # have problems creating the table of contents.  If linking a library
8179       # or program results in "error TOC overflow" add -mminimal-toc to
8180       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8181       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8182
8183       archive_cmds=''
8184       hardcode_direct=yes
8185       hardcode_libdir_separator=':'
8186       link_all_deplibs=yes
8187
8188       if test "$GCC" = yes; then
8189         case $host_os in aix4.[012]|aix4.[012].*)
8190         # We only want to do this on AIX 4.2 and lower, the check
8191         # below for broken collect2 doesn't work under 4.3+
8192           collect2name=`${CC} -print-prog-name=collect2`
8193           if test -f "$collect2name" && \
8194            strings "$collect2name" | grep resolve_lib_name >/dev/null
8195           then
8196           # We have reworked collect2
8197           hardcode_direct=yes
8198           else
8199           # We have old collect2
8200           hardcode_direct=unsupported
8201           # It fails to find uninstalled libraries when the uninstalled
8202           # path is not listed in the libpath.  Setting hardcode_minus_L
8203           # to unsupported forces relinking
8204           hardcode_minus_L=yes
8205           hardcode_libdir_flag_spec='-L$libdir'
8206           hardcode_libdir_separator=
8207           fi
8208           ;;
8209         esac
8210         shared_flag='-shared'
8211         if test "$aix_use_runtimelinking" = yes; then
8212           shared_flag="$shared_flag "'${wl}-G'
8213         fi
8214       else
8215         # not using gcc
8216         if test "$host_cpu" = ia64; then
8217         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8218         # chokes on -Wl,-G. The following line is correct:
8219           shared_flag='-G'
8220         else
8221           if test "$aix_use_runtimelinking" = yes; then
8222             shared_flag='${wl}-G'
8223           else
8224             shared_flag='${wl}-bM:SRE'
8225           fi
8226         fi
8227       fi
8228
8229       # It seems that -bexpall does not export symbols beginning with
8230       # underscore (_), so it is better to generate a list of symbols to export.
8231       always_export_symbols=yes
8232       if test "$aix_use_runtimelinking" = yes; then
8233         # Warning - without using the other runtime loading flags (-brtl),
8234         # -berok will link without error, but may produce a broken library.
8235         allow_undefined_flag='-berok'
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         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"
8289        else
8290         if test "$host_cpu" = ia64; then
8291           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8292           allow_undefined_flag="-z nodefs"
8293           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"
8294         else
8295          # Determine the default libpath from the value encoded in an empty executable.
8296          cat >conftest.$ac_ext <<_ACEOF
8297 /* confdefs.h.  */
8298 _ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h.  */
8302
8303 int
8304 main ()
8305 {
8306
8307   ;
8308   return 0;
8309 }
8310 _ACEOF
8311 rm -f conftest.$ac_objext conftest$ac_exeext
8312 if { (ac_try="$ac_link"
8313 case "(($ac_try" in
8314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315   *) ac_try_echo=$ac_try;;
8316 esac
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318   (eval "$ac_link") 2>conftest.er1
8319   ac_status=$?
8320   grep -v '^ *+' conftest.er1 >conftest.err
8321   rm -f conftest.er1
8322   cat conftest.err >&5
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); } && {
8325          test -z "$ac_c_werror_flag" ||
8326          test ! -s conftest.err
8327        } && test -s conftest$ac_exeext &&
8328        $as_test_x conftest$ac_exeext; then
8329
8330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8331 }'`
8332 # Check for a 64-bit object if we didn't find anything.
8333 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; }
8334 }'`; fi
8335 else
8336   echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8338
8339
8340 fi
8341
8342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8343       conftest$ac_exeext conftest.$ac_ext
8344 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8345
8346          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8347           # Warning - without using the other run time loading flags,
8348           # -berok will link without error, but may produce a broken library.
8349           no_undefined_flag=' ${wl}-bernotok'
8350           allow_undefined_flag=' ${wl}-berok'
8351           # Exported symbols can be pulled into shared objects from archives
8352           whole_archive_flag_spec='$convenience'
8353           archive_cmds_need_lc=yes
8354           # This is similar to how AIX traditionally builds its shared libraries.
8355           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'
8356         fi
8357       fi
8358       ;;
8359
8360     amigaos*)
8361       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)'
8362       hardcode_libdir_flag_spec='-L$libdir'
8363       hardcode_minus_L=yes
8364       # see comment about different semantics on the GNU ld section
8365       ld_shlibs=no
8366       ;;
8367
8368     bsdi[45]*)
8369       export_dynamic_flag_spec=-rdynamic
8370       ;;
8371
8372     cygwin* | mingw* | pw32*)
8373       # When not using gcc, we currently assume that we are using
8374       # Microsoft Visual C++.
8375       # hardcode_libdir_flag_spec is actually meaningless, as there is
8376       # no search path for DLLs.
8377       hardcode_libdir_flag_spec=' '
8378       allow_undefined_flag=unsupported
8379       # Tell ltmain to make .lib files, not .a files.
8380       libext=lib
8381       # Tell ltmain to make .dll files, not .so files.
8382       shrext_cmds=".dll"
8383       # FIXME: Setting linknames here is a bad hack.
8384       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8385       # The linker will automatically build a .lib file if we build a DLL.
8386       old_archive_From_new_cmds='true'
8387       # FIXME: Should let the user specify the lib program.
8388       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8389       fix_srcfile_path='`cygpath -w "$srcfile"`'
8390       enable_shared_with_static_runtimes=yes
8391       ;;
8392
8393     darwin* | rhapsody*)
8394       case $host_os in
8395         rhapsody* | darwin1.[012])
8396          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8397          ;;
8398        *) # Darwin 1.3 on
8399          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8400            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8401          else
8402            case ${MACOSX_DEPLOYMENT_TARGET} in
8403              10.[012])
8404                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8405                ;;
8406              10.*)
8407                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8408                ;;
8409            esac
8410          fi
8411          ;;
8412       esac
8413       archive_cmds_need_lc=no
8414       hardcode_direct=no
8415       hardcode_automatic=yes
8416       hardcode_shlibpath_var=unsupported
8417       whole_archive_flag_spec=''
8418       link_all_deplibs=yes
8419     if test "$GCC" = yes ; then
8420         output_verbose_link_cmd='echo'
8421         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8422       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8423       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8424       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}'
8425       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}'
8426     else
8427       case $cc_basename in
8428         xlc*)
8429          output_verbose_link_cmd='echo'
8430          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8431          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8432           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8433          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}'
8434           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}'
8435           ;;
8436        *)
8437          ld_shlibs=no
8438           ;;
8439       esac
8440     fi
8441       ;;
8442
8443     dgux*)
8444       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8445       hardcode_libdir_flag_spec='-L$libdir'
8446       hardcode_shlibpath_var=no
8447       ;;
8448
8449     freebsd1*)
8450       ld_shlibs=no
8451       ;;
8452
8453     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8454     # support.  Future versions do this automatically, but an explicit c++rt0.o
8455     # does not break anything, and helps significantly (at the cost of a little
8456     # extra space).
8457     freebsd2.2*)
8458       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8459       hardcode_libdir_flag_spec='-R$libdir'
8460       hardcode_direct=yes
8461       hardcode_shlibpath_var=no
8462       ;;
8463
8464     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8465     freebsd2*)
8466       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8467       hardcode_direct=yes
8468       hardcode_minus_L=yes
8469       hardcode_shlibpath_var=no
8470       ;;
8471
8472     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8473     freebsd* | dragonfly*)
8474       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8475       hardcode_libdir_flag_spec='-R$libdir'
8476       hardcode_direct=yes
8477       hardcode_shlibpath_var=no
8478       ;;
8479
8480     hpux9*)
8481       if test "$GCC" = yes; then
8482         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'
8483       else
8484         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'
8485       fi
8486       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8487       hardcode_libdir_separator=:
8488       hardcode_direct=yes
8489
8490       # hardcode_minus_L: Not really in the search PATH,
8491       # but as the default location of the library.
8492       hardcode_minus_L=yes
8493       export_dynamic_flag_spec='${wl}-E'
8494       ;;
8495
8496     hpux10*)
8497       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8498         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8499       else
8500         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8501       fi
8502       if test "$with_gnu_ld" = no; then
8503         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8504         hardcode_libdir_separator=:
8505
8506         hardcode_direct=yes
8507         export_dynamic_flag_spec='${wl}-E'
8508
8509         # hardcode_minus_L: Not really in the search PATH,
8510         # but as the default location of the library.
8511         hardcode_minus_L=yes
8512       fi
8513       ;;
8514
8515     hpux11*)
8516       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8517         case $host_cpu in
8518         hppa*64*)
8519           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8520           ;;
8521         ia64*)
8522           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8523           ;;
8524         *)
8525           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8526           ;;
8527         esac
8528       else
8529         case $host_cpu in
8530         hppa*64*)
8531           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8532           ;;
8533         ia64*)
8534           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8535           ;;
8536         *)
8537           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8538           ;;
8539         esac
8540       fi
8541       if test "$with_gnu_ld" = no; then
8542         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8543         hardcode_libdir_separator=:
8544
8545         case $host_cpu in
8546         hppa*64*|ia64*)
8547           hardcode_libdir_flag_spec_ld='+b $libdir'
8548           hardcode_direct=no
8549           hardcode_shlibpath_var=no
8550           ;;
8551         *)
8552           hardcode_direct=yes
8553           export_dynamic_flag_spec='${wl}-E'
8554
8555           # hardcode_minus_L: Not really in the search PATH,
8556           # but as the default location of the library.
8557           hardcode_minus_L=yes
8558           ;;
8559         esac
8560       fi
8561       ;;
8562
8563     irix5* | irix6* | nonstopux*)
8564       if test "$GCC" = yes; then
8565         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'
8566       else
8567         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'
8568         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8569       fi
8570       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8571       hardcode_libdir_separator=:
8572       link_all_deplibs=yes
8573       ;;
8574
8575     netbsd* | netbsdelf*-gnu)
8576       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8577         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8578       else
8579         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8580       fi
8581       hardcode_libdir_flag_spec='-R$libdir'
8582       hardcode_direct=yes
8583       hardcode_shlibpath_var=no
8584       ;;
8585
8586     newsos6)
8587       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8588       hardcode_direct=yes
8589       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8590       hardcode_libdir_separator=:
8591       hardcode_shlibpath_var=no
8592       ;;
8593
8594     openbsd*)
8595       hardcode_direct=yes
8596       hardcode_shlibpath_var=no
8597       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8598         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8599         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8600         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8601         export_dynamic_flag_spec='${wl}-E'
8602       else
8603        case $host_os in
8604          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8605            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8606            hardcode_libdir_flag_spec='-R$libdir'
8607            ;;
8608          *)
8609            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8610            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8611            ;;
8612        esac
8613       fi
8614       ;;
8615
8616     os2*)
8617       hardcode_libdir_flag_spec='-L$libdir'
8618       hardcode_minus_L=yes
8619       allow_undefined_flag=unsupported
8620       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'
8621       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8622       ;;
8623
8624     osf3*)
8625       if test "$GCC" = yes; then
8626         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8627         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'
8628       else
8629         allow_undefined_flag=' -expect_unresolved \*'
8630         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'
8631       fi
8632       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8633       hardcode_libdir_separator=:
8634       ;;
8635
8636     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8637       if test "$GCC" = yes; then
8638         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8639         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'
8640         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8641       else
8642         allow_undefined_flag=' -expect_unresolved \*'
8643         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'
8644         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8645         $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'
8646
8647         # Both c and cxx compiler support -rpath directly
8648         hardcode_libdir_flag_spec='-rpath $libdir'
8649       fi
8650       hardcode_libdir_separator=:
8651       ;;
8652
8653     solaris*)
8654       no_undefined_flag=' -z text'
8655       if test "$GCC" = yes; then
8656         wlarc='${wl}'
8657         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8658         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8659           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8660       else
8661         wlarc=''
8662         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8663         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8664         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8665       fi
8666       hardcode_libdir_flag_spec='-R$libdir'
8667       hardcode_shlibpath_var=no
8668       case $host_os in
8669       solaris2.[0-5] | solaris2.[0-5].*) ;;
8670       *)
8671         # The compiler driver will combine linker options so we
8672         # cannot just pass the convience library names through
8673         # without $wl, iff we do not link with $LD.
8674         # Luckily, gcc supports the same syntax we need for Sun Studio.
8675         # Supported since Solaris 2.6 (maybe 2.5.1?)
8676         case $wlarc in
8677         '')
8678           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8679         *)
8680           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' ;;
8681         esac ;;
8682       esac
8683       link_all_deplibs=yes
8684       ;;
8685
8686     sunos4*)
8687       if test "x$host_vendor" = xsequent; then
8688         # Use $CC to link under sequent, because it throws in some extra .o
8689         # files that make .init and .fini sections work.
8690         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8691       else
8692         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8693       fi
8694       hardcode_libdir_flag_spec='-L$libdir'
8695       hardcode_direct=yes
8696       hardcode_minus_L=yes
8697       hardcode_shlibpath_var=no
8698       ;;
8699
8700     sysv4)
8701       case $host_vendor in
8702         sni)
8703           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8704           hardcode_direct=yes # is this really true???
8705         ;;
8706         siemens)
8707           ## LD is ld it makes a PLAMLIB
8708           ## CC just makes a GrossModule.
8709           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8710           reload_cmds='$CC -r -o $output$reload_objs'
8711           hardcode_direct=no
8712         ;;
8713         motorola)
8714           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8715           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8716         ;;
8717       esac
8718       runpath_var='LD_RUN_PATH'
8719       hardcode_shlibpath_var=no
8720       ;;
8721
8722     sysv4.3*)
8723       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8724       hardcode_shlibpath_var=no
8725       export_dynamic_flag_spec='-Bexport'
8726       ;;
8727
8728     sysv4*MP*)
8729       if test -d /usr/nec; then
8730         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8731         hardcode_shlibpath_var=no
8732         runpath_var=LD_RUN_PATH
8733         hardcode_runpath_var=yes
8734         ld_shlibs=yes
8735       fi
8736       ;;
8737
8738     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8739       no_undefined_flag='${wl}-z,text'
8740       archive_cmds_need_lc=no
8741       hardcode_shlibpath_var=no
8742       runpath_var='LD_RUN_PATH'
8743
8744       if test "$GCC" = yes; then
8745         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8746         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8747       else
8748         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8749         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8750       fi
8751       ;;
8752
8753     sysv5* | sco3.2v5* | sco5v6*)
8754       # Note: We can NOT use -z defs as we might desire, because we do not
8755       # link with -lc, and that would cause any symbols used from libc to
8756       # always be unresolved, which means just about no library would
8757       # ever link correctly.  If we're not using GNU ld we use -z text
8758       # though, which does catch some bad symbols but isn't as heavy-handed
8759       # as -z defs.
8760       no_undefined_flag='${wl}-z,text'
8761       allow_undefined_flag='${wl}-z,nodefs'
8762       archive_cmds_need_lc=no
8763       hardcode_shlibpath_var=no
8764       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8765       hardcode_libdir_separator=':'
8766       link_all_deplibs=yes
8767       export_dynamic_flag_spec='${wl}-Bexport'
8768       runpath_var='LD_RUN_PATH'
8769
8770       if test "$GCC" = yes; then
8771         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8772         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8773       else
8774         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8775         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8776       fi
8777       ;;
8778
8779     uts4*)
8780       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8781       hardcode_libdir_flag_spec='-L$libdir'
8782       hardcode_shlibpath_var=no
8783       ;;
8784
8785     *)
8786       ld_shlibs=no
8787       ;;
8788     esac
8789   fi
8790
8791 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8792 echo "${ECHO_T}$ld_shlibs" >&6; }
8793 test "$ld_shlibs" = no && can_build_shared=no
8794
8795 #
8796 # Do we need to explicitly link libc?
8797 #
8798 case "x$archive_cmds_need_lc" in
8799 x|xyes)
8800   # Assume -lc should be added
8801   archive_cmds_need_lc=yes
8802
8803   if test "$enable_shared" = yes && test "$GCC" = yes; then
8804     case $archive_cmds in
8805     *'~'*)
8806       # FIXME: we may have to deal with multi-command sequences.
8807       ;;
8808     '$CC '*)
8809       # Test whether the compiler implicitly links with -lc since on some
8810       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8811       # to ld, don't add -lc before -lgcc.
8812       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8813 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8814       $rm conftest*
8815       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8816
8817       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8818   (eval $ac_compile) 2>&5
8819   ac_status=$?
8820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821   (exit $ac_status); } 2>conftest.err; then
8822         soname=conftest
8823         lib=conftest
8824         libobjs=conftest.$ac_objext
8825         deplibs=
8826         wl=$lt_prog_compiler_wl
8827         pic_flag=$lt_prog_compiler_pic
8828         compiler_flags=-v
8829         linker_flags=-v
8830         verstring=
8831         output_objdir=.
8832         libname=conftest
8833         lt_save_allow_undefined_flag=$allow_undefined_flag
8834         allow_undefined_flag=
8835         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8836   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8837   ac_status=$?
8838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839   (exit $ac_status); }
8840         then
8841           archive_cmds_need_lc=no
8842         else
8843           archive_cmds_need_lc=yes
8844         fi
8845         allow_undefined_flag=$lt_save_allow_undefined_flag
8846       else
8847         cat conftest.err 1>&5
8848       fi
8849       $rm conftest*
8850       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8851 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8852       ;;
8853     esac
8854   fi
8855   ;;
8856 esac
8857
8858 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8859 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8860 library_names_spec=
8861 libname_spec='lib$name'
8862 soname_spec=
8863 shrext_cmds=".so"
8864 postinstall_cmds=
8865 postuninstall_cmds=
8866 finish_cmds=
8867 finish_eval=
8868 shlibpath_var=
8869 shlibpath_overrides_runpath=unknown
8870 version_type=none
8871 dynamic_linker="$host_os ld.so"
8872 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8873 if test "$GCC" = yes; then
8874   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8875   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8876     # if the path contains ";" then we assume it to be the separator
8877     # otherwise default to the standard path separator (i.e. ":") - it is
8878     # assumed that no part of a normal pathname contains ";" but that should
8879     # okay in the real world where ";" in dirpaths is itself problematic.
8880     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8881   else
8882     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8883   fi
8884 else
8885   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8886 fi
8887 need_lib_prefix=unknown
8888 hardcode_into_libs=no
8889
8890 # when you set need_version to no, make sure it does not cause -set_version
8891 # flags to be left without arguments
8892 need_version=unknown
8893
8894 case $host_os in
8895 aix3*)
8896   version_type=linux
8897   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8898   shlibpath_var=LIBPATH
8899
8900   # AIX 3 has no versioning support, so we append a major version to the name.
8901   soname_spec='${libname}${release}${shared_ext}$major'
8902   ;;
8903
8904 aix4* | aix5*)
8905   version_type=linux
8906   need_lib_prefix=no
8907   need_version=no
8908   hardcode_into_libs=yes
8909   if test "$host_cpu" = ia64; then
8910     # AIX 5 supports IA64
8911     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8912     shlibpath_var=LD_LIBRARY_PATH
8913   else
8914     # With GCC up to 2.95.x, collect2 would create an import file
8915     # for dependence libraries.  The import file would start with
8916     # the line `#! .'.  This would cause the generated library to
8917     # depend on `.', always an invalid library.  This was fixed in
8918     # development snapshots of GCC prior to 3.0.
8919     case $host_os in
8920       aix4 | aix4.[01] | aix4.[01].*)
8921       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8922            echo ' yes '
8923            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8924         :
8925       else
8926         can_build_shared=no
8927       fi
8928       ;;
8929     esac
8930     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8931     # soname into executable. Probably we can add versioning support to
8932     # collect2, so additional links can be useful in future.
8933     if test "$aix_use_runtimelinking" = yes; then
8934       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8935       # instead of lib<name>.a to let people know that these are not
8936       # typical AIX shared libraries.
8937       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8938     else
8939       # We preserve .a as extension for shared libraries through AIX4.2
8940       # and later when we are not doing run time linking.
8941       library_names_spec='${libname}${release}.a $libname.a'
8942       soname_spec='${libname}${release}${shared_ext}$major'
8943     fi
8944     shlibpath_var=LIBPATH
8945   fi
8946   ;;
8947
8948 amigaos*)
8949   library_names_spec='$libname.ixlibrary $libname.a'
8950   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8951   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'
8952   ;;
8953
8954 beos*)
8955   library_names_spec='${libname}${shared_ext}'
8956   dynamic_linker="$host_os ld.so"
8957   shlibpath_var=LIBRARY_PATH
8958   ;;
8959
8960 bsdi[45]*)
8961   version_type=linux
8962   need_version=no
8963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8964   soname_spec='${libname}${release}${shared_ext}$major'
8965   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8966   shlibpath_var=LD_LIBRARY_PATH
8967   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8968   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8969   # the default ld.so.conf also contains /usr/contrib/lib and
8970   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8971   # libtool to hard-code these into programs
8972   ;;
8973
8974 cygwin* | mingw* | pw32*)
8975   version_type=windows
8976   shrext_cmds=".dll"
8977   need_version=no
8978   need_lib_prefix=no
8979
8980   case $GCC,$host_os in
8981   yes,cygwin* | yes,mingw* | yes,pw32*)
8982     library_names_spec='$libname.dll.a'
8983     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8984     postinstall_cmds='base_file=`basename \${file}`~
8985       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8986       dldir=$destdir/`dirname \$dlpath`~
8987       test -d \$dldir || mkdir -p \$dldir~
8988       $install_prog $dir/$dlname \$dldir/$dlname~
8989       chmod a+x \$dldir/$dlname'
8990     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8991       dlpath=$dir/\$dldll~
8992        $rm \$dlpath'
8993     shlibpath_overrides_runpath=yes
8994
8995     case $host_os in
8996     cygwin*)
8997       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8998       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8999       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9000       ;;
9001     mingw*)
9002       # MinGW DLLs use traditional 'lib' prefix
9003       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9004       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9005       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9006         # It is most probably a Windows format PATH printed by
9007         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9008         # path with ; separators, and with drive letters. We can handle the
9009         # drive letters (cygwin fileutils understands them), so leave them,
9010         # especially as we might pass files found there to a mingw objdump,
9011         # which wouldn't understand a cygwinified path. Ahh.
9012         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9013       else
9014         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9015       fi
9016       ;;
9017     pw32*)
9018       # pw32 DLLs use 'pw' prefix rather than 'lib'
9019       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9020       ;;
9021     esac
9022     ;;
9023
9024   *)
9025     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9026     ;;
9027   esac
9028   dynamic_linker='Win32 ld.exe'
9029   # FIXME: first we should search . and the directory the executable is in
9030   shlibpath_var=PATH
9031   ;;
9032
9033 darwin* | rhapsody*)
9034   dynamic_linker="$host_os dyld"
9035   version_type=darwin
9036   need_lib_prefix=no
9037   need_version=no
9038   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9039   soname_spec='${libname}${release}${major}$shared_ext'
9040   shlibpath_overrides_runpath=yes
9041   shlibpath_var=DYLD_LIBRARY_PATH
9042   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9043   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9044   if test "$GCC" = yes; then
9045     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"`
9046   else
9047     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9048   fi
9049   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9050   ;;
9051
9052 dgux*)
9053   version_type=linux
9054   need_lib_prefix=no
9055   need_version=no
9056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9057   soname_spec='${libname}${release}${shared_ext}$major'
9058   shlibpath_var=LD_LIBRARY_PATH
9059   ;;
9060
9061 freebsd1*)
9062   dynamic_linker=no
9063   ;;
9064
9065 freebsd* | dragonfly*)
9066   # DragonFly does not have aout.  When/if they implement a new
9067   # versioning mechanism, adjust this.
9068   if test -x /usr/bin/objformat; then
9069     objformat=`/usr/bin/objformat`
9070   else
9071     case $host_os in
9072     freebsd[123]*) objformat=aout ;;
9073     *) objformat=elf ;;
9074     esac
9075   fi
9076   version_type=freebsd-$objformat
9077   case $version_type in
9078     freebsd-elf*)
9079       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9080       need_version=no
9081       need_lib_prefix=no
9082       ;;
9083     freebsd-*)
9084       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9085       need_version=yes
9086       ;;
9087   esac
9088   shlibpath_var=LD_LIBRARY_PATH
9089   case $host_os in
9090   freebsd2*)
9091     shlibpath_overrides_runpath=yes
9092     ;;
9093   freebsd3.[01]* | freebsdelf3.[01]*)
9094     shlibpath_overrides_runpath=yes
9095     hardcode_into_libs=yes
9096     ;;
9097   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9098   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9099     shlibpath_overrides_runpath=no
9100     hardcode_into_libs=yes
9101     ;;
9102   freebsd*) # from 4.6 on
9103     shlibpath_overrides_runpath=yes
9104     hardcode_into_libs=yes
9105     ;;
9106   esac
9107   ;;
9108
9109 gnu*)
9110   version_type=linux
9111   need_lib_prefix=no
9112   need_version=no
9113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9114   soname_spec='${libname}${release}${shared_ext}$major'
9115   shlibpath_var=LD_LIBRARY_PATH
9116   hardcode_into_libs=yes
9117   ;;
9118
9119 hpux9* | hpux10* | hpux11*)
9120   # Give a soname corresponding to the major version so that dld.sl refuses to
9121   # link against other versions.
9122   version_type=sunos
9123   need_lib_prefix=no
9124   need_version=no
9125   case $host_cpu in
9126   ia64*)
9127     shrext_cmds='.so'
9128     hardcode_into_libs=yes
9129     dynamic_linker="$host_os dld.so"
9130     shlibpath_var=LD_LIBRARY_PATH
9131     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9132     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9133     soname_spec='${libname}${release}${shared_ext}$major'
9134     if test "X$HPUX_IA64_MODE" = X32; then
9135       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9136     else
9137       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9138     fi
9139     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9140     ;;
9141    hppa*64*)
9142      shrext_cmds='.sl'
9143      hardcode_into_libs=yes
9144      dynamic_linker="$host_os dld.sl"
9145      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9146      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9147      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148      soname_spec='${libname}${release}${shared_ext}$major'
9149      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9150      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9151      ;;
9152    *)
9153     shrext_cmds='.sl'
9154     dynamic_linker="$host_os dld.sl"
9155     shlibpath_var=SHLIB_PATH
9156     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9157     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9158     soname_spec='${libname}${release}${shared_ext}$major'
9159     ;;
9160   esac
9161   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9162   postinstall_cmds='chmod 555 $lib'
9163   ;;
9164
9165 interix3*)
9166   version_type=linux
9167   need_lib_prefix=no
9168   need_version=no
9169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9170   soname_spec='${libname}${release}${shared_ext}$major'
9171   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9172   shlibpath_var=LD_LIBRARY_PATH
9173   shlibpath_overrides_runpath=no
9174   hardcode_into_libs=yes
9175   ;;
9176
9177 irix5* | irix6* | nonstopux*)
9178   case $host_os in
9179     nonstopux*) version_type=nonstopux ;;
9180     *)
9181         if test "$lt_cv_prog_gnu_ld" = yes; then
9182                 version_type=linux
9183         else
9184                 version_type=irix
9185         fi ;;
9186   esac
9187   need_lib_prefix=no
9188   need_version=no
9189   soname_spec='${libname}${release}${shared_ext}$major'
9190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9191   case $host_os in
9192   irix5* | nonstopux*)
9193     libsuff= shlibsuff=
9194     ;;
9195   *)
9196     case $LD in # libtool.m4 will add one of these switches to LD
9197     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9198       libsuff= shlibsuff= libmagic=32-bit;;
9199     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9200       libsuff=32 shlibsuff=N32 libmagic=N32;;
9201     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9202       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9203     *) libsuff= shlibsuff= libmagic=never-match;;
9204     esac
9205     ;;
9206   esac
9207   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9208   shlibpath_overrides_runpath=no
9209   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9210   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9211   hardcode_into_libs=yes
9212   ;;
9213
9214 # No shared lib support for Linux oldld, aout, or coff.
9215 linux*oldld* | linux*aout* | linux*coff*)
9216   dynamic_linker=no
9217   ;;
9218
9219 # This must be Linux ELF.
9220 linux* | k*bsd*-gnu)
9221   version_type=linux
9222   need_lib_prefix=no
9223   need_version=no
9224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225   soname_spec='${libname}${release}${shared_ext}$major'
9226   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9227   shlibpath_var=LD_LIBRARY_PATH
9228   shlibpath_overrides_runpath=no
9229   # This implies no fast_install, which is unacceptable.
9230   # Some rework will be needed to allow for fast_install
9231   # before this can be enabled.
9232   hardcode_into_libs=yes
9233
9234   # Append ld.so.conf contents to the search path
9235   if test -f /etc/ld.so.conf; then
9236     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' ' '`
9237     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9238   fi
9239
9240   # We used to test for /lib/ld.so.1 and disable shared libraries on
9241   # powerpc, because MkLinux only supported shared libraries with the
9242   # GNU dynamic linker.  Since this was broken with cross compilers,
9243   # most powerpc-linux boxes support dynamic linking these days and
9244   # people can always --disable-shared, the test was removed, and we
9245   # assume the GNU/Linux dynamic linker is in use.
9246   dynamic_linker='GNU/Linux ld.so'
9247   ;;
9248
9249 netbsdelf*-gnu)
9250   version_type=linux
9251   need_lib_prefix=no
9252   need_version=no
9253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9254   soname_spec='${libname}${release}${shared_ext}$major'
9255   shlibpath_var=LD_LIBRARY_PATH
9256   shlibpath_overrides_runpath=no
9257   hardcode_into_libs=yes
9258   dynamic_linker='NetBSD ld.elf_so'
9259   ;;
9260
9261 netbsd*)
9262   version_type=sunos
9263   need_lib_prefix=no
9264   need_version=no
9265   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9266     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9267     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9268     dynamic_linker='NetBSD (a.out) ld.so'
9269   else
9270     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9271     soname_spec='${libname}${release}${shared_ext}$major'
9272     dynamic_linker='NetBSD ld.elf_so'
9273   fi
9274   shlibpath_var=LD_LIBRARY_PATH
9275   shlibpath_overrides_runpath=yes
9276   hardcode_into_libs=yes
9277   ;;
9278
9279 newsos6)
9280   version_type=linux
9281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9282   shlibpath_var=LD_LIBRARY_PATH
9283   shlibpath_overrides_runpath=yes
9284   ;;
9285
9286 nto-qnx*)
9287   version_type=linux
9288   need_lib_prefix=no
9289   need_version=no
9290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9291   soname_spec='${libname}${release}${shared_ext}$major'
9292   shlibpath_var=LD_LIBRARY_PATH
9293   shlibpath_overrides_runpath=yes
9294   ;;
9295
9296 openbsd*)
9297   version_type=sunos
9298   sys_lib_dlsearch_path_spec="/usr/lib"
9299   need_lib_prefix=no
9300   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9301   case $host_os in
9302     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9303     *)                         need_version=no  ;;
9304   esac
9305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9306   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9307   shlibpath_var=LD_LIBRARY_PATH
9308   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9309     case $host_os in
9310       openbsd2.[89] | openbsd2.[89].*)
9311         shlibpath_overrides_runpath=no
9312         ;;
9313       *)
9314         shlibpath_overrides_runpath=yes
9315         ;;
9316       esac
9317   else
9318     shlibpath_overrides_runpath=yes
9319   fi
9320   ;;
9321
9322 os2*)
9323   libname_spec='$name'
9324   shrext_cmds=".dll"
9325   need_lib_prefix=no
9326   library_names_spec='$libname${shared_ext} $libname.a'
9327   dynamic_linker='OS/2 ld.exe'
9328   shlibpath_var=LIBPATH
9329   ;;
9330
9331 osf3* | osf4* | osf5*)
9332   version_type=osf
9333   need_lib_prefix=no
9334   need_version=no
9335   soname_spec='${libname}${release}${shared_ext}$major'
9336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9337   shlibpath_var=LD_LIBRARY_PATH
9338   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9339   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9340   ;;
9341
9342 solaris*)
9343   version_type=linux
9344   need_lib_prefix=no
9345   need_version=no
9346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9347   soname_spec='${libname}${release}${shared_ext}$major'
9348   shlibpath_var=LD_LIBRARY_PATH
9349   shlibpath_overrides_runpath=yes
9350   hardcode_into_libs=yes
9351   # ldd complains unless libraries are executable
9352   postinstall_cmds='chmod +x $lib'
9353   ;;
9354
9355 sunos4*)
9356   version_type=sunos
9357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9358   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9359   shlibpath_var=LD_LIBRARY_PATH
9360   shlibpath_overrides_runpath=yes
9361   if test "$with_gnu_ld" = yes; then
9362     need_lib_prefix=no
9363   fi
9364   need_version=yes
9365   ;;
9366
9367 sysv4 | sysv4.3*)
9368   version_type=linux
9369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9370   soname_spec='${libname}${release}${shared_ext}$major'
9371   shlibpath_var=LD_LIBRARY_PATH
9372   case $host_vendor in
9373     sni)
9374       shlibpath_overrides_runpath=no
9375       need_lib_prefix=no
9376       export_dynamic_flag_spec='${wl}-Blargedynsym'
9377       runpath_var=LD_RUN_PATH
9378       ;;
9379     siemens)
9380       need_lib_prefix=no
9381       ;;
9382     motorola)
9383       need_lib_prefix=no
9384       need_version=no
9385       shlibpath_overrides_runpath=no
9386       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9387       ;;
9388   esac
9389   ;;
9390
9391 sysv4*MP*)
9392   if test -d /usr/nec ;then
9393     version_type=linux
9394     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9395     soname_spec='$libname${shared_ext}.$major'
9396     shlibpath_var=LD_LIBRARY_PATH
9397   fi
9398   ;;
9399
9400 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9401   version_type=freebsd-elf
9402   need_lib_prefix=no
9403   need_version=no
9404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9405   soname_spec='${libname}${release}${shared_ext}$major'
9406   shlibpath_var=LD_LIBRARY_PATH
9407   hardcode_into_libs=yes
9408   if test "$with_gnu_ld" = yes; then
9409     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9410     shlibpath_overrides_runpath=no
9411   else
9412     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9413     shlibpath_overrides_runpath=yes
9414     case $host_os in
9415       sco3.2v5*)
9416         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9417         ;;
9418     esac
9419   fi
9420   sys_lib_dlsearch_path_spec='/usr/lib'
9421   ;;
9422
9423 uts4*)
9424   version_type=linux
9425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9426   soname_spec='${libname}${release}${shared_ext}$major'
9427   shlibpath_var=LD_LIBRARY_PATH
9428   ;;
9429
9430 *)
9431   dynamic_linker=no
9432   ;;
9433 esac
9434 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9435 echo "${ECHO_T}$dynamic_linker" >&6; }
9436 test "$dynamic_linker" = no && can_build_shared=no
9437
9438 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9439 if test "$GCC" = yes; then
9440   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9441 fi
9442
9443 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9444 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9445 hardcode_action=
9446 if test -n "$hardcode_libdir_flag_spec" || \
9447    test -n "$runpath_var" || \
9448    test "X$hardcode_automatic" = "Xyes" ; then
9449
9450   # We can hardcode non-existant directories.
9451   if test "$hardcode_direct" != no &&
9452      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9453      # have to relink, otherwise we might link with an installed library
9454      # when we should be linking with a yet-to-be-installed one
9455      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9456      test "$hardcode_minus_L" != no; then
9457     # Linking always hardcodes the temporary library directory.
9458     hardcode_action=relink
9459   else
9460     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9461     hardcode_action=immediate
9462   fi
9463 else
9464   # We cannot hardcode anything, or else we can only hardcode existing
9465   # directories.
9466   hardcode_action=unsupported
9467 fi
9468 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9469 echo "${ECHO_T}$hardcode_action" >&6; }
9470
9471 if test "$hardcode_action" = relink; then
9472   # Fast installation is not supported
9473   enable_fast_install=no
9474 elif test "$shlibpath_overrides_runpath" = yes ||
9475      test "$enable_shared" = no; then
9476   # Fast installation is not necessary
9477   enable_fast_install=needless
9478 fi
9479
9480 striplib=
9481 old_striplib=
9482 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9483 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9484 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9485   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9486   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9487   { echo "$as_me:$LINENO: result: yes" >&5
9488 echo "${ECHO_T}yes" >&6; }
9489 else
9490 # FIXME - insert some real tests, host_os isn't really good enough
9491   case $host_os in
9492    darwin*)
9493        if test -n "$STRIP" ; then
9494          striplib="$STRIP -x"
9495          { echo "$as_me:$LINENO: result: yes" >&5
9496 echo "${ECHO_T}yes" >&6; }
9497        else
9498   { echo "$as_me:$LINENO: result: no" >&5
9499 echo "${ECHO_T}no" >&6; }
9500 fi
9501        ;;
9502    *)
9503   { echo "$as_me:$LINENO: result: no" >&5
9504 echo "${ECHO_T}no" >&6; }
9505     ;;
9506   esac
9507 fi
9508
9509 if test "x$enable_dlopen" != xyes; then
9510   enable_dlopen=unknown
9511   enable_dlopen_self=unknown
9512   enable_dlopen_self_static=unknown
9513 else
9514   lt_cv_dlopen=no
9515   lt_cv_dlopen_libs=
9516
9517   case $host_os in
9518   beos*)
9519     lt_cv_dlopen="load_add_on"
9520     lt_cv_dlopen_libs=
9521     lt_cv_dlopen_self=yes
9522     ;;
9523
9524   mingw* | pw32*)
9525     lt_cv_dlopen="LoadLibrary"
9526     lt_cv_dlopen_libs=
9527    ;;
9528
9529   cygwin*)
9530     lt_cv_dlopen="dlopen"
9531     lt_cv_dlopen_libs=
9532    ;;
9533
9534   darwin*)
9535   # if libdl is installed we need to link against it
9536     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9537 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9538 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9539   echo $ECHO_N "(cached) $ECHO_C" >&6
9540 else
9541   ac_check_lib_save_LIBS=$LIBS
9542 LIBS="-ldl  $LIBS"
9543 cat >conftest.$ac_ext <<_ACEOF
9544 /* confdefs.h.  */
9545 _ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h.  */
9549
9550 /* Override any GCC internal prototype to avoid an error.
9551    Use char because int might match the return type of a GCC
9552    builtin and then its argument prototype would still apply.  */
9553 #ifdef __cplusplus
9554 extern "C"
9555 #endif
9556 char dlopen ();
9557 int
9558 main ()
9559 {
9560 return dlopen ();
9561   ;
9562   return 0;
9563 }
9564 _ACEOF
9565 rm -f conftest.$ac_objext conftest$ac_exeext
9566 if { (ac_try="$ac_link"
9567 case "(($ac_try" in
9568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569   *) ac_try_echo=$ac_try;;
9570 esac
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572   (eval "$ac_link") 2>conftest.er1
9573   ac_status=$?
9574   grep -v '^ *+' conftest.er1 >conftest.err
9575   rm -f conftest.er1
9576   cat conftest.err >&5
9577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578   (exit $ac_status); } && {
9579          test -z "$ac_c_werror_flag" ||
9580          test ! -s conftest.err
9581        } && test -s conftest$ac_exeext &&
9582        $as_test_x conftest$ac_exeext; then
9583   ac_cv_lib_dl_dlopen=yes
9584 else
9585   echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9587
9588         ac_cv_lib_dl_dlopen=no
9589 fi
9590
9591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9592       conftest$ac_exeext conftest.$ac_ext
9593 LIBS=$ac_check_lib_save_LIBS
9594 fi
9595 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9596 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9597 if test $ac_cv_lib_dl_dlopen = yes; then
9598   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9599 else
9600
9601     lt_cv_dlopen="dyld"
9602     lt_cv_dlopen_libs=
9603     lt_cv_dlopen_self=yes
9604
9605 fi
9606
9607    ;;
9608
9609   *)
9610     { echo "$as_me:$LINENO: checking for shl_load" >&5
9611 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9612 if test "${ac_cv_func_shl_load+set}" = set; then
9613   echo $ECHO_N "(cached) $ECHO_C" >&6
9614 else
9615   cat >conftest.$ac_ext <<_ACEOF
9616 /* confdefs.h.  */
9617 _ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h.  */
9621 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9622    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9623 #define shl_load innocuous_shl_load
9624
9625 /* System header to define __stub macros and hopefully few prototypes,
9626     which can conflict with char shl_load (); below.
9627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9628     <limits.h> exists even on freestanding compilers.  */
9629
9630 #ifdef __STDC__
9631 # include <limits.h>
9632 #else
9633 # include <assert.h>
9634 #endif
9635
9636 #undef shl_load
9637
9638 /* Override any GCC internal prototype to avoid an error.
9639    Use char because int might match the return type of a GCC
9640    builtin and then its argument prototype would still apply.  */
9641 #ifdef __cplusplus
9642 extern "C"
9643 #endif
9644 char shl_load ();
9645 /* The GNU C library defines this for functions which it implements
9646     to always fail with ENOSYS.  Some functions are actually named
9647     something starting with __ and the normal name is an alias.  */
9648 #if defined __stub_shl_load || defined __stub___shl_load
9649 choke me
9650 #endif
9651
9652 int
9653 main ()
9654 {
9655 return shl_load ();
9656   ;
9657   return 0;
9658 }
9659 _ACEOF
9660 rm -f conftest.$ac_objext conftest$ac_exeext
9661 if { (ac_try="$ac_link"
9662 case "(($ac_try" in
9663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664   *) ac_try_echo=$ac_try;;
9665 esac
9666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9667   (eval "$ac_link") 2>conftest.er1
9668   ac_status=$?
9669   grep -v '^ *+' conftest.er1 >conftest.err
9670   rm -f conftest.er1
9671   cat conftest.err >&5
9672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673   (exit $ac_status); } && {
9674          test -z "$ac_c_werror_flag" ||
9675          test ! -s conftest.err
9676        } && test -s conftest$ac_exeext &&
9677        $as_test_x conftest$ac_exeext; then
9678   ac_cv_func_shl_load=yes
9679 else
9680   echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9682
9683         ac_cv_func_shl_load=no
9684 fi
9685
9686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9687       conftest$ac_exeext conftest.$ac_ext
9688 fi
9689 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9690 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9691 if test $ac_cv_func_shl_load = yes; then
9692   lt_cv_dlopen="shl_load"
9693 else
9694   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9695 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9696 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9697   echo $ECHO_N "(cached) $ECHO_C" >&6
9698 else
9699   ac_check_lib_save_LIBS=$LIBS
9700 LIBS="-ldld  $LIBS"
9701 cat >conftest.$ac_ext <<_ACEOF
9702 /* confdefs.h.  */
9703 _ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h.  */
9707
9708 /* Override any GCC internal prototype to avoid an error.
9709    Use char because int might match the return type of a GCC
9710    builtin and then its argument prototype would still apply.  */
9711 #ifdef __cplusplus
9712 extern "C"
9713 #endif
9714 char shl_load ();
9715 int
9716 main ()
9717 {
9718 return shl_load ();
9719   ;
9720   return 0;
9721 }
9722 _ACEOF
9723 rm -f conftest.$ac_objext conftest$ac_exeext
9724 if { (ac_try="$ac_link"
9725 case "(($ac_try" in
9726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727   *) ac_try_echo=$ac_try;;
9728 esac
9729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9730   (eval "$ac_link") 2>conftest.er1
9731   ac_status=$?
9732   grep -v '^ *+' conftest.er1 >conftest.err
9733   rm -f conftest.er1
9734   cat conftest.err >&5
9735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736   (exit $ac_status); } && {
9737          test -z "$ac_c_werror_flag" ||
9738          test ! -s conftest.err
9739        } && test -s conftest$ac_exeext &&
9740        $as_test_x conftest$ac_exeext; then
9741   ac_cv_lib_dld_shl_load=yes
9742 else
9743   echo "$as_me: failed program was:" >&5
9744 sed 's/^/| /' conftest.$ac_ext >&5
9745
9746         ac_cv_lib_dld_shl_load=no
9747 fi
9748
9749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9750       conftest$ac_exeext conftest.$ac_ext
9751 LIBS=$ac_check_lib_save_LIBS
9752 fi
9753 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9754 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9755 if test $ac_cv_lib_dld_shl_load = yes; then
9756   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9757 else
9758   { echo "$as_me:$LINENO: checking for dlopen" >&5
9759 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9760 if test "${ac_cv_func_dlopen+set}" = set; then
9761   echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763   cat >conftest.$ac_ext <<_ACEOF
9764 /* confdefs.h.  */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h.  */
9769 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9771 #define dlopen innocuous_dlopen
9772
9773 /* System header to define __stub macros and hopefully few prototypes,
9774     which can conflict with char dlopen (); below.
9775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9776     <limits.h> exists even on freestanding compilers.  */
9777
9778 #ifdef __STDC__
9779 # include <limits.h>
9780 #else
9781 # include <assert.h>
9782 #endif
9783
9784 #undef dlopen
9785
9786 /* Override any GCC internal prototype to avoid an error.
9787    Use char because int might match the return type of a GCC
9788    builtin and then its argument prototype would still apply.  */
9789 #ifdef __cplusplus
9790 extern "C"
9791 #endif
9792 char dlopen ();
9793 /* The GNU C library defines this for functions which it implements
9794     to always fail with ENOSYS.  Some functions are actually named
9795     something starting with __ and the normal name is an alias.  */
9796 #if defined __stub_dlopen || defined __stub___dlopen
9797 choke me
9798 #endif
9799
9800 int
9801 main ()
9802 {
9803 return dlopen ();
9804   ;
9805   return 0;
9806 }
9807 _ACEOF
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (ac_try="$ac_link"
9810 case "(($ac_try" in
9811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812   *) ac_try_echo=$ac_try;;
9813 esac
9814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815   (eval "$ac_link") 2>conftest.er1
9816   ac_status=$?
9817   grep -v '^ *+' conftest.er1 >conftest.err
9818   rm -f conftest.er1
9819   cat conftest.err >&5
9820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821   (exit $ac_status); } && {
9822          test -z "$ac_c_werror_flag" ||
9823          test ! -s conftest.err
9824        } && test -s conftest$ac_exeext &&
9825        $as_test_x conftest$ac_exeext; then
9826   ac_cv_func_dlopen=yes
9827 else
9828   echo "$as_me: failed program was:" >&5
9829 sed 's/^/| /' conftest.$ac_ext >&5
9830
9831         ac_cv_func_dlopen=no
9832 fi
9833
9834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9835       conftest$ac_exeext conftest.$ac_ext
9836 fi
9837 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9838 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9839 if test $ac_cv_func_dlopen = yes; then
9840   lt_cv_dlopen="dlopen"
9841 else
9842   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9843 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9844 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9845   echo $ECHO_N "(cached) $ECHO_C" >&6
9846 else
9847   ac_check_lib_save_LIBS=$LIBS
9848 LIBS="-ldl  $LIBS"
9849 cat >conftest.$ac_ext <<_ACEOF
9850 /* confdefs.h.  */
9851 _ACEOF
9852 cat confdefs.h >>conftest.$ac_ext
9853 cat >>conftest.$ac_ext <<_ACEOF
9854 /* end confdefs.h.  */
9855
9856 /* Override any GCC internal prototype to avoid an error.
9857    Use char because int might match the return type of a GCC
9858    builtin and then its argument prototype would still apply.  */
9859 #ifdef __cplusplus
9860 extern "C"
9861 #endif
9862 char dlopen ();
9863 int
9864 main ()
9865 {
9866 return dlopen ();
9867   ;
9868   return 0;
9869 }
9870 _ACEOF
9871 rm -f conftest.$ac_objext conftest$ac_exeext
9872 if { (ac_try="$ac_link"
9873 case "(($ac_try" in
9874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9875   *) ac_try_echo=$ac_try;;
9876 esac
9877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9878   (eval "$ac_link") 2>conftest.er1
9879   ac_status=$?
9880   grep -v '^ *+' conftest.er1 >conftest.err
9881   rm -f conftest.er1
9882   cat conftest.err >&5
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); } && {
9885          test -z "$ac_c_werror_flag" ||
9886          test ! -s conftest.err
9887        } && test -s conftest$ac_exeext &&
9888        $as_test_x conftest$ac_exeext; then
9889   ac_cv_lib_dl_dlopen=yes
9890 else
9891   echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9893
9894         ac_cv_lib_dl_dlopen=no
9895 fi
9896
9897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9898       conftest$ac_exeext conftest.$ac_ext
9899 LIBS=$ac_check_lib_save_LIBS
9900 fi
9901 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9902 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9903 if test $ac_cv_lib_dl_dlopen = yes; then
9904   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9905 else
9906   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9907 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9908 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9909   echo $ECHO_N "(cached) $ECHO_C" >&6
9910 else
9911   ac_check_lib_save_LIBS=$LIBS
9912 LIBS="-lsvld  $LIBS"
9913 cat >conftest.$ac_ext <<_ACEOF
9914 /* confdefs.h.  */
9915 _ACEOF
9916 cat confdefs.h >>conftest.$ac_ext
9917 cat >>conftest.$ac_ext <<_ACEOF
9918 /* end confdefs.h.  */
9919
9920 /* Override any GCC internal prototype to avoid an error.
9921    Use char because int might match the return type of a GCC
9922    builtin and then its argument prototype would still apply.  */
9923 #ifdef __cplusplus
9924 extern "C"
9925 #endif
9926 char dlopen ();
9927 int
9928 main ()
9929 {
9930 return dlopen ();
9931   ;
9932   return 0;
9933 }
9934 _ACEOF
9935 rm -f conftest.$ac_objext conftest$ac_exeext
9936 if { (ac_try="$ac_link"
9937 case "(($ac_try" in
9938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939   *) ac_try_echo=$ac_try;;
9940 esac
9941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942   (eval "$ac_link") 2>conftest.er1
9943   ac_status=$?
9944   grep -v '^ *+' conftest.er1 >conftest.err
9945   rm -f conftest.er1
9946   cat conftest.err >&5
9947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); } && {
9949          test -z "$ac_c_werror_flag" ||
9950          test ! -s conftest.err
9951        } && test -s conftest$ac_exeext &&
9952        $as_test_x conftest$ac_exeext; then
9953   ac_cv_lib_svld_dlopen=yes
9954 else
9955   echo "$as_me: failed program was:" >&5
9956 sed 's/^/| /' conftest.$ac_ext >&5
9957
9958         ac_cv_lib_svld_dlopen=no
9959 fi
9960
9961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9962       conftest$ac_exeext conftest.$ac_ext
9963 LIBS=$ac_check_lib_save_LIBS
9964 fi
9965 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9966 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9967 if test $ac_cv_lib_svld_dlopen = yes; then
9968   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9969 else
9970   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9971 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9972 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9973   echo $ECHO_N "(cached) $ECHO_C" >&6
9974 else
9975   ac_check_lib_save_LIBS=$LIBS
9976 LIBS="-ldld  $LIBS"
9977 cat >conftest.$ac_ext <<_ACEOF
9978 /* confdefs.h.  */
9979 _ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h.  */
9983
9984 /* Override any GCC internal prototype to avoid an error.
9985    Use char because int might match the return type of a GCC
9986    builtin and then its argument prototype would still apply.  */
9987 #ifdef __cplusplus
9988 extern "C"
9989 #endif
9990 char dld_link ();
9991 int
9992 main ()
9993 {
9994 return dld_link ();
9995   ;
9996   return 0;
9997 }
9998 _ACEOF
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (ac_try="$ac_link"
10001 case "(($ac_try" in
10002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003   *) ac_try_echo=$ac_try;;
10004 esac
10005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006   (eval "$ac_link") 2>conftest.er1
10007   ac_status=$?
10008   grep -v '^ *+' conftest.er1 >conftest.err
10009   rm -f conftest.er1
10010   cat conftest.err >&5
10011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012   (exit $ac_status); } && {
10013          test -z "$ac_c_werror_flag" ||
10014          test ! -s conftest.err
10015        } && test -s conftest$ac_exeext &&
10016        $as_test_x conftest$ac_exeext; then
10017   ac_cv_lib_dld_dld_link=yes
10018 else
10019   echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10021
10022         ac_cv_lib_dld_dld_link=no
10023 fi
10024
10025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10026       conftest$ac_exeext conftest.$ac_ext
10027 LIBS=$ac_check_lib_save_LIBS
10028 fi
10029 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10030 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10031 if test $ac_cv_lib_dld_dld_link = yes; then
10032   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10033 fi
10034
10035
10036 fi
10037
10038
10039 fi
10040
10041
10042 fi
10043
10044
10045 fi
10046
10047
10048 fi
10049
10050     ;;
10051   esac
10052
10053   if test "x$lt_cv_dlopen" != xno; then
10054     enable_dlopen=yes
10055   else
10056     enable_dlopen=no
10057   fi
10058
10059   case $lt_cv_dlopen in
10060   dlopen)
10061     save_CPPFLAGS="$CPPFLAGS"
10062     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10063
10064     save_LDFLAGS="$LDFLAGS"
10065     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10066
10067     save_LIBS="$LIBS"
10068     LIBS="$lt_cv_dlopen_libs $LIBS"
10069
10070     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10071 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10072 if test "${lt_cv_dlopen_self+set}" = set; then
10073   echo $ECHO_N "(cached) $ECHO_C" >&6
10074 else
10075           if test "$cross_compiling" = yes; then :
10076   lt_cv_dlopen_self=cross
10077 else
10078   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10079   lt_status=$lt_dlunknown
10080   cat > conftest.$ac_ext <<EOF
10081 #line 10081 "configure"
10082 #include "confdefs.h"
10083
10084 #if HAVE_DLFCN_H
10085 #include <dlfcn.h>
10086 #endif
10087
10088 #include <stdio.h>
10089
10090 #ifdef RTLD_GLOBAL
10091 #  define LT_DLGLOBAL           RTLD_GLOBAL
10092 #else
10093 #  ifdef DL_GLOBAL
10094 #    define LT_DLGLOBAL         DL_GLOBAL
10095 #  else
10096 #    define LT_DLGLOBAL         0
10097 #  endif
10098 #endif
10099
10100 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10101    find out it does not work in some platform. */
10102 #ifndef LT_DLLAZY_OR_NOW
10103 #  ifdef RTLD_LAZY
10104 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10105 #  else
10106 #    ifdef DL_LAZY
10107 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10108 #    else
10109 #      ifdef RTLD_NOW
10110 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10111 #      else
10112 #        ifdef DL_NOW
10113 #          define LT_DLLAZY_OR_NOW      DL_NOW
10114 #        else
10115 #          define LT_DLLAZY_OR_NOW      0
10116 #        endif
10117 #      endif
10118 #    endif
10119 #  endif
10120 #endif
10121
10122 #ifdef __cplusplus
10123 extern "C" void exit (int);
10124 #endif
10125
10126 void fnord() { int i=42;}
10127 int main ()
10128 {
10129   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10130   int status = $lt_dlunknown;
10131
10132   if (self)
10133     {
10134       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10135       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10136       /* dlclose (self); */
10137     }
10138   else
10139     puts (dlerror ());
10140
10141     exit (status);
10142 }
10143 EOF
10144   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10145   (eval $ac_link) 2>&5
10146   ac_status=$?
10147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10149     (./conftest; exit; ) >&5 2>/dev/null
10150     lt_status=$?
10151     case x$lt_status in
10152       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10153       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10154       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10155     esac
10156   else :
10157     # compilation failed
10158     lt_cv_dlopen_self=no
10159   fi
10160 fi
10161 rm -fr conftest*
10162
10163
10164 fi
10165 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10166 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10167
10168     if test "x$lt_cv_dlopen_self" = xyes; then
10169       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10170       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10171 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10172 if test "${lt_cv_dlopen_self_static+set}" = set; then
10173   echo $ECHO_N "(cached) $ECHO_C" >&6
10174 else
10175           if test "$cross_compiling" = yes; then :
10176   lt_cv_dlopen_self_static=cross
10177 else
10178   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10179   lt_status=$lt_dlunknown
10180   cat > conftest.$ac_ext <<EOF
10181 #line 10181 "configure"
10182 #include "confdefs.h"
10183
10184 #if HAVE_DLFCN_H
10185 #include <dlfcn.h>
10186 #endif
10187
10188 #include <stdio.h>
10189
10190 #ifdef RTLD_GLOBAL
10191 #  define LT_DLGLOBAL           RTLD_GLOBAL
10192 #else
10193 #  ifdef DL_GLOBAL
10194 #    define LT_DLGLOBAL         DL_GLOBAL
10195 #  else
10196 #    define LT_DLGLOBAL         0
10197 #  endif
10198 #endif
10199
10200 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10201    find out it does not work in some platform. */
10202 #ifndef LT_DLLAZY_OR_NOW
10203 #  ifdef RTLD_LAZY
10204 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10205 #  else
10206 #    ifdef DL_LAZY
10207 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10208 #    else
10209 #      ifdef RTLD_NOW
10210 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10211 #      else
10212 #        ifdef DL_NOW
10213 #          define LT_DLLAZY_OR_NOW      DL_NOW
10214 #        else
10215 #          define LT_DLLAZY_OR_NOW      0
10216 #        endif
10217 #      endif
10218 #    endif
10219 #  endif
10220 #endif
10221
10222 #ifdef __cplusplus
10223 extern "C" void exit (int);
10224 #endif
10225
10226 void fnord() { int i=42;}
10227 int main ()
10228 {
10229   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10230   int status = $lt_dlunknown;
10231
10232   if (self)
10233     {
10234       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10235       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10236       /* dlclose (self); */
10237     }
10238   else
10239     puts (dlerror ());
10240
10241     exit (status);
10242 }
10243 EOF
10244   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10245   (eval $ac_link) 2>&5
10246   ac_status=$?
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10249     (./conftest; exit; ) >&5 2>/dev/null
10250     lt_status=$?
10251     case x$lt_status in
10252       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10253       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10254       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10255     esac
10256   else :
10257     # compilation failed
10258     lt_cv_dlopen_self_static=no
10259   fi
10260 fi
10261 rm -fr conftest*
10262
10263
10264 fi
10265 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10266 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10267     fi
10268
10269     CPPFLAGS="$save_CPPFLAGS"
10270     LDFLAGS="$save_LDFLAGS"
10271     LIBS="$save_LIBS"
10272     ;;
10273   esac
10274
10275   case $lt_cv_dlopen_self in
10276   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10277   *) enable_dlopen_self=unknown ;;
10278   esac
10279
10280   case $lt_cv_dlopen_self_static in
10281   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10282   *) enable_dlopen_self_static=unknown ;;
10283   esac
10284 fi
10285
10286
10287 # Report which library types will actually be built
10288 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10289 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10290 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10291 echo "${ECHO_T}$can_build_shared" >&6; }
10292
10293 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10294 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10295 test "$can_build_shared" = "no" && enable_shared=no
10296
10297 # On AIX, shared libraries and static libraries use the same namespace, and
10298 # are all built from PIC.
10299 case $host_os in
10300 aix3*)
10301   test "$enable_shared" = yes && enable_static=no
10302   if test -n "$RANLIB"; then
10303     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10304     postinstall_cmds='$RANLIB $lib'
10305   fi
10306   ;;
10307
10308 aix4* | aix5*)
10309   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10310     test "$enable_shared" = yes && enable_static=no
10311   fi
10312     ;;
10313 esac
10314 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10315 echo "${ECHO_T}$enable_shared" >&6; }
10316
10317 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10318 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10319 # Make sure either enable_shared or enable_static is yes.
10320 test "$enable_shared" = yes || enable_static=yes
10321 { echo "$as_me:$LINENO: result: $enable_static" >&5
10322 echo "${ECHO_T}$enable_static" >&6; }
10323
10324 # The else clause should only fire when bootstrapping the
10325 # libtool distribution, otherwise you forgot to ship ltmain.sh
10326 # with your package, and you will get complaints that there are
10327 # no rules to generate ltmain.sh.
10328 if test -f "$ltmain"; then
10329   # See if we are running on zsh, and set the options which allow our commands through
10330   # without removal of \ escapes.
10331   if test -n "${ZSH_VERSION+set}" ; then
10332     setopt NO_GLOB_SUBST
10333   fi
10334   # Now quote all the things that may contain metacharacters while being
10335   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10336   # variables and quote the copies for generation of the libtool script.
10337   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10338     SED SHELL STRIP \
10339     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10340     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10341     deplibs_check_method reload_flag reload_cmds need_locks \
10342     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10343     lt_cv_sys_global_symbol_to_c_name_address \
10344     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10345     old_postinstall_cmds old_postuninstall_cmds \
10346     compiler \
10347     CC \
10348     LD \
10349     lt_prog_compiler_wl \
10350     lt_prog_compiler_pic \
10351     lt_prog_compiler_static \
10352     lt_prog_compiler_no_builtin_flag \
10353     export_dynamic_flag_spec \
10354     thread_safe_flag_spec \
10355     whole_archive_flag_spec \
10356     enable_shared_with_static_runtimes \
10357     old_archive_cmds \
10358     old_archive_from_new_cmds \
10359     predep_objects \
10360     postdep_objects \
10361     predeps \
10362     postdeps \
10363     compiler_lib_search_path \
10364     archive_cmds \
10365     archive_expsym_cmds \
10366     postinstall_cmds \
10367     postuninstall_cmds \
10368     old_archive_from_expsyms_cmds \
10369     allow_undefined_flag \
10370     no_undefined_flag \
10371     export_symbols_cmds \
10372     hardcode_libdir_flag_spec \
10373     hardcode_libdir_flag_spec_ld \
10374     hardcode_libdir_separator \
10375     hardcode_automatic \
10376     module_cmds \
10377     module_expsym_cmds \
10378     lt_cv_prog_compiler_c_o \
10379     exclude_expsyms \
10380     include_expsyms; do
10381
10382     case $var in
10383     old_archive_cmds | \
10384     old_archive_from_new_cmds | \
10385     archive_cmds | \
10386     archive_expsym_cmds | \
10387     module_cmds | \
10388     module_expsym_cmds | \
10389     old_archive_from_expsyms_cmds | \
10390     export_symbols_cmds | \
10391     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10392     postinstall_cmds | postuninstall_cmds | \
10393     old_postinstall_cmds | old_postuninstall_cmds | \
10394     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10395       # Double-quote double-evaled strings.
10396       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10397       ;;
10398     *)
10399       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10400       ;;
10401     esac
10402   done
10403
10404   case $lt_echo in
10405   *'\$0 --fallback-echo"')
10406     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10407     ;;
10408   esac
10409
10410 cfgfile="${ofile}T"
10411   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10412   $rm -f "$cfgfile"
10413   { echo "$as_me:$LINENO: creating $ofile" >&5
10414 echo "$as_me: creating $ofile" >&6;}
10415
10416   cat <<__EOF__ >> "$cfgfile"
10417 #! $SHELL
10418
10419 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10420 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10421 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10422 #
10423 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10424 # Free Software Foundation, Inc.
10425 #
10426 # This file is part of GNU Libtool:
10427 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10428 #
10429 # This program is free software; you can redistribute it and/or modify
10430 # it under the terms of the GNU General Public License as published by
10431 # the Free Software Foundation; either version 2 of the License, or
10432 # (at your option) any later version.
10433 #
10434 # This program is distributed in the hope that it will be useful, but
10435 # WITHOUT ANY WARRANTY; without even the implied warranty of
10436 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10437 # General Public License for more details.
10438 #
10439 # You should have received a copy of the GNU General Public License
10440 # along with this program; if not, write to the Free Software
10441 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10442 #
10443 # As a special exception to the GNU General Public License, if you
10444 # distribute this file as part of a program that contains a
10445 # configuration script generated by Autoconf, you may include it under
10446 # the same distribution terms that you use for the rest of that program.
10447
10448 # A sed program that does not truncate output.
10449 SED=$lt_SED
10450
10451 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10452 Xsed="$SED -e 1s/^X//"
10453
10454 # The HP-UX ksh and POSIX shell print the target directory to stdout
10455 # if CDPATH is set.
10456 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10457
10458 # The names of the tagged configurations supported by this script.
10459 available_tags=
10460
10461 # ### BEGIN LIBTOOL CONFIG
10462
10463 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10464
10465 # Shell to use when invoking shell scripts.
10466 SHELL=$lt_SHELL
10467
10468 # Whether or not to build shared libraries.
10469 build_libtool_libs=$enable_shared
10470
10471 # Whether or not to build static libraries.
10472 build_old_libs=$enable_static
10473
10474 # Whether or not to add -lc for building shared libraries.
10475 build_libtool_need_lc=$archive_cmds_need_lc
10476
10477 # Whether or not to disallow shared libs when runtime libs are static
10478 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10479
10480 # Whether or not to optimize for fast installation.
10481 fast_install=$enable_fast_install
10482
10483 # The host system.
10484 host_alias=$host_alias
10485 host=$host
10486 host_os=$host_os
10487
10488 # The build system.
10489 build_alias=$build_alias
10490 build=$build
10491 build_os=$build_os
10492
10493 # An echo program that does not interpret backslashes.
10494 echo=$lt_echo
10495
10496 # The archiver.
10497 AR=$lt_AR
10498 AR_FLAGS=$lt_AR_FLAGS
10499
10500 # A C compiler.
10501 LTCC=$lt_LTCC
10502
10503 # LTCC compiler flags.
10504 LTCFLAGS=$lt_LTCFLAGS
10505
10506 # A language-specific compiler.
10507 CC=$lt_compiler
10508
10509 # Is the compiler the GNU C compiler?
10510 with_gcc=$GCC
10511
10512 # An ERE matcher.
10513 EGREP=$lt_EGREP
10514
10515 # The linker used to build libraries.
10516 LD=$lt_LD
10517
10518 # Whether we need hard or soft links.
10519 LN_S=$lt_LN_S
10520
10521 # A BSD-compatible nm program.
10522 NM=$lt_NM
10523
10524 # A symbol stripping program
10525 STRIP=$lt_STRIP
10526
10527 # Used to examine libraries when file_magic_cmd begins "file"
10528 MAGIC_CMD=$MAGIC_CMD
10529
10530 # Used on cygwin: DLL creation program.
10531 DLLTOOL="$DLLTOOL"
10532
10533 # Used on cygwin: object dumper.
10534 OBJDUMP="$OBJDUMP"
10535
10536 # Used on cygwin: assembler.
10537 AS="$AS"
10538
10539 # The name of the directory that contains temporary libtool files.
10540 objdir=$objdir
10541
10542 # How to create reloadable object files.
10543 reload_flag=$lt_reload_flag
10544 reload_cmds=$lt_reload_cmds
10545
10546 # How to pass a linker flag through the compiler.
10547 wl=$lt_lt_prog_compiler_wl
10548
10549 # Object file suffix (normally "o").
10550 objext="$ac_objext"
10551
10552 # Old archive suffix (normally "a").
10553 libext="$libext"
10554
10555 # Shared library suffix (normally ".so").
10556 shrext_cmds='$shrext_cmds'
10557
10558 # Executable file suffix (normally "").
10559 exeext="$exeext"
10560
10561 # Additional compiler flags for building library objects.
10562 pic_flag=$lt_lt_prog_compiler_pic
10563 pic_mode=$pic_mode
10564
10565 # What is the maximum length of a command?
10566 max_cmd_len=$lt_cv_sys_max_cmd_len
10567
10568 # Does compiler simultaneously support -c and -o options?
10569 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10570
10571 # Must we lock files when doing compilation?
10572 need_locks=$lt_need_locks
10573
10574 # Do we need the lib prefix for modules?
10575 need_lib_prefix=$need_lib_prefix
10576
10577 # Do we need a version for libraries?
10578 need_version=$need_version
10579
10580 # Whether dlopen is supported.
10581 dlopen_support=$enable_dlopen
10582
10583 # Whether dlopen of programs is supported.
10584 dlopen_self=$enable_dlopen_self
10585
10586 # Whether dlopen of statically linked programs is supported.
10587 dlopen_self_static=$enable_dlopen_self_static
10588
10589 # Compiler flag to prevent dynamic linking.
10590 link_static_flag=$lt_lt_prog_compiler_static
10591
10592 # Compiler flag to turn off builtin functions.
10593 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10594
10595 # Compiler flag to allow reflexive dlopens.
10596 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10597
10598 # Compiler flag to generate shared objects directly from archives.
10599 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10600
10601 # Compiler flag to generate thread-safe objects.
10602 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10603
10604 # Library versioning type.
10605 version_type=$version_type
10606
10607 # Format of library name prefix.
10608 libname_spec=$lt_libname_spec
10609
10610 # List of archive names.  First name is the real one, the rest are links.
10611 # The last name is the one that the linker finds with -lNAME.
10612 library_names_spec=$lt_library_names_spec
10613
10614 # The coded name of the library, if different from the real name.
10615 soname_spec=$lt_soname_spec
10616
10617 # Commands used to build and install an old-style archive.
10618 RANLIB=$lt_RANLIB
10619 old_archive_cmds=$lt_old_archive_cmds
10620 old_postinstall_cmds=$lt_old_postinstall_cmds
10621 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10622
10623 # Create an old-style archive from a shared archive.
10624 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10625
10626 # Create a temporary old-style archive to link instead of a shared archive.
10627 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10628
10629 # Commands used to build and install a shared archive.
10630 archive_cmds=$lt_archive_cmds
10631 archive_expsym_cmds=$lt_archive_expsym_cmds
10632 postinstall_cmds=$lt_postinstall_cmds
10633 postuninstall_cmds=$lt_postuninstall_cmds
10634
10635 # Commands used to build a loadable module (assumed same as above if empty)
10636 module_cmds=$lt_module_cmds
10637 module_expsym_cmds=$lt_module_expsym_cmds
10638
10639 # Commands to strip libraries.
10640 old_striplib=$lt_old_striplib
10641 striplib=$lt_striplib
10642
10643 # Dependencies to place before the objects being linked to create a
10644 # shared library.
10645 predep_objects=$lt_predep_objects
10646
10647 # Dependencies to place after the objects being linked to create a
10648 # shared library.
10649 postdep_objects=$lt_postdep_objects
10650
10651 # Dependencies to place before the objects being linked to create a
10652 # shared library.
10653 predeps=$lt_predeps
10654
10655 # Dependencies to place after the objects being linked to create a
10656 # shared library.
10657 postdeps=$lt_postdeps
10658
10659 # The library search path used internally by the compiler when linking
10660 # a shared library.
10661 compiler_lib_search_path=$lt_compiler_lib_search_path
10662
10663 # Method to check whether dependent libraries are shared objects.
10664 deplibs_check_method=$lt_deplibs_check_method
10665
10666 # Command to use when deplibs_check_method == file_magic.
10667 file_magic_cmd=$lt_file_magic_cmd
10668
10669 # Flag that allows shared libraries with undefined symbols to be built.
10670 allow_undefined_flag=$lt_allow_undefined_flag
10671
10672 # Flag that forces no undefined symbols.
10673 no_undefined_flag=$lt_no_undefined_flag
10674
10675 # Commands used to finish a libtool library installation in a directory.
10676 finish_cmds=$lt_finish_cmds
10677
10678 # Same as above, but a single script fragment to be evaled but not shown.
10679 finish_eval=$lt_finish_eval
10680
10681 # Take the output of nm and produce a listing of raw symbols and C names.
10682 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10683
10684 # Transform the output of nm in a proper C declaration
10685 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10686
10687 # Transform the output of nm in a C name address pair
10688 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10689
10690 # This is the shared library runtime path variable.
10691 runpath_var=$runpath_var
10692
10693 # This is the shared library path variable.
10694 shlibpath_var=$shlibpath_var
10695
10696 # Is shlibpath searched before the hard-coded library search path?
10697 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10698
10699 # How to hardcode a shared library path into an executable.
10700 hardcode_action=$hardcode_action
10701
10702 # Whether we should hardcode library paths into libraries.
10703 hardcode_into_libs=$hardcode_into_libs
10704
10705 # Flag to hardcode \$libdir into a binary during linking.
10706 # This must work even if \$libdir does not exist.
10707 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10708
10709 # If ld is used when linking, flag to hardcode \$libdir into
10710 # a binary during linking. This must work even if \$libdir does
10711 # not exist.
10712 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10713
10714 # Whether we need a single -rpath flag with a separated argument.
10715 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10716
10717 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10718 # resulting binary.
10719 hardcode_direct=$hardcode_direct
10720
10721 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10722 # resulting binary.
10723 hardcode_minus_L=$hardcode_minus_L
10724
10725 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10726 # the resulting binary.
10727 hardcode_shlibpath_var=$hardcode_shlibpath_var
10728
10729 # Set to yes if building a shared library automatically hardcodes DIR into the library
10730 # and all subsequent libraries and executables linked against it.
10731 hardcode_automatic=$hardcode_automatic
10732
10733 # Variables whose values should be saved in libtool wrapper scripts and
10734 # restored at relink time.
10735 variables_saved_for_relink="$variables_saved_for_relink"
10736
10737 # Whether libtool must link a program against all its dependency libraries.
10738 link_all_deplibs=$link_all_deplibs
10739
10740 # Compile-time system search path for libraries
10741 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10742
10743 # Run-time system search path for libraries
10744 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10745
10746 # Fix the shell variable \$srcfile for the compiler.
10747 fix_srcfile_path="$fix_srcfile_path"
10748
10749 # Set to yes if exported symbols are required.
10750 always_export_symbols=$always_export_symbols
10751
10752 # The commands to list exported symbols.
10753 export_symbols_cmds=$lt_export_symbols_cmds
10754
10755 # The commands to extract the exported symbol list from a shared archive.
10756 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10757
10758 # Symbols that should not be listed in the preloaded symbols.
10759 exclude_expsyms=$lt_exclude_expsyms
10760
10761 # Symbols that must always be exported.
10762 include_expsyms=$lt_include_expsyms
10763
10764 # ### END LIBTOOL CONFIG
10765
10766 __EOF__
10767
10768
10769   case $host_os in
10770   aix3*)
10771     cat <<\EOF >> "$cfgfile"
10772
10773 # AIX sometimes has problems with the GCC collect2 program.  For some
10774 # reason, if we set the COLLECT_NAMES environment variable, the problems
10775 # vanish in a puff of smoke.
10776 if test "X${COLLECT_NAMES+set}" != Xset; then
10777   COLLECT_NAMES=
10778   export COLLECT_NAMES
10779 fi
10780 EOF
10781     ;;
10782   esac
10783
10784   # We use sed instead of cat because bash on DJGPP gets confused if
10785   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10786   # text mode, it properly converts lines to CR/LF.  This bash problem
10787   # is reportedly fixed, but why not run on old versions too?
10788   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10789
10790   mv -f "$cfgfile" "$ofile" || \
10791     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10792   chmod +x "$ofile"
10793
10794 else
10795   # If there is no Makefile yet, we rely on a make rule to execute
10796   # `config.status --recheck' to rerun these tests and create the
10797   # libtool script then.
10798   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10799   if test -f "$ltmain_in"; then
10800     test -f Makefile && make "$ltmain"
10801   fi
10802 fi
10803
10804
10805 ac_ext=c
10806 ac_cpp='$CPP $CPPFLAGS'
10807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10810
10811 CC="$lt_save_CC"
10812
10813
10814 # Check whether --with-tags was given.
10815 if test "${with_tags+set}" = set; then
10816   withval=$with_tags; tagnames="$withval"
10817 fi
10818
10819
10820 if test -f "$ltmain" && test -n "$tagnames"; then
10821   if test ! -f "${ofile}"; then
10822     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10823 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10824   fi
10825
10826   if test -z "$LTCC"; then
10827     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10828     if test -z "$LTCC"; then
10829       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10830 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10831     else
10832       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10833 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10834     fi
10835   fi
10836   if test -z "$LTCFLAGS"; then
10837     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10838   fi
10839
10840   # Extract list of available tagged configurations in $ofile.
10841   # Note that this assumes the entire list is on one line.
10842   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10843
10844   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10845   for tagname in $tagnames; do
10846     IFS="$lt_save_ifs"
10847     # Check whether tagname contains only valid characters
10848     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10849     "") ;;
10850     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10851 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10852    { (exit 1); exit 1; }; }
10853         ;;
10854     esac
10855
10856     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10857     then
10858       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10859 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10860    { (exit 1); exit 1; }; }
10861     fi
10862
10863     # Update the list of available tags.
10864     if test -n "$tagname"; then
10865       echo appending configuration tag \"$tagname\" to $ofile
10866
10867       case $tagname in
10868       CXX)
10869         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10870             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10871             (test "X$CXX" != "Xg++"))) ; then
10872           ac_ext=cpp
10873 ac_cpp='$CXXCPP $CPPFLAGS'
10874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10877
10878
10879
10880
10881 archive_cmds_need_lc_CXX=no
10882 allow_undefined_flag_CXX=
10883 always_export_symbols_CXX=no
10884 archive_expsym_cmds_CXX=
10885 export_dynamic_flag_spec_CXX=
10886 hardcode_direct_CXX=no
10887 hardcode_libdir_flag_spec_CXX=
10888 hardcode_libdir_flag_spec_ld_CXX=
10889 hardcode_libdir_separator_CXX=
10890 hardcode_minus_L_CXX=no
10891 hardcode_shlibpath_var_CXX=unsupported
10892 hardcode_automatic_CXX=no
10893 module_cmds_CXX=
10894 module_expsym_cmds_CXX=
10895 link_all_deplibs_CXX=unknown
10896 old_archive_cmds_CXX=$old_archive_cmds
10897 no_undefined_flag_CXX=
10898 whole_archive_flag_spec_CXX=
10899 enable_shared_with_static_runtimes_CXX=no
10900
10901 # Dependencies to place before and after the object being linked:
10902 predep_objects_CXX=
10903 postdep_objects_CXX=
10904 predeps_CXX=
10905 postdeps_CXX=
10906 compiler_lib_search_path_CXX=
10907
10908 # Source file extension for C++ test sources.
10909 ac_ext=cpp
10910
10911 # Object file extension for compiled C++ test sources.
10912 objext=o
10913 objext_CXX=$objext
10914
10915 # Code to be used in simple compile tests
10916 lt_simple_compile_test_code="int some_variable = 0;\n"
10917
10918 # Code to be used in simple link tests
10919 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10920
10921 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10922
10923 # If no C compiler was specified, use CC.
10924 LTCC=${LTCC-"$CC"}
10925
10926 # If no C compiler flags were specified, use CFLAGS.
10927 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10928
10929 # Allow CC to be a program name with arguments.
10930 compiler=$CC
10931
10932
10933 # save warnings/boilerplate of simple test code
10934 ac_outfile=conftest.$ac_objext
10935 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10936 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10937 _lt_compiler_boilerplate=`cat conftest.err`
10938 $rm conftest*
10939
10940 ac_outfile=conftest.$ac_objext
10941 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10942 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10943 _lt_linker_boilerplate=`cat conftest.err`
10944 $rm conftest*
10945
10946
10947 # Allow CC to be a program name with arguments.
10948 lt_save_CC=$CC
10949 lt_save_LD=$LD
10950 lt_save_GCC=$GCC
10951 GCC=$GXX
10952 lt_save_with_gnu_ld=$with_gnu_ld
10953 lt_save_path_LD=$lt_cv_path_LD
10954 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10955   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10956 else
10957   $as_unset lt_cv_prog_gnu_ld
10958 fi
10959 if test -n "${lt_cv_path_LDCXX+set}"; then
10960   lt_cv_path_LD=$lt_cv_path_LDCXX
10961 else
10962   $as_unset lt_cv_path_LD
10963 fi
10964 test -z "${LDCXX+set}" || LD=$LDCXX
10965 CC=${CXX-"c++"}
10966 compiler=$CC
10967 compiler_CXX=$CC
10968 for cc_temp in $compiler""; do
10969   case $cc_temp in
10970     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10971     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10972     \-*) ;;
10973     *) break;;
10974   esac
10975 done
10976 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10977
10978
10979 # We don't want -fno-exception wen compiling C++ code, so set the
10980 # no_builtin_flag separately
10981 if test "$GXX" = yes; then
10982   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10983 else
10984   lt_prog_compiler_no_builtin_flag_CXX=
10985 fi
10986
10987 if test "$GXX" = yes; then
10988   # Set up default GNU C++ configuration
10989
10990
10991 # Check whether --with-gnu-ld was given.
10992 if test "${with_gnu_ld+set}" = set; then
10993   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10994 else
10995   with_gnu_ld=no
10996 fi
10997
10998 ac_prog=ld
10999 if test "$GCC" = yes; then
11000   # Check if gcc -print-prog-name=ld gives a path.
11001   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11002 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11003   case $host in
11004   *-*-mingw*)
11005     # gcc leaves a trailing carriage return which upsets mingw
11006     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11007   *)
11008     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11009   esac
11010   case $ac_prog in
11011     # Accept absolute paths.
11012     [\\/]* | ?:[\\/]*)
11013       re_direlt='/[^/][^/]*/\.\./'
11014       # Canonicalize the pathname of ld
11015       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11016       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11017         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11018       done
11019       test -z "$LD" && LD="$ac_prog"
11020       ;;
11021   "")
11022     # If it fails, then pretend we aren't using GCC.
11023     ac_prog=ld
11024     ;;
11025   *)
11026     # If it is relative, then search for the first ld in PATH.
11027     with_gnu_ld=unknown
11028     ;;
11029   esac
11030 elif test "$with_gnu_ld" = yes; then
11031   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11032 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11033 else
11034   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11035 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11036 fi
11037 if test "${lt_cv_path_LD+set}" = set; then
11038   echo $ECHO_N "(cached) $ECHO_C" >&6
11039 else
11040   if test -z "$LD"; then
11041   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11042   for ac_dir in $PATH; do
11043     IFS="$lt_save_ifs"
11044     test -z "$ac_dir" && ac_dir=.
11045     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11046       lt_cv_path_LD="$ac_dir/$ac_prog"
11047       # Check to see if the program is GNU ld.  I'd rather use --version,
11048       # but apparently some variants of GNU ld only accept -v.
11049       # Break only if it was the GNU/non-GNU ld that we prefer.
11050       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11051       *GNU* | *'with BFD'*)
11052         test "$with_gnu_ld" != no && break
11053         ;;
11054       *)
11055         test "$with_gnu_ld" != yes && break
11056         ;;
11057       esac
11058     fi
11059   done
11060   IFS="$lt_save_ifs"
11061 else
11062   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11063 fi
11064 fi
11065
11066 LD="$lt_cv_path_LD"
11067 if test -n "$LD"; then
11068   { echo "$as_me:$LINENO: result: $LD" >&5
11069 echo "${ECHO_T}$LD" >&6; }
11070 else
11071   { echo "$as_me:$LINENO: result: no" >&5
11072 echo "${ECHO_T}no" >&6; }
11073 fi
11074 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11075 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11076    { (exit 1); exit 1; }; }
11077 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11078 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11079 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11080   echo $ECHO_N "(cached) $ECHO_C" >&6
11081 else
11082   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11083 case `$LD -v 2>&1 </dev/null` in
11084 *GNU* | *'with BFD'*)
11085   lt_cv_prog_gnu_ld=yes
11086   ;;
11087 *)
11088   lt_cv_prog_gnu_ld=no
11089   ;;
11090 esac
11091 fi
11092 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11093 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11094 with_gnu_ld=$lt_cv_prog_gnu_ld
11095
11096
11097
11098   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11099   # archiving commands below assume that GNU ld is being used.
11100   if test "$with_gnu_ld" = yes; then
11101     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11102     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'
11103
11104     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11105     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11106
11107     # If archive_cmds runs LD, not CC, wlarc should be empty
11108     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11109     #     investigate it a little bit more. (MM)
11110     wlarc='${wl}'
11111
11112     # ancient GNU ld didn't support --whole-archive et. al.
11113     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11114         grep 'no-whole-archive' > /dev/null; then
11115       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11116     else
11117       whole_archive_flag_spec_CXX=
11118     fi
11119   else
11120     with_gnu_ld=no
11121     wlarc=
11122
11123     # A generic and very simple default shared library creation
11124     # command for GNU C++ for the case where it uses the native
11125     # linker, instead of GNU ld.  If possible, this setting should
11126     # overridden to take advantage of the native linker features on
11127     # the platform it is being used on.
11128     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11129   fi
11130
11131   # Commands to make compiler produce verbose output that lists
11132   # what "hidden" libraries, object files and flags are used when
11133   # linking a shared library.
11134   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11135
11136 else
11137   GXX=no
11138   with_gnu_ld=no
11139   wlarc=
11140 fi
11141
11142 # PORTME: fill in a description of your system's C++ link characteristics
11143 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11144 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11145 ld_shlibs_CXX=yes
11146 case $host_os in
11147   aix3*)
11148     # FIXME: insert proper C++ library support
11149     ld_shlibs_CXX=no
11150     ;;
11151   aix4* | aix5*)
11152     if test "$host_cpu" = ia64; then
11153       # On IA64, the linker does run time linking by default, so we don't
11154       # have to do anything special.
11155       aix_use_runtimelinking=no
11156       exp_sym_flag='-Bexport'
11157       no_entry_flag=""
11158     else
11159       aix_use_runtimelinking=no
11160
11161       # Test if we are trying to use run time linking or normal
11162       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11163       # need to do runtime linking.
11164       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11165         for ld_flag in $LDFLAGS; do
11166           case $ld_flag in
11167           *-brtl*)
11168             aix_use_runtimelinking=yes
11169             break
11170             ;;
11171           esac
11172         done
11173         ;;
11174       esac
11175
11176       exp_sym_flag='-bexport'
11177       no_entry_flag='-bnoentry'
11178     fi
11179
11180     # When large executables or shared objects are built, AIX ld can
11181     # have problems creating the table of contents.  If linking a library
11182     # or program results in "error TOC overflow" add -mminimal-toc to
11183     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11184     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11185
11186     archive_cmds_CXX=''
11187     hardcode_direct_CXX=yes
11188     hardcode_libdir_separator_CXX=':'
11189     link_all_deplibs_CXX=yes
11190
11191     if test "$GXX" = yes; then
11192       case $host_os in aix4.[012]|aix4.[012].*)
11193       # We only want to do this on AIX 4.2 and lower, the check
11194       # below for broken collect2 doesn't work under 4.3+
11195         collect2name=`${CC} -print-prog-name=collect2`
11196         if test -f "$collect2name" && \
11197            strings "$collect2name" | grep resolve_lib_name >/dev/null
11198         then
11199           # We have reworked collect2
11200           hardcode_direct_CXX=yes
11201         else
11202           # We have old collect2
11203           hardcode_direct_CXX=unsupported
11204           # It fails to find uninstalled libraries when the uninstalled
11205           # path is not listed in the libpath.  Setting hardcode_minus_L
11206           # to unsupported forces relinking
11207           hardcode_minus_L_CXX=yes
11208           hardcode_libdir_flag_spec_CXX='-L$libdir'
11209           hardcode_libdir_separator_CXX=
11210         fi
11211         ;;
11212       esac
11213       shared_flag='-shared'
11214       if test "$aix_use_runtimelinking" = yes; then
11215         shared_flag="$shared_flag "'${wl}-G'
11216       fi
11217     else
11218       # not using gcc
11219       if test "$host_cpu" = ia64; then
11220         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11221         # chokes on -Wl,-G. The following line is correct:
11222         shared_flag='-G'
11223       else
11224         if test "$aix_use_runtimelinking" = yes; then
11225           shared_flag='${wl}-G'
11226         else
11227           shared_flag='${wl}-bM:SRE'
11228         fi
11229       fi
11230     fi
11231
11232     # It seems that -bexpall does not export symbols beginning with
11233     # underscore (_), so it is better to generate a list of symbols to export.
11234     always_export_symbols_CXX=yes
11235     if test "$aix_use_runtimelinking" = yes; then
11236       # Warning - without using the other runtime loading flags (-brtl),
11237       # -berok will link without error, but may produce a broken library.
11238       allow_undefined_flag_CXX='-berok'
11239       # Determine the default libpath from the value encoded in an empty executable.
11240       cat >conftest.$ac_ext <<_ACEOF
11241 /* confdefs.h.  */
11242 _ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h.  */
11246
11247 int
11248 main ()
11249 {
11250
11251   ;
11252   return 0;
11253 }
11254 _ACEOF
11255 rm -f conftest.$ac_objext conftest$ac_exeext
11256 if { (ac_try="$ac_link"
11257 case "(($ac_try" in
11258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259   *) ac_try_echo=$ac_try;;
11260 esac
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262   (eval "$ac_link") 2>conftest.er1
11263   ac_status=$?
11264   grep -v '^ *+' conftest.er1 >conftest.err
11265   rm -f conftest.er1
11266   cat conftest.err >&5
11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); } && {
11269          test -z "$ac_cxx_werror_flag" ||
11270          test ! -s conftest.err
11271        } && test -s conftest$ac_exeext &&
11272        $as_test_x conftest$ac_exeext; then
11273
11274 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11275 }'`
11276 # Check for a 64-bit object if we didn't find anything.
11277 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; }
11278 }'`; fi
11279 else
11280   echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11282
11283
11284 fi
11285
11286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11287       conftest$ac_exeext conftest.$ac_ext
11288 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11289
11290       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11291
11292       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"
11293      else
11294       if test "$host_cpu" = ia64; then
11295         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11296         allow_undefined_flag_CXX="-z nodefs"
11297         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"
11298       else
11299         # Determine the default libpath from the value encoded in an empty executable.
11300         cat >conftest.$ac_ext <<_ACEOF
11301 /* confdefs.h.  */
11302 _ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h.  */
11306
11307 int
11308 main ()
11309 {
11310
11311   ;
11312   return 0;
11313 }
11314 _ACEOF
11315 rm -f conftest.$ac_objext conftest$ac_exeext
11316 if { (ac_try="$ac_link"
11317 case "(($ac_try" in
11318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319   *) ac_try_echo=$ac_try;;
11320 esac
11321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11322   (eval "$ac_link") 2>conftest.er1
11323   ac_status=$?
11324   grep -v '^ *+' conftest.er1 >conftest.err
11325   rm -f conftest.er1
11326   cat conftest.err >&5
11327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328   (exit $ac_status); } && {
11329          test -z "$ac_cxx_werror_flag" ||
11330          test ! -s conftest.err
11331        } && test -s conftest$ac_exeext &&
11332        $as_test_x conftest$ac_exeext; then
11333
11334 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11335 }'`
11336 # Check for a 64-bit object if we didn't find anything.
11337 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; }
11338 }'`; fi
11339 else
11340   echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11342
11343
11344 fi
11345
11346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11347       conftest$ac_exeext conftest.$ac_ext
11348 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11349
11350         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11351         # Warning - without using the other run time loading flags,
11352         # -berok will link without error, but may produce a broken library.
11353         no_undefined_flag_CXX=' ${wl}-bernotok'
11354         allow_undefined_flag_CXX=' ${wl}-berok'
11355         # Exported symbols can be pulled into shared objects from archives
11356         whole_archive_flag_spec_CXX='$convenience'
11357         archive_cmds_need_lc_CXX=yes
11358         # This is similar to how AIX traditionally builds its shared libraries.
11359         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'
11360       fi
11361     fi
11362     ;;
11363
11364   beos*)
11365     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11366       allow_undefined_flag_CXX=unsupported
11367       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11368       # support --undefined.  This deserves some investigation.  FIXME
11369       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11370     else
11371       ld_shlibs_CXX=no
11372     fi
11373     ;;
11374
11375   chorus*)
11376     case $cc_basename in
11377       *)
11378         # FIXME: insert proper C++ library support
11379         ld_shlibs_CXX=no
11380         ;;
11381     esac
11382     ;;
11383
11384   cygwin* | mingw* | pw32*)
11385     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11386     # as there is no search path for DLLs.
11387     hardcode_libdir_flag_spec_CXX='-L$libdir'
11388     allow_undefined_flag_CXX=unsupported
11389     always_export_symbols_CXX=no
11390     enable_shared_with_static_runtimes_CXX=yes
11391
11392     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11393       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'
11394       # If the export-symbols file already is a .def file (1st line
11395       # is EXPORTS), use it as is; otherwise, prepend...
11396       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11397         cp $export_symbols $output_objdir/$soname.def;
11398       else
11399         echo EXPORTS > $output_objdir/$soname.def;
11400         cat $export_symbols >> $output_objdir/$soname.def;
11401       fi~
11402       $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'
11403     else
11404       ld_shlibs_CXX=no
11405     fi
11406   ;;
11407       darwin* | rhapsody*)
11408         case $host_os in
11409         rhapsody* | darwin1.[012])
11410          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11411          ;;
11412        *) # Darwin 1.3 on
11413          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11414            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11415          else
11416            case ${MACOSX_DEPLOYMENT_TARGET} in
11417              10.[012])
11418                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11419                ;;
11420              10.*)
11421                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11422                ;;
11423            esac
11424          fi
11425          ;;
11426         esac
11427       archive_cmds_need_lc_CXX=no
11428       hardcode_direct_CXX=no
11429       hardcode_automatic_CXX=yes
11430       hardcode_shlibpath_var_CXX=unsupported
11431       whole_archive_flag_spec_CXX=''
11432       link_all_deplibs_CXX=yes
11433
11434     if test "$GXX" = yes ; then
11435       lt_int_apple_cc_single_mod=no
11436       output_verbose_link_cmd='echo'
11437       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11438        lt_int_apple_cc_single_mod=yes
11439       fi
11440       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11441        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11442       else
11443           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'
11444         fi
11445         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11446         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11447           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11448             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}'
11449           else
11450             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}'
11451           fi
11452             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}'
11453       else
11454       case $cc_basename in
11455         xlc*)
11456          output_verbose_link_cmd='echo'
11457           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'
11458           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11459           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11460           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}'
11461           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}'
11462           ;;
11463        *)
11464          ld_shlibs_CXX=no
11465           ;;
11466       esac
11467       fi
11468         ;;
11469
11470   dgux*)
11471     case $cc_basename in
11472       ec++*)
11473         # FIXME: insert proper C++ library support
11474         ld_shlibs_CXX=no
11475         ;;
11476       ghcx*)
11477         # Green Hills C++ Compiler
11478         # FIXME: insert proper C++ library support
11479         ld_shlibs_CXX=no
11480         ;;
11481       *)
11482         # FIXME: insert proper C++ library support
11483         ld_shlibs_CXX=no
11484         ;;
11485     esac
11486     ;;
11487   freebsd[12]*)
11488     # C++ shared libraries reported to be fairly broken before switch to ELF
11489     ld_shlibs_CXX=no
11490     ;;
11491   freebsd-elf*)
11492     archive_cmds_need_lc_CXX=no
11493     ;;
11494   freebsd* | dragonfly*)
11495     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11496     # conventions
11497     ld_shlibs_CXX=yes
11498     ;;
11499   gnu*)
11500     ;;
11501   hpux9*)
11502     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11503     hardcode_libdir_separator_CXX=:
11504     export_dynamic_flag_spec_CXX='${wl}-E'
11505     hardcode_direct_CXX=yes
11506     hardcode_minus_L_CXX=yes # Not in the search PATH,
11507                                 # but as the default
11508                                 # location of the library.
11509
11510     case $cc_basename in
11511     CC*)
11512       # FIXME: insert proper C++ library support
11513       ld_shlibs_CXX=no
11514       ;;
11515     aCC*)
11516       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'
11517       # Commands to make compiler produce verbose output that lists
11518       # what "hidden" libraries, object files and flags are used when
11519       # linking a shared library.
11520       #
11521       # There doesn't appear to be a way to prevent this compiler from
11522       # explicitly linking system object files so we need to strip them
11523       # from the output so that they don't get included in the library
11524       # dependencies.
11525       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'
11526       ;;
11527     *)
11528       if test "$GXX" = yes; then
11529         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'
11530       else
11531         # FIXME: insert proper C++ library support
11532         ld_shlibs_CXX=no
11533       fi
11534       ;;
11535     esac
11536     ;;
11537   hpux10*|hpux11*)
11538     if test $with_gnu_ld = no; then
11539       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11540       hardcode_libdir_separator_CXX=:
11541
11542       case $host_cpu in
11543       hppa*64*|ia64*)
11544         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11545         ;;
11546       *)
11547         export_dynamic_flag_spec_CXX='${wl}-E'
11548         ;;
11549       esac
11550     fi
11551     case $host_cpu in
11552     hppa*64*|ia64*)
11553       hardcode_direct_CXX=no
11554       hardcode_shlibpath_var_CXX=no
11555       ;;
11556     *)
11557       hardcode_direct_CXX=yes
11558       hardcode_minus_L_CXX=yes # Not in the search PATH,
11559                                               # but as the default
11560                                               # location of the library.
11561       ;;
11562     esac
11563
11564     case $cc_basename in
11565       CC*)
11566         # FIXME: insert proper C++ library support
11567         ld_shlibs_CXX=no
11568         ;;
11569       aCC*)
11570         case $host_cpu in
11571         hppa*64*)
11572           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11573           ;;
11574         ia64*)
11575           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11576           ;;
11577         *)
11578           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11579           ;;
11580         esac
11581         # Commands to make compiler produce verbose output that lists
11582         # what "hidden" libraries, object files and flags are used when
11583         # linking a shared library.
11584         #
11585         # There doesn't appear to be a way to prevent this compiler from
11586         # explicitly linking system object files so we need to strip them
11587         # from the output so that they don't get included in the library
11588         # dependencies.
11589         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'
11590         ;;
11591       *)
11592         if test "$GXX" = yes; then
11593           if test $with_gnu_ld = no; then
11594             case $host_cpu in
11595             hppa*64*)
11596               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11597               ;;
11598             ia64*)
11599               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11600               ;;
11601             *)
11602               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'
11603               ;;
11604             esac
11605           fi
11606         else
11607           # FIXME: insert proper C++ library support
11608           ld_shlibs_CXX=no
11609         fi
11610         ;;
11611     esac
11612     ;;
11613   interix3*)
11614     hardcode_direct_CXX=no
11615     hardcode_shlibpath_var_CXX=no
11616     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11617     export_dynamic_flag_spec_CXX='${wl}-E'
11618     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11619     # Instead, shared libraries are loaded at an image base (0x10000000 by
11620     # default) and relocated if they conflict, which is a slow very memory
11621     # consuming and fragmenting process.  To avoid this, we pick a random,
11622     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11623     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11624     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'
11625     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'
11626     ;;
11627   irix5* | irix6*)
11628     case $cc_basename in
11629       CC*)
11630         # SGI C++
11631         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'
11632
11633         # Archives containing C++ object files must be created using
11634         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11635         # necessary to make sure instantiated templates are included
11636         # in the archive.
11637         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11638         ;;
11639       *)
11640         if test "$GXX" = yes; then
11641           if test "$with_gnu_ld" = no; then
11642             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'
11643           else
11644             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'
11645           fi
11646         fi
11647         link_all_deplibs_CXX=yes
11648         ;;
11649     esac
11650     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11651     hardcode_libdir_separator_CXX=:
11652     ;;
11653   linux* | k*bsd*-gnu)
11654     case $cc_basename in
11655       KCC*)
11656         # Kuck and Associates, Inc. (KAI) C++ Compiler
11657
11658         # KCC will only create a shared library if the output file
11659         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11660         # to its proper name (with version) after linking.
11661         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'
11662         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'
11663         # Commands to make compiler produce verbose output that lists
11664         # what "hidden" libraries, object files and flags are used when
11665         # linking a shared library.
11666         #
11667         # There doesn't appear to be a way to prevent this compiler from
11668         # explicitly linking system object files so we need to strip them
11669         # from the output so that they don't get included in the library
11670         # dependencies.
11671         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'
11672
11673         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11674         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11675
11676         # Archives containing C++ object files must be created using
11677         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11678         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11679         ;;
11680       icpc*)
11681         # Intel C++
11682         with_gnu_ld=yes
11683         # version 8.0 and above of icpc choke on multiply defined symbols
11684         # if we add $predep_objects and $postdep_objects, however 7.1 and
11685         # earlier do not add the objects themselves.
11686         case `$CC -V 2>&1` in
11687         *"Version 7."*)
11688           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11689           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'
11690           ;;
11691         *)  # Version 8.0 or newer
11692           tmp_idyn=
11693           case $host_cpu in
11694             ia64*) tmp_idyn=' -i_dynamic';;
11695           esac
11696           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11697           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'
11698           ;;
11699         esac
11700         archive_cmds_need_lc_CXX=no
11701         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11702         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11703         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11704         ;;
11705       pgCC*)
11706         # Portland Group C++ compiler
11707         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11708         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'
11709
11710         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11711         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11712         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'
11713         ;;
11714       cxx*)
11715         # Compaq C++
11716         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11717         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'
11718
11719         runpath_var=LD_RUN_PATH
11720         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11721         hardcode_libdir_separator_CXX=:
11722
11723         # Commands to make compiler produce verbose output that lists
11724         # what "hidden" libraries, object files and flags are used when
11725         # linking a shared library.
11726         #
11727         # There doesn't appear to be a way to prevent this compiler from
11728         # explicitly linking system object files so we need to strip them
11729         # from the output so that they don't get included in the library
11730         # dependencies.
11731         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'
11732         ;;
11733     esac
11734     ;;
11735   lynxos*)
11736     # FIXME: insert proper C++ library support
11737     ld_shlibs_CXX=no
11738     ;;
11739   m88k*)
11740     # FIXME: insert proper C++ library support
11741     ld_shlibs_CXX=no
11742     ;;
11743   mvs*)
11744     case $cc_basename in
11745       cxx*)
11746         # FIXME: insert proper C++ library support
11747         ld_shlibs_CXX=no
11748         ;;
11749       *)
11750         # FIXME: insert proper C++ library support
11751         ld_shlibs_CXX=no
11752         ;;
11753     esac
11754     ;;
11755   netbsd* | netbsdelf*-gnu)
11756     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11757       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11758       wlarc=
11759       hardcode_libdir_flag_spec_CXX='-R$libdir'
11760       hardcode_direct_CXX=yes
11761       hardcode_shlibpath_var_CXX=no
11762     fi
11763     # Workaround some broken pre-1.5 toolchains
11764     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11765     ;;
11766   openbsd2*)
11767     # C++ shared libraries are fairly broken
11768     ld_shlibs_CXX=no
11769     ;;
11770   openbsd*)
11771     hardcode_direct_CXX=yes
11772     hardcode_shlibpath_var_CXX=no
11773     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11774     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11775     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11776       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11777       export_dynamic_flag_spec_CXX='${wl}-E'
11778       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11779     fi
11780     output_verbose_link_cmd='echo'
11781     ;;
11782   osf3*)
11783     case $cc_basename in
11784       KCC*)
11785         # Kuck and Associates, Inc. (KAI) C++ Compiler
11786
11787         # KCC will only create a shared library if the output file
11788         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11789         # to its proper name (with version) after linking.
11790         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'
11791
11792         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11793         hardcode_libdir_separator_CXX=:
11794
11795         # Archives containing C++ object files must be created using
11796         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11797         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11798
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=' ${wl}-expect_unresolved ${wl}\*'
11807         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'
11808
11809         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11810         hardcode_libdir_separator_CXX=:
11811
11812         # Commands to make compiler produce verbose output that lists
11813         # what "hidden" libraries, object files and flags are used when
11814         # linking a shared library.
11815         #
11816         # There doesn't appear to be a way to prevent this compiler from
11817         # explicitly linking system object files so we need to strip them
11818         # from the output so that they don't get included in the library
11819         # dependencies.
11820         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'
11821         ;;
11822       *)
11823         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11824           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11825           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'
11826
11827           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11828           hardcode_libdir_separator_CXX=:
11829
11830           # Commands to make compiler produce verbose output that lists
11831           # what "hidden" libraries, object files and flags are used when
11832           # linking a shared library.
11833           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11834
11835         else
11836           # FIXME: insert proper C++ library support
11837           ld_shlibs_CXX=no
11838         fi
11839         ;;
11840     esac
11841     ;;
11842   osf4* | osf5*)
11843     case $cc_basename in
11844       KCC*)
11845         # Kuck and Associates, Inc. (KAI) C++ Compiler
11846
11847         # KCC will only create a shared library if the output file
11848         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11849         # to its proper name (with version) after linking.
11850         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'
11851
11852         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11853         hardcode_libdir_separator_CXX=:
11854
11855         # Archives containing C++ object files must be created using
11856         # the KAI C++ compiler.
11857         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11858         ;;
11859       RCC*)
11860         # Rational C++ 2.4.1
11861         # FIXME: insert proper C++ library support
11862         ld_shlibs_CXX=no
11863         ;;
11864       cxx*)
11865         allow_undefined_flag_CXX=' -expect_unresolved \*'
11866         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'
11867         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11868           echo "-hidden">> $lib.exp~
11869           $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~
11870           $rm $lib.exp'
11871
11872         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11873         hardcode_libdir_separator_CXX=:
11874
11875         # Commands to make compiler produce verbose output that lists
11876         # what "hidden" libraries, object files and flags are used when
11877         # linking a shared library.
11878         #
11879         # There doesn't appear to be a way to prevent this compiler from
11880         # explicitly linking system object files so we need to strip them
11881         # from the output so that they don't get included in the library
11882         # dependencies.
11883         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'
11884         ;;
11885       *)
11886         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11887           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11888          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'
11889
11890           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11891           hardcode_libdir_separator_CXX=:
11892
11893           # Commands to make compiler produce verbose output that lists
11894           # what "hidden" libraries, object files and flags are used when
11895           # linking a shared library.
11896           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11897
11898         else
11899           # FIXME: insert proper C++ library support
11900           ld_shlibs_CXX=no
11901         fi
11902         ;;
11903     esac
11904     ;;
11905   psos*)
11906     # FIXME: insert proper C++ library support
11907     ld_shlibs_CXX=no
11908     ;;
11909   sunos4*)
11910     case $cc_basename in
11911       CC*)
11912         # Sun C++ 4.x
11913         # FIXME: insert proper C++ library support
11914         ld_shlibs_CXX=no
11915         ;;
11916       lcc*)
11917         # Lucid
11918         # FIXME: insert proper C++ library support
11919         ld_shlibs_CXX=no
11920         ;;
11921       *)
11922         # FIXME: insert proper C++ library support
11923         ld_shlibs_CXX=no
11924         ;;
11925     esac
11926     ;;
11927   solaris*)
11928     case $cc_basename in
11929       CC*)
11930         # Sun C++ 4.2, 5.x and Centerline C++
11931         archive_cmds_need_lc_CXX=yes
11932         no_undefined_flag_CXX=' -zdefs'
11933         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11934         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11935         $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'
11936
11937         hardcode_libdir_flag_spec_CXX='-R$libdir'
11938         hardcode_shlibpath_var_CXX=no
11939         case $host_os in
11940           solaris2.[0-5] | solaris2.[0-5].*) ;;
11941           *)
11942             # The C++ compiler is used as linker so we must use $wl
11943             # flag to pass the commands to the underlying system
11944             # linker. We must also pass each convience library through
11945             # to the system linker between allextract/defaultextract.
11946             # The C++ compiler will combine linker options so we
11947             # cannot just pass the convience library names through
11948             # without $wl.
11949             # Supported since Solaris 2.6 (maybe 2.5.1?)
11950             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'
11951             ;;
11952         esac
11953         link_all_deplibs_CXX=yes
11954
11955         output_verbose_link_cmd='echo'
11956
11957         # Archives containing C++ object files must be created using
11958         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11959         # necessary to make sure instantiated templates are included
11960         # in the archive.
11961         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11962         ;;
11963       gcx*)
11964         # Green Hills C++ Compiler
11965         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11966
11967         # The C++ compiler must be used to create the archive.
11968         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11969         ;;
11970       *)
11971         # GNU C++ compiler with Solaris linker
11972         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11973           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11974           if $CC --version | grep -v '^2\.7' > /dev/null; then
11975             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11976             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11977                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11978
11979             # Commands to make compiler produce verbose output that lists
11980             # what "hidden" libraries, object files and flags are used when
11981             # linking a shared library.
11982             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11983           else
11984             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11985             # platform.
11986             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11987             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11988                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11989
11990             # Commands to make compiler produce verbose output that lists
11991             # what "hidden" libraries, object files and flags are used when
11992             # linking a shared library.
11993             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11994           fi
11995
11996           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11997         fi
11998         ;;
11999     esac
12000     ;;
12001   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12002     no_undefined_flag_CXX='${wl}-z,text'
12003     archive_cmds_need_lc_CXX=no
12004     hardcode_shlibpath_var_CXX=no
12005     runpath_var='LD_RUN_PATH'
12006
12007     case $cc_basename in
12008       CC*)
12009         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12010         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12011         ;;
12012       *)
12013         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12014         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12015         ;;
12016     esac
12017     ;;
12018   sysv5* | sco3.2v5* | sco5v6*)
12019     # Note: We can NOT use -z defs as we might desire, because we do not
12020     # link with -lc, and that would cause any symbols used from libc to
12021     # always be unresolved, which means just about no library would
12022     # ever link correctly.  If we're not using GNU ld we use -z text
12023     # though, which does catch some bad symbols but isn't as heavy-handed
12024     # as -z defs.
12025     # For security reasons, it is highly recommended that you always
12026     # use absolute paths for naming shared libraries, and exclude the
12027     # DT_RUNPATH tag from executables and libraries.  But doing so
12028     # requires that you compile everything twice, which is a pain.
12029     # So that behaviour is only enabled if SCOABSPATH is set to a
12030     # non-empty value in the environment.  Most likely only useful for
12031     # creating official distributions of packages.
12032     # This is a hack until libtool officially supports absolute path
12033     # names for shared libraries.
12034     no_undefined_flag_CXX='${wl}-z,text'
12035     allow_undefined_flag_CXX='${wl}-z,nodefs'
12036     archive_cmds_need_lc_CXX=no
12037     hardcode_shlibpath_var_CXX=no
12038     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12039     hardcode_libdir_separator_CXX=':'
12040     link_all_deplibs_CXX=yes
12041     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12042     runpath_var='LD_RUN_PATH'
12043
12044     case $cc_basename in
12045       CC*)
12046         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12047         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12048         ;;
12049       *)
12050         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12051         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12052         ;;
12053     esac
12054     ;;
12055   tandem*)
12056     case $cc_basename in
12057       NCC*)
12058         # NonStop-UX NCC 3.20
12059         # FIXME: insert proper C++ library support
12060         ld_shlibs_CXX=no
12061         ;;
12062       *)
12063         # FIXME: insert proper C++ library support
12064         ld_shlibs_CXX=no
12065         ;;
12066     esac
12067     ;;
12068   vxworks*)
12069     # FIXME: insert proper C++ library support
12070     ld_shlibs_CXX=no
12071     ;;
12072   *)
12073     # FIXME: insert proper C++ library support
12074     ld_shlibs_CXX=no
12075     ;;
12076 esac
12077 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12078 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12079 test "$ld_shlibs_CXX" = no && can_build_shared=no
12080
12081 GCC_CXX="$GXX"
12082 LD_CXX="$LD"
12083
12084
12085 cat > conftest.$ac_ext <<EOF
12086 class Foo
12087 {
12088 public:
12089   Foo (void) { a = 0; }
12090 private:
12091   int a;
12092 };
12093 EOF
12094
12095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12096   (eval $ac_compile) 2>&5
12097   ac_status=$?
12098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099   (exit $ac_status); }; then
12100   # Parse the compiler output and extract the necessary
12101   # objects, libraries and library flags.
12102
12103   # Sentinel used to keep track of whether or not we are before
12104   # the conftest object file.
12105   pre_test_object_deps_done=no
12106
12107   # The `*' in the case matches for architectures that use `case' in
12108   # $output_verbose_cmd can trigger glob expansion during the loop
12109   # eval without this substitution.
12110   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12111
12112   for p in `eval $output_verbose_link_cmd`; do
12113     case $p in
12114
12115     -L* | -R* | -l*)
12116        # Some compilers place space between "-{L,R}" and the path.
12117        # Remove the space.
12118        if test $p = "-L" \
12119           || test $p = "-R"; then
12120          prev=$p
12121          continue
12122        else
12123          prev=
12124        fi
12125
12126        if test "$pre_test_object_deps_done" = no; then
12127          case $p in
12128          -L* | -R*)
12129            # Internal compiler library paths should come after those
12130            # provided the user.  The postdeps already come after the
12131            # user supplied libs so there is no need to process them.
12132            if test -z "$compiler_lib_search_path_CXX"; then
12133              compiler_lib_search_path_CXX="${prev}${p}"
12134            else
12135              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12136            fi
12137            ;;
12138          # The "-l" case would never come before the object being
12139          # linked, so don't bother handling this case.
12140          esac
12141        else
12142          if test -z "$postdeps_CXX"; then
12143            postdeps_CXX="${prev}${p}"
12144          else
12145            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12146          fi
12147        fi
12148        ;;
12149
12150     *.$objext)
12151        # This assumes that the test object file only shows up
12152        # once in the compiler output.
12153        if test "$p" = "conftest.$objext"; then
12154          pre_test_object_deps_done=yes
12155          continue
12156        fi
12157
12158        if test "$pre_test_object_deps_done" = no; then
12159          if test -z "$predep_objects_CXX"; then
12160            predep_objects_CXX="$p"
12161          else
12162            predep_objects_CXX="$predep_objects_CXX $p"
12163          fi
12164        else
12165          if test -z "$postdep_objects_CXX"; then
12166            postdep_objects_CXX="$p"
12167          else
12168            postdep_objects_CXX="$postdep_objects_CXX $p"
12169          fi
12170        fi
12171        ;;
12172
12173     *) ;; # Ignore the rest.
12174
12175     esac
12176   done
12177
12178   # Clean up.
12179   rm -f a.out a.exe
12180 else
12181   echo "libtool.m4: error: problem compiling CXX test program"
12182 fi
12183
12184 $rm -f confest.$objext
12185
12186 # PORTME: override above test on systems where it is broken
12187 case $host_os in
12188 interix3*)
12189   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12190   # hack all around it, let's just trust "g++" to DTRT.
12191   predep_objects_CXX=
12192   postdep_objects_CXX=
12193   postdeps_CXX=
12194   ;;
12195
12196 solaris*)
12197   case $cc_basename in
12198   CC*)
12199     # Adding this requires a known-good setup of shared libraries for
12200     # Sun compiler versions before 5.6, else PIC objects from an old
12201     # archive will be linked into the output, leading to subtle bugs.
12202     postdeps_CXX='-lCstd -lCrun'
12203     ;;
12204   esac
12205   ;;
12206 esac
12207
12208
12209 case " $postdeps_CXX " in
12210 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12211 esac
12212
12213 lt_prog_compiler_wl_CXX=
12214 lt_prog_compiler_pic_CXX=
12215 lt_prog_compiler_static_CXX=
12216
12217 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12218 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12219
12220   # C++ specific cases for pic, static, wl, etc.
12221   if test "$GXX" = yes; then
12222     lt_prog_compiler_wl_CXX='-Wl,'
12223     lt_prog_compiler_static_CXX='-static'
12224
12225     case $host_os in
12226     aix*)
12227       # All AIX code is PIC.
12228       if test "$host_cpu" = ia64; then
12229         # AIX 5 now supports IA64 processor
12230         lt_prog_compiler_static_CXX='-Bstatic'
12231       fi
12232       ;;
12233     amigaos*)
12234       # FIXME: we need at least 68020 code to build shared libraries, but
12235       # adding the `-m68020' flag to GCC prevents building anything better,
12236       # like `-m68040'.
12237       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12238       ;;
12239     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12240       # PIC is the default for these OSes.
12241       ;;
12242     mingw* | os2* | pw32*)
12243       # This hack is so that the source file can tell whether it is being
12244       # built for inclusion in a dll (and should export symbols for example).
12245       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12246       ;;
12247     darwin* | rhapsody*)
12248       # PIC is the default on this platform
12249       # Common symbols not allowed in MH_DYLIB files
12250       lt_prog_compiler_pic_CXX='-fno-common'
12251       ;;
12252     *djgpp*)
12253       # DJGPP does not support shared libraries at all
12254       lt_prog_compiler_pic_CXX=
12255       ;;
12256     interix3*)
12257       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12258       # Instead, we relocate shared libraries at runtime.
12259       ;;
12260     sysv4*MP*)
12261       if test -d /usr/nec; then
12262         lt_prog_compiler_pic_CXX=-Kconform_pic
12263       fi
12264       ;;
12265     hpux*)
12266       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12267       # not for PA HP-UX.
12268       case $host_cpu in
12269       hppa*64*|ia64*)
12270         ;;
12271       *)
12272         lt_prog_compiler_pic_CXX='-fPIC'
12273         ;;
12274       esac
12275       ;;
12276     *)
12277       lt_prog_compiler_pic_CXX='-fPIC'
12278       ;;
12279     esac
12280   else
12281     case $host_os in
12282       aix4* | aix5*)
12283         # All AIX code is PIC.
12284         if test "$host_cpu" = ia64; then
12285           # AIX 5 now supports IA64 processor
12286           lt_prog_compiler_static_CXX='-Bstatic'
12287         else
12288           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12289         fi
12290         ;;
12291       chorus*)
12292         case $cc_basename in
12293         cxch68*)
12294           # Green Hills C++ Compiler
12295           # _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"
12296           ;;
12297         esac
12298         ;;
12299        darwin*)
12300          # PIC is the default on this platform
12301          # Common symbols not allowed in MH_DYLIB files
12302          case $cc_basename in
12303            xlc*)
12304            lt_prog_compiler_pic_CXX='-qnocommon'
12305            lt_prog_compiler_wl_CXX='-Wl,'
12306            ;;
12307          esac
12308        ;;
12309       dgux*)
12310         case $cc_basename in
12311           ec++*)
12312             lt_prog_compiler_pic_CXX='-KPIC'
12313             ;;
12314           ghcx*)
12315             # Green Hills C++ Compiler
12316             lt_prog_compiler_pic_CXX='-pic'
12317             ;;
12318           *)
12319             ;;
12320         esac
12321         ;;
12322       freebsd* | dragonfly*)
12323         # FreeBSD uses GNU C++
12324         ;;
12325       hpux9* | hpux10* | hpux11*)
12326         case $cc_basename in
12327           CC*)
12328             lt_prog_compiler_wl_CXX='-Wl,'
12329             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12330             if test "$host_cpu" != ia64; then
12331               lt_prog_compiler_pic_CXX='+Z'
12332             fi
12333             ;;
12334           aCC*)
12335             lt_prog_compiler_wl_CXX='-Wl,'
12336             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12337             case $host_cpu in
12338             hppa*64*|ia64*)
12339               # +Z the default
12340               ;;
12341             *)
12342               lt_prog_compiler_pic_CXX='+Z'
12343               ;;
12344             esac
12345             ;;
12346           *)
12347             ;;
12348         esac
12349         ;;
12350       interix*)
12351         # This is c89, which is MS Visual C++ (no shared libs)
12352         # Anyone wants to do a port?
12353         ;;
12354       irix5* | irix6* | nonstopux*)
12355         case $cc_basename in
12356           CC*)
12357             lt_prog_compiler_wl_CXX='-Wl,'
12358             lt_prog_compiler_static_CXX='-non_shared'
12359             # CC pic flag -KPIC is the default.
12360             ;;
12361           *)
12362             ;;
12363         esac
12364         ;;
12365       linux* | k*bsd*-gnu)
12366         case $cc_basename in
12367           KCC*)
12368             # KAI C++ Compiler
12369             lt_prog_compiler_wl_CXX='--backend -Wl,'
12370             lt_prog_compiler_pic_CXX='-fPIC'
12371             ;;
12372           icpc* | ecpc*)
12373             # Intel C++
12374             lt_prog_compiler_wl_CXX='-Wl,'
12375             lt_prog_compiler_pic_CXX='-KPIC'
12376             lt_prog_compiler_static_CXX='-static'
12377             ;;
12378           pgCC*)
12379             # Portland Group C++ compiler.
12380             lt_prog_compiler_wl_CXX='-Wl,'
12381             lt_prog_compiler_pic_CXX='-fpic'
12382             lt_prog_compiler_static_CXX='-Bstatic'
12383             ;;
12384           cxx*)
12385             # Compaq C++
12386             # Make sure the PIC flag is empty.  It appears that all Alpha
12387             # Linux and Compaq Tru64 Unix objects are PIC.
12388             lt_prog_compiler_pic_CXX=
12389             lt_prog_compiler_static_CXX='-non_shared'
12390             ;;
12391           *)
12392             ;;
12393         esac
12394         ;;
12395       lynxos*)
12396         ;;
12397       m88k*)
12398         ;;
12399       mvs*)
12400         case $cc_basename in
12401           cxx*)
12402             lt_prog_compiler_pic_CXX='-W c,exportall'
12403             ;;
12404           *)
12405             ;;
12406         esac
12407         ;;
12408       netbsd* | netbsdelf*-gnu)
12409         ;;
12410       osf3* | osf4* | osf5*)
12411         case $cc_basename in
12412           KCC*)
12413             lt_prog_compiler_wl_CXX='--backend -Wl,'
12414             ;;
12415           RCC*)
12416             # Rational C++ 2.4.1
12417             lt_prog_compiler_pic_CXX='-pic'
12418             ;;
12419           cxx*)
12420             # Digital/Compaq C++
12421             lt_prog_compiler_wl_CXX='-Wl,'
12422             # Make sure the PIC flag is empty.  It appears that all Alpha
12423             # Linux and Compaq Tru64 Unix objects are PIC.
12424             lt_prog_compiler_pic_CXX=
12425             lt_prog_compiler_static_CXX='-non_shared'
12426             ;;
12427           *)
12428             ;;
12429         esac
12430         ;;
12431       psos*)
12432         ;;
12433       solaris*)
12434         case $cc_basename in
12435           CC*)
12436             # Sun C++ 4.2, 5.x and Centerline C++
12437             lt_prog_compiler_pic_CXX='-KPIC'
12438             lt_prog_compiler_static_CXX='-Bstatic'
12439             lt_prog_compiler_wl_CXX='-Qoption ld '
12440             ;;
12441           gcx*)
12442             # Green Hills C++ Compiler
12443             lt_prog_compiler_pic_CXX='-PIC'
12444             ;;
12445           *)
12446             ;;
12447         esac
12448         ;;
12449       sunos4*)
12450         case $cc_basename in
12451           CC*)
12452             # Sun C++ 4.x
12453             lt_prog_compiler_pic_CXX='-pic'
12454             lt_prog_compiler_static_CXX='-Bstatic'
12455             ;;
12456           lcc*)
12457             # Lucid
12458             lt_prog_compiler_pic_CXX='-pic'
12459             ;;
12460           *)
12461             ;;
12462         esac
12463         ;;
12464       tandem*)
12465         case $cc_basename in
12466           NCC*)
12467             # NonStop-UX NCC 3.20
12468             lt_prog_compiler_pic_CXX='-KPIC'
12469             ;;
12470           *)
12471             ;;
12472         esac
12473         ;;
12474       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12475         case $cc_basename in
12476           CC*)
12477             lt_prog_compiler_wl_CXX='-Wl,'
12478             lt_prog_compiler_pic_CXX='-KPIC'
12479             lt_prog_compiler_static_CXX='-Bstatic'
12480             ;;
12481         esac
12482         ;;
12483       vxworks*)
12484         ;;
12485       *)
12486         lt_prog_compiler_can_build_shared_CXX=no
12487         ;;
12488     esac
12489   fi
12490
12491 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12492 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12493
12494 #
12495 # Check to make sure the PIC flag actually works.
12496 #
12497 if test -n "$lt_prog_compiler_pic_CXX"; then
12498
12499 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12500 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12501 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12502   echo $ECHO_N "(cached) $ECHO_C" >&6
12503 else
12504   lt_prog_compiler_pic_works_CXX=no
12505   ac_outfile=conftest.$ac_objext
12506    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12507    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12508    # Insert the option either (1) after the last *FLAGS variable, or
12509    # (2) before a word containing "conftest.", or (3) at the end.
12510    # Note that $ac_compile itself does not contain backslashes and begins
12511    # with a dollar sign (not a hyphen), so the echo should work correctly.
12512    # The option is referenced via a variable to avoid confusing sed.
12513    lt_compile=`echo "$ac_compile" | $SED \
12514    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12515    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12516    -e 's:$: $lt_compiler_flag:'`
12517    (eval echo "\"\$as_me:12517: $lt_compile\"" >&5)
12518    (eval "$lt_compile" 2>conftest.err)
12519    ac_status=$?
12520    cat conftest.err >&5
12521    echo "$as_me:12521: \$? = $ac_status" >&5
12522    if (exit $ac_status) && test -s "$ac_outfile"; then
12523      # The compiler can only warn and ignore the option if not recognized
12524      # So say no if there are warnings other than the usual output.
12525      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12526      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12527      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12528        lt_prog_compiler_pic_works_CXX=yes
12529      fi
12530    fi
12531    $rm conftest*
12532
12533 fi
12534 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12535 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12536
12537 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12538     case $lt_prog_compiler_pic_CXX in
12539      "" | " "*) ;;
12540      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12541      esac
12542 else
12543     lt_prog_compiler_pic_CXX=
12544      lt_prog_compiler_can_build_shared_CXX=no
12545 fi
12546
12547 fi
12548 case $host_os in
12549   # For platforms which do not support PIC, -DPIC is meaningless:
12550   *djgpp*)
12551     lt_prog_compiler_pic_CXX=
12552     ;;
12553   *)
12554     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12555     ;;
12556 esac
12557
12558 #
12559 # Check to make sure the static flag actually works.
12560 #
12561 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12562 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12563 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12564 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12565   echo $ECHO_N "(cached) $ECHO_C" >&6
12566 else
12567   lt_prog_compiler_static_works_CXX=no
12568    save_LDFLAGS="$LDFLAGS"
12569    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12570    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12571    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12572      # The linker can only warn and ignore the option if not recognized
12573      # So say no if there are warnings
12574      if test -s conftest.err; then
12575        # Append any errors to the config.log.
12576        cat conftest.err 1>&5
12577        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12578        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12579        if diff conftest.exp conftest.er2 >/dev/null; then
12580          lt_prog_compiler_static_works_CXX=yes
12581        fi
12582      else
12583        lt_prog_compiler_static_works_CXX=yes
12584      fi
12585    fi
12586    $rm conftest*
12587    LDFLAGS="$save_LDFLAGS"
12588
12589 fi
12590 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12591 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12592
12593 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12594     :
12595 else
12596     lt_prog_compiler_static_CXX=
12597 fi
12598
12599
12600 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12601 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12602 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12603   echo $ECHO_N "(cached) $ECHO_C" >&6
12604 else
12605   lt_cv_prog_compiler_c_o_CXX=no
12606    $rm -r conftest 2>/dev/null
12607    mkdir conftest
12608    cd conftest
12609    mkdir out
12610    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12611
12612    lt_compiler_flag="-o out/conftest2.$ac_objext"
12613    # Insert the option either (1) after the last *FLAGS variable, or
12614    # (2) before a word containing "conftest.", or (3) at the end.
12615    # Note that $ac_compile itself does not contain backslashes and begins
12616    # with a dollar sign (not a hyphen), so the echo should work correctly.
12617    lt_compile=`echo "$ac_compile" | $SED \
12618    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12619    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12620    -e 's:$: $lt_compiler_flag:'`
12621    (eval echo "\"\$as_me:12621: $lt_compile\"" >&5)
12622    (eval "$lt_compile" 2>out/conftest.err)
12623    ac_status=$?
12624    cat out/conftest.err >&5
12625    echo "$as_me:12625: \$? = $ac_status" >&5
12626    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12627    then
12628      # The compiler can only warn and ignore the option if not recognized
12629      # So say no if there are warnings
12630      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12631      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12632      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12633        lt_cv_prog_compiler_c_o_CXX=yes
12634      fi
12635    fi
12636    chmod u+w . 2>&5
12637    $rm conftest*
12638    # SGI C++ compiler will create directory out/ii_files/ for
12639    # template instantiation
12640    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12641    $rm out/* && rmdir out
12642    cd ..
12643    rmdir conftest
12644    $rm conftest*
12645
12646 fi
12647 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12648 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12649
12650
12651 hard_links="nottested"
12652 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12653   # do not overwrite the value of need_locks provided by the user
12654   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12655 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12656   hard_links=yes
12657   $rm conftest*
12658   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12659   touch conftest.a
12660   ln conftest.a conftest.b 2>&5 || hard_links=no
12661   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12662   { echo "$as_me:$LINENO: result: $hard_links" >&5
12663 echo "${ECHO_T}$hard_links" >&6; }
12664   if test "$hard_links" = no; then
12665     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12666 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12667     need_locks=warn
12668   fi
12669 else
12670   need_locks=no
12671 fi
12672
12673 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12674 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12675
12676   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12677   case $host_os in
12678   aix4* | aix5*)
12679     # If we're using GNU nm, then we don't want the "-C" option.
12680     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12681     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12682       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'
12683     else
12684       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'
12685     fi
12686     ;;
12687   pw32*)
12688     export_symbols_cmds_CXX="$ltdll_cmds"
12689   ;;
12690   cygwin* | mingw*)
12691     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'
12692   ;;
12693   linux* | k*bsd*-gnu)
12694     link_all_deplibs_CXX=no
12695   ;;
12696   *)
12697     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12698   ;;
12699   esac
12700
12701 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12702 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12703 test "$ld_shlibs_CXX" = no && can_build_shared=no
12704
12705 #
12706 # Do we need to explicitly link libc?
12707 #
12708 case "x$archive_cmds_need_lc_CXX" in
12709 x|xyes)
12710   # Assume -lc should be added
12711   archive_cmds_need_lc_CXX=yes
12712
12713   if test "$enable_shared" = yes && test "$GCC" = yes; then
12714     case $archive_cmds_CXX in
12715     *'~'*)
12716       # FIXME: we may have to deal with multi-command sequences.
12717       ;;
12718     '$CC '*)
12719       # Test whether the compiler implicitly links with -lc since on some
12720       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12721       # to ld, don't add -lc before -lgcc.
12722       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12723 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12724       $rm conftest*
12725       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12726
12727       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12728   (eval $ac_compile) 2>&5
12729   ac_status=$?
12730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731   (exit $ac_status); } 2>conftest.err; then
12732         soname=conftest
12733         lib=conftest
12734         libobjs=conftest.$ac_objext
12735         deplibs=
12736         wl=$lt_prog_compiler_wl_CXX
12737         pic_flag=$lt_prog_compiler_pic_CXX
12738         compiler_flags=-v
12739         linker_flags=-v
12740         verstring=
12741         output_objdir=.
12742         libname=conftest
12743         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12744         allow_undefined_flag_CXX=
12745         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12746   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12747   ac_status=$?
12748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749   (exit $ac_status); }
12750         then
12751           archive_cmds_need_lc_CXX=no
12752         else
12753           archive_cmds_need_lc_CXX=yes
12754         fi
12755         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12756       else
12757         cat conftest.err 1>&5
12758       fi
12759       $rm conftest*
12760       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12761 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12762       ;;
12763     esac
12764   fi
12765   ;;
12766 esac
12767
12768 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12769 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12770 library_names_spec=
12771 libname_spec='lib$name'
12772 soname_spec=
12773 shrext_cmds=".so"
12774 postinstall_cmds=
12775 postuninstall_cmds=
12776 finish_cmds=
12777 finish_eval=
12778 shlibpath_var=
12779 shlibpath_overrides_runpath=unknown
12780 version_type=none
12781 dynamic_linker="$host_os ld.so"
12782 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12783 if test "$GCC" = yes; then
12784   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12785   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12786     # if the path contains ";" then we assume it to be the separator
12787     # otherwise default to the standard path separator (i.e. ":") - it is
12788     # assumed that no part of a normal pathname contains ";" but that should
12789     # okay in the real world where ";" in dirpaths is itself problematic.
12790     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12791   else
12792     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12793   fi
12794 else
12795   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12796 fi
12797 need_lib_prefix=unknown
12798 hardcode_into_libs=no
12799
12800 # when you set need_version to no, make sure it does not cause -set_version
12801 # flags to be left without arguments
12802 need_version=unknown
12803
12804 case $host_os in
12805 aix3*)
12806   version_type=linux
12807   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12808   shlibpath_var=LIBPATH
12809
12810   # AIX 3 has no versioning support, so we append a major version to the name.
12811   soname_spec='${libname}${release}${shared_ext}$major'
12812   ;;
12813
12814 aix4* | aix5*)
12815   version_type=linux
12816   need_lib_prefix=no
12817   need_version=no
12818   hardcode_into_libs=yes
12819   if test "$host_cpu" = ia64; then
12820     # AIX 5 supports IA64
12821     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12822     shlibpath_var=LD_LIBRARY_PATH
12823   else
12824     # With GCC up to 2.95.x, collect2 would create an import file
12825     # for dependence libraries.  The import file would start with
12826     # the line `#! .'.  This would cause the generated library to
12827     # depend on `.', always an invalid library.  This was fixed in
12828     # development snapshots of GCC prior to 3.0.
12829     case $host_os in
12830       aix4 | aix4.[01] | aix4.[01].*)
12831       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12832            echo ' yes '
12833            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12834         :
12835       else
12836         can_build_shared=no
12837       fi
12838       ;;
12839     esac
12840     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12841     # soname into executable. Probably we can add versioning support to
12842     # collect2, so additional links can be useful in future.
12843     if test "$aix_use_runtimelinking" = yes; then
12844       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12845       # instead of lib<name>.a to let people know that these are not
12846       # typical AIX shared libraries.
12847       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12848     else
12849       # We preserve .a as extension for shared libraries through AIX4.2
12850       # and later when we are not doing run time linking.
12851       library_names_spec='${libname}${release}.a $libname.a'
12852       soname_spec='${libname}${release}${shared_ext}$major'
12853     fi
12854     shlibpath_var=LIBPATH
12855   fi
12856   ;;
12857
12858 amigaos*)
12859   library_names_spec='$libname.ixlibrary $libname.a'
12860   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12861   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'
12862   ;;
12863
12864 beos*)
12865   library_names_spec='${libname}${shared_ext}'
12866   dynamic_linker="$host_os ld.so"
12867   shlibpath_var=LIBRARY_PATH
12868   ;;
12869
12870 bsdi[45]*)
12871   version_type=linux
12872   need_version=no
12873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12874   soname_spec='${libname}${release}${shared_ext}$major'
12875   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12876   shlibpath_var=LD_LIBRARY_PATH
12877   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12878   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12879   # the default ld.so.conf also contains /usr/contrib/lib and
12880   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12881   # libtool to hard-code these into programs
12882   ;;
12883
12884 cygwin* | mingw* | pw32*)
12885   version_type=windows
12886   shrext_cmds=".dll"
12887   need_version=no
12888   need_lib_prefix=no
12889
12890   case $GCC,$host_os in
12891   yes,cygwin* | yes,mingw* | yes,pw32*)
12892     library_names_spec='$libname.dll.a'
12893     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12894     postinstall_cmds='base_file=`basename \${file}`~
12895       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12896       dldir=$destdir/`dirname \$dlpath`~
12897       test -d \$dldir || mkdir -p \$dldir~
12898       $install_prog $dir/$dlname \$dldir/$dlname~
12899       chmod a+x \$dldir/$dlname'
12900     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12901       dlpath=$dir/\$dldll~
12902        $rm \$dlpath'
12903     shlibpath_overrides_runpath=yes
12904
12905     case $host_os in
12906     cygwin*)
12907       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12908       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12909       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12910       ;;
12911     mingw*)
12912       # MinGW DLLs use traditional 'lib' prefix
12913       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12914       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12915       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12916         # It is most probably a Windows format PATH printed by
12917         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12918         # path with ; separators, and with drive letters. We can handle the
12919         # drive letters (cygwin fileutils understands them), so leave them,
12920         # especially as we might pass files found there to a mingw objdump,
12921         # which wouldn't understand a cygwinified path. Ahh.
12922         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12923       else
12924         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12925       fi
12926       ;;
12927     pw32*)
12928       # pw32 DLLs use 'pw' prefix rather than 'lib'
12929       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12930       ;;
12931     esac
12932     ;;
12933
12934   *)
12935     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12936     ;;
12937   esac
12938   dynamic_linker='Win32 ld.exe'
12939   # FIXME: first we should search . and the directory the executable is in
12940   shlibpath_var=PATH
12941   ;;
12942
12943 darwin* | rhapsody*)
12944   dynamic_linker="$host_os dyld"
12945   version_type=darwin
12946   need_lib_prefix=no
12947   need_version=no
12948   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12949   soname_spec='${libname}${release}${major}$shared_ext'
12950   shlibpath_overrides_runpath=yes
12951   shlibpath_var=DYLD_LIBRARY_PATH
12952   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12953   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12954   if test "$GCC" = yes; then
12955     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"`
12956   else
12957     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12958   fi
12959   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12960   ;;
12961
12962 dgux*)
12963   version_type=linux
12964   need_lib_prefix=no
12965   need_version=no
12966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12967   soname_spec='${libname}${release}${shared_ext}$major'
12968   shlibpath_var=LD_LIBRARY_PATH
12969   ;;
12970
12971 freebsd1*)
12972   dynamic_linker=no
12973   ;;
12974
12975 freebsd* | dragonfly*)
12976   # DragonFly does not have aout.  When/if they implement a new
12977   # versioning mechanism, adjust this.
12978   if test -x /usr/bin/objformat; then
12979     objformat=`/usr/bin/objformat`
12980   else
12981     case $host_os in
12982     freebsd[123]*) objformat=aout ;;
12983     *) objformat=elf ;;
12984     esac
12985   fi
12986   version_type=freebsd-$objformat
12987   case $version_type in
12988     freebsd-elf*)
12989       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12990       need_version=no
12991       need_lib_prefix=no
12992       ;;
12993     freebsd-*)
12994       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12995       need_version=yes
12996       ;;
12997   esac
12998   shlibpath_var=LD_LIBRARY_PATH
12999   case $host_os in
13000   freebsd2*)
13001     shlibpath_overrides_runpath=yes
13002     ;;
13003   freebsd3.[01]* | freebsdelf3.[01]*)
13004     shlibpath_overrides_runpath=yes
13005     hardcode_into_libs=yes
13006     ;;
13007   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13008   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13009     shlibpath_overrides_runpath=no
13010     hardcode_into_libs=yes
13011     ;;
13012   freebsd*) # from 4.6 on
13013     shlibpath_overrides_runpath=yes
13014     hardcode_into_libs=yes
13015     ;;
13016   esac
13017   ;;
13018
13019 gnu*)
13020   version_type=linux
13021   need_lib_prefix=no
13022   need_version=no
13023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13024   soname_spec='${libname}${release}${shared_ext}$major'
13025   shlibpath_var=LD_LIBRARY_PATH
13026   hardcode_into_libs=yes
13027   ;;
13028
13029 hpux9* | hpux10* | hpux11*)
13030   # Give a soname corresponding to the major version so that dld.sl refuses to
13031   # link against other versions.
13032   version_type=sunos
13033   need_lib_prefix=no
13034   need_version=no
13035   case $host_cpu in
13036   ia64*)
13037     shrext_cmds='.so'
13038     hardcode_into_libs=yes
13039     dynamic_linker="$host_os dld.so"
13040     shlibpath_var=LD_LIBRARY_PATH
13041     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13042     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13043     soname_spec='${libname}${release}${shared_ext}$major'
13044     if test "X$HPUX_IA64_MODE" = X32; then
13045       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13046     else
13047       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13048     fi
13049     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13050     ;;
13051    hppa*64*)
13052      shrext_cmds='.sl'
13053      hardcode_into_libs=yes
13054      dynamic_linker="$host_os dld.sl"
13055      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13056      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13057      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13058      soname_spec='${libname}${release}${shared_ext}$major'
13059      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13060      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13061      ;;
13062    *)
13063     shrext_cmds='.sl'
13064     dynamic_linker="$host_os dld.sl"
13065     shlibpath_var=SHLIB_PATH
13066     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13067     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13068     soname_spec='${libname}${release}${shared_ext}$major'
13069     ;;
13070   esac
13071   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13072   postinstall_cmds='chmod 555 $lib'
13073   ;;
13074
13075 interix3*)
13076   version_type=linux
13077   need_lib_prefix=no
13078   need_version=no
13079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13080   soname_spec='${libname}${release}${shared_ext}$major'
13081   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13082   shlibpath_var=LD_LIBRARY_PATH
13083   shlibpath_overrides_runpath=no
13084   hardcode_into_libs=yes
13085   ;;
13086
13087 irix5* | irix6* | nonstopux*)
13088   case $host_os in
13089     nonstopux*) version_type=nonstopux ;;
13090     *)
13091         if test "$lt_cv_prog_gnu_ld" = yes; then
13092                 version_type=linux
13093         else
13094                 version_type=irix
13095         fi ;;
13096   esac
13097   need_lib_prefix=no
13098   need_version=no
13099   soname_spec='${libname}${release}${shared_ext}$major'
13100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13101   case $host_os in
13102   irix5* | nonstopux*)
13103     libsuff= shlibsuff=
13104     ;;
13105   *)
13106     case $LD in # libtool.m4 will add one of these switches to LD
13107     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13108       libsuff= shlibsuff= libmagic=32-bit;;
13109     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13110       libsuff=32 shlibsuff=N32 libmagic=N32;;
13111     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13112       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13113     *) libsuff= shlibsuff= libmagic=never-match;;
13114     esac
13115     ;;
13116   esac
13117   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13118   shlibpath_overrides_runpath=no
13119   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13120   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13121   hardcode_into_libs=yes
13122   ;;
13123
13124 # No shared lib support for Linux oldld, aout, or coff.
13125 linux*oldld* | linux*aout* | linux*coff*)
13126   dynamic_linker=no
13127   ;;
13128
13129 # This must be Linux ELF.
13130 linux* | k*bsd*-gnu)
13131   version_type=linux
13132   need_lib_prefix=no
13133   need_version=no
13134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13135   soname_spec='${libname}${release}${shared_ext}$major'
13136   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13137   shlibpath_var=LD_LIBRARY_PATH
13138   shlibpath_overrides_runpath=no
13139   # This implies no fast_install, which is unacceptable.
13140   # Some rework will be needed to allow for fast_install
13141   # before this can be enabled.
13142   hardcode_into_libs=yes
13143
13144   # Append ld.so.conf contents to the search path
13145   if test -f /etc/ld.so.conf; then
13146     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' ' '`
13147     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13148   fi
13149
13150   # We used to test for /lib/ld.so.1 and disable shared libraries on
13151   # powerpc, because MkLinux only supported shared libraries with the
13152   # GNU dynamic linker.  Since this was broken with cross compilers,
13153   # most powerpc-linux boxes support dynamic linking these days and
13154   # people can always --disable-shared, the test was removed, and we
13155   # assume the GNU/Linux dynamic linker is in use.
13156   dynamic_linker='GNU/Linux ld.so'
13157   ;;
13158
13159 netbsdelf*-gnu)
13160   version_type=linux
13161   need_lib_prefix=no
13162   need_version=no
13163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13164   soname_spec='${libname}${release}${shared_ext}$major'
13165   shlibpath_var=LD_LIBRARY_PATH
13166   shlibpath_overrides_runpath=no
13167   hardcode_into_libs=yes
13168   dynamic_linker='NetBSD ld.elf_so'
13169   ;;
13170
13171 netbsd*)
13172   version_type=sunos
13173   need_lib_prefix=no
13174   need_version=no
13175   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13176     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13177     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13178     dynamic_linker='NetBSD (a.out) ld.so'
13179   else
13180     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13181     soname_spec='${libname}${release}${shared_ext}$major'
13182     dynamic_linker='NetBSD ld.elf_so'
13183   fi
13184   shlibpath_var=LD_LIBRARY_PATH
13185   shlibpath_overrides_runpath=yes
13186   hardcode_into_libs=yes
13187   ;;
13188
13189 newsos6)
13190   version_type=linux
13191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13192   shlibpath_var=LD_LIBRARY_PATH
13193   shlibpath_overrides_runpath=yes
13194   ;;
13195
13196 nto-qnx*)
13197   version_type=linux
13198   need_lib_prefix=no
13199   need_version=no
13200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13201   soname_spec='${libname}${release}${shared_ext}$major'
13202   shlibpath_var=LD_LIBRARY_PATH
13203   shlibpath_overrides_runpath=yes
13204   ;;
13205
13206 openbsd*)
13207   version_type=sunos
13208   sys_lib_dlsearch_path_spec="/usr/lib"
13209   need_lib_prefix=no
13210   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13211   case $host_os in
13212     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13213     *)                         need_version=no  ;;
13214   esac
13215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13216   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13217   shlibpath_var=LD_LIBRARY_PATH
13218   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13219     case $host_os in
13220       openbsd2.[89] | openbsd2.[89].*)
13221         shlibpath_overrides_runpath=no
13222         ;;
13223       *)
13224         shlibpath_overrides_runpath=yes
13225         ;;
13226       esac
13227   else
13228     shlibpath_overrides_runpath=yes
13229   fi
13230   ;;
13231
13232 os2*)
13233   libname_spec='$name'
13234   shrext_cmds=".dll"
13235   need_lib_prefix=no
13236   library_names_spec='$libname${shared_ext} $libname.a'
13237   dynamic_linker='OS/2 ld.exe'
13238   shlibpath_var=LIBPATH
13239   ;;
13240
13241 osf3* | osf4* | osf5*)
13242   version_type=osf
13243   need_lib_prefix=no
13244   need_version=no
13245   soname_spec='${libname}${release}${shared_ext}$major'
13246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13247   shlibpath_var=LD_LIBRARY_PATH
13248   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13249   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13250   ;;
13251
13252 solaris*)
13253   version_type=linux
13254   need_lib_prefix=no
13255   need_version=no
13256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13257   soname_spec='${libname}${release}${shared_ext}$major'
13258   shlibpath_var=LD_LIBRARY_PATH
13259   shlibpath_overrides_runpath=yes
13260   hardcode_into_libs=yes
13261   # ldd complains unless libraries are executable
13262   postinstall_cmds='chmod +x $lib'
13263   ;;
13264
13265 sunos4*)
13266   version_type=sunos
13267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13268   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13269   shlibpath_var=LD_LIBRARY_PATH
13270   shlibpath_overrides_runpath=yes
13271   if test "$with_gnu_ld" = yes; then
13272     need_lib_prefix=no
13273   fi
13274   need_version=yes
13275   ;;
13276
13277 sysv4 | sysv4.3*)
13278   version_type=linux
13279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13280   soname_spec='${libname}${release}${shared_ext}$major'
13281   shlibpath_var=LD_LIBRARY_PATH
13282   case $host_vendor in
13283     sni)
13284       shlibpath_overrides_runpath=no
13285       need_lib_prefix=no
13286       export_dynamic_flag_spec='${wl}-Blargedynsym'
13287       runpath_var=LD_RUN_PATH
13288       ;;
13289     siemens)
13290       need_lib_prefix=no
13291       ;;
13292     motorola)
13293       need_lib_prefix=no
13294       need_version=no
13295       shlibpath_overrides_runpath=no
13296       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13297       ;;
13298   esac
13299   ;;
13300
13301 sysv4*MP*)
13302   if test -d /usr/nec ;then
13303     version_type=linux
13304     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13305     soname_spec='$libname${shared_ext}.$major'
13306     shlibpath_var=LD_LIBRARY_PATH
13307   fi
13308   ;;
13309
13310 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13311   version_type=freebsd-elf
13312   need_lib_prefix=no
13313   need_version=no
13314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13315   soname_spec='${libname}${release}${shared_ext}$major'
13316   shlibpath_var=LD_LIBRARY_PATH
13317   hardcode_into_libs=yes
13318   if test "$with_gnu_ld" = yes; then
13319     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13320     shlibpath_overrides_runpath=no
13321   else
13322     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13323     shlibpath_overrides_runpath=yes
13324     case $host_os in
13325       sco3.2v5*)
13326         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13327         ;;
13328     esac
13329   fi
13330   sys_lib_dlsearch_path_spec='/usr/lib'
13331   ;;
13332
13333 uts4*)
13334   version_type=linux
13335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13336   soname_spec='${libname}${release}${shared_ext}$major'
13337   shlibpath_var=LD_LIBRARY_PATH
13338   ;;
13339
13340 *)
13341   dynamic_linker=no
13342   ;;
13343 esac
13344 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13345 echo "${ECHO_T}$dynamic_linker" >&6; }
13346 test "$dynamic_linker" = no && can_build_shared=no
13347
13348 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13349 if test "$GCC" = yes; then
13350   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13351 fi
13352
13353 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13354 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13355 hardcode_action_CXX=
13356 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13357    test -n "$runpath_var_CXX" || \
13358    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13359
13360   # We can hardcode non-existant directories.
13361   if test "$hardcode_direct_CXX" != no &&
13362      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13363      # have to relink, otherwise we might link with an installed library
13364      # when we should be linking with a yet-to-be-installed one
13365      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13366      test "$hardcode_minus_L_CXX" != no; then
13367     # Linking always hardcodes the temporary library directory.
13368     hardcode_action_CXX=relink
13369   else
13370     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13371     hardcode_action_CXX=immediate
13372   fi
13373 else
13374   # We cannot hardcode anything, or else we can only hardcode existing
13375   # directories.
13376   hardcode_action_CXX=unsupported
13377 fi
13378 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13379 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13380
13381 if test "$hardcode_action_CXX" = relink; then
13382   # Fast installation is not supported
13383   enable_fast_install=no
13384 elif test "$shlibpath_overrides_runpath" = yes ||
13385      test "$enable_shared" = no; then
13386   # Fast installation is not necessary
13387   enable_fast_install=needless
13388 fi
13389
13390
13391 # The else clause should only fire when bootstrapping the
13392 # libtool distribution, otherwise you forgot to ship ltmain.sh
13393 # with your package, and you will get complaints that there are
13394 # no rules to generate ltmain.sh.
13395 if test -f "$ltmain"; then
13396   # See if we are running on zsh, and set the options which allow our commands through
13397   # without removal of \ escapes.
13398   if test -n "${ZSH_VERSION+set}" ; then
13399     setopt NO_GLOB_SUBST
13400   fi
13401   # Now quote all the things that may contain metacharacters while being
13402   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13403   # variables and quote the copies for generation of the libtool script.
13404   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13405     SED SHELL STRIP \
13406     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13407     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13408     deplibs_check_method reload_flag reload_cmds need_locks \
13409     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13410     lt_cv_sys_global_symbol_to_c_name_address \
13411     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13412     old_postinstall_cmds old_postuninstall_cmds \
13413     compiler_CXX \
13414     CC_CXX \
13415     LD_CXX \
13416     lt_prog_compiler_wl_CXX \
13417     lt_prog_compiler_pic_CXX \
13418     lt_prog_compiler_static_CXX \
13419     lt_prog_compiler_no_builtin_flag_CXX \
13420     export_dynamic_flag_spec_CXX \
13421     thread_safe_flag_spec_CXX \
13422     whole_archive_flag_spec_CXX \
13423     enable_shared_with_static_runtimes_CXX \
13424     old_archive_cmds_CXX \
13425     old_archive_from_new_cmds_CXX \
13426     predep_objects_CXX \
13427     postdep_objects_CXX \
13428     predeps_CXX \
13429     postdeps_CXX \
13430     compiler_lib_search_path_CXX \
13431     archive_cmds_CXX \
13432     archive_expsym_cmds_CXX \
13433     postinstall_cmds_CXX \
13434     postuninstall_cmds_CXX \
13435     old_archive_from_expsyms_cmds_CXX \
13436     allow_undefined_flag_CXX \
13437     no_undefined_flag_CXX \
13438     export_symbols_cmds_CXX \
13439     hardcode_libdir_flag_spec_CXX \
13440     hardcode_libdir_flag_spec_ld_CXX \
13441     hardcode_libdir_separator_CXX \
13442     hardcode_automatic_CXX \
13443     module_cmds_CXX \
13444     module_expsym_cmds_CXX \
13445     lt_cv_prog_compiler_c_o_CXX \
13446     exclude_expsyms_CXX \
13447     include_expsyms_CXX; do
13448
13449     case $var in
13450     old_archive_cmds_CXX | \
13451     old_archive_from_new_cmds_CXX | \
13452     archive_cmds_CXX | \
13453     archive_expsym_cmds_CXX | \
13454     module_cmds_CXX | \
13455     module_expsym_cmds_CXX | \
13456     old_archive_from_expsyms_cmds_CXX | \
13457     export_symbols_cmds_CXX | \
13458     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13459     postinstall_cmds | postuninstall_cmds | \
13460     old_postinstall_cmds | old_postuninstall_cmds | \
13461     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13462       # Double-quote double-evaled strings.
13463       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13464       ;;
13465     *)
13466       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13467       ;;
13468     esac
13469   done
13470
13471   case $lt_echo in
13472   *'\$0 --fallback-echo"')
13473     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13474     ;;
13475   esac
13476
13477 cfgfile="$ofile"
13478
13479   cat <<__EOF__ >> "$cfgfile"
13480 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13481
13482 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13483
13484 # Shell to use when invoking shell scripts.
13485 SHELL=$lt_SHELL
13486
13487 # Whether or not to build shared libraries.
13488 build_libtool_libs=$enable_shared
13489
13490 # Whether or not to build static libraries.
13491 build_old_libs=$enable_static
13492
13493 # Whether or not to add -lc for building shared libraries.
13494 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13495
13496 # Whether or not to disallow shared libs when runtime libs are static
13497 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13498
13499 # Whether or not to optimize for fast installation.
13500 fast_install=$enable_fast_install
13501
13502 # The host system.
13503 host_alias=$host_alias
13504 host=$host
13505 host_os=$host_os
13506
13507 # The build system.
13508 build_alias=$build_alias
13509 build=$build
13510 build_os=$build_os
13511
13512 # An echo program that does not interpret backslashes.
13513 echo=$lt_echo
13514
13515 # The archiver.
13516 AR=$lt_AR
13517 AR_FLAGS=$lt_AR_FLAGS
13518
13519 # A C compiler.
13520 LTCC=$lt_LTCC
13521
13522 # LTCC compiler flags.
13523 LTCFLAGS=$lt_LTCFLAGS
13524
13525 # A language-specific compiler.
13526 CC=$lt_compiler_CXX
13527
13528 # Is the compiler the GNU C compiler?
13529 with_gcc=$GCC_CXX
13530
13531 # An ERE matcher.
13532 EGREP=$lt_EGREP
13533
13534 # The linker used to build libraries.
13535 LD=$lt_LD_CXX
13536
13537 # Whether we need hard or soft links.
13538 LN_S=$lt_LN_S
13539
13540 # A BSD-compatible nm program.
13541 NM=$lt_NM
13542
13543 # A symbol stripping program
13544 STRIP=$lt_STRIP
13545
13546 # Used to examine libraries when file_magic_cmd begins "file"
13547 MAGIC_CMD=$MAGIC_CMD
13548
13549 # Used on cygwin: DLL creation program.
13550 DLLTOOL="$DLLTOOL"
13551
13552 # Used on cygwin: object dumper.
13553 OBJDUMP="$OBJDUMP"
13554
13555 # Used on cygwin: assembler.
13556 AS="$AS"
13557
13558 # The name of the directory that contains temporary libtool files.
13559 objdir=$objdir
13560
13561 # How to create reloadable object files.
13562 reload_flag=$lt_reload_flag
13563 reload_cmds=$lt_reload_cmds
13564
13565 # How to pass a linker flag through the compiler.
13566 wl=$lt_lt_prog_compiler_wl_CXX
13567
13568 # Object file suffix (normally "o").
13569 objext="$ac_objext"
13570
13571 # Old archive suffix (normally "a").
13572 libext="$libext"
13573
13574 # Shared library suffix (normally ".so").
13575 shrext_cmds='$shrext_cmds'
13576
13577 # Executable file suffix (normally "").
13578 exeext="$exeext"
13579
13580 # Additional compiler flags for building library objects.
13581 pic_flag=$lt_lt_prog_compiler_pic_CXX
13582 pic_mode=$pic_mode
13583
13584 # What is the maximum length of a command?
13585 max_cmd_len=$lt_cv_sys_max_cmd_len
13586
13587 # Does compiler simultaneously support -c and -o options?
13588 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13589
13590 # Must we lock files when doing compilation?
13591 need_locks=$lt_need_locks
13592
13593 # Do we need the lib prefix for modules?
13594 need_lib_prefix=$need_lib_prefix
13595
13596 # Do we need a version for libraries?
13597 need_version=$need_version
13598
13599 # Whether dlopen is supported.
13600 dlopen_support=$enable_dlopen
13601
13602 # Whether dlopen of programs is supported.
13603 dlopen_self=$enable_dlopen_self
13604
13605 # Whether dlopen of statically linked programs is supported.
13606 dlopen_self_static=$enable_dlopen_self_static
13607
13608 # Compiler flag to prevent dynamic linking.
13609 link_static_flag=$lt_lt_prog_compiler_static_CXX
13610
13611 # Compiler flag to turn off builtin functions.
13612 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13613
13614 # Compiler flag to allow reflexive dlopens.
13615 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13616
13617 # Compiler flag to generate shared objects directly from archives.
13618 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13619
13620 # Compiler flag to generate thread-safe objects.
13621 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13622
13623 # Library versioning type.
13624 version_type=$version_type
13625
13626 # Format of library name prefix.
13627 libname_spec=$lt_libname_spec
13628
13629 # List of archive names.  First name is the real one, the rest are links.
13630 # The last name is the one that the linker finds with -lNAME.
13631 library_names_spec=$lt_library_names_spec
13632
13633 # The coded name of the library, if different from the real name.
13634 soname_spec=$lt_soname_spec
13635
13636 # Commands used to build and install an old-style archive.
13637 RANLIB=$lt_RANLIB
13638 old_archive_cmds=$lt_old_archive_cmds_CXX
13639 old_postinstall_cmds=$lt_old_postinstall_cmds
13640 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13641
13642 # Create an old-style archive from a shared archive.
13643 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13644
13645 # Create a temporary old-style archive to link instead of a shared archive.
13646 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13647
13648 # Commands used to build and install a shared archive.
13649 archive_cmds=$lt_archive_cmds_CXX
13650 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13651 postinstall_cmds=$lt_postinstall_cmds
13652 postuninstall_cmds=$lt_postuninstall_cmds
13653
13654 # Commands used to build a loadable module (assumed same as above if empty)
13655 module_cmds=$lt_module_cmds_CXX
13656 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13657
13658 # Commands to strip libraries.
13659 old_striplib=$lt_old_striplib
13660 striplib=$lt_striplib
13661
13662 # Dependencies to place before the objects being linked to create a
13663 # shared library.
13664 predep_objects=$lt_predep_objects_CXX
13665
13666 # Dependencies to place after the objects being linked to create a
13667 # shared library.
13668 postdep_objects=$lt_postdep_objects_CXX
13669
13670 # Dependencies to place before the objects being linked to create a
13671 # shared library.
13672 predeps=$lt_predeps_CXX
13673
13674 # Dependencies to place after the objects being linked to create a
13675 # shared library.
13676 postdeps=$lt_postdeps_CXX
13677
13678 # The library search path used internally by the compiler when linking
13679 # a shared library.
13680 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13681
13682 # Method to check whether dependent libraries are shared objects.
13683 deplibs_check_method=$lt_deplibs_check_method
13684
13685 # Command to use when deplibs_check_method == file_magic.
13686 file_magic_cmd=$lt_file_magic_cmd
13687
13688 # Flag that allows shared libraries with undefined symbols to be built.
13689 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13690
13691 # Flag that forces no undefined symbols.
13692 no_undefined_flag=$lt_no_undefined_flag_CXX
13693
13694 # Commands used to finish a libtool library installation in a directory.
13695 finish_cmds=$lt_finish_cmds
13696
13697 # Same as above, but a single script fragment to be evaled but not shown.
13698 finish_eval=$lt_finish_eval
13699
13700 # Take the output of nm and produce a listing of raw symbols and C names.
13701 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13702
13703 # Transform the output of nm in a proper C declaration
13704 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13705
13706 # Transform the output of nm in a C name address pair
13707 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13708
13709 # This is the shared library runtime path variable.
13710 runpath_var=$runpath_var
13711
13712 # This is the shared library path variable.
13713 shlibpath_var=$shlibpath_var
13714
13715 # Is shlibpath searched before the hard-coded library search path?
13716 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13717
13718 # How to hardcode a shared library path into an executable.
13719 hardcode_action=$hardcode_action_CXX
13720
13721 # Whether we should hardcode library paths into libraries.
13722 hardcode_into_libs=$hardcode_into_libs
13723
13724 # Flag to hardcode \$libdir into a binary during linking.
13725 # This must work even if \$libdir does not exist.
13726 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13727
13728 # If ld is used when linking, flag to hardcode \$libdir into
13729 # a binary during linking. This must work even if \$libdir does
13730 # not exist.
13731 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13732
13733 # Whether we need a single -rpath flag with a separated argument.
13734 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13735
13736 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13737 # resulting binary.
13738 hardcode_direct=$hardcode_direct_CXX
13739
13740 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13741 # resulting binary.
13742 hardcode_minus_L=$hardcode_minus_L_CXX
13743
13744 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13745 # the resulting binary.
13746 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13747
13748 # Set to yes if building a shared library automatically hardcodes DIR into the library
13749 # and all subsequent libraries and executables linked against it.
13750 hardcode_automatic=$hardcode_automatic_CXX
13751
13752 # Variables whose values should be saved in libtool wrapper scripts and
13753 # restored at relink time.
13754 variables_saved_for_relink="$variables_saved_for_relink"
13755
13756 # Whether libtool must link a program against all its dependency libraries.
13757 link_all_deplibs=$link_all_deplibs_CXX
13758
13759 # Compile-time system search path for libraries
13760 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13761
13762 # Run-time system search path for libraries
13763 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13764
13765 # Fix the shell variable \$srcfile for the compiler.
13766 fix_srcfile_path="$fix_srcfile_path_CXX"
13767
13768 # Set to yes if exported symbols are required.
13769 always_export_symbols=$always_export_symbols_CXX
13770
13771 # The commands to list exported symbols.
13772 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13773
13774 # The commands to extract the exported symbol list from a shared archive.
13775 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13776
13777 # Symbols that should not be listed in the preloaded symbols.
13778 exclude_expsyms=$lt_exclude_expsyms_CXX
13779
13780 # Symbols that must always be exported.
13781 include_expsyms=$lt_include_expsyms_CXX
13782
13783 # ### END LIBTOOL TAG CONFIG: $tagname
13784
13785 __EOF__
13786
13787
13788 else
13789   # If there is no Makefile yet, we rely on a make rule to execute
13790   # `config.status --recheck' to rerun these tests and create the
13791   # libtool script then.
13792   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13793   if test -f "$ltmain_in"; then
13794     test -f Makefile && make "$ltmain"
13795   fi
13796 fi
13797
13798
13799 ac_ext=c
13800 ac_cpp='$CPP $CPPFLAGS'
13801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13804
13805 CC=$lt_save_CC
13806 LDCXX=$LD
13807 LD=$lt_save_LD
13808 GCC=$lt_save_GCC
13809 with_gnu_ldcxx=$with_gnu_ld
13810 with_gnu_ld=$lt_save_with_gnu_ld
13811 lt_cv_path_LDCXX=$lt_cv_path_LD
13812 lt_cv_path_LD=$lt_save_path_LD
13813 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13814 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13815
13816         else
13817           tagname=""
13818         fi
13819         ;;
13820
13821       F77)
13822         if test -n "$F77" && test "X$F77" != "Xno"; then
13823
13824 ac_ext=f
13825 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13826 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13827 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13828
13829
13830 archive_cmds_need_lc_F77=no
13831 allow_undefined_flag_F77=
13832 always_export_symbols_F77=no
13833 archive_expsym_cmds_F77=
13834 export_dynamic_flag_spec_F77=
13835 hardcode_direct_F77=no
13836 hardcode_libdir_flag_spec_F77=
13837 hardcode_libdir_flag_spec_ld_F77=
13838 hardcode_libdir_separator_F77=
13839 hardcode_minus_L_F77=no
13840 hardcode_automatic_F77=no
13841 module_cmds_F77=
13842 module_expsym_cmds_F77=
13843 link_all_deplibs_F77=unknown
13844 old_archive_cmds_F77=$old_archive_cmds
13845 no_undefined_flag_F77=
13846 whole_archive_flag_spec_F77=
13847 enable_shared_with_static_runtimes_F77=no
13848
13849 # Source file extension for f77 test sources.
13850 ac_ext=f
13851
13852 # Object file extension for compiled f77 test sources.
13853 objext=o
13854 objext_F77=$objext
13855
13856 # Code to be used in simple compile tests
13857 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13858
13859 # Code to be used in simple link tests
13860 lt_simple_link_test_code="      program t\n      end\n"
13861
13862 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13863
13864 # If no C compiler was specified, use CC.
13865 LTCC=${LTCC-"$CC"}
13866
13867 # If no C compiler flags were specified, use CFLAGS.
13868 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13869
13870 # Allow CC to be a program name with arguments.
13871 compiler=$CC
13872
13873
13874 # save warnings/boilerplate of simple test code
13875 ac_outfile=conftest.$ac_objext
13876 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13877 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13878 _lt_compiler_boilerplate=`cat conftest.err`
13879 $rm conftest*
13880
13881 ac_outfile=conftest.$ac_objext
13882 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13883 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13884 _lt_linker_boilerplate=`cat conftest.err`
13885 $rm conftest*
13886
13887
13888 # Allow CC to be a program name with arguments.
13889 lt_save_CC="$CC"
13890 CC=${F77-"f77"}
13891 compiler=$CC
13892 compiler_F77=$CC
13893 for cc_temp in $compiler""; do
13894   case $cc_temp in
13895     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13896     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13897     \-*) ;;
13898     *) break;;
13899   esac
13900 done
13901 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13902
13903
13904 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13905 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13906 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13907 echo "${ECHO_T}$can_build_shared" >&6; }
13908
13909 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13910 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13911 test "$can_build_shared" = "no" && enable_shared=no
13912
13913 # On AIX, shared libraries and static libraries use the same namespace, and
13914 # are all built from PIC.
13915 case $host_os in
13916 aix3*)
13917   test "$enable_shared" = yes && enable_static=no
13918   if test -n "$RANLIB"; then
13919     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13920     postinstall_cmds='$RANLIB $lib'
13921   fi
13922   ;;
13923 aix4* | aix5*)
13924   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13925     test "$enable_shared" = yes && enable_static=no
13926   fi
13927   ;;
13928 esac
13929 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13930 echo "${ECHO_T}$enable_shared" >&6; }
13931
13932 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13933 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13934 # Make sure either enable_shared or enable_static is yes.
13935 test "$enable_shared" = yes || enable_static=yes
13936 { echo "$as_me:$LINENO: result: $enable_static" >&5
13937 echo "${ECHO_T}$enable_static" >&6; }
13938
13939 GCC_F77="$G77"
13940 LD_F77="$LD"
13941
13942 lt_prog_compiler_wl_F77=
13943 lt_prog_compiler_pic_F77=
13944 lt_prog_compiler_static_F77=
13945
13946 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13947 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13948
13949   if test "$GCC" = yes; then
13950     lt_prog_compiler_wl_F77='-Wl,'
13951     lt_prog_compiler_static_F77='-static'
13952
13953     case $host_os in
13954       aix*)
13955       # All AIX code is PIC.
13956       if test "$host_cpu" = ia64; then
13957         # AIX 5 now supports IA64 processor
13958         lt_prog_compiler_static_F77='-Bstatic'
13959       fi
13960       ;;
13961
13962     amigaos*)
13963       # FIXME: we need at least 68020 code to build shared libraries, but
13964       # adding the `-m68020' flag to GCC prevents building anything better,
13965       # like `-m68040'.
13966       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13967       ;;
13968
13969     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13970       # PIC is the default for these OSes.
13971       ;;
13972
13973     mingw* | pw32* | os2*)
13974       # This hack is so that the source file can tell whether it is being
13975       # built for inclusion in a dll (and should export symbols for example).
13976       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13977       ;;
13978
13979     darwin* | rhapsody*)
13980       # PIC is the default on this platform
13981       # Common symbols not allowed in MH_DYLIB files
13982       lt_prog_compiler_pic_F77='-fno-common'
13983       ;;
13984
13985     interix3*)
13986       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13987       # Instead, we relocate shared libraries at runtime.
13988       ;;
13989
13990     msdosdjgpp*)
13991       # Just because we use GCC doesn't mean we suddenly get shared libraries
13992       # on systems that don't support them.
13993       lt_prog_compiler_can_build_shared_F77=no
13994       enable_shared=no
13995       ;;
13996
13997     sysv4*MP*)
13998       if test -d /usr/nec; then
13999         lt_prog_compiler_pic_F77=-Kconform_pic
14000       fi
14001       ;;
14002
14003     hpux*)
14004       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14005       # not for PA HP-UX.
14006       case $host_cpu in
14007       hppa*64*|ia64*)
14008         # +Z the default
14009         ;;
14010       *)
14011         lt_prog_compiler_pic_F77='-fPIC'
14012         ;;
14013       esac
14014       ;;
14015
14016     *)
14017       lt_prog_compiler_pic_F77='-fPIC'
14018       ;;
14019     esac
14020   else
14021     # PORTME Check for flag to pass linker flags through the system compiler.
14022     case $host_os in
14023     aix*)
14024       lt_prog_compiler_wl_F77='-Wl,'
14025       if test "$host_cpu" = ia64; then
14026         # AIX 5 now supports IA64 processor
14027         lt_prog_compiler_static_F77='-Bstatic'
14028       else
14029         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14030       fi
14031       ;;
14032       darwin*)
14033         # PIC is the default on this platform
14034         # Common symbols not allowed in MH_DYLIB files
14035        case $cc_basename in
14036          xlc*)
14037          lt_prog_compiler_pic_F77='-qnocommon'
14038          lt_prog_compiler_wl_F77='-Wl,'
14039          ;;
14040        esac
14041        ;;
14042
14043     mingw* | pw32* | os2*)
14044       # This hack is so that the source file can tell whether it is being
14045       # built for inclusion in a dll (and should export symbols for example).
14046       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14047       ;;
14048
14049     hpux9* | hpux10* | hpux11*)
14050       lt_prog_compiler_wl_F77='-Wl,'
14051       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14052       # not for PA HP-UX.
14053       case $host_cpu in
14054       hppa*64*|ia64*)
14055         # +Z the default
14056         ;;
14057       *)
14058         lt_prog_compiler_pic_F77='+Z'
14059         ;;
14060       esac
14061       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14062       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14063       ;;
14064
14065     irix5* | irix6* | nonstopux*)
14066       lt_prog_compiler_wl_F77='-Wl,'
14067       # PIC (with -KPIC) is the default.
14068       lt_prog_compiler_static_F77='-non_shared'
14069       ;;
14070
14071     newsos6)
14072       lt_prog_compiler_pic_F77='-KPIC'
14073       lt_prog_compiler_static_F77='-Bstatic'
14074       ;;
14075
14076     linux* | k*bsd*-gnu)
14077       case $cc_basename in
14078       icc* | ecc*)
14079         lt_prog_compiler_wl_F77='-Wl,'
14080         lt_prog_compiler_pic_F77='-KPIC'
14081         lt_prog_compiler_static_F77='-static'
14082         ;;
14083       pgcc* | pgf77* | pgf90* | pgf95*)
14084         # Portland Group compilers (*not* the Pentium gcc compiler,
14085         # which looks to be a dead project)
14086         lt_prog_compiler_wl_F77='-Wl,'
14087         lt_prog_compiler_pic_F77='-fpic'
14088         lt_prog_compiler_static_F77='-Bstatic'
14089         ;;
14090       ccc*)
14091         lt_prog_compiler_wl_F77='-Wl,'
14092         # All Alpha code is PIC.
14093         lt_prog_compiler_static_F77='-non_shared'
14094         ;;
14095       esac
14096       ;;
14097
14098     osf3* | osf4* | osf5*)
14099       lt_prog_compiler_wl_F77='-Wl,'
14100       # All OSF/1 code is PIC.
14101       lt_prog_compiler_static_F77='-non_shared'
14102       ;;
14103
14104     solaris*)
14105       lt_prog_compiler_pic_F77='-KPIC'
14106       lt_prog_compiler_static_F77='-Bstatic'
14107       case $cc_basename in
14108       f77* | f90* | f95*)
14109         lt_prog_compiler_wl_F77='-Qoption ld ';;
14110       *)
14111         lt_prog_compiler_wl_F77='-Wl,';;
14112       esac
14113       ;;
14114
14115     sunos4*)
14116       lt_prog_compiler_wl_F77='-Qoption ld '
14117       lt_prog_compiler_pic_F77='-PIC'
14118       lt_prog_compiler_static_F77='-Bstatic'
14119       ;;
14120
14121     sysv4 | sysv4.2uw2* | sysv4.3*)
14122       lt_prog_compiler_wl_F77='-Wl,'
14123       lt_prog_compiler_pic_F77='-KPIC'
14124       lt_prog_compiler_static_F77='-Bstatic'
14125       ;;
14126
14127     sysv4*MP*)
14128       if test -d /usr/nec ;then
14129         lt_prog_compiler_pic_F77='-Kconform_pic'
14130         lt_prog_compiler_static_F77='-Bstatic'
14131       fi
14132       ;;
14133
14134     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14135       lt_prog_compiler_wl_F77='-Wl,'
14136       lt_prog_compiler_pic_F77='-KPIC'
14137       lt_prog_compiler_static_F77='-Bstatic'
14138       ;;
14139
14140     unicos*)
14141       lt_prog_compiler_wl_F77='-Wl,'
14142       lt_prog_compiler_can_build_shared_F77=no
14143       ;;
14144
14145     uts4*)
14146       lt_prog_compiler_pic_F77='-pic'
14147       lt_prog_compiler_static_F77='-Bstatic'
14148       ;;
14149
14150     *)
14151       lt_prog_compiler_can_build_shared_F77=no
14152       ;;
14153     esac
14154   fi
14155
14156 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14157 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14158
14159 #
14160 # Check to make sure the PIC flag actually works.
14161 #
14162 if test -n "$lt_prog_compiler_pic_F77"; then
14163
14164 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14165 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14166 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14167   echo $ECHO_N "(cached) $ECHO_C" >&6
14168 else
14169   lt_prog_compiler_pic_works_F77=no
14170   ac_outfile=conftest.$ac_objext
14171    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14172    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14173    # Insert the option either (1) after the last *FLAGS variable, or
14174    # (2) before a word containing "conftest.", or (3) at the end.
14175    # Note that $ac_compile itself does not contain backslashes and begins
14176    # with a dollar sign (not a hyphen), so the echo should work correctly.
14177    # The option is referenced via a variable to avoid confusing sed.
14178    lt_compile=`echo "$ac_compile" | $SED \
14179    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14180    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14181    -e 's:$: $lt_compiler_flag:'`
14182    (eval echo "\"\$as_me:14182: $lt_compile\"" >&5)
14183    (eval "$lt_compile" 2>conftest.err)
14184    ac_status=$?
14185    cat conftest.err >&5
14186    echo "$as_me:14186: \$? = $ac_status" >&5
14187    if (exit $ac_status) && test -s "$ac_outfile"; then
14188      # The compiler can only warn and ignore the option if not recognized
14189      # So say no if there are warnings other than the usual output.
14190      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14191      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14192      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14193        lt_prog_compiler_pic_works_F77=yes
14194      fi
14195    fi
14196    $rm conftest*
14197
14198 fi
14199 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14200 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14201
14202 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14203     case $lt_prog_compiler_pic_F77 in
14204      "" | " "*) ;;
14205      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14206      esac
14207 else
14208     lt_prog_compiler_pic_F77=
14209      lt_prog_compiler_can_build_shared_F77=no
14210 fi
14211
14212 fi
14213 case $host_os in
14214   # For platforms which do not support PIC, -DPIC is meaningless:
14215   *djgpp*)
14216     lt_prog_compiler_pic_F77=
14217     ;;
14218   *)
14219     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14220     ;;
14221 esac
14222
14223 #
14224 # Check to make sure the static flag actually works.
14225 #
14226 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14227 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14228 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14229 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14230   echo $ECHO_N "(cached) $ECHO_C" >&6
14231 else
14232   lt_prog_compiler_static_works_F77=no
14233    save_LDFLAGS="$LDFLAGS"
14234    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14235    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14236    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14237      # The linker can only warn and ignore the option if not recognized
14238      # So say no if there are warnings
14239      if test -s conftest.err; then
14240        # Append any errors to the config.log.
14241        cat conftest.err 1>&5
14242        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14243        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14244        if diff conftest.exp conftest.er2 >/dev/null; then
14245          lt_prog_compiler_static_works_F77=yes
14246        fi
14247      else
14248        lt_prog_compiler_static_works_F77=yes
14249      fi
14250    fi
14251    $rm conftest*
14252    LDFLAGS="$save_LDFLAGS"
14253
14254 fi
14255 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14256 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14257
14258 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14259     :
14260 else
14261     lt_prog_compiler_static_F77=
14262 fi
14263
14264
14265 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14266 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14267 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14268   echo $ECHO_N "(cached) $ECHO_C" >&6
14269 else
14270   lt_cv_prog_compiler_c_o_F77=no
14271    $rm -r conftest 2>/dev/null
14272    mkdir conftest
14273    cd conftest
14274    mkdir out
14275    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14276
14277    lt_compiler_flag="-o out/conftest2.$ac_objext"
14278    # Insert the option either (1) after the last *FLAGS variable, or
14279    # (2) before a word containing "conftest.", or (3) at the end.
14280    # Note that $ac_compile itself does not contain backslashes and begins
14281    # with a dollar sign (not a hyphen), so the echo should work correctly.
14282    lt_compile=`echo "$ac_compile" | $SED \
14283    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14284    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14285    -e 's:$: $lt_compiler_flag:'`
14286    (eval echo "\"\$as_me:14286: $lt_compile\"" >&5)
14287    (eval "$lt_compile" 2>out/conftest.err)
14288    ac_status=$?
14289    cat out/conftest.err >&5
14290    echo "$as_me:14290: \$? = $ac_status" >&5
14291    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14292    then
14293      # The compiler can only warn and ignore the option if not recognized
14294      # So say no if there are warnings
14295      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14296      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14297      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14298        lt_cv_prog_compiler_c_o_F77=yes
14299      fi
14300    fi
14301    chmod u+w . 2>&5
14302    $rm conftest*
14303    # SGI C++ compiler will create directory out/ii_files/ for
14304    # template instantiation
14305    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14306    $rm out/* && rmdir out
14307    cd ..
14308    rmdir conftest
14309    $rm conftest*
14310
14311 fi
14312 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14313 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14314
14315
14316 hard_links="nottested"
14317 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14318   # do not overwrite the value of need_locks provided by the user
14319   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14320 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14321   hard_links=yes
14322   $rm conftest*
14323   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14324   touch conftest.a
14325   ln conftest.a conftest.b 2>&5 || hard_links=no
14326   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14327   { echo "$as_me:$LINENO: result: $hard_links" >&5
14328 echo "${ECHO_T}$hard_links" >&6; }
14329   if test "$hard_links" = no; then
14330     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14331 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14332     need_locks=warn
14333   fi
14334 else
14335   need_locks=no
14336 fi
14337
14338 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14339 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14340
14341   runpath_var=
14342   allow_undefined_flag_F77=
14343   enable_shared_with_static_runtimes_F77=no
14344   archive_cmds_F77=
14345   archive_expsym_cmds_F77=
14346   old_archive_From_new_cmds_F77=
14347   old_archive_from_expsyms_cmds_F77=
14348   export_dynamic_flag_spec_F77=
14349   whole_archive_flag_spec_F77=
14350   thread_safe_flag_spec_F77=
14351   hardcode_libdir_flag_spec_F77=
14352   hardcode_libdir_flag_spec_ld_F77=
14353   hardcode_libdir_separator_F77=
14354   hardcode_direct_F77=no
14355   hardcode_minus_L_F77=no
14356   hardcode_shlibpath_var_F77=unsupported
14357   link_all_deplibs_F77=unknown
14358   hardcode_automatic_F77=no
14359   module_cmds_F77=
14360   module_expsym_cmds_F77=
14361   always_export_symbols_F77=no
14362   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14363   # include_expsyms should be a list of space-separated symbols to be *always*
14364   # included in the symbol list
14365   include_expsyms_F77=
14366   # exclude_expsyms can be an extended regexp of symbols to exclude
14367   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14368   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14369   # as well as any symbol that contains `d'.
14370   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14371   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14372   # platforms (ab)use it in PIC code, but their linkers get confused if
14373   # the symbol is explicitly referenced.  Since portable code cannot
14374   # rely on this symbol name, it's probably fine to never include it in
14375   # preloaded symbol tables.
14376   extract_expsyms_cmds=
14377   # Just being paranoid about ensuring that cc_basename is set.
14378   for cc_temp in $compiler""; do
14379   case $cc_temp in
14380     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14381     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14382     \-*) ;;
14383     *) break;;
14384   esac
14385 done
14386 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14387
14388   case $host_os in
14389   cygwin* | mingw* | pw32*)
14390     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14391     # When not using gcc, we currently assume that we are using
14392     # Microsoft Visual C++.
14393     if test "$GCC" != yes; then
14394       with_gnu_ld=no
14395     fi
14396     ;;
14397   interix*)
14398     # we just hope/assume this is gcc and not c89 (= MSVC++)
14399     with_gnu_ld=yes
14400     ;;
14401   openbsd*)
14402     with_gnu_ld=no
14403     ;;
14404   esac
14405
14406   ld_shlibs_F77=yes
14407   if test "$with_gnu_ld" = yes; then
14408     # If archive_cmds runs LD, not CC, wlarc should be empty
14409     wlarc='${wl}'
14410
14411     # Set some defaults for GNU ld with shared library support. These
14412     # are reset later if shared libraries are not supported. Putting them
14413     # here allows them to be overridden if necessary.
14414     runpath_var=LD_RUN_PATH
14415     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14416     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14417     # ancient GNU ld didn't support --whole-archive et. al.
14418     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14419         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14420       else
14421         whole_archive_flag_spec_F77=
14422     fi
14423     supports_anon_versioning=no
14424     case `$LD -v 2>/dev/null` in
14425       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14426       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14427       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14428       *\ 2.11.*) ;; # other 2.11 versions
14429       *) supports_anon_versioning=yes ;;
14430     esac
14431
14432     # See if GNU ld supports shared libraries.
14433     case $host_os in
14434     aix3* | aix4* | aix5*)
14435       # On AIX/PPC, the GNU linker is very broken
14436       if test "$host_cpu" != ia64; then
14437         ld_shlibs_F77=no
14438         cat <<EOF 1>&2
14439
14440 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14441 *** to be unable to reliably create shared libraries on AIX.
14442 *** Therefore, libtool is disabling shared libraries support.  If you
14443 *** really care for shared libraries, you may want to modify your PATH
14444 *** so that a non-GNU linker is found, and then restart.
14445
14446 EOF
14447       fi
14448       ;;
14449
14450     amigaos*)
14451       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)'
14452       hardcode_libdir_flag_spec_F77='-L$libdir'
14453       hardcode_minus_L_F77=yes
14454
14455       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14456       # that the semantics of dynamic libraries on AmigaOS, at least up
14457       # to version 4, is to share data among multiple programs linked
14458       # with the same dynamic library.  Since this doesn't match the
14459       # behavior of shared libraries on other platforms, we can't use
14460       # them.
14461       ld_shlibs_F77=no
14462       ;;
14463
14464     beos*)
14465       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14466         allow_undefined_flag_F77=unsupported
14467         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14468         # support --undefined.  This deserves some investigation.  FIXME
14469         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14470       else
14471         ld_shlibs_F77=no
14472       fi
14473       ;;
14474
14475     cygwin* | mingw* | pw32*)
14476       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14477       # as there is no search path for DLLs.
14478       hardcode_libdir_flag_spec_F77='-L$libdir'
14479       allow_undefined_flag_F77=unsupported
14480       always_export_symbols_F77=no
14481       enable_shared_with_static_runtimes_F77=yes
14482       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14483
14484       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14485         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14486         # If the export-symbols file already is a .def file (1st line
14487         # is EXPORTS), use it as is; otherwise, prepend...
14488         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14489           cp $export_symbols $output_objdir/$soname.def;
14490         else
14491           echo EXPORTS > $output_objdir/$soname.def;
14492           cat $export_symbols >> $output_objdir/$soname.def;
14493         fi~
14494         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14495       else
14496         ld_shlibs_F77=no
14497       fi
14498       ;;
14499
14500     interix3*)
14501       hardcode_direct_F77=no
14502       hardcode_shlibpath_var_F77=no
14503       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14504       export_dynamic_flag_spec_F77='${wl}-E'
14505       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14506       # Instead, shared libraries are loaded at an image base (0x10000000 by
14507       # default) and relocated if they conflict, which is a slow very memory
14508       # consuming and fragmenting process.  To avoid this, we pick a random,
14509       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14510       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14511       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'
14512       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'
14513       ;;
14514
14515     linux* | k*bsd*-gnu)
14516       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14517         tmp_addflag=
14518         case $cc_basename,$host_cpu in
14519         pgcc*)                          # Portland Group C compiler
14520           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'
14521           tmp_addflag=' $pic_flag'
14522           ;;
14523         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14524           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'
14525           tmp_addflag=' $pic_flag -Mnomain' ;;
14526         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14527           tmp_addflag=' -i_dynamic' ;;
14528         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14529           tmp_addflag=' -i_dynamic -nofor_main' ;;
14530         ifc* | ifort*)                  # Intel Fortran compiler
14531           tmp_addflag=' -nofor_main' ;;
14532         esac
14533         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14534
14535         if test $supports_anon_versioning = yes; then
14536           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14537   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14538   $echo "local: *; };" >> $output_objdir/$libname.ver~
14539           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14540         fi
14541         link_all_deplibs_F77=no
14542       else
14543         ld_shlibs_F77=no
14544       fi
14545       ;;
14546
14547     netbsd* | netbsdelf*-gnu)
14548       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14549         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14550         wlarc=
14551       else
14552         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14553         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14554       fi
14555       ;;
14556
14557     solaris*)
14558       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14559         ld_shlibs_F77=no
14560         cat <<EOF 1>&2
14561
14562 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14563 *** create shared libraries on Solaris systems.  Therefore, libtool
14564 *** is disabling shared libraries support.  We urge you to upgrade GNU
14565 *** binutils to release 2.9.1 or newer.  Another option is to modify
14566 *** your PATH or compiler configuration so that the native linker is
14567 *** used, and then restart.
14568
14569 EOF
14570       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14571         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14572         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14573       else
14574         ld_shlibs_F77=no
14575       fi
14576       ;;
14577
14578     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14579       case `$LD -v 2>&1` in
14580         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14581         ld_shlibs_F77=no
14582         cat <<_LT_EOF 1>&2
14583
14584 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14585 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14586 *** is disabling shared libraries support.  We urge you to upgrade GNU
14587 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14588 *** your PATH or compiler configuration so that the native linker is
14589 *** used, and then restart.
14590
14591 _LT_EOF
14592         ;;
14593         *)
14594           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14595             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14596             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14597             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14598           else
14599             ld_shlibs_F77=no
14600           fi
14601         ;;
14602       esac
14603       ;;
14604
14605     sunos4*)
14606       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14607       wlarc=
14608       hardcode_direct_F77=yes
14609       hardcode_shlibpath_var_F77=no
14610       ;;
14611
14612     *)
14613       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14614         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14615         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14616       else
14617         ld_shlibs_F77=no
14618       fi
14619       ;;
14620     esac
14621
14622     if test "$ld_shlibs_F77" = no; then
14623       runpath_var=
14624       hardcode_libdir_flag_spec_F77=
14625       export_dynamic_flag_spec_F77=
14626       whole_archive_flag_spec_F77=
14627     fi
14628   else
14629     # PORTME fill in a description of your system's linker (not GNU ld)
14630     case $host_os in
14631     aix3*)
14632       allow_undefined_flag_F77=unsupported
14633       always_export_symbols_F77=yes
14634       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'
14635       # Note: this linker hardcodes the directories in LIBPATH if there
14636       # are no directories specified by -L.
14637       hardcode_minus_L_F77=yes
14638       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14639         # Neither direct hardcoding nor static linking is supported with a
14640         # broken collect2.
14641         hardcode_direct_F77=unsupported
14642       fi
14643       ;;
14644
14645     aix4* | aix5*)
14646       if test "$host_cpu" = ia64; then
14647         # On IA64, the linker does run time linking by default, so we don't
14648         # have to do anything special.
14649         aix_use_runtimelinking=no
14650         exp_sym_flag='-Bexport'
14651         no_entry_flag=""
14652       else
14653         # If we're using GNU nm, then we don't want the "-C" option.
14654         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14655         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14656           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'
14657         else
14658           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'
14659         fi
14660         aix_use_runtimelinking=no
14661
14662         # Test if we are trying to use run time linking or normal
14663         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14664         # need to do runtime linking.
14665         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14666           for ld_flag in $LDFLAGS; do
14667           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14668             aix_use_runtimelinking=yes
14669             break
14670           fi
14671           done
14672           ;;
14673         esac
14674
14675         exp_sym_flag='-bexport'
14676         no_entry_flag='-bnoentry'
14677       fi
14678
14679       # When large executables or shared objects are built, AIX ld can
14680       # have problems creating the table of contents.  If linking a library
14681       # or program results in "error TOC overflow" add -mminimal-toc to
14682       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14683       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14684
14685       archive_cmds_F77=''
14686       hardcode_direct_F77=yes
14687       hardcode_libdir_separator_F77=':'
14688       link_all_deplibs_F77=yes
14689
14690       if test "$GCC" = yes; then
14691         case $host_os in aix4.[012]|aix4.[012].*)
14692         # We only want to do this on AIX 4.2 and lower, the check
14693         # below for broken collect2 doesn't work under 4.3+
14694           collect2name=`${CC} -print-prog-name=collect2`
14695           if test -f "$collect2name" && \
14696            strings "$collect2name" | grep resolve_lib_name >/dev/null
14697           then
14698           # We have reworked collect2
14699           hardcode_direct_F77=yes
14700           else
14701           # We have old collect2
14702           hardcode_direct_F77=unsupported
14703           # It fails to find uninstalled libraries when the uninstalled
14704           # path is not listed in the libpath.  Setting hardcode_minus_L
14705           # to unsupported forces relinking
14706           hardcode_minus_L_F77=yes
14707           hardcode_libdir_flag_spec_F77='-L$libdir'
14708           hardcode_libdir_separator_F77=
14709           fi
14710           ;;
14711         esac
14712         shared_flag='-shared'
14713         if test "$aix_use_runtimelinking" = yes; then
14714           shared_flag="$shared_flag "'${wl}-G'
14715         fi
14716       else
14717         # not using gcc
14718         if test "$host_cpu" = ia64; then
14719         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14720         # chokes on -Wl,-G. The following line is correct:
14721           shared_flag='-G'
14722         else
14723           if test "$aix_use_runtimelinking" = yes; then
14724             shared_flag='${wl}-G'
14725           else
14726             shared_flag='${wl}-bM:SRE'
14727           fi
14728         fi
14729       fi
14730
14731       # It seems that -bexpall does not export symbols beginning with
14732       # underscore (_), so it is better to generate a list of symbols to export.
14733       always_export_symbols_F77=yes
14734       if test "$aix_use_runtimelinking" = yes; then
14735         # Warning - without using the other runtime loading flags (-brtl),
14736         # -berok will link without error, but may produce a broken library.
14737         allow_undefined_flag_F77='-berok'
14738        # Determine the default libpath from the value encoded in an empty executable.
14739        cat >conftest.$ac_ext <<_ACEOF
14740       program main
14741
14742       end
14743 _ACEOF
14744 rm -f conftest.$ac_objext conftest$ac_exeext
14745 if { (ac_try="$ac_link"
14746 case "(($ac_try" in
14747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14748   *) ac_try_echo=$ac_try;;
14749 esac
14750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14751   (eval "$ac_link") 2>conftest.er1
14752   ac_status=$?
14753   grep -v '^ *+' conftest.er1 >conftest.err
14754   rm -f conftest.er1
14755   cat conftest.err >&5
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); } && {
14758          test -z "$ac_f77_werror_flag" ||
14759          test ! -s conftest.err
14760        } && test -s conftest$ac_exeext &&
14761        $as_test_x conftest$ac_exeext; then
14762
14763 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14764 }'`
14765 # Check for a 64-bit object if we didn't find anything.
14766 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; }
14767 }'`; fi
14768 else
14769   echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14771
14772
14773 fi
14774
14775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14776       conftest$ac_exeext conftest.$ac_ext
14777 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14778
14779        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14780         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"
14781        else
14782         if test "$host_cpu" = ia64; then
14783           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14784           allow_undefined_flag_F77="-z nodefs"
14785           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"
14786         else
14787          # Determine the default libpath from the value encoded in an empty executable.
14788          cat >conftest.$ac_ext <<_ACEOF
14789       program main
14790
14791       end
14792 _ACEOF
14793 rm -f conftest.$ac_objext conftest$ac_exeext
14794 if { (ac_try="$ac_link"
14795 case "(($ac_try" in
14796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797   *) ac_try_echo=$ac_try;;
14798 esac
14799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800   (eval "$ac_link") 2>conftest.er1
14801   ac_status=$?
14802   grep -v '^ *+' conftest.er1 >conftest.err
14803   rm -f conftest.er1
14804   cat conftest.err >&5
14805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806   (exit $ac_status); } && {
14807          test -z "$ac_f77_werror_flag" ||
14808          test ! -s conftest.err
14809        } && test -s conftest$ac_exeext &&
14810        $as_test_x conftest$ac_exeext; then
14811
14812 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14813 }'`
14814 # Check for a 64-bit object if we didn't find anything.
14815 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; }
14816 }'`; fi
14817 else
14818   echo "$as_me: failed program was:" >&5
14819 sed 's/^/| /' conftest.$ac_ext >&5
14820
14821
14822 fi
14823
14824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14825       conftest$ac_exeext conftest.$ac_ext
14826 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14827
14828          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14829           # Warning - without using the other run time loading flags,
14830           # -berok will link without error, but may produce a broken library.
14831           no_undefined_flag_F77=' ${wl}-bernotok'
14832           allow_undefined_flag_F77=' ${wl}-berok'
14833           # Exported symbols can be pulled into shared objects from archives
14834           whole_archive_flag_spec_F77='$convenience'
14835           archive_cmds_need_lc_F77=yes
14836           # This is similar to how AIX traditionally builds its shared libraries.
14837           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'
14838         fi
14839       fi
14840       ;;
14841
14842     amigaos*)
14843       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)'
14844       hardcode_libdir_flag_spec_F77='-L$libdir'
14845       hardcode_minus_L_F77=yes
14846       # see comment about different semantics on the GNU ld section
14847       ld_shlibs_F77=no
14848       ;;
14849
14850     bsdi[45]*)
14851       export_dynamic_flag_spec_F77=-rdynamic
14852       ;;
14853
14854     cygwin* | mingw* | pw32*)
14855       # When not using gcc, we currently assume that we are using
14856       # Microsoft Visual C++.
14857       # hardcode_libdir_flag_spec is actually meaningless, as there is
14858       # no search path for DLLs.
14859       hardcode_libdir_flag_spec_F77=' '
14860       allow_undefined_flag_F77=unsupported
14861       # Tell ltmain to make .lib files, not .a files.
14862       libext=lib
14863       # Tell ltmain to make .dll files, not .so files.
14864       shrext_cmds=".dll"
14865       # FIXME: Setting linknames here is a bad hack.
14866       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14867       # The linker will automatically build a .lib file if we build a DLL.
14868       old_archive_From_new_cmds_F77='true'
14869       # FIXME: Should let the user specify the lib program.
14870       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14871       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14872       enable_shared_with_static_runtimes_F77=yes
14873       ;;
14874
14875     darwin* | rhapsody*)
14876       case $host_os in
14877         rhapsody* | darwin1.[012])
14878          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14879          ;;
14880        *) # Darwin 1.3 on
14881          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14882            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14883          else
14884            case ${MACOSX_DEPLOYMENT_TARGET} in
14885              10.[012])
14886                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14887                ;;
14888              10.*)
14889                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14890                ;;
14891            esac
14892          fi
14893          ;;
14894       esac
14895       archive_cmds_need_lc_F77=no
14896       hardcode_direct_F77=no
14897       hardcode_automatic_F77=yes
14898       hardcode_shlibpath_var_F77=unsupported
14899       whole_archive_flag_spec_F77=''
14900       link_all_deplibs_F77=yes
14901     if test "$GCC" = yes ; then
14902         output_verbose_link_cmd='echo'
14903         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14904       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14905       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14906       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}'
14907       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}'
14908     else
14909       case $cc_basename in
14910         xlc*)
14911          output_verbose_link_cmd='echo'
14912          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14913          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14914           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14915          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}'
14916           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}'
14917           ;;
14918        *)
14919          ld_shlibs_F77=no
14920           ;;
14921       esac
14922     fi
14923       ;;
14924
14925     dgux*)
14926       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14927       hardcode_libdir_flag_spec_F77='-L$libdir'
14928       hardcode_shlibpath_var_F77=no
14929       ;;
14930
14931     freebsd1*)
14932       ld_shlibs_F77=no
14933       ;;
14934
14935     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14936     # support.  Future versions do this automatically, but an explicit c++rt0.o
14937     # does not break anything, and helps significantly (at the cost of a little
14938     # extra space).
14939     freebsd2.2*)
14940       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14941       hardcode_libdir_flag_spec_F77='-R$libdir'
14942       hardcode_direct_F77=yes
14943       hardcode_shlibpath_var_F77=no
14944       ;;
14945
14946     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14947     freebsd2*)
14948       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14949       hardcode_direct_F77=yes
14950       hardcode_minus_L_F77=yes
14951       hardcode_shlibpath_var_F77=no
14952       ;;
14953
14954     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14955     freebsd* | dragonfly*)
14956       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14957       hardcode_libdir_flag_spec_F77='-R$libdir'
14958       hardcode_direct_F77=yes
14959       hardcode_shlibpath_var_F77=no
14960       ;;
14961
14962     hpux9*)
14963       if test "$GCC" = yes; then
14964         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'
14965       else
14966         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'
14967       fi
14968       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14969       hardcode_libdir_separator_F77=:
14970       hardcode_direct_F77=yes
14971
14972       # hardcode_minus_L: Not really in the search PATH,
14973       # but as the default location of the library.
14974       hardcode_minus_L_F77=yes
14975       export_dynamic_flag_spec_F77='${wl}-E'
14976       ;;
14977
14978     hpux10*)
14979       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14980         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14981       else
14982         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14983       fi
14984       if test "$with_gnu_ld" = no; then
14985         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14986         hardcode_libdir_separator_F77=:
14987
14988         hardcode_direct_F77=yes
14989         export_dynamic_flag_spec_F77='${wl}-E'
14990
14991         # hardcode_minus_L: Not really in the search PATH,
14992         # but as the default location of the library.
14993         hardcode_minus_L_F77=yes
14994       fi
14995       ;;
14996
14997     hpux11*)
14998       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14999         case $host_cpu in
15000         hppa*64*)
15001           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15002           ;;
15003         ia64*)
15004           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15005           ;;
15006         *)
15007           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15008           ;;
15009         esac
15010       else
15011         case $host_cpu in
15012         hppa*64*)
15013           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15014           ;;
15015         ia64*)
15016           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15017           ;;
15018         *)
15019           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15020           ;;
15021         esac
15022       fi
15023       if test "$with_gnu_ld" = no; then
15024         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15025         hardcode_libdir_separator_F77=:
15026
15027         case $host_cpu in
15028         hppa*64*|ia64*)
15029           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15030           hardcode_direct_F77=no
15031           hardcode_shlibpath_var_F77=no
15032           ;;
15033         *)
15034           hardcode_direct_F77=yes
15035           export_dynamic_flag_spec_F77='${wl}-E'
15036
15037           # hardcode_minus_L: Not really in the search PATH,
15038           # but as the default location of the library.
15039           hardcode_minus_L_F77=yes
15040           ;;
15041         esac
15042       fi
15043       ;;
15044
15045     irix5* | irix6* | nonstopux*)
15046       if test "$GCC" = yes; then
15047         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'
15048       else
15049         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'
15050         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15051       fi
15052       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15053       hardcode_libdir_separator_F77=:
15054       link_all_deplibs_F77=yes
15055       ;;
15056
15057     netbsd* | netbsdelf*-gnu)
15058       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15059         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15060       else
15061         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15062       fi
15063       hardcode_libdir_flag_spec_F77='-R$libdir'
15064       hardcode_direct_F77=yes
15065       hardcode_shlibpath_var_F77=no
15066       ;;
15067
15068     newsos6)
15069       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15070       hardcode_direct_F77=yes
15071       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15072       hardcode_libdir_separator_F77=:
15073       hardcode_shlibpath_var_F77=no
15074       ;;
15075
15076     openbsd*)
15077       hardcode_direct_F77=yes
15078       hardcode_shlibpath_var_F77=no
15079       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15080         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15081         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15082         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15083         export_dynamic_flag_spec_F77='${wl}-E'
15084       else
15085        case $host_os in
15086          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15087            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15088            hardcode_libdir_flag_spec_F77='-R$libdir'
15089            ;;
15090          *)
15091            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15092            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15093            ;;
15094        esac
15095       fi
15096       ;;
15097
15098     os2*)
15099       hardcode_libdir_flag_spec_F77='-L$libdir'
15100       hardcode_minus_L_F77=yes
15101       allow_undefined_flag_F77=unsupported
15102       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'
15103       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15104       ;;
15105
15106     osf3*)
15107       if test "$GCC" = yes; then
15108         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15109         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'
15110       else
15111         allow_undefined_flag_F77=' -expect_unresolved \*'
15112         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'
15113       fi
15114       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15115       hardcode_libdir_separator_F77=:
15116       ;;
15117
15118     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15119       if test "$GCC" = yes; then
15120         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15121         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'
15122         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15123       else
15124         allow_undefined_flag_F77=' -expect_unresolved \*'
15125         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'
15126         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~
15127         $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'
15128
15129         # Both c and cxx compiler support -rpath directly
15130         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15131       fi
15132       hardcode_libdir_separator_F77=:
15133       ;;
15134
15135     solaris*)
15136       no_undefined_flag_F77=' -z text'
15137       if test "$GCC" = yes; then
15138         wlarc='${wl}'
15139         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15140         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15141           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15142       else
15143         wlarc=''
15144         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15145         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15146         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15147       fi
15148       hardcode_libdir_flag_spec_F77='-R$libdir'
15149       hardcode_shlibpath_var_F77=no
15150       case $host_os in
15151       solaris2.[0-5] | solaris2.[0-5].*) ;;
15152       *)
15153         # The compiler driver will combine linker options so we
15154         # cannot just pass the convience library names through
15155         # without $wl, iff we do not link with $LD.
15156         # Luckily, gcc supports the same syntax we need for Sun Studio.
15157         # Supported since Solaris 2.6 (maybe 2.5.1?)
15158         case $wlarc in
15159         '')
15160           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15161         *)
15162           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' ;;
15163         esac ;;
15164       esac
15165       link_all_deplibs_F77=yes
15166       ;;
15167
15168     sunos4*)
15169       if test "x$host_vendor" = xsequent; then
15170         # Use $CC to link under sequent, because it throws in some extra .o
15171         # files that make .init and .fini sections work.
15172         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15173       else
15174         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15175       fi
15176       hardcode_libdir_flag_spec_F77='-L$libdir'
15177       hardcode_direct_F77=yes
15178       hardcode_minus_L_F77=yes
15179       hardcode_shlibpath_var_F77=no
15180       ;;
15181
15182     sysv4)
15183       case $host_vendor in
15184         sni)
15185           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15186           hardcode_direct_F77=yes # is this really true???
15187         ;;
15188         siemens)
15189           ## LD is ld it makes a PLAMLIB
15190           ## CC just makes a GrossModule.
15191           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15192           reload_cmds_F77='$CC -r -o $output$reload_objs'
15193           hardcode_direct_F77=no
15194         ;;
15195         motorola)
15196           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15197           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15198         ;;
15199       esac
15200       runpath_var='LD_RUN_PATH'
15201       hardcode_shlibpath_var_F77=no
15202       ;;
15203
15204     sysv4.3*)
15205       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15206       hardcode_shlibpath_var_F77=no
15207       export_dynamic_flag_spec_F77='-Bexport'
15208       ;;
15209
15210     sysv4*MP*)
15211       if test -d /usr/nec; then
15212         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15213         hardcode_shlibpath_var_F77=no
15214         runpath_var=LD_RUN_PATH
15215         hardcode_runpath_var=yes
15216         ld_shlibs_F77=yes
15217       fi
15218       ;;
15219
15220     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15221       no_undefined_flag_F77='${wl}-z,text'
15222       archive_cmds_need_lc_F77=no
15223       hardcode_shlibpath_var_F77=no
15224       runpath_var='LD_RUN_PATH'
15225
15226       if test "$GCC" = yes; then
15227         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15228         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15229       else
15230         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15231         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15232       fi
15233       ;;
15234
15235     sysv5* | sco3.2v5* | sco5v6*)
15236       # Note: We can NOT use -z defs as we might desire, because we do not
15237       # link with -lc, and that would cause any symbols used from libc to
15238       # always be unresolved, which means just about no library would
15239       # ever link correctly.  If we're not using GNU ld we use -z text
15240       # though, which does catch some bad symbols but isn't as heavy-handed
15241       # as -z defs.
15242       no_undefined_flag_F77='${wl}-z,text'
15243       allow_undefined_flag_F77='${wl}-z,nodefs'
15244       archive_cmds_need_lc_F77=no
15245       hardcode_shlibpath_var_F77=no
15246       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15247       hardcode_libdir_separator_F77=':'
15248       link_all_deplibs_F77=yes
15249       export_dynamic_flag_spec_F77='${wl}-Bexport'
15250       runpath_var='LD_RUN_PATH'
15251
15252       if test "$GCC" = yes; then
15253         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15254         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15255       else
15256         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15257         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15258       fi
15259       ;;
15260
15261     uts4*)
15262       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15263       hardcode_libdir_flag_spec_F77='-L$libdir'
15264       hardcode_shlibpath_var_F77=no
15265       ;;
15266
15267     *)
15268       ld_shlibs_F77=no
15269       ;;
15270     esac
15271   fi
15272
15273 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15274 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15275 test "$ld_shlibs_F77" = no && can_build_shared=no
15276
15277 #
15278 # Do we need to explicitly link libc?
15279 #
15280 case "x$archive_cmds_need_lc_F77" in
15281 x|xyes)
15282   # Assume -lc should be added
15283   archive_cmds_need_lc_F77=yes
15284
15285   if test "$enable_shared" = yes && test "$GCC" = yes; then
15286     case $archive_cmds_F77 in
15287     *'~'*)
15288       # FIXME: we may have to deal with multi-command sequences.
15289       ;;
15290     '$CC '*)
15291       # Test whether the compiler implicitly links with -lc since on some
15292       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15293       # to ld, don't add -lc before -lgcc.
15294       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15295 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15296       $rm conftest*
15297       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15298
15299       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15300   (eval $ac_compile) 2>&5
15301   ac_status=$?
15302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303   (exit $ac_status); } 2>conftest.err; then
15304         soname=conftest
15305         lib=conftest
15306         libobjs=conftest.$ac_objext
15307         deplibs=
15308         wl=$lt_prog_compiler_wl_F77
15309         pic_flag=$lt_prog_compiler_pic_F77
15310         compiler_flags=-v
15311         linker_flags=-v
15312         verstring=
15313         output_objdir=.
15314         libname=conftest
15315         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15316         allow_undefined_flag_F77=
15317         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15318   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15319   ac_status=$?
15320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321   (exit $ac_status); }
15322         then
15323           archive_cmds_need_lc_F77=no
15324         else
15325           archive_cmds_need_lc_F77=yes
15326         fi
15327         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15328       else
15329         cat conftest.err 1>&5
15330       fi
15331       $rm conftest*
15332       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15333 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15334       ;;
15335     esac
15336   fi
15337   ;;
15338 esac
15339
15340 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15341 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15342 library_names_spec=
15343 libname_spec='lib$name'
15344 soname_spec=
15345 shrext_cmds=".so"
15346 postinstall_cmds=
15347 postuninstall_cmds=
15348 finish_cmds=
15349 finish_eval=
15350 shlibpath_var=
15351 shlibpath_overrides_runpath=unknown
15352 version_type=none
15353 dynamic_linker="$host_os ld.so"
15354 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15355 if test "$GCC" = yes; then
15356   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15357   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15358     # if the path contains ";" then we assume it to be the separator
15359     # otherwise default to the standard path separator (i.e. ":") - it is
15360     # assumed that no part of a normal pathname contains ";" but that should
15361     # okay in the real world where ";" in dirpaths is itself problematic.
15362     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15363   else
15364     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15365   fi
15366 else
15367   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15368 fi
15369 need_lib_prefix=unknown
15370 hardcode_into_libs=no
15371
15372 # when you set need_version to no, make sure it does not cause -set_version
15373 # flags to be left without arguments
15374 need_version=unknown
15375
15376 case $host_os in
15377 aix3*)
15378   version_type=linux
15379   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15380   shlibpath_var=LIBPATH
15381
15382   # AIX 3 has no versioning support, so we append a major version to the name.
15383   soname_spec='${libname}${release}${shared_ext}$major'
15384   ;;
15385
15386 aix4* | aix5*)
15387   version_type=linux
15388   need_lib_prefix=no
15389   need_version=no
15390   hardcode_into_libs=yes
15391   if test "$host_cpu" = ia64; then
15392     # AIX 5 supports IA64
15393     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15394     shlibpath_var=LD_LIBRARY_PATH
15395   else
15396     # With GCC up to 2.95.x, collect2 would create an import file
15397     # for dependence libraries.  The import file would start with
15398     # the line `#! .'.  This would cause the generated library to
15399     # depend on `.', always an invalid library.  This was fixed in
15400     # development snapshots of GCC prior to 3.0.
15401     case $host_os in
15402       aix4 | aix4.[01] | aix4.[01].*)
15403       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15404            echo ' yes '
15405            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15406         :
15407       else
15408         can_build_shared=no
15409       fi
15410       ;;
15411     esac
15412     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15413     # soname into executable. Probably we can add versioning support to
15414     # collect2, so additional links can be useful in future.
15415     if test "$aix_use_runtimelinking" = yes; then
15416       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15417       # instead of lib<name>.a to let people know that these are not
15418       # typical AIX shared libraries.
15419       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15420     else
15421       # We preserve .a as extension for shared libraries through AIX4.2
15422       # and later when we are not doing run time linking.
15423       library_names_spec='${libname}${release}.a $libname.a'
15424       soname_spec='${libname}${release}${shared_ext}$major'
15425     fi
15426     shlibpath_var=LIBPATH
15427   fi
15428   ;;
15429
15430 amigaos*)
15431   library_names_spec='$libname.ixlibrary $libname.a'
15432   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15433   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'
15434   ;;
15435
15436 beos*)
15437   library_names_spec='${libname}${shared_ext}'
15438   dynamic_linker="$host_os ld.so"
15439   shlibpath_var=LIBRARY_PATH
15440   ;;
15441
15442 bsdi[45]*)
15443   version_type=linux
15444   need_version=no
15445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15446   soname_spec='${libname}${release}${shared_ext}$major'
15447   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15448   shlibpath_var=LD_LIBRARY_PATH
15449   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15450   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15451   # the default ld.so.conf also contains /usr/contrib/lib and
15452   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15453   # libtool to hard-code these into programs
15454   ;;
15455
15456 cygwin* | mingw* | pw32*)
15457   version_type=windows
15458   shrext_cmds=".dll"
15459   need_version=no
15460   need_lib_prefix=no
15461
15462   case $GCC,$host_os in
15463   yes,cygwin* | yes,mingw* | yes,pw32*)
15464     library_names_spec='$libname.dll.a'
15465     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15466     postinstall_cmds='base_file=`basename \${file}`~
15467       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15468       dldir=$destdir/`dirname \$dlpath`~
15469       test -d \$dldir || mkdir -p \$dldir~
15470       $install_prog $dir/$dlname \$dldir/$dlname~
15471       chmod a+x \$dldir/$dlname'
15472     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15473       dlpath=$dir/\$dldll~
15474        $rm \$dlpath'
15475     shlibpath_overrides_runpath=yes
15476
15477     case $host_os in
15478     cygwin*)
15479       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15480       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15481       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15482       ;;
15483     mingw*)
15484       # MinGW DLLs use traditional 'lib' prefix
15485       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15486       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15487       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15488         # It is most probably a Windows format PATH printed by
15489         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15490         # path with ; separators, and with drive letters. We can handle the
15491         # drive letters (cygwin fileutils understands them), so leave them,
15492         # especially as we might pass files found there to a mingw objdump,
15493         # which wouldn't understand a cygwinified path. Ahh.
15494         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15495       else
15496         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15497       fi
15498       ;;
15499     pw32*)
15500       # pw32 DLLs use 'pw' prefix rather than 'lib'
15501       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15502       ;;
15503     esac
15504     ;;
15505
15506   *)
15507     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15508     ;;
15509   esac
15510   dynamic_linker='Win32 ld.exe'
15511   # FIXME: first we should search . and the directory the executable is in
15512   shlibpath_var=PATH
15513   ;;
15514
15515 darwin* | rhapsody*)
15516   dynamic_linker="$host_os dyld"
15517   version_type=darwin
15518   need_lib_prefix=no
15519   need_version=no
15520   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15521   soname_spec='${libname}${release}${major}$shared_ext'
15522   shlibpath_overrides_runpath=yes
15523   shlibpath_var=DYLD_LIBRARY_PATH
15524   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15525   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15526   if test "$GCC" = yes; then
15527     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"`
15528   else
15529     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15530   fi
15531   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15532   ;;
15533
15534 dgux*)
15535   version_type=linux
15536   need_lib_prefix=no
15537   need_version=no
15538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15539   soname_spec='${libname}${release}${shared_ext}$major'
15540   shlibpath_var=LD_LIBRARY_PATH
15541   ;;
15542
15543 freebsd1*)
15544   dynamic_linker=no
15545   ;;
15546
15547 freebsd* | dragonfly*)
15548   # DragonFly does not have aout.  When/if they implement a new
15549   # versioning mechanism, adjust this.
15550   if test -x /usr/bin/objformat; then
15551     objformat=`/usr/bin/objformat`
15552   else
15553     case $host_os in
15554     freebsd[123]*) objformat=aout ;;
15555     *) objformat=elf ;;
15556     esac
15557   fi
15558   version_type=freebsd-$objformat
15559   case $version_type in
15560     freebsd-elf*)
15561       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15562       need_version=no
15563       need_lib_prefix=no
15564       ;;
15565     freebsd-*)
15566       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15567       need_version=yes
15568       ;;
15569   esac
15570   shlibpath_var=LD_LIBRARY_PATH
15571   case $host_os in
15572   freebsd2*)
15573     shlibpath_overrides_runpath=yes
15574     ;;
15575   freebsd3.[01]* | freebsdelf3.[01]*)
15576     shlibpath_overrides_runpath=yes
15577     hardcode_into_libs=yes
15578     ;;
15579   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15580   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15581     shlibpath_overrides_runpath=no
15582     hardcode_into_libs=yes
15583     ;;
15584   freebsd*) # from 4.6 on
15585     shlibpath_overrides_runpath=yes
15586     hardcode_into_libs=yes
15587     ;;
15588   esac
15589   ;;
15590
15591 gnu*)
15592   version_type=linux
15593   need_lib_prefix=no
15594   need_version=no
15595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15596   soname_spec='${libname}${release}${shared_ext}$major'
15597   shlibpath_var=LD_LIBRARY_PATH
15598   hardcode_into_libs=yes
15599   ;;
15600
15601 hpux9* | hpux10* | hpux11*)
15602   # Give a soname corresponding to the major version so that dld.sl refuses to
15603   # link against other versions.
15604   version_type=sunos
15605   need_lib_prefix=no
15606   need_version=no
15607   case $host_cpu in
15608   ia64*)
15609     shrext_cmds='.so'
15610     hardcode_into_libs=yes
15611     dynamic_linker="$host_os dld.so"
15612     shlibpath_var=LD_LIBRARY_PATH
15613     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15614     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15615     soname_spec='${libname}${release}${shared_ext}$major'
15616     if test "X$HPUX_IA64_MODE" = X32; then
15617       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15618     else
15619       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15620     fi
15621     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15622     ;;
15623    hppa*64*)
15624      shrext_cmds='.sl'
15625      hardcode_into_libs=yes
15626      dynamic_linker="$host_os dld.sl"
15627      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15628      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15629      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15630      soname_spec='${libname}${release}${shared_ext}$major'
15631      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15632      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15633      ;;
15634    *)
15635     shrext_cmds='.sl'
15636     dynamic_linker="$host_os dld.sl"
15637     shlibpath_var=SHLIB_PATH
15638     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15639     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15640     soname_spec='${libname}${release}${shared_ext}$major'
15641     ;;
15642   esac
15643   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15644   postinstall_cmds='chmod 555 $lib'
15645   ;;
15646
15647 interix3*)
15648   version_type=linux
15649   need_lib_prefix=no
15650   need_version=no
15651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15652   soname_spec='${libname}${release}${shared_ext}$major'
15653   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15654   shlibpath_var=LD_LIBRARY_PATH
15655   shlibpath_overrides_runpath=no
15656   hardcode_into_libs=yes
15657   ;;
15658
15659 irix5* | irix6* | nonstopux*)
15660   case $host_os in
15661     nonstopux*) version_type=nonstopux ;;
15662     *)
15663         if test "$lt_cv_prog_gnu_ld" = yes; then
15664                 version_type=linux
15665         else
15666                 version_type=irix
15667         fi ;;
15668   esac
15669   need_lib_prefix=no
15670   need_version=no
15671   soname_spec='${libname}${release}${shared_ext}$major'
15672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15673   case $host_os in
15674   irix5* | nonstopux*)
15675     libsuff= shlibsuff=
15676     ;;
15677   *)
15678     case $LD in # libtool.m4 will add one of these switches to LD
15679     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15680       libsuff= shlibsuff= libmagic=32-bit;;
15681     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15682       libsuff=32 shlibsuff=N32 libmagic=N32;;
15683     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15684       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15685     *) libsuff= shlibsuff= libmagic=never-match;;
15686     esac
15687     ;;
15688   esac
15689   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15690   shlibpath_overrides_runpath=no
15691   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15692   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15693   hardcode_into_libs=yes
15694   ;;
15695
15696 # No shared lib support for Linux oldld, aout, or coff.
15697 linux*oldld* | linux*aout* | linux*coff*)
15698   dynamic_linker=no
15699   ;;
15700
15701 # This must be Linux ELF.
15702 linux* | k*bsd*-gnu)
15703   version_type=linux
15704   need_lib_prefix=no
15705   need_version=no
15706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15707   soname_spec='${libname}${release}${shared_ext}$major'
15708   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15709   shlibpath_var=LD_LIBRARY_PATH
15710   shlibpath_overrides_runpath=no
15711   # This implies no fast_install, which is unacceptable.
15712   # Some rework will be needed to allow for fast_install
15713   # before this can be enabled.
15714   hardcode_into_libs=yes
15715
15716   # Append ld.so.conf contents to the search path
15717   if test -f /etc/ld.so.conf; then
15718     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' ' '`
15719     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15720   fi
15721
15722   # We used to test for /lib/ld.so.1 and disable shared libraries on
15723   # powerpc, because MkLinux only supported shared libraries with the
15724   # GNU dynamic linker.  Since this was broken with cross compilers,
15725   # most powerpc-linux boxes support dynamic linking these days and
15726   # people can always --disable-shared, the test was removed, and we
15727   # assume the GNU/Linux dynamic linker is in use.
15728   dynamic_linker='GNU/Linux ld.so'
15729   ;;
15730
15731 netbsdelf*-gnu)
15732   version_type=linux
15733   need_lib_prefix=no
15734   need_version=no
15735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15736   soname_spec='${libname}${release}${shared_ext}$major'
15737   shlibpath_var=LD_LIBRARY_PATH
15738   shlibpath_overrides_runpath=no
15739   hardcode_into_libs=yes
15740   dynamic_linker='NetBSD ld.elf_so'
15741   ;;
15742
15743 netbsd*)
15744   version_type=sunos
15745   need_lib_prefix=no
15746   need_version=no
15747   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15748     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15749     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15750     dynamic_linker='NetBSD (a.out) ld.so'
15751   else
15752     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15753     soname_spec='${libname}${release}${shared_ext}$major'
15754     dynamic_linker='NetBSD ld.elf_so'
15755   fi
15756   shlibpath_var=LD_LIBRARY_PATH
15757   shlibpath_overrides_runpath=yes
15758   hardcode_into_libs=yes
15759   ;;
15760
15761 newsos6)
15762   version_type=linux
15763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15764   shlibpath_var=LD_LIBRARY_PATH
15765   shlibpath_overrides_runpath=yes
15766   ;;
15767
15768 nto-qnx*)
15769   version_type=linux
15770   need_lib_prefix=no
15771   need_version=no
15772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15773   soname_spec='${libname}${release}${shared_ext}$major'
15774   shlibpath_var=LD_LIBRARY_PATH
15775   shlibpath_overrides_runpath=yes
15776   ;;
15777
15778 openbsd*)
15779   version_type=sunos
15780   sys_lib_dlsearch_path_spec="/usr/lib"
15781   need_lib_prefix=no
15782   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15783   case $host_os in
15784     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15785     *)                         need_version=no  ;;
15786   esac
15787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15788   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15789   shlibpath_var=LD_LIBRARY_PATH
15790   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15791     case $host_os in
15792       openbsd2.[89] | openbsd2.[89].*)
15793         shlibpath_overrides_runpath=no
15794         ;;
15795       *)
15796         shlibpath_overrides_runpath=yes
15797         ;;
15798       esac
15799   else
15800     shlibpath_overrides_runpath=yes
15801   fi
15802   ;;
15803
15804 os2*)
15805   libname_spec='$name'
15806   shrext_cmds=".dll"
15807   need_lib_prefix=no
15808   library_names_spec='$libname${shared_ext} $libname.a'
15809   dynamic_linker='OS/2 ld.exe'
15810   shlibpath_var=LIBPATH
15811   ;;
15812
15813 osf3* | osf4* | osf5*)
15814   version_type=osf
15815   need_lib_prefix=no
15816   need_version=no
15817   soname_spec='${libname}${release}${shared_ext}$major'
15818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15819   shlibpath_var=LD_LIBRARY_PATH
15820   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15821   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15822   ;;
15823
15824 solaris*)
15825   version_type=linux
15826   need_lib_prefix=no
15827   need_version=no
15828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15829   soname_spec='${libname}${release}${shared_ext}$major'
15830   shlibpath_var=LD_LIBRARY_PATH
15831   shlibpath_overrides_runpath=yes
15832   hardcode_into_libs=yes
15833   # ldd complains unless libraries are executable
15834   postinstall_cmds='chmod +x $lib'
15835   ;;
15836
15837 sunos4*)
15838   version_type=sunos
15839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15840   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15841   shlibpath_var=LD_LIBRARY_PATH
15842   shlibpath_overrides_runpath=yes
15843   if test "$with_gnu_ld" = yes; then
15844     need_lib_prefix=no
15845   fi
15846   need_version=yes
15847   ;;
15848
15849 sysv4 | sysv4.3*)
15850   version_type=linux
15851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15852   soname_spec='${libname}${release}${shared_ext}$major'
15853   shlibpath_var=LD_LIBRARY_PATH
15854   case $host_vendor in
15855     sni)
15856       shlibpath_overrides_runpath=no
15857       need_lib_prefix=no
15858       export_dynamic_flag_spec='${wl}-Blargedynsym'
15859       runpath_var=LD_RUN_PATH
15860       ;;
15861     siemens)
15862       need_lib_prefix=no
15863       ;;
15864     motorola)
15865       need_lib_prefix=no
15866       need_version=no
15867       shlibpath_overrides_runpath=no
15868       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15869       ;;
15870   esac
15871   ;;
15872
15873 sysv4*MP*)
15874   if test -d /usr/nec ;then
15875     version_type=linux
15876     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15877     soname_spec='$libname${shared_ext}.$major'
15878     shlibpath_var=LD_LIBRARY_PATH
15879   fi
15880   ;;
15881
15882 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15883   version_type=freebsd-elf
15884   need_lib_prefix=no
15885   need_version=no
15886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15887   soname_spec='${libname}${release}${shared_ext}$major'
15888   shlibpath_var=LD_LIBRARY_PATH
15889   hardcode_into_libs=yes
15890   if test "$with_gnu_ld" = yes; then
15891     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15892     shlibpath_overrides_runpath=no
15893   else
15894     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15895     shlibpath_overrides_runpath=yes
15896     case $host_os in
15897       sco3.2v5*)
15898         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15899         ;;
15900     esac
15901   fi
15902   sys_lib_dlsearch_path_spec='/usr/lib'
15903   ;;
15904
15905 uts4*)
15906   version_type=linux
15907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15908   soname_spec='${libname}${release}${shared_ext}$major'
15909   shlibpath_var=LD_LIBRARY_PATH
15910   ;;
15911
15912 *)
15913   dynamic_linker=no
15914   ;;
15915 esac
15916 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15917 echo "${ECHO_T}$dynamic_linker" >&6; }
15918 test "$dynamic_linker" = no && can_build_shared=no
15919
15920 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15921 if test "$GCC" = yes; then
15922   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15923 fi
15924
15925 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15926 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15927 hardcode_action_F77=
15928 if test -n "$hardcode_libdir_flag_spec_F77" || \
15929    test -n "$runpath_var_F77" || \
15930    test "X$hardcode_automatic_F77" = "Xyes" ; then
15931
15932   # We can hardcode non-existant directories.
15933   if test "$hardcode_direct_F77" != no &&
15934      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15935      # have to relink, otherwise we might link with an installed library
15936      # when we should be linking with a yet-to-be-installed one
15937      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15938      test "$hardcode_minus_L_F77" != no; then
15939     # Linking always hardcodes the temporary library directory.
15940     hardcode_action_F77=relink
15941   else
15942     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15943     hardcode_action_F77=immediate
15944   fi
15945 else
15946   # We cannot hardcode anything, or else we can only hardcode existing
15947   # directories.
15948   hardcode_action_F77=unsupported
15949 fi
15950 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15951 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15952
15953 if test "$hardcode_action_F77" = relink; then
15954   # Fast installation is not supported
15955   enable_fast_install=no
15956 elif test "$shlibpath_overrides_runpath" = yes ||
15957      test "$enable_shared" = no; then
15958   # Fast installation is not necessary
15959   enable_fast_install=needless
15960 fi
15961
15962
15963 # The else clause should only fire when bootstrapping the
15964 # libtool distribution, otherwise you forgot to ship ltmain.sh
15965 # with your package, and you will get complaints that there are
15966 # no rules to generate ltmain.sh.
15967 if test -f "$ltmain"; then
15968   # See if we are running on zsh, and set the options which allow our commands through
15969   # without removal of \ escapes.
15970   if test -n "${ZSH_VERSION+set}" ; then
15971     setopt NO_GLOB_SUBST
15972   fi
15973   # Now quote all the things that may contain metacharacters while being
15974   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15975   # variables and quote the copies for generation of the libtool script.
15976   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15977     SED SHELL STRIP \
15978     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15979     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15980     deplibs_check_method reload_flag reload_cmds need_locks \
15981     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15982     lt_cv_sys_global_symbol_to_c_name_address \
15983     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15984     old_postinstall_cmds old_postuninstall_cmds \
15985     compiler_F77 \
15986     CC_F77 \
15987     LD_F77 \
15988     lt_prog_compiler_wl_F77 \
15989     lt_prog_compiler_pic_F77 \
15990     lt_prog_compiler_static_F77 \
15991     lt_prog_compiler_no_builtin_flag_F77 \
15992     export_dynamic_flag_spec_F77 \
15993     thread_safe_flag_spec_F77 \
15994     whole_archive_flag_spec_F77 \
15995     enable_shared_with_static_runtimes_F77 \
15996     old_archive_cmds_F77 \
15997     old_archive_from_new_cmds_F77 \
15998     predep_objects_F77 \
15999     postdep_objects_F77 \
16000     predeps_F77 \
16001     postdeps_F77 \
16002     compiler_lib_search_path_F77 \
16003     archive_cmds_F77 \
16004     archive_expsym_cmds_F77 \
16005     postinstall_cmds_F77 \
16006     postuninstall_cmds_F77 \
16007     old_archive_from_expsyms_cmds_F77 \
16008     allow_undefined_flag_F77 \
16009     no_undefined_flag_F77 \
16010     export_symbols_cmds_F77 \
16011     hardcode_libdir_flag_spec_F77 \
16012     hardcode_libdir_flag_spec_ld_F77 \
16013     hardcode_libdir_separator_F77 \
16014     hardcode_automatic_F77 \
16015     module_cmds_F77 \
16016     module_expsym_cmds_F77 \
16017     lt_cv_prog_compiler_c_o_F77 \
16018     exclude_expsyms_F77 \
16019     include_expsyms_F77; do
16020
16021     case $var in
16022     old_archive_cmds_F77 | \
16023     old_archive_from_new_cmds_F77 | \
16024     archive_cmds_F77 | \
16025     archive_expsym_cmds_F77 | \
16026     module_cmds_F77 | \
16027     module_expsym_cmds_F77 | \
16028     old_archive_from_expsyms_cmds_F77 | \
16029     export_symbols_cmds_F77 | \
16030     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16031     postinstall_cmds | postuninstall_cmds | \
16032     old_postinstall_cmds | old_postuninstall_cmds | \
16033     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16034       # Double-quote double-evaled strings.
16035       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16036       ;;
16037     *)
16038       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16039       ;;
16040     esac
16041   done
16042
16043   case $lt_echo in
16044   *'\$0 --fallback-echo"')
16045     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16046     ;;
16047   esac
16048
16049 cfgfile="$ofile"
16050
16051   cat <<__EOF__ >> "$cfgfile"
16052 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16053
16054 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16055
16056 # Shell to use when invoking shell scripts.
16057 SHELL=$lt_SHELL
16058
16059 # Whether or not to build shared libraries.
16060 build_libtool_libs=$enable_shared
16061
16062 # Whether or not to build static libraries.
16063 build_old_libs=$enable_static
16064
16065 # Whether or not to add -lc for building shared libraries.
16066 build_libtool_need_lc=$archive_cmds_need_lc_F77
16067
16068 # Whether or not to disallow shared libs when runtime libs are static
16069 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16070
16071 # Whether or not to optimize for fast installation.
16072 fast_install=$enable_fast_install
16073
16074 # The host system.
16075 host_alias=$host_alias
16076 host=$host
16077 host_os=$host_os
16078
16079 # The build system.
16080 build_alias=$build_alias
16081 build=$build
16082 build_os=$build_os
16083
16084 # An echo program that does not interpret backslashes.
16085 echo=$lt_echo
16086
16087 # The archiver.
16088 AR=$lt_AR
16089 AR_FLAGS=$lt_AR_FLAGS
16090
16091 # A C compiler.
16092 LTCC=$lt_LTCC
16093
16094 # LTCC compiler flags.
16095 LTCFLAGS=$lt_LTCFLAGS
16096
16097 # A language-specific compiler.
16098 CC=$lt_compiler_F77
16099
16100 # Is the compiler the GNU C compiler?
16101 with_gcc=$GCC_F77
16102
16103 # An ERE matcher.
16104 EGREP=$lt_EGREP
16105
16106 # The linker used to build libraries.
16107 LD=$lt_LD_F77
16108
16109 # Whether we need hard or soft links.
16110 LN_S=$lt_LN_S
16111
16112 # A BSD-compatible nm program.
16113 NM=$lt_NM
16114
16115 # A symbol stripping program
16116 STRIP=$lt_STRIP
16117
16118 # Used to examine libraries when file_magic_cmd begins "file"
16119 MAGIC_CMD=$MAGIC_CMD
16120
16121 # Used on cygwin: DLL creation program.
16122 DLLTOOL="$DLLTOOL"
16123
16124 # Used on cygwin: object dumper.
16125 OBJDUMP="$OBJDUMP"
16126
16127 # Used on cygwin: assembler.
16128 AS="$AS"
16129
16130 # The name of the directory that contains temporary libtool files.
16131 objdir=$objdir
16132
16133 # How to create reloadable object files.
16134 reload_flag=$lt_reload_flag
16135 reload_cmds=$lt_reload_cmds
16136
16137 # How to pass a linker flag through the compiler.
16138 wl=$lt_lt_prog_compiler_wl_F77
16139
16140 # Object file suffix (normally "o").
16141 objext="$ac_objext"
16142
16143 # Old archive suffix (normally "a").
16144 libext="$libext"
16145
16146 # Shared library suffix (normally ".so").
16147 shrext_cmds='$shrext_cmds'
16148
16149 # Executable file suffix (normally "").
16150 exeext="$exeext"
16151
16152 # Additional compiler flags for building library objects.
16153 pic_flag=$lt_lt_prog_compiler_pic_F77
16154 pic_mode=$pic_mode
16155
16156 # What is the maximum length of a command?
16157 max_cmd_len=$lt_cv_sys_max_cmd_len
16158
16159 # Does compiler simultaneously support -c and -o options?
16160 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16161
16162 # Must we lock files when doing compilation?
16163 need_locks=$lt_need_locks
16164
16165 # Do we need the lib prefix for modules?
16166 need_lib_prefix=$need_lib_prefix
16167
16168 # Do we need a version for libraries?
16169 need_version=$need_version
16170
16171 # Whether dlopen is supported.
16172 dlopen_support=$enable_dlopen
16173
16174 # Whether dlopen of programs is supported.
16175 dlopen_self=$enable_dlopen_self
16176
16177 # Whether dlopen of statically linked programs is supported.
16178 dlopen_self_static=$enable_dlopen_self_static
16179
16180 # Compiler flag to prevent dynamic linking.
16181 link_static_flag=$lt_lt_prog_compiler_static_F77
16182
16183 # Compiler flag to turn off builtin functions.
16184 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16185
16186 # Compiler flag to allow reflexive dlopens.
16187 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16188
16189 # Compiler flag to generate shared objects directly from archives.
16190 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16191
16192 # Compiler flag to generate thread-safe objects.
16193 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16194
16195 # Library versioning type.
16196 version_type=$version_type
16197
16198 # Format of library name prefix.
16199 libname_spec=$lt_libname_spec
16200
16201 # List of archive names.  First name is the real one, the rest are links.
16202 # The last name is the one that the linker finds with -lNAME.
16203 library_names_spec=$lt_library_names_spec
16204
16205 # The coded name of the library, if different from the real name.
16206 soname_spec=$lt_soname_spec
16207
16208 # Commands used to build and install an old-style archive.
16209 RANLIB=$lt_RANLIB
16210 old_archive_cmds=$lt_old_archive_cmds_F77
16211 old_postinstall_cmds=$lt_old_postinstall_cmds
16212 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16213
16214 # Create an old-style archive from a shared archive.
16215 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16216
16217 # Create a temporary old-style archive to link instead of a shared archive.
16218 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16219
16220 # Commands used to build and install a shared archive.
16221 archive_cmds=$lt_archive_cmds_F77
16222 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16223 postinstall_cmds=$lt_postinstall_cmds
16224 postuninstall_cmds=$lt_postuninstall_cmds
16225
16226 # Commands used to build a loadable module (assumed same as above if empty)
16227 module_cmds=$lt_module_cmds_F77
16228 module_expsym_cmds=$lt_module_expsym_cmds_F77
16229
16230 # Commands to strip libraries.
16231 old_striplib=$lt_old_striplib
16232 striplib=$lt_striplib
16233
16234 # Dependencies to place before the objects being linked to create a
16235 # shared library.
16236 predep_objects=$lt_predep_objects_F77
16237
16238 # Dependencies to place after the objects being linked to create a
16239 # shared library.
16240 postdep_objects=$lt_postdep_objects_F77
16241
16242 # Dependencies to place before the objects being linked to create a
16243 # shared library.
16244 predeps=$lt_predeps_F77
16245
16246 # Dependencies to place after the objects being linked to create a
16247 # shared library.
16248 postdeps=$lt_postdeps_F77
16249
16250 # The library search path used internally by the compiler when linking
16251 # a shared library.
16252 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16253
16254 # Method to check whether dependent libraries are shared objects.
16255 deplibs_check_method=$lt_deplibs_check_method
16256
16257 # Command to use when deplibs_check_method == file_magic.
16258 file_magic_cmd=$lt_file_magic_cmd
16259
16260 # Flag that allows shared libraries with undefined symbols to be built.
16261 allow_undefined_flag=$lt_allow_undefined_flag_F77
16262
16263 # Flag that forces no undefined symbols.
16264 no_undefined_flag=$lt_no_undefined_flag_F77
16265
16266 # Commands used to finish a libtool library installation in a directory.
16267 finish_cmds=$lt_finish_cmds
16268
16269 # Same as above, but a single script fragment to be evaled but not shown.
16270 finish_eval=$lt_finish_eval
16271
16272 # Take the output of nm and produce a listing of raw symbols and C names.
16273 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16274
16275 # Transform the output of nm in a proper C declaration
16276 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16277
16278 # Transform the output of nm in a C name address pair
16279 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16280
16281 # This is the shared library runtime path variable.
16282 runpath_var=$runpath_var
16283
16284 # This is the shared library path variable.
16285 shlibpath_var=$shlibpath_var
16286
16287 # Is shlibpath searched before the hard-coded library search path?
16288 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16289
16290 # How to hardcode a shared library path into an executable.
16291 hardcode_action=$hardcode_action_F77
16292
16293 # Whether we should hardcode library paths into libraries.
16294 hardcode_into_libs=$hardcode_into_libs
16295
16296 # Flag to hardcode \$libdir into a binary during linking.
16297 # This must work even if \$libdir does not exist.
16298 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16299
16300 # If ld is used when linking, flag to hardcode \$libdir into
16301 # a binary during linking. This must work even if \$libdir does
16302 # not exist.
16303 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16304
16305 # Whether we need a single -rpath flag with a separated argument.
16306 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16307
16308 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16309 # resulting binary.
16310 hardcode_direct=$hardcode_direct_F77
16311
16312 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16313 # resulting binary.
16314 hardcode_minus_L=$hardcode_minus_L_F77
16315
16316 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16317 # the resulting binary.
16318 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16319
16320 # Set to yes if building a shared library automatically hardcodes DIR into the library
16321 # and all subsequent libraries and executables linked against it.
16322 hardcode_automatic=$hardcode_automatic_F77
16323
16324 # Variables whose values should be saved in libtool wrapper scripts and
16325 # restored at relink time.
16326 variables_saved_for_relink="$variables_saved_for_relink"
16327
16328 # Whether libtool must link a program against all its dependency libraries.
16329 link_all_deplibs=$link_all_deplibs_F77
16330
16331 # Compile-time system search path for libraries
16332 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16333
16334 # Run-time system search path for libraries
16335 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16336
16337 # Fix the shell variable \$srcfile for the compiler.
16338 fix_srcfile_path="$fix_srcfile_path_F77"
16339
16340 # Set to yes if exported symbols are required.
16341 always_export_symbols=$always_export_symbols_F77
16342
16343 # The commands to list exported symbols.
16344 export_symbols_cmds=$lt_export_symbols_cmds_F77
16345
16346 # The commands to extract the exported symbol list from a shared archive.
16347 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16348
16349 # Symbols that should not be listed in the preloaded symbols.
16350 exclude_expsyms=$lt_exclude_expsyms_F77
16351
16352 # Symbols that must always be exported.
16353 include_expsyms=$lt_include_expsyms_F77
16354
16355 # ### END LIBTOOL TAG CONFIG: $tagname
16356
16357 __EOF__
16358
16359
16360 else
16361   # If there is no Makefile yet, we rely on a make rule to execute
16362   # `config.status --recheck' to rerun these tests and create the
16363   # libtool script then.
16364   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16365   if test -f "$ltmain_in"; then
16366     test -f Makefile && make "$ltmain"
16367   fi
16368 fi
16369
16370
16371 ac_ext=c
16372 ac_cpp='$CPP $CPPFLAGS'
16373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16376
16377 CC="$lt_save_CC"
16378
16379         else
16380           tagname=""
16381         fi
16382         ;;
16383
16384       GCJ)
16385         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16386
16387
16388 # Source file extension for Java test sources.
16389 ac_ext=java
16390
16391 # Object file extension for compiled Java test sources.
16392 objext=o
16393 objext_GCJ=$objext
16394
16395 # Code to be used in simple compile tests
16396 lt_simple_compile_test_code="class foo {}\n"
16397
16398 # Code to be used in simple link tests
16399 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16400
16401 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16402
16403 # If no C compiler was specified, use CC.
16404 LTCC=${LTCC-"$CC"}
16405
16406 # If no C compiler flags were specified, use CFLAGS.
16407 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16408
16409 # Allow CC to be a program name with arguments.
16410 compiler=$CC
16411
16412
16413 # save warnings/boilerplate of simple test code
16414 ac_outfile=conftest.$ac_objext
16415 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16416 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16417 _lt_compiler_boilerplate=`cat conftest.err`
16418 $rm conftest*
16419
16420 ac_outfile=conftest.$ac_objext
16421 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16422 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16423 _lt_linker_boilerplate=`cat conftest.err`
16424 $rm conftest*
16425
16426
16427 # Allow CC to be a program name with arguments.
16428 lt_save_CC="$CC"
16429 CC=${GCJ-"gcj"}
16430 compiler=$CC
16431 compiler_GCJ=$CC
16432 for cc_temp in $compiler""; do
16433   case $cc_temp in
16434     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16435     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16436     \-*) ;;
16437     *) break;;
16438   esac
16439 done
16440 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16441
16442
16443 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16444 archive_cmds_need_lc_GCJ=no
16445
16446 old_archive_cmds_GCJ=$old_archive_cmds
16447
16448
16449 lt_prog_compiler_no_builtin_flag_GCJ=
16450
16451 if test "$GCC" = yes; then
16452   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16453
16454
16455 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16456 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16457 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16458   echo $ECHO_N "(cached) $ECHO_C" >&6
16459 else
16460   lt_cv_prog_compiler_rtti_exceptions=no
16461   ac_outfile=conftest.$ac_objext
16462    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16463    lt_compiler_flag="-fno-rtti -fno-exceptions"
16464    # Insert the option either (1) after the last *FLAGS variable, or
16465    # (2) before a word containing "conftest.", or (3) at the end.
16466    # Note that $ac_compile itself does not contain backslashes and begins
16467    # with a dollar sign (not a hyphen), so the echo should work correctly.
16468    # The option is referenced via a variable to avoid confusing sed.
16469    lt_compile=`echo "$ac_compile" | $SED \
16470    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16471    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16472    -e 's:$: $lt_compiler_flag:'`
16473    (eval echo "\"\$as_me:16473: $lt_compile\"" >&5)
16474    (eval "$lt_compile" 2>conftest.err)
16475    ac_status=$?
16476    cat conftest.err >&5
16477    echo "$as_me:16477: \$? = $ac_status" >&5
16478    if (exit $ac_status) && test -s "$ac_outfile"; then
16479      # The compiler can only warn and ignore the option if not recognized
16480      # So say no if there are warnings other than the usual output.
16481      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16482      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16483      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16484        lt_cv_prog_compiler_rtti_exceptions=yes
16485      fi
16486    fi
16487    $rm conftest*
16488
16489 fi
16490 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16491 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16492
16493 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16494     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16495 else
16496     :
16497 fi
16498
16499 fi
16500
16501 lt_prog_compiler_wl_GCJ=
16502 lt_prog_compiler_pic_GCJ=
16503 lt_prog_compiler_static_GCJ=
16504
16505 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16506 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16507
16508   if test "$GCC" = yes; then
16509     lt_prog_compiler_wl_GCJ='-Wl,'
16510     lt_prog_compiler_static_GCJ='-static'
16511
16512     case $host_os in
16513       aix*)
16514       # All AIX code is PIC.
16515       if test "$host_cpu" = ia64; then
16516         # AIX 5 now supports IA64 processor
16517         lt_prog_compiler_static_GCJ='-Bstatic'
16518       fi
16519       ;;
16520
16521     amigaos*)
16522       # FIXME: we need at least 68020 code to build shared libraries, but
16523       # adding the `-m68020' flag to GCC prevents building anything better,
16524       # like `-m68040'.
16525       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16526       ;;
16527
16528     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16529       # PIC is the default for these OSes.
16530       ;;
16531
16532     mingw* | pw32* | os2*)
16533       # This hack is so that the source file can tell whether it is being
16534       # built for inclusion in a dll (and should export symbols for example).
16535       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16536       ;;
16537
16538     darwin* | rhapsody*)
16539       # PIC is the default on this platform
16540       # Common symbols not allowed in MH_DYLIB files
16541       lt_prog_compiler_pic_GCJ='-fno-common'
16542       ;;
16543
16544     interix3*)
16545       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16546       # Instead, we relocate shared libraries at runtime.
16547       ;;
16548
16549     msdosdjgpp*)
16550       # Just because we use GCC doesn't mean we suddenly get shared libraries
16551       # on systems that don't support them.
16552       lt_prog_compiler_can_build_shared_GCJ=no
16553       enable_shared=no
16554       ;;
16555
16556     sysv4*MP*)
16557       if test -d /usr/nec; then
16558         lt_prog_compiler_pic_GCJ=-Kconform_pic
16559       fi
16560       ;;
16561
16562     hpux*)
16563       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16564       # not for PA HP-UX.
16565       case $host_cpu in
16566       hppa*64*|ia64*)
16567         # +Z the default
16568         ;;
16569       *)
16570         lt_prog_compiler_pic_GCJ='-fPIC'
16571         ;;
16572       esac
16573       ;;
16574
16575     *)
16576       lt_prog_compiler_pic_GCJ='-fPIC'
16577       ;;
16578     esac
16579   else
16580     # PORTME Check for flag to pass linker flags through the system compiler.
16581     case $host_os in
16582     aix*)
16583       lt_prog_compiler_wl_GCJ='-Wl,'
16584       if test "$host_cpu" = ia64; then
16585         # AIX 5 now supports IA64 processor
16586         lt_prog_compiler_static_GCJ='-Bstatic'
16587       else
16588         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16589       fi
16590       ;;
16591       darwin*)
16592         # PIC is the default on this platform
16593         # Common symbols not allowed in MH_DYLIB files
16594        case $cc_basename in
16595          xlc*)
16596          lt_prog_compiler_pic_GCJ='-qnocommon'
16597          lt_prog_compiler_wl_GCJ='-Wl,'
16598          ;;
16599        esac
16600        ;;
16601
16602     mingw* | pw32* | os2*)
16603       # This hack is so that the source file can tell whether it is being
16604       # built for inclusion in a dll (and should export symbols for example).
16605       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16606       ;;
16607
16608     hpux9* | hpux10* | hpux11*)
16609       lt_prog_compiler_wl_GCJ='-Wl,'
16610       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16611       # not for PA HP-UX.
16612       case $host_cpu in
16613       hppa*64*|ia64*)
16614         # +Z the default
16615         ;;
16616       *)
16617         lt_prog_compiler_pic_GCJ='+Z'
16618         ;;
16619       esac
16620       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16621       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16622       ;;
16623
16624     irix5* | irix6* | nonstopux*)
16625       lt_prog_compiler_wl_GCJ='-Wl,'
16626       # PIC (with -KPIC) is the default.
16627       lt_prog_compiler_static_GCJ='-non_shared'
16628       ;;
16629
16630     newsos6)
16631       lt_prog_compiler_pic_GCJ='-KPIC'
16632       lt_prog_compiler_static_GCJ='-Bstatic'
16633       ;;
16634
16635     linux* | k*bsd*-gnu)
16636       case $cc_basename in
16637       icc* | ecc*)
16638         lt_prog_compiler_wl_GCJ='-Wl,'
16639         lt_prog_compiler_pic_GCJ='-KPIC'
16640         lt_prog_compiler_static_GCJ='-static'
16641         ;;
16642       pgcc* | pgf77* | pgf90* | pgf95*)
16643         # Portland Group compilers (*not* the Pentium gcc compiler,
16644         # which looks to be a dead project)
16645         lt_prog_compiler_wl_GCJ='-Wl,'
16646         lt_prog_compiler_pic_GCJ='-fpic'
16647         lt_prog_compiler_static_GCJ='-Bstatic'
16648         ;;
16649       ccc*)
16650         lt_prog_compiler_wl_GCJ='-Wl,'
16651         # All Alpha code is PIC.
16652         lt_prog_compiler_static_GCJ='-non_shared'
16653         ;;
16654       esac
16655       ;;
16656
16657     osf3* | osf4* | osf5*)
16658       lt_prog_compiler_wl_GCJ='-Wl,'
16659       # All OSF/1 code is PIC.
16660       lt_prog_compiler_static_GCJ='-non_shared'
16661       ;;
16662
16663     solaris*)
16664       lt_prog_compiler_pic_GCJ='-KPIC'
16665       lt_prog_compiler_static_GCJ='-Bstatic'
16666       case $cc_basename in
16667       f77* | f90* | f95*)
16668         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16669       *)
16670         lt_prog_compiler_wl_GCJ='-Wl,';;
16671       esac
16672       ;;
16673
16674     sunos4*)
16675       lt_prog_compiler_wl_GCJ='-Qoption ld '
16676       lt_prog_compiler_pic_GCJ='-PIC'
16677       lt_prog_compiler_static_GCJ='-Bstatic'
16678       ;;
16679
16680     sysv4 | sysv4.2uw2* | sysv4.3*)
16681       lt_prog_compiler_wl_GCJ='-Wl,'
16682       lt_prog_compiler_pic_GCJ='-KPIC'
16683       lt_prog_compiler_static_GCJ='-Bstatic'
16684       ;;
16685
16686     sysv4*MP*)
16687       if test -d /usr/nec ;then
16688         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16689         lt_prog_compiler_static_GCJ='-Bstatic'
16690       fi
16691       ;;
16692
16693     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16694       lt_prog_compiler_wl_GCJ='-Wl,'
16695       lt_prog_compiler_pic_GCJ='-KPIC'
16696       lt_prog_compiler_static_GCJ='-Bstatic'
16697       ;;
16698
16699     unicos*)
16700       lt_prog_compiler_wl_GCJ='-Wl,'
16701       lt_prog_compiler_can_build_shared_GCJ=no
16702       ;;
16703
16704     uts4*)
16705       lt_prog_compiler_pic_GCJ='-pic'
16706       lt_prog_compiler_static_GCJ='-Bstatic'
16707       ;;
16708
16709     *)
16710       lt_prog_compiler_can_build_shared_GCJ=no
16711       ;;
16712     esac
16713   fi
16714
16715 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16716 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16717
16718 #
16719 # Check to make sure the PIC flag actually works.
16720 #
16721 if test -n "$lt_prog_compiler_pic_GCJ"; then
16722
16723 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16724 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16725 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16726   echo $ECHO_N "(cached) $ECHO_C" >&6
16727 else
16728   lt_prog_compiler_pic_works_GCJ=no
16729   ac_outfile=conftest.$ac_objext
16730    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16731    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16732    # Insert the option either (1) after the last *FLAGS variable, or
16733    # (2) before a word containing "conftest.", or (3) at the end.
16734    # Note that $ac_compile itself does not contain backslashes and begins
16735    # with a dollar sign (not a hyphen), so the echo should work correctly.
16736    # The option is referenced via a variable to avoid confusing sed.
16737    lt_compile=`echo "$ac_compile" | $SED \
16738    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16739    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16740    -e 's:$: $lt_compiler_flag:'`
16741    (eval echo "\"\$as_me:16741: $lt_compile\"" >&5)
16742    (eval "$lt_compile" 2>conftest.err)
16743    ac_status=$?
16744    cat conftest.err >&5
16745    echo "$as_me:16745: \$? = $ac_status" >&5
16746    if (exit $ac_status) && test -s "$ac_outfile"; then
16747      # The compiler can only warn and ignore the option if not recognized
16748      # So say no if there are warnings other than the usual output.
16749      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16750      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16751      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16752        lt_prog_compiler_pic_works_GCJ=yes
16753      fi
16754    fi
16755    $rm conftest*
16756
16757 fi
16758 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16759 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16760
16761 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16762     case $lt_prog_compiler_pic_GCJ in
16763      "" | " "*) ;;
16764      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16765      esac
16766 else
16767     lt_prog_compiler_pic_GCJ=
16768      lt_prog_compiler_can_build_shared_GCJ=no
16769 fi
16770
16771 fi
16772 case $host_os in
16773   # For platforms which do not support PIC, -DPIC is meaningless:
16774   *djgpp*)
16775     lt_prog_compiler_pic_GCJ=
16776     ;;
16777   *)
16778     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16779     ;;
16780 esac
16781
16782 #
16783 # Check to make sure the static flag actually works.
16784 #
16785 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16786 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16787 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16788 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16789   echo $ECHO_N "(cached) $ECHO_C" >&6
16790 else
16791   lt_prog_compiler_static_works_GCJ=no
16792    save_LDFLAGS="$LDFLAGS"
16793    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16794    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16795    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16796      # The linker can only warn and ignore the option if not recognized
16797      # So say no if there are warnings
16798      if test -s conftest.err; then
16799        # Append any errors to the config.log.
16800        cat conftest.err 1>&5
16801        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16802        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16803        if diff conftest.exp conftest.er2 >/dev/null; then
16804          lt_prog_compiler_static_works_GCJ=yes
16805        fi
16806      else
16807        lt_prog_compiler_static_works_GCJ=yes
16808      fi
16809    fi
16810    $rm conftest*
16811    LDFLAGS="$save_LDFLAGS"
16812
16813 fi
16814 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16815 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16816
16817 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16818     :
16819 else
16820     lt_prog_compiler_static_GCJ=
16821 fi
16822
16823
16824 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16825 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16826 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16827   echo $ECHO_N "(cached) $ECHO_C" >&6
16828 else
16829   lt_cv_prog_compiler_c_o_GCJ=no
16830    $rm -r conftest 2>/dev/null
16831    mkdir conftest
16832    cd conftest
16833    mkdir out
16834    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16835
16836    lt_compiler_flag="-o out/conftest2.$ac_objext"
16837    # Insert the option either (1) after the last *FLAGS variable, or
16838    # (2) before a word containing "conftest.", or (3) at the end.
16839    # Note that $ac_compile itself does not contain backslashes and begins
16840    # with a dollar sign (not a hyphen), so the echo should work correctly.
16841    lt_compile=`echo "$ac_compile" | $SED \
16842    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16843    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16844    -e 's:$: $lt_compiler_flag:'`
16845    (eval echo "\"\$as_me:16845: $lt_compile\"" >&5)
16846    (eval "$lt_compile" 2>out/conftest.err)
16847    ac_status=$?
16848    cat out/conftest.err >&5
16849    echo "$as_me:16849: \$? = $ac_status" >&5
16850    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16851    then
16852      # The compiler can only warn and ignore the option if not recognized
16853      # So say no if there are warnings
16854      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16855      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16856      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16857        lt_cv_prog_compiler_c_o_GCJ=yes
16858      fi
16859    fi
16860    chmod u+w . 2>&5
16861    $rm conftest*
16862    # SGI C++ compiler will create directory out/ii_files/ for
16863    # template instantiation
16864    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16865    $rm out/* && rmdir out
16866    cd ..
16867    rmdir conftest
16868    $rm conftest*
16869
16870 fi
16871 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16872 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16873
16874
16875 hard_links="nottested"
16876 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16877   # do not overwrite the value of need_locks provided by the user
16878   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16879 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16880   hard_links=yes
16881   $rm conftest*
16882   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16883   touch conftest.a
16884   ln conftest.a conftest.b 2>&5 || hard_links=no
16885   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16886   { echo "$as_me:$LINENO: result: $hard_links" >&5
16887 echo "${ECHO_T}$hard_links" >&6; }
16888   if test "$hard_links" = no; then
16889     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16890 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16891     need_locks=warn
16892   fi
16893 else
16894   need_locks=no
16895 fi
16896
16897 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16898 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16899
16900   runpath_var=
16901   allow_undefined_flag_GCJ=
16902   enable_shared_with_static_runtimes_GCJ=no
16903   archive_cmds_GCJ=
16904   archive_expsym_cmds_GCJ=
16905   old_archive_From_new_cmds_GCJ=
16906   old_archive_from_expsyms_cmds_GCJ=
16907   export_dynamic_flag_spec_GCJ=
16908   whole_archive_flag_spec_GCJ=
16909   thread_safe_flag_spec_GCJ=
16910   hardcode_libdir_flag_spec_GCJ=
16911   hardcode_libdir_flag_spec_ld_GCJ=
16912   hardcode_libdir_separator_GCJ=
16913   hardcode_direct_GCJ=no
16914   hardcode_minus_L_GCJ=no
16915   hardcode_shlibpath_var_GCJ=unsupported
16916   link_all_deplibs_GCJ=unknown
16917   hardcode_automatic_GCJ=no
16918   module_cmds_GCJ=
16919   module_expsym_cmds_GCJ=
16920   always_export_symbols_GCJ=no
16921   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16922   # include_expsyms should be a list of space-separated symbols to be *always*
16923   # included in the symbol list
16924   include_expsyms_GCJ=
16925   # exclude_expsyms can be an extended regexp of symbols to exclude
16926   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16927   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16928   # as well as any symbol that contains `d'.
16929   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16930   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16931   # platforms (ab)use it in PIC code, but their linkers get confused if
16932   # the symbol is explicitly referenced.  Since portable code cannot
16933   # rely on this symbol name, it's probably fine to never include it in
16934   # preloaded symbol tables.
16935   extract_expsyms_cmds=
16936   # Just being paranoid about ensuring that cc_basename is set.
16937   for cc_temp in $compiler""; do
16938   case $cc_temp in
16939     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16940     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16941     \-*) ;;
16942     *) break;;
16943   esac
16944 done
16945 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16946
16947   case $host_os in
16948   cygwin* | mingw* | pw32*)
16949     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16950     # When not using gcc, we currently assume that we are using
16951     # Microsoft Visual C++.
16952     if test "$GCC" != yes; then
16953       with_gnu_ld=no
16954     fi
16955     ;;
16956   interix*)
16957     # we just hope/assume this is gcc and not c89 (= MSVC++)
16958     with_gnu_ld=yes
16959     ;;
16960   openbsd*)
16961     with_gnu_ld=no
16962     ;;
16963   esac
16964
16965   ld_shlibs_GCJ=yes
16966   if test "$with_gnu_ld" = yes; then
16967     # If archive_cmds runs LD, not CC, wlarc should be empty
16968     wlarc='${wl}'
16969
16970     # Set some defaults for GNU ld with shared library support. These
16971     # are reset later if shared libraries are not supported. Putting them
16972     # here allows them to be overridden if necessary.
16973     runpath_var=LD_RUN_PATH
16974     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16975     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16976     # ancient GNU ld didn't support --whole-archive et. al.
16977     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16978         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16979       else
16980         whole_archive_flag_spec_GCJ=
16981     fi
16982     supports_anon_versioning=no
16983     case `$LD -v 2>/dev/null` in
16984       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16985       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16986       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16987       *\ 2.11.*) ;; # other 2.11 versions
16988       *) supports_anon_versioning=yes ;;
16989     esac
16990
16991     # See if GNU ld supports shared libraries.
16992     case $host_os in
16993     aix3* | aix4* | aix5*)
16994       # On AIX/PPC, the GNU linker is very broken
16995       if test "$host_cpu" != ia64; then
16996         ld_shlibs_GCJ=no
16997         cat <<EOF 1>&2
16998
16999 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17000 *** to be unable to reliably create shared libraries on AIX.
17001 *** Therefore, libtool is disabling shared libraries support.  If you
17002 *** really care for shared libraries, you may want to modify your PATH
17003 *** so that a non-GNU linker is found, and then restart.
17004
17005 EOF
17006       fi
17007       ;;
17008
17009     amigaos*)
17010       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)'
17011       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17012       hardcode_minus_L_GCJ=yes
17013
17014       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17015       # that the semantics of dynamic libraries on AmigaOS, at least up
17016       # to version 4, is to share data among multiple programs linked
17017       # with the same dynamic library.  Since this doesn't match the
17018       # behavior of shared libraries on other platforms, we can't use
17019       # them.
17020       ld_shlibs_GCJ=no
17021       ;;
17022
17023     beos*)
17024       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17025         allow_undefined_flag_GCJ=unsupported
17026         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17027         # support --undefined.  This deserves some investigation.  FIXME
17028         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17029       else
17030         ld_shlibs_GCJ=no
17031       fi
17032       ;;
17033
17034     cygwin* | mingw* | pw32*)
17035       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17036       # as there is no search path for DLLs.
17037       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17038       allow_undefined_flag_GCJ=unsupported
17039       always_export_symbols_GCJ=no
17040       enable_shared_with_static_runtimes_GCJ=yes
17041       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17042
17043       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17044         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17045         # If the export-symbols file already is a .def file (1st line
17046         # is EXPORTS), use it as is; otherwise, prepend...
17047         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17048           cp $export_symbols $output_objdir/$soname.def;
17049         else
17050           echo EXPORTS > $output_objdir/$soname.def;
17051           cat $export_symbols >> $output_objdir/$soname.def;
17052         fi~
17053         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17054       else
17055         ld_shlibs_GCJ=no
17056       fi
17057       ;;
17058
17059     interix3*)
17060       hardcode_direct_GCJ=no
17061       hardcode_shlibpath_var_GCJ=no
17062       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17063       export_dynamic_flag_spec_GCJ='${wl}-E'
17064       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17065       # Instead, shared libraries are loaded at an image base (0x10000000 by
17066       # default) and relocated if they conflict, which is a slow very memory
17067       # consuming and fragmenting process.  To avoid this, we pick a random,
17068       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17069       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17070       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'
17071       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'
17072       ;;
17073
17074     linux* | k*bsd*-gnu)
17075       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17076         tmp_addflag=
17077         case $cc_basename,$host_cpu in
17078         pgcc*)                          # Portland Group C compiler
17079           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'
17080           tmp_addflag=' $pic_flag'
17081           ;;
17082         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17083           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'
17084           tmp_addflag=' $pic_flag -Mnomain' ;;
17085         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17086           tmp_addflag=' -i_dynamic' ;;
17087         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17088           tmp_addflag=' -i_dynamic -nofor_main' ;;
17089         ifc* | ifort*)                  # Intel Fortran compiler
17090           tmp_addflag=' -nofor_main' ;;
17091         esac
17092         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17093
17094         if test $supports_anon_versioning = yes; then
17095           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17096   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17097   $echo "local: *; };" >> $output_objdir/$libname.ver~
17098           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17099         fi
17100         link_all_deplibs_GCJ=no
17101       else
17102         ld_shlibs_GCJ=no
17103       fi
17104       ;;
17105
17106     netbsd* | netbsdelf*-gnu)
17107       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17108         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17109         wlarc=
17110       else
17111         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17112         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17113       fi
17114       ;;
17115
17116     solaris*)
17117       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17118         ld_shlibs_GCJ=no
17119         cat <<EOF 1>&2
17120
17121 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17122 *** create shared libraries on Solaris systems.  Therefore, libtool
17123 *** is disabling shared libraries support.  We urge you to upgrade GNU
17124 *** binutils to release 2.9.1 or newer.  Another option is to modify
17125 *** your PATH or compiler configuration so that the native linker is
17126 *** used, and then restart.
17127
17128 EOF
17129       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17130         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17131         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17132       else
17133         ld_shlibs_GCJ=no
17134       fi
17135       ;;
17136
17137     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17138       case `$LD -v 2>&1` in
17139         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17140         ld_shlibs_GCJ=no
17141         cat <<_LT_EOF 1>&2
17142
17143 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17144 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17145 *** is disabling shared libraries support.  We urge you to upgrade GNU
17146 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17147 *** your PATH or compiler configuration so that the native linker is
17148 *** used, and then restart.
17149
17150 _LT_EOF
17151         ;;
17152         *)
17153           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17154             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17155             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17156             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17157           else
17158             ld_shlibs_GCJ=no
17159           fi
17160         ;;
17161       esac
17162       ;;
17163
17164     sunos4*)
17165       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17166       wlarc=
17167       hardcode_direct_GCJ=yes
17168       hardcode_shlibpath_var_GCJ=no
17169       ;;
17170
17171     *)
17172       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17173         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17174         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17175       else
17176         ld_shlibs_GCJ=no
17177       fi
17178       ;;
17179     esac
17180
17181     if test "$ld_shlibs_GCJ" = no; then
17182       runpath_var=
17183       hardcode_libdir_flag_spec_GCJ=
17184       export_dynamic_flag_spec_GCJ=
17185       whole_archive_flag_spec_GCJ=
17186     fi
17187   else
17188     # PORTME fill in a description of your system's linker (not GNU ld)
17189     case $host_os in
17190     aix3*)
17191       allow_undefined_flag_GCJ=unsupported
17192       always_export_symbols_GCJ=yes
17193       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'
17194       # Note: this linker hardcodes the directories in LIBPATH if there
17195       # are no directories specified by -L.
17196       hardcode_minus_L_GCJ=yes
17197       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17198         # Neither direct hardcoding nor static linking is supported with a
17199         # broken collect2.
17200         hardcode_direct_GCJ=unsupported
17201       fi
17202       ;;
17203
17204     aix4* | aix5*)
17205       if test "$host_cpu" = ia64; then
17206         # On IA64, the linker does run time linking by default, so we don't
17207         # have to do anything special.
17208         aix_use_runtimelinking=no
17209         exp_sym_flag='-Bexport'
17210         no_entry_flag=""
17211       else
17212         # If we're using GNU nm, then we don't want the "-C" option.
17213         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17214         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17215           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'
17216         else
17217           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'
17218         fi
17219         aix_use_runtimelinking=no
17220
17221         # Test if we are trying to use run time linking or normal
17222         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17223         # need to do runtime linking.
17224         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17225           for ld_flag in $LDFLAGS; do
17226           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17227             aix_use_runtimelinking=yes
17228             break
17229           fi
17230           done
17231           ;;
17232         esac
17233
17234         exp_sym_flag='-bexport'
17235         no_entry_flag='-bnoentry'
17236       fi
17237
17238       # When large executables or shared objects are built, AIX ld can
17239       # have problems creating the table of contents.  If linking a library
17240       # or program results in "error TOC overflow" add -mminimal-toc to
17241       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17242       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17243
17244       archive_cmds_GCJ=''
17245       hardcode_direct_GCJ=yes
17246       hardcode_libdir_separator_GCJ=':'
17247       link_all_deplibs_GCJ=yes
17248
17249       if test "$GCC" = yes; then
17250         case $host_os in aix4.[012]|aix4.[012].*)
17251         # We only want to do this on AIX 4.2 and lower, the check
17252         # below for broken collect2 doesn't work under 4.3+
17253           collect2name=`${CC} -print-prog-name=collect2`
17254           if test -f "$collect2name" && \
17255            strings "$collect2name" | grep resolve_lib_name >/dev/null
17256           then
17257           # We have reworked collect2
17258           hardcode_direct_GCJ=yes
17259           else
17260           # We have old collect2
17261           hardcode_direct_GCJ=unsupported
17262           # It fails to find uninstalled libraries when the uninstalled
17263           # path is not listed in the libpath.  Setting hardcode_minus_L
17264           # to unsupported forces relinking
17265           hardcode_minus_L_GCJ=yes
17266           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17267           hardcode_libdir_separator_GCJ=
17268           fi
17269           ;;
17270         esac
17271         shared_flag='-shared'
17272         if test "$aix_use_runtimelinking" = yes; then
17273           shared_flag="$shared_flag "'${wl}-G'
17274         fi
17275       else
17276         # not using gcc
17277         if test "$host_cpu" = ia64; then
17278         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17279         # chokes on -Wl,-G. The following line is correct:
17280           shared_flag='-G'
17281         else
17282           if test "$aix_use_runtimelinking" = yes; then
17283             shared_flag='${wl}-G'
17284           else
17285             shared_flag='${wl}-bM:SRE'
17286           fi
17287         fi
17288       fi
17289
17290       # It seems that -bexpall does not export symbols beginning with
17291       # underscore (_), so it is better to generate a list of symbols to export.
17292       always_export_symbols_GCJ=yes
17293       if test "$aix_use_runtimelinking" = yes; then
17294         # Warning - without using the other runtime loading flags (-brtl),
17295         # -berok will link without error, but may produce a broken library.
17296         allow_undefined_flag_GCJ='-berok'
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         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"
17350        else
17351         if test "$host_cpu" = ia64; then
17352           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17353           allow_undefined_flag_GCJ="-z nodefs"
17354           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"
17355         else
17356          # Determine the default libpath from the value encoded in an empty executable.
17357          cat >conftest.$ac_ext <<_ACEOF
17358 /* confdefs.h.  */
17359 _ACEOF
17360 cat confdefs.h >>conftest.$ac_ext
17361 cat >>conftest.$ac_ext <<_ACEOF
17362 /* end confdefs.h.  */
17363
17364 int
17365 main ()
17366 {
17367
17368   ;
17369   return 0;
17370 }
17371 _ACEOF
17372 rm -f conftest.$ac_objext conftest$ac_exeext
17373 if { (ac_try="$ac_link"
17374 case "(($ac_try" in
17375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376   *) ac_try_echo=$ac_try;;
17377 esac
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379   (eval "$ac_link") 2>conftest.er1
17380   ac_status=$?
17381   grep -v '^ *+' conftest.er1 >conftest.err
17382   rm -f conftest.er1
17383   cat conftest.err >&5
17384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385   (exit $ac_status); } && {
17386          test -z "$ac_c_werror_flag" ||
17387          test ! -s conftest.err
17388        } && test -s conftest$ac_exeext &&
17389        $as_test_x conftest$ac_exeext; then
17390
17391 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17392 }'`
17393 # Check for a 64-bit object if we didn't find anything.
17394 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; }
17395 }'`; fi
17396 else
17397   echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17399
17400
17401 fi
17402
17403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17404       conftest$ac_exeext conftest.$ac_ext
17405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17406
17407          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17408           # Warning - without using the other run time loading flags,
17409           # -berok will link without error, but may produce a broken library.
17410           no_undefined_flag_GCJ=' ${wl}-bernotok'
17411           allow_undefined_flag_GCJ=' ${wl}-berok'
17412           # Exported symbols can be pulled into shared objects from archives
17413           whole_archive_flag_spec_GCJ='$convenience'
17414           archive_cmds_need_lc_GCJ=yes
17415           # This is similar to how AIX traditionally builds its shared libraries.
17416           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'
17417         fi
17418       fi
17419       ;;
17420
17421     amigaos*)
17422       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)'
17423       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17424       hardcode_minus_L_GCJ=yes
17425       # see comment about different semantics on the GNU ld section
17426       ld_shlibs_GCJ=no
17427       ;;
17428
17429     bsdi[45]*)
17430       export_dynamic_flag_spec_GCJ=-rdynamic
17431       ;;
17432
17433     cygwin* | mingw* | pw32*)
17434       # When not using gcc, we currently assume that we are using
17435       # Microsoft Visual C++.
17436       # hardcode_libdir_flag_spec is actually meaningless, as there is
17437       # no search path for DLLs.
17438       hardcode_libdir_flag_spec_GCJ=' '
17439       allow_undefined_flag_GCJ=unsupported
17440       # Tell ltmain to make .lib files, not .a files.
17441       libext=lib
17442       # Tell ltmain to make .dll files, not .so files.
17443       shrext_cmds=".dll"
17444       # FIXME: Setting linknames here is a bad hack.
17445       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17446       # The linker will automatically build a .lib file if we build a DLL.
17447       old_archive_From_new_cmds_GCJ='true'
17448       # FIXME: Should let the user specify the lib program.
17449       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17450       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17451       enable_shared_with_static_runtimes_GCJ=yes
17452       ;;
17453
17454     darwin* | rhapsody*)
17455       case $host_os in
17456         rhapsody* | darwin1.[012])
17457          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17458          ;;
17459        *) # Darwin 1.3 on
17460          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17461            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17462          else
17463            case ${MACOSX_DEPLOYMENT_TARGET} in
17464              10.[012])
17465                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17466                ;;
17467              10.*)
17468                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17469                ;;
17470            esac
17471          fi
17472          ;;
17473       esac
17474       archive_cmds_need_lc_GCJ=no
17475       hardcode_direct_GCJ=no
17476       hardcode_automatic_GCJ=yes
17477       hardcode_shlibpath_var_GCJ=unsupported
17478       whole_archive_flag_spec_GCJ=''
17479       link_all_deplibs_GCJ=yes
17480     if test "$GCC" = yes ; then
17481         output_verbose_link_cmd='echo'
17482         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17483       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17484       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17485       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}'
17486       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}'
17487     else
17488       case $cc_basename in
17489         xlc*)
17490          output_verbose_link_cmd='echo'
17491          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17492          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17493           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17494          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}'
17495           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}'
17496           ;;
17497        *)
17498          ld_shlibs_GCJ=no
17499           ;;
17500       esac
17501     fi
17502       ;;
17503
17504     dgux*)
17505       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17506       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17507       hardcode_shlibpath_var_GCJ=no
17508       ;;
17509
17510     freebsd1*)
17511       ld_shlibs_GCJ=no
17512       ;;
17513
17514     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17515     # support.  Future versions do this automatically, but an explicit c++rt0.o
17516     # does not break anything, and helps significantly (at the cost of a little
17517     # extra space).
17518     freebsd2.2*)
17519       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17520       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17521       hardcode_direct_GCJ=yes
17522       hardcode_shlibpath_var_GCJ=no
17523       ;;
17524
17525     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17526     freebsd2*)
17527       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17528       hardcode_direct_GCJ=yes
17529       hardcode_minus_L_GCJ=yes
17530       hardcode_shlibpath_var_GCJ=no
17531       ;;
17532
17533     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17534     freebsd* | dragonfly*)
17535       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17536       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17537       hardcode_direct_GCJ=yes
17538       hardcode_shlibpath_var_GCJ=no
17539       ;;
17540
17541     hpux9*)
17542       if test "$GCC" = yes; then
17543         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'
17544       else
17545         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'
17546       fi
17547       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17548       hardcode_libdir_separator_GCJ=:
17549       hardcode_direct_GCJ=yes
17550
17551       # hardcode_minus_L: Not really in the search PATH,
17552       # but as the default location of the library.
17553       hardcode_minus_L_GCJ=yes
17554       export_dynamic_flag_spec_GCJ='${wl}-E'
17555       ;;
17556
17557     hpux10*)
17558       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17559         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17560       else
17561         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17562       fi
17563       if test "$with_gnu_ld" = no; then
17564         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17565         hardcode_libdir_separator_GCJ=:
17566
17567         hardcode_direct_GCJ=yes
17568         export_dynamic_flag_spec_GCJ='${wl}-E'
17569
17570         # hardcode_minus_L: Not really in the search PATH,
17571         # but as the default location of the library.
17572         hardcode_minus_L_GCJ=yes
17573       fi
17574       ;;
17575
17576     hpux11*)
17577       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17578         case $host_cpu in
17579         hppa*64*)
17580           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17581           ;;
17582         ia64*)
17583           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17584           ;;
17585         *)
17586           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17587           ;;
17588         esac
17589       else
17590         case $host_cpu in
17591         hppa*64*)
17592           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17593           ;;
17594         ia64*)
17595           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17596           ;;
17597         *)
17598           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17599           ;;
17600         esac
17601       fi
17602       if test "$with_gnu_ld" = no; then
17603         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17604         hardcode_libdir_separator_GCJ=:
17605
17606         case $host_cpu in
17607         hppa*64*|ia64*)
17608           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17609           hardcode_direct_GCJ=no
17610           hardcode_shlibpath_var_GCJ=no
17611           ;;
17612         *)
17613           hardcode_direct_GCJ=yes
17614           export_dynamic_flag_spec_GCJ='${wl}-E'
17615
17616           # hardcode_minus_L: Not really in the search PATH,
17617           # but as the default location of the library.
17618           hardcode_minus_L_GCJ=yes
17619           ;;
17620         esac
17621       fi
17622       ;;
17623
17624     irix5* | irix6* | nonstopux*)
17625       if test "$GCC" = yes; then
17626         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'
17627       else
17628         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'
17629         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17630       fi
17631       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17632       hardcode_libdir_separator_GCJ=:
17633       link_all_deplibs_GCJ=yes
17634       ;;
17635
17636     netbsd* | netbsdelf*-gnu)
17637       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17638         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17639       else
17640         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17641       fi
17642       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17643       hardcode_direct_GCJ=yes
17644       hardcode_shlibpath_var_GCJ=no
17645       ;;
17646
17647     newsos6)
17648       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17649       hardcode_direct_GCJ=yes
17650       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17651       hardcode_libdir_separator_GCJ=:
17652       hardcode_shlibpath_var_GCJ=no
17653       ;;
17654
17655     openbsd*)
17656       hardcode_direct_GCJ=yes
17657       hardcode_shlibpath_var_GCJ=no
17658       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17659         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17660         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17661         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17662         export_dynamic_flag_spec_GCJ='${wl}-E'
17663       else
17664        case $host_os in
17665          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17666            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17667            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17668            ;;
17669          *)
17670            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17671            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17672            ;;
17673        esac
17674       fi
17675       ;;
17676
17677     os2*)
17678       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17679       hardcode_minus_L_GCJ=yes
17680       allow_undefined_flag_GCJ=unsupported
17681       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'
17682       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17683       ;;
17684
17685     osf3*)
17686       if test "$GCC" = yes; then
17687         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17688         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'
17689       else
17690         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17691         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'
17692       fi
17693       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17694       hardcode_libdir_separator_GCJ=:
17695       ;;
17696
17697     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17698       if test "$GCC" = yes; then
17699         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17700         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'
17701         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17702       else
17703         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17704         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'
17705         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~
17706         $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'
17707
17708         # Both c and cxx compiler support -rpath directly
17709         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17710       fi
17711       hardcode_libdir_separator_GCJ=:
17712       ;;
17713
17714     solaris*)
17715       no_undefined_flag_GCJ=' -z text'
17716       if test "$GCC" = yes; then
17717         wlarc='${wl}'
17718         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17719         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17720           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17721       else
17722         wlarc=''
17723         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17724         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17725         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17726       fi
17727       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17728       hardcode_shlibpath_var_GCJ=no
17729       case $host_os in
17730       solaris2.[0-5] | solaris2.[0-5].*) ;;
17731       *)
17732         # The compiler driver will combine linker options so we
17733         # cannot just pass the convience library names through
17734         # without $wl, iff we do not link with $LD.
17735         # Luckily, gcc supports the same syntax we need for Sun Studio.
17736         # Supported since Solaris 2.6 (maybe 2.5.1?)
17737         case $wlarc in
17738         '')
17739           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17740         *)
17741           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' ;;
17742         esac ;;
17743       esac
17744       link_all_deplibs_GCJ=yes
17745       ;;
17746
17747     sunos4*)
17748       if test "x$host_vendor" = xsequent; then
17749         # Use $CC to link under sequent, because it throws in some extra .o
17750         # files that make .init and .fini sections work.
17751         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17752       else
17753         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17754       fi
17755       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17756       hardcode_direct_GCJ=yes
17757       hardcode_minus_L_GCJ=yes
17758       hardcode_shlibpath_var_GCJ=no
17759       ;;
17760
17761     sysv4)
17762       case $host_vendor in
17763         sni)
17764           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17765           hardcode_direct_GCJ=yes # is this really true???
17766         ;;
17767         siemens)
17768           ## LD is ld it makes a PLAMLIB
17769           ## CC just makes a GrossModule.
17770           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17771           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17772           hardcode_direct_GCJ=no
17773         ;;
17774         motorola)
17775           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17776           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17777         ;;
17778       esac
17779       runpath_var='LD_RUN_PATH'
17780       hardcode_shlibpath_var_GCJ=no
17781       ;;
17782
17783     sysv4.3*)
17784       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17785       hardcode_shlibpath_var_GCJ=no
17786       export_dynamic_flag_spec_GCJ='-Bexport'
17787       ;;
17788
17789     sysv4*MP*)
17790       if test -d /usr/nec; then
17791         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17792         hardcode_shlibpath_var_GCJ=no
17793         runpath_var=LD_RUN_PATH
17794         hardcode_runpath_var=yes
17795         ld_shlibs_GCJ=yes
17796       fi
17797       ;;
17798
17799     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17800       no_undefined_flag_GCJ='${wl}-z,text'
17801       archive_cmds_need_lc_GCJ=no
17802       hardcode_shlibpath_var_GCJ=no
17803       runpath_var='LD_RUN_PATH'
17804
17805       if test "$GCC" = yes; then
17806         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17807         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17808       else
17809         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17810         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17811       fi
17812       ;;
17813
17814     sysv5* | sco3.2v5* | sco5v6*)
17815       # Note: We can NOT use -z defs as we might desire, because we do not
17816       # link with -lc, and that would cause any symbols used from libc to
17817       # always be unresolved, which means just about no library would
17818       # ever link correctly.  If we're not using GNU ld we use -z text
17819       # though, which does catch some bad symbols but isn't as heavy-handed
17820       # as -z defs.
17821       no_undefined_flag_GCJ='${wl}-z,text'
17822       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17823       archive_cmds_need_lc_GCJ=no
17824       hardcode_shlibpath_var_GCJ=no
17825       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17826       hardcode_libdir_separator_GCJ=':'
17827       link_all_deplibs_GCJ=yes
17828       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17829       runpath_var='LD_RUN_PATH'
17830
17831       if test "$GCC" = yes; then
17832         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17833         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17834       else
17835         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17836         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17837       fi
17838       ;;
17839
17840     uts4*)
17841       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17842       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17843       hardcode_shlibpath_var_GCJ=no
17844       ;;
17845
17846     *)
17847       ld_shlibs_GCJ=no
17848       ;;
17849     esac
17850   fi
17851
17852 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17853 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17854 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17855
17856 #
17857 # Do we need to explicitly link libc?
17858 #
17859 case "x$archive_cmds_need_lc_GCJ" in
17860 x|xyes)
17861   # Assume -lc should be added
17862   archive_cmds_need_lc_GCJ=yes
17863
17864   if test "$enable_shared" = yes && test "$GCC" = yes; then
17865     case $archive_cmds_GCJ in
17866     *'~'*)
17867       # FIXME: we may have to deal with multi-command sequences.
17868       ;;
17869     '$CC '*)
17870       # Test whether the compiler implicitly links with -lc since on some
17871       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17872       # to ld, don't add -lc before -lgcc.
17873       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17874 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17875       $rm conftest*
17876       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17877
17878       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17879   (eval $ac_compile) 2>&5
17880   ac_status=$?
17881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882   (exit $ac_status); } 2>conftest.err; then
17883         soname=conftest
17884         lib=conftest
17885         libobjs=conftest.$ac_objext
17886         deplibs=
17887         wl=$lt_prog_compiler_wl_GCJ
17888         pic_flag=$lt_prog_compiler_pic_GCJ
17889         compiler_flags=-v
17890         linker_flags=-v
17891         verstring=
17892         output_objdir=.
17893         libname=conftest
17894         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17895         allow_undefined_flag_GCJ=
17896         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17897   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17898   ac_status=$?
17899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900   (exit $ac_status); }
17901         then
17902           archive_cmds_need_lc_GCJ=no
17903         else
17904           archive_cmds_need_lc_GCJ=yes
17905         fi
17906         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17907       else
17908         cat conftest.err 1>&5
17909       fi
17910       $rm conftest*
17911       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17912 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17913       ;;
17914     esac
17915   fi
17916   ;;
17917 esac
17918
17919 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17920 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17921 library_names_spec=
17922 libname_spec='lib$name'
17923 soname_spec=
17924 shrext_cmds=".so"
17925 postinstall_cmds=
17926 postuninstall_cmds=
17927 finish_cmds=
17928 finish_eval=
17929 shlibpath_var=
17930 shlibpath_overrides_runpath=unknown
17931 version_type=none
17932 dynamic_linker="$host_os ld.so"
17933 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17934 if test "$GCC" = yes; then
17935   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17936   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17937     # if the path contains ";" then we assume it to be the separator
17938     # otherwise default to the standard path separator (i.e. ":") - it is
17939     # assumed that no part of a normal pathname contains ";" but that should
17940     # okay in the real world where ";" in dirpaths is itself problematic.
17941     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17942   else
17943     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17944   fi
17945 else
17946   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17947 fi
17948 need_lib_prefix=unknown
17949 hardcode_into_libs=no
17950
17951 # when you set need_version to no, make sure it does not cause -set_version
17952 # flags to be left without arguments
17953 need_version=unknown
17954
17955 case $host_os in
17956 aix3*)
17957   version_type=linux
17958   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17959   shlibpath_var=LIBPATH
17960
17961   # AIX 3 has no versioning support, so we append a major version to the name.
17962   soname_spec='${libname}${release}${shared_ext}$major'
17963   ;;
17964
17965 aix4* | aix5*)
17966   version_type=linux
17967   need_lib_prefix=no
17968   need_version=no
17969   hardcode_into_libs=yes
17970   if test "$host_cpu" = ia64; then
17971     # AIX 5 supports IA64
17972     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17973     shlibpath_var=LD_LIBRARY_PATH
17974   else
17975     # With GCC up to 2.95.x, collect2 would create an import file
17976     # for dependence libraries.  The import file would start with
17977     # the line `#! .'.  This would cause the generated library to
17978     # depend on `.', always an invalid library.  This was fixed in
17979     # development snapshots of GCC prior to 3.0.
17980     case $host_os in
17981       aix4 | aix4.[01] | aix4.[01].*)
17982       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17983            echo ' yes '
17984            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17985         :
17986       else
17987         can_build_shared=no
17988       fi
17989       ;;
17990     esac
17991     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17992     # soname into executable. Probably we can add versioning support to
17993     # collect2, so additional links can be useful in future.
17994     if test "$aix_use_runtimelinking" = yes; then
17995       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17996       # instead of lib<name>.a to let people know that these are not
17997       # typical AIX shared libraries.
17998       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17999     else
18000       # We preserve .a as extension for shared libraries through AIX4.2
18001       # and later when we are not doing run time linking.
18002       library_names_spec='${libname}${release}.a $libname.a'
18003       soname_spec='${libname}${release}${shared_ext}$major'
18004     fi
18005     shlibpath_var=LIBPATH
18006   fi
18007   ;;
18008
18009 amigaos*)
18010   library_names_spec='$libname.ixlibrary $libname.a'
18011   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18012   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'
18013   ;;
18014
18015 beos*)
18016   library_names_spec='${libname}${shared_ext}'
18017   dynamic_linker="$host_os ld.so"
18018   shlibpath_var=LIBRARY_PATH
18019   ;;
18020
18021 bsdi[45]*)
18022   version_type=linux
18023   need_version=no
18024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18025   soname_spec='${libname}${release}${shared_ext}$major'
18026   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18027   shlibpath_var=LD_LIBRARY_PATH
18028   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18029   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18030   # the default ld.so.conf also contains /usr/contrib/lib and
18031   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18032   # libtool to hard-code these into programs
18033   ;;
18034
18035 cygwin* | mingw* | pw32*)
18036   version_type=windows
18037   shrext_cmds=".dll"
18038   need_version=no
18039   need_lib_prefix=no
18040
18041   case $GCC,$host_os in
18042   yes,cygwin* | yes,mingw* | yes,pw32*)
18043     library_names_spec='$libname.dll.a'
18044     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18045     postinstall_cmds='base_file=`basename \${file}`~
18046       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18047       dldir=$destdir/`dirname \$dlpath`~
18048       test -d \$dldir || mkdir -p \$dldir~
18049       $install_prog $dir/$dlname \$dldir/$dlname~
18050       chmod a+x \$dldir/$dlname'
18051     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18052       dlpath=$dir/\$dldll~
18053        $rm \$dlpath'
18054     shlibpath_overrides_runpath=yes
18055
18056     case $host_os in
18057     cygwin*)
18058       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18059       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18060       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18061       ;;
18062     mingw*)
18063       # MinGW DLLs use traditional 'lib' prefix
18064       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18065       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18066       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18067         # It is most probably a Windows format PATH printed by
18068         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18069         # path with ; separators, and with drive letters. We can handle the
18070         # drive letters (cygwin fileutils understands them), so leave them,
18071         # especially as we might pass files found there to a mingw objdump,
18072         # which wouldn't understand a cygwinified path. Ahh.
18073         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18074       else
18075         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18076       fi
18077       ;;
18078     pw32*)
18079       # pw32 DLLs use 'pw' prefix rather than 'lib'
18080       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18081       ;;
18082     esac
18083     ;;
18084
18085   *)
18086     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18087     ;;
18088   esac
18089   dynamic_linker='Win32 ld.exe'
18090   # FIXME: first we should search . and the directory the executable is in
18091   shlibpath_var=PATH
18092   ;;
18093
18094 darwin* | rhapsody*)
18095   dynamic_linker="$host_os dyld"
18096   version_type=darwin
18097   need_lib_prefix=no
18098   need_version=no
18099   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18100   soname_spec='${libname}${release}${major}$shared_ext'
18101   shlibpath_overrides_runpath=yes
18102   shlibpath_var=DYLD_LIBRARY_PATH
18103   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18104   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18105   if test "$GCC" = yes; then
18106     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"`
18107   else
18108     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18109   fi
18110   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18111   ;;
18112
18113 dgux*)
18114   version_type=linux
18115   need_lib_prefix=no
18116   need_version=no
18117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18118   soname_spec='${libname}${release}${shared_ext}$major'
18119   shlibpath_var=LD_LIBRARY_PATH
18120   ;;
18121
18122 freebsd1*)
18123   dynamic_linker=no
18124   ;;
18125
18126 freebsd* | dragonfly*)
18127   # DragonFly does not have aout.  When/if they implement a new
18128   # versioning mechanism, adjust this.
18129   if test -x /usr/bin/objformat; then
18130     objformat=`/usr/bin/objformat`
18131   else
18132     case $host_os in
18133     freebsd[123]*) objformat=aout ;;
18134     *) objformat=elf ;;
18135     esac
18136   fi
18137   version_type=freebsd-$objformat
18138   case $version_type in
18139     freebsd-elf*)
18140       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18141       need_version=no
18142       need_lib_prefix=no
18143       ;;
18144     freebsd-*)
18145       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18146       need_version=yes
18147       ;;
18148   esac
18149   shlibpath_var=LD_LIBRARY_PATH
18150   case $host_os in
18151   freebsd2*)
18152     shlibpath_overrides_runpath=yes
18153     ;;
18154   freebsd3.[01]* | freebsdelf3.[01]*)
18155     shlibpath_overrides_runpath=yes
18156     hardcode_into_libs=yes
18157     ;;
18158   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18159   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18160     shlibpath_overrides_runpath=no
18161     hardcode_into_libs=yes
18162     ;;
18163   freebsd*) # from 4.6 on
18164     shlibpath_overrides_runpath=yes
18165     hardcode_into_libs=yes
18166     ;;
18167   esac
18168   ;;
18169
18170 gnu*)
18171   version_type=linux
18172   need_lib_prefix=no
18173   need_version=no
18174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18175   soname_spec='${libname}${release}${shared_ext}$major'
18176   shlibpath_var=LD_LIBRARY_PATH
18177   hardcode_into_libs=yes
18178   ;;
18179
18180 hpux9* | hpux10* | hpux11*)
18181   # Give a soname corresponding to the major version so that dld.sl refuses to
18182   # link against other versions.
18183   version_type=sunos
18184   need_lib_prefix=no
18185   need_version=no
18186   case $host_cpu in
18187   ia64*)
18188     shrext_cmds='.so'
18189     hardcode_into_libs=yes
18190     dynamic_linker="$host_os dld.so"
18191     shlibpath_var=LD_LIBRARY_PATH
18192     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18193     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18194     soname_spec='${libname}${release}${shared_ext}$major'
18195     if test "X$HPUX_IA64_MODE" = X32; then
18196       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18197     else
18198       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18199     fi
18200     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18201     ;;
18202    hppa*64*)
18203      shrext_cmds='.sl'
18204      hardcode_into_libs=yes
18205      dynamic_linker="$host_os dld.sl"
18206      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18207      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18208      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18209      soname_spec='${libname}${release}${shared_ext}$major'
18210      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18211      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18212      ;;
18213    *)
18214     shrext_cmds='.sl'
18215     dynamic_linker="$host_os dld.sl"
18216     shlibpath_var=SHLIB_PATH
18217     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18218     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18219     soname_spec='${libname}${release}${shared_ext}$major'
18220     ;;
18221   esac
18222   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18223   postinstall_cmds='chmod 555 $lib'
18224   ;;
18225
18226 interix3*)
18227   version_type=linux
18228   need_lib_prefix=no
18229   need_version=no
18230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18231   soname_spec='${libname}${release}${shared_ext}$major'
18232   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18233   shlibpath_var=LD_LIBRARY_PATH
18234   shlibpath_overrides_runpath=no
18235   hardcode_into_libs=yes
18236   ;;
18237
18238 irix5* | irix6* | nonstopux*)
18239   case $host_os in
18240     nonstopux*) version_type=nonstopux ;;
18241     *)
18242         if test "$lt_cv_prog_gnu_ld" = yes; then
18243                 version_type=linux
18244         else
18245                 version_type=irix
18246         fi ;;
18247   esac
18248   need_lib_prefix=no
18249   need_version=no
18250   soname_spec='${libname}${release}${shared_ext}$major'
18251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18252   case $host_os in
18253   irix5* | nonstopux*)
18254     libsuff= shlibsuff=
18255     ;;
18256   *)
18257     case $LD in # libtool.m4 will add one of these switches to LD
18258     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18259       libsuff= shlibsuff= libmagic=32-bit;;
18260     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18261       libsuff=32 shlibsuff=N32 libmagic=N32;;
18262     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18263       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18264     *) libsuff= shlibsuff= libmagic=never-match;;
18265     esac
18266     ;;
18267   esac
18268   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18269   shlibpath_overrides_runpath=no
18270   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18271   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18272   hardcode_into_libs=yes
18273   ;;
18274
18275 # No shared lib support for Linux oldld, aout, or coff.
18276 linux*oldld* | linux*aout* | linux*coff*)
18277   dynamic_linker=no
18278   ;;
18279
18280 # This must be Linux ELF.
18281 linux* | k*bsd*-gnu)
18282   version_type=linux
18283   need_lib_prefix=no
18284   need_version=no
18285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18286   soname_spec='${libname}${release}${shared_ext}$major'
18287   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18288   shlibpath_var=LD_LIBRARY_PATH
18289   shlibpath_overrides_runpath=no
18290   # This implies no fast_install, which is unacceptable.
18291   # Some rework will be needed to allow for fast_install
18292   # before this can be enabled.
18293   hardcode_into_libs=yes
18294
18295   # Append ld.so.conf contents to the search path
18296   if test -f /etc/ld.so.conf; then
18297     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' ' '`
18298     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18299   fi
18300
18301   # We used to test for /lib/ld.so.1 and disable shared libraries on
18302   # powerpc, because MkLinux only supported shared libraries with the
18303   # GNU dynamic linker.  Since this was broken with cross compilers,
18304   # most powerpc-linux boxes support dynamic linking these days and
18305   # people can always --disable-shared, the test was removed, and we
18306   # assume the GNU/Linux dynamic linker is in use.
18307   dynamic_linker='GNU/Linux ld.so'
18308   ;;
18309
18310 netbsdelf*-gnu)
18311   version_type=linux
18312   need_lib_prefix=no
18313   need_version=no
18314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18315   soname_spec='${libname}${release}${shared_ext}$major'
18316   shlibpath_var=LD_LIBRARY_PATH
18317   shlibpath_overrides_runpath=no
18318   hardcode_into_libs=yes
18319   dynamic_linker='NetBSD ld.elf_so'
18320   ;;
18321
18322 netbsd*)
18323   version_type=sunos
18324   need_lib_prefix=no
18325   need_version=no
18326   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18327     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18328     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18329     dynamic_linker='NetBSD (a.out) ld.so'
18330   else
18331     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18332     soname_spec='${libname}${release}${shared_ext}$major'
18333     dynamic_linker='NetBSD ld.elf_so'
18334   fi
18335   shlibpath_var=LD_LIBRARY_PATH
18336   shlibpath_overrides_runpath=yes
18337   hardcode_into_libs=yes
18338   ;;
18339
18340 newsos6)
18341   version_type=linux
18342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18343   shlibpath_var=LD_LIBRARY_PATH
18344   shlibpath_overrides_runpath=yes
18345   ;;
18346
18347 nto-qnx*)
18348   version_type=linux
18349   need_lib_prefix=no
18350   need_version=no
18351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18352   soname_spec='${libname}${release}${shared_ext}$major'
18353   shlibpath_var=LD_LIBRARY_PATH
18354   shlibpath_overrides_runpath=yes
18355   ;;
18356
18357 openbsd*)
18358   version_type=sunos
18359   sys_lib_dlsearch_path_spec="/usr/lib"
18360   need_lib_prefix=no
18361   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18362   case $host_os in
18363     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18364     *)                         need_version=no  ;;
18365   esac
18366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18367   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18368   shlibpath_var=LD_LIBRARY_PATH
18369   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18370     case $host_os in
18371       openbsd2.[89] | openbsd2.[89].*)
18372         shlibpath_overrides_runpath=no
18373         ;;
18374       *)
18375         shlibpath_overrides_runpath=yes
18376         ;;
18377       esac
18378   else
18379     shlibpath_overrides_runpath=yes
18380   fi
18381   ;;
18382
18383 os2*)
18384   libname_spec='$name'
18385   shrext_cmds=".dll"
18386   need_lib_prefix=no
18387   library_names_spec='$libname${shared_ext} $libname.a'
18388   dynamic_linker='OS/2 ld.exe'
18389   shlibpath_var=LIBPATH
18390   ;;
18391
18392 osf3* | osf4* | osf5*)
18393   version_type=osf
18394   need_lib_prefix=no
18395   need_version=no
18396   soname_spec='${libname}${release}${shared_ext}$major'
18397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18398   shlibpath_var=LD_LIBRARY_PATH
18399   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18400   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18401   ;;
18402
18403 solaris*)
18404   version_type=linux
18405   need_lib_prefix=no
18406   need_version=no
18407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18408   soname_spec='${libname}${release}${shared_ext}$major'
18409   shlibpath_var=LD_LIBRARY_PATH
18410   shlibpath_overrides_runpath=yes
18411   hardcode_into_libs=yes
18412   # ldd complains unless libraries are executable
18413   postinstall_cmds='chmod +x $lib'
18414   ;;
18415
18416 sunos4*)
18417   version_type=sunos
18418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18419   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18420   shlibpath_var=LD_LIBRARY_PATH
18421   shlibpath_overrides_runpath=yes
18422   if test "$with_gnu_ld" = yes; then
18423     need_lib_prefix=no
18424   fi
18425   need_version=yes
18426   ;;
18427
18428 sysv4 | sysv4.3*)
18429   version_type=linux
18430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18431   soname_spec='${libname}${release}${shared_ext}$major'
18432   shlibpath_var=LD_LIBRARY_PATH
18433   case $host_vendor in
18434     sni)
18435       shlibpath_overrides_runpath=no
18436       need_lib_prefix=no
18437       export_dynamic_flag_spec='${wl}-Blargedynsym'
18438       runpath_var=LD_RUN_PATH
18439       ;;
18440     siemens)
18441       need_lib_prefix=no
18442       ;;
18443     motorola)
18444       need_lib_prefix=no
18445       need_version=no
18446       shlibpath_overrides_runpath=no
18447       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18448       ;;
18449   esac
18450   ;;
18451
18452 sysv4*MP*)
18453   if test -d /usr/nec ;then
18454     version_type=linux
18455     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18456     soname_spec='$libname${shared_ext}.$major'
18457     shlibpath_var=LD_LIBRARY_PATH
18458   fi
18459   ;;
18460
18461 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18462   version_type=freebsd-elf
18463   need_lib_prefix=no
18464   need_version=no
18465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18466   soname_spec='${libname}${release}${shared_ext}$major'
18467   shlibpath_var=LD_LIBRARY_PATH
18468   hardcode_into_libs=yes
18469   if test "$with_gnu_ld" = yes; then
18470     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18471     shlibpath_overrides_runpath=no
18472   else
18473     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18474     shlibpath_overrides_runpath=yes
18475     case $host_os in
18476       sco3.2v5*)
18477         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18478         ;;
18479     esac
18480   fi
18481   sys_lib_dlsearch_path_spec='/usr/lib'
18482   ;;
18483
18484 uts4*)
18485   version_type=linux
18486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18487   soname_spec='${libname}${release}${shared_ext}$major'
18488   shlibpath_var=LD_LIBRARY_PATH
18489   ;;
18490
18491 *)
18492   dynamic_linker=no
18493   ;;
18494 esac
18495 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18496 echo "${ECHO_T}$dynamic_linker" >&6; }
18497 test "$dynamic_linker" = no && can_build_shared=no
18498
18499 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18500 if test "$GCC" = yes; then
18501   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18502 fi
18503
18504 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18505 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18506 hardcode_action_GCJ=
18507 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18508    test -n "$runpath_var_GCJ" || \
18509    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18510
18511   # We can hardcode non-existant directories.
18512   if test "$hardcode_direct_GCJ" != no &&
18513      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18514      # have to relink, otherwise we might link with an installed library
18515      # when we should be linking with a yet-to-be-installed one
18516      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18517      test "$hardcode_minus_L_GCJ" != no; then
18518     # Linking always hardcodes the temporary library directory.
18519     hardcode_action_GCJ=relink
18520   else
18521     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18522     hardcode_action_GCJ=immediate
18523   fi
18524 else
18525   # We cannot hardcode anything, or else we can only hardcode existing
18526   # directories.
18527   hardcode_action_GCJ=unsupported
18528 fi
18529 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18530 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18531
18532 if test "$hardcode_action_GCJ" = relink; then
18533   # Fast installation is not supported
18534   enable_fast_install=no
18535 elif test "$shlibpath_overrides_runpath" = yes ||
18536      test "$enable_shared" = no; then
18537   # Fast installation is not necessary
18538   enable_fast_install=needless
18539 fi
18540
18541
18542 # The else clause should only fire when bootstrapping the
18543 # libtool distribution, otherwise you forgot to ship ltmain.sh
18544 # with your package, and you will get complaints that there are
18545 # no rules to generate ltmain.sh.
18546 if test -f "$ltmain"; then
18547   # See if we are running on zsh, and set the options which allow our commands through
18548   # without removal of \ escapes.
18549   if test -n "${ZSH_VERSION+set}" ; then
18550     setopt NO_GLOB_SUBST
18551   fi
18552   # Now quote all the things that may contain metacharacters while being
18553   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18554   # variables and quote the copies for generation of the libtool script.
18555   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18556     SED SHELL STRIP \
18557     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18558     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18559     deplibs_check_method reload_flag reload_cmds need_locks \
18560     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18561     lt_cv_sys_global_symbol_to_c_name_address \
18562     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18563     old_postinstall_cmds old_postuninstall_cmds \
18564     compiler_GCJ \
18565     CC_GCJ \
18566     LD_GCJ \
18567     lt_prog_compiler_wl_GCJ \
18568     lt_prog_compiler_pic_GCJ \
18569     lt_prog_compiler_static_GCJ \
18570     lt_prog_compiler_no_builtin_flag_GCJ \
18571     export_dynamic_flag_spec_GCJ \
18572     thread_safe_flag_spec_GCJ \
18573     whole_archive_flag_spec_GCJ \
18574     enable_shared_with_static_runtimes_GCJ \
18575     old_archive_cmds_GCJ \
18576     old_archive_from_new_cmds_GCJ \
18577     predep_objects_GCJ \
18578     postdep_objects_GCJ \
18579     predeps_GCJ \
18580     postdeps_GCJ \
18581     compiler_lib_search_path_GCJ \
18582     archive_cmds_GCJ \
18583     archive_expsym_cmds_GCJ \
18584     postinstall_cmds_GCJ \
18585     postuninstall_cmds_GCJ \
18586     old_archive_from_expsyms_cmds_GCJ \
18587     allow_undefined_flag_GCJ \
18588     no_undefined_flag_GCJ \
18589     export_symbols_cmds_GCJ \
18590     hardcode_libdir_flag_spec_GCJ \
18591     hardcode_libdir_flag_spec_ld_GCJ \
18592     hardcode_libdir_separator_GCJ \
18593     hardcode_automatic_GCJ \
18594     module_cmds_GCJ \
18595     module_expsym_cmds_GCJ \
18596     lt_cv_prog_compiler_c_o_GCJ \
18597     exclude_expsyms_GCJ \
18598     include_expsyms_GCJ; do
18599
18600     case $var in
18601     old_archive_cmds_GCJ | \
18602     old_archive_from_new_cmds_GCJ | \
18603     archive_cmds_GCJ | \
18604     archive_expsym_cmds_GCJ | \
18605     module_cmds_GCJ | \
18606     module_expsym_cmds_GCJ | \
18607     old_archive_from_expsyms_cmds_GCJ | \
18608     export_symbols_cmds_GCJ | \
18609     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18610     postinstall_cmds | postuninstall_cmds | \
18611     old_postinstall_cmds | old_postuninstall_cmds | \
18612     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18613       # Double-quote double-evaled strings.
18614       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18615       ;;
18616     *)
18617       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18618       ;;
18619     esac
18620   done
18621
18622   case $lt_echo in
18623   *'\$0 --fallback-echo"')
18624     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18625     ;;
18626   esac
18627
18628 cfgfile="$ofile"
18629
18630   cat <<__EOF__ >> "$cfgfile"
18631 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18632
18633 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18634
18635 # Shell to use when invoking shell scripts.
18636 SHELL=$lt_SHELL
18637
18638 # Whether or not to build shared libraries.
18639 build_libtool_libs=$enable_shared
18640
18641 # Whether or not to build static libraries.
18642 build_old_libs=$enable_static
18643
18644 # Whether or not to add -lc for building shared libraries.
18645 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18646
18647 # Whether or not to disallow shared libs when runtime libs are static
18648 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18649
18650 # Whether or not to optimize for fast installation.
18651 fast_install=$enable_fast_install
18652
18653 # The host system.
18654 host_alias=$host_alias
18655 host=$host
18656 host_os=$host_os
18657
18658 # The build system.
18659 build_alias=$build_alias
18660 build=$build
18661 build_os=$build_os
18662
18663 # An echo program that does not interpret backslashes.
18664 echo=$lt_echo
18665
18666 # The archiver.
18667 AR=$lt_AR
18668 AR_FLAGS=$lt_AR_FLAGS
18669
18670 # A C compiler.
18671 LTCC=$lt_LTCC
18672
18673 # LTCC compiler flags.
18674 LTCFLAGS=$lt_LTCFLAGS
18675
18676 # A language-specific compiler.
18677 CC=$lt_compiler_GCJ
18678
18679 # Is the compiler the GNU C compiler?
18680 with_gcc=$GCC_GCJ
18681
18682 # An ERE matcher.
18683 EGREP=$lt_EGREP
18684
18685 # The linker used to build libraries.
18686 LD=$lt_LD_GCJ
18687
18688 # Whether we need hard or soft links.
18689 LN_S=$lt_LN_S
18690
18691 # A BSD-compatible nm program.
18692 NM=$lt_NM
18693
18694 # A symbol stripping program
18695 STRIP=$lt_STRIP
18696
18697 # Used to examine libraries when file_magic_cmd begins "file"
18698 MAGIC_CMD=$MAGIC_CMD
18699
18700 # Used on cygwin: DLL creation program.
18701 DLLTOOL="$DLLTOOL"
18702
18703 # Used on cygwin: object dumper.
18704 OBJDUMP="$OBJDUMP"
18705
18706 # Used on cygwin: assembler.
18707 AS="$AS"
18708
18709 # The name of the directory that contains temporary libtool files.
18710 objdir=$objdir
18711
18712 # How to create reloadable object files.
18713 reload_flag=$lt_reload_flag
18714 reload_cmds=$lt_reload_cmds
18715
18716 # How to pass a linker flag through the compiler.
18717 wl=$lt_lt_prog_compiler_wl_GCJ
18718
18719 # Object file suffix (normally "o").
18720 objext="$ac_objext"
18721
18722 # Old archive suffix (normally "a").
18723 libext="$libext"
18724
18725 # Shared library suffix (normally ".so").
18726 shrext_cmds='$shrext_cmds'
18727
18728 # Executable file suffix (normally "").
18729 exeext="$exeext"
18730
18731 # Additional compiler flags for building library objects.
18732 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18733 pic_mode=$pic_mode
18734
18735 # What is the maximum length of a command?
18736 max_cmd_len=$lt_cv_sys_max_cmd_len
18737
18738 # Does compiler simultaneously support -c and -o options?
18739 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18740
18741 # Must we lock files when doing compilation?
18742 need_locks=$lt_need_locks
18743
18744 # Do we need the lib prefix for modules?
18745 need_lib_prefix=$need_lib_prefix
18746
18747 # Do we need a version for libraries?
18748 need_version=$need_version
18749
18750 # Whether dlopen is supported.
18751 dlopen_support=$enable_dlopen
18752
18753 # Whether dlopen of programs is supported.
18754 dlopen_self=$enable_dlopen_self
18755
18756 # Whether dlopen of statically linked programs is supported.
18757 dlopen_self_static=$enable_dlopen_self_static
18758
18759 # Compiler flag to prevent dynamic linking.
18760 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18761
18762 # Compiler flag to turn off builtin functions.
18763 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18764
18765 # Compiler flag to allow reflexive dlopens.
18766 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18767
18768 # Compiler flag to generate shared objects directly from archives.
18769 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18770
18771 # Compiler flag to generate thread-safe objects.
18772 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18773
18774 # Library versioning type.
18775 version_type=$version_type
18776
18777 # Format of library name prefix.
18778 libname_spec=$lt_libname_spec
18779
18780 # List of archive names.  First name is the real one, the rest are links.
18781 # The last name is the one that the linker finds with -lNAME.
18782 library_names_spec=$lt_library_names_spec
18783
18784 # The coded name of the library, if different from the real name.
18785 soname_spec=$lt_soname_spec
18786
18787 # Commands used to build and install an old-style archive.
18788 RANLIB=$lt_RANLIB
18789 old_archive_cmds=$lt_old_archive_cmds_GCJ
18790 old_postinstall_cmds=$lt_old_postinstall_cmds
18791 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18792
18793 # Create an old-style archive from a shared archive.
18794 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18795
18796 # Create a temporary old-style archive to link instead of a shared archive.
18797 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18798
18799 # Commands used to build and install a shared archive.
18800 archive_cmds=$lt_archive_cmds_GCJ
18801 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18802 postinstall_cmds=$lt_postinstall_cmds
18803 postuninstall_cmds=$lt_postuninstall_cmds
18804
18805 # Commands used to build a loadable module (assumed same as above if empty)
18806 module_cmds=$lt_module_cmds_GCJ
18807 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18808
18809 # Commands to strip libraries.
18810 old_striplib=$lt_old_striplib
18811 striplib=$lt_striplib
18812
18813 # Dependencies to place before the objects being linked to create a
18814 # shared library.
18815 predep_objects=$lt_predep_objects_GCJ
18816
18817 # Dependencies to place after the objects being linked to create a
18818 # shared library.
18819 postdep_objects=$lt_postdep_objects_GCJ
18820
18821 # Dependencies to place before the objects being linked to create a
18822 # shared library.
18823 predeps=$lt_predeps_GCJ
18824
18825 # Dependencies to place after the objects being linked to create a
18826 # shared library.
18827 postdeps=$lt_postdeps_GCJ
18828
18829 # The library search path used internally by the compiler when linking
18830 # a shared library.
18831 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18832
18833 # Method to check whether dependent libraries are shared objects.
18834 deplibs_check_method=$lt_deplibs_check_method
18835
18836 # Command to use when deplibs_check_method == file_magic.
18837 file_magic_cmd=$lt_file_magic_cmd
18838
18839 # Flag that allows shared libraries with undefined symbols to be built.
18840 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18841
18842 # Flag that forces no undefined symbols.
18843 no_undefined_flag=$lt_no_undefined_flag_GCJ
18844
18845 # Commands used to finish a libtool library installation in a directory.
18846 finish_cmds=$lt_finish_cmds
18847
18848 # Same as above, but a single script fragment to be evaled but not shown.
18849 finish_eval=$lt_finish_eval
18850
18851 # Take the output of nm and produce a listing of raw symbols and C names.
18852 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18853
18854 # Transform the output of nm in a proper C declaration
18855 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18856
18857 # Transform the output of nm in a C name address pair
18858 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18859
18860 # This is the shared library runtime path variable.
18861 runpath_var=$runpath_var
18862
18863 # This is the shared library path variable.
18864 shlibpath_var=$shlibpath_var
18865
18866 # Is shlibpath searched before the hard-coded library search path?
18867 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18868
18869 # How to hardcode a shared library path into an executable.
18870 hardcode_action=$hardcode_action_GCJ
18871
18872 # Whether we should hardcode library paths into libraries.
18873 hardcode_into_libs=$hardcode_into_libs
18874
18875 # Flag to hardcode \$libdir into a binary during linking.
18876 # This must work even if \$libdir does not exist.
18877 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18878
18879 # If ld is used when linking, flag to hardcode \$libdir into
18880 # a binary during linking. This must work even if \$libdir does
18881 # not exist.
18882 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18883
18884 # Whether we need a single -rpath flag with a separated argument.
18885 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18886
18887 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18888 # resulting binary.
18889 hardcode_direct=$hardcode_direct_GCJ
18890
18891 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18892 # resulting binary.
18893 hardcode_minus_L=$hardcode_minus_L_GCJ
18894
18895 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18896 # the resulting binary.
18897 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18898
18899 # Set to yes if building a shared library automatically hardcodes DIR into the library
18900 # and all subsequent libraries and executables linked against it.
18901 hardcode_automatic=$hardcode_automatic_GCJ
18902
18903 # Variables whose values should be saved in libtool wrapper scripts and
18904 # restored at relink time.
18905 variables_saved_for_relink="$variables_saved_for_relink"
18906
18907 # Whether libtool must link a program against all its dependency libraries.
18908 link_all_deplibs=$link_all_deplibs_GCJ
18909
18910 # Compile-time system search path for libraries
18911 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18912
18913 # Run-time system search path for libraries
18914 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18915
18916 # Fix the shell variable \$srcfile for the compiler.
18917 fix_srcfile_path="$fix_srcfile_path_GCJ"
18918
18919 # Set to yes if exported symbols are required.
18920 always_export_symbols=$always_export_symbols_GCJ
18921
18922 # The commands to list exported symbols.
18923 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18924
18925 # The commands to extract the exported symbol list from a shared archive.
18926 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18927
18928 # Symbols that should not be listed in the preloaded symbols.
18929 exclude_expsyms=$lt_exclude_expsyms_GCJ
18930
18931 # Symbols that must always be exported.
18932 include_expsyms=$lt_include_expsyms_GCJ
18933
18934 # ### END LIBTOOL TAG CONFIG: $tagname
18935
18936 __EOF__
18937
18938
18939 else
18940   # If there is no Makefile yet, we rely on a make rule to execute
18941   # `config.status --recheck' to rerun these tests and create the
18942   # libtool script then.
18943   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18944   if test -f "$ltmain_in"; then
18945     test -f Makefile && make "$ltmain"
18946   fi
18947 fi
18948
18949
18950 ac_ext=c
18951 ac_cpp='$CPP $CPPFLAGS'
18952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18955
18956 CC="$lt_save_CC"
18957
18958         else
18959           tagname=""
18960         fi
18961         ;;
18962
18963       RC)
18964
18965
18966 # Source file extension for RC test sources.
18967 ac_ext=rc
18968
18969 # Object file extension for compiled RC test sources.
18970 objext=o
18971 objext_RC=$objext
18972
18973 # Code to be used in simple compile tests
18974 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18975
18976 # Code to be used in simple link tests
18977 lt_simple_link_test_code="$lt_simple_compile_test_code"
18978
18979 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18980
18981 # If no C compiler was specified, use CC.
18982 LTCC=${LTCC-"$CC"}
18983
18984 # If no C compiler flags were specified, use CFLAGS.
18985 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18986
18987 # Allow CC to be a program name with arguments.
18988 compiler=$CC
18989
18990
18991 # save warnings/boilerplate of simple test code
18992 ac_outfile=conftest.$ac_objext
18993 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18994 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18995 _lt_compiler_boilerplate=`cat conftest.err`
18996 $rm conftest*
18997
18998 ac_outfile=conftest.$ac_objext
18999 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19000 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19001 _lt_linker_boilerplate=`cat conftest.err`
19002 $rm conftest*
19003
19004
19005 # Allow CC to be a program name with arguments.
19006 lt_save_CC="$CC"
19007 CC=${RC-"windres"}
19008 compiler=$CC
19009 compiler_RC=$CC
19010 for cc_temp in $compiler""; do
19011   case $cc_temp in
19012     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19013     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19014     \-*) ;;
19015     *) break;;
19016   esac
19017 done
19018 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19019
19020 lt_cv_prog_compiler_c_o_RC=yes
19021
19022 # The else clause should only fire when bootstrapping the
19023 # libtool distribution, otherwise you forgot to ship ltmain.sh
19024 # with your package, and you will get complaints that there are
19025 # no rules to generate ltmain.sh.
19026 if test -f "$ltmain"; then
19027   # See if we are running on zsh, and set the options which allow our commands through
19028   # without removal of \ escapes.
19029   if test -n "${ZSH_VERSION+set}" ; then
19030     setopt NO_GLOB_SUBST
19031   fi
19032   # Now quote all the things that may contain metacharacters while being
19033   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19034   # variables and quote the copies for generation of the libtool script.
19035   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19036     SED SHELL STRIP \
19037     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19038     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19039     deplibs_check_method reload_flag reload_cmds need_locks \
19040     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19041     lt_cv_sys_global_symbol_to_c_name_address \
19042     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19043     old_postinstall_cmds old_postuninstall_cmds \
19044     compiler_RC \
19045     CC_RC \
19046     LD_RC \
19047     lt_prog_compiler_wl_RC \
19048     lt_prog_compiler_pic_RC \
19049     lt_prog_compiler_static_RC \
19050     lt_prog_compiler_no_builtin_flag_RC \
19051     export_dynamic_flag_spec_RC \
19052     thread_safe_flag_spec_RC \
19053     whole_archive_flag_spec_RC \
19054     enable_shared_with_static_runtimes_RC \
19055     old_archive_cmds_RC \
19056     old_archive_from_new_cmds_RC \
19057     predep_objects_RC \
19058     postdep_objects_RC \
19059     predeps_RC \
19060     postdeps_RC \
19061     compiler_lib_search_path_RC \
19062     archive_cmds_RC \
19063     archive_expsym_cmds_RC \
19064     postinstall_cmds_RC \
19065     postuninstall_cmds_RC \
19066     old_archive_from_expsyms_cmds_RC \
19067     allow_undefined_flag_RC \
19068     no_undefined_flag_RC \
19069     export_symbols_cmds_RC \
19070     hardcode_libdir_flag_spec_RC \
19071     hardcode_libdir_flag_spec_ld_RC \
19072     hardcode_libdir_separator_RC \
19073     hardcode_automatic_RC \
19074     module_cmds_RC \
19075     module_expsym_cmds_RC \
19076     lt_cv_prog_compiler_c_o_RC \
19077     exclude_expsyms_RC \
19078     include_expsyms_RC; do
19079
19080     case $var in
19081     old_archive_cmds_RC | \
19082     old_archive_from_new_cmds_RC | \
19083     archive_cmds_RC | \
19084     archive_expsym_cmds_RC | \
19085     module_cmds_RC | \
19086     module_expsym_cmds_RC | \
19087     old_archive_from_expsyms_cmds_RC | \
19088     export_symbols_cmds_RC | \
19089     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19090     postinstall_cmds | postuninstall_cmds | \
19091     old_postinstall_cmds | old_postuninstall_cmds | \
19092     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19093       # Double-quote double-evaled strings.
19094       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19095       ;;
19096     *)
19097       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19098       ;;
19099     esac
19100   done
19101
19102   case $lt_echo in
19103   *'\$0 --fallback-echo"')
19104     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19105     ;;
19106   esac
19107
19108 cfgfile="$ofile"
19109
19110   cat <<__EOF__ >> "$cfgfile"
19111 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19112
19113 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19114
19115 # Shell to use when invoking shell scripts.
19116 SHELL=$lt_SHELL
19117
19118 # Whether or not to build shared libraries.
19119 build_libtool_libs=$enable_shared
19120
19121 # Whether or not to build static libraries.
19122 build_old_libs=$enable_static
19123
19124 # Whether or not to add -lc for building shared libraries.
19125 build_libtool_need_lc=$archive_cmds_need_lc_RC
19126
19127 # Whether or not to disallow shared libs when runtime libs are static
19128 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19129
19130 # Whether or not to optimize for fast installation.
19131 fast_install=$enable_fast_install
19132
19133 # The host system.
19134 host_alias=$host_alias
19135 host=$host
19136 host_os=$host_os
19137
19138 # The build system.
19139 build_alias=$build_alias
19140 build=$build
19141 build_os=$build_os
19142
19143 # An echo program that does not interpret backslashes.
19144 echo=$lt_echo
19145
19146 # The archiver.
19147 AR=$lt_AR
19148 AR_FLAGS=$lt_AR_FLAGS
19149
19150 # A C compiler.
19151 LTCC=$lt_LTCC
19152
19153 # LTCC compiler flags.
19154 LTCFLAGS=$lt_LTCFLAGS
19155
19156 # A language-specific compiler.
19157 CC=$lt_compiler_RC
19158
19159 # Is the compiler the GNU C compiler?
19160 with_gcc=$GCC_RC
19161
19162 # An ERE matcher.
19163 EGREP=$lt_EGREP
19164
19165 # The linker used to build libraries.
19166 LD=$lt_LD_RC
19167
19168 # Whether we need hard or soft links.
19169 LN_S=$lt_LN_S
19170
19171 # A BSD-compatible nm program.
19172 NM=$lt_NM
19173
19174 # A symbol stripping program
19175 STRIP=$lt_STRIP
19176
19177 # Used to examine libraries when file_magic_cmd begins "file"
19178 MAGIC_CMD=$MAGIC_CMD
19179
19180 # Used on cygwin: DLL creation program.
19181 DLLTOOL="$DLLTOOL"
19182
19183 # Used on cygwin: object dumper.
19184 OBJDUMP="$OBJDUMP"
19185
19186 # Used on cygwin: assembler.
19187 AS="$AS"
19188
19189 # The name of the directory that contains temporary libtool files.
19190 objdir=$objdir
19191
19192 # How to create reloadable object files.
19193 reload_flag=$lt_reload_flag
19194 reload_cmds=$lt_reload_cmds
19195
19196 # How to pass a linker flag through the compiler.
19197 wl=$lt_lt_prog_compiler_wl_RC
19198
19199 # Object file suffix (normally "o").
19200 objext="$ac_objext"
19201
19202 # Old archive suffix (normally "a").
19203 libext="$libext"
19204
19205 # Shared library suffix (normally ".so").
19206 shrext_cmds='$shrext_cmds'
19207
19208 # Executable file suffix (normally "").
19209 exeext="$exeext"
19210
19211 # Additional compiler flags for building library objects.
19212 pic_flag=$lt_lt_prog_compiler_pic_RC
19213 pic_mode=$pic_mode
19214
19215 # What is the maximum length of a command?
19216 max_cmd_len=$lt_cv_sys_max_cmd_len
19217
19218 # Does compiler simultaneously support -c and -o options?
19219 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19220
19221 # Must we lock files when doing compilation?
19222 need_locks=$lt_need_locks
19223
19224 # Do we need the lib prefix for modules?
19225 need_lib_prefix=$need_lib_prefix
19226
19227 # Do we need a version for libraries?
19228 need_version=$need_version
19229
19230 # Whether dlopen is supported.
19231 dlopen_support=$enable_dlopen
19232
19233 # Whether dlopen of programs is supported.
19234 dlopen_self=$enable_dlopen_self
19235
19236 # Whether dlopen of statically linked programs is supported.
19237 dlopen_self_static=$enable_dlopen_self_static
19238
19239 # Compiler flag to prevent dynamic linking.
19240 link_static_flag=$lt_lt_prog_compiler_static_RC
19241
19242 # Compiler flag to turn off builtin functions.
19243 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19244
19245 # Compiler flag to allow reflexive dlopens.
19246 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19247
19248 # Compiler flag to generate shared objects directly from archives.
19249 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19250
19251 # Compiler flag to generate thread-safe objects.
19252 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19253
19254 # Library versioning type.
19255 version_type=$version_type
19256
19257 # Format of library name prefix.
19258 libname_spec=$lt_libname_spec
19259
19260 # List of archive names.  First name is the real one, the rest are links.
19261 # The last name is the one that the linker finds with -lNAME.
19262 library_names_spec=$lt_library_names_spec
19263
19264 # The coded name of the library, if different from the real name.
19265 soname_spec=$lt_soname_spec
19266
19267 # Commands used to build and install an old-style archive.
19268 RANLIB=$lt_RANLIB
19269 old_archive_cmds=$lt_old_archive_cmds_RC
19270 old_postinstall_cmds=$lt_old_postinstall_cmds
19271 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19272
19273 # Create an old-style archive from a shared archive.
19274 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19275
19276 # Create a temporary old-style archive to link instead of a shared archive.
19277 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19278
19279 # Commands used to build and install a shared archive.
19280 archive_cmds=$lt_archive_cmds_RC
19281 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19282 postinstall_cmds=$lt_postinstall_cmds
19283 postuninstall_cmds=$lt_postuninstall_cmds
19284
19285 # Commands used to build a loadable module (assumed same as above if empty)
19286 module_cmds=$lt_module_cmds_RC
19287 module_expsym_cmds=$lt_module_expsym_cmds_RC
19288
19289 # Commands to strip libraries.
19290 old_striplib=$lt_old_striplib
19291 striplib=$lt_striplib
19292
19293 # Dependencies to place before the objects being linked to create a
19294 # shared library.
19295 predep_objects=$lt_predep_objects_RC
19296
19297 # Dependencies to place after the objects being linked to create a
19298 # shared library.
19299 postdep_objects=$lt_postdep_objects_RC
19300
19301 # Dependencies to place before the objects being linked to create a
19302 # shared library.
19303 predeps=$lt_predeps_RC
19304
19305 # Dependencies to place after the objects being linked to create a
19306 # shared library.
19307 postdeps=$lt_postdeps_RC
19308
19309 # The library search path used internally by the compiler when linking
19310 # a shared library.
19311 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19312
19313 # Method to check whether dependent libraries are shared objects.
19314 deplibs_check_method=$lt_deplibs_check_method
19315
19316 # Command to use when deplibs_check_method == file_magic.
19317 file_magic_cmd=$lt_file_magic_cmd
19318
19319 # Flag that allows shared libraries with undefined symbols to be built.
19320 allow_undefined_flag=$lt_allow_undefined_flag_RC
19321
19322 # Flag that forces no undefined symbols.
19323 no_undefined_flag=$lt_no_undefined_flag_RC
19324
19325 # Commands used to finish a libtool library installation in a directory.
19326 finish_cmds=$lt_finish_cmds
19327
19328 # Same as above, but a single script fragment to be evaled but not shown.
19329 finish_eval=$lt_finish_eval
19330
19331 # Take the output of nm and produce a listing of raw symbols and C names.
19332 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19333
19334 # Transform the output of nm in a proper C declaration
19335 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19336
19337 # Transform the output of nm in a C name address pair
19338 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19339
19340 # This is the shared library runtime path variable.
19341 runpath_var=$runpath_var
19342
19343 # This is the shared library path variable.
19344 shlibpath_var=$shlibpath_var
19345
19346 # Is shlibpath searched before the hard-coded library search path?
19347 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19348
19349 # How to hardcode a shared library path into an executable.
19350 hardcode_action=$hardcode_action_RC
19351
19352 # Whether we should hardcode library paths into libraries.
19353 hardcode_into_libs=$hardcode_into_libs
19354
19355 # Flag to hardcode \$libdir into a binary during linking.
19356 # This must work even if \$libdir does not exist.
19357 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19358
19359 # If ld is used when linking, flag to hardcode \$libdir into
19360 # a binary during linking. This must work even if \$libdir does
19361 # not exist.
19362 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19363
19364 # Whether we need a single -rpath flag with a separated argument.
19365 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19366
19367 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19368 # resulting binary.
19369 hardcode_direct=$hardcode_direct_RC
19370
19371 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19372 # resulting binary.
19373 hardcode_minus_L=$hardcode_minus_L_RC
19374
19375 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19376 # the resulting binary.
19377 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19378
19379 # Set to yes if building a shared library automatically hardcodes DIR into the library
19380 # and all subsequent libraries and executables linked against it.
19381 hardcode_automatic=$hardcode_automatic_RC
19382
19383 # Variables whose values should be saved in libtool wrapper scripts and
19384 # restored at relink time.
19385 variables_saved_for_relink="$variables_saved_for_relink"
19386
19387 # Whether libtool must link a program against all its dependency libraries.
19388 link_all_deplibs=$link_all_deplibs_RC
19389
19390 # Compile-time system search path for libraries
19391 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19392
19393 # Run-time system search path for libraries
19394 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19395
19396 # Fix the shell variable \$srcfile for the compiler.
19397 fix_srcfile_path="$fix_srcfile_path_RC"
19398
19399 # Set to yes if exported symbols are required.
19400 always_export_symbols=$always_export_symbols_RC
19401
19402 # The commands to list exported symbols.
19403 export_symbols_cmds=$lt_export_symbols_cmds_RC
19404
19405 # The commands to extract the exported symbol list from a shared archive.
19406 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19407
19408 # Symbols that should not be listed in the preloaded symbols.
19409 exclude_expsyms=$lt_exclude_expsyms_RC
19410
19411 # Symbols that must always be exported.
19412 include_expsyms=$lt_include_expsyms_RC
19413
19414 # ### END LIBTOOL TAG CONFIG: $tagname
19415
19416 __EOF__
19417
19418
19419 else
19420   # If there is no Makefile yet, we rely on a make rule to execute
19421   # `config.status --recheck' to rerun these tests and create the
19422   # libtool script then.
19423   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19424   if test -f "$ltmain_in"; then
19425     test -f Makefile && make "$ltmain"
19426   fi
19427 fi
19428
19429
19430 ac_ext=c
19431 ac_cpp='$CPP $CPPFLAGS'
19432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19435
19436 CC="$lt_save_CC"
19437
19438         ;;
19439
19440       *)
19441         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19442 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19443    { (exit 1); exit 1; }; }
19444         ;;
19445       esac
19446
19447       # Append the new tag name to the list of available tags.
19448       if test -n "$tagname" ; then
19449       available_tags="$available_tags $tagname"
19450     fi
19451     fi
19452   done
19453   IFS="$lt_save_ifs"
19454
19455   # Now substitute the updated list of available tags.
19456   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19457     mv "${ofile}T" "$ofile"
19458     chmod +x "$ofile"
19459   else
19460     rm -f "${ofile}T"
19461     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19462 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19463    { (exit 1); exit 1; }; }
19464   fi
19465 fi
19466
19467
19468
19469 # This can be used to rebuild libtool when needed
19470 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19471
19472 # Always use our own libtool.
19473 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19474
19475 # Prevent multiple expansion
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497 ###############
19498 ## System checks
19499 ##
19500
19501   { echo "$as_me:$LINENO: result: " >&5
19502 echo "${ECHO_T}" >&6; }
19503   { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19504 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19505
19506 ac_ext=c
19507 ac_cpp='$CPP $CPPFLAGS'
19508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19511 if test -n "$ac_tool_prefix"; then
19512   for ac_prog in xlC gcc cc
19513   do
19514     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19515 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19518 if test "${ac_cv_prog_CC+set}" = set; then
19519   echo $ECHO_N "(cached) $ECHO_C" >&6
19520 else
19521   if test -n "$CC"; then
19522   ac_cv_prog_CC="$CC" # Let the user override the test.
19523 else
19524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19525 for as_dir in $PATH
19526 do
19527   IFS=$as_save_IFS
19528   test -z "$as_dir" && as_dir=.
19529   for ac_exec_ext in '' $ac_executable_extensions; do
19530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19531     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19533     break 2
19534   fi
19535 done
19536 done
19537 IFS=$as_save_IFS
19538
19539 fi
19540 fi
19541 CC=$ac_cv_prog_CC
19542 if test -n "$CC"; then
19543   { echo "$as_me:$LINENO: result: $CC" >&5
19544 echo "${ECHO_T}$CC" >&6; }
19545 else
19546   { echo "$as_me:$LINENO: result: no" >&5
19547 echo "${ECHO_T}no" >&6; }
19548 fi
19549
19550
19551     test -n "$CC" && break
19552   done
19553 fi
19554 if test -z "$CC"; then
19555   ac_ct_CC=$CC
19556   for ac_prog in xlC gcc cc
19557 do
19558   # Extract the first word of "$ac_prog", so it can be a program name with args.
19559 set dummy $ac_prog; ac_word=$2
19560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19563   echo $ECHO_N "(cached) $ECHO_C" >&6
19564 else
19565   if test -n "$ac_ct_CC"; then
19566   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19567 else
19568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19569 for as_dir in $PATH
19570 do
19571   IFS=$as_save_IFS
19572   test -z "$as_dir" && as_dir=.
19573   for ac_exec_ext in '' $ac_executable_extensions; do
19574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19575     ac_cv_prog_ac_ct_CC="$ac_prog"
19576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19577     break 2
19578   fi
19579 done
19580 done
19581 IFS=$as_save_IFS
19582
19583 fi
19584 fi
19585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19586 if test -n "$ac_ct_CC"; then
19587   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19588 echo "${ECHO_T}$ac_ct_CC" >&6; }
19589 else
19590   { echo "$as_me:$LINENO: result: no" >&5
19591 echo "${ECHO_T}no" >&6; }
19592 fi
19593
19594
19595   test -n "$ac_ct_CC" && break
19596 done
19597
19598   if test "x$ac_ct_CC" = x; then
19599     CC=""
19600   else
19601     case $cross_compiling:$ac_tool_warned in
19602 yes:)
19603 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19604 whose name does not start with the host triplet.  If you think this
19605 configuration is useful to you, please write to autoconf@gnu.org." >&5
19606 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19607 whose name does not start with the host triplet.  If you think this
19608 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19609 ac_tool_warned=yes ;;
19610 esac
19611     CC=$ac_ct_CC
19612   fi
19613 fi
19614
19615
19616 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19617 See \`config.log' for more details." >&5
19618 echo "$as_me: error: no acceptable C compiler found in \$PATH
19619 See \`config.log' for more details." >&2;}
19620    { (exit 1); exit 1; }; }
19621
19622 # Provide some information about the compiler.
19623 echo "$as_me:$LINENO: checking for C compiler version" >&5
19624 ac_compiler=`set X $ac_compile; echo $2`
19625 { (ac_try="$ac_compiler --version >&5"
19626 case "(($ac_try" in
19627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628   *) ac_try_echo=$ac_try;;
19629 esac
19630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631   (eval "$ac_compiler --version >&5") 2>&5
19632   ac_status=$?
19633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634   (exit $ac_status); }
19635 { (ac_try="$ac_compiler -v >&5"
19636 case "(($ac_try" in
19637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638   *) ac_try_echo=$ac_try;;
19639 esac
19640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19641   (eval "$ac_compiler -v >&5") 2>&5
19642   ac_status=$?
19643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644   (exit $ac_status); }
19645 { (ac_try="$ac_compiler -V >&5"
19646 case "(($ac_try" in
19647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648   *) ac_try_echo=$ac_try;;
19649 esac
19650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19651   (eval "$ac_compiler -V >&5") 2>&5
19652   ac_status=$?
19653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654   (exit $ac_status); }
19655
19656 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19657 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19658 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19659   echo $ECHO_N "(cached) $ECHO_C" >&6
19660 else
19661   cat >conftest.$ac_ext <<_ACEOF
19662 /* confdefs.h.  */
19663 _ACEOF
19664 cat confdefs.h >>conftest.$ac_ext
19665 cat >>conftest.$ac_ext <<_ACEOF
19666 /* end confdefs.h.  */
19667
19668 int
19669 main ()
19670 {
19671 #ifndef __GNUC__
19672        choke me
19673 #endif
19674
19675   ;
19676   return 0;
19677 }
19678 _ACEOF
19679 rm -f conftest.$ac_objext
19680 if { (ac_try="$ac_compile"
19681 case "(($ac_try" in
19682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683   *) ac_try_echo=$ac_try;;
19684 esac
19685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686   (eval "$ac_compile") 2>conftest.er1
19687   ac_status=$?
19688   grep -v '^ *+' conftest.er1 >conftest.err
19689   rm -f conftest.er1
19690   cat conftest.err >&5
19691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692   (exit $ac_status); } && {
19693          test -z "$ac_c_werror_flag" ||
19694          test ! -s conftest.err
19695        } && test -s conftest.$ac_objext; then
19696   ac_compiler_gnu=yes
19697 else
19698   echo "$as_me: failed program was:" >&5
19699 sed 's/^/| /' conftest.$ac_ext >&5
19700
19701         ac_compiler_gnu=no
19702 fi
19703
19704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19705 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19706
19707 fi
19708 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19709 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19710 GCC=`test $ac_compiler_gnu = yes && echo yes`
19711 ac_test_CFLAGS=${CFLAGS+set}
19712 ac_save_CFLAGS=$CFLAGS
19713 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19714 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19715 if test "${ac_cv_prog_cc_g+set}" = set; then
19716   echo $ECHO_N "(cached) $ECHO_C" >&6
19717 else
19718   ac_save_c_werror_flag=$ac_c_werror_flag
19719    ac_c_werror_flag=yes
19720    ac_cv_prog_cc_g=no
19721    CFLAGS="-g"
19722    cat >conftest.$ac_ext <<_ACEOF
19723 /* confdefs.h.  */
19724 _ACEOF
19725 cat confdefs.h >>conftest.$ac_ext
19726 cat >>conftest.$ac_ext <<_ACEOF
19727 /* end confdefs.h.  */
19728
19729 int
19730 main ()
19731 {
19732
19733   ;
19734   return 0;
19735 }
19736 _ACEOF
19737 rm -f conftest.$ac_objext
19738 if { (ac_try="$ac_compile"
19739 case "(($ac_try" in
19740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741   *) ac_try_echo=$ac_try;;
19742 esac
19743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19744   (eval "$ac_compile") 2>conftest.er1
19745   ac_status=$?
19746   grep -v '^ *+' conftest.er1 >conftest.err
19747   rm -f conftest.er1
19748   cat conftest.err >&5
19749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750   (exit $ac_status); } && {
19751          test -z "$ac_c_werror_flag" ||
19752          test ! -s conftest.err
19753        } && test -s conftest.$ac_objext; then
19754   ac_cv_prog_cc_g=yes
19755 else
19756   echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19758
19759         CFLAGS=""
19760       cat >conftest.$ac_ext <<_ACEOF
19761 /* confdefs.h.  */
19762 _ACEOF
19763 cat confdefs.h >>conftest.$ac_ext
19764 cat >>conftest.$ac_ext <<_ACEOF
19765 /* end confdefs.h.  */
19766
19767 int
19768 main ()
19769 {
19770
19771   ;
19772   return 0;
19773 }
19774 _ACEOF
19775 rm -f conftest.$ac_objext
19776 if { (ac_try="$ac_compile"
19777 case "(($ac_try" in
19778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779   *) ac_try_echo=$ac_try;;
19780 esac
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782   (eval "$ac_compile") 2>conftest.er1
19783   ac_status=$?
19784   grep -v '^ *+' conftest.er1 >conftest.err
19785   rm -f conftest.er1
19786   cat conftest.err >&5
19787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788   (exit $ac_status); } && {
19789          test -z "$ac_c_werror_flag" ||
19790          test ! -s conftest.err
19791        } && test -s conftest.$ac_objext; then
19792   :
19793 else
19794   echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19796
19797         ac_c_werror_flag=$ac_save_c_werror_flag
19798          CFLAGS="-g"
19799          cat >conftest.$ac_ext <<_ACEOF
19800 /* confdefs.h.  */
19801 _ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h.  */
19805
19806 int
19807 main ()
19808 {
19809
19810   ;
19811   return 0;
19812 }
19813 _ACEOF
19814 rm -f conftest.$ac_objext
19815 if { (ac_try="$ac_compile"
19816 case "(($ac_try" in
19817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818   *) ac_try_echo=$ac_try;;
19819 esac
19820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821   (eval "$ac_compile") 2>conftest.er1
19822   ac_status=$?
19823   grep -v '^ *+' conftest.er1 >conftest.err
19824   rm -f conftest.er1
19825   cat conftest.err >&5
19826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827   (exit $ac_status); } && {
19828          test -z "$ac_c_werror_flag" ||
19829          test ! -s conftest.err
19830        } && test -s conftest.$ac_objext; then
19831   ac_cv_prog_cc_g=yes
19832 else
19833   echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.$ac_ext >&5
19835
19836
19837 fi
19838
19839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19840 fi
19841
19842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19843 fi
19844
19845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19846    ac_c_werror_flag=$ac_save_c_werror_flag
19847 fi
19848 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19849 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19850 if test "$ac_test_CFLAGS" = set; then
19851   CFLAGS=$ac_save_CFLAGS
19852 elif test $ac_cv_prog_cc_g = yes; then
19853   if test "$GCC" = yes; then
19854     CFLAGS="-g -O2"
19855   else
19856     CFLAGS="-g"
19857   fi
19858 else
19859   if test "$GCC" = yes; then
19860     CFLAGS="-O2"
19861   else
19862     CFLAGS=
19863   fi
19864 fi
19865 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19866 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19867 if test "${ac_cv_prog_cc_c89+set}" = set; then
19868   echo $ECHO_N "(cached) $ECHO_C" >&6
19869 else
19870   ac_cv_prog_cc_c89=no
19871 ac_save_CC=$CC
19872 cat >conftest.$ac_ext <<_ACEOF
19873 /* confdefs.h.  */
19874 _ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h.  */
19878 #include <stdarg.h>
19879 #include <stdio.h>
19880 #include <sys/types.h>
19881 #include <sys/stat.h>
19882 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19883 struct buf { int x; };
19884 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19885 static char *e (p, i)
19886      char **p;
19887      int i;
19888 {
19889   return p[i];
19890 }
19891 static char *f (char * (*g) (char **, int), char **p, ...)
19892 {
19893   char *s;
19894   va_list v;
19895   va_start (v,p);
19896   s = g (p, va_arg (v,int));
19897   va_end (v);
19898   return s;
19899 }
19900
19901 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19902    function prototypes and stuff, but not '\xHH' hex character constants.
19903    These don't provoke an error unfortunately, instead are silently treated
19904    as 'x'.  The following induces an error, until -std is added to get
19905    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19906    array size at least.  It's necessary to write '\x00'==0 to get something
19907    that's true only with -std.  */
19908 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19909
19910 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19911    inside strings and character constants.  */
19912 #define FOO(x) 'x'
19913 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19914
19915 int test (int i, double x);
19916 struct s1 {int (*f) (int a);};
19917 struct s2 {int (*f) (double a);};
19918 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19919 int argc;
19920 char **argv;
19921 int
19922 main ()
19923 {
19924 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19925   ;
19926   return 0;
19927 }
19928 _ACEOF
19929 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19930         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19931 do
19932   CC="$ac_save_CC $ac_arg"
19933   rm -f conftest.$ac_objext
19934 if { (ac_try="$ac_compile"
19935 case "(($ac_try" in
19936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937   *) ac_try_echo=$ac_try;;
19938 esac
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940   (eval "$ac_compile") 2>conftest.er1
19941   ac_status=$?
19942   grep -v '^ *+' conftest.er1 >conftest.err
19943   rm -f conftest.er1
19944   cat conftest.err >&5
19945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946   (exit $ac_status); } && {
19947          test -z "$ac_c_werror_flag" ||
19948          test ! -s conftest.err
19949        } && test -s conftest.$ac_objext; then
19950   ac_cv_prog_cc_c89=$ac_arg
19951 else
19952   echo "$as_me: failed program was:" >&5
19953 sed 's/^/| /' conftest.$ac_ext >&5
19954
19955
19956 fi
19957
19958 rm -f core conftest.err conftest.$ac_objext
19959   test "x$ac_cv_prog_cc_c89" != "xno" && break
19960 done
19961 rm -f conftest.$ac_ext
19962 CC=$ac_save_CC
19963
19964 fi
19965 # AC_CACHE_VAL
19966 case "x$ac_cv_prog_cc_c89" in
19967   x)
19968     { echo "$as_me:$LINENO: result: none needed" >&5
19969 echo "${ECHO_T}none needed" >&6; } ;;
19970   xno)
19971     { echo "$as_me:$LINENO: result: unsupported" >&5
19972 echo "${ECHO_T}unsupported" >&6; } ;;
19973   *)
19974     CC="$CC $ac_cv_prog_cc_c89"
19975     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19976 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19977 esac
19978
19979
19980 ac_ext=c
19981 ac_cpp='$CPP $CPPFLAGS'
19982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19985
19986 depcc="$CC"   am_compiler_list=
19987
19988 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19989 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19990 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19991   echo $ECHO_N "(cached) $ECHO_C" >&6
19992 else
19993   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19994   # We make a subdir and do the tests there.  Otherwise we can end up
19995   # making bogus files that we don't know about and never remove.  For
19996   # instance it was reported that on HP-UX the gcc test will end up
19997   # making a dummy file named `D' -- because `-MD' means `put the output
19998   # in D'.
19999   mkdir conftest.dir
20000   # Copy depcomp to subdir because otherwise we won't find it if we're
20001   # using a relative directory.
20002   cp "$am_depcomp" conftest.dir
20003   cd conftest.dir
20004   # We will build objects and dependencies in a subdirectory because
20005   # it helps to detect inapplicable dependency modes.  For instance
20006   # both Tru64's cc and ICC support -MD to output dependencies as a
20007   # side effect of compilation, but ICC will put the dependencies in
20008   # the current directory while Tru64 will put them in the object
20009   # directory.
20010   mkdir sub
20011
20012   am_cv_CC_dependencies_compiler_type=none
20013   if test "$am_compiler_list" = ""; then
20014      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20015   fi
20016   for depmode in $am_compiler_list; do
20017     # Setup a source with many dependencies, because some compilers
20018     # like to wrap large dependency lists on column 80 (with \), and
20019     # we should not choose a depcomp mode which is confused by this.
20020     #
20021     # We need to recreate these files for each test, as the compiler may
20022     # overwrite some of them when testing with obscure command lines.
20023     # This happens at least with the AIX C compiler.
20024     : > sub/conftest.c
20025     for i in 1 2 3 4 5 6; do
20026       echo '#include "conftst'$i'.h"' >> sub/conftest.c
20027       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20028       # Solaris 8's {/usr,}/bin/sh.
20029       touch sub/conftst$i.h
20030     done
20031     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20032
20033     case $depmode in
20034     nosideeffect)
20035       # after this tag, mechanisms are not by side-effect, so they'll
20036       # only be used when explicitly requested
20037       if test "x$enable_dependency_tracking" = xyes; then
20038         continue
20039       else
20040         break
20041       fi
20042       ;;
20043     none) break ;;
20044     esac
20045     # We check with `-c' and `-o' for the sake of the "dashmstdout"
20046     # mode.  It turns out that the SunPro C++ compiler does not properly
20047     # handle `-M -o', and we need to detect this.
20048     if depmode=$depmode \
20049        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20050        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20051        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20052          >/dev/null 2>conftest.err &&
20053        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20054        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20055        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20056       # icc doesn't choke on unknown options, it will just issue warnings
20057       # or remarks (even with -Werror).  So we grep stderr for any message
20058       # that says an option was ignored or not supported.
20059       # When given -MP, icc 7.0 and 7.1 complain thusly:
20060       #   icc: Command line warning: ignoring option '-M'; no argument required
20061       # The diagnosis changed in icc 8.0:
20062       #   icc: Command line remark: option '-MP' not supported
20063       if (grep 'ignoring option' conftest.err ||
20064           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20065         am_cv_CC_dependencies_compiler_type=$depmode
20066         break
20067       fi
20068     fi
20069   done
20070
20071   cd ..
20072   rm -rf conftest.dir
20073 else
20074   am_cv_CC_dependencies_compiler_type=none
20075 fi
20076
20077 fi
20078 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20079 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20080 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20081
20082
20083
20084 if
20085   test "x$enable_dependency_tracking" != xno \
20086   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20087   am__fastdepCC_TRUE=
20088   am__fastdepCC_FALSE='#'
20089 else
20090   am__fastdepCC_TRUE='#'
20091   am__fastdepCC_FALSE=
20092 fi
20093
20094
20095 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20096 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20097 # Just in case
20098 sleep 1
20099 echo timestamp > conftest.file
20100 # Do `set' in a subshell so we don't clobber the current shell's
20101 # arguments.  Must try -L first in case configure is actually a
20102 # symlink; some systems play weird games with the mod time of symlinks
20103 # (eg FreeBSD returns the mod time of the symlink's containing
20104 # directory).
20105 if (
20106    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20107    if test "$*" = "X"; then
20108       # -L didn't work.
20109       set X `ls -t $srcdir/configure conftest.file`
20110    fi
20111    rm -f conftest.file
20112    if test "$*" != "X $srcdir/configure conftest.file" \
20113       && test "$*" != "X conftest.file $srcdir/configure"; then
20114
20115       # If neither matched, then we have a broken ls.  This can happen
20116       # if, for instance, CONFIG_SHELL is bash and it inherits a
20117       # broken ls alias from the environment.  This has actually
20118       # happened.  Such a system could not be considered "sane".
20119       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
20120 alias in your environment" >&5
20121 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
20122 alias in your environment" >&2;}
20123    { (exit 1); exit 1; }; }
20124    fi
20125
20126    test "$2" = conftest.file
20127    )
20128 then
20129    # Ok.
20130    :
20131 else
20132    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20133 Check your system clock" >&5
20134 echo "$as_me: error: newly created file is older than distributed files!
20135 Check your system clock" >&2;}
20136    { (exit 1); exit 1; }; }
20137 fi
20138 { echo "$as_me:$LINENO: result: yes" >&5
20139 echo "${ECHO_T}yes" >&6; }
20140 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20141 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20142 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20143 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20144   echo $ECHO_N "(cached) $ECHO_C" >&6
20145 else
20146   cat >conftest.make <<\_ACEOF
20147 SHELL = /bin/sh
20148 all:
20149         @echo '@@@%%%=$(MAKE)=@@@%%%'
20150 _ACEOF
20151 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20152 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20153   *@@@%%%=?*=@@@%%%*)
20154     eval ac_cv_prog_make_${ac_make}_set=yes;;
20155   *)
20156     eval ac_cv_prog_make_${ac_make}_set=no;;
20157 esac
20158 rm -f conftest.make
20159 fi
20160 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20161   { echo "$as_me:$LINENO: result: yes" >&5
20162 echo "${ECHO_T}yes" >&6; }
20163   SET_MAKE=
20164 else
20165   { echo "$as_me:$LINENO: result: no" >&5
20166 echo "${ECHO_T}no" >&6; }
20167   SET_MAKE="MAKE=${MAKE-make}"
20168 fi
20169
20170
20171 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20172 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20173 if test "$cross_compiling" = yes; then
20174   { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20175 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20176 else
20177   cat >conftest.$ac_ext <<_ACEOF
20178 /* confdefs.h.  */
20179 _ACEOF
20180 cat confdefs.h >>conftest.$ac_ext
20181 cat >>conftest.$ac_ext <<_ACEOF
20182 /* end confdefs.h.  */
20183 #include <stdio.h>
20184 int
20185 main ()
20186 {
20187 printf("%s",NULL);
20188   ;
20189   return 0;
20190 }
20191 _ACEOF
20192 rm -f conftest$ac_exeext
20193 if { (ac_try="$ac_link"
20194 case "(($ac_try" in
20195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20196   *) ac_try_echo=$ac_try;;
20197 esac
20198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20199   (eval "$ac_link") 2>&5
20200   ac_status=$?
20201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20203   { (case "(($ac_try" in
20204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20205   *) ac_try_echo=$ac_try;;
20206 esac
20207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20208   (eval "$ac_try") 2>&5
20209   ac_status=$?
20210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211   (exit $ac_status); }; }; then
20212
20213 cat >>confdefs.h <<\_ACEOF
20214 #define PRINTF_NULL_WORKING 1
20215 _ACEOF
20216
20217               { echo "$as_me:$LINENO: result: yes" >&5
20218 echo "${ECHO_T}yes" >&6; }
20219 else
20220   echo "$as_me: program exited with status $ac_status" >&5
20221 echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20223
20224 ( exit $ac_status )
20225 { echo "$as_me:$LINENO: result: no" >&5
20226 echo "${ECHO_T}no" >&6; }
20227 fi
20228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20229 fi
20230
20231
20232
20233
20234     { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20235 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20236     if test "${ac_cv_va_copy+set}" = set; then
20237   echo $ECHO_N "(cached) $ECHO_C" >&6
20238 else
20239
20240     ac_cv_va_copy=""
20241
20242
20243
20244     if test ".$ac_cv_va_copy" = .; then
20245         if test "$cross_compiling" = yes; then
20246   ac_cv_va_copy="C99"
20247 else
20248   cat >conftest.$ac_ext <<_ACEOF
20249 /* confdefs.h.  */
20250 _ACEOF
20251 cat confdefs.h >>conftest.$ac_ext
20252 cat >>conftest.$ac_ext <<_ACEOF
20253 /* end confdefs.h.  */
20254
20255 #include <stdlib.h>
20256 #include <stdarg.h>
20257 #include <string.h>
20258 #define DO_VA_COPY(d, s) va_copy((d), (s))
20259 void test(char *str, ...)
20260 {
20261     va_list ap, ap2;
20262     int i;
20263     va_start(ap, str);
20264     DO_VA_COPY(ap2, ap);
20265     for (i = 1; i <= 9; i++) {
20266         int k = (int)va_arg(ap, int);
20267         if (k != i)
20268             abort();
20269     }
20270     DO_VA_COPY(ap, ap2);
20271     for (i = 1; i <= 9; i++) {
20272         int k = (int)va_arg(ap, int);
20273         if (k != i)
20274             abort();
20275     }
20276     va_end(ap);
20277 }
20278 int main(int argc, char *argv[])
20279 {
20280     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20281     exit(0);
20282 }
20283
20284 _ACEOF
20285 rm -f conftest$ac_exeext
20286 if { (ac_try="$ac_link"
20287 case "(($ac_try" in
20288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20289   *) ac_try_echo=$ac_try;;
20290 esac
20291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20292   (eval "$ac_link") 2>&5
20293   ac_status=$?
20294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20296   { (case "(($ac_try" in
20297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298   *) ac_try_echo=$ac_try;;
20299 esac
20300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301   (eval "$ac_try") 2>&5
20302   ac_status=$?
20303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304   (exit $ac_status); }; }; then
20305   ac_cv_va_copy="C99"
20306 else
20307   echo "$as_me: program exited with status $ac_status" >&5
20308 echo "$as_me: failed program was:" >&5
20309 sed 's/^/| /' conftest.$ac_ext >&5
20310
20311 fi
20312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20313 fi
20314
20315
20316             fi
20317
20318
20319
20320
20321     if test ".$ac_cv_va_copy" = .; then
20322         if test "$cross_compiling" = yes; then
20323   ac_cv_va_copy="GCM"
20324 else
20325   cat >conftest.$ac_ext <<_ACEOF
20326 /* confdefs.h.  */
20327 _ACEOF
20328 cat confdefs.h >>conftest.$ac_ext
20329 cat >>conftest.$ac_ext <<_ACEOF
20330 /* end confdefs.h.  */
20331
20332 #include <stdlib.h>
20333 #include <stdarg.h>
20334 #include <string.h>
20335 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20336 void test(char *str, ...)
20337 {
20338     va_list ap, ap2;
20339     int i;
20340     va_start(ap, str);
20341     DO_VA_COPY(ap2, ap);
20342     for (i = 1; i <= 9; i++) {
20343         int k = (int)va_arg(ap, int);
20344         if (k != i)
20345             abort();
20346     }
20347     DO_VA_COPY(ap, ap2);
20348     for (i = 1; i <= 9; i++) {
20349         int k = (int)va_arg(ap, int);
20350         if (k != i)
20351             abort();
20352     }
20353     va_end(ap);
20354 }
20355 int main(int argc, char *argv[])
20356 {
20357     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20358     exit(0);
20359 }
20360
20361 _ACEOF
20362 rm -f conftest$ac_exeext
20363 if { (ac_try="$ac_link"
20364 case "(($ac_try" in
20365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366   *) ac_try_echo=$ac_try;;
20367 esac
20368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369   (eval "$ac_link") 2>&5
20370   ac_status=$?
20371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20373   { (case "(($ac_try" in
20374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375   *) ac_try_echo=$ac_try;;
20376 esac
20377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378   (eval "$ac_try") 2>&5
20379   ac_status=$?
20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); }; }; then
20382   ac_cv_va_copy="GCM"
20383 else
20384   echo "$as_me: program exited with status $ac_status" >&5
20385 echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.$ac_ext >&5
20387
20388 fi
20389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20390 fi
20391
20392
20393             fi
20394
20395
20396
20397
20398     if test ".$ac_cv_va_copy" = .; then
20399         if test "$cross_compiling" = yes; then
20400   ac_cv_va_copy="GCH"
20401 else
20402   cat >conftest.$ac_ext <<_ACEOF
20403 /* confdefs.h.  */
20404 _ACEOF
20405 cat confdefs.h >>conftest.$ac_ext
20406 cat >>conftest.$ac_ext <<_ACEOF
20407 /* end confdefs.h.  */
20408
20409 #include <stdlib.h>
20410 #include <stdarg.h>
20411 #include <string.h>
20412 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20413 void test(char *str, ...)
20414 {
20415     va_list ap, ap2;
20416     int i;
20417     va_start(ap, str);
20418     DO_VA_COPY(ap2, ap);
20419     for (i = 1; i <= 9; i++) {
20420         int k = (int)va_arg(ap, int);
20421         if (k != i)
20422             abort();
20423     }
20424     DO_VA_COPY(ap, ap2);
20425     for (i = 1; i <= 9; i++) {
20426         int k = (int)va_arg(ap, int);
20427         if (k != i)
20428             abort();
20429     }
20430     va_end(ap);
20431 }
20432 int main(int argc, char *argv[])
20433 {
20434     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20435     exit(0);
20436 }
20437
20438 _ACEOF
20439 rm -f conftest$ac_exeext
20440 if { (ac_try="$ac_link"
20441 case "(($ac_try" in
20442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443   *) ac_try_echo=$ac_try;;
20444 esac
20445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20446   (eval "$ac_link") 2>&5
20447   ac_status=$?
20448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20450   { (case "(($ac_try" in
20451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20452   *) ac_try_echo=$ac_try;;
20453 esac
20454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20455   (eval "$ac_try") 2>&5
20456   ac_status=$?
20457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458   (exit $ac_status); }; }; then
20459   ac_cv_va_copy="GCH"
20460 else
20461   echo "$as_me: program exited with status $ac_status" >&5
20462 echo "$as_me: failed program was:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20464
20465 fi
20466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20467 fi
20468
20469
20470             fi
20471
20472
20473
20474
20475     if test ".$ac_cv_va_copy" = .; then
20476         if test "$cross_compiling" = yes; then
20477   ac_cv_va_copy="GCB"
20478 else
20479   cat >conftest.$ac_ext <<_ACEOF
20480 /* confdefs.h.  */
20481 _ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h.  */
20485
20486 #include <stdlib.h>
20487 #include <stdarg.h>
20488 #include <string.h>
20489 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20490 void test(char *str, ...)
20491 {
20492     va_list ap, ap2;
20493     int i;
20494     va_start(ap, str);
20495     DO_VA_COPY(ap2, ap);
20496     for (i = 1; i <= 9; i++) {
20497         int k = (int)va_arg(ap, int);
20498         if (k != i)
20499             abort();
20500     }
20501     DO_VA_COPY(ap, ap2);
20502     for (i = 1; i <= 9; i++) {
20503         int k = (int)va_arg(ap, int);
20504         if (k != i)
20505             abort();
20506     }
20507     va_end(ap);
20508 }
20509 int main(int argc, char *argv[])
20510 {
20511     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20512     exit(0);
20513 }
20514
20515 _ACEOF
20516 rm -f conftest$ac_exeext
20517 if { (ac_try="$ac_link"
20518 case "(($ac_try" in
20519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20520   *) ac_try_echo=$ac_try;;
20521 esac
20522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20523   (eval "$ac_link") 2>&5
20524   ac_status=$?
20525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20527   { (case "(($ac_try" in
20528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529   *) ac_try_echo=$ac_try;;
20530 esac
20531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20532   (eval "$ac_try") 2>&5
20533   ac_status=$?
20534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535   (exit $ac_status); }; }; then
20536   ac_cv_va_copy="GCB"
20537 else
20538   echo "$as_me: program exited with status $ac_status" >&5
20539 echo "$as_me: failed program was:" >&5
20540 sed 's/^/| /' conftest.$ac_ext >&5
20541
20542 fi
20543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20544 fi
20545
20546
20547             fi
20548
20549
20550
20551
20552     if test ".$ac_cv_va_copy" = .; then
20553         if test "$cross_compiling" = yes; then
20554   ac_cv_va_copy="ASS"
20555 else
20556   cat >conftest.$ac_ext <<_ACEOF
20557 /* confdefs.h.  */
20558 _ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h.  */
20562
20563 #include <stdlib.h>
20564 #include <stdarg.h>
20565 #include <string.h>
20566 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20567 void test(char *str, ...)
20568 {
20569     va_list ap, ap2;
20570     int i;
20571     va_start(ap, str);
20572     DO_VA_COPY(ap2, ap);
20573     for (i = 1; i <= 9; i++) {
20574         int k = (int)va_arg(ap, int);
20575         if (k != i)
20576             abort();
20577     }
20578     DO_VA_COPY(ap, ap2);
20579     for (i = 1; i <= 9; i++) {
20580         int k = (int)va_arg(ap, int);
20581         if (k != i)
20582             abort();
20583     }
20584     va_end(ap);
20585 }
20586 int main(int argc, char *argv[])
20587 {
20588     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20589     exit(0);
20590 }
20591
20592 _ACEOF
20593 rm -f conftest$ac_exeext
20594 if { (ac_try="$ac_link"
20595 case "(($ac_try" in
20596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20597   *) ac_try_echo=$ac_try;;
20598 esac
20599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20600   (eval "$ac_link") 2>&5
20601   ac_status=$?
20602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20604   { (case "(($ac_try" in
20605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606   *) ac_try_echo=$ac_try;;
20607 esac
20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609   (eval "$ac_try") 2>&5
20610   ac_status=$?
20611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612   (exit $ac_status); }; }; then
20613   ac_cv_va_copy="ASS"
20614 else
20615   echo "$as_me: program exited with status $ac_status" >&5
20616 echo "$as_me: failed program was:" >&5
20617 sed 's/^/| /' conftest.$ac_ext >&5
20618
20619 fi
20620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20621 fi
20622
20623
20624             fi
20625
20626
20627
20628
20629     if test ".$ac_cv_va_copy" = .; then
20630         if test "$cross_compiling" = yes; then
20631   ac_cv_va_copy="ASP"
20632 else
20633   cat >conftest.$ac_ext <<_ACEOF
20634 /* confdefs.h.  */
20635 _ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h.  */
20639
20640 #include <stdlib.h>
20641 #include <stdarg.h>
20642 #include <string.h>
20643 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20644 void test(char *str, ...)
20645 {
20646     va_list ap, ap2;
20647     int i;
20648     va_start(ap, str);
20649     DO_VA_COPY(ap2, ap);
20650     for (i = 1; i <= 9; i++) {
20651         int k = (int)va_arg(ap, int);
20652         if (k != i)
20653             abort();
20654     }
20655     DO_VA_COPY(ap, ap2);
20656     for (i = 1; i <= 9; i++) {
20657         int k = (int)va_arg(ap, int);
20658         if (k != i)
20659             abort();
20660     }
20661     va_end(ap);
20662 }
20663 int main(int argc, char *argv[])
20664 {
20665     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20666     exit(0);
20667 }
20668
20669 _ACEOF
20670 rm -f conftest$ac_exeext
20671 if { (ac_try="$ac_link"
20672 case "(($ac_try" in
20673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20674   *) ac_try_echo=$ac_try;;
20675 esac
20676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20677   (eval "$ac_link") 2>&5
20678   ac_status=$?
20679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20681   { (case "(($ac_try" in
20682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20683   *) ac_try_echo=$ac_try;;
20684 esac
20685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20686   (eval "$ac_try") 2>&5
20687   ac_status=$?
20688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689   (exit $ac_status); }; }; then
20690   ac_cv_va_copy="ASP"
20691 else
20692   echo "$as_me: program exited with status $ac_status" >&5
20693 echo "$as_me: failed program was:" >&5
20694 sed 's/^/| /' conftest.$ac_ext >&5
20695
20696 fi
20697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20698 fi
20699
20700
20701             fi
20702
20703
20704
20705
20706     if test ".$ac_cv_va_copy" = .; then
20707         if test "$cross_compiling" = yes; then
20708   ac_cv_va_copy="CPS"
20709 else
20710   cat >conftest.$ac_ext <<_ACEOF
20711 /* confdefs.h.  */
20712 _ACEOF
20713 cat confdefs.h >>conftest.$ac_ext
20714 cat >>conftest.$ac_ext <<_ACEOF
20715 /* end confdefs.h.  */
20716
20717 #include <stdlib.h>
20718 #include <stdarg.h>
20719 #include <string.h>
20720 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20721 void test(char *str, ...)
20722 {
20723     va_list ap, ap2;
20724     int i;
20725     va_start(ap, str);
20726     DO_VA_COPY(ap2, ap);
20727     for (i = 1; i <= 9; i++) {
20728         int k = (int)va_arg(ap, int);
20729         if (k != i)
20730             abort();
20731     }
20732     DO_VA_COPY(ap, ap2);
20733     for (i = 1; i <= 9; i++) {
20734         int k = (int)va_arg(ap, int);
20735         if (k != i)
20736             abort();
20737     }
20738     va_end(ap);
20739 }
20740 int main(int argc, char *argv[])
20741 {
20742     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20743     exit(0);
20744 }
20745
20746 _ACEOF
20747 rm -f conftest$ac_exeext
20748 if { (ac_try="$ac_link"
20749 case "(($ac_try" in
20750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751   *) ac_try_echo=$ac_try;;
20752 esac
20753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754   (eval "$ac_link") 2>&5
20755   ac_status=$?
20756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20758   { (case "(($ac_try" in
20759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20760   *) ac_try_echo=$ac_try;;
20761 esac
20762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20763   (eval "$ac_try") 2>&5
20764   ac_status=$?
20765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766   (exit $ac_status); }; }; then
20767   ac_cv_va_copy="CPS"
20768 else
20769   echo "$as_me: program exited with status $ac_status" >&5
20770 echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20772
20773 fi
20774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20775 fi
20776
20777
20778             fi
20779
20780
20781
20782
20783     if test ".$ac_cv_va_copy" = .; then
20784         if test "$cross_compiling" = yes; then
20785   ac_cv_va_copy="CPP"
20786 else
20787   cat >conftest.$ac_ext <<_ACEOF
20788 /* confdefs.h.  */
20789 _ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h.  */
20793
20794 #include <stdlib.h>
20795 #include <stdarg.h>
20796 #include <string.h>
20797 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20798 void test(char *str, ...)
20799 {
20800     va_list ap, ap2;
20801     int i;
20802     va_start(ap, str);
20803     DO_VA_COPY(ap2, ap);
20804     for (i = 1; i <= 9; i++) {
20805         int k = (int)va_arg(ap, int);
20806         if (k != i)
20807             abort();
20808     }
20809     DO_VA_COPY(ap, ap2);
20810     for (i = 1; i <= 9; i++) {
20811         int k = (int)va_arg(ap, int);
20812         if (k != i)
20813             abort();
20814     }
20815     va_end(ap);
20816 }
20817 int main(int argc, char *argv[])
20818 {
20819     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20820     exit(0);
20821 }
20822
20823 _ACEOF
20824 rm -f conftest$ac_exeext
20825 if { (ac_try="$ac_link"
20826 case "(($ac_try" in
20827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20828   *) ac_try_echo=$ac_try;;
20829 esac
20830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20831   (eval "$ac_link") 2>&5
20832   ac_status=$?
20833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20835   { (case "(($ac_try" in
20836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20837   *) ac_try_echo=$ac_try;;
20838 esac
20839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20840   (eval "$ac_try") 2>&5
20841   ac_status=$?
20842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843   (exit $ac_status); }; }; then
20844   ac_cv_va_copy="CPP"
20845 else
20846   echo "$as_me: program exited with status $ac_status" >&5
20847 echo "$as_me: failed program was:" >&5
20848 sed 's/^/| /' conftest.$ac_ext >&5
20849
20850 fi
20851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20852 fi
20853
20854
20855             fi
20856
20857     if test ".$ac_cv_va_copy" = .; then
20858         { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20859 echo "$as_me: error: no working implementation found" >&2;}
20860    { (exit 1); exit 1; }; }
20861     fi
20862
20863 fi
20864
20865     if test ".$ac_cv_va_copy" = ".C99"; then
20866
20867 cat >>confdefs.h <<\_ACEOF
20868 #define HAVE_VA_COPY 1
20869 _ACEOF
20870
20871   fi
20872
20873 cat >>confdefs.h <<_ACEOF
20874 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20875 _ACEOF
20876
20877
20878
20879     if test ".$ac_cv_va_copy" = ".C99"; then
20880       { echo "$as_me:$LINENO: result: yes" >&5
20881 echo "${ECHO_T}yes" >&6; }
20882   else
20883       { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20884 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20885   fi
20886
20887
20888 # Checks for header files.
20889 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20890 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20891 if test "${ac_cv_header_stdc+set}" = set; then
20892   echo $ECHO_N "(cached) $ECHO_C" >&6
20893 else
20894   cat >conftest.$ac_ext <<_ACEOF
20895 /* confdefs.h.  */
20896 _ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h.  */
20900 #include <stdlib.h>
20901 #include <stdarg.h>
20902 #include <string.h>
20903 #include <float.h>
20904
20905 int
20906 main ()
20907 {
20908
20909   ;
20910   return 0;
20911 }
20912 _ACEOF
20913 rm -f conftest.$ac_objext
20914 if { (ac_try="$ac_compile"
20915 case "(($ac_try" in
20916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20917   *) ac_try_echo=$ac_try;;
20918 esac
20919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20920   (eval "$ac_compile") 2>conftest.er1
20921   ac_status=$?
20922   grep -v '^ *+' conftest.er1 >conftest.err
20923   rm -f conftest.er1
20924   cat conftest.err >&5
20925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926   (exit $ac_status); } && {
20927          test -z "$ac_c_werror_flag" ||
20928          test ! -s conftest.err
20929        } && test -s conftest.$ac_objext; then
20930   ac_cv_header_stdc=yes
20931 else
20932   echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20934
20935         ac_cv_header_stdc=no
20936 fi
20937
20938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20939
20940 if test $ac_cv_header_stdc = yes; then
20941   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20942   cat >conftest.$ac_ext <<_ACEOF
20943 /* confdefs.h.  */
20944 _ACEOF
20945 cat confdefs.h >>conftest.$ac_ext
20946 cat >>conftest.$ac_ext <<_ACEOF
20947 /* end confdefs.h.  */
20948 #include <string.h>
20949
20950 _ACEOF
20951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20952   $EGREP "memchr" >/dev/null 2>&1; then
20953   :
20954 else
20955   ac_cv_header_stdc=no
20956 fi
20957 rm -f conftest*
20958
20959 fi
20960
20961 if test $ac_cv_header_stdc = yes; then
20962   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20963   cat >conftest.$ac_ext <<_ACEOF
20964 /* confdefs.h.  */
20965 _ACEOF
20966 cat confdefs.h >>conftest.$ac_ext
20967 cat >>conftest.$ac_ext <<_ACEOF
20968 /* end confdefs.h.  */
20969 #include <stdlib.h>
20970
20971 _ACEOF
20972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20973   $EGREP "free" >/dev/null 2>&1; then
20974   :
20975 else
20976   ac_cv_header_stdc=no
20977 fi
20978 rm -f conftest*
20979
20980 fi
20981
20982 if test $ac_cv_header_stdc = yes; then
20983   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20984   if test "$cross_compiling" = yes; then
20985   :
20986 else
20987   cat >conftest.$ac_ext <<_ACEOF
20988 /* confdefs.h.  */
20989 _ACEOF
20990 cat confdefs.h >>conftest.$ac_ext
20991 cat >>conftest.$ac_ext <<_ACEOF
20992 /* end confdefs.h.  */
20993 #include <ctype.h>
20994 #include <stdlib.h>
20995 #if ((' ' & 0x0FF) == 0x020)
20996 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20997 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20998 #else
20999 # define ISLOWER(c) \
21000                    (('a' <= (c) && (c) <= 'i') \
21001                      || ('j' <= (c) && (c) <= 'r') \
21002                      || ('s' <= (c) && (c) <= 'z'))
21003 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21004 #endif
21005
21006 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21007 int
21008 main ()
21009 {
21010   int i;
21011   for (i = 0; i < 256; i++)
21012     if (XOR (islower (i), ISLOWER (i))
21013         || toupper (i) != TOUPPER (i))
21014       return 2;
21015   return 0;
21016 }
21017 _ACEOF
21018 rm -f conftest$ac_exeext
21019 if { (ac_try="$ac_link"
21020 case "(($ac_try" in
21021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022   *) ac_try_echo=$ac_try;;
21023 esac
21024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025   (eval "$ac_link") 2>&5
21026   ac_status=$?
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21029   { (case "(($ac_try" in
21030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031   *) ac_try_echo=$ac_try;;
21032 esac
21033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21034   (eval "$ac_try") 2>&5
21035   ac_status=$?
21036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037   (exit $ac_status); }; }; then
21038   :
21039 else
21040   echo "$as_me: program exited with status $ac_status" >&5
21041 echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21043
21044 ( exit $ac_status )
21045 ac_cv_header_stdc=no
21046 fi
21047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21048 fi
21049
21050
21051 fi
21052 fi
21053 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21054 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21055 if test $ac_cv_header_stdc = yes; then
21056
21057 cat >>confdefs.h <<\_ACEOF
21058 #define STDC_HEADERS 1
21059 _ACEOF
21060
21061 fi
21062
21063 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21064 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21065 if test "${ac_cv_header_time+set}" = set; then
21066   echo $ECHO_N "(cached) $ECHO_C" >&6
21067 else
21068   cat >conftest.$ac_ext <<_ACEOF
21069 /* confdefs.h.  */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h.  */
21074 #include <sys/types.h>
21075 #include <sys/time.h>
21076 #include <time.h>
21077
21078 int
21079 main ()
21080 {
21081 if ((struct tm *) 0)
21082 return 0;
21083   ;
21084   return 0;
21085 }
21086 _ACEOF
21087 rm -f conftest.$ac_objext
21088 if { (ac_try="$ac_compile"
21089 case "(($ac_try" in
21090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21091   *) ac_try_echo=$ac_try;;
21092 esac
21093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21094   (eval "$ac_compile") 2>conftest.er1
21095   ac_status=$?
21096   grep -v '^ *+' conftest.er1 >conftest.err
21097   rm -f conftest.er1
21098   cat conftest.err >&5
21099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100   (exit $ac_status); } && {
21101          test -z "$ac_c_werror_flag" ||
21102          test ! -s conftest.err
21103        } && test -s conftest.$ac_objext; then
21104   ac_cv_header_time=yes
21105 else
21106   echo "$as_me: failed program was:" >&5
21107 sed 's/^/| /' conftest.$ac_ext >&5
21108
21109         ac_cv_header_time=no
21110 fi
21111
21112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21113 fi
21114 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21115 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21116 if test $ac_cv_header_time = yes; then
21117
21118 cat >>confdefs.h <<\_ACEOF
21119 #define TIME_WITH_SYS_TIME 1
21120 _ACEOF
21121
21122 fi
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134 for ac_header in sys/socket.h \
21135                   sys/stat.h \
21136                   windows.h winsock.h winsock2.h \
21137                   sys/time.h \
21138                   errno.h unistd.h \
21139                   execinfo.h\
21140                   signal.h
21141 do
21142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21144   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21147   echo $ECHO_N "(cached) $ECHO_C" >&6
21148 fi
21149 ac_res=`eval echo '${'$as_ac_Header'}'`
21150                { echo "$as_me:$LINENO: result: $ac_res" >&5
21151 echo "${ECHO_T}$ac_res" >&6; }
21152 else
21153   # Is the header compilable?
21154 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21156 cat >conftest.$ac_ext <<_ACEOF
21157 /* confdefs.h.  */
21158 _ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h.  */
21162 $ac_includes_default
21163 #include <$ac_header>
21164 _ACEOF
21165 rm -f conftest.$ac_objext
21166 if { (ac_try="$ac_compile"
21167 case "(($ac_try" in
21168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21169   *) ac_try_echo=$ac_try;;
21170 esac
21171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21172   (eval "$ac_compile") 2>conftest.er1
21173   ac_status=$?
21174   grep -v '^ *+' conftest.er1 >conftest.err
21175   rm -f conftest.er1
21176   cat conftest.err >&5
21177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178   (exit $ac_status); } && {
21179          test -z "$ac_c_werror_flag" ||
21180          test ! -s conftest.err
21181        } && test -s conftest.$ac_objext; then
21182   ac_header_compiler=yes
21183 else
21184   echo "$as_me: failed program was:" >&5
21185 sed 's/^/| /' conftest.$ac_ext >&5
21186
21187         ac_header_compiler=no
21188 fi
21189
21190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21191 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21192 echo "${ECHO_T}$ac_header_compiler" >&6; }
21193
21194 # Is the header present?
21195 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21197 cat >conftest.$ac_ext <<_ACEOF
21198 /* confdefs.h.  */
21199 _ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h.  */
21203 #include <$ac_header>
21204 _ACEOF
21205 if { (ac_try="$ac_cpp conftest.$ac_ext"
21206 case "(($ac_try" in
21207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21208   *) ac_try_echo=$ac_try;;
21209 esac
21210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21211   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21212   ac_status=$?
21213   grep -v '^ *+' conftest.er1 >conftest.err
21214   rm -f conftest.er1
21215   cat conftest.err >&5
21216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217   (exit $ac_status); } >/dev/null && {
21218          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21219          test ! -s conftest.err
21220        }; then
21221   ac_header_preproc=yes
21222 else
21223   echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21225
21226   ac_header_preproc=no
21227 fi
21228
21229 rm -f conftest.err conftest.$ac_ext
21230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21231 echo "${ECHO_T}$ac_header_preproc" >&6; }
21232
21233 # So?  What about this header?
21234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21235   yes:no: )
21236     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21238     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21240     ac_header_preproc=yes
21241     ;;
21242   no:yes:* )
21243     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21245     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21246 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21247     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21249     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21250 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21251     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21253     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21255     ( cat <<\_ASBOX
21256 ## -------------------------------------------------- ##
21257 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21258 ## -------------------------------------------------- ##
21259 _ASBOX
21260      ) | sed "s/^/$as_me: WARNING:     /" >&2
21261     ;;
21262 esac
21263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21266   echo $ECHO_N "(cached) $ECHO_C" >&6
21267 else
21268   eval "$as_ac_Header=\$ac_header_preproc"
21269 fi
21270 ac_res=`eval echo '${'$as_ac_Header'}'`
21271                { echo "$as_me:$LINENO: result: $ac_res" >&5
21272 echo "${ECHO_T}$ac_res" >&6; }
21273
21274 fi
21275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21276   cat >>confdefs.h <<_ACEOF
21277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21278 _ACEOF
21279
21280 fi
21281
21282 done
21283
21284
21285
21286
21287
21288
21289
21290
21291 for ac_func in gettimeofday usleep \
21292                 getdtablesize \
21293                 sysconf\
21294                 readv\
21295                 popen\
21296                 signal
21297 do
21298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21299 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21301 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21302   echo $ECHO_N "(cached) $ECHO_C" >&6
21303 else
21304   cat >conftest.$ac_ext <<_ACEOF
21305 /* confdefs.h.  */
21306 _ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h.  */
21310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21311    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21312 #define $ac_func innocuous_$ac_func
21313
21314 /* System header to define __stub macros and hopefully few prototypes,
21315     which can conflict with char $ac_func (); below.
21316     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21317     <limits.h> exists even on freestanding compilers.  */
21318
21319 #ifdef __STDC__
21320 # include <limits.h>
21321 #else
21322 # include <assert.h>
21323 #endif
21324
21325 #undef $ac_func
21326
21327 /* Override any GCC internal prototype to avoid an error.
21328    Use char because int might match the return type of a GCC
21329    builtin and then its argument prototype would still apply.  */
21330 #ifdef __cplusplus
21331 extern "C"
21332 #endif
21333 char $ac_func ();
21334 /* The GNU C library defines this for functions which it implements
21335     to always fail with ENOSYS.  Some functions are actually named
21336     something starting with __ and the normal name is an alias.  */
21337 #if defined __stub_$ac_func || defined __stub___$ac_func
21338 choke me
21339 #endif
21340
21341 int
21342 main ()
21343 {
21344 return $ac_func ();
21345   ;
21346   return 0;
21347 }
21348 _ACEOF
21349 rm -f conftest.$ac_objext conftest$ac_exeext
21350 if { (ac_try="$ac_link"
21351 case "(($ac_try" in
21352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21353   *) ac_try_echo=$ac_try;;
21354 esac
21355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21356   (eval "$ac_link") 2>conftest.er1
21357   ac_status=$?
21358   grep -v '^ *+' conftest.er1 >conftest.err
21359   rm -f conftest.er1
21360   cat conftest.err >&5
21361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362   (exit $ac_status); } && {
21363          test -z "$ac_c_werror_flag" ||
21364          test ! -s conftest.err
21365        } && test -s conftest$ac_exeext &&
21366        $as_test_x conftest$ac_exeext; then
21367   eval "$as_ac_var=yes"
21368 else
21369   echo "$as_me: failed program was:" >&5
21370 sed 's/^/| /' conftest.$ac_ext >&5
21371
21372         eval "$as_ac_var=no"
21373 fi
21374
21375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21376       conftest$ac_exeext conftest.$ac_ext
21377 fi
21378 ac_res=`eval echo '${'$as_ac_var'}'`
21379                { echo "$as_me:$LINENO: result: $ac_res" >&5
21380 echo "${ECHO_T}$ac_res" >&6; }
21381 if test `eval echo '${'$as_ac_var'}'` = yes; then
21382   cat >>confdefs.h <<_ACEOF
21383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21384 _ACEOF
21385
21386 fi
21387 done
21388
21389
21390 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21391
21392
21393 for ac_func in snprintf vsnprintf
21394 do
21395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21396 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21399   echo $ECHO_N "(cached) $ECHO_C" >&6
21400 else
21401   cat >conftest.$ac_ext <<_ACEOF
21402 /* confdefs.h.  */
21403 _ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h.  */
21407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21408    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21409 #define $ac_func innocuous_$ac_func
21410
21411 /* System header to define __stub macros and hopefully few prototypes,
21412     which can conflict with char $ac_func (); below.
21413     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21414     <limits.h> exists even on freestanding compilers.  */
21415
21416 #ifdef __STDC__
21417 # include <limits.h>
21418 #else
21419 # include <assert.h>
21420 #endif
21421
21422 #undef $ac_func
21423
21424 /* Override any GCC internal prototype to avoid an error.
21425    Use char because int might match the return type of a GCC
21426    builtin and then its argument prototype would still apply.  */
21427 #ifdef __cplusplus
21428 extern "C"
21429 #endif
21430 char $ac_func ();
21431 /* The GNU C library defines this for functions which it implements
21432     to always fail with ENOSYS.  Some functions are actually named
21433     something starting with __ and the normal name is an alias.  */
21434 #if defined __stub_$ac_func || defined __stub___$ac_func
21435 choke me
21436 #endif
21437
21438 int
21439 main ()
21440 {
21441 return $ac_func ();
21442   ;
21443   return 0;
21444 }
21445 _ACEOF
21446 rm -f conftest.$ac_objext conftest$ac_exeext
21447 if { (ac_try="$ac_link"
21448 case "(($ac_try" in
21449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21450   *) ac_try_echo=$ac_try;;
21451 esac
21452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21453   (eval "$ac_link") 2>conftest.er1
21454   ac_status=$?
21455   grep -v '^ *+' conftest.er1 >conftest.err
21456   rm -f conftest.er1
21457   cat conftest.err >&5
21458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459   (exit $ac_status); } && {
21460          test -z "$ac_c_werror_flag" ||
21461          test ! -s conftest.err
21462        } && test -s conftest$ac_exeext &&
21463        $as_test_x conftest$ac_exeext; then
21464   eval "$as_ac_var=yes"
21465 else
21466   echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.$ac_ext >&5
21468
21469         eval "$as_ac_var=no"
21470 fi
21471
21472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21473       conftest$ac_exeext conftest.$ac_ext
21474 fi
21475 ac_res=`eval echo '${'$as_ac_var'}'`
21476                { echo "$as_me:$LINENO: result: $ac_res" >&5
21477 echo "${ECHO_T}$ac_res" >&6; }
21478 if test `eval echo '${'$as_ac_var'}'` = yes; then
21479   cat >>confdefs.h <<_ACEOF
21480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21481 _ACEOF
21482
21483 fi
21484 done
21485
21486 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21487 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21488 if test "${ac_cv_have_working_snprintf+set}" = set; then
21489   echo $ECHO_N "(cached) $ECHO_C" >&6
21490 else
21491   if test "$cross_compiling" = yes; then
21492   ac_cv_have_working_snprintf=cross
21493 else
21494   cat >conftest.$ac_ext <<_ACEOF
21495 /* confdefs.h.  */
21496 _ACEOF
21497 cat confdefs.h >>conftest.$ac_ext
21498 cat >>conftest.$ac_ext <<_ACEOF
21499 /* end confdefs.h.  */
21500 #include <stdio.h>
21501
21502 int main(void)
21503 {
21504     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21505     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21506     int i;
21507     i = snprintf (bufs, 2, "%s", "111");
21508     if (strcmp (bufs, "1")) exit (1);
21509     if (i != 3) exit (1);
21510     i = snprintf (bufd, 2, "%d", 111);
21511     if (strcmp (bufd, "1")) exit (1);
21512     if (i != 3) exit (1);
21513     exit(0);
21514 }
21515 _ACEOF
21516 rm -f conftest$ac_exeext
21517 if { (ac_try="$ac_link"
21518 case "(($ac_try" in
21519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520   *) ac_try_echo=$ac_try;;
21521 esac
21522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21523   (eval "$ac_link") 2>&5
21524   ac_status=$?
21525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21527   { (case "(($ac_try" in
21528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529   *) ac_try_echo=$ac_try;;
21530 esac
21531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532   (eval "$ac_try") 2>&5
21533   ac_status=$?
21534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535   (exit $ac_status); }; }; then
21536   ac_cv_have_working_snprintf=yes
21537 else
21538   echo "$as_me: program exited with status $ac_status" >&5
21539 echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.$ac_ext >&5
21541
21542 ( exit $ac_status )
21543 ac_cv_have_working_snprintf=no
21544 fi
21545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21546 fi
21547
21548
21549 fi
21550
21551 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21552 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21553 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21554 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21555 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21556   echo $ECHO_N "(cached) $ECHO_C" >&6
21557 else
21558   if test "$cross_compiling" = yes; then
21559   ac_cv_have_working_vsnprintf=cross
21560 else
21561   cat >conftest.$ac_ext <<_ACEOF
21562 /* confdefs.h.  */
21563 _ACEOF
21564 cat confdefs.h >>conftest.$ac_ext
21565 cat >>conftest.$ac_ext <<_ACEOF
21566 /* end confdefs.h.  */
21567 #include <stdio.h>
21568 #include <stdarg.h>
21569
21570 int my_vsnprintf (char *buf, const char *tmpl, ...)
21571 {
21572     int i;
21573     va_list args;
21574     va_start (args, tmpl);
21575     i = vsnprintf (buf, 2, tmpl, args);
21576     va_end (args);
21577     return i;
21578 }
21579
21580 int main(void)
21581 {
21582     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21583     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21584     int i;
21585     i = my_vsnprintf (bufs, "%s", "111");
21586     if (strcmp (bufs, "1")) exit (1);
21587     if (i != 3) exit (1);
21588     i = my_vsnprintf (bufd, "%d", 111);
21589     if (strcmp (bufd, "1")) exit (1);
21590     if (i != 3) exit (1);
21591     exit(0);
21592 }
21593 _ACEOF
21594 rm -f conftest$ac_exeext
21595 if { (ac_try="$ac_link"
21596 case "(($ac_try" in
21597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21598   *) ac_try_echo=$ac_try;;
21599 esac
21600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21601   (eval "$ac_link") 2>&5
21602   ac_status=$?
21603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21605   { (case "(($ac_try" in
21606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21607   *) ac_try_echo=$ac_try;;
21608 esac
21609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21610   (eval "$ac_try") 2>&5
21611   ac_status=$?
21612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613   (exit $ac_status); }; }; then
21614   ac_cv_have_working_vsnprintf=yes
21615 else
21616   echo "$as_me: program exited with status $ac_status" >&5
21617 echo "$as_me: failed program was:" >&5
21618 sed 's/^/| /' conftest.$ac_ext >&5
21619
21620 ( exit $ac_status )
21621 ac_cv_have_working_vsnprintf=no
21622 fi
21623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21624 fi
21625
21626
21627 fi
21628
21629 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21630 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21631 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21632   case " $LIBOBJS " in
21633   *" snprintf.$ac_objext "* ) ;;
21634   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21635  ;;
21636 esac
21637
21638   { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21639 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21640
21641 cat >>confdefs.h <<\_ACEOF
21642 #define PREFER_PORTABLE_SNPRINTF 1
21643 _ACEOF
21644
21645 fi
21646 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21647 { echo "$as_me:$LINENO: checking for asprintf" >&5
21648 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21649 if test "${ac_cv_func_asprintf+set}" = set; then
21650   echo $ECHO_N "(cached) $ECHO_C" >&6
21651 else
21652   cat >conftest.$ac_ext <<_ACEOF
21653 /* confdefs.h.  */
21654 _ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h.  */
21658 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21660 #define asprintf innocuous_asprintf
21661
21662 /* System header to define __stub macros and hopefully few prototypes,
21663     which can conflict with char asprintf (); below.
21664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21665     <limits.h> exists even on freestanding compilers.  */
21666
21667 #ifdef __STDC__
21668 # include <limits.h>
21669 #else
21670 # include <assert.h>
21671 #endif
21672
21673 #undef asprintf
21674
21675 /* Override any GCC internal prototype to avoid an error.
21676    Use char because int might match the return type of a GCC
21677    builtin and then its argument prototype would still apply.  */
21678 #ifdef __cplusplus
21679 extern "C"
21680 #endif
21681 char asprintf ();
21682 /* The GNU C library defines this for functions which it implements
21683     to always fail with ENOSYS.  Some functions are actually named
21684     something starting with __ and the normal name is an alias.  */
21685 #if defined __stub_asprintf || defined __stub___asprintf
21686 choke me
21687 #endif
21688
21689 int
21690 main ()
21691 {
21692 return asprintf ();
21693   ;
21694   return 0;
21695 }
21696 _ACEOF
21697 rm -f conftest.$ac_objext conftest$ac_exeext
21698 if { (ac_try="$ac_link"
21699 case "(($ac_try" in
21700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21701   *) ac_try_echo=$ac_try;;
21702 esac
21703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21704   (eval "$ac_link") 2>conftest.er1
21705   ac_status=$?
21706   grep -v '^ *+' conftest.er1 >conftest.err
21707   rm -f conftest.er1
21708   cat conftest.err >&5
21709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710   (exit $ac_status); } && {
21711          test -z "$ac_c_werror_flag" ||
21712          test ! -s conftest.err
21713        } && test -s conftest$ac_exeext &&
21714        $as_test_x conftest$ac_exeext; then
21715   ac_cv_func_asprintf=yes
21716 else
21717   echo "$as_me: failed program was:" >&5
21718 sed 's/^/| /' conftest.$ac_ext >&5
21719
21720         ac_cv_func_asprintf=no
21721 fi
21722
21723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21724       conftest$ac_exeext conftest.$ac_ext
21725 fi
21726 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21727 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21728 if test $ac_cv_func_asprintf = yes; then
21729   :
21730 else
21731
21732 cat >>confdefs.h <<\_ACEOF
21733 #define NEED_ASPRINTF 1
21734 _ACEOF
21735
21736 fi
21737
21738 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21739 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21740 if test "${ac_cv_func_vasprintf+set}" = set; then
21741   echo $ECHO_N "(cached) $ECHO_C" >&6
21742 else
21743   cat >conftest.$ac_ext <<_ACEOF
21744 /* confdefs.h.  */
21745 _ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h.  */
21749 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21751 #define vasprintf innocuous_vasprintf
21752
21753 /* System header to define __stub macros and hopefully few prototypes,
21754     which can conflict with char vasprintf (); below.
21755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21756     <limits.h> exists even on freestanding compilers.  */
21757
21758 #ifdef __STDC__
21759 # include <limits.h>
21760 #else
21761 # include <assert.h>
21762 #endif
21763
21764 #undef vasprintf
21765
21766 /* Override any GCC internal prototype to avoid an error.
21767    Use char because int might match the return type of a GCC
21768    builtin and then its argument prototype would still apply.  */
21769 #ifdef __cplusplus
21770 extern "C"
21771 #endif
21772 char vasprintf ();
21773 /* The GNU C library defines this for functions which it implements
21774     to always fail with ENOSYS.  Some functions are actually named
21775     something starting with __ and the normal name is an alias.  */
21776 #if defined __stub_vasprintf || defined __stub___vasprintf
21777 choke me
21778 #endif
21779
21780 int
21781 main ()
21782 {
21783 return vasprintf ();
21784   ;
21785   return 0;
21786 }
21787 _ACEOF
21788 rm -f conftest.$ac_objext conftest$ac_exeext
21789 if { (ac_try="$ac_link"
21790 case "(($ac_try" in
21791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21792   *) ac_try_echo=$ac_try;;
21793 esac
21794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21795   (eval "$ac_link") 2>conftest.er1
21796   ac_status=$?
21797   grep -v '^ *+' conftest.er1 >conftest.err
21798   rm -f conftest.er1
21799   cat conftest.err >&5
21800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801   (exit $ac_status); } && {
21802          test -z "$ac_c_werror_flag" ||
21803          test ! -s conftest.err
21804        } && test -s conftest$ac_exeext &&
21805        $as_test_x conftest$ac_exeext; then
21806   ac_cv_func_vasprintf=yes
21807 else
21808   echo "$as_me: failed program was:" >&5
21809 sed 's/^/| /' conftest.$ac_ext >&5
21810
21811         ac_cv_func_vasprintf=no
21812 fi
21813
21814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21815       conftest$ac_exeext conftest.$ac_ext
21816 fi
21817 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21818 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21819 if test $ac_cv_func_vasprintf = yes; then
21820   :
21821 else
21822
21823 cat >>confdefs.h <<\_ACEOF
21824 #define NEED_VASPRINTF 1
21825 _ACEOF
21826
21827 fi
21828
21829 # we don't use those:
21830 # A C_CHECK_FUNC( asnprintf, :,   A C_DEFINE(NEED_ASNPRINTF,  1, enable the asnprintf  replacement))
21831 # A C_CHECK_FUNC(vasnprintf, :,   A C_DEFINE(NEED_VASNPRINTF, 1, enable the vansprintf replacement))
21832
21833
21834 # Checks for typedefs, structures, and compiler characteristics.
21835 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21836 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21837 if test "${ac_cv_c_const+set}" = set; then
21838   echo $ECHO_N "(cached) $ECHO_C" >&6
21839 else
21840   cat >conftest.$ac_ext <<_ACEOF
21841 /* confdefs.h.  */
21842 _ACEOF
21843 cat confdefs.h >>conftest.$ac_ext
21844 cat >>conftest.$ac_ext <<_ACEOF
21845 /* end confdefs.h.  */
21846
21847 int
21848 main ()
21849 {
21850 /* FIXME: Include the comments suggested by Paul. */
21851 #ifndef __cplusplus
21852   /* Ultrix mips cc rejects this.  */
21853   typedef int charset[2];
21854   const charset cs;
21855   /* SunOS 4.1.1 cc rejects this.  */
21856   char const *const *pcpcc;
21857   char **ppc;
21858   /* NEC SVR4.0.2 mips cc rejects this.  */
21859   struct point {int x, y;};
21860   static struct point const zero = {0,0};
21861   /* AIX XL C 1.02.0.0 rejects this.
21862      It does not let you subtract one const X* pointer from another in
21863      an arm of an if-expression whose if-part is not a constant
21864      expression */
21865   const char *g = "string";
21866   pcpcc = &g + (g ? g-g : 0);
21867   /* HPUX 7.0 cc rejects these. */
21868   ++pcpcc;
21869   ppc = (char**) pcpcc;
21870   pcpcc = (char const *const *) ppc;
21871   { /* SCO 3.2v4 cc rejects this.  */
21872     char *t;
21873     char const *s = 0 ? (char *) 0 : (char const *) 0;
21874
21875     *t++ = 0;
21876     if (s) return 0;
21877   }
21878   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21879     int x[] = {25, 17};
21880     const int *foo = &x[0];
21881     ++foo;
21882   }
21883   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21884     typedef const int *iptr;
21885     iptr p = 0;
21886     ++p;
21887   }
21888   { /* AIX XL C 1.02.0.0 rejects this saying
21889        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21890     struct s { int j; const int *ap[3]; };
21891     struct s *b; b->j = 5;
21892   }
21893   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21894     const int foo = 10;
21895     if (!foo) return 0;
21896   }
21897   return !cs[0] && !zero.x;
21898 #endif
21899
21900   ;
21901   return 0;
21902 }
21903 _ACEOF
21904 rm -f conftest.$ac_objext
21905 if { (ac_try="$ac_compile"
21906 case "(($ac_try" in
21907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908   *) ac_try_echo=$ac_try;;
21909 esac
21910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21911   (eval "$ac_compile") 2>conftest.er1
21912   ac_status=$?
21913   grep -v '^ *+' conftest.er1 >conftest.err
21914   rm -f conftest.er1
21915   cat conftest.err >&5
21916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917   (exit $ac_status); } && {
21918          test -z "$ac_c_werror_flag" ||
21919          test ! -s conftest.err
21920        } && test -s conftest.$ac_objext; then
21921   ac_cv_c_const=yes
21922 else
21923   echo "$as_me: failed program was:" >&5
21924 sed 's/^/| /' conftest.$ac_ext >&5
21925
21926         ac_cv_c_const=no
21927 fi
21928
21929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21930 fi
21931 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21932 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21933 if test $ac_cv_c_const = no; then
21934
21935 cat >>confdefs.h <<\_ACEOF
21936 #define const
21937 _ACEOF
21938
21939 fi
21940
21941 { echo "$as_me:$LINENO: checking for inline" >&5
21942 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21943 if test "${ac_cv_c_inline+set}" = set; then
21944   echo $ECHO_N "(cached) $ECHO_C" >&6
21945 else
21946   ac_cv_c_inline=no
21947 for ac_kw in inline __inline__ __inline; do
21948   cat >conftest.$ac_ext <<_ACEOF
21949 /* confdefs.h.  */
21950 _ACEOF
21951 cat confdefs.h >>conftest.$ac_ext
21952 cat >>conftest.$ac_ext <<_ACEOF
21953 /* end confdefs.h.  */
21954 #ifndef __cplusplus
21955 typedef int foo_t;
21956 static $ac_kw foo_t static_foo () {return 0; }
21957 $ac_kw foo_t foo () {return 0; }
21958 #endif
21959
21960 _ACEOF
21961 rm -f conftest.$ac_objext
21962 if { (ac_try="$ac_compile"
21963 case "(($ac_try" in
21964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21965   *) ac_try_echo=$ac_try;;
21966 esac
21967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21968   (eval "$ac_compile") 2>conftest.er1
21969   ac_status=$?
21970   grep -v '^ *+' conftest.er1 >conftest.err
21971   rm -f conftest.er1
21972   cat conftest.err >&5
21973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974   (exit $ac_status); } && {
21975          test -z "$ac_c_werror_flag" ||
21976          test ! -s conftest.err
21977        } && test -s conftest.$ac_objext; then
21978   ac_cv_c_inline=$ac_kw
21979 else
21980   echo "$as_me: failed program was:" >&5
21981 sed 's/^/| /' conftest.$ac_ext >&5
21982
21983
21984 fi
21985
21986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21987   test "$ac_cv_c_inline" != no && break
21988 done
21989
21990 fi
21991 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21992 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21993
21994
21995 case $ac_cv_c_inline in
21996   inline | yes) ;;
21997   *)
21998     case $ac_cv_c_inline in
21999       no) ac_val=;;
22000       *) ac_val=$ac_cv_c_inline;;
22001     esac
22002     cat >>confdefs.h <<_ACEOF
22003 #ifndef __cplusplus
22004 #define inline $ac_val
22005 #endif
22006 _ACEOF
22007     ;;
22008 esac
22009
22010 { echo "$as_me:$LINENO: checking for size_t" >&5
22011 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22012 if test "${ac_cv_type_size_t+set}" = set; then
22013   echo $ECHO_N "(cached) $ECHO_C" >&6
22014 else
22015   cat >conftest.$ac_ext <<_ACEOF
22016 /* confdefs.h.  */
22017 _ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h.  */
22021 $ac_includes_default
22022 typedef size_t ac__type_new_;
22023 int
22024 main ()
22025 {
22026 if ((ac__type_new_ *) 0)
22027   return 0;
22028 if (sizeof (ac__type_new_))
22029   return 0;
22030   ;
22031   return 0;
22032 }
22033 _ACEOF
22034 rm -f conftest.$ac_objext
22035 if { (ac_try="$ac_compile"
22036 case "(($ac_try" in
22037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22038   *) ac_try_echo=$ac_try;;
22039 esac
22040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22041   (eval "$ac_compile") 2>conftest.er1
22042   ac_status=$?
22043   grep -v '^ *+' conftest.er1 >conftest.err
22044   rm -f conftest.er1
22045   cat conftest.err >&5
22046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047   (exit $ac_status); } && {
22048          test -z "$ac_c_werror_flag" ||
22049          test ! -s conftest.err
22050        } && test -s conftest.$ac_objext; then
22051   ac_cv_type_size_t=yes
22052 else
22053   echo "$as_me: failed program was:" >&5
22054 sed 's/^/| /' conftest.$ac_ext >&5
22055
22056         ac_cv_type_size_t=no
22057 fi
22058
22059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22060 fi
22061 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22062 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22063 if test $ac_cv_type_size_t = yes; then
22064   :
22065 else
22066
22067 cat >>confdefs.h <<_ACEOF
22068 #define size_t unsigned int
22069 _ACEOF
22070
22071 fi
22072
22073
22074 ###################################
22075 ## SimGrid and GRAS specific checks
22076 ##
22077
22078
22079   { echo "$as_me:$LINENO: result: " >&5
22080 echo "${ECHO_T}" >&6; }
22081   { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22082 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22083
22084 # Check architecture signature begin
22085
22086 # Check for the architecture
22087 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22088 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22089 if test "${ac_cv_c_bigendian+set}" = set; then
22090   echo $ECHO_N "(cached) $ECHO_C" >&6
22091 else
22092   # See if sys/param.h defines the BYTE_ORDER macro.
22093 cat >conftest.$ac_ext <<_ACEOF
22094 /* confdefs.h.  */
22095 _ACEOF
22096 cat confdefs.h >>conftest.$ac_ext
22097 cat >>conftest.$ac_ext <<_ACEOF
22098 /* end confdefs.h.  */
22099 #include <sys/types.h>
22100 #include <sys/param.h>
22101
22102 int
22103 main ()
22104 {
22105 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22106         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22107  bogus endian macros
22108 #endif
22109
22110   ;
22111   return 0;
22112 }
22113 _ACEOF
22114 rm -f conftest.$ac_objext
22115 if { (ac_try="$ac_compile"
22116 case "(($ac_try" in
22117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118   *) ac_try_echo=$ac_try;;
22119 esac
22120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22121   (eval "$ac_compile") 2>conftest.er1
22122   ac_status=$?
22123   grep -v '^ *+' conftest.er1 >conftest.err
22124   rm -f conftest.er1
22125   cat conftest.err >&5
22126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127   (exit $ac_status); } && {
22128          test -z "$ac_c_werror_flag" ||
22129          test ! -s conftest.err
22130        } && test -s conftest.$ac_objext; then
22131   # It does; now see whether it defined to BIG_ENDIAN or not.
22132 cat >conftest.$ac_ext <<_ACEOF
22133 /* confdefs.h.  */
22134 _ACEOF
22135 cat confdefs.h >>conftest.$ac_ext
22136 cat >>conftest.$ac_ext <<_ACEOF
22137 /* end confdefs.h.  */
22138 #include <sys/types.h>
22139 #include <sys/param.h>
22140
22141 int
22142 main ()
22143 {
22144 #if BYTE_ORDER != BIG_ENDIAN
22145  not big endian
22146 #endif
22147
22148   ;
22149   return 0;
22150 }
22151 _ACEOF
22152 rm -f conftest.$ac_objext
22153 if { (ac_try="$ac_compile"
22154 case "(($ac_try" in
22155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22156   *) ac_try_echo=$ac_try;;
22157 esac
22158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22159   (eval "$ac_compile") 2>conftest.er1
22160   ac_status=$?
22161   grep -v '^ *+' conftest.er1 >conftest.err
22162   rm -f conftest.er1
22163   cat conftest.err >&5
22164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165   (exit $ac_status); } && {
22166          test -z "$ac_c_werror_flag" ||
22167          test ! -s conftest.err
22168        } && test -s conftest.$ac_objext; then
22169   ac_cv_c_bigendian=yes
22170 else
22171   echo "$as_me: failed program was:" >&5
22172 sed 's/^/| /' conftest.$ac_ext >&5
22173
22174         ac_cv_c_bigendian=no
22175 fi
22176
22177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22178 else
22179   echo "$as_me: failed program was:" >&5
22180 sed 's/^/| /' conftest.$ac_ext >&5
22181
22182         # It does not; compile a test program.
22183 if test "$cross_compiling" = yes; then
22184   # try to guess the endianness by grepping values into an object file
22185   ac_cv_c_bigendian=unknown
22186   cat >conftest.$ac_ext <<_ACEOF
22187 /* confdefs.h.  */
22188 _ACEOF
22189 cat confdefs.h >>conftest.$ac_ext
22190 cat >>conftest.$ac_ext <<_ACEOF
22191 /* end confdefs.h.  */
22192 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22193 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22194 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22195 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22196 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22197 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22198 int
22199 main ()
22200 {
22201  _ascii (); _ebcdic ();
22202   ;
22203   return 0;
22204 }
22205 _ACEOF
22206 rm -f conftest.$ac_objext
22207 if { (ac_try="$ac_compile"
22208 case "(($ac_try" in
22209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22210   *) ac_try_echo=$ac_try;;
22211 esac
22212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22213   (eval "$ac_compile") 2>conftest.er1
22214   ac_status=$?
22215   grep -v '^ *+' conftest.er1 >conftest.err
22216   rm -f conftest.er1
22217   cat conftest.err >&5
22218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219   (exit $ac_status); } && {
22220          test -z "$ac_c_werror_flag" ||
22221          test ! -s conftest.err
22222        } && test -s conftest.$ac_objext; then
22223   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22224   ac_cv_c_bigendian=yes
22225 fi
22226 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22227   if test "$ac_cv_c_bigendian" = unknown; then
22228     ac_cv_c_bigendian=no
22229   else
22230     # finding both strings is unlikely to happen, but who knows?
22231     ac_cv_c_bigendian=unknown
22232   fi
22233 fi
22234 else
22235   echo "$as_me: failed program was:" >&5
22236 sed 's/^/| /' conftest.$ac_ext >&5
22237
22238
22239 fi
22240
22241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22242 else
22243   cat >conftest.$ac_ext <<_ACEOF
22244 /* confdefs.h.  */
22245 _ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h.  */
22249 $ac_includes_default
22250 int
22251 main ()
22252 {
22253
22254   /* Are we little or big endian?  From Harbison&Steele.  */
22255   union
22256   {
22257     long int l;
22258     char c[sizeof (long int)];
22259   } u;
22260   u.l = 1;
22261   return u.c[sizeof (long int) - 1] == 1;
22262
22263   ;
22264   return 0;
22265 }
22266 _ACEOF
22267 rm -f conftest$ac_exeext
22268 if { (ac_try="$ac_link"
22269 case "(($ac_try" in
22270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271   *) ac_try_echo=$ac_try;;
22272 esac
22273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274   (eval "$ac_link") 2>&5
22275   ac_status=$?
22276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22278   { (case "(($ac_try" in
22279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22280   *) ac_try_echo=$ac_try;;
22281 esac
22282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22283   (eval "$ac_try") 2>&5
22284   ac_status=$?
22285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286   (exit $ac_status); }; }; then
22287   ac_cv_c_bigendian=no
22288 else
22289   echo "$as_me: program exited with status $ac_status" >&5
22290 echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22292
22293 ( exit $ac_status )
22294 ac_cv_c_bigendian=yes
22295 fi
22296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22297 fi
22298
22299
22300 fi
22301
22302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22303 fi
22304 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22305 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22306 case $ac_cv_c_bigendian in
22307   yes)
22308     endian=1 ;;
22309   no)
22310     endian=0 ;;
22311   *)
22312     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22313 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22314    { (exit 1); exit 1; }; } ;;
22315 esac
22316
22317
22318 cat >>confdefs.h <<_ACEOF
22319 #define GRAS_BIGENDIAN $endian
22320 _ACEOF
22321
22322
22323 { echo "$as_me:$LINENO: checking size of char" >&5
22324 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22325     if test "${ac_cv_sizeof_char+set}" = set; then
22326   echo $ECHO_N "(cached) $ECHO_C" >&6
22327 else
22328   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22329    cat >conftest.$ac_ext <<_ACEOF
22330 /* confdefs.h.  */
22331 _ACEOF
22332 cat confdefs.h >>conftest.$ac_ext
22333 cat >>conftest.$ac_ext <<_ACEOF
22334 /* end confdefs.h.  */
22335 #include "confdefs.h"
22336    #include <sys/types.h>
22337
22338
22339 int
22340 main ()
22341 {
22342 switch (0) case 0: case (sizeof (char) == $ac_size):;
22343   ;
22344   return 0;
22345 }
22346 _ACEOF
22347 rm -f conftest.$ac_objext
22348 if { (ac_try="$ac_compile"
22349 case "(($ac_try" in
22350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22351   *) ac_try_echo=$ac_try;;
22352 esac
22353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22354   (eval "$ac_compile") 2>conftest.er1
22355   ac_status=$?
22356   grep -v '^ *+' conftest.er1 >conftest.err
22357   rm -f conftest.er1
22358   cat conftest.err >&5
22359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360   (exit $ac_status); } && {
22361          test -z "$ac_c_werror_flag" ||
22362          test ! -s conftest.err
22363        } && test -s conftest.$ac_objext; then
22364   ac_cv_sizeof_char=$ac_size
22365 else
22366   echo "$as_me: failed program was:" >&5
22367 sed 's/^/| /' conftest.$ac_ext >&5
22368
22369
22370 fi
22371
22372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22373    if test x$ac_cv_sizeof_char != x ; then break; fi
22374   done
22375
22376 fi
22377
22378
22379 unspecif=$ac_cv_sizeof_char
22380 if test x$unspecif = x ; then
22381   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22382 echo "$as_me: error: cannot determine a size for char" >&2;}
22383    { (exit 1); exit 1; }; }
22384 fi
22385
22386     if test "${ac_cv_sizeof_signed_char+set}" = set; then
22387   echo $ECHO_N "(cached) $ECHO_C" >&6
22388 else
22389   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22390    cat >conftest.$ac_ext <<_ACEOF
22391 /* confdefs.h.  */
22392 _ACEOF
22393 cat confdefs.h >>conftest.$ac_ext
22394 cat >>conftest.$ac_ext <<_ACEOF
22395 /* end confdefs.h.  */
22396 #include "confdefs.h"
22397    #include <sys/types.h>
22398
22399
22400 int
22401 main ()
22402 {
22403 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22404   ;
22405   return 0;
22406 }
22407 _ACEOF
22408 rm -f conftest.$ac_objext
22409 if { (ac_try="$ac_compile"
22410 case "(($ac_try" in
22411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22412   *) ac_try_echo=$ac_try;;
22413 esac
22414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22415   (eval "$ac_compile") 2>conftest.er1
22416   ac_status=$?
22417   grep -v '^ *+' conftest.er1 >conftest.err
22418   rm -f conftest.er1
22419   cat conftest.err >&5
22420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421   (exit $ac_status); } && {
22422          test -z "$ac_c_werror_flag" ||
22423          test ! -s conftest.err
22424        } && test -s conftest.$ac_objext; then
22425   ac_cv_sizeof_signed_char=$ac_size
22426 else
22427   echo "$as_me: failed program was:" >&5
22428 sed 's/^/| /' conftest.$ac_ext >&5
22429
22430
22431 fi
22432
22433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22434    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22435   done
22436
22437 fi
22438
22439
22440 signed=$ac_cv_sizeof_signed_char
22441 if test x$signed = x ; then
22442   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22443 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22444    { (exit 1); exit 1; }; }
22445 fi
22446 if test x$unspecif != x$signed ; then
22447   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22448 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22449    { (exit 1); exit 1; }; }
22450 fi
22451
22452     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22453   echo $ECHO_N "(cached) $ECHO_C" >&6
22454 else
22455   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22456    cat >conftest.$ac_ext <<_ACEOF
22457 /* confdefs.h.  */
22458 _ACEOF
22459 cat confdefs.h >>conftest.$ac_ext
22460 cat >>conftest.$ac_ext <<_ACEOF
22461 /* end confdefs.h.  */
22462 #include "confdefs.h"
22463    #include <sys/types.h>
22464
22465
22466 int
22467 main ()
22468 {
22469 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22470   ;
22471   return 0;
22472 }
22473 _ACEOF
22474 rm -f conftest.$ac_objext
22475 if { (ac_try="$ac_compile"
22476 case "(($ac_try" in
22477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22478   *) ac_try_echo=$ac_try;;
22479 esac
22480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22481   (eval "$ac_compile") 2>conftest.er1
22482   ac_status=$?
22483   grep -v '^ *+' conftest.er1 >conftest.err
22484   rm -f conftest.er1
22485   cat conftest.err >&5
22486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487   (exit $ac_status); } && {
22488          test -z "$ac_c_werror_flag" ||
22489          test ! -s conftest.err
22490        } && test -s conftest.$ac_objext; then
22491   ac_cv_sizeof_unsigned_char=$ac_size
22492 else
22493   echo "$as_me: failed program was:" >&5
22494 sed 's/^/| /' conftest.$ac_ext >&5
22495
22496
22497 fi
22498
22499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22500    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22501   done
22502
22503 fi
22504
22505
22506 unsigned=$ac_cv_sizeof_unsigned_char
22507 if test x$unsigned = x ; then
22508   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22509 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22510    { (exit 1); exit 1; }; }
22511 fi
22512 if test x$unsigned != x$signed ; then
22513   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22514 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22515    { (exit 1); exit 1; }; }
22516 fi
22517
22518 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22519 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22520                   { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22521 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22522
22523  if test "${ac_cv_struct_boundary_char+set}" = set; then
22524   echo $ECHO_N "(cached) $ECHO_C" >&6
22525 else
22526   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22527    cat >conftest.$ac_ext <<_ACEOF
22528 /* confdefs.h.  */
22529 _ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h.  */
22533 #include "confdefs.h"
22534      #include <sys/types.h>
22535      struct s { char c; char i; };
22536
22537 int
22538 main ()
22539 {
22540 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22541   ;
22542   return 0;
22543 }
22544 _ACEOF
22545 rm -f conftest.$ac_objext
22546 if { (ac_try="$ac_compile"
22547 case "(($ac_try" in
22548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549   *) ac_try_echo=$ac_try;;
22550 esac
22551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22552   (eval "$ac_compile") 2>conftest.er1
22553   ac_status=$?
22554   grep -v '^ *+' conftest.er1 >conftest.err
22555   rm -f conftest.er1
22556   cat conftest.err >&5
22557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558   (exit $ac_status); } && {
22559          test -z "$ac_c_werror_flag" ||
22560          test ! -s conftest.err
22561        } && test -s conftest.$ac_objext; then
22562   ac_cv_struct_boundary_char=$ac_size
22563 else
22564   echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22566
22567
22568 fi
22569
22570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22571    if test x$ac_cv_struct_boundary_char != x ; then break; fi
22572   done
22573
22574 fi
22575
22576  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22577 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22578  if test x$ac_cv_struct_boundary_char = x ; then
22579    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22580 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22581    { (exit 1); exit 1; }; }
22582  fi
22583
22584 { echo "$as_me:$LINENO: checking size of short int" >&5
22585 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22586     if test "${ac_cv_sizeof_short_int+set}" = set; then
22587   echo $ECHO_N "(cached) $ECHO_C" >&6
22588 else
22589   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22590    cat >conftest.$ac_ext <<_ACEOF
22591 /* confdefs.h.  */
22592 _ACEOF
22593 cat confdefs.h >>conftest.$ac_ext
22594 cat >>conftest.$ac_ext <<_ACEOF
22595 /* end confdefs.h.  */
22596 #include "confdefs.h"
22597    #include <sys/types.h>
22598
22599
22600 int
22601 main ()
22602 {
22603 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22604   ;
22605   return 0;
22606 }
22607 _ACEOF
22608 rm -f conftest.$ac_objext
22609 if { (ac_try="$ac_compile"
22610 case "(($ac_try" in
22611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612   *) ac_try_echo=$ac_try;;
22613 esac
22614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22615   (eval "$ac_compile") 2>conftest.er1
22616   ac_status=$?
22617   grep -v '^ *+' conftest.er1 >conftest.err
22618   rm -f conftest.er1
22619   cat conftest.err >&5
22620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621   (exit $ac_status); } && {
22622          test -z "$ac_c_werror_flag" ||
22623          test ! -s conftest.err
22624        } && test -s conftest.$ac_objext; then
22625   ac_cv_sizeof_short_int=$ac_size
22626 else
22627   echo "$as_me: failed program was:" >&5
22628 sed 's/^/| /' conftest.$ac_ext >&5
22629
22630
22631 fi
22632
22633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22634    if test x$ac_cv_sizeof_short_int != x ; then break; fi
22635   done
22636
22637 fi
22638
22639
22640 unspecif=$ac_cv_sizeof_short_int
22641 if test x$unspecif = x ; then
22642   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22643 echo "$as_me: error: cannot determine a size for short int" >&2;}
22644    { (exit 1); exit 1; }; }
22645 fi
22646
22647     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22648   echo $ECHO_N "(cached) $ECHO_C" >&6
22649 else
22650   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22651    cat >conftest.$ac_ext <<_ACEOF
22652 /* confdefs.h.  */
22653 _ACEOF
22654 cat confdefs.h >>conftest.$ac_ext
22655 cat >>conftest.$ac_ext <<_ACEOF
22656 /* end confdefs.h.  */
22657 #include "confdefs.h"
22658    #include <sys/types.h>
22659
22660
22661 int
22662 main ()
22663 {
22664 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22665   ;
22666   return 0;
22667 }
22668 _ACEOF
22669 rm -f conftest.$ac_objext
22670 if { (ac_try="$ac_compile"
22671 case "(($ac_try" in
22672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22673   *) ac_try_echo=$ac_try;;
22674 esac
22675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22676   (eval "$ac_compile") 2>conftest.er1
22677   ac_status=$?
22678   grep -v '^ *+' conftest.er1 >conftest.err
22679   rm -f conftest.er1
22680   cat conftest.err >&5
22681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682   (exit $ac_status); } && {
22683          test -z "$ac_c_werror_flag" ||
22684          test ! -s conftest.err
22685        } && test -s conftest.$ac_objext; then
22686   ac_cv_sizeof_signed_short_int=$ac_size
22687 else
22688   echo "$as_me: failed program was:" >&5
22689 sed 's/^/| /' conftest.$ac_ext >&5
22690
22691
22692 fi
22693
22694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22695    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22696   done
22697
22698 fi
22699
22700
22701 signed=$ac_cv_sizeof_signed_short_int
22702 if test x$signed = x ; then
22703   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22704 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22705    { (exit 1); exit 1; }; }
22706 fi
22707 if test x$unspecif != x$signed ; then
22708   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22709 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22710    { (exit 1); exit 1; }; }
22711 fi
22712
22713     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22714   echo $ECHO_N "(cached) $ECHO_C" >&6
22715 else
22716   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22717    cat >conftest.$ac_ext <<_ACEOF
22718 /* confdefs.h.  */
22719 _ACEOF
22720 cat confdefs.h >>conftest.$ac_ext
22721 cat >>conftest.$ac_ext <<_ACEOF
22722 /* end confdefs.h.  */
22723 #include "confdefs.h"
22724    #include <sys/types.h>
22725
22726
22727 int
22728 main ()
22729 {
22730 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22731   ;
22732   return 0;
22733 }
22734 _ACEOF
22735 rm -f conftest.$ac_objext
22736 if { (ac_try="$ac_compile"
22737 case "(($ac_try" in
22738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739   *) ac_try_echo=$ac_try;;
22740 esac
22741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22742   (eval "$ac_compile") 2>conftest.er1
22743   ac_status=$?
22744   grep -v '^ *+' conftest.er1 >conftest.err
22745   rm -f conftest.er1
22746   cat conftest.err >&5
22747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748   (exit $ac_status); } && {
22749          test -z "$ac_c_werror_flag" ||
22750          test ! -s conftest.err
22751        } && test -s conftest.$ac_objext; then
22752   ac_cv_sizeof_unsigned_short_int=$ac_size
22753 else
22754   echo "$as_me: failed program was:" >&5
22755 sed 's/^/| /' conftest.$ac_ext >&5
22756
22757
22758 fi
22759
22760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22761    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22762   done
22763
22764 fi
22765
22766
22767 unsigned=$ac_cv_sizeof_unsigned_short_int
22768 if test x$unsigned = x ; then
22769   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22770 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22771    { (exit 1); exit 1; }; }
22772 fi
22773 if test x$unsigned != x$signed ; then
22774   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22775 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22776    { (exit 1); exit 1; }; }
22777 fi
22778
22779 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22780 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22781              { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22782 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22783
22784  if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22785   echo $ECHO_N "(cached) $ECHO_C" >&6
22786 else
22787   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22788    cat >conftest.$ac_ext <<_ACEOF
22789 /* confdefs.h.  */
22790 _ACEOF
22791 cat confdefs.h >>conftest.$ac_ext
22792 cat >>conftest.$ac_ext <<_ACEOF
22793 /* end confdefs.h.  */
22794 #include "confdefs.h"
22795      #include <sys/types.h>
22796      struct s { char c; short int i; };
22797
22798 int
22799 main ()
22800 {
22801 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22802   ;
22803   return 0;
22804 }
22805 _ACEOF
22806 rm -f conftest.$ac_objext
22807 if { (ac_try="$ac_compile"
22808 case "(($ac_try" in
22809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22810   *) ac_try_echo=$ac_try;;
22811 esac
22812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22813   (eval "$ac_compile") 2>conftest.er1
22814   ac_status=$?
22815   grep -v '^ *+' conftest.er1 >conftest.err
22816   rm -f conftest.er1
22817   cat conftest.err >&5
22818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819   (exit $ac_status); } && {
22820          test -z "$ac_c_werror_flag" ||
22821          test ! -s conftest.err
22822        } && test -s conftest.$ac_objext; then
22823   ac_cv_struct_boundary_short_int=$ac_size
22824 else
22825   echo "$as_me: failed program was:" >&5
22826 sed 's/^/| /' conftest.$ac_ext >&5
22827
22828
22829 fi
22830
22831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22832    if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22833   done
22834
22835 fi
22836
22837  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22838 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22839  if test x$ac_cv_struct_boundary_short_int = x ; then
22840    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22841 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22842    { (exit 1); exit 1; }; }
22843  fi
22844
22845 { echo "$as_me:$LINENO: checking size of int" >&5
22846 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22847     if test "${ac_cv_sizeof_int+set}" = set; then
22848   echo $ECHO_N "(cached) $ECHO_C" >&6
22849 else
22850   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22851    cat >conftest.$ac_ext <<_ACEOF
22852 /* confdefs.h.  */
22853 _ACEOF
22854 cat confdefs.h >>conftest.$ac_ext
22855 cat >>conftest.$ac_ext <<_ACEOF
22856 /* end confdefs.h.  */
22857 #include "confdefs.h"
22858    #include <sys/types.h>
22859
22860
22861 int
22862 main ()
22863 {
22864 switch (0) case 0: case (sizeof (int) == $ac_size):;
22865   ;
22866   return 0;
22867 }
22868 _ACEOF
22869 rm -f conftest.$ac_objext
22870 if { (ac_try="$ac_compile"
22871 case "(($ac_try" in
22872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873   *) ac_try_echo=$ac_try;;
22874 esac
22875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22876   (eval "$ac_compile") 2>conftest.er1
22877   ac_status=$?
22878   grep -v '^ *+' conftest.er1 >conftest.err
22879   rm -f conftest.er1
22880   cat conftest.err >&5
22881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882   (exit $ac_status); } && {
22883          test -z "$ac_c_werror_flag" ||
22884          test ! -s conftest.err
22885        } && test -s conftest.$ac_objext; then
22886   ac_cv_sizeof_int=$ac_size
22887 else
22888   echo "$as_me: failed program was:" >&5
22889 sed 's/^/| /' conftest.$ac_ext >&5
22890
22891
22892 fi
22893
22894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22895    if test x$ac_cv_sizeof_int != x ; then break; fi
22896   done
22897
22898 fi
22899
22900
22901 unspecif=$ac_cv_sizeof_int
22902 if test x$unspecif = x ; then
22903   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22904 echo "$as_me: error: cannot determine a size for int" >&2;}
22905    { (exit 1); exit 1; }; }
22906 fi
22907
22908     if test "${ac_cv_sizeof_signed_int+set}" = set; then
22909   echo $ECHO_N "(cached) $ECHO_C" >&6
22910 else
22911   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22912    cat >conftest.$ac_ext <<_ACEOF
22913 /* confdefs.h.  */
22914 _ACEOF
22915 cat confdefs.h >>conftest.$ac_ext
22916 cat >>conftest.$ac_ext <<_ACEOF
22917 /* end confdefs.h.  */
22918 #include "confdefs.h"
22919    #include <sys/types.h>
22920
22921
22922 int
22923 main ()
22924 {
22925 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22926   ;
22927   return 0;
22928 }
22929 _ACEOF
22930 rm -f conftest.$ac_objext
22931 if { (ac_try="$ac_compile"
22932 case "(($ac_try" in
22933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22934   *) ac_try_echo=$ac_try;;
22935 esac
22936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22937   (eval "$ac_compile") 2>conftest.er1
22938   ac_status=$?
22939   grep -v '^ *+' conftest.er1 >conftest.err
22940   rm -f conftest.er1
22941   cat conftest.err >&5
22942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943   (exit $ac_status); } && {
22944          test -z "$ac_c_werror_flag" ||
22945          test ! -s conftest.err
22946        } && test -s conftest.$ac_objext; then
22947   ac_cv_sizeof_signed_int=$ac_size
22948 else
22949   echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22951
22952
22953 fi
22954
22955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22956    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22957   done
22958
22959 fi
22960
22961
22962 signed=$ac_cv_sizeof_signed_int
22963 if test x$signed = x ; then
22964   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22965 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22966    { (exit 1); exit 1; }; }
22967 fi
22968 if test x$unspecif != x$signed ; then
22969   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22970 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22971    { (exit 1); exit 1; }; }
22972 fi
22973
22974     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22975   echo $ECHO_N "(cached) $ECHO_C" >&6
22976 else
22977   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22978    cat >conftest.$ac_ext <<_ACEOF
22979 /* confdefs.h.  */
22980 _ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h.  */
22984 #include "confdefs.h"
22985    #include <sys/types.h>
22986
22987
22988 int
22989 main ()
22990 {
22991 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22992   ;
22993   return 0;
22994 }
22995 _ACEOF
22996 rm -f conftest.$ac_objext
22997 if { (ac_try="$ac_compile"
22998 case "(($ac_try" in
22999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23000   *) ac_try_echo=$ac_try;;
23001 esac
23002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23003   (eval "$ac_compile") 2>conftest.er1
23004   ac_status=$?
23005   grep -v '^ *+' conftest.er1 >conftest.err
23006   rm -f conftest.er1
23007   cat conftest.err >&5
23008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009   (exit $ac_status); } && {
23010          test -z "$ac_c_werror_flag" ||
23011          test ! -s conftest.err
23012        } && test -s conftest.$ac_objext; then
23013   ac_cv_sizeof_unsigned_int=$ac_size
23014 else
23015   echo "$as_me: failed program was:" >&5
23016 sed 's/^/| /' conftest.$ac_ext >&5
23017
23018
23019 fi
23020
23021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23022    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
23023   done
23024
23025 fi
23026
23027
23028 unsigned=$ac_cv_sizeof_unsigned_int
23029 if test x$unsigned = x ; then
23030   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
23031 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
23032    { (exit 1); exit 1; }; }
23033 fi
23034 if test x$unsigned != x$signed ; then
23035   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
23036 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
23037    { (exit 1); exit 1; }; }
23038 fi
23039
23040 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
23041 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
23042                    { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
23043 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
23044
23045  if test "${ac_cv_struct_boundary_int+set}" = set; then
23046   echo $ECHO_N "(cached) $ECHO_C" >&6
23047 else
23048   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23049    cat >conftest.$ac_ext <<_ACEOF
23050 /* confdefs.h.  */
23051 _ACEOF
23052 cat confdefs.h >>conftest.$ac_ext
23053 cat >>conftest.$ac_ext <<_ACEOF
23054 /* end confdefs.h.  */
23055 #include "confdefs.h"
23056      #include <sys/types.h>
23057      struct s { char c; int i; };
23058
23059 int
23060 main ()
23061 {
23062 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23063   ;
23064   return 0;
23065 }
23066 _ACEOF
23067 rm -f conftest.$ac_objext
23068 if { (ac_try="$ac_compile"
23069 case "(($ac_try" in
23070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23071   *) ac_try_echo=$ac_try;;
23072 esac
23073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23074   (eval "$ac_compile") 2>conftest.er1
23075   ac_status=$?
23076   grep -v '^ *+' conftest.er1 >conftest.err
23077   rm -f conftest.er1
23078   cat conftest.err >&5
23079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080   (exit $ac_status); } && {
23081          test -z "$ac_c_werror_flag" ||
23082          test ! -s conftest.err
23083        } && test -s conftest.$ac_objext; then
23084   ac_cv_struct_boundary_int=$ac_size
23085 else
23086   echo "$as_me: failed program was:" >&5
23087 sed 's/^/| /' conftest.$ac_ext >&5
23088
23089
23090 fi
23091
23092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23093    if test x$ac_cv_struct_boundary_int != x ; then break; fi
23094   done
23095
23096 fi
23097
23098  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23099 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23100  if test x$ac_cv_struct_boundary_int = x ; then
23101    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23102 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23103    { (exit 1); exit 1; }; }
23104  fi
23105
23106 { echo "$as_me:$LINENO: checking size of long int" >&5
23107 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23108     if test "${ac_cv_sizeof_long_int+set}" = set; then
23109   echo $ECHO_N "(cached) $ECHO_C" >&6
23110 else
23111   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23112    cat >conftest.$ac_ext <<_ACEOF
23113 /* confdefs.h.  */
23114 _ACEOF
23115 cat confdefs.h >>conftest.$ac_ext
23116 cat >>conftest.$ac_ext <<_ACEOF
23117 /* end confdefs.h.  */
23118 #include "confdefs.h"
23119    #include <sys/types.h>
23120
23121
23122 int
23123 main ()
23124 {
23125 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23126   ;
23127   return 0;
23128 }
23129 _ACEOF
23130 rm -f conftest.$ac_objext
23131 if { (ac_try="$ac_compile"
23132 case "(($ac_try" in
23133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134   *) ac_try_echo=$ac_try;;
23135 esac
23136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23137   (eval "$ac_compile") 2>conftest.er1
23138   ac_status=$?
23139   grep -v '^ *+' conftest.er1 >conftest.err
23140   rm -f conftest.er1
23141   cat conftest.err >&5
23142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143   (exit $ac_status); } && {
23144          test -z "$ac_c_werror_flag" ||
23145          test ! -s conftest.err
23146        } && test -s conftest.$ac_objext; then
23147   ac_cv_sizeof_long_int=$ac_size
23148 else
23149   echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23151
23152
23153 fi
23154
23155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23156    if test x$ac_cv_sizeof_long_int != x ; then break; fi
23157   done
23158
23159 fi
23160
23161
23162 unspecif=$ac_cv_sizeof_long_int
23163 if test x$unspecif = x ; then
23164   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23165 echo "$as_me: error: cannot determine a size for long int" >&2;}
23166    { (exit 1); exit 1; }; }
23167 fi
23168
23169     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23170   echo $ECHO_N "(cached) $ECHO_C" >&6
23171 else
23172   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23173    cat >conftest.$ac_ext <<_ACEOF
23174 /* confdefs.h.  */
23175 _ACEOF
23176 cat confdefs.h >>conftest.$ac_ext
23177 cat >>conftest.$ac_ext <<_ACEOF
23178 /* end confdefs.h.  */
23179 #include "confdefs.h"
23180    #include <sys/types.h>
23181
23182
23183 int
23184 main ()
23185 {
23186 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23187   ;
23188   return 0;
23189 }
23190 _ACEOF
23191 rm -f conftest.$ac_objext
23192 if { (ac_try="$ac_compile"
23193 case "(($ac_try" in
23194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23195   *) ac_try_echo=$ac_try;;
23196 esac
23197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23198   (eval "$ac_compile") 2>conftest.er1
23199   ac_status=$?
23200   grep -v '^ *+' conftest.er1 >conftest.err
23201   rm -f conftest.er1
23202   cat conftest.err >&5
23203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204   (exit $ac_status); } && {
23205          test -z "$ac_c_werror_flag" ||
23206          test ! -s conftest.err
23207        } && test -s conftest.$ac_objext; then
23208   ac_cv_sizeof_signed_long_int=$ac_size
23209 else
23210   echo "$as_me: failed program was:" >&5
23211 sed 's/^/| /' conftest.$ac_ext >&5
23212
23213
23214 fi
23215
23216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23217    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23218   done
23219
23220 fi
23221
23222
23223 signed=$ac_cv_sizeof_signed_long_int
23224 if test x$signed = x ; then
23225   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23226 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23227    { (exit 1); exit 1; }; }
23228 fi
23229 if test x$unspecif != x$signed ; then
23230   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23231 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23232    { (exit 1); exit 1; }; }
23233 fi
23234
23235     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23236   echo $ECHO_N "(cached) $ECHO_C" >&6
23237 else
23238   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23239    cat >conftest.$ac_ext <<_ACEOF
23240 /* confdefs.h.  */
23241 _ACEOF
23242 cat confdefs.h >>conftest.$ac_ext
23243 cat >>conftest.$ac_ext <<_ACEOF
23244 /* end confdefs.h.  */
23245 #include "confdefs.h"
23246    #include <sys/types.h>
23247
23248
23249 int
23250 main ()
23251 {
23252 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23253   ;
23254   return 0;
23255 }
23256 _ACEOF
23257 rm -f conftest.$ac_objext
23258 if { (ac_try="$ac_compile"
23259 case "(($ac_try" in
23260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23261   *) ac_try_echo=$ac_try;;
23262 esac
23263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23264   (eval "$ac_compile") 2>conftest.er1
23265   ac_status=$?
23266   grep -v '^ *+' conftest.er1 >conftest.err
23267   rm -f conftest.er1
23268   cat conftest.err >&5
23269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270   (exit $ac_status); } && {
23271          test -z "$ac_c_werror_flag" ||
23272          test ! -s conftest.err
23273        } && test -s conftest.$ac_objext; then
23274   ac_cv_sizeof_unsigned_long_int=$ac_size
23275 else
23276   echo "$as_me: failed program was:" >&5
23277 sed 's/^/| /' conftest.$ac_ext >&5
23278
23279
23280 fi
23281
23282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23283    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23284   done
23285
23286 fi
23287
23288
23289 unsigned=$ac_cv_sizeof_unsigned_long_int
23290 if test x$unsigned = x ; then
23291   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23292 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23293    { (exit 1); exit 1; }; }
23294 fi
23295 if test x$unsigned != x$signed ; then
23296   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23297 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23298    { (exit 1); exit 1; }; }
23299 fi
23300
23301 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23302 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23303               { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23304 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23305
23306  if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23307   echo $ECHO_N "(cached) $ECHO_C" >&6
23308 else
23309   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23310    cat >conftest.$ac_ext <<_ACEOF
23311 /* confdefs.h.  */
23312 _ACEOF
23313 cat confdefs.h >>conftest.$ac_ext
23314 cat >>conftest.$ac_ext <<_ACEOF
23315 /* end confdefs.h.  */
23316 #include "confdefs.h"
23317      #include <sys/types.h>
23318      struct s { char c; long int i; };
23319
23320 int
23321 main ()
23322 {
23323 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23324   ;
23325   return 0;
23326 }
23327 _ACEOF
23328 rm -f conftest.$ac_objext
23329 if { (ac_try="$ac_compile"
23330 case "(($ac_try" in
23331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23332   *) ac_try_echo=$ac_try;;
23333 esac
23334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23335   (eval "$ac_compile") 2>conftest.er1
23336   ac_status=$?
23337   grep -v '^ *+' conftest.er1 >conftest.err
23338   rm -f conftest.er1
23339   cat conftest.err >&5
23340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341   (exit $ac_status); } && {
23342          test -z "$ac_c_werror_flag" ||
23343          test ! -s conftest.err
23344        } && test -s conftest.$ac_objext; then
23345   ac_cv_struct_boundary_long_int=$ac_size
23346 else
23347   echo "$as_me: failed program was:" >&5
23348 sed 's/^/| /' conftest.$ac_ext >&5
23349
23350
23351 fi
23352
23353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23354    if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23355   done
23356
23357 fi
23358
23359  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23360 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23361  if test x$ac_cv_struct_boundary_long_int = x ; then
23362    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23363 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23364    { (exit 1); exit 1; }; }
23365  fi
23366
23367 { echo "$as_me:$LINENO: checking size of long long int" >&5
23368 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23369     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23370   echo $ECHO_N "(cached) $ECHO_C" >&6
23371 else
23372   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23373    cat >conftest.$ac_ext <<_ACEOF
23374 /* confdefs.h.  */
23375 _ACEOF
23376 cat confdefs.h >>conftest.$ac_ext
23377 cat >>conftest.$ac_ext <<_ACEOF
23378 /* end confdefs.h.  */
23379 #include "confdefs.h"
23380    #include <sys/types.h>
23381
23382
23383 int
23384 main ()
23385 {
23386 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23387   ;
23388   return 0;
23389 }
23390 _ACEOF
23391 rm -f conftest.$ac_objext
23392 if { (ac_try="$ac_compile"
23393 case "(($ac_try" in
23394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23395   *) ac_try_echo=$ac_try;;
23396 esac
23397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23398   (eval "$ac_compile") 2>conftest.er1
23399   ac_status=$?
23400   grep -v '^ *+' conftest.er1 >conftest.err
23401   rm -f conftest.er1
23402   cat conftest.err >&5
23403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404   (exit $ac_status); } && {
23405          test -z "$ac_c_werror_flag" ||
23406          test ! -s conftest.err
23407        } && test -s conftest.$ac_objext; then
23408   ac_cv_sizeof_long_long_int=$ac_size
23409 else
23410   echo "$as_me: failed program was:" >&5
23411 sed 's/^/| /' conftest.$ac_ext >&5
23412
23413
23414 fi
23415
23416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23417    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
23418   done
23419
23420 fi
23421
23422
23423 unspecif=$ac_cv_sizeof_long_long_int
23424 if test x$unspecif = x ; then
23425   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23426 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23427    { (exit 1); exit 1; }; }
23428 fi
23429
23430     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23431   echo $ECHO_N "(cached) $ECHO_C" >&6
23432 else
23433   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23434    cat >conftest.$ac_ext <<_ACEOF
23435 /* confdefs.h.  */
23436 _ACEOF
23437 cat confdefs.h >>conftest.$ac_ext
23438 cat >>conftest.$ac_ext <<_ACEOF
23439 /* end confdefs.h.  */
23440 #include "confdefs.h"
23441    #include <sys/types.h>
23442
23443
23444 int
23445 main ()
23446 {
23447 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23448   ;
23449   return 0;
23450 }
23451 _ACEOF
23452 rm -f conftest.$ac_objext
23453 if { (ac_try="$ac_compile"
23454 case "(($ac_try" in
23455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23456   *) ac_try_echo=$ac_try;;
23457 esac
23458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23459   (eval "$ac_compile") 2>conftest.er1
23460   ac_status=$?
23461   grep -v '^ *+' conftest.er1 >conftest.err
23462   rm -f conftest.er1
23463   cat conftest.err >&5
23464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465   (exit $ac_status); } && {
23466          test -z "$ac_c_werror_flag" ||
23467          test ! -s conftest.err
23468        } && test -s conftest.$ac_objext; then
23469   ac_cv_sizeof_signed_long_long_int=$ac_size
23470 else
23471   echo "$as_me: failed program was:" >&5
23472 sed 's/^/| /' conftest.$ac_ext >&5
23473
23474
23475 fi
23476
23477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23478    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23479   done
23480
23481 fi
23482
23483
23484 signed=$ac_cv_sizeof_signed_long_long_int
23485 if test x$signed = x ; then
23486   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23487 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23488    { (exit 1); exit 1; }; }
23489 fi
23490 if test x$unspecif != x$signed ; then
23491   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23492 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23493    { (exit 1); exit 1; }; }
23494 fi
23495
23496     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23497   echo $ECHO_N "(cached) $ECHO_C" >&6
23498 else
23499   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23500    cat >conftest.$ac_ext <<_ACEOF
23501 /* confdefs.h.  */
23502 _ACEOF
23503 cat confdefs.h >>conftest.$ac_ext
23504 cat >>conftest.$ac_ext <<_ACEOF
23505 /* end confdefs.h.  */
23506 #include "confdefs.h"
23507    #include <sys/types.h>
23508
23509
23510 int
23511 main ()
23512 {
23513 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23514   ;
23515   return 0;
23516 }
23517 _ACEOF
23518 rm -f conftest.$ac_objext
23519 if { (ac_try="$ac_compile"
23520 case "(($ac_try" in
23521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23522   *) ac_try_echo=$ac_try;;
23523 esac
23524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23525   (eval "$ac_compile") 2>conftest.er1
23526   ac_status=$?
23527   grep -v '^ *+' conftest.er1 >conftest.err
23528   rm -f conftest.er1
23529   cat conftest.err >&5
23530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531   (exit $ac_status); } && {
23532          test -z "$ac_c_werror_flag" ||
23533          test ! -s conftest.err
23534        } && test -s conftest.$ac_objext; then
23535   ac_cv_sizeof_unsigned_long_long_int=$ac_size
23536 else
23537   echo "$as_me: failed program was:" >&5
23538 sed 's/^/| /' conftest.$ac_ext >&5
23539
23540
23541 fi
23542
23543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23544    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23545   done
23546
23547 fi
23548
23549
23550 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23551 if test x$unsigned = x ; then
23552   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23553 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23554    { (exit 1); exit 1; }; }
23555 fi
23556 if test x$unsigned != x$signed ; then
23557   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23558 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23559    { (exit 1); exit 1; }; }
23560 fi
23561
23562 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23563 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23564          { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23565 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23566
23567  if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23568   echo $ECHO_N "(cached) $ECHO_C" >&6
23569 else
23570   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23571    cat >conftest.$ac_ext <<_ACEOF
23572 /* confdefs.h.  */
23573 _ACEOF
23574 cat confdefs.h >>conftest.$ac_ext
23575 cat >>conftest.$ac_ext <<_ACEOF
23576 /* end confdefs.h.  */
23577 #include "confdefs.h"
23578      #include <sys/types.h>
23579      struct s { char c; long long int i; };
23580
23581 int
23582 main ()
23583 {
23584 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23585   ;
23586   return 0;
23587 }
23588 _ACEOF
23589 rm -f conftest.$ac_objext
23590 if { (ac_try="$ac_compile"
23591 case "(($ac_try" in
23592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23593   *) ac_try_echo=$ac_try;;
23594 esac
23595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23596   (eval "$ac_compile") 2>conftest.er1
23597   ac_status=$?
23598   grep -v '^ *+' conftest.er1 >conftest.err
23599   rm -f conftest.er1
23600   cat conftest.err >&5
23601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602   (exit $ac_status); } && {
23603          test -z "$ac_c_werror_flag" ||
23604          test ! -s conftest.err
23605        } && test -s conftest.$ac_objext; then
23606   ac_cv_struct_boundary_long_long_int=$ac_size
23607 else
23608   echo "$as_me: failed program was:" >&5
23609 sed 's/^/| /' conftest.$ac_ext >&5
23610
23611
23612 fi
23613
23614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23615    if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23616   done
23617
23618 fi
23619
23620  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23621 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23622  if test x$ac_cv_struct_boundary_long_long_int = x ; then
23623    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23624 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23625    { (exit 1); exit 1; }; }
23626  fi
23627
23628
23629     { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23630 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23631
23632  if test "${ac_cv_struct_boundary_float+set}" = set; then
23633   echo $ECHO_N "(cached) $ECHO_C" >&6
23634 else
23635   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23636    cat >conftest.$ac_ext <<_ACEOF
23637 /* confdefs.h.  */
23638 _ACEOF
23639 cat confdefs.h >>conftest.$ac_ext
23640 cat >>conftest.$ac_ext <<_ACEOF
23641 /* end confdefs.h.  */
23642 #include "confdefs.h"
23643      #include <sys/types.h>
23644      struct s { char c; float i; };
23645
23646 int
23647 main ()
23648 {
23649 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23650   ;
23651   return 0;
23652 }
23653 _ACEOF
23654 rm -f conftest.$ac_objext
23655 if { (ac_try="$ac_compile"
23656 case "(($ac_try" in
23657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23658   *) ac_try_echo=$ac_try;;
23659 esac
23660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23661   (eval "$ac_compile") 2>conftest.er1
23662   ac_status=$?
23663   grep -v '^ *+' conftest.er1 >conftest.err
23664   rm -f conftest.er1
23665   cat conftest.err >&5
23666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667   (exit $ac_status); } && {
23668          test -z "$ac_c_werror_flag" ||
23669          test ! -s conftest.err
23670        } && test -s conftest.$ac_objext; then
23671   ac_cv_struct_boundary_float=$ac_size
23672 else
23673   echo "$as_me: failed program was:" >&5
23674 sed 's/^/| /' conftest.$ac_ext >&5
23675
23676
23677 fi
23678
23679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23680    if test x$ac_cv_struct_boundary_float != x ; then break; fi
23681   done
23682
23683 fi
23684
23685  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23686 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23687  if test x$ac_cv_struct_boundary_float = x ; then
23688    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23689 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23690    { (exit 1); exit 1; }; }
23691  fi
23692                { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23693 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23694
23695  if test "${ac_cv_struct_boundary_double+set}" = set; then
23696   echo $ECHO_N "(cached) $ECHO_C" >&6
23697 else
23698   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23699    cat >conftest.$ac_ext <<_ACEOF
23700 /* confdefs.h.  */
23701 _ACEOF
23702 cat confdefs.h >>conftest.$ac_ext
23703 cat >>conftest.$ac_ext <<_ACEOF
23704 /* end confdefs.h.  */
23705 #include "confdefs.h"
23706      #include <sys/types.h>
23707      struct s { char c; double i; };
23708
23709 int
23710 main ()
23711 {
23712 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23713   ;
23714   return 0;
23715 }
23716 _ACEOF
23717 rm -f conftest.$ac_objext
23718 if { (ac_try="$ac_compile"
23719 case "(($ac_try" in
23720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23721   *) ac_try_echo=$ac_try;;
23722 esac
23723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23724   (eval "$ac_compile") 2>conftest.er1
23725   ac_status=$?
23726   grep -v '^ *+' conftest.er1 >conftest.err
23727   rm -f conftest.er1
23728   cat conftest.err >&5
23729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730   (exit $ac_status); } && {
23731          test -z "$ac_c_werror_flag" ||
23732          test ! -s conftest.err
23733        } && test -s conftest.$ac_objext; then
23734   ac_cv_struct_boundary_double=$ac_size
23735 else
23736   echo "$as_me: failed program was:" >&5
23737 sed 's/^/| /' conftest.$ac_ext >&5
23738
23739
23740 fi
23741
23742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23743    if test x$ac_cv_struct_boundary_double != x ; then break; fi
23744   done
23745
23746 fi
23747
23748  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23749 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23750  if test x$ac_cv_struct_boundary_double = x ; then
23751    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23752 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23753    { (exit 1); exit 1; }; }
23754  fi
23755
23756
23757 { echo "$as_me:$LINENO: checking size of void *" >&5
23758 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23759     if test "${ac_cv_sizeof_void_p+set}" = set; then
23760   echo $ECHO_N "(cached) $ECHO_C" >&6
23761 else
23762   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23763    cat >conftest.$ac_ext <<_ACEOF
23764 /* confdefs.h.  */
23765 _ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h.  */
23769 #include "confdefs.h"
23770    #include <sys/types.h>
23771
23772
23773 int
23774 main ()
23775 {
23776 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23777   ;
23778   return 0;
23779 }
23780 _ACEOF
23781 rm -f conftest.$ac_objext
23782 if { (ac_try="$ac_compile"
23783 case "(($ac_try" in
23784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23785   *) ac_try_echo=$ac_try;;
23786 esac
23787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23788   (eval "$ac_compile") 2>conftest.er1
23789   ac_status=$?
23790   grep -v '^ *+' conftest.er1 >conftest.err
23791   rm -f conftest.er1
23792   cat conftest.err >&5
23793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794   (exit $ac_status); } && {
23795          test -z "$ac_c_werror_flag" ||
23796          test ! -s conftest.err
23797        } && test -s conftest.$ac_objext; then
23798   ac_cv_sizeof_void_p=$ac_size
23799 else
23800   echo "$as_me: failed program was:" >&5
23801 sed 's/^/| /' conftest.$ac_ext >&5
23802
23803
23804 fi
23805
23806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23807    if test x$ac_cv_sizeof_void_p != x ; then break; fi
23808   done
23809
23810 fi
23811
23812
23813 if test x$ac_cv_sizeof_void_p = x ; then
23814   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23815 echo "$as_me: error: cannot determine a size for void *" >&2;}
23816    { (exit 1); exit 1; }; }
23817 fi
23818 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23819 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23820                  { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23821 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23822
23823  if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23824   echo $ECHO_N "(cached) $ECHO_C" >&6
23825 else
23826   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23827    cat >conftest.$ac_ext <<_ACEOF
23828 /* confdefs.h.  */
23829 _ACEOF
23830 cat confdefs.h >>conftest.$ac_ext
23831 cat >>conftest.$ac_ext <<_ACEOF
23832 /* end confdefs.h.  */
23833 #include "confdefs.h"
23834      #include <sys/types.h>
23835      struct s { char c; void * i; };
23836
23837 int
23838 main ()
23839 {
23840 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23841   ;
23842   return 0;
23843 }
23844 _ACEOF
23845 rm -f conftest.$ac_objext
23846 if { (ac_try="$ac_compile"
23847 case "(($ac_try" in
23848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23849   *) ac_try_echo=$ac_try;;
23850 esac
23851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23852   (eval "$ac_compile") 2>conftest.er1
23853   ac_status=$?
23854   grep -v '^ *+' conftest.er1 >conftest.err
23855   rm -f conftest.er1
23856   cat conftest.err >&5
23857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858   (exit $ac_status); } && {
23859          test -z "$ac_c_werror_flag" ||
23860          test ! -s conftest.err
23861        } && test -s conftest.$ac_objext; then
23862   ac_cv_struct_boundary_void_p=$ac_size
23863 else
23864   echo "$as_me: failed program was:" >&5
23865 sed 's/^/| /' conftest.$ac_ext >&5
23866
23867
23868 fi
23869
23870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23871    if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23872   done
23873
23874 fi
23875
23876  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23877 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23878  if test x$ac_cv_struct_boundary_void_p = x ; then
23879    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23880 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23881    { (exit 1); exit 1; }; }
23882  fi
23883
23884 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23885 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23886     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23887   echo $ECHO_N "(cached) $ECHO_C" >&6
23888 else
23889   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23890    cat >conftest.$ac_ext <<_ACEOF
23891 /* confdefs.h.  */
23892 _ACEOF
23893 cat confdefs.h >>conftest.$ac_ext
23894 cat >>conftest.$ac_ext <<_ACEOF
23895 /* end confdefs.h.  */
23896 #include "confdefs.h"
23897    #include <sys/types.h>
23898
23899
23900 int
23901 main ()
23902 {
23903 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23904   ;
23905   return 0;
23906 }
23907 _ACEOF
23908 rm -f conftest.$ac_objext
23909 if { (ac_try="$ac_compile"
23910 case "(($ac_try" in
23911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23912   *) ac_try_echo=$ac_try;;
23913 esac
23914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23915   (eval "$ac_compile") 2>conftest.er1
23916   ac_status=$?
23917   grep -v '^ *+' conftest.er1 >conftest.err
23918   rm -f conftest.er1
23919   cat conftest.err >&5
23920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921   (exit $ac_status); } && {
23922          test -z "$ac_c_werror_flag" ||
23923          test ! -s conftest.err
23924        } && test -s conftest.$ac_objext; then
23925   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23926 else
23927   echo "$as_me: failed program was:" >&5
23928 sed 's/^/| /' conftest.$ac_ext >&5
23929
23930
23931 fi
23932
23933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23934    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23935   done
23936
23937 fi
23938
23939
23940 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23941   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23942 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23943    { (exit 1); exit 1; }; }
23944 fi
23945 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23946 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23947
23948
23949
23950 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23951 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23952 if test x$endian = x1 ; then
23953   trace_endian=B
23954 else
23955   trace_endian=l
23956 fi
23957 gras_arch=unknown
23958 trace="$trace_endian"
23959
23960 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23961
23962 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23963 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23964 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23965 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23966
23967 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23968 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23969
23970 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23971
23972 # sizeof float/double are not tested since IEEE 754 is assumed.
23973 # Check README.IEEE for rational.
23974
23975 # The numbers after the _ in the arch name are the maximal packing boundary.
23976 # big32_2   means that all data are aligned on a 2 bytes boundary.              (ARM)
23977 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23978 case $trace in
23979   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_arch_name=little32_1;;
23980   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_arch_name=little32_2;;
23981   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_arch_name=little32_4;;
23982   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_arch_name=little32_8;;
23983
23984   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_arch_name=little64;;
23985
23986   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_arch_name=big32;;
23987   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_arch_name=big32_8_4;;
23988   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_arch_name=big32_4;;
23989   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_arch_name=big32_2;;
23990
23991   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_arch_name=big64;;
23992   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_arch_name=big64_8_4;;
23993 esac
23994 if test x$gras_arch = xunknown ; then
23995   { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
23996 echo "${ECHO_T}damnit ($trace)" >&6; }
23997   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
23998 Please report this architecture trace ($trace) and what it corresponds to." >&5
23999 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
24000 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
24001    { (exit 1); exit 1; }; }
24002 fi
24003 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
24004
24005 cat >>confdefs.h <<_ACEOF
24006 #define GRAS_THISARCH $gras_arch
24007 _ACEOF
24008
24009 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
24010 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
24011
24012 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
24013 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
24014 ac_cv_sizeof_max=0
24015 for s in $ac_cv_sizeof_char \
24016          $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
24017          $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
24018          4 8; do
24019
24020   if test $ac_cv_sizeof_max -lt $s ; then
24021     ac_cv_sizeof_max=$s
24022   fi
24023 done
24024 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
24025 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
24026
24027 cat >>confdefs.h <<_ACEOF
24028 #define SIZEOF_MAX $ac_cv_sizeof_max
24029 _ACEOF
24030
24031
24032
24033 # Check architecture signature end
24034   { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
24035 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
24036    cat >conftest.$ac_ext <<_ACEOF
24037 /* confdefs.h.  */
24038 _ACEOF
24039 cat confdefs.h >>conftest.$ac_ext
24040 cat >>conftest.$ac_ext <<_ACEOF
24041 /* end confdefs.h.  */
24042 #include "confdefs.h"
24043         #include <sys/types.h>
24044         #include <stddef.h> /* offsetof() */
24045         struct s {char c; double d;};
24046
24047 int
24048 main ()
24049 {
24050 switch (0)
24051         case 0:
24052         case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24053
24054   ;
24055   return 0;
24056 }
24057 _ACEOF
24058 rm -f conftest.$ac_objext
24059 if { (ac_try="$ac_compile"
24060 case "(($ac_try" in
24061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24062   *) ac_try_echo=$ac_try;;
24063 esac
24064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24065   (eval "$ac_compile") 2>conftest.er1
24066   ac_status=$?
24067   grep -v '^ *+' conftest.er1 >conftest.err
24068   rm -f conftest.er1
24069   cat conftest.err >&5
24070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071   (exit $ac_status); } && {
24072          test -z "$ac_c_werror_flag" ||
24073          test ! -s conftest.err
24074        } && test -s conftest.$ac_objext; then
24075   gras_struct_packed=yes
24076 else
24077   echo "$as_me: failed program was:" >&5
24078 sed 's/^/| /' conftest.$ac_ext >&5
24079
24080         gras_struct_packed=no
24081 fi
24082
24083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24084
24085    { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24086 echo "${ECHO_T}$gras_struct_packed" >&6; }
24087    if test x$gras_struct_packed = "xyes" ; then
24088      { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24089 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24090    { (exit 1); exit 1; }; }
24091    fi
24092
24093    { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24094 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24095    cat >conftest.$ac_ext <<_ACEOF
24096 /* confdefs.h.  */
24097 _ACEOF
24098 cat confdefs.h >>conftest.$ac_ext
24099 cat >>conftest.$ac_ext <<_ACEOF
24100 /* end confdefs.h.  */
24101 #include "confdefs.h"
24102         #include <sys/types.h>
24103         #include <stddef.h> /* offsetof() */
24104         struct s {double d; int i; char c;};
24105
24106 int
24107 main ()
24108 {
24109 switch (0)
24110         case 0:
24111         case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24112
24113   ;
24114   return 0;
24115 }
24116 _ACEOF
24117 rm -f conftest.$ac_objext
24118 if { (ac_try="$ac_compile"
24119 case "(($ac_try" in
24120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24121   *) ac_try_echo=$ac_try;;
24122 esac
24123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24124   (eval "$ac_compile") 2>conftest.er1
24125   ac_status=$?
24126   grep -v '^ *+' conftest.er1 >conftest.err
24127   rm -f conftest.er1
24128   cat conftest.err >&5
24129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130   (exit $ac_status); } && {
24131          test -z "$ac_c_werror_flag" ||
24132          test ! -s conftest.err
24133        } && test -s conftest.$ac_objext; then
24134   gras_struct_compact=yes
24135 else
24136   echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24138
24139         gras_struct_compact=no
24140 fi
24141
24142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24143
24144    { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24145 echo "${ECHO_T}$gras_struct_compact" >&6; }
24146
24147    if test x$gras_struct_compact != xyes ; then
24148      { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24149 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24150    { (exit 1); exit 1; }; }
24151    fi
24152
24153 cat >>confdefs.h <<_ACEOF
24154 #define GRAS_STRUCT_COMPACT 1
24155 _ACEOF
24156
24157    { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24158 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24159
24160    cat >conftest.$ac_ext <<_ACEOF
24161 /* confdefs.h.  */
24162 _ACEOF
24163 cat confdefs.h >>conftest.$ac_ext
24164 cat >>conftest.$ac_ext <<_ACEOF
24165 /* end confdefs.h.  */
24166 #include "confdefs.h"
24167       #include <sys/types.h>
24168         #include <stddef.h> /* offsetof() */
24169         struct s { double d; int i; char c[6]; };
24170
24171 int
24172 main ()
24173 {
24174 switch (0)
24175       case 0:
24176       case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24177
24178   ;
24179   return 0;
24180 }
24181 _ACEOF
24182 rm -f conftest.$ac_objext
24183 if { (ac_try="$ac_compile"
24184 case "(($ac_try" in
24185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24186   *) ac_try_echo=$ac_try;;
24187 esac
24188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24189   (eval "$ac_compile") 2>conftest.er1
24190   ac_status=$?
24191   grep -v '^ *+' conftest.er1 >conftest.err
24192   rm -f conftest.er1
24193   cat conftest.err >&5
24194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195   (exit $ac_status); } && {
24196          test -z "$ac_c_werror_flag" ||
24197          test ! -s conftest.err
24198        } && test -s conftest.$ac_objext; then
24199   gras_array_straddle_struct=yes
24200 else
24201   echo "$as_me: failed program was:" >&5
24202 sed 's/^/| /' conftest.$ac_ext >&5
24203
24204         gras_array_straddle_struct=no
24205 fi
24206
24207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24208
24209    { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24210 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24211
24212    if test x$gras_array_straddle_struct = xyes ; then
24213
24214 cat >>confdefs.h <<_ACEOF
24215 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24216 _ACEOF
24217
24218    else
24219      { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24220 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24221    { (exit 1); exit 1; }; }
24222    fi
24223
24224
24225
24226
24227
24228   { echo "$as_me:$LINENO: result: " >&5
24229 echo "${ECHO_T}" >&6; }
24230   { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24231 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24232
24233
24234
24235
24236 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24237 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24238 if test "${ac_cv_check_mcsc+set}" = set; then
24239   echo $ECHO_N "(cached) $ECHO_C" >&6
24240 else
24241
24242 if test "$cross_compiling" = yes; then
24243   ac_cv_check_mcsc=no
24244
24245 else
24246   cat >conftest.$ac_ext <<_ACEOF
24247 /* confdefs.h.  */
24248 _ACEOF
24249 cat confdefs.h >>conftest.$ac_ext
24250 cat >>conftest.$ac_ext <<_ACEOF
24251 /* end confdefs.h.  */
24252
24253
24254 #include <stdio.h>
24255 #include <stdlib.h>
24256 #include <ucontext.h>
24257
24258 ucontext_t uc_child;
24259 ucontext_t uc_main;
24260
24261 void child(void *arg)
24262 {
24263     if (arg != (void *)2147483648)
24264         exit(1);
24265     if (swapcontext(&uc_child, &uc_main) != 0)
24266         exit(2);
24267 }
24268
24269 int main(int argc, char *argv[])
24270 {
24271     FILE *fp;
24272     void *stack;
24273
24274     /* the default is that it fails */
24275     if ((fp = fopen("conftestval", "w")) == NULL)
24276         exit(3);
24277     fprintf(fp, "no\n");
24278     fclose(fp);
24279
24280     /* configure a child user-space context */
24281     if ((stack = malloc(64*1024)) == NULL)
24282         exit(4);
24283     if (getcontext(&uc_child) != 0)
24284         exit(5);
24285     uc_child.uc_link = NULL;
24286     uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24287     uc_child.uc_stack.ss_size = 32*1024;
24288     uc_child.uc_stack.ss_flags = 0;
24289     makecontext(&uc_child, child, 2, (void *)2147483648);
24290
24291     /* switch into the user context */
24292     if (swapcontext(&uc_main, &uc_child) != 0)
24293         exit(6);
24294
24295     /* Fine, child came home */
24296     if ((fp = fopen("conftestval", "w")) == NULL)
24297         exit(7);
24298     fprintf(fp, "yes\n");
24299     fclose(fp);
24300
24301     /* die successfully */
24302     exit(0);
24303 }
24304
24305 _ACEOF
24306 rm -f conftest$ac_exeext
24307 if { (ac_try="$ac_link"
24308 case "(($ac_try" in
24309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24310   *) ac_try_echo=$ac_try;;
24311 esac
24312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24313   (eval "$ac_link") 2>&5
24314   ac_status=$?
24315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24317   { (case "(($ac_try" in
24318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24319   *) ac_try_echo=$ac_try;;
24320 esac
24321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24322   (eval "$ac_try") 2>&5
24323   ac_status=$?
24324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325   (exit $ac_status); }; }; then
24326   ac_cv_check_mcsc=`cat conftestval`
24327 else
24328   echo "$as_me: program exited with status $ac_status" >&5
24329 echo "$as_me: failed program was:" >&5
24330 sed 's/^/| /' conftest.$ac_ext >&5
24331
24332 ( exit $ac_status )
24333 ac_cv_check_mcsc=no
24334 fi
24335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24336 fi
24337
24338
24339 fi
24340 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24341 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24342 if test ".$ac_cv_check_mcsc" = .yes; then
24343     mcsc=yes
24344 else
24345     mcsc=no
24346 fi
24347
24348
24349
24350 for ac_header in pthread.h
24351 do
24352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24354   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24357   echo $ECHO_N "(cached) $ECHO_C" >&6
24358 fi
24359 ac_res=`eval echo '${'$as_ac_Header'}'`
24360                { echo "$as_me:$LINENO: result: $ac_res" >&5
24361 echo "${ECHO_T}$ac_res" >&6; }
24362 else
24363   # Is the header compilable?
24364 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24366 cat >conftest.$ac_ext <<_ACEOF
24367 /* confdefs.h.  */
24368 _ACEOF
24369 cat confdefs.h >>conftest.$ac_ext
24370 cat >>conftest.$ac_ext <<_ACEOF
24371 /* end confdefs.h.  */
24372 $ac_includes_default
24373 #include <$ac_header>
24374 _ACEOF
24375 rm -f conftest.$ac_objext
24376 if { (ac_try="$ac_compile"
24377 case "(($ac_try" in
24378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24379   *) ac_try_echo=$ac_try;;
24380 esac
24381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24382   (eval "$ac_compile") 2>conftest.er1
24383   ac_status=$?
24384   grep -v '^ *+' conftest.er1 >conftest.err
24385   rm -f conftest.er1
24386   cat conftest.err >&5
24387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388   (exit $ac_status); } && {
24389          test -z "$ac_c_werror_flag" ||
24390          test ! -s conftest.err
24391        } && test -s conftest.$ac_objext; then
24392   ac_header_compiler=yes
24393 else
24394   echo "$as_me: failed program was:" >&5
24395 sed 's/^/| /' conftest.$ac_ext >&5
24396
24397         ac_header_compiler=no
24398 fi
24399
24400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24402 echo "${ECHO_T}$ac_header_compiler" >&6; }
24403
24404 # Is the header present?
24405 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24407 cat >conftest.$ac_ext <<_ACEOF
24408 /* confdefs.h.  */
24409 _ACEOF
24410 cat confdefs.h >>conftest.$ac_ext
24411 cat >>conftest.$ac_ext <<_ACEOF
24412 /* end confdefs.h.  */
24413 #include <$ac_header>
24414 _ACEOF
24415 if { (ac_try="$ac_cpp conftest.$ac_ext"
24416 case "(($ac_try" in
24417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24418   *) ac_try_echo=$ac_try;;
24419 esac
24420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24421   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24422   ac_status=$?
24423   grep -v '^ *+' conftest.er1 >conftest.err
24424   rm -f conftest.er1
24425   cat conftest.err >&5
24426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427   (exit $ac_status); } >/dev/null && {
24428          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24429          test ! -s conftest.err
24430        }; then
24431   ac_header_preproc=yes
24432 else
24433   echo "$as_me: failed program was:" >&5
24434 sed 's/^/| /' conftest.$ac_ext >&5
24435
24436   ac_header_preproc=no
24437 fi
24438
24439 rm -f conftest.err conftest.$ac_ext
24440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24441 echo "${ECHO_T}$ac_header_preproc" >&6; }
24442
24443 # So?  What about this header?
24444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24445   yes:no: )
24446     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24450     ac_header_preproc=yes
24451     ;;
24452   no:yes:* )
24453     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24455     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24456 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24457     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24459     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24460 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24463     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24465     ( cat <<\_ASBOX
24466 ## -------------------------------------------------- ##
24467 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24468 ## -------------------------------------------------- ##
24469 _ASBOX
24470      ) | sed "s/^/$as_me: WARNING:     /" >&2
24471     ;;
24472 esac
24473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24476   echo $ECHO_N "(cached) $ECHO_C" >&6
24477 else
24478   eval "$as_ac_Header=\$ac_header_preproc"
24479 fi
24480 ac_res=`eval echo '${'$as_ac_Header'}'`
24481                { echo "$as_me:$LINENO: result: $ac_res" >&5
24482 echo "${ECHO_T}$ac_res" >&6; }
24483
24484 fi
24485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24486   cat >>confdefs.h <<_ACEOF
24487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24488 _ACEOF
24489
24490 fi
24491
24492 done
24493
24494 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24495 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24496 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24497   echo $ECHO_N "(cached) $ECHO_C" >&6
24498 else
24499   ac_check_lib_save_LIBS=$LIBS
24500 LIBS="-lpthread  $LIBS"
24501 cat >conftest.$ac_ext <<_ACEOF
24502 /* confdefs.h.  */
24503 _ACEOF
24504 cat confdefs.h >>conftest.$ac_ext
24505 cat >>conftest.$ac_ext <<_ACEOF
24506 /* end confdefs.h.  */
24507
24508 /* Override any GCC internal prototype to avoid an error.
24509    Use char because int might match the return type of a GCC
24510    builtin and then its argument prototype would still apply.  */
24511 #ifdef __cplusplus
24512 extern "C"
24513 #endif
24514 char pthread_create ();
24515 int
24516 main ()
24517 {
24518 return pthread_create ();
24519   ;
24520   return 0;
24521 }
24522 _ACEOF
24523 rm -f conftest.$ac_objext conftest$ac_exeext
24524 if { (ac_try="$ac_link"
24525 case "(($ac_try" in
24526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24527   *) ac_try_echo=$ac_try;;
24528 esac
24529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24530   (eval "$ac_link") 2>conftest.er1
24531   ac_status=$?
24532   grep -v '^ *+' conftest.er1 >conftest.err
24533   rm -f conftest.er1
24534   cat conftest.err >&5
24535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536   (exit $ac_status); } && {
24537          test -z "$ac_c_werror_flag" ||
24538          test ! -s conftest.err
24539        } && test -s conftest$ac_exeext &&
24540        $as_test_x conftest$ac_exeext; then
24541   ac_cv_lib_pthread_pthread_create=yes
24542 else
24543   echo "$as_me: failed program was:" >&5
24544 sed 's/^/| /' conftest.$ac_ext >&5
24545
24546         ac_cv_lib_pthread_pthread_create=no
24547 fi
24548
24549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24550       conftest$ac_exeext conftest.$ac_ext
24551 LIBS=$ac_check_lib_save_LIBS
24552 fi
24553 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24554 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24555 if test $ac_cv_lib_pthread_pthread_create = yes; then
24556   pthread=yes
24557 else
24558   pthread=no
24559 fi
24560
24561
24562
24563 if test ".$mcsc" = .yes; then
24564    mcsc=yes
24565 elif test ".$pthread" = .yes; then
24566    pthread=yes
24567 else
24568     ac_header=windows.h
24569     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24570     if test `eval echo '${'$as_ac_Header'}'` = yes; then
24571       windows_context=yes
24572     else
24573       { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24574 echo "$as_me: error: no appropriate backend found" >&2;}
24575    { (exit 1); exit 1; }; }
24576     fi
24577 fi
24578
24579
24580 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24581 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24582
24583
24584 # Check whether --with-pthread was given.
24585 if test "${with_pthread+set}" = set; then
24586   withval=$with_pthread; with_context=pthread
24587 fi
24588
24589
24590
24591 # Check whether --with-context was given.
24592 if test "${with_context+set}" = set; then
24593   withval=$with_context;
24594 else
24595   with_context=auto
24596 fi
24597
24598
24599 if test "x$with_context$mcsc" = "xucontextno" ; then
24600   { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24601 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24602    { (exit 77); exit 77; }; }
24603 fi
24604
24605 case $with_context in
24606  ucontext) ;;
24607  pthread) ;;
24608  windows) ;;
24609  auto) with_context=ucontext;;
24610  *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24611 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24612    { (exit 1); exit 1; }; } ;;
24613 esac
24614
24615 if test "x$with_context" = "xucontext" ; then
24616   if test ".$mcsc" = .yes; then
24617     { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24618 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24619
24620 cat >>confdefs.h <<\_ACEOF
24621 #define USE_UCONTEXT 1
24622 _ACEOF
24623
24624   else
24625     if test ".$windows_context" = .yes ; then
24626       { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24627 echo "${ECHO_T}use windows context portability layer." >&6; }
24628       with_context=windows
24629     else
24630       { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24631 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24632       with_context=pthread
24633     fi
24634   fi
24635 fi
24636
24637 if test "x$with_context" = "xpthread"; then
24638
24639 for ac_header in pthread.h
24640 do
24641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24643   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24646   echo $ECHO_N "(cached) $ECHO_C" >&6
24647 fi
24648 ac_res=`eval echo '${'$as_ac_Header'}'`
24649                { echo "$as_me:$LINENO: result: $ac_res" >&5
24650 echo "${ECHO_T}$ac_res" >&6; }
24651 else
24652   # Is the header compilable?
24653 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24655 cat >conftest.$ac_ext <<_ACEOF
24656 /* confdefs.h.  */
24657 _ACEOF
24658 cat confdefs.h >>conftest.$ac_ext
24659 cat >>conftest.$ac_ext <<_ACEOF
24660 /* end confdefs.h.  */
24661 $ac_includes_default
24662 #include <$ac_header>
24663 _ACEOF
24664 rm -f conftest.$ac_objext
24665 if { (ac_try="$ac_compile"
24666 case "(($ac_try" in
24667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24668   *) ac_try_echo=$ac_try;;
24669 esac
24670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24671   (eval "$ac_compile") 2>conftest.er1
24672   ac_status=$?
24673   grep -v '^ *+' conftest.er1 >conftest.err
24674   rm -f conftest.er1
24675   cat conftest.err >&5
24676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677   (exit $ac_status); } && {
24678          test -z "$ac_c_werror_flag" ||
24679          test ! -s conftest.err
24680        } && test -s conftest.$ac_objext; then
24681   ac_header_compiler=yes
24682 else
24683   echo "$as_me: failed program was:" >&5
24684 sed 's/^/| /' conftest.$ac_ext >&5
24685
24686         ac_header_compiler=no
24687 fi
24688
24689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24690 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24691 echo "${ECHO_T}$ac_header_compiler" >&6; }
24692
24693 # Is the header present?
24694 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24695 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24696 cat >conftest.$ac_ext <<_ACEOF
24697 /* confdefs.h.  */
24698 _ACEOF
24699 cat confdefs.h >>conftest.$ac_ext
24700 cat >>conftest.$ac_ext <<_ACEOF
24701 /* end confdefs.h.  */
24702 #include <$ac_header>
24703 _ACEOF
24704 if { (ac_try="$ac_cpp conftest.$ac_ext"
24705 case "(($ac_try" in
24706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24707   *) ac_try_echo=$ac_try;;
24708 esac
24709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24710   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24711   ac_status=$?
24712   grep -v '^ *+' conftest.er1 >conftest.err
24713   rm -f conftest.er1
24714   cat conftest.err >&5
24715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716   (exit $ac_status); } >/dev/null && {
24717          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24718          test ! -s conftest.err
24719        }; then
24720   ac_header_preproc=yes
24721 else
24722   echo "$as_me: failed program was:" >&5
24723 sed 's/^/| /' conftest.$ac_ext >&5
24724
24725   ac_header_preproc=no
24726 fi
24727
24728 rm -f conftest.err conftest.$ac_ext
24729 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24730 echo "${ECHO_T}$ac_header_preproc" >&6; }
24731
24732 # So?  What about this header?
24733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24734   yes:no: )
24735     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24737     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24738 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24739     ac_header_preproc=yes
24740     ;;
24741   no:yes:* )
24742     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24743 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24744     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24745 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24746     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24747 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24748     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24749 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24750     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24752     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24753 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24754     ( cat <<\_ASBOX
24755 ## -------------------------------------------------- ##
24756 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24757 ## -------------------------------------------------- ##
24758 _ASBOX
24759      ) | sed "s/^/$as_me: WARNING:     /" >&2
24760     ;;
24761 esac
24762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24765   echo $ECHO_N "(cached) $ECHO_C" >&6
24766 else
24767   eval "$as_ac_Header=\$ac_header_preproc"
24768 fi
24769 ac_res=`eval echo '${'$as_ac_Header'}'`
24770                { echo "$as_me:$LINENO: result: $ac_res" >&5
24771 echo "${ECHO_T}$ac_res" >&6; }
24772
24773 fi
24774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24775   cat >>confdefs.h <<_ACEOF
24776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24777 _ACEOF
24778
24779 fi
24780
24781 done
24782
24783
24784 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24785 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24786 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24787   echo $ECHO_N "(cached) $ECHO_C" >&6
24788 else
24789   ac_check_lib_save_LIBS=$LIBS
24790 LIBS="-lpthread  $LIBS"
24791 cat >conftest.$ac_ext <<_ACEOF
24792 /* confdefs.h.  */
24793 _ACEOF
24794 cat confdefs.h >>conftest.$ac_ext
24795 cat >>conftest.$ac_ext <<_ACEOF
24796 /* end confdefs.h.  */
24797
24798 /* Override any GCC internal prototype to avoid an error.
24799    Use char because int might match the return type of a GCC
24800    builtin and then its argument prototype would still apply.  */
24801 #ifdef __cplusplus
24802 extern "C"
24803 #endif
24804 char pthread_create ();
24805 int
24806 main ()
24807 {
24808 return pthread_create ();
24809   ;
24810   return 0;
24811 }
24812 _ACEOF
24813 rm -f conftest.$ac_objext conftest$ac_exeext
24814 if { (ac_try="$ac_link"
24815 case "(($ac_try" in
24816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24817   *) ac_try_echo=$ac_try;;
24818 esac
24819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24820   (eval "$ac_link") 2>conftest.er1
24821   ac_status=$?
24822   grep -v '^ *+' conftest.er1 >conftest.err
24823   rm -f conftest.er1
24824   cat conftest.err >&5
24825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826   (exit $ac_status); } && {
24827          test -z "$ac_c_werror_flag" ||
24828          test ! -s conftest.err
24829        } && test -s conftest$ac_exeext &&
24830        $as_test_x conftest$ac_exeext; then
24831   ac_cv_lib_pthread_pthread_create=yes
24832 else
24833   echo "$as_me: failed program was:" >&5
24834 sed 's/^/| /' conftest.$ac_ext >&5
24835
24836         ac_cv_lib_pthread_pthread_create=no
24837 fi
24838
24839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24840       conftest$ac_exeext conftest.$ac_ext
24841 LIBS=$ac_check_lib_save_LIBS
24842 fi
24843 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24844 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24845 if test $ac_cv_lib_pthread_pthread_create = yes; then
24846   cat >>confdefs.h <<_ACEOF
24847 #define HAVE_LIBPTHREAD 1
24848 _ACEOF
24849
24850   LIBS="-lpthread $LIBS"
24851
24852 else
24853   { { echo "$as_me:$LINENO: error: Cannot find pthreads, no way (try --with-context=ucontext if you haven't already tried)." >&5
24854 echo "$as_me: error: Cannot find pthreads, no way (try --with-context=ucontext if you haven't already tried)." >&2;}
24855    { (exit 1); exit 1; }; }
24856 fi
24857
24858
24859 cat >>confdefs.h <<\_ACEOF
24860 #define USE_PTHREADS 1
24861 _ACEOF
24862
24863   { echo "$as_me:$LINENO: result: You have pthreads. Let's use them." >&5
24864 echo "${ECHO_T}You have pthreads. Let's use them." >&6; }
24865 fi
24866
24867
24868 if test "x$with_context" = "xucontext" ; then
24869   { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24870 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
24871 if test "${ac_cv_check_stackgrowth+set}" = set; then
24872   echo $ECHO_N "(cached) $ECHO_C" >&6
24873 else
24874
24875 cross_compiling=no
24876 if test "$cross_compiling" = yes; then
24877   ac_cv_check_stackgrowth=down
24878
24879 else
24880   cat >conftest.$ac_ext <<_ACEOF
24881 /* confdefs.h.  */
24882 _ACEOF
24883 cat confdefs.h >>conftest.$ac_ext
24884 cat >>conftest.$ac_ext <<_ACEOF
24885 /* end confdefs.h.  */
24886
24887 #include <stdio.h>
24888 #include <stdlib.h>
24889 static int iterate = 10;
24890 static int growsdown(int *x)
24891 {
24892     auto int y;
24893     y = (x > &y);
24894     if (--iterate > 0)
24895         y = growsdown(&y);
24896     if (y != (x > &y))
24897         exit(1);
24898     return y;
24899 }
24900 int main(int argc, char *argv[])
24901 {
24902     FILE *f;
24903     auto int x;
24904     if ((f = fopen("conftestval", "w")) == NULL)
24905         exit(1);
24906     fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24907     fclose(f);
24908     exit(0);
24909 }
24910
24911
24912 _ACEOF
24913 rm -f conftest$ac_exeext
24914 if { (ac_try="$ac_link"
24915 case "(($ac_try" in
24916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24917   *) ac_try_echo=$ac_try;;
24918 esac
24919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24920   (eval "$ac_link") 2>&5
24921   ac_status=$?
24922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24923   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24924   { (case "(($ac_try" in
24925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24926   *) ac_try_echo=$ac_try;;
24927 esac
24928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24929   (eval "$ac_try") 2>&5
24930   ac_status=$?
24931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932   (exit $ac_status); }; }; then
24933   ac_cv_check_stackgrowth=`cat conftestval`
24934 else
24935   echo "$as_me: program exited with status $ac_status" >&5
24936 echo "$as_me: failed program was:" >&5
24937 sed 's/^/| /' conftest.$ac_ext >&5
24938
24939 ( exit $ac_status )
24940 ac_cv_check_stackgrowth=down
24941 fi
24942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24943 fi
24944
24945
24946 fi
24947 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24948 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
24949 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24950     val="-1"
24951 else
24952     val="+1"
24953 fi
24954
24955 cat >>confdefs.h <<_ACEOF
24956 #define PTH_STACKGROWTH $val
24957 _ACEOF
24958
24959
24960   if test ".$ac_cv_check_stackgrowth" = ".down"; then
24961       PTH_STACK_GROWTH="down"
24962   else
24963       PTH_STACK_GROWTH="up"
24964   fi
24965
24966
24967
24968
24969
24970
24971 for ac_func in makecontext
24972 do
24973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24974 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24976 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24977   echo $ECHO_N "(cached) $ECHO_C" >&6
24978 else
24979   cat >conftest.$ac_ext <<_ACEOF
24980 /* confdefs.h.  */
24981 _ACEOF
24982 cat confdefs.h >>conftest.$ac_ext
24983 cat >>conftest.$ac_ext <<_ACEOF
24984 /* end confdefs.h.  */
24985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24987 #define $ac_func innocuous_$ac_func
24988
24989 /* System header to define __stub macros and hopefully few prototypes,
24990     which can conflict with char $ac_func (); below.
24991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24992     <limits.h> exists even on freestanding compilers.  */
24993
24994 #ifdef __STDC__
24995 # include <limits.h>
24996 #else
24997 # include <assert.h>
24998 #endif
24999
25000 #undef $ac_func
25001
25002 /* Override any GCC internal prototype to avoid an error.
25003    Use char because int might match the return type of a GCC
25004    builtin and then its argument prototype would still apply.  */
25005 #ifdef __cplusplus
25006 extern "C"
25007 #endif
25008 char $ac_func ();
25009 /* The GNU C library defines this for functions which it implements
25010     to always fail with ENOSYS.  Some functions are actually named
25011     something starting with __ and the normal name is an alias.  */
25012 #if defined __stub_$ac_func || defined __stub___$ac_func
25013 choke me
25014 #endif
25015
25016 int
25017 main ()
25018 {
25019 return $ac_func ();
25020   ;
25021   return 0;
25022 }
25023 _ACEOF
25024 rm -f conftest.$ac_objext conftest$ac_exeext
25025 if { (ac_try="$ac_link"
25026 case "(($ac_try" in
25027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25028   *) ac_try_echo=$ac_try;;
25029 esac
25030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25031   (eval "$ac_link") 2>conftest.er1
25032   ac_status=$?
25033   grep -v '^ *+' conftest.er1 >conftest.err
25034   rm -f conftest.er1
25035   cat conftest.err >&5
25036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037   (exit $ac_status); } && {
25038          test -z "$ac_c_werror_flag" ||
25039          test ! -s conftest.err
25040        } && test -s conftest$ac_exeext &&
25041        $as_test_x conftest$ac_exeext; then
25042   eval "$as_ac_var=yes"
25043 else
25044   echo "$as_me: failed program was:" >&5
25045 sed 's/^/| /' conftest.$ac_ext >&5
25046
25047         eval "$as_ac_var=no"
25048 fi
25049
25050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25051       conftest$ac_exeext conftest.$ac_ext
25052 fi
25053 ac_res=`eval echo '${'$as_ac_var'}'`
25054                { echo "$as_me:$LINENO: result: $ac_res" >&5
25055 echo "${ECHO_T}$ac_res" >&6; }
25056 if test `eval echo '${'$as_ac_var'}'` = yes; then
25057   cat >>confdefs.h <<_ACEOF
25058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25059 _ACEOF
25060
25061 fi
25062 done
25063
25064
25065 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25066 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25067 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25068   echo $ECHO_N "(cached) $ECHO_C" >&6
25069 else
25070
25071 if test ".$ac_cv_func_makecontext" = .no; then
25072         ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25073 else
25074         OCFLAGS="$CFLAGS"
25075     CFLAGS="$CFLAGS -DTEST_makecontext"
25076     cross_compiling=no
25077         if test "$cross_compiling" = yes; then
25078
25079 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25080
25081 else
25082   cat >conftest.$ac_ext <<_ACEOF
25083 /* confdefs.h.  */
25084 _ACEOF
25085 cat confdefs.h >>conftest.$ac_ext
25086 cat >>conftest.$ac_ext <<_ACEOF
25087 /* end confdefs.h.  */
25088
25089 #include <stdio.h>
25090 #include <stdlib.h>
25091 #include <string.h>
25092 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25093 #include <sys/types.h>
25094 #include <signal.h>
25095 #include <unistd.h>
25096 #endif
25097 #if defined(TEST_makecontext)
25098 #include <ucontext.h>
25099 #endif
25100 union alltypes {
25101     long   l;
25102     double d;
25103     void  *vp;
25104     void (*fp)(void);
25105     char  *cp;
25106 };
25107 static volatile char *handler_addr = (char *)0xDEAD;
25108 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25109 static volatile int handler_done = 0;
25110 void handler(int sig)
25111 {
25112     char garbage[1024];
25113     int i;
25114     auto int dummy;
25115     for (i = 0; i < 1024; i++)
25116         garbage[i] = 'X';
25117     handler_addr = (char *)&dummy;
25118     handler_done = 1;
25119     return;
25120 }
25121 #endif
25122 #if defined(TEST_makecontext)
25123 static ucontext_t uc_handler;
25124 static ucontext_t uc_main;
25125 void handler(void)
25126 {
25127     char garbage[1024];
25128     int i;
25129     auto int dummy;
25130     for (i = 0; i < 1024; i++)
25131         garbage[i] = 'X';
25132     handler_addr = (char *)&dummy;
25133     swapcontext(&uc_handler, &uc_main);
25134     return;
25135 }
25136 #endif
25137 int main(int argc, char *argv[])
25138 {
25139     FILE *f;
25140     char *skaddr;
25141     char *skbuf;
25142     int sksize;
25143     char result[1024];
25144     int i;
25145     sksize = 32768;
25146     skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25147     if (skbuf == NULL)
25148         exit(1);
25149     for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25150         skbuf[i] = 'A';
25151     skaddr = skbuf+sizeof(union alltypes);
25152 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25153     {
25154         struct sigaction sa;
25155 #if defined(TEST_sigstack)
25156         struct sigstack ss;
25157 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25158         stack_t ss;
25159 #else
25160         struct sigaltstack ss;
25161 #endif
25162 #if defined(TEST_sigstack)
25163         ss.ss_sp      = (void *)(skaddr + sksize);
25164         ss.ss_onstack = 0;
25165         if (sigstack(&ss, NULL) < 0)
25166             exit(1);
25167 #elif defined(TEST_sigaltstack)
25168         ss.ss_sp    = (void *)(skaddr + sksize);
25169         ss.ss_size  = sksize;
25170         ss.ss_flags = 0;
25171         if (sigaltstack(&ss, NULL) < 0)
25172             exit(1);
25173 #endif
25174         memset((void *)&sa, 0, sizeof(struct sigaction));
25175         sa.sa_handler = handler;
25176         sa.sa_flags = SA_ONSTACK;
25177         sigemptyset(&sa.sa_mask);
25178         sigaction(SIGUSR1, &sa, NULL);
25179         kill(getpid(), SIGUSR1);
25180         while (!handler_done)
25181             /*nop*/;
25182     }
25183 #endif
25184 #if defined(TEST_makecontext)
25185     {
25186         if (getcontext(&uc_handler) != 0)
25187             exit(1);
25188         uc_handler.uc_link = NULL;
25189         uc_handler.uc_stack.ss_sp    = (void *)(skaddr + sksize);
25190         uc_handler.uc_stack.ss_size  = sksize;
25191         uc_handler.uc_stack.ss_flags = 0;
25192         makecontext(&uc_handler, handler, 1);
25193         swapcontext(&uc_main, &uc_handler);
25194     }
25195 #endif
25196     if (handler_addr == (char *)0xDEAD)
25197         exit(1);
25198     if (handler_addr < skaddr+sksize) {
25199         /* stack was placed into lower area */
25200         if (*(skaddr+sksize) != 'A')
25201              sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25202                      sizeof(union alltypes), sizeof(union alltypes));
25203         else
25204              strcpy(result, "(skaddr)+(sksize),(sksize)");
25205     }
25206     else {
25207         /* stack was placed into higher area */
25208         if (*(skaddr+sksize*2) != 'A')
25209             sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
25210         else
25211             strcpy(result, "(skaddr),(sksize)");
25212     }
25213     if ((f = fopen("conftestval", "w")) == NULL)
25214         exit(1);
25215     fprintf(f, "%s\n", result);
25216     fclose(f);
25217     exit(0);
25218 }
25219
25220 _ACEOF
25221 rm -f conftest$ac_exeext
25222 if { (ac_try="$ac_link"
25223 case "(($ac_try" in
25224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25225   *) ac_try_echo=$ac_try;;
25226 esac
25227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25228   (eval "$ac_link") 2>&5
25229   ac_status=$?
25230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25232   { (case "(($ac_try" in
25233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25234   *) ac_try_echo=$ac_try;;
25235 esac
25236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25237   (eval "$ac_try") 2>&5
25238   ac_status=$?
25239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240   (exit $ac_status); }; }; then
25241
25242 ac_cv_stacksetup_makecontext=`cat conftestval`
25243 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25244
25245 else
25246   echo "$as_me: program exited with status $ac_status" >&5
25247 echo "$as_me: failed program was:" >&5
25248 sed 's/^/| /' conftest.$ac_ext >&5
25249
25250 ( exit $ac_status )
25251
25252 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25253
25254 fi
25255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25256 fi
25257
25258
25259 CFLAGS="$OCFLAGS"
25260
25261 fi
25262 fi
25263 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25264 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25265 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25266 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25267 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25268 { echo "$as_me:$LINENO: result: $type" >&5
25269 echo "${ECHO_T}$type" >&6; }
25270 if test ".$verbose" = .yes; then
25271     { echo "$as_me:$LINENO: result:   $pth_skaddr_makecontext" >&5
25272 echo "${ECHO_T}  $pth_skaddr_makecontext" >&6; }
25273 fi
25274
25275 if test ".$verbose" = .yes; then
25276     { echo "$as_me:$LINENO: result:   $pth_sksize_makecontext" >&5
25277 echo "${ECHO_T}  $pth_sksize_makecontext" >&6; }
25278 fi
25279
25280
25281 fi
25282
25283 #########################################
25284 ## Check for libraries extra-dependencies
25285 ##
25286
25287
25288   { echo "$as_me:$LINENO: result: " >&5
25289 echo "${ECHO_T}" >&6; }
25290   { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25291 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25292
25293 SIMGRID_DEP=""
25294
25295
25296 GRAS_DEP=""
25297 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25298 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25299 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25300   echo $ECHO_N "(cached) $ECHO_C" >&6
25301 else
25302   ac_check_lib_save_LIBS=$LIBS
25303 LIBS="-lnsl  $LIBS"
25304 cat >conftest.$ac_ext <<_ACEOF
25305 /* confdefs.h.  */
25306 _ACEOF
25307 cat confdefs.h >>conftest.$ac_ext
25308 cat >>conftest.$ac_ext <<_ACEOF
25309 /* end confdefs.h.  */
25310
25311 /* Override any GCC internal prototype to avoid an error.
25312    Use char because int might match the return type of a GCC
25313    builtin and then its argument prototype would still apply.  */
25314 #ifdef __cplusplus
25315 extern "C"
25316 #endif
25317 char gethostbyname ();
25318 int
25319 main ()
25320 {
25321 return gethostbyname ();
25322   ;
25323   return 0;
25324 }
25325 _ACEOF
25326 rm -f conftest.$ac_objext conftest$ac_exeext
25327 if { (ac_try="$ac_link"
25328 case "(($ac_try" in
25329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25330   *) ac_try_echo=$ac_try;;
25331 esac
25332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25333   (eval "$ac_link") 2>conftest.er1
25334   ac_status=$?
25335   grep -v '^ *+' conftest.er1 >conftest.err
25336   rm -f conftest.er1
25337   cat conftest.err >&5
25338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339   (exit $ac_status); } && {
25340          test -z "$ac_c_werror_flag" ||
25341          test ! -s conftest.err
25342        } && test -s conftest$ac_exeext &&
25343        $as_test_x conftest$ac_exeext; then
25344   ac_cv_lib_nsl_gethostbyname=yes
25345 else
25346   echo "$as_me: failed program was:" >&5
25347 sed 's/^/| /' conftest.$ac_ext >&5
25348
25349         ac_cv_lib_nsl_gethostbyname=no
25350 fi
25351
25352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25353       conftest$ac_exeext conftest.$ac_ext
25354 LIBS=$ac_check_lib_save_LIBS
25355 fi
25356 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25357 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25358 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25359   GRAS_DEP="$GRAS_DEP -lnsl"
25360 fi
25361
25362 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25363 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25364 if test "${ac_cv_lib_socket_connect+set}" = set; then
25365   echo $ECHO_N "(cached) $ECHO_C" >&6
25366 else
25367   ac_check_lib_save_LIBS=$LIBS
25368 LIBS="-lsocket  $LIBS"
25369 cat >conftest.$ac_ext <<_ACEOF
25370 /* confdefs.h.  */
25371 _ACEOF
25372 cat confdefs.h >>conftest.$ac_ext
25373 cat >>conftest.$ac_ext <<_ACEOF
25374 /* end confdefs.h.  */
25375
25376 /* Override any GCC internal prototype to avoid an error.
25377    Use char because int might match the return type of a GCC
25378    builtin and then its argument prototype would still apply.  */
25379 #ifdef __cplusplus
25380 extern "C"
25381 #endif
25382 char connect ();
25383 int
25384 main ()
25385 {
25386 return connect ();
25387   ;
25388   return 0;
25389 }
25390 _ACEOF
25391 rm -f conftest.$ac_objext conftest$ac_exeext
25392 if { (ac_try="$ac_link"
25393 case "(($ac_try" in
25394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25395   *) ac_try_echo=$ac_try;;
25396 esac
25397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25398   (eval "$ac_link") 2>conftest.er1
25399   ac_status=$?
25400   grep -v '^ *+' conftest.er1 >conftest.err
25401   rm -f conftest.er1
25402   cat conftest.err >&5
25403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404   (exit $ac_status); } && {
25405          test -z "$ac_c_werror_flag" ||
25406          test ! -s conftest.err
25407        } && test -s conftest$ac_exeext &&
25408        $as_test_x conftest$ac_exeext; then
25409   ac_cv_lib_socket_connect=yes
25410 else
25411   echo "$as_me: failed program was:" >&5
25412 sed 's/^/| /' conftest.$ac_ext >&5
25413
25414         ac_cv_lib_socket_connect=no
25415 fi
25416
25417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25418       conftest$ac_exeext conftest.$ac_ext
25419 LIBS=$ac_check_lib_save_LIBS
25420 fi
25421 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25422 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25423 if test $ac_cv_lib_socket_connect = yes; then
25424   GRAS_DEP="$GRAS_DEP -lsocket"
25425 fi
25426
25427
25428 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25429 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25430 case $host_os in
25431   *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32" ;;
25432 esac
25433
25434 if test "x$GRAS_DEP" = x; then
25435    { echo "$as_me:$LINENO: result: none" >&5
25436 echo "${ECHO_T}none" >&6; }
25437 else
25438    { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25439 echo "${ECHO_T}$GRAS_DEP" >&6; }
25440 fi
25441
25442
25443 ##############################################
25444 ## Enhance maintainer mode and SUBST variables
25445 ## (must be placed after any compilation tests since our overprotective flags
25446 ##  let some tests fail)
25447
25448 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25449 # Next line is modified by sed when building gramine source tree
25450 gramine_mode=no
25451 if test x$gramine_mode = xyes
25452 then
25453   USE_MAINTAINER_MODE=no
25454 fi
25455
25456
25457 if test x$gramine_mode != xno; then
25458   GRAMINE_MODE_TRUE=
25459   GRAMINE_MODE_FALSE='#'
25460 else
25461   GRAMINE_MODE_TRUE='#'
25462   GRAMINE_MODE_FALSE=
25463 fi
25464
25465
25466
25467 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25468 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
25469     # Check whether --enable-maintainer-mode was given.
25470 if test "${enable_maintainer_mode+set}" = set; then
25471   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25472 else
25473   USE_MAINTAINER_MODE=no
25474 fi
25475
25476   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25477 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
25478
25479
25480 if test $USE_MAINTAINER_MODE = yes; then
25481   MAINTAINER_MODE_TRUE=
25482   MAINTAINER_MODE_FALSE='#'
25483 else
25484   MAINTAINER_MODE_TRUE='#'
25485   MAINTAINER_MODE_FALSE=
25486 fi
25487
25488   MAINT=$MAINTAINER_MODE_TRUE
25489
25490
25491 if test x$USE_MAINTAINER_MODE = xyes
25492 then
25493    # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25494    enable_compile_warnings=yes
25495 fi
25496
25497   # Check whether --enable-compile-warnings was given.
25498 if test "${enable_compile_warnings+set}" = set; then
25499   enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
25500 else
25501   enable_compile_warnings=no
25502 fi
25503
25504
25505   # Check whether --enable-compile-optimizations was given.
25506 if test "${enable_compile_optimizations+set}" = set; then
25507   enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
25508 else
25509   enable_compile_optimizations=auto
25510 fi
25511
25512
25513   if test "x$cflags_set" != "xyes" ; then
25514     # if user didn't specify CFLAGS explicitely
25515
25516     # AC PROG CC tests whether -g is accepted.
25517     # Cool, but it also tries to set -O2. I don't want it with gcc
25518     saveCFLAGS="$CFLAGS"
25519     CFLAGS=
25520     case " $saveCFLAGS " in
25521     *-g*) CFLAGS="-g" ;;
25522     esac
25523     case " $saveCFLAGS " in
25524     *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
25525     esac
25526
25527     # damn AC PROG CC, why did you set -O??
25528     CFLAGS="-g"
25529   fi
25530
25531   if test "x$enable_compile_warnings" = "xyes" ; then
25532     { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25533 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
25534     warnCFLAGS=
25535     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25536       case " $CFLAGS " in
25537       *-Wall*) ;;
25538       *) warnCFLAGS="-Wall -Wunused" ;;
25539       esac
25540
25541       ## -W is not all that useful.  And it cannot be controlled
25542       ## with individual -Wno-xxx flags, unlike -Wall
25543
25544       ## -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25545       ## -Wshadow chokes on try{ try{} } constructs
25546       if test "x$enable_compile_warnings" = "xyes"; then
25547         warnCFLAGS=`echo $warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations \
25548         -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25549         -Wno-unused-function  \
25550         -Werror \
25551         | sed 's/ +/ /g'`
25552         # -Wno-unused-variable  -Wno-unused-label
25553       fi
25554     fi
25555     { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25556 echo "${ECHO_T}$warnCFLAGS" >&6; }
25557     # placed before since gcc remembers the last one on conflict
25558     CFLAGS="$warnCFLAGS $CFLAGS"
25559   fi
25560
25561   if test "x$enable_compile_optimizations" = "xyes" ||
25562      test "x$enable_compile_optimizations" = "xauto" ; then
25563     { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25564 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
25565     optCFLAGS=
25566     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25567         case " $CFLAGS " in
25568         *-O*) ;;
25569         *) optCFLAGS="$optCFLAGS -O3" ;;
25570         esac
25571         optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25572
25573         GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25574         GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25575         if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" != "x2" ; then
25576           # avoid gcc bug #12828, which is fixed in 3.4.0, but this version
25577           # isn't propagated enough to desserve an extra check
25578
25579           # Note that the flag didn't exist before gcc 3.0
25580           optCFLAGS="$optCFLAGS -fno-loop-optimize"
25581         fi
25582             fi
25583     { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25584 echo "${ECHO_T}$optCFLAGS" >&6; }
25585     # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25586     if test "x$cflags_set" != "xyes" ; then
25587       CFLAGS="$optCFLAGS $CFLAGS"
25588     fi
25589   fi
25590
25591   if test x$lt_cv_prog_gnu_ld = xyes ; then
25592     LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25593   else
25594     LD_DYNAMIC_FLAGS=
25595   fi
25596
25597
25598
25599
25600
25601
25602
25603
25604
25605
25606
25607
25608 #####################
25609 ## Check for programs
25610 ##
25611
25612
25613   { echo "$as_me:$LINENO: result: " >&5
25614 echo "${ECHO_T}" >&6; }
25615   { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
25616 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
25617
25618 # Extract the first word of "bash", so it can be a program name with args.
25619 set dummy bash; ac_word=$2
25620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25622 if test "${ac_cv_prog_BASH+set}" = set; then
25623   echo $ECHO_N "(cached) $ECHO_C" >&6
25624 else
25625   if test -n "$BASH"; then
25626   ac_cv_prog_BASH="$BASH" # Let the user override the test.
25627 else
25628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25629 for as_dir in $PATH
25630 do
25631   IFS=$as_save_IFS
25632   test -z "$as_dir" && as_dir=.
25633   for ac_exec_ext in '' $ac_executable_extensions; do
25634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25635     ac_cv_prog_BASH="`which bash`"
25636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25637     break 2
25638   fi
25639 done
25640 done
25641 IFS=$as_save_IFS
25642
25643   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
25644 fi
25645 fi
25646 BASH=$ac_cv_prog_BASH
25647 if test -n "$BASH"; then
25648   { echo "$as_me:$LINENO: result: $BASH" >&5
25649 echo "${ECHO_T}$BASH" >&6; }
25650 else
25651   { echo "$as_me:$LINENO: result: no" >&5
25652 echo "${ECHO_T}no" >&6; }
25653 fi
25654
25655
25656 WARNING="This file is generated, do not edit"
25657
25658
25659
25660 # Can we rebuild the parsers?
25661 # We really want flex and refuse other lex. So, the parser is portable and
25662 # does not induce extra lib dependency
25663 for ac_prog in flex lex
25664 do
25665   # Extract the first word of "$ac_prog", so it can be a program name with args.
25666 set dummy $ac_prog; ac_word=$2
25667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25669 if test "${ac_cv_prog_LEX+set}" = set; then
25670   echo $ECHO_N "(cached) $ECHO_C" >&6
25671 else
25672   if test -n "$LEX"; then
25673   ac_cv_prog_LEX="$LEX" # Let the user override the test.
25674 else
25675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25676 for as_dir in $PATH
25677 do
25678   IFS=$as_save_IFS
25679   test -z "$as_dir" && as_dir=.
25680   for ac_exec_ext in '' $ac_executable_extensions; do
25681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25682     ac_cv_prog_LEX="$ac_prog"
25683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25684     break 2
25685   fi
25686 done
25687 done
25688 IFS=$as_save_IFS
25689
25690 fi
25691 fi
25692 LEX=$ac_cv_prog_LEX
25693 if test -n "$LEX"; then
25694   { echo "$as_me:$LINENO: result: $LEX" >&5
25695 echo "${ECHO_T}$LEX" >&6; }
25696 else
25697   { echo "$as_me:$LINENO: result: no" >&5
25698 echo "${ECHO_T}no" >&6; }
25699 fi
25700
25701
25702   test -n "$LEX" && break
25703 done
25704 test -n "$LEX" || LEX=":"
25705
25706 if test "x$LEX" != "x:"; then
25707   cat >conftest.l <<_ACEOF
25708 %%
25709 a { ECHO; }
25710 b { REJECT; }
25711 c { yymore (); }
25712 d { yyless (1); }
25713 e { yyless (input () != 0); }
25714 f { unput (yytext[0]); }
25715 . { BEGIN INITIAL; }
25716 %%
25717 #ifdef YYTEXT_POINTER
25718 extern char *yytext;
25719 #endif
25720 int
25721 main (void)
25722 {
25723   return ! yylex () + ! yywrap ();
25724 }
25725 _ACEOF
25726 { (ac_try="$LEX conftest.l"
25727 case "(($ac_try" in
25728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25729   *) ac_try_echo=$ac_try;;
25730 esac
25731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25732   (eval "$LEX conftest.l") 2>&5
25733   ac_status=$?
25734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735   (exit $ac_status); }
25736 { echo "$as_me:$LINENO: checking lex output file root" >&5
25737 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
25738 if test "${ac_cv_prog_lex_root+set}" = set; then
25739   echo $ECHO_N "(cached) $ECHO_C" >&6
25740 else
25741
25742 if test -f lex.yy.c; then
25743   ac_cv_prog_lex_root=lex.yy
25744 elif test -f lexyy.c; then
25745   ac_cv_prog_lex_root=lexyy
25746 else
25747   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
25748 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
25749    { (exit 1); exit 1; }; }
25750 fi
25751 fi
25752 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
25753 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
25754 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
25755
25756 if test -z "${LEXLIB+set}"; then
25757   { echo "$as_me:$LINENO: checking lex library" >&5
25758 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
25759 if test "${ac_cv_lib_lex+set}" = set; then
25760   echo $ECHO_N "(cached) $ECHO_C" >&6
25761 else
25762
25763     ac_save_LIBS=$LIBS
25764     ac_cv_lib_lex='none needed'
25765     for ac_lib in '' -lfl -ll; do
25766       LIBS="$ac_lib $ac_save_LIBS"
25767       cat >conftest.$ac_ext <<_ACEOF
25768 `cat $LEX_OUTPUT_ROOT.c`
25769 _ACEOF
25770 rm -f conftest.$ac_objext conftest$ac_exeext
25771 if { (ac_try="$ac_link"
25772 case "(($ac_try" in
25773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25774   *) ac_try_echo=$ac_try;;
25775 esac
25776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25777   (eval "$ac_link") 2>conftest.er1
25778   ac_status=$?
25779   grep -v '^ *+' conftest.er1 >conftest.err
25780   rm -f conftest.er1
25781   cat conftest.err >&5
25782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783   (exit $ac_status); } && {
25784          test -z "$ac_c_werror_flag" ||
25785          test ! -s conftest.err
25786        } && test -s conftest$ac_exeext &&
25787        $as_test_x conftest$ac_exeext; then
25788   ac_cv_lib_lex=$ac_lib
25789 else
25790   echo "$as_me: failed program was:" >&5
25791 sed 's/^/| /' conftest.$ac_ext >&5
25792
25793
25794 fi
25795
25796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25797       conftest$ac_exeext conftest.$ac_ext
25798       test "$ac_cv_lib_lex" != 'none needed' && break
25799     done
25800     LIBS=$ac_save_LIBS
25801
25802 fi
25803 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
25804 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
25805   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
25806 fi
25807
25808
25809 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
25810 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
25811 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
25812   echo $ECHO_N "(cached) $ECHO_C" >&6
25813 else
25814   # POSIX says lex can declare yytext either as a pointer or an array; the
25815 # default is implementation-dependent.  Figure out which it is, since
25816 # not all implementations provide the %pointer and %array declarations.
25817 ac_cv_prog_lex_yytext_pointer=no
25818 ac_save_LIBS=$LIBS
25819 LIBS="$LEXLIB $ac_save_LIBS"
25820 cat >conftest.$ac_ext <<_ACEOF
25821 #define YYTEXT_POINTER 1
25822 `cat $LEX_OUTPUT_ROOT.c`
25823 _ACEOF
25824 rm -f conftest.$ac_objext conftest$ac_exeext
25825 if { (ac_try="$ac_link"
25826 case "(($ac_try" in
25827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25828   *) ac_try_echo=$ac_try;;
25829 esac
25830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25831   (eval "$ac_link") 2>conftest.er1
25832   ac_status=$?
25833   grep -v '^ *+' conftest.er1 >conftest.err
25834   rm -f conftest.er1
25835   cat conftest.err >&5
25836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837   (exit $ac_status); } && {
25838          test -z "$ac_c_werror_flag" ||
25839          test ! -s conftest.err
25840        } && test -s conftest$ac_exeext &&
25841        $as_test_x conftest$ac_exeext; then
25842   ac_cv_prog_lex_yytext_pointer=yes
25843 else
25844   echo "$as_me: failed program was:" >&5
25845 sed 's/^/| /' conftest.$ac_ext >&5
25846
25847
25848 fi
25849
25850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25851       conftest$ac_exeext conftest.$ac_ext
25852 LIBS=$ac_save_LIBS
25853
25854 fi
25855 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
25856 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
25857 if test $ac_cv_prog_lex_yytext_pointer = yes; then
25858
25859 cat >>confdefs.h <<\_ACEOF
25860 #define YYTEXT_POINTER 1
25861 _ACEOF
25862
25863 fi
25864 rm -f conftest.l $LEX_OUTPUT_ROOT.c
25865
25866 fi
25867
25868   if test "$LEX" != flex; then
25869     { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
25870 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
25871     LEX=${am_missing_run}flex
25872     LEXLIB=''
25873
25874   else
25875     if test "x2.5.30" != "x" ; then
25876                               FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
25877
25878       FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
25879       FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
25880       FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
25881
25882       WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
25883       WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
25884       WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
25885
25886       if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
25887          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED"  ||
25888          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
25889       then
25890         { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
25891 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
25892         LEX=${am_missing_run}flex
25893         LEXLIB=''
25894
25895       else
25896         { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
25897 echo "$as_me: Flex found. Parsers will get updated" >&6;}
25898       fi
25899     fi
25900   fi
25901
25902
25903 # Can we rebuild the xml-lexers from the XML specification?
25904 # if not, simply touch the flex source files (which are distributed in
25905 #  tarballs even if generated by flexml) and hope for the best.
25906 # Extract the first word of "flexml", so it can be a program name with args.
25907 set dummy flexml; ac_word=$2
25908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25910 if test "${ac_cv_prog_FLEXML+set}" = set; then
25911   echo $ECHO_N "(cached) $ECHO_C" >&6
25912 else
25913   if test -n "$FLEXML"; then
25914   ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
25915 else
25916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25917 for as_dir in $PATH
25918 do
25919   IFS=$as_save_IFS
25920   test -z "$as_dir" && as_dir=.
25921   for ac_exec_ext in '' $ac_executable_extensions; do
25922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25923     ac_cv_prog_FLEXML="`which flexml`"
25924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25925     break 2
25926   fi
25927 done
25928 done
25929 IFS=$as_save_IFS
25930
25931   test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
25932 fi
25933 fi
25934 FLEXML=$ac_cv_prog_FLEXML
25935 if test -n "$FLEXML"; then
25936   { echo "$as_me:$LINENO: result: $FLEXML" >&5
25937 echo "${ECHO_T}$FLEXML" >&6; }
25938 else
25939   { echo "$as_me:$LINENO: result: no" >&5
25940 echo "${ECHO_T}no" >&6; }
25941 fi
25942
25943
25944
25945
25946 if test x$FLEXML != xNOTFOUND; then
25947   HAVE_FLEXML_TRUE=
25948   HAVE_FLEXML_FALSE='#'
25949 else
25950   HAVE_FLEXML_TRUE='#'
25951   HAVE_FLEXML_FALSE=
25952 fi
25953
25954
25955 if test x$USE_MAINTAINER_MODE = xyes
25956 then
25957    # Check for doxygen when in maintainer mode since dist* targets fail
25958    # without it
25959    # Extract the first word of "doxygen", so it can be a program name with args.
25960 set dummy doxygen; ac_word=$2
25961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25963 if test "${ac_cv_path_DOXYGEN+set}" = set; then
25964   echo $ECHO_N "(cached) $ECHO_C" >&6
25965 else
25966   case $DOXYGEN in
25967   [\\/]* | ?:[\\/]*)
25968   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
25969   ;;
25970   *)
25971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25972 for as_dir in $PATH
25973 do
25974   IFS=$as_save_IFS
25975   test -z "$as_dir" && as_dir=.
25976   for ac_exec_ext in '' $ac_executable_extensions; do
25977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25978     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
25979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25980     break 2
25981   fi
25982 done
25983 done
25984 IFS=$as_save_IFS
25985
25986   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
25987   ;;
25988 esac
25989 fi
25990 DOXYGEN=$ac_cv_path_DOXYGEN
25991 if test -n "$DOXYGEN"; then
25992   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
25993 echo "${ECHO_T}$DOXYGEN" >&6; }
25994 else
25995   { echo "$as_me:$LINENO: result: no" >&5
25996 echo "${ECHO_T}no" >&6; }
25997 fi
25998
25999
26000    if test x$DOXYGEN = x ; then
26001      { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
26002 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
26003    { (exit 1); exit 1; }; }
26004    fi
26005 fi
26006
26007 # Can we extract really usable backtraces? (also need the popen function)
26008 # Extract the first word of "addr2line", so it can be a program name with args.
26009 set dummy addr2line; ac_word=$2
26010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26012 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
26013   echo $ECHO_N "(cached) $ECHO_C" >&6
26014 else
26015   case $ADDR2LINE in
26016   [\\/]* | ?:[\\/]*)
26017   ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
26018   ;;
26019   *)
26020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26021 for as_dir in $PATH
26022 do
26023   IFS=$as_save_IFS
26024   test -z "$as_dir" && as_dir=.
26025   for ac_exec_ext in '' $ac_executable_extensions; do
26026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26027     ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
26028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26029     break 2
26030   fi
26031 done
26032 done
26033 IFS=$as_save_IFS
26034
26035   ;;
26036 esac
26037 fi
26038 ADDR2LINE=$ac_cv_path_ADDR2LINE
26039 if test -n "$ADDR2LINE"; then
26040   { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
26041 echo "${ECHO_T}$ADDR2LINE" >&6; }
26042 else
26043   { echo "$as_me:$LINENO: result: no" >&5
26044 echo "${ECHO_T}no" >&6; }
26045 fi
26046
26047
26048 if test x$ADDR2LINE != x ; then
26049
26050 cat >>confdefs.h <<_ACEOF
26051 #define ADDR2LINE "$ADDR2LINE"
26052 _ACEOF
26053
26054 fi
26055
26056
26057 # Can we make status line about the compilation result?
26058 # Extract the first word of "md5sum", so it can be a program name with args.
26059 set dummy md5sum; ac_word=$2
26060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26062 if test "${ac_cv_prog_MD5SUM+set}" = set; then
26063   echo $ECHO_N "(cached) $ECHO_C" >&6
26064 else
26065   if test -n "$MD5SUM"; then
26066   ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
26067 else
26068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26069 for as_dir in $PATH
26070 do
26071   IFS=$as_save_IFS
26072   test -z "$as_dir" && as_dir=.
26073   for ac_exec_ext in '' $ac_executable_extensions; do
26074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26075     ac_cv_prog_MD5SUM="`which md5sum`"
26076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26077     break 2
26078   fi
26079 done
26080 done
26081 IFS=$as_save_IFS
26082
26083 fi
26084 fi
26085 MD5SUM=$ac_cv_prog_MD5SUM
26086 if test -n "$MD5SUM"; then
26087   { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26088 echo "${ECHO_T}$MD5SUM" >&6; }
26089 else
26090   { echo "$as_me:$LINENO: result: no" >&5
26091 echo "${ECHO_T}no" >&6; }
26092 fi
26093
26094
26095 if test x$MD5SUM != xno ; then
26096   build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26097                  xargs cat| $MD5SUM | sed 's/ .*$//'`
26098 else
26099   build_version="no_md5sum_binary"
26100 fi
26101 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26102
26103
26104 ###################
26105 ## Makes the output
26106 ##
26107
26108
26109 #
26110 #      examples/gras/chord/Makefile  examples/gras/chord/test_sg examples/gras/chord/test_rl
26111 #  src/amok/Makefile
26112
26113
26114   { echo "$as_me:$LINENO: result: " >&5
26115 echo "${ECHO_T}" >&6; }
26116   { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
26117 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
26118
26119
26120 # Core of the libraries
26121
26122 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
26123
26124
26125 # Tools being embeeded in gramine (stub generator)
26126 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile"
26127
26128
26129 # GRAMINE_CUT_BEGIN
26130
26131 # Tools NOT being embeeded in gramine
26132 ac_config_files="$ac_config_files tools/graspe-slave"
26133
26134
26135 # Testsuite
26136
26137 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
26138
26139
26140 # Documentation
26141 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
26142
26143
26144 # Examples
26145
26146 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/msg/run_msg_test examples/simdag/Makefile examples/simdag/test_simdag examples/gras/Makefile examples/gras/ping/Makefile examples/gras/ping/test_sg examples/gras/ping/test_rl examples/gras/rpc/Makefile examples/gras/rpc/test_sg examples/gras/rpc/test_rl examples/gras/timer/Makefile examples/gras/timer/test_sg examples/gras/timer/test_rl examples/gras/chrono/Makefile examples/gras/chrono/test_sg examples/gras/chrono/test_rl examples/gras/mutual_exclusion/simple_token/Makefile examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl examples/gras/mmrpc/Makefile examples/gras/mmrpc/test_sg examples/gras/mmrpc/test_rl examples/gras/pmm/Makefile examples/gras/pmm/test_sg examples/gras/pmm/test_rl examples/gras/all2all/Makefile examples/gras/all2all/test_sg examples/gras/all2all/test_rl examples/gras/p2p/Makefile examples/gras/p2p/chord/Makefile examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl examples/gras/p2p/can/Makefile examples/gras/p2p/can/test_sg examples/gras/p2p/can/test_rl 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"
26147
26148
26149 #     examples/gras/chord/test_sg  examples/gras/chord/test_rl   \
26150 #    examples/gras/pastry/test_sg
26151
26152
26153
26154 #    examples/gras/saturate/Makefile  examples/gras/saturate/test_sg
26155 #    examples/gras/alnem/Makefile     examples/gras/alnem/test_sg
26156
26157
26158 # GRAMINE_CUT_END
26159
26160 cat >confcache <<\_ACEOF
26161 # This file is a shell script that caches the results of configure
26162 # tests run on this system so they can be shared between configure
26163 # scripts and configure runs, see configure's option --config-cache.
26164 # It is not useful on other systems.  If it contains results you don't
26165 # want to keep, you may remove or edit it.
26166 #
26167 # config.status only pays attention to the cache file if you give it
26168 # the --recheck option to rerun configure.
26169 #
26170 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26171 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26172 # following values.
26173
26174 _ACEOF
26175
26176 # The following way of writing the cache mishandles newlines in values,
26177 # but we know of no workaround that is simple, portable, and efficient.
26178 # So, we kill variables containing newlines.
26179 # Ultrix sh set writes to stderr and can't be redirected directly,
26180 # and sets the high bit in the cache file unless we assign to the vars.
26181 (
26182   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26183     eval ac_val=\$$ac_var
26184     case $ac_val in #(
26185     *${as_nl}*)
26186       case $ac_var in #(
26187       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26188 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26189       esac
26190       case $ac_var in #(
26191       _ | IFS | as_nl) ;; #(
26192       *) $as_unset $ac_var ;;
26193       esac ;;
26194     esac
26195   done
26196
26197   (set) 2>&1 |
26198     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26199     *${as_nl}ac_space=\ *)
26200       # `set' does not quote correctly, so add quotes (double-quote
26201       # substitution turns \\\\ into \\, and sed turns \\ into \).
26202       sed -n \
26203         "s/'/'\\\\''/g;
26204           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26205       ;; #(
26206     *)
26207       # `set' quotes correctly as required by POSIX, so do not add quotes.
26208       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26209       ;;
26210     esac |
26211     sort
26212 ) |
26213   sed '
26214      /^ac_cv_env_/b end
26215      t clear
26216      :clear
26217      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26218      t end
26219      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26220      :end' >>confcache
26221 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26222   if test -w "$cache_file"; then
26223     test "x$cache_file" != "x/dev/null" &&
26224       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26225 echo "$as_me: updating cache $cache_file" >&6;}
26226     cat confcache >$cache_file
26227   else
26228     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26229 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26230   fi
26231 fi
26232 rm -f confcache
26233
26234 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26235 # Let make expand exec_prefix.
26236 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26237
26238 DEFS=-DHAVE_CONFIG_H
26239
26240 ac_libobjs=
26241 ac_ltlibobjs=
26242 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26243   # 1. Remove the extension, and $U if already installed.
26244   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26245   ac_i=`echo "$ac_i" | sed "$ac_script"`
26246   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26247   #    will be set to the directory where LIBOBJS objects are built.
26248   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26249   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26250 done
26251 LIBOBJS=$ac_libobjs
26252
26253 LTLIBOBJS=$ac_ltlibobjs
26254
26255
26256 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26257   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26258 Usually this means the macro was only invoked conditionally." >&5
26259 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26260 Usually this means the macro was only invoked conditionally." >&2;}
26261    { (exit 1); exit 1; }; }
26262 fi
26263 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26264   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26265 Usually this means the macro was only invoked conditionally." >&5
26266 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26267 Usually this means the macro was only invoked conditionally." >&2;}
26268    { (exit 1); exit 1; }; }
26269 fi
26270 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26271   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26272 Usually this means the macro was only invoked conditionally." >&5
26273 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26274 Usually this means the macro was only invoked conditionally." >&2;}
26275    { (exit 1); exit 1; }; }
26276 fi
26277 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26278   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26279 Usually this means the macro was only invoked conditionally." >&5
26280 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26281 Usually this means the macro was only invoked conditionally." >&2;}
26282    { (exit 1); exit 1; }; }
26283 fi
26284 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
26285   { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
26286 Usually this means the macro was only invoked conditionally." >&5
26287 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
26288 Usually this means the macro was only invoked conditionally." >&2;}
26289    { (exit 1); exit 1; }; }
26290 fi
26291 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26292   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26293 Usually this means the macro was only invoked conditionally." >&5
26294 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26295 Usually this means the macro was only invoked conditionally." >&2;}
26296    { (exit 1); exit 1; }; }
26297 fi
26298 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
26299   { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
26300 Usually this means the macro was only invoked conditionally." >&5
26301 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
26302 Usually this means the macro was only invoked conditionally." >&2;}
26303    { (exit 1); exit 1; }; }
26304 fi
26305
26306 : ${CONFIG_STATUS=./config.status}
26307 ac_clean_files_save=$ac_clean_files
26308 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26309 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26310 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26311 cat >$CONFIG_STATUS <<_ACEOF
26312 #! $SHELL
26313 # Generated by $as_me.
26314 # Run this file to recreate the current configuration.
26315 # Compiler output produced by configure, useful for debugging
26316 # configure, is in config.log if it exists.
26317
26318 debug=false
26319 ac_cs_recheck=false
26320 ac_cs_silent=false
26321 SHELL=\${CONFIG_SHELL-$SHELL}
26322 _ACEOF
26323
26324 cat >>$CONFIG_STATUS <<\_ACEOF
26325 ## --------------------- ##
26326 ## M4sh Initialization.  ##
26327 ## --------------------- ##
26328
26329 # Be more Bourne compatible
26330 DUALCASE=1; export DUALCASE # for MKS sh
26331 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26332   emulate sh
26333   NULLCMD=:
26334   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26335   # is contrary to our usage.  Disable this feature.
26336   alias -g '${1+"$@"}'='"$@"'
26337   setopt NO_GLOB_SUBST
26338 else
26339   case `(set -o) 2>/dev/null` in
26340   *posix*) set -o posix ;;
26341 esac
26342
26343 fi
26344
26345
26346
26347
26348 # PATH needs CR
26349 # Avoid depending upon Character Ranges.
26350 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26351 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26352 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26353 as_cr_digits='0123456789'
26354 as_cr_alnum=$as_cr_Letters$as_cr_digits
26355
26356 # The user is always right.
26357 if test "${PATH_SEPARATOR+set}" != set; then
26358   echo "#! /bin/sh" >conf$$.sh
26359   echo  "exit 0"   >>conf$$.sh
26360   chmod +x conf$$.sh
26361   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26362     PATH_SEPARATOR=';'
26363   else
26364     PATH_SEPARATOR=:
26365   fi
26366   rm -f conf$$.sh
26367 fi
26368
26369 # Support unset when possible.
26370 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26371   as_unset=unset
26372 else
26373   as_unset=false
26374 fi
26375
26376
26377 # IFS
26378 # We need space, tab and new line, in precisely that order.  Quoting is
26379 # there to prevent editors from complaining about space-tab.
26380 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26381 # splitting by setting IFS to empty value.)
26382 as_nl='
26383 '
26384 IFS=" ""        $as_nl"
26385
26386 # Find who we are.  Look in the path if we contain no directory separator.
26387 case $0 in
26388   *[\\/]* ) as_myself=$0 ;;
26389   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26390 for as_dir in $PATH
26391 do
26392   IFS=$as_save_IFS
26393   test -z "$as_dir" && as_dir=.
26394   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26395 done
26396 IFS=$as_save_IFS
26397
26398      ;;
26399 esac
26400 # We did not find ourselves, most probably we were run as `sh COMMAND'
26401 # in which case we are not to be found in the path.
26402 if test "x$as_myself" = x; then
26403   as_myself=$0
26404 fi
26405 if test ! -f "$as_myself"; then
26406   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26407   { (exit 1); exit 1; }
26408 fi
26409
26410 # Work around bugs in pre-3.0 UWIN ksh.
26411 for as_var in ENV MAIL MAILPATH
26412 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26413 done
26414 PS1='$ '
26415 PS2='> '
26416 PS4='+ '
26417
26418 # NLS nuisances.
26419 for as_var in \
26420   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26421   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26422   LC_TELEPHONE LC_TIME
26423 do
26424   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26425     eval $as_var=C; export $as_var
26426   else
26427     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26428   fi
26429 done
26430
26431 # Required to use basename.
26432 if expr a : '\(a\)' >/dev/null 2>&1 &&
26433    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26434   as_expr=expr
26435 else
26436   as_expr=false
26437 fi
26438
26439 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26440   as_basename=basename
26441 else
26442   as_basename=false
26443 fi
26444
26445
26446 # Name of the executable.
26447 as_me=`$as_basename -- "$0" ||
26448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26449          X"$0" : 'X\(//\)$' \| \
26450          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26451 echo X/"$0" |
26452     sed '/^.*\/\([^/][^/]*\)\/*$/{
26453             s//\1/
26454             q
26455           }
26456           /^X\/\(\/\/\)$/{
26457             s//\1/
26458             q
26459           }
26460           /^X\/\(\/\).*/{
26461             s//\1/
26462             q
26463           }
26464           s/.*/./; q'`
26465
26466 # CDPATH.
26467 $as_unset CDPATH
26468
26469
26470
26471   as_lineno_1=$LINENO
26472   as_lineno_2=$LINENO
26473   test "x$as_lineno_1" != "x$as_lineno_2" &&
26474   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26475
26476   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26477   # uniformly replaced by the line number.  The first 'sed' inserts a
26478   # line-number line after each line using $LINENO; the second 'sed'
26479   # does the real work.  The second script uses 'N' to pair each
26480   # line-number line with the line containing $LINENO, and appends
26481   # trailing '-' during substitution so that $LINENO is not a special
26482   # case at line end.
26483   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26484   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26485   # E. McMahon (1931-1989) for sed's syntax.  :-)
26486   sed -n '
26487     p
26488     /[$]LINENO/=
26489   ' <$as_myself |
26490     sed '
26491       s/[$]LINENO.*/&-/
26492       t lineno
26493       b
26494       :lineno
26495       N
26496       :loop
26497       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26498       t loop
26499       s/-\n.*//
26500     ' >$as_me.lineno &&
26501   chmod +x "$as_me.lineno" ||
26502     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26503    { (exit 1); exit 1; }; }
26504
26505   # Don't try to exec as it changes $[0], causing all sort of problems
26506   # (the dirname of $[0] is not the place where we might find the
26507   # original and so on.  Autoconf is especially sensitive to this).
26508   . "./$as_me.lineno"
26509   # Exit status is that of the last command.
26510   exit
26511 }
26512
26513
26514 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26515   as_dirname=dirname
26516 else
26517   as_dirname=false
26518 fi
26519
26520 ECHO_C= ECHO_N= ECHO_T=
26521 case `echo -n x` in
26522 -n*)
26523   case `echo 'x\c'` in
26524   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26525   *)   ECHO_C='\c';;
26526   esac;;
26527 *)
26528   ECHO_N='-n';;
26529 esac
26530
26531 if expr a : '\(a\)' >/dev/null 2>&1 &&
26532    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26533   as_expr=expr
26534 else
26535   as_expr=false
26536 fi
26537
26538 rm -f conf$$ conf$$.exe conf$$.file
26539 if test -d conf$$.dir; then
26540   rm -f conf$$.dir/conf$$.file
26541 else
26542   rm -f conf$$.dir
26543   mkdir conf$$.dir
26544 fi
26545 echo >conf$$.file
26546 if ln -s conf$$.file conf$$ 2>/dev/null; then
26547   as_ln_s='ln -s'
26548   # ... but there are two gotchas:
26549   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26550   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26551   # In both cases, we have to default to `cp -p'.
26552   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26553     as_ln_s='cp -p'
26554 elif ln conf$$.file conf$$ 2>/dev/null; then
26555   as_ln_s=ln
26556 else
26557   as_ln_s='cp -p'
26558 fi
26559 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26560 rmdir conf$$.dir 2>/dev/null
26561
26562 if mkdir -p . 2>/dev/null; then
26563   as_mkdir_p=:
26564 else
26565   test -d ./-p && rmdir ./-p
26566   as_mkdir_p=false
26567 fi
26568
26569 if test -x / >/dev/null 2>&1; then
26570   as_test_x='test -x'
26571 else
26572   if ls -dL / >/dev/null 2>&1; then
26573     as_ls_L_option=L
26574   else
26575     as_ls_L_option=
26576   fi
26577   as_test_x='
26578     eval sh -c '\''
26579       if test -d "$1"; then
26580         test -d "$1/.";
26581       else
26582         case $1 in
26583         -*)set "./$1";;
26584         esac;
26585         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26586         ???[sx]*):;;*)false;;esac;fi
26587     '\'' sh
26588   '
26589 fi
26590 as_executable_p=$as_test_x
26591
26592 # Sed expression to map a string onto a valid CPP name.
26593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26594
26595 # Sed expression to map a string onto a valid variable name.
26596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26597
26598
26599 exec 6>&1
26600
26601 # Save the log message, to keep $[0] and so on meaningful, and to
26602 # report actual input values of CONFIG_FILES etc. instead of their
26603 # values after options handling.
26604 ac_log="
26605 This file was extended by simgrid $as_me 3.1.1-cvs, which was
26606 generated by GNU Autoconf 2.61.  Invocation command line was
26607
26608   CONFIG_FILES    = $CONFIG_FILES
26609   CONFIG_HEADERS  = $CONFIG_HEADERS
26610   CONFIG_LINKS    = $CONFIG_LINKS
26611   CONFIG_COMMANDS = $CONFIG_COMMANDS
26612   $ $0 $@
26613
26614 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26615 "
26616
26617 _ACEOF
26618
26619 cat >>$CONFIG_STATUS <<_ACEOF
26620 # Files that config.status was made for.
26621 config_files="$ac_config_files"
26622 config_headers="$ac_config_headers"
26623 config_commands="$ac_config_commands"
26624
26625 _ACEOF
26626
26627 cat >>$CONFIG_STATUS <<\_ACEOF
26628 ac_cs_usage="\
26629 \`$as_me' instantiates files from templates according to the
26630 current configuration.
26631
26632 Usage: $0 [OPTIONS] [FILE]...
26633
26634   -h, --help       print this help, then exit
26635   -V, --version    print version number and configuration settings, then exit
26636   -q, --quiet      do not print progress messages
26637   -d, --debug      don't remove temporary files
26638       --recheck    update $as_me by reconfiguring in the same conditions
26639   --file=FILE[:TEMPLATE]
26640                    instantiate the configuration file FILE
26641   --header=FILE[:TEMPLATE]
26642                    instantiate the configuration header FILE
26643
26644 Configuration files:
26645 $config_files
26646
26647 Configuration headers:
26648 $config_headers
26649
26650 Configuration commands:
26651 $config_commands
26652
26653 Report bugs to <bug-autoconf@gnu.org>."
26654
26655 _ACEOF
26656 cat >>$CONFIG_STATUS <<_ACEOF
26657 ac_cs_version="\\
26658 simgrid config.status 3.1.1-cvs
26659 configured by $0, generated by GNU Autoconf 2.61,
26660   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26661
26662 Copyright (C) 2006 Free Software Foundation, Inc.
26663 This config.status script is free software; the Free Software Foundation
26664 gives unlimited permission to copy, distribute and modify it."
26665
26666 ac_pwd='$ac_pwd'
26667 srcdir='$srcdir'
26668 INSTALL='$INSTALL'
26669 _ACEOF
26670
26671 cat >>$CONFIG_STATUS <<\_ACEOF
26672 # If no file are specified by the user, then we need to provide default
26673 # value.  By we need to know if files were specified by the user.
26674 ac_need_defaults=:
26675 while test $# != 0
26676 do
26677   case $1 in
26678   --*=*)
26679     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26680     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26681     ac_shift=:
26682     ;;
26683   *)
26684     ac_option=$1
26685     ac_optarg=$2
26686     ac_shift=shift
26687     ;;
26688   esac
26689
26690   case $ac_option in
26691   # Handling of the options.
26692   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26693     ac_cs_recheck=: ;;
26694   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26695     echo "$ac_cs_version"; exit ;;
26696   --debug | --debu | --deb | --de | --d | -d )
26697     debug=: ;;
26698   --file | --fil | --fi | --f )
26699     $ac_shift
26700     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26701     ac_need_defaults=false;;
26702   --header | --heade | --head | --hea )
26703     $ac_shift
26704     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26705     ac_need_defaults=false;;
26706   --he | --h)
26707     # Conflict between --help and --header
26708     { echo "$as_me: error: ambiguous option: $1
26709 Try \`$0 --help' for more information." >&2
26710    { (exit 1); exit 1; }; };;
26711   --help | --hel | -h )
26712     echo "$ac_cs_usage"; exit ;;
26713   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26714   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26715     ac_cs_silent=: ;;
26716
26717   # This is an error.
26718   -*) { echo "$as_me: error: unrecognized option: $1
26719 Try \`$0 --help' for more information." >&2
26720    { (exit 1); exit 1; }; } ;;
26721
26722   *) ac_config_targets="$ac_config_targets $1"
26723      ac_need_defaults=false ;;
26724
26725   esac
26726   shift
26727 done
26728
26729 ac_configure_extra_args=
26730
26731 if $ac_cs_silent; then
26732   exec 6>/dev/null
26733   ac_configure_extra_args="$ac_configure_extra_args --silent"
26734 fi
26735
26736 _ACEOF
26737 cat >>$CONFIG_STATUS <<_ACEOF
26738 if \$ac_cs_recheck; then
26739   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26740   CONFIG_SHELL=$SHELL
26741   export CONFIG_SHELL
26742   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26743 fi
26744
26745 _ACEOF
26746 cat >>$CONFIG_STATUS <<\_ACEOF
26747 exec 5>>config.log
26748 {
26749   echo
26750   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26751 ## Running $as_me. ##
26752 _ASBOX
26753   echo "$ac_log"
26754 } >&5
26755
26756 _ACEOF
26757 cat >>$CONFIG_STATUS <<_ACEOF
26758 #
26759 # INIT-COMMANDS
26760 #
26761 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26762
26763 _ACEOF
26764
26765 cat >>$CONFIG_STATUS <<\_ACEOF
26766
26767 # Handling of arguments.
26768 for ac_config_target in $ac_config_targets
26769 do
26770   case $ac_config_target in
26771     "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
26772     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26773     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26774     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26775     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26776     "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
26777     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
26778     "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
26779     "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
26780     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26781     "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
26782     "testsuite/gras/trp_tcp_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
26783     "testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
26784     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26785     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
26786     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
26787     "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
26788     "examples/msg/run_msg_test") CONFIG_FILES="$CONFIG_FILES examples/msg/run_msg_test" ;;
26789     "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
26790     "examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
26791     "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
26792     "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
26793     "examples/gras/ping/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_sg" ;;
26794     "examples/gras/ping/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_rl" ;;
26795     "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
26796     "examples/gras/rpc/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_sg" ;;
26797     "examples/gras/rpc/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_rl" ;;
26798     "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
26799     "examples/gras/timer/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_sg" ;;
26800     "examples/gras/timer/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_rl" ;;
26801     "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
26802     "examples/gras/chrono/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_sg" ;;
26803     "examples/gras/chrono/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_rl" ;;
26804     "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
26805     "examples/gras/mutual_exclusion/simple_token/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_sg" ;;
26806     "examples/gras/mutual_exclusion/simple_token/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_rl" ;;
26807     "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
26808     "examples/gras/mmrpc/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_sg" ;;
26809     "examples/gras/mmrpc/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_rl" ;;
26810     "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
26811     "examples/gras/pmm/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_sg" ;;
26812     "examples/gras/pmm/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_rl" ;;
26813     "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
26814     "examples/gras/all2all/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_sg" ;;
26815     "examples/gras/all2all/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_rl" ;;
26816     "examples/gras/p2p/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/Makefile" ;;
26817     "examples/gras/p2p/chord/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/Makefile" ;;
26818     "examples/gras/p2p/chord/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_sg" ;;
26819     "examples/gras/p2p/chord/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_rl" ;;
26820     "examples/gras/p2p/can/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/Makefile" ;;
26821     "examples/gras/p2p/can/test_sg") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_sg" ;;
26822     "examples/gras/p2p/can/test_rl") CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_rl" ;;
26823     "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
26824     "examples/amok/bandwidth/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
26825     "examples/amok/bandwidth/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
26826     "examples/amok/bandwidth/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
26827     "examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
26828     "examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
26829     "examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
26830
26831   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26832 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26833    { (exit 1); exit 1; }; };;
26834   esac
26835 done
26836
26837
26838 # If the user did not use the arguments to specify the items to instantiate,
26839 # then the envvar interface is used.  Set only those that are not.
26840 # We use the long form for the default assignment because of an extremely
26841 # bizarre bug on SunOS 4.1.3.
26842 if $ac_need_defaults; then
26843   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26844   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26845   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26846 fi
26847
26848 # Have a temporary directory for convenience.  Make it in the build tree
26849 # simply because there is no reason against having it here, and in addition,
26850 # creating and moving files from /tmp can sometimes cause problems.
26851 # Hook for its removal unless debugging.
26852 # Note that there is a small window in which the directory will not be cleaned:
26853 # after its creation but before its name has been assigned to `$tmp'.
26854 $debug ||
26855 {
26856   tmp=
26857   trap 'exit_status=$?
26858   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26859 ' 0
26860   trap '{ (exit 1); exit 1; }' 1 2 13 15
26861 }
26862 # Create a (secure) tmp directory for tmp files.
26863
26864 {
26865   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26866   test -n "$tmp" && test -d "$tmp"
26867 }  ||
26868 {
26869   tmp=./conf$$-$RANDOM
26870   (umask 077 && mkdir "$tmp")
26871 } ||
26872 {
26873    echo "$me: cannot create a temporary directory in ." >&2
26874    { (exit 1); exit 1; }
26875 }
26876
26877 #
26878 # Set up the sed scripts for CONFIG_FILES section.
26879 #
26880
26881 # No need to generate the scripts if there are no CONFIG_FILES.
26882 # This happens for instance when ./config.status config.h
26883 if test -n "$CONFIG_FILES"; then
26884
26885 _ACEOF
26886
26887
26888
26889 ac_delim='%!_!# '
26890 for ac_last_try in false false false false false :; do
26891   cat >conf$$subs.sed <<_ACEOF
26892 SHELL!$SHELL$ac_delim
26893 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26894 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26895 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26896 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26897 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26898 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26899 exec_prefix!$exec_prefix$ac_delim
26900 prefix!$prefix$ac_delim
26901 program_transform_name!$program_transform_name$ac_delim
26902 bindir!$bindir$ac_delim
26903 sbindir!$sbindir$ac_delim
26904 libexecdir!$libexecdir$ac_delim
26905 datarootdir!$datarootdir$ac_delim
26906 datadir!$datadir$ac_delim
26907 sysconfdir!$sysconfdir$ac_delim
26908 sharedstatedir!$sharedstatedir$ac_delim
26909 localstatedir!$localstatedir$ac_delim
26910 includedir!$includedir$ac_delim
26911 oldincludedir!$oldincludedir$ac_delim
26912 docdir!$docdir$ac_delim
26913 infodir!$infodir$ac_delim
26914 htmldir!$htmldir$ac_delim
26915 dvidir!$dvidir$ac_delim
26916 pdfdir!$pdfdir$ac_delim
26917 psdir!$psdir$ac_delim
26918 libdir!$libdir$ac_delim
26919 localedir!$localedir$ac_delim
26920 mandir!$mandir$ac_delim
26921 DEFS!$DEFS$ac_delim
26922 ECHO_C!$ECHO_C$ac_delim
26923 ECHO_N!$ECHO_N$ac_delim
26924 ECHO_T!$ECHO_T$ac_delim
26925 LIBS!$LIBS$ac_delim
26926 build_alias!$build_alias$ac_delim
26927 host_alias!$host_alias$ac_delim
26928 target_alias!$target_alias$ac_delim
26929 build!$build$ac_delim
26930 build_cpu!$build_cpu$ac_delim
26931 build_vendor!$build_vendor$ac_delim
26932 build_os!$build_os$ac_delim
26933 host!$host$ac_delim
26934 host_cpu!$host_cpu$ac_delim
26935 host_vendor!$host_vendor$ac_delim
26936 host_os!$host_os$ac_delim
26937 target!$target$ac_delim
26938 target_cpu!$target_cpu$ac_delim
26939 target_vendor!$target_vendor$ac_delim
26940 target_os!$target_os$ac_delim
26941 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26942 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26943 INSTALL_DATA!$INSTALL_DATA$ac_delim
26944 CYGPATH_W!$CYGPATH_W$ac_delim
26945 PACKAGE!$PACKAGE$ac_delim
26946 VERSION!$VERSION$ac_delim
26947 ACLOCAL!$ACLOCAL$ac_delim
26948 AUTOCONF!$AUTOCONF$ac_delim
26949 AUTOMAKE!$AUTOMAKE$ac_delim
26950 AUTOHEADER!$AUTOHEADER$ac_delim
26951 MAKEINFO!$MAKEINFO$ac_delim
26952 install_sh!$install_sh$ac_delim
26953 STRIP!$STRIP$ac_delim
26954 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26955 mkdir_p!$mkdir_p$ac_delim
26956 AWK!$AWK$ac_delim
26957 SET_MAKE!$SET_MAKE$ac_delim
26958 am__leading_dot!$am__leading_dot$ac_delim
26959 AMTAR!$AMTAR$ac_delim
26960 am__tar!$am__tar$ac_delim
26961 am__untar!$am__untar$ac_delim
26962 CC!$CC$ac_delim
26963 CFLAGS!$CFLAGS$ac_delim
26964 LDFLAGS!$LDFLAGS$ac_delim
26965 CPPFLAGS!$CPPFLAGS$ac_delim
26966 ac_ct_CC!$ac_ct_CC$ac_delim
26967 EXEEXT!$EXEEXT$ac_delim
26968 OBJEXT!$OBJEXT$ac_delim
26969 DEPDIR!$DEPDIR$ac_delim
26970 am__include!$am__include$ac_delim
26971 am__quote!$am__quote$ac_delim
26972 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26973 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26974 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26975 CCDEPMODE!$CCDEPMODE$ac_delim
26976 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26977 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26978 GREP!$GREP$ac_delim
26979 EGREP!$EGREP$ac_delim
26980 LN_S!$LN_S$ac_delim
26981 ECHO!$ECHO$ac_delim
26982 AR!$AR$ac_delim
26983 RANLIB!$RANLIB$ac_delim
26984 DLLTOOL!$DLLTOOL$ac_delim
26985 AS!$AS$ac_delim
26986 OBJDUMP!$OBJDUMP$ac_delim
26987 CPP!$CPP$ac_delim
26988 CXX!$CXX$ac_delim
26989 _ACEOF
26990
26991   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26992     break
26993   elif $ac_last_try; then
26994     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26995 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26996    { (exit 1); exit 1; }; }
26997   else
26998     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26999   fi
27000 done
27001
27002 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27003 if test -n "$ac_eof"; then
27004   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27005   ac_eof=`expr $ac_eof + 1`
27006 fi
27007
27008 cat >>$CONFIG_STATUS <<_ACEOF
27009 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27010 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27011 _ACEOF
27012 sed '
27013 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27014 s/^/s,@/; s/!/@,|#_!!_#|/
27015 :n
27016 t n
27017 s/'"$ac_delim"'$/,g/; t
27018 s/$/\\/; p
27019 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27020 ' >>$CONFIG_STATUS <conf$$subs.sed
27021 rm -f conf$$subs.sed
27022 cat >>$CONFIG_STATUS <<_ACEOF
27023 CEOF$ac_eof
27024 _ACEOF
27025
27026
27027 ac_delim='%!_!# '
27028 for ac_last_try in false false false false false :; do
27029   cat >conf$$subs.sed <<_ACEOF
27030 CXXFLAGS!$CXXFLAGS$ac_delim
27031 ac_ct_CXX!$ac_ct_CXX$ac_delim
27032 CXXDEPMODE!$CXXDEPMODE$ac_delim
27033 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27034 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27035 CXXCPP!$CXXCPP$ac_delim
27036 F77!$F77$ac_delim
27037 FFLAGS!$FFLAGS$ac_delim
27038 ac_ct_F77!$ac_ct_F77$ac_delim
27039 LIBTOOL!$LIBTOOL$ac_delim
27040 LIBOBJS!$LIBOBJS$ac_delim
27041 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
27042 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
27043 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
27044 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
27045 GRAS_DEP!$GRAS_DEP$ac_delim
27046 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
27047 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
27048 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27049 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27050 MAINT!$MAINT$ac_delim
27051 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
27052 abs_builddir!$abs_builddir$ac_delim
27053 abs_srcdir!$abs_srcdir$ac_delim
27054 abs_top_builddir!$abs_top_builddir$ac_delim
27055 abs_top_srcdir!$abs_top_srcdir$ac_delim
27056 BASH!$BASH$ac_delim
27057 WARNING!$WARNING$ac_delim
27058 LEX!$LEX$ac_delim
27059 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27060 LEXLIB!$LEXLIB$ac_delim
27061 FLEXML!$FLEXML$ac_delim
27062 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
27063 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
27064 DOXYGEN!$DOXYGEN$ac_delim
27065 ADDR2LINE!$ADDR2LINE$ac_delim
27066 ac_configure_args!$ac_configure_args$ac_delim
27067 MD5SUM!$MD5SUM$ac_delim
27068 build_id!$build_id$ac_delim
27069 LTLIBOBJS!$LTLIBOBJS$ac_delim
27070 _ACEOF
27071
27072   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then
27073     break
27074   elif $ac_last_try; then
27075     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27076 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27077    { (exit 1); exit 1; }; }
27078   else
27079     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27080   fi
27081 done
27082
27083 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27084 if test -n "$ac_eof"; then
27085   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27086   ac_eof=`expr $ac_eof + 1`
27087 fi
27088
27089 cat >>$CONFIG_STATUS <<_ACEOF
27090 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27091 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27092 _ACEOF
27093 sed '
27094 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27095 s/^/s,@/; s/!/@,|#_!!_#|/
27096 :n
27097 t n
27098 s/'"$ac_delim"'$/,g/; t
27099 s/$/\\/; p
27100 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27101 ' >>$CONFIG_STATUS <conf$$subs.sed
27102 rm -f conf$$subs.sed
27103 cat >>$CONFIG_STATUS <<_ACEOF
27104 :end
27105 s/|#_!!_#|//g
27106 CEOF$ac_eof
27107 _ACEOF
27108
27109
27110 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27111 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27112 # trailing colons and then remove the whole line if VPATH becomes empty
27113 # (actually we leave an empty line to preserve line numbers).
27114 if test "x$srcdir" = x.; then
27115   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27116 s/:*\$(srcdir):*/:/
27117 s/:*\${srcdir}:*/:/
27118 s/:*@srcdir@:*/:/
27119 s/^\([^=]*=[     ]*\):*/\1/
27120 s/:*$//
27121 s/^[^=]*=[       ]*$//
27122 }'
27123 fi
27124
27125 cat >>$CONFIG_STATUS <<\_ACEOF
27126 fi # test -n "$CONFIG_FILES"
27127
27128
27129 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
27130 do
27131   case $ac_tag in
27132   :[FHLC]) ac_mode=$ac_tag; continue;;
27133   esac
27134   case $ac_mode$ac_tag in
27135   :[FHL]*:*);;
27136   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27137 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27138    { (exit 1); exit 1; }; };;
27139   :[FH]-) ac_tag=-:-;;
27140   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27141   esac
27142   ac_save_IFS=$IFS
27143   IFS=:
27144   set x $ac_tag
27145   IFS=$ac_save_IFS
27146   shift
27147   ac_file=$1
27148   shift
27149
27150   case $ac_mode in
27151   :L) ac_source=$1;;
27152   :[FH])
27153     ac_file_inputs=
27154     for ac_f
27155     do
27156       case $ac_f in
27157       -) ac_f="$tmp/stdin";;
27158       *) # Look for the file first in the build tree, then in the source tree
27159          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27160          # because $ac_f cannot contain `:'.
27161          test -f "$ac_f" ||
27162            case $ac_f in
27163            [\\/$]*) false;;
27164            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27165            esac ||
27166            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27167 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27168    { (exit 1); exit 1; }; };;
27169       esac
27170       ac_file_inputs="$ac_file_inputs $ac_f"
27171     done
27172
27173     # Let's still pretend it is `configure' which instantiates (i.e., don't
27174     # use $as_me), people would be surprised to read:
27175     #    /* config.h.  Generated by config.status.  */
27176     configure_input="Generated from "`IFS=:
27177           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27178     if test x"$ac_file" != x-; then
27179       configure_input="$ac_file.  $configure_input"
27180       { echo "$as_me:$LINENO: creating $ac_file" >&5
27181 echo "$as_me: creating $ac_file" >&6;}
27182     fi
27183
27184     case $ac_tag in
27185     *:-:* | *:-) cat >"$tmp/stdin";;
27186     esac
27187     ;;
27188   esac
27189
27190   ac_dir=`$as_dirname -- "$ac_file" ||
27191 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27192          X"$ac_file" : 'X\(//\)[^/]' \| \
27193          X"$ac_file" : 'X\(//\)$' \| \
27194          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27195 echo X"$ac_file" |
27196     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27197             s//\1/
27198             q
27199           }
27200           /^X\(\/\/\)[^/].*/{
27201             s//\1/
27202             q
27203           }
27204           /^X\(\/\/\)$/{
27205             s//\1/
27206             q
27207           }
27208           /^X\(\/\).*/{
27209             s//\1/
27210             q
27211           }
27212           s/.*/./; q'`
27213   { as_dir="$ac_dir"
27214   case $as_dir in #(
27215   -*) as_dir=./$as_dir;;
27216   esac
27217   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27218     as_dirs=
27219     while :; do
27220       case $as_dir in #(
27221       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27222       *) as_qdir=$as_dir;;
27223       esac
27224       as_dirs="'$as_qdir' $as_dirs"
27225       as_dir=`$as_dirname -- "$as_dir" ||
27226 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27227          X"$as_dir" : 'X\(//\)[^/]' \| \
27228          X"$as_dir" : 'X\(//\)$' \| \
27229          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27230 echo X"$as_dir" |
27231     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27232             s//\1/
27233             q
27234           }
27235           /^X\(\/\/\)[^/].*/{
27236             s//\1/
27237             q
27238           }
27239           /^X\(\/\/\)$/{
27240             s//\1/
27241             q
27242           }
27243           /^X\(\/\).*/{
27244             s//\1/
27245             q
27246           }
27247           s/.*/./; q'`
27248       test -d "$as_dir" && break
27249     done
27250     test -z "$as_dirs" || eval "mkdir $as_dirs"
27251   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27252 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27253    { (exit 1); exit 1; }; }; }
27254   ac_builddir=.
27255
27256 case "$ac_dir" in
27257 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27258 *)
27259   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27260   # A ".." for each directory in $ac_dir_suffix.
27261   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27262   case $ac_top_builddir_sub in
27263   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27264   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27265   esac ;;
27266 esac
27267 ac_abs_top_builddir=$ac_pwd
27268 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27269 # for backward compatibility:
27270 ac_top_builddir=$ac_top_build_prefix
27271
27272 case $srcdir in
27273   .)  # We are building in place.
27274     ac_srcdir=.
27275     ac_top_srcdir=$ac_top_builddir_sub
27276     ac_abs_top_srcdir=$ac_pwd ;;
27277   [\\/]* | ?:[\\/]* )  # Absolute name.
27278     ac_srcdir=$srcdir$ac_dir_suffix;
27279     ac_top_srcdir=$srcdir
27280     ac_abs_top_srcdir=$srcdir ;;
27281   *) # Relative name.
27282     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27283     ac_top_srcdir=$ac_top_build_prefix$srcdir
27284     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27285 esac
27286 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27287
27288
27289   case $ac_mode in
27290   :F)
27291   #
27292   # CONFIG_FILE
27293   #
27294
27295   case $INSTALL in
27296   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27297   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27298   esac
27299 _ACEOF
27300
27301 cat >>$CONFIG_STATUS <<\_ACEOF
27302 # If the template does not know about datarootdir, expand it.
27303 # FIXME: This hack should be removed a few years after 2.60.
27304 ac_datarootdir_hack=; ac_datarootdir_seen=
27305
27306 case `sed -n '/datarootdir/ {
27307   p
27308   q
27309 }
27310 /@datadir@/p
27311 /@docdir@/p
27312 /@infodir@/p
27313 /@localedir@/p
27314 /@mandir@/p
27315 ' $ac_file_inputs` in
27316 *datarootdir*) ac_datarootdir_seen=yes;;
27317 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27318   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27319 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27320 _ACEOF
27321 cat >>$CONFIG_STATUS <<_ACEOF
27322   ac_datarootdir_hack='
27323   s&@datadir@&$datadir&g
27324   s&@docdir@&$docdir&g
27325   s&@infodir@&$infodir&g
27326   s&@localedir@&$localedir&g
27327   s&@mandir@&$mandir&g
27328     s&\\\${datarootdir}&$datarootdir&g' ;;
27329 esac
27330 _ACEOF
27331
27332 # Neutralize VPATH when `$srcdir' = `.'.
27333 # Shell code in configure.ac might set extrasub.
27334 # FIXME: do we really want to maintain this feature?
27335 cat >>$CONFIG_STATUS <<_ACEOF
27336   sed "$ac_vpsub
27337 $extrasub
27338 _ACEOF
27339 cat >>$CONFIG_STATUS <<\_ACEOF
27340 :t
27341 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27342 s&@configure_input@&$configure_input&;t t
27343 s&@top_builddir@&$ac_top_builddir_sub&;t t
27344 s&@srcdir@&$ac_srcdir&;t t
27345 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27346 s&@top_srcdir@&$ac_top_srcdir&;t t
27347 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27348 s&@builddir@&$ac_builddir&;t t
27349 s&@abs_builddir@&$ac_abs_builddir&;t t
27350 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27351 s&@INSTALL@&$ac_INSTALL&;t t
27352 $ac_datarootdir_hack
27353 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27354
27355 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27356   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27357   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27358   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27359 which seems to be undefined.  Please make sure it is defined." >&5
27360 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27361 which seems to be undefined.  Please make sure it is defined." >&2;}
27362
27363   rm -f "$tmp/stdin"
27364   case $ac_file in
27365   -) cat "$tmp/out"; rm -f "$tmp/out";;
27366   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27367   esac
27368  ;;
27369   :H)
27370   #
27371   # CONFIG_HEADER
27372   #
27373 _ACEOF
27374
27375 # Transform confdefs.h into a sed script `conftest.defines', that
27376 # substitutes the proper values into config.h.in to produce config.h.
27377 rm -f conftest.defines conftest.tail
27378 # First, append a space to every undef/define line, to ease matching.
27379 echo 's/$/ /' >conftest.defines
27380 # Then, protect against being on the right side of a sed subst, or in
27381 # an unquoted here document, in config.status.  If some macros were
27382 # called several times there might be several #defines for the same
27383 # symbol, which is useless.  But do not sort them, since the last
27384 # AC_DEFINE must be honored.
27385 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27386 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27387 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27388 # PARAMS is the parameter list in the macro definition--in most cases, it's
27389 # just an empty string.
27390 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27391 ac_dB='\\)[      (].*,\\1define\\2'
27392 ac_dC=' '
27393 ac_dD=' ,'
27394
27395 uniq confdefs.h |
27396   sed -n '
27397         t rset
27398         :rset
27399         s/^[     ]*#[    ]*define[       ][      ]*//
27400         t ok
27401         d
27402         :ok
27403         s/[\\&,]/\\&/g
27404         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27405         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27406   ' >>conftest.defines
27407
27408 # Remove the space that was appended to ease matching.
27409 # Then replace #undef with comments.  This is necessary, for
27410 # example, in the case of _POSIX_SOURCE, which is predefined and required
27411 # on some systems where configure will not decide to define it.
27412 # (The regexp can be short, since the line contains either #define or #undef.)
27413 echo 's/ $//
27414 s,^[     #]*u.*,/* & */,' >>conftest.defines
27415
27416 # Break up conftest.defines:
27417 ac_max_sed_lines=50
27418
27419 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27420 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27421 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27422 # et cetera.
27423 ac_in='$ac_file_inputs'
27424 ac_out='"$tmp/out1"'
27425 ac_nxt='"$tmp/out2"'
27426
27427 while :
27428 do
27429   # Write a here document:
27430     cat >>$CONFIG_STATUS <<_ACEOF
27431     # First, check the format of the line:
27432     cat >"\$tmp/defines.sed" <<\\CEOF
27433 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
27434 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
27435 b
27436 :def
27437 _ACEOF
27438   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27439   echo 'CEOF
27440     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27441   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27442   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27443   grep . conftest.tail >/dev/null || break
27444   rm -f conftest.defines
27445   mv conftest.tail conftest.defines
27446 done
27447 rm -f conftest.defines conftest.tail
27448
27449 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27450 cat >>$CONFIG_STATUS <<\_ACEOF
27451   if test x"$ac_file" != x-; then
27452     echo "/* $configure_input  */" >"$tmp/config.h"
27453     cat "$ac_result" >>"$tmp/config.h"
27454     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27455       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27456 echo "$as_me: $ac_file is unchanged" >&6;}
27457     else
27458       rm -f $ac_file
27459       mv "$tmp/config.h" $ac_file
27460     fi
27461   else
27462     echo "/* $configure_input  */"
27463     cat "$ac_result"
27464   fi
27465   rm -f "$tmp/out12"
27466 # Compute $ac_file's index in $config_headers.
27467 _am_stamp_count=1
27468 for _am_header in $config_headers :; do
27469   case $_am_header in
27470     $ac_file | $ac_file:* )
27471       break ;;
27472     * )
27473       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27474   esac
27475 done
27476 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27477 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27478          X$ac_file : 'X\(//\)[^/]' \| \
27479          X$ac_file : 'X\(//\)$' \| \
27480          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27481 echo X$ac_file |
27482     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27483             s//\1/
27484             q
27485           }
27486           /^X\(\/\/\)[^/].*/{
27487             s//\1/
27488             q
27489           }
27490           /^X\(\/\/\)$/{
27491             s//\1/
27492             q
27493           }
27494           /^X\(\/\).*/{
27495             s//\1/
27496             q
27497           }
27498           s/.*/./; q'`/stamp-h$_am_stamp_count
27499  ;;
27500
27501   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27502 echo "$as_me: executing $ac_file commands" >&6;}
27503  ;;
27504   esac
27505
27506
27507   case $ac_file$ac_mode in
27508     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27509   # Strip MF so we end up with the name of the file.
27510   mf=`echo "$mf" | sed -e 's/:.*$//'`
27511   # Check whether this is an Automake generated Makefile or not.
27512   # We used to match only the files named `Makefile.in', but
27513   # some people rename them; so instead we look at the file content.
27514   # Grep'ing the first line is not enough: some people post-process
27515   # each Makefile.in and add a new line on top of each file to say so.
27516   # So let's grep whole file.
27517   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27518     dirpart=`$as_dirname -- "$mf" ||
27519 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27520          X"$mf" : 'X\(//\)[^/]' \| \
27521          X"$mf" : 'X\(//\)$' \| \
27522          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27523 echo X"$mf" |
27524     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27525             s//\1/
27526             q
27527           }
27528           /^X\(\/\/\)[^/].*/{
27529             s//\1/
27530             q
27531           }
27532           /^X\(\/\/\)$/{
27533             s//\1/
27534             q
27535           }
27536           /^X\(\/\).*/{
27537             s//\1/
27538             q
27539           }
27540           s/.*/./; q'`
27541   else
27542     continue
27543   fi
27544   # Extract the definition of DEPDIR, am__include, and am__quote
27545   # from the Makefile without running `make'.
27546   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27547   test -z "$DEPDIR" && continue
27548   am__include=`sed -n 's/^am__include = //p' < "$mf"`
27549   test -z "am__include" && continue
27550   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27551   # When using ansi2knr, U may be empty or an underscore; expand it
27552   U=`sed -n 's/^U = //p' < "$mf"`
27553   # Find all dependency output files, they are included files with
27554   # $(DEPDIR) in their names.  We invoke sed twice because it is the
27555   # simplest approach to changing $(DEPDIR) to its actual value in the
27556   # expansion.
27557   for file in `sed -n "
27558     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27559        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27560     # Make sure the directory exists.
27561     test -f "$dirpart/$file" && continue
27562     fdir=`$as_dirname -- "$file" ||
27563 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27564          X"$file" : 'X\(//\)[^/]' \| \
27565          X"$file" : 'X\(//\)$' \| \
27566          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27567 echo X"$file" |
27568     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27569             s//\1/
27570             q
27571           }
27572           /^X\(\/\/\)[^/].*/{
27573             s//\1/
27574             q
27575           }
27576           /^X\(\/\/\)$/{
27577             s//\1/
27578             q
27579           }
27580           /^X\(\/\).*/{
27581             s//\1/
27582             q
27583           }
27584           s/.*/./; q'`
27585     { as_dir=$dirpart/$fdir
27586   case $as_dir in #(
27587   -*) as_dir=./$as_dir;;
27588   esac
27589   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27590     as_dirs=
27591     while :; do
27592       case $as_dir in #(
27593       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27594       *) as_qdir=$as_dir;;
27595       esac
27596       as_dirs="'$as_qdir' $as_dirs"
27597       as_dir=`$as_dirname -- "$as_dir" ||
27598 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27599          X"$as_dir" : 'X\(//\)[^/]' \| \
27600          X"$as_dir" : 'X\(//\)$' \| \
27601          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27602 echo X"$as_dir" |
27603     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27604             s//\1/
27605             q
27606           }
27607           /^X\(\/\/\)[^/].*/{
27608             s//\1/
27609             q
27610           }
27611           /^X\(\/\/\)$/{
27612             s//\1/
27613             q
27614           }
27615           /^X\(\/\).*/{
27616             s//\1/
27617             q
27618           }
27619           s/.*/./; q'`
27620       test -d "$as_dir" && break
27621     done
27622     test -z "$as_dirs" || eval "mkdir $as_dirs"
27623   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27624 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27625    { (exit 1); exit 1; }; }; }
27626     # echo "creating $dirpart/$file"
27627     echo '# dummy' > "$dirpart/$file"
27628   done
27629 done
27630  ;;
27631     "tools/graspe-slave":F)
27632     for file in                                                 \
27633      tools/graspe-slave           tools/graspe-master           \
27634     ; do                                                        \
27635       test -e $file && chmod +x $file;                          \
27636     done
27637  ;;
27638     "testsuite/Makefile":F)
27639     for file in                                                 \
27640      testsuite/run_tests                                        \
27641      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27642     ; do                                                        \
27643       test -e $file && chmod +x $file;                          \
27644     done
27645  ;;
27646     "testsuite/run_tests":F)
27647     for file in                                                 \
27648      testsuite/run_tests                                        \
27649      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27650     ; do                                                        \
27651       test -e $file && chmod +x $file;                          \
27652     done
27653  ;;
27654     "testsuite/gras/trp_tcp_usage":F)
27655     for file in                                                 \
27656      testsuite/run_tests                                        \
27657      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27658     ; do                                                        \
27659       test -e $file && chmod +x $file;                          \
27660     done
27661  ;;
27662     "testsuite/gras/trp_file_usage":F)
27663     for file in                                                 \
27664      testsuite/run_tests                                        \
27665      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27666     ; do                                                        \
27667       test -e $file && chmod +x $file;                          \
27668     done
27669  ;;
27670     "examples/Makefile":F)
27671     for file in                                                 \
27672      \
27673      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27674      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27675      \
27676      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27677      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27678      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27679      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27680      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27681      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27682      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27683      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27684      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27685      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27686      examples/msg/run_msg_test                                  \
27687      examples/simdag/test_simdag                                \
27688     ; do                                                        \
27689       test -e $file && chmod +x $file;                          \
27690     done
27691  ;;
27692     "examples/msg/Makefile":F)
27693     for file in                                                 \
27694      \
27695      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27696      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27697      \
27698      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27699      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27700      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27701      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27702      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27703      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27704      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27705      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27706      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27707      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27708      examples/msg/run_msg_test                                  \
27709      examples/simdag/test_simdag                                \
27710     ; do                                                        \
27711       test -e $file && chmod +x $file;                          \
27712     done
27713  ;;
27714     "examples/msg/run_msg_test":F)
27715     for file in                                                 \
27716      \
27717      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27718      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27719      \
27720      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27721      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27722      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27723      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27724      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27725      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27726      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27727      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27728      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27729      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27730      examples/msg/run_msg_test                                  \
27731      examples/simdag/test_simdag                                \
27732     ; do                                                        \
27733       test -e $file && chmod +x $file;                          \
27734     done
27735  ;;
27736     "examples/simdag/Makefile":F)
27737     for file in                                                 \
27738      \
27739      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27740      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27741      \
27742      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27743      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27744      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27745      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27746      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27747      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27748      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27749      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27750      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27751      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27752      examples/msg/run_msg_test                                  \
27753      examples/simdag/test_simdag                                \
27754     ; do                                                        \
27755       test -e $file && chmod +x $file;                          \
27756     done
27757  ;;
27758     "examples/simdag/test_simdag":F)
27759     for file in                                                 \
27760      \
27761      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27762      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27763      \
27764      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27765      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27766      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27767      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27768      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27769      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27770      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27771      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27772      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27773      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27774      examples/msg/run_msg_test                                  \
27775      examples/simdag/test_simdag                                \
27776     ; do                                                        \
27777       test -e $file && chmod +x $file;                          \
27778     done
27779  ;;
27780     "examples/gras/Makefile":F)
27781     for file in                                                 \
27782      \
27783      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27784      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27785      \
27786      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27787      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27788      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27789      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27790      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27791      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27792      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27793      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27794      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27795      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27796      examples/msg/run_msg_test                                  \
27797      examples/simdag/test_simdag                                \
27798     ; do                                                        \
27799       test -e $file && chmod +x $file;                          \
27800     done
27801  ;;
27802     "examples/gras/ping/Makefile":F)
27803     for file in                                                 \
27804      \
27805      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27806      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27807      \
27808      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27809      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27810      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27811      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27812      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27813      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27814      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27815      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27816      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27817      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27818      examples/msg/run_msg_test                                  \
27819      examples/simdag/test_simdag                                \
27820     ; do                                                        \
27821       test -e $file && chmod +x $file;                          \
27822     done
27823  ;;
27824     "examples/gras/ping/test_sg":F)
27825     for file in                                                 \
27826      \
27827      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27828      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27829      \
27830      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27831      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27832      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27833      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27834      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27835      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27836      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27837      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27838      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27839      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27840      examples/msg/run_msg_test                                  \
27841      examples/simdag/test_simdag                                \
27842     ; do                                                        \
27843       test -e $file && chmod +x $file;                          \
27844     done
27845  ;;
27846     "examples/gras/ping/test_rl":F)
27847     for file in                                                 \
27848      \
27849      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27850      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27851      \
27852      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27853      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27854      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27855      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27856      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27857      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27858      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27859      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27860      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27861      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27862      examples/msg/run_msg_test                                  \
27863      examples/simdag/test_simdag                                \
27864     ; do                                                        \
27865       test -e $file && chmod +x $file;                          \
27866     done
27867  ;;
27868     "examples/gras/rpc/Makefile":F)
27869     for file in                                                 \
27870      \
27871      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27872      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27873      \
27874      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27875      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27876      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27877      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27878      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27879      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27880      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27881      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27882      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27883      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27884      examples/msg/run_msg_test                                  \
27885      examples/simdag/test_simdag                                \
27886     ; do                                                        \
27887       test -e $file && chmod +x $file;                          \
27888     done
27889  ;;
27890     "examples/gras/rpc/test_sg":F)
27891     for file in                                                 \
27892      \
27893      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27894      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27895      \
27896      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27897      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27898      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27899      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27900      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27901      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27902      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27903      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27904      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27905      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27906      examples/msg/run_msg_test                                  \
27907      examples/simdag/test_simdag                                \
27908     ; do                                                        \
27909       test -e $file && chmod +x $file;                          \
27910     done
27911  ;;
27912     "examples/gras/rpc/test_rl":F)
27913     for file in                                                 \
27914      \
27915      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27916      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27917      \
27918      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27919      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27920      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27921      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27922      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27923      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27924      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27925      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27926      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27927      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27928      examples/msg/run_msg_test                                  \
27929      examples/simdag/test_simdag                                \
27930     ; do                                                        \
27931       test -e $file && chmod +x $file;                          \
27932     done
27933  ;;
27934     "examples/gras/timer/Makefile":F)
27935     for file in                                                 \
27936      \
27937      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27938      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27939      \
27940      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27941      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27942      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27943      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27944      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27945      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27946      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27947      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27948      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27949      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27950      examples/msg/run_msg_test                                  \
27951      examples/simdag/test_simdag                                \
27952     ; do                                                        \
27953       test -e $file && chmod +x $file;                          \
27954     done
27955  ;;
27956     "examples/gras/timer/test_sg":F)
27957     for file in                                                 \
27958      \
27959      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27960      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27961      \
27962      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27963      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27964      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27965      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27966      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27967      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27968      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27969      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27970      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27971      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27972      examples/msg/run_msg_test                                  \
27973      examples/simdag/test_simdag                                \
27974     ; do                                                        \
27975       test -e $file && chmod +x $file;                          \
27976     done
27977  ;;
27978     "examples/gras/timer/test_rl":F)
27979     for file in                                                 \
27980      \
27981      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27982      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27983      \
27984      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27985      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27986      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27987      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27988      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27989      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27990      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27991      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27992      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27993      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27994      examples/msg/run_msg_test                                  \
27995      examples/simdag/test_simdag                                \
27996     ; do                                                        \
27997       test -e $file && chmod +x $file;                          \
27998     done
27999  ;;
28000     "examples/gras/chrono/Makefile":F)
28001     for file in                                                 \
28002      \
28003      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28004      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28005      \
28006      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28007      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28008      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28009      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28010      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28011      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28012      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28013      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28014      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28015      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28016      examples/msg/run_msg_test                                  \
28017      examples/simdag/test_simdag                                \
28018     ; do                                                        \
28019       test -e $file && chmod +x $file;                          \
28020     done
28021  ;;
28022     "examples/gras/chrono/test_sg":F)
28023     for file in                                                 \
28024      \
28025      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28026      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28027      \
28028      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28029      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28030      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28031      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28032      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28033      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28034      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28035      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28036      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28037      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28038      examples/msg/run_msg_test                                  \
28039      examples/simdag/test_simdag                                \
28040     ; do                                                        \
28041       test -e $file && chmod +x $file;                          \
28042     done
28043  ;;
28044     "examples/gras/chrono/test_rl":F)
28045     for file in                                                 \
28046      \
28047      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28048      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28049      \
28050      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28051      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28052      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28053      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28054      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28055      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28056      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28057      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28058      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28059      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28060      examples/msg/run_msg_test                                  \
28061      examples/simdag/test_simdag                                \
28062     ; do                                                        \
28063       test -e $file && chmod +x $file;                          \
28064     done
28065  ;;
28066     "examples/gras/mutual_exclusion/simple_token/Makefile":F)
28067     for file in                                                 \
28068      \
28069      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28070      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28071      \
28072      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28073      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28074      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28075      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28076      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28077      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28078      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28079      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28080      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28081      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28082      examples/msg/run_msg_test                                  \
28083      examples/simdag/test_simdag                                \
28084     ; do                                                        \
28085       test -e $file && chmod +x $file;                          \
28086     done
28087  ;;
28088     "examples/gras/mutual_exclusion/simple_token/test_sg":F)
28089     for file in                                                 \
28090      \
28091      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28092      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28093      \
28094      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28095      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28096      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28097      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28098      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28099      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28100      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28101      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28102      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28103      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28104      examples/msg/run_msg_test                                  \
28105      examples/simdag/test_simdag                                \
28106     ; do                                                        \
28107       test -e $file && chmod +x $file;                          \
28108     done
28109  ;;
28110     "examples/gras/mutual_exclusion/simple_token/test_rl":F)
28111     for file in                                                 \
28112      \
28113      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28114      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28115      \
28116      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28117      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28118      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28119      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28120      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28121      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28122      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28123      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28124      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28125      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28126      examples/msg/run_msg_test                                  \
28127      examples/simdag/test_simdag                                \
28128     ; do                                                        \
28129       test -e $file && chmod +x $file;                          \
28130     done
28131  ;;
28132     "examples/gras/mmrpc/Makefile":F)
28133     for file in                                                 \
28134      \
28135      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28136      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28137      \
28138      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28139      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28140      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28141      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28142      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28143      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28144      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28145      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28146      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28147      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28148      examples/msg/run_msg_test                                  \
28149      examples/simdag/test_simdag                                \
28150     ; do                                                        \
28151       test -e $file && chmod +x $file;                          \
28152     done
28153  ;;
28154     "examples/gras/mmrpc/test_sg":F)
28155     for file in                                                 \
28156      \
28157      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28158      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28159      \
28160      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28161      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28162      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28163      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28164      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28165      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28166      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28167      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28168      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28169      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28170      examples/msg/run_msg_test                                  \
28171      examples/simdag/test_simdag                                \
28172     ; do                                                        \
28173       test -e $file && chmod +x $file;                          \
28174     done
28175  ;;
28176     "examples/gras/mmrpc/test_rl":F)
28177     for file in                                                 \
28178      \
28179      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28180      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28181      \
28182      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28183      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28184      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28185      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28186      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28187      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28188      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28189      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28190      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28191      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28192      examples/msg/run_msg_test                                  \
28193      examples/simdag/test_simdag                                \
28194     ; do                                                        \
28195       test -e $file && chmod +x $file;                          \
28196     done
28197  ;;
28198     "examples/gras/pmm/Makefile":F)
28199     for file in                                                 \
28200      \
28201      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28202      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28203      \
28204      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28205      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28206      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28207      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28208      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28209      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28210      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28211      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28212      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28213      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28214      examples/msg/run_msg_test                                  \
28215      examples/simdag/test_simdag                                \
28216     ; do                                                        \
28217       test -e $file && chmod +x $file;                          \
28218     done
28219  ;;
28220     "examples/gras/pmm/test_sg":F)
28221     for file in                                                 \
28222      \
28223      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28224      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28225      \
28226      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28227      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28228      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28229      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28230      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28231      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28232      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28233      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28234      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28235      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28236      examples/msg/run_msg_test                                  \
28237      examples/simdag/test_simdag                                \
28238     ; do                                                        \
28239       test -e $file && chmod +x $file;                          \
28240     done
28241  ;;
28242     "examples/gras/pmm/test_rl":F)
28243     for file in                                                 \
28244      \
28245      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28246      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28247      \
28248      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28249      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28250      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28251      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28252      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28253      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28254      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28255      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28256      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28257      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28258      examples/msg/run_msg_test                                  \
28259      examples/simdag/test_simdag                                \
28260     ; do                                                        \
28261       test -e $file && chmod +x $file;                          \
28262     done
28263  ;;
28264     "examples/gras/all2all/Makefile":F)
28265     for file in                                                 \
28266      \
28267      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28268      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28269      \
28270      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28271      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28272      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28273      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28274      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28275      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28276      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28277      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28278      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28279      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28280      examples/msg/run_msg_test                                  \
28281      examples/simdag/test_simdag                                \
28282     ; do                                                        \
28283       test -e $file && chmod +x $file;                          \
28284     done
28285  ;;
28286     "examples/gras/all2all/test_sg":F)
28287     for file in                                                 \
28288      \
28289      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28290      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28291      \
28292      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28293      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28294      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28295      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28296      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28297      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28298      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28299      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28300      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28301      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28302      examples/msg/run_msg_test                                  \
28303      examples/simdag/test_simdag                                \
28304     ; do                                                        \
28305       test -e $file && chmod +x $file;                          \
28306     done
28307  ;;
28308     "examples/gras/all2all/test_rl":F)
28309     for file in                                                 \
28310      \
28311      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28312      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28313      \
28314      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28315      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28316      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28317      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28318      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28319      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28320      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28321      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28322      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28323      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28324      examples/msg/run_msg_test                                  \
28325      examples/simdag/test_simdag                                \
28326     ; do                                                        \
28327       test -e $file && chmod +x $file;                          \
28328     done
28329  ;;
28330     "examples/gras/p2p/Makefile":F)
28331     for file in                                                 \
28332      \
28333      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28334      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28335      \
28336      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28337      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28338      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28339      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28340      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28341      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28342      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28343      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28344      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28345      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28346      examples/msg/run_msg_test                                  \
28347      examples/simdag/test_simdag                                \
28348     ; do                                                        \
28349       test -e $file && chmod +x $file;                          \
28350     done
28351  ;;
28352     "examples/gras/p2p/chord/Makefile":F)
28353     for file in                                                 \
28354      \
28355      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28356      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28357      \
28358      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28359      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28360      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28361      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28362      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28363      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28364      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28365      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28366      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28367      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28368      examples/msg/run_msg_test                                  \
28369      examples/simdag/test_simdag                                \
28370     ; do                                                        \
28371       test -e $file && chmod +x $file;                          \
28372     done
28373  ;;
28374     "examples/gras/p2p/chord/test_sg":F)
28375     for file in                                                 \
28376      \
28377      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28378      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28379      \
28380      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28381      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28382      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28383      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28384      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28385      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28386      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28387      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28388      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28389      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28390      examples/msg/run_msg_test                                  \
28391      examples/simdag/test_simdag                                \
28392     ; do                                                        \
28393       test -e $file && chmod +x $file;                          \
28394     done
28395  ;;
28396     "examples/gras/p2p/chord/test_rl":F)
28397     for file in                                                 \
28398      \
28399      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28400      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28401      \
28402      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28403      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28404      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28405      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28406      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28407      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28408      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28409      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28410      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28411      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28412      examples/msg/run_msg_test                                  \
28413      examples/simdag/test_simdag                                \
28414     ; do                                                        \
28415       test -e $file && chmod +x $file;                          \
28416     done
28417  ;;
28418     "examples/gras/p2p/can/Makefile":F)
28419     for file in                                                 \
28420      \
28421      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28422      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28423      \
28424      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28425      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28426      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28427      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28428      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28429      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28430      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28431      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28432      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28433      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28434      examples/msg/run_msg_test                                  \
28435      examples/simdag/test_simdag                                \
28436     ; do                                                        \
28437       test -e $file && chmod +x $file;                          \
28438     done
28439  ;;
28440     "examples/gras/p2p/can/test_sg":F)
28441     for file in                                                 \
28442      \
28443      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28444      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28445      \
28446      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28447      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28448      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28449      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28450      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28451      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28452      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28453      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28454      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28455      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28456      examples/msg/run_msg_test                                  \
28457      examples/simdag/test_simdag                                \
28458     ; do                                                        \
28459       test -e $file && chmod +x $file;                          \
28460     done
28461  ;;
28462     "examples/gras/p2p/can/test_rl":F)
28463     for file in                                                 \
28464      \
28465      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28466      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28467      \
28468      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28469      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28470      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28471      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28472      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28473      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28474      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28475      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28476      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28477      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28478      examples/msg/run_msg_test                                  \
28479      examples/simdag/test_simdag                                \
28480     ; do                                                        \
28481       test -e $file && chmod +x $file;                          \
28482     done
28483  ;;
28484     "examples/amok/Makefile":F)
28485     for file in                                                 \
28486      \
28487      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28488      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28489      \
28490      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28491      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28492      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28493      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28494      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28495      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28496      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28497      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28498      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28499      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28500      examples/msg/run_msg_test                                  \
28501      examples/simdag/test_simdag                                \
28502     ; do                                                        \
28503       test -e $file && chmod +x $file;                          \
28504     done
28505  ;;
28506     "examples/amok/bandwidth/Makefile":F)
28507     for file in                                                 \
28508      \
28509      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28510      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28511      \
28512      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28513      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28514      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28515      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28516      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28517      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28518      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28519      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28520      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28521      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28522      examples/msg/run_msg_test                                  \
28523      examples/simdag/test_simdag                                \
28524     ; do                                                        \
28525       test -e $file && chmod +x $file;                          \
28526     done
28527  ;;
28528     "examples/amok/bandwidth/test_sg":F)
28529     for file in                                                 \
28530      \
28531      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28532      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28533      \
28534      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28535      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28536      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28537      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28538      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28539      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28540      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28541      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28542      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28543      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28544      examples/msg/run_msg_test                                  \
28545      examples/simdag/test_simdag                                \
28546     ; do                                                        \
28547       test -e $file && chmod +x $file;                          \
28548     done
28549  ;;
28550     "examples/amok/bandwidth/test_rl":F)
28551     for file in                                                 \
28552      \
28553      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28554      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28555      \
28556      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28557      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28558      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28559      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28560      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28561      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28562      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28563      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28564      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28565      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28566      examples/msg/run_msg_test                                  \
28567      examples/simdag/test_simdag                                \
28568     ; do                                                        \
28569       test -e $file && chmod +x $file;                          \
28570     done
28571  ;;
28572     "examples/amok/saturate/Makefile":F)
28573     for file in                                                 \
28574      \
28575      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28576      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28577      \
28578      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28579      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28580      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28581      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28582      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28583      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28584      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28585      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28586      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28587      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28588      examples/msg/run_msg_test                                  \
28589      examples/simdag/test_simdag                                \
28590     ; do                                                        \
28591       test -e $file && chmod +x $file;                          \
28592     done
28593  ;;
28594     "examples/amok/saturate/test_sg":F)
28595     for file in                                                 \
28596      \
28597      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28598      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28599      \
28600      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28601      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28602      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28603      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28604      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28605      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28606      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28607      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28608      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28609      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28610      examples/msg/run_msg_test                                  \
28611      examples/simdag/test_simdag                                \
28612     ; do                                                        \
28613       test -e $file && chmod +x $file;                          \
28614     done
28615  ;;
28616     "examples/amok/saturate/test_rl":F)
28617     for file in                                                 \
28618      \
28619      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
28620      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
28621      \
28622      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
28623      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
28624      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
28625      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
28626      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
28627      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
28628      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
28629      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
28630      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
28631      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
28632      examples/msg/run_msg_test                                  \
28633      examples/simdag/test_simdag                                \
28634     ; do                                                        \
28635       test -e $file && chmod +x $file;                          \
28636     done
28637  ;;
28638
28639   esac
28640 done # for ac_tag
28641
28642
28643 { (exit 0); exit 0; }
28644 _ACEOF
28645 chmod +x $CONFIG_STATUS
28646 ac_clean_files=$ac_clean_files_save
28647
28648
28649 # configure is writing to config.log, and then calls config.status.
28650 # config.status does its own redirection, appending to config.log.
28651 # Unfortunately, on DOS this fails, as config.log is still kept open
28652 # by configure, so config.status won't be able to write to it; its
28653 # output is simply discarded.  So we exec the FD to /dev/null,
28654 # effectively closing config.log, so it can be properly (re)opened and
28655 # appended to by config.status.  When coming back to configure, we
28656 # need to make the FD available again.
28657 if test "$no_create" != yes; then
28658   ac_cs_success=:
28659   ac_config_status_args=
28660   test "$silent" = yes &&
28661     ac_config_status_args="$ac_config_status_args --quiet"
28662   exec 5>/dev/null
28663   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28664   exec 5>>config.log
28665   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28666   # would make configure fail if this is the last instruction.
28667   $ac_cs_success || { (exit 1); exit 1; }
28668 fi
28669
28670
28671 echo "
28672
28673 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28674
28675         Compiler:        ${CC} (version: ${GCC_VERSION})
28676
28677         CFlags:          ${CFLAGS}
28678         CPPFlags:        ${CPPFLAGS}
28679         LDFlags:         ${LDFLAGS}
28680
28681         Context backend: ${with_context}
28682 "
28683
28684 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28685   echo "WARNING:"
28686   echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28687   echo "WARNING: You may want to enable this by specifying:"
28688   echo "WARNING:"
28689   echo "WARNING: ./configure --enable-maintainer-mode  $ac_configure_args"
28690   echo "WARNING:"
28691 fi
28692 echo $build_id > stamp.configure
28693
28694 exit 0;