Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Strict ANSI compilers (such as microsoft ones) do not allow non-constant initializers...
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 5053 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for simgrid 3.3-svn.
5 #
6 # Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 case X$ECHO in
560 X*--fallback-echo)
561   # Remove one level of quotation (which was required for Make).
562   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563   ;;
564 esac
565
566 echo=${ECHO-echo}
567 if test "X$1" = X--no-reexec; then
568   # Discard the --no-reexec flag, and continue.
569   shift
570 elif test "X$1" = X--fallback-echo; then
571   # Avoid inline document here, it may be left over
572   :
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574   # Yippee, $echo works!
575   :
576 else
577   # Restart under the correct shell.
578   exec $SHELL "$0" --no-reexec ${1+"$@"}
579 fi
580
581 if test "X$1" = X--fallback-echo; then
582   # used as fallback echo
583   shift
584   cat <<EOF
585 $*
586 EOF
587   exit 0
588 fi
589
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 # if CDPATH is set.
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600        echo_test_string=`eval $cmd` &&
601        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602     then
603       break
604     fi
605   done
606 fi
607
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610    test "X$echo_testing_string" = "X$echo_test_string"; then
611   :
612 else
613   # The Solaris, AIX, and Digital Unix default echo programs unquote
614   # backslashes.  This makes it impossible to quote backslashes using
615   #   echo "$something" | sed 's/\\/\\\\/g'
616   #
617   # So, first we look for a working echo in the user's PATH.
618
619   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620   for dir in $PATH /usr/ucb; do
621     IFS="$lt_save_ifs"
622     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625        test "X$echo_testing_string" = "X$echo_test_string"; then
626       echo="$dir/echo"
627       break
628     fi
629   done
630   IFS="$lt_save_ifs"
631
632   if test "X$echo" = Xecho; then
633     # We didn't find a better echo, so look for alternatives.
634     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636        test "X$echo_testing_string" = "X$echo_test_string"; then
637       # This shell has a builtin print -r that does the trick.
638       echo='print -r'
639     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640          test "X$CONFIG_SHELL" != X/bin/ksh; then
641       # If we have ksh, try running configure again with it.
642       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643       export ORIGINAL_CONFIG_SHELL
644       CONFIG_SHELL=/bin/ksh
645       export CONFIG_SHELL
646       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647     else
648       # Try using printf.
649       echo='printf %s\n'
650       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652          test "X$echo_testing_string" = "X$echo_test_string"; then
653         # Cool, printf works
654         :
655       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656            test "X$echo_testing_string" = 'X\t' &&
657            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658            test "X$echo_testing_string" = "X$echo_test_string"; then
659         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660         export CONFIG_SHELL
661         SHELL="$CONFIG_SHELL"
662         export SHELL
663         echo="$CONFIG_SHELL $0 --fallback-echo"
664       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665            test "X$echo_testing_string" = 'X\t' &&
666            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667            test "X$echo_testing_string" = "X$echo_test_string"; then
668         echo="$CONFIG_SHELL $0 --fallback-echo"
669       else
670         # maybe with a smaller string...
671         prev=:
672
673         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675           then
676             break
677           fi
678           prev="$cmd"
679         done
680
681         if test "$prev" != 'sed 50q "$0"'; then
682           echo_test_string=`eval $prev`
683           export echo_test_string
684           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685         else
686           # Oops.  We lost completely, so just stick with echo.
687           echo=echo
688         fi
689       fi
690     fi
691   fi
692 fi
693 fi
694
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
697 ECHO=$echo
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
700 fi
701
702
703
704
705 tagnames=${tagnames+${tagnames},}CXX
706
707 tagnames=${tagnames+${tagnames},}F77
708
709 tagnames=${tagnames+${tagnames},}GCJ
710
711 exec 7<&0 </dev/null 6>&1
712
713 # Name of the host.
714 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
715 # so uname gets run too.
716 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
717
718 #
719 # Initializations.
720 #
721 ac_default_prefix=/usr/local
722 ac_clean_files=
723 ac_config_libobj_dir=.
724 LIBOBJS=
725 cross_compiling=no
726 subdirs=
727 MFLAGS=
728 MAKEFLAGS=
729 SHELL=${CONFIG_SHELL-/bin/sh}
730
731 # Identity of this package.
732 PACKAGE_NAME='simgrid'
733 PACKAGE_TARNAME='simgrid'
734 PACKAGE_VERSION='3.3-svn'
735 PACKAGE_STRING='simgrid 3.3-svn'
736 PACKAGE_BUGREPORT='simgrid-devel@lists.gforge.inria.fr'
737
738 ac_unique_file="include/gras.h"
739 # Factoring default headers for most tests.
740 ac_includes_default="\
741 #include <stdio.h>
742 #ifdef HAVE_SYS_TYPES_H
743 # include <sys/types.h>
744 #endif
745 #ifdef HAVE_SYS_STAT_H
746 # include <sys/stat.h>
747 #endif
748 #ifdef STDC_HEADERS
749 # include <stdlib.h>
750 # include <stddef.h>
751 #else
752 # ifdef HAVE_STDLIB_H
753 #  include <stdlib.h>
754 # endif
755 #endif
756 #ifdef HAVE_STRING_H
757 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758 #  include <memory.h>
759 # endif
760 # include <string.h>
761 #endif
762 #ifdef HAVE_STRINGS_H
763 # include <strings.h>
764 #endif
765 #ifdef HAVE_INTTYPES_H
766 # include <inttypes.h>
767 #endif
768 #ifdef HAVE_STDINT_H
769 # include <stdint.h>
770 #endif
771 #ifdef HAVE_UNISTD_H
772 # include <unistd.h>
773 #endif"
774
775 ac_subst_vars='SHELL
776 PATH_SEPARATOR
777 PACKAGE_NAME
778 PACKAGE_TARNAME
779 PACKAGE_VERSION
780 PACKAGE_STRING
781 PACKAGE_BUGREPORT
782 exec_prefix
783 prefix
784 program_transform_name
785 bindir
786 sbindir
787 libexecdir
788 datarootdir
789 datadir
790 sysconfdir
791 sharedstatedir
792 localstatedir
793 includedir
794 oldincludedir
795 docdir
796 infodir
797 htmldir
798 dvidir
799 pdfdir
800 psdir
801 libdir
802 localedir
803 mandir
804 DEFS
805 ECHO_C
806 ECHO_N
807 ECHO_T
808 LIBS
809 build_alias
810 host_alias
811 target_alias
812 build
813 build_cpu
814 build_vendor
815 build_os
816 host
817 host_cpu
818 host_vendor
819 host_os
820 target
821 target_cpu
822 target_vendor
823 target_os
824 GCJ
825 GCJFLAGS
826 am__leading_dot
827 DEPDIR
828 am__include
829 am__quote
830 AMDEP_TRUE
831 AMDEP_FALSE
832 AMDEPBACKSLASH
833 GCJDEPMODE
834 am__fastdepGCJ_TRUE
835 am__fastdepGCJ_FALSE
836 INSTALL_PROGRAM
837 INSTALL_SCRIPT
838 INSTALL_DATA
839 am__isrc
840 CYGPATH_W
841 PACKAGE
842 VERSION
843 ACLOCAL
844 AUTOCONF
845 AUTOMAKE
846 AUTOHEADER
847 MAKEINFO
848 install_sh
849 STRIP
850 INSTALL_STRIP_PROGRAM
851 mkdir_p
852 AWK
853 SET_MAKE
854 AMTAR
855 am__tar
856 am__untar
857 CC
858 CFLAGS
859 LDFLAGS
860 CPPFLAGS
861 ac_ct_CC
862 EXEEXT
863 OBJEXT
864 CCDEPMODE
865 am__fastdepCC_TRUE
866 am__fastdepCC_FALSE
867 SED
868 GREP
869 EGREP
870 LN_S
871 ECHO
872 AR
873 RANLIB
874 DSYMUTIL
875 NMEDIT
876 DLLTOOL
877 AS
878 OBJDUMP
879 CPP
880 CXX
881 CXXFLAGS
882 ac_ct_CXX
883 CXXDEPMODE
884 am__fastdepCXX_TRUE
885 am__fastdepCXX_FALSE
886 CXXCPP
887 LIBTOOL
888 LIBOBJS
889 GRAS_ARCH_32_BITS_TRUE
890 GRAS_ARCH_32_BITS_FALSE
891 IS_WINDOWS_TRUE
892 IS_WINDOWS_FALSE
893 CONTEXT_THREADS_TRUE
894 CONTEXT_THREADS_FALSE
895 PTH_STACK_GROWTH
896 pth_skaddr_makecontext
897 pth_sksize_makecontext
898 HAVE_GTNETS_TRUE
899 HAVE_GTNETS_FALSE
900 HAVE_SDP_TRUE
901 HAVE_SDP_FALSE
902 SIMGRID_DEP
903 SMPI_DEP
904 GRAS_DEP
905 GRAMINE_MODE_TRUE
906 GRAMINE_MODE_FALSE
907 MAINTAINER_MODE_TRUE
908 MAINTAINER_MODE_FALSE
909 MAINT
910 LD_DYNAMIC_FLAGS
911 AM_CPPFLAGS
912 abs_builddir
913 abs_srcdir
914 abs_top_builddir
915 abs_top_srcdir
916 BOTBUILD_MODE_TRUE
917 BOTBUILD_MODE_FALSE
918 JAVAC
919 JAVA
920 JAR
921 HAVE_JAVA_TRUE
922 HAVE_JAVA_FALSE
923 BASH
924 WARNING
925 LEX
926 LEX_OUTPUT_ROOT
927 LEXLIB
928 FLEXML
929 HAVE_FLEXML_TRUE
930 HAVE_FLEXML_FALSE
931 DOXYGEN
932 ADDR2LINE
933 ac_configure_args
934 MD5SUM
935 build_id
936 LTLIBOBJS'
937 ac_subst_files=''
938       ac_precious_vars='build_alias
939 host_alias
940 target_alias
941 CC
942 CFLAGS
943 LDFLAGS
944 LIBS
945 CPPFLAGS
946 CPP
947 CXX
948 CXXFLAGS
949 CCC
950 CXXCPP'
951
952
953 # Initialize some variables set by options.
954 ac_init_help=
955 ac_init_version=false
956 # The variables have the same names as the options, with
957 # dashes changed to underlines.
958 cache_file=/dev/null
959 exec_prefix=NONE
960 no_create=
961 no_recursion=
962 prefix=NONE
963 program_prefix=NONE
964 program_suffix=NONE
965 program_transform_name=s,x,x,
966 silent=
967 site=
968 srcdir=
969 verbose=
970 x_includes=NONE
971 x_libraries=NONE
972
973 # Installation directory options.
974 # These are left unexpanded so users can "make install exec_prefix=/foo"
975 # and all the variables that are supposed to be based on exec_prefix
976 # by default will actually change.
977 # Use braces instead of parens because sh, perl, etc. also accept them.
978 # (The list follows the same order as the GNU Coding Standards.)
979 bindir='${exec_prefix}/bin'
980 sbindir='${exec_prefix}/sbin'
981 libexecdir='${exec_prefix}/libexec'
982 datarootdir='${prefix}/share'
983 datadir='${datarootdir}'
984 sysconfdir='${prefix}/etc'
985 sharedstatedir='${prefix}/com'
986 localstatedir='${prefix}/var'
987 includedir='${prefix}/include'
988 oldincludedir='/usr/include'
989 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
990 infodir='${datarootdir}/info'
991 htmldir='${docdir}'
992 dvidir='${docdir}'
993 pdfdir='${docdir}'
994 psdir='${docdir}'
995 libdir='${exec_prefix}/lib'
996 localedir='${datarootdir}/locale'
997 mandir='${datarootdir}/man'
998
999 ac_prev=
1000 ac_dashdash=
1001 for ac_option
1002 do
1003   # If the previous option needs an argument, assign it.
1004   if test -n "$ac_prev"; then
1005     eval $ac_prev=\$ac_option
1006     ac_prev=
1007     continue
1008   fi
1009
1010   case $ac_option in
1011   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012   *)    ac_optarg=yes ;;
1013   esac
1014
1015   # Accept the important Cygnus configure options, so we can diagnose typos.
1016
1017   case $ac_dashdash$ac_option in
1018   --)
1019     ac_dashdash=yes ;;
1020
1021   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022     ac_prev=bindir ;;
1023   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1024     bindir=$ac_optarg ;;
1025
1026   -build | --build | --buil | --bui | --bu)
1027     ac_prev=build_alias ;;
1028   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1029     build_alias=$ac_optarg ;;
1030
1031   -cache-file | --cache-file | --cache-fil | --cache-fi \
1032   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1033     ac_prev=cache_file ;;
1034   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1035   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1036     cache_file=$ac_optarg ;;
1037
1038   --config-cache | -C)
1039     cache_file=config.cache ;;
1040
1041   -datadir | --datadir | --datadi | --datad)
1042     ac_prev=datadir ;;
1043   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1044     datadir=$ac_optarg ;;
1045
1046   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1047   | --dataroo | --dataro | --datar)
1048     ac_prev=datarootdir ;;
1049   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1050   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1051     datarootdir=$ac_optarg ;;
1052
1053   -disable-* | --disable-*)
1054     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055     # Reject names that are not valid shell variable names.
1056     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1057       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1058    { (exit 1); exit 1; }; }
1059     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1060     eval enable_$ac_feature=no ;;
1061
1062   -docdir | --docdir | --docdi | --doc | --do)
1063     ac_prev=docdir ;;
1064   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065     docdir=$ac_optarg ;;
1066
1067   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068     ac_prev=dvidir ;;
1069   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070     dvidir=$ac_optarg ;;
1071
1072   -enable-* | --enable-*)
1073     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074     # Reject names that are not valid shell variable names.
1075     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1076       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077    { (exit 1); exit 1; }; }
1078     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1079     eval enable_$ac_feature=\$ac_optarg ;;
1080
1081   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083   | --exec | --exe | --ex)
1084     ac_prev=exec_prefix ;;
1085   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087   | --exec=* | --exe=* | --ex=*)
1088     exec_prefix=$ac_optarg ;;
1089
1090   -gas | --gas | --ga | --g)
1091     # Obsolete; use --with-gas.
1092     with_gas=yes ;;
1093
1094   -help | --help | --hel | --he | -h)
1095     ac_init_help=long ;;
1096   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097     ac_init_help=recursive ;;
1098   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099     ac_init_help=short ;;
1100
1101   -host | --host | --hos | --ho)
1102     ac_prev=host_alias ;;
1103   -host=* | --host=* | --hos=* | --ho=*)
1104     host_alias=$ac_optarg ;;
1105
1106   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107     ac_prev=htmldir ;;
1108   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109   | --ht=*)
1110     htmldir=$ac_optarg ;;
1111
1112   -includedir | --includedir | --includedi | --included | --include \
1113   | --includ | --inclu | --incl | --inc)
1114     ac_prev=includedir ;;
1115   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116   | --includ=* | --inclu=* | --incl=* | --inc=*)
1117     includedir=$ac_optarg ;;
1118
1119   -infodir | --infodir | --infodi | --infod | --info | --inf)
1120     ac_prev=infodir ;;
1121   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122     infodir=$ac_optarg ;;
1123
1124   -libdir | --libdir | --libdi | --libd)
1125     ac_prev=libdir ;;
1126   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127     libdir=$ac_optarg ;;
1128
1129   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130   | --libexe | --libex | --libe)
1131     ac_prev=libexecdir ;;
1132   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133   | --libexe=* | --libex=* | --libe=*)
1134     libexecdir=$ac_optarg ;;
1135
1136   -localedir | --localedir | --localedi | --localed | --locale)
1137     ac_prev=localedir ;;
1138   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139     localedir=$ac_optarg ;;
1140
1141   -localstatedir | --localstatedir | --localstatedi | --localstated \
1142   | --localstate | --localstat | --localsta | --localst | --locals)
1143     ac_prev=localstatedir ;;
1144   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146     localstatedir=$ac_optarg ;;
1147
1148   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149     ac_prev=mandir ;;
1150   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151     mandir=$ac_optarg ;;
1152
1153   -nfp | --nfp | --nf)
1154     # Obsolete; use --without-fp.
1155     with_fp=no ;;
1156
1157   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158   | --no-cr | --no-c | -n)
1159     no_create=yes ;;
1160
1161   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163     no_recursion=yes ;;
1164
1165   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167   | --oldin | --oldi | --old | --ol | --o)
1168     ac_prev=oldincludedir ;;
1169   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172     oldincludedir=$ac_optarg ;;
1173
1174   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175     ac_prev=prefix ;;
1176   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177     prefix=$ac_optarg ;;
1178
1179   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180   | --program-pre | --program-pr | --program-p)
1181     ac_prev=program_prefix ;;
1182   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184     program_prefix=$ac_optarg ;;
1185
1186   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187   | --program-suf | --program-su | --program-s)
1188     ac_prev=program_suffix ;;
1189   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191     program_suffix=$ac_optarg ;;
1192
1193   -program-transform-name | --program-transform-name \
1194   | --program-transform-nam | --program-transform-na \
1195   | --program-transform-n | --program-transform- \
1196   | --program-transform | --program-transfor \
1197   | --program-transfo | --program-transf \
1198   | --program-trans | --program-tran \
1199   | --progr-tra | --program-tr | --program-t)
1200     ac_prev=program_transform_name ;;
1201   -program-transform-name=* | --program-transform-name=* \
1202   | --program-transform-nam=* | --program-transform-na=* \
1203   | --program-transform-n=* | --program-transform-=* \
1204   | --program-transform=* | --program-transfor=* \
1205   | --program-transfo=* | --program-transf=* \
1206   | --program-trans=* | --program-tran=* \
1207   | --progr-tra=* | --program-tr=* | --program-t=*)
1208     program_transform_name=$ac_optarg ;;
1209
1210   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211     ac_prev=pdfdir ;;
1212   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213     pdfdir=$ac_optarg ;;
1214
1215   -psdir | --psdir | --psdi | --psd | --ps)
1216     ac_prev=psdir ;;
1217   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218     psdir=$ac_optarg ;;
1219
1220   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221   | -silent | --silent | --silen | --sile | --sil)
1222     silent=yes ;;
1223
1224   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225     ac_prev=sbindir ;;
1226   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227   | --sbi=* | --sb=*)
1228     sbindir=$ac_optarg ;;
1229
1230   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232   | --sharedst | --shareds | --shared | --share | --shar \
1233   | --sha | --sh)
1234     ac_prev=sharedstatedir ;;
1235   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238   | --sha=* | --sh=*)
1239     sharedstatedir=$ac_optarg ;;
1240
1241   -site | --site | --sit)
1242     ac_prev=site ;;
1243   -site=* | --site=* | --sit=*)
1244     site=$ac_optarg ;;
1245
1246   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247     ac_prev=srcdir ;;
1248   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249     srcdir=$ac_optarg ;;
1250
1251   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252   | --syscon | --sysco | --sysc | --sys | --sy)
1253     ac_prev=sysconfdir ;;
1254   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256     sysconfdir=$ac_optarg ;;
1257
1258   -target | --target | --targe | --targ | --tar | --ta | --t)
1259     ac_prev=target_alias ;;
1260   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261     target_alias=$ac_optarg ;;
1262
1263   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264     verbose=yes ;;
1265
1266   -version | --version | --versio | --versi | --vers | -V)
1267     ac_init_version=: ;;
1268
1269   -with-* | --with-*)
1270     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271     # Reject names that are not valid shell variable names.
1272     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273       { echo "$as_me: error: invalid package name: $ac_package" >&2
1274    { (exit 1); exit 1; }; }
1275     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1276     eval with_$ac_package=\$ac_optarg ;;
1277
1278   -without-* | --without-*)
1279     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280     # Reject names that are not valid shell variable names.
1281     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282       { echo "$as_me: error: invalid package name: $ac_package" >&2
1283    { (exit 1); exit 1; }; }
1284     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1285     eval with_$ac_package=no ;;
1286
1287   --x)
1288     # Obsolete; use --with-x.
1289     with_x=yes ;;
1290
1291   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292   | --x-incl | --x-inc | --x-in | --x-i)
1293     ac_prev=x_includes ;;
1294   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296     x_includes=$ac_optarg ;;
1297
1298   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300     ac_prev=x_libraries ;;
1301   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303     x_libraries=$ac_optarg ;;
1304
1305   -*) { echo "$as_me: error: unrecognized option: $ac_option
1306 Try \`$0 --help' for more information." >&2
1307    { (exit 1); exit 1; }; }
1308     ;;
1309
1310   *=*)
1311     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1312     # Reject names that are not valid shell variable names.
1313     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1314       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1315    { (exit 1); exit 1; }; }
1316     eval $ac_envvar=\$ac_optarg
1317     export $ac_envvar ;;
1318
1319   *)
1320     # FIXME: should be removed in autoconf 3.0.
1321     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1325     ;;
1326
1327   esac
1328 done
1329
1330 if test -n "$ac_prev"; then
1331   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332   { echo "$as_me: error: missing argument to $ac_option" >&2
1333    { (exit 1); exit 1; }; }
1334 fi
1335
1336 # Be sure to have absolute directory names.
1337 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338                 datadir sysconfdir sharedstatedir localstatedir includedir \
1339                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340                 libdir localedir mandir
1341 do
1342   eval ac_val=\$$ac_var
1343   case $ac_val in
1344     [\\/$]* | ?:[\\/]* )  continue;;
1345     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1346   esac
1347   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1348    { (exit 1); exit 1; }; }
1349 done
1350
1351 # There might be people who depend on the old broken behavior: `$host'
1352 # used to hold the argument of --host etc.
1353 # FIXME: To remove some day.
1354 build=$build_alias
1355 host=$host_alias
1356 target=$target_alias
1357
1358 # FIXME: To remove some day.
1359 if test "x$host_alias" != x; then
1360   if test "x$build_alias" = x; then
1361     cross_compiling=maybe
1362     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1363     If a cross compiler is detected then cross compile mode will be used." >&2
1364   elif test "x$build_alias" != "x$host_alias"; then
1365     cross_compiling=yes
1366   fi
1367 fi
1368
1369 ac_tool_prefix=
1370 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1371
1372 test "$silent" = yes && exec 6>/dev/null
1373
1374
1375 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1376 ac_ls_di=`ls -di .` &&
1377 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1378   { echo "$as_me: error: Working directory cannot be determined" >&2
1379    { (exit 1); exit 1; }; }
1380 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1381   { echo "$as_me: error: pwd does not report name of working directory" >&2
1382    { (exit 1); exit 1; }; }
1383
1384
1385 # Find the source files, if location was not specified.
1386 if test -z "$srcdir"; then
1387   ac_srcdir_defaulted=yes
1388   # Try the directory containing this script, then the parent directory.
1389   ac_confdir=`$as_dirname -- "$0" ||
1390 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1391          X"$0" : 'X\(//\)[^/]' \| \
1392          X"$0" : 'X\(//\)$' \| \
1393          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1394 echo X"$0" |
1395     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1396             s//\1/
1397             q
1398           }
1399           /^X\(\/\/\)[^/].*/{
1400             s//\1/
1401             q
1402           }
1403           /^X\(\/\/\)$/{
1404             s//\1/
1405             q
1406           }
1407           /^X\(\/\).*/{
1408             s//\1/
1409             q
1410           }
1411           s/.*/./; q'`
1412   srcdir=$ac_confdir
1413   if test ! -r "$srcdir/$ac_unique_file"; then
1414     srcdir=..
1415   fi
1416 else
1417   ac_srcdir_defaulted=no
1418 fi
1419 if test ! -r "$srcdir/$ac_unique_file"; then
1420   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1421   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1422    { (exit 1); exit 1; }; }
1423 fi
1424 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425 ac_abs_confdir=`(
1426         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1427    { (exit 1); exit 1; }; }
1428         pwd)`
1429 # When building in place, set srcdir=.
1430 if test "$ac_abs_confdir" = "$ac_pwd"; then
1431   srcdir=.
1432 fi
1433 # Remove unnecessary trailing slashes from srcdir.
1434 # Double slashes in file names in object file debugging info
1435 # mess up M-x gdb in Emacs.
1436 case $srcdir in
1437 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438 esac
1439 for ac_var in $ac_precious_vars; do
1440   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1441   eval ac_env_${ac_var}_value=\$${ac_var}
1442   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1443   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444 done
1445
1446 #
1447 # Report the --help message.
1448 #
1449 if test "$ac_init_help" = "long"; then
1450   # Omit some internal or obsolete options to make the list less imposing.
1451   # This message is too long to be a string in the A/UX 3.1 sh.
1452   cat <<_ACEOF
1453 \`configure' configures simgrid 3.3-svn to adapt to many kinds of systems.
1454
1455 Usage: $0 [OPTION]... [VAR=VALUE]...
1456
1457 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458 VAR=VALUE.  See below for descriptions of some of the useful variables.
1459
1460 Defaults for the options are specified in brackets.
1461
1462 Configuration:
1463   -h, --help              display this help and exit
1464       --help=short        display options specific to this package
1465       --help=recursive    display the short help of all the included packages
1466   -V, --version           display version information and exit
1467   -q, --quiet, --silent   do not print \`checking...' messages
1468       --cache-file=FILE   cache test results in FILE [disabled]
1469   -C, --config-cache      alias for \`--cache-file=config.cache'
1470   -n, --no-create         do not create output files
1471       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1472
1473 Installation directories:
1474   --prefix=PREFIX         install architecture-independent files in PREFIX
1475                           [$ac_default_prefix]
1476   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1477                           [PREFIX]
1478
1479 By default, \`make install' will install all the files in
1480 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1481 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482 for instance \`--prefix=\$HOME'.
1483
1484 For better control, use the options below.
1485
1486 Fine tuning of the installation directories:
1487   --bindir=DIR           user executables [EPREFIX/bin]
1488   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1489   --libexecdir=DIR       program executables [EPREFIX/libexec]
1490   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1491   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1492   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1493   --libdir=DIR           object code libraries [EPREFIX/lib]
1494   --includedir=DIR       C header files [PREFIX/include]
1495   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1496   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1497   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1498   --infodir=DIR          info documentation [DATAROOTDIR/info]
1499   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1500   --mandir=DIR           man documentation [DATAROOTDIR/man]
1501   --docdir=DIR           documentation root [DATAROOTDIR/doc/simgrid]
1502   --htmldir=DIR          html documentation [DOCDIR]
1503   --dvidir=DIR           dvi documentation [DOCDIR]
1504   --pdfdir=DIR           pdf documentation [DOCDIR]
1505   --psdir=DIR            ps documentation [DOCDIR]
1506 _ACEOF
1507
1508   cat <<\_ACEOF
1509
1510 Program names:
1511   --program-prefix=PREFIX            prepend PREFIX to installed program names
1512   --program-suffix=SUFFIX            append SUFFIX to installed program names
1513   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1514
1515 System types:
1516   --build=BUILD     configure for building on BUILD [guessed]
1517   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1518   --target=TARGET   configure for building compilers for TARGET [HOST]
1519 _ACEOF
1520 fi
1521
1522 if test -n "$ac_init_help"; then
1523   case $ac_init_help in
1524      short | recursive ) echo "Configuration of simgrid 3.3-svn:";;
1525    esac
1526   cat <<\_ACEOF
1527
1528 Optional Features:
1529   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1530   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1531   --disable-dependency-tracking  speeds up one-time build
1532   --enable-dependency-tracking   do not reject slow dependency extractors
1533   --enable-shared[=PKGS]  build shared libraries [default=yes]
1534   --enable-static[=PKGS]  build static libraries [default=yes]
1535   --enable-fast-install[=PKGS]
1536                           optimize for fast installation [default=yes]
1537   --disable-libtool-lock  avoid locking (might break parallel builds)
1538   --enable-maintainer-mode  enable make rules and dependencies not useful
1539                           (and sometimes confusing) to the casual installer
1540   --enable-compile-warnings
1541                           use compiler warnings (default=no, unless in
1542                           maintainer mode)
1543   --disable-compile-optimizations
1544                           use compiler optimizations (default=yes, unless if
1545                           CFLAGS is explicitly set)
1546   --enable-botbuild       Compilation mode for build daemons -- do not use it
1547   --disable-java          To not compile the Java bindings even if the tools
1548                           are found
1549
1550 Optional Packages:
1551   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1552   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1553   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1554   --with-pic              try to use only PIC/non-PIC objects [default=use
1555                           both]
1556   --with-tags[=TAGS]      include additional configurations [automatic]
1557   --with-pthread   Use pthread instead of ucontext.
1558   --with-pthreads   Use pthread instead of ucontext.
1559   --with-context=ucontext/pthread   Use either (System V) swapcontext or pthread [default=auto].
1560   --with-gtnets           Path to GTNetS installation (default to empty, ie
1561                           not using GTNetS)
1562   --with-csdp             Path to csdp installation (default to empty, i.e.
1563                           not using csdp)
1564
1565 Some influential environment variables:
1566   CC          C compiler command
1567   CFLAGS      C compiler flags
1568   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1569               nonstandard directory <lib dir>
1570   LIBS        libraries to pass to the linker, e.g. -l<library>
1571   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1572               you have headers in a nonstandard directory <include dir>
1573   CPP         C preprocessor
1574   CXX         C++ compiler command
1575   CXXFLAGS    C++ compiler flags
1576   CXXCPP      C++ preprocessor
1577
1578 Use these variables to override the choices made by `configure' or to help
1579 it to find libraries and programs with nonstandard names/locations.
1580
1581 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1582 _ACEOF
1583 ac_status=$?
1584 fi
1585
1586 if test "$ac_init_help" = "recursive"; then
1587   # If there are subdirs, report their specific --help.
1588   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1589     test -d "$ac_dir" || continue
1590     ac_builddir=.
1591
1592 case "$ac_dir" in
1593 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 *)
1595   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1596   # A ".." for each directory in $ac_dir_suffix.
1597   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1598   case $ac_top_builddir_sub in
1599   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1601   esac ;;
1602 esac
1603 ac_abs_top_builddir=$ac_pwd
1604 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1605 # for backward compatibility:
1606 ac_top_builddir=$ac_top_build_prefix
1607
1608 case $srcdir in
1609   .)  # We are building in place.
1610     ac_srcdir=.
1611     ac_top_srcdir=$ac_top_builddir_sub
1612     ac_abs_top_srcdir=$ac_pwd ;;
1613   [\\/]* | ?:[\\/]* )  # Absolute name.
1614     ac_srcdir=$srcdir$ac_dir_suffix;
1615     ac_top_srcdir=$srcdir
1616     ac_abs_top_srcdir=$srcdir ;;
1617   *) # Relative name.
1618     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1619     ac_top_srcdir=$ac_top_build_prefix$srcdir
1620     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1621 esac
1622 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1623
1624     cd "$ac_dir" || { ac_status=$?; continue; }
1625     # Check for guested configure.
1626     if test -f "$ac_srcdir/configure.gnu"; then
1627       echo &&
1628       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1629     elif test -f "$ac_srcdir/configure"; then
1630       echo &&
1631       $SHELL "$ac_srcdir/configure" --help=recursive
1632     else
1633       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1634     fi || ac_status=$?
1635     cd "$ac_pwd" || { ac_status=$?; break; }
1636   done
1637 fi
1638
1639 test -n "$ac_init_help" && exit $ac_status
1640 if $ac_init_version; then
1641   cat <<\_ACEOF
1642 simgrid configure 3.3-svn
1643 generated by GNU Autoconf 2.61
1644
1645 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1646 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1647 This configure script is free software; the Free Software Foundation
1648 gives unlimited permission to copy, distribute and modify it.
1649 _ACEOF
1650   exit
1651 fi
1652 cat >config.log <<_ACEOF
1653 This file contains any messages produced by compilers while
1654 running configure, to aid debugging if configure makes a mistake.
1655
1656 It was created by simgrid $as_me 3.3-svn, which was
1657 generated by GNU Autoconf 2.61.  Invocation command line was
1658
1659   $ $0 $@
1660
1661 _ACEOF
1662 exec 5>>config.log
1663 {
1664 cat <<_ASUNAME
1665 ## --------- ##
1666 ## Platform. ##
1667 ## --------- ##
1668
1669 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1670 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1671 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1672 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1673 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1674
1675 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1676 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1677
1678 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1679 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1680 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1681 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1682 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1683 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1684 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1685
1686 _ASUNAME
1687
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 for as_dir in $PATH
1690 do
1691   IFS=$as_save_IFS
1692   test -z "$as_dir" && as_dir=.
1693   echo "PATH: $as_dir"
1694 done
1695 IFS=$as_save_IFS
1696
1697 } >&5
1698
1699 cat >&5 <<_ACEOF
1700
1701
1702 ## ----------- ##
1703 ## Core tests. ##
1704 ## ----------- ##
1705
1706 _ACEOF
1707
1708
1709 # Keep a trace of the command line.
1710 # Strip out --no-create and --no-recursion so they do not pile up.
1711 # Strip out --silent because we don't want to record it for future runs.
1712 # Also quote any args containing shell meta-characters.
1713 # Make two passes to allow for proper duplicate-argument suppression.
1714 ac_configure_args=
1715 ac_configure_args0=
1716 ac_configure_args1=
1717 ac_must_keep_next=false
1718 for ac_pass in 1 2
1719 do
1720   for ac_arg
1721   do
1722     case $ac_arg in
1723     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1724     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1725     | -silent | --silent | --silen | --sile | --sil)
1726       continue ;;
1727     *\'*)
1728       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1729     esac
1730     case $ac_pass in
1731     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1732     2)
1733       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1734       if test $ac_must_keep_next = true; then
1735         ac_must_keep_next=false # Got value, back to normal.
1736       else
1737         case $ac_arg in
1738           *=* | --config-cache | -C | -disable-* | --disable-* \
1739           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1740           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1741           | -with-* | --with-* | -without-* | --without-* | --x)
1742             case "$ac_configure_args0 " in
1743               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1744             esac
1745             ;;
1746           -* ) ac_must_keep_next=true ;;
1747         esac
1748       fi
1749       ac_configure_args="$ac_configure_args '$ac_arg'"
1750       ;;
1751     esac
1752   done
1753 done
1754 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1755 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1756
1757 # When interrupted or exit'd, cleanup temporary files, and complete
1758 # config.log.  We remove comments because anyway the quotes in there
1759 # would cause problems or look ugly.
1760 # WARNING: Use '\'' to represent an apostrophe within the trap.
1761 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1762 trap 'exit_status=$?
1763   # Save into config.log some information that might help in debugging.
1764   {
1765     echo
1766
1767     cat <<\_ASBOX
1768 ## ---------------- ##
1769 ## Cache variables. ##
1770 ## ---------------- ##
1771 _ASBOX
1772     echo
1773     # The following way of writing the cache mishandles newlines in values,
1774 (
1775   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1776     eval ac_val=\$$ac_var
1777     case $ac_val in #(
1778     *${as_nl}*)
1779       case $ac_var in #(
1780       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1781 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1782       esac
1783       case $ac_var in #(
1784       _ | IFS | as_nl) ;; #(
1785       *) $as_unset $ac_var ;;
1786       esac ;;
1787     esac
1788   done
1789   (set) 2>&1 |
1790     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1791     *${as_nl}ac_space=\ *)
1792       sed -n \
1793         "s/'\''/'\''\\\\'\'''\''/g;
1794           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1795       ;; #(
1796     *)
1797       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1798       ;;
1799     esac |
1800     sort
1801 )
1802     echo
1803
1804     cat <<\_ASBOX
1805 ## ----------------- ##
1806 ## Output variables. ##
1807 ## ----------------- ##
1808 _ASBOX
1809     echo
1810     for ac_var in $ac_subst_vars
1811     do
1812       eval ac_val=\$$ac_var
1813       case $ac_val in
1814       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1815       esac
1816       echo "$ac_var='\''$ac_val'\''"
1817     done | sort
1818     echo
1819
1820     if test -n "$ac_subst_files"; then
1821       cat <<\_ASBOX
1822 ## ------------------- ##
1823 ## File substitutions. ##
1824 ## ------------------- ##
1825 _ASBOX
1826       echo
1827       for ac_var in $ac_subst_files
1828       do
1829         eval ac_val=\$$ac_var
1830         case $ac_val in
1831         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1832         esac
1833         echo "$ac_var='\''$ac_val'\''"
1834       done | sort
1835       echo
1836     fi
1837
1838     if test -s confdefs.h; then
1839       cat <<\_ASBOX
1840 ## ----------- ##
1841 ## confdefs.h. ##
1842 ## ----------- ##
1843 _ASBOX
1844       echo
1845       cat confdefs.h
1846       echo
1847     fi
1848     test "$ac_signal" != 0 &&
1849       echo "$as_me: caught signal $ac_signal"
1850     echo "$as_me: exit $exit_status"
1851   } >&5
1852   rm -f core *.core core.conftest.* &&
1853     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1854     exit $exit_status
1855 ' 0
1856 for ac_signal in 1 2 13 15; do
1857   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1858 done
1859 ac_signal=0
1860
1861 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1862 rm -f -r conftest* confdefs.h
1863
1864 # Predefined preprocessor variables.
1865
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_NAME "$PACKAGE_NAME"
1868 _ACEOF
1869
1870
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1873 _ACEOF
1874
1875
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1878 _ACEOF
1879
1880
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_STRING "$PACKAGE_STRING"
1883 _ACEOF
1884
1885
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1888 _ACEOF
1889
1890
1891 # Let the site file select an alternate cache file if it wants to.
1892 # Prefer explicitly selected file to automatically selected ones.
1893 if test -n "$CONFIG_SITE"; then
1894   set x "$CONFIG_SITE"
1895 elif test "x$prefix" != xNONE; then
1896   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1897 else
1898   set x "$ac_default_prefix/share/config.site" \
1899         "$ac_default_prefix/etc/config.site"
1900 fi
1901 shift
1902 for ac_site_file
1903 do
1904   if test -r "$ac_site_file"; then
1905     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1906 echo "$as_me: loading site script $ac_site_file" >&6;}
1907     sed 's/^/| /' "$ac_site_file" >&5
1908     . "$ac_site_file"
1909   fi
1910 done
1911
1912 if test -r "$cache_file"; then
1913   # Some versions of bash will fail to source /dev/null (special
1914   # files actually), so we avoid doing that.
1915   if test -f "$cache_file"; then
1916     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1917 echo "$as_me: loading cache $cache_file" >&6;}
1918     case $cache_file in
1919       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1920       *)                      . "./$cache_file";;
1921     esac
1922   fi
1923 else
1924   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1925 echo "$as_me: creating cache $cache_file" >&6;}
1926   >$cache_file
1927 fi
1928
1929 # Check that the precious variables saved in the cache have kept the same
1930 # value.
1931 ac_cache_corrupted=false
1932 for ac_var in $ac_precious_vars; do
1933   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1934   eval ac_new_set=\$ac_env_${ac_var}_set
1935   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1936   eval ac_new_val=\$ac_env_${ac_var}_value
1937   case $ac_old_set,$ac_new_set in
1938     set,)
1939       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1940 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1941       ac_cache_corrupted=: ;;
1942     ,set)
1943       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1944 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1945       ac_cache_corrupted=: ;;
1946     ,);;
1947     *)
1948       if test "x$ac_old_val" != "x$ac_new_val"; then
1949         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1950 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1951         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1952 echo "$as_me:   former value:  $ac_old_val" >&2;}
1953         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1954 echo "$as_me:   current value: $ac_new_val" >&2;}
1955         ac_cache_corrupted=:
1956       fi;;
1957   esac
1958   # Pass precious variables to config.status.
1959   if test "$ac_new_set" = set; then
1960     case $ac_new_val in
1961     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1962     *) ac_arg=$ac_var=$ac_new_val ;;
1963     esac
1964     case " $ac_configure_args " in
1965       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1966       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1967     esac
1968   fi
1969 done
1970 if $ac_cache_corrupted; then
1971   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1972 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1973   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1974 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1975    { (exit 1); exit 1; }; }
1976 fi
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002 ac_ext=c
2003 ac_cpp='$CPP $CPPFLAGS'
2004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007
2008
2009
2010 ac_config_headers="$ac_config_headers src/gras_config.h"
2011
2012 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
2013
2014
2015 ac_aux_dir=
2016 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2017   if test -f "$ac_dir/install-sh"; then
2018     ac_aux_dir=$ac_dir
2019     ac_install_sh="$ac_aux_dir/install-sh -c"
2020     break
2021   elif test -f "$ac_dir/install.sh"; then
2022     ac_aux_dir=$ac_dir
2023     ac_install_sh="$ac_aux_dir/install.sh -c"
2024     break
2025   elif test -f "$ac_dir/shtool"; then
2026     ac_aux_dir=$ac_dir
2027     ac_install_sh="$ac_aux_dir/shtool install -c"
2028     break
2029   fi
2030 done
2031 if test -z "$ac_aux_dir"; then
2032   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2033 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2034    { (exit 1); exit 1; }; }
2035 fi
2036
2037 # These three variables are undocumented and unsupported,
2038 # and are intended to be withdrawn in a future Autoconf release.
2039 # They can cause serious problems if a builder's source tree is in a directory
2040 # whose full name contains unusual characters.
2041 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2042 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2043 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2044
2045
2046 # Make sure we can run config.sub.
2047 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2048   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2049 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2050    { (exit 1); exit 1; }; }
2051
2052 { echo "$as_me:$LINENO: checking build system type" >&5
2053 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2054 if test "${ac_cv_build+set}" = set; then
2055   echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057   ac_build_alias=$build_alias
2058 test "x$ac_build_alias" = x &&
2059   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2060 test "x$ac_build_alias" = x &&
2061   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2062 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2063    { (exit 1); exit 1; }; }
2064 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2065   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2066 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2067    { (exit 1); exit 1; }; }
2068
2069 fi
2070 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2071 echo "${ECHO_T}$ac_cv_build" >&6; }
2072 case $ac_cv_build in
2073 *-*-*) ;;
2074 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2075 echo "$as_me: error: invalid value of canonical build" >&2;}
2076    { (exit 1); exit 1; }; };;
2077 esac
2078 build=$ac_cv_build
2079 ac_save_IFS=$IFS; IFS='-'
2080 set x $ac_cv_build
2081 shift
2082 build_cpu=$1
2083 build_vendor=$2
2084 shift; shift
2085 # Remember, the first character of IFS is used to create $*,
2086 # except with old shells:
2087 build_os=$*
2088 IFS=$ac_save_IFS
2089 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2090
2091
2092 { echo "$as_me:$LINENO: checking host system type" >&5
2093 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2094 if test "${ac_cv_host+set}" = set; then
2095   echo $ECHO_N "(cached) $ECHO_C" >&6
2096 else
2097   if test "x$host_alias" = x; then
2098   ac_cv_host=$ac_cv_build
2099 else
2100   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2101     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2102 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2103    { (exit 1); exit 1; }; }
2104 fi
2105
2106 fi
2107 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2108 echo "${ECHO_T}$ac_cv_host" >&6; }
2109 case $ac_cv_host in
2110 *-*-*) ;;
2111 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2112 echo "$as_me: error: invalid value of canonical host" >&2;}
2113    { (exit 1); exit 1; }; };;
2114 esac
2115 host=$ac_cv_host
2116 ac_save_IFS=$IFS; IFS='-'
2117 set x $ac_cv_host
2118 shift
2119 host_cpu=$1
2120 host_vendor=$2
2121 shift; shift
2122 # Remember, the first character of IFS is used to create $*,
2123 # except with old shells:
2124 host_os=$*
2125 IFS=$ac_save_IFS
2126 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2127
2128
2129 { echo "$as_me:$LINENO: checking target system type" >&5
2130 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2131 if test "${ac_cv_target+set}" = set; then
2132   echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134   if test "x$target_alias" = x; then
2135   ac_cv_target=$ac_cv_host
2136 else
2137   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2138     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2139 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2140    { (exit 1); exit 1; }; }
2141 fi
2142
2143 fi
2144 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2145 echo "${ECHO_T}$ac_cv_target" >&6; }
2146 case $ac_cv_target in
2147 *-*-*) ;;
2148 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2149 echo "$as_me: error: invalid value of canonical target" >&2;}
2150    { (exit 1); exit 1; }; };;
2151 esac
2152 target=$ac_cv_target
2153 ac_save_IFS=$IFS; IFS='-'
2154 set x $ac_cv_target
2155 shift
2156 target_cpu=$1
2157 target_vendor=$2
2158 shift; shift
2159 # Remember, the first character of IFS is used to create $*,
2160 # except with old shells:
2161 target_os=$*
2162 IFS=$ac_save_IFS
2163 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2164
2165
2166 # The aliases save the names the user supplied, while $host etc.
2167 # will get canonicalized.
2168 test -n "$target_alias" &&
2169   test "$program_prefix$program_suffix$program_transform_name" = \
2170     NONENONEs,x,x, &&
2171   program_prefix=${target_alias}-
2172 ac_ext=c
2173 ac_cpp='$CPP $CPPFLAGS'
2174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2177
2178 rm -rf .tst 2>/dev/null
2179 mkdir .tst 2>/dev/null
2180 if test -d .tst; then
2181   am__leading_dot=.
2182 else
2183   am__leading_dot=_
2184 fi
2185 rmdir .tst 2>/dev/null
2186
2187 DEPDIR="${am__leading_dot}deps"
2188
2189 ac_config_commands="$ac_config_commands depfiles"
2190
2191
2192 am_make=${MAKE-make}
2193 cat > confinc << 'END'
2194 am__doit:
2195         @echo done
2196 .PHONY: am__doit
2197 END
2198 # If we don't find an include directive, just comment out the code.
2199 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2200 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2201 am__include="#"
2202 am__quote=
2203 _am_result=none
2204 # First try GNU make style include.
2205 echo "include confinc" > confmf
2206 # We grep out `Entering directory' and `Leaving directory'
2207 # messages which can occur if `w' ends up in MAKEFLAGS.
2208 # In particular we don't look at `^make:' because GNU make might
2209 # be invoked under some other name (usually "gmake"), in which
2210 # case it prints its new name instead of `make'.
2211 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2212    am__include=include
2213    am__quote=
2214    _am_result=GNU
2215 fi
2216 # Now try BSD make style include.
2217 if test "$am__include" = "#"; then
2218    echo '.include "confinc"' > confmf
2219    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2220       am__include=.include
2221       am__quote="\""
2222       _am_result=BSD
2223    fi
2224 fi
2225
2226
2227 { echo "$as_me:$LINENO: result: $_am_result" >&5
2228 echo "${ECHO_T}$_am_result" >&6; }
2229 rm -f confinc confmf
2230
2231 # Check whether --enable-dependency-tracking was given.
2232 if test "${enable_dependency_tracking+set}" = set; then
2233   enableval=$enable_dependency_tracking;
2234 fi
2235
2236 if test "x$enable_dependency_tracking" != xno; then
2237   am_depcomp="$ac_aux_dir/depcomp"
2238   AMDEPBACKSLASH='\'
2239 fi
2240  if test "x$enable_dependency_tracking" != xno; then
2241   AMDEP_TRUE=
2242   AMDEP_FALSE='#'
2243 else
2244   AMDEP_TRUE='#'
2245   AMDEP_FALSE=
2246 fi
2247
2248
2249
2250 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
2251 do
2252   # Extract the first word of "$ac_prog", so it can be a program name with args.
2253 set dummy $ac_prog; ac_word=$2
2254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2256 if test "${ac_cv_prog_GCJ+set}" = set; then
2257   echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259   if test -n "$GCJ"; then
2260   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
2261 else
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 for as_dir in $PATH
2264 do
2265   IFS=$as_save_IFS
2266   test -z "$as_dir" && as_dir=.
2267   for ac_exec_ext in '' $ac_executable_extensions; do
2268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2269     ac_cv_prog_GCJ="$ac_prog"
2270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271     break 2
2272   fi
2273 done
2274 done
2275 IFS=$as_save_IFS
2276
2277 fi
2278 fi
2279 GCJ=$ac_cv_prog_GCJ
2280 if test -n "$GCJ"; then
2281   { echo "$as_me:$LINENO: result: $GCJ" >&5
2282 echo "${ECHO_T}$GCJ" >&6; }
2283 else
2284   { echo "$as_me:$LINENO: result: no" >&5
2285 echo "${ECHO_T}no" >&6; }
2286 fi
2287
2288
2289   test -n "$GCJ" && break
2290 done
2291 test -n "$GCJ" || GCJ="gcj"
2292
2293 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
2294 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
2295    { (exit 1); exit 1; }; }
2296 if test "x${GCJFLAGS-unset}" = xunset; then
2297    GCJFLAGS="-g -O2"
2298 fi
2299
2300
2301 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
2302
2303 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2304 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2305 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2309   # We make a subdir and do the tests there.  Otherwise we can end up
2310   # making bogus files that we don't know about and never remove.  For
2311   # instance it was reported that on HP-UX the gcc test will end up
2312   # making a dummy file named `D' -- because `-MD' means `put the output
2313   # in D'.
2314   mkdir conftest.dir
2315   # Copy depcomp to subdir because otherwise we won't find it if we're
2316   # using a relative directory.
2317   cp "$am_depcomp" conftest.dir
2318   cd conftest.dir
2319   # We will build objects and dependencies in a subdirectory because
2320   # it helps to detect inapplicable dependency modes.  For instance
2321   # both Tru64's cc and ICC support -MD to output dependencies as a
2322   # side effect of compilation, but ICC will put the dependencies in
2323   # the current directory while Tru64 will put them in the object
2324   # directory.
2325   mkdir sub
2326
2327   am_cv_GCJ_dependencies_compiler_type=none
2328   if test "$am_compiler_list" = ""; then
2329      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2330   fi
2331   for depmode in $am_compiler_list; do
2332     # Setup a source with many dependencies, because some compilers
2333     # like to wrap large dependency lists on column 80 (with \), and
2334     # we should not choose a depcomp mode which is confused by this.
2335     #
2336     # We need to recreate these files for each test, as the compiler may
2337     # overwrite some of them when testing with obscure command lines.
2338     # This happens at least with the AIX C compiler.
2339     : > sub/conftest.c
2340     for i in 1 2 3 4 5 6; do
2341       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2342       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2343       # Solaris 8's {/usr,}/bin/sh.
2344       touch sub/conftst$i.h
2345     done
2346     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2347
2348     case $depmode in
2349     nosideeffect)
2350       # after this tag, mechanisms are not by side-effect, so they'll
2351       # only be used when explicitly requested
2352       if test "x$enable_dependency_tracking" = xyes; then
2353         continue
2354       else
2355         break
2356       fi
2357       ;;
2358     none) break ;;
2359     esac
2360     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2361     # mode.  It turns out that the SunPro C++ compiler does not properly
2362     # handle `-M -o', and we need to detect this.
2363     if depmode=$depmode \
2364        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2365        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2366        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2367          >/dev/null 2>conftest.err &&
2368        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2369        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2370        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2371        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2372       # icc doesn't choke on unknown options, it will just issue warnings
2373       # or remarks (even with -Werror).  So we grep stderr for any message
2374       # that says an option was ignored or not supported.
2375       # When given -MP, icc 7.0 and 7.1 complain thusly:
2376       #   icc: Command line warning: ignoring option '-M'; no argument required
2377       # The diagnosis changed in icc 8.0:
2378       #   icc: Command line remark: option '-MP' not supported
2379       if (grep 'ignoring option' conftest.err ||
2380           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2381         am_cv_GCJ_dependencies_compiler_type=$depmode
2382         break
2383       fi
2384     fi
2385   done
2386
2387   cd ..
2388   rm -rf conftest.dir
2389 else
2390   am_cv_GCJ_dependencies_compiler_type=none
2391 fi
2392
2393 fi
2394 { echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
2395 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6; }
2396 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
2397
2398  if
2399   test "x$enable_dependency_tracking" != xno \
2400   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
2401   am__fastdepGCJ_TRUE=
2402   am__fastdepGCJ_FALSE='#'
2403 else
2404   am__fastdepGCJ_TRUE='#'
2405   am__fastdepGCJ_FALSE=
2406 fi
2407
2408
2409
2410
2411 am__api_version='1.10'
2412
2413 # Find a good install program.  We prefer a C program (faster),
2414 # so one script is as good as another.  But avoid the broken or
2415 # incompatible versions:
2416 # SysV /etc/install, /usr/sbin/install
2417 # SunOS /usr/etc/install
2418 # IRIX /sbin/install
2419 # AIX /bin/install
2420 # AmigaOS /C/install, which installs bootblocks on floppy discs
2421 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2422 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2423 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2424 # OS/2's system install, which has a completely different semantic
2425 # ./install, which can be erroneously created by make from ./install.sh.
2426 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2427 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2428 if test -z "$INSTALL"; then
2429 if test "${ac_cv_path_install+set}" = set; then
2430   echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2434 do
2435   IFS=$as_save_IFS
2436   test -z "$as_dir" && as_dir=.
2437   # Account for people who put trailing slashes in PATH elements.
2438 case $as_dir/ in
2439   ./ | .// | /cC/* | \
2440   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2441   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2442   /usr/ucb/* ) ;;
2443   *)
2444     # OSF1 and SCO ODT 3.0 have their own names for install.
2445     # Don't use installbsd from OSF since it installs stuff as root
2446     # by default.
2447     for ac_prog in ginstall scoinst install; do
2448       for ac_exec_ext in '' $ac_executable_extensions; do
2449         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2450           if test $ac_prog = install &&
2451             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2452             # AIX install.  It has an incompatible calling convention.
2453             :
2454           elif test $ac_prog = install &&
2455             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2456             # program-specific install script used by HP pwplus--don't use.
2457             :
2458           else
2459             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2460             break 3
2461           fi
2462         fi
2463       done
2464     done
2465     ;;
2466 esac
2467 done
2468 IFS=$as_save_IFS
2469
2470
2471 fi
2472   if test "${ac_cv_path_install+set}" = set; then
2473     INSTALL=$ac_cv_path_install
2474   else
2475     # As a last resort, use the slow shell script.  Don't cache a
2476     # value for INSTALL within a source directory, because that will
2477     # break other packages using the cache if that directory is
2478     # removed, or if the value is a relative name.
2479     INSTALL=$ac_install_sh
2480   fi
2481 fi
2482 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2483 echo "${ECHO_T}$INSTALL" >&6; }
2484
2485 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2486 # It thinks the first close brace ends the variable substitution.
2487 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2488
2489 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2490
2491 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2492
2493 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2494 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2495 # Just in case
2496 sleep 1
2497 echo timestamp > conftest.file
2498 # Do `set' in a subshell so we don't clobber the current shell's
2499 # arguments.  Must try -L first in case configure is actually a
2500 # symlink; some systems play weird games with the mod time of symlinks
2501 # (eg FreeBSD returns the mod time of the symlink's containing
2502 # directory).
2503 if (
2504    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2505    if test "$*" = "X"; then
2506       # -L didn't work.
2507       set X `ls -t $srcdir/configure conftest.file`
2508    fi
2509    rm -f conftest.file
2510    if test "$*" != "X $srcdir/configure conftest.file" \
2511       && test "$*" != "X conftest.file $srcdir/configure"; then
2512
2513       # If neither matched, then we have a broken ls.  This can happen
2514       # if, for instance, CONFIG_SHELL is bash and it inherits a
2515       # broken ls alias from the environment.  This has actually
2516       # happened.  Such a system could not be considered "sane".
2517       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2518 alias in your environment" >&5
2519 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2520 alias in your environment" >&2;}
2521    { (exit 1); exit 1; }; }
2522    fi
2523
2524    test "$2" = conftest.file
2525    )
2526 then
2527    # Ok.
2528    :
2529 else
2530    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2531 Check your system clock" >&5
2532 echo "$as_me: error: newly created file is older than distributed files!
2533 Check your system clock" >&2;}
2534    { (exit 1); exit 1; }; }
2535 fi
2536 { echo "$as_me:$LINENO: result: yes" >&5
2537 echo "${ECHO_T}yes" >&6; }
2538 test "$program_prefix" != NONE &&
2539   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2540 # Use a double $ so make ignores it.
2541 test "$program_suffix" != NONE &&
2542   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2543 # Double any \ or $.  echo might interpret backslashes.
2544 # By default was `s,x,x', remove it if useless.
2545 cat <<\_ACEOF >conftest.sed
2546 s/[\\$]/&&/g;s/;s,x,x,$//
2547 _ACEOF
2548 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2549 rm -f conftest.sed
2550
2551 # expand $ac_aux_dir to an absolute path
2552 am_aux_dir=`cd $ac_aux_dir && pwd`
2553
2554 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2555 # Use eval to expand $SHELL
2556 if eval "$MISSING --run true"; then
2557   am_missing_run="$MISSING --run "
2558 else
2559   am_missing_run=
2560   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2561 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2562 fi
2563
2564 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2565 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2566 if test -z "$MKDIR_P"; then
2567   if test "${ac_cv_path_mkdir+set}" = set; then
2568   echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2572 do
2573   IFS=$as_save_IFS
2574   test -z "$as_dir" && as_dir=.
2575   for ac_prog in mkdir gmkdir; do
2576          for ac_exec_ext in '' $ac_executable_extensions; do
2577            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2578            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2579              'mkdir (GNU coreutils) '* | \
2580              'mkdir (coreutils) '* | \
2581              'mkdir (fileutils) '4.1*)
2582                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2583                break 3;;
2584            esac
2585          done
2586        done
2587 done
2588 IFS=$as_save_IFS
2589
2590 fi
2591
2592   if test "${ac_cv_path_mkdir+set}" = set; then
2593     MKDIR_P="$ac_cv_path_mkdir -p"
2594   else
2595     # As a last resort, use the slow shell script.  Don't cache a
2596     # value for MKDIR_P within a source directory, because that will
2597     # break other packages using the cache if that directory is
2598     # removed, or if the value is a relative name.
2599     test -d ./--version && rmdir ./--version
2600     MKDIR_P="$ac_install_sh -d"
2601   fi
2602 fi
2603 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2604 echo "${ECHO_T}$MKDIR_P" >&6; }
2605
2606 mkdir_p="$MKDIR_P"
2607 case $mkdir_p in
2608   [\\/$]* | ?:[\\/]*) ;;
2609   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2610 esac
2611
2612 for ac_prog in gawk mawk nawk awk
2613 do
2614   # Extract the first word of "$ac_prog", so it can be a program name with args.
2615 set dummy $ac_prog; ac_word=$2
2616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2618 if test "${ac_cv_prog_AWK+set}" = set; then
2619   echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621   if test -n "$AWK"; then
2622   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2623 else
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2626 do
2627   IFS=$as_save_IFS
2628   test -z "$as_dir" && as_dir=.
2629   for ac_exec_ext in '' $ac_executable_extensions; do
2630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2631     ac_cv_prog_AWK="$ac_prog"
2632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633     break 2
2634   fi
2635 done
2636 done
2637 IFS=$as_save_IFS
2638
2639 fi
2640 fi
2641 AWK=$ac_cv_prog_AWK
2642 if test -n "$AWK"; then
2643   { echo "$as_me:$LINENO: result: $AWK" >&5
2644 echo "${ECHO_T}$AWK" >&6; }
2645 else
2646   { echo "$as_me:$LINENO: result: no" >&5
2647 echo "${ECHO_T}no" >&6; }
2648 fi
2649
2650
2651   test -n "$AWK" && break
2652 done
2653
2654 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2655 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2656 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2657 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2658   echo $ECHO_N "(cached) $ECHO_C" >&6
2659 else
2660   cat >conftest.make <<\_ACEOF
2661 SHELL = /bin/sh
2662 all:
2663         @echo '@@@%%%=$(MAKE)=@@@%%%'
2664 _ACEOF
2665 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2666 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2667   *@@@%%%=?*=@@@%%%*)
2668     eval ac_cv_prog_make_${ac_make}_set=yes;;
2669   *)
2670     eval ac_cv_prog_make_${ac_make}_set=no;;
2671 esac
2672 rm -f conftest.make
2673 fi
2674 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2675   { echo "$as_me:$LINENO: result: yes" >&5
2676 echo "${ECHO_T}yes" >&6; }
2677   SET_MAKE=
2678 else
2679   { echo "$as_me:$LINENO: result: no" >&5
2680 echo "${ECHO_T}no" >&6; }
2681   SET_MAKE="MAKE=${MAKE-make}"
2682 fi
2683
2684 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2685   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2686   # is not polluted with repeated "-I."
2687   am__isrc=' -I$(srcdir)'
2688   # test to see if srcdir already configured
2689   if test -f $srcdir/config.status; then
2690     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2691 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2692    { (exit 1); exit 1; }; }
2693   fi
2694 fi
2695
2696 # test whether we have cygpath
2697 if test -z "$CYGPATH_W"; then
2698   if (cygpath --version) >/dev/null 2>/dev/null; then
2699     CYGPATH_W='cygpath -w'
2700   else
2701     CYGPATH_W=echo
2702   fi
2703 fi
2704
2705
2706 # Define the identity of the package.
2707  PACKAGE='simgrid'
2708  VERSION='3.3-svn'
2709
2710
2711 cat >>confdefs.h <<_ACEOF
2712 #define PACKAGE "$PACKAGE"
2713 _ACEOF
2714
2715
2716 cat >>confdefs.h <<_ACEOF
2717 #define VERSION "$VERSION"
2718 _ACEOF
2719
2720 # Some tools Automake needs.
2721
2722 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2723
2724
2725 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2726
2727
2728 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2729
2730
2731 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2732
2733
2734 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2735
2736 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2737
2738 # Installed binaries are usually stripped using `strip' when the user
2739 # run `make install-strip'.  However `strip' might not be the right
2740 # tool to use in cross-compilation environments, therefore Automake
2741 # will honor the `STRIP' environment variable to overrule this program.
2742 if test "$cross_compiling" != no; then
2743   if test -n "$ac_tool_prefix"; then
2744   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2745 set dummy ${ac_tool_prefix}strip; ac_word=$2
2746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2748 if test "${ac_cv_prog_STRIP+set}" = set; then
2749   echo $ECHO_N "(cached) $ECHO_C" >&6
2750 else
2751   if test -n "$STRIP"; then
2752   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2753 else
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 for as_dir in $PATH
2756 do
2757   IFS=$as_save_IFS
2758   test -z "$as_dir" && as_dir=.
2759   for ac_exec_ext in '' $ac_executable_extensions; do
2760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2761     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2763     break 2
2764   fi
2765 done
2766 done
2767 IFS=$as_save_IFS
2768
2769 fi
2770 fi
2771 STRIP=$ac_cv_prog_STRIP
2772 if test -n "$STRIP"; then
2773   { echo "$as_me:$LINENO: result: $STRIP" >&5
2774 echo "${ECHO_T}$STRIP" >&6; }
2775 else
2776   { echo "$as_me:$LINENO: result: no" >&5
2777 echo "${ECHO_T}no" >&6; }
2778 fi
2779
2780
2781 fi
2782 if test -z "$ac_cv_prog_STRIP"; then
2783   ac_ct_STRIP=$STRIP
2784   # Extract the first word of "strip", so it can be a program name with args.
2785 set dummy strip; ac_word=$2
2786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2788 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2789   echo $ECHO_N "(cached) $ECHO_C" >&6
2790 else
2791   if test -n "$ac_ct_STRIP"; then
2792   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797   IFS=$as_save_IFS
2798   test -z "$as_dir" && as_dir=.
2799   for ac_exec_ext in '' $ac_executable_extensions; do
2800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2801     ac_cv_prog_ac_ct_STRIP="strip"
2802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803     break 2
2804   fi
2805 done
2806 done
2807 IFS=$as_save_IFS
2808
2809 fi
2810 fi
2811 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2812 if test -n "$ac_ct_STRIP"; then
2813   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2814 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2815 else
2816   { echo "$as_me:$LINENO: result: no" >&5
2817 echo "${ECHO_T}no" >&6; }
2818 fi
2819
2820   if test "x$ac_ct_STRIP" = x; then
2821     STRIP=":"
2822   else
2823     case $cross_compiling:$ac_tool_warned in
2824 yes:)
2825 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2826 whose name does not start with the host triplet.  If you think this
2827 configuration is useful to you, please write to autoconf@gnu.org." >&5
2828 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2829 whose name does not start with the host triplet.  If you think this
2830 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2831 ac_tool_warned=yes ;;
2832 esac
2833     STRIP=$ac_ct_STRIP
2834   fi
2835 else
2836   STRIP="$ac_cv_prog_STRIP"
2837 fi
2838
2839 fi
2840 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2841
2842 # We need awk for the "check" target.  The system "awk" is bad on
2843 # some platforms.
2844 # Always define AMTAR for backward compatibility.
2845
2846 AMTAR=${AMTAR-"${am_missing_run}tar"}
2847
2848 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2849
2850
2851
2852
2853
2854
2855 ACLOCAL="$ACLOCAL -I acmacro"
2856
2857
2858
2859
2860
2861
2862 # Check whether --enable-shared was given.
2863 if test "${enable_shared+set}" = set; then
2864   enableval=$enable_shared; p=${PACKAGE-default}
2865     case $enableval in
2866     yes) enable_shared=yes ;;
2867     no) enable_shared=no ;;
2868     *)
2869       enable_shared=no
2870       # Look at the argument we got.  We use all the common list separators.
2871       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2872       for pkg in $enableval; do
2873         IFS="$lt_save_ifs"
2874         if test "X$pkg" = "X$p"; then
2875           enable_shared=yes
2876         fi
2877       done
2878       IFS="$lt_save_ifs"
2879       ;;
2880     esac
2881 else
2882   enable_shared=yes
2883 fi
2884
2885
2886 # Check whether --enable-static was given.
2887 if test "${enable_static+set}" = set; then
2888   enableval=$enable_static; p=${PACKAGE-default}
2889     case $enableval in
2890     yes) enable_static=yes ;;
2891     no) enable_static=no ;;
2892     *)
2893      enable_static=no
2894       # Look at the argument we got.  We use all the common list separators.
2895       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2896       for pkg in $enableval; do
2897         IFS="$lt_save_ifs"
2898         if test "X$pkg" = "X$p"; then
2899           enable_static=yes
2900         fi
2901       done
2902       IFS="$lt_save_ifs"
2903       ;;
2904     esac
2905 else
2906   enable_static=yes
2907 fi
2908
2909
2910 # Check whether --enable-fast-install was given.
2911 if test "${enable_fast_install+set}" = set; then
2912   enableval=$enable_fast_install; p=${PACKAGE-default}
2913     case $enableval in
2914     yes) enable_fast_install=yes ;;
2915     no) enable_fast_install=no ;;
2916     *)
2917       enable_fast_install=no
2918       # Look at the argument we got.  We use all the common list separators.
2919       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2920       for pkg in $enableval; do
2921         IFS="$lt_save_ifs"
2922         if test "X$pkg" = "X$p"; then
2923           enable_fast_install=yes
2924         fi
2925       done
2926       IFS="$lt_save_ifs"
2927       ;;
2928     esac
2929 else
2930   enable_fast_install=yes
2931 fi
2932
2933
2934 ac_ext=c
2935 ac_cpp='$CPP $CPPFLAGS'
2936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939 if test -n "$ac_tool_prefix"; then
2940   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2941 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2944 if test "${ac_cv_prog_CC+set}" = set; then
2945   echo $ECHO_N "(cached) $ECHO_C" >&6
2946 else
2947   if test -n "$CC"; then
2948   ac_cv_prog_CC="$CC" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2952 do
2953   IFS=$as_save_IFS
2954   test -z "$as_dir" && as_dir=.
2955   for ac_exec_ext in '' $ac_executable_extensions; do
2956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2957     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959     break 2
2960   fi
2961 done
2962 done
2963 IFS=$as_save_IFS
2964
2965 fi
2966 fi
2967 CC=$ac_cv_prog_CC
2968 if test -n "$CC"; then
2969   { echo "$as_me:$LINENO: result: $CC" >&5
2970 echo "${ECHO_T}$CC" >&6; }
2971 else
2972   { echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6; }
2974 fi
2975
2976
2977 fi
2978 if test -z "$ac_cv_prog_CC"; then
2979   ac_ct_CC=$CC
2980   # Extract the first word of "gcc", so it can be a program name with args.
2981 set dummy gcc; ac_word=$2
2982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2984 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2985   echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987   if test -n "$ac_ct_CC"; then
2988   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993   IFS=$as_save_IFS
2994   test -z "$as_dir" && as_dir=.
2995   for ac_exec_ext in '' $ac_executable_extensions; do
2996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997     ac_cv_prog_ac_ct_CC="gcc"
2998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2999     break 2
3000   fi
3001 done
3002 done
3003 IFS=$as_save_IFS
3004
3005 fi
3006 fi
3007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3008 if test -n "$ac_ct_CC"; then
3009   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3010 echo "${ECHO_T}$ac_ct_CC" >&6; }
3011 else
3012   { echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6; }
3014 fi
3015
3016   if test "x$ac_ct_CC" = x; then
3017     CC=""
3018   else
3019     case $cross_compiling:$ac_tool_warned in
3020 yes:)
3021 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3022 whose name does not start with the host triplet.  If you think this
3023 configuration is useful to you, please write to autoconf@gnu.org." >&5
3024 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3025 whose name does not start with the host triplet.  If you think this
3026 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3027 ac_tool_warned=yes ;;
3028 esac
3029     CC=$ac_ct_CC
3030   fi
3031 else
3032   CC="$ac_cv_prog_CC"
3033 fi
3034
3035 if test -z "$CC"; then
3036           if test -n "$ac_tool_prefix"; then
3037     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3038 set dummy ${ac_tool_prefix}cc; ac_word=$2
3039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3041 if test "${ac_cv_prog_CC+set}" = set; then
3042   echo $ECHO_N "(cached) $ECHO_C" >&6
3043 else
3044   if test -n "$CC"; then
3045   ac_cv_prog_CC="$CC" # Let the user override the test.
3046 else
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050   IFS=$as_save_IFS
3051   test -z "$as_dir" && as_dir=.
3052   for ac_exec_ext in '' $ac_executable_extensions; do
3053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054     ac_cv_prog_CC="${ac_tool_prefix}cc"
3055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3056     break 2
3057   fi
3058 done
3059 done
3060 IFS=$as_save_IFS
3061
3062 fi
3063 fi
3064 CC=$ac_cv_prog_CC
3065 if test -n "$CC"; then
3066   { echo "$as_me:$LINENO: result: $CC" >&5
3067 echo "${ECHO_T}$CC" >&6; }
3068 else
3069   { echo "$as_me:$LINENO: result: no" >&5
3070 echo "${ECHO_T}no" >&6; }
3071 fi
3072
3073
3074   fi
3075 fi
3076 if test -z "$CC"; then
3077   # Extract the first word of "cc", so it can be a program name with args.
3078 set dummy cc; ac_word=$2
3079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3081 if test "${ac_cv_prog_CC+set}" = set; then
3082   echo $ECHO_N "(cached) $ECHO_C" >&6
3083 else
3084   if test -n "$CC"; then
3085   ac_cv_prog_CC="$CC" # Let the user override the test.
3086 else
3087   ac_prog_rejected=no
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091   IFS=$as_save_IFS
3092   test -z "$as_dir" && as_dir=.
3093   for ac_exec_ext in '' $ac_executable_extensions; do
3094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3096        ac_prog_rejected=yes
3097        continue
3098      fi
3099     ac_cv_prog_CC="cc"
3100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101     break 2
3102   fi
3103 done
3104 done
3105 IFS=$as_save_IFS
3106
3107 if test $ac_prog_rejected = yes; then
3108   # We found a bogon in the path, so make sure we never use it.
3109   set dummy $ac_cv_prog_CC
3110   shift
3111   if test $# != 0; then
3112     # We chose a different compiler from the bogus one.
3113     # However, it has the same basename, so the bogon will be chosen
3114     # first if we set CC to just the basename; use the full file name.
3115     shift
3116     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3117   fi
3118 fi
3119 fi
3120 fi
3121 CC=$ac_cv_prog_CC
3122 if test -n "$CC"; then
3123   { echo "$as_me:$LINENO: result: $CC" >&5
3124 echo "${ECHO_T}$CC" >&6; }
3125 else
3126   { echo "$as_me:$LINENO: result: no" >&5
3127 echo "${ECHO_T}no" >&6; }
3128 fi
3129
3130
3131 fi
3132 if test -z "$CC"; then
3133   if test -n "$ac_tool_prefix"; then
3134   for ac_prog in cl.exe
3135   do
3136     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3140 if test "${ac_cv_prog_CC+set}" = set; then
3141   echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143   if test -n "$CC"; then
3144   ac_cv_prog_CC="$CC" # Let the user override the test.
3145 else
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3148 do
3149   IFS=$as_save_IFS
3150   test -z "$as_dir" && as_dir=.
3151   for ac_exec_ext in '' $ac_executable_extensions; do
3152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3155     break 2
3156   fi
3157 done
3158 done
3159 IFS=$as_save_IFS
3160
3161 fi
3162 fi
3163 CC=$ac_cv_prog_CC
3164 if test -n "$CC"; then
3165   { echo "$as_me:$LINENO: result: $CC" >&5
3166 echo "${ECHO_T}$CC" >&6; }
3167 else
3168   { echo "$as_me:$LINENO: result: no" >&5
3169 echo "${ECHO_T}no" >&6; }
3170 fi
3171
3172
3173     test -n "$CC" && break
3174   done
3175 fi
3176 if test -z "$CC"; then
3177   ac_ct_CC=$CC
3178   for ac_prog in cl.exe
3179 do
3180   # Extract the first word of "$ac_prog", so it can be a program name with args.
3181 set dummy $ac_prog; ac_word=$2
3182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3184 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3185   echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187   if test -n "$ac_ct_CC"; then
3188   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193   IFS=$as_save_IFS
3194   test -z "$as_dir" && as_dir=.
3195   for ac_exec_ext in '' $ac_executable_extensions; do
3196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197     ac_cv_prog_ac_ct_CC="$ac_prog"
3198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199     break 2
3200   fi
3201 done
3202 done
3203 IFS=$as_save_IFS
3204
3205 fi
3206 fi
3207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3208 if test -n "$ac_ct_CC"; then
3209   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3210 echo "${ECHO_T}$ac_ct_CC" >&6; }
3211 else
3212   { echo "$as_me:$LINENO: result: no" >&5
3213 echo "${ECHO_T}no" >&6; }
3214 fi
3215
3216
3217   test -n "$ac_ct_CC" && break
3218 done
3219
3220   if test "x$ac_ct_CC" = x; then
3221     CC=""
3222   else
3223     case $cross_compiling:$ac_tool_warned in
3224 yes:)
3225 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3226 whose name does not start with the host triplet.  If you think this
3227 configuration is useful to you, please write to autoconf@gnu.org." >&5
3228 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3229 whose name does not start with the host triplet.  If you think this
3230 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3231 ac_tool_warned=yes ;;
3232 esac
3233     CC=$ac_ct_CC
3234   fi
3235 fi
3236
3237 fi
3238
3239
3240 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3241 See \`config.log' for more details." >&5
3242 echo "$as_me: error: no acceptable C compiler found in \$PATH
3243 See \`config.log' for more details." >&2;}
3244    { (exit 1); exit 1; }; }
3245
3246 # Provide some information about the compiler.
3247 echo "$as_me:$LINENO: checking for C compiler version" >&5
3248 ac_compiler=`set X $ac_compile; echo $2`
3249 { (ac_try="$ac_compiler --version >&5"
3250 case "(($ac_try" in
3251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252   *) ac_try_echo=$ac_try;;
3253 esac
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255   (eval "$ac_compiler --version >&5") 2>&5
3256   ac_status=$?
3257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258   (exit $ac_status); }
3259 { (ac_try="$ac_compiler -v >&5"
3260 case "(($ac_try" in
3261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262   *) ac_try_echo=$ac_try;;
3263 esac
3264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265   (eval "$ac_compiler -v >&5") 2>&5
3266   ac_status=$?
3267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268   (exit $ac_status); }
3269 { (ac_try="$ac_compiler -V >&5"
3270 case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275   (eval "$ac_compiler -V >&5") 2>&5
3276   ac_status=$?
3277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278   (exit $ac_status); }
3279
3280 cat >conftest.$ac_ext <<_ACEOF
3281 /* confdefs.h.  */
3282 _ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h.  */
3286
3287 int
3288 main ()
3289 {
3290
3291   ;
3292   return 0;
3293 }
3294 _ACEOF
3295 ac_clean_files_save=$ac_clean_files
3296 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3297 # Try to create an executable without -o first, disregard a.out.
3298 # It will help us diagnose broken compilers, and finding out an intuition
3299 # of exeext.
3300 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3301 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3302 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3303 #
3304 # List of possible output files, starting from the most likely.
3305 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3306 # only as a last resort.  b.out is created by i960 compilers.
3307 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3308 #
3309 # The IRIX 6 linker writes into existing files which may not be
3310 # executable, retaining their permissions.  Remove them first so a
3311 # subsequent execution test works.
3312 ac_rmfiles=
3313 for ac_file in $ac_files
3314 do
3315   case $ac_file in
3316     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3317     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3318   esac
3319 done
3320 rm -f $ac_rmfiles
3321
3322 if { (ac_try="$ac_link_default"
3323 case "(($ac_try" in
3324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325   *) ac_try_echo=$ac_try;;
3326 esac
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328   (eval "$ac_link_default") 2>&5
3329   ac_status=$?
3330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331   (exit $ac_status); }; then
3332   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3333 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3334 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3335 # so that the user can short-circuit this test for compilers unknown to
3336 # Autoconf.
3337 for ac_file in $ac_files ''
3338 do
3339   test -f "$ac_file" || continue
3340   case $ac_file in
3341     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3342         ;;
3343     [ab].out )
3344         # We found the default executable, but exeext='' is most
3345         # certainly right.
3346         break;;
3347     *.* )
3348         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3349         then :; else
3350            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3351         fi
3352         # We set ac_cv_exeext here because the later test for it is not
3353         # safe: cross compilers may not add the suffix if given an `-o'
3354         # argument, so we may need to know it at that point already.
3355         # Even if this section looks crufty: it has the advantage of
3356         # actually working.
3357         break;;
3358     * )
3359         break;;
3360   esac
3361 done
3362 test "$ac_cv_exeext" = no && ac_cv_exeext=
3363
3364 else
3365   ac_file=''
3366 fi
3367
3368 { echo "$as_me:$LINENO: result: $ac_file" >&5
3369 echo "${ECHO_T}$ac_file" >&6; }
3370 if test -z "$ac_file"; then
3371   echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3373
3374 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3375 See \`config.log' for more details." >&5
3376 echo "$as_me: error: C compiler cannot create executables
3377 See \`config.log' for more details." >&2;}
3378    { (exit 77); exit 77; }; }
3379 fi
3380
3381 ac_exeext=$ac_cv_exeext
3382
3383 # Check that the compiler produces executables we can run.  If not, either
3384 # the compiler is broken, or we cross compile.
3385 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3386 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3387 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3388 # If not cross compiling, check that we can run a simple program.
3389 if test "$cross_compiling" != yes; then
3390   if { ac_try='./$ac_file'
3391   { (case "(($ac_try" in
3392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393   *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396   (eval "$ac_try") 2>&5
3397   ac_status=$?
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); }; }; then
3400     cross_compiling=no
3401   else
3402     if test "$cross_compiling" = maybe; then
3403         cross_compiling=yes
3404     else
3405         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3406 If you meant to cross compile, use \`--host'.
3407 See \`config.log' for more details." >&5
3408 echo "$as_me: error: cannot run C compiled programs.
3409 If you meant to cross compile, use \`--host'.
3410 See \`config.log' for more details." >&2;}
3411    { (exit 1); exit 1; }; }
3412     fi
3413   fi
3414 fi
3415 { echo "$as_me:$LINENO: result: yes" >&5
3416 echo "${ECHO_T}yes" >&6; }
3417
3418 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3419 ac_clean_files=$ac_clean_files_save
3420 # Check that the compiler produces executables we can run.  If not, either
3421 # the compiler is broken, or we cross compile.
3422 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3423 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3424 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3425 echo "${ECHO_T}$cross_compiling" >&6; }
3426
3427 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3428 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3429 if { (ac_try="$ac_link"
3430 case "(($ac_try" in
3431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432   *) ac_try_echo=$ac_try;;
3433 esac
3434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3435   (eval "$ac_link") 2>&5
3436   ac_status=$?
3437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438   (exit $ac_status); }; then
3439   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3440 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3441 # work properly (i.e., refer to `conftest.exe'), while it won't with
3442 # `rm'.
3443 for ac_file in conftest.exe conftest conftest.*; do
3444   test -f "$ac_file" || continue
3445   case $ac_file in
3446     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3447     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3448           break;;
3449     * ) break;;
3450   esac
3451 done
3452 else
3453   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3454 See \`config.log' for more details." >&5
3455 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3456 See \`config.log' for more details." >&2;}
3457    { (exit 1); exit 1; }; }
3458 fi
3459
3460 rm -f conftest$ac_cv_exeext
3461 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3462 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3463
3464 rm -f conftest.$ac_ext
3465 EXEEXT=$ac_cv_exeext
3466 ac_exeext=$EXEEXT
3467 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3468 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3469 if test "${ac_cv_objext+set}" = set; then
3470   echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472   cat >conftest.$ac_ext <<_ACEOF
3473 /* confdefs.h.  */
3474 _ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h.  */
3478
3479 int
3480 main ()
3481 {
3482
3483   ;
3484   return 0;
3485 }
3486 _ACEOF
3487 rm -f conftest.o conftest.obj
3488 if { (ac_try="$ac_compile"
3489 case "(($ac_try" in
3490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491   *) ac_try_echo=$ac_try;;
3492 esac
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494   (eval "$ac_compile") 2>&5
3495   ac_status=$?
3496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497   (exit $ac_status); }; then
3498   for ac_file in conftest.o conftest.obj conftest.*; do
3499   test -f "$ac_file" || continue;
3500   case $ac_file in
3501     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3502     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3503        break;;
3504   esac
3505 done
3506 else
3507   echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3509
3510 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3511 See \`config.log' for more details." >&5
3512 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3513 See \`config.log' for more details." >&2;}
3514    { (exit 1); exit 1; }; }
3515 fi
3516
3517 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3518 fi
3519 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3520 echo "${ECHO_T}$ac_cv_objext" >&6; }
3521 OBJEXT=$ac_cv_objext
3522 ac_objext=$OBJEXT
3523 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3524 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3525 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3526   echo $ECHO_N "(cached) $ECHO_C" >&6
3527 else
3528   cat >conftest.$ac_ext <<_ACEOF
3529 /* confdefs.h.  */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h.  */
3534
3535 int
3536 main ()
3537 {
3538 #ifndef __GNUC__
3539        choke me
3540 #endif
3541
3542   ;
3543   return 0;
3544 }
3545 _ACEOF
3546 rm -f conftest.$ac_objext
3547 if { (ac_try="$ac_compile"
3548 case "(($ac_try" in
3549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550   *) ac_try_echo=$ac_try;;
3551 esac
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553   (eval "$ac_compile") 2>conftest.er1
3554   ac_status=$?
3555   grep -v '^ *+' conftest.er1 >conftest.err
3556   rm -f conftest.er1
3557   cat conftest.err >&5
3558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559   (exit $ac_status); } && {
3560          test -z "$ac_c_werror_flag" ||
3561          test ! -s conftest.err
3562        } && test -s conftest.$ac_objext; then
3563   ac_compiler_gnu=yes
3564 else
3565   echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568         ac_compiler_gnu=no
3569 fi
3570
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3573
3574 fi
3575 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3576 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3577 GCC=`test $ac_compiler_gnu = yes && echo yes`
3578 ac_test_CFLAGS=${CFLAGS+set}
3579 ac_save_CFLAGS=$CFLAGS
3580 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3581 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3582 if test "${ac_cv_prog_cc_g+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   ac_save_c_werror_flag=$ac_c_werror_flag
3586    ac_c_werror_flag=yes
3587    ac_cv_prog_cc_g=no
3588    CFLAGS="-g"
3589    cat >conftest.$ac_ext <<_ACEOF
3590 /* confdefs.h.  */
3591 _ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h.  */
3595
3596 int
3597 main ()
3598 {
3599
3600   ;
3601   return 0;
3602 }
3603 _ACEOF
3604 rm -f conftest.$ac_objext
3605 if { (ac_try="$ac_compile"
3606 case "(($ac_try" in
3607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608   *) ac_try_echo=$ac_try;;
3609 esac
3610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611   (eval "$ac_compile") 2>conftest.er1
3612   ac_status=$?
3613   grep -v '^ *+' conftest.er1 >conftest.err
3614   rm -f conftest.er1
3615   cat conftest.err >&5
3616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617   (exit $ac_status); } && {
3618          test -z "$ac_c_werror_flag" ||
3619          test ! -s conftest.err
3620        } && test -s conftest.$ac_objext; then
3621   ac_cv_prog_cc_g=yes
3622 else
3623   echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3625
3626         CFLAGS=""
3627       cat >conftest.$ac_ext <<_ACEOF
3628 /* confdefs.h.  */
3629 _ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h.  */
3633
3634 int
3635 main ()
3636 {
3637
3638   ;
3639   return 0;
3640 }
3641 _ACEOF
3642 rm -f conftest.$ac_objext
3643 if { (ac_try="$ac_compile"
3644 case "(($ac_try" in
3645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646   *) ac_try_echo=$ac_try;;
3647 esac
3648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3649   (eval "$ac_compile") 2>conftest.er1
3650   ac_status=$?
3651   grep -v '^ *+' conftest.er1 >conftest.err
3652   rm -f conftest.er1
3653   cat conftest.err >&5
3654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655   (exit $ac_status); } && {
3656          test -z "$ac_c_werror_flag" ||
3657          test ! -s conftest.err
3658        } && test -s conftest.$ac_objext; then
3659   :
3660 else
3661   echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3663
3664         ac_c_werror_flag=$ac_save_c_werror_flag
3665          CFLAGS="-g"
3666          cat >conftest.$ac_ext <<_ACEOF
3667 /* confdefs.h.  */
3668 _ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h.  */
3672
3673 int
3674 main ()
3675 {
3676
3677   ;
3678   return 0;
3679 }
3680 _ACEOF
3681 rm -f conftest.$ac_objext
3682 if { (ac_try="$ac_compile"
3683 case "(($ac_try" in
3684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685   *) ac_try_echo=$ac_try;;
3686 esac
3687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3688   (eval "$ac_compile") 2>conftest.er1
3689   ac_status=$?
3690   grep -v '^ *+' conftest.er1 >conftest.err
3691   rm -f conftest.er1
3692   cat conftest.err >&5
3693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694   (exit $ac_status); } && {
3695          test -z "$ac_c_werror_flag" ||
3696          test ! -s conftest.err
3697        } && test -s conftest.$ac_objext; then
3698   ac_cv_prog_cc_g=yes
3699 else
3700   echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3702
3703
3704 fi
3705
3706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 fi
3708
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710 fi
3711
3712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713    ac_c_werror_flag=$ac_save_c_werror_flag
3714 fi
3715 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3716 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3717 if test "$ac_test_CFLAGS" = set; then
3718   CFLAGS=$ac_save_CFLAGS
3719 elif test $ac_cv_prog_cc_g = yes; then
3720   if test "$GCC" = yes; then
3721     CFLAGS="-g -O2"
3722   else
3723     CFLAGS="-g"
3724   fi
3725 else
3726   if test "$GCC" = yes; then
3727     CFLAGS="-O2"
3728   else
3729     CFLAGS=
3730   fi
3731 fi
3732 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3733 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3734 if test "${ac_cv_prog_cc_c89+set}" = set; then
3735   echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737   ac_cv_prog_cc_c89=no
3738 ac_save_CC=$CC
3739 cat >conftest.$ac_ext <<_ACEOF
3740 /* confdefs.h.  */
3741 _ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h.  */
3745 #include <stdarg.h>
3746 #include <stdio.h>
3747 #include <sys/types.h>
3748 #include <sys/stat.h>
3749 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3750 struct buf { int x; };
3751 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3752 static char *e (p, i)
3753      char **p;
3754      int i;
3755 {
3756   return p[i];
3757 }
3758 static char *f (char * (*g) (char **, int), char **p, ...)
3759 {
3760   char *s;
3761   va_list v;
3762   va_start (v,p);
3763   s = g (p, va_arg (v,int));
3764   va_end (v);
3765   return s;
3766 }
3767
3768 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3769    function prototypes and stuff, but not '\xHH' hex character constants.
3770    These don't provoke an error unfortunately, instead are silently treated
3771    as 'x'.  The following induces an error, until -std is added to get
3772    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3773    array size at least.  It's necessary to write '\x00'==0 to get something
3774    that's true only with -std.  */
3775 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3776
3777 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3778    inside strings and character constants.  */
3779 #define FOO(x) 'x'
3780 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3781
3782 int test (int i, double x);
3783 struct s1 {int (*f) (int a);};
3784 struct s2 {int (*f) (double a);};
3785 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3786 int argc;
3787 char **argv;
3788 int
3789 main ()
3790 {
3791 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3792   ;
3793   return 0;
3794 }
3795 _ACEOF
3796 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3797         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3798 do
3799   CC="$ac_save_CC $ac_arg"
3800   rm -f conftest.$ac_objext
3801 if { (ac_try="$ac_compile"
3802 case "(($ac_try" in
3803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804   *) ac_try_echo=$ac_try;;
3805 esac
3806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807   (eval "$ac_compile") 2>conftest.er1
3808   ac_status=$?
3809   grep -v '^ *+' conftest.er1 >conftest.err
3810   rm -f conftest.er1
3811   cat conftest.err >&5
3812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813   (exit $ac_status); } && {
3814          test -z "$ac_c_werror_flag" ||
3815          test ! -s conftest.err
3816        } && test -s conftest.$ac_objext; then
3817   ac_cv_prog_cc_c89=$ac_arg
3818 else
3819   echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3821
3822
3823 fi
3824
3825 rm -f core conftest.err conftest.$ac_objext
3826   test "x$ac_cv_prog_cc_c89" != "xno" && break
3827 done
3828 rm -f conftest.$ac_ext
3829 CC=$ac_save_CC
3830
3831 fi
3832 # AC_CACHE_VAL
3833 case "x$ac_cv_prog_cc_c89" in
3834   x)
3835     { echo "$as_me:$LINENO: result: none needed" >&5
3836 echo "${ECHO_T}none needed" >&6; } ;;
3837   xno)
3838     { echo "$as_me:$LINENO: result: unsupported" >&5
3839 echo "${ECHO_T}unsupported" >&6; } ;;
3840   *)
3841     CC="$CC $ac_cv_prog_cc_c89"
3842     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3843 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3844 esac
3845
3846
3847 ac_ext=c
3848 ac_cpp='$CPP $CPPFLAGS'
3849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3852
3853 depcc="$CC"   am_compiler_list=
3854
3855 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3856 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3857 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3858   echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3861   # We make a subdir and do the tests there.  Otherwise we can end up
3862   # making bogus files that we don't know about and never remove.  For
3863   # instance it was reported that on HP-UX the gcc test will end up
3864   # making a dummy file named `D' -- because `-MD' means `put the output
3865   # in D'.
3866   mkdir conftest.dir
3867   # Copy depcomp to subdir because otherwise we won't find it if we're
3868   # using a relative directory.
3869   cp "$am_depcomp" conftest.dir
3870   cd conftest.dir
3871   # We will build objects and dependencies in a subdirectory because
3872   # it helps to detect inapplicable dependency modes.  For instance
3873   # both Tru64's cc and ICC support -MD to output dependencies as a
3874   # side effect of compilation, but ICC will put the dependencies in
3875   # the current directory while Tru64 will put them in the object
3876   # directory.
3877   mkdir sub
3878
3879   am_cv_CC_dependencies_compiler_type=none
3880   if test "$am_compiler_list" = ""; then
3881      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3882   fi
3883   for depmode in $am_compiler_list; do
3884     # Setup a source with many dependencies, because some compilers
3885     # like to wrap large dependency lists on column 80 (with \), and
3886     # we should not choose a depcomp mode which is confused by this.
3887     #
3888     # We need to recreate these files for each test, as the compiler may
3889     # overwrite some of them when testing with obscure command lines.
3890     # This happens at least with the AIX C compiler.
3891     : > sub/conftest.c
3892     for i in 1 2 3 4 5 6; do
3893       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3894       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3895       # Solaris 8's {/usr,}/bin/sh.
3896       touch sub/conftst$i.h
3897     done
3898     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3899
3900     case $depmode in
3901     nosideeffect)
3902       # after this tag, mechanisms are not by side-effect, so they'll
3903       # only be used when explicitly requested
3904       if test "x$enable_dependency_tracking" = xyes; then
3905         continue
3906       else
3907         break
3908       fi
3909       ;;
3910     none) break ;;
3911     esac
3912     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3913     # mode.  It turns out that the SunPro C++ compiler does not properly
3914     # handle `-M -o', and we need to detect this.
3915     if depmode=$depmode \
3916        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3917        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3918        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3919          >/dev/null 2>conftest.err &&
3920        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3921        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3922        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3923        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3924       # icc doesn't choke on unknown options, it will just issue warnings
3925       # or remarks (even with -Werror).  So we grep stderr for any message
3926       # that says an option was ignored or not supported.
3927       # When given -MP, icc 7.0 and 7.1 complain thusly:
3928       #   icc: Command line warning: ignoring option '-M'; no argument required
3929       # The diagnosis changed in icc 8.0:
3930       #   icc: Command line remark: option '-MP' not supported
3931       if (grep 'ignoring option' conftest.err ||
3932           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3933         am_cv_CC_dependencies_compiler_type=$depmode
3934         break
3935       fi
3936     fi
3937   done
3938
3939   cd ..
3940   rm -rf conftest.dir
3941 else
3942   am_cv_CC_dependencies_compiler_type=none
3943 fi
3944
3945 fi
3946 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3947 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3948 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3949
3950  if
3951   test "x$enable_dependency_tracking" != xno \
3952   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3953   am__fastdepCC_TRUE=
3954   am__fastdepCC_FALSE='#'
3955 else
3956   am__fastdepCC_TRUE='#'
3957   am__fastdepCC_FALSE=
3958 fi
3959
3960
3961 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3962 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3963 if test "${lt_cv_path_SED+set}" = set; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   # Loop through the user's path and test for sed and gsed.
3967 # Then use that list of sed's as ones to test for truncation.
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 for as_dir in $PATH
3970 do
3971   IFS=$as_save_IFS
3972   test -z "$as_dir" && as_dir=.
3973   for lt_ac_prog in sed gsed; do
3974     for ac_exec_ext in '' $ac_executable_extensions; do
3975       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3976         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3977       fi
3978     done
3979   done
3980 done
3981 IFS=$as_save_IFS
3982 lt_ac_max=0
3983 lt_ac_count=0
3984 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3985 # along with /bin/sed that truncates output.
3986 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3987   test ! -f $lt_ac_sed && continue
3988   cat /dev/null > conftest.in
3989   lt_ac_count=0
3990   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3991   # Check for GNU sed and select it if it is found.
3992   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3993     lt_cv_path_SED=$lt_ac_sed
3994     break
3995   fi
3996   while true; do
3997     cat conftest.in conftest.in >conftest.tmp
3998     mv conftest.tmp conftest.in
3999     cp conftest.in conftest.nl
4000     echo >>conftest.nl
4001     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4002     cmp -s conftest.out conftest.nl || break
4003     # 10000 chars as input seems more than enough
4004     test $lt_ac_count -gt 10 && break
4005     lt_ac_count=`expr $lt_ac_count + 1`
4006     if test $lt_ac_count -gt $lt_ac_max; then
4007       lt_ac_max=$lt_ac_count
4008       lt_cv_path_SED=$lt_ac_sed
4009     fi
4010   done
4011 done
4012
4013 fi
4014
4015 SED=$lt_cv_path_SED
4016
4017 { echo "$as_me:$LINENO: result: $SED" >&5
4018 echo "${ECHO_T}$SED" >&6; }
4019
4020 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4021 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4022 if test "${ac_cv_path_GREP+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   # Extract the first word of "grep ggrep" to use in msg output
4026 if test -z "$GREP"; then
4027 set dummy grep ggrep; ac_prog_name=$2
4028 if test "${ac_cv_path_GREP+set}" = set; then
4029   echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031   ac_path_GREP_found=false
4032 # Loop through the user's path and test for each of PROGNAME-LIST
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4035 do
4036   IFS=$as_save_IFS
4037   test -z "$as_dir" && as_dir=.
4038   for ac_prog in grep ggrep; do
4039   for ac_exec_ext in '' $ac_executable_extensions; do
4040     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4041     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4042     # Check for GNU ac_path_GREP and select it if it is found.
4043   # Check for GNU $ac_path_GREP
4044 case `"$ac_path_GREP" --version 2>&1` in
4045 *GNU*)
4046   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4047 *)
4048   ac_count=0
4049   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4050   while :
4051   do
4052     cat "conftest.in" "conftest.in" >"conftest.tmp"
4053     mv "conftest.tmp" "conftest.in"
4054     cp "conftest.in" "conftest.nl"
4055     echo 'GREP' >> "conftest.nl"
4056     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4057     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4058     ac_count=`expr $ac_count + 1`
4059     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4060       # Best one so far, save it but keep looking for a better one
4061       ac_cv_path_GREP="$ac_path_GREP"
4062       ac_path_GREP_max=$ac_count
4063     fi
4064     # 10*(2^10) chars as input seems more than enough
4065     test $ac_count -gt 10 && break
4066   done
4067   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4068 esac
4069
4070
4071     $ac_path_GREP_found && break 3
4072   done
4073 done
4074
4075 done
4076 IFS=$as_save_IFS
4077
4078
4079 fi
4080
4081 GREP="$ac_cv_path_GREP"
4082 if test -z "$GREP"; then
4083   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4084 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4085    { (exit 1); exit 1; }; }
4086 fi
4087
4088 else
4089   ac_cv_path_GREP=$GREP
4090 fi
4091
4092
4093 fi
4094 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4095 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4096  GREP="$ac_cv_path_GREP"
4097
4098
4099 { echo "$as_me:$LINENO: checking for egrep" >&5
4100 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4101 if test "${ac_cv_path_EGREP+set}" = set; then
4102   echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4105    then ac_cv_path_EGREP="$GREP -E"
4106    else
4107      # Extract the first word of "egrep" to use in msg output
4108 if test -z "$EGREP"; then
4109 set dummy egrep; ac_prog_name=$2
4110 if test "${ac_cv_path_EGREP+set}" = set; then
4111   echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113   ac_path_EGREP_found=false
4114 # Loop through the user's path and test for each of PROGNAME-LIST
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4117 do
4118   IFS=$as_save_IFS
4119   test -z "$as_dir" && as_dir=.
4120   for ac_prog in egrep; do
4121   for ac_exec_ext in '' $ac_executable_extensions; do
4122     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4123     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4124     # Check for GNU ac_path_EGREP and select it if it is found.
4125   # Check for GNU $ac_path_EGREP
4126 case `"$ac_path_EGREP" --version 2>&1` in
4127 *GNU*)
4128   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4129 *)
4130   ac_count=0
4131   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4132   while :
4133   do
4134     cat "conftest.in" "conftest.in" >"conftest.tmp"
4135     mv "conftest.tmp" "conftest.in"
4136     cp "conftest.in" "conftest.nl"
4137     echo 'EGREP' >> "conftest.nl"
4138     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4139     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4140     ac_count=`expr $ac_count + 1`
4141     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4142       # Best one so far, save it but keep looking for a better one
4143       ac_cv_path_EGREP="$ac_path_EGREP"
4144       ac_path_EGREP_max=$ac_count
4145     fi
4146     # 10*(2^10) chars as input seems more than enough
4147     test $ac_count -gt 10 && break
4148   done
4149   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4150 esac
4151
4152
4153     $ac_path_EGREP_found && break 3
4154   done
4155 done
4156
4157 done
4158 IFS=$as_save_IFS
4159
4160
4161 fi
4162
4163 EGREP="$ac_cv_path_EGREP"
4164 if test -z "$EGREP"; then
4165   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4166 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4167    { (exit 1); exit 1; }; }
4168 fi
4169
4170 else
4171   ac_cv_path_EGREP=$EGREP
4172 fi
4173
4174
4175    fi
4176 fi
4177 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4178 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4179  EGREP="$ac_cv_path_EGREP"
4180
4181
4182
4183 # Check whether --with-gnu-ld was given.
4184 if test "${with_gnu_ld+set}" = set; then
4185   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4186 else
4187   with_gnu_ld=no
4188 fi
4189
4190 ac_prog=ld
4191 if test "$GCC" = yes; then
4192   # Check if gcc -print-prog-name=ld gives a path.
4193   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4194 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4195   case $host in
4196   *-*-mingw*)
4197     # gcc leaves a trailing carriage return which upsets mingw
4198     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4199   *)
4200     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4201   esac
4202   case $ac_prog in
4203     # Accept absolute paths.
4204     [\\/]* | ?:[\\/]*)
4205       re_direlt='/[^/][^/]*/\.\./'
4206       # Canonicalize the pathname of ld
4207       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4208       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4209         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4210       done
4211       test -z "$LD" && LD="$ac_prog"
4212       ;;
4213   "")
4214     # If it fails, then pretend we aren't using GCC.
4215     ac_prog=ld
4216     ;;
4217   *)
4218     # If it is relative, then search for the first ld in PATH.
4219     with_gnu_ld=unknown
4220     ;;
4221   esac
4222 elif test "$with_gnu_ld" = yes; then
4223   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4224 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4225 else
4226   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4227 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4228 fi
4229 if test "${lt_cv_path_LD+set}" = set; then
4230   echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232   if test -z "$LD"; then
4233   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4234   for ac_dir in $PATH; do
4235     IFS="$lt_save_ifs"
4236     test -z "$ac_dir" && ac_dir=.
4237     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4238       lt_cv_path_LD="$ac_dir/$ac_prog"
4239       # Check to see if the program is GNU ld.  I'd rather use --version,
4240       # but apparently some variants of GNU ld only accept -v.
4241       # Break only if it was the GNU/non-GNU ld that we prefer.
4242       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4243       *GNU* | *'with BFD'*)
4244         test "$with_gnu_ld" != no && break
4245         ;;
4246       *)
4247         test "$with_gnu_ld" != yes && break
4248         ;;
4249       esac
4250     fi
4251   done
4252   IFS="$lt_save_ifs"
4253 else
4254   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4255 fi
4256 fi
4257
4258 LD="$lt_cv_path_LD"
4259 if test -n "$LD"; then
4260   { echo "$as_me:$LINENO: result: $LD" >&5
4261 echo "${ECHO_T}$LD" >&6; }
4262 else
4263   { echo "$as_me:$LINENO: result: no" >&5
4264 echo "${ECHO_T}no" >&6; }
4265 fi
4266 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4267 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4268    { (exit 1); exit 1; }; }
4269 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4270 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4271 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4272   echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4275 case `$LD -v 2>&1 </dev/null` in
4276 *GNU* | *'with BFD'*)
4277   lt_cv_prog_gnu_ld=yes
4278   ;;
4279 *)
4280   lt_cv_prog_gnu_ld=no
4281   ;;
4282 esac
4283 fi
4284 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4285 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4286 with_gnu_ld=$lt_cv_prog_gnu_ld
4287
4288
4289 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4290 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4291 if test "${lt_cv_ld_reload_flag+set}" = set; then
4292   echo $ECHO_N "(cached) $ECHO_C" >&6
4293 else
4294   lt_cv_ld_reload_flag='-r'
4295 fi
4296 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4297 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4298 reload_flag=$lt_cv_ld_reload_flag
4299 case $reload_flag in
4300 "" | " "*) ;;
4301 *) reload_flag=" $reload_flag" ;;
4302 esac
4303 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4304 case $host_os in
4305   darwin*)
4306     if test "$GCC" = yes; then
4307       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4308     else
4309       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4310     fi
4311     ;;
4312 esac
4313
4314 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4315 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4316 if test "${lt_cv_path_NM+set}" = set; then
4317   echo $ECHO_N "(cached) $ECHO_C" >&6
4318 else
4319   if test -n "$NM"; then
4320   # Let the user override the test.
4321   lt_cv_path_NM="$NM"
4322 else
4323   lt_nm_to_check="${ac_tool_prefix}nm"
4324   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4325     lt_nm_to_check="$lt_nm_to_check nm"
4326   fi
4327   for lt_tmp_nm in $lt_nm_to_check; do
4328     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4329     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4330       IFS="$lt_save_ifs"
4331       test -z "$ac_dir" && ac_dir=.
4332       tmp_nm="$ac_dir/$lt_tmp_nm"
4333       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4334         # Check to see if the nm accepts a BSD-compat flag.
4335         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4336         #   nm: unknown option "B" ignored
4337         # Tru64's nm complains that /dev/null is an invalid object file
4338         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4339         */dev/null* | *'Invalid file or object type'*)
4340           lt_cv_path_NM="$tmp_nm -B"
4341           break
4342           ;;
4343         *)
4344           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4345           */dev/null*)
4346             lt_cv_path_NM="$tmp_nm -p"
4347             break
4348             ;;
4349           *)
4350             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4351             continue # so that we can try to find one that supports BSD flags
4352             ;;
4353           esac
4354           ;;
4355         esac
4356       fi
4357     done
4358     IFS="$lt_save_ifs"
4359   done
4360   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4361 fi
4362 fi
4363 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4364 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4365 NM="$lt_cv_path_NM"
4366
4367 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4368 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4369 LN_S=$as_ln_s
4370 if test "$LN_S" = "ln -s"; then
4371   { echo "$as_me:$LINENO: result: yes" >&5
4372 echo "${ECHO_T}yes" >&6; }
4373 else
4374   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4375 echo "${ECHO_T}no, using $LN_S" >&6; }
4376 fi
4377
4378 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4379 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4380 if test "${lt_cv_deplibs_check_method+set}" = set; then
4381   echo $ECHO_N "(cached) $ECHO_C" >&6
4382 else
4383   lt_cv_file_magic_cmd='$MAGIC_CMD'
4384 lt_cv_file_magic_test_file=
4385 lt_cv_deplibs_check_method='unknown'
4386 # Need to set the preceding variable on all platforms that support
4387 # interlibrary dependencies.
4388 # 'none' -- dependencies not supported.
4389 # `unknown' -- same as none, but documents that we really don't know.
4390 # 'pass_all' -- all dependencies passed with no checks.
4391 # 'test_compile' -- check by making test program.
4392 # 'file_magic [[regex]]' -- check by looking for files in library path
4393 # which responds to the $file_magic_cmd with a given extended regex.
4394 # If you have `file' or equivalent on your system and you're not sure
4395 # whether `pass_all' will *always* work, you probably want this one.
4396
4397 case $host_os in
4398 aix[4-9]*)
4399   lt_cv_deplibs_check_method=pass_all
4400   ;;
4401
4402 beos*)
4403   lt_cv_deplibs_check_method=pass_all
4404   ;;
4405
4406 bsdi[45]*)
4407   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4408   lt_cv_file_magic_cmd='/usr/bin/file -L'
4409   lt_cv_file_magic_test_file=/shlib/libc.so
4410   ;;
4411
4412 cygwin*)
4413   # func_win32_libid is a shell function defined in ltmain.sh
4414   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4415   lt_cv_file_magic_cmd='func_win32_libid'
4416   ;;
4417
4418 mingw* | pw32*)
4419   # Base MSYS/MinGW do not provide the 'file' command needed by
4420   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4421   # unless we find 'file', for example because we are cross-compiling.
4422   if ( file / ) >/dev/null 2>&1; then
4423     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4424     lt_cv_file_magic_cmd='func_win32_libid'
4425   else
4426     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4427     lt_cv_file_magic_cmd='$OBJDUMP -f'
4428   fi
4429   ;;
4430
4431 darwin* | rhapsody*)
4432   lt_cv_deplibs_check_method=pass_all
4433   ;;
4434
4435 freebsd* | dragonfly*)
4436   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4437     case $host_cpu in
4438     i*86 )
4439       # Not sure whether the presence of OpenBSD here was a mistake.
4440       # Let's accept both of them until this is cleared up.
4441       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4442       lt_cv_file_magic_cmd=/usr/bin/file
4443       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4444       ;;
4445     esac
4446   else
4447     lt_cv_deplibs_check_method=pass_all
4448   fi
4449   ;;
4450
4451 gnu*)
4452   lt_cv_deplibs_check_method=pass_all
4453   ;;
4454
4455 hpux10.20* | hpux11*)
4456   lt_cv_file_magic_cmd=/usr/bin/file
4457   case $host_cpu in
4458   ia64*)
4459     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4460     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4461     ;;
4462   hppa*64*)
4463     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]'
4464     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4465     ;;
4466   *)
4467     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4468     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4469     ;;
4470   esac
4471   ;;
4472
4473 interix[3-9]*)
4474   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4475   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4476   ;;
4477
4478 irix5* | irix6* | nonstopux*)
4479   case $LD in
4480   *-32|*"-32 ") libmagic=32-bit;;
4481   *-n32|*"-n32 ") libmagic=N32;;
4482   *-64|*"-64 ") libmagic=64-bit;;
4483   *) libmagic=never-match;;
4484   esac
4485   lt_cv_deplibs_check_method=pass_all
4486   ;;
4487
4488 # This must be Linux ELF.
4489 linux* | k*bsd*-gnu)
4490   lt_cv_deplibs_check_method=pass_all
4491   ;;
4492
4493 netbsd* | netbsdelf*-gnu)
4494   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4495     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4496   else
4497     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4498   fi
4499   ;;
4500
4501 newos6*)
4502   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4503   lt_cv_file_magic_cmd=/usr/bin/file
4504   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4505   ;;
4506
4507 nto-qnx*)
4508   lt_cv_deplibs_check_method=unknown
4509   ;;
4510
4511 openbsd*)
4512   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4513     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4514   else
4515     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4516   fi
4517   ;;
4518
4519 osf3* | osf4* | osf5*)
4520   lt_cv_deplibs_check_method=pass_all
4521   ;;
4522
4523 rdos*)
4524   lt_cv_deplibs_check_method=pass_all
4525   ;;
4526
4527 solaris*)
4528   lt_cv_deplibs_check_method=pass_all
4529   ;;
4530
4531 sysv4 | sysv4.3*)
4532   case $host_vendor in
4533   motorola)
4534     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]'
4535     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4536     ;;
4537   ncr)
4538     lt_cv_deplibs_check_method=pass_all
4539     ;;
4540   sequent)
4541     lt_cv_file_magic_cmd='/bin/file'
4542     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4543     ;;
4544   sni)
4545     lt_cv_file_magic_cmd='/bin/file'
4546     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4547     lt_cv_file_magic_test_file=/lib/libc.so
4548     ;;
4549   siemens)
4550     lt_cv_deplibs_check_method=pass_all
4551     ;;
4552   pc)
4553     lt_cv_deplibs_check_method=pass_all
4554     ;;
4555   esac
4556   ;;
4557
4558 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4559   lt_cv_deplibs_check_method=pass_all
4560   ;;
4561 esac
4562
4563 fi
4564 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4565 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4566 file_magic_cmd=$lt_cv_file_magic_cmd
4567 deplibs_check_method=$lt_cv_deplibs_check_method
4568 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4569
4570
4571
4572
4573 # If no C compiler was specified, use CC.
4574 LTCC=${LTCC-"$CC"}
4575
4576 # If no C compiler flags were specified, use CFLAGS.
4577 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4578
4579 # Allow CC to be a program name with arguments.
4580 compiler=$CC
4581
4582
4583 # Check whether --enable-libtool-lock was given.
4584 if test "${enable_libtool_lock+set}" = set; then
4585   enableval=$enable_libtool_lock;
4586 fi
4587
4588 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4589
4590 # Some flags need to be propagated to the compiler or linker for good
4591 # libtool support.
4592 case $host in
4593 ia64-*-hpux*)
4594   # Find out which ABI we are using.
4595   echo 'int i;' > conftest.$ac_ext
4596   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4597   (eval $ac_compile) 2>&5
4598   ac_status=$?
4599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600   (exit $ac_status); }; then
4601     case `/usr/bin/file conftest.$ac_objext` in
4602     *ELF-32*)
4603       HPUX_IA64_MODE="32"
4604       ;;
4605     *ELF-64*)
4606       HPUX_IA64_MODE="64"
4607       ;;
4608     esac
4609   fi
4610   rm -rf conftest*
4611   ;;
4612 *-*-irix6*)
4613   # Find out which ABI we are using.
4614   echo '#line 4614 "configure"' > conftest.$ac_ext
4615   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616   (eval $ac_compile) 2>&5
4617   ac_status=$?
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); }; then
4620    if test "$lt_cv_prog_gnu_ld" = yes; then
4621     case `/usr/bin/file conftest.$ac_objext` in
4622     *32-bit*)
4623       LD="${LD-ld} -melf32bsmip"
4624       ;;
4625     *N32*)
4626       LD="${LD-ld} -melf32bmipn32"
4627       ;;
4628     *64-bit*)
4629       LD="${LD-ld} -melf64bmip"
4630       ;;
4631     esac
4632    else
4633     case `/usr/bin/file conftest.$ac_objext` in
4634     *32-bit*)
4635       LD="${LD-ld} -32"
4636       ;;
4637     *N32*)
4638       LD="${LD-ld} -n32"
4639       ;;
4640     *64-bit*)
4641       LD="${LD-ld} -64"
4642       ;;
4643     esac
4644    fi
4645   fi
4646   rm -rf conftest*
4647   ;;
4648
4649 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4650 s390*-*linux*|sparc*-*linux*)
4651   # Find out which ABI we are using.
4652   echo 'int i;' > conftest.$ac_ext
4653   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654   (eval $ac_compile) 2>&5
4655   ac_status=$?
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); }; then
4658     case `/usr/bin/file conftest.o` in
4659     *32-bit*)
4660       case $host in
4661         x86_64-*kfreebsd*-gnu)
4662           LD="${LD-ld} -m elf_i386_fbsd"
4663           ;;
4664         x86_64-*linux*)
4665           LD="${LD-ld} -m elf_i386"
4666           ;;
4667         ppc64-*linux*|powerpc64-*linux*)
4668           LD="${LD-ld} -m elf32ppclinux"
4669           ;;
4670         s390x-*linux*)
4671           LD="${LD-ld} -m elf_s390"
4672           ;;
4673         sparc64-*linux*)
4674           LD="${LD-ld} -m elf32_sparc"
4675           ;;
4676       esac
4677       ;;
4678     *64-bit*)
4679       case $host in
4680         x86_64-*kfreebsd*-gnu)
4681           LD="${LD-ld} -m elf_x86_64_fbsd"
4682           ;;
4683         x86_64-*linux*)
4684           LD="${LD-ld} -m elf_x86_64"
4685           ;;
4686         ppc*-*linux*|powerpc*-*linux*)
4687           LD="${LD-ld} -m elf64ppc"
4688           ;;
4689         s390*-*linux*)
4690           LD="${LD-ld} -m elf64_s390"
4691           ;;
4692         sparc*-*linux*)
4693           LD="${LD-ld} -m elf64_sparc"
4694           ;;
4695       esac
4696       ;;
4697     esac
4698   fi
4699   rm -rf conftest*
4700   ;;
4701
4702 *-*-sco3.2v5*)
4703   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4704   SAVE_CFLAGS="$CFLAGS"
4705   CFLAGS="$CFLAGS -belf"
4706   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4707 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4708 if test "${lt_cv_cc_needs_belf+set}" = set; then
4709   echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711   ac_ext=c
4712 ac_cpp='$CPP $CPPFLAGS'
4713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4716
4717      cat >conftest.$ac_ext <<_ACEOF
4718 /* confdefs.h.  */
4719 _ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h.  */
4723
4724 int
4725 main ()
4726 {
4727
4728   ;
4729   return 0;
4730 }
4731 _ACEOF
4732 rm -f conftest.$ac_objext conftest$ac_exeext
4733 if { (ac_try="$ac_link"
4734 case "(($ac_try" in
4735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736   *) ac_try_echo=$ac_try;;
4737 esac
4738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4739   (eval "$ac_link") 2>conftest.er1
4740   ac_status=$?
4741   grep -v '^ *+' conftest.er1 >conftest.err
4742   rm -f conftest.er1
4743   cat conftest.err >&5
4744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745   (exit $ac_status); } && {
4746          test -z "$ac_c_werror_flag" ||
4747          test ! -s conftest.err
4748        } && test -s conftest$ac_exeext &&
4749        $as_test_x conftest$ac_exeext; then
4750   lt_cv_cc_needs_belf=yes
4751 else
4752   echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4754
4755         lt_cv_cc_needs_belf=no
4756 fi
4757
4758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4759       conftest$ac_exeext conftest.$ac_ext
4760      ac_ext=c
4761 ac_cpp='$CPP $CPPFLAGS'
4762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4765
4766 fi
4767 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4768 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4769   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4770     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4771     CFLAGS="$SAVE_CFLAGS"
4772   fi
4773   ;;
4774 sparc*-*solaris*)
4775   # Find out which ABI we are using.
4776   echo 'int i;' > conftest.$ac_ext
4777   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4778   (eval $ac_compile) 2>&5
4779   ac_status=$?
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); }; then
4782     case `/usr/bin/file conftest.o` in
4783     *64-bit*)
4784       case $lt_cv_prog_gnu_ld in
4785       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4786       *)
4787         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4788           LD="${LD-ld} -64"
4789         fi
4790         ;;
4791       esac
4792       ;;
4793     esac
4794   fi
4795   rm -rf conftest*
4796   ;;
4797
4798 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4799   if test -n "$ac_tool_prefix"; then
4800   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4801 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4804 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4805   echo $ECHO_N "(cached) $ECHO_C" >&6
4806 else
4807   if test -n "$DLLTOOL"; then
4808   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4809 else
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH
4812 do
4813   IFS=$as_save_IFS
4814   test -z "$as_dir" && as_dir=.
4815   for ac_exec_ext in '' $ac_executable_extensions; do
4816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4817     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4819     break 2
4820   fi
4821 done
4822 done
4823 IFS=$as_save_IFS
4824
4825 fi
4826 fi
4827 DLLTOOL=$ac_cv_prog_DLLTOOL
4828 if test -n "$DLLTOOL"; then
4829   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4830 echo "${ECHO_T}$DLLTOOL" >&6; }
4831 else
4832   { echo "$as_me:$LINENO: result: no" >&5
4833 echo "${ECHO_T}no" >&6; }
4834 fi
4835
4836
4837 fi
4838 if test -z "$ac_cv_prog_DLLTOOL"; then
4839   ac_ct_DLLTOOL=$DLLTOOL
4840   # Extract the first word of "dlltool", so it can be a program name with args.
4841 set dummy dlltool; ac_word=$2
4842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4844 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4845   echo $ECHO_N "(cached) $ECHO_C" >&6
4846 else
4847   if test -n "$ac_ct_DLLTOOL"; then
4848   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4849 else
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853   IFS=$as_save_IFS
4854   test -z "$as_dir" && as_dir=.
4855   for ac_exec_ext in '' $ac_executable_extensions; do
4856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4857     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4859     break 2
4860   fi
4861 done
4862 done
4863 IFS=$as_save_IFS
4864
4865 fi
4866 fi
4867 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4868 if test -n "$ac_ct_DLLTOOL"; then
4869   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4870 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4871 else
4872   { echo "$as_me:$LINENO: result: no" >&5
4873 echo "${ECHO_T}no" >&6; }
4874 fi
4875
4876   if test "x$ac_ct_DLLTOOL" = x; then
4877     DLLTOOL="false"
4878   else
4879     case $cross_compiling:$ac_tool_warned in
4880 yes:)
4881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4882 whose name does not start with the host triplet.  If you think this
4883 configuration is useful to you, please write to autoconf@gnu.org." >&5
4884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4885 whose name does not start with the host triplet.  If you think this
4886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4887 ac_tool_warned=yes ;;
4888 esac
4889     DLLTOOL=$ac_ct_DLLTOOL
4890   fi
4891 else
4892   DLLTOOL="$ac_cv_prog_DLLTOOL"
4893 fi
4894
4895   if test -n "$ac_tool_prefix"; then
4896   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4897 set dummy ${ac_tool_prefix}as; ac_word=$2
4898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4900 if test "${ac_cv_prog_AS+set}" = set; then
4901   echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903   if test -n "$AS"; then
4904   ac_cv_prog_AS="$AS" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4908 do
4909   IFS=$as_save_IFS
4910   test -z "$as_dir" && as_dir=.
4911   for ac_exec_ext in '' $ac_executable_extensions; do
4912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4913     ac_cv_prog_AS="${ac_tool_prefix}as"
4914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915     break 2
4916   fi
4917 done
4918 done
4919 IFS=$as_save_IFS
4920
4921 fi
4922 fi
4923 AS=$ac_cv_prog_AS
4924 if test -n "$AS"; then
4925   { echo "$as_me:$LINENO: result: $AS" >&5
4926 echo "${ECHO_T}$AS" >&6; }
4927 else
4928   { echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6; }
4930 fi
4931
4932
4933 fi
4934 if test -z "$ac_cv_prog_AS"; then
4935   ac_ct_AS=$AS
4936   # Extract the first word of "as", so it can be a program name with args.
4937 set dummy as; ac_word=$2
4938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4940 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4941   echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943   if test -n "$ac_ct_AS"; then
4944   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4945 else
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4948 do
4949   IFS=$as_save_IFS
4950   test -z "$as_dir" && as_dir=.
4951   for ac_exec_ext in '' $ac_executable_extensions; do
4952   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4953     ac_cv_prog_ac_ct_AS="as"
4954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4955     break 2
4956   fi
4957 done
4958 done
4959 IFS=$as_save_IFS
4960
4961 fi
4962 fi
4963 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4964 if test -n "$ac_ct_AS"; then
4965   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4966 echo "${ECHO_T}$ac_ct_AS" >&6; }
4967 else
4968   { echo "$as_me:$LINENO: result: no" >&5
4969 echo "${ECHO_T}no" >&6; }
4970 fi
4971
4972   if test "x$ac_ct_AS" = x; then
4973     AS="false"
4974   else
4975     case $cross_compiling:$ac_tool_warned in
4976 yes:)
4977 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4978 whose name does not start with the host triplet.  If you think this
4979 configuration is useful to you, please write to autoconf@gnu.org." >&5
4980 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4981 whose name does not start with the host triplet.  If you think this
4982 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4983 ac_tool_warned=yes ;;
4984 esac
4985     AS=$ac_ct_AS
4986   fi
4987 else
4988   AS="$ac_cv_prog_AS"
4989 fi
4990
4991   if test -n "$ac_tool_prefix"; then
4992   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4993 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4996 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4997   echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999   if test -n "$OBJDUMP"; then
5000   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5001 else
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH
5004 do
5005   IFS=$as_save_IFS
5006   test -z "$as_dir" && as_dir=.
5007   for ac_exec_ext in '' $ac_executable_extensions; do
5008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5009     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5011     break 2
5012   fi
5013 done
5014 done
5015 IFS=$as_save_IFS
5016
5017 fi
5018 fi
5019 OBJDUMP=$ac_cv_prog_OBJDUMP
5020 if test -n "$OBJDUMP"; then
5021   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5022 echo "${ECHO_T}$OBJDUMP" >&6; }
5023 else
5024   { echo "$as_me:$LINENO: result: no" >&5
5025 echo "${ECHO_T}no" >&6; }
5026 fi
5027
5028
5029 fi
5030 if test -z "$ac_cv_prog_OBJDUMP"; then
5031   ac_ct_OBJDUMP=$OBJDUMP
5032   # Extract the first word of "objdump", so it can be a program name with args.
5033 set dummy objdump; ac_word=$2
5034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5036 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5037   echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else
5039   if test -n "$ac_ct_OBJDUMP"; then
5040   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5041 else
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH
5044 do
5045   IFS=$as_save_IFS
5046   test -z "$as_dir" && as_dir=.
5047   for ac_exec_ext in '' $ac_executable_extensions; do
5048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5049     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5051     break 2
5052   fi
5053 done
5054 done
5055 IFS=$as_save_IFS
5056
5057 fi
5058 fi
5059 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5060 if test -n "$ac_ct_OBJDUMP"; then
5061   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5062 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5063 else
5064   { echo "$as_me:$LINENO: result: no" >&5
5065 echo "${ECHO_T}no" >&6; }
5066 fi
5067
5068   if test "x$ac_ct_OBJDUMP" = x; then
5069     OBJDUMP="false"
5070   else
5071     case $cross_compiling:$ac_tool_warned in
5072 yes:)
5073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5074 whose name does not start with the host triplet.  If you think this
5075 configuration is useful to you, please write to autoconf@gnu.org." >&5
5076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5077 whose name does not start with the host triplet.  If you think this
5078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5079 ac_tool_warned=yes ;;
5080 esac
5081     OBJDUMP=$ac_ct_OBJDUMP
5082   fi
5083 else
5084   OBJDUMP="$ac_cv_prog_OBJDUMP"
5085 fi
5086
5087   ;;
5088
5089 esac
5090
5091 need_locks="$enable_libtool_lock"
5092
5093
5094 ac_ext=c
5095 ac_cpp='$CPP $CPPFLAGS'
5096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5099 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5100 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5101 # On Suns, sometimes $CPP names a directory.
5102 if test -n "$CPP" && test -d "$CPP"; then
5103   CPP=
5104 fi
5105 if test -z "$CPP"; then
5106   if test "${ac_cv_prog_CPP+set}" = set; then
5107   echo $ECHO_N "(cached) $ECHO_C" >&6
5108 else
5109       # Double quotes because CPP needs to be expanded
5110     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5111     do
5112       ac_preproc_ok=false
5113 for ac_c_preproc_warn_flag in '' yes
5114 do
5115   # Use a header file that comes with gcc, so configuring glibc
5116   # with a fresh cross-compiler works.
5117   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5118   # <limits.h> exists even on freestanding compilers.
5119   # On the NeXT, cc -E runs the code through the compiler's parser,
5120   # not just through cpp. "Syntax error" is here to catch this case.
5121   cat >conftest.$ac_ext <<_ACEOF
5122 /* confdefs.h.  */
5123 _ACEOF
5124 cat confdefs.h >>conftest.$ac_ext
5125 cat >>conftest.$ac_ext <<_ACEOF
5126 /* end confdefs.h.  */
5127 #ifdef __STDC__
5128 # include <limits.h>
5129 #else
5130 # include <assert.h>
5131 #endif
5132                      Syntax error
5133 _ACEOF
5134 if { (ac_try="$ac_cpp conftest.$ac_ext"
5135 case "(($ac_try" in
5136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5137   *) ac_try_echo=$ac_try;;
5138 esac
5139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5140   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5141   ac_status=$?
5142   grep -v '^ *+' conftest.er1 >conftest.err
5143   rm -f conftest.er1
5144   cat conftest.err >&5
5145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146   (exit $ac_status); } >/dev/null && {
5147          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5148          test ! -s conftest.err
5149        }; then
5150   :
5151 else
5152   echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5154
5155   # Broken: fails on valid input.
5156 continue
5157 fi
5158
5159 rm -f conftest.err conftest.$ac_ext
5160
5161   # OK, works on sane cases.  Now check whether nonexistent headers
5162   # can be detected and how.
5163   cat >conftest.$ac_ext <<_ACEOF
5164 /* confdefs.h.  */
5165 _ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h.  */
5169 #include <ac_nonexistent.h>
5170 _ACEOF
5171 if { (ac_try="$ac_cpp conftest.$ac_ext"
5172 case "(($ac_try" in
5173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174   *) ac_try_echo=$ac_try;;
5175 esac
5176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5177   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5178   ac_status=$?
5179   grep -v '^ *+' conftest.er1 >conftest.err
5180   rm -f conftest.er1
5181   cat conftest.err >&5
5182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183   (exit $ac_status); } >/dev/null && {
5184          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5185          test ! -s conftest.err
5186        }; then
5187   # Broken: success on invalid input.
5188 continue
5189 else
5190   echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.$ac_ext >&5
5192
5193   # Passes both tests.
5194 ac_preproc_ok=:
5195 break
5196 fi
5197
5198 rm -f conftest.err conftest.$ac_ext
5199
5200 done
5201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5202 rm -f conftest.err conftest.$ac_ext
5203 if $ac_preproc_ok; then
5204   break
5205 fi
5206
5207     done
5208     ac_cv_prog_CPP=$CPP
5209
5210 fi
5211   CPP=$ac_cv_prog_CPP
5212 else
5213   ac_cv_prog_CPP=$CPP
5214 fi
5215 { echo "$as_me:$LINENO: result: $CPP" >&5
5216 echo "${ECHO_T}$CPP" >&6; }
5217 ac_preproc_ok=false
5218 for ac_c_preproc_warn_flag in '' yes
5219 do
5220   # Use a header file that comes with gcc, so configuring glibc
5221   # with a fresh cross-compiler works.
5222   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5223   # <limits.h> exists even on freestanding compilers.
5224   # On the NeXT, cc -E runs the code through the compiler's parser,
5225   # not just through cpp. "Syntax error" is here to catch this case.
5226   cat >conftest.$ac_ext <<_ACEOF
5227 /* confdefs.h.  */
5228 _ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h.  */
5232 #ifdef __STDC__
5233 # include <limits.h>
5234 #else
5235 # include <assert.h>
5236 #endif
5237                      Syntax error
5238 _ACEOF
5239 if { (ac_try="$ac_cpp conftest.$ac_ext"
5240 case "(($ac_try" in
5241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242   *) ac_try_echo=$ac_try;;
5243 esac
5244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5245   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5246   ac_status=$?
5247   grep -v '^ *+' conftest.er1 >conftest.err
5248   rm -f conftest.er1
5249   cat conftest.err >&5
5250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251   (exit $ac_status); } >/dev/null && {
5252          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5253          test ! -s conftest.err
5254        }; then
5255   :
5256 else
5257   echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5259
5260   # Broken: fails on valid input.
5261 continue
5262 fi
5263
5264 rm -f conftest.err conftest.$ac_ext
5265
5266   # OK, works on sane cases.  Now check whether nonexistent headers
5267   # can be detected and how.
5268   cat >conftest.$ac_ext <<_ACEOF
5269 /* confdefs.h.  */
5270 _ACEOF
5271 cat confdefs.h >>conftest.$ac_ext
5272 cat >>conftest.$ac_ext <<_ACEOF
5273 /* end confdefs.h.  */
5274 #include <ac_nonexistent.h>
5275 _ACEOF
5276 if { (ac_try="$ac_cpp conftest.$ac_ext"
5277 case "(($ac_try" in
5278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5279   *) ac_try_echo=$ac_try;;
5280 esac
5281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5282   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5283   ac_status=$?
5284   grep -v '^ *+' conftest.er1 >conftest.err
5285   rm -f conftest.er1
5286   cat conftest.err >&5
5287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288   (exit $ac_status); } >/dev/null && {
5289          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5290          test ! -s conftest.err
5291        }; then
5292   # Broken: success on invalid input.
5293 continue
5294 else
5295   echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5297
5298   # Passes both tests.
5299 ac_preproc_ok=:
5300 break
5301 fi
5302
5303 rm -f conftest.err conftest.$ac_ext
5304
5305 done
5306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5307 rm -f conftest.err conftest.$ac_ext
5308 if $ac_preproc_ok; then
5309   :
5310 else
5311   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5312 See \`config.log' for more details." >&5
5313 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5314 See \`config.log' for more details." >&2;}
5315    { (exit 1); exit 1; }; }
5316 fi
5317
5318 ac_ext=c
5319 ac_cpp='$CPP $CPPFLAGS'
5320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5323
5324
5325 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5326 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5327 if test "${ac_cv_header_stdc+set}" = set; then
5328   echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330   cat >conftest.$ac_ext <<_ACEOF
5331 /* confdefs.h.  */
5332 _ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h.  */
5336 #include <stdlib.h>
5337 #include <stdarg.h>
5338 #include <string.h>
5339 #include <float.h>
5340
5341 int
5342 main ()
5343 {
5344
5345   ;
5346   return 0;
5347 }
5348 _ACEOF
5349 rm -f conftest.$ac_objext
5350 if { (ac_try="$ac_compile"
5351 case "(($ac_try" in
5352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353   *) ac_try_echo=$ac_try;;
5354 esac
5355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356   (eval "$ac_compile") 2>conftest.er1
5357   ac_status=$?
5358   grep -v '^ *+' conftest.er1 >conftest.err
5359   rm -f conftest.er1
5360   cat conftest.err >&5
5361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362   (exit $ac_status); } && {
5363          test -z "$ac_c_werror_flag" ||
5364          test ! -s conftest.err
5365        } && test -s conftest.$ac_objext; then
5366   ac_cv_header_stdc=yes
5367 else
5368   echo "$as_me: failed program was:" >&5
5369 sed 's/^/| /' conftest.$ac_ext >&5
5370
5371         ac_cv_header_stdc=no
5372 fi
5373
5374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5375
5376 if test $ac_cv_header_stdc = yes; then
5377   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5378   cat >conftest.$ac_ext <<_ACEOF
5379 /* confdefs.h.  */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h.  */
5384 #include <string.h>
5385
5386 _ACEOF
5387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5388   $EGREP "memchr" >/dev/null 2>&1; then
5389   :
5390 else
5391   ac_cv_header_stdc=no
5392 fi
5393 rm -f conftest*
5394
5395 fi
5396
5397 if test $ac_cv_header_stdc = yes; then
5398   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5399   cat >conftest.$ac_ext <<_ACEOF
5400 /* confdefs.h.  */
5401 _ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h.  */
5405 #include <stdlib.h>
5406
5407 _ACEOF
5408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5409   $EGREP "free" >/dev/null 2>&1; then
5410   :
5411 else
5412   ac_cv_header_stdc=no
5413 fi
5414 rm -f conftest*
5415
5416 fi
5417
5418 if test $ac_cv_header_stdc = yes; then
5419   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5420   if test "$cross_compiling" = yes; then
5421   :
5422 else
5423   cat >conftest.$ac_ext <<_ACEOF
5424 /* confdefs.h.  */
5425 _ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h.  */
5429 #include <ctype.h>
5430 #include <stdlib.h>
5431 #if ((' ' & 0x0FF) == 0x020)
5432 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5433 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5434 #else
5435 # define ISLOWER(c) \
5436                    (('a' <= (c) && (c) <= 'i') \
5437                      || ('j' <= (c) && (c) <= 'r') \
5438                      || ('s' <= (c) && (c) <= 'z'))
5439 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5440 #endif
5441
5442 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5443 int
5444 main ()
5445 {
5446   int i;
5447   for (i = 0; i < 256; i++)
5448     if (XOR (islower (i), ISLOWER (i))
5449         || toupper (i) != TOUPPER (i))
5450       return 2;
5451   return 0;
5452 }
5453 _ACEOF
5454 rm -f conftest$ac_exeext
5455 if { (ac_try="$ac_link"
5456 case "(($ac_try" in
5457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458   *) ac_try_echo=$ac_try;;
5459 esac
5460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461   (eval "$ac_link") 2>&5
5462   ac_status=$?
5463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5465   { (case "(($ac_try" in
5466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467   *) ac_try_echo=$ac_try;;
5468 esac
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470   (eval "$ac_try") 2>&5
5471   ac_status=$?
5472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473   (exit $ac_status); }; }; then
5474   :
5475 else
5476   echo "$as_me: program exited with status $ac_status" >&5
5477 echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5479
5480 ( exit $ac_status )
5481 ac_cv_header_stdc=no
5482 fi
5483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5484 fi
5485
5486
5487 fi
5488 fi
5489 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5490 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5491 if test $ac_cv_header_stdc = yes; then
5492
5493 cat >>confdefs.h <<\_ACEOF
5494 #define STDC_HEADERS 1
5495 _ACEOF
5496
5497 fi
5498
5499 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5510                   inttypes.h stdint.h unistd.h
5511 do
5512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5516   echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518   cat >conftest.$ac_ext <<_ACEOF
5519 /* confdefs.h.  */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h.  */
5524 $ac_includes_default
5525
5526 #include <$ac_header>
5527 _ACEOF
5528 rm -f conftest.$ac_objext
5529 if { (ac_try="$ac_compile"
5530 case "(($ac_try" in
5531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532   *) ac_try_echo=$ac_try;;
5533 esac
5534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535   (eval "$ac_compile") 2>conftest.er1
5536   ac_status=$?
5537   grep -v '^ *+' conftest.er1 >conftest.err
5538   rm -f conftest.er1
5539   cat conftest.err >&5
5540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541   (exit $ac_status); } && {
5542          test -z "$ac_c_werror_flag" ||
5543          test ! -s conftest.err
5544        } && test -s conftest.$ac_objext; then
5545   eval "$as_ac_Header=yes"
5546 else
5547   echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5549
5550         eval "$as_ac_Header=no"
5551 fi
5552
5553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554 fi
5555 ac_res=`eval echo '${'$as_ac_Header'}'`
5556                { echo "$as_me:$LINENO: result: $ac_res" >&5
5557 echo "${ECHO_T}$ac_res" >&6; }
5558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5559   cat >>confdefs.h <<_ACEOF
5560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5561 _ACEOF
5562
5563 fi
5564
5565 done
5566
5567
5568
5569 for ac_header in dlfcn.h
5570 do
5571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5573   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5576   echo $ECHO_N "(cached) $ECHO_C" >&6
5577 fi
5578 ac_res=`eval echo '${'$as_ac_Header'}'`
5579                { echo "$as_me:$LINENO: result: $ac_res" >&5
5580 echo "${ECHO_T}$ac_res" >&6; }
5581 else
5582   # Is the header compilable?
5583 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5585 cat >conftest.$ac_ext <<_ACEOF
5586 /* confdefs.h.  */
5587 _ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h.  */
5591 $ac_includes_default
5592 #include <$ac_header>
5593 _ACEOF
5594 rm -f conftest.$ac_objext
5595 if { (ac_try="$ac_compile"
5596 case "(($ac_try" in
5597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598   *) ac_try_echo=$ac_try;;
5599 esac
5600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601   (eval "$ac_compile") 2>conftest.er1
5602   ac_status=$?
5603   grep -v '^ *+' conftest.er1 >conftest.err
5604   rm -f conftest.er1
5605   cat conftest.err >&5
5606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607   (exit $ac_status); } && {
5608          test -z "$ac_c_werror_flag" ||
5609          test ! -s conftest.err
5610        } && test -s conftest.$ac_objext; then
5611   ac_header_compiler=yes
5612 else
5613   echo "$as_me: failed program was:" >&5
5614 sed 's/^/| /' conftest.$ac_ext >&5
5615
5616         ac_header_compiler=no
5617 fi
5618
5619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5621 echo "${ECHO_T}$ac_header_compiler" >&6; }
5622
5623 # Is the header present?
5624 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5626 cat >conftest.$ac_ext <<_ACEOF
5627 /* confdefs.h.  */
5628 _ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h.  */
5632 #include <$ac_header>
5633 _ACEOF
5634 if { (ac_try="$ac_cpp conftest.$ac_ext"
5635 case "(($ac_try" in
5636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5637   *) ac_try_echo=$ac_try;;
5638 esac
5639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5640   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5641   ac_status=$?
5642   grep -v '^ *+' conftest.er1 >conftest.err
5643   rm -f conftest.er1
5644   cat conftest.err >&5
5645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646   (exit $ac_status); } >/dev/null && {
5647          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5648          test ! -s conftest.err
5649        }; then
5650   ac_header_preproc=yes
5651 else
5652   echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5654
5655   ac_header_preproc=no
5656 fi
5657
5658 rm -f conftest.err conftest.$ac_ext
5659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5660 echo "${ECHO_T}$ac_header_preproc" >&6; }
5661
5662 # So?  What about this header?
5663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5664   yes:no: )
5665     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5667     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5669     ac_header_preproc=yes
5670     ;;
5671   no:yes:* )
5672     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5674     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5675 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5676     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5678     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5679 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5682     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5684     ( cat <<\_ASBOX
5685 ## -------------------------------------------------- ##
5686 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5687 ## -------------------------------------------------- ##
5688 _ASBOX
5689      ) | sed "s/^/$as_me: WARNING:     /" >&2
5690     ;;
5691 esac
5692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5695   echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697   eval "$as_ac_Header=\$ac_header_preproc"
5698 fi
5699 ac_res=`eval echo '${'$as_ac_Header'}'`
5700                { echo "$as_me:$LINENO: result: $ac_res" >&5
5701 echo "${ECHO_T}$ac_res" >&6; }
5702
5703 fi
5704 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5705   cat >>confdefs.h <<_ACEOF
5706 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5707 _ACEOF
5708
5709 fi
5710
5711 done
5712
5713 ac_ext=cpp
5714 ac_cpp='$CXXCPP $CPPFLAGS'
5715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5718 if test -z "$CXX"; then
5719   if test -n "$CCC"; then
5720     CXX=$CCC
5721   else
5722     if test -n "$ac_tool_prefix"; then
5723   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5724   do
5725     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5729 if test "${ac_cv_prog_CXX+set}" = set; then
5730   echo $ECHO_N "(cached) $ECHO_C" >&6
5731 else
5732   if test -n "$CXX"; then
5733   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5734 else
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH
5737 do
5738   IFS=$as_save_IFS
5739   test -z "$as_dir" && as_dir=.
5740   for ac_exec_ext in '' $ac_executable_extensions; do
5741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5742     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5744     break 2
5745   fi
5746 done
5747 done
5748 IFS=$as_save_IFS
5749
5750 fi
5751 fi
5752 CXX=$ac_cv_prog_CXX
5753 if test -n "$CXX"; then
5754   { echo "$as_me:$LINENO: result: $CXX" >&5
5755 echo "${ECHO_T}$CXX" >&6; }
5756 else
5757   { echo "$as_me:$LINENO: result: no" >&5
5758 echo "${ECHO_T}no" >&6; }
5759 fi
5760
5761
5762     test -n "$CXX" && break
5763   done
5764 fi
5765 if test -z "$CXX"; then
5766   ac_ct_CXX=$CXX
5767   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5768 do
5769   # Extract the first word of "$ac_prog", so it can be a program name with args.
5770 set dummy $ac_prog; ac_word=$2
5771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5773 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5774   echo $ECHO_N "(cached) $ECHO_C" >&6
5775 else
5776   if test -n "$ac_ct_CXX"; then
5777   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5778 else
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH
5781 do
5782   IFS=$as_save_IFS
5783   test -z "$as_dir" && as_dir=.
5784   for ac_exec_ext in '' $ac_executable_extensions; do
5785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5786     ac_cv_prog_ac_ct_CXX="$ac_prog"
5787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5788     break 2
5789   fi
5790 done
5791 done
5792 IFS=$as_save_IFS
5793
5794 fi
5795 fi
5796 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5797 if test -n "$ac_ct_CXX"; then
5798   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5799 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5800 else
5801   { echo "$as_me:$LINENO: result: no" >&5
5802 echo "${ECHO_T}no" >&6; }
5803 fi
5804
5805
5806   test -n "$ac_ct_CXX" && break
5807 done
5808
5809   if test "x$ac_ct_CXX" = x; then
5810     CXX="g++"
5811   else
5812     case $cross_compiling:$ac_tool_warned in
5813 yes:)
5814 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5815 whose name does not start with the host triplet.  If you think this
5816 configuration is useful to you, please write to autoconf@gnu.org." >&5
5817 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5818 whose name does not start with the host triplet.  If you think this
5819 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5820 ac_tool_warned=yes ;;
5821 esac
5822     CXX=$ac_ct_CXX
5823   fi
5824 fi
5825
5826   fi
5827 fi
5828 # Provide some information about the compiler.
5829 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5830 ac_compiler=`set X $ac_compile; echo $2`
5831 { (ac_try="$ac_compiler --version >&5"
5832 case "(($ac_try" in
5833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834   *) ac_try_echo=$ac_try;;
5835 esac
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837   (eval "$ac_compiler --version >&5") 2>&5
5838   ac_status=$?
5839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840   (exit $ac_status); }
5841 { (ac_try="$ac_compiler -v >&5"
5842 case "(($ac_try" in
5843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844   *) ac_try_echo=$ac_try;;
5845 esac
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847   (eval "$ac_compiler -v >&5") 2>&5
5848   ac_status=$?
5849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850   (exit $ac_status); }
5851 { (ac_try="$ac_compiler -V >&5"
5852 case "(($ac_try" in
5853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854   *) ac_try_echo=$ac_try;;
5855 esac
5856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857   (eval "$ac_compiler -V >&5") 2>&5
5858   ac_status=$?
5859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860   (exit $ac_status); }
5861
5862 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5863 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5864 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5865   echo $ECHO_N "(cached) $ECHO_C" >&6
5866 else
5867   cat >conftest.$ac_ext <<_ACEOF
5868 /* confdefs.h.  */
5869 _ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h.  */
5873
5874 int
5875 main ()
5876 {
5877 #ifndef __GNUC__
5878        choke me
5879 #endif
5880
5881   ;
5882   return 0;
5883 }
5884 _ACEOF
5885 rm -f conftest.$ac_objext
5886 if { (ac_try="$ac_compile"
5887 case "(($ac_try" in
5888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889   *) ac_try_echo=$ac_try;;
5890 esac
5891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892   (eval "$ac_compile") 2>conftest.er1
5893   ac_status=$?
5894   grep -v '^ *+' conftest.er1 >conftest.err
5895   rm -f conftest.er1
5896   cat conftest.err >&5
5897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898   (exit $ac_status); } && {
5899          test -z "$ac_cxx_werror_flag" ||
5900          test ! -s conftest.err
5901        } && test -s conftest.$ac_objext; then
5902   ac_compiler_gnu=yes
5903 else
5904   echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5906
5907         ac_compiler_gnu=no
5908 fi
5909
5910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5911 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5912
5913 fi
5914 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5915 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5916 GXX=`test $ac_compiler_gnu = yes && echo yes`
5917 ac_test_CXXFLAGS=${CXXFLAGS+set}
5918 ac_save_CXXFLAGS=$CXXFLAGS
5919 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5920 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5921 if test "${ac_cv_prog_cxx_g+set}" = set; then
5922   echo $ECHO_N "(cached) $ECHO_C" >&6
5923 else
5924   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5925    ac_cxx_werror_flag=yes
5926    ac_cv_prog_cxx_g=no
5927    CXXFLAGS="-g"
5928    cat >conftest.$ac_ext <<_ACEOF
5929 /* confdefs.h.  */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h.  */
5934
5935 int
5936 main ()
5937 {
5938
5939   ;
5940   return 0;
5941 }
5942 _ACEOF
5943 rm -f conftest.$ac_objext
5944 if { (ac_try="$ac_compile"
5945 case "(($ac_try" in
5946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947   *) ac_try_echo=$ac_try;;
5948 esac
5949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950   (eval "$ac_compile") 2>conftest.er1
5951   ac_status=$?
5952   grep -v '^ *+' conftest.er1 >conftest.err
5953   rm -f conftest.er1
5954   cat conftest.err >&5
5955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956   (exit $ac_status); } && {
5957          test -z "$ac_cxx_werror_flag" ||
5958          test ! -s conftest.err
5959        } && test -s conftest.$ac_objext; then
5960   ac_cv_prog_cxx_g=yes
5961 else
5962   echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.$ac_ext >&5
5964
5965         CXXFLAGS=""
5966       cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h.  */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h.  */
5972
5973 int
5974 main ()
5975 {
5976
5977   ;
5978   return 0;
5979 }
5980 _ACEOF
5981 rm -f conftest.$ac_objext
5982 if { (ac_try="$ac_compile"
5983 case "(($ac_try" in
5984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985   *) ac_try_echo=$ac_try;;
5986 esac
5987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988   (eval "$ac_compile") 2>conftest.er1
5989   ac_status=$?
5990   grep -v '^ *+' conftest.er1 >conftest.err
5991   rm -f conftest.er1
5992   cat conftest.err >&5
5993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994   (exit $ac_status); } && {
5995          test -z "$ac_cxx_werror_flag" ||
5996          test ! -s conftest.err
5997        } && test -s conftest.$ac_objext; then
5998   :
5999 else
6000   echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6002
6003         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6004          CXXFLAGS="-g"
6005          cat >conftest.$ac_ext <<_ACEOF
6006 /* confdefs.h.  */
6007 _ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h.  */
6011
6012 int
6013 main ()
6014 {
6015
6016   ;
6017   return 0;
6018 }
6019 _ACEOF
6020 rm -f conftest.$ac_objext
6021 if { (ac_try="$ac_compile"
6022 case "(($ac_try" in
6023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6024   *) ac_try_echo=$ac_try;;
6025 esac
6026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6027   (eval "$ac_compile") 2>conftest.er1
6028   ac_status=$?
6029   grep -v '^ *+' conftest.er1 >conftest.err
6030   rm -f conftest.er1
6031   cat conftest.err >&5
6032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033   (exit $ac_status); } && {
6034          test -z "$ac_cxx_werror_flag" ||
6035          test ! -s conftest.err
6036        } && test -s conftest.$ac_objext; then
6037   ac_cv_prog_cxx_g=yes
6038 else
6039   echo "$as_me: failed program was:" >&5
6040 sed 's/^/| /' conftest.$ac_ext >&5
6041
6042
6043 fi
6044
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 fi
6047
6048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 fi
6050
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6053 fi
6054 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6055 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6056 if test "$ac_test_CXXFLAGS" = set; then
6057   CXXFLAGS=$ac_save_CXXFLAGS
6058 elif test $ac_cv_prog_cxx_g = yes; then
6059   if test "$GXX" = yes; then
6060     CXXFLAGS="-g -O2"
6061   else
6062     CXXFLAGS="-g"
6063   fi
6064 else
6065   if test "$GXX" = yes; then
6066     CXXFLAGS="-O2"
6067   else
6068     CXXFLAGS=
6069   fi
6070 fi
6071 ac_ext=cpp
6072 ac_cpp='$CXXCPP $CPPFLAGS'
6073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6076
6077 depcc="$CXX"  am_compiler_list=
6078
6079 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6080 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6081 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6082   echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6085   # We make a subdir and do the tests there.  Otherwise we can end up
6086   # making bogus files that we don't know about and never remove.  For
6087   # instance it was reported that on HP-UX the gcc test will end up
6088   # making a dummy file named `D' -- because `-MD' means `put the output
6089   # in D'.
6090   mkdir conftest.dir
6091   # Copy depcomp to subdir because otherwise we won't find it if we're
6092   # using a relative directory.
6093   cp "$am_depcomp" conftest.dir
6094   cd conftest.dir
6095   # We will build objects and dependencies in a subdirectory because
6096   # it helps to detect inapplicable dependency modes.  For instance
6097   # both Tru64's cc and ICC support -MD to output dependencies as a
6098   # side effect of compilation, but ICC will put the dependencies in
6099   # the current directory while Tru64 will put them in the object
6100   # directory.
6101   mkdir sub
6102
6103   am_cv_CXX_dependencies_compiler_type=none
6104   if test "$am_compiler_list" = ""; then
6105      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6106   fi
6107   for depmode in $am_compiler_list; do
6108     # Setup a source with many dependencies, because some compilers
6109     # like to wrap large dependency lists on column 80 (with \), and
6110     # we should not choose a depcomp mode which is confused by this.
6111     #
6112     # We need to recreate these files for each test, as the compiler may
6113     # overwrite some of them when testing with obscure command lines.
6114     # This happens at least with the AIX C compiler.
6115     : > sub/conftest.c
6116     for i in 1 2 3 4 5 6; do
6117       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6118       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6119       # Solaris 8's {/usr,}/bin/sh.
6120       touch sub/conftst$i.h
6121     done
6122     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6123
6124     case $depmode in
6125     nosideeffect)
6126       # after this tag, mechanisms are not by side-effect, so they'll
6127       # only be used when explicitly requested
6128       if test "x$enable_dependency_tracking" = xyes; then
6129         continue
6130       else
6131         break
6132       fi
6133       ;;
6134     none) break ;;
6135     esac
6136     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6137     # mode.  It turns out that the SunPro C++ compiler does not properly
6138     # handle `-M -o', and we need to detect this.
6139     if depmode=$depmode \
6140        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6141        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6142        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6143          >/dev/null 2>conftest.err &&
6144        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6145        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6146        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6147        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6148       # icc doesn't choke on unknown options, it will just issue warnings
6149       # or remarks (even with -Werror).  So we grep stderr for any message
6150       # that says an option was ignored or not supported.
6151       # When given -MP, icc 7.0 and 7.1 complain thusly:
6152       #   icc: Command line warning: ignoring option '-M'; no argument required
6153       # The diagnosis changed in icc 8.0:
6154       #   icc: Command line remark: option '-MP' not supported
6155       if (grep 'ignoring option' conftest.err ||
6156           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6157         am_cv_CXX_dependencies_compiler_type=$depmode
6158         break
6159       fi
6160     fi
6161   done
6162
6163   cd ..
6164   rm -rf conftest.dir
6165 else
6166   am_cv_CXX_dependencies_compiler_type=none
6167 fi
6168
6169 fi
6170 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6171 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6172 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6173
6174  if
6175   test "x$enable_dependency_tracking" != xno \
6176   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6177   am__fastdepCXX_TRUE=
6178   am__fastdepCXX_FALSE='#'
6179 else
6180   am__fastdepCXX_TRUE='#'
6181   am__fastdepCXX_FALSE=
6182 fi
6183
6184
6185
6186
6187 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6188     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6189     (test "X$CXX" != "Xg++"))) ; then
6190   ac_ext=cpp
6191 ac_cpp='$CXXCPP $CPPFLAGS'
6192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6195 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6196 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6197 if test -z "$CXXCPP"; then
6198   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6199   echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201       # Double quotes because CXXCPP needs to be expanded
6202     for CXXCPP in "$CXX -E" "/lib/cpp"
6203     do
6204       ac_preproc_ok=false
6205 for ac_cxx_preproc_warn_flag in '' yes
6206 do
6207   # Use a header file that comes with gcc, so configuring glibc
6208   # with a fresh cross-compiler works.
6209   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6210   # <limits.h> exists even on freestanding compilers.
6211   # On the NeXT, cc -E runs the code through the compiler's parser,
6212   # not just through cpp. "Syntax error" is here to catch this case.
6213   cat >conftest.$ac_ext <<_ACEOF
6214 /* confdefs.h.  */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h.  */
6219 #ifdef __STDC__
6220 # include <limits.h>
6221 #else
6222 # include <assert.h>
6223 #endif
6224                      Syntax error
6225 _ACEOF
6226 if { (ac_try="$ac_cpp conftest.$ac_ext"
6227 case "(($ac_try" in
6228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6229   *) ac_try_echo=$ac_try;;
6230 esac
6231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6232   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6233   ac_status=$?
6234   grep -v '^ *+' conftest.er1 >conftest.err
6235   rm -f conftest.er1
6236   cat conftest.err >&5
6237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238   (exit $ac_status); } >/dev/null && {
6239          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6240          test ! -s conftest.err
6241        }; then
6242   :
6243 else
6244   echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6246
6247   # Broken: fails on valid input.
6248 continue
6249 fi
6250
6251 rm -f conftest.err conftest.$ac_ext
6252
6253   # OK, works on sane cases.  Now check whether nonexistent headers
6254   # can be detected and how.
6255   cat >conftest.$ac_ext <<_ACEOF
6256 /* confdefs.h.  */
6257 _ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h.  */
6261 #include <ac_nonexistent.h>
6262 _ACEOF
6263 if { (ac_try="$ac_cpp conftest.$ac_ext"
6264 case "(($ac_try" in
6265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266   *) ac_try_echo=$ac_try;;
6267 esac
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6270   ac_status=$?
6271   grep -v '^ *+' conftest.er1 >conftest.err
6272   rm -f conftest.er1
6273   cat conftest.err >&5
6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275   (exit $ac_status); } >/dev/null && {
6276          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6277          test ! -s conftest.err
6278        }; then
6279   # Broken: success on invalid input.
6280 continue
6281 else
6282   echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.$ac_ext >&5
6284
6285   # Passes both tests.
6286 ac_preproc_ok=:
6287 break
6288 fi
6289
6290 rm -f conftest.err conftest.$ac_ext
6291
6292 done
6293 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6294 rm -f conftest.err conftest.$ac_ext
6295 if $ac_preproc_ok; then
6296   break
6297 fi
6298
6299     done
6300     ac_cv_prog_CXXCPP=$CXXCPP
6301
6302 fi
6303   CXXCPP=$ac_cv_prog_CXXCPP
6304 else
6305   ac_cv_prog_CXXCPP=$CXXCPP
6306 fi
6307 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6308 echo "${ECHO_T}$CXXCPP" >&6; }
6309 ac_preproc_ok=false
6310 for ac_cxx_preproc_warn_flag in '' yes
6311 do
6312   # Use a header file that comes with gcc, so configuring glibc
6313   # with a fresh cross-compiler works.
6314   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6315   # <limits.h> exists even on freestanding compilers.
6316   # On the NeXT, cc -E runs the code through the compiler's parser,
6317   # not just through cpp. "Syntax error" is here to catch this case.
6318   cat >conftest.$ac_ext <<_ACEOF
6319 /* confdefs.h.  */
6320 _ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h.  */
6324 #ifdef __STDC__
6325 # include <limits.h>
6326 #else
6327 # include <assert.h>
6328 #endif
6329                      Syntax error
6330 _ACEOF
6331 if { (ac_try="$ac_cpp conftest.$ac_ext"
6332 case "(($ac_try" in
6333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6334   *) ac_try_echo=$ac_try;;
6335 esac
6336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6337   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6338   ac_status=$?
6339   grep -v '^ *+' conftest.er1 >conftest.err
6340   rm -f conftest.er1
6341   cat conftest.err >&5
6342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343   (exit $ac_status); } >/dev/null && {
6344          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6345          test ! -s conftest.err
6346        }; then
6347   :
6348 else
6349   echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6351
6352   # Broken: fails on valid input.
6353 continue
6354 fi
6355
6356 rm -f conftest.err conftest.$ac_ext
6357
6358   # OK, works on sane cases.  Now check whether nonexistent headers
6359   # can be detected and how.
6360   cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h.  */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h.  */
6366 #include <ac_nonexistent.h>
6367 _ACEOF
6368 if { (ac_try="$ac_cpp conftest.$ac_ext"
6369 case "(($ac_try" in
6370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6371   *) ac_try_echo=$ac_try;;
6372 esac
6373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6374   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6375   ac_status=$?
6376   grep -v '^ *+' conftest.er1 >conftest.err
6377   rm -f conftest.er1
6378   cat conftest.err >&5
6379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380   (exit $ac_status); } >/dev/null && {
6381          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6382          test ! -s conftest.err
6383        }; then
6384   # Broken: success on invalid input.
6385 continue
6386 else
6387   echo "$as_me: failed program was:" >&5
6388 sed 's/^/| /' conftest.$ac_ext >&5
6389
6390   # Passes both tests.
6391 ac_preproc_ok=:
6392 break
6393 fi
6394
6395 rm -f conftest.err conftest.$ac_ext
6396
6397 done
6398 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6399 rm -f conftest.err conftest.$ac_ext
6400 if $ac_preproc_ok; then
6401   :
6402 else
6403   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6404 See \`config.log' for more details." >&5
6405 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6406 See \`config.log' for more details." >&2;}
6407    { (exit 1); exit 1; }; }
6408 fi
6409
6410 ac_ext=cpp
6411 ac_cpp='$CXXCPP $CPPFLAGS'
6412 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6413 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6414 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6415
6416 fi
6417
6418
6419
6420
6421
6422 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6423 # find the maximum length of command line arguments
6424 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6425 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6426 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6427   echo $ECHO_N "(cached) $ECHO_C" >&6
6428 else
6429     i=0
6430   teststring="ABCD"
6431
6432   case $build_os in
6433   msdosdjgpp*)
6434     # On DJGPP, this test can blow up pretty badly due to problems in libc
6435     # (any single argument exceeding 2000 bytes causes a buffer overrun
6436     # during glob expansion).  Even if it were fixed, the result of this
6437     # check would be larger than it should be.
6438     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6439     ;;
6440
6441   gnu*)
6442     # Under GNU Hurd, this test is not required because there is
6443     # no limit to the length of command line arguments.
6444     # Libtool will interpret -1 as no limit whatsoever
6445     lt_cv_sys_max_cmd_len=-1;
6446     ;;
6447
6448   cygwin* | mingw*)
6449     # On Win9x/ME, this test blows up -- it succeeds, but takes
6450     # about 5 minutes as the teststring grows exponentially.
6451     # Worse, since 9x/ME are not pre-emptively multitasking,
6452     # you end up with a "frozen" computer, even though with patience
6453     # the test eventually succeeds (with a max line length of 256k).
6454     # Instead, let's just punt: use the minimum linelength reported by
6455     # all of the supported platforms: 8192 (on NT/2K/XP).
6456     lt_cv_sys_max_cmd_len=8192;
6457     ;;
6458
6459   amigaos*)
6460     # On AmigaOS with pdksh, this test takes hours, literally.
6461     # So we just punt and use a minimum line length of 8192.
6462     lt_cv_sys_max_cmd_len=8192;
6463     ;;
6464
6465   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6466     # This has been around since 386BSD, at least.  Likely further.
6467     if test -x /sbin/sysctl; then
6468       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6469     elif test -x /usr/sbin/sysctl; then
6470       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6471     else
6472       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6473     fi
6474     # And add a safety zone
6475     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6476     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6477     ;;
6478
6479   interix*)
6480     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6481     lt_cv_sys_max_cmd_len=196608
6482     ;;
6483
6484   osf*)
6485     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6486     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6487     # nice to cause kernel panics so lets avoid the loop below.
6488     # First set a reasonable default.
6489     lt_cv_sys_max_cmd_len=16384
6490     #
6491     if test -x /sbin/sysconfig; then
6492       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6493         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6494       esac
6495     fi
6496     ;;
6497   sco3.2v5*)
6498     lt_cv_sys_max_cmd_len=102400
6499     ;;
6500   sysv5* | sco5v6* | sysv4.2uw2*)
6501     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6502     if test -n "$kargmax"; then
6503       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6504     else
6505       lt_cv_sys_max_cmd_len=32768
6506     fi
6507     ;;
6508   *)
6509     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6510     if test -n "$lt_cv_sys_max_cmd_len"; then
6511       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6512       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6513     else
6514       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6515       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6516                = "XX$teststring") >/dev/null 2>&1 &&
6517               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6518               lt_cv_sys_max_cmd_len=$new_result &&
6519               test $i != 17 # 1/2 MB should be enough
6520       do
6521         i=`expr $i + 1`
6522         teststring=$teststring$teststring
6523       done
6524       teststring=
6525       # Add a significant safety factor because C++ compilers can tack on massive
6526       # amounts of additional arguments before passing them to the linker.
6527       # It appears as though 1/2 is a usable value.
6528       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6529     fi
6530     ;;
6531   esac
6532
6533 fi
6534
6535 if test -n $lt_cv_sys_max_cmd_len ; then
6536   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6537 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6538 else
6539   { echo "$as_me:$LINENO: result: none" >&5
6540 echo "${ECHO_T}none" >&6; }
6541 fi
6542
6543
6544
6545
6546
6547 # Check for command to grab the raw symbol name followed by C symbol from nm.
6548 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6549 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6550 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6551   echo $ECHO_N "(cached) $ECHO_C" >&6
6552 else
6553
6554 # These are sane defaults that work on at least a few old systems.
6555 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6556
6557 # Character class describing NM global symbol codes.
6558 symcode='[BCDEGRST]'
6559
6560 # Regexp to match symbols that can be accessed directly from C.
6561 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6562
6563 # Transform an extracted symbol line into a proper C declaration
6564 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6565
6566 # Transform an extracted symbol line into symbol name and symbol address
6567 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'"
6568
6569 # Define system-specific variables.
6570 case $host_os in
6571 aix*)
6572   symcode='[BCDT]'
6573   ;;
6574 cygwin* | mingw* | pw32*)
6575   symcode='[ABCDGISTW]'
6576   ;;
6577 hpux*) # Its linker distinguishes data from code symbols
6578   if test "$host_cpu" = ia64; then
6579     symcode='[ABCDEGRST]'
6580   fi
6581   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6582   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'"
6583   ;;
6584 linux* | k*bsd*-gnu)
6585   if test "$host_cpu" = ia64; then
6586     symcode='[ABCDGIRSTW]'
6587     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6588     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'"
6589   fi
6590   ;;
6591 irix* | nonstopux*)
6592   symcode='[BCDEGRST]'
6593   ;;
6594 osf*)
6595   symcode='[BCDEGQRST]'
6596   ;;
6597 solaris*)
6598   symcode='[BDRT]'
6599   ;;
6600 sco3.2v5*)
6601   symcode='[DT]'
6602   ;;
6603 sysv4.2uw2*)
6604   symcode='[DT]'
6605   ;;
6606 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6607   symcode='[ABDT]'
6608   ;;
6609 sysv4)
6610   symcode='[DFNSTU]'
6611   ;;
6612 esac
6613
6614 # Handle CRLF in mingw tool chain
6615 opt_cr=
6616 case $build_os in
6617 mingw*)
6618   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6619   ;;
6620 esac
6621
6622 # If we're using GNU nm, then use its standard symbol codes.
6623 case `$NM -V 2>&1` in
6624 *GNU* | *'with BFD'*)
6625   symcode='[ABCDGIRSTW]' ;;
6626 esac
6627
6628 # Try without a prefix undercore, then with it.
6629 for ac_symprfx in "" "_"; do
6630
6631   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6632   symxfrm="\\1 $ac_symprfx\\2 \\2"
6633
6634   # Write the raw and C identifiers.
6635   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6636
6637   # Check to see that the pipe works correctly.
6638   pipe_works=no
6639
6640   rm -f conftest*
6641   cat > conftest.$ac_ext <<EOF
6642 #ifdef __cplusplus
6643 extern "C" {
6644 #endif
6645 char nm_test_var;
6646 void nm_test_func(){}
6647 #ifdef __cplusplus
6648 }
6649 #endif
6650 int main(){nm_test_var='a';nm_test_func();return(0);}
6651 EOF
6652
6653   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6654   (eval $ac_compile) 2>&5
6655   ac_status=$?
6656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657   (exit $ac_status); }; then
6658     # Now try to grab the symbols.
6659     nlist=conftest.nm
6660     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6661   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6662   ac_status=$?
6663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664   (exit $ac_status); } && test -s "$nlist"; then
6665       # Try sorting and uniquifying the output.
6666       if sort "$nlist" | uniq > "$nlist"T; then
6667         mv -f "$nlist"T "$nlist"
6668       else
6669         rm -f "$nlist"T
6670       fi
6671
6672       # Make sure that we snagged all the symbols we need.
6673       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6674         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6675           cat <<EOF > conftest.$ac_ext
6676 #ifdef __cplusplus
6677 extern "C" {
6678 #endif
6679
6680 EOF
6681           # Now generate the symbol file.
6682           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6683
6684           cat <<EOF >> conftest.$ac_ext
6685 #if defined (__STDC__) && __STDC__
6686 # define lt_ptr_t void *
6687 #else
6688 # define lt_ptr_t char *
6689 # define const
6690 #endif
6691
6692 /* The mapping between symbol names and symbols. */
6693 const struct {
6694   const char *name;
6695   lt_ptr_t address;
6696 }
6697 lt_preloaded_symbols[] =
6698 {
6699 EOF
6700           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6701           cat <<\EOF >> conftest.$ac_ext
6702   {0, (lt_ptr_t) 0}
6703 };
6704
6705 #ifdef __cplusplus
6706 }
6707 #endif
6708 EOF
6709           # Now try linking the two files.
6710           mv conftest.$ac_objext conftstm.$ac_objext
6711           lt_save_LIBS="$LIBS"
6712           lt_save_CFLAGS="$CFLAGS"
6713           LIBS="conftstm.$ac_objext"
6714           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6715           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6716   (eval $ac_link) 2>&5
6717   ac_status=$?
6718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6720             pipe_works=yes
6721           fi
6722           LIBS="$lt_save_LIBS"
6723           CFLAGS="$lt_save_CFLAGS"
6724         else
6725           echo "cannot find nm_test_func in $nlist" >&5
6726         fi
6727       else
6728         echo "cannot find nm_test_var in $nlist" >&5
6729       fi
6730     else
6731       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6732     fi
6733   else
6734     echo "$progname: failed program was:" >&5
6735     cat conftest.$ac_ext >&5
6736   fi
6737   rm -rf conftest* conftst*
6738
6739   # Do not use the global_symbol_pipe unless it works.
6740   if test "$pipe_works" = yes; then
6741     break
6742   else
6743     lt_cv_sys_global_symbol_pipe=
6744   fi
6745 done
6746
6747 fi
6748
6749 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6750   lt_cv_sys_global_symbol_to_cdecl=
6751 fi
6752 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6753   { echo "$as_me:$LINENO: result: failed" >&5
6754 echo "${ECHO_T}failed" >&6; }
6755 else
6756   { echo "$as_me:$LINENO: result: ok" >&5
6757 echo "${ECHO_T}ok" >&6; }
6758 fi
6759
6760 { echo "$as_me:$LINENO: checking for objdir" >&5
6761 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6762 if test "${lt_cv_objdir+set}" = set; then
6763   echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765   rm -f .libs 2>/dev/null
6766 mkdir .libs 2>/dev/null
6767 if test -d .libs; then
6768   lt_cv_objdir=.libs
6769 else
6770   # MS-DOS does not allow filenames that begin with a dot.
6771   lt_cv_objdir=_libs
6772 fi
6773 rmdir .libs 2>/dev/null
6774 fi
6775 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6776 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6777 objdir=$lt_cv_objdir
6778
6779
6780
6781
6782
6783 case $host_os in
6784 aix3*)
6785   # AIX sometimes has problems with the GCC collect2 program.  For some
6786   # reason, if we set the COLLECT_NAMES environment variable, the problems
6787   # vanish in a puff of smoke.
6788   if test "X${COLLECT_NAMES+set}" != Xset; then
6789     COLLECT_NAMES=
6790     export COLLECT_NAMES
6791   fi
6792   ;;
6793 esac
6794
6795 # Sed substitution that helps us do robust quoting.  It backslashifies
6796 # metacharacters that are still active within double-quoted strings.
6797 Xsed='sed -e 1s/^X//'
6798 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6799
6800 # Same as above, but do not quote variable references.
6801 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6802
6803 # Sed substitution to delay expansion of an escaped shell variable in a
6804 # double_quote_subst'ed string.
6805 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6806
6807 # Sed substitution to avoid accidental globbing in evaled expressions
6808 no_glob_subst='s/\*/\\\*/g'
6809
6810 # Constants:
6811 rm="rm -f"
6812
6813 # Global variables:
6814 default_ofile=libtool
6815 can_build_shared=yes
6816
6817 # All known linkers require a `.a' archive for static linking (except MSVC,
6818 # which needs '.lib').
6819 libext=a
6820 ltmain="$ac_aux_dir/ltmain.sh"
6821 ofile="$default_ofile"
6822 with_gnu_ld="$lt_cv_prog_gnu_ld"
6823
6824 if test -n "$ac_tool_prefix"; then
6825   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6826 set dummy ${ac_tool_prefix}ar; ac_word=$2
6827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6829 if test "${ac_cv_prog_AR+set}" = set; then
6830   echo $ECHO_N "(cached) $ECHO_C" >&6
6831 else
6832   if test -n "$AR"; then
6833   ac_cv_prog_AR="$AR" # Let the user override the test.
6834 else
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838   IFS=$as_save_IFS
6839   test -z "$as_dir" && as_dir=.
6840   for ac_exec_ext in '' $ac_executable_extensions; do
6841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6842     ac_cv_prog_AR="${ac_tool_prefix}ar"
6843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844     break 2
6845   fi
6846 done
6847 done
6848 IFS=$as_save_IFS
6849
6850 fi
6851 fi
6852 AR=$ac_cv_prog_AR
6853 if test -n "$AR"; then
6854   { echo "$as_me:$LINENO: result: $AR" >&5
6855 echo "${ECHO_T}$AR" >&6; }
6856 else
6857   { echo "$as_me:$LINENO: result: no" >&5
6858 echo "${ECHO_T}no" >&6; }
6859 fi
6860
6861
6862 fi
6863 if test -z "$ac_cv_prog_AR"; then
6864   ac_ct_AR=$AR
6865   # Extract the first word of "ar", so it can be a program name with args.
6866 set dummy ar; ac_word=$2
6867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6870   echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872   if test -n "$ac_ct_AR"; then
6873   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6874 else
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878   IFS=$as_save_IFS
6879   test -z "$as_dir" && as_dir=.
6880   for ac_exec_ext in '' $ac_executable_extensions; do
6881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6882     ac_cv_prog_ac_ct_AR="ar"
6883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884     break 2
6885   fi
6886 done
6887 done
6888 IFS=$as_save_IFS
6889
6890 fi
6891 fi
6892 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6893 if test -n "$ac_ct_AR"; then
6894   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6895 echo "${ECHO_T}$ac_ct_AR" >&6; }
6896 else
6897   { echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6; }
6899 fi
6900
6901   if test "x$ac_ct_AR" = x; then
6902     AR="false"
6903   else
6904     case $cross_compiling:$ac_tool_warned in
6905 yes:)
6906 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6907 whose name does not start with the host triplet.  If you think this
6908 configuration is useful to you, please write to autoconf@gnu.org." >&5
6909 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6910 whose name does not start with the host triplet.  If you think this
6911 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6912 ac_tool_warned=yes ;;
6913 esac
6914     AR=$ac_ct_AR
6915   fi
6916 else
6917   AR="$ac_cv_prog_AR"
6918 fi
6919
6920 if test -n "$ac_tool_prefix"; then
6921   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6922 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925 if test "${ac_cv_prog_RANLIB+set}" = set; then
6926   echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928   if test -n "$RANLIB"; then
6929   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6930 else
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6933 do
6934   IFS=$as_save_IFS
6935   test -z "$as_dir" && as_dir=.
6936   for ac_exec_ext in '' $ac_executable_extensions; do
6937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6938     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940     break 2
6941   fi
6942 done
6943 done
6944 IFS=$as_save_IFS
6945
6946 fi
6947 fi
6948 RANLIB=$ac_cv_prog_RANLIB
6949 if test -n "$RANLIB"; then
6950   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6951 echo "${ECHO_T}$RANLIB" >&6; }
6952 else
6953   { echo "$as_me:$LINENO: result: no" >&5
6954 echo "${ECHO_T}no" >&6; }
6955 fi
6956
6957
6958 fi
6959 if test -z "$ac_cv_prog_RANLIB"; then
6960   ac_ct_RANLIB=$RANLIB
6961   # Extract the first word of "ranlib", so it can be a program name with args.
6962 set dummy ranlib; ac_word=$2
6963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6965 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6966   echo $ECHO_N "(cached) $ECHO_C" >&6
6967 else
6968   if test -n "$ac_ct_RANLIB"; then
6969   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6970 else
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 for as_dir in $PATH
6973 do
6974   IFS=$as_save_IFS
6975   test -z "$as_dir" && as_dir=.
6976   for ac_exec_ext in '' $ac_executable_extensions; do
6977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6978     ac_cv_prog_ac_ct_RANLIB="ranlib"
6979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6980     break 2
6981   fi
6982 done
6983 done
6984 IFS=$as_save_IFS
6985
6986 fi
6987 fi
6988 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6989 if test -n "$ac_ct_RANLIB"; then
6990   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6991 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6992 else
6993   { echo "$as_me:$LINENO: result: no" >&5
6994 echo "${ECHO_T}no" >&6; }
6995 fi
6996
6997   if test "x$ac_ct_RANLIB" = x; then
6998     RANLIB=":"
6999   else
7000     case $cross_compiling:$ac_tool_warned in
7001 yes:)
7002 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7003 whose name does not start with the host triplet.  If you think this
7004 configuration is useful to you, please write to autoconf@gnu.org." >&5
7005 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7006 whose name does not start with the host triplet.  If you think this
7007 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7008 ac_tool_warned=yes ;;
7009 esac
7010     RANLIB=$ac_ct_RANLIB
7011   fi
7012 else
7013   RANLIB="$ac_cv_prog_RANLIB"
7014 fi
7015
7016 if test -n "$ac_tool_prefix"; then
7017   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7018 set dummy ${ac_tool_prefix}strip; ac_word=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_prog_STRIP+set}" = set; then
7022   echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024   if test -n "$STRIP"; then
7025   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7026 else
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7029 do
7030   IFS=$as_save_IFS
7031   test -z "$as_dir" && as_dir=.
7032   for ac_exec_ext in '' $ac_executable_extensions; do
7033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7034     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7036     break 2
7037   fi
7038 done
7039 done
7040 IFS=$as_save_IFS
7041
7042 fi
7043 fi
7044 STRIP=$ac_cv_prog_STRIP
7045 if test -n "$STRIP"; then
7046   { echo "$as_me:$LINENO: result: $STRIP" >&5
7047 echo "${ECHO_T}$STRIP" >&6; }
7048 else
7049   { echo "$as_me:$LINENO: result: no" >&5
7050 echo "${ECHO_T}no" >&6; }
7051 fi
7052
7053
7054 fi
7055 if test -z "$ac_cv_prog_STRIP"; then
7056   ac_ct_STRIP=$STRIP
7057   # Extract the first word of "strip", so it can be a program name with args.
7058 set dummy strip; ac_word=$2
7059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7062   echo $ECHO_N "(cached) $ECHO_C" >&6
7063 else
7064   if test -n "$ac_ct_STRIP"; then
7065   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7066 else
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 for as_dir in $PATH
7069 do
7070   IFS=$as_save_IFS
7071   test -z "$as_dir" && as_dir=.
7072   for ac_exec_ext in '' $ac_executable_extensions; do
7073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7074     ac_cv_prog_ac_ct_STRIP="strip"
7075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7076     break 2
7077   fi
7078 done
7079 done
7080 IFS=$as_save_IFS
7081
7082 fi
7083 fi
7084 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7085 if test -n "$ac_ct_STRIP"; then
7086   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7087 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7088 else
7089   { echo "$as_me:$LINENO: result: no" >&5
7090 echo "${ECHO_T}no" >&6; }
7091 fi
7092
7093   if test "x$ac_ct_STRIP" = x; then
7094     STRIP=":"
7095   else
7096     case $cross_compiling:$ac_tool_warned in
7097 yes:)
7098 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7099 whose name does not start with the host triplet.  If you think this
7100 configuration is useful to you, please write to autoconf@gnu.org." >&5
7101 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7102 whose name does not start with the host triplet.  If you think this
7103 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7104 ac_tool_warned=yes ;;
7105 esac
7106     STRIP=$ac_ct_STRIP
7107   fi
7108 else
7109   STRIP="$ac_cv_prog_STRIP"
7110 fi
7111
7112
7113 old_CC="$CC"
7114 old_CFLAGS="$CFLAGS"
7115
7116 # Set sane defaults for various variables
7117 test -z "$AR" && AR=ar
7118 test -z "$AR_FLAGS" && AR_FLAGS=cru
7119 test -z "$AS" && AS=as
7120 test -z "$CC" && CC=cc
7121 test -z "$LTCC" && LTCC=$CC
7122 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7123 test -z "$DLLTOOL" && DLLTOOL=dlltool
7124 test -z "$LD" && LD=ld
7125 test -z "$LN_S" && LN_S="ln -s"
7126 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7127 test -z "$NM" && NM=nm
7128 test -z "$SED" && SED=sed
7129 test -z "$OBJDUMP" && OBJDUMP=objdump
7130 test -z "$RANLIB" && RANLIB=:
7131 test -z "$STRIP" && STRIP=:
7132 test -z "$ac_objext" && ac_objext=o
7133
7134 # Determine commands to create old-style static archives.
7135 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7136 old_postinstall_cmds='chmod 644 $oldlib'
7137 old_postuninstall_cmds=
7138
7139 if test -n "$RANLIB"; then
7140   case $host_os in
7141   openbsd*)
7142     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7143     ;;
7144   *)
7145     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7146     ;;
7147   esac
7148   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7149 fi
7150
7151 for cc_temp in $compiler""; do
7152   case $cc_temp in
7153     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7154     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7155     \-*) ;;
7156     *) break;;
7157   esac
7158 done
7159 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7160
7161
7162 # Only perform the check for file, if the check method requires it
7163 case $deplibs_check_method in
7164 file_magic*)
7165   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7166     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7167 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7168 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7169   echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171   case $MAGIC_CMD in
7172 [\\/*] |  ?:[\\/]*)
7173   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7174   ;;
7175 *)
7176   lt_save_MAGIC_CMD="$MAGIC_CMD"
7177   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7178   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7179   for ac_dir in $ac_dummy; do
7180     IFS="$lt_save_ifs"
7181     test -z "$ac_dir" && ac_dir=.
7182     if test -f $ac_dir/${ac_tool_prefix}file; then
7183       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7184       if test -n "$file_magic_test_file"; then
7185         case $deplibs_check_method in
7186         "file_magic "*)
7187           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7188           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7189           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7190             $EGREP "$file_magic_regex" > /dev/null; then
7191             :
7192           else
7193             cat <<EOF 1>&2
7194
7195 *** Warning: the command libtool uses to detect shared libraries,
7196 *** $file_magic_cmd, produces output that libtool cannot recognize.
7197 *** The result is that libtool may fail to recognize shared libraries
7198 *** as such.  This will affect the creation of libtool libraries that
7199 *** depend on shared libraries, but programs linked with such libtool
7200 *** libraries will work regardless of this problem.  Nevertheless, you
7201 *** may want to report the problem to your system manager and/or to
7202 *** bug-libtool@gnu.org
7203
7204 EOF
7205           fi ;;
7206         esac
7207       fi
7208       break
7209     fi
7210   done
7211   IFS="$lt_save_ifs"
7212   MAGIC_CMD="$lt_save_MAGIC_CMD"
7213   ;;
7214 esac
7215 fi
7216
7217 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7218 if test -n "$MAGIC_CMD"; then
7219   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7220 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7221 else
7222   { echo "$as_me:$LINENO: result: no" >&5
7223 echo "${ECHO_T}no" >&6; }
7224 fi
7225
7226 if test -z "$lt_cv_path_MAGIC_CMD"; then
7227   if test -n "$ac_tool_prefix"; then
7228     { echo "$as_me:$LINENO: checking for file" >&5
7229 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7230 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7231   echo $ECHO_N "(cached) $ECHO_C" >&6
7232 else
7233   case $MAGIC_CMD in
7234 [\\/*] |  ?:[\\/]*)
7235   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7236   ;;
7237 *)
7238   lt_save_MAGIC_CMD="$MAGIC_CMD"
7239   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7240   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7241   for ac_dir in $ac_dummy; do
7242     IFS="$lt_save_ifs"
7243     test -z "$ac_dir" && ac_dir=.
7244     if test -f $ac_dir/file; then
7245       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7246       if test -n "$file_magic_test_file"; then
7247         case $deplibs_check_method in
7248         "file_magic "*)
7249           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7250           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7251           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7252             $EGREP "$file_magic_regex" > /dev/null; then
7253             :
7254           else
7255             cat <<EOF 1>&2
7256
7257 *** Warning: the command libtool uses to detect shared libraries,
7258 *** $file_magic_cmd, produces output that libtool cannot recognize.
7259 *** The result is that libtool may fail to recognize shared libraries
7260 *** as such.  This will affect the creation of libtool libraries that
7261 *** depend on shared libraries, but programs linked with such libtool
7262 *** libraries will work regardless of this problem.  Nevertheless, you
7263 *** may want to report the problem to your system manager and/or to
7264 *** bug-libtool@gnu.org
7265
7266 EOF
7267           fi ;;
7268         esac
7269       fi
7270       break
7271     fi
7272   done
7273   IFS="$lt_save_ifs"
7274   MAGIC_CMD="$lt_save_MAGIC_CMD"
7275   ;;
7276 esac
7277 fi
7278
7279 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7280 if test -n "$MAGIC_CMD"; then
7281   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7282 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7283 else
7284   { echo "$as_me:$LINENO: result: no" >&5
7285 echo "${ECHO_T}no" >&6; }
7286 fi
7287
7288   else
7289     MAGIC_CMD=:
7290   fi
7291 fi
7292
7293   fi
7294   ;;
7295 esac
7296
7297
7298   case $host_os in
7299     rhapsody* | darwin*)
7300     if test -n "$ac_tool_prefix"; then
7301   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7302 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7306   echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308   if test -n "$DSYMUTIL"; then
7309   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7310 else
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314   IFS=$as_save_IFS
7315   test -z "$as_dir" && as_dir=.
7316   for ac_exec_ext in '' $ac_executable_extensions; do
7317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320     break 2
7321   fi
7322 done
7323 done
7324 IFS=$as_save_IFS
7325
7326 fi
7327 fi
7328 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7329 if test -n "$DSYMUTIL"; then
7330   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7331 echo "${ECHO_T}$DSYMUTIL" >&6; }
7332 else
7333   { echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6; }
7335 fi
7336
7337
7338 fi
7339 if test -z "$ac_cv_prog_DSYMUTIL"; then
7340   ac_ct_DSYMUTIL=$DSYMUTIL
7341   # Extract the first word of "dsymutil", so it can be a program name with args.
7342 set dummy dsymutil; ac_word=$2
7343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7345 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7346   echo $ECHO_N "(cached) $ECHO_C" >&6
7347 else
7348   if test -n "$ac_ct_DSYMUTIL"; then
7349   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7350 else
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 for as_dir in $PATH
7353 do
7354   IFS=$as_save_IFS
7355   test -z "$as_dir" && as_dir=.
7356   for ac_exec_ext in '' $ac_executable_extensions; do
7357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360     break 2
7361   fi
7362 done
7363 done
7364 IFS=$as_save_IFS
7365
7366 fi
7367 fi
7368 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7369 if test -n "$ac_ct_DSYMUTIL"; then
7370   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7371 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7372 else
7373   { echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6; }
7375 fi
7376
7377   if test "x$ac_ct_DSYMUTIL" = x; then
7378     DSYMUTIL=":"
7379   else
7380     case $cross_compiling:$ac_tool_warned in
7381 yes:)
7382 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7383 whose name does not start with the host triplet.  If you think this
7384 configuration is useful to you, please write to autoconf@gnu.org." >&5
7385 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7386 whose name does not start with the host triplet.  If you think this
7387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7388 ac_tool_warned=yes ;;
7389 esac
7390     DSYMUTIL=$ac_ct_DSYMUTIL
7391   fi
7392 else
7393   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7394 fi
7395
7396     if test -n "$ac_tool_prefix"; then
7397   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7398 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7401 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7402   echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404   if test -n "$NMEDIT"; then
7405   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7406 else
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 for as_dir in $PATH
7409 do
7410   IFS=$as_save_IFS
7411   test -z "$as_dir" && as_dir=.
7412   for ac_exec_ext in '' $ac_executable_extensions; do
7413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7414     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7416     break 2
7417   fi
7418 done
7419 done
7420 IFS=$as_save_IFS
7421
7422 fi
7423 fi
7424 NMEDIT=$ac_cv_prog_NMEDIT
7425 if test -n "$NMEDIT"; then
7426   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7427 echo "${ECHO_T}$NMEDIT" >&6; }
7428 else
7429   { echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6; }
7431 fi
7432
7433
7434 fi
7435 if test -z "$ac_cv_prog_NMEDIT"; then
7436   ac_ct_NMEDIT=$NMEDIT
7437   # Extract the first word of "nmedit", so it can be a program name with args.
7438 set dummy nmedit; ac_word=$2
7439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7441 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7442   echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444   if test -n "$ac_ct_NMEDIT"; then
7445   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7446 else
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7449 do
7450   IFS=$as_save_IFS
7451   test -z "$as_dir" && as_dir=.
7452   for ac_exec_ext in '' $ac_executable_extensions; do
7453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7454     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7456     break 2
7457   fi
7458 done
7459 done
7460 IFS=$as_save_IFS
7461
7462 fi
7463 fi
7464 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7465 if test -n "$ac_ct_NMEDIT"; then
7466   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7467 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7468 else
7469   { echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6; }
7471 fi
7472
7473   if test "x$ac_ct_NMEDIT" = x; then
7474     NMEDIT=":"
7475   else
7476     case $cross_compiling:$ac_tool_warned in
7477 yes:)
7478 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7479 whose name does not start with the host triplet.  If you think this
7480 configuration is useful to you, please write to autoconf@gnu.org." >&5
7481 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7482 whose name does not start with the host triplet.  If you think this
7483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7484 ac_tool_warned=yes ;;
7485 esac
7486     NMEDIT=$ac_ct_NMEDIT
7487   fi
7488 else
7489   NMEDIT="$ac_cv_prog_NMEDIT"
7490 fi
7491
7492
7493     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7494 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7495 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7496   echo $ECHO_N "(cached) $ECHO_C" >&6
7497 else
7498   lt_cv_apple_cc_single_mod=no
7499       if test -z "${LT_MULTI_MODULE}"; then
7500    # By default we will add the -single_module flag. You can override
7501    # by either setting the environment variable LT_MULTI_MODULE
7502    # non-empty at configure time, or by adding -multi_module to the
7503    # link flags.
7504    echo "int foo(void){return 1;}" > conftest.c
7505    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7506      -dynamiclib ${wl}-single_module conftest.c
7507    if test -f libconftest.dylib; then
7508      lt_cv_apple_cc_single_mod=yes
7509      rm -rf libconftest.dylib*
7510    fi
7511    rm conftest.c
7512       fi
7513 fi
7514 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7515 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7516     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7517 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7518 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7519   echo $ECHO_N "(cached) $ECHO_C" >&6
7520 else
7521   lt_cv_ld_exported_symbols_list=no
7522       save_LDFLAGS=$LDFLAGS
7523       echo "_main" > conftest.sym
7524       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7525       cat >conftest.$ac_ext <<_ACEOF
7526 /* confdefs.h.  */
7527 _ACEOF
7528 cat confdefs.h >>conftest.$ac_ext
7529 cat >>conftest.$ac_ext <<_ACEOF
7530 /* end confdefs.h.  */
7531
7532 int
7533 main ()
7534 {
7535
7536   ;
7537   return 0;
7538 }
7539 _ACEOF
7540 rm -f conftest.$ac_objext conftest$ac_exeext
7541 if { (ac_try="$ac_link"
7542 case "(($ac_try" in
7543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544   *) ac_try_echo=$ac_try;;
7545 esac
7546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7547   (eval "$ac_link") 2>conftest.er1
7548   ac_status=$?
7549   grep -v '^ *+' conftest.er1 >conftest.err
7550   rm -f conftest.er1
7551   cat conftest.err >&5
7552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553   (exit $ac_status); } && {
7554          test -z "$ac_c_werror_flag" ||
7555          test ! -s conftest.err
7556        } && test -s conftest$ac_exeext &&
7557        $as_test_x conftest$ac_exeext; then
7558   lt_cv_ld_exported_symbols_list=yes
7559 else
7560   echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7562
7563         lt_cv_ld_exported_symbols_list=no
7564 fi
7565
7566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7567       conftest$ac_exeext conftest.$ac_ext
7568    LDFLAGS="$save_LDFLAGS"
7569
7570 fi
7571 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7572 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7573     case $host_os in
7574     rhapsody* | darwin1.[0123])
7575       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7576     darwin1.*)
7577      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7578     darwin*)
7579       # if running on 10.5 or later, the deployment target defaults
7580       # to the OS version, if on x86, and 10.4, the deployment
7581       # target defaults to 10.4. Don't you love it?
7582       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7583    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7584      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7585    10.[012]*)
7586      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7587    10.*)
7588      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7589       esac
7590     ;;
7591   esac
7592     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7593       _lt_dar_single_mod='$single_module'
7594     fi
7595     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7596       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7597     else
7598       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7599     fi
7600     if test "$DSYMUTIL" != ":"; then
7601       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7602     else
7603       _lt_dsymutil=
7604     fi
7605     ;;
7606   esac
7607
7608
7609 enable_dlopen=no
7610 enable_win32_dll=yes
7611
7612 # Check whether --enable-libtool-lock was given.
7613 if test "${enable_libtool_lock+set}" = set; then
7614   enableval=$enable_libtool_lock;
7615 fi
7616
7617 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7618
7619
7620 # Check whether --with-pic was given.
7621 if test "${with_pic+set}" = set; then
7622   withval=$with_pic; pic_mode="$withval"
7623 else
7624   pic_mode=default
7625 fi
7626
7627 test -z "$pic_mode" && pic_mode=default
7628
7629 # Use C for the default configuration in the libtool script
7630 tagname=
7631 lt_save_CC="$CC"
7632 ac_ext=c
7633 ac_cpp='$CPP $CPPFLAGS'
7634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7637
7638
7639 # Source file extension for C test sources.
7640 ac_ext=c
7641
7642 # Object file extension for compiled C test sources.
7643 objext=o
7644 objext=$objext
7645
7646 # Code to be used in simple compile tests
7647 lt_simple_compile_test_code="int some_variable = 0;"
7648
7649 # Code to be used in simple link tests
7650 lt_simple_link_test_code='int main(){return(0);}'
7651
7652
7653 # If no C compiler was specified, use CC.
7654 LTCC=${LTCC-"$CC"}
7655
7656 # If no C compiler flags were specified, use CFLAGS.
7657 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7658
7659 # Allow CC to be a program name with arguments.
7660 compiler=$CC
7661
7662
7663 # save warnings/boilerplate of simple test code
7664 ac_outfile=conftest.$ac_objext
7665 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7666 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7667 _lt_compiler_boilerplate=`cat conftest.err`
7668 $rm conftest*
7669
7670 ac_outfile=conftest.$ac_objext
7671 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7672 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7673 _lt_linker_boilerplate=`cat conftest.err`
7674 $rm -r conftest*
7675
7676
7677
7678 lt_prog_compiler_no_builtin_flag=
7679
7680 if test "$GCC" = yes; then
7681   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7682
7683
7684 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7685 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7686 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7687   echo $ECHO_N "(cached) $ECHO_C" >&6
7688 else
7689   lt_cv_prog_compiler_rtti_exceptions=no
7690   ac_outfile=conftest.$ac_objext
7691    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7692    lt_compiler_flag="-fno-rtti -fno-exceptions"
7693    # Insert the option either (1) after the last *FLAGS variable, or
7694    # (2) before a word containing "conftest.", or (3) at the end.
7695    # Note that $ac_compile itself does not contain backslashes and begins
7696    # with a dollar sign (not a hyphen), so the echo should work correctly.
7697    # The option is referenced via a variable to avoid confusing sed.
7698    lt_compile=`echo "$ac_compile" | $SED \
7699    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7700    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7701    -e 's:$: $lt_compiler_flag:'`
7702    (eval echo "\"\$as_me:7702: $lt_compile\"" >&5)
7703    (eval "$lt_compile" 2>conftest.err)
7704    ac_status=$?
7705    cat conftest.err >&5
7706    echo "$as_me:7706: \$? = $ac_status" >&5
7707    if (exit $ac_status) && test -s "$ac_outfile"; then
7708      # The compiler can only warn and ignore the option if not recognized
7709      # So say no if there are warnings other than the usual output.
7710      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7711      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7712      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7713        lt_cv_prog_compiler_rtti_exceptions=yes
7714      fi
7715    fi
7716    $rm conftest*
7717
7718 fi
7719 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7720 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7721
7722 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7723     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7724 else
7725     :
7726 fi
7727
7728 fi
7729
7730 lt_prog_compiler_wl=
7731 lt_prog_compiler_pic=
7732 lt_prog_compiler_static=
7733
7734 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7735 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7736
7737   if test "$GCC" = yes; then
7738     lt_prog_compiler_wl='-Wl,'
7739     lt_prog_compiler_static='-static'
7740
7741     case $host_os in
7742       aix*)
7743       # All AIX code is PIC.
7744       if test "$host_cpu" = ia64; then
7745         # AIX 5 now supports IA64 processor
7746         lt_prog_compiler_static='-Bstatic'
7747       fi
7748       ;;
7749
7750     amigaos*)
7751       # FIXME: we need at least 68020 code to build shared libraries, but
7752       # adding the `-m68020' flag to GCC prevents building anything better,
7753       # like `-m68040'.
7754       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7755       ;;
7756
7757     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7758       # PIC is the default for these OSes.
7759       ;;
7760
7761     mingw* | cygwin* | pw32* | os2*)
7762       # This hack is so that the source file can tell whether it is being
7763       # built for inclusion in a dll (and should export symbols for example).
7764       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7765       # (--disable-auto-import) libraries
7766       lt_prog_compiler_pic='-DDLL_EXPORT'
7767       ;;
7768
7769     darwin* | rhapsody*)
7770       # PIC is the default on this platform
7771       # Common symbols not allowed in MH_DYLIB files
7772       lt_prog_compiler_pic='-fno-common'
7773       ;;
7774
7775     interix[3-9]*)
7776       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7777       # Instead, we relocate shared libraries at runtime.
7778       ;;
7779
7780     msdosdjgpp*)
7781       # Just because we use GCC doesn't mean we suddenly get shared libraries
7782       # on systems that don't support them.
7783       lt_prog_compiler_can_build_shared=no
7784       enable_shared=no
7785       ;;
7786
7787     sysv4*MP*)
7788       if test -d /usr/nec; then
7789         lt_prog_compiler_pic=-Kconform_pic
7790       fi
7791       ;;
7792
7793     hpux*)
7794       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7795       # not for PA HP-UX.
7796       case $host_cpu in
7797       hppa*64*|ia64*)
7798         # +Z the default
7799         ;;
7800       *)
7801         lt_prog_compiler_pic='-fPIC'
7802         ;;
7803       esac
7804       ;;
7805
7806     *)
7807       lt_prog_compiler_pic='-fPIC'
7808       ;;
7809     esac
7810   else
7811     # PORTME Check for flag to pass linker flags through the system compiler.
7812     case $host_os in
7813     aix*)
7814       lt_prog_compiler_wl='-Wl,'
7815       if test "$host_cpu" = ia64; then
7816         # AIX 5 now supports IA64 processor
7817         lt_prog_compiler_static='-Bstatic'
7818       else
7819         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7820       fi
7821       ;;
7822       darwin*)
7823         # PIC is the default on this platform
7824         # Common symbols not allowed in MH_DYLIB files
7825        case $cc_basename in
7826          xlc*)
7827          lt_prog_compiler_pic='-qnocommon'
7828          lt_prog_compiler_wl='-Wl,'
7829          ;;
7830        esac
7831        ;;
7832
7833     mingw* | cygwin* | pw32* | os2*)
7834       # This hack is so that the source file can tell whether it is being
7835       # built for inclusion in a dll (and should export symbols for example).
7836       lt_prog_compiler_pic='-DDLL_EXPORT'
7837       ;;
7838
7839     hpux9* | hpux10* | hpux11*)
7840       lt_prog_compiler_wl='-Wl,'
7841       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7842       # not for PA HP-UX.
7843       case $host_cpu in
7844       hppa*64*|ia64*)
7845         # +Z the default
7846         ;;
7847       *)
7848         lt_prog_compiler_pic='+Z'
7849         ;;
7850       esac
7851       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7852       lt_prog_compiler_static='${wl}-a ${wl}archive'
7853       ;;
7854
7855     irix5* | irix6* | nonstopux*)
7856       lt_prog_compiler_wl='-Wl,'
7857       # PIC (with -KPIC) is the default.
7858       lt_prog_compiler_static='-non_shared'
7859       ;;
7860
7861     newsos6)
7862       lt_prog_compiler_pic='-KPIC'
7863       lt_prog_compiler_static='-Bstatic'
7864       ;;
7865
7866     linux* | k*bsd*-gnu)
7867       case $cc_basename in
7868       icc* | ecc*)
7869         lt_prog_compiler_wl='-Wl,'
7870         lt_prog_compiler_pic='-KPIC'
7871         lt_prog_compiler_static='-static'
7872         ;;
7873       pgcc* | pgf77* | pgf90* | pgf95*)
7874         # Portland Group compilers (*not* the Pentium gcc compiler,
7875         # which looks to be a dead project)
7876         lt_prog_compiler_wl='-Wl,'
7877         lt_prog_compiler_pic='-fpic'
7878         lt_prog_compiler_static='-Bstatic'
7879         ;;
7880       ccc*)
7881         lt_prog_compiler_wl='-Wl,'
7882         # All Alpha code is PIC.
7883         lt_prog_compiler_static='-non_shared'
7884         ;;
7885       *)
7886         case `$CC -V 2>&1 | sed 5q` in
7887         *Sun\ C*)
7888           # Sun C 5.9
7889           lt_prog_compiler_pic='-KPIC'
7890           lt_prog_compiler_static='-Bstatic'
7891           lt_prog_compiler_wl='-Wl,'
7892           ;;
7893         *Sun\ F*)
7894           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7895           lt_prog_compiler_pic='-KPIC'
7896           lt_prog_compiler_static='-Bstatic'
7897           lt_prog_compiler_wl=''
7898           ;;
7899         esac
7900         ;;
7901       esac
7902       ;;
7903
7904     osf3* | osf4* | osf5*)
7905       lt_prog_compiler_wl='-Wl,'
7906       # All OSF/1 code is PIC.
7907       lt_prog_compiler_static='-non_shared'
7908       ;;
7909
7910     rdos*)
7911       lt_prog_compiler_static='-non_shared'
7912       ;;
7913
7914     solaris*)
7915       lt_prog_compiler_pic='-KPIC'
7916       lt_prog_compiler_static='-Bstatic'
7917       case $cc_basename in
7918       f77* | f90* | f95*)
7919         lt_prog_compiler_wl='-Qoption ld ';;
7920       *)
7921         lt_prog_compiler_wl='-Wl,';;
7922       esac
7923       ;;
7924
7925     sunos4*)
7926       lt_prog_compiler_wl='-Qoption ld '
7927       lt_prog_compiler_pic='-PIC'
7928       lt_prog_compiler_static='-Bstatic'
7929       ;;
7930
7931     sysv4 | sysv4.2uw2* | sysv4.3*)
7932       lt_prog_compiler_wl='-Wl,'
7933       lt_prog_compiler_pic='-KPIC'
7934       lt_prog_compiler_static='-Bstatic'
7935       ;;
7936
7937     sysv4*MP*)
7938       if test -d /usr/nec ;then
7939         lt_prog_compiler_pic='-Kconform_pic'
7940         lt_prog_compiler_static='-Bstatic'
7941       fi
7942       ;;
7943
7944     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7945       lt_prog_compiler_wl='-Wl,'
7946       lt_prog_compiler_pic='-KPIC'
7947       lt_prog_compiler_static='-Bstatic'
7948       ;;
7949
7950     unicos*)
7951       lt_prog_compiler_wl='-Wl,'
7952       lt_prog_compiler_can_build_shared=no
7953       ;;
7954
7955     uts4*)
7956       lt_prog_compiler_pic='-pic'
7957       lt_prog_compiler_static='-Bstatic'
7958       ;;
7959
7960     *)
7961       lt_prog_compiler_can_build_shared=no
7962       ;;
7963     esac
7964   fi
7965
7966 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7967 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7968
7969 #
7970 # Check to make sure the PIC flag actually works.
7971 #
7972 if test -n "$lt_prog_compiler_pic"; then
7973
7974 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7975 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7976 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7977   echo $ECHO_N "(cached) $ECHO_C" >&6
7978 else
7979   lt_cv_prog_compiler_pic_works=no
7980   ac_outfile=conftest.$ac_objext
7981    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7982    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7983    # Insert the option either (1) after the last *FLAGS variable, or
7984    # (2) before a word containing "conftest.", or (3) at the end.
7985    # Note that $ac_compile itself does not contain backslashes and begins
7986    # with a dollar sign (not a hyphen), so the echo should work correctly.
7987    # The option is referenced via a variable to avoid confusing sed.
7988    lt_compile=`echo "$ac_compile" | $SED \
7989    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7990    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7991    -e 's:$: $lt_compiler_flag:'`
7992    (eval echo "\"\$as_me:7992: $lt_compile\"" >&5)
7993    (eval "$lt_compile" 2>conftest.err)
7994    ac_status=$?
7995    cat conftest.err >&5
7996    echo "$as_me:7996: \$? = $ac_status" >&5
7997    if (exit $ac_status) && test -s "$ac_outfile"; then
7998      # The compiler can only warn and ignore the option if not recognized
7999      # So say no if there are warnings other than the usual output.
8000      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8001      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8002      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8003        lt_cv_prog_compiler_pic_works=yes
8004      fi
8005    fi
8006    $rm conftest*
8007
8008 fi
8009 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8010 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8011
8012 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8013     case $lt_prog_compiler_pic in
8014      "" | " "*) ;;
8015      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8016      esac
8017 else
8018     lt_prog_compiler_pic=
8019      lt_prog_compiler_can_build_shared=no
8020 fi
8021
8022 fi
8023 case $host_os in
8024   # For platforms which do not support PIC, -DPIC is meaningless:
8025   *djgpp*)
8026     lt_prog_compiler_pic=
8027     ;;
8028   *)
8029     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8030     ;;
8031 esac
8032
8033 #
8034 # Check to make sure the static flag actually works.
8035 #
8036 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8037 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8038 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8039 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8040   echo $ECHO_N "(cached) $ECHO_C" >&6
8041 else
8042   lt_cv_prog_compiler_static_works=no
8043    save_LDFLAGS="$LDFLAGS"
8044    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8045    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8046    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8047      # The linker can only warn and ignore the option if not recognized
8048      # So say no if there are warnings
8049      if test -s conftest.err; then
8050        # Append any errors to the config.log.
8051        cat conftest.err 1>&5
8052        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8053        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8054        if diff conftest.exp conftest.er2 >/dev/null; then
8055          lt_cv_prog_compiler_static_works=yes
8056        fi
8057      else
8058        lt_cv_prog_compiler_static_works=yes
8059      fi
8060    fi
8061    $rm -r conftest*
8062    LDFLAGS="$save_LDFLAGS"
8063
8064 fi
8065 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8066 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8067
8068 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8069     :
8070 else
8071     lt_prog_compiler_static=
8072 fi
8073
8074
8075 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8076 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8077 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8078   echo $ECHO_N "(cached) $ECHO_C" >&6
8079 else
8080   lt_cv_prog_compiler_c_o=no
8081    $rm -r conftest 2>/dev/null
8082    mkdir conftest
8083    cd conftest
8084    mkdir out
8085    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8086
8087    lt_compiler_flag="-o out/conftest2.$ac_objext"
8088    # Insert the option either (1) after the last *FLAGS variable, or
8089    # (2) before a word containing "conftest.", or (3) at the end.
8090    # Note that $ac_compile itself does not contain backslashes and begins
8091    # with a dollar sign (not a hyphen), so the echo should work correctly.
8092    lt_compile=`echo "$ac_compile" | $SED \
8093    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8094    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8095    -e 's:$: $lt_compiler_flag:'`
8096    (eval echo "\"\$as_me:8096: $lt_compile\"" >&5)
8097    (eval "$lt_compile" 2>out/conftest.err)
8098    ac_status=$?
8099    cat out/conftest.err >&5
8100    echo "$as_me:8100: \$? = $ac_status" >&5
8101    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8102    then
8103      # The compiler can only warn and ignore the option if not recognized
8104      # So say no if there are warnings
8105      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8106      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8107      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8108        lt_cv_prog_compiler_c_o=yes
8109      fi
8110    fi
8111    chmod u+w . 2>&5
8112    $rm conftest*
8113    # SGI C++ compiler will create directory out/ii_files/ for
8114    # template instantiation
8115    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8116    $rm out/* && rmdir out
8117    cd ..
8118    rmdir conftest
8119    $rm conftest*
8120
8121 fi
8122 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8123 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8124
8125
8126 hard_links="nottested"
8127 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8128   # do not overwrite the value of need_locks provided by the user
8129   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8130 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8131   hard_links=yes
8132   $rm conftest*
8133   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8134   touch conftest.a
8135   ln conftest.a conftest.b 2>&5 || hard_links=no
8136   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8137   { echo "$as_me:$LINENO: result: $hard_links" >&5
8138 echo "${ECHO_T}$hard_links" >&6; }
8139   if test "$hard_links" = no; then
8140     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8141 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8142     need_locks=warn
8143   fi
8144 else
8145   need_locks=no
8146 fi
8147
8148 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8149 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8150
8151   runpath_var=
8152   allow_undefined_flag=
8153   enable_shared_with_static_runtimes=no
8154   archive_cmds=
8155   archive_expsym_cmds=
8156   old_archive_From_new_cmds=
8157   old_archive_from_expsyms_cmds=
8158   export_dynamic_flag_spec=
8159   whole_archive_flag_spec=
8160   thread_safe_flag_spec=
8161   hardcode_libdir_flag_spec=
8162   hardcode_libdir_flag_spec_ld=
8163   hardcode_libdir_separator=
8164   hardcode_direct=no
8165   hardcode_minus_L=no
8166   hardcode_shlibpath_var=unsupported
8167   link_all_deplibs=unknown
8168   hardcode_automatic=no
8169   module_cmds=
8170   module_expsym_cmds=
8171   always_export_symbols=no
8172   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8173   # include_expsyms should be a list of space-separated symbols to be *always*
8174   # included in the symbol list
8175   include_expsyms=
8176   # exclude_expsyms can be an extended regexp of symbols to exclude
8177   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8178   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8179   # as well as any symbol that contains `d'.
8180   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8181   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8182   # platforms (ab)use it in PIC code, but their linkers get confused if
8183   # the symbol is explicitly referenced.  Since portable code cannot
8184   # rely on this symbol name, it's probably fine to never include it in
8185   # preloaded symbol tables.
8186   # Exclude shared library initialization/finalization symbols.
8187   extract_expsyms_cmds=
8188   # Just being paranoid about ensuring that cc_basename is set.
8189   for cc_temp in $compiler""; do
8190   case $cc_temp in
8191     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8192     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8193     \-*) ;;
8194     *) break;;
8195   esac
8196 done
8197 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8198
8199   case $host_os in
8200   cygwin* | mingw* | pw32*)
8201     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8202     # When not using gcc, we currently assume that we are using
8203     # Microsoft Visual C++.
8204     if test "$GCC" != yes; then
8205       with_gnu_ld=no
8206     fi
8207     ;;
8208   interix*)
8209     # we just hope/assume this is gcc and not c89 (= MSVC++)
8210     with_gnu_ld=yes
8211     ;;
8212   openbsd*)
8213     with_gnu_ld=no
8214     ;;
8215   esac
8216
8217   ld_shlibs=yes
8218   if test "$with_gnu_ld" = yes; then
8219     # If archive_cmds runs LD, not CC, wlarc should be empty
8220     wlarc='${wl}'
8221
8222     # Set some defaults for GNU ld with shared library support. These
8223     # are reset later if shared libraries are not supported. Putting them
8224     # here allows them to be overridden if necessary.
8225     runpath_var=LD_RUN_PATH
8226     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8227     export_dynamic_flag_spec='${wl}--export-dynamic'
8228     # ancient GNU ld didn't support --whole-archive et. al.
8229     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8230         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8231       else
8232         whole_archive_flag_spec=
8233     fi
8234     supports_anon_versioning=no
8235     case `$LD -v 2>/dev/null` in
8236       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8237       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8238       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8239       *\ 2.11.*) ;; # other 2.11 versions
8240       *) supports_anon_versioning=yes ;;
8241     esac
8242
8243     # See if GNU ld supports shared libraries.
8244     case $host_os in
8245     aix[3-9]*)
8246       # On AIX/PPC, the GNU linker is very broken
8247       if test "$host_cpu" != ia64; then
8248         ld_shlibs=no
8249         cat <<EOF 1>&2
8250
8251 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8252 *** to be unable to reliably create shared libraries on AIX.
8253 *** Therefore, libtool is disabling shared libraries support.  If you
8254 *** really care for shared libraries, you may want to modify your PATH
8255 *** so that a non-GNU linker is found, and then restart.
8256
8257 EOF
8258       fi
8259       ;;
8260
8261     amigaos*)
8262       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)'
8263       hardcode_libdir_flag_spec='-L$libdir'
8264       hardcode_minus_L=yes
8265
8266       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8267       # that the semantics of dynamic libraries on AmigaOS, at least up
8268       # to version 4, is to share data among multiple programs linked
8269       # with the same dynamic library.  Since this doesn't match the
8270       # behavior of shared libraries on other platforms, we can't use
8271       # them.
8272       ld_shlibs=no
8273       ;;
8274
8275     beos*)
8276       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8277         allow_undefined_flag=unsupported
8278         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8279         # support --undefined.  This deserves some investigation.  FIXME
8280         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8281       else
8282         ld_shlibs=no
8283       fi
8284       ;;
8285
8286     cygwin* | mingw* | pw32*)
8287       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8288       # as there is no search path for DLLs.
8289       hardcode_libdir_flag_spec='-L$libdir'
8290       allow_undefined_flag=unsupported
8291       always_export_symbols=no
8292       enable_shared_with_static_runtimes=yes
8293       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8294
8295       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8296         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8297         # If the export-symbols file already is a .def file (1st line
8298         # is EXPORTS), use it as is; otherwise, prepend...
8299         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8300           cp $export_symbols $output_objdir/$soname.def;
8301         else
8302           echo EXPORTS > $output_objdir/$soname.def;
8303           cat $export_symbols >> $output_objdir/$soname.def;
8304         fi~
8305         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8306       else
8307         ld_shlibs=no
8308       fi
8309       ;;
8310
8311     interix[3-9]*)
8312       hardcode_direct=no
8313       hardcode_shlibpath_var=no
8314       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8315       export_dynamic_flag_spec='${wl}-E'
8316       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8317       # Instead, shared libraries are loaded at an image base (0x10000000 by
8318       # default) and relocated if they conflict, which is a slow very memory
8319       # consuming and fragmenting process.  To avoid this, we pick a random,
8320       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8321       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8322       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8323       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'
8324       ;;
8325
8326     gnu* | linux* | k*bsd*-gnu)
8327       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8328         tmp_addflag=
8329         case $cc_basename,$host_cpu in
8330         pgcc*)                          # Portland Group C compiler
8331           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'
8332           tmp_addflag=' $pic_flag'
8333           ;;
8334         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8335           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'
8336           tmp_addflag=' $pic_flag -Mnomain' ;;
8337         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8338           tmp_addflag=' -i_dynamic' ;;
8339         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8340           tmp_addflag=' -i_dynamic -nofor_main' ;;
8341         ifc* | ifort*)                  # Intel Fortran compiler
8342           tmp_addflag=' -nofor_main' ;;
8343         esac
8344         case `$CC -V 2>&1 | sed 5q` in
8345         *Sun\ C*)                       # Sun C 5.9
8346           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8347           tmp_sharedflag='-G' ;;
8348         *Sun\ F*)                       # Sun Fortran 8.3
8349           tmp_sharedflag='-G' ;;
8350         *)
8351           tmp_sharedflag='-shared' ;;
8352         esac
8353         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8354
8355         if test $supports_anon_versioning = yes; then
8356           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8357   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8358   $echo "local: *; };" >> $output_objdir/$libname.ver~
8359           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8360         fi
8361         link_all_deplibs=no
8362       else
8363         ld_shlibs=no
8364       fi
8365       ;;
8366
8367     netbsd* | netbsdelf*-gnu)
8368       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8369         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8370         wlarc=
8371       else
8372         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8373         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8374       fi
8375       ;;
8376
8377     solaris*)
8378       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8379         ld_shlibs=no
8380         cat <<EOF 1>&2
8381
8382 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8383 *** create shared libraries on Solaris systems.  Therefore, libtool
8384 *** is disabling shared libraries support.  We urge you to upgrade GNU
8385 *** binutils to release 2.9.1 or newer.  Another option is to modify
8386 *** your PATH or compiler configuration so that the native linker is
8387 *** used, and then restart.
8388
8389 EOF
8390       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8391         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8392         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8393       else
8394         ld_shlibs=no
8395       fi
8396       ;;
8397
8398     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8399       case `$LD -v 2>&1` in
8400         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8401         ld_shlibs=no
8402         cat <<_LT_EOF 1>&2
8403
8404 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8405 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8406 *** is disabling shared libraries support.  We urge you to upgrade GNU
8407 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8408 *** your PATH or compiler configuration so that the native linker is
8409 *** used, and then restart.
8410
8411 _LT_EOF
8412         ;;
8413         *)
8414           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8415             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8416             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8417             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8418           else
8419             ld_shlibs=no
8420           fi
8421         ;;
8422       esac
8423       ;;
8424
8425     sunos4*)
8426       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8427       wlarc=
8428       hardcode_direct=yes
8429       hardcode_shlibpath_var=no
8430       ;;
8431
8432     *)
8433       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8434         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8435         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8436       else
8437         ld_shlibs=no
8438       fi
8439       ;;
8440     esac
8441
8442     if test "$ld_shlibs" = no; then
8443       runpath_var=
8444       hardcode_libdir_flag_spec=
8445       export_dynamic_flag_spec=
8446       whole_archive_flag_spec=
8447     fi
8448   else
8449     # PORTME fill in a description of your system's linker (not GNU ld)
8450     case $host_os in
8451     aix3*)
8452       allow_undefined_flag=unsupported
8453       always_export_symbols=yes
8454       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'
8455       # Note: this linker hardcodes the directories in LIBPATH if there
8456       # are no directories specified by -L.
8457       hardcode_minus_L=yes
8458       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8459         # Neither direct hardcoding nor static linking is supported with a
8460         # broken collect2.
8461         hardcode_direct=unsupported
8462       fi
8463       ;;
8464
8465     aix[4-9]*)
8466       if test "$host_cpu" = ia64; then
8467         # On IA64, the linker does run time linking by default, so we don't
8468         # have to do anything special.
8469         aix_use_runtimelinking=no
8470         exp_sym_flag='-Bexport'
8471         no_entry_flag=""
8472       else
8473         # If we're using GNU nm, then we don't want the "-C" option.
8474         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8475         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8476           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'
8477         else
8478           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'
8479         fi
8480         aix_use_runtimelinking=no
8481
8482         # Test if we are trying to use run time linking or normal
8483         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8484         # need to do runtime linking.
8485         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8486           for ld_flag in $LDFLAGS; do
8487           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8488             aix_use_runtimelinking=yes
8489             break
8490           fi
8491           done
8492           ;;
8493         esac
8494
8495         exp_sym_flag='-bexport'
8496         no_entry_flag='-bnoentry'
8497       fi
8498
8499       # When large executables or shared objects are built, AIX ld can
8500       # have problems creating the table of contents.  If linking a library
8501       # or program results in "error TOC overflow" add -mminimal-toc to
8502       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8503       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8504
8505       archive_cmds=''
8506       hardcode_direct=yes
8507       hardcode_libdir_separator=':'
8508       link_all_deplibs=yes
8509
8510       if test "$GCC" = yes; then
8511         case $host_os in aix4.[012]|aix4.[012].*)
8512         # We only want to do this on AIX 4.2 and lower, the check
8513         # below for broken collect2 doesn't work under 4.3+
8514           collect2name=`${CC} -print-prog-name=collect2`
8515           if test -f "$collect2name" && \
8516            strings "$collect2name" | grep resolve_lib_name >/dev/null
8517           then
8518           # We have reworked collect2
8519           :
8520           else
8521           # We have old collect2
8522           hardcode_direct=unsupported
8523           # It fails to find uninstalled libraries when the uninstalled
8524           # path is not listed in the libpath.  Setting hardcode_minus_L
8525           # to unsupported forces relinking
8526           hardcode_minus_L=yes
8527           hardcode_libdir_flag_spec='-L$libdir'
8528           hardcode_libdir_separator=
8529           fi
8530           ;;
8531         esac
8532         shared_flag='-shared'
8533         if test "$aix_use_runtimelinking" = yes; then
8534           shared_flag="$shared_flag "'${wl}-G'
8535         fi
8536       else
8537         # not using gcc
8538         if test "$host_cpu" = ia64; then
8539         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8540         # chokes on -Wl,-G. The following line is correct:
8541           shared_flag='-G'
8542         else
8543           if test "$aix_use_runtimelinking" = yes; then
8544             shared_flag='${wl}-G'
8545           else
8546             shared_flag='${wl}-bM:SRE'
8547           fi
8548         fi
8549       fi
8550
8551       # It seems that -bexpall does not export symbols beginning with
8552       # underscore (_), so it is better to generate a list of symbols to export.
8553       always_export_symbols=yes
8554       if test "$aix_use_runtimelinking" = yes; then
8555         # Warning - without using the other runtime loading flags (-brtl),
8556         # -berok will link without error, but may produce a broken library.
8557         allow_undefined_flag='-berok'
8558        # Determine the default libpath from the value encoded in an empty executable.
8559        cat >conftest.$ac_ext <<_ACEOF
8560 /* confdefs.h.  */
8561 _ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h.  */
8565
8566 int
8567 main ()
8568 {
8569
8570   ;
8571   return 0;
8572 }
8573 _ACEOF
8574 rm -f conftest.$ac_objext conftest$ac_exeext
8575 if { (ac_try="$ac_link"
8576 case "(($ac_try" in
8577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578   *) ac_try_echo=$ac_try;;
8579 esac
8580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8581   (eval "$ac_link") 2>conftest.er1
8582   ac_status=$?
8583   grep -v '^ *+' conftest.er1 >conftest.err
8584   rm -f conftest.er1
8585   cat conftest.err >&5
8586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587   (exit $ac_status); } && {
8588          test -z "$ac_c_werror_flag" ||
8589          test ! -s conftest.err
8590        } && test -s conftest$ac_exeext &&
8591        $as_test_x conftest$ac_exeext; then
8592
8593 lt_aix_libpath_sed='
8594     /Import File Strings/,/^$/ {
8595         /^0/ {
8596             s/^0  *\(.*\)$/\1/
8597             p
8598         }
8599     }'
8600 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8601 # Check for a 64-bit object if we didn't find anything.
8602 if test -z "$aix_libpath"; then
8603   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8604 fi
8605 else
8606   echo "$as_me: failed program was:" >&5
8607 sed 's/^/| /' conftest.$ac_ext >&5
8608
8609
8610 fi
8611
8612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8613       conftest$ac_exeext conftest.$ac_ext
8614 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8615
8616        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8617         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"
8618        else
8619         if test "$host_cpu" = ia64; then
8620           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8621           allow_undefined_flag="-z nodefs"
8622           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"
8623         else
8624          # Determine the default libpath from the value encoded in an empty executable.
8625          cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h.  */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h.  */
8631
8632 int
8633 main ()
8634 {
8635
8636   ;
8637   return 0;
8638 }
8639 _ACEOF
8640 rm -f conftest.$ac_objext conftest$ac_exeext
8641 if { (ac_try="$ac_link"
8642 case "(($ac_try" in
8643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644   *) ac_try_echo=$ac_try;;
8645 esac
8646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8647   (eval "$ac_link") 2>conftest.er1
8648   ac_status=$?
8649   grep -v '^ *+' conftest.er1 >conftest.err
8650   rm -f conftest.er1
8651   cat conftest.err >&5
8652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653   (exit $ac_status); } && {
8654          test -z "$ac_c_werror_flag" ||
8655          test ! -s conftest.err
8656        } && test -s conftest$ac_exeext &&
8657        $as_test_x conftest$ac_exeext; then
8658
8659 lt_aix_libpath_sed='
8660     /Import File Strings/,/^$/ {
8661         /^0/ {
8662             s/^0  *\(.*\)$/\1/
8663             p
8664         }
8665     }'
8666 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8667 # Check for a 64-bit object if we didn't find anything.
8668 if test -z "$aix_libpath"; then
8669   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8670 fi
8671 else
8672   echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8674
8675
8676 fi
8677
8678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8679       conftest$ac_exeext conftest.$ac_ext
8680 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8681
8682          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8683           # Warning - without using the other run time loading flags,
8684           # -berok will link without error, but may produce a broken library.
8685           no_undefined_flag=' ${wl}-bernotok'
8686           allow_undefined_flag=' ${wl}-berok'
8687           # Exported symbols can be pulled into shared objects from archives
8688           whole_archive_flag_spec='$convenience'
8689           archive_cmds_need_lc=yes
8690           # This is similar to how AIX traditionally builds its shared libraries.
8691           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'
8692         fi
8693       fi
8694       ;;
8695
8696     amigaos*)
8697       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)'
8698       hardcode_libdir_flag_spec='-L$libdir'
8699       hardcode_minus_L=yes
8700       # see comment about different semantics on the GNU ld section
8701       ld_shlibs=no
8702       ;;
8703
8704     bsdi[45]*)
8705       export_dynamic_flag_spec=-rdynamic
8706       ;;
8707
8708     cygwin* | mingw* | pw32*)
8709       # When not using gcc, we currently assume that we are using
8710       # Microsoft Visual C++.
8711       # hardcode_libdir_flag_spec is actually meaningless, as there is
8712       # no search path for DLLs.
8713       hardcode_libdir_flag_spec=' '
8714       allow_undefined_flag=unsupported
8715       # Tell ltmain to make .lib files, not .a files.
8716       libext=lib
8717       # Tell ltmain to make .dll files, not .so files.
8718       shrext_cmds=".dll"
8719       # FIXME: Setting linknames here is a bad hack.
8720       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8721       # The linker will automatically build a .lib file if we build a DLL.
8722       old_archive_From_new_cmds='true'
8723       # FIXME: Should let the user specify the lib program.
8724       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8725       fix_srcfile_path='`cygpath -w "$srcfile"`'
8726       enable_shared_with_static_runtimes=yes
8727       ;;
8728
8729     darwin* | rhapsody*)
8730       case $host_os in
8731         rhapsody* | darwin1.[012])
8732          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8733          ;;
8734        *) # Darwin 1.3 on
8735          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8736            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8737          else
8738            case ${MACOSX_DEPLOYMENT_TARGET} in
8739              10.[012])
8740                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8741                ;;
8742              10.*)
8743                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8744                ;;
8745            esac
8746          fi
8747          ;;
8748       esac
8749       archive_cmds_need_lc=no
8750       hardcode_direct=no
8751       hardcode_automatic=yes
8752       hardcode_shlibpath_var=unsupported
8753       whole_archive_flag_spec=''
8754       link_all_deplibs=yes
8755     if test "$GCC" = yes ; then
8756         output_verbose_link_cmd='echo'
8757         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8758         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8759         archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8760         module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8761     else
8762       case $cc_basename in
8763         xlc*)
8764          output_verbose_link_cmd='echo'
8765          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8766          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8767           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8768          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8769           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}'
8770           ;;
8771        *)
8772          ld_shlibs=no
8773           ;;
8774       esac
8775     fi
8776       ;;
8777
8778     dgux*)
8779       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8780       hardcode_libdir_flag_spec='-L$libdir'
8781       hardcode_shlibpath_var=no
8782       ;;
8783
8784     freebsd1*)
8785       ld_shlibs=no
8786       ;;
8787
8788     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8789     # support.  Future versions do this automatically, but an explicit c++rt0.o
8790     # does not break anything, and helps significantly (at the cost of a little
8791     # extra space).
8792     freebsd2.2*)
8793       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8794       hardcode_libdir_flag_spec='-R$libdir'
8795       hardcode_direct=yes
8796       hardcode_shlibpath_var=no
8797       ;;
8798
8799     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8800     freebsd2*)
8801       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8802       hardcode_direct=yes
8803       hardcode_minus_L=yes
8804       hardcode_shlibpath_var=no
8805       ;;
8806
8807     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8808     freebsd* | dragonfly*)
8809       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8810       hardcode_libdir_flag_spec='-R$libdir'
8811       hardcode_direct=yes
8812       hardcode_shlibpath_var=no
8813       ;;
8814
8815     hpux9*)
8816       if test "$GCC" = yes; then
8817         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'
8818       else
8819         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'
8820       fi
8821       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8822       hardcode_libdir_separator=:
8823       hardcode_direct=yes
8824
8825       # hardcode_minus_L: Not really in the search PATH,
8826       # but as the default location of the library.
8827       hardcode_minus_L=yes
8828       export_dynamic_flag_spec='${wl}-E'
8829       ;;
8830
8831     hpux10*)
8832       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8833         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8834       else
8835         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8836       fi
8837       if test "$with_gnu_ld" = no; then
8838         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8839         hardcode_libdir_separator=:
8840
8841         hardcode_direct=yes
8842         export_dynamic_flag_spec='${wl}-E'
8843
8844         # hardcode_minus_L: Not really in the search PATH,
8845         # but as the default location of the library.
8846         hardcode_minus_L=yes
8847       fi
8848       ;;
8849
8850     hpux11*)
8851       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8852         case $host_cpu in
8853         hppa*64*)
8854           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8855           ;;
8856         ia64*)
8857           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8858           ;;
8859         *)
8860           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8861           ;;
8862         esac
8863       else
8864         case $host_cpu in
8865         hppa*64*)
8866           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8867           ;;
8868         ia64*)
8869           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8870           ;;
8871         *)
8872           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8873           ;;
8874         esac
8875       fi
8876       if test "$with_gnu_ld" = no; then
8877         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8878         hardcode_libdir_separator=:
8879
8880         case $host_cpu in
8881         hppa*64*|ia64*)
8882           hardcode_libdir_flag_spec_ld='+b $libdir'
8883           hardcode_direct=no
8884           hardcode_shlibpath_var=no
8885           ;;
8886         *)
8887           hardcode_direct=yes
8888           export_dynamic_flag_spec='${wl}-E'
8889
8890           # hardcode_minus_L: Not really in the search PATH,
8891           # but as the default location of the library.
8892           hardcode_minus_L=yes
8893           ;;
8894         esac
8895       fi
8896       ;;
8897
8898     irix5* | irix6* | nonstopux*)
8899       if test "$GCC" = yes; then
8900         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'
8901       else
8902         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'
8903         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8904       fi
8905       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8906       hardcode_libdir_separator=:
8907       link_all_deplibs=yes
8908       ;;
8909
8910     netbsd* | netbsdelf*-gnu)
8911       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8912         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8913       else
8914         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8915       fi
8916       hardcode_libdir_flag_spec='-R$libdir'
8917       hardcode_direct=yes
8918       hardcode_shlibpath_var=no
8919       ;;
8920
8921     newsos6)
8922       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8923       hardcode_direct=yes
8924       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8925       hardcode_libdir_separator=:
8926       hardcode_shlibpath_var=no
8927       ;;
8928
8929     openbsd*)
8930       if test -f /usr/libexec/ld.so; then
8931         hardcode_direct=yes
8932         hardcode_shlibpath_var=no
8933         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8934           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8935           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8936           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8937           export_dynamic_flag_spec='${wl}-E'
8938         else
8939           case $host_os in
8940            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8941              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8942              hardcode_libdir_flag_spec='-R$libdir'
8943              ;;
8944            *)
8945              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8946              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8947              ;;
8948           esac
8949         fi
8950       else
8951         ld_shlibs=no
8952       fi
8953       ;;
8954
8955     os2*)
8956       hardcode_libdir_flag_spec='-L$libdir'
8957       hardcode_minus_L=yes
8958       allow_undefined_flag=unsupported
8959       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'
8960       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8961       ;;
8962
8963     osf3*)
8964       if test "$GCC" = yes; then
8965         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8966         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'
8967       else
8968         allow_undefined_flag=' -expect_unresolved \*'
8969         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'
8970       fi
8971       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8972       hardcode_libdir_separator=:
8973       ;;
8974
8975     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8976       if test "$GCC" = yes; then
8977         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8978         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'
8979         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8980       else
8981         allow_undefined_flag=' -expect_unresolved \*'
8982         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'
8983         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8984         $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'
8985
8986         # Both c and cxx compiler support -rpath directly
8987         hardcode_libdir_flag_spec='-rpath $libdir'
8988       fi
8989       hardcode_libdir_separator=:
8990       ;;
8991
8992     solaris*)
8993       no_undefined_flag=' -z text'
8994       if test "$GCC" = yes; then
8995         wlarc='${wl}'
8996         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8997         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8998           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8999       else
9000         wlarc=''
9001         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9002         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9003         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9004       fi
9005       hardcode_libdir_flag_spec='-R$libdir'
9006       hardcode_shlibpath_var=no
9007       case $host_os in
9008       solaris2.[0-5] | solaris2.[0-5].*) ;;
9009       *)
9010         # The compiler driver will combine and reorder linker options,
9011         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9012         # but is careful enough not to reorder.
9013         # Supported since Solaris 2.6 (maybe 2.5.1?)
9014         if test "$GCC" = yes; then
9015           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9016         else
9017           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9018         fi
9019         ;;
9020       esac
9021       link_all_deplibs=yes
9022       ;;
9023
9024     sunos4*)
9025       if test "x$host_vendor" = xsequent; then
9026         # Use $CC to link under sequent, because it throws in some extra .o
9027         # files that make .init and .fini sections work.
9028         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9029       else
9030         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9031       fi
9032       hardcode_libdir_flag_spec='-L$libdir'
9033       hardcode_direct=yes
9034       hardcode_minus_L=yes
9035       hardcode_shlibpath_var=no
9036       ;;
9037
9038     sysv4)
9039       case $host_vendor in
9040         sni)
9041           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9042           hardcode_direct=yes # is this really true???
9043         ;;
9044         siemens)
9045           ## LD is ld it makes a PLAMLIB
9046           ## CC just makes a GrossModule.
9047           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9048           reload_cmds='$CC -r -o $output$reload_objs'
9049           hardcode_direct=no
9050         ;;
9051         motorola)
9052           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9053           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9054         ;;
9055       esac
9056       runpath_var='LD_RUN_PATH'
9057       hardcode_shlibpath_var=no
9058       ;;
9059
9060     sysv4.3*)
9061       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9062       hardcode_shlibpath_var=no
9063       export_dynamic_flag_spec='-Bexport'
9064       ;;
9065
9066     sysv4*MP*)
9067       if test -d /usr/nec; then
9068         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9069         hardcode_shlibpath_var=no
9070         runpath_var=LD_RUN_PATH
9071         hardcode_runpath_var=yes
9072         ld_shlibs=yes
9073       fi
9074       ;;
9075
9076     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9077       no_undefined_flag='${wl}-z,text'
9078       archive_cmds_need_lc=no
9079       hardcode_shlibpath_var=no
9080       runpath_var='LD_RUN_PATH'
9081
9082       if test "$GCC" = yes; then
9083         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9084         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9085       else
9086         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9087         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9088       fi
9089       ;;
9090
9091     sysv5* | sco3.2v5* | sco5v6*)
9092       # Note: We can NOT use -z defs as we might desire, because we do not
9093       # link with -lc, and that would cause any symbols used from libc to
9094       # always be unresolved, which means just about no library would
9095       # ever link correctly.  If we're not using GNU ld we use -z text
9096       # though, which does catch some bad symbols but isn't as heavy-handed
9097       # as -z defs.
9098       no_undefined_flag='${wl}-z,text'
9099       allow_undefined_flag='${wl}-z,nodefs'
9100       archive_cmds_need_lc=no
9101       hardcode_shlibpath_var=no
9102       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9103       hardcode_libdir_separator=':'
9104       link_all_deplibs=yes
9105       export_dynamic_flag_spec='${wl}-Bexport'
9106       runpath_var='LD_RUN_PATH'
9107
9108       if test "$GCC" = yes; then
9109         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9110         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9111       else
9112         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9113         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9114       fi
9115       ;;
9116
9117     uts4*)
9118       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9119       hardcode_libdir_flag_spec='-L$libdir'
9120       hardcode_shlibpath_var=no
9121       ;;
9122
9123     *)
9124       ld_shlibs=no
9125       ;;
9126     esac
9127   fi
9128
9129 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9130 echo "${ECHO_T}$ld_shlibs" >&6; }
9131 test "$ld_shlibs" = no && can_build_shared=no
9132
9133 #
9134 # Do we need to explicitly link libc?
9135 #
9136 case "x$archive_cmds_need_lc" in
9137 x|xyes)
9138   # Assume -lc should be added
9139   archive_cmds_need_lc=yes
9140
9141   if test "$enable_shared" = yes && test "$GCC" = yes; then
9142     case $archive_cmds in
9143     *'~'*)
9144       # FIXME: we may have to deal with multi-command sequences.
9145       ;;
9146     '$CC '*)
9147       # Test whether the compiler implicitly links with -lc since on some
9148       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9149       # to ld, don't add -lc before -lgcc.
9150       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9151 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9152       $rm conftest*
9153       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9154
9155       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9156   (eval $ac_compile) 2>&5
9157   ac_status=$?
9158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159   (exit $ac_status); } 2>conftest.err; then
9160         soname=conftest
9161         lib=conftest
9162         libobjs=conftest.$ac_objext
9163         deplibs=
9164         wl=$lt_prog_compiler_wl
9165         pic_flag=$lt_prog_compiler_pic
9166         compiler_flags=-v
9167         linker_flags=-v
9168         verstring=
9169         output_objdir=.
9170         libname=conftest
9171         lt_save_allow_undefined_flag=$allow_undefined_flag
9172         allow_undefined_flag=
9173         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9174   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9175   ac_status=$?
9176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177   (exit $ac_status); }
9178         then
9179           archive_cmds_need_lc=no
9180         else
9181           archive_cmds_need_lc=yes
9182         fi
9183         allow_undefined_flag=$lt_save_allow_undefined_flag
9184       else
9185         cat conftest.err 1>&5
9186       fi
9187       $rm conftest*
9188       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9189 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9190       ;;
9191     esac
9192   fi
9193   ;;
9194 esac
9195
9196 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9197 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9198 library_names_spec=
9199 libname_spec='lib$name'
9200 soname_spec=
9201 shrext_cmds=".so"
9202 postinstall_cmds=
9203 postuninstall_cmds=
9204 finish_cmds=
9205 finish_eval=
9206 shlibpath_var=
9207 shlibpath_overrides_runpath=unknown
9208 version_type=none
9209 dynamic_linker="$host_os ld.so"
9210 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9211
9212 if test "$GCC" = yes; then
9213   case $host_os in
9214     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9215     *) lt_awk_arg="/^libraries:/" ;;
9216   esac
9217   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9218   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9219     # if the path contains ";" then we assume it to be the separator
9220     # otherwise default to the standard path separator (i.e. ":") - it is
9221     # assumed that no part of a normal pathname contains ";" but that should
9222     # okay in the real world where ";" in dirpaths is itself problematic.
9223     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9224   else
9225     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9226   fi
9227   # Ok, now we have the path, separated by spaces, we can step through it
9228   # and add multilib dir if necessary.
9229   lt_tmp_lt_search_path_spec=
9230   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9231   for lt_sys_path in $lt_search_path_spec; do
9232     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9233       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9234     else
9235       test -d "$lt_sys_path" && \
9236         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9237     fi
9238   done
9239   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9240 BEGIN {RS=" "; FS="/|\n";} {
9241   lt_foo="";
9242   lt_count=0;
9243   for (lt_i = NF; lt_i > 0; lt_i--) {
9244     if ($lt_i != "" && $lt_i != ".") {
9245       if ($lt_i == "..") {
9246         lt_count++;
9247       } else {
9248         if (lt_count == 0) {
9249           lt_foo="/" $lt_i lt_foo;
9250         } else {
9251           lt_count--;
9252         }
9253       }
9254     }
9255   }
9256   if (lt_foo != "") { lt_freq[lt_foo]++; }
9257   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9258 }'`
9259   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9260 else
9261   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9262 fi
9263 need_lib_prefix=unknown
9264 hardcode_into_libs=no
9265
9266 # when you set need_version to no, make sure it does not cause -set_version
9267 # flags to be left without arguments
9268 need_version=unknown
9269
9270 case $host_os in
9271 aix3*)
9272   version_type=linux
9273   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9274   shlibpath_var=LIBPATH
9275
9276   # AIX 3 has no versioning support, so we append a major version to the name.
9277   soname_spec='${libname}${release}${shared_ext}$major'
9278   ;;
9279
9280 aix[4-9]*)
9281   version_type=linux
9282   need_lib_prefix=no
9283   need_version=no
9284   hardcode_into_libs=yes
9285   if test "$host_cpu" = ia64; then
9286     # AIX 5 supports IA64
9287     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9288     shlibpath_var=LD_LIBRARY_PATH
9289   else
9290     # With GCC up to 2.95.x, collect2 would create an import file
9291     # for dependence libraries.  The import file would start with
9292     # the line `#! .'.  This would cause the generated library to
9293     # depend on `.', always an invalid library.  This was fixed in
9294     # development snapshots of GCC prior to 3.0.
9295     case $host_os in
9296       aix4 | aix4.[01] | aix4.[01].*)
9297       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9298            echo ' yes '
9299            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9300         :
9301       else
9302         can_build_shared=no
9303       fi
9304       ;;
9305     esac
9306     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9307     # soname into executable. Probably we can add versioning support to
9308     # collect2, so additional links can be useful in future.
9309     if test "$aix_use_runtimelinking" = yes; then
9310       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9311       # instead of lib<name>.a to let people know that these are not
9312       # typical AIX shared libraries.
9313       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314     else
9315       # We preserve .a as extension for shared libraries through AIX4.2
9316       # and later when we are not doing run time linking.
9317       library_names_spec='${libname}${release}.a $libname.a'
9318       soname_spec='${libname}${release}${shared_ext}$major'
9319     fi
9320     shlibpath_var=LIBPATH
9321   fi
9322   ;;
9323
9324 amigaos*)
9325   library_names_spec='$libname.ixlibrary $libname.a'
9326   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9327   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'
9328   ;;
9329
9330 beos*)
9331   library_names_spec='${libname}${shared_ext}'
9332   dynamic_linker="$host_os ld.so"
9333   shlibpath_var=LIBRARY_PATH
9334   ;;
9335
9336 bsdi[45]*)
9337   version_type=linux
9338   need_version=no
9339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340   soname_spec='${libname}${release}${shared_ext}$major'
9341   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9342   shlibpath_var=LD_LIBRARY_PATH
9343   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9344   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9345   # the default ld.so.conf also contains /usr/contrib/lib and
9346   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9347   # libtool to hard-code these into programs
9348   ;;
9349
9350 cygwin* | mingw* | pw32*)
9351   version_type=windows
9352   shrext_cmds=".dll"
9353   need_version=no
9354   need_lib_prefix=no
9355
9356   case $GCC,$host_os in
9357   yes,cygwin* | yes,mingw* | yes,pw32*)
9358     library_names_spec='$libname.dll.a'
9359     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9360     postinstall_cmds='base_file=`basename \${file}`~
9361       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9362       dldir=$destdir/`dirname \$dlpath`~
9363       test -d \$dldir || mkdir -p \$dldir~
9364       $install_prog $dir/$dlname \$dldir/$dlname~
9365       chmod a+x \$dldir/$dlname'
9366     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9367       dlpath=$dir/\$dldll~
9368        $rm \$dlpath'
9369     shlibpath_overrides_runpath=yes
9370
9371     case $host_os in
9372     cygwin*)
9373       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9374       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9375       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9376       ;;
9377     mingw*)
9378       # MinGW DLLs use traditional 'lib' prefix
9379       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9380       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9381       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9382         # It is most probably a Windows format PATH printed by
9383         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9384         # path with ; separators, and with drive letters. We can handle the
9385         # drive letters (cygwin fileutils understands them), so leave them,
9386         # especially as we might pass files found there to a mingw objdump,
9387         # which wouldn't understand a cygwinified path. Ahh.
9388         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9389       else
9390         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9391       fi
9392       ;;
9393     pw32*)
9394       # pw32 DLLs use 'pw' prefix rather than 'lib'
9395       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9396       ;;
9397     esac
9398     ;;
9399
9400   *)
9401     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9402     ;;
9403   esac
9404   dynamic_linker='Win32 ld.exe'
9405   # FIXME: first we should search . and the directory the executable is in
9406   shlibpath_var=PATH
9407   ;;
9408
9409 darwin* | rhapsody*)
9410   dynamic_linker="$host_os dyld"
9411   version_type=darwin
9412   need_lib_prefix=no
9413   need_version=no
9414   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9415   soname_spec='${libname}${release}${major}$shared_ext'
9416   shlibpath_overrides_runpath=yes
9417   shlibpath_var=DYLD_LIBRARY_PATH
9418   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9419
9420   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9421   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9422   ;;
9423
9424 dgux*)
9425   version_type=linux
9426   need_lib_prefix=no
9427   need_version=no
9428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9429   soname_spec='${libname}${release}${shared_ext}$major'
9430   shlibpath_var=LD_LIBRARY_PATH
9431   ;;
9432
9433 freebsd1*)
9434   dynamic_linker=no
9435   ;;
9436
9437 freebsd* | dragonfly*)
9438   # DragonFly does not have aout.  When/if they implement a new
9439   # versioning mechanism, adjust this.
9440   if test -x /usr/bin/objformat; then
9441     objformat=`/usr/bin/objformat`
9442   else
9443     case $host_os in
9444     freebsd[123]*) objformat=aout ;;
9445     *) objformat=elf ;;
9446     esac
9447   fi
9448   version_type=freebsd-$objformat
9449   case $version_type in
9450     freebsd-elf*)
9451       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9452       need_version=no
9453       need_lib_prefix=no
9454       ;;
9455     freebsd-*)
9456       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9457       need_version=yes
9458       ;;
9459   esac
9460   shlibpath_var=LD_LIBRARY_PATH
9461   case $host_os in
9462   freebsd2*)
9463     shlibpath_overrides_runpath=yes
9464     ;;
9465   freebsd3.[01]* | freebsdelf3.[01]*)
9466     shlibpath_overrides_runpath=yes
9467     hardcode_into_libs=yes
9468     ;;
9469   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9470   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9471     shlibpath_overrides_runpath=no
9472     hardcode_into_libs=yes
9473     ;;
9474   *) # from 4.6 on, and DragonFly
9475     shlibpath_overrides_runpath=yes
9476     hardcode_into_libs=yes
9477     ;;
9478   esac
9479   ;;
9480
9481 gnu*)
9482   version_type=linux
9483   need_lib_prefix=no
9484   need_version=no
9485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9486   soname_spec='${libname}${release}${shared_ext}$major'
9487   shlibpath_var=LD_LIBRARY_PATH
9488   hardcode_into_libs=yes
9489   ;;
9490
9491 hpux9* | hpux10* | hpux11*)
9492   # Give a soname corresponding to the major version so that dld.sl refuses to
9493   # link against other versions.
9494   version_type=sunos
9495   need_lib_prefix=no
9496   need_version=no
9497   case $host_cpu in
9498   ia64*)
9499     shrext_cmds='.so'
9500     hardcode_into_libs=yes
9501     dynamic_linker="$host_os dld.so"
9502     shlibpath_var=LD_LIBRARY_PATH
9503     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9504     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9505     soname_spec='${libname}${release}${shared_ext}$major'
9506     if test "X$HPUX_IA64_MODE" = X32; then
9507       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9508     else
9509       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9510     fi
9511     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9512     ;;
9513    hppa*64*)
9514      shrext_cmds='.sl'
9515      hardcode_into_libs=yes
9516      dynamic_linker="$host_os dld.sl"
9517      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9518      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9519      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9520      soname_spec='${libname}${release}${shared_ext}$major'
9521      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9522      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9523      ;;
9524    *)
9525     shrext_cmds='.sl'
9526     dynamic_linker="$host_os dld.sl"
9527     shlibpath_var=SHLIB_PATH
9528     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9529     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9530     soname_spec='${libname}${release}${shared_ext}$major'
9531     ;;
9532   esac
9533   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9534   postinstall_cmds='chmod 555 $lib'
9535   ;;
9536
9537 interix[3-9]*)
9538   version_type=linux
9539   need_lib_prefix=no
9540   need_version=no
9541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9542   soname_spec='${libname}${release}${shared_ext}$major'
9543   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9544   shlibpath_var=LD_LIBRARY_PATH
9545   shlibpath_overrides_runpath=no
9546   hardcode_into_libs=yes
9547   ;;
9548
9549 irix5* | irix6* | nonstopux*)
9550   case $host_os in
9551     nonstopux*) version_type=nonstopux ;;
9552     *)
9553         if test "$lt_cv_prog_gnu_ld" = yes; then
9554                 version_type=linux
9555         else
9556                 version_type=irix
9557         fi ;;
9558   esac
9559   need_lib_prefix=no
9560   need_version=no
9561   soname_spec='${libname}${release}${shared_ext}$major'
9562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9563   case $host_os in
9564   irix5* | nonstopux*)
9565     libsuff= shlibsuff=
9566     ;;
9567   *)
9568     case $LD in # libtool.m4 will add one of these switches to LD
9569     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9570       libsuff= shlibsuff= libmagic=32-bit;;
9571     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9572       libsuff=32 shlibsuff=N32 libmagic=N32;;
9573     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9574       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9575     *) libsuff= shlibsuff= libmagic=never-match;;
9576     esac
9577     ;;
9578   esac
9579   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9580   shlibpath_overrides_runpath=no
9581   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9582   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9583   hardcode_into_libs=yes
9584   ;;
9585
9586 # No shared lib support for Linux oldld, aout, or coff.
9587 linux*oldld* | linux*aout* | linux*coff*)
9588   dynamic_linker=no
9589   ;;
9590
9591 # This must be Linux ELF.
9592 linux* | k*bsd*-gnu)
9593   version_type=linux
9594   need_lib_prefix=no
9595   need_version=no
9596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9597   soname_spec='${libname}${release}${shared_ext}$major'
9598   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9599   shlibpath_var=LD_LIBRARY_PATH
9600   shlibpath_overrides_runpath=no
9601   # This implies no fast_install, which is unacceptable.
9602   # Some rework will be needed to allow for fast_install
9603   # before this can be enabled.
9604   hardcode_into_libs=yes
9605
9606   # Append ld.so.conf contents to the search path
9607   if test -f /etc/ld.so.conf; then
9608     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9609     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9610   fi
9611
9612   # We used to test for /lib/ld.so.1 and disable shared libraries on
9613   # powerpc, because MkLinux only supported shared libraries with the
9614   # GNU dynamic linker.  Since this was broken with cross compilers,
9615   # most powerpc-linux boxes support dynamic linking these days and
9616   # people can always --disable-shared, the test was removed, and we
9617   # assume the GNU/Linux dynamic linker is in use.
9618   dynamic_linker='GNU/Linux ld.so'
9619   ;;
9620
9621 netbsdelf*-gnu)
9622   version_type=linux
9623   need_lib_prefix=no
9624   need_version=no
9625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9626   soname_spec='${libname}${release}${shared_ext}$major'
9627   shlibpath_var=LD_LIBRARY_PATH
9628   shlibpath_overrides_runpath=no
9629   hardcode_into_libs=yes
9630   dynamic_linker='NetBSD ld.elf_so'
9631   ;;
9632
9633 netbsd*)
9634   version_type=sunos
9635   need_lib_prefix=no
9636   need_version=no
9637   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9638     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9639     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9640     dynamic_linker='NetBSD (a.out) ld.so'
9641   else
9642     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9643     soname_spec='${libname}${release}${shared_ext}$major'
9644     dynamic_linker='NetBSD ld.elf_so'
9645   fi
9646   shlibpath_var=LD_LIBRARY_PATH
9647   shlibpath_overrides_runpath=yes
9648   hardcode_into_libs=yes
9649   ;;
9650
9651 newsos6)
9652   version_type=linux
9653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9654   shlibpath_var=LD_LIBRARY_PATH
9655   shlibpath_overrides_runpath=yes
9656   ;;
9657
9658 nto-qnx*)
9659   version_type=linux
9660   need_lib_prefix=no
9661   need_version=no
9662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9663   soname_spec='${libname}${release}${shared_ext}$major'
9664   shlibpath_var=LD_LIBRARY_PATH
9665   shlibpath_overrides_runpath=yes
9666   ;;
9667
9668 openbsd*)
9669   version_type=sunos
9670   sys_lib_dlsearch_path_spec="/usr/lib"
9671   need_lib_prefix=no
9672   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9673   case $host_os in
9674     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9675     *)                         need_version=no  ;;
9676   esac
9677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9678   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9679   shlibpath_var=LD_LIBRARY_PATH
9680   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9681     case $host_os in
9682       openbsd2.[89] | openbsd2.[89].*)
9683         shlibpath_overrides_runpath=no
9684         ;;
9685       *)
9686         shlibpath_overrides_runpath=yes
9687         ;;
9688       esac
9689   else
9690     shlibpath_overrides_runpath=yes
9691   fi
9692   ;;
9693
9694 os2*)
9695   libname_spec='$name'
9696   shrext_cmds=".dll"
9697   need_lib_prefix=no
9698   library_names_spec='$libname${shared_ext} $libname.a'
9699   dynamic_linker='OS/2 ld.exe'
9700   shlibpath_var=LIBPATH
9701   ;;
9702
9703 osf3* | osf4* | osf5*)
9704   version_type=osf
9705   need_lib_prefix=no
9706   need_version=no
9707   soname_spec='${libname}${release}${shared_ext}$major'
9708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9709   shlibpath_var=LD_LIBRARY_PATH
9710   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9711   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9712   ;;
9713
9714 rdos*)
9715   dynamic_linker=no
9716   ;;
9717
9718 solaris*)
9719   version_type=linux
9720   need_lib_prefix=no
9721   need_version=no
9722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723   soname_spec='${libname}${release}${shared_ext}$major'
9724   shlibpath_var=LD_LIBRARY_PATH
9725   shlibpath_overrides_runpath=yes
9726   hardcode_into_libs=yes
9727   # ldd complains unless libraries are executable
9728   postinstall_cmds='chmod +x $lib'
9729   ;;
9730
9731 sunos4*)
9732   version_type=sunos
9733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9734   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9735   shlibpath_var=LD_LIBRARY_PATH
9736   shlibpath_overrides_runpath=yes
9737   if test "$with_gnu_ld" = yes; then
9738     need_lib_prefix=no
9739   fi
9740   need_version=yes
9741   ;;
9742
9743 sysv4 | sysv4.3*)
9744   version_type=linux
9745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746   soname_spec='${libname}${release}${shared_ext}$major'
9747   shlibpath_var=LD_LIBRARY_PATH
9748   case $host_vendor in
9749     sni)
9750       shlibpath_overrides_runpath=no
9751       need_lib_prefix=no
9752       export_dynamic_flag_spec='${wl}-Blargedynsym'
9753       runpath_var=LD_RUN_PATH
9754       ;;
9755     siemens)
9756       need_lib_prefix=no
9757       ;;
9758     motorola)
9759       need_lib_prefix=no
9760       need_version=no
9761       shlibpath_overrides_runpath=no
9762       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9763       ;;
9764   esac
9765   ;;
9766
9767 sysv4*MP*)
9768   if test -d /usr/nec ;then
9769     version_type=linux
9770     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9771     soname_spec='$libname${shared_ext}.$major'
9772     shlibpath_var=LD_LIBRARY_PATH
9773   fi
9774   ;;
9775
9776 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9777   version_type=freebsd-elf
9778   need_lib_prefix=no
9779   need_version=no
9780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9781   soname_spec='${libname}${release}${shared_ext}$major'
9782   shlibpath_var=LD_LIBRARY_PATH
9783   hardcode_into_libs=yes
9784   if test "$with_gnu_ld" = yes; then
9785     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9786     shlibpath_overrides_runpath=no
9787   else
9788     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9789     shlibpath_overrides_runpath=yes
9790     case $host_os in
9791       sco3.2v5*)
9792         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9793         ;;
9794     esac
9795   fi
9796   sys_lib_dlsearch_path_spec='/usr/lib'
9797   ;;
9798
9799 uts4*)
9800   version_type=linux
9801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802   soname_spec='${libname}${release}${shared_ext}$major'
9803   shlibpath_var=LD_LIBRARY_PATH
9804   ;;
9805
9806 *)
9807   dynamic_linker=no
9808   ;;
9809 esac
9810 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9811 echo "${ECHO_T}$dynamic_linker" >&6; }
9812 test "$dynamic_linker" = no && can_build_shared=no
9813
9814 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9815   echo $ECHO_N "(cached) $ECHO_C" >&6
9816 else
9817   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9818 fi
9819
9820 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9821 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9822   echo $ECHO_N "(cached) $ECHO_C" >&6
9823 else
9824   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9825 fi
9826
9827 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9828
9829 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9830 if test "$GCC" = yes; then
9831   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9832 fi
9833
9834 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9835 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9836 hardcode_action=
9837 if test -n "$hardcode_libdir_flag_spec" || \
9838    test -n "$runpath_var" || \
9839    test "X$hardcode_automatic" = "Xyes" ; then
9840
9841   # We can hardcode non-existant directories.
9842   if test "$hardcode_direct" != no &&
9843      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9844      # have to relink, otherwise we might link with an installed library
9845      # when we should be linking with a yet-to-be-installed one
9846      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9847      test "$hardcode_minus_L" != no; then
9848     # Linking always hardcodes the temporary library directory.
9849     hardcode_action=relink
9850   else
9851     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9852     hardcode_action=immediate
9853   fi
9854 else
9855   # We cannot hardcode anything, or else we can only hardcode existing
9856   # directories.
9857   hardcode_action=unsupported
9858 fi
9859 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9860 echo "${ECHO_T}$hardcode_action" >&6; }
9861
9862 if test "$hardcode_action" = relink; then
9863   # Fast installation is not supported
9864   enable_fast_install=no
9865 elif test "$shlibpath_overrides_runpath" = yes ||
9866      test "$enable_shared" = no; then
9867   # Fast installation is not necessary
9868   enable_fast_install=needless
9869 fi
9870
9871 striplib=
9872 old_striplib=
9873 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9874 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9875 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9876   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9877   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9878   { echo "$as_me:$LINENO: result: yes" >&5
9879 echo "${ECHO_T}yes" >&6; }
9880 else
9881 # FIXME - insert some real tests, host_os isn't really good enough
9882   case $host_os in
9883    darwin*)
9884        if test -n "$STRIP" ; then
9885          striplib="$STRIP -x"
9886          old_striplib="$STRIP -S"
9887          { echo "$as_me:$LINENO: result: yes" >&5
9888 echo "${ECHO_T}yes" >&6; }
9889        else
9890   { echo "$as_me:$LINENO: result: no" >&5
9891 echo "${ECHO_T}no" >&6; }
9892 fi
9893        ;;
9894    *)
9895   { echo "$as_me:$LINENO: result: no" >&5
9896 echo "${ECHO_T}no" >&6; }
9897     ;;
9898   esac
9899 fi
9900
9901 if test "x$enable_dlopen" != xyes; then
9902   enable_dlopen=unknown
9903   enable_dlopen_self=unknown
9904   enable_dlopen_self_static=unknown
9905 else
9906   lt_cv_dlopen=no
9907   lt_cv_dlopen_libs=
9908
9909   case $host_os in
9910   beos*)
9911     lt_cv_dlopen="load_add_on"
9912     lt_cv_dlopen_libs=
9913     lt_cv_dlopen_self=yes
9914     ;;
9915
9916   mingw* | pw32*)
9917     lt_cv_dlopen="LoadLibrary"
9918     lt_cv_dlopen_libs=
9919    ;;
9920
9921   cygwin*)
9922     lt_cv_dlopen="dlopen"
9923     lt_cv_dlopen_libs=
9924    ;;
9925
9926   darwin*)
9927   # if libdl is installed we need to link against it
9928     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9929 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9930 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9931   echo $ECHO_N "(cached) $ECHO_C" >&6
9932 else
9933   ac_check_lib_save_LIBS=$LIBS
9934 LIBS="-ldl  $LIBS"
9935 cat >conftest.$ac_ext <<_ACEOF
9936 /* confdefs.h.  */
9937 _ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h.  */
9941
9942 /* Override any GCC internal prototype to avoid an error.
9943    Use char because int might match the return type of a GCC
9944    builtin and then its argument prototype would still apply.  */
9945 #ifdef __cplusplus
9946 extern "C"
9947 #endif
9948 char dlopen ();
9949 int
9950 main ()
9951 {
9952 return dlopen ();
9953   ;
9954   return 0;
9955 }
9956 _ACEOF
9957 rm -f conftest.$ac_objext conftest$ac_exeext
9958 if { (ac_try="$ac_link"
9959 case "(($ac_try" in
9960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961   *) ac_try_echo=$ac_try;;
9962 esac
9963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964   (eval "$ac_link") 2>conftest.er1
9965   ac_status=$?
9966   grep -v '^ *+' conftest.er1 >conftest.err
9967   rm -f conftest.er1
9968   cat conftest.err >&5
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); } && {
9971          test -z "$ac_c_werror_flag" ||
9972          test ! -s conftest.err
9973        } && test -s conftest$ac_exeext &&
9974        $as_test_x conftest$ac_exeext; then
9975   ac_cv_lib_dl_dlopen=yes
9976 else
9977   echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9979
9980         ac_cv_lib_dl_dlopen=no
9981 fi
9982
9983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9984       conftest$ac_exeext conftest.$ac_ext
9985 LIBS=$ac_check_lib_save_LIBS
9986 fi
9987 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9988 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9989 if test $ac_cv_lib_dl_dlopen = yes; then
9990   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9991 else
9992
9993     lt_cv_dlopen="dyld"
9994     lt_cv_dlopen_libs=
9995     lt_cv_dlopen_self=yes
9996
9997 fi
9998
9999    ;;
10000
10001   *)
10002     { echo "$as_me:$LINENO: checking for shl_load" >&5
10003 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10004 if test "${ac_cv_func_shl_load+set}" = set; then
10005   echo $ECHO_N "(cached) $ECHO_C" >&6
10006 else
10007   cat >conftest.$ac_ext <<_ACEOF
10008 /* confdefs.h.  */
10009 _ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h.  */
10013 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10014    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10015 #define shl_load innocuous_shl_load
10016
10017 /* System header to define __stub macros and hopefully few prototypes,
10018     which can conflict with char shl_load (); below.
10019     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10020     <limits.h> exists even on freestanding compilers.  */
10021
10022 #ifdef __STDC__
10023 # include <limits.h>
10024 #else
10025 # include <assert.h>
10026 #endif
10027
10028 #undef shl_load
10029
10030 /* Override any GCC internal prototype to avoid an error.
10031    Use char because int might match the return type of a GCC
10032    builtin and then its argument prototype would still apply.  */
10033 #ifdef __cplusplus
10034 extern "C"
10035 #endif
10036 char shl_load ();
10037 /* The GNU C library defines this for functions which it implements
10038     to always fail with ENOSYS.  Some functions are actually named
10039     something starting with __ and the normal name is an alias.  */
10040 #if defined __stub_shl_load || defined __stub___shl_load
10041 choke me
10042 #endif
10043
10044 int
10045 main ()
10046 {
10047 return shl_load ();
10048   ;
10049   return 0;
10050 }
10051 _ACEOF
10052 rm -f conftest.$ac_objext conftest$ac_exeext
10053 if { (ac_try="$ac_link"
10054 case "(($ac_try" in
10055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056   *) ac_try_echo=$ac_try;;
10057 esac
10058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059   (eval "$ac_link") 2>conftest.er1
10060   ac_status=$?
10061   grep -v '^ *+' conftest.er1 >conftest.err
10062   rm -f conftest.er1
10063   cat conftest.err >&5
10064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065   (exit $ac_status); } && {
10066          test -z "$ac_c_werror_flag" ||
10067          test ! -s conftest.err
10068        } && test -s conftest$ac_exeext &&
10069        $as_test_x conftest$ac_exeext; then
10070   ac_cv_func_shl_load=yes
10071 else
10072   echo "$as_me: failed program was:" >&5
10073 sed 's/^/| /' conftest.$ac_ext >&5
10074
10075         ac_cv_func_shl_load=no
10076 fi
10077
10078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10079       conftest$ac_exeext conftest.$ac_ext
10080 fi
10081 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10082 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10083 if test $ac_cv_func_shl_load = yes; then
10084   lt_cv_dlopen="shl_load"
10085 else
10086   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10087 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10088 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10089   echo $ECHO_N "(cached) $ECHO_C" >&6
10090 else
10091   ac_check_lib_save_LIBS=$LIBS
10092 LIBS="-ldld  $LIBS"
10093 cat >conftest.$ac_ext <<_ACEOF
10094 /* confdefs.h.  */
10095 _ACEOF
10096 cat confdefs.h >>conftest.$ac_ext
10097 cat >>conftest.$ac_ext <<_ACEOF
10098 /* end confdefs.h.  */
10099
10100 /* Override any GCC internal prototype to avoid an error.
10101    Use char because int might match the return type of a GCC
10102    builtin and then its argument prototype would still apply.  */
10103 #ifdef __cplusplus
10104 extern "C"
10105 #endif
10106 char shl_load ();
10107 int
10108 main ()
10109 {
10110 return shl_load ();
10111   ;
10112   return 0;
10113 }
10114 _ACEOF
10115 rm -f conftest.$ac_objext conftest$ac_exeext
10116 if { (ac_try="$ac_link"
10117 case "(($ac_try" in
10118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119   *) ac_try_echo=$ac_try;;
10120 esac
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122   (eval "$ac_link") 2>conftest.er1
10123   ac_status=$?
10124   grep -v '^ *+' conftest.er1 >conftest.err
10125   rm -f conftest.er1
10126   cat conftest.err >&5
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); } && {
10129          test -z "$ac_c_werror_flag" ||
10130          test ! -s conftest.err
10131        } && test -s conftest$ac_exeext &&
10132        $as_test_x conftest$ac_exeext; then
10133   ac_cv_lib_dld_shl_load=yes
10134 else
10135   echo "$as_me: failed program was:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10137
10138         ac_cv_lib_dld_shl_load=no
10139 fi
10140
10141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10142       conftest$ac_exeext conftest.$ac_ext
10143 LIBS=$ac_check_lib_save_LIBS
10144 fi
10145 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10146 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10147 if test $ac_cv_lib_dld_shl_load = yes; then
10148   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10149 else
10150   { echo "$as_me:$LINENO: checking for dlopen" >&5
10151 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10152 if test "${ac_cv_func_dlopen+set}" = set; then
10153   echo $ECHO_N "(cached) $ECHO_C" >&6
10154 else
10155   cat >conftest.$ac_ext <<_ACEOF
10156 /* confdefs.h.  */
10157 _ACEOF
10158 cat confdefs.h >>conftest.$ac_ext
10159 cat >>conftest.$ac_ext <<_ACEOF
10160 /* end confdefs.h.  */
10161 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10163 #define dlopen innocuous_dlopen
10164
10165 /* System header to define __stub macros and hopefully few prototypes,
10166     which can conflict with char dlopen (); below.
10167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10168     <limits.h> exists even on freestanding compilers.  */
10169
10170 #ifdef __STDC__
10171 # include <limits.h>
10172 #else
10173 # include <assert.h>
10174 #endif
10175
10176 #undef dlopen
10177
10178 /* Override any GCC internal prototype to avoid an error.
10179    Use char because int might match the return type of a GCC
10180    builtin and then its argument prototype would still apply.  */
10181 #ifdef __cplusplus
10182 extern "C"
10183 #endif
10184 char dlopen ();
10185 /* The GNU C library defines this for functions which it implements
10186     to always fail with ENOSYS.  Some functions are actually named
10187     something starting with __ and the normal name is an alias.  */
10188 #if defined __stub_dlopen || defined __stub___dlopen
10189 choke me
10190 #endif
10191
10192 int
10193 main ()
10194 {
10195 return dlopen ();
10196   ;
10197   return 0;
10198 }
10199 _ACEOF
10200 rm -f conftest.$ac_objext conftest$ac_exeext
10201 if { (ac_try="$ac_link"
10202 case "(($ac_try" in
10203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204   *) ac_try_echo=$ac_try;;
10205 esac
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207   (eval "$ac_link") 2>conftest.er1
10208   ac_status=$?
10209   grep -v '^ *+' conftest.er1 >conftest.err
10210   rm -f conftest.er1
10211   cat conftest.err >&5
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); } && {
10214          test -z "$ac_c_werror_flag" ||
10215          test ! -s conftest.err
10216        } && test -s conftest$ac_exeext &&
10217        $as_test_x conftest$ac_exeext; then
10218   ac_cv_func_dlopen=yes
10219 else
10220   echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10222
10223         ac_cv_func_dlopen=no
10224 fi
10225
10226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10227       conftest$ac_exeext conftest.$ac_ext
10228 fi
10229 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10230 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10231 if test $ac_cv_func_dlopen = yes; then
10232   lt_cv_dlopen="dlopen"
10233 else
10234   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10235 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10236 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10237   echo $ECHO_N "(cached) $ECHO_C" >&6
10238 else
10239   ac_check_lib_save_LIBS=$LIBS
10240 LIBS="-ldl  $LIBS"
10241 cat >conftest.$ac_ext <<_ACEOF
10242 /* confdefs.h.  */
10243 _ACEOF
10244 cat confdefs.h >>conftest.$ac_ext
10245 cat >>conftest.$ac_ext <<_ACEOF
10246 /* end confdefs.h.  */
10247
10248 /* Override any GCC internal prototype to avoid an error.
10249    Use char because int might match the return type of a GCC
10250    builtin and then its argument prototype would still apply.  */
10251 #ifdef __cplusplus
10252 extern "C"
10253 #endif
10254 char dlopen ();
10255 int
10256 main ()
10257 {
10258 return dlopen ();
10259   ;
10260   return 0;
10261 }
10262 _ACEOF
10263 rm -f conftest.$ac_objext conftest$ac_exeext
10264 if { (ac_try="$ac_link"
10265 case "(($ac_try" in
10266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267   *) ac_try_echo=$ac_try;;
10268 esac
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270   (eval "$ac_link") 2>conftest.er1
10271   ac_status=$?
10272   grep -v '^ *+' conftest.er1 >conftest.err
10273   rm -f conftest.er1
10274   cat conftest.err >&5
10275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276   (exit $ac_status); } && {
10277          test -z "$ac_c_werror_flag" ||
10278          test ! -s conftest.err
10279        } && test -s conftest$ac_exeext &&
10280        $as_test_x conftest$ac_exeext; then
10281   ac_cv_lib_dl_dlopen=yes
10282 else
10283   echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10285
10286         ac_cv_lib_dl_dlopen=no
10287 fi
10288
10289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10290       conftest$ac_exeext conftest.$ac_ext
10291 LIBS=$ac_check_lib_save_LIBS
10292 fi
10293 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10294 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10295 if test $ac_cv_lib_dl_dlopen = yes; then
10296   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10297 else
10298   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10299 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10300 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10301   echo $ECHO_N "(cached) $ECHO_C" >&6
10302 else
10303   ac_check_lib_save_LIBS=$LIBS
10304 LIBS="-lsvld  $LIBS"
10305 cat >conftest.$ac_ext <<_ACEOF
10306 /* confdefs.h.  */
10307 _ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h.  */
10311
10312 /* Override any GCC internal prototype to avoid an error.
10313    Use char because int might match the return type of a GCC
10314    builtin and then its argument prototype would still apply.  */
10315 #ifdef __cplusplus
10316 extern "C"
10317 #endif
10318 char dlopen ();
10319 int
10320 main ()
10321 {
10322 return dlopen ();
10323   ;
10324   return 0;
10325 }
10326 _ACEOF
10327 rm -f conftest.$ac_objext conftest$ac_exeext
10328 if { (ac_try="$ac_link"
10329 case "(($ac_try" in
10330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331   *) ac_try_echo=$ac_try;;
10332 esac
10333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334   (eval "$ac_link") 2>conftest.er1
10335   ac_status=$?
10336   grep -v '^ *+' conftest.er1 >conftest.err
10337   rm -f conftest.er1
10338   cat conftest.err >&5
10339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340   (exit $ac_status); } && {
10341          test -z "$ac_c_werror_flag" ||
10342          test ! -s conftest.err
10343        } && test -s conftest$ac_exeext &&
10344        $as_test_x conftest$ac_exeext; then
10345   ac_cv_lib_svld_dlopen=yes
10346 else
10347   echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10349
10350         ac_cv_lib_svld_dlopen=no
10351 fi
10352
10353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10354       conftest$ac_exeext conftest.$ac_ext
10355 LIBS=$ac_check_lib_save_LIBS
10356 fi
10357 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10358 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10359 if test $ac_cv_lib_svld_dlopen = yes; then
10360   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10361 else
10362   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10363 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10364 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10365   echo $ECHO_N "(cached) $ECHO_C" >&6
10366 else
10367   ac_check_lib_save_LIBS=$LIBS
10368 LIBS="-ldld  $LIBS"
10369 cat >conftest.$ac_ext <<_ACEOF
10370 /* confdefs.h.  */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h.  */
10375
10376 /* Override any GCC internal prototype to avoid an error.
10377    Use char because int might match the return type of a GCC
10378    builtin and then its argument prototype would still apply.  */
10379 #ifdef __cplusplus
10380 extern "C"
10381 #endif
10382 char dld_link ();
10383 int
10384 main ()
10385 {
10386 return dld_link ();
10387   ;
10388   return 0;
10389 }
10390 _ACEOF
10391 rm -f conftest.$ac_objext conftest$ac_exeext
10392 if { (ac_try="$ac_link"
10393 case "(($ac_try" in
10394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395   *) ac_try_echo=$ac_try;;
10396 esac
10397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398   (eval "$ac_link") 2>conftest.er1
10399   ac_status=$?
10400   grep -v '^ *+' conftest.er1 >conftest.err
10401   rm -f conftest.er1
10402   cat conftest.err >&5
10403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404   (exit $ac_status); } && {
10405          test -z "$ac_c_werror_flag" ||
10406          test ! -s conftest.err
10407        } && test -s conftest$ac_exeext &&
10408        $as_test_x conftest$ac_exeext; then
10409   ac_cv_lib_dld_dld_link=yes
10410 else
10411   echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10413
10414         ac_cv_lib_dld_dld_link=no
10415 fi
10416
10417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10418       conftest$ac_exeext conftest.$ac_ext
10419 LIBS=$ac_check_lib_save_LIBS
10420 fi
10421 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10422 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10423 if test $ac_cv_lib_dld_dld_link = yes; then
10424   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10425 fi
10426
10427
10428 fi
10429
10430
10431 fi
10432
10433
10434 fi
10435
10436
10437 fi
10438
10439
10440 fi
10441
10442     ;;
10443   esac
10444
10445   if test "x$lt_cv_dlopen" != xno; then
10446     enable_dlopen=yes
10447   else
10448     enable_dlopen=no
10449   fi
10450
10451   case $lt_cv_dlopen in
10452   dlopen)
10453     save_CPPFLAGS="$CPPFLAGS"
10454     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10455
10456     save_LDFLAGS="$LDFLAGS"
10457     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10458
10459     save_LIBS="$LIBS"
10460     LIBS="$lt_cv_dlopen_libs $LIBS"
10461
10462     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10463 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10464 if test "${lt_cv_dlopen_self+set}" = set; then
10465   echo $ECHO_N "(cached) $ECHO_C" >&6
10466 else
10467           if test "$cross_compiling" = yes; then :
10468   lt_cv_dlopen_self=cross
10469 else
10470   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10471   lt_status=$lt_dlunknown
10472   cat > conftest.$ac_ext <<EOF
10473 #line 10473 "configure"
10474 #include "confdefs.h"
10475
10476 #if HAVE_DLFCN_H
10477 #include <dlfcn.h>
10478 #endif
10479
10480 #include <stdio.h>
10481
10482 #ifdef RTLD_GLOBAL
10483 #  define LT_DLGLOBAL           RTLD_GLOBAL
10484 #else
10485 #  ifdef DL_GLOBAL
10486 #    define LT_DLGLOBAL         DL_GLOBAL
10487 #  else
10488 #    define LT_DLGLOBAL         0
10489 #  endif
10490 #endif
10491
10492 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10493    find out it does not work in some platform. */
10494 #ifndef LT_DLLAZY_OR_NOW
10495 #  ifdef RTLD_LAZY
10496 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10497 #  else
10498 #    ifdef DL_LAZY
10499 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10500 #    else
10501 #      ifdef RTLD_NOW
10502 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10503 #      else
10504 #        ifdef DL_NOW
10505 #          define LT_DLLAZY_OR_NOW      DL_NOW
10506 #        else
10507 #          define LT_DLLAZY_OR_NOW      0
10508 #        endif
10509 #      endif
10510 #    endif
10511 #  endif
10512 #endif
10513
10514 #ifdef __cplusplus
10515 extern "C" void exit (int);
10516 #endif
10517
10518 void fnord() { int i=42;}
10519 int main ()
10520 {
10521   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10522   int status = $lt_dlunknown;
10523
10524   if (self)
10525     {
10526       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10527       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10528       /* dlclose (self); */
10529     }
10530   else
10531     puts (dlerror ());
10532
10533     exit (status);
10534 }
10535 EOF
10536   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10537   (eval $ac_link) 2>&5
10538   ac_status=$?
10539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10541     (./conftest; exit; ) >&5 2>/dev/null
10542     lt_status=$?
10543     case x$lt_status in
10544       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10545       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10546       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10547     esac
10548   else :
10549     # compilation failed
10550     lt_cv_dlopen_self=no
10551   fi
10552 fi
10553 rm -fr conftest*
10554
10555
10556 fi
10557 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10558 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10559
10560     if test "x$lt_cv_dlopen_self" = xyes; then
10561       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10562       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10563 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10564 if test "${lt_cv_dlopen_self_static+set}" = set; then
10565   echo $ECHO_N "(cached) $ECHO_C" >&6
10566 else
10567           if test "$cross_compiling" = yes; then :
10568   lt_cv_dlopen_self_static=cross
10569 else
10570   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10571   lt_status=$lt_dlunknown
10572   cat > conftest.$ac_ext <<EOF
10573 #line 10573 "configure"
10574 #include "confdefs.h"
10575
10576 #if HAVE_DLFCN_H
10577 #include <dlfcn.h>
10578 #endif
10579
10580 #include <stdio.h>
10581
10582 #ifdef RTLD_GLOBAL
10583 #  define LT_DLGLOBAL           RTLD_GLOBAL
10584 #else
10585 #  ifdef DL_GLOBAL
10586 #    define LT_DLGLOBAL         DL_GLOBAL
10587 #  else
10588 #    define LT_DLGLOBAL         0
10589 #  endif
10590 #endif
10591
10592 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10593    find out it does not work in some platform. */
10594 #ifndef LT_DLLAZY_OR_NOW
10595 #  ifdef RTLD_LAZY
10596 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10597 #  else
10598 #    ifdef DL_LAZY
10599 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10600 #    else
10601 #      ifdef RTLD_NOW
10602 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10603 #      else
10604 #        ifdef DL_NOW
10605 #          define LT_DLLAZY_OR_NOW      DL_NOW
10606 #        else
10607 #          define LT_DLLAZY_OR_NOW      0
10608 #        endif
10609 #      endif
10610 #    endif
10611 #  endif
10612 #endif
10613
10614 #ifdef __cplusplus
10615 extern "C" void exit (int);
10616 #endif
10617
10618 void fnord() { int i=42;}
10619 int main ()
10620 {
10621   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10622   int status = $lt_dlunknown;
10623
10624   if (self)
10625     {
10626       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10627       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10628       /* dlclose (self); */
10629     }
10630   else
10631     puts (dlerror ());
10632
10633     exit (status);
10634 }
10635 EOF
10636   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637   (eval $ac_link) 2>&5
10638   ac_status=$?
10639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10641     (./conftest; exit; ) >&5 2>/dev/null
10642     lt_status=$?
10643     case x$lt_status in
10644       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10645       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10646       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10647     esac
10648   else :
10649     # compilation failed
10650     lt_cv_dlopen_self_static=no
10651   fi
10652 fi
10653 rm -fr conftest*
10654
10655
10656 fi
10657 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10658 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10659     fi
10660
10661     CPPFLAGS="$save_CPPFLAGS"
10662     LDFLAGS="$save_LDFLAGS"
10663     LIBS="$save_LIBS"
10664     ;;
10665   esac
10666
10667   case $lt_cv_dlopen_self in
10668   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10669   *) enable_dlopen_self=unknown ;;
10670   esac
10671
10672   case $lt_cv_dlopen_self_static in
10673   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10674   *) enable_dlopen_self_static=unknown ;;
10675   esac
10676 fi
10677
10678
10679 # Report which library types will actually be built
10680 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10681 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10682 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10683 echo "${ECHO_T}$can_build_shared" >&6; }
10684
10685 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10686 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10687 test "$can_build_shared" = "no" && enable_shared=no
10688
10689 # On AIX, shared libraries and static libraries use the same namespace, and
10690 # are all built from PIC.
10691 case $host_os in
10692 aix3*)
10693   test "$enable_shared" = yes && enable_static=no
10694   if test -n "$RANLIB"; then
10695     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10696     postinstall_cmds='$RANLIB $lib'
10697   fi
10698   ;;
10699
10700 aix[4-9]*)
10701   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10702     test "$enable_shared" = yes && enable_static=no
10703   fi
10704     ;;
10705 esac
10706 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10707 echo "${ECHO_T}$enable_shared" >&6; }
10708
10709 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10710 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10711 # Make sure either enable_shared or enable_static is yes.
10712 test "$enable_shared" = yes || enable_static=yes
10713 { echo "$as_me:$LINENO: result: $enable_static" >&5
10714 echo "${ECHO_T}$enable_static" >&6; }
10715
10716 # The else clause should only fire when bootstrapping the
10717 # libtool distribution, otherwise you forgot to ship ltmain.sh
10718 # with your package, and you will get complaints that there are
10719 # no rules to generate ltmain.sh.
10720 if test -f "$ltmain"; then
10721   # See if we are running on zsh, and set the options which allow our commands through
10722   # without removal of \ escapes.
10723   if test -n "${ZSH_VERSION+set}" ; then
10724     setopt NO_GLOB_SUBST
10725   fi
10726   # Now quote all the things that may contain metacharacters while being
10727   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10728   # variables and quote the copies for generation of the libtool script.
10729   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10730     SED SHELL STRIP \
10731     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10732     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10733     deplibs_check_method reload_flag reload_cmds need_locks \
10734     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10735     lt_cv_sys_global_symbol_to_c_name_address \
10736     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10737     old_postinstall_cmds old_postuninstall_cmds \
10738     compiler \
10739     CC \
10740     LD \
10741     lt_prog_compiler_wl \
10742     lt_prog_compiler_pic \
10743     lt_prog_compiler_static \
10744     lt_prog_compiler_no_builtin_flag \
10745     export_dynamic_flag_spec \
10746     thread_safe_flag_spec \
10747     whole_archive_flag_spec \
10748     enable_shared_with_static_runtimes \
10749     old_archive_cmds \
10750     old_archive_from_new_cmds \
10751     predep_objects \
10752     postdep_objects \
10753     predeps \
10754     postdeps \
10755     compiler_lib_search_path \
10756     compiler_lib_search_dirs \
10757     archive_cmds \
10758     archive_expsym_cmds \
10759     postinstall_cmds \
10760     postuninstall_cmds \
10761     old_archive_from_expsyms_cmds \
10762     allow_undefined_flag \
10763     no_undefined_flag \
10764     export_symbols_cmds \
10765     hardcode_libdir_flag_spec \
10766     hardcode_libdir_flag_spec_ld \
10767     hardcode_libdir_separator \
10768     hardcode_automatic \
10769     module_cmds \
10770     module_expsym_cmds \
10771     lt_cv_prog_compiler_c_o \
10772     fix_srcfile_path \
10773     exclude_expsyms \
10774     include_expsyms; do
10775
10776     case $var in
10777     old_archive_cmds | \
10778     old_archive_from_new_cmds | \
10779     archive_cmds | \
10780     archive_expsym_cmds | \
10781     module_cmds | \
10782     module_expsym_cmds | \
10783     old_archive_from_expsyms_cmds | \
10784     export_symbols_cmds | \
10785     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10786     postinstall_cmds | postuninstall_cmds | \
10787     old_postinstall_cmds | old_postuninstall_cmds | \
10788     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10789       # Double-quote double-evaled strings.
10790       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10791       ;;
10792     *)
10793       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10794       ;;
10795     esac
10796   done
10797
10798   case $lt_echo in
10799   *'\$0 --fallback-echo"')
10800     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10801     ;;
10802   esac
10803
10804 cfgfile="${ofile}T"
10805   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10806   $rm -f "$cfgfile"
10807   { echo "$as_me:$LINENO: creating $ofile" >&5
10808 echo "$as_me: creating $ofile" >&6;}
10809
10810   cat <<__EOF__ >> "$cfgfile"
10811 #! $SHELL
10812
10813 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10814 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10815 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10816 #
10817 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10818 # Free Software Foundation, Inc.
10819 #
10820 # This file is part of GNU Libtool:
10821 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10822 #
10823 # This program is free software; you can redistribute it and/or modify
10824 # it under the terms of the GNU General Public License as published by
10825 # the Free Software Foundation; either version 2 of the License, or
10826 # (at your option) any later version.
10827 #
10828 # This program is distributed in the hope that it will be useful, but
10829 # WITHOUT ANY WARRANTY; without even the implied warranty of
10830 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10831 # General Public License for more details.
10832 #
10833 # You should have received a copy of the GNU General Public License
10834 # along with this program; if not, write to the Free Software
10835 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10836 #
10837 # As a special exception to the GNU General Public License, if you
10838 # distribute this file as part of a program that contains a
10839 # configuration script generated by Autoconf, you may include it under
10840 # the same distribution terms that you use for the rest of that program.
10841
10842 # A sed program that does not truncate output.
10843 SED=$lt_SED
10844
10845 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10846 Xsed="$SED -e 1s/^X//"
10847
10848 # The HP-UX ksh and POSIX shell print the target directory to stdout
10849 # if CDPATH is set.
10850 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10851
10852 # The names of the tagged configurations supported by this script.
10853 available_tags=
10854
10855 # ### BEGIN LIBTOOL CONFIG
10856
10857 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10858
10859 # Shell to use when invoking shell scripts.
10860 SHELL=$lt_SHELL
10861
10862 # Whether or not to build shared libraries.
10863 build_libtool_libs=$enable_shared
10864
10865 # Whether or not to build static libraries.
10866 build_old_libs=$enable_static
10867
10868 # Whether or not to add -lc for building shared libraries.
10869 build_libtool_need_lc=$archive_cmds_need_lc
10870
10871 # Whether or not to disallow shared libs when runtime libs are static
10872 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10873
10874 # Whether or not to optimize for fast installation.
10875 fast_install=$enable_fast_install
10876
10877 # The host system.
10878 host_alias=$host_alias
10879 host=$host
10880 host_os=$host_os
10881
10882 # The build system.
10883 build_alias=$build_alias
10884 build=$build
10885 build_os=$build_os
10886
10887 # An echo program that does not interpret backslashes.
10888 echo=$lt_echo
10889
10890 # The archiver.
10891 AR=$lt_AR
10892 AR_FLAGS=$lt_AR_FLAGS
10893
10894 # A C compiler.
10895 LTCC=$lt_LTCC
10896
10897 # LTCC compiler flags.
10898 LTCFLAGS=$lt_LTCFLAGS
10899
10900 # A language-specific compiler.
10901 CC=$lt_compiler
10902
10903 # Is the compiler the GNU C compiler?
10904 with_gcc=$GCC
10905
10906 # An ERE matcher.
10907 EGREP=$lt_EGREP
10908
10909 # The linker used to build libraries.
10910 LD=$lt_LD
10911
10912 # Whether we need hard or soft links.
10913 LN_S=$lt_LN_S
10914
10915 # A BSD-compatible nm program.
10916 NM=$lt_NM
10917
10918 # A symbol stripping program
10919 STRIP=$lt_STRIP
10920
10921 # Used to examine libraries when file_magic_cmd begins "file"
10922 MAGIC_CMD=$MAGIC_CMD
10923
10924 # Used on cygwin: DLL creation program.
10925 DLLTOOL="$DLLTOOL"
10926
10927 # Used on cygwin: object dumper.
10928 OBJDUMP="$OBJDUMP"
10929
10930 # Used on cygwin: assembler.
10931 AS="$AS"
10932
10933 # The name of the directory that contains temporary libtool files.
10934 objdir=$objdir
10935
10936 # How to create reloadable object files.
10937 reload_flag=$lt_reload_flag
10938 reload_cmds=$lt_reload_cmds
10939
10940 # How to pass a linker flag through the compiler.
10941 wl=$lt_lt_prog_compiler_wl
10942
10943 # Object file suffix (normally "o").
10944 objext="$ac_objext"
10945
10946 # Old archive suffix (normally "a").
10947 libext="$libext"
10948
10949 # Shared library suffix (normally ".so").
10950 shrext_cmds='$shrext_cmds'
10951
10952 # Executable file suffix (normally "").
10953 exeext="$exeext"
10954
10955 # Additional compiler flags for building library objects.
10956 pic_flag=$lt_lt_prog_compiler_pic
10957 pic_mode=$pic_mode
10958
10959 # What is the maximum length of a command?
10960 max_cmd_len=$lt_cv_sys_max_cmd_len
10961
10962 # Does compiler simultaneously support -c and -o options?
10963 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10964
10965 # Must we lock files when doing compilation?
10966 need_locks=$lt_need_locks
10967
10968 # Do we need the lib prefix for modules?
10969 need_lib_prefix=$need_lib_prefix
10970
10971 # Do we need a version for libraries?
10972 need_version=$need_version
10973
10974 # Whether dlopen is supported.
10975 dlopen_support=$enable_dlopen
10976
10977 # Whether dlopen of programs is supported.
10978 dlopen_self=$enable_dlopen_self
10979
10980 # Whether dlopen of statically linked programs is supported.
10981 dlopen_self_static=$enable_dlopen_self_static
10982
10983 # Compiler flag to prevent dynamic linking.
10984 link_static_flag=$lt_lt_prog_compiler_static
10985
10986 # Compiler flag to turn off builtin functions.
10987 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10988
10989 # Compiler flag to allow reflexive dlopens.
10990 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10991
10992 # Compiler flag to generate shared objects directly from archives.
10993 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10994
10995 # Compiler flag to generate thread-safe objects.
10996 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10997
10998 # Library versioning type.
10999 version_type=$version_type
11000
11001 # Format of library name prefix.
11002 libname_spec=$lt_libname_spec
11003
11004 # List of archive names.  First name is the real one, the rest are links.
11005 # The last name is the one that the linker finds with -lNAME.
11006 library_names_spec=$lt_library_names_spec
11007
11008 # The coded name of the library, if different from the real name.
11009 soname_spec=$lt_soname_spec
11010
11011 # Commands used to build and install an old-style archive.
11012 RANLIB=$lt_RANLIB
11013 old_archive_cmds=$lt_old_archive_cmds
11014 old_postinstall_cmds=$lt_old_postinstall_cmds
11015 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11016
11017 # Create an old-style archive from a shared archive.
11018 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11019
11020 # Create a temporary old-style archive to link instead of a shared archive.
11021 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11022
11023 # Commands used to build and install a shared archive.
11024 archive_cmds=$lt_archive_cmds
11025 archive_expsym_cmds=$lt_archive_expsym_cmds
11026 postinstall_cmds=$lt_postinstall_cmds
11027 postuninstall_cmds=$lt_postuninstall_cmds
11028
11029 # Commands used to build a loadable module (assumed same as above if empty)
11030 module_cmds=$lt_module_cmds
11031 module_expsym_cmds=$lt_module_expsym_cmds
11032
11033 # Commands to strip libraries.
11034 old_striplib=$lt_old_striplib
11035 striplib=$lt_striplib
11036
11037 # Dependencies to place before the objects being linked to create a
11038 # shared library.
11039 predep_objects=$lt_predep_objects
11040
11041 # Dependencies to place after the objects being linked to create a
11042 # shared library.
11043 postdep_objects=$lt_postdep_objects
11044
11045 # Dependencies to place before the objects being linked to create a
11046 # shared library.
11047 predeps=$lt_predeps
11048
11049 # Dependencies to place after the objects being linked to create a
11050 # shared library.
11051 postdeps=$lt_postdeps
11052
11053 # The directories searched by this compiler when creating a shared
11054 # library
11055 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11056
11057 # The library search path used internally by the compiler when linking
11058 # a shared library.
11059 compiler_lib_search_path=$lt_compiler_lib_search_path
11060
11061 # Method to check whether dependent libraries are shared objects.
11062 deplibs_check_method=$lt_deplibs_check_method
11063
11064 # Command to use when deplibs_check_method == file_magic.
11065 file_magic_cmd=$lt_file_magic_cmd
11066
11067 # Flag that allows shared libraries with undefined symbols to be built.
11068 allow_undefined_flag=$lt_allow_undefined_flag
11069
11070 # Flag that forces no undefined symbols.
11071 no_undefined_flag=$lt_no_undefined_flag
11072
11073 # Commands used to finish a libtool library installation in a directory.
11074 finish_cmds=$lt_finish_cmds
11075
11076 # Same as above, but a single script fragment to be evaled but not shown.
11077 finish_eval=$lt_finish_eval
11078
11079 # Take the output of nm and produce a listing of raw symbols and C names.
11080 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11081
11082 # Transform the output of nm in a proper C declaration
11083 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11084
11085 # Transform the output of nm in a C name address pair
11086 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11087
11088 # This is the shared library runtime path variable.
11089 runpath_var=$runpath_var
11090
11091 # This is the shared library path variable.
11092 shlibpath_var=$shlibpath_var
11093
11094 # Is shlibpath searched before the hard-coded library search path?
11095 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11096
11097 # How to hardcode a shared library path into an executable.
11098 hardcode_action=$hardcode_action
11099
11100 # Whether we should hardcode library paths into libraries.
11101 hardcode_into_libs=$hardcode_into_libs
11102
11103 # Flag to hardcode \$libdir into a binary during linking.
11104 # This must work even if \$libdir does not exist.
11105 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11106
11107 # If ld is used when linking, flag to hardcode \$libdir into
11108 # a binary during linking. This must work even if \$libdir does
11109 # not exist.
11110 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11111
11112 # Whether we need a single -rpath flag with a separated argument.
11113 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11114
11115 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11116 # resulting binary.
11117 hardcode_direct=$hardcode_direct
11118
11119 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11120 # resulting binary.
11121 hardcode_minus_L=$hardcode_minus_L
11122
11123 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11124 # the resulting binary.
11125 hardcode_shlibpath_var=$hardcode_shlibpath_var
11126
11127 # Set to yes if building a shared library automatically hardcodes DIR into the library
11128 # and all subsequent libraries and executables linked against it.
11129 hardcode_automatic=$hardcode_automatic
11130
11131 # Variables whose values should be saved in libtool wrapper scripts and
11132 # restored at relink time.
11133 variables_saved_for_relink="$variables_saved_for_relink"
11134
11135 # Whether libtool must link a program against all its dependency libraries.
11136 link_all_deplibs=$link_all_deplibs
11137
11138 # Compile-time system search path for libraries
11139 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11140
11141 # Run-time system search path for libraries
11142 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11143
11144 # Fix the shell variable \$srcfile for the compiler.
11145 fix_srcfile_path=$lt_fix_srcfile_path
11146
11147 # Set to yes if exported symbols are required.
11148 always_export_symbols=$always_export_symbols
11149
11150 # The commands to list exported symbols.
11151 export_symbols_cmds=$lt_export_symbols_cmds
11152
11153 # The commands to extract the exported symbol list from a shared archive.
11154 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11155
11156 # Symbols that should not be listed in the preloaded symbols.
11157 exclude_expsyms=$lt_exclude_expsyms
11158
11159 # Symbols that must always be exported.
11160 include_expsyms=$lt_include_expsyms
11161
11162 # ### END LIBTOOL CONFIG
11163
11164 __EOF__
11165
11166
11167   case $host_os in
11168   aix3*)
11169     cat <<\EOF >> "$cfgfile"
11170
11171 # AIX sometimes has problems with the GCC collect2 program.  For some
11172 # reason, if we set the COLLECT_NAMES environment variable, the problems
11173 # vanish in a puff of smoke.
11174 if test "X${COLLECT_NAMES+set}" != Xset; then
11175   COLLECT_NAMES=
11176   export COLLECT_NAMES
11177 fi
11178 EOF
11179     ;;
11180   esac
11181
11182   # We use sed instead of cat because bash on DJGPP gets confused if
11183   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11184   # text mode, it properly converts lines to CR/LF.  This bash problem
11185   # is reportedly fixed, but why not run on old versions too?
11186   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11187
11188   mv -f "$cfgfile" "$ofile" || \
11189     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11190   chmod +x "$ofile"
11191
11192 else
11193   # If there is no Makefile yet, we rely on a make rule to execute
11194   # `config.status --recheck' to rerun these tests and create the
11195   # libtool script then.
11196   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11197   if test -f "$ltmain_in"; then
11198     test -f Makefile && make "$ltmain"
11199   fi
11200 fi
11201
11202
11203 ac_ext=c
11204 ac_cpp='$CPP $CPPFLAGS'
11205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11208
11209 CC="$lt_save_CC"
11210
11211
11212 # Check whether --with-tags was given.
11213 if test "${with_tags+set}" = set; then
11214   withval=$with_tags; tagnames="$withval"
11215 fi
11216
11217
11218 if test -f "$ltmain" && test -n "$tagnames"; then
11219   if test ! -f "${ofile}"; then
11220     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11221 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11222   fi
11223
11224   if test -z "$LTCC"; then
11225     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11226     if test -z "$LTCC"; then
11227       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11228 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11229     else
11230       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11231 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11232     fi
11233   fi
11234   if test -z "$LTCFLAGS"; then
11235     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11236   fi
11237
11238   # Extract list of available tagged configurations in $ofile.
11239   # Note that this assumes the entire list is on one line.
11240   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11241
11242   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11243   for tagname in $tagnames; do
11244     IFS="$lt_save_ifs"
11245     # Check whether tagname contains only valid characters
11246     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11247     "") ;;
11248     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11249 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11250    { (exit 1); exit 1; }; }
11251         ;;
11252     esac
11253
11254     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11255     then
11256       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11257 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11258    { (exit 1); exit 1; }; }
11259     fi
11260
11261     # Update the list of available tags.
11262     if test -n "$tagname"; then
11263       echo appending configuration tag \"$tagname\" to $ofile
11264
11265       case $tagname in
11266       CXX)
11267         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11268             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11269             (test "X$CXX" != "Xg++"))) ; then
11270           ac_ext=cpp
11271 ac_cpp='$CXXCPP $CPPFLAGS'
11272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11275
11276
11277
11278
11279 archive_cmds_need_lc_CXX=no
11280 allow_undefined_flag_CXX=
11281 always_export_symbols_CXX=no
11282 archive_expsym_cmds_CXX=
11283 export_dynamic_flag_spec_CXX=
11284 hardcode_direct_CXX=no
11285 hardcode_libdir_flag_spec_CXX=
11286 hardcode_libdir_flag_spec_ld_CXX=
11287 hardcode_libdir_separator_CXX=
11288 hardcode_minus_L_CXX=no
11289 hardcode_shlibpath_var_CXX=unsupported
11290 hardcode_automatic_CXX=no
11291 module_cmds_CXX=
11292 module_expsym_cmds_CXX=
11293 link_all_deplibs_CXX=unknown
11294 old_archive_cmds_CXX=$old_archive_cmds
11295 no_undefined_flag_CXX=
11296 whole_archive_flag_spec_CXX=
11297 enable_shared_with_static_runtimes_CXX=no
11298
11299 # Dependencies to place before and after the object being linked:
11300 predep_objects_CXX=
11301 postdep_objects_CXX=
11302 predeps_CXX=
11303 postdeps_CXX=
11304 compiler_lib_search_path_CXX=
11305 compiler_lib_search_dirs_CXX=
11306
11307 # Source file extension for C++ test sources.
11308 ac_ext=cpp
11309
11310 # Object file extension for compiled C++ test sources.
11311 objext=o
11312 objext_CXX=$objext
11313
11314 # Code to be used in simple compile tests
11315 lt_simple_compile_test_code="int some_variable = 0;"
11316
11317 # Code to be used in simple link tests
11318 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11319
11320 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11321
11322 # If no C compiler was specified, use CC.
11323 LTCC=${LTCC-"$CC"}
11324
11325 # If no C compiler flags were specified, use CFLAGS.
11326 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11327
11328 # Allow CC to be a program name with arguments.
11329 compiler=$CC
11330
11331
11332 # save warnings/boilerplate of simple test code
11333 ac_outfile=conftest.$ac_objext
11334 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11335 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11336 _lt_compiler_boilerplate=`cat conftest.err`
11337 $rm conftest*
11338
11339 ac_outfile=conftest.$ac_objext
11340 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11341 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11342 _lt_linker_boilerplate=`cat conftest.err`
11343 $rm -r conftest*
11344
11345
11346 # Allow CC to be a program name with arguments.
11347 lt_save_CC=$CC
11348 lt_save_LD=$LD
11349 lt_save_GCC=$GCC
11350 GCC=$GXX
11351 lt_save_with_gnu_ld=$with_gnu_ld
11352 lt_save_path_LD=$lt_cv_path_LD
11353 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11354   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11355 else
11356   $as_unset lt_cv_prog_gnu_ld
11357 fi
11358 if test -n "${lt_cv_path_LDCXX+set}"; then
11359   lt_cv_path_LD=$lt_cv_path_LDCXX
11360 else
11361   $as_unset lt_cv_path_LD
11362 fi
11363 test -z "${LDCXX+set}" || LD=$LDCXX
11364 CC=${CXX-"c++"}
11365 compiler=$CC
11366 compiler_CXX=$CC
11367 for cc_temp in $compiler""; do
11368   case $cc_temp in
11369     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11370     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11371     \-*) ;;
11372     *) break;;
11373   esac
11374 done
11375 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11376
11377
11378 # We don't want -fno-exception wen compiling C++ code, so set the
11379 # no_builtin_flag separately
11380 if test "$GXX" = yes; then
11381   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11382 else
11383   lt_prog_compiler_no_builtin_flag_CXX=
11384 fi
11385
11386 if test "$GXX" = yes; then
11387   # Set up default GNU C++ configuration
11388
11389
11390 # Check whether --with-gnu-ld was given.
11391 if test "${with_gnu_ld+set}" = set; then
11392   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11393 else
11394   with_gnu_ld=no
11395 fi
11396
11397 ac_prog=ld
11398 if test "$GCC" = yes; then
11399   # Check if gcc -print-prog-name=ld gives a path.
11400   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11401 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11402   case $host in
11403   *-*-mingw*)
11404     # gcc leaves a trailing carriage return which upsets mingw
11405     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11406   *)
11407     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11408   esac
11409   case $ac_prog in
11410     # Accept absolute paths.
11411     [\\/]* | ?:[\\/]*)
11412       re_direlt='/[^/][^/]*/\.\./'
11413       # Canonicalize the pathname of ld
11414       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11415       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11416         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11417       done
11418       test -z "$LD" && LD="$ac_prog"
11419       ;;
11420   "")
11421     # If it fails, then pretend we aren't using GCC.
11422     ac_prog=ld
11423     ;;
11424   *)
11425     # If it is relative, then search for the first ld in PATH.
11426     with_gnu_ld=unknown
11427     ;;
11428   esac
11429 elif test "$with_gnu_ld" = yes; then
11430   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11431 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11432 else
11433   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11434 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11435 fi
11436 if test "${lt_cv_path_LD+set}" = set; then
11437   echo $ECHO_N "(cached) $ECHO_C" >&6
11438 else
11439   if test -z "$LD"; then
11440   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11441   for ac_dir in $PATH; do
11442     IFS="$lt_save_ifs"
11443     test -z "$ac_dir" && ac_dir=.
11444     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11445       lt_cv_path_LD="$ac_dir/$ac_prog"
11446       # Check to see if the program is GNU ld.  I'd rather use --version,
11447       # but apparently some variants of GNU ld only accept -v.
11448       # Break only if it was the GNU/non-GNU ld that we prefer.
11449       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11450       *GNU* | *'with BFD'*)
11451         test "$with_gnu_ld" != no && break
11452         ;;
11453       *)
11454         test "$with_gnu_ld" != yes && break
11455         ;;
11456       esac
11457     fi
11458   done
11459   IFS="$lt_save_ifs"
11460 else
11461   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11462 fi
11463 fi
11464
11465 LD="$lt_cv_path_LD"
11466 if test -n "$LD"; then
11467   { echo "$as_me:$LINENO: result: $LD" >&5
11468 echo "${ECHO_T}$LD" >&6; }
11469 else
11470   { echo "$as_me:$LINENO: result: no" >&5
11471 echo "${ECHO_T}no" >&6; }
11472 fi
11473 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11474 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11475    { (exit 1); exit 1; }; }
11476 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11477 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11478 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11479   echo $ECHO_N "(cached) $ECHO_C" >&6
11480 else
11481   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11482 case `$LD -v 2>&1 </dev/null` in
11483 *GNU* | *'with BFD'*)
11484   lt_cv_prog_gnu_ld=yes
11485   ;;
11486 *)
11487   lt_cv_prog_gnu_ld=no
11488   ;;
11489 esac
11490 fi
11491 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11492 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11493 with_gnu_ld=$lt_cv_prog_gnu_ld
11494
11495
11496
11497   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11498   # archiving commands below assume that GNU ld is being used.
11499   if test "$with_gnu_ld" = yes; then
11500     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11501     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'
11502
11503     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11504     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11505
11506     # If archive_cmds runs LD, not CC, wlarc should be empty
11507     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11508     #     investigate it a little bit more. (MM)
11509     wlarc='${wl}'
11510
11511     # ancient GNU ld didn't support --whole-archive et. al.
11512     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11513         grep 'no-whole-archive' > /dev/null; then
11514       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11515     else
11516       whole_archive_flag_spec_CXX=
11517     fi
11518   else
11519     with_gnu_ld=no
11520     wlarc=
11521
11522     # A generic and very simple default shared library creation
11523     # command for GNU C++ for the case where it uses the native
11524     # linker, instead of GNU ld.  If possible, this setting should
11525     # overridden to take advantage of the native linker features on
11526     # the platform it is being used on.
11527     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11528   fi
11529
11530   # Commands to make compiler produce verbose output that lists
11531   # what "hidden" libraries, object files and flags are used when
11532   # linking a shared library.
11533   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11534
11535 else
11536   GXX=no
11537   with_gnu_ld=no
11538   wlarc=
11539 fi
11540
11541 # PORTME: fill in a description of your system's C++ link characteristics
11542 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11543 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11544 ld_shlibs_CXX=yes
11545 case $host_os in
11546   aix3*)
11547     # FIXME: insert proper C++ library support
11548     ld_shlibs_CXX=no
11549     ;;
11550   aix[4-9]*)
11551     if test "$host_cpu" = ia64; then
11552       # On IA64, the linker does run time linking by default, so we don't
11553       # have to do anything special.
11554       aix_use_runtimelinking=no
11555       exp_sym_flag='-Bexport'
11556       no_entry_flag=""
11557     else
11558       aix_use_runtimelinking=no
11559
11560       # Test if we are trying to use run time linking or normal
11561       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11562       # need to do runtime linking.
11563       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11564         for ld_flag in $LDFLAGS; do
11565           case $ld_flag in
11566           *-brtl*)
11567             aix_use_runtimelinking=yes
11568             break
11569             ;;
11570           esac
11571         done
11572         ;;
11573       esac
11574
11575       exp_sym_flag='-bexport'
11576       no_entry_flag='-bnoentry'
11577     fi
11578
11579     # When large executables or shared objects are built, AIX ld can
11580     # have problems creating the table of contents.  If linking a library
11581     # or program results in "error TOC overflow" add -mminimal-toc to
11582     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11583     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11584
11585     archive_cmds_CXX=''
11586     hardcode_direct_CXX=yes
11587     hardcode_libdir_separator_CXX=':'
11588     link_all_deplibs_CXX=yes
11589
11590     if test "$GXX" = yes; then
11591       case $host_os in aix4.[012]|aix4.[012].*)
11592       # We only want to do this on AIX 4.2 and lower, the check
11593       # below for broken collect2 doesn't work under 4.3+
11594         collect2name=`${CC} -print-prog-name=collect2`
11595         if test -f "$collect2name" && \
11596            strings "$collect2name" | grep resolve_lib_name >/dev/null
11597         then
11598           # We have reworked collect2
11599           :
11600         else
11601           # We have old collect2
11602           hardcode_direct_CXX=unsupported
11603           # It fails to find uninstalled libraries when the uninstalled
11604           # path is not listed in the libpath.  Setting hardcode_minus_L
11605           # to unsupported forces relinking
11606           hardcode_minus_L_CXX=yes
11607           hardcode_libdir_flag_spec_CXX='-L$libdir'
11608           hardcode_libdir_separator_CXX=
11609         fi
11610         ;;
11611       esac
11612       shared_flag='-shared'
11613       if test "$aix_use_runtimelinking" = yes; then
11614         shared_flag="$shared_flag "'${wl}-G'
11615       fi
11616     else
11617       # not using gcc
11618       if test "$host_cpu" = ia64; then
11619         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11620         # chokes on -Wl,-G. The following line is correct:
11621         shared_flag='-G'
11622       else
11623         if test "$aix_use_runtimelinking" = yes; then
11624           shared_flag='${wl}-G'
11625         else
11626           shared_flag='${wl}-bM:SRE'
11627         fi
11628       fi
11629     fi
11630
11631     # It seems that -bexpall does not export symbols beginning with
11632     # underscore (_), so it is better to generate a list of symbols to export.
11633     always_export_symbols_CXX=yes
11634     if test "$aix_use_runtimelinking" = yes; then
11635       # Warning - without using the other runtime loading flags (-brtl),
11636       # -berok will link without error, but may produce a broken library.
11637       allow_undefined_flag_CXX='-berok'
11638       # Determine the default libpath from the value encoded in an empty executable.
11639       cat >conftest.$ac_ext <<_ACEOF
11640 /* confdefs.h.  */
11641 _ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h.  */
11645
11646 int
11647 main ()
11648 {
11649
11650   ;
11651   return 0;
11652 }
11653 _ACEOF
11654 rm -f conftest.$ac_objext conftest$ac_exeext
11655 if { (ac_try="$ac_link"
11656 case "(($ac_try" in
11657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658   *) ac_try_echo=$ac_try;;
11659 esac
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661   (eval "$ac_link") 2>conftest.er1
11662   ac_status=$?
11663   grep -v '^ *+' conftest.er1 >conftest.err
11664   rm -f conftest.er1
11665   cat conftest.err >&5
11666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667   (exit $ac_status); } && {
11668          test -z "$ac_cxx_werror_flag" ||
11669          test ! -s conftest.err
11670        } && test -s conftest$ac_exeext &&
11671        $as_test_x conftest$ac_exeext; then
11672
11673 lt_aix_libpath_sed='
11674     /Import File Strings/,/^$/ {
11675         /^0/ {
11676             s/^0  *\(.*\)$/\1/
11677             p
11678         }
11679     }'
11680 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11681 # Check for a 64-bit object if we didn't find anything.
11682 if test -z "$aix_libpath"; then
11683   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11684 fi
11685 else
11686   echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11688
11689
11690 fi
11691
11692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11693       conftest$ac_exeext conftest.$ac_ext
11694 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11695
11696       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11697
11698       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"
11699      else
11700       if test "$host_cpu" = ia64; then
11701         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11702         allow_undefined_flag_CXX="-z nodefs"
11703         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"
11704       else
11705         # Determine the default libpath from the value encoded in an empty executable.
11706         cat >conftest.$ac_ext <<_ACEOF
11707 /* confdefs.h.  */
11708 _ACEOF
11709 cat confdefs.h >>conftest.$ac_ext
11710 cat >>conftest.$ac_ext <<_ACEOF
11711 /* end confdefs.h.  */
11712
11713 int
11714 main ()
11715 {
11716
11717   ;
11718   return 0;
11719 }
11720 _ACEOF
11721 rm -f conftest.$ac_objext conftest$ac_exeext
11722 if { (ac_try="$ac_link"
11723 case "(($ac_try" in
11724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725   *) ac_try_echo=$ac_try;;
11726 esac
11727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728   (eval "$ac_link") 2>conftest.er1
11729   ac_status=$?
11730   grep -v '^ *+' conftest.er1 >conftest.err
11731   rm -f conftest.er1
11732   cat conftest.err >&5
11733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734   (exit $ac_status); } && {
11735          test -z "$ac_cxx_werror_flag" ||
11736          test ! -s conftest.err
11737        } && test -s conftest$ac_exeext &&
11738        $as_test_x conftest$ac_exeext; then
11739
11740 lt_aix_libpath_sed='
11741     /Import File Strings/,/^$/ {
11742         /^0/ {
11743             s/^0  *\(.*\)$/\1/
11744             p
11745         }
11746     }'
11747 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11748 # Check for a 64-bit object if we didn't find anything.
11749 if test -z "$aix_libpath"; then
11750   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11751 fi
11752 else
11753   echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11755
11756
11757 fi
11758
11759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11760       conftest$ac_exeext conftest.$ac_ext
11761 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11762
11763         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11764         # Warning - without using the other run time loading flags,
11765         # -berok will link without error, but may produce a broken library.
11766         no_undefined_flag_CXX=' ${wl}-bernotok'
11767         allow_undefined_flag_CXX=' ${wl}-berok'
11768         # Exported symbols can be pulled into shared objects from archives
11769         whole_archive_flag_spec_CXX='$convenience'
11770         archive_cmds_need_lc_CXX=yes
11771         # This is similar to how AIX traditionally builds its shared libraries.
11772         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'
11773       fi
11774     fi
11775     ;;
11776
11777   beos*)
11778     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11779       allow_undefined_flag_CXX=unsupported
11780       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11781       # support --undefined.  This deserves some investigation.  FIXME
11782       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11783     else
11784       ld_shlibs_CXX=no
11785     fi
11786     ;;
11787
11788   chorus*)
11789     case $cc_basename in
11790       *)
11791         # FIXME: insert proper C++ library support
11792         ld_shlibs_CXX=no
11793         ;;
11794     esac
11795     ;;
11796
11797   cygwin* | mingw* | pw32*)
11798     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11799     # as there is no search path for DLLs.
11800     hardcode_libdir_flag_spec_CXX='-L$libdir'
11801     allow_undefined_flag_CXX=unsupported
11802     always_export_symbols_CXX=no
11803     enable_shared_with_static_runtimes_CXX=yes
11804
11805     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11806       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'
11807       # If the export-symbols file already is a .def file (1st line
11808       # is EXPORTS), use it as is; otherwise, prepend...
11809       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11810         cp $export_symbols $output_objdir/$soname.def;
11811       else
11812         echo EXPORTS > $output_objdir/$soname.def;
11813         cat $export_symbols >> $output_objdir/$soname.def;
11814       fi~
11815       $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'
11816     else
11817       ld_shlibs_CXX=no
11818     fi
11819   ;;
11820       darwin* | rhapsody*)
11821       archive_cmds_need_lc_CXX=no
11822       hardcode_direct_CXX=no
11823       hardcode_automatic_CXX=yes
11824       hardcode_shlibpath_var_CXX=unsupported
11825       whole_archive_flag_spec_CXX=''
11826       link_all_deplibs_CXX=yes
11827       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11828       if test "$GXX" = yes ; then
11829       output_verbose_link_cmd='echo'
11830       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11831       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11832       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11833       module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11834       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11835         archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11836         archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11837       fi
11838       else
11839       case $cc_basename in
11840         xlc*)
11841          output_verbose_link_cmd='echo'
11842           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11843           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11844           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11845           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11846           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}'
11847           ;;
11848        *)
11849          ld_shlibs_CXX=no
11850           ;;
11851       esac
11852       fi
11853         ;;
11854
11855   dgux*)
11856     case $cc_basename in
11857       ec++*)
11858         # FIXME: insert proper C++ library support
11859         ld_shlibs_CXX=no
11860         ;;
11861       ghcx*)
11862         # Green Hills C++ Compiler
11863         # FIXME: insert proper C++ library support
11864         ld_shlibs_CXX=no
11865         ;;
11866       *)
11867         # FIXME: insert proper C++ library support
11868         ld_shlibs_CXX=no
11869         ;;
11870     esac
11871     ;;
11872   freebsd[12]*)
11873     # C++ shared libraries reported to be fairly broken before switch to ELF
11874     ld_shlibs_CXX=no
11875     ;;
11876   freebsd-elf*)
11877     archive_cmds_need_lc_CXX=no
11878     ;;
11879   freebsd* | dragonfly*)
11880     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11881     # conventions
11882     ld_shlibs_CXX=yes
11883     ;;
11884   gnu*)
11885     ;;
11886   hpux9*)
11887     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11888     hardcode_libdir_separator_CXX=:
11889     export_dynamic_flag_spec_CXX='${wl}-E'
11890     hardcode_direct_CXX=yes
11891     hardcode_minus_L_CXX=yes # Not in the search PATH,
11892                                 # but as the default
11893                                 # location of the library.
11894
11895     case $cc_basename in
11896     CC*)
11897       # FIXME: insert proper C++ library support
11898       ld_shlibs_CXX=no
11899       ;;
11900     aCC*)
11901       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'
11902       # Commands to make compiler produce verbose output that lists
11903       # what "hidden" libraries, object files and flags are used when
11904       # linking a shared library.
11905       #
11906       # There doesn't appear to be a way to prevent this compiler from
11907       # explicitly linking system object files so we need to strip them
11908       # from the output so that they don't get included in the library
11909       # dependencies.
11910       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'
11911       ;;
11912     *)
11913       if test "$GXX" = yes; then
11914         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'
11915       else
11916         # FIXME: insert proper C++ library support
11917         ld_shlibs_CXX=no
11918       fi
11919       ;;
11920     esac
11921     ;;
11922   hpux10*|hpux11*)
11923     if test $with_gnu_ld = no; then
11924       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11925       hardcode_libdir_separator_CXX=:
11926
11927       case $host_cpu in
11928       hppa*64*|ia64*) ;;
11929       *)
11930         export_dynamic_flag_spec_CXX='${wl}-E'
11931         ;;
11932       esac
11933     fi
11934     case $host_cpu in
11935     hppa*64*|ia64*)
11936       hardcode_direct_CXX=no
11937       hardcode_shlibpath_var_CXX=no
11938       ;;
11939     *)
11940       hardcode_direct_CXX=yes
11941       hardcode_minus_L_CXX=yes # Not in the search PATH,
11942                                               # but as the default
11943                                               # location of the library.
11944       ;;
11945     esac
11946
11947     case $cc_basename in
11948       CC*)
11949         # FIXME: insert proper C++ library support
11950         ld_shlibs_CXX=no
11951         ;;
11952       aCC*)
11953         case $host_cpu in
11954         hppa*64*)
11955           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11956           ;;
11957         ia64*)
11958           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11959           ;;
11960         *)
11961           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11962           ;;
11963         esac
11964         # Commands to make compiler produce verbose output that lists
11965         # what "hidden" libraries, object files and flags are used when
11966         # linking a shared library.
11967         #
11968         # There doesn't appear to be a way to prevent this compiler from
11969         # explicitly linking system object files so we need to strip them
11970         # from the output so that they don't get included in the library
11971         # dependencies.
11972         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'
11973         ;;
11974       *)
11975         if test "$GXX" = yes; then
11976           if test $with_gnu_ld = no; then
11977             case $host_cpu in
11978             hppa*64*)
11979               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11980               ;;
11981             ia64*)
11982               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11983               ;;
11984             *)
11985               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'
11986               ;;
11987             esac
11988           fi
11989         else
11990           # FIXME: insert proper C++ library support
11991           ld_shlibs_CXX=no
11992         fi
11993         ;;
11994     esac
11995     ;;
11996   interix[3-9]*)
11997     hardcode_direct_CXX=no
11998     hardcode_shlibpath_var_CXX=no
11999     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12000     export_dynamic_flag_spec_CXX='${wl}-E'
12001     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12002     # Instead, shared libraries are loaded at an image base (0x10000000 by
12003     # default) and relocated if they conflict, which is a slow very memory
12004     # consuming and fragmenting process.  To avoid this, we pick a random,
12005     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12006     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12007     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'
12008     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'
12009     ;;
12010   irix5* | irix6*)
12011     case $cc_basename in
12012       CC*)
12013         # SGI C++
12014         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'
12015
12016         # Archives containing C++ object files must be created using
12017         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12018         # necessary to make sure instantiated templates are included
12019         # in the archive.
12020         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12021         ;;
12022       *)
12023         if test "$GXX" = yes; then
12024           if test "$with_gnu_ld" = no; then
12025             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'
12026           else
12027             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'
12028           fi
12029         fi
12030         link_all_deplibs_CXX=yes
12031         ;;
12032     esac
12033     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12034     hardcode_libdir_separator_CXX=:
12035     ;;
12036   linux* | k*bsd*-gnu)
12037     case $cc_basename in
12038       KCC*)
12039         # Kuck and Associates, Inc. (KAI) C++ Compiler
12040
12041         # KCC will only create a shared library if the output file
12042         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12043         # to its proper name (with version) after linking.
12044         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'
12045         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'
12046         # Commands to make compiler produce verbose output that lists
12047         # what "hidden" libraries, object files and flags are used when
12048         # linking a shared library.
12049         #
12050         # There doesn't appear to be a way to prevent this compiler from
12051         # explicitly linking system object files so we need to strip them
12052         # from the output so that they don't get included in the library
12053         # dependencies.
12054         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'
12055
12056         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12057         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12058
12059         # Archives containing C++ object files must be created using
12060         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12061         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12062         ;;
12063       icpc*)
12064         # Intel C++
12065         with_gnu_ld=yes
12066         # version 8.0 and above of icpc choke on multiply defined symbols
12067         # if we add $predep_objects and $postdep_objects, however 7.1 and
12068         # earlier do not add the objects themselves.
12069         case `$CC -V 2>&1` in
12070         *"Version 7."*)
12071           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12072           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'
12073           ;;
12074         *)  # Version 8.0 or newer
12075           tmp_idyn=
12076           case $host_cpu in
12077             ia64*) tmp_idyn=' -i_dynamic';;
12078           esac
12079           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12080           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'
12081           ;;
12082         esac
12083         archive_cmds_need_lc_CXX=no
12084         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12085         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12086         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12087         ;;
12088       pgCC* | pgcpp*)
12089         # Portland Group C++ compiler
12090         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12091         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'
12092
12093         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12094         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12095         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'
12096         ;;
12097       cxx*)
12098         # Compaq C++
12099         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12100         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'
12101
12102         runpath_var=LD_RUN_PATH
12103         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12104         hardcode_libdir_separator_CXX=:
12105
12106         # Commands to make compiler produce verbose output that lists
12107         # what "hidden" libraries, object files and flags are used when
12108         # linking a shared library.
12109         #
12110         # There doesn't appear to be a way to prevent this compiler from
12111         # explicitly linking system object files so we need to strip them
12112         # from the output so that they don't get included in the library
12113         # dependencies.
12114         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'
12115         ;;
12116       *)
12117         case `$CC -V 2>&1 | sed 5q` in
12118         *Sun\ C*)
12119           # Sun C++ 5.9
12120           no_undefined_flag_CXX=' -zdefs'
12121           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12122           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12123           hardcode_libdir_flag_spec_CXX='-R$libdir'
12124           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12125
12126           # Not sure whether something based on
12127           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12128           # would be better.
12129           output_verbose_link_cmd='echo'
12130
12131           # Archives containing C++ object files must be created using
12132           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12133           # necessary to make sure instantiated templates are included
12134           # in the archive.
12135           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12136           ;;
12137         esac
12138         ;;
12139     esac
12140     ;;
12141   lynxos*)
12142     # FIXME: insert proper C++ library support
12143     ld_shlibs_CXX=no
12144     ;;
12145   m88k*)
12146     # FIXME: insert proper C++ library support
12147     ld_shlibs_CXX=no
12148     ;;
12149   mvs*)
12150     case $cc_basename in
12151       cxx*)
12152         # FIXME: insert proper C++ library support
12153         ld_shlibs_CXX=no
12154         ;;
12155       *)
12156         # FIXME: insert proper C++ library support
12157         ld_shlibs_CXX=no
12158         ;;
12159     esac
12160     ;;
12161   netbsd* | netbsdelf*-gnu)
12162     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12163       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12164       wlarc=
12165       hardcode_libdir_flag_spec_CXX='-R$libdir'
12166       hardcode_direct_CXX=yes
12167       hardcode_shlibpath_var_CXX=no
12168     fi
12169     # Workaround some broken pre-1.5 toolchains
12170     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12171     ;;
12172   openbsd2*)
12173     # C++ shared libraries are fairly broken
12174     ld_shlibs_CXX=no
12175     ;;
12176   openbsd*)
12177     if test -f /usr/libexec/ld.so; then
12178       hardcode_direct_CXX=yes
12179       hardcode_shlibpath_var_CXX=no
12180       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12181       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12182       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12183         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12184         export_dynamic_flag_spec_CXX='${wl}-E'
12185         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12186       fi
12187       output_verbose_link_cmd='echo'
12188     else
12189       ld_shlibs_CXX=no
12190     fi
12191     ;;
12192   osf3*)
12193     case $cc_basename in
12194       KCC*)
12195         # Kuck and Associates, Inc. (KAI) C++ Compiler
12196
12197         # KCC will only create a shared library if the output file
12198         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12199         # to its proper name (with version) after linking.
12200         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'
12201
12202         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12203         hardcode_libdir_separator_CXX=:
12204
12205         # Archives containing C++ object files must be created using
12206         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12207         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12208
12209         ;;
12210       RCC*)
12211         # Rational C++ 2.4.1
12212         # FIXME: insert proper C++ library support
12213         ld_shlibs_CXX=no
12214         ;;
12215       cxx*)
12216         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12217         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'
12218
12219         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12220         hardcode_libdir_separator_CXX=:
12221
12222         # Commands to make compiler produce verbose output that lists
12223         # what "hidden" libraries, object files and flags are used when
12224         # linking a shared library.
12225         #
12226         # There doesn't appear to be a way to prevent this compiler from
12227         # explicitly linking system object files so we need to strip them
12228         # from the output so that they don't get included in the library
12229         # dependencies.
12230         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'
12231         ;;
12232       *)
12233         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12234           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12235           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'
12236
12237           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12238           hardcode_libdir_separator_CXX=:
12239
12240           # Commands to make compiler produce verbose output that lists
12241           # what "hidden" libraries, object files and flags are used when
12242           # linking a shared library.
12243           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12244
12245         else
12246           # FIXME: insert proper C++ library support
12247           ld_shlibs_CXX=no
12248         fi
12249         ;;
12250     esac
12251     ;;
12252   osf4* | osf5*)
12253     case $cc_basename in
12254       KCC*)
12255         # Kuck and Associates, Inc. (KAI) C++ Compiler
12256
12257         # KCC will only create a shared library if the output file
12258         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12259         # to its proper name (with version) after linking.
12260         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'
12261
12262         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12263         hardcode_libdir_separator_CXX=:
12264
12265         # Archives containing C++ object files must be created using
12266         # the KAI C++ compiler.
12267         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12268         ;;
12269       RCC*)
12270         # Rational C++ 2.4.1
12271         # FIXME: insert proper C++ library support
12272         ld_shlibs_CXX=no
12273         ;;
12274       cxx*)
12275         allow_undefined_flag_CXX=' -expect_unresolved \*'
12276         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'
12277         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12278           echo "-hidden">> $lib.exp~
12279           $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~
12280           $rm $lib.exp'
12281
12282         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12283         hardcode_libdir_separator_CXX=:
12284
12285         # Commands to make compiler produce verbose output that lists
12286         # what "hidden" libraries, object files and flags are used when
12287         # linking a shared library.
12288         #
12289         # There doesn't appear to be a way to prevent this compiler from
12290         # explicitly linking system object files so we need to strip them
12291         # from the output so that they don't get included in the library
12292         # dependencies.
12293         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'
12294         ;;
12295       *)
12296         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12297           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12298          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'
12299
12300           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12301           hardcode_libdir_separator_CXX=:
12302
12303           # Commands to make compiler produce verbose output that lists
12304           # what "hidden" libraries, object files and flags are used when
12305           # linking a shared library.
12306           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12307
12308         else
12309           # FIXME: insert proper C++ library support
12310           ld_shlibs_CXX=no
12311         fi
12312         ;;
12313     esac
12314     ;;
12315   psos*)
12316     # FIXME: insert proper C++ library support
12317     ld_shlibs_CXX=no
12318     ;;
12319   sunos4*)
12320     case $cc_basename in
12321       CC*)
12322         # Sun C++ 4.x
12323         # FIXME: insert proper C++ library support
12324         ld_shlibs_CXX=no
12325         ;;
12326       lcc*)
12327         # Lucid
12328         # FIXME: insert proper C++ library support
12329         ld_shlibs_CXX=no
12330         ;;
12331       *)
12332         # FIXME: insert proper C++ library support
12333         ld_shlibs_CXX=no
12334         ;;
12335     esac
12336     ;;
12337   solaris*)
12338     case $cc_basename in
12339       CC*)
12340         # Sun C++ 4.2, 5.x and Centerline C++
12341         archive_cmds_need_lc_CXX=yes
12342         no_undefined_flag_CXX=' -zdefs'
12343         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12344         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12345         $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'
12346
12347         hardcode_libdir_flag_spec_CXX='-R$libdir'
12348         hardcode_shlibpath_var_CXX=no
12349         case $host_os in
12350           solaris2.[0-5] | solaris2.[0-5].*) ;;
12351           *)
12352             # The compiler driver will combine and reorder linker options,
12353             # but understands `-z linker_flag'.
12354             # Supported since Solaris 2.6 (maybe 2.5.1?)
12355             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12356             ;;
12357         esac
12358         link_all_deplibs_CXX=yes
12359
12360         output_verbose_link_cmd='echo'
12361
12362         # Archives containing C++ object files must be created using
12363         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12364         # necessary to make sure instantiated templates are included
12365         # in the archive.
12366         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12367         ;;
12368       gcx*)
12369         # Green Hills C++ Compiler
12370         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12371
12372         # The C++ compiler must be used to create the archive.
12373         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12374         ;;
12375       *)
12376         # GNU C++ compiler with Solaris linker
12377         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12378           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12379           if $CC --version | grep -v '^2\.7' > /dev/null; then
12380             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12381             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12382                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12383
12384             # Commands to make compiler produce verbose output that lists
12385             # what "hidden" libraries, object files and flags are used when
12386             # linking a shared library.
12387             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12388           else
12389             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12390             # platform.
12391             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12392             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12393                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12394
12395             # Commands to make compiler produce verbose output that lists
12396             # what "hidden" libraries, object files and flags are used when
12397             # linking a shared library.
12398             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12399           fi
12400
12401           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12402           case $host_os in
12403           solaris2.[0-5] | solaris2.[0-5].*) ;;
12404           *)
12405             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12406             ;;
12407           esac
12408         fi
12409         ;;
12410     esac
12411     ;;
12412   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12413     no_undefined_flag_CXX='${wl}-z,text'
12414     archive_cmds_need_lc_CXX=no
12415     hardcode_shlibpath_var_CXX=no
12416     runpath_var='LD_RUN_PATH'
12417
12418     case $cc_basename in
12419       CC*)
12420         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12421         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12422         ;;
12423       *)
12424         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12425         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12426         ;;
12427     esac
12428     ;;
12429   sysv5* | sco3.2v5* | sco5v6*)
12430     # Note: We can NOT use -z defs as we might desire, because we do not
12431     # link with -lc, and that would cause any symbols used from libc to
12432     # always be unresolved, which means just about no library would
12433     # ever link correctly.  If we're not using GNU ld we use -z text
12434     # though, which does catch some bad symbols but isn't as heavy-handed
12435     # as -z defs.
12436     # For security reasons, it is highly recommended that you always
12437     # use absolute paths for naming shared libraries, and exclude the
12438     # DT_RUNPATH tag from executables and libraries.  But doing so
12439     # requires that you compile everything twice, which is a pain.
12440     # So that behaviour is only enabled if SCOABSPATH is set to a
12441     # non-empty value in the environment.  Most likely only useful for
12442     # creating official distributions of packages.
12443     # This is a hack until libtool officially supports absolute path
12444     # names for shared libraries.
12445     no_undefined_flag_CXX='${wl}-z,text'
12446     allow_undefined_flag_CXX='${wl}-z,nodefs'
12447     archive_cmds_need_lc_CXX=no
12448     hardcode_shlibpath_var_CXX=no
12449     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12450     hardcode_libdir_separator_CXX=':'
12451     link_all_deplibs_CXX=yes
12452     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12453     runpath_var='LD_RUN_PATH'
12454
12455     case $cc_basename in
12456       CC*)
12457         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12458         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12459         ;;
12460       *)
12461         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12462         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12463         ;;
12464     esac
12465     ;;
12466   tandem*)
12467     case $cc_basename in
12468       NCC*)
12469         # NonStop-UX NCC 3.20
12470         # FIXME: insert proper C++ library support
12471         ld_shlibs_CXX=no
12472         ;;
12473       *)
12474         # FIXME: insert proper C++ library support
12475         ld_shlibs_CXX=no
12476         ;;
12477     esac
12478     ;;
12479   vxworks*)
12480     # FIXME: insert proper C++ library support
12481     ld_shlibs_CXX=no
12482     ;;
12483   *)
12484     # FIXME: insert proper C++ library support
12485     ld_shlibs_CXX=no
12486     ;;
12487 esac
12488 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12489 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12490 test "$ld_shlibs_CXX" = no && can_build_shared=no
12491
12492 GCC_CXX="$GXX"
12493 LD_CXX="$LD"
12494
12495 cat > conftest.$ac_ext <<EOF
12496 class Foo
12497 {
12498 public:
12499   Foo (void) { a = 0; }
12500 private:
12501   int a;
12502 };
12503 EOF
12504
12505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12506   (eval $ac_compile) 2>&5
12507   ac_status=$?
12508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509   (exit $ac_status); }; then
12510   # Parse the compiler output and extract the necessary
12511   # objects, libraries and library flags.
12512
12513   # Sentinel used to keep track of whether or not we are before
12514   # the conftest object file.
12515   pre_test_object_deps_done=no
12516
12517   # The `*' in the case matches for architectures that use `case' in
12518   # $output_verbose_cmd can trigger glob expansion during the loop
12519   # eval without this substitution.
12520   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12521
12522   for p in `eval $output_verbose_link_cmd`; do
12523     case $p in
12524
12525     -L* | -R* | -l*)
12526        # Some compilers place space between "-{L,R}" and the path.
12527        # Remove the space.
12528        if test $p = "-L" \
12529           || test $p = "-R"; then
12530          prev=$p
12531          continue
12532        else
12533          prev=
12534        fi
12535
12536        if test "$pre_test_object_deps_done" = no; then
12537          case $p in
12538          -L* | -R*)
12539            # Internal compiler library paths should come after those
12540            # provided the user.  The postdeps already come after the
12541            # user supplied libs so there is no need to process them.
12542            if test -z "$compiler_lib_search_path_CXX"; then
12543              compiler_lib_search_path_CXX="${prev}${p}"
12544            else
12545              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12546            fi
12547            ;;
12548          # The "-l" case would never come before the object being
12549          # linked, so don't bother handling this case.
12550          esac
12551        else
12552          if test -z "$postdeps_CXX"; then
12553            postdeps_CXX="${prev}${p}"
12554          else
12555            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12556          fi
12557        fi
12558        ;;
12559
12560     *.$objext)
12561        # This assumes that the test object file only shows up
12562        # once in the compiler output.
12563        if test "$p" = "conftest.$objext"; then
12564          pre_test_object_deps_done=yes
12565          continue
12566        fi
12567
12568        if test "$pre_test_object_deps_done" = no; then
12569          if test -z "$predep_objects_CXX"; then
12570            predep_objects_CXX="$p"
12571          else
12572            predep_objects_CXX="$predep_objects_CXX $p"
12573          fi
12574        else
12575          if test -z "$postdep_objects_CXX"; then
12576            postdep_objects_CXX="$p"
12577          else
12578            postdep_objects_CXX="$postdep_objects_CXX $p"
12579          fi
12580        fi
12581        ;;
12582
12583     *) ;; # Ignore the rest.
12584
12585     esac
12586   done
12587
12588   # Clean up.
12589   rm -f a.out a.exe
12590 else
12591   echo "libtool.m4: error: problem compiling CXX test program"
12592 fi
12593
12594 $rm -f confest.$objext
12595
12596 compiler_lib_search_dirs_CXX=
12597 if test -n "$compiler_lib_search_path_CXX"; then
12598   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12599 fi
12600
12601 # PORTME: override above test on systems where it is broken
12602 case $host_os in
12603 interix[3-9]*)
12604   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12605   # hack all around it, let's just trust "g++" to DTRT.
12606   predep_objects_CXX=
12607   postdep_objects_CXX=
12608   postdeps_CXX=
12609   ;;
12610
12611 linux*)
12612   case `$CC -V 2>&1 | sed 5q` in
12613   *Sun\ C*)
12614     # Sun C++ 5.9
12615     #
12616     # The more standards-conforming stlport4 library is
12617     # incompatible with the Cstd library. Avoid specifying
12618     # it if it's in CXXFLAGS. Ignore libCrun as
12619     # -library=stlport4 depends on it.
12620     case " $CXX $CXXFLAGS " in
12621     *" -library=stlport4 "*)
12622       solaris_use_stlport4=yes
12623       ;;
12624     esac
12625     if test "$solaris_use_stlport4" != yes; then
12626       postdeps_CXX='-library=Cstd -library=Crun'
12627     fi
12628     ;;
12629   esac
12630   ;;
12631
12632 solaris*)
12633   case $cc_basename in
12634   CC*)
12635     # The more standards-conforming stlport4 library is
12636     # incompatible with the Cstd library. Avoid specifying
12637     # it if it's in CXXFLAGS. Ignore libCrun as
12638     # -library=stlport4 depends on it.
12639     case " $CXX $CXXFLAGS " in
12640     *" -library=stlport4 "*)
12641       solaris_use_stlport4=yes
12642       ;;
12643     esac
12644
12645     # Adding this requires a known-good setup of shared libraries for
12646     # Sun compiler versions before 5.6, else PIC objects from an old
12647     # archive will be linked into the output, leading to subtle bugs.
12648     if test "$solaris_use_stlport4" != yes; then
12649       postdeps_CXX='-library=Cstd -library=Crun'
12650     fi
12651     ;;
12652   esac
12653   ;;
12654 esac
12655
12656 case " $postdeps_CXX " in
12657 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12658 esac
12659
12660 lt_prog_compiler_wl_CXX=
12661 lt_prog_compiler_pic_CXX=
12662 lt_prog_compiler_static_CXX=
12663
12664 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12665 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12666
12667   # C++ specific cases for pic, static, wl, etc.
12668   if test "$GXX" = yes; then
12669     lt_prog_compiler_wl_CXX='-Wl,'
12670     lt_prog_compiler_static_CXX='-static'
12671
12672     case $host_os in
12673     aix*)
12674       # All AIX code is PIC.
12675       if test "$host_cpu" = ia64; then
12676         # AIX 5 now supports IA64 processor
12677         lt_prog_compiler_static_CXX='-Bstatic'
12678       fi
12679       ;;
12680     amigaos*)
12681       # FIXME: we need at least 68020 code to build shared libraries, but
12682       # adding the `-m68020' flag to GCC prevents building anything better,
12683       # like `-m68040'.
12684       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12685       ;;
12686     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12687       # PIC is the default for these OSes.
12688       ;;
12689     mingw* | cygwin* | os2* | pw32*)
12690       # This hack is so that the source file can tell whether it is being
12691       # built for inclusion in a dll (and should export symbols for example).
12692       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12693       # (--disable-auto-import) libraries
12694       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12695       ;;
12696     darwin* | rhapsody*)
12697       # PIC is the default on this platform
12698       # Common symbols not allowed in MH_DYLIB files
12699       lt_prog_compiler_pic_CXX='-fno-common'
12700       ;;
12701     *djgpp*)
12702       # DJGPP does not support shared libraries at all
12703       lt_prog_compiler_pic_CXX=
12704       ;;
12705     interix[3-9]*)
12706       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12707       # Instead, we relocate shared libraries at runtime.
12708       ;;
12709     sysv4*MP*)
12710       if test -d /usr/nec; then
12711         lt_prog_compiler_pic_CXX=-Kconform_pic
12712       fi
12713       ;;
12714     hpux*)
12715       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12716       # not for PA HP-UX.
12717       case $host_cpu in
12718       hppa*64*|ia64*)
12719         ;;
12720       *)
12721         lt_prog_compiler_pic_CXX='-fPIC'
12722         ;;
12723       esac
12724       ;;
12725     *)
12726       lt_prog_compiler_pic_CXX='-fPIC'
12727       ;;
12728     esac
12729   else
12730     case $host_os in
12731       aix[4-9]*)
12732         # All AIX code is PIC.
12733         if test "$host_cpu" = ia64; then
12734           # AIX 5 now supports IA64 processor
12735           lt_prog_compiler_static_CXX='-Bstatic'
12736         else
12737           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12738         fi
12739         ;;
12740       chorus*)
12741         case $cc_basename in
12742         cxch68*)
12743           # Green Hills C++ Compiler
12744           # _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"
12745           ;;
12746         esac
12747         ;;
12748        darwin*)
12749          # PIC is the default on this platform
12750          # Common symbols not allowed in MH_DYLIB files
12751          case $cc_basename in
12752            xlc*)
12753            lt_prog_compiler_pic_CXX='-qnocommon'
12754            lt_prog_compiler_wl_CXX='-Wl,'
12755            ;;
12756          esac
12757        ;;
12758       dgux*)
12759         case $cc_basename in
12760           ec++*)
12761             lt_prog_compiler_pic_CXX='-KPIC'
12762             ;;
12763           ghcx*)
12764             # Green Hills C++ Compiler
12765             lt_prog_compiler_pic_CXX='-pic'
12766             ;;
12767           *)
12768             ;;
12769         esac
12770         ;;
12771       freebsd* | dragonfly*)
12772         # FreeBSD uses GNU C++
12773         ;;
12774       hpux9* | hpux10* | hpux11*)
12775         case $cc_basename in
12776           CC*)
12777             lt_prog_compiler_wl_CXX='-Wl,'
12778             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12779             if test "$host_cpu" != ia64; then
12780               lt_prog_compiler_pic_CXX='+Z'
12781             fi
12782             ;;
12783           aCC*)
12784             lt_prog_compiler_wl_CXX='-Wl,'
12785             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12786             case $host_cpu in
12787             hppa*64*|ia64*)
12788               # +Z the default
12789               ;;
12790             *)
12791               lt_prog_compiler_pic_CXX='+Z'
12792               ;;
12793             esac
12794             ;;
12795           *)
12796             ;;
12797         esac
12798         ;;
12799       interix*)
12800         # This is c89, which is MS Visual C++ (no shared libs)
12801         # Anyone wants to do a port?
12802         ;;
12803       irix5* | irix6* | nonstopux*)
12804         case $cc_basename in
12805           CC*)
12806             lt_prog_compiler_wl_CXX='-Wl,'
12807             lt_prog_compiler_static_CXX='-non_shared'
12808             # CC pic flag -KPIC is the default.
12809             ;;
12810           *)
12811             ;;
12812         esac
12813         ;;
12814       linux* | k*bsd*-gnu)
12815         case $cc_basename in
12816           KCC*)
12817             # KAI C++ Compiler
12818             lt_prog_compiler_wl_CXX='--backend -Wl,'
12819             lt_prog_compiler_pic_CXX='-fPIC'
12820             ;;
12821           icpc* | ecpc*)
12822             # Intel C++
12823             lt_prog_compiler_wl_CXX='-Wl,'
12824             lt_prog_compiler_pic_CXX='-KPIC'
12825             lt_prog_compiler_static_CXX='-static'
12826             ;;
12827           pgCC* | pgcpp*)
12828             # Portland Group C++ compiler.
12829             lt_prog_compiler_wl_CXX='-Wl,'
12830             lt_prog_compiler_pic_CXX='-fpic'
12831             lt_prog_compiler_static_CXX='-Bstatic'
12832             ;;
12833           cxx*)
12834             # Compaq C++
12835             # Make sure the PIC flag is empty.  It appears that all Alpha
12836             # Linux and Compaq Tru64 Unix objects are PIC.
12837             lt_prog_compiler_pic_CXX=
12838             lt_prog_compiler_static_CXX='-non_shared'
12839             ;;
12840           *)
12841             case `$CC -V 2>&1 | sed 5q` in
12842             *Sun\ C*)
12843               # Sun C++ 5.9
12844               lt_prog_compiler_pic_CXX='-KPIC'
12845               lt_prog_compiler_static_CXX='-Bstatic'
12846               lt_prog_compiler_wl_CXX='-Qoption ld '
12847               ;;
12848             esac
12849             ;;
12850         esac
12851         ;;
12852       lynxos*)
12853         ;;
12854       m88k*)
12855         ;;
12856       mvs*)
12857         case $cc_basename in
12858           cxx*)
12859             lt_prog_compiler_pic_CXX='-W c,exportall'
12860             ;;
12861           *)
12862             ;;
12863         esac
12864         ;;
12865       netbsd* | netbsdelf*-gnu)
12866         ;;
12867       osf3* | osf4* | osf5*)
12868         case $cc_basename in
12869           KCC*)
12870             lt_prog_compiler_wl_CXX='--backend -Wl,'
12871             ;;
12872           RCC*)
12873             # Rational C++ 2.4.1
12874             lt_prog_compiler_pic_CXX='-pic'
12875             ;;
12876           cxx*)
12877             # Digital/Compaq C++
12878             lt_prog_compiler_wl_CXX='-Wl,'
12879             # Make sure the PIC flag is empty.  It appears that all Alpha
12880             # Linux and Compaq Tru64 Unix objects are PIC.
12881             lt_prog_compiler_pic_CXX=
12882             lt_prog_compiler_static_CXX='-non_shared'
12883             ;;
12884           *)
12885             ;;
12886         esac
12887         ;;
12888       psos*)
12889         ;;
12890       solaris*)
12891         case $cc_basename in
12892           CC*)
12893             # Sun C++ 4.2, 5.x and Centerline C++
12894             lt_prog_compiler_pic_CXX='-KPIC'
12895             lt_prog_compiler_static_CXX='-Bstatic'
12896             lt_prog_compiler_wl_CXX='-Qoption ld '
12897             ;;
12898           gcx*)
12899             # Green Hills C++ Compiler
12900             lt_prog_compiler_pic_CXX='-PIC'
12901             ;;
12902           *)
12903             ;;
12904         esac
12905         ;;
12906       sunos4*)
12907         case $cc_basename in
12908           CC*)
12909             # Sun C++ 4.x
12910             lt_prog_compiler_pic_CXX='-pic'
12911             lt_prog_compiler_static_CXX='-Bstatic'
12912             ;;
12913           lcc*)
12914             # Lucid
12915             lt_prog_compiler_pic_CXX='-pic'
12916             ;;
12917           *)
12918             ;;
12919         esac
12920         ;;
12921       tandem*)
12922         case $cc_basename in
12923           NCC*)
12924             # NonStop-UX NCC 3.20
12925             lt_prog_compiler_pic_CXX='-KPIC'
12926             ;;
12927           *)
12928             ;;
12929         esac
12930         ;;
12931       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12932         case $cc_basename in
12933           CC*)
12934             lt_prog_compiler_wl_CXX='-Wl,'
12935             lt_prog_compiler_pic_CXX='-KPIC'
12936             lt_prog_compiler_static_CXX='-Bstatic'
12937             ;;
12938         esac
12939         ;;
12940       vxworks*)
12941         ;;
12942       *)
12943         lt_prog_compiler_can_build_shared_CXX=no
12944         ;;
12945     esac
12946   fi
12947
12948 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12949 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12950
12951 #
12952 # Check to make sure the PIC flag actually works.
12953 #
12954 if test -n "$lt_prog_compiler_pic_CXX"; then
12955
12956 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12957 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12958 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12959   echo $ECHO_N "(cached) $ECHO_C" >&6
12960 else
12961   lt_cv_prog_compiler_pic_works_CXX=no
12962   ac_outfile=conftest.$ac_objext
12963    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12964    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12965    # Insert the option either (1) after the last *FLAGS variable, or
12966    # (2) before a word containing "conftest.", or (3) at the end.
12967    # Note that $ac_compile itself does not contain backslashes and begins
12968    # with a dollar sign (not a hyphen), so the echo should work correctly.
12969    # The option is referenced via a variable to avoid confusing sed.
12970    lt_compile=`echo "$ac_compile" | $SED \
12971    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12972    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12973    -e 's:$: $lt_compiler_flag:'`
12974    (eval echo "\"\$as_me:12974: $lt_compile\"" >&5)
12975    (eval "$lt_compile" 2>conftest.err)
12976    ac_status=$?
12977    cat conftest.err >&5
12978    echo "$as_me:12978: \$? = $ac_status" >&5
12979    if (exit $ac_status) && test -s "$ac_outfile"; then
12980      # The compiler can only warn and ignore the option if not recognized
12981      # So say no if there are warnings other than the usual output.
12982      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12983      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12984      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12985        lt_cv_prog_compiler_pic_works_CXX=yes
12986      fi
12987    fi
12988    $rm conftest*
12989
12990 fi
12991 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12992 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12993
12994 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12995     case $lt_prog_compiler_pic_CXX in
12996      "" | " "*) ;;
12997      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12998      esac
12999 else
13000     lt_prog_compiler_pic_CXX=
13001      lt_prog_compiler_can_build_shared_CXX=no
13002 fi
13003
13004 fi
13005 case $host_os in
13006   # For platforms which do not support PIC, -DPIC is meaningless:
13007   *djgpp*)
13008     lt_prog_compiler_pic_CXX=
13009     ;;
13010   *)
13011     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13012     ;;
13013 esac
13014
13015 #
13016 # Check to make sure the static flag actually works.
13017 #
13018 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13019 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13020 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13021 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13022   echo $ECHO_N "(cached) $ECHO_C" >&6
13023 else
13024   lt_cv_prog_compiler_static_works_CXX=no
13025    save_LDFLAGS="$LDFLAGS"
13026    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13027    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13028    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13029      # The linker can only warn and ignore the option if not recognized
13030      # So say no if there are warnings
13031      if test -s conftest.err; then
13032        # Append any errors to the config.log.
13033        cat conftest.err 1>&5
13034        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13035        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13036        if diff conftest.exp conftest.er2 >/dev/null; then
13037          lt_cv_prog_compiler_static_works_CXX=yes
13038        fi
13039      else
13040        lt_cv_prog_compiler_static_works_CXX=yes
13041      fi
13042    fi
13043    $rm -r conftest*
13044    LDFLAGS="$save_LDFLAGS"
13045
13046 fi
13047 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13048 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13049
13050 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13051     :
13052 else
13053     lt_prog_compiler_static_CXX=
13054 fi
13055
13056
13057 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13058 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13059 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13060   echo $ECHO_N "(cached) $ECHO_C" >&6
13061 else
13062   lt_cv_prog_compiler_c_o_CXX=no
13063    $rm -r conftest 2>/dev/null
13064    mkdir conftest
13065    cd conftest
13066    mkdir out
13067    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13068
13069    lt_compiler_flag="-o out/conftest2.$ac_objext"
13070    # Insert the option either (1) after the last *FLAGS variable, or
13071    # (2) before a word containing "conftest.", or (3) at the end.
13072    # Note that $ac_compile itself does not contain backslashes and begins
13073    # with a dollar sign (not a hyphen), so the echo should work correctly.
13074    lt_compile=`echo "$ac_compile" | $SED \
13075    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13076    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13077    -e 's:$: $lt_compiler_flag:'`
13078    (eval echo "\"\$as_me:13078: $lt_compile\"" >&5)
13079    (eval "$lt_compile" 2>out/conftest.err)
13080    ac_status=$?
13081    cat out/conftest.err >&5
13082    echo "$as_me:13082: \$? = $ac_status" >&5
13083    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13084    then
13085      # The compiler can only warn and ignore the option if not recognized
13086      # So say no if there are warnings
13087      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13088      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13089      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13090        lt_cv_prog_compiler_c_o_CXX=yes
13091      fi
13092    fi
13093    chmod u+w . 2>&5
13094    $rm conftest*
13095    # SGI C++ compiler will create directory out/ii_files/ for
13096    # template instantiation
13097    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13098    $rm out/* && rmdir out
13099    cd ..
13100    rmdir conftest
13101    $rm conftest*
13102
13103 fi
13104 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13105 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13106
13107
13108 hard_links="nottested"
13109 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13110   # do not overwrite the value of need_locks provided by the user
13111   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13112 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13113   hard_links=yes
13114   $rm conftest*
13115   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13116   touch conftest.a
13117   ln conftest.a conftest.b 2>&5 || hard_links=no
13118   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13119   { echo "$as_me:$LINENO: result: $hard_links" >&5
13120 echo "${ECHO_T}$hard_links" >&6; }
13121   if test "$hard_links" = no; then
13122     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13123 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13124     need_locks=warn
13125   fi
13126 else
13127   need_locks=no
13128 fi
13129
13130 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13131 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13132
13133   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13134   case $host_os in
13135   aix[4-9]*)
13136     # If we're using GNU nm, then we don't want the "-C" option.
13137     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13138     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13139       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'
13140     else
13141       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'
13142     fi
13143     ;;
13144   pw32*)
13145     export_symbols_cmds_CXX="$ltdll_cmds"
13146   ;;
13147   cygwin* | mingw*)
13148     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'
13149   ;;
13150   linux* | k*bsd*-gnu)
13151     link_all_deplibs_CXX=no
13152   ;;
13153   *)
13154     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13155   ;;
13156   esac
13157   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13158
13159 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13160 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13161 test "$ld_shlibs_CXX" = no && can_build_shared=no
13162
13163 #
13164 # Do we need to explicitly link libc?
13165 #
13166 case "x$archive_cmds_need_lc_CXX" in
13167 x|xyes)
13168   # Assume -lc should be added
13169   archive_cmds_need_lc_CXX=yes
13170
13171   if test "$enable_shared" = yes && test "$GCC" = yes; then
13172     case $archive_cmds_CXX in
13173     *'~'*)
13174       # FIXME: we may have to deal with multi-command sequences.
13175       ;;
13176     '$CC '*)
13177       # Test whether the compiler implicitly links with -lc since on some
13178       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13179       # to ld, don't add -lc before -lgcc.
13180       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13181 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13182       $rm conftest*
13183       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13184
13185       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13186   (eval $ac_compile) 2>&5
13187   ac_status=$?
13188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189   (exit $ac_status); } 2>conftest.err; then
13190         soname=conftest
13191         lib=conftest
13192         libobjs=conftest.$ac_objext
13193         deplibs=
13194         wl=$lt_prog_compiler_wl_CXX
13195         pic_flag=$lt_prog_compiler_pic_CXX
13196         compiler_flags=-v
13197         linker_flags=-v
13198         verstring=
13199         output_objdir=.
13200         libname=conftest
13201         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13202         allow_undefined_flag_CXX=
13203         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13204   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13205   ac_status=$?
13206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207   (exit $ac_status); }
13208         then
13209           archive_cmds_need_lc_CXX=no
13210         else
13211           archive_cmds_need_lc_CXX=yes
13212         fi
13213         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13214       else
13215         cat conftest.err 1>&5
13216       fi
13217       $rm conftest*
13218       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13219 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13220       ;;
13221     esac
13222   fi
13223   ;;
13224 esac
13225
13226 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13227 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13228 library_names_spec=
13229 libname_spec='lib$name'
13230 soname_spec=
13231 shrext_cmds=".so"
13232 postinstall_cmds=
13233 postuninstall_cmds=
13234 finish_cmds=
13235 finish_eval=
13236 shlibpath_var=
13237 shlibpath_overrides_runpath=unknown
13238 version_type=none
13239 dynamic_linker="$host_os ld.so"
13240 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13241
13242 need_lib_prefix=unknown
13243 hardcode_into_libs=no
13244
13245 # when you set need_version to no, make sure it does not cause -set_version
13246 # flags to be left without arguments
13247 need_version=unknown
13248
13249 case $host_os in
13250 aix3*)
13251   version_type=linux
13252   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13253   shlibpath_var=LIBPATH
13254
13255   # AIX 3 has no versioning support, so we append a major version to the name.
13256   soname_spec='${libname}${release}${shared_ext}$major'
13257   ;;
13258
13259 aix[4-9]*)
13260   version_type=linux
13261   need_lib_prefix=no
13262   need_version=no
13263   hardcode_into_libs=yes
13264   if test "$host_cpu" = ia64; then
13265     # AIX 5 supports IA64
13266     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13267     shlibpath_var=LD_LIBRARY_PATH
13268   else
13269     # With GCC up to 2.95.x, collect2 would create an import file
13270     # for dependence libraries.  The import file would start with
13271     # the line `#! .'.  This would cause the generated library to
13272     # depend on `.', always an invalid library.  This was fixed in
13273     # development snapshots of GCC prior to 3.0.
13274     case $host_os in
13275       aix4 | aix4.[01] | aix4.[01].*)
13276       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13277            echo ' yes '
13278            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13279         :
13280       else
13281         can_build_shared=no
13282       fi
13283       ;;
13284     esac
13285     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13286     # soname into executable. Probably we can add versioning support to
13287     # collect2, so additional links can be useful in future.
13288     if test "$aix_use_runtimelinking" = yes; then
13289       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13290       # instead of lib<name>.a to let people know that these are not
13291       # typical AIX shared libraries.
13292       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13293     else
13294       # We preserve .a as extension for shared libraries through AIX4.2
13295       # and later when we are not doing run time linking.
13296       library_names_spec='${libname}${release}.a $libname.a'
13297       soname_spec='${libname}${release}${shared_ext}$major'
13298     fi
13299     shlibpath_var=LIBPATH
13300   fi
13301   ;;
13302
13303 amigaos*)
13304   library_names_spec='$libname.ixlibrary $libname.a'
13305   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13306   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'
13307   ;;
13308
13309 beos*)
13310   library_names_spec='${libname}${shared_ext}'
13311   dynamic_linker="$host_os ld.so"
13312   shlibpath_var=LIBRARY_PATH
13313   ;;
13314
13315 bsdi[45]*)
13316   version_type=linux
13317   need_version=no
13318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13319   soname_spec='${libname}${release}${shared_ext}$major'
13320   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13321   shlibpath_var=LD_LIBRARY_PATH
13322   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13323   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13324   # the default ld.so.conf also contains /usr/contrib/lib and
13325   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13326   # libtool to hard-code these into programs
13327   ;;
13328
13329 cygwin* | mingw* | pw32*)
13330   version_type=windows
13331   shrext_cmds=".dll"
13332   need_version=no
13333   need_lib_prefix=no
13334
13335   case $GCC,$host_os in
13336   yes,cygwin* | yes,mingw* | yes,pw32*)
13337     library_names_spec='$libname.dll.a'
13338     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13339     postinstall_cmds='base_file=`basename \${file}`~
13340       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13341       dldir=$destdir/`dirname \$dlpath`~
13342       test -d \$dldir || mkdir -p \$dldir~
13343       $install_prog $dir/$dlname \$dldir/$dlname~
13344       chmod a+x \$dldir/$dlname'
13345     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13346       dlpath=$dir/\$dldll~
13347        $rm \$dlpath'
13348     shlibpath_overrides_runpath=yes
13349
13350     case $host_os in
13351     cygwin*)
13352       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13353       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13354       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13355       ;;
13356     mingw*)
13357       # MinGW DLLs use traditional 'lib' prefix
13358       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13359       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13360       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13361         # It is most probably a Windows format PATH printed by
13362         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13363         # path with ; separators, and with drive letters. We can handle the
13364         # drive letters (cygwin fileutils understands them), so leave them,
13365         # especially as we might pass files found there to a mingw objdump,
13366         # which wouldn't understand a cygwinified path. Ahh.
13367         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13368       else
13369         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13370       fi
13371       ;;
13372     pw32*)
13373       # pw32 DLLs use 'pw' prefix rather than 'lib'
13374       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13375       ;;
13376     esac
13377     ;;
13378
13379   *)
13380     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13381     ;;
13382   esac
13383   dynamic_linker='Win32 ld.exe'
13384   # FIXME: first we should search . and the directory the executable is in
13385   shlibpath_var=PATH
13386   ;;
13387
13388 darwin* | rhapsody*)
13389   dynamic_linker="$host_os dyld"
13390   version_type=darwin
13391   need_lib_prefix=no
13392   need_version=no
13393   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13394   soname_spec='${libname}${release}${major}$shared_ext'
13395   shlibpath_overrides_runpath=yes
13396   shlibpath_var=DYLD_LIBRARY_PATH
13397   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13398
13399   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13400   ;;
13401
13402 dgux*)
13403   version_type=linux
13404   need_lib_prefix=no
13405   need_version=no
13406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13407   soname_spec='${libname}${release}${shared_ext}$major'
13408   shlibpath_var=LD_LIBRARY_PATH
13409   ;;
13410
13411 freebsd1*)
13412   dynamic_linker=no
13413   ;;
13414
13415 freebsd* | dragonfly*)
13416   # DragonFly does not have aout.  When/if they implement a new
13417   # versioning mechanism, adjust this.
13418   if test -x /usr/bin/objformat; then
13419     objformat=`/usr/bin/objformat`
13420   else
13421     case $host_os in
13422     freebsd[123]*) objformat=aout ;;
13423     *) objformat=elf ;;
13424     esac
13425   fi
13426   version_type=freebsd-$objformat
13427   case $version_type in
13428     freebsd-elf*)
13429       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13430       need_version=no
13431       need_lib_prefix=no
13432       ;;
13433     freebsd-*)
13434       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13435       need_version=yes
13436       ;;
13437   esac
13438   shlibpath_var=LD_LIBRARY_PATH
13439   case $host_os in
13440   freebsd2*)
13441     shlibpath_overrides_runpath=yes
13442     ;;
13443   freebsd3.[01]* | freebsdelf3.[01]*)
13444     shlibpath_overrides_runpath=yes
13445     hardcode_into_libs=yes
13446     ;;
13447   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13448   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13449     shlibpath_overrides_runpath=no
13450     hardcode_into_libs=yes
13451     ;;
13452   *) # from 4.6 on, and DragonFly
13453     shlibpath_overrides_runpath=yes
13454     hardcode_into_libs=yes
13455     ;;
13456   esac
13457   ;;
13458
13459 gnu*)
13460   version_type=linux
13461   need_lib_prefix=no
13462   need_version=no
13463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13464   soname_spec='${libname}${release}${shared_ext}$major'
13465   shlibpath_var=LD_LIBRARY_PATH
13466   hardcode_into_libs=yes
13467   ;;
13468
13469 hpux9* | hpux10* | hpux11*)
13470   # Give a soname corresponding to the major version so that dld.sl refuses to
13471   # link against other versions.
13472   version_type=sunos
13473   need_lib_prefix=no
13474   need_version=no
13475   case $host_cpu in
13476   ia64*)
13477     shrext_cmds='.so'
13478     hardcode_into_libs=yes
13479     dynamic_linker="$host_os dld.so"
13480     shlibpath_var=LD_LIBRARY_PATH
13481     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13482     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13483     soname_spec='${libname}${release}${shared_ext}$major'
13484     if test "X$HPUX_IA64_MODE" = X32; then
13485       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13486     else
13487       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13488     fi
13489     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13490     ;;
13491    hppa*64*)
13492      shrext_cmds='.sl'
13493      hardcode_into_libs=yes
13494      dynamic_linker="$host_os dld.sl"
13495      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13496      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13497      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13498      soname_spec='${libname}${release}${shared_ext}$major'
13499      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13500      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13501      ;;
13502    *)
13503     shrext_cmds='.sl'
13504     dynamic_linker="$host_os dld.sl"
13505     shlibpath_var=SHLIB_PATH
13506     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13507     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13508     soname_spec='${libname}${release}${shared_ext}$major'
13509     ;;
13510   esac
13511   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13512   postinstall_cmds='chmod 555 $lib'
13513   ;;
13514
13515 interix[3-9]*)
13516   version_type=linux
13517   need_lib_prefix=no
13518   need_version=no
13519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13520   soname_spec='${libname}${release}${shared_ext}$major'
13521   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13522   shlibpath_var=LD_LIBRARY_PATH
13523   shlibpath_overrides_runpath=no
13524   hardcode_into_libs=yes
13525   ;;
13526
13527 irix5* | irix6* | nonstopux*)
13528   case $host_os in
13529     nonstopux*) version_type=nonstopux ;;
13530     *)
13531         if test "$lt_cv_prog_gnu_ld" = yes; then
13532                 version_type=linux
13533         else
13534                 version_type=irix
13535         fi ;;
13536   esac
13537   need_lib_prefix=no
13538   need_version=no
13539   soname_spec='${libname}${release}${shared_ext}$major'
13540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13541   case $host_os in
13542   irix5* | nonstopux*)
13543     libsuff= shlibsuff=
13544     ;;
13545   *)
13546     case $LD in # libtool.m4 will add one of these switches to LD
13547     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13548       libsuff= shlibsuff= libmagic=32-bit;;
13549     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13550       libsuff=32 shlibsuff=N32 libmagic=N32;;
13551     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13552       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13553     *) libsuff= shlibsuff= libmagic=never-match;;
13554     esac
13555     ;;
13556   esac
13557   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13558   shlibpath_overrides_runpath=no
13559   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13560   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13561   hardcode_into_libs=yes
13562   ;;
13563
13564 # No shared lib support for Linux oldld, aout, or coff.
13565 linux*oldld* | linux*aout* | linux*coff*)
13566   dynamic_linker=no
13567   ;;
13568
13569 # This must be Linux ELF.
13570 linux* | k*bsd*-gnu)
13571   version_type=linux
13572   need_lib_prefix=no
13573   need_version=no
13574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13575   soname_spec='${libname}${release}${shared_ext}$major'
13576   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13577   shlibpath_var=LD_LIBRARY_PATH
13578   shlibpath_overrides_runpath=no
13579   # This implies no fast_install, which is unacceptable.
13580   # Some rework will be needed to allow for fast_install
13581   # before this can be enabled.
13582   hardcode_into_libs=yes
13583
13584   # Append ld.so.conf contents to the search path
13585   if test -f /etc/ld.so.conf; then
13586     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13587     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13588   fi
13589
13590   # We used to test for /lib/ld.so.1 and disable shared libraries on
13591   # powerpc, because MkLinux only supported shared libraries with the
13592   # GNU dynamic linker.  Since this was broken with cross compilers,
13593   # most powerpc-linux boxes support dynamic linking these days and
13594   # people can always --disable-shared, the test was removed, and we
13595   # assume the GNU/Linux dynamic linker is in use.
13596   dynamic_linker='GNU/Linux ld.so'
13597   ;;
13598
13599 netbsdelf*-gnu)
13600   version_type=linux
13601   need_lib_prefix=no
13602   need_version=no
13603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13604   soname_spec='${libname}${release}${shared_ext}$major'
13605   shlibpath_var=LD_LIBRARY_PATH
13606   shlibpath_overrides_runpath=no
13607   hardcode_into_libs=yes
13608   dynamic_linker='NetBSD ld.elf_so'
13609   ;;
13610
13611 netbsd*)
13612   version_type=sunos
13613   need_lib_prefix=no
13614   need_version=no
13615   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13616     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13617     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13618     dynamic_linker='NetBSD (a.out) ld.so'
13619   else
13620     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13621     soname_spec='${libname}${release}${shared_ext}$major'
13622     dynamic_linker='NetBSD ld.elf_so'
13623   fi
13624   shlibpath_var=LD_LIBRARY_PATH
13625   shlibpath_overrides_runpath=yes
13626   hardcode_into_libs=yes
13627   ;;
13628
13629 newsos6)
13630   version_type=linux
13631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13632   shlibpath_var=LD_LIBRARY_PATH
13633   shlibpath_overrides_runpath=yes
13634   ;;
13635
13636 nto-qnx*)
13637   version_type=linux
13638   need_lib_prefix=no
13639   need_version=no
13640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13641   soname_spec='${libname}${release}${shared_ext}$major'
13642   shlibpath_var=LD_LIBRARY_PATH
13643   shlibpath_overrides_runpath=yes
13644   ;;
13645
13646 openbsd*)
13647   version_type=sunos
13648   sys_lib_dlsearch_path_spec="/usr/lib"
13649   need_lib_prefix=no
13650   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13651   case $host_os in
13652     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13653     *)                         need_version=no  ;;
13654   esac
13655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13656   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13657   shlibpath_var=LD_LIBRARY_PATH
13658   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13659     case $host_os in
13660       openbsd2.[89] | openbsd2.[89].*)
13661         shlibpath_overrides_runpath=no
13662         ;;
13663       *)
13664         shlibpath_overrides_runpath=yes
13665         ;;
13666       esac
13667   else
13668     shlibpath_overrides_runpath=yes
13669   fi
13670   ;;
13671
13672 os2*)
13673   libname_spec='$name'
13674   shrext_cmds=".dll"
13675   need_lib_prefix=no
13676   library_names_spec='$libname${shared_ext} $libname.a'
13677   dynamic_linker='OS/2 ld.exe'
13678   shlibpath_var=LIBPATH
13679   ;;
13680
13681 osf3* | osf4* | osf5*)
13682   version_type=osf
13683   need_lib_prefix=no
13684   need_version=no
13685   soname_spec='${libname}${release}${shared_ext}$major'
13686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13687   shlibpath_var=LD_LIBRARY_PATH
13688   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13689   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13690   ;;
13691
13692 rdos*)
13693   dynamic_linker=no
13694   ;;
13695
13696 solaris*)
13697   version_type=linux
13698   need_lib_prefix=no
13699   need_version=no
13700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13701   soname_spec='${libname}${release}${shared_ext}$major'
13702   shlibpath_var=LD_LIBRARY_PATH
13703   shlibpath_overrides_runpath=yes
13704   hardcode_into_libs=yes
13705   # ldd complains unless libraries are executable
13706   postinstall_cmds='chmod +x $lib'
13707   ;;
13708
13709 sunos4*)
13710   version_type=sunos
13711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13712   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13713   shlibpath_var=LD_LIBRARY_PATH
13714   shlibpath_overrides_runpath=yes
13715   if test "$with_gnu_ld" = yes; then
13716     need_lib_prefix=no
13717   fi
13718   need_version=yes
13719   ;;
13720
13721 sysv4 | sysv4.3*)
13722   version_type=linux
13723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13724   soname_spec='${libname}${release}${shared_ext}$major'
13725   shlibpath_var=LD_LIBRARY_PATH
13726   case $host_vendor in
13727     sni)
13728       shlibpath_overrides_runpath=no
13729       need_lib_prefix=no
13730       export_dynamic_flag_spec='${wl}-Blargedynsym'
13731       runpath_var=LD_RUN_PATH
13732       ;;
13733     siemens)
13734       need_lib_prefix=no
13735       ;;
13736     motorola)
13737       need_lib_prefix=no
13738       need_version=no
13739       shlibpath_overrides_runpath=no
13740       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13741       ;;
13742   esac
13743   ;;
13744
13745 sysv4*MP*)
13746   if test -d /usr/nec ;then
13747     version_type=linux
13748     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13749     soname_spec='$libname${shared_ext}.$major'
13750     shlibpath_var=LD_LIBRARY_PATH
13751   fi
13752   ;;
13753
13754 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13755   version_type=freebsd-elf
13756   need_lib_prefix=no
13757   need_version=no
13758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13759   soname_spec='${libname}${release}${shared_ext}$major'
13760   shlibpath_var=LD_LIBRARY_PATH
13761   hardcode_into_libs=yes
13762   if test "$with_gnu_ld" = yes; then
13763     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13764     shlibpath_overrides_runpath=no
13765   else
13766     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13767     shlibpath_overrides_runpath=yes
13768     case $host_os in
13769       sco3.2v5*)
13770         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13771         ;;
13772     esac
13773   fi
13774   sys_lib_dlsearch_path_spec='/usr/lib'
13775   ;;
13776
13777 uts4*)
13778   version_type=linux
13779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13780   soname_spec='${libname}${release}${shared_ext}$major'
13781   shlibpath_var=LD_LIBRARY_PATH
13782   ;;
13783
13784 *)
13785   dynamic_linker=no
13786   ;;
13787 esac
13788 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13789 echo "${ECHO_T}$dynamic_linker" >&6; }
13790 test "$dynamic_linker" = no && can_build_shared=no
13791
13792 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13793   echo $ECHO_N "(cached) $ECHO_C" >&6
13794 else
13795   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13796 fi
13797
13798 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13799 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13800   echo $ECHO_N "(cached) $ECHO_C" >&6
13801 else
13802   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13803 fi
13804
13805 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13806
13807 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13808 if test "$GCC" = yes; then
13809   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13810 fi
13811
13812 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13813 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13814 hardcode_action_CXX=
13815 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13816    test -n "$runpath_var_CXX" || \
13817    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13818
13819   # We can hardcode non-existant directories.
13820   if test "$hardcode_direct_CXX" != no &&
13821      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13822      # have to relink, otherwise we might link with an installed library
13823      # when we should be linking with a yet-to-be-installed one
13824      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13825      test "$hardcode_minus_L_CXX" != no; then
13826     # Linking always hardcodes the temporary library directory.
13827     hardcode_action_CXX=relink
13828   else
13829     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13830     hardcode_action_CXX=immediate
13831   fi
13832 else
13833   # We cannot hardcode anything, or else we can only hardcode existing
13834   # directories.
13835   hardcode_action_CXX=unsupported
13836 fi
13837 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13838 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13839
13840 if test "$hardcode_action_CXX" = relink; then
13841   # Fast installation is not supported
13842   enable_fast_install=no
13843 elif test "$shlibpath_overrides_runpath" = yes ||
13844      test "$enable_shared" = no; then
13845   # Fast installation is not necessary
13846   enable_fast_install=needless
13847 fi
13848
13849
13850 # The else clause should only fire when bootstrapping the
13851 # libtool distribution, otherwise you forgot to ship ltmain.sh
13852 # with your package, and you will get complaints that there are
13853 # no rules to generate ltmain.sh.
13854 if test -f "$ltmain"; then
13855   # See if we are running on zsh, and set the options which allow our commands through
13856   # without removal of \ escapes.
13857   if test -n "${ZSH_VERSION+set}" ; then
13858     setopt NO_GLOB_SUBST
13859   fi
13860   # Now quote all the things that may contain metacharacters while being
13861   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13862   # variables and quote the copies for generation of the libtool script.
13863   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13864     SED SHELL STRIP \
13865     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13866     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13867     deplibs_check_method reload_flag reload_cmds need_locks \
13868     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13869     lt_cv_sys_global_symbol_to_c_name_address \
13870     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13871     old_postinstall_cmds old_postuninstall_cmds \
13872     compiler_CXX \
13873     CC_CXX \
13874     LD_CXX \
13875     lt_prog_compiler_wl_CXX \
13876     lt_prog_compiler_pic_CXX \
13877     lt_prog_compiler_static_CXX \
13878     lt_prog_compiler_no_builtin_flag_CXX \
13879     export_dynamic_flag_spec_CXX \
13880     thread_safe_flag_spec_CXX \
13881     whole_archive_flag_spec_CXX \
13882     enable_shared_with_static_runtimes_CXX \
13883     old_archive_cmds_CXX \
13884     old_archive_from_new_cmds_CXX \
13885     predep_objects_CXX \
13886     postdep_objects_CXX \
13887     predeps_CXX \
13888     postdeps_CXX \
13889     compiler_lib_search_path_CXX \
13890     compiler_lib_search_dirs_CXX \
13891     archive_cmds_CXX \
13892     archive_expsym_cmds_CXX \
13893     postinstall_cmds_CXX \
13894     postuninstall_cmds_CXX \
13895     old_archive_from_expsyms_cmds_CXX \
13896     allow_undefined_flag_CXX \
13897     no_undefined_flag_CXX \
13898     export_symbols_cmds_CXX \
13899     hardcode_libdir_flag_spec_CXX \
13900     hardcode_libdir_flag_spec_ld_CXX \
13901     hardcode_libdir_separator_CXX \
13902     hardcode_automatic_CXX \
13903     module_cmds_CXX \
13904     module_expsym_cmds_CXX \
13905     lt_cv_prog_compiler_c_o_CXX \
13906     fix_srcfile_path_CXX \
13907     exclude_expsyms_CXX \
13908     include_expsyms_CXX; do
13909
13910     case $var in
13911     old_archive_cmds_CXX | \
13912     old_archive_from_new_cmds_CXX | \
13913     archive_cmds_CXX | \
13914     archive_expsym_cmds_CXX | \
13915     module_cmds_CXX | \
13916     module_expsym_cmds_CXX | \
13917     old_archive_from_expsyms_cmds_CXX | \
13918     export_symbols_cmds_CXX | \
13919     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13920     postinstall_cmds | postuninstall_cmds | \
13921     old_postinstall_cmds | old_postuninstall_cmds | \
13922     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13923       # Double-quote double-evaled strings.
13924       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13925       ;;
13926     *)
13927       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13928       ;;
13929     esac
13930   done
13931
13932   case $lt_echo in
13933   *'\$0 --fallback-echo"')
13934     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13935     ;;
13936   esac
13937
13938 cfgfile="$ofile"
13939
13940   cat <<__EOF__ >> "$cfgfile"
13941 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13942
13943 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13944
13945 # Shell to use when invoking shell scripts.
13946 SHELL=$lt_SHELL
13947
13948 # Whether or not to build shared libraries.
13949 build_libtool_libs=$enable_shared
13950
13951 # Whether or not to build static libraries.
13952 build_old_libs=$enable_static
13953
13954 # Whether or not to add -lc for building shared libraries.
13955 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13956
13957 # Whether or not to disallow shared libs when runtime libs are static
13958 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13959
13960 # Whether or not to optimize for fast installation.
13961 fast_install=$enable_fast_install
13962
13963 # The host system.
13964 host_alias=$host_alias
13965 host=$host
13966 host_os=$host_os
13967
13968 # The build system.
13969 build_alias=$build_alias
13970 build=$build
13971 build_os=$build_os
13972
13973 # An echo program that does not interpret backslashes.
13974 echo=$lt_echo
13975
13976 # The archiver.
13977 AR=$lt_AR
13978 AR_FLAGS=$lt_AR_FLAGS
13979
13980 # A C compiler.
13981 LTCC=$lt_LTCC
13982
13983 # LTCC compiler flags.
13984 LTCFLAGS=$lt_LTCFLAGS
13985
13986 # A language-specific compiler.
13987 CC=$lt_compiler_CXX
13988
13989 # Is the compiler the GNU C compiler?
13990 with_gcc=$GCC_CXX
13991
13992 # An ERE matcher.
13993 EGREP=$lt_EGREP
13994
13995 # The linker used to build libraries.
13996 LD=$lt_LD_CXX
13997
13998 # Whether we need hard or soft links.
13999 LN_S=$lt_LN_S
14000
14001 # A BSD-compatible nm program.
14002 NM=$lt_NM
14003
14004 # A symbol stripping program
14005 STRIP=$lt_STRIP
14006
14007 # Used to examine libraries when file_magic_cmd begins "file"
14008 MAGIC_CMD=$MAGIC_CMD
14009
14010 # Used on cygwin: DLL creation program.
14011 DLLTOOL="$DLLTOOL"
14012
14013 # Used on cygwin: object dumper.
14014 OBJDUMP="$OBJDUMP"
14015
14016 # Used on cygwin: assembler.
14017 AS="$AS"
14018
14019 # The name of the directory that contains temporary libtool files.
14020 objdir=$objdir
14021
14022 # How to create reloadable object files.
14023 reload_flag=$lt_reload_flag
14024 reload_cmds=$lt_reload_cmds
14025
14026 # How to pass a linker flag through the compiler.
14027 wl=$lt_lt_prog_compiler_wl_CXX
14028
14029 # Object file suffix (normally "o").
14030 objext="$ac_objext"
14031
14032 # Old archive suffix (normally "a").
14033 libext="$libext"
14034
14035 # Shared library suffix (normally ".so").
14036 shrext_cmds='$shrext_cmds'
14037
14038 # Executable file suffix (normally "").
14039 exeext="$exeext"
14040
14041 # Additional compiler flags for building library objects.
14042 pic_flag=$lt_lt_prog_compiler_pic_CXX
14043 pic_mode=$pic_mode
14044
14045 # What is the maximum length of a command?
14046 max_cmd_len=$lt_cv_sys_max_cmd_len
14047
14048 # Does compiler simultaneously support -c and -o options?
14049 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14050
14051 # Must we lock files when doing compilation?
14052 need_locks=$lt_need_locks
14053
14054 # Do we need the lib prefix for modules?
14055 need_lib_prefix=$need_lib_prefix
14056
14057 # Do we need a version for libraries?
14058 need_version=$need_version
14059
14060 # Whether dlopen is supported.
14061 dlopen_support=$enable_dlopen
14062
14063 # Whether dlopen of programs is supported.
14064 dlopen_self=$enable_dlopen_self
14065
14066 # Whether dlopen of statically linked programs is supported.
14067 dlopen_self_static=$enable_dlopen_self_static
14068
14069 # Compiler flag to prevent dynamic linking.
14070 link_static_flag=$lt_lt_prog_compiler_static_CXX
14071
14072 # Compiler flag to turn off builtin functions.
14073 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14074
14075 # Compiler flag to allow reflexive dlopens.
14076 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14077
14078 # Compiler flag to generate shared objects directly from archives.
14079 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14080
14081 # Compiler flag to generate thread-safe objects.
14082 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14083
14084 # Library versioning type.
14085 version_type=$version_type
14086
14087 # Format of library name prefix.
14088 libname_spec=$lt_libname_spec
14089
14090 # List of archive names.  First name is the real one, the rest are links.
14091 # The last name is the one that the linker finds with -lNAME.
14092 library_names_spec=$lt_library_names_spec
14093
14094 # The coded name of the library, if different from the real name.
14095 soname_spec=$lt_soname_spec
14096
14097 # Commands used to build and install an old-style archive.
14098 RANLIB=$lt_RANLIB
14099 old_archive_cmds=$lt_old_archive_cmds_CXX
14100 old_postinstall_cmds=$lt_old_postinstall_cmds
14101 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14102
14103 # Create an old-style archive from a shared archive.
14104 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14105
14106 # Create a temporary old-style archive to link instead of a shared archive.
14107 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14108
14109 # Commands used to build and install a shared archive.
14110 archive_cmds=$lt_archive_cmds_CXX
14111 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14112 postinstall_cmds=$lt_postinstall_cmds
14113 postuninstall_cmds=$lt_postuninstall_cmds
14114
14115 # Commands used to build a loadable module (assumed same as above if empty)
14116 module_cmds=$lt_module_cmds_CXX
14117 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14118
14119 # Commands to strip libraries.
14120 old_striplib=$lt_old_striplib
14121 striplib=$lt_striplib
14122
14123 # Dependencies to place before the objects being linked to create a
14124 # shared library.
14125 predep_objects=$lt_predep_objects_CXX
14126
14127 # Dependencies to place after the objects being linked to create a
14128 # shared library.
14129 postdep_objects=$lt_postdep_objects_CXX
14130
14131 # Dependencies to place before the objects being linked to create a
14132 # shared library.
14133 predeps=$lt_predeps_CXX
14134
14135 # Dependencies to place after the objects being linked to create a
14136 # shared library.
14137 postdeps=$lt_postdeps_CXX
14138
14139 # The directories searched by this compiler when creating a shared
14140 # library
14141 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14142
14143 # The library search path used internally by the compiler when linking
14144 # a shared library.
14145 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14146
14147 # Method to check whether dependent libraries are shared objects.
14148 deplibs_check_method=$lt_deplibs_check_method
14149
14150 # Command to use when deplibs_check_method == file_magic.
14151 file_magic_cmd=$lt_file_magic_cmd
14152
14153 # Flag that allows shared libraries with undefined symbols to be built.
14154 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14155
14156 # Flag that forces no undefined symbols.
14157 no_undefined_flag=$lt_no_undefined_flag_CXX
14158
14159 # Commands used to finish a libtool library installation in a directory.
14160 finish_cmds=$lt_finish_cmds
14161
14162 # Same as above, but a single script fragment to be evaled but not shown.
14163 finish_eval=$lt_finish_eval
14164
14165 # Take the output of nm and produce a listing of raw symbols and C names.
14166 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14167
14168 # Transform the output of nm in a proper C declaration
14169 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14170
14171 # Transform the output of nm in a C name address pair
14172 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14173
14174 # This is the shared library runtime path variable.
14175 runpath_var=$runpath_var
14176
14177 # This is the shared library path variable.
14178 shlibpath_var=$shlibpath_var
14179
14180 # Is shlibpath searched before the hard-coded library search path?
14181 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14182
14183 # How to hardcode a shared library path into an executable.
14184 hardcode_action=$hardcode_action_CXX
14185
14186 # Whether we should hardcode library paths into libraries.
14187 hardcode_into_libs=$hardcode_into_libs
14188
14189 # Flag to hardcode \$libdir into a binary during linking.
14190 # This must work even if \$libdir does not exist.
14191 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14192
14193 # If ld is used when linking, flag to hardcode \$libdir into
14194 # a binary during linking. This must work even if \$libdir does
14195 # not exist.
14196 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14197
14198 # Whether we need a single -rpath flag with a separated argument.
14199 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14200
14201 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14202 # resulting binary.
14203 hardcode_direct=$hardcode_direct_CXX
14204
14205 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14206 # resulting binary.
14207 hardcode_minus_L=$hardcode_minus_L_CXX
14208
14209 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14210 # the resulting binary.
14211 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14212
14213 # Set to yes if building a shared library automatically hardcodes DIR into the library
14214 # and all subsequent libraries and executables linked against it.
14215 hardcode_automatic=$hardcode_automatic_CXX
14216
14217 # Variables whose values should be saved in libtool wrapper scripts and
14218 # restored at relink time.
14219 variables_saved_for_relink="$variables_saved_for_relink"
14220
14221 # Whether libtool must link a program against all its dependency libraries.
14222 link_all_deplibs=$link_all_deplibs_CXX
14223
14224 # Compile-time system search path for libraries
14225 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14226
14227 # Run-time system search path for libraries
14228 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14229
14230 # Fix the shell variable \$srcfile for the compiler.
14231 fix_srcfile_path=$lt_fix_srcfile_path
14232
14233 # Set to yes if exported symbols are required.
14234 always_export_symbols=$always_export_symbols_CXX
14235
14236 # The commands to list exported symbols.
14237 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14238
14239 # The commands to extract the exported symbol list from a shared archive.
14240 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14241
14242 # Symbols that should not be listed in the preloaded symbols.
14243 exclude_expsyms=$lt_exclude_expsyms_CXX
14244
14245 # Symbols that must always be exported.
14246 include_expsyms=$lt_include_expsyms_CXX
14247
14248 # ### END LIBTOOL TAG CONFIG: $tagname
14249
14250 __EOF__
14251
14252
14253 else
14254   # If there is no Makefile yet, we rely on a make rule to execute
14255   # `config.status --recheck' to rerun these tests and create the
14256   # libtool script then.
14257   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14258   if test -f "$ltmain_in"; then
14259     test -f Makefile && make "$ltmain"
14260   fi
14261 fi
14262
14263
14264 ac_ext=c
14265 ac_cpp='$CPP $CPPFLAGS'
14266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14269
14270 CC=$lt_save_CC
14271 LDCXX=$LD
14272 LD=$lt_save_LD
14273 GCC=$lt_save_GCC
14274 with_gnu_ldcxx=$with_gnu_ld
14275 with_gnu_ld=$lt_save_with_gnu_ld
14276 lt_cv_path_LDCXX=$lt_cv_path_LD
14277 lt_cv_path_LD=$lt_save_path_LD
14278 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14279 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14280
14281         else
14282           tagname=""
14283         fi
14284         ;;
14285
14286       F77)
14287         if test -n "$F77" && test "X$F77" != "Xno"; then
14288
14289 ac_ext=f
14290 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14291 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14292 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14293
14294
14295 archive_cmds_need_lc_F77=no
14296 allow_undefined_flag_F77=
14297 always_export_symbols_F77=no
14298 archive_expsym_cmds_F77=
14299 export_dynamic_flag_spec_F77=
14300 hardcode_direct_F77=no
14301 hardcode_libdir_flag_spec_F77=
14302 hardcode_libdir_flag_spec_ld_F77=
14303 hardcode_libdir_separator_F77=
14304 hardcode_minus_L_F77=no
14305 hardcode_automatic_F77=no
14306 module_cmds_F77=
14307 module_expsym_cmds_F77=
14308 link_all_deplibs_F77=unknown
14309 old_archive_cmds_F77=$old_archive_cmds
14310 no_undefined_flag_F77=
14311 whole_archive_flag_spec_F77=
14312 enable_shared_with_static_runtimes_F77=no
14313
14314 # Source file extension for f77 test sources.
14315 ac_ext=f
14316
14317 # Object file extension for compiled f77 test sources.
14318 objext=o
14319 objext_F77=$objext
14320
14321 # Code to be used in simple compile tests
14322 lt_simple_compile_test_code="\
14323       subroutine t
14324       return
14325       end
14326 "
14327
14328 # Code to be used in simple link tests
14329 lt_simple_link_test_code="\
14330       program t
14331       end
14332 "
14333
14334 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14335
14336 # If no C compiler was specified, use CC.
14337 LTCC=${LTCC-"$CC"}
14338
14339 # If no C compiler flags were specified, use CFLAGS.
14340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14341
14342 # Allow CC to be a program name with arguments.
14343 compiler=$CC
14344
14345
14346 # save warnings/boilerplate of simple test code
14347 ac_outfile=conftest.$ac_objext
14348 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14349 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14350 _lt_compiler_boilerplate=`cat conftest.err`
14351 $rm conftest*
14352
14353 ac_outfile=conftest.$ac_objext
14354 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14355 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14356 _lt_linker_boilerplate=`cat conftest.err`
14357 $rm -r conftest*
14358
14359
14360 # Allow CC to be a program name with arguments.
14361 lt_save_CC="$CC"
14362 CC=${F77-"f77"}
14363 compiler=$CC
14364 compiler_F77=$CC
14365 for cc_temp in $compiler""; do
14366   case $cc_temp in
14367     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14368     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14369     \-*) ;;
14370     *) break;;
14371   esac
14372 done
14373 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14374
14375
14376 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14377 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14378 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14379 echo "${ECHO_T}$can_build_shared" >&6; }
14380
14381 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14382 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14383 test "$can_build_shared" = "no" && enable_shared=no
14384
14385 # On AIX, shared libraries and static libraries use the same namespace, and
14386 # are all built from PIC.
14387 case $host_os in
14388 aix3*)
14389   test "$enable_shared" = yes && enable_static=no
14390   if test -n "$RANLIB"; then
14391     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14392     postinstall_cmds='$RANLIB $lib'
14393   fi
14394   ;;
14395 aix[4-9]*)
14396   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14397     test "$enable_shared" = yes && enable_static=no
14398   fi
14399   ;;
14400 esac
14401 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14402 echo "${ECHO_T}$enable_shared" >&6; }
14403
14404 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14405 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14406 # Make sure either enable_shared or enable_static is yes.
14407 test "$enable_shared" = yes || enable_static=yes
14408 { echo "$as_me:$LINENO: result: $enable_static" >&5
14409 echo "${ECHO_T}$enable_static" >&6; }
14410
14411 GCC_F77="$G77"
14412 LD_F77="$LD"
14413
14414 lt_prog_compiler_wl_F77=
14415 lt_prog_compiler_pic_F77=
14416 lt_prog_compiler_static_F77=
14417
14418 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14419 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14420
14421   if test "$GCC" = yes; then
14422     lt_prog_compiler_wl_F77='-Wl,'
14423     lt_prog_compiler_static_F77='-static'
14424
14425     case $host_os in
14426       aix*)
14427       # All AIX code is PIC.
14428       if test "$host_cpu" = ia64; then
14429         # AIX 5 now supports IA64 processor
14430         lt_prog_compiler_static_F77='-Bstatic'
14431       fi
14432       ;;
14433
14434     amigaos*)
14435       # FIXME: we need at least 68020 code to build shared libraries, but
14436       # adding the `-m68020' flag to GCC prevents building anything better,
14437       # like `-m68040'.
14438       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14439       ;;
14440
14441     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14442       # PIC is the default for these OSes.
14443       ;;
14444
14445     mingw* | cygwin* | pw32* | os2*)
14446       # This hack is so that the source file can tell whether it is being
14447       # built for inclusion in a dll (and should export symbols for example).
14448       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14449       # (--disable-auto-import) libraries
14450       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14451       ;;
14452
14453     darwin* | rhapsody*)
14454       # PIC is the default on this platform
14455       # Common symbols not allowed in MH_DYLIB files
14456       lt_prog_compiler_pic_F77='-fno-common'
14457       ;;
14458
14459     interix[3-9]*)
14460       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14461       # Instead, we relocate shared libraries at runtime.
14462       ;;
14463
14464     msdosdjgpp*)
14465       # Just because we use GCC doesn't mean we suddenly get shared libraries
14466       # on systems that don't support them.
14467       lt_prog_compiler_can_build_shared_F77=no
14468       enable_shared=no
14469       ;;
14470
14471     sysv4*MP*)
14472       if test -d /usr/nec; then
14473         lt_prog_compiler_pic_F77=-Kconform_pic
14474       fi
14475       ;;
14476
14477     hpux*)
14478       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14479       # not for PA HP-UX.
14480       case $host_cpu in
14481       hppa*64*|ia64*)
14482         # +Z the default
14483         ;;
14484       *)
14485         lt_prog_compiler_pic_F77='-fPIC'
14486         ;;
14487       esac
14488       ;;
14489
14490     *)
14491       lt_prog_compiler_pic_F77='-fPIC'
14492       ;;
14493     esac
14494   else
14495     # PORTME Check for flag to pass linker flags through the system compiler.
14496     case $host_os in
14497     aix*)
14498       lt_prog_compiler_wl_F77='-Wl,'
14499       if test "$host_cpu" = ia64; then
14500         # AIX 5 now supports IA64 processor
14501         lt_prog_compiler_static_F77='-Bstatic'
14502       else
14503         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14504       fi
14505       ;;
14506       darwin*)
14507         # PIC is the default on this platform
14508         # Common symbols not allowed in MH_DYLIB files
14509        case $cc_basename in
14510          xlc*)
14511          lt_prog_compiler_pic_F77='-qnocommon'
14512          lt_prog_compiler_wl_F77='-Wl,'
14513          ;;
14514        esac
14515        ;;
14516
14517     mingw* | cygwin* | pw32* | os2*)
14518       # This hack is so that the source file can tell whether it is being
14519       # built for inclusion in a dll (and should export symbols for example).
14520       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14521       ;;
14522
14523     hpux9* | hpux10* | hpux11*)
14524       lt_prog_compiler_wl_F77='-Wl,'
14525       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14526       # not for PA HP-UX.
14527       case $host_cpu in
14528       hppa*64*|ia64*)
14529         # +Z the default
14530         ;;
14531       *)
14532         lt_prog_compiler_pic_F77='+Z'
14533         ;;
14534       esac
14535       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14536       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14537       ;;
14538
14539     irix5* | irix6* | nonstopux*)
14540       lt_prog_compiler_wl_F77='-Wl,'
14541       # PIC (with -KPIC) is the default.
14542       lt_prog_compiler_static_F77='-non_shared'
14543       ;;
14544
14545     newsos6)
14546       lt_prog_compiler_pic_F77='-KPIC'
14547       lt_prog_compiler_static_F77='-Bstatic'
14548       ;;
14549
14550     linux* | k*bsd*-gnu)
14551       case $cc_basename in
14552       icc* | ecc*)
14553         lt_prog_compiler_wl_F77='-Wl,'
14554         lt_prog_compiler_pic_F77='-KPIC'
14555         lt_prog_compiler_static_F77='-static'
14556         ;;
14557       pgcc* | pgf77* | pgf90* | pgf95*)
14558         # Portland Group compilers (*not* the Pentium gcc compiler,
14559         # which looks to be a dead project)
14560         lt_prog_compiler_wl_F77='-Wl,'
14561         lt_prog_compiler_pic_F77='-fpic'
14562         lt_prog_compiler_static_F77='-Bstatic'
14563         ;;
14564       ccc*)
14565         lt_prog_compiler_wl_F77='-Wl,'
14566         # All Alpha code is PIC.
14567         lt_prog_compiler_static_F77='-non_shared'
14568         ;;
14569       *)
14570         case `$CC -V 2>&1 | sed 5q` in
14571         *Sun\ C*)
14572           # Sun C 5.9
14573           lt_prog_compiler_pic_F77='-KPIC'
14574           lt_prog_compiler_static_F77='-Bstatic'
14575           lt_prog_compiler_wl_F77='-Wl,'
14576           ;;
14577         *Sun\ F*)
14578           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14579           lt_prog_compiler_pic_F77='-KPIC'
14580           lt_prog_compiler_static_F77='-Bstatic'
14581           lt_prog_compiler_wl_F77=''
14582           ;;
14583         esac
14584         ;;
14585       esac
14586       ;;
14587
14588     osf3* | osf4* | osf5*)
14589       lt_prog_compiler_wl_F77='-Wl,'
14590       # All OSF/1 code is PIC.
14591       lt_prog_compiler_static_F77='-non_shared'
14592       ;;
14593
14594     rdos*)
14595       lt_prog_compiler_static_F77='-non_shared'
14596       ;;
14597
14598     solaris*)
14599       lt_prog_compiler_pic_F77='-KPIC'
14600       lt_prog_compiler_static_F77='-Bstatic'
14601       case $cc_basename in
14602       f77* | f90* | f95*)
14603         lt_prog_compiler_wl_F77='-Qoption ld ';;
14604       *)
14605         lt_prog_compiler_wl_F77='-Wl,';;
14606       esac
14607       ;;
14608
14609     sunos4*)
14610       lt_prog_compiler_wl_F77='-Qoption ld '
14611       lt_prog_compiler_pic_F77='-PIC'
14612       lt_prog_compiler_static_F77='-Bstatic'
14613       ;;
14614
14615     sysv4 | sysv4.2uw2* | sysv4.3*)
14616       lt_prog_compiler_wl_F77='-Wl,'
14617       lt_prog_compiler_pic_F77='-KPIC'
14618       lt_prog_compiler_static_F77='-Bstatic'
14619       ;;
14620
14621     sysv4*MP*)
14622       if test -d /usr/nec ;then
14623         lt_prog_compiler_pic_F77='-Kconform_pic'
14624         lt_prog_compiler_static_F77='-Bstatic'
14625       fi
14626       ;;
14627
14628     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14629       lt_prog_compiler_wl_F77='-Wl,'
14630       lt_prog_compiler_pic_F77='-KPIC'
14631       lt_prog_compiler_static_F77='-Bstatic'
14632       ;;
14633
14634     unicos*)
14635       lt_prog_compiler_wl_F77='-Wl,'
14636       lt_prog_compiler_can_build_shared_F77=no
14637       ;;
14638
14639     uts4*)
14640       lt_prog_compiler_pic_F77='-pic'
14641       lt_prog_compiler_static_F77='-Bstatic'
14642       ;;
14643
14644     *)
14645       lt_prog_compiler_can_build_shared_F77=no
14646       ;;
14647     esac
14648   fi
14649
14650 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14651 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14652
14653 #
14654 # Check to make sure the PIC flag actually works.
14655 #
14656 if test -n "$lt_prog_compiler_pic_F77"; then
14657
14658 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14659 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14660 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14661   echo $ECHO_N "(cached) $ECHO_C" >&6
14662 else
14663   lt_cv_prog_compiler_pic_works_F77=no
14664   ac_outfile=conftest.$ac_objext
14665    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14666    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14667    # Insert the option either (1) after the last *FLAGS variable, or
14668    # (2) before a word containing "conftest.", or (3) at the end.
14669    # Note that $ac_compile itself does not contain backslashes and begins
14670    # with a dollar sign (not a hyphen), so the echo should work correctly.
14671    # The option is referenced via a variable to avoid confusing sed.
14672    lt_compile=`echo "$ac_compile" | $SED \
14673    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14674    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14675    -e 's:$: $lt_compiler_flag:'`
14676    (eval echo "\"\$as_me:14676: $lt_compile\"" >&5)
14677    (eval "$lt_compile" 2>conftest.err)
14678    ac_status=$?
14679    cat conftest.err >&5
14680    echo "$as_me:14680: \$? = $ac_status" >&5
14681    if (exit $ac_status) && test -s "$ac_outfile"; then
14682      # The compiler can only warn and ignore the option if not recognized
14683      # So say no if there are warnings other than the usual output.
14684      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14685      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14686      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14687        lt_cv_prog_compiler_pic_works_F77=yes
14688      fi
14689    fi
14690    $rm conftest*
14691
14692 fi
14693 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14694 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14695
14696 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14697     case $lt_prog_compiler_pic_F77 in
14698      "" | " "*) ;;
14699      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14700      esac
14701 else
14702     lt_prog_compiler_pic_F77=
14703      lt_prog_compiler_can_build_shared_F77=no
14704 fi
14705
14706 fi
14707 case $host_os in
14708   # For platforms which do not support PIC, -DPIC is meaningless:
14709   *djgpp*)
14710     lt_prog_compiler_pic_F77=
14711     ;;
14712   *)
14713     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14714     ;;
14715 esac
14716
14717 #
14718 # Check to make sure the static flag actually works.
14719 #
14720 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14721 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14722 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14723 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14724   echo $ECHO_N "(cached) $ECHO_C" >&6
14725 else
14726   lt_cv_prog_compiler_static_works_F77=no
14727    save_LDFLAGS="$LDFLAGS"
14728    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14729    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14730    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14731      # The linker can only warn and ignore the option if not recognized
14732      # So say no if there are warnings
14733      if test -s conftest.err; then
14734        # Append any errors to the config.log.
14735        cat conftest.err 1>&5
14736        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14737        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14738        if diff conftest.exp conftest.er2 >/dev/null; then
14739          lt_cv_prog_compiler_static_works_F77=yes
14740        fi
14741      else
14742        lt_cv_prog_compiler_static_works_F77=yes
14743      fi
14744    fi
14745    $rm -r conftest*
14746    LDFLAGS="$save_LDFLAGS"
14747
14748 fi
14749 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14750 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14751
14752 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14753     :
14754 else
14755     lt_prog_compiler_static_F77=
14756 fi
14757
14758
14759 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14760 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14761 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14762   echo $ECHO_N "(cached) $ECHO_C" >&6
14763 else
14764   lt_cv_prog_compiler_c_o_F77=no
14765    $rm -r conftest 2>/dev/null
14766    mkdir conftest
14767    cd conftest
14768    mkdir out
14769    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14770
14771    lt_compiler_flag="-o out/conftest2.$ac_objext"
14772    # Insert the option either (1) after the last *FLAGS variable, or
14773    # (2) before a word containing "conftest.", or (3) at the end.
14774    # Note that $ac_compile itself does not contain backslashes and begins
14775    # with a dollar sign (not a hyphen), so the echo should work correctly.
14776    lt_compile=`echo "$ac_compile" | $SED \
14777    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14778    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14779    -e 's:$: $lt_compiler_flag:'`
14780    (eval echo "\"\$as_me:14780: $lt_compile\"" >&5)
14781    (eval "$lt_compile" 2>out/conftest.err)
14782    ac_status=$?
14783    cat out/conftest.err >&5
14784    echo "$as_me:14784: \$? = $ac_status" >&5
14785    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14786    then
14787      # The compiler can only warn and ignore the option if not recognized
14788      # So say no if there are warnings
14789      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14790      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14791      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14792        lt_cv_prog_compiler_c_o_F77=yes
14793      fi
14794    fi
14795    chmod u+w . 2>&5
14796    $rm conftest*
14797    # SGI C++ compiler will create directory out/ii_files/ for
14798    # template instantiation
14799    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14800    $rm out/* && rmdir out
14801    cd ..
14802    rmdir conftest
14803    $rm conftest*
14804
14805 fi
14806 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14807 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14808
14809
14810 hard_links="nottested"
14811 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14812   # do not overwrite the value of need_locks provided by the user
14813   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14814 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14815   hard_links=yes
14816   $rm conftest*
14817   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14818   touch conftest.a
14819   ln conftest.a conftest.b 2>&5 || hard_links=no
14820   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14821   { echo "$as_me:$LINENO: result: $hard_links" >&5
14822 echo "${ECHO_T}$hard_links" >&6; }
14823   if test "$hard_links" = no; then
14824     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14825 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14826     need_locks=warn
14827   fi
14828 else
14829   need_locks=no
14830 fi
14831
14832 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14833 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14834
14835   runpath_var=
14836   allow_undefined_flag_F77=
14837   enable_shared_with_static_runtimes_F77=no
14838   archive_cmds_F77=
14839   archive_expsym_cmds_F77=
14840   old_archive_From_new_cmds_F77=
14841   old_archive_from_expsyms_cmds_F77=
14842   export_dynamic_flag_spec_F77=
14843   whole_archive_flag_spec_F77=
14844   thread_safe_flag_spec_F77=
14845   hardcode_libdir_flag_spec_F77=
14846   hardcode_libdir_flag_spec_ld_F77=
14847   hardcode_libdir_separator_F77=
14848   hardcode_direct_F77=no
14849   hardcode_minus_L_F77=no
14850   hardcode_shlibpath_var_F77=unsupported
14851   link_all_deplibs_F77=unknown
14852   hardcode_automatic_F77=no
14853   module_cmds_F77=
14854   module_expsym_cmds_F77=
14855   always_export_symbols_F77=no
14856   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14857   # include_expsyms should be a list of space-separated symbols to be *always*
14858   # included in the symbol list
14859   include_expsyms_F77=
14860   # exclude_expsyms can be an extended regexp of symbols to exclude
14861   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14862   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14863   # as well as any symbol that contains `d'.
14864   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14865   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14866   # platforms (ab)use it in PIC code, but their linkers get confused if
14867   # the symbol is explicitly referenced.  Since portable code cannot
14868   # rely on this symbol name, it's probably fine to never include it in
14869   # preloaded symbol tables.
14870   # Exclude shared library initialization/finalization symbols.
14871   extract_expsyms_cmds=
14872   # Just being paranoid about ensuring that cc_basename is set.
14873   for cc_temp in $compiler""; do
14874   case $cc_temp in
14875     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14876     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14877     \-*) ;;
14878     *) break;;
14879   esac
14880 done
14881 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14882
14883   case $host_os in
14884   cygwin* | mingw* | pw32*)
14885     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14886     # When not using gcc, we currently assume that we are using
14887     # Microsoft Visual C++.
14888     if test "$GCC" != yes; then
14889       with_gnu_ld=no
14890     fi
14891     ;;
14892   interix*)
14893     # we just hope/assume this is gcc and not c89 (= MSVC++)
14894     with_gnu_ld=yes
14895     ;;
14896   openbsd*)
14897     with_gnu_ld=no
14898     ;;
14899   esac
14900
14901   ld_shlibs_F77=yes
14902   if test "$with_gnu_ld" = yes; then
14903     # If archive_cmds runs LD, not CC, wlarc should be empty
14904     wlarc='${wl}'
14905
14906     # Set some defaults for GNU ld with shared library support. These
14907     # are reset later if shared libraries are not supported. Putting them
14908     # here allows them to be overridden if necessary.
14909     runpath_var=LD_RUN_PATH
14910     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14911     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14912     # ancient GNU ld didn't support --whole-archive et. al.
14913     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14914         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14915       else
14916         whole_archive_flag_spec_F77=
14917     fi
14918     supports_anon_versioning=no
14919     case `$LD -v 2>/dev/null` in
14920       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14921       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14922       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14923       *\ 2.11.*) ;; # other 2.11 versions
14924       *) supports_anon_versioning=yes ;;
14925     esac
14926
14927     # See if GNU ld supports shared libraries.
14928     case $host_os in
14929     aix[3-9]*)
14930       # On AIX/PPC, the GNU linker is very broken
14931       if test "$host_cpu" != ia64; then
14932         ld_shlibs_F77=no
14933         cat <<EOF 1>&2
14934
14935 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14936 *** to be unable to reliably create shared libraries on AIX.
14937 *** Therefore, libtool is disabling shared libraries support.  If you
14938 *** really care for shared libraries, you may want to modify your PATH
14939 *** so that a non-GNU linker is found, and then restart.
14940
14941 EOF
14942       fi
14943       ;;
14944
14945     amigaos*)
14946       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)'
14947       hardcode_libdir_flag_spec_F77='-L$libdir'
14948       hardcode_minus_L_F77=yes
14949
14950       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14951       # that the semantics of dynamic libraries on AmigaOS, at least up
14952       # to version 4, is to share data among multiple programs linked
14953       # with the same dynamic library.  Since this doesn't match the
14954       # behavior of shared libraries on other platforms, we can't use
14955       # them.
14956       ld_shlibs_F77=no
14957       ;;
14958
14959     beos*)
14960       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14961         allow_undefined_flag_F77=unsupported
14962         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14963         # support --undefined.  This deserves some investigation.  FIXME
14964         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14965       else
14966         ld_shlibs_F77=no
14967       fi
14968       ;;
14969
14970     cygwin* | mingw* | pw32*)
14971       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14972       # as there is no search path for DLLs.
14973       hardcode_libdir_flag_spec_F77='-L$libdir'
14974       allow_undefined_flag_F77=unsupported
14975       always_export_symbols_F77=no
14976       enable_shared_with_static_runtimes_F77=yes
14977       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14978
14979       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14980         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14981         # If the export-symbols file already is a .def file (1st line
14982         # is EXPORTS), use it as is; otherwise, prepend...
14983         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14984           cp $export_symbols $output_objdir/$soname.def;
14985         else
14986           echo EXPORTS > $output_objdir/$soname.def;
14987           cat $export_symbols >> $output_objdir/$soname.def;
14988         fi~
14989         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14990       else
14991         ld_shlibs_F77=no
14992       fi
14993       ;;
14994
14995     interix[3-9]*)
14996       hardcode_direct_F77=no
14997       hardcode_shlibpath_var_F77=no
14998       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14999       export_dynamic_flag_spec_F77='${wl}-E'
15000       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15001       # Instead, shared libraries are loaded at an image base (0x10000000 by
15002       # default) and relocated if they conflict, which is a slow very memory
15003       # consuming and fragmenting process.  To avoid this, we pick a random,
15004       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15005       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15006       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'
15007       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'
15008       ;;
15009
15010     gnu* | linux* | k*bsd*-gnu)
15011       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15012         tmp_addflag=
15013         case $cc_basename,$host_cpu in
15014         pgcc*)                          # Portland Group C compiler
15015           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'
15016           tmp_addflag=' $pic_flag'
15017           ;;
15018         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15019           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'
15020           tmp_addflag=' $pic_flag -Mnomain' ;;
15021         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15022           tmp_addflag=' -i_dynamic' ;;
15023         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15024           tmp_addflag=' -i_dynamic -nofor_main' ;;
15025         ifc* | ifort*)                  # Intel Fortran compiler
15026           tmp_addflag=' -nofor_main' ;;
15027         esac
15028         case `$CC -V 2>&1 | sed 5q` in
15029         *Sun\ C*)                       # Sun C 5.9
15030           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15031           tmp_sharedflag='-G' ;;
15032         *Sun\ F*)                       # Sun Fortran 8.3
15033           tmp_sharedflag='-G' ;;
15034         *)
15035           tmp_sharedflag='-shared' ;;
15036         esac
15037         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15038
15039         if test $supports_anon_versioning = yes; then
15040           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15041   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15042   $echo "local: *; };" >> $output_objdir/$libname.ver~
15043           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15044         fi
15045         link_all_deplibs_F77=no
15046       else
15047         ld_shlibs_F77=no
15048       fi
15049       ;;
15050
15051     netbsd* | netbsdelf*-gnu)
15052       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15053         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15054         wlarc=
15055       else
15056         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15057         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15058       fi
15059       ;;
15060
15061     solaris*)
15062       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15063         ld_shlibs_F77=no
15064         cat <<EOF 1>&2
15065
15066 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15067 *** create shared libraries on Solaris systems.  Therefore, libtool
15068 *** is disabling shared libraries support.  We urge you to upgrade GNU
15069 *** binutils to release 2.9.1 or newer.  Another option is to modify
15070 *** your PATH or compiler configuration so that the native linker is
15071 *** used, and then restart.
15072
15073 EOF
15074       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15075         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15076         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15077       else
15078         ld_shlibs_F77=no
15079       fi
15080       ;;
15081
15082     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15083       case `$LD -v 2>&1` in
15084         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15085         ld_shlibs_F77=no
15086         cat <<_LT_EOF 1>&2
15087
15088 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15089 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15090 *** is disabling shared libraries support.  We urge you to upgrade GNU
15091 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15092 *** your PATH or compiler configuration so that the native linker is
15093 *** used, and then restart.
15094
15095 _LT_EOF
15096         ;;
15097         *)
15098           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15099             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15100             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15101             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15102           else
15103             ld_shlibs_F77=no
15104           fi
15105         ;;
15106       esac
15107       ;;
15108
15109     sunos4*)
15110       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15111       wlarc=
15112       hardcode_direct_F77=yes
15113       hardcode_shlibpath_var_F77=no
15114       ;;
15115
15116     *)
15117       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15118         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15119         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15120       else
15121         ld_shlibs_F77=no
15122       fi
15123       ;;
15124     esac
15125
15126     if test "$ld_shlibs_F77" = no; then
15127       runpath_var=
15128       hardcode_libdir_flag_spec_F77=
15129       export_dynamic_flag_spec_F77=
15130       whole_archive_flag_spec_F77=
15131     fi
15132   else
15133     # PORTME fill in a description of your system's linker (not GNU ld)
15134     case $host_os in
15135     aix3*)
15136       allow_undefined_flag_F77=unsupported
15137       always_export_symbols_F77=yes
15138       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'
15139       # Note: this linker hardcodes the directories in LIBPATH if there
15140       # are no directories specified by -L.
15141       hardcode_minus_L_F77=yes
15142       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15143         # Neither direct hardcoding nor static linking is supported with a
15144         # broken collect2.
15145         hardcode_direct_F77=unsupported
15146       fi
15147       ;;
15148
15149     aix[4-9]*)
15150       if test "$host_cpu" = ia64; then
15151         # On IA64, the linker does run time linking by default, so we don't
15152         # have to do anything special.
15153         aix_use_runtimelinking=no
15154         exp_sym_flag='-Bexport'
15155         no_entry_flag=""
15156       else
15157         # If we're using GNU nm, then we don't want the "-C" option.
15158         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15159         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15160           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'
15161         else
15162           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'
15163         fi
15164         aix_use_runtimelinking=no
15165
15166         # Test if we are trying to use run time linking or normal
15167         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15168         # need to do runtime linking.
15169         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15170           for ld_flag in $LDFLAGS; do
15171           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15172             aix_use_runtimelinking=yes
15173             break
15174           fi
15175           done
15176           ;;
15177         esac
15178
15179         exp_sym_flag='-bexport'
15180         no_entry_flag='-bnoentry'
15181       fi
15182
15183       # When large executables or shared objects are built, AIX ld can
15184       # have problems creating the table of contents.  If linking a library
15185       # or program results in "error TOC overflow" add -mminimal-toc to
15186       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15187       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15188
15189       archive_cmds_F77=''
15190       hardcode_direct_F77=yes
15191       hardcode_libdir_separator_F77=':'
15192       link_all_deplibs_F77=yes
15193
15194       if test "$GCC" = yes; then
15195         case $host_os in aix4.[012]|aix4.[012].*)
15196         # We only want to do this on AIX 4.2 and lower, the check
15197         # below for broken collect2 doesn't work under 4.3+
15198           collect2name=`${CC} -print-prog-name=collect2`
15199           if test -f "$collect2name" && \
15200            strings "$collect2name" | grep resolve_lib_name >/dev/null
15201           then
15202           # We have reworked collect2
15203           :
15204           else
15205           # We have old collect2
15206           hardcode_direct_F77=unsupported
15207           # It fails to find uninstalled libraries when the uninstalled
15208           # path is not listed in the libpath.  Setting hardcode_minus_L
15209           # to unsupported forces relinking
15210           hardcode_minus_L_F77=yes
15211           hardcode_libdir_flag_spec_F77='-L$libdir'
15212           hardcode_libdir_separator_F77=
15213           fi
15214           ;;
15215         esac
15216         shared_flag='-shared'
15217         if test "$aix_use_runtimelinking" = yes; then
15218           shared_flag="$shared_flag "'${wl}-G'
15219         fi
15220       else
15221         # not using gcc
15222         if test "$host_cpu" = ia64; then
15223         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15224         # chokes on -Wl,-G. The following line is correct:
15225           shared_flag='-G'
15226         else
15227           if test "$aix_use_runtimelinking" = yes; then
15228             shared_flag='${wl}-G'
15229           else
15230             shared_flag='${wl}-bM:SRE'
15231           fi
15232         fi
15233       fi
15234
15235       # It seems that -bexpall does not export symbols beginning with
15236       # underscore (_), so it is better to generate a list of symbols to export.
15237       always_export_symbols_F77=yes
15238       if test "$aix_use_runtimelinking" = yes; then
15239         # Warning - without using the other runtime loading flags (-brtl),
15240         # -berok will link without error, but may produce a broken library.
15241         allow_undefined_flag_F77='-berok'
15242        # Determine the default libpath from the value encoded in an empty executable.
15243        cat >conftest.$ac_ext <<_ACEOF
15244       program main
15245
15246       end
15247 _ACEOF
15248 rm -f conftest.$ac_objext conftest$ac_exeext
15249 if { (ac_try="$ac_link"
15250 case "(($ac_try" in
15251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252   *) ac_try_echo=$ac_try;;
15253 esac
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255   (eval "$ac_link") 2>conftest.er1
15256   ac_status=$?
15257   grep -v '^ *+' conftest.er1 >conftest.err
15258   rm -f conftest.er1
15259   cat conftest.err >&5
15260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261   (exit $ac_status); } && {
15262          test -z "$ac_f77_werror_flag" ||
15263          test ! -s conftest.err
15264        } && test -s conftest$ac_exeext &&
15265        $as_test_x conftest$ac_exeext; then
15266
15267 lt_aix_libpath_sed='
15268     /Import File Strings/,/^$/ {
15269         /^0/ {
15270             s/^0  *\(.*\)$/\1/
15271             p
15272         }
15273     }'
15274 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15275 # Check for a 64-bit object if we didn't find anything.
15276 if test -z "$aix_libpath"; then
15277   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15278 fi
15279 else
15280   echo "$as_me: failed program was:" >&5
15281 sed 's/^/| /' conftest.$ac_ext >&5
15282
15283
15284 fi
15285
15286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15287       conftest$ac_exeext conftest.$ac_ext
15288 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15289
15290        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15291         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"
15292        else
15293         if test "$host_cpu" = ia64; then
15294           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15295           allow_undefined_flag_F77="-z nodefs"
15296           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"
15297         else
15298          # Determine the default libpath from the value encoded in an empty executable.
15299          cat >conftest.$ac_ext <<_ACEOF
15300       program main
15301
15302       end
15303 _ACEOF
15304 rm -f conftest.$ac_objext conftest$ac_exeext
15305 if { (ac_try="$ac_link"
15306 case "(($ac_try" in
15307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308   *) ac_try_echo=$ac_try;;
15309 esac
15310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311   (eval "$ac_link") 2>conftest.er1
15312   ac_status=$?
15313   grep -v '^ *+' conftest.er1 >conftest.err
15314   rm -f conftest.er1
15315   cat conftest.err >&5
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); } && {
15318          test -z "$ac_f77_werror_flag" ||
15319          test ! -s conftest.err
15320        } && test -s conftest$ac_exeext &&
15321        $as_test_x conftest$ac_exeext; then
15322
15323 lt_aix_libpath_sed='
15324     /Import File Strings/,/^$/ {
15325         /^0/ {
15326             s/^0  *\(.*\)$/\1/
15327             p
15328         }
15329     }'
15330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15331 # Check for a 64-bit object if we didn't find anything.
15332 if test -z "$aix_libpath"; then
15333   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15334 fi
15335 else
15336   echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15338
15339
15340 fi
15341
15342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15343       conftest$ac_exeext conftest.$ac_ext
15344 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15345
15346          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15347           # Warning - without using the other run time loading flags,
15348           # -berok will link without error, but may produce a broken library.
15349           no_undefined_flag_F77=' ${wl}-bernotok'
15350           allow_undefined_flag_F77=' ${wl}-berok'
15351           # Exported symbols can be pulled into shared objects from archives
15352           whole_archive_flag_spec_F77='$convenience'
15353           archive_cmds_need_lc_F77=yes
15354           # This is similar to how AIX traditionally builds its shared libraries.
15355           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'
15356         fi
15357       fi
15358       ;;
15359
15360     amigaos*)
15361       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)'
15362       hardcode_libdir_flag_spec_F77='-L$libdir'
15363       hardcode_minus_L_F77=yes
15364       # see comment about different semantics on the GNU ld section
15365       ld_shlibs_F77=no
15366       ;;
15367
15368     bsdi[45]*)
15369       export_dynamic_flag_spec_F77=-rdynamic
15370       ;;
15371
15372     cygwin* | mingw* | pw32*)
15373       # When not using gcc, we currently assume that we are using
15374       # Microsoft Visual C++.
15375       # hardcode_libdir_flag_spec is actually meaningless, as there is
15376       # no search path for DLLs.
15377       hardcode_libdir_flag_spec_F77=' '
15378       allow_undefined_flag_F77=unsupported
15379       # Tell ltmain to make .lib files, not .a files.
15380       libext=lib
15381       # Tell ltmain to make .dll files, not .so files.
15382       shrext_cmds=".dll"
15383       # FIXME: Setting linknames here is a bad hack.
15384       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15385       # The linker will automatically build a .lib file if we build a DLL.
15386       old_archive_From_new_cmds_F77='true'
15387       # FIXME: Should let the user specify the lib program.
15388       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15389       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15390       enable_shared_with_static_runtimes_F77=yes
15391       ;;
15392
15393     darwin* | rhapsody*)
15394       case $host_os in
15395         rhapsody* | darwin1.[012])
15396          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15397          ;;
15398        *) # Darwin 1.3 on
15399          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15400            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15401          else
15402            case ${MACOSX_DEPLOYMENT_TARGET} in
15403              10.[012])
15404                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15405                ;;
15406              10.*)
15407                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15408                ;;
15409            esac
15410          fi
15411          ;;
15412       esac
15413       archive_cmds_need_lc_F77=no
15414       hardcode_direct_F77=no
15415       hardcode_automatic_F77=yes
15416       hardcode_shlibpath_var_F77=unsupported
15417       whole_archive_flag_spec_F77=''
15418       link_all_deplibs_F77=yes
15419     if test "$GCC" = yes ; then
15420         output_verbose_link_cmd='echo'
15421         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15422         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15423         archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15424         module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15425     else
15426       case $cc_basename in
15427         xlc*)
15428          output_verbose_link_cmd='echo'
15429          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15430          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15431           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15432          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15433           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}'
15434           ;;
15435        *)
15436          ld_shlibs_F77=no
15437           ;;
15438       esac
15439     fi
15440       ;;
15441
15442     dgux*)
15443       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15444       hardcode_libdir_flag_spec_F77='-L$libdir'
15445       hardcode_shlibpath_var_F77=no
15446       ;;
15447
15448     freebsd1*)
15449       ld_shlibs_F77=no
15450       ;;
15451
15452     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15453     # support.  Future versions do this automatically, but an explicit c++rt0.o
15454     # does not break anything, and helps significantly (at the cost of a little
15455     # extra space).
15456     freebsd2.2*)
15457       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15458       hardcode_libdir_flag_spec_F77='-R$libdir'
15459       hardcode_direct_F77=yes
15460       hardcode_shlibpath_var_F77=no
15461       ;;
15462
15463     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15464     freebsd2*)
15465       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15466       hardcode_direct_F77=yes
15467       hardcode_minus_L_F77=yes
15468       hardcode_shlibpath_var_F77=no
15469       ;;
15470
15471     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15472     freebsd* | dragonfly*)
15473       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15474       hardcode_libdir_flag_spec_F77='-R$libdir'
15475       hardcode_direct_F77=yes
15476       hardcode_shlibpath_var_F77=no
15477       ;;
15478
15479     hpux9*)
15480       if test "$GCC" = yes; then
15481         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'
15482       else
15483         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'
15484       fi
15485       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15486       hardcode_libdir_separator_F77=:
15487       hardcode_direct_F77=yes
15488
15489       # hardcode_minus_L: Not really in the search PATH,
15490       # but as the default location of the library.
15491       hardcode_minus_L_F77=yes
15492       export_dynamic_flag_spec_F77='${wl}-E'
15493       ;;
15494
15495     hpux10*)
15496       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15497         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15498       else
15499         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15500       fi
15501       if test "$with_gnu_ld" = no; then
15502         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15503         hardcode_libdir_separator_F77=:
15504
15505         hardcode_direct_F77=yes
15506         export_dynamic_flag_spec_F77='${wl}-E'
15507
15508         # hardcode_minus_L: Not really in the search PATH,
15509         # but as the default location of the library.
15510         hardcode_minus_L_F77=yes
15511       fi
15512       ;;
15513
15514     hpux11*)
15515       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15516         case $host_cpu in
15517         hppa*64*)
15518           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15519           ;;
15520         ia64*)
15521           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15522           ;;
15523         *)
15524           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15525           ;;
15526         esac
15527       else
15528         case $host_cpu in
15529         hppa*64*)
15530           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15531           ;;
15532         ia64*)
15533           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15534           ;;
15535         *)
15536           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15537           ;;
15538         esac
15539       fi
15540       if test "$with_gnu_ld" = no; then
15541         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15542         hardcode_libdir_separator_F77=:
15543
15544         case $host_cpu in
15545         hppa*64*|ia64*)
15546           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15547           hardcode_direct_F77=no
15548           hardcode_shlibpath_var_F77=no
15549           ;;
15550         *)
15551           hardcode_direct_F77=yes
15552           export_dynamic_flag_spec_F77='${wl}-E'
15553
15554           # hardcode_minus_L: Not really in the search PATH,
15555           # but as the default location of the library.
15556           hardcode_minus_L_F77=yes
15557           ;;
15558         esac
15559       fi
15560       ;;
15561
15562     irix5* | irix6* | nonstopux*)
15563       if test "$GCC" = yes; then
15564         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'
15565       else
15566         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'
15567         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15568       fi
15569       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15570       hardcode_libdir_separator_F77=:
15571       link_all_deplibs_F77=yes
15572       ;;
15573
15574     netbsd* | netbsdelf*-gnu)
15575       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15576         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15577       else
15578         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15579       fi
15580       hardcode_libdir_flag_spec_F77='-R$libdir'
15581       hardcode_direct_F77=yes
15582       hardcode_shlibpath_var_F77=no
15583       ;;
15584
15585     newsos6)
15586       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15587       hardcode_direct_F77=yes
15588       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15589       hardcode_libdir_separator_F77=:
15590       hardcode_shlibpath_var_F77=no
15591       ;;
15592
15593     openbsd*)
15594       if test -f /usr/libexec/ld.so; then
15595         hardcode_direct_F77=yes
15596         hardcode_shlibpath_var_F77=no
15597         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15598           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15599           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15600           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15601           export_dynamic_flag_spec_F77='${wl}-E'
15602         else
15603           case $host_os in
15604            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15605              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15606              hardcode_libdir_flag_spec_F77='-R$libdir'
15607              ;;
15608            *)
15609              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15610              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15611              ;;
15612           esac
15613         fi
15614       else
15615         ld_shlibs_F77=no
15616       fi
15617       ;;
15618
15619     os2*)
15620       hardcode_libdir_flag_spec_F77='-L$libdir'
15621       hardcode_minus_L_F77=yes
15622       allow_undefined_flag_F77=unsupported
15623       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'
15624       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15625       ;;
15626
15627     osf3*)
15628       if test "$GCC" = yes; then
15629         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15630         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'
15631       else
15632         allow_undefined_flag_F77=' -expect_unresolved \*'
15633         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'
15634       fi
15635       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15636       hardcode_libdir_separator_F77=:
15637       ;;
15638
15639     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15640       if test "$GCC" = yes; then
15641         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15642         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'
15643         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15644       else
15645         allow_undefined_flag_F77=' -expect_unresolved \*'
15646         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'
15647         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~
15648         $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'
15649
15650         # Both c and cxx compiler support -rpath directly
15651         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15652       fi
15653       hardcode_libdir_separator_F77=:
15654       ;;
15655
15656     solaris*)
15657       no_undefined_flag_F77=' -z text'
15658       if test "$GCC" = yes; then
15659         wlarc='${wl}'
15660         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15661         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15662           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15663       else
15664         wlarc=''
15665         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15666         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15667         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15668       fi
15669       hardcode_libdir_flag_spec_F77='-R$libdir'
15670       hardcode_shlibpath_var_F77=no
15671       case $host_os in
15672       solaris2.[0-5] | solaris2.[0-5].*) ;;
15673       *)
15674         # The compiler driver will combine and reorder linker options,
15675         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15676         # but is careful enough not to reorder.
15677         # Supported since Solaris 2.6 (maybe 2.5.1?)
15678         if test "$GCC" = yes; then
15679           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15680         else
15681           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15682         fi
15683         ;;
15684       esac
15685       link_all_deplibs_F77=yes
15686       ;;
15687
15688     sunos4*)
15689       if test "x$host_vendor" = xsequent; then
15690         # Use $CC to link under sequent, because it throws in some extra .o
15691         # files that make .init and .fini sections work.
15692         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15693       else
15694         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15695       fi
15696       hardcode_libdir_flag_spec_F77='-L$libdir'
15697       hardcode_direct_F77=yes
15698       hardcode_minus_L_F77=yes
15699       hardcode_shlibpath_var_F77=no
15700       ;;
15701
15702     sysv4)
15703       case $host_vendor in
15704         sni)
15705           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15706           hardcode_direct_F77=yes # is this really true???
15707         ;;
15708         siemens)
15709           ## LD is ld it makes a PLAMLIB
15710           ## CC just makes a GrossModule.
15711           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15712           reload_cmds_F77='$CC -r -o $output$reload_objs'
15713           hardcode_direct_F77=no
15714         ;;
15715         motorola)
15716           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15717           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15718         ;;
15719       esac
15720       runpath_var='LD_RUN_PATH'
15721       hardcode_shlibpath_var_F77=no
15722       ;;
15723
15724     sysv4.3*)
15725       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15726       hardcode_shlibpath_var_F77=no
15727       export_dynamic_flag_spec_F77='-Bexport'
15728       ;;
15729
15730     sysv4*MP*)
15731       if test -d /usr/nec; then
15732         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15733         hardcode_shlibpath_var_F77=no
15734         runpath_var=LD_RUN_PATH
15735         hardcode_runpath_var=yes
15736         ld_shlibs_F77=yes
15737       fi
15738       ;;
15739
15740     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15741       no_undefined_flag_F77='${wl}-z,text'
15742       archive_cmds_need_lc_F77=no
15743       hardcode_shlibpath_var_F77=no
15744       runpath_var='LD_RUN_PATH'
15745
15746       if test "$GCC" = yes; then
15747         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15748         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15749       else
15750         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15751         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15752       fi
15753       ;;
15754
15755     sysv5* | sco3.2v5* | sco5v6*)
15756       # Note: We can NOT use -z defs as we might desire, because we do not
15757       # link with -lc, and that would cause any symbols used from libc to
15758       # always be unresolved, which means just about no library would
15759       # ever link correctly.  If we're not using GNU ld we use -z text
15760       # though, which does catch some bad symbols but isn't as heavy-handed
15761       # as -z defs.
15762       no_undefined_flag_F77='${wl}-z,text'
15763       allow_undefined_flag_F77='${wl}-z,nodefs'
15764       archive_cmds_need_lc_F77=no
15765       hardcode_shlibpath_var_F77=no
15766       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15767       hardcode_libdir_separator_F77=':'
15768       link_all_deplibs_F77=yes
15769       export_dynamic_flag_spec_F77='${wl}-Bexport'
15770       runpath_var='LD_RUN_PATH'
15771
15772       if test "$GCC" = yes; then
15773         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15774         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15775       else
15776         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15777         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15778       fi
15779       ;;
15780
15781     uts4*)
15782       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15783       hardcode_libdir_flag_spec_F77='-L$libdir'
15784       hardcode_shlibpath_var_F77=no
15785       ;;
15786
15787     *)
15788       ld_shlibs_F77=no
15789       ;;
15790     esac
15791   fi
15792
15793 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15794 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15795 test "$ld_shlibs_F77" = no && can_build_shared=no
15796
15797 #
15798 # Do we need to explicitly link libc?
15799 #
15800 case "x$archive_cmds_need_lc_F77" in
15801 x|xyes)
15802   # Assume -lc should be added
15803   archive_cmds_need_lc_F77=yes
15804
15805   if test "$enable_shared" = yes && test "$GCC" = yes; then
15806     case $archive_cmds_F77 in
15807     *'~'*)
15808       # FIXME: we may have to deal with multi-command sequences.
15809       ;;
15810     '$CC '*)
15811       # Test whether the compiler implicitly links with -lc since on some
15812       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15813       # to ld, don't add -lc before -lgcc.
15814       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15815 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15816       $rm conftest*
15817       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15818
15819       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15820   (eval $ac_compile) 2>&5
15821   ac_status=$?
15822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823   (exit $ac_status); } 2>conftest.err; then
15824         soname=conftest
15825         lib=conftest
15826         libobjs=conftest.$ac_objext
15827         deplibs=
15828         wl=$lt_prog_compiler_wl_F77
15829         pic_flag=$lt_prog_compiler_pic_F77
15830         compiler_flags=-v
15831         linker_flags=-v
15832         verstring=
15833         output_objdir=.
15834         libname=conftest
15835         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15836         allow_undefined_flag_F77=
15837         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15838   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15839   ac_status=$?
15840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841   (exit $ac_status); }
15842         then
15843           archive_cmds_need_lc_F77=no
15844         else
15845           archive_cmds_need_lc_F77=yes
15846         fi
15847         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15848       else
15849         cat conftest.err 1>&5
15850       fi
15851       $rm conftest*
15852       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15853 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15854       ;;
15855     esac
15856   fi
15857   ;;
15858 esac
15859
15860 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15861 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15862 library_names_spec=
15863 libname_spec='lib$name'
15864 soname_spec=
15865 shrext_cmds=".so"
15866 postinstall_cmds=
15867 postuninstall_cmds=
15868 finish_cmds=
15869 finish_eval=
15870 shlibpath_var=
15871 shlibpath_overrides_runpath=unknown
15872 version_type=none
15873 dynamic_linker="$host_os ld.so"
15874 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15875
15876 need_lib_prefix=unknown
15877 hardcode_into_libs=no
15878
15879 # when you set need_version to no, make sure it does not cause -set_version
15880 # flags to be left without arguments
15881 need_version=unknown
15882
15883 case $host_os in
15884 aix3*)
15885   version_type=linux
15886   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15887   shlibpath_var=LIBPATH
15888
15889   # AIX 3 has no versioning support, so we append a major version to the name.
15890   soname_spec='${libname}${release}${shared_ext}$major'
15891   ;;
15892
15893 aix[4-9]*)
15894   version_type=linux
15895   need_lib_prefix=no
15896   need_version=no
15897   hardcode_into_libs=yes
15898   if test "$host_cpu" = ia64; then
15899     # AIX 5 supports IA64
15900     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15901     shlibpath_var=LD_LIBRARY_PATH
15902   else
15903     # With GCC up to 2.95.x, collect2 would create an import file
15904     # for dependence libraries.  The import file would start with
15905     # the line `#! .'.  This would cause the generated library to
15906     # depend on `.', always an invalid library.  This was fixed in
15907     # development snapshots of GCC prior to 3.0.
15908     case $host_os in
15909       aix4 | aix4.[01] | aix4.[01].*)
15910       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15911            echo ' yes '
15912            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15913         :
15914       else
15915         can_build_shared=no
15916       fi
15917       ;;
15918     esac
15919     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15920     # soname into executable. Probably we can add versioning support to
15921     # collect2, so additional links can be useful in future.
15922     if test "$aix_use_runtimelinking" = yes; then
15923       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15924       # instead of lib<name>.a to let people know that these are not
15925       # typical AIX shared libraries.
15926       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927     else
15928       # We preserve .a as extension for shared libraries through AIX4.2
15929       # and later when we are not doing run time linking.
15930       library_names_spec='${libname}${release}.a $libname.a'
15931       soname_spec='${libname}${release}${shared_ext}$major'
15932     fi
15933     shlibpath_var=LIBPATH
15934   fi
15935   ;;
15936
15937 amigaos*)
15938   library_names_spec='$libname.ixlibrary $libname.a'
15939   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15940   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'
15941   ;;
15942
15943 beos*)
15944   library_names_spec='${libname}${shared_ext}'
15945   dynamic_linker="$host_os ld.so"
15946   shlibpath_var=LIBRARY_PATH
15947   ;;
15948
15949 bsdi[45]*)
15950   version_type=linux
15951   need_version=no
15952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15953   soname_spec='${libname}${release}${shared_ext}$major'
15954   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15955   shlibpath_var=LD_LIBRARY_PATH
15956   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15957   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15958   # the default ld.so.conf also contains /usr/contrib/lib and
15959   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15960   # libtool to hard-code these into programs
15961   ;;
15962
15963 cygwin* | mingw* | pw32*)
15964   version_type=windows
15965   shrext_cmds=".dll"
15966   need_version=no
15967   need_lib_prefix=no
15968
15969   case $GCC,$host_os in
15970   yes,cygwin* | yes,mingw* | yes,pw32*)
15971     library_names_spec='$libname.dll.a'
15972     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15973     postinstall_cmds='base_file=`basename \${file}`~
15974       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15975       dldir=$destdir/`dirname \$dlpath`~
15976       test -d \$dldir || mkdir -p \$dldir~
15977       $install_prog $dir/$dlname \$dldir/$dlname~
15978       chmod a+x \$dldir/$dlname'
15979     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15980       dlpath=$dir/\$dldll~
15981        $rm \$dlpath'
15982     shlibpath_overrides_runpath=yes
15983
15984     case $host_os in
15985     cygwin*)
15986       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15987       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15988       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15989       ;;
15990     mingw*)
15991       # MinGW DLLs use traditional 'lib' prefix
15992       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15993       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15994       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15995         # It is most probably a Windows format PATH printed by
15996         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15997         # path with ; separators, and with drive letters. We can handle the
15998         # drive letters (cygwin fileutils understands them), so leave them,
15999         # especially as we might pass files found there to a mingw objdump,
16000         # which wouldn't understand a cygwinified path. Ahh.
16001         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16002       else
16003         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16004       fi
16005       ;;
16006     pw32*)
16007       # pw32 DLLs use 'pw' prefix rather than 'lib'
16008       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16009       ;;
16010     esac
16011     ;;
16012
16013   *)
16014     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16015     ;;
16016   esac
16017   dynamic_linker='Win32 ld.exe'
16018   # FIXME: first we should search . and the directory the executable is in
16019   shlibpath_var=PATH
16020   ;;
16021
16022 darwin* | rhapsody*)
16023   dynamic_linker="$host_os dyld"
16024   version_type=darwin
16025   need_lib_prefix=no
16026   need_version=no
16027   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16028   soname_spec='${libname}${release}${major}$shared_ext'
16029   shlibpath_overrides_runpath=yes
16030   shlibpath_var=DYLD_LIBRARY_PATH
16031   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16032
16033   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16034   ;;
16035
16036 dgux*)
16037   version_type=linux
16038   need_lib_prefix=no
16039   need_version=no
16040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16041   soname_spec='${libname}${release}${shared_ext}$major'
16042   shlibpath_var=LD_LIBRARY_PATH
16043   ;;
16044
16045 freebsd1*)
16046   dynamic_linker=no
16047   ;;
16048
16049 freebsd* | dragonfly*)
16050   # DragonFly does not have aout.  When/if they implement a new
16051   # versioning mechanism, adjust this.
16052   if test -x /usr/bin/objformat; then
16053     objformat=`/usr/bin/objformat`
16054   else
16055     case $host_os in
16056     freebsd[123]*) objformat=aout ;;
16057     *) objformat=elf ;;
16058     esac
16059   fi
16060   version_type=freebsd-$objformat
16061   case $version_type in
16062     freebsd-elf*)
16063       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16064       need_version=no
16065       need_lib_prefix=no
16066       ;;
16067     freebsd-*)
16068       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16069       need_version=yes
16070       ;;
16071   esac
16072   shlibpath_var=LD_LIBRARY_PATH
16073   case $host_os in
16074   freebsd2*)
16075     shlibpath_overrides_runpath=yes
16076     ;;
16077   freebsd3.[01]* | freebsdelf3.[01]*)
16078     shlibpath_overrides_runpath=yes
16079     hardcode_into_libs=yes
16080     ;;
16081   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16082   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16083     shlibpath_overrides_runpath=no
16084     hardcode_into_libs=yes
16085     ;;
16086   *) # from 4.6 on, and DragonFly
16087     shlibpath_overrides_runpath=yes
16088     hardcode_into_libs=yes
16089     ;;
16090   esac
16091   ;;
16092
16093 gnu*)
16094   version_type=linux
16095   need_lib_prefix=no
16096   need_version=no
16097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16098   soname_spec='${libname}${release}${shared_ext}$major'
16099   shlibpath_var=LD_LIBRARY_PATH
16100   hardcode_into_libs=yes
16101   ;;
16102
16103 hpux9* | hpux10* | hpux11*)
16104   # Give a soname corresponding to the major version so that dld.sl refuses to
16105   # link against other versions.
16106   version_type=sunos
16107   need_lib_prefix=no
16108   need_version=no
16109   case $host_cpu in
16110   ia64*)
16111     shrext_cmds='.so'
16112     hardcode_into_libs=yes
16113     dynamic_linker="$host_os dld.so"
16114     shlibpath_var=LD_LIBRARY_PATH
16115     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16116     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16117     soname_spec='${libname}${release}${shared_ext}$major'
16118     if test "X$HPUX_IA64_MODE" = X32; then
16119       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16120     else
16121       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16122     fi
16123     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16124     ;;
16125    hppa*64*)
16126      shrext_cmds='.sl'
16127      hardcode_into_libs=yes
16128      dynamic_linker="$host_os dld.sl"
16129      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16130      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16131      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16132      soname_spec='${libname}${release}${shared_ext}$major'
16133      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16134      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16135      ;;
16136    *)
16137     shrext_cmds='.sl'
16138     dynamic_linker="$host_os dld.sl"
16139     shlibpath_var=SHLIB_PATH
16140     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16141     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16142     soname_spec='${libname}${release}${shared_ext}$major'
16143     ;;
16144   esac
16145   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16146   postinstall_cmds='chmod 555 $lib'
16147   ;;
16148
16149 interix[3-9]*)
16150   version_type=linux
16151   need_lib_prefix=no
16152   need_version=no
16153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16154   soname_spec='${libname}${release}${shared_ext}$major'
16155   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16156   shlibpath_var=LD_LIBRARY_PATH
16157   shlibpath_overrides_runpath=no
16158   hardcode_into_libs=yes
16159   ;;
16160
16161 irix5* | irix6* | nonstopux*)
16162   case $host_os in
16163     nonstopux*) version_type=nonstopux ;;
16164     *)
16165         if test "$lt_cv_prog_gnu_ld" = yes; then
16166                 version_type=linux
16167         else
16168                 version_type=irix
16169         fi ;;
16170   esac
16171   need_lib_prefix=no
16172   need_version=no
16173   soname_spec='${libname}${release}${shared_ext}$major'
16174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16175   case $host_os in
16176   irix5* | nonstopux*)
16177     libsuff= shlibsuff=
16178     ;;
16179   *)
16180     case $LD in # libtool.m4 will add one of these switches to LD
16181     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16182       libsuff= shlibsuff= libmagic=32-bit;;
16183     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16184       libsuff=32 shlibsuff=N32 libmagic=N32;;
16185     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16186       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16187     *) libsuff= shlibsuff= libmagic=never-match;;
16188     esac
16189     ;;
16190   esac
16191   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16192   shlibpath_overrides_runpath=no
16193   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16194   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16195   hardcode_into_libs=yes
16196   ;;
16197
16198 # No shared lib support for Linux oldld, aout, or coff.
16199 linux*oldld* | linux*aout* | linux*coff*)
16200   dynamic_linker=no
16201   ;;
16202
16203 # This must be Linux ELF.
16204 linux* | k*bsd*-gnu)
16205   version_type=linux
16206   need_lib_prefix=no
16207   need_version=no
16208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16209   soname_spec='${libname}${release}${shared_ext}$major'
16210   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16211   shlibpath_var=LD_LIBRARY_PATH
16212   shlibpath_overrides_runpath=no
16213   # This implies no fast_install, which is unacceptable.
16214   # Some rework will be needed to allow for fast_install
16215   # before this can be enabled.
16216   hardcode_into_libs=yes
16217
16218   # Append ld.so.conf contents to the search path
16219   if test -f /etc/ld.so.conf; then
16220     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16221     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16222   fi
16223
16224   # We used to test for /lib/ld.so.1 and disable shared libraries on
16225   # powerpc, because MkLinux only supported shared libraries with the
16226   # GNU dynamic linker.  Since this was broken with cross compilers,
16227   # most powerpc-linux boxes support dynamic linking these days and
16228   # people can always --disable-shared, the test was removed, and we
16229   # assume the GNU/Linux dynamic linker is in use.
16230   dynamic_linker='GNU/Linux ld.so'
16231   ;;
16232
16233 netbsdelf*-gnu)
16234   version_type=linux
16235   need_lib_prefix=no
16236   need_version=no
16237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16238   soname_spec='${libname}${release}${shared_ext}$major'
16239   shlibpath_var=LD_LIBRARY_PATH
16240   shlibpath_overrides_runpath=no
16241   hardcode_into_libs=yes
16242   dynamic_linker='NetBSD ld.elf_so'
16243   ;;
16244
16245 netbsd*)
16246   version_type=sunos
16247   need_lib_prefix=no
16248   need_version=no
16249   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16250     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16251     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16252     dynamic_linker='NetBSD (a.out) ld.so'
16253   else
16254     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16255     soname_spec='${libname}${release}${shared_ext}$major'
16256     dynamic_linker='NetBSD ld.elf_so'
16257   fi
16258   shlibpath_var=LD_LIBRARY_PATH
16259   shlibpath_overrides_runpath=yes
16260   hardcode_into_libs=yes
16261   ;;
16262
16263 newsos6)
16264   version_type=linux
16265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16266   shlibpath_var=LD_LIBRARY_PATH
16267   shlibpath_overrides_runpath=yes
16268   ;;
16269
16270 nto-qnx*)
16271   version_type=linux
16272   need_lib_prefix=no
16273   need_version=no
16274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16275   soname_spec='${libname}${release}${shared_ext}$major'
16276   shlibpath_var=LD_LIBRARY_PATH
16277   shlibpath_overrides_runpath=yes
16278   ;;
16279
16280 openbsd*)
16281   version_type=sunos
16282   sys_lib_dlsearch_path_spec="/usr/lib"
16283   need_lib_prefix=no
16284   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16285   case $host_os in
16286     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16287     *)                         need_version=no  ;;
16288   esac
16289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16290   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16291   shlibpath_var=LD_LIBRARY_PATH
16292   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16293     case $host_os in
16294       openbsd2.[89] | openbsd2.[89].*)
16295         shlibpath_overrides_runpath=no
16296         ;;
16297       *)
16298         shlibpath_overrides_runpath=yes
16299         ;;
16300       esac
16301   else
16302     shlibpath_overrides_runpath=yes
16303   fi
16304   ;;
16305
16306 os2*)
16307   libname_spec='$name'
16308   shrext_cmds=".dll"
16309   need_lib_prefix=no
16310   library_names_spec='$libname${shared_ext} $libname.a'
16311   dynamic_linker='OS/2 ld.exe'
16312   shlibpath_var=LIBPATH
16313   ;;
16314
16315 osf3* | osf4* | osf5*)
16316   version_type=osf
16317   need_lib_prefix=no
16318   need_version=no
16319   soname_spec='${libname}${release}${shared_ext}$major'
16320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16321   shlibpath_var=LD_LIBRARY_PATH
16322   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16323   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16324   ;;
16325
16326 rdos*)
16327   dynamic_linker=no
16328   ;;
16329
16330 solaris*)
16331   version_type=linux
16332   need_lib_prefix=no
16333   need_version=no
16334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16335   soname_spec='${libname}${release}${shared_ext}$major'
16336   shlibpath_var=LD_LIBRARY_PATH
16337   shlibpath_overrides_runpath=yes
16338   hardcode_into_libs=yes
16339   # ldd complains unless libraries are executable
16340   postinstall_cmds='chmod +x $lib'
16341   ;;
16342
16343 sunos4*)
16344   version_type=sunos
16345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16346   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16347   shlibpath_var=LD_LIBRARY_PATH
16348   shlibpath_overrides_runpath=yes
16349   if test "$with_gnu_ld" = yes; then
16350     need_lib_prefix=no
16351   fi
16352   need_version=yes
16353   ;;
16354
16355 sysv4 | sysv4.3*)
16356   version_type=linux
16357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358   soname_spec='${libname}${release}${shared_ext}$major'
16359   shlibpath_var=LD_LIBRARY_PATH
16360   case $host_vendor in
16361     sni)
16362       shlibpath_overrides_runpath=no
16363       need_lib_prefix=no
16364       export_dynamic_flag_spec='${wl}-Blargedynsym'
16365       runpath_var=LD_RUN_PATH
16366       ;;
16367     siemens)
16368       need_lib_prefix=no
16369       ;;
16370     motorola)
16371       need_lib_prefix=no
16372       need_version=no
16373       shlibpath_overrides_runpath=no
16374       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16375       ;;
16376   esac
16377   ;;
16378
16379 sysv4*MP*)
16380   if test -d /usr/nec ;then
16381     version_type=linux
16382     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16383     soname_spec='$libname${shared_ext}.$major'
16384     shlibpath_var=LD_LIBRARY_PATH
16385   fi
16386   ;;
16387
16388 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16389   version_type=freebsd-elf
16390   need_lib_prefix=no
16391   need_version=no
16392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16393   soname_spec='${libname}${release}${shared_ext}$major'
16394   shlibpath_var=LD_LIBRARY_PATH
16395   hardcode_into_libs=yes
16396   if test "$with_gnu_ld" = yes; then
16397     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16398     shlibpath_overrides_runpath=no
16399   else
16400     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16401     shlibpath_overrides_runpath=yes
16402     case $host_os in
16403       sco3.2v5*)
16404         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16405         ;;
16406     esac
16407   fi
16408   sys_lib_dlsearch_path_spec='/usr/lib'
16409   ;;
16410
16411 uts4*)
16412   version_type=linux
16413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16414   soname_spec='${libname}${release}${shared_ext}$major'
16415   shlibpath_var=LD_LIBRARY_PATH
16416   ;;
16417
16418 *)
16419   dynamic_linker=no
16420   ;;
16421 esac
16422 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16423 echo "${ECHO_T}$dynamic_linker" >&6; }
16424 test "$dynamic_linker" = no && can_build_shared=no
16425
16426 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16427   echo $ECHO_N "(cached) $ECHO_C" >&6
16428 else
16429   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16430 fi
16431
16432 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16433 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16434   echo $ECHO_N "(cached) $ECHO_C" >&6
16435 else
16436   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16437 fi
16438
16439 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16440
16441 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16442 if test "$GCC" = yes; then
16443   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16444 fi
16445
16446 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16447 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16448 hardcode_action_F77=
16449 if test -n "$hardcode_libdir_flag_spec_F77" || \
16450    test -n "$runpath_var_F77" || \
16451    test "X$hardcode_automatic_F77" = "Xyes" ; then
16452
16453   # We can hardcode non-existant directories.
16454   if test "$hardcode_direct_F77" != no &&
16455      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16456      # have to relink, otherwise we might link with an installed library
16457      # when we should be linking with a yet-to-be-installed one
16458      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16459      test "$hardcode_minus_L_F77" != no; then
16460     # Linking always hardcodes the temporary library directory.
16461     hardcode_action_F77=relink
16462   else
16463     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16464     hardcode_action_F77=immediate
16465   fi
16466 else
16467   # We cannot hardcode anything, or else we can only hardcode existing
16468   # directories.
16469   hardcode_action_F77=unsupported
16470 fi
16471 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16472 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16473
16474 if test "$hardcode_action_F77" = relink; then
16475   # Fast installation is not supported
16476   enable_fast_install=no
16477 elif test "$shlibpath_overrides_runpath" = yes ||
16478      test "$enable_shared" = no; then
16479   # Fast installation is not necessary
16480   enable_fast_install=needless
16481 fi
16482
16483
16484 # The else clause should only fire when bootstrapping the
16485 # libtool distribution, otherwise you forgot to ship ltmain.sh
16486 # with your package, and you will get complaints that there are
16487 # no rules to generate ltmain.sh.
16488 if test -f "$ltmain"; then
16489   # See if we are running on zsh, and set the options which allow our commands through
16490   # without removal of \ escapes.
16491   if test -n "${ZSH_VERSION+set}" ; then
16492     setopt NO_GLOB_SUBST
16493   fi
16494   # Now quote all the things that may contain metacharacters while being
16495   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16496   # variables and quote the copies for generation of the libtool script.
16497   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16498     SED SHELL STRIP \
16499     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16500     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16501     deplibs_check_method reload_flag reload_cmds need_locks \
16502     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16503     lt_cv_sys_global_symbol_to_c_name_address \
16504     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16505     old_postinstall_cmds old_postuninstall_cmds \
16506     compiler_F77 \
16507     CC_F77 \
16508     LD_F77 \
16509     lt_prog_compiler_wl_F77 \
16510     lt_prog_compiler_pic_F77 \
16511     lt_prog_compiler_static_F77 \
16512     lt_prog_compiler_no_builtin_flag_F77 \
16513     export_dynamic_flag_spec_F77 \
16514     thread_safe_flag_spec_F77 \
16515     whole_archive_flag_spec_F77 \
16516     enable_shared_with_static_runtimes_F77 \
16517     old_archive_cmds_F77 \
16518     old_archive_from_new_cmds_F77 \
16519     predep_objects_F77 \
16520     postdep_objects_F77 \
16521     predeps_F77 \
16522     postdeps_F77 \
16523     compiler_lib_search_path_F77 \
16524     compiler_lib_search_dirs_F77 \
16525     archive_cmds_F77 \
16526     archive_expsym_cmds_F77 \
16527     postinstall_cmds_F77 \
16528     postuninstall_cmds_F77 \
16529     old_archive_from_expsyms_cmds_F77 \
16530     allow_undefined_flag_F77 \
16531     no_undefined_flag_F77 \
16532     export_symbols_cmds_F77 \
16533     hardcode_libdir_flag_spec_F77 \
16534     hardcode_libdir_flag_spec_ld_F77 \
16535     hardcode_libdir_separator_F77 \
16536     hardcode_automatic_F77 \
16537     module_cmds_F77 \
16538     module_expsym_cmds_F77 \
16539     lt_cv_prog_compiler_c_o_F77 \
16540     fix_srcfile_path_F77 \
16541     exclude_expsyms_F77 \
16542     include_expsyms_F77; do
16543
16544     case $var in
16545     old_archive_cmds_F77 | \
16546     old_archive_from_new_cmds_F77 | \
16547     archive_cmds_F77 | \
16548     archive_expsym_cmds_F77 | \
16549     module_cmds_F77 | \
16550     module_expsym_cmds_F77 | \
16551     old_archive_from_expsyms_cmds_F77 | \
16552     export_symbols_cmds_F77 | \
16553     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16554     postinstall_cmds | postuninstall_cmds | \
16555     old_postinstall_cmds | old_postuninstall_cmds | \
16556     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16557       # Double-quote double-evaled strings.
16558       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16559       ;;
16560     *)
16561       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16562       ;;
16563     esac
16564   done
16565
16566   case $lt_echo in
16567   *'\$0 --fallback-echo"')
16568     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16569     ;;
16570   esac
16571
16572 cfgfile="$ofile"
16573
16574   cat <<__EOF__ >> "$cfgfile"
16575 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16576
16577 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16578
16579 # Shell to use when invoking shell scripts.
16580 SHELL=$lt_SHELL
16581
16582 # Whether or not to build shared libraries.
16583 build_libtool_libs=$enable_shared
16584
16585 # Whether or not to build static libraries.
16586 build_old_libs=$enable_static
16587
16588 # Whether or not to add -lc for building shared libraries.
16589 build_libtool_need_lc=$archive_cmds_need_lc_F77
16590
16591 # Whether or not to disallow shared libs when runtime libs are static
16592 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16593
16594 # Whether or not to optimize for fast installation.
16595 fast_install=$enable_fast_install
16596
16597 # The host system.
16598 host_alias=$host_alias
16599 host=$host
16600 host_os=$host_os
16601
16602 # The build system.
16603 build_alias=$build_alias
16604 build=$build
16605 build_os=$build_os
16606
16607 # An echo program that does not interpret backslashes.
16608 echo=$lt_echo
16609
16610 # The archiver.
16611 AR=$lt_AR
16612 AR_FLAGS=$lt_AR_FLAGS
16613
16614 # A C compiler.
16615 LTCC=$lt_LTCC
16616
16617 # LTCC compiler flags.
16618 LTCFLAGS=$lt_LTCFLAGS
16619
16620 # A language-specific compiler.
16621 CC=$lt_compiler_F77
16622
16623 # Is the compiler the GNU C compiler?
16624 with_gcc=$GCC_F77
16625
16626 # An ERE matcher.
16627 EGREP=$lt_EGREP
16628
16629 # The linker used to build libraries.
16630 LD=$lt_LD_F77
16631
16632 # Whether we need hard or soft links.
16633 LN_S=$lt_LN_S
16634
16635 # A BSD-compatible nm program.
16636 NM=$lt_NM
16637
16638 # A symbol stripping program
16639 STRIP=$lt_STRIP
16640
16641 # Used to examine libraries when file_magic_cmd begins "file"
16642 MAGIC_CMD=$MAGIC_CMD
16643
16644 # Used on cygwin: DLL creation program.
16645 DLLTOOL="$DLLTOOL"
16646
16647 # Used on cygwin: object dumper.
16648 OBJDUMP="$OBJDUMP"
16649
16650 # Used on cygwin: assembler.
16651 AS="$AS"
16652
16653 # The name of the directory that contains temporary libtool files.
16654 objdir=$objdir
16655
16656 # How to create reloadable object files.
16657 reload_flag=$lt_reload_flag
16658 reload_cmds=$lt_reload_cmds
16659
16660 # How to pass a linker flag through the compiler.
16661 wl=$lt_lt_prog_compiler_wl_F77
16662
16663 # Object file suffix (normally "o").
16664 objext="$ac_objext"
16665
16666 # Old archive suffix (normally "a").
16667 libext="$libext"
16668
16669 # Shared library suffix (normally ".so").
16670 shrext_cmds='$shrext_cmds'
16671
16672 # Executable file suffix (normally "").
16673 exeext="$exeext"
16674
16675 # Additional compiler flags for building library objects.
16676 pic_flag=$lt_lt_prog_compiler_pic_F77
16677 pic_mode=$pic_mode
16678
16679 # What is the maximum length of a command?
16680 max_cmd_len=$lt_cv_sys_max_cmd_len
16681
16682 # Does compiler simultaneously support -c and -o options?
16683 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16684
16685 # Must we lock files when doing compilation?
16686 need_locks=$lt_need_locks
16687
16688 # Do we need the lib prefix for modules?
16689 need_lib_prefix=$need_lib_prefix
16690
16691 # Do we need a version for libraries?
16692 need_version=$need_version
16693
16694 # Whether dlopen is supported.
16695 dlopen_support=$enable_dlopen
16696
16697 # Whether dlopen of programs is supported.
16698 dlopen_self=$enable_dlopen_self
16699
16700 # Whether dlopen of statically linked programs is supported.
16701 dlopen_self_static=$enable_dlopen_self_static
16702
16703 # Compiler flag to prevent dynamic linking.
16704 link_static_flag=$lt_lt_prog_compiler_static_F77
16705
16706 # Compiler flag to turn off builtin functions.
16707 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16708
16709 # Compiler flag to allow reflexive dlopens.
16710 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16711
16712 # Compiler flag to generate shared objects directly from archives.
16713 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16714
16715 # Compiler flag to generate thread-safe objects.
16716 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16717
16718 # Library versioning type.
16719 version_type=$version_type
16720
16721 # Format of library name prefix.
16722 libname_spec=$lt_libname_spec
16723
16724 # List of archive names.  First name is the real one, the rest are links.
16725 # The last name is the one that the linker finds with -lNAME.
16726 library_names_spec=$lt_library_names_spec
16727
16728 # The coded name of the library, if different from the real name.
16729 soname_spec=$lt_soname_spec
16730
16731 # Commands used to build and install an old-style archive.
16732 RANLIB=$lt_RANLIB
16733 old_archive_cmds=$lt_old_archive_cmds_F77
16734 old_postinstall_cmds=$lt_old_postinstall_cmds
16735 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16736
16737 # Create an old-style archive from a shared archive.
16738 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16739
16740 # Create a temporary old-style archive to link instead of a shared archive.
16741 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16742
16743 # Commands used to build and install a shared archive.
16744 archive_cmds=$lt_archive_cmds_F77
16745 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16746 postinstall_cmds=$lt_postinstall_cmds
16747 postuninstall_cmds=$lt_postuninstall_cmds
16748
16749 # Commands used to build a loadable module (assumed same as above if empty)
16750 module_cmds=$lt_module_cmds_F77
16751 module_expsym_cmds=$lt_module_expsym_cmds_F77
16752
16753 # Commands to strip libraries.
16754 old_striplib=$lt_old_striplib
16755 striplib=$lt_striplib
16756
16757 # Dependencies to place before the objects being linked to create a
16758 # shared library.
16759 predep_objects=$lt_predep_objects_F77
16760
16761 # Dependencies to place after the objects being linked to create a
16762 # shared library.
16763 postdep_objects=$lt_postdep_objects_F77
16764
16765 # Dependencies to place before the objects being linked to create a
16766 # shared library.
16767 predeps=$lt_predeps_F77
16768
16769 # Dependencies to place after the objects being linked to create a
16770 # shared library.
16771 postdeps=$lt_postdeps_F77
16772
16773 # The directories searched by this compiler when creating a shared
16774 # library
16775 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16776
16777 # The library search path used internally by the compiler when linking
16778 # a shared library.
16779 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16780
16781 # Method to check whether dependent libraries are shared objects.
16782 deplibs_check_method=$lt_deplibs_check_method
16783
16784 # Command to use when deplibs_check_method == file_magic.
16785 file_magic_cmd=$lt_file_magic_cmd
16786
16787 # Flag that allows shared libraries with undefined symbols to be built.
16788 allow_undefined_flag=$lt_allow_undefined_flag_F77
16789
16790 # Flag that forces no undefined symbols.
16791 no_undefined_flag=$lt_no_undefined_flag_F77
16792
16793 # Commands used to finish a libtool library installation in a directory.
16794 finish_cmds=$lt_finish_cmds
16795
16796 # Same as above, but a single script fragment to be evaled but not shown.
16797 finish_eval=$lt_finish_eval
16798
16799 # Take the output of nm and produce a listing of raw symbols and C names.
16800 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16801
16802 # Transform the output of nm in a proper C declaration
16803 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16804
16805 # Transform the output of nm in a C name address pair
16806 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16807
16808 # This is the shared library runtime path variable.
16809 runpath_var=$runpath_var
16810
16811 # This is the shared library path variable.
16812 shlibpath_var=$shlibpath_var
16813
16814 # Is shlibpath searched before the hard-coded library search path?
16815 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16816
16817 # How to hardcode a shared library path into an executable.
16818 hardcode_action=$hardcode_action_F77
16819
16820 # Whether we should hardcode library paths into libraries.
16821 hardcode_into_libs=$hardcode_into_libs
16822
16823 # Flag to hardcode \$libdir into a binary during linking.
16824 # This must work even if \$libdir does not exist.
16825 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16826
16827 # If ld is used when linking, flag to hardcode \$libdir into
16828 # a binary during linking. This must work even if \$libdir does
16829 # not exist.
16830 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16831
16832 # Whether we need a single -rpath flag with a separated argument.
16833 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16834
16835 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16836 # resulting binary.
16837 hardcode_direct=$hardcode_direct_F77
16838
16839 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16840 # resulting binary.
16841 hardcode_minus_L=$hardcode_minus_L_F77
16842
16843 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16844 # the resulting binary.
16845 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16846
16847 # Set to yes if building a shared library automatically hardcodes DIR into the library
16848 # and all subsequent libraries and executables linked against it.
16849 hardcode_automatic=$hardcode_automatic_F77
16850
16851 # Variables whose values should be saved in libtool wrapper scripts and
16852 # restored at relink time.
16853 variables_saved_for_relink="$variables_saved_for_relink"
16854
16855 # Whether libtool must link a program against all its dependency libraries.
16856 link_all_deplibs=$link_all_deplibs_F77
16857
16858 # Compile-time system search path for libraries
16859 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16860
16861 # Run-time system search path for libraries
16862 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16863
16864 # Fix the shell variable \$srcfile for the compiler.
16865 fix_srcfile_path=$lt_fix_srcfile_path
16866
16867 # Set to yes if exported symbols are required.
16868 always_export_symbols=$always_export_symbols_F77
16869
16870 # The commands to list exported symbols.
16871 export_symbols_cmds=$lt_export_symbols_cmds_F77
16872
16873 # The commands to extract the exported symbol list from a shared archive.
16874 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16875
16876 # Symbols that should not be listed in the preloaded symbols.
16877 exclude_expsyms=$lt_exclude_expsyms_F77
16878
16879 # Symbols that must always be exported.
16880 include_expsyms=$lt_include_expsyms_F77
16881
16882 # ### END LIBTOOL TAG CONFIG: $tagname
16883
16884 __EOF__
16885
16886
16887 else
16888   # If there is no Makefile yet, we rely on a make rule to execute
16889   # `config.status --recheck' to rerun these tests and create the
16890   # libtool script then.
16891   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16892   if test -f "$ltmain_in"; then
16893     test -f Makefile && make "$ltmain"
16894   fi
16895 fi
16896
16897
16898 ac_ext=c
16899 ac_cpp='$CPP $CPPFLAGS'
16900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16903
16904 CC="$lt_save_CC"
16905
16906         else
16907           tagname=""
16908         fi
16909         ;;
16910
16911       GCJ)
16912         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16913
16914
16915 # Source file extension for Java test sources.
16916 ac_ext=java
16917
16918 # Object file extension for compiled Java test sources.
16919 objext=o
16920 objext_GCJ=$objext
16921
16922 # Code to be used in simple compile tests
16923 lt_simple_compile_test_code="class foo {}"
16924
16925 # Code to be used in simple link tests
16926 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16927
16928 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16929
16930 # If no C compiler was specified, use CC.
16931 LTCC=${LTCC-"$CC"}
16932
16933 # If no C compiler flags were specified, use CFLAGS.
16934 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16935
16936 # Allow CC to be a program name with arguments.
16937 compiler=$CC
16938
16939
16940 # save warnings/boilerplate of simple test code
16941 ac_outfile=conftest.$ac_objext
16942 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16943 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16944 _lt_compiler_boilerplate=`cat conftest.err`
16945 $rm conftest*
16946
16947 ac_outfile=conftest.$ac_objext
16948 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16949 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16950 _lt_linker_boilerplate=`cat conftest.err`
16951 $rm -r conftest*
16952
16953
16954 # Allow CC to be a program name with arguments.
16955 lt_save_CC="$CC"
16956 CC=${GCJ-"gcj"}
16957 compiler=$CC
16958 compiler_GCJ=$CC
16959 for cc_temp in $compiler""; do
16960   case $cc_temp in
16961     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16962     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16963     \-*) ;;
16964     *) break;;
16965   esac
16966 done
16967 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16968
16969
16970 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16971 archive_cmds_need_lc_GCJ=no
16972
16973 old_archive_cmds_GCJ=$old_archive_cmds
16974
16975
16976 lt_prog_compiler_no_builtin_flag_GCJ=
16977
16978 if test "$GCC" = yes; then
16979   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16980
16981
16982 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16983 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16984 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16985   echo $ECHO_N "(cached) $ECHO_C" >&6
16986 else
16987   lt_cv_prog_compiler_rtti_exceptions=no
16988   ac_outfile=conftest.$ac_objext
16989    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16990    lt_compiler_flag="-fno-rtti -fno-exceptions"
16991    # Insert the option either (1) after the last *FLAGS variable, or
16992    # (2) before a word containing "conftest.", or (3) at the end.
16993    # Note that $ac_compile itself does not contain backslashes and begins
16994    # with a dollar sign (not a hyphen), so the echo should work correctly.
16995    # The option is referenced via a variable to avoid confusing sed.
16996    lt_compile=`echo "$ac_compile" | $SED \
16997    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16998    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16999    -e 's:$: $lt_compiler_flag:'`
17000    (eval echo "\"\$as_me:17000: $lt_compile\"" >&5)
17001    (eval "$lt_compile" 2>conftest.err)
17002    ac_status=$?
17003    cat conftest.err >&5
17004    echo "$as_me:17004: \$? = $ac_status" >&5
17005    if (exit $ac_status) && test -s "$ac_outfile"; then
17006      # The compiler can only warn and ignore the option if not recognized
17007      # So say no if there are warnings other than the usual output.
17008      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17009      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17010      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17011        lt_cv_prog_compiler_rtti_exceptions=yes
17012      fi
17013    fi
17014    $rm conftest*
17015
17016 fi
17017 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17018 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17019
17020 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17021     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17022 else
17023     :
17024 fi
17025
17026 fi
17027
17028 lt_prog_compiler_wl_GCJ=
17029 lt_prog_compiler_pic_GCJ=
17030 lt_prog_compiler_static_GCJ=
17031
17032 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17033 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17034
17035   if test "$GCC" = yes; then
17036     lt_prog_compiler_wl_GCJ='-Wl,'
17037     lt_prog_compiler_static_GCJ='-static'
17038
17039     case $host_os in
17040       aix*)
17041       # All AIX code is PIC.
17042       if test "$host_cpu" = ia64; then
17043         # AIX 5 now supports IA64 processor
17044         lt_prog_compiler_static_GCJ='-Bstatic'
17045       fi
17046       ;;
17047
17048     amigaos*)
17049       # FIXME: we need at least 68020 code to build shared libraries, but
17050       # adding the `-m68020' flag to GCC prevents building anything better,
17051       # like `-m68040'.
17052       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17053       ;;
17054
17055     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17056       # PIC is the default for these OSes.
17057       ;;
17058
17059     mingw* | cygwin* | pw32* | os2*)
17060       # This hack is so that the source file can tell whether it is being
17061       # built for inclusion in a dll (and should export symbols for example).
17062       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17063       # (--disable-auto-import) libraries
17064
17065       ;;
17066
17067     darwin* | rhapsody*)
17068       # PIC is the default on this platform
17069       # Common symbols not allowed in MH_DYLIB files
17070       lt_prog_compiler_pic_GCJ='-fno-common'
17071       ;;
17072
17073     interix[3-9]*)
17074       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17075       # Instead, we relocate shared libraries at runtime.
17076       ;;
17077
17078     msdosdjgpp*)
17079       # Just because we use GCC doesn't mean we suddenly get shared libraries
17080       # on systems that don't support them.
17081       lt_prog_compiler_can_build_shared_GCJ=no
17082       enable_shared=no
17083       ;;
17084
17085     sysv4*MP*)
17086       if test -d /usr/nec; then
17087         lt_prog_compiler_pic_GCJ=-Kconform_pic
17088       fi
17089       ;;
17090
17091     hpux*)
17092       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17093       # not for PA HP-UX.
17094       case $host_cpu in
17095       hppa*64*|ia64*)
17096         # +Z the default
17097         ;;
17098       *)
17099         lt_prog_compiler_pic_GCJ='-fPIC'
17100         ;;
17101       esac
17102       ;;
17103
17104     *)
17105       lt_prog_compiler_pic_GCJ='-fPIC'
17106       ;;
17107     esac
17108   else
17109     # PORTME Check for flag to pass linker flags through the system compiler.
17110     case $host_os in
17111     aix*)
17112       lt_prog_compiler_wl_GCJ='-Wl,'
17113       if test "$host_cpu" = ia64; then
17114         # AIX 5 now supports IA64 processor
17115         lt_prog_compiler_static_GCJ='-Bstatic'
17116       else
17117         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17118       fi
17119       ;;
17120       darwin*)
17121         # PIC is the default on this platform
17122         # Common symbols not allowed in MH_DYLIB files
17123        case $cc_basename in
17124          xlc*)
17125          lt_prog_compiler_pic_GCJ='-qnocommon'
17126          lt_prog_compiler_wl_GCJ='-Wl,'
17127          ;;
17128        esac
17129        ;;
17130
17131     mingw* | cygwin* | pw32* | os2*)
17132       # This hack is so that the source file can tell whether it is being
17133       # built for inclusion in a dll (and should export symbols for example).
17134
17135       ;;
17136
17137     hpux9* | hpux10* | hpux11*)
17138       lt_prog_compiler_wl_GCJ='-Wl,'
17139       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17140       # not for PA HP-UX.
17141       case $host_cpu in
17142       hppa*64*|ia64*)
17143         # +Z the default
17144         ;;
17145       *)
17146         lt_prog_compiler_pic_GCJ='+Z'
17147         ;;
17148       esac
17149       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17150       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17151       ;;
17152
17153     irix5* | irix6* | nonstopux*)
17154       lt_prog_compiler_wl_GCJ='-Wl,'
17155       # PIC (with -KPIC) is the default.
17156       lt_prog_compiler_static_GCJ='-non_shared'
17157       ;;
17158
17159     newsos6)
17160       lt_prog_compiler_pic_GCJ='-KPIC'
17161       lt_prog_compiler_static_GCJ='-Bstatic'
17162       ;;
17163
17164     linux* | k*bsd*-gnu)
17165       case $cc_basename in
17166       icc* | ecc*)
17167         lt_prog_compiler_wl_GCJ='-Wl,'
17168         lt_prog_compiler_pic_GCJ='-KPIC'
17169         lt_prog_compiler_static_GCJ='-static'
17170         ;;
17171       pgcc* | pgf77* | pgf90* | pgf95*)
17172         # Portland Group compilers (*not* the Pentium gcc compiler,
17173         # which looks to be a dead project)
17174         lt_prog_compiler_wl_GCJ='-Wl,'
17175         lt_prog_compiler_pic_GCJ='-fpic'
17176         lt_prog_compiler_static_GCJ='-Bstatic'
17177         ;;
17178       ccc*)
17179         lt_prog_compiler_wl_GCJ='-Wl,'
17180         # All Alpha code is PIC.
17181         lt_prog_compiler_static_GCJ='-non_shared'
17182         ;;
17183       *)
17184         case `$CC -V 2>&1 | sed 5q` in
17185         *Sun\ C*)
17186           # Sun C 5.9
17187           lt_prog_compiler_pic_GCJ='-KPIC'
17188           lt_prog_compiler_static_GCJ='-Bstatic'
17189           lt_prog_compiler_wl_GCJ='-Wl,'
17190           ;;
17191         *Sun\ F*)
17192           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17193           lt_prog_compiler_pic_GCJ='-KPIC'
17194           lt_prog_compiler_static_GCJ='-Bstatic'
17195           lt_prog_compiler_wl_GCJ=''
17196           ;;
17197         esac
17198         ;;
17199       esac
17200       ;;
17201
17202     osf3* | osf4* | osf5*)
17203       lt_prog_compiler_wl_GCJ='-Wl,'
17204       # All OSF/1 code is PIC.
17205       lt_prog_compiler_static_GCJ='-non_shared'
17206       ;;
17207
17208     rdos*)
17209       lt_prog_compiler_static_GCJ='-non_shared'
17210       ;;
17211
17212     solaris*)
17213       lt_prog_compiler_pic_GCJ='-KPIC'
17214       lt_prog_compiler_static_GCJ='-Bstatic'
17215       case $cc_basename in
17216       f77* | f90* | f95*)
17217         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17218       *)
17219         lt_prog_compiler_wl_GCJ='-Wl,';;
17220       esac
17221       ;;
17222
17223     sunos4*)
17224       lt_prog_compiler_wl_GCJ='-Qoption ld '
17225       lt_prog_compiler_pic_GCJ='-PIC'
17226       lt_prog_compiler_static_GCJ='-Bstatic'
17227       ;;
17228
17229     sysv4 | sysv4.2uw2* | sysv4.3*)
17230       lt_prog_compiler_wl_GCJ='-Wl,'
17231       lt_prog_compiler_pic_GCJ='-KPIC'
17232       lt_prog_compiler_static_GCJ='-Bstatic'
17233       ;;
17234
17235     sysv4*MP*)
17236       if test -d /usr/nec ;then
17237         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17238         lt_prog_compiler_static_GCJ='-Bstatic'
17239       fi
17240       ;;
17241
17242     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17243       lt_prog_compiler_wl_GCJ='-Wl,'
17244       lt_prog_compiler_pic_GCJ='-KPIC'
17245       lt_prog_compiler_static_GCJ='-Bstatic'
17246       ;;
17247
17248     unicos*)
17249       lt_prog_compiler_wl_GCJ='-Wl,'
17250       lt_prog_compiler_can_build_shared_GCJ=no
17251       ;;
17252
17253     uts4*)
17254       lt_prog_compiler_pic_GCJ='-pic'
17255       lt_prog_compiler_static_GCJ='-Bstatic'
17256       ;;
17257
17258     *)
17259       lt_prog_compiler_can_build_shared_GCJ=no
17260       ;;
17261     esac
17262   fi
17263
17264 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17265 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17266
17267 #
17268 # Check to make sure the PIC flag actually works.
17269 #
17270 if test -n "$lt_prog_compiler_pic_GCJ"; then
17271
17272 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17273 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17274 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17275   echo $ECHO_N "(cached) $ECHO_C" >&6
17276 else
17277   lt_cv_prog_compiler_pic_works_GCJ=no
17278   ac_outfile=conftest.$ac_objext
17279    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17280    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17281    # Insert the option either (1) after the last *FLAGS variable, or
17282    # (2) before a word containing "conftest.", or (3) at the end.
17283    # Note that $ac_compile itself does not contain backslashes and begins
17284    # with a dollar sign (not a hyphen), so the echo should work correctly.
17285    # The option is referenced via a variable to avoid confusing sed.
17286    lt_compile=`echo "$ac_compile" | $SED \
17287    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17288    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17289    -e 's:$: $lt_compiler_flag:'`
17290    (eval echo "\"\$as_me:17290: $lt_compile\"" >&5)
17291    (eval "$lt_compile" 2>conftest.err)
17292    ac_status=$?
17293    cat conftest.err >&5
17294    echo "$as_me:17294: \$? = $ac_status" >&5
17295    if (exit $ac_status) && test -s "$ac_outfile"; then
17296      # The compiler can only warn and ignore the option if not recognized
17297      # So say no if there are warnings other than the usual output.
17298      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17299      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17300      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17301        lt_cv_prog_compiler_pic_works_GCJ=yes
17302      fi
17303    fi
17304    $rm conftest*
17305
17306 fi
17307 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17308 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17309
17310 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17311     case $lt_prog_compiler_pic_GCJ in
17312      "" | " "*) ;;
17313      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17314      esac
17315 else
17316     lt_prog_compiler_pic_GCJ=
17317      lt_prog_compiler_can_build_shared_GCJ=no
17318 fi
17319
17320 fi
17321 case $host_os in
17322   # For platforms which do not support PIC, -DPIC is meaningless:
17323   *djgpp*)
17324     lt_prog_compiler_pic_GCJ=
17325     ;;
17326   *)
17327     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17328     ;;
17329 esac
17330
17331 #
17332 # Check to make sure the static flag actually works.
17333 #
17334 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17335 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17336 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17337 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17338   echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340   lt_cv_prog_compiler_static_works_GCJ=no
17341    save_LDFLAGS="$LDFLAGS"
17342    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17343    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17344    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17345      # The linker can only warn and ignore the option if not recognized
17346      # So say no if there are warnings
17347      if test -s conftest.err; then
17348        # Append any errors to the config.log.
17349        cat conftest.err 1>&5
17350        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17351        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17352        if diff conftest.exp conftest.er2 >/dev/null; then
17353          lt_cv_prog_compiler_static_works_GCJ=yes
17354        fi
17355      else
17356        lt_cv_prog_compiler_static_works_GCJ=yes
17357      fi
17358    fi
17359    $rm -r conftest*
17360    LDFLAGS="$save_LDFLAGS"
17361
17362 fi
17363 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17364 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17365
17366 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17367     :
17368 else
17369     lt_prog_compiler_static_GCJ=
17370 fi
17371
17372
17373 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17374 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17375 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17376   echo $ECHO_N "(cached) $ECHO_C" >&6
17377 else
17378   lt_cv_prog_compiler_c_o_GCJ=no
17379    $rm -r conftest 2>/dev/null
17380    mkdir conftest
17381    cd conftest
17382    mkdir out
17383    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17384
17385    lt_compiler_flag="-o out/conftest2.$ac_objext"
17386    # Insert the option either (1) after the last *FLAGS variable, or
17387    # (2) before a word containing "conftest.", or (3) at the end.
17388    # Note that $ac_compile itself does not contain backslashes and begins
17389    # with a dollar sign (not a hyphen), so the echo should work correctly.
17390    lt_compile=`echo "$ac_compile" | $SED \
17391    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17392    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17393    -e 's:$: $lt_compiler_flag:'`
17394    (eval echo "\"\$as_me:17394: $lt_compile\"" >&5)
17395    (eval "$lt_compile" 2>out/conftest.err)
17396    ac_status=$?
17397    cat out/conftest.err >&5
17398    echo "$as_me:17398: \$? = $ac_status" >&5
17399    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17400    then
17401      # The compiler can only warn and ignore the option if not recognized
17402      # So say no if there are warnings
17403      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17404      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17405      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17406        lt_cv_prog_compiler_c_o_GCJ=yes
17407      fi
17408    fi
17409    chmod u+w . 2>&5
17410    $rm conftest*
17411    # SGI C++ compiler will create directory out/ii_files/ for
17412    # template instantiation
17413    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17414    $rm out/* && rmdir out
17415    cd ..
17416    rmdir conftest
17417    $rm conftest*
17418
17419 fi
17420 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17421 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17422
17423
17424 hard_links="nottested"
17425 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17426   # do not overwrite the value of need_locks provided by the user
17427   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17428 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17429   hard_links=yes
17430   $rm conftest*
17431   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17432   touch conftest.a
17433   ln conftest.a conftest.b 2>&5 || hard_links=no
17434   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17435   { echo "$as_me:$LINENO: result: $hard_links" >&5
17436 echo "${ECHO_T}$hard_links" >&6; }
17437   if test "$hard_links" = no; then
17438     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17439 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17440     need_locks=warn
17441   fi
17442 else
17443   need_locks=no
17444 fi
17445
17446 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17447 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17448
17449   runpath_var=
17450   allow_undefined_flag_GCJ=
17451   enable_shared_with_static_runtimes_GCJ=no
17452   archive_cmds_GCJ=
17453   archive_expsym_cmds_GCJ=
17454   old_archive_From_new_cmds_GCJ=
17455   old_archive_from_expsyms_cmds_GCJ=
17456   export_dynamic_flag_spec_GCJ=
17457   whole_archive_flag_spec_GCJ=
17458   thread_safe_flag_spec_GCJ=
17459   hardcode_libdir_flag_spec_GCJ=
17460   hardcode_libdir_flag_spec_ld_GCJ=
17461   hardcode_libdir_separator_GCJ=
17462   hardcode_direct_GCJ=no
17463   hardcode_minus_L_GCJ=no
17464   hardcode_shlibpath_var_GCJ=unsupported
17465   link_all_deplibs_GCJ=unknown
17466   hardcode_automatic_GCJ=no
17467   module_cmds_GCJ=
17468   module_expsym_cmds_GCJ=
17469   always_export_symbols_GCJ=no
17470   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17471   # include_expsyms should be a list of space-separated symbols to be *always*
17472   # included in the symbol list
17473   include_expsyms_GCJ=
17474   # exclude_expsyms can be an extended regexp of symbols to exclude
17475   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17476   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17477   # as well as any symbol that contains `d'.
17478   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17479   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17480   # platforms (ab)use it in PIC code, but their linkers get confused if
17481   # the symbol is explicitly referenced.  Since portable code cannot
17482   # rely on this symbol name, it's probably fine to never include it in
17483   # preloaded symbol tables.
17484   # Exclude shared library initialization/finalization symbols.
17485   extract_expsyms_cmds=
17486   # Just being paranoid about ensuring that cc_basename is set.
17487   for cc_temp in $compiler""; do
17488   case $cc_temp in
17489     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17490     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17491     \-*) ;;
17492     *) break;;
17493   esac
17494 done
17495 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17496
17497   case $host_os in
17498   cygwin* | mingw* | pw32*)
17499     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17500     # When not using gcc, we currently assume that we are using
17501     # Microsoft Visual C++.
17502     if test "$GCC" != yes; then
17503       with_gnu_ld=no
17504     fi
17505     ;;
17506   interix*)
17507     # we just hope/assume this is gcc and not c89 (= MSVC++)
17508     with_gnu_ld=yes
17509     ;;
17510   openbsd*)
17511     with_gnu_ld=no
17512     ;;
17513   esac
17514
17515   ld_shlibs_GCJ=yes
17516   if test "$with_gnu_ld" = yes; then
17517     # If archive_cmds runs LD, not CC, wlarc should be empty
17518     wlarc='${wl}'
17519
17520     # Set some defaults for GNU ld with shared library support. These
17521     # are reset later if shared libraries are not supported. Putting them
17522     # here allows them to be overridden if necessary.
17523     runpath_var=LD_RUN_PATH
17524     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17525     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17526     # ancient GNU ld didn't support --whole-archive et. al.
17527     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17528         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17529       else
17530         whole_archive_flag_spec_GCJ=
17531     fi
17532     supports_anon_versioning=no
17533     case `$LD -v 2>/dev/null` in
17534       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17535       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17536       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17537       *\ 2.11.*) ;; # other 2.11 versions
17538       *) supports_anon_versioning=yes ;;
17539     esac
17540
17541     # See if GNU ld supports shared libraries.
17542     case $host_os in
17543     aix[3-9]*)
17544       # On AIX/PPC, the GNU linker is very broken
17545       if test "$host_cpu" != ia64; then
17546         ld_shlibs_GCJ=no
17547         cat <<EOF 1>&2
17548
17549 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17550 *** to be unable to reliably create shared libraries on AIX.
17551 *** Therefore, libtool is disabling shared libraries support.  If you
17552 *** really care for shared libraries, you may want to modify your PATH
17553 *** so that a non-GNU linker is found, and then restart.
17554
17555 EOF
17556       fi
17557       ;;
17558
17559     amigaos*)
17560       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)'
17561       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17562       hardcode_minus_L_GCJ=yes
17563
17564       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17565       # that the semantics of dynamic libraries on AmigaOS, at least up
17566       # to version 4, is to share data among multiple programs linked
17567       # with the same dynamic library.  Since this doesn't match the
17568       # behavior of shared libraries on other platforms, we can't use
17569       # them.
17570       ld_shlibs_GCJ=no
17571       ;;
17572
17573     beos*)
17574       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17575         allow_undefined_flag_GCJ=unsupported
17576         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17577         # support --undefined.  This deserves some investigation.  FIXME
17578         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17579       else
17580         ld_shlibs_GCJ=no
17581       fi
17582       ;;
17583
17584     cygwin* | mingw* | pw32*)
17585       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17586       # as there is no search path for DLLs.
17587       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17588       allow_undefined_flag_GCJ=unsupported
17589       always_export_symbols_GCJ=no
17590       enable_shared_with_static_runtimes_GCJ=yes
17591       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17592
17593       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17594         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17595         # If the export-symbols file already is a .def file (1st line
17596         # is EXPORTS), use it as is; otherwise, prepend...
17597         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17598           cp $export_symbols $output_objdir/$soname.def;
17599         else
17600           echo EXPORTS > $output_objdir/$soname.def;
17601           cat $export_symbols >> $output_objdir/$soname.def;
17602         fi~
17603         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17604       else
17605         ld_shlibs_GCJ=no
17606       fi
17607       ;;
17608
17609     interix[3-9]*)
17610       hardcode_direct_GCJ=no
17611       hardcode_shlibpath_var_GCJ=no
17612       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17613       export_dynamic_flag_spec_GCJ='${wl}-E'
17614       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17615       # Instead, shared libraries are loaded at an image base (0x10000000 by
17616       # default) and relocated if they conflict, which is a slow very memory
17617       # consuming and fragmenting process.  To avoid this, we pick a random,
17618       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17619       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17620       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'
17621       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'
17622       ;;
17623
17624     gnu* | linux* | k*bsd*-gnu)
17625       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17626         tmp_addflag=
17627         case $cc_basename,$host_cpu in
17628         pgcc*)                          # Portland Group C compiler
17629           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'
17630           tmp_addflag=' $pic_flag'
17631           ;;
17632         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17633           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'
17634           tmp_addflag=' $pic_flag -Mnomain' ;;
17635         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17636           tmp_addflag=' -i_dynamic' ;;
17637         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17638           tmp_addflag=' -i_dynamic -nofor_main' ;;
17639         ifc* | ifort*)                  # Intel Fortran compiler
17640           tmp_addflag=' -nofor_main' ;;
17641         esac
17642         case `$CC -V 2>&1 | sed 5q` in
17643         *Sun\ C*)                       # Sun C 5.9
17644           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17645           tmp_sharedflag='-G' ;;
17646         *Sun\ F*)                       # Sun Fortran 8.3
17647           tmp_sharedflag='-G' ;;
17648         *)
17649           tmp_sharedflag='-shared' ;;
17650         esac
17651         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17652
17653         if test $supports_anon_versioning = yes; then
17654           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17655   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17656   $echo "local: *; };" >> $output_objdir/$libname.ver~
17657           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17658         fi
17659         link_all_deplibs_GCJ=no
17660       else
17661         ld_shlibs_GCJ=no
17662       fi
17663       ;;
17664
17665     netbsd* | netbsdelf*-gnu)
17666       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17667         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17668         wlarc=
17669       else
17670         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17671         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17672       fi
17673       ;;
17674
17675     solaris*)
17676       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17677         ld_shlibs_GCJ=no
17678         cat <<EOF 1>&2
17679
17680 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17681 *** create shared libraries on Solaris systems.  Therefore, libtool
17682 *** is disabling shared libraries support.  We urge you to upgrade GNU
17683 *** binutils to release 2.9.1 or newer.  Another option is to modify
17684 *** your PATH or compiler configuration so that the native linker is
17685 *** used, and then restart.
17686
17687 EOF
17688       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17689         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17690         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17691       else
17692         ld_shlibs_GCJ=no
17693       fi
17694       ;;
17695
17696     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17697       case `$LD -v 2>&1` in
17698         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17699         ld_shlibs_GCJ=no
17700         cat <<_LT_EOF 1>&2
17701
17702 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17703 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17704 *** is disabling shared libraries support.  We urge you to upgrade GNU
17705 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17706 *** your PATH or compiler configuration so that the native linker is
17707 *** used, and then restart.
17708
17709 _LT_EOF
17710         ;;
17711         *)
17712           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17713             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17714             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17715             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17716           else
17717             ld_shlibs_GCJ=no
17718           fi
17719         ;;
17720       esac
17721       ;;
17722
17723     sunos4*)
17724       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17725       wlarc=
17726       hardcode_direct_GCJ=yes
17727       hardcode_shlibpath_var_GCJ=no
17728       ;;
17729
17730     *)
17731       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17732         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17733         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17734       else
17735         ld_shlibs_GCJ=no
17736       fi
17737       ;;
17738     esac
17739
17740     if test "$ld_shlibs_GCJ" = no; then
17741       runpath_var=
17742       hardcode_libdir_flag_spec_GCJ=
17743       export_dynamic_flag_spec_GCJ=
17744       whole_archive_flag_spec_GCJ=
17745     fi
17746   else
17747     # PORTME fill in a description of your system's linker (not GNU ld)
17748     case $host_os in
17749     aix3*)
17750       allow_undefined_flag_GCJ=unsupported
17751       always_export_symbols_GCJ=yes
17752       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'
17753       # Note: this linker hardcodes the directories in LIBPATH if there
17754       # are no directories specified by -L.
17755       hardcode_minus_L_GCJ=yes
17756       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17757         # Neither direct hardcoding nor static linking is supported with a
17758         # broken collect2.
17759         hardcode_direct_GCJ=unsupported
17760       fi
17761       ;;
17762
17763     aix[4-9]*)
17764       if test "$host_cpu" = ia64; then
17765         # On IA64, the linker does run time linking by default, so we don't
17766         # have to do anything special.
17767         aix_use_runtimelinking=no
17768         exp_sym_flag='-Bexport'
17769         no_entry_flag=""
17770       else
17771         # If we're using GNU nm, then we don't want the "-C" option.
17772         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17773         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17774           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'
17775         else
17776           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'
17777         fi
17778         aix_use_runtimelinking=no
17779
17780         # Test if we are trying to use run time linking or normal
17781         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17782         # need to do runtime linking.
17783         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17784           for ld_flag in $LDFLAGS; do
17785           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17786             aix_use_runtimelinking=yes
17787             break
17788           fi
17789           done
17790           ;;
17791         esac
17792
17793         exp_sym_flag='-bexport'
17794         no_entry_flag='-bnoentry'
17795       fi
17796
17797       # When large executables or shared objects are built, AIX ld can
17798       # have problems creating the table of contents.  If linking a library
17799       # or program results in "error TOC overflow" add -mminimal-toc to
17800       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17801       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17802
17803       archive_cmds_GCJ=''
17804       hardcode_direct_GCJ=yes
17805       hardcode_libdir_separator_GCJ=':'
17806       link_all_deplibs_GCJ=yes
17807
17808       if test "$GCC" = yes; then
17809         case $host_os in aix4.[012]|aix4.[012].*)
17810         # We only want to do this on AIX 4.2 and lower, the check
17811         # below for broken collect2 doesn't work under 4.3+
17812           collect2name=`${CC} -print-prog-name=collect2`
17813           if test -f "$collect2name" && \
17814            strings "$collect2name" | grep resolve_lib_name >/dev/null
17815           then
17816           # We have reworked collect2
17817           :
17818           else
17819           # We have old collect2
17820           hardcode_direct_GCJ=unsupported
17821           # It fails to find uninstalled libraries when the uninstalled
17822           # path is not listed in the libpath.  Setting hardcode_minus_L
17823           # to unsupported forces relinking
17824           hardcode_minus_L_GCJ=yes
17825           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17826           hardcode_libdir_separator_GCJ=
17827           fi
17828           ;;
17829         esac
17830         shared_flag='-shared'
17831         if test "$aix_use_runtimelinking" = yes; then
17832           shared_flag="$shared_flag "'${wl}-G'
17833         fi
17834       else
17835         # not using gcc
17836         if test "$host_cpu" = ia64; then
17837         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17838         # chokes on -Wl,-G. The following line is correct:
17839           shared_flag='-G'
17840         else
17841           if test "$aix_use_runtimelinking" = yes; then
17842             shared_flag='${wl}-G'
17843           else
17844             shared_flag='${wl}-bM:SRE'
17845           fi
17846         fi
17847       fi
17848
17849       # It seems that -bexpall does not export symbols beginning with
17850       # underscore (_), so it is better to generate a list of symbols to export.
17851       always_export_symbols_GCJ=yes
17852       if test "$aix_use_runtimelinking" = yes; then
17853         # Warning - without using the other runtime loading flags (-brtl),
17854         # -berok will link without error, but may produce a broken library.
17855         allow_undefined_flag_GCJ='-berok'
17856        # Determine the default libpath from the value encoded in an empty executable.
17857        cat >conftest.$ac_ext <<_ACEOF
17858 /* confdefs.h.  */
17859 _ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h.  */
17863
17864 int
17865 main ()
17866 {
17867
17868   ;
17869   return 0;
17870 }
17871 _ACEOF
17872 rm -f conftest.$ac_objext conftest$ac_exeext
17873 if { (ac_try="$ac_link"
17874 case "(($ac_try" in
17875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17876   *) ac_try_echo=$ac_try;;
17877 esac
17878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17879   (eval "$ac_link") 2>conftest.er1
17880   ac_status=$?
17881   grep -v '^ *+' conftest.er1 >conftest.err
17882   rm -f conftest.er1
17883   cat conftest.err >&5
17884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885   (exit $ac_status); } && {
17886          test -z "$ac_c_werror_flag" ||
17887          test ! -s conftest.err
17888        } && test -s conftest$ac_exeext &&
17889        $as_test_x conftest$ac_exeext; then
17890
17891 lt_aix_libpath_sed='
17892     /Import File Strings/,/^$/ {
17893         /^0/ {
17894             s/^0  *\(.*\)$/\1/
17895             p
17896         }
17897     }'
17898 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17899 # Check for a 64-bit object if we didn't find anything.
17900 if test -z "$aix_libpath"; then
17901   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17902 fi
17903 else
17904   echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17906
17907
17908 fi
17909
17910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17911       conftest$ac_exeext conftest.$ac_ext
17912 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17913
17914        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17915         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"
17916        else
17917         if test "$host_cpu" = ia64; then
17918           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17919           allow_undefined_flag_GCJ="-z nodefs"
17920           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"
17921         else
17922          # Determine the default libpath from the value encoded in an empty executable.
17923          cat >conftest.$ac_ext <<_ACEOF
17924 /* confdefs.h.  */
17925 _ACEOF
17926 cat confdefs.h >>conftest.$ac_ext
17927 cat >>conftest.$ac_ext <<_ACEOF
17928 /* end confdefs.h.  */
17929
17930 int
17931 main ()
17932 {
17933
17934   ;
17935   return 0;
17936 }
17937 _ACEOF
17938 rm -f conftest.$ac_objext conftest$ac_exeext
17939 if { (ac_try="$ac_link"
17940 case "(($ac_try" in
17941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17942   *) ac_try_echo=$ac_try;;
17943 esac
17944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17945   (eval "$ac_link") 2>conftest.er1
17946   ac_status=$?
17947   grep -v '^ *+' conftest.er1 >conftest.err
17948   rm -f conftest.er1
17949   cat conftest.err >&5
17950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951   (exit $ac_status); } && {
17952          test -z "$ac_c_werror_flag" ||
17953          test ! -s conftest.err
17954        } && test -s conftest$ac_exeext &&
17955        $as_test_x conftest$ac_exeext; then
17956
17957 lt_aix_libpath_sed='
17958     /Import File Strings/,/^$/ {
17959         /^0/ {
17960             s/^0  *\(.*\)$/\1/
17961             p
17962         }
17963     }'
17964 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17965 # Check for a 64-bit object if we didn't find anything.
17966 if test -z "$aix_libpath"; then
17967   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17968 fi
17969 else
17970   echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17972
17973
17974 fi
17975
17976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17977       conftest$ac_exeext conftest.$ac_ext
17978 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17979
17980          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17981           # Warning - without using the other run time loading flags,
17982           # -berok will link without error, but may produce a broken library.
17983           no_undefined_flag_GCJ=' ${wl}-bernotok'
17984           allow_undefined_flag_GCJ=' ${wl}-berok'
17985           # Exported symbols can be pulled into shared objects from archives
17986           whole_archive_flag_spec_GCJ='$convenience'
17987           archive_cmds_need_lc_GCJ=yes
17988           # This is similar to how AIX traditionally builds its shared libraries.
17989           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'
17990         fi
17991       fi
17992       ;;
17993
17994     amigaos*)
17995       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)'
17996       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17997       hardcode_minus_L_GCJ=yes
17998       # see comment about different semantics on the GNU ld section
17999       ld_shlibs_GCJ=no
18000       ;;
18001
18002     bsdi[45]*)
18003       export_dynamic_flag_spec_GCJ=-rdynamic
18004       ;;
18005
18006     cygwin* | mingw* | pw32*)
18007       # When not using gcc, we currently assume that we are using
18008       # Microsoft Visual C++.
18009       # hardcode_libdir_flag_spec is actually meaningless, as there is
18010       # no search path for DLLs.
18011       hardcode_libdir_flag_spec_GCJ=' '
18012       allow_undefined_flag_GCJ=unsupported
18013       # Tell ltmain to make .lib files, not .a files.
18014       libext=lib
18015       # Tell ltmain to make .dll files, not .so files.
18016       shrext_cmds=".dll"
18017       # FIXME: Setting linknames here is a bad hack.
18018       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18019       # The linker will automatically build a .lib file if we build a DLL.
18020       old_archive_From_new_cmds_GCJ='true'
18021       # FIXME: Should let the user specify the lib program.
18022       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18023       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18024       enable_shared_with_static_runtimes_GCJ=yes
18025       ;;
18026
18027     darwin* | rhapsody*)
18028       case $host_os in
18029         rhapsody* | darwin1.[012])
18030          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18031          ;;
18032        *) # Darwin 1.3 on
18033          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18034            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18035          else
18036            case ${MACOSX_DEPLOYMENT_TARGET} in
18037              10.[012])
18038                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18039                ;;
18040              10.*)
18041                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18042                ;;
18043            esac
18044          fi
18045          ;;
18046       esac
18047       archive_cmds_need_lc_GCJ=no
18048       hardcode_direct_GCJ=no
18049       hardcode_automatic_GCJ=yes
18050       hardcode_shlibpath_var_GCJ=unsupported
18051       whole_archive_flag_spec_GCJ=''
18052       link_all_deplibs_GCJ=yes
18053     if test "$GCC" = yes ; then
18054         output_verbose_link_cmd='echo'
18055         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18056         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18057         archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18058         module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18059     else
18060       case $cc_basename in
18061         xlc*)
18062          output_verbose_link_cmd='echo'
18063          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18064          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18065           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18066          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18067           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}'
18068           ;;
18069        *)
18070          ld_shlibs_GCJ=no
18071           ;;
18072       esac
18073     fi
18074       ;;
18075
18076     dgux*)
18077       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18078       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18079       hardcode_shlibpath_var_GCJ=no
18080       ;;
18081
18082     freebsd1*)
18083       ld_shlibs_GCJ=no
18084       ;;
18085
18086     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18087     # support.  Future versions do this automatically, but an explicit c++rt0.o
18088     # does not break anything, and helps significantly (at the cost of a little
18089     # extra space).
18090     freebsd2.2*)
18091       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18092       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18093       hardcode_direct_GCJ=yes
18094       hardcode_shlibpath_var_GCJ=no
18095       ;;
18096
18097     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18098     freebsd2*)
18099       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18100       hardcode_direct_GCJ=yes
18101       hardcode_minus_L_GCJ=yes
18102       hardcode_shlibpath_var_GCJ=no
18103       ;;
18104
18105     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18106     freebsd* | dragonfly*)
18107       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18108       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18109       hardcode_direct_GCJ=yes
18110       hardcode_shlibpath_var_GCJ=no
18111       ;;
18112
18113     hpux9*)
18114       if test "$GCC" = yes; then
18115         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'
18116       else
18117         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'
18118       fi
18119       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18120       hardcode_libdir_separator_GCJ=:
18121       hardcode_direct_GCJ=yes
18122
18123       # hardcode_minus_L: Not really in the search PATH,
18124       # but as the default location of the library.
18125       hardcode_minus_L_GCJ=yes
18126       export_dynamic_flag_spec_GCJ='${wl}-E'
18127       ;;
18128
18129     hpux10*)
18130       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18131         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18132       else
18133         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18134       fi
18135       if test "$with_gnu_ld" = no; then
18136         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18137         hardcode_libdir_separator_GCJ=:
18138
18139         hardcode_direct_GCJ=yes
18140         export_dynamic_flag_spec_GCJ='${wl}-E'
18141
18142         # hardcode_minus_L: Not really in the search PATH,
18143         # but as the default location of the library.
18144         hardcode_minus_L_GCJ=yes
18145       fi
18146       ;;
18147
18148     hpux11*)
18149       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18150         case $host_cpu in
18151         hppa*64*)
18152           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18153           ;;
18154         ia64*)
18155           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18156           ;;
18157         *)
18158           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18159           ;;
18160         esac
18161       else
18162         case $host_cpu in
18163         hppa*64*)
18164           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18165           ;;
18166         ia64*)
18167           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18168           ;;
18169         *)
18170           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18171           ;;
18172         esac
18173       fi
18174       if test "$with_gnu_ld" = no; then
18175         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18176         hardcode_libdir_separator_GCJ=:
18177
18178         case $host_cpu in
18179         hppa*64*|ia64*)
18180           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18181           hardcode_direct_GCJ=no
18182           hardcode_shlibpath_var_GCJ=no
18183           ;;
18184         *)
18185           hardcode_direct_GCJ=yes
18186           export_dynamic_flag_spec_GCJ='${wl}-E'
18187
18188           # hardcode_minus_L: Not really in the search PATH,
18189           # but as the default location of the library.
18190           hardcode_minus_L_GCJ=yes
18191           ;;
18192         esac
18193       fi
18194       ;;
18195
18196     irix5* | irix6* | nonstopux*)
18197       if test "$GCC" = yes; then
18198         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'
18199       else
18200         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'
18201         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18202       fi
18203       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18204       hardcode_libdir_separator_GCJ=:
18205       link_all_deplibs_GCJ=yes
18206       ;;
18207
18208     netbsd* | netbsdelf*-gnu)
18209       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18210         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18211       else
18212         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18213       fi
18214       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18215       hardcode_direct_GCJ=yes
18216       hardcode_shlibpath_var_GCJ=no
18217       ;;
18218
18219     newsos6)
18220       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18221       hardcode_direct_GCJ=yes
18222       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18223       hardcode_libdir_separator_GCJ=:
18224       hardcode_shlibpath_var_GCJ=no
18225       ;;
18226
18227     openbsd*)
18228       if test -f /usr/libexec/ld.so; then
18229         hardcode_direct_GCJ=yes
18230         hardcode_shlibpath_var_GCJ=no
18231         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18232           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18233           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18234           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18235           export_dynamic_flag_spec_GCJ='${wl}-E'
18236         else
18237           case $host_os in
18238            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18239              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18240              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18241              ;;
18242            *)
18243              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18244              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18245              ;;
18246           esac
18247         fi
18248       else
18249         ld_shlibs_GCJ=no
18250       fi
18251       ;;
18252
18253     os2*)
18254       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18255       hardcode_minus_L_GCJ=yes
18256       allow_undefined_flag_GCJ=unsupported
18257       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'
18258       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18259       ;;
18260
18261     osf3*)
18262       if test "$GCC" = yes; then
18263         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18264         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'
18265       else
18266         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18267         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'
18268       fi
18269       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18270       hardcode_libdir_separator_GCJ=:
18271       ;;
18272
18273     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18274       if test "$GCC" = yes; then
18275         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18276         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'
18277         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18278       else
18279         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18280         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'
18281         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~
18282         $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'
18283
18284         # Both c and cxx compiler support -rpath directly
18285         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18286       fi
18287       hardcode_libdir_separator_GCJ=:
18288       ;;
18289
18290     solaris*)
18291       no_undefined_flag_GCJ=' -z text'
18292       if test "$GCC" = yes; then
18293         wlarc='${wl}'
18294         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18295         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18296           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18297       else
18298         wlarc=''
18299         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18300         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18301         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18302       fi
18303       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18304       hardcode_shlibpath_var_GCJ=no
18305       case $host_os in
18306       solaris2.[0-5] | solaris2.[0-5].*) ;;
18307       *)
18308         # The compiler driver will combine and reorder linker options,
18309         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18310         # but is careful enough not to reorder.
18311         # Supported since Solaris 2.6 (maybe 2.5.1?)
18312         if test "$GCC" = yes; then
18313           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18314         else
18315           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18316         fi
18317         ;;
18318       esac
18319       link_all_deplibs_GCJ=yes
18320       ;;
18321
18322     sunos4*)
18323       if test "x$host_vendor" = xsequent; then
18324         # Use $CC to link under sequent, because it throws in some extra .o
18325         # files that make .init and .fini sections work.
18326         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18327       else
18328         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18329       fi
18330       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18331       hardcode_direct_GCJ=yes
18332       hardcode_minus_L_GCJ=yes
18333       hardcode_shlibpath_var_GCJ=no
18334       ;;
18335
18336     sysv4)
18337       case $host_vendor in
18338         sni)
18339           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18340           hardcode_direct_GCJ=yes # is this really true???
18341         ;;
18342         siemens)
18343           ## LD is ld it makes a PLAMLIB
18344           ## CC just makes a GrossModule.
18345           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18346           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18347           hardcode_direct_GCJ=no
18348         ;;
18349         motorola)
18350           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18351           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18352         ;;
18353       esac
18354       runpath_var='LD_RUN_PATH'
18355       hardcode_shlibpath_var_GCJ=no
18356       ;;
18357
18358     sysv4.3*)
18359       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18360       hardcode_shlibpath_var_GCJ=no
18361       export_dynamic_flag_spec_GCJ='-Bexport'
18362       ;;
18363
18364     sysv4*MP*)
18365       if test -d /usr/nec; then
18366         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18367         hardcode_shlibpath_var_GCJ=no
18368         runpath_var=LD_RUN_PATH
18369         hardcode_runpath_var=yes
18370         ld_shlibs_GCJ=yes
18371       fi
18372       ;;
18373
18374     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18375       no_undefined_flag_GCJ='${wl}-z,text'
18376       archive_cmds_need_lc_GCJ=no
18377       hardcode_shlibpath_var_GCJ=no
18378       runpath_var='LD_RUN_PATH'
18379
18380       if test "$GCC" = yes; then
18381         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18382         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18383       else
18384         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18385         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18386       fi
18387       ;;
18388
18389     sysv5* | sco3.2v5* | sco5v6*)
18390       # Note: We can NOT use -z defs as we might desire, because we do not
18391       # link with -lc, and that would cause any symbols used from libc to
18392       # always be unresolved, which means just about no library would
18393       # ever link correctly.  If we're not using GNU ld we use -z text
18394       # though, which does catch some bad symbols but isn't as heavy-handed
18395       # as -z defs.
18396       no_undefined_flag_GCJ='${wl}-z,text'
18397       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18398       archive_cmds_need_lc_GCJ=no
18399       hardcode_shlibpath_var_GCJ=no
18400       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18401       hardcode_libdir_separator_GCJ=':'
18402       link_all_deplibs_GCJ=yes
18403       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18404       runpath_var='LD_RUN_PATH'
18405
18406       if test "$GCC" = yes; then
18407         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18408         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18409       else
18410         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18411         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18412       fi
18413       ;;
18414
18415     uts4*)
18416       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18417       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18418       hardcode_shlibpath_var_GCJ=no
18419       ;;
18420
18421     *)
18422       ld_shlibs_GCJ=no
18423       ;;
18424     esac
18425   fi
18426
18427 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18428 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18429 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18430
18431 #
18432 # Do we need to explicitly link libc?
18433 #
18434 case "x$archive_cmds_need_lc_GCJ" in
18435 x|xyes)
18436   # Assume -lc should be added
18437   archive_cmds_need_lc_GCJ=yes
18438
18439   if test "$enable_shared" = yes && test "$GCC" = yes; then
18440     case $archive_cmds_GCJ in
18441     *'~'*)
18442       # FIXME: we may have to deal with multi-command sequences.
18443       ;;
18444     '$CC '*)
18445       # Test whether the compiler implicitly links with -lc since on some
18446       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18447       # to ld, don't add -lc before -lgcc.
18448       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18449 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18450       $rm conftest*
18451       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18452
18453       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18454   (eval $ac_compile) 2>&5
18455   ac_status=$?
18456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457   (exit $ac_status); } 2>conftest.err; then
18458         soname=conftest
18459         lib=conftest
18460         libobjs=conftest.$ac_objext
18461         deplibs=
18462         wl=$lt_prog_compiler_wl_GCJ
18463         pic_flag=$lt_prog_compiler_pic_GCJ
18464         compiler_flags=-v
18465         linker_flags=-v
18466         verstring=
18467         output_objdir=.
18468         libname=conftest
18469         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18470         allow_undefined_flag_GCJ=
18471         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18472   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18473   ac_status=$?
18474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475   (exit $ac_status); }
18476         then
18477           archive_cmds_need_lc_GCJ=no
18478         else
18479           archive_cmds_need_lc_GCJ=yes
18480         fi
18481         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18482       else
18483         cat conftest.err 1>&5
18484       fi
18485       $rm conftest*
18486       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18487 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18488       ;;
18489     esac
18490   fi
18491   ;;
18492 esac
18493
18494 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18495 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18496 library_names_spec=
18497 libname_spec='lib$name'
18498 soname_spec=
18499 shrext_cmds=".so"
18500 postinstall_cmds=
18501 postuninstall_cmds=
18502 finish_cmds=
18503 finish_eval=
18504 shlibpath_var=
18505 shlibpath_overrides_runpath=unknown
18506 version_type=none
18507 dynamic_linker="$host_os ld.so"
18508 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18509
18510 need_lib_prefix=unknown
18511 hardcode_into_libs=no
18512
18513 # when you set need_version to no, make sure it does not cause -set_version
18514 # flags to be left without arguments
18515 need_version=unknown
18516
18517 case $host_os in
18518 aix3*)
18519   version_type=linux
18520   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18521   shlibpath_var=LIBPATH
18522
18523   # AIX 3 has no versioning support, so we append a major version to the name.
18524   soname_spec='${libname}${release}${shared_ext}$major'
18525   ;;
18526
18527 aix[4-9]*)
18528   version_type=linux
18529   need_lib_prefix=no
18530   need_version=no
18531   hardcode_into_libs=yes
18532   if test "$host_cpu" = ia64; then
18533     # AIX 5 supports IA64
18534     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18535     shlibpath_var=LD_LIBRARY_PATH
18536   else
18537     # With GCC up to 2.95.x, collect2 would create an import file
18538     # for dependence libraries.  The import file would start with
18539     # the line `#! .'.  This would cause the generated library to
18540     # depend on `.', always an invalid library.  This was fixed in
18541     # development snapshots of GCC prior to 3.0.
18542     case $host_os in
18543       aix4 | aix4.[01] | aix4.[01].*)
18544       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18545            echo ' yes '
18546            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18547         :
18548       else
18549         can_build_shared=no
18550       fi
18551       ;;
18552     esac
18553     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18554     # soname into executable. Probably we can add versioning support to
18555     # collect2, so additional links can be useful in future.
18556     if test "$aix_use_runtimelinking" = yes; then
18557       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18558       # instead of lib<name>.a to let people know that these are not
18559       # typical AIX shared libraries.
18560       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18561     else
18562       # We preserve .a as extension for shared libraries through AIX4.2
18563       # and later when we are not doing run time linking.
18564       library_names_spec='${libname}${release}.a $libname.a'
18565       soname_spec='${libname}${release}${shared_ext}$major'
18566     fi
18567     shlibpath_var=LIBPATH
18568   fi
18569   ;;
18570
18571 amigaos*)
18572   library_names_spec='$libname.ixlibrary $libname.a'
18573   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18574   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'
18575   ;;
18576
18577 beos*)
18578   library_names_spec='${libname}${shared_ext}'
18579   dynamic_linker="$host_os ld.so"
18580   shlibpath_var=LIBRARY_PATH
18581   ;;
18582
18583 bsdi[45]*)
18584   version_type=linux
18585   need_version=no
18586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18587   soname_spec='${libname}${release}${shared_ext}$major'
18588   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18589   shlibpath_var=LD_LIBRARY_PATH
18590   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18591   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18592   # the default ld.so.conf also contains /usr/contrib/lib and
18593   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18594   # libtool to hard-code these into programs
18595   ;;
18596
18597 cygwin* | mingw* | pw32*)
18598   version_type=windows
18599   shrext_cmds=".dll"
18600   need_version=no
18601   need_lib_prefix=no
18602
18603   case $GCC,$host_os in
18604   yes,cygwin* | yes,mingw* | yes,pw32*)
18605     library_names_spec='$libname.dll.a'
18606     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18607     postinstall_cmds='base_file=`basename \${file}`~
18608       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18609       dldir=$destdir/`dirname \$dlpath`~
18610       test -d \$dldir || mkdir -p \$dldir~
18611       $install_prog $dir/$dlname \$dldir/$dlname~
18612       chmod a+x \$dldir/$dlname'
18613     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18614       dlpath=$dir/\$dldll~
18615        $rm \$dlpath'
18616     shlibpath_overrides_runpath=yes
18617
18618     case $host_os in
18619     cygwin*)
18620       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18621       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18622       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18623       ;;
18624     mingw*)
18625       # MinGW DLLs use traditional 'lib' prefix
18626       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18627       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18628       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18629         # It is most probably a Windows format PATH printed by
18630         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18631         # path with ; separators, and with drive letters. We can handle the
18632         # drive letters (cygwin fileutils understands them), so leave them,
18633         # especially as we might pass files found there to a mingw objdump,
18634         # which wouldn't understand a cygwinified path. Ahh.
18635         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18636       else
18637         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18638       fi
18639       ;;
18640     pw32*)
18641       # pw32 DLLs use 'pw' prefix rather than 'lib'
18642       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18643       ;;
18644     esac
18645     ;;
18646
18647   *)
18648     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18649     ;;
18650   esac
18651   dynamic_linker='Win32 ld.exe'
18652   # FIXME: first we should search . and the directory the executable is in
18653   shlibpath_var=PATH
18654   ;;
18655
18656 darwin* | rhapsody*)
18657   dynamic_linker="$host_os dyld"
18658   version_type=darwin
18659   need_lib_prefix=no
18660   need_version=no
18661   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18662   soname_spec='${libname}${release}${major}$shared_ext'
18663   shlibpath_overrides_runpath=yes
18664   shlibpath_var=DYLD_LIBRARY_PATH
18665   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18666
18667   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18668   ;;
18669
18670 dgux*)
18671   version_type=linux
18672   need_lib_prefix=no
18673   need_version=no
18674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18675   soname_spec='${libname}${release}${shared_ext}$major'
18676   shlibpath_var=LD_LIBRARY_PATH
18677   ;;
18678
18679 freebsd1*)
18680   dynamic_linker=no
18681   ;;
18682
18683 freebsd* | dragonfly*)
18684   # DragonFly does not have aout.  When/if they implement a new
18685   # versioning mechanism, adjust this.
18686   if test -x /usr/bin/objformat; then
18687     objformat=`/usr/bin/objformat`
18688   else
18689     case $host_os in
18690     freebsd[123]*) objformat=aout ;;
18691     *) objformat=elf ;;
18692     esac
18693   fi
18694   version_type=freebsd-$objformat
18695   case $version_type in
18696     freebsd-elf*)
18697       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18698       need_version=no
18699       need_lib_prefix=no
18700       ;;
18701     freebsd-*)
18702       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18703       need_version=yes
18704       ;;
18705   esac
18706   shlibpath_var=LD_LIBRARY_PATH
18707   case $host_os in
18708   freebsd2*)
18709     shlibpath_overrides_runpath=yes
18710     ;;
18711   freebsd3.[01]* | freebsdelf3.[01]*)
18712     shlibpath_overrides_runpath=yes
18713     hardcode_into_libs=yes
18714     ;;
18715   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18716   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18717     shlibpath_overrides_runpath=no
18718     hardcode_into_libs=yes
18719     ;;
18720   *) # from 4.6 on, and DragonFly
18721     shlibpath_overrides_runpath=yes
18722     hardcode_into_libs=yes
18723     ;;
18724   esac
18725   ;;
18726
18727 gnu*)
18728   version_type=linux
18729   need_lib_prefix=no
18730   need_version=no
18731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18732   soname_spec='${libname}${release}${shared_ext}$major'
18733   shlibpath_var=LD_LIBRARY_PATH
18734   hardcode_into_libs=yes
18735   ;;
18736
18737 hpux9* | hpux10* | hpux11*)
18738   # Give a soname corresponding to the major version so that dld.sl refuses to
18739   # link against other versions.
18740   version_type=sunos
18741   need_lib_prefix=no
18742   need_version=no
18743   case $host_cpu in
18744   ia64*)
18745     shrext_cmds='.so'
18746     hardcode_into_libs=yes
18747     dynamic_linker="$host_os dld.so"
18748     shlibpath_var=LD_LIBRARY_PATH
18749     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18750     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18751     soname_spec='${libname}${release}${shared_ext}$major'
18752     if test "X$HPUX_IA64_MODE" = X32; then
18753       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18754     else
18755       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18756     fi
18757     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18758     ;;
18759    hppa*64*)
18760      shrext_cmds='.sl'
18761      hardcode_into_libs=yes
18762      dynamic_linker="$host_os dld.sl"
18763      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18764      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18765      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18766      soname_spec='${libname}${release}${shared_ext}$major'
18767      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18768      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18769      ;;
18770    *)
18771     shrext_cmds='.sl'
18772     dynamic_linker="$host_os dld.sl"
18773     shlibpath_var=SHLIB_PATH
18774     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18775     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18776     soname_spec='${libname}${release}${shared_ext}$major'
18777     ;;
18778   esac
18779   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18780   postinstall_cmds='chmod 555 $lib'
18781   ;;
18782
18783 interix[3-9]*)
18784   version_type=linux
18785   need_lib_prefix=no
18786   need_version=no
18787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18788   soname_spec='${libname}${release}${shared_ext}$major'
18789   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18790   shlibpath_var=LD_LIBRARY_PATH
18791   shlibpath_overrides_runpath=no
18792   hardcode_into_libs=yes
18793   ;;
18794
18795 irix5* | irix6* | nonstopux*)
18796   case $host_os in
18797     nonstopux*) version_type=nonstopux ;;
18798     *)
18799         if test "$lt_cv_prog_gnu_ld" = yes; then
18800                 version_type=linux
18801         else
18802                 version_type=irix
18803         fi ;;
18804   esac
18805   need_lib_prefix=no
18806   need_version=no
18807   soname_spec='${libname}${release}${shared_ext}$major'
18808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18809   case $host_os in
18810   irix5* | nonstopux*)
18811     libsuff= shlibsuff=
18812     ;;
18813   *)
18814     case $LD in # libtool.m4 will add one of these switches to LD
18815     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18816       libsuff= shlibsuff= libmagic=32-bit;;
18817     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18818       libsuff=32 shlibsuff=N32 libmagic=N32;;
18819     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18820       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18821     *) libsuff= shlibsuff= libmagic=never-match;;
18822     esac
18823     ;;
18824   esac
18825   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18826   shlibpath_overrides_runpath=no
18827   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18828   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18829   hardcode_into_libs=yes
18830   ;;
18831
18832 # No shared lib support for Linux oldld, aout, or coff.
18833 linux*oldld* | linux*aout* | linux*coff*)
18834   dynamic_linker=no
18835   ;;
18836
18837 # This must be Linux ELF.
18838 linux* | k*bsd*-gnu)
18839   version_type=linux
18840   need_lib_prefix=no
18841   need_version=no
18842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18843   soname_spec='${libname}${release}${shared_ext}$major'
18844   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18845   shlibpath_var=LD_LIBRARY_PATH
18846   shlibpath_overrides_runpath=no
18847   # This implies no fast_install, which is unacceptable.
18848   # Some rework will be needed to allow for fast_install
18849   # before this can be enabled.
18850   hardcode_into_libs=yes
18851
18852   # Append ld.so.conf contents to the search path
18853   if test -f /etc/ld.so.conf; then
18854     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18855     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18856   fi
18857
18858   # We used to test for /lib/ld.so.1 and disable shared libraries on
18859   # powerpc, because MkLinux only supported shared libraries with the
18860   # GNU dynamic linker.  Since this was broken with cross compilers,
18861   # most powerpc-linux boxes support dynamic linking these days and
18862   # people can always --disable-shared, the test was removed, and we
18863   # assume the GNU/Linux dynamic linker is in use.
18864   dynamic_linker='GNU/Linux ld.so'
18865   ;;
18866
18867 netbsdelf*-gnu)
18868   version_type=linux
18869   need_lib_prefix=no
18870   need_version=no
18871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18872   soname_spec='${libname}${release}${shared_ext}$major'
18873   shlibpath_var=LD_LIBRARY_PATH
18874   shlibpath_overrides_runpath=no
18875   hardcode_into_libs=yes
18876   dynamic_linker='NetBSD ld.elf_so'
18877   ;;
18878
18879 netbsd*)
18880   version_type=sunos
18881   need_lib_prefix=no
18882   need_version=no
18883   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18884     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18885     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18886     dynamic_linker='NetBSD (a.out) ld.so'
18887   else
18888     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18889     soname_spec='${libname}${release}${shared_ext}$major'
18890     dynamic_linker='NetBSD ld.elf_so'
18891   fi
18892   shlibpath_var=LD_LIBRARY_PATH
18893   shlibpath_overrides_runpath=yes
18894   hardcode_into_libs=yes
18895   ;;
18896
18897 newsos6)
18898   version_type=linux
18899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18900   shlibpath_var=LD_LIBRARY_PATH
18901   shlibpath_overrides_runpath=yes
18902   ;;
18903
18904 nto-qnx*)
18905   version_type=linux
18906   need_lib_prefix=no
18907   need_version=no
18908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18909   soname_spec='${libname}${release}${shared_ext}$major'
18910   shlibpath_var=LD_LIBRARY_PATH
18911   shlibpath_overrides_runpath=yes
18912   ;;
18913
18914 openbsd*)
18915   version_type=sunos
18916   sys_lib_dlsearch_path_spec="/usr/lib"
18917   need_lib_prefix=no
18918   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18919   case $host_os in
18920     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18921     *)                         need_version=no  ;;
18922   esac
18923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18924   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18925   shlibpath_var=LD_LIBRARY_PATH
18926   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18927     case $host_os in
18928       openbsd2.[89] | openbsd2.[89].*)
18929         shlibpath_overrides_runpath=no
18930         ;;
18931       *)
18932         shlibpath_overrides_runpath=yes
18933         ;;
18934       esac
18935   else
18936     shlibpath_overrides_runpath=yes
18937   fi
18938   ;;
18939
18940 os2*)
18941   libname_spec='$name'
18942   shrext_cmds=".dll"
18943   need_lib_prefix=no
18944   library_names_spec='$libname${shared_ext} $libname.a'
18945   dynamic_linker='OS/2 ld.exe'
18946   shlibpath_var=LIBPATH
18947   ;;
18948
18949 osf3* | osf4* | osf5*)
18950   version_type=osf
18951   need_lib_prefix=no
18952   need_version=no
18953   soname_spec='${libname}${release}${shared_ext}$major'
18954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18955   shlibpath_var=LD_LIBRARY_PATH
18956   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18957   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18958   ;;
18959
18960 rdos*)
18961   dynamic_linker=no
18962   ;;
18963
18964 solaris*)
18965   version_type=linux
18966   need_lib_prefix=no
18967   need_version=no
18968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18969   soname_spec='${libname}${release}${shared_ext}$major'
18970   shlibpath_var=LD_LIBRARY_PATH
18971   shlibpath_overrides_runpath=yes
18972   hardcode_into_libs=yes
18973   # ldd complains unless libraries are executable
18974   postinstall_cmds='chmod +x $lib'
18975   ;;
18976
18977 sunos4*)
18978   version_type=sunos
18979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18980   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18981   shlibpath_var=LD_LIBRARY_PATH
18982   shlibpath_overrides_runpath=yes
18983   if test "$with_gnu_ld" = yes; then
18984     need_lib_prefix=no
18985   fi
18986   need_version=yes
18987   ;;
18988
18989 sysv4 | sysv4.3*)
18990   version_type=linux
18991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18992   soname_spec='${libname}${release}${shared_ext}$major'
18993   shlibpath_var=LD_LIBRARY_PATH
18994   case $host_vendor in
18995     sni)
18996       shlibpath_overrides_runpath=no
18997       need_lib_prefix=no
18998       export_dynamic_flag_spec='${wl}-Blargedynsym'
18999       runpath_var=LD_RUN_PATH
19000       ;;
19001     siemens)
19002       need_lib_prefix=no
19003       ;;
19004     motorola)
19005       need_lib_prefix=no
19006       need_version=no
19007       shlibpath_overrides_runpath=no
19008       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19009       ;;
19010   esac
19011   ;;
19012
19013 sysv4*MP*)
19014   if test -d /usr/nec ;then
19015     version_type=linux
19016     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19017     soname_spec='$libname${shared_ext}.$major'
19018     shlibpath_var=LD_LIBRARY_PATH
19019   fi
19020   ;;
19021
19022 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19023   version_type=freebsd-elf
19024   need_lib_prefix=no
19025   need_version=no
19026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19027   soname_spec='${libname}${release}${shared_ext}$major'
19028   shlibpath_var=LD_LIBRARY_PATH
19029   hardcode_into_libs=yes
19030   if test "$with_gnu_ld" = yes; then
19031     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19032     shlibpath_overrides_runpath=no
19033   else
19034     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19035     shlibpath_overrides_runpath=yes
19036     case $host_os in
19037       sco3.2v5*)
19038         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19039         ;;
19040     esac
19041   fi
19042   sys_lib_dlsearch_path_spec='/usr/lib'
19043   ;;
19044
19045 uts4*)
19046   version_type=linux
19047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19048   soname_spec='${libname}${release}${shared_ext}$major'
19049   shlibpath_var=LD_LIBRARY_PATH
19050   ;;
19051
19052 *)
19053   dynamic_linker=no
19054   ;;
19055 esac
19056 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19057 echo "${ECHO_T}$dynamic_linker" >&6; }
19058 test "$dynamic_linker" = no && can_build_shared=no
19059
19060 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19061   echo $ECHO_N "(cached) $ECHO_C" >&6
19062 else
19063   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19064 fi
19065
19066 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19067 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19068   echo $ECHO_N "(cached) $ECHO_C" >&6
19069 else
19070   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19071 fi
19072
19073 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19074
19075 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19076 if test "$GCC" = yes; then
19077   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19078 fi
19079
19080 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19081 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19082 hardcode_action_GCJ=
19083 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19084    test -n "$runpath_var_GCJ" || \
19085    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19086
19087   # We can hardcode non-existant directories.
19088   if test "$hardcode_direct_GCJ" != no &&
19089      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19090      # have to relink, otherwise we might link with an installed library
19091      # when we should be linking with a yet-to-be-installed one
19092      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19093      test "$hardcode_minus_L_GCJ" != no; then
19094     # Linking always hardcodes the temporary library directory.
19095     hardcode_action_GCJ=relink
19096   else
19097     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19098     hardcode_action_GCJ=immediate
19099   fi
19100 else
19101   # We cannot hardcode anything, or else we can only hardcode existing
19102   # directories.
19103   hardcode_action_GCJ=unsupported
19104 fi
19105 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19106 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19107
19108 if test "$hardcode_action_GCJ" = relink; then
19109   # Fast installation is not supported
19110   enable_fast_install=no
19111 elif test "$shlibpath_overrides_runpath" = yes ||
19112      test "$enable_shared" = no; then
19113   # Fast installation is not necessary
19114   enable_fast_install=needless
19115 fi
19116
19117
19118 # The else clause should only fire when bootstrapping the
19119 # libtool distribution, otherwise you forgot to ship ltmain.sh
19120 # with your package, and you will get complaints that there are
19121 # no rules to generate ltmain.sh.
19122 if test -f "$ltmain"; then
19123   # See if we are running on zsh, and set the options which allow our commands through
19124   # without removal of \ escapes.
19125   if test -n "${ZSH_VERSION+set}" ; then
19126     setopt NO_GLOB_SUBST
19127   fi
19128   # Now quote all the things that may contain metacharacters while being
19129   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19130   # variables and quote the copies for generation of the libtool script.
19131   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19132     SED SHELL STRIP \
19133     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19134     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19135     deplibs_check_method reload_flag reload_cmds need_locks \
19136     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19137     lt_cv_sys_global_symbol_to_c_name_address \
19138     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19139     old_postinstall_cmds old_postuninstall_cmds \
19140     compiler_GCJ \
19141     CC_GCJ \
19142     LD_GCJ \
19143     lt_prog_compiler_wl_GCJ \
19144     lt_prog_compiler_pic_GCJ \
19145     lt_prog_compiler_static_GCJ \
19146     lt_prog_compiler_no_builtin_flag_GCJ \
19147     export_dynamic_flag_spec_GCJ \
19148     thread_safe_flag_spec_GCJ \
19149     whole_archive_flag_spec_GCJ \
19150     enable_shared_with_static_runtimes_GCJ \
19151     old_archive_cmds_GCJ \
19152     old_archive_from_new_cmds_GCJ \
19153     predep_objects_GCJ \
19154     postdep_objects_GCJ \
19155     predeps_GCJ \
19156     postdeps_GCJ \
19157     compiler_lib_search_path_GCJ \
19158     compiler_lib_search_dirs_GCJ \
19159     archive_cmds_GCJ \
19160     archive_expsym_cmds_GCJ \
19161     postinstall_cmds_GCJ \
19162     postuninstall_cmds_GCJ \
19163     old_archive_from_expsyms_cmds_GCJ \
19164     allow_undefined_flag_GCJ \
19165     no_undefined_flag_GCJ \
19166     export_symbols_cmds_GCJ \
19167     hardcode_libdir_flag_spec_GCJ \
19168     hardcode_libdir_flag_spec_ld_GCJ \
19169     hardcode_libdir_separator_GCJ \
19170     hardcode_automatic_GCJ \
19171     module_cmds_GCJ \
19172     module_expsym_cmds_GCJ \
19173     lt_cv_prog_compiler_c_o_GCJ \
19174     fix_srcfile_path_GCJ \
19175     exclude_expsyms_GCJ \
19176     include_expsyms_GCJ; do
19177
19178     case $var in
19179     old_archive_cmds_GCJ | \
19180     old_archive_from_new_cmds_GCJ | \
19181     archive_cmds_GCJ | \
19182     archive_expsym_cmds_GCJ | \
19183     module_cmds_GCJ | \
19184     module_expsym_cmds_GCJ | \
19185     old_archive_from_expsyms_cmds_GCJ | \
19186     export_symbols_cmds_GCJ | \
19187     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19188     postinstall_cmds | postuninstall_cmds | \
19189     old_postinstall_cmds | old_postuninstall_cmds | \
19190     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19191       # Double-quote double-evaled strings.
19192       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19193       ;;
19194     *)
19195       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19196       ;;
19197     esac
19198   done
19199
19200   case $lt_echo in
19201   *'\$0 --fallback-echo"')
19202     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19203     ;;
19204   esac
19205
19206 cfgfile="$ofile"
19207
19208   cat <<__EOF__ >> "$cfgfile"
19209 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19210
19211 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19212
19213 # Shell to use when invoking shell scripts.
19214 SHELL=$lt_SHELL
19215
19216 # Whether or not to build shared libraries.
19217 build_libtool_libs=$enable_shared
19218
19219 # Whether or not to build static libraries.
19220 build_old_libs=$enable_static
19221
19222 # Whether or not to add -lc for building shared libraries.
19223 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19224
19225 # Whether or not to disallow shared libs when runtime libs are static
19226 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19227
19228 # Whether or not to optimize for fast installation.
19229 fast_install=$enable_fast_install
19230
19231 # The host system.
19232 host_alias=$host_alias
19233 host=$host
19234 host_os=$host_os
19235
19236 # The build system.
19237 build_alias=$build_alias
19238 build=$build
19239 build_os=$build_os
19240
19241 # An echo program that does not interpret backslashes.
19242 echo=$lt_echo
19243
19244 # The archiver.
19245 AR=$lt_AR
19246 AR_FLAGS=$lt_AR_FLAGS
19247
19248 # A C compiler.
19249 LTCC=$lt_LTCC
19250
19251 # LTCC compiler flags.
19252 LTCFLAGS=$lt_LTCFLAGS
19253
19254 # A language-specific compiler.
19255 CC=$lt_compiler_GCJ
19256
19257 # Is the compiler the GNU C compiler?
19258 with_gcc=$GCC_GCJ
19259
19260 # An ERE matcher.
19261 EGREP=$lt_EGREP
19262
19263 # The linker used to build libraries.
19264 LD=$lt_LD_GCJ
19265
19266 # Whether we need hard or soft links.
19267 LN_S=$lt_LN_S
19268
19269 # A BSD-compatible nm program.
19270 NM=$lt_NM
19271
19272 # A symbol stripping program
19273 STRIP=$lt_STRIP
19274
19275 # Used to examine libraries when file_magic_cmd begins "file"
19276 MAGIC_CMD=$MAGIC_CMD
19277
19278 # Used on cygwin: DLL creation program.
19279 DLLTOOL="$DLLTOOL"
19280
19281 # Used on cygwin: object dumper.
19282 OBJDUMP="$OBJDUMP"
19283
19284 # Used on cygwin: assembler.
19285 AS="$AS"
19286
19287 # The name of the directory that contains temporary libtool files.
19288 objdir=$objdir
19289
19290 # How to create reloadable object files.
19291 reload_flag=$lt_reload_flag
19292 reload_cmds=$lt_reload_cmds
19293
19294 # How to pass a linker flag through the compiler.
19295 wl=$lt_lt_prog_compiler_wl_GCJ
19296
19297 # Object file suffix (normally "o").
19298 objext="$ac_objext"
19299
19300 # Old archive suffix (normally "a").
19301 libext="$libext"
19302
19303 # Shared library suffix (normally ".so").
19304 shrext_cmds='$shrext_cmds'
19305
19306 # Executable file suffix (normally "").
19307 exeext="$exeext"
19308
19309 # Additional compiler flags for building library objects.
19310 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19311 pic_mode=$pic_mode
19312
19313 # What is the maximum length of a command?
19314 max_cmd_len=$lt_cv_sys_max_cmd_len
19315
19316 # Does compiler simultaneously support -c and -o options?
19317 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19318
19319 # Must we lock files when doing compilation?
19320 need_locks=$lt_need_locks
19321
19322 # Do we need the lib prefix for modules?
19323 need_lib_prefix=$need_lib_prefix
19324
19325 # Do we need a version for libraries?
19326 need_version=$need_version
19327
19328 # Whether dlopen is supported.
19329 dlopen_support=$enable_dlopen
19330
19331 # Whether dlopen of programs is supported.
19332 dlopen_self=$enable_dlopen_self
19333
19334 # Whether dlopen of statically linked programs is supported.
19335 dlopen_self_static=$enable_dlopen_self_static
19336
19337 # Compiler flag to prevent dynamic linking.
19338 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19339
19340 # Compiler flag to turn off builtin functions.
19341 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19342
19343 # Compiler flag to allow reflexive dlopens.
19344 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19345
19346 # Compiler flag to generate shared objects directly from archives.
19347 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19348
19349 # Compiler flag to generate thread-safe objects.
19350 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19351
19352 # Library versioning type.
19353 version_type=$version_type
19354
19355 # Format of library name prefix.
19356 libname_spec=$lt_libname_spec
19357
19358 # List of archive names.  First name is the real one, the rest are links.
19359 # The last name is the one that the linker finds with -lNAME.
19360 library_names_spec=$lt_library_names_spec
19361
19362 # The coded name of the library, if different from the real name.
19363 soname_spec=$lt_soname_spec
19364
19365 # Commands used to build and install an old-style archive.
19366 RANLIB=$lt_RANLIB
19367 old_archive_cmds=$lt_old_archive_cmds_GCJ
19368 old_postinstall_cmds=$lt_old_postinstall_cmds
19369 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19370
19371 # Create an old-style archive from a shared archive.
19372 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19373
19374 # Create a temporary old-style archive to link instead of a shared archive.
19375 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19376
19377 # Commands used to build and install a shared archive.
19378 archive_cmds=$lt_archive_cmds_GCJ
19379 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19380 postinstall_cmds=$lt_postinstall_cmds
19381 postuninstall_cmds=$lt_postuninstall_cmds
19382
19383 # Commands used to build a loadable module (assumed same as above if empty)
19384 module_cmds=$lt_module_cmds_GCJ
19385 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19386
19387 # Commands to strip libraries.
19388 old_striplib=$lt_old_striplib
19389 striplib=$lt_striplib
19390
19391 # Dependencies to place before the objects being linked to create a
19392 # shared library.
19393 predep_objects=$lt_predep_objects_GCJ
19394
19395 # Dependencies to place after the objects being linked to create a
19396 # shared library.
19397 postdep_objects=$lt_postdep_objects_GCJ
19398
19399 # Dependencies to place before the objects being linked to create a
19400 # shared library.
19401 predeps=$lt_predeps_GCJ
19402
19403 # Dependencies to place after the objects being linked to create a
19404 # shared library.
19405 postdeps=$lt_postdeps_GCJ
19406
19407 # The directories searched by this compiler when creating a shared
19408 # library
19409 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19410
19411 # The library search path used internally by the compiler when linking
19412 # a shared library.
19413 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19414
19415 # Method to check whether dependent libraries are shared objects.
19416 deplibs_check_method=$lt_deplibs_check_method
19417
19418 # Command to use when deplibs_check_method == file_magic.
19419 file_magic_cmd=$lt_file_magic_cmd
19420
19421 # Flag that allows shared libraries with undefined symbols to be built.
19422 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19423
19424 # Flag that forces no undefined symbols.
19425 no_undefined_flag=$lt_no_undefined_flag_GCJ
19426
19427 # Commands used to finish a libtool library installation in a directory.
19428 finish_cmds=$lt_finish_cmds
19429
19430 # Same as above, but a single script fragment to be evaled but not shown.
19431 finish_eval=$lt_finish_eval
19432
19433 # Take the output of nm and produce a listing of raw symbols and C names.
19434 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19435
19436 # Transform the output of nm in a proper C declaration
19437 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19438
19439 # Transform the output of nm in a C name address pair
19440 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19441
19442 # This is the shared library runtime path variable.
19443 runpath_var=$runpath_var
19444
19445 # This is the shared library path variable.
19446 shlibpath_var=$shlibpath_var
19447
19448 # Is shlibpath searched before the hard-coded library search path?
19449 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19450
19451 # How to hardcode a shared library path into an executable.
19452 hardcode_action=$hardcode_action_GCJ
19453
19454 # Whether we should hardcode library paths into libraries.
19455 hardcode_into_libs=$hardcode_into_libs
19456
19457 # Flag to hardcode \$libdir into a binary during linking.
19458 # This must work even if \$libdir does not exist.
19459 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19460
19461 # If ld is used when linking, flag to hardcode \$libdir into
19462 # a binary during linking. This must work even if \$libdir does
19463 # not exist.
19464 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19465
19466 # Whether we need a single -rpath flag with a separated argument.
19467 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19468
19469 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19470 # resulting binary.
19471 hardcode_direct=$hardcode_direct_GCJ
19472
19473 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19474 # resulting binary.
19475 hardcode_minus_L=$hardcode_minus_L_GCJ
19476
19477 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19478 # the resulting binary.
19479 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19480
19481 # Set to yes if building a shared library automatically hardcodes DIR into the library
19482 # and all subsequent libraries and executables linked against it.
19483 hardcode_automatic=$hardcode_automatic_GCJ
19484
19485 # Variables whose values should be saved in libtool wrapper scripts and
19486 # restored at relink time.
19487 variables_saved_for_relink="$variables_saved_for_relink"
19488
19489 # Whether libtool must link a program against all its dependency libraries.
19490 link_all_deplibs=$link_all_deplibs_GCJ
19491
19492 # Compile-time system search path for libraries
19493 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19494
19495 # Run-time system search path for libraries
19496 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19497
19498 # Fix the shell variable \$srcfile for the compiler.
19499 fix_srcfile_path=$lt_fix_srcfile_path
19500
19501 # Set to yes if exported symbols are required.
19502 always_export_symbols=$always_export_symbols_GCJ
19503
19504 # The commands to list exported symbols.
19505 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19506
19507 # The commands to extract the exported symbol list from a shared archive.
19508 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19509
19510 # Symbols that should not be listed in the preloaded symbols.
19511 exclude_expsyms=$lt_exclude_expsyms_GCJ
19512
19513 # Symbols that must always be exported.
19514 include_expsyms=$lt_include_expsyms_GCJ
19515
19516 # ### END LIBTOOL TAG CONFIG: $tagname
19517
19518 __EOF__
19519
19520
19521 else
19522   # If there is no Makefile yet, we rely on a make rule to execute
19523   # `config.status --recheck' to rerun these tests and create the
19524   # libtool script then.
19525   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19526   if test -f "$ltmain_in"; then
19527     test -f Makefile && make "$ltmain"
19528   fi
19529 fi
19530
19531
19532 ac_ext=c
19533 ac_cpp='$CPP $CPPFLAGS'
19534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19537
19538 CC="$lt_save_CC"
19539
19540         else
19541           tagname=""
19542         fi
19543         ;;
19544
19545       RC)
19546
19547
19548 # Source file extension for RC test sources.
19549 ac_ext=rc
19550
19551 # Object file extension for compiled RC test sources.
19552 objext=o
19553 objext_RC=$objext
19554
19555 # Code to be used in simple compile tests
19556 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19557
19558 # Code to be used in simple link tests
19559 lt_simple_link_test_code="$lt_simple_compile_test_code"
19560
19561 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19562
19563 # If no C compiler was specified, use CC.
19564 LTCC=${LTCC-"$CC"}
19565
19566 # If no C compiler flags were specified, use CFLAGS.
19567 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19568
19569 # Allow CC to be a program name with arguments.
19570 compiler=$CC
19571
19572
19573 # save warnings/boilerplate of simple test code
19574 ac_outfile=conftest.$ac_objext
19575 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19576 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19577 _lt_compiler_boilerplate=`cat conftest.err`
19578 $rm conftest*
19579
19580 ac_outfile=conftest.$ac_objext
19581 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19582 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19583 _lt_linker_boilerplate=`cat conftest.err`
19584 $rm -r conftest*
19585
19586
19587 # Allow CC to be a program name with arguments.
19588 lt_save_CC="$CC"
19589 CC=${RC-"windres"}
19590 compiler=$CC
19591 compiler_RC=$CC
19592 for cc_temp in $compiler""; do
19593   case $cc_temp in
19594     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19595     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19596     \-*) ;;
19597     *) break;;
19598   esac
19599 done
19600 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19601
19602 lt_cv_prog_compiler_c_o_RC=yes
19603
19604 # The else clause should only fire when bootstrapping the
19605 # libtool distribution, otherwise you forgot to ship ltmain.sh
19606 # with your package, and you will get complaints that there are
19607 # no rules to generate ltmain.sh.
19608 if test -f "$ltmain"; then
19609   # See if we are running on zsh, and set the options which allow our commands through
19610   # without removal of \ escapes.
19611   if test -n "${ZSH_VERSION+set}" ; then
19612     setopt NO_GLOB_SUBST
19613   fi
19614   # Now quote all the things that may contain metacharacters while being
19615   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19616   # variables and quote the copies for generation of the libtool script.
19617   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19618     SED SHELL STRIP \
19619     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19620     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19621     deplibs_check_method reload_flag reload_cmds need_locks \
19622     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19623     lt_cv_sys_global_symbol_to_c_name_address \
19624     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19625     old_postinstall_cmds old_postuninstall_cmds \
19626     compiler_RC \
19627     CC_RC \
19628     LD_RC \
19629     lt_prog_compiler_wl_RC \
19630     lt_prog_compiler_pic_RC \
19631     lt_prog_compiler_static_RC \
19632     lt_prog_compiler_no_builtin_flag_RC \
19633     export_dynamic_flag_spec_RC \
19634     thread_safe_flag_spec_RC \
19635     whole_archive_flag_spec_RC \
19636     enable_shared_with_static_runtimes_RC \
19637     old_archive_cmds_RC \
19638     old_archive_from_new_cmds_RC \
19639     predep_objects_RC \
19640     postdep_objects_RC \
19641     predeps_RC \
19642     postdeps_RC \
19643     compiler_lib_search_path_RC \
19644     compiler_lib_search_dirs_RC \
19645     archive_cmds_RC \
19646     archive_expsym_cmds_RC \
19647     postinstall_cmds_RC \
19648     postuninstall_cmds_RC \
19649     old_archive_from_expsyms_cmds_RC \
19650     allow_undefined_flag_RC \
19651     no_undefined_flag_RC \
19652     export_symbols_cmds_RC \
19653     hardcode_libdir_flag_spec_RC \
19654     hardcode_libdir_flag_spec_ld_RC \
19655     hardcode_libdir_separator_RC \
19656     hardcode_automatic_RC \
19657     module_cmds_RC \
19658     module_expsym_cmds_RC \
19659     lt_cv_prog_compiler_c_o_RC \
19660     fix_srcfile_path_RC \
19661     exclude_expsyms_RC \
19662     include_expsyms_RC; do
19663
19664     case $var in
19665     old_archive_cmds_RC | \
19666     old_archive_from_new_cmds_RC | \
19667     archive_cmds_RC | \
19668     archive_expsym_cmds_RC | \
19669     module_cmds_RC | \
19670     module_expsym_cmds_RC | \
19671     old_archive_from_expsyms_cmds_RC | \
19672     export_symbols_cmds_RC | \
19673     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19674     postinstall_cmds | postuninstall_cmds | \
19675     old_postinstall_cmds | old_postuninstall_cmds | \
19676     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19677       # Double-quote double-evaled strings.
19678       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19679       ;;
19680     *)
19681       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19682       ;;
19683     esac
19684   done
19685
19686   case $lt_echo in
19687   *'\$0 --fallback-echo"')
19688     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19689     ;;
19690   esac
19691
19692 cfgfile="$ofile"
19693
19694   cat <<__EOF__ >> "$cfgfile"
19695 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19696
19697 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19698
19699 # Shell to use when invoking shell scripts.
19700 SHELL=$lt_SHELL
19701
19702 # Whether or not to build shared libraries.
19703 build_libtool_libs=$enable_shared
19704
19705 # Whether or not to build static libraries.
19706 build_old_libs=$enable_static
19707
19708 # Whether or not to add -lc for building shared libraries.
19709 build_libtool_need_lc=$archive_cmds_need_lc_RC
19710
19711 # Whether or not to disallow shared libs when runtime libs are static
19712 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19713
19714 # Whether or not to optimize for fast installation.
19715 fast_install=$enable_fast_install
19716
19717 # The host system.
19718 host_alias=$host_alias
19719 host=$host
19720 host_os=$host_os
19721
19722 # The build system.
19723 build_alias=$build_alias
19724 build=$build
19725 build_os=$build_os
19726
19727 # An echo program that does not interpret backslashes.
19728 echo=$lt_echo
19729
19730 # The archiver.
19731 AR=$lt_AR
19732 AR_FLAGS=$lt_AR_FLAGS
19733
19734 # A C compiler.
19735 LTCC=$lt_LTCC
19736
19737 # LTCC compiler flags.
19738 LTCFLAGS=$lt_LTCFLAGS
19739
19740 # A language-specific compiler.
19741 CC=$lt_compiler_RC
19742
19743 # Is the compiler the GNU C compiler?
19744 with_gcc=$GCC_RC
19745
19746 # An ERE matcher.
19747 EGREP=$lt_EGREP
19748
19749 # The linker used to build libraries.
19750 LD=$lt_LD_RC
19751
19752 # Whether we need hard or soft links.
19753 LN_S=$lt_LN_S
19754
19755 # A BSD-compatible nm program.
19756 NM=$lt_NM
19757
19758 # A symbol stripping program
19759 STRIP=$lt_STRIP
19760
19761 # Used to examine libraries when file_magic_cmd begins "file"
19762 MAGIC_CMD=$MAGIC_CMD
19763
19764 # Used on cygwin: DLL creation program.
19765 DLLTOOL="$DLLTOOL"
19766
19767 # Used on cygwin: object dumper.
19768 OBJDUMP="$OBJDUMP"
19769
19770 # Used on cygwin: assembler.
19771 AS="$AS"
19772
19773 # The name of the directory that contains temporary libtool files.
19774 objdir=$objdir
19775
19776 # How to create reloadable object files.
19777 reload_flag=$lt_reload_flag
19778 reload_cmds=$lt_reload_cmds
19779
19780 # How to pass a linker flag through the compiler.
19781 wl=$lt_lt_prog_compiler_wl_RC
19782
19783 # Object file suffix (normally "o").
19784 objext="$ac_objext"
19785
19786 # Old archive suffix (normally "a").
19787 libext="$libext"
19788
19789 # Shared library suffix (normally ".so").
19790 shrext_cmds='$shrext_cmds'
19791
19792 # Executable file suffix (normally "").
19793 exeext="$exeext"
19794
19795 # Additional compiler flags for building library objects.
19796 pic_flag=$lt_lt_prog_compiler_pic_RC
19797 pic_mode=$pic_mode
19798
19799 # What is the maximum length of a command?
19800 max_cmd_len=$lt_cv_sys_max_cmd_len
19801
19802 # Does compiler simultaneously support -c and -o options?
19803 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19804
19805 # Must we lock files when doing compilation?
19806 need_locks=$lt_need_locks
19807
19808 # Do we need the lib prefix for modules?
19809 need_lib_prefix=$need_lib_prefix
19810
19811 # Do we need a version for libraries?
19812 need_version=$need_version
19813
19814 # Whether dlopen is supported.
19815 dlopen_support=$enable_dlopen
19816
19817 # Whether dlopen of programs is supported.
19818 dlopen_self=$enable_dlopen_self
19819
19820 # Whether dlopen of statically linked programs is supported.
19821 dlopen_self_static=$enable_dlopen_self_static
19822
19823 # Compiler flag to prevent dynamic linking.
19824 link_static_flag=$lt_lt_prog_compiler_static_RC
19825
19826 # Compiler flag to turn off builtin functions.
19827 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19828
19829 # Compiler flag to allow reflexive dlopens.
19830 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19831
19832 # Compiler flag to generate shared objects directly from archives.
19833 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19834
19835 # Compiler flag to generate thread-safe objects.
19836 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19837
19838 # Library versioning type.
19839 version_type=$version_type
19840
19841 # Format of library name prefix.
19842 libname_spec=$lt_libname_spec
19843
19844 # List of archive names.  First name is the real one, the rest are links.
19845 # The last name is the one that the linker finds with -lNAME.
19846 library_names_spec=$lt_library_names_spec
19847
19848 # The coded name of the library, if different from the real name.
19849 soname_spec=$lt_soname_spec
19850
19851 # Commands used to build and install an old-style archive.
19852 RANLIB=$lt_RANLIB
19853 old_archive_cmds=$lt_old_archive_cmds_RC
19854 old_postinstall_cmds=$lt_old_postinstall_cmds
19855 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19856
19857 # Create an old-style archive from a shared archive.
19858 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19859
19860 # Create a temporary old-style archive to link instead of a shared archive.
19861 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19862
19863 # Commands used to build and install a shared archive.
19864 archive_cmds=$lt_archive_cmds_RC
19865 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19866 postinstall_cmds=$lt_postinstall_cmds
19867 postuninstall_cmds=$lt_postuninstall_cmds
19868
19869 # Commands used to build a loadable module (assumed same as above if empty)
19870 module_cmds=$lt_module_cmds_RC
19871 module_expsym_cmds=$lt_module_expsym_cmds_RC
19872
19873 # Commands to strip libraries.
19874 old_striplib=$lt_old_striplib
19875 striplib=$lt_striplib
19876
19877 # Dependencies to place before the objects being linked to create a
19878 # shared library.
19879 predep_objects=$lt_predep_objects_RC
19880
19881 # Dependencies to place after the objects being linked to create a
19882 # shared library.
19883 postdep_objects=$lt_postdep_objects_RC
19884
19885 # Dependencies to place before the objects being linked to create a
19886 # shared library.
19887 predeps=$lt_predeps_RC
19888
19889 # Dependencies to place after the objects being linked to create a
19890 # shared library.
19891 postdeps=$lt_postdeps_RC
19892
19893 # The directories searched by this compiler when creating a shared
19894 # library
19895 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19896
19897 # The library search path used internally by the compiler when linking
19898 # a shared library.
19899 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19900
19901 # Method to check whether dependent libraries are shared objects.
19902 deplibs_check_method=$lt_deplibs_check_method
19903
19904 # Command to use when deplibs_check_method == file_magic.
19905 file_magic_cmd=$lt_file_magic_cmd
19906
19907 # Flag that allows shared libraries with undefined symbols to be built.
19908 allow_undefined_flag=$lt_allow_undefined_flag_RC
19909
19910 # Flag that forces no undefined symbols.
19911 no_undefined_flag=$lt_no_undefined_flag_RC
19912
19913 # Commands used to finish a libtool library installation in a directory.
19914 finish_cmds=$lt_finish_cmds
19915
19916 # Same as above, but a single script fragment to be evaled but not shown.
19917 finish_eval=$lt_finish_eval
19918
19919 # Take the output of nm and produce a listing of raw symbols and C names.
19920 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19921
19922 # Transform the output of nm in a proper C declaration
19923 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19924
19925 # Transform the output of nm in a C name address pair
19926 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19927
19928 # This is the shared library runtime path variable.
19929 runpath_var=$runpath_var
19930
19931 # This is the shared library path variable.
19932 shlibpath_var=$shlibpath_var
19933
19934 # Is shlibpath searched before the hard-coded library search path?
19935 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19936
19937 # How to hardcode a shared library path into an executable.
19938 hardcode_action=$hardcode_action_RC
19939
19940 # Whether we should hardcode library paths into libraries.
19941 hardcode_into_libs=$hardcode_into_libs
19942
19943 # Flag to hardcode \$libdir into a binary during linking.
19944 # This must work even if \$libdir does not exist.
19945 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19946
19947 # If ld is used when linking, flag to hardcode \$libdir into
19948 # a binary during linking. This must work even if \$libdir does
19949 # not exist.
19950 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19951
19952 # Whether we need a single -rpath flag with a separated argument.
19953 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19954
19955 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19956 # resulting binary.
19957 hardcode_direct=$hardcode_direct_RC
19958
19959 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19960 # resulting binary.
19961 hardcode_minus_L=$hardcode_minus_L_RC
19962
19963 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19964 # the resulting binary.
19965 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19966
19967 # Set to yes if building a shared library automatically hardcodes DIR into the library
19968 # and all subsequent libraries and executables linked against it.
19969 hardcode_automatic=$hardcode_automatic_RC
19970
19971 # Variables whose values should be saved in libtool wrapper scripts and
19972 # restored at relink time.
19973 variables_saved_for_relink="$variables_saved_for_relink"
19974
19975 # Whether libtool must link a program against all its dependency libraries.
19976 link_all_deplibs=$link_all_deplibs_RC
19977
19978 # Compile-time system search path for libraries
19979 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19980
19981 # Run-time system search path for libraries
19982 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19983
19984 # Fix the shell variable \$srcfile for the compiler.
19985 fix_srcfile_path=$lt_fix_srcfile_path
19986
19987 # Set to yes if exported symbols are required.
19988 always_export_symbols=$always_export_symbols_RC
19989
19990 # The commands to list exported symbols.
19991 export_symbols_cmds=$lt_export_symbols_cmds_RC
19992
19993 # The commands to extract the exported symbol list from a shared archive.
19994 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19995
19996 # Symbols that should not be listed in the preloaded symbols.
19997 exclude_expsyms=$lt_exclude_expsyms_RC
19998
19999 # Symbols that must always be exported.
20000 include_expsyms=$lt_include_expsyms_RC
20001
20002 # ### END LIBTOOL TAG CONFIG: $tagname
20003
20004 __EOF__
20005
20006
20007 else
20008   # If there is no Makefile yet, we rely on a make rule to execute
20009   # `config.status --recheck' to rerun these tests and create the
20010   # libtool script then.
20011   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20012   if test -f "$ltmain_in"; then
20013     test -f Makefile && make "$ltmain"
20014   fi
20015 fi
20016
20017
20018 ac_ext=c
20019 ac_cpp='$CPP $CPPFLAGS'
20020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20023
20024 CC="$lt_save_CC"
20025
20026         ;;
20027
20028       *)
20029         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20030 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20031    { (exit 1); exit 1; }; }
20032         ;;
20033       esac
20034
20035       # Append the new tag name to the list of available tags.
20036       if test -n "$tagname" ; then
20037       available_tags="$available_tags $tagname"
20038     fi
20039     fi
20040   done
20041   IFS="$lt_save_ifs"
20042
20043   # Now substitute the updated list of available tags.
20044   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20045     mv "${ofile}T" "$ofile"
20046     chmod +x "$ofile"
20047   else
20048     rm -f "${ofile}T"
20049     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20050 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20051    { (exit 1); exit 1; }; }
20052   fi
20053 fi
20054
20055
20056
20057 # This can be used to rebuild libtool when needed
20058 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20059
20060 # Always use our own libtool.
20061 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20062
20063 # Prevent multiple expansion
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088 ###############
20089 ## SVN version check
20090 ##
20091 if test -e .svn ; then
20092   VERSION="$VERSION-r`svnversion`"
20093   PACKAGE_VERSION="$PACKAGE_VERSION-r`svnversion`"
20094   PACKAGE_STRING="PACKAGE_STRING r`svnversion`"
20095 fi
20096
20097 ###############
20098 ## System checks
20099 ##
20100
20101   { echo "$as_me:$LINENO: result: " >&5
20102 echo "${ECHO_T}" >&6; }
20103   { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
20104 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
20105
20106 ac_ext=c
20107 ac_cpp='$CPP $CPPFLAGS'
20108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20111 if test -n "$ac_tool_prefix"; then
20112   for ac_prog in xlC gcc cc
20113   do
20114     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20118 if test "${ac_cv_prog_CC+set}" = set; then
20119   echo $ECHO_N "(cached) $ECHO_C" >&6
20120 else
20121   if test -n "$CC"; then
20122   ac_cv_prog_CC="$CC" # Let the user override the test.
20123 else
20124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20125 for as_dir in $PATH
20126 do
20127   IFS=$as_save_IFS
20128   test -z "$as_dir" && as_dir=.
20129   for ac_exec_ext in '' $ac_executable_extensions; do
20130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20131     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20133     break 2
20134   fi
20135 done
20136 done
20137 IFS=$as_save_IFS
20138
20139 fi
20140 fi
20141 CC=$ac_cv_prog_CC
20142 if test -n "$CC"; then
20143   { echo "$as_me:$LINENO: result: $CC" >&5
20144 echo "${ECHO_T}$CC" >&6; }
20145 else
20146   { echo "$as_me:$LINENO: result: no" >&5
20147 echo "${ECHO_T}no" >&6; }
20148 fi
20149
20150
20151     test -n "$CC" && break
20152   done
20153 fi
20154 if test -z "$CC"; then
20155   ac_ct_CC=$CC
20156   for ac_prog in xlC gcc cc
20157 do
20158   # Extract the first word of "$ac_prog", so it can be a program name with args.
20159 set dummy $ac_prog; ac_word=$2
20160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20162 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20163   echo $ECHO_N "(cached) $ECHO_C" >&6
20164 else
20165   if test -n "$ac_ct_CC"; then
20166   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20167 else
20168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20169 for as_dir in $PATH
20170 do
20171   IFS=$as_save_IFS
20172   test -z "$as_dir" && as_dir=.
20173   for ac_exec_ext in '' $ac_executable_extensions; do
20174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20175     ac_cv_prog_ac_ct_CC="$ac_prog"
20176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20177     break 2
20178   fi
20179 done
20180 done
20181 IFS=$as_save_IFS
20182
20183 fi
20184 fi
20185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20186 if test -n "$ac_ct_CC"; then
20187   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20188 echo "${ECHO_T}$ac_ct_CC" >&6; }
20189 else
20190   { echo "$as_me:$LINENO: result: no" >&5
20191 echo "${ECHO_T}no" >&6; }
20192 fi
20193
20194
20195   test -n "$ac_ct_CC" && break
20196 done
20197
20198   if test "x$ac_ct_CC" = x; then
20199     CC=""
20200   else
20201     case $cross_compiling:$ac_tool_warned in
20202 yes:)
20203 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20204 whose name does not start with the host triplet.  If you think this
20205 configuration is useful to you, please write to autoconf@gnu.org." >&5
20206 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20207 whose name does not start with the host triplet.  If you think this
20208 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20209 ac_tool_warned=yes ;;
20210 esac
20211     CC=$ac_ct_CC
20212   fi
20213 fi
20214
20215
20216 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20217 See \`config.log' for more details." >&5
20218 echo "$as_me: error: no acceptable C compiler found in \$PATH
20219 See \`config.log' for more details." >&2;}
20220    { (exit 1); exit 1; }; }
20221
20222 # Provide some information about the compiler.
20223 echo "$as_me:$LINENO: checking for C compiler version" >&5
20224 ac_compiler=`set X $ac_compile; echo $2`
20225 { (ac_try="$ac_compiler --version >&5"
20226 case "(($ac_try" in
20227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20228   *) ac_try_echo=$ac_try;;
20229 esac
20230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20231   (eval "$ac_compiler --version >&5") 2>&5
20232   ac_status=$?
20233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234   (exit $ac_status); }
20235 { (ac_try="$ac_compiler -v >&5"
20236 case "(($ac_try" in
20237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238   *) ac_try_echo=$ac_try;;
20239 esac
20240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20241   (eval "$ac_compiler -v >&5") 2>&5
20242   ac_status=$?
20243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244   (exit $ac_status); }
20245 { (ac_try="$ac_compiler -V >&5"
20246 case "(($ac_try" in
20247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248   *) ac_try_echo=$ac_try;;
20249 esac
20250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251   (eval "$ac_compiler -V >&5") 2>&5
20252   ac_status=$?
20253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254   (exit $ac_status); }
20255
20256 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20257 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20258 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20259   echo $ECHO_N "(cached) $ECHO_C" >&6
20260 else
20261   cat >conftest.$ac_ext <<_ACEOF
20262 /* confdefs.h.  */
20263 _ACEOF
20264 cat confdefs.h >>conftest.$ac_ext
20265 cat >>conftest.$ac_ext <<_ACEOF
20266 /* end confdefs.h.  */
20267
20268 int
20269 main ()
20270 {
20271 #ifndef __GNUC__
20272        choke me
20273 #endif
20274
20275   ;
20276   return 0;
20277 }
20278 _ACEOF
20279 rm -f conftest.$ac_objext
20280 if { (ac_try="$ac_compile"
20281 case "(($ac_try" in
20282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283   *) ac_try_echo=$ac_try;;
20284 esac
20285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20286   (eval "$ac_compile") 2>conftest.er1
20287   ac_status=$?
20288   grep -v '^ *+' conftest.er1 >conftest.err
20289   rm -f conftest.er1
20290   cat conftest.err >&5
20291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292   (exit $ac_status); } && {
20293          test -z "$ac_c_werror_flag" ||
20294          test ! -s conftest.err
20295        } && test -s conftest.$ac_objext; then
20296   ac_compiler_gnu=yes
20297 else
20298   echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20300
20301         ac_compiler_gnu=no
20302 fi
20303
20304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20305 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20306
20307 fi
20308 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20309 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20310 GCC=`test $ac_compiler_gnu = yes && echo yes`
20311 ac_test_CFLAGS=${CFLAGS+set}
20312 ac_save_CFLAGS=$CFLAGS
20313 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20314 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20315 if test "${ac_cv_prog_cc_g+set}" = set; then
20316   echo $ECHO_N "(cached) $ECHO_C" >&6
20317 else
20318   ac_save_c_werror_flag=$ac_c_werror_flag
20319    ac_c_werror_flag=yes
20320    ac_cv_prog_cc_g=no
20321    CFLAGS="-g"
20322    cat >conftest.$ac_ext <<_ACEOF
20323 /* confdefs.h.  */
20324 _ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h.  */
20328
20329 int
20330 main ()
20331 {
20332
20333   ;
20334   return 0;
20335 }
20336 _ACEOF
20337 rm -f conftest.$ac_objext
20338 if { (ac_try="$ac_compile"
20339 case "(($ac_try" in
20340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341   *) ac_try_echo=$ac_try;;
20342 esac
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344   (eval "$ac_compile") 2>conftest.er1
20345   ac_status=$?
20346   grep -v '^ *+' conftest.er1 >conftest.err
20347   rm -f conftest.er1
20348   cat conftest.err >&5
20349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350   (exit $ac_status); } && {
20351          test -z "$ac_c_werror_flag" ||
20352          test ! -s conftest.err
20353        } && test -s conftest.$ac_objext; then
20354   ac_cv_prog_cc_g=yes
20355 else
20356   echo "$as_me: failed program was:" >&5
20357 sed 's/^/| /' conftest.$ac_ext >&5
20358
20359         CFLAGS=""
20360       cat >conftest.$ac_ext <<_ACEOF
20361 /* confdefs.h.  */
20362 _ACEOF
20363 cat confdefs.h >>conftest.$ac_ext
20364 cat >>conftest.$ac_ext <<_ACEOF
20365 /* end confdefs.h.  */
20366
20367 int
20368 main ()
20369 {
20370
20371   ;
20372   return 0;
20373 }
20374 _ACEOF
20375 rm -f conftest.$ac_objext
20376 if { (ac_try="$ac_compile"
20377 case "(($ac_try" in
20378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20379   *) ac_try_echo=$ac_try;;
20380 esac
20381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20382   (eval "$ac_compile") 2>conftest.er1
20383   ac_status=$?
20384   grep -v '^ *+' conftest.er1 >conftest.err
20385   rm -f conftest.er1
20386   cat conftest.err >&5
20387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388   (exit $ac_status); } && {
20389          test -z "$ac_c_werror_flag" ||
20390          test ! -s conftest.err
20391        } && test -s conftest.$ac_objext; then
20392   :
20393 else
20394   echo "$as_me: failed program was:" >&5
20395 sed 's/^/| /' conftest.$ac_ext >&5
20396
20397         ac_c_werror_flag=$ac_save_c_werror_flag
20398          CFLAGS="-g"
20399          cat >conftest.$ac_ext <<_ACEOF
20400 /* confdefs.h.  */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h.  */
20405
20406 int
20407 main ()
20408 {
20409
20410   ;
20411   return 0;
20412 }
20413 _ACEOF
20414 rm -f conftest.$ac_objext
20415 if { (ac_try="$ac_compile"
20416 case "(($ac_try" in
20417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418   *) ac_try_echo=$ac_try;;
20419 esac
20420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421   (eval "$ac_compile") 2>conftest.er1
20422   ac_status=$?
20423   grep -v '^ *+' conftest.er1 >conftest.err
20424   rm -f conftest.er1
20425   cat conftest.err >&5
20426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427   (exit $ac_status); } && {
20428          test -z "$ac_c_werror_flag" ||
20429          test ! -s conftest.err
20430        } && test -s conftest.$ac_objext; then
20431   ac_cv_prog_cc_g=yes
20432 else
20433   echo "$as_me: failed program was:" >&5
20434 sed 's/^/| /' conftest.$ac_ext >&5
20435
20436
20437 fi
20438
20439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20440 fi
20441
20442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20443 fi
20444
20445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20446    ac_c_werror_flag=$ac_save_c_werror_flag
20447 fi
20448 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20449 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20450 if test "$ac_test_CFLAGS" = set; then
20451   CFLAGS=$ac_save_CFLAGS
20452 elif test $ac_cv_prog_cc_g = yes; then
20453   if test "$GCC" = yes; then
20454     CFLAGS="-g -O2"
20455   else
20456     CFLAGS="-g"
20457   fi
20458 else
20459   if test "$GCC" = yes; then
20460     CFLAGS="-O2"
20461   else
20462     CFLAGS=
20463   fi
20464 fi
20465 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20466 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20467 if test "${ac_cv_prog_cc_c89+set}" = set; then
20468   echo $ECHO_N "(cached) $ECHO_C" >&6
20469 else
20470   ac_cv_prog_cc_c89=no
20471 ac_save_CC=$CC
20472 cat >conftest.$ac_ext <<_ACEOF
20473 /* confdefs.h.  */
20474 _ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h.  */
20478 #include <stdarg.h>
20479 #include <stdio.h>
20480 #include <sys/types.h>
20481 #include <sys/stat.h>
20482 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20483 struct buf { int x; };
20484 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20485 static char *e (p, i)
20486      char **p;
20487      int i;
20488 {
20489   return p[i];
20490 }
20491 static char *f (char * (*g) (char **, int), char **p, ...)
20492 {
20493   char *s;
20494   va_list v;
20495   va_start (v,p);
20496   s = g (p, va_arg (v,int));
20497   va_end (v);
20498   return s;
20499 }
20500
20501 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20502    function prototypes and stuff, but not '\xHH' hex character constants.
20503    These don't provoke an error unfortunately, instead are silently treated
20504    as 'x'.  The following induces an error, until -std is added to get
20505    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20506    array size at least.  It's necessary to write '\x00'==0 to get something
20507    that's true only with -std.  */
20508 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20509
20510 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20511    inside strings and character constants.  */
20512 #define FOO(x) 'x'
20513 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20514
20515 int test (int i, double x);
20516 struct s1 {int (*f) (int a);};
20517 struct s2 {int (*f) (double a);};
20518 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20519 int argc;
20520 char **argv;
20521 int
20522 main ()
20523 {
20524 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20525   ;
20526   return 0;
20527 }
20528 _ACEOF
20529 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20530         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20531 do
20532   CC="$ac_save_CC $ac_arg"
20533   rm -f conftest.$ac_objext
20534 if { (ac_try="$ac_compile"
20535 case "(($ac_try" in
20536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537   *) ac_try_echo=$ac_try;;
20538 esac
20539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20540   (eval "$ac_compile") 2>conftest.er1
20541   ac_status=$?
20542   grep -v '^ *+' conftest.er1 >conftest.err
20543   rm -f conftest.er1
20544   cat conftest.err >&5
20545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546   (exit $ac_status); } && {
20547          test -z "$ac_c_werror_flag" ||
20548          test ! -s conftest.err
20549        } && test -s conftest.$ac_objext; then
20550   ac_cv_prog_cc_c89=$ac_arg
20551 else
20552   echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20554
20555
20556 fi
20557
20558 rm -f core conftest.err conftest.$ac_objext
20559   test "x$ac_cv_prog_cc_c89" != "xno" && break
20560 done
20561 rm -f conftest.$ac_ext
20562 CC=$ac_save_CC
20563
20564 fi
20565 # AC_CACHE_VAL
20566 case "x$ac_cv_prog_cc_c89" in
20567   x)
20568     { echo "$as_me:$LINENO: result: none needed" >&5
20569 echo "${ECHO_T}none needed" >&6; } ;;
20570   xno)
20571     { echo "$as_me:$LINENO: result: unsupported" >&5
20572 echo "${ECHO_T}unsupported" >&6; } ;;
20573   *)
20574     CC="$CC $ac_cv_prog_cc_c89"
20575     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20576 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20577 esac
20578
20579
20580 ac_ext=c
20581 ac_cpp='$CPP $CPPFLAGS'
20582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20585
20586 depcc="$CC"   am_compiler_list=
20587
20588 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20589 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20590 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20591   echo $ECHO_N "(cached) $ECHO_C" >&6
20592 else
20593   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20594   # We make a subdir and do the tests there.  Otherwise we can end up
20595   # making bogus files that we don't know about and never remove.  For
20596   # instance it was reported that on HP-UX the gcc test will end up
20597   # making a dummy file named `D' -- because `-MD' means `put the output
20598   # in D'.
20599   mkdir conftest.dir
20600   # Copy depcomp to subdir because otherwise we won't find it if we're
20601   # using a relative directory.
20602   cp "$am_depcomp" conftest.dir
20603   cd conftest.dir
20604   # We will build objects and dependencies in a subdirectory because
20605   # it helps to detect inapplicable dependency modes.  For instance
20606   # both Tru64's cc and ICC support -MD to output dependencies as a
20607   # side effect of compilation, but ICC will put the dependencies in
20608   # the current directory while Tru64 will put them in the object
20609   # directory.
20610   mkdir sub
20611
20612   am_cv_CC_dependencies_compiler_type=none
20613   if test "$am_compiler_list" = ""; then
20614      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20615   fi
20616   for depmode in $am_compiler_list; do
20617     # Setup a source with many dependencies, because some compilers
20618     # like to wrap large dependency lists on column 80 (with \), and
20619     # we should not choose a depcomp mode which is confused by this.
20620     #
20621     # We need to recreate these files for each test, as the compiler may
20622     # overwrite some of them when testing with obscure command lines.
20623     # This happens at least with the AIX C compiler.
20624     : > sub/conftest.c
20625     for i in 1 2 3 4 5 6; do
20626       echo '#include "conftst'$i'.h"' >> sub/conftest.c
20627       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20628       # Solaris 8's {/usr,}/bin/sh.
20629       touch sub/conftst$i.h
20630     done
20631     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20632
20633     case $depmode in
20634     nosideeffect)
20635       # after this tag, mechanisms are not by side-effect, so they'll
20636       # only be used when explicitly requested
20637       if test "x$enable_dependency_tracking" = xyes; then
20638         continue
20639       else
20640         break
20641       fi
20642       ;;
20643     none) break ;;
20644     esac
20645     # We check with `-c' and `-o' for the sake of the "dashmstdout"
20646     # mode.  It turns out that the SunPro C++ compiler does not properly
20647     # handle `-M -o', and we need to detect this.
20648     if depmode=$depmode \
20649        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20650        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20651        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20652          >/dev/null 2>conftest.err &&
20653        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20654        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20655        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20656        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20657       # icc doesn't choke on unknown options, it will just issue warnings
20658       # or remarks (even with -Werror).  So we grep stderr for any message
20659       # that says an option was ignored or not supported.
20660       # When given -MP, icc 7.0 and 7.1 complain thusly:
20661       #   icc: Command line warning: ignoring option '-M'; no argument required
20662       # The diagnosis changed in icc 8.0:
20663       #   icc: Command line remark: option '-MP' not supported
20664       if (grep 'ignoring option' conftest.err ||
20665           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20666         am_cv_CC_dependencies_compiler_type=$depmode
20667         break
20668       fi
20669     fi
20670   done
20671
20672   cd ..
20673   rm -rf conftest.dir
20674 else
20675   am_cv_CC_dependencies_compiler_type=none
20676 fi
20677
20678 fi
20679 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20680 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20681 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20682
20683  if
20684   test "x$enable_dependency_tracking" != xno \
20685   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20686   am__fastdepCC_TRUE=
20687   am__fastdepCC_FALSE='#'
20688 else
20689   am__fastdepCC_TRUE='#'
20690   am__fastdepCC_FALSE=
20691 fi
20692
20693
20694 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20695 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
20696 # Just in case
20697 sleep 1
20698 echo timestamp > conftest.file
20699 # Do `set' in a subshell so we don't clobber the current shell's
20700 # arguments.  Must try -L first in case configure is actually a
20701 # symlink; some systems play weird games with the mod time of symlinks
20702 # (eg FreeBSD returns the mod time of the symlink's containing
20703 # directory).
20704 if (
20705    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20706    if test "$*" = "X"; then
20707       # -L didn't work.
20708       set X `ls -t $srcdir/configure conftest.file`
20709    fi
20710    rm -f conftest.file
20711    if test "$*" != "X $srcdir/configure conftest.file" \
20712       && test "$*" != "X conftest.file $srcdir/configure"; then
20713
20714       # If neither matched, then we have a broken ls.  This can happen
20715       # if, for instance, CONFIG_SHELL is bash and it inherits a
20716       # broken ls alias from the environment.  This has actually
20717       # happened.  Such a system could not be considered "sane".
20718       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
20719 alias in your environment" >&5
20720 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
20721 alias in your environment" >&2;}
20722    { (exit 1); exit 1; }; }
20723    fi
20724
20725    test "$2" = conftest.file
20726    )
20727 then
20728    # Ok.
20729    :
20730 else
20731    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20732 Check your system clock" >&5
20733 echo "$as_me: error: newly created file is older than distributed files!
20734 Check your system clock" >&2;}
20735    { (exit 1); exit 1; }; }
20736 fi
20737 { echo "$as_me:$LINENO: result: yes" >&5
20738 echo "${ECHO_T}yes" >&6; }
20739 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20740 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20741 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20742 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20743   echo $ECHO_N "(cached) $ECHO_C" >&6
20744 else
20745   cat >conftest.make <<\_ACEOF
20746 SHELL = /bin/sh
20747 all:
20748         @echo '@@@%%%=$(MAKE)=@@@%%%'
20749 _ACEOF
20750 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20751 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20752   *@@@%%%=?*=@@@%%%*)
20753     eval ac_cv_prog_make_${ac_make}_set=yes;;
20754   *)
20755     eval ac_cv_prog_make_${ac_make}_set=no;;
20756 esac
20757 rm -f conftest.make
20758 fi
20759 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20760   { echo "$as_me:$LINENO: result: yes" >&5
20761 echo "${ECHO_T}yes" >&6; }
20762   SET_MAKE=
20763 else
20764   { echo "$as_me:$LINENO: result: no" >&5
20765 echo "${ECHO_T}no" >&6; }
20766   SET_MAKE="MAKE=${MAKE-make}"
20767 fi
20768
20769
20770 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
20771 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
20772 if test "$cross_compiling" = yes; then
20773   { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
20774 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
20775 else
20776   cat >conftest.$ac_ext <<_ACEOF
20777 /* confdefs.h.  */
20778 _ACEOF
20779 cat confdefs.h >>conftest.$ac_ext
20780 cat >>conftest.$ac_ext <<_ACEOF
20781 /* end confdefs.h.  */
20782 #include <stdio.h>
20783 int
20784 main ()
20785 {
20786 printf("%s",NULL);
20787   ;
20788   return 0;
20789 }
20790 _ACEOF
20791 rm -f conftest$ac_exeext
20792 if { (ac_try="$ac_link"
20793 case "(($ac_try" in
20794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795   *) ac_try_echo=$ac_try;;
20796 esac
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798   (eval "$ac_link") 2>&5
20799   ac_status=$?
20800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20802   { (case "(($ac_try" in
20803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804   *) ac_try_echo=$ac_try;;
20805 esac
20806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20807   (eval "$ac_try") 2>&5
20808   ac_status=$?
20809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810   (exit $ac_status); }; }; then
20811
20812 cat >>confdefs.h <<\_ACEOF
20813 #define PRINTF_NULL_WORKING 1
20814 _ACEOF
20815
20816               { echo "$as_me:$LINENO: result: yes" >&5
20817 echo "${ECHO_T}yes" >&6; }
20818 else
20819   echo "$as_me: program exited with status $ac_status" >&5
20820 echo "$as_me: failed program was:" >&5
20821 sed 's/^/| /' conftest.$ac_ext >&5
20822
20823 ( exit $ac_status )
20824 { echo "$as_me:$LINENO: result: no" >&5
20825 echo "${ECHO_T}no" >&6; }
20826 fi
20827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20828 fi
20829
20830
20831
20832
20833     { echo "$as_me:$LINENO: checking for va_copy() function" >&5
20834 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
20835     if test "${ac_cv_va_copy+set}" = set; then
20836   echo $ECHO_N "(cached) $ECHO_C" >&6
20837 else
20838
20839     ac_cv_va_copy=""
20840
20841
20842
20843     if test ".$ac_cv_va_copy" = .; then
20844         if test "$cross_compiling" = yes; then
20845   ac_cv_va_copy="C99"
20846 else
20847   cat >conftest.$ac_ext <<_ACEOF
20848 /* confdefs.h.  */
20849 _ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h.  */
20853
20854 #include <stdlib.h>
20855 #include <stdarg.h>
20856 #include <string.h>
20857 #define DO_VA_COPY(d, s) va_copy((d), (s))
20858 void test(char *str, ...)
20859 {
20860     va_list ap, ap2;
20861     int i;
20862     va_start(ap, str);
20863     DO_VA_COPY(ap2, ap);
20864     for (i = 1; i <= 9; i++) {
20865         int k = (int)va_arg(ap, int);
20866         if (k != i)
20867             abort();
20868     }
20869     DO_VA_COPY(ap, ap2);
20870     for (i = 1; i <= 9; i++) {
20871         int k = (int)va_arg(ap, int);
20872         if (k != i)
20873             abort();
20874     }
20875     va_end(ap);
20876 }
20877 int main(int argc, char *argv[])
20878 {
20879     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20880     exit(0);
20881 }
20882
20883 _ACEOF
20884 rm -f conftest$ac_exeext
20885 if { (ac_try="$ac_link"
20886 case "(($ac_try" in
20887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888   *) ac_try_echo=$ac_try;;
20889 esac
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891   (eval "$ac_link") 2>&5
20892   ac_status=$?
20893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20895   { (case "(($ac_try" in
20896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897   *) ac_try_echo=$ac_try;;
20898 esac
20899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900   (eval "$ac_try") 2>&5
20901   ac_status=$?
20902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903   (exit $ac_status); }; }; then
20904   ac_cv_va_copy="C99"
20905 else
20906   echo "$as_me: program exited with status $ac_status" >&5
20907 echo "$as_me: failed program was:" >&5
20908 sed 's/^/| /' conftest.$ac_ext >&5
20909
20910 fi
20911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20912 fi
20913
20914
20915             fi
20916
20917
20918
20919
20920     if test ".$ac_cv_va_copy" = .; then
20921         if test "$cross_compiling" = yes; then
20922   ac_cv_va_copy="GCM"
20923 else
20924   cat >conftest.$ac_ext <<_ACEOF
20925 /* confdefs.h.  */
20926 _ACEOF
20927 cat confdefs.h >>conftest.$ac_ext
20928 cat >>conftest.$ac_ext <<_ACEOF
20929 /* end confdefs.h.  */
20930
20931 #include <stdlib.h>
20932 #include <stdarg.h>
20933 #include <string.h>
20934 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20935 void test(char *str, ...)
20936 {
20937     va_list ap, ap2;
20938     int i;
20939     va_start(ap, str);
20940     DO_VA_COPY(ap2, ap);
20941     for (i = 1; i <= 9; i++) {
20942         int k = (int)va_arg(ap, int);
20943         if (k != i)
20944             abort();
20945     }
20946     DO_VA_COPY(ap, ap2);
20947     for (i = 1; i <= 9; i++) {
20948         int k = (int)va_arg(ap, int);
20949         if (k != i)
20950             abort();
20951     }
20952     va_end(ap);
20953 }
20954 int main(int argc, char *argv[])
20955 {
20956     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20957     exit(0);
20958 }
20959
20960 _ACEOF
20961 rm -f conftest$ac_exeext
20962 if { (ac_try="$ac_link"
20963 case "(($ac_try" in
20964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965   *) ac_try_echo=$ac_try;;
20966 esac
20967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20968   (eval "$ac_link") 2>&5
20969   ac_status=$?
20970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20972   { (case "(($ac_try" in
20973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974   *) ac_try_echo=$ac_try;;
20975 esac
20976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20977   (eval "$ac_try") 2>&5
20978   ac_status=$?
20979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980   (exit $ac_status); }; }; then
20981   ac_cv_va_copy="GCM"
20982 else
20983   echo "$as_me: program exited with status $ac_status" >&5
20984 echo "$as_me: failed program was:" >&5
20985 sed 's/^/| /' conftest.$ac_ext >&5
20986
20987 fi
20988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20989 fi
20990
20991
20992             fi
20993
20994
20995
20996
20997     if test ".$ac_cv_va_copy" = .; then
20998         if test "$cross_compiling" = yes; then
20999   ac_cv_va_copy="GCH"
21000 else
21001   cat >conftest.$ac_ext <<_ACEOF
21002 /* confdefs.h.  */
21003 _ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h.  */
21007
21008 #include <stdlib.h>
21009 #include <stdarg.h>
21010 #include <string.h>
21011 #define DO_VA_COPY(d, s) __va_copy((d), (s))
21012 void test(char *str, ...)
21013 {
21014     va_list ap, ap2;
21015     int i;
21016     va_start(ap, str);
21017     DO_VA_COPY(ap2, ap);
21018     for (i = 1; i <= 9; i++) {
21019         int k = (int)va_arg(ap, int);
21020         if (k != i)
21021             abort();
21022     }
21023     DO_VA_COPY(ap, ap2);
21024     for (i = 1; i <= 9; i++) {
21025         int k = (int)va_arg(ap, int);
21026         if (k != i)
21027             abort();
21028     }
21029     va_end(ap);
21030 }
21031 int main(int argc, char *argv[])
21032 {
21033     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21034     exit(0);
21035 }
21036
21037 _ACEOF
21038 rm -f conftest$ac_exeext
21039 if { (ac_try="$ac_link"
21040 case "(($ac_try" in
21041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042   *) ac_try_echo=$ac_try;;
21043 esac
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045   (eval "$ac_link") 2>&5
21046   ac_status=$?
21047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21049   { (case "(($ac_try" in
21050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051   *) ac_try_echo=$ac_try;;
21052 esac
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054   (eval "$ac_try") 2>&5
21055   ac_status=$?
21056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057   (exit $ac_status); }; }; then
21058   ac_cv_va_copy="GCH"
21059 else
21060   echo "$as_me: program exited with status $ac_status" >&5
21061 echo "$as_me: failed program was:" >&5
21062 sed 's/^/| /' conftest.$ac_ext >&5
21063
21064 fi
21065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21066 fi
21067
21068
21069             fi
21070
21071
21072
21073
21074     if test ".$ac_cv_va_copy" = .; then
21075         if test "$cross_compiling" = yes; then
21076   ac_cv_va_copy="GCB"
21077 else
21078   cat >conftest.$ac_ext <<_ACEOF
21079 /* confdefs.h.  */
21080 _ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h.  */
21084
21085 #include <stdlib.h>
21086 #include <stdarg.h>
21087 #include <string.h>
21088 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
21089 void test(char *str, ...)
21090 {
21091     va_list ap, ap2;
21092     int i;
21093     va_start(ap, str);
21094     DO_VA_COPY(ap2, ap);
21095     for (i = 1; i <= 9; i++) {
21096         int k = (int)va_arg(ap, int);
21097         if (k != i)
21098             abort();
21099     }
21100     DO_VA_COPY(ap, ap2);
21101     for (i = 1; i <= 9; i++) {
21102         int k = (int)va_arg(ap, int);
21103         if (k != i)
21104             abort();
21105     }
21106     va_end(ap);
21107 }
21108 int main(int argc, char *argv[])
21109 {
21110     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21111     exit(0);
21112 }
21113
21114 _ACEOF
21115 rm -f conftest$ac_exeext
21116 if { (ac_try="$ac_link"
21117 case "(($ac_try" in
21118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119   *) ac_try_echo=$ac_try;;
21120 esac
21121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122   (eval "$ac_link") 2>&5
21123   ac_status=$?
21124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21126   { (case "(($ac_try" in
21127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128   *) ac_try_echo=$ac_try;;
21129 esac
21130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131   (eval "$ac_try") 2>&5
21132   ac_status=$?
21133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134   (exit $ac_status); }; }; then
21135   ac_cv_va_copy="GCB"
21136 else
21137   echo "$as_me: program exited with status $ac_status" >&5
21138 echo "$as_me: failed program was:" >&5
21139 sed 's/^/| /' conftest.$ac_ext >&5
21140
21141 fi
21142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21143 fi
21144
21145
21146             fi
21147
21148
21149
21150
21151     if test ".$ac_cv_va_copy" = .; then
21152         if test "$cross_compiling" = yes; then
21153   ac_cv_va_copy="ASS"
21154 else
21155   cat >conftest.$ac_ext <<_ACEOF
21156 /* confdefs.h.  */
21157 _ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h.  */
21161
21162 #include <stdlib.h>
21163 #include <stdarg.h>
21164 #include <string.h>
21165 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
21166 void test(char *str, ...)
21167 {
21168     va_list ap, ap2;
21169     int i;
21170     va_start(ap, str);
21171     DO_VA_COPY(ap2, ap);
21172     for (i = 1; i <= 9; i++) {
21173         int k = (int)va_arg(ap, int);
21174         if (k != i)
21175             abort();
21176     }
21177     DO_VA_COPY(ap, ap2);
21178     for (i = 1; i <= 9; i++) {
21179         int k = (int)va_arg(ap, int);
21180         if (k != i)
21181             abort();
21182     }
21183     va_end(ap);
21184 }
21185 int main(int argc, char *argv[])
21186 {
21187     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21188     exit(0);
21189 }
21190
21191 _ACEOF
21192 rm -f conftest$ac_exeext
21193 if { (ac_try="$ac_link"
21194 case "(($ac_try" in
21195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21196   *) ac_try_echo=$ac_try;;
21197 esac
21198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21199   (eval "$ac_link") 2>&5
21200   ac_status=$?
21201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21203   { (case "(($ac_try" in
21204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205   *) ac_try_echo=$ac_try;;
21206 esac
21207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208   (eval "$ac_try") 2>&5
21209   ac_status=$?
21210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211   (exit $ac_status); }; }; then
21212   ac_cv_va_copy="ASS"
21213 else
21214   echo "$as_me: program exited with status $ac_status" >&5
21215 echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21217
21218 fi
21219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21220 fi
21221
21222
21223             fi
21224
21225
21226
21227
21228     if test ".$ac_cv_va_copy" = .; then
21229         if test "$cross_compiling" = yes; then
21230   ac_cv_va_copy="ASP"
21231 else
21232   cat >conftest.$ac_ext <<_ACEOF
21233 /* confdefs.h.  */
21234 _ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h.  */
21238
21239 #include <stdlib.h>
21240 #include <stdarg.h>
21241 #include <string.h>
21242 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
21243 void test(char *str, ...)
21244 {
21245     va_list ap, ap2;
21246     int i;
21247     va_start(ap, str);
21248     DO_VA_COPY(ap2, ap);
21249     for (i = 1; i <= 9; i++) {
21250         int k = (int)va_arg(ap, int);
21251         if (k != i)
21252             abort();
21253     }
21254     DO_VA_COPY(ap, ap2);
21255     for (i = 1; i <= 9; i++) {
21256         int k = (int)va_arg(ap, int);
21257         if (k != i)
21258             abort();
21259     }
21260     va_end(ap);
21261 }
21262 int main(int argc, char *argv[])
21263 {
21264     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21265     exit(0);
21266 }
21267
21268 _ACEOF
21269 rm -f conftest$ac_exeext
21270 if { (ac_try="$ac_link"
21271 case "(($ac_try" in
21272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273   *) ac_try_echo=$ac_try;;
21274 esac
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276   (eval "$ac_link") 2>&5
21277   ac_status=$?
21278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21280   { (case "(($ac_try" in
21281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282   *) ac_try_echo=$ac_try;;
21283 esac
21284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21285   (eval "$ac_try") 2>&5
21286   ac_status=$?
21287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288   (exit $ac_status); }; }; then
21289   ac_cv_va_copy="ASP"
21290 else
21291   echo "$as_me: program exited with status $ac_status" >&5
21292 echo "$as_me: failed program was:" >&5
21293 sed 's/^/| /' conftest.$ac_ext >&5
21294
21295 fi
21296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21297 fi
21298
21299
21300             fi
21301
21302
21303
21304
21305     if test ".$ac_cv_va_copy" = .; then
21306         if test "$cross_compiling" = yes; then
21307   ac_cv_va_copy="CPS"
21308 else
21309   cat >conftest.$ac_ext <<_ACEOF
21310 /* confdefs.h.  */
21311 _ACEOF
21312 cat confdefs.h >>conftest.$ac_ext
21313 cat >>conftest.$ac_ext <<_ACEOF
21314 /* end confdefs.h.  */
21315
21316 #include <stdlib.h>
21317 #include <stdarg.h>
21318 #include <string.h>
21319 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
21320 void test(char *str, ...)
21321 {
21322     va_list ap, ap2;
21323     int i;
21324     va_start(ap, str);
21325     DO_VA_COPY(ap2, ap);
21326     for (i = 1; i <= 9; i++) {
21327         int k = (int)va_arg(ap, int);
21328         if (k != i)
21329             abort();
21330     }
21331     DO_VA_COPY(ap, ap2);
21332     for (i = 1; i <= 9; i++) {
21333         int k = (int)va_arg(ap, int);
21334         if (k != i)
21335             abort();
21336     }
21337     va_end(ap);
21338 }
21339 int main(int argc, char *argv[])
21340 {
21341     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21342     exit(0);
21343 }
21344
21345 _ACEOF
21346 rm -f conftest$ac_exeext
21347 if { (ac_try="$ac_link"
21348 case "(($ac_try" in
21349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21350   *) ac_try_echo=$ac_try;;
21351 esac
21352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21353   (eval "$ac_link") 2>&5
21354   ac_status=$?
21355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21357   { (case "(($ac_try" in
21358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21359   *) ac_try_echo=$ac_try;;
21360 esac
21361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21362   (eval "$ac_try") 2>&5
21363   ac_status=$?
21364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365   (exit $ac_status); }; }; then
21366   ac_cv_va_copy="CPS"
21367 else
21368   echo "$as_me: program exited with status $ac_status" >&5
21369 echo "$as_me: failed program was:" >&5
21370 sed 's/^/| /' conftest.$ac_ext >&5
21371
21372 fi
21373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21374 fi
21375
21376
21377             fi
21378
21379
21380
21381
21382     if test ".$ac_cv_va_copy" = .; then
21383         if test "$cross_compiling" = yes; then
21384   ac_cv_va_copy="CPP"
21385 else
21386   cat >conftest.$ac_ext <<_ACEOF
21387 /* confdefs.h.  */
21388 _ACEOF
21389 cat confdefs.h >>conftest.$ac_ext
21390 cat >>conftest.$ac_ext <<_ACEOF
21391 /* end confdefs.h.  */
21392
21393 #include <stdlib.h>
21394 #include <stdarg.h>
21395 #include <string.h>
21396 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
21397 void test(char *str, ...)
21398 {
21399     va_list ap, ap2;
21400     int i;
21401     va_start(ap, str);
21402     DO_VA_COPY(ap2, ap);
21403     for (i = 1; i <= 9; i++) {
21404         int k = (int)va_arg(ap, int);
21405         if (k != i)
21406             abort();
21407     }
21408     DO_VA_COPY(ap, ap2);
21409     for (i = 1; i <= 9; i++) {
21410         int k = (int)va_arg(ap, int);
21411         if (k != i)
21412             abort();
21413     }
21414     va_end(ap);
21415 }
21416 int main(int argc, char *argv[])
21417 {
21418     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21419     exit(0);
21420 }
21421
21422 _ACEOF
21423 rm -f conftest$ac_exeext
21424 if { (ac_try="$ac_link"
21425 case "(($ac_try" in
21426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21427   *) ac_try_echo=$ac_try;;
21428 esac
21429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21430   (eval "$ac_link") 2>&5
21431   ac_status=$?
21432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21434   { (case "(($ac_try" in
21435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436   *) ac_try_echo=$ac_try;;
21437 esac
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439   (eval "$ac_try") 2>&5
21440   ac_status=$?
21441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442   (exit $ac_status); }; }; then
21443   ac_cv_va_copy="CPP"
21444 else
21445   echo "$as_me: program exited with status $ac_status" >&5
21446 echo "$as_me: failed program was:" >&5
21447 sed 's/^/| /' conftest.$ac_ext >&5
21448
21449 fi
21450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21451 fi
21452
21453
21454             fi
21455
21456     if test ".$ac_cv_va_copy" = .; then
21457         { { echo "$as_me:$LINENO: error: no working implementation found" >&5
21458 echo "$as_me: error: no working implementation found" >&2;}
21459    { (exit 1); exit 1; }; }
21460     fi
21461
21462 fi
21463
21464     if test ".$ac_cv_va_copy" = ".C99"; then
21465
21466 cat >>confdefs.h <<\_ACEOF
21467 #define HAVE_VA_COPY 1
21468 _ACEOF
21469
21470   fi
21471
21472 cat >>confdefs.h <<_ACEOF
21473 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
21474 _ACEOF
21475
21476
21477
21478     if test ".$ac_cv_va_copy" = ".C99"; then
21479       { echo "$as_me:$LINENO: result: yes" >&5
21480 echo "${ECHO_T}yes" >&6; }
21481   else
21482       { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
21483 echo "${ECHO_T}no (using fallback implementation)" >&6; }
21484   fi
21485
21486
21487 # Checks for header files.
21488 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21489 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21490 if test "${ac_cv_header_stdc+set}" = set; then
21491   echo $ECHO_N "(cached) $ECHO_C" >&6
21492 else
21493   cat >conftest.$ac_ext <<_ACEOF
21494 /* confdefs.h.  */
21495 _ACEOF
21496 cat confdefs.h >>conftest.$ac_ext
21497 cat >>conftest.$ac_ext <<_ACEOF
21498 /* end confdefs.h.  */
21499 #include <stdlib.h>
21500 #include <stdarg.h>
21501 #include <string.h>
21502 #include <float.h>
21503
21504 int
21505 main ()
21506 {
21507
21508   ;
21509   return 0;
21510 }
21511 _ACEOF
21512 rm -f conftest.$ac_objext
21513 if { (ac_try="$ac_compile"
21514 case "(($ac_try" in
21515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21516   *) ac_try_echo=$ac_try;;
21517 esac
21518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21519   (eval "$ac_compile") 2>conftest.er1
21520   ac_status=$?
21521   grep -v '^ *+' conftest.er1 >conftest.err
21522   rm -f conftest.er1
21523   cat conftest.err >&5
21524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525   (exit $ac_status); } && {
21526          test -z "$ac_c_werror_flag" ||
21527          test ! -s conftest.err
21528        } && test -s conftest.$ac_objext; then
21529   ac_cv_header_stdc=yes
21530 else
21531   echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21533
21534         ac_cv_header_stdc=no
21535 fi
21536
21537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21538
21539 if test $ac_cv_header_stdc = yes; then
21540   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21541   cat >conftest.$ac_ext <<_ACEOF
21542 /* confdefs.h.  */
21543 _ACEOF
21544 cat confdefs.h >>conftest.$ac_ext
21545 cat >>conftest.$ac_ext <<_ACEOF
21546 /* end confdefs.h.  */
21547 #include <string.h>
21548
21549 _ACEOF
21550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21551   $EGREP "memchr" >/dev/null 2>&1; then
21552   :
21553 else
21554   ac_cv_header_stdc=no
21555 fi
21556 rm -f conftest*
21557
21558 fi
21559
21560 if test $ac_cv_header_stdc = yes; then
21561   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21562   cat >conftest.$ac_ext <<_ACEOF
21563 /* confdefs.h.  */
21564 _ACEOF
21565 cat confdefs.h >>conftest.$ac_ext
21566 cat >>conftest.$ac_ext <<_ACEOF
21567 /* end confdefs.h.  */
21568 #include <stdlib.h>
21569
21570 _ACEOF
21571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21572   $EGREP "free" >/dev/null 2>&1; then
21573   :
21574 else
21575   ac_cv_header_stdc=no
21576 fi
21577 rm -f conftest*
21578
21579 fi
21580
21581 if test $ac_cv_header_stdc = yes; then
21582   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21583   if test "$cross_compiling" = yes; then
21584   :
21585 else
21586   cat >conftest.$ac_ext <<_ACEOF
21587 /* confdefs.h.  */
21588 _ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h.  */
21592 #include <ctype.h>
21593 #include <stdlib.h>
21594 #if ((' ' & 0x0FF) == 0x020)
21595 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21596 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21597 #else
21598 # define ISLOWER(c) \
21599                    (('a' <= (c) && (c) <= 'i') \
21600                      || ('j' <= (c) && (c) <= 'r') \
21601                      || ('s' <= (c) && (c) <= 'z'))
21602 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21603 #endif
21604
21605 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21606 int
21607 main ()
21608 {
21609   int i;
21610   for (i = 0; i < 256; i++)
21611     if (XOR (islower (i), ISLOWER (i))
21612         || toupper (i) != TOUPPER (i))
21613       return 2;
21614   return 0;
21615 }
21616 _ACEOF
21617 rm -f conftest$ac_exeext
21618 if { (ac_try="$ac_link"
21619 case "(($ac_try" in
21620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621   *) ac_try_echo=$ac_try;;
21622 esac
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624   (eval "$ac_link") 2>&5
21625   ac_status=$?
21626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21628   { (case "(($ac_try" in
21629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21630   *) ac_try_echo=$ac_try;;
21631 esac
21632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21633   (eval "$ac_try") 2>&5
21634   ac_status=$?
21635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636   (exit $ac_status); }; }; then
21637   :
21638 else
21639   echo "$as_me: program exited with status $ac_status" >&5
21640 echo "$as_me: failed program was:" >&5
21641 sed 's/^/| /' conftest.$ac_ext >&5
21642
21643 ( exit $ac_status )
21644 ac_cv_header_stdc=no
21645 fi
21646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21647 fi
21648
21649
21650 fi
21651 fi
21652 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21653 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21654 if test $ac_cv_header_stdc = yes; then
21655
21656 cat >>confdefs.h <<\_ACEOF
21657 #define STDC_HEADERS 1
21658 _ACEOF
21659
21660 fi
21661
21662 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21663 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21664 if test "${ac_cv_header_time+set}" = set; then
21665   echo $ECHO_N "(cached) $ECHO_C" >&6
21666 else
21667   cat >conftest.$ac_ext <<_ACEOF
21668 /* confdefs.h.  */
21669 _ACEOF
21670 cat confdefs.h >>conftest.$ac_ext
21671 cat >>conftest.$ac_ext <<_ACEOF
21672 /* end confdefs.h.  */
21673 #include <sys/types.h>
21674 #include <sys/time.h>
21675 #include <time.h>
21676
21677 int
21678 main ()
21679 {
21680 if ((struct tm *) 0)
21681 return 0;
21682   ;
21683   return 0;
21684 }
21685 _ACEOF
21686 rm -f conftest.$ac_objext
21687 if { (ac_try="$ac_compile"
21688 case "(($ac_try" in
21689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690   *) ac_try_echo=$ac_try;;
21691 esac
21692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21693   (eval "$ac_compile") 2>conftest.er1
21694   ac_status=$?
21695   grep -v '^ *+' conftest.er1 >conftest.err
21696   rm -f conftest.er1
21697   cat conftest.err >&5
21698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699   (exit $ac_status); } && {
21700          test -z "$ac_c_werror_flag" ||
21701          test ! -s conftest.err
21702        } && test -s conftest.$ac_objext; then
21703   ac_cv_header_time=yes
21704 else
21705   echo "$as_me: failed program was:" >&5
21706 sed 's/^/| /' conftest.$ac_ext >&5
21707
21708         ac_cv_header_time=no
21709 fi
21710
21711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21712 fi
21713 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21714 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21715 if test $ac_cv_header_time = yes; then
21716
21717 cat >>confdefs.h <<\_ACEOF
21718 #define TIME_WITH_SYS_TIME 1
21719 _ACEOF
21720
21721 fi
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733 for ac_header in sys/socket.h \
21734                   sys/stat.h \
21735                   windows.h winsock.h winsock2.h \
21736                   sys/time.h \
21737                   errno.h unistd.h \
21738                   execinfo.h\
21739                   signal.h
21740 do
21741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21743   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21746   echo $ECHO_N "(cached) $ECHO_C" >&6
21747 fi
21748 ac_res=`eval echo '${'$as_ac_Header'}'`
21749                { echo "$as_me:$LINENO: result: $ac_res" >&5
21750 echo "${ECHO_T}$ac_res" >&6; }
21751 else
21752   # Is the header compilable?
21753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21755 cat >conftest.$ac_ext <<_ACEOF
21756 /* confdefs.h.  */
21757 _ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h.  */
21761 $ac_includes_default
21762 #include <$ac_header>
21763 _ACEOF
21764 rm -f conftest.$ac_objext
21765 if { (ac_try="$ac_compile"
21766 case "(($ac_try" in
21767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21768   *) ac_try_echo=$ac_try;;
21769 esac
21770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21771   (eval "$ac_compile") 2>conftest.er1
21772   ac_status=$?
21773   grep -v '^ *+' conftest.er1 >conftest.err
21774   rm -f conftest.er1
21775   cat conftest.err >&5
21776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777   (exit $ac_status); } && {
21778          test -z "$ac_c_werror_flag" ||
21779          test ! -s conftest.err
21780        } && test -s conftest.$ac_objext; then
21781   ac_header_compiler=yes
21782 else
21783   echo "$as_me: failed program was:" >&5
21784 sed 's/^/| /' conftest.$ac_ext >&5
21785
21786         ac_header_compiler=no
21787 fi
21788
21789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21791 echo "${ECHO_T}$ac_header_compiler" >&6; }
21792
21793 # Is the header present?
21794 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21796 cat >conftest.$ac_ext <<_ACEOF
21797 /* confdefs.h.  */
21798 _ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h.  */
21802 #include <$ac_header>
21803 _ACEOF
21804 if { (ac_try="$ac_cpp conftest.$ac_ext"
21805 case "(($ac_try" in
21806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807   *) ac_try_echo=$ac_try;;
21808 esac
21809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21810   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21811   ac_status=$?
21812   grep -v '^ *+' conftest.er1 >conftest.err
21813   rm -f conftest.er1
21814   cat conftest.err >&5
21815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816   (exit $ac_status); } >/dev/null && {
21817          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21818          test ! -s conftest.err
21819        }; then
21820   ac_header_preproc=yes
21821 else
21822   echo "$as_me: failed program was:" >&5
21823 sed 's/^/| /' conftest.$ac_ext >&5
21824
21825   ac_header_preproc=no
21826 fi
21827
21828 rm -f conftest.err conftest.$ac_ext
21829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21830 echo "${ECHO_T}$ac_header_preproc" >&6; }
21831
21832 # So?  What about this header?
21833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21834   yes:no: )
21835     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21839     ac_header_preproc=yes
21840     ;;
21841   no:yes:* )
21842     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21844     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21845 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21846     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21848     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21849 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21852     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21854     ( cat <<\_ASBOX
21855 ## -------------------------------------------------- ##
21856 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21857 ## -------------------------------------------------- ##
21858 _ASBOX
21859      ) | sed "s/^/$as_me: WARNING:     /" >&2
21860     ;;
21861 esac
21862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21865   echo $ECHO_N "(cached) $ECHO_C" >&6
21866 else
21867   eval "$as_ac_Header=\$ac_header_preproc"
21868 fi
21869 ac_res=`eval echo '${'$as_ac_Header'}'`
21870                { echo "$as_me:$LINENO: result: $ac_res" >&5
21871 echo "${ECHO_T}$ac_res" >&6; }
21872
21873 fi
21874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21875   cat >>confdefs.h <<_ACEOF
21876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21877 _ACEOF
21878
21879 fi
21880
21881 done
21882
21883
21884
21885
21886
21887
21888
21889
21890
21891 for ac_func in gettimeofday usleep \
21892                 getdtablesize \
21893                 sysconf\
21894                 readv\
21895                 popen\
21896                 signal\
21897                 getline
21898 do
21899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21900 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21902 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21903   echo $ECHO_N "(cached) $ECHO_C" >&6
21904 else
21905   cat >conftest.$ac_ext <<_ACEOF
21906 /* confdefs.h.  */
21907 _ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h.  */
21911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21913 #define $ac_func innocuous_$ac_func
21914
21915 /* System header to define __stub macros and hopefully few prototypes,
21916     which can conflict with char $ac_func (); below.
21917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21918     <limits.h> exists even on freestanding compilers.  */
21919
21920 #ifdef __STDC__
21921 # include <limits.h>
21922 #else
21923 # include <assert.h>
21924 #endif
21925
21926 #undef $ac_func
21927
21928 /* Override any GCC internal prototype to avoid an error.
21929    Use char because int might match the return type of a GCC
21930    builtin and then its argument prototype would still apply.  */
21931 #ifdef __cplusplus
21932 extern "C"
21933 #endif
21934 char $ac_func ();
21935 /* The GNU C library defines this for functions which it implements
21936     to always fail with ENOSYS.  Some functions are actually named
21937     something starting with __ and the normal name is an alias.  */
21938 #if defined __stub_$ac_func || defined __stub___$ac_func
21939 choke me
21940 #endif
21941
21942 int
21943 main ()
21944 {
21945 return $ac_func ();
21946   ;
21947   return 0;
21948 }
21949 _ACEOF
21950 rm -f conftest.$ac_objext conftest$ac_exeext
21951 if { (ac_try="$ac_link"
21952 case "(($ac_try" in
21953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954   *) ac_try_echo=$ac_try;;
21955 esac
21956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21957   (eval "$ac_link") 2>conftest.er1
21958   ac_status=$?
21959   grep -v '^ *+' conftest.er1 >conftest.err
21960   rm -f conftest.er1
21961   cat conftest.err >&5
21962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963   (exit $ac_status); } && {
21964          test -z "$ac_c_werror_flag" ||
21965          test ! -s conftest.err
21966        } && test -s conftest$ac_exeext &&
21967        $as_test_x conftest$ac_exeext; then
21968   eval "$as_ac_var=yes"
21969 else
21970   echo "$as_me: failed program was:" >&5
21971 sed 's/^/| /' conftest.$ac_ext >&5
21972
21973         eval "$as_ac_var=no"
21974 fi
21975
21976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21977       conftest$ac_exeext conftest.$ac_ext
21978 fi
21979 ac_res=`eval echo '${'$as_ac_var'}'`
21980                { echo "$as_me:$LINENO: result: $ac_res" >&5
21981 echo "${ECHO_T}$ac_res" >&6; }
21982 if test `eval echo '${'$as_ac_var'}'` = yes; then
21983   cat >>confdefs.h <<_ACEOF
21984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21985 _ACEOF
21986
21987 fi
21988 done
21989
21990
21991 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21992
21993
21994 for ac_func in snprintf vsnprintf
21995 do
21996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21997 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22000   echo $ECHO_N "(cached) $ECHO_C" >&6
22001 else
22002   cat >conftest.$ac_ext <<_ACEOF
22003 /* confdefs.h.  */
22004 _ACEOF
22005 cat confdefs.h >>conftest.$ac_ext
22006 cat >>conftest.$ac_ext <<_ACEOF
22007 /* end confdefs.h.  */
22008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22009    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22010 #define $ac_func innocuous_$ac_func
22011
22012 /* System header to define __stub macros and hopefully few prototypes,
22013     which can conflict with char $ac_func (); below.
22014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22015     <limits.h> exists even on freestanding compilers.  */
22016
22017 #ifdef __STDC__
22018 # include <limits.h>
22019 #else
22020 # include <assert.h>
22021 #endif
22022
22023 #undef $ac_func
22024
22025 /* Override any GCC internal prototype to avoid an error.
22026    Use char because int might match the return type of a GCC
22027    builtin and then its argument prototype would still apply.  */
22028 #ifdef __cplusplus
22029 extern "C"
22030 #endif
22031 char $ac_func ();
22032 /* The GNU C library defines this for functions which it implements
22033     to always fail with ENOSYS.  Some functions are actually named
22034     something starting with __ and the normal name is an alias.  */
22035 #if defined __stub_$ac_func || defined __stub___$ac_func
22036 choke me
22037 #endif
22038
22039 int
22040 main ()
22041 {
22042 return $ac_func ();
22043   ;
22044   return 0;
22045 }
22046 _ACEOF
22047 rm -f conftest.$ac_objext conftest$ac_exeext
22048 if { (ac_try="$ac_link"
22049 case "(($ac_try" in
22050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22051   *) ac_try_echo=$ac_try;;
22052 esac
22053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22054   (eval "$ac_link") 2>conftest.er1
22055   ac_status=$?
22056   grep -v '^ *+' conftest.er1 >conftest.err
22057   rm -f conftest.er1
22058   cat conftest.err >&5
22059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060   (exit $ac_status); } && {
22061          test -z "$ac_c_werror_flag" ||
22062          test ! -s conftest.err
22063        } && test -s conftest$ac_exeext &&
22064        $as_test_x conftest$ac_exeext; then
22065   eval "$as_ac_var=yes"
22066 else
22067   echo "$as_me: failed program was:" >&5
22068 sed 's/^/| /' conftest.$ac_ext >&5
22069
22070         eval "$as_ac_var=no"
22071 fi
22072
22073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22074       conftest$ac_exeext conftest.$ac_ext
22075 fi
22076 ac_res=`eval echo '${'$as_ac_var'}'`
22077                { echo "$as_me:$LINENO: result: $ac_res" >&5
22078 echo "${ECHO_T}$ac_res" >&6; }
22079 if test `eval echo '${'$as_ac_var'}'` = yes; then
22080   cat >>confdefs.h <<_ACEOF
22081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22082 _ACEOF
22083
22084 fi
22085 done
22086
22087 { echo "$as_me:$LINENO: checking for working snprintf" >&5
22088 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
22089 if test "${ac_cv_have_working_snprintf+set}" = set; then
22090   echo $ECHO_N "(cached) $ECHO_C" >&6
22091 else
22092   if test "$cross_compiling" = yes; then
22093   ac_cv_have_working_snprintf=cross
22094 else
22095   cat >conftest.$ac_ext <<_ACEOF
22096 /* confdefs.h.  */
22097 _ACEOF
22098 cat confdefs.h >>conftest.$ac_ext
22099 cat >>conftest.$ac_ext <<_ACEOF
22100 /* end confdefs.h.  */
22101 #include <stdio.h>
22102
22103 int main(void)
22104 {
22105     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
22106     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
22107     int i;
22108     i = snprintf (bufs, 2, "%s", "111");
22109     if (strcmp (bufs, "1")) exit (1);
22110     if (i != 3) exit (1);
22111     i = snprintf (bufd, 2, "%d", 111);
22112     if (strcmp (bufd, "1")) exit (1);
22113     if (i != 3) exit (1);
22114     exit(0);
22115 }
22116 _ACEOF
22117 rm -f conftest$ac_exeext
22118 if { (ac_try="$ac_link"
22119 case "(($ac_try" in
22120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121   *) ac_try_echo=$ac_try;;
22122 esac
22123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22124   (eval "$ac_link") 2>&5
22125   ac_status=$?
22126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22128   { (case "(($ac_try" in
22129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130   *) ac_try_echo=$ac_try;;
22131 esac
22132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133   (eval "$ac_try") 2>&5
22134   ac_status=$?
22135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136   (exit $ac_status); }; }; then
22137   ac_cv_have_working_snprintf=yes
22138 else
22139   echo "$as_me: program exited with status $ac_status" >&5
22140 echo "$as_me: failed program was:" >&5
22141 sed 's/^/| /' conftest.$ac_ext >&5
22142
22143 ( exit $ac_status )
22144 ac_cv_have_working_snprintf=no
22145 fi
22146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22147 fi
22148
22149
22150 fi
22151
22152 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
22153 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
22154 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
22155 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
22156 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
22157   echo $ECHO_N "(cached) $ECHO_C" >&6
22158 else
22159   if test "$cross_compiling" = yes; then
22160   ac_cv_have_working_vsnprintf=cross
22161 else
22162   cat >conftest.$ac_ext <<_ACEOF
22163 /* confdefs.h.  */
22164 _ACEOF
22165 cat confdefs.h >>conftest.$ac_ext
22166 cat >>conftest.$ac_ext <<_ACEOF
22167 /* end confdefs.h.  */
22168 #include <stdio.h>
22169 #include <stdarg.h>
22170
22171 int my_vsnprintf (char *buf, const char *tmpl, ...)
22172 {
22173     int i;
22174     va_list args;
22175     va_start (args, tmpl);
22176     i = vsnprintf (buf, 2, tmpl, args);
22177     va_end (args);
22178     return i;
22179 }
22180
22181 int main(void)
22182 {
22183     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
22184     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
22185     int i;
22186     i = my_vsnprintf (bufs, "%s", "111");
22187     if (strcmp (bufs, "1")) exit (1);
22188     if (i != 3) exit (1);
22189     i = my_vsnprintf (bufd, "%d", 111);
22190     if (strcmp (bufd, "1")) exit (1);
22191     if (i != 3) exit (1);
22192     exit(0);
22193 }
22194 _ACEOF
22195 rm -f conftest$ac_exeext
22196 if { (ac_try="$ac_link"
22197 case "(($ac_try" in
22198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22199   *) ac_try_echo=$ac_try;;
22200 esac
22201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22202   (eval "$ac_link") 2>&5
22203   ac_status=$?
22204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22206   { (case "(($ac_try" in
22207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22208   *) ac_try_echo=$ac_try;;
22209 esac
22210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22211   (eval "$ac_try") 2>&5
22212   ac_status=$?
22213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214   (exit $ac_status); }; }; then
22215   ac_cv_have_working_vsnprintf=yes
22216 else
22217   echo "$as_me: program exited with status $ac_status" >&5
22218 echo "$as_me: failed program was:" >&5
22219 sed 's/^/| /' conftest.$ac_ext >&5
22220
22221 ( exit $ac_status )
22222 ac_cv_have_working_vsnprintf=no
22223 fi
22224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22225 fi
22226
22227
22228 fi
22229
22230 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
22231 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
22232 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
22233   case " $LIBOBJS " in
22234   *" snprintf.$ac_objext "* ) ;;
22235   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
22236  ;;
22237 esac
22238
22239   { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
22240 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
22241
22242 cat >>confdefs.h <<\_ACEOF
22243 #define PREFER_PORTABLE_SNPRINTF 1
22244 _ACEOF
22245
22246 fi
22247 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
22248 { echo "$as_me:$LINENO: checking for asprintf" >&5
22249 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
22250 if test "${ac_cv_func_asprintf+set}" = set; then
22251   echo $ECHO_N "(cached) $ECHO_C" >&6
22252 else
22253   cat >conftest.$ac_ext <<_ACEOF
22254 /* confdefs.h.  */
22255 _ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h.  */
22259 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
22260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22261 #define asprintf innocuous_asprintf
22262
22263 /* System header to define __stub macros and hopefully few prototypes,
22264     which can conflict with char asprintf (); below.
22265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22266     <limits.h> exists even on freestanding compilers.  */
22267
22268 #ifdef __STDC__
22269 # include <limits.h>
22270 #else
22271 # include <assert.h>
22272 #endif
22273
22274 #undef asprintf
22275
22276 /* Override any GCC internal prototype to avoid an error.
22277    Use char because int might match the return type of a GCC
22278    builtin and then its argument prototype would still apply.  */
22279 #ifdef __cplusplus
22280 extern "C"
22281 #endif
22282 char asprintf ();
22283 /* The GNU C library defines this for functions which it implements
22284     to always fail with ENOSYS.  Some functions are actually named
22285     something starting with __ and the normal name is an alias.  */
22286 #if defined __stub_asprintf || defined __stub___asprintf
22287 choke me
22288 #endif
22289
22290 int
22291 main ()
22292 {
22293 return asprintf ();
22294   ;
22295   return 0;
22296 }
22297 _ACEOF
22298 rm -f conftest.$ac_objext conftest$ac_exeext
22299 if { (ac_try="$ac_link"
22300 case "(($ac_try" in
22301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22302   *) ac_try_echo=$ac_try;;
22303 esac
22304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22305   (eval "$ac_link") 2>conftest.er1
22306   ac_status=$?
22307   grep -v '^ *+' conftest.er1 >conftest.err
22308   rm -f conftest.er1
22309   cat conftest.err >&5
22310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311   (exit $ac_status); } && {
22312          test -z "$ac_c_werror_flag" ||
22313          test ! -s conftest.err
22314        } && test -s conftest$ac_exeext &&
22315        $as_test_x conftest$ac_exeext; then
22316   ac_cv_func_asprintf=yes
22317 else
22318   echo "$as_me: failed program was:" >&5
22319 sed 's/^/| /' conftest.$ac_ext >&5
22320
22321         ac_cv_func_asprintf=no
22322 fi
22323
22324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22325       conftest$ac_exeext conftest.$ac_ext
22326 fi
22327 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
22328 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
22329 if test $ac_cv_func_asprintf = yes; then
22330   :
22331 else
22332
22333 cat >>confdefs.h <<\_ACEOF
22334 #define NEED_ASPRINTF 1
22335 _ACEOF
22336
22337 fi
22338
22339 { echo "$as_me:$LINENO: checking for vasprintf" >&5
22340 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
22341 if test "${ac_cv_func_vasprintf+set}" = set; then
22342   echo $ECHO_N "(cached) $ECHO_C" >&6
22343 else
22344   cat >conftest.$ac_ext <<_ACEOF
22345 /* confdefs.h.  */
22346 _ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h.  */
22350 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
22351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22352 #define vasprintf innocuous_vasprintf
22353
22354 /* System header to define __stub macros and hopefully few prototypes,
22355     which can conflict with char vasprintf (); below.
22356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22357     <limits.h> exists even on freestanding compilers.  */
22358
22359 #ifdef __STDC__
22360 # include <limits.h>
22361 #else
22362 # include <assert.h>
22363 #endif
22364
22365 #undef vasprintf
22366
22367 /* Override any GCC internal prototype to avoid an error.
22368    Use char because int might match the return type of a GCC
22369    builtin and then its argument prototype would still apply.  */
22370 #ifdef __cplusplus
22371 extern "C"
22372 #endif
22373 char vasprintf ();
22374 /* The GNU C library defines this for functions which it implements
22375     to always fail with ENOSYS.  Some functions are actually named
22376     something starting with __ and the normal name is an alias.  */
22377 #if defined __stub_vasprintf || defined __stub___vasprintf
22378 choke me
22379 #endif
22380
22381 int
22382 main ()
22383 {
22384 return vasprintf ();
22385   ;
22386   return 0;
22387 }
22388 _ACEOF
22389 rm -f conftest.$ac_objext conftest$ac_exeext
22390 if { (ac_try="$ac_link"
22391 case "(($ac_try" in
22392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22393   *) ac_try_echo=$ac_try;;
22394 esac
22395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22396   (eval "$ac_link") 2>conftest.er1
22397   ac_status=$?
22398   grep -v '^ *+' conftest.er1 >conftest.err
22399   rm -f conftest.er1
22400   cat conftest.err >&5
22401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402   (exit $ac_status); } && {
22403          test -z "$ac_c_werror_flag" ||
22404          test ! -s conftest.err
22405        } && test -s conftest$ac_exeext &&
22406        $as_test_x conftest$ac_exeext; then
22407   ac_cv_func_vasprintf=yes
22408 else
22409   echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.$ac_ext >&5
22411
22412         ac_cv_func_vasprintf=no
22413 fi
22414
22415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22416       conftest$ac_exeext conftest.$ac_ext
22417 fi
22418 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
22419 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
22420 if test $ac_cv_func_vasprintf = yes; then
22421   :
22422 else
22423
22424 cat >>confdefs.h <<\_ACEOF
22425 #define NEED_VASPRINTF 1
22426 _ACEOF
22427
22428 fi
22429
22430
22431 # Checks for typedefs, structures, and compiler characteristics.
22432 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22433 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22434 if test "${ac_cv_c_const+set}" = set; then
22435   echo $ECHO_N "(cached) $ECHO_C" >&6
22436 else
22437   cat >conftest.$ac_ext <<_ACEOF
22438 /* confdefs.h.  */
22439 _ACEOF
22440 cat confdefs.h >>conftest.$ac_ext
22441 cat >>conftest.$ac_ext <<_ACEOF
22442 /* end confdefs.h.  */
22443
22444 int
22445 main ()
22446 {
22447 /* FIXME: Include the comments suggested by Paul. */
22448 #ifndef __cplusplus
22449   /* Ultrix mips cc rejects this.  */
22450   typedef int charset[2];
22451   const charset cs;
22452   /* SunOS 4.1.1 cc rejects this.  */
22453   char const *const *pcpcc;
22454   char **ppc;
22455   /* NEC SVR4.0.2 mips cc rejects this.  */
22456   struct point {int x, y;};
22457   static struct point const zero = {0,0};
22458   /* AIX XL C 1.02.0.0 rejects this.
22459      It does not let you subtract one const X* pointer from another in
22460      an arm of an if-expression whose if-part is not a constant
22461      expression */
22462   const char *g = "string";
22463   pcpcc = &g + (g ? g-g : 0);
22464   /* HPUX 7.0 cc rejects these. */
22465   ++pcpcc;
22466   ppc = (char**) pcpcc;
22467   pcpcc = (char const *const *) ppc;
22468   { /* SCO 3.2v4 cc rejects this.  */
22469     char *t;
22470     char const *s = 0 ? (char *) 0 : (char const *) 0;
22471
22472     *t++ = 0;
22473     if (s) return 0;
22474   }
22475   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22476     int x[] = {25, 17};
22477     const int *foo = &x[0];
22478     ++foo;
22479   }
22480   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22481     typedef const int *iptr;
22482     iptr p = 0;
22483     ++p;
22484   }
22485   { /* AIX XL C 1.02.0.0 rejects this saying
22486        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22487     struct s { int j; const int *ap[3]; };
22488     struct s *b; b->j = 5;
22489   }
22490   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22491     const int foo = 10;
22492     if (!foo) return 0;
22493   }
22494   return !cs[0] && !zero.x;
22495 #endif
22496
22497   ;
22498   return 0;
22499 }
22500 _ACEOF
22501 rm -f conftest.$ac_objext
22502 if { (ac_try="$ac_compile"
22503 case "(($ac_try" in
22504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22505   *) ac_try_echo=$ac_try;;
22506 esac
22507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22508   (eval "$ac_compile") 2>conftest.er1
22509   ac_status=$?
22510   grep -v '^ *+' conftest.er1 >conftest.err
22511   rm -f conftest.er1
22512   cat conftest.err >&5
22513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514   (exit $ac_status); } && {
22515          test -z "$ac_c_werror_flag" ||
22516          test ! -s conftest.err
22517        } && test -s conftest.$ac_objext; then
22518   ac_cv_c_const=yes
22519 else
22520   echo "$as_me: failed program was:" >&5
22521 sed 's/^/| /' conftest.$ac_ext >&5
22522
22523         ac_cv_c_const=no
22524 fi
22525
22526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22527 fi
22528 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22529 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22530 if test $ac_cv_c_const = no; then
22531
22532 cat >>confdefs.h <<\_ACEOF
22533 #define const
22534 _ACEOF
22535
22536 fi
22537
22538 { echo "$as_me:$LINENO: checking for inline" >&5
22539 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
22540 if test "${ac_cv_c_inline+set}" = set; then
22541   echo $ECHO_N "(cached) $ECHO_C" >&6
22542 else
22543   ac_cv_c_inline=no
22544 for ac_kw in inline __inline__ __inline; do
22545   cat >conftest.$ac_ext <<_ACEOF
22546 /* confdefs.h.  */
22547 _ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h.  */
22551 #ifndef __cplusplus
22552 typedef int foo_t;
22553 static $ac_kw foo_t static_foo () {return 0; }
22554 $ac_kw foo_t foo () {return 0; }
22555 #endif
22556
22557 _ACEOF
22558 rm -f conftest.$ac_objext
22559 if { (ac_try="$ac_compile"
22560 case "(($ac_try" in
22561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22562   *) ac_try_echo=$ac_try;;
22563 esac
22564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22565   (eval "$ac_compile") 2>conftest.er1
22566   ac_status=$?
22567   grep -v '^ *+' conftest.er1 >conftest.err
22568   rm -f conftest.er1
22569   cat conftest.err >&5
22570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571   (exit $ac_status); } && {
22572          test -z "$ac_c_werror_flag" ||
22573          test ! -s conftest.err
22574        } && test -s conftest.$ac_objext; then
22575   ac_cv_c_inline=$ac_kw
22576 else
22577   echo "$as_me: failed program was:" >&5
22578 sed 's/^/| /' conftest.$ac_ext >&5
22579
22580
22581 fi
22582
22583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22584   test "$ac_cv_c_inline" != no && break
22585 done
22586
22587 fi
22588 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22589 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
22590
22591
22592 case $ac_cv_c_inline in
22593   inline | yes) ;;
22594   *)
22595     case $ac_cv_c_inline in
22596       no) ac_val=;;
22597       *) ac_val=$ac_cv_c_inline;;
22598     esac
22599     cat >>confdefs.h <<_ACEOF
22600 #ifndef __cplusplus
22601 #define inline $ac_val
22602 #endif
22603 _ACEOF
22604     ;;
22605 esac
22606
22607 { echo "$as_me:$LINENO: checking for size_t" >&5
22608 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22609 if test "${ac_cv_type_size_t+set}" = set; then
22610   echo $ECHO_N "(cached) $ECHO_C" >&6
22611 else
22612   cat >conftest.$ac_ext <<_ACEOF
22613 /* confdefs.h.  */
22614 _ACEOF
22615 cat confdefs.h >>conftest.$ac_ext
22616 cat >>conftest.$ac_ext <<_ACEOF
22617 /* end confdefs.h.  */
22618 $ac_includes_default
22619 typedef size_t ac__type_new_;
22620 int
22621 main ()
22622 {
22623 if ((ac__type_new_ *) 0)
22624   return 0;
22625 if (sizeof (ac__type_new_))
22626   return 0;
22627   ;
22628   return 0;
22629 }
22630 _ACEOF
22631 rm -f conftest.$ac_objext
22632 if { (ac_try="$ac_compile"
22633 case "(($ac_try" in
22634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22635   *) ac_try_echo=$ac_try;;
22636 esac
22637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22638   (eval "$ac_compile") 2>conftest.er1
22639   ac_status=$?
22640   grep -v '^ *+' conftest.er1 >conftest.err
22641   rm -f conftest.er1
22642   cat conftest.err >&5
22643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644   (exit $ac_status); } && {
22645          test -z "$ac_c_werror_flag" ||
22646          test ! -s conftest.err
22647        } && test -s conftest.$ac_objext; then
22648   ac_cv_type_size_t=yes
22649 else
22650   echo "$as_me: failed program was:" >&5
22651 sed 's/^/| /' conftest.$ac_ext >&5
22652
22653         ac_cv_type_size_t=no
22654 fi
22655
22656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22657 fi
22658 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22659 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22660 if test $ac_cv_type_size_t = yes; then
22661   :
22662 else
22663
22664 cat >>confdefs.h <<_ACEOF
22665 #define size_t unsigned int
22666 _ACEOF
22667
22668 fi
22669
22670
22671 ###################################
22672 ## SimGrid and GRAS specific checks
22673 ##
22674
22675
22676   { echo "$as_me:$LINENO: result: " >&5
22677 echo "${ECHO_T}" >&6; }
22678   { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
22679 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
22680
22681 # Check architecture signature begin
22682
22683 # Check for the architecture
22684 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22685 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22686 if test "${ac_cv_c_bigendian+set}" = set; then
22687   echo $ECHO_N "(cached) $ECHO_C" >&6
22688 else
22689   # See if sys/param.h defines the BYTE_ORDER macro.
22690 cat >conftest.$ac_ext <<_ACEOF
22691 /* confdefs.h.  */
22692 _ACEOF
22693 cat confdefs.h >>conftest.$ac_ext
22694 cat >>conftest.$ac_ext <<_ACEOF
22695 /* end confdefs.h.  */
22696 #include <sys/types.h>
22697 #include <sys/param.h>
22698
22699 int
22700 main ()
22701 {
22702 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22703         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22704  bogus endian macros
22705 #endif
22706
22707   ;
22708   return 0;
22709 }
22710 _ACEOF
22711 rm -f conftest.$ac_objext
22712 if { (ac_try="$ac_compile"
22713 case "(($ac_try" in
22714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22715   *) ac_try_echo=$ac_try;;
22716 esac
22717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22718   (eval "$ac_compile") 2>conftest.er1
22719   ac_status=$?
22720   grep -v '^ *+' conftest.er1 >conftest.err
22721   rm -f conftest.er1
22722   cat conftest.err >&5
22723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724   (exit $ac_status); } && {
22725          test -z "$ac_c_werror_flag" ||
22726          test ! -s conftest.err
22727        } && test -s conftest.$ac_objext; then
22728   # It does; now see whether it defined to BIG_ENDIAN or not.
22729 cat >conftest.$ac_ext <<_ACEOF
22730 /* confdefs.h.  */
22731 _ACEOF
22732 cat confdefs.h >>conftest.$ac_ext
22733 cat >>conftest.$ac_ext <<_ACEOF
22734 /* end confdefs.h.  */
22735 #include <sys/types.h>
22736 #include <sys/param.h>
22737
22738 int
22739 main ()
22740 {
22741 #if BYTE_ORDER != BIG_ENDIAN
22742  not big endian
22743 #endif
22744
22745   ;
22746   return 0;
22747 }
22748 _ACEOF
22749 rm -f conftest.$ac_objext
22750 if { (ac_try="$ac_compile"
22751 case "(($ac_try" in
22752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22753   *) ac_try_echo=$ac_try;;
22754 esac
22755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22756   (eval "$ac_compile") 2>conftest.er1
22757   ac_status=$?
22758   grep -v '^ *+' conftest.er1 >conftest.err
22759   rm -f conftest.er1
22760   cat conftest.err >&5
22761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762   (exit $ac_status); } && {
22763          test -z "$ac_c_werror_flag" ||
22764          test ! -s conftest.err
22765        } && test -s conftest.$ac_objext; then
22766   ac_cv_c_bigendian=yes
22767 else
22768   echo "$as_me: failed program was:" >&5
22769 sed 's/^/| /' conftest.$ac_ext >&5
22770
22771         ac_cv_c_bigendian=no
22772 fi
22773
22774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22775 else
22776   echo "$as_me: failed program was:" >&5
22777 sed 's/^/| /' conftest.$ac_ext >&5
22778
22779         # It does not; compile a test program.
22780 if test "$cross_compiling" = yes; then
22781   # try to guess the endianness by grepping values into an object file
22782   ac_cv_c_bigendian=unknown
22783   cat >conftest.$ac_ext <<_ACEOF
22784 /* confdefs.h.  */
22785 _ACEOF
22786 cat confdefs.h >>conftest.$ac_ext
22787 cat >>conftest.$ac_ext <<_ACEOF
22788 /* end confdefs.h.  */
22789 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22790 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22791 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22792 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22793 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22794 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22795 int
22796 main ()
22797 {
22798  _ascii (); _ebcdic ();
22799   ;
22800   return 0;
22801 }
22802 _ACEOF
22803 rm -f conftest.$ac_objext
22804 if { (ac_try="$ac_compile"
22805 case "(($ac_try" in
22806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22807   *) ac_try_echo=$ac_try;;
22808 esac
22809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22810   (eval "$ac_compile") 2>conftest.er1
22811   ac_status=$?
22812   grep -v '^ *+' conftest.er1 >conftest.err
22813   rm -f conftest.er1
22814   cat conftest.err >&5
22815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816   (exit $ac_status); } && {
22817          test -z "$ac_c_werror_flag" ||
22818          test ! -s conftest.err
22819        } && test -s conftest.$ac_objext; then
22820   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22821   ac_cv_c_bigendian=yes
22822 fi
22823 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22824   if test "$ac_cv_c_bigendian" = unknown; then
22825     ac_cv_c_bigendian=no
22826   else
22827     # finding both strings is unlikely to happen, but who knows?
22828     ac_cv_c_bigendian=unknown
22829   fi
22830 fi
22831 else
22832   echo "$as_me: failed program was:" >&5
22833 sed 's/^/| /' conftest.$ac_ext >&5
22834
22835
22836 fi
22837
22838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22839 else
22840   cat >conftest.$ac_ext <<_ACEOF
22841 /* confdefs.h.  */
22842 _ACEOF
22843 cat confdefs.h >>conftest.$ac_ext
22844 cat >>conftest.$ac_ext <<_ACEOF
22845 /* end confdefs.h.  */
22846 $ac_includes_default
22847 int
22848 main ()
22849 {
22850
22851   /* Are we little or big endian?  From Harbison&Steele.  */
22852   union
22853   {
22854     long int l;
22855     char c[sizeof (long int)];
22856   } u;
22857   u.l = 1;
22858   return u.c[sizeof (long int) - 1] == 1;
22859
22860   ;
22861   return 0;
22862 }
22863 _ACEOF
22864 rm -f conftest$ac_exeext
22865 if { (ac_try="$ac_link"
22866 case "(($ac_try" in
22867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22868   *) ac_try_echo=$ac_try;;
22869 esac
22870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22871   (eval "$ac_link") 2>&5
22872   ac_status=$?
22873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22875   { (case "(($ac_try" in
22876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22877   *) ac_try_echo=$ac_try;;
22878 esac
22879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22880   (eval "$ac_try") 2>&5
22881   ac_status=$?
22882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883   (exit $ac_status); }; }; then
22884   ac_cv_c_bigendian=no
22885 else
22886   echo "$as_me: program exited with status $ac_status" >&5
22887 echo "$as_me: failed program was:" >&5
22888 sed 's/^/| /' conftest.$ac_ext >&5
22889
22890 ( exit $ac_status )
22891 ac_cv_c_bigendian=yes
22892 fi
22893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22894 fi
22895
22896
22897 fi
22898
22899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22900 fi
22901 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22902 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22903 case $ac_cv_c_bigendian in
22904   yes)
22905     endian=1 ;;
22906   no)
22907     endian=0 ;;
22908   *)
22909     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22910 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22911    { (exit 1); exit 1; }; } ;;
22912 esac
22913
22914
22915 cat >>confdefs.h <<_ACEOF
22916 #define GRAS_BIGENDIAN $endian
22917 _ACEOF
22918
22919
22920 { echo "$as_me:$LINENO: checking size of char" >&5
22921 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22922     if test "${ac_cv_sizeof_char+set}" = set; then
22923   echo $ECHO_N "(cached) $ECHO_C" >&6
22924 else
22925   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22926    cat >conftest.$ac_ext <<_ACEOF
22927 /* confdefs.h.  */
22928 _ACEOF
22929 cat confdefs.h >>conftest.$ac_ext
22930 cat >>conftest.$ac_ext <<_ACEOF
22931 /* end confdefs.h.  */
22932 #include "confdefs.h"
22933    #include <sys/types.h>
22934
22935
22936 int
22937 main ()
22938 {
22939 switch (0) case 0: case (sizeof (char) == $ac_size):;
22940   ;
22941   return 0;
22942 }
22943 _ACEOF
22944 rm -f conftest.$ac_objext
22945 if { (ac_try="$ac_compile"
22946 case "(($ac_try" in
22947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22948   *) ac_try_echo=$ac_try;;
22949 esac
22950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22951   (eval "$ac_compile") 2>conftest.er1
22952   ac_status=$?
22953   grep -v '^ *+' conftest.er1 >conftest.err
22954   rm -f conftest.er1
22955   cat conftest.err >&5
22956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957   (exit $ac_status); } && {
22958          test -z "$ac_c_werror_flag" ||
22959          test ! -s conftest.err
22960        } && test -s conftest.$ac_objext; then
22961   ac_cv_sizeof_char=$ac_size
22962 else
22963   echo "$as_me: failed program was:" >&5
22964 sed 's/^/| /' conftest.$ac_ext >&5
22965
22966
22967 fi
22968
22969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22970    if test x$ac_cv_sizeof_char != x ; then break; fi
22971   done
22972
22973 fi
22974
22975
22976 unspecif=$ac_cv_sizeof_char
22977 if test x$unspecif = x ; then
22978   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22979 echo "$as_me: error: cannot determine a size for char" >&2;}
22980    { (exit 1); exit 1; }; }
22981 fi
22982
22983     if test "${ac_cv_sizeof_signed_char+set}" = set; then
22984   echo $ECHO_N "(cached) $ECHO_C" >&6
22985 else
22986   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22987    cat >conftest.$ac_ext <<_ACEOF
22988 /* confdefs.h.  */
22989 _ACEOF
22990 cat confdefs.h >>conftest.$ac_ext
22991 cat >>conftest.$ac_ext <<_ACEOF
22992 /* end confdefs.h.  */
22993 #include "confdefs.h"
22994    #include <sys/types.h>
22995
22996
22997 int
22998 main ()
22999 {
23000 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
23001   ;
23002   return 0;
23003 }
23004 _ACEOF
23005 rm -f conftest.$ac_objext
23006 if { (ac_try="$ac_compile"
23007 case "(($ac_try" in
23008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23009   *) ac_try_echo=$ac_try;;
23010 esac
23011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23012   (eval "$ac_compile") 2>conftest.er1
23013   ac_status=$?
23014   grep -v '^ *+' conftest.er1 >conftest.err
23015   rm -f conftest.er1
23016   cat conftest.err >&5
23017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018   (exit $ac_status); } && {
23019          test -z "$ac_c_werror_flag" ||
23020          test ! -s conftest.err
23021        } && test -s conftest.$ac_objext; then
23022   ac_cv_sizeof_signed_char=$ac_size
23023 else
23024   echo "$as_me: failed program was:" >&5
23025 sed 's/^/| /' conftest.$ac_ext >&5
23026
23027
23028 fi
23029
23030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23031    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
23032   done
23033
23034 fi
23035
23036
23037 signed=$ac_cv_sizeof_signed_char
23038 if test x$signed = x ; then
23039   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
23040 echo "$as_me: error: cannot determine a size for signed char" >&2;}
23041    { (exit 1); exit 1; }; }
23042 fi
23043 if test x$unspecif != x$signed ; then
23044   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
23045 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
23046    { (exit 1); exit 1; }; }
23047 fi
23048
23049     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
23050   echo $ECHO_N "(cached) $ECHO_C" >&6
23051 else
23052   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23053    cat >conftest.$ac_ext <<_ACEOF
23054 /* confdefs.h.  */
23055 _ACEOF
23056 cat confdefs.h >>conftest.$ac_ext
23057 cat >>conftest.$ac_ext <<_ACEOF
23058 /* end confdefs.h.  */
23059 #include "confdefs.h"
23060    #include <sys/types.h>
23061
23062
23063 int
23064 main ()
23065 {
23066 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
23067   ;
23068   return 0;
23069 }
23070 _ACEOF
23071 rm -f conftest.$ac_objext
23072 if { (ac_try="$ac_compile"
23073 case "(($ac_try" in
23074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23075   *) ac_try_echo=$ac_try;;
23076 esac
23077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23078   (eval "$ac_compile") 2>conftest.er1
23079   ac_status=$?
23080   grep -v '^ *+' conftest.er1 >conftest.err
23081   rm -f conftest.er1
23082   cat conftest.err >&5
23083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084   (exit $ac_status); } && {
23085          test -z "$ac_c_werror_flag" ||
23086          test ! -s conftest.err
23087        } && test -s conftest.$ac_objext; then
23088   ac_cv_sizeof_unsigned_char=$ac_size
23089 else
23090   echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23092
23093
23094 fi
23095
23096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23097    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
23098   done
23099
23100 fi
23101
23102
23103 unsigned=$ac_cv_sizeof_unsigned_char
23104 if test x$unsigned = x ; then
23105   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
23106 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
23107    { (exit 1); exit 1; }; }
23108 fi
23109 if test x$unsigned != x$signed ; then
23110   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
23111 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
23112    { (exit 1); exit 1; }; }
23113 fi
23114
23115 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
23116 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
23117                   { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
23118 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
23119
23120  if test "${ac_cv_struct_boundary_char+set}" = set; then
23121   echo $ECHO_N "(cached) $ECHO_C" >&6
23122 else
23123   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23124    cat >conftest.$ac_ext <<_ACEOF
23125 /* confdefs.h.  */
23126 _ACEOF
23127 cat confdefs.h >>conftest.$ac_ext
23128 cat >>conftest.$ac_ext <<_ACEOF
23129 /* end confdefs.h.  */
23130 #include "confdefs.h"
23131      #include <sys/types.h>
23132      struct s { char c; char i; };
23133
23134 int
23135 main ()
23136 {
23137 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
23138   ;
23139   return 0;
23140 }
23141 _ACEOF
23142 rm -f conftest.$ac_objext
23143 if { (ac_try="$ac_compile"
23144 case "(($ac_try" in
23145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23146   *) ac_try_echo=$ac_try;;
23147 esac
23148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23149   (eval "$ac_compile") 2>conftest.er1
23150   ac_status=$?
23151   grep -v '^ *+' conftest.er1 >conftest.err
23152   rm -f conftest.er1
23153   cat conftest.err >&5
23154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155   (exit $ac_status); } && {
23156          test -z "$ac_c_werror_flag" ||
23157          test ! -s conftest.err
23158        } && test -s conftest.$ac_objext; then
23159   ac_cv_struct_boundary_char=$ac_size
23160 else
23161   echo "$as_me: failed program was:" >&5
23162 sed 's/^/| /' conftest.$ac_ext >&5
23163
23164
23165 fi
23166
23167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23168    if test x$ac_cv_struct_boundary_char != x ; then break; fi
23169   done
23170
23171 fi
23172
23173  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
23174 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
23175  if test x$ac_cv_struct_boundary_char = x ; then
23176    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
23177 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
23178    { (exit 1); exit 1; }; }
23179  fi
23180
23181 { echo "$as_me:$LINENO: checking size of short int" >&5
23182 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
23183     if test "${ac_cv_sizeof_short_int+set}" = set; then
23184   echo $ECHO_N "(cached) $ECHO_C" >&6
23185 else
23186   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23187    cat >conftest.$ac_ext <<_ACEOF
23188 /* confdefs.h.  */
23189 _ACEOF
23190 cat confdefs.h >>conftest.$ac_ext
23191 cat >>conftest.$ac_ext <<_ACEOF
23192 /* end confdefs.h.  */
23193 #include "confdefs.h"
23194    #include <sys/types.h>
23195
23196
23197 int
23198 main ()
23199 {
23200 switch (0) case 0: case (sizeof (short int) == $ac_size):;
23201   ;
23202   return 0;
23203 }
23204 _ACEOF
23205 rm -f conftest.$ac_objext
23206 if { (ac_try="$ac_compile"
23207 case "(($ac_try" in
23208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23209   *) ac_try_echo=$ac_try;;
23210 esac
23211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23212   (eval "$ac_compile") 2>conftest.er1
23213   ac_status=$?
23214   grep -v '^ *+' conftest.er1 >conftest.err
23215   rm -f conftest.er1
23216   cat conftest.err >&5
23217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218   (exit $ac_status); } && {
23219          test -z "$ac_c_werror_flag" ||
23220          test ! -s conftest.err
23221        } && test -s conftest.$ac_objext; then
23222   ac_cv_sizeof_short_int=$ac_size
23223 else
23224   echo "$as_me: failed program was:" >&5
23225 sed 's/^/| /' conftest.$ac_ext >&5
23226
23227
23228 fi
23229
23230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23231    if test x$ac_cv_sizeof_short_int != x ; then break; fi
23232   done
23233
23234 fi
23235
23236
23237 unspecif=$ac_cv_sizeof_short_int
23238 if test x$unspecif = x ; then
23239   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
23240 echo "$as_me: error: cannot determine a size for short int" >&2;}
23241    { (exit 1); exit 1; }; }
23242 fi
23243
23244     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
23245   echo $ECHO_N "(cached) $ECHO_C" >&6
23246 else
23247   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23248    cat >conftest.$ac_ext <<_ACEOF
23249 /* confdefs.h.  */
23250 _ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h.  */
23254 #include "confdefs.h"
23255    #include <sys/types.h>
23256
23257
23258 int
23259 main ()
23260 {
23261 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
23262   ;
23263   return 0;
23264 }
23265 _ACEOF
23266 rm -f conftest.$ac_objext
23267 if { (ac_try="$ac_compile"
23268 case "(($ac_try" in
23269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23270   *) ac_try_echo=$ac_try;;
23271 esac
23272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23273   (eval "$ac_compile") 2>conftest.er1
23274   ac_status=$?
23275   grep -v '^ *+' conftest.er1 >conftest.err
23276   rm -f conftest.er1
23277   cat conftest.err >&5
23278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279   (exit $ac_status); } && {
23280          test -z "$ac_c_werror_flag" ||
23281          test ! -s conftest.err
23282        } && test -s conftest.$ac_objext; then
23283   ac_cv_sizeof_signed_short_int=$ac_size
23284 else
23285   echo "$as_me: failed program was:" >&5
23286 sed 's/^/| /' conftest.$ac_ext >&5
23287
23288
23289 fi
23290
23291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23292    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
23293   done
23294
23295 fi
23296
23297
23298 signed=$ac_cv_sizeof_signed_short_int
23299 if test x$signed = x ; then
23300   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
23301 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
23302    { (exit 1); exit 1; }; }
23303 fi
23304 if test x$unspecif != x$signed ; then
23305   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
23306 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
23307    { (exit 1); exit 1; }; }
23308 fi
23309
23310     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
23311   echo $ECHO_N "(cached) $ECHO_C" >&6
23312 else
23313   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23314    cat >conftest.$ac_ext <<_ACEOF
23315 /* confdefs.h.  */
23316 _ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h.  */
23320 #include "confdefs.h"
23321    #include <sys/types.h>
23322
23323
23324 int
23325 main ()
23326 {
23327 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
23328   ;
23329   return 0;
23330 }
23331 _ACEOF
23332 rm -f conftest.$ac_objext
23333 if { (ac_try="$ac_compile"
23334 case "(($ac_try" in
23335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23336   *) ac_try_echo=$ac_try;;
23337 esac
23338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23339   (eval "$ac_compile") 2>conftest.er1
23340   ac_status=$?
23341   grep -v '^ *+' conftest.er1 >conftest.err
23342   rm -f conftest.er1
23343   cat conftest.err >&5
23344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345   (exit $ac_status); } && {
23346          test -z "$ac_c_werror_flag" ||
23347          test ! -s conftest.err
23348        } && test -s conftest.$ac_objext; then
23349   ac_cv_sizeof_unsigned_short_int=$ac_size
23350 else
23351   echo "$as_me: failed program was:" >&5
23352 sed 's/^/| /' conftest.$ac_ext >&5
23353
23354
23355 fi
23356
23357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23358    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
23359   done
23360
23361 fi
23362
23363
23364 unsigned=$ac_cv_sizeof_unsigned_short_int
23365 if test x$unsigned = x ; then
23366   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
23367 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
23368    { (exit 1); exit 1; }; }
23369 fi
23370 if test x$unsigned != x$signed ; then
23371   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
23372 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
23373    { (exit 1); exit 1; }; }
23374 fi
23375
23376 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
23377 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
23378              { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
23379 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
23380
23381  if test "${ac_cv_struct_boundary_short_int+set}" = set; then
23382   echo $ECHO_N "(cached) $ECHO_C" >&6
23383 else
23384   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23385    cat >conftest.$ac_ext <<_ACEOF
23386 /* confdefs.h.  */
23387 _ACEOF
23388 cat confdefs.h >>conftest.$ac_ext
23389 cat >>conftest.$ac_ext <<_ACEOF
23390 /* end confdefs.h.  */
23391 #include "confdefs.h"
23392      #include <sys/types.h>
23393      struct s { char c; short int i; };
23394
23395 int
23396 main ()
23397 {
23398 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
23399   ;
23400   return 0;
23401 }
23402 _ACEOF
23403 rm -f conftest.$ac_objext
23404 if { (ac_try="$ac_compile"
23405 case "(($ac_try" in
23406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23407   *) ac_try_echo=$ac_try;;
23408 esac
23409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23410   (eval "$ac_compile") 2>conftest.er1
23411   ac_status=$?
23412   grep -v '^ *+' conftest.er1 >conftest.err
23413   rm -f conftest.er1
23414   cat conftest.err >&5
23415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416   (exit $ac_status); } && {
23417          test -z "$ac_c_werror_flag" ||
23418          test ! -s conftest.err
23419        } && test -s conftest.$ac_objext; then
23420   ac_cv_struct_boundary_short_int=$ac_size
23421 else
23422   echo "$as_me: failed program was:" >&5
23423 sed 's/^/| /' conftest.$ac_ext >&5
23424
23425
23426 fi
23427
23428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23429    if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
23430   done
23431
23432 fi
23433
23434  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
23435 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
23436  if test x$ac_cv_struct_boundary_short_int = x ; then
23437    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
23438 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
23439    { (exit 1); exit 1; }; }
23440  fi
23441
23442 { echo "$as_me:$LINENO: checking size of int" >&5
23443 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
23444     if test "${ac_cv_sizeof_int+set}" = set; then
23445   echo $ECHO_N "(cached) $ECHO_C" >&6
23446 else
23447   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23448    cat >conftest.$ac_ext <<_ACEOF
23449 /* confdefs.h.  */
23450 _ACEOF
23451 cat confdefs.h >>conftest.$ac_ext
23452 cat >>conftest.$ac_ext <<_ACEOF
23453 /* end confdefs.h.  */
23454 #include "confdefs.h"
23455    #include <sys/types.h>
23456
23457
23458 int
23459 main ()
23460 {
23461 switch (0) case 0: case (sizeof (int) == $ac_size):;
23462   ;
23463   return 0;
23464 }
23465 _ACEOF
23466 rm -f conftest.$ac_objext
23467 if { (ac_try="$ac_compile"
23468 case "(($ac_try" in
23469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23470   *) ac_try_echo=$ac_try;;
23471 esac
23472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23473   (eval "$ac_compile") 2>conftest.er1
23474   ac_status=$?
23475   grep -v '^ *+' conftest.er1 >conftest.err
23476   rm -f conftest.er1
23477   cat conftest.err >&5
23478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479   (exit $ac_status); } && {
23480          test -z "$ac_c_werror_flag" ||
23481          test ! -s conftest.err
23482        } && test -s conftest.$ac_objext; then
23483   ac_cv_sizeof_int=$ac_size
23484 else
23485   echo "$as_me: failed program was:" >&5
23486 sed 's/^/| /' conftest.$ac_ext >&5
23487
23488
23489 fi
23490
23491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23492    if test x$ac_cv_sizeof_int != x ; then break; fi
23493   done
23494
23495 fi
23496
23497
23498 unspecif=$ac_cv_sizeof_int
23499 if test x$unspecif = x ; then
23500   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
23501 echo "$as_me: error: cannot determine a size for int" >&2;}
23502    { (exit 1); exit 1; }; }
23503 fi
23504
23505     if test "${ac_cv_sizeof_signed_int+set}" = set; then
23506   echo $ECHO_N "(cached) $ECHO_C" >&6
23507 else
23508   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23509    cat >conftest.$ac_ext <<_ACEOF
23510 /* confdefs.h.  */
23511 _ACEOF
23512 cat confdefs.h >>conftest.$ac_ext
23513 cat >>conftest.$ac_ext <<_ACEOF
23514 /* end confdefs.h.  */
23515 #include "confdefs.h"
23516    #include <sys/types.h>
23517
23518
23519 int
23520 main ()
23521 {
23522 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
23523   ;
23524   return 0;
23525 }
23526 _ACEOF
23527 rm -f conftest.$ac_objext
23528 if { (ac_try="$ac_compile"
23529 case "(($ac_try" in
23530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23531   *) ac_try_echo=$ac_try;;
23532 esac
23533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23534   (eval "$ac_compile") 2>conftest.er1
23535   ac_status=$?
23536   grep -v '^ *+' conftest.er1 >conftest.err
23537   rm -f conftest.er1
23538   cat conftest.err >&5
23539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540   (exit $ac_status); } && {
23541          test -z "$ac_c_werror_flag" ||
23542          test ! -s conftest.err
23543        } && test -s conftest.$ac_objext; then
23544   ac_cv_sizeof_signed_int=$ac_size
23545 else
23546   echo "$as_me: failed program was:" >&5
23547 sed 's/^/| /' conftest.$ac_ext >&5
23548
23549
23550 fi
23551
23552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23553    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
23554   done
23555
23556 fi
23557
23558
23559 signed=$ac_cv_sizeof_signed_int
23560 if test x$signed = x ; then
23561   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
23562 echo "$as_me: error: cannot determine a size for signed int" >&2;}
23563    { (exit 1); exit 1; }; }
23564 fi
23565 if test x$unspecif != x$signed ; then
23566   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
23567 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
23568    { (exit 1); exit 1; }; }
23569 fi
23570
23571     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
23572   echo $ECHO_N "(cached) $ECHO_C" >&6
23573 else
23574   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23575    cat >conftest.$ac_ext <<_ACEOF
23576 /* confdefs.h.  */
23577 _ACEOF
23578 cat confdefs.h >>conftest.$ac_ext
23579 cat >>conftest.$ac_ext <<_ACEOF
23580 /* end confdefs.h.  */
23581 #include "confdefs.h"
23582    #include <sys/types.h>
23583
23584
23585 int
23586 main ()
23587 {
23588 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
23589   ;
23590   return 0;
23591 }
23592 _ACEOF
23593 rm -f conftest.$ac_objext
23594 if { (ac_try="$ac_compile"
23595 case "(($ac_try" in
23596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23597   *) ac_try_echo=$ac_try;;
23598 esac
23599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23600   (eval "$ac_compile") 2>conftest.er1
23601   ac_status=$?
23602   grep -v '^ *+' conftest.er1 >conftest.err
23603   rm -f conftest.er1
23604   cat conftest.err >&5
23605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606   (exit $ac_status); } && {
23607          test -z "$ac_c_werror_flag" ||
23608          test ! -s conftest.err
23609        } && test -s conftest.$ac_objext; then
23610   ac_cv_sizeof_unsigned_int=$ac_size
23611 else
23612   echo "$as_me: failed program was:" >&5
23613 sed 's/^/| /' conftest.$ac_ext >&5
23614
23615
23616 fi
23617
23618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23619    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
23620   done
23621
23622 fi
23623
23624
23625 unsigned=$ac_cv_sizeof_unsigned_int
23626 if test x$unsigned = x ; then
23627   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
23628 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
23629    { (exit 1); exit 1; }; }
23630 fi
23631 if test x$unsigned != x$signed ; then
23632   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
23633 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
23634    { (exit 1); exit 1; }; }
23635 fi
23636
23637 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
23638 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
23639                    { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
23640 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
23641
23642  if test "${ac_cv_struct_boundary_int+set}" = set; then
23643   echo $ECHO_N "(cached) $ECHO_C" >&6
23644 else
23645   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23646    cat >conftest.$ac_ext <<_ACEOF
23647 /* confdefs.h.  */
23648 _ACEOF
23649 cat confdefs.h >>conftest.$ac_ext
23650 cat >>conftest.$ac_ext <<_ACEOF
23651 /* end confdefs.h.  */
23652 #include "confdefs.h"
23653      #include <sys/types.h>
23654      struct s { char c; int i; };
23655
23656 int
23657 main ()
23658 {
23659 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
23660   ;
23661   return 0;
23662 }
23663 _ACEOF
23664 rm -f conftest.$ac_objext
23665 if { (ac_try="$ac_compile"
23666 case "(($ac_try" in
23667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23668   *) ac_try_echo=$ac_try;;
23669 esac
23670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23671   (eval "$ac_compile") 2>conftest.er1
23672   ac_status=$?
23673   grep -v '^ *+' conftest.er1 >conftest.err
23674   rm -f conftest.er1
23675   cat conftest.err >&5
23676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677   (exit $ac_status); } && {
23678          test -z "$ac_c_werror_flag" ||
23679          test ! -s conftest.err
23680        } && test -s conftest.$ac_objext; then
23681   ac_cv_struct_boundary_int=$ac_size
23682 else
23683   echo "$as_me: failed program was:" >&5
23684 sed 's/^/| /' conftest.$ac_ext >&5
23685
23686
23687 fi
23688
23689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23690    if test x$ac_cv_struct_boundary_int != x ; then break; fi
23691   done
23692
23693 fi
23694
23695  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
23696 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
23697  if test x$ac_cv_struct_boundary_int = x ; then
23698    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
23699 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
23700    { (exit 1); exit 1; }; }
23701  fi
23702
23703 { echo "$as_me:$LINENO: checking size of long int" >&5
23704 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23705     if test "${ac_cv_sizeof_long_int+set}" = set; then
23706   echo $ECHO_N "(cached) $ECHO_C" >&6
23707 else
23708   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23709    cat >conftest.$ac_ext <<_ACEOF
23710 /* confdefs.h.  */
23711 _ACEOF
23712 cat confdefs.h >>conftest.$ac_ext
23713 cat >>conftest.$ac_ext <<_ACEOF
23714 /* end confdefs.h.  */
23715 #include "confdefs.h"
23716    #include <sys/types.h>
23717
23718
23719 int
23720 main ()
23721 {
23722 switch (0) case 0: case (sizeof (long int) == $ac_size):;
23723   ;
23724   return 0;
23725 }
23726 _ACEOF
23727 rm -f conftest.$ac_objext
23728 if { (ac_try="$ac_compile"
23729 case "(($ac_try" in
23730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23731   *) ac_try_echo=$ac_try;;
23732 esac
23733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23734   (eval "$ac_compile") 2>conftest.er1
23735   ac_status=$?
23736   grep -v '^ *+' conftest.er1 >conftest.err
23737   rm -f conftest.er1
23738   cat conftest.err >&5
23739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740   (exit $ac_status); } && {
23741          test -z "$ac_c_werror_flag" ||
23742          test ! -s conftest.err
23743        } && test -s conftest.$ac_objext; then
23744   ac_cv_sizeof_long_int=$ac_size
23745 else
23746   echo "$as_me: failed program was:" >&5
23747 sed 's/^/| /' conftest.$ac_ext >&5
23748
23749
23750 fi
23751
23752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23753    if test x$ac_cv_sizeof_long_int != x ; then break; fi
23754   done
23755
23756 fi
23757
23758
23759 unspecif=$ac_cv_sizeof_long_int
23760 if test x$unspecif = x ; then
23761   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
23762 echo "$as_me: error: cannot determine a size for long int" >&2;}
23763    { (exit 1); exit 1; }; }
23764 fi
23765
23766     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
23767   echo $ECHO_N "(cached) $ECHO_C" >&6
23768 else
23769   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23770    cat >conftest.$ac_ext <<_ACEOF
23771 /* confdefs.h.  */
23772 _ACEOF
23773 cat confdefs.h >>conftest.$ac_ext
23774 cat >>conftest.$ac_ext <<_ACEOF
23775 /* end confdefs.h.  */
23776 #include "confdefs.h"
23777    #include <sys/types.h>
23778
23779
23780 int
23781 main ()
23782 {
23783 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
23784   ;
23785   return 0;
23786 }
23787 _ACEOF
23788 rm -f conftest.$ac_objext
23789 if { (ac_try="$ac_compile"
23790 case "(($ac_try" in
23791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23792   *) ac_try_echo=$ac_try;;
23793 esac
23794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23795   (eval "$ac_compile") 2>conftest.er1
23796   ac_status=$?
23797   grep -v '^ *+' conftest.er1 >conftest.err
23798   rm -f conftest.er1
23799   cat conftest.err >&5
23800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801   (exit $ac_status); } && {
23802          test -z "$ac_c_werror_flag" ||
23803          test ! -s conftest.err
23804        } && test -s conftest.$ac_objext; then
23805   ac_cv_sizeof_signed_long_int=$ac_size
23806 else
23807   echo "$as_me: failed program was:" >&5
23808 sed 's/^/| /' conftest.$ac_ext >&5
23809
23810
23811 fi
23812
23813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23814    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
23815   done
23816
23817 fi
23818
23819
23820 signed=$ac_cv_sizeof_signed_long_int
23821 if test x$signed = x ; then
23822   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
23823 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
23824    { (exit 1); exit 1; }; }
23825 fi
23826 if test x$unspecif != x$signed ; then
23827   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
23828 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
23829    { (exit 1); exit 1; }; }
23830 fi
23831
23832     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
23833   echo $ECHO_N "(cached) $ECHO_C" >&6
23834 else
23835   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23836    cat >conftest.$ac_ext <<_ACEOF
23837 /* confdefs.h.  */
23838 _ACEOF
23839 cat confdefs.h >>conftest.$ac_ext
23840 cat >>conftest.$ac_ext <<_ACEOF
23841 /* end confdefs.h.  */
23842 #include "confdefs.h"
23843    #include <sys/types.h>
23844
23845
23846 int
23847 main ()
23848 {
23849 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23850   ;
23851   return 0;
23852 }
23853 _ACEOF
23854 rm -f conftest.$ac_objext
23855 if { (ac_try="$ac_compile"
23856 case "(($ac_try" in
23857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23858   *) ac_try_echo=$ac_try;;
23859 esac
23860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23861   (eval "$ac_compile") 2>conftest.er1
23862   ac_status=$?
23863   grep -v '^ *+' conftest.er1 >conftest.err
23864   rm -f conftest.er1
23865   cat conftest.err >&5
23866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867   (exit $ac_status); } && {
23868          test -z "$ac_c_werror_flag" ||
23869          test ! -s conftest.err
23870        } && test -s conftest.$ac_objext; then
23871   ac_cv_sizeof_unsigned_long_int=$ac_size
23872 else
23873   echo "$as_me: failed program was:" >&5
23874 sed 's/^/| /' conftest.$ac_ext >&5
23875
23876
23877 fi
23878
23879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23880    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23881   done
23882
23883 fi
23884
23885
23886 unsigned=$ac_cv_sizeof_unsigned_long_int
23887 if test x$unsigned = x ; then
23888   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23889 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23890    { (exit 1); exit 1; }; }
23891 fi
23892 if test x$unsigned != x$signed ; then
23893   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23894 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23895    { (exit 1); exit 1; }; }
23896 fi
23897
23898 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23899 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23900               { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23901 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23902
23903  if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23904   echo $ECHO_N "(cached) $ECHO_C" >&6
23905 else
23906   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23907    cat >conftest.$ac_ext <<_ACEOF
23908 /* confdefs.h.  */
23909 _ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h.  */
23913 #include "confdefs.h"
23914      #include <sys/types.h>
23915      struct s { char c; long int i; };
23916
23917 int
23918 main ()
23919 {
23920 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23921   ;
23922   return 0;
23923 }
23924 _ACEOF
23925 rm -f conftest.$ac_objext
23926 if { (ac_try="$ac_compile"
23927 case "(($ac_try" in
23928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23929   *) ac_try_echo=$ac_try;;
23930 esac
23931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23932   (eval "$ac_compile") 2>conftest.er1
23933   ac_status=$?
23934   grep -v '^ *+' conftest.er1 >conftest.err
23935   rm -f conftest.er1
23936   cat conftest.err >&5
23937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938   (exit $ac_status); } && {
23939          test -z "$ac_c_werror_flag" ||
23940          test ! -s conftest.err
23941        } && test -s conftest.$ac_objext; then
23942   ac_cv_struct_boundary_long_int=$ac_size
23943 else
23944   echo "$as_me: failed program was:" >&5
23945 sed 's/^/| /' conftest.$ac_ext >&5
23946
23947
23948 fi
23949
23950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23951    if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23952   done
23953
23954 fi
23955
23956  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23957 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23958  if test x$ac_cv_struct_boundary_long_int = x ; then
23959    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23960 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23961    { (exit 1); exit 1; }; }
23962  fi
23963
23964 { echo "$as_me:$LINENO: checking size of long long int" >&5
23965 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23966     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23967   echo $ECHO_N "(cached) $ECHO_C" >&6
23968 else
23969   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23970    cat >conftest.$ac_ext <<_ACEOF
23971 /* confdefs.h.  */
23972 _ACEOF
23973 cat confdefs.h >>conftest.$ac_ext
23974 cat >>conftest.$ac_ext <<_ACEOF
23975 /* end confdefs.h.  */
23976 #include "confdefs.h"
23977    #include <sys/types.h>
23978
23979
23980 int
23981 main ()
23982 {
23983 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
23984   ;
23985   return 0;
23986 }
23987 _ACEOF
23988 rm -f conftest.$ac_objext
23989 if { (ac_try="$ac_compile"
23990 case "(($ac_try" in
23991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23992   *) ac_try_echo=$ac_try;;
23993 esac
23994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23995   (eval "$ac_compile") 2>conftest.er1
23996   ac_status=$?
23997   grep -v '^ *+' conftest.er1 >conftest.err
23998   rm -f conftest.er1
23999   cat conftest.err >&5
24000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001   (exit $ac_status); } && {
24002          test -z "$ac_c_werror_flag" ||
24003          test ! -s conftest.err
24004        } && test -s conftest.$ac_objext; then
24005   ac_cv_sizeof_long_long_int=$ac_size
24006 else
24007   echo "$as_me: failed program was:" >&5
24008 sed 's/^/| /' conftest.$ac_ext >&5
24009
24010
24011 fi
24012
24013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24014    if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
24015   done
24016
24017 fi
24018
24019
24020 unspecif=$ac_cv_sizeof_long_long_int
24021 if test x$unspecif = x ; then
24022   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
24023 echo "$as_me: error: cannot determine a size for long long int" >&2;}
24024    { (exit 1); exit 1; }; }
24025 fi
24026
24027     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
24028   echo $ECHO_N "(cached) $ECHO_C" >&6
24029 else
24030   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
24031    cat >conftest.$ac_ext <<_ACEOF
24032 /* confdefs.h.  */
24033 _ACEOF
24034 cat confdefs.h >>conftest.$ac_ext
24035 cat >>conftest.$ac_ext <<_ACEOF
24036 /* end confdefs.h.  */
24037 #include "confdefs.h"
24038    #include <sys/types.h>
24039
24040
24041 int
24042 main ()
24043 {
24044 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
24045   ;
24046   return 0;
24047 }
24048 _ACEOF
24049 rm -f conftest.$ac_objext
24050 if { (ac_try="$ac_compile"
24051 case "(($ac_try" in
24052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24053   *) ac_try_echo=$ac_try;;
24054 esac
24055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24056   (eval "$ac_compile") 2>conftest.er1
24057   ac_status=$?
24058   grep -v '^ *+' conftest.er1 >conftest.err
24059   rm -f conftest.er1
24060   cat conftest.err >&5
24061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062   (exit $ac_status); } && {
24063          test -z "$ac_c_werror_flag" ||
24064          test ! -s conftest.err
24065        } && test -s conftest.$ac_objext; then
24066   ac_cv_sizeof_signed_long_long_int=$ac_size
24067 else
24068   echo "$as_me: failed program was:" >&5
24069 sed 's/^/| /' conftest.$ac_ext >&5
24070
24071
24072 fi
24073
24074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24075    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
24076   done
24077
24078 fi
24079
24080
24081 signed=$ac_cv_sizeof_signed_long_long_int
24082 if test x$signed = x ; then
24083   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
24084 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
24085    { (exit 1); exit 1; }; }
24086 fi
24087 if test x$unspecif != x$signed ; then
24088   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
24089 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
24090    { (exit 1); exit 1; }; }
24091 fi
24092
24093     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
24094   echo $ECHO_N "(cached) $ECHO_C" >&6
24095 else
24096   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
24097    cat >conftest.$ac_ext <<_ACEOF
24098 /* confdefs.h.  */
24099 _ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h.  */
24103 #include "confdefs.h"
24104    #include <sys/types.h>
24105
24106
24107 int
24108 main ()
24109 {
24110 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
24111   ;
24112   return 0;
24113 }
24114 _ACEOF
24115 rm -f conftest.$ac_objext
24116 if { (ac_try="$ac_compile"
24117 case "(($ac_try" in
24118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24119   *) ac_try_echo=$ac_try;;
24120 esac
24121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24122   (eval "$ac_compile") 2>conftest.er1
24123   ac_status=$?
24124   grep -v '^ *+' conftest.er1 >conftest.err
24125   rm -f conftest.er1
24126   cat conftest.err >&5
24127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128   (exit $ac_status); } && {
24129          test -z "$ac_c_werror_flag" ||
24130          test ! -s conftest.err
24131        } && test -s conftest.$ac_objext; then
24132   ac_cv_sizeof_unsigned_long_long_int=$ac_size
24133 else
24134   echo "$as_me: failed program was:" >&5
24135 sed 's/^/| /' conftest.$ac_ext >&5
24136
24137
24138 fi
24139
24140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24141    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
24142   done
24143
24144 fi
24145
24146
24147 unsigned=$ac_cv_sizeof_unsigned_long_long_int
24148 if test x$unsigned = x ; then
24149   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
24150 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
24151    { (exit 1); exit 1; }; }
24152 fi
24153 if test x$unsigned != x$signed ; then
24154   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
24155 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
24156    { (exit 1); exit 1; }; }
24157 fi
24158
24159 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
24160 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
24161          { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
24162 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
24163
24164  if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
24165   echo $ECHO_N "(cached) $ECHO_C" >&6
24166 else
24167   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
24168    cat >conftest.$ac_ext <<_ACEOF
24169 /* confdefs.h.  */
24170 _ACEOF
24171 cat confdefs.h >>conftest.$ac_ext
24172 cat >>conftest.$ac_ext <<_ACEOF
24173 /* end confdefs.h.  */
24174 #include "confdefs.h"
24175      #include <sys/types.h>
24176      struct s { char c; long long int i; };
24177
24178 int
24179 main ()
24180 {
24181 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
24182   ;
24183   return 0;
24184 }
24185 _ACEOF
24186 rm -f conftest.$ac_objext
24187 if { (ac_try="$ac_compile"
24188 case "(($ac_try" in
24189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24190   *) ac_try_echo=$ac_try;;
24191 esac
24192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24193   (eval "$ac_compile") 2>conftest.er1
24194   ac_status=$?
24195   grep -v '^ *+' conftest.er1 >conftest.err
24196   rm -f conftest.er1
24197   cat conftest.err >&5
24198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199   (exit $ac_status); } && {
24200          test -z "$ac_c_werror_flag" ||
24201          test ! -s conftest.err
24202        } && test -s conftest.$ac_objext; then
24203   ac_cv_struct_boundary_long_long_int=$ac_size
24204 else
24205   echo "$as_me: failed program was:" >&5
24206 sed 's/^/| /' conftest.$ac_ext >&5
24207
24208
24209 fi
24210
24211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24212    if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
24213   done
24214
24215 fi
24216
24217  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
24218 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
24219  if test x$ac_cv_struct_boundary_long_long_int = x ; then
24220    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
24221 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
24222    { (exit 1); exit 1; }; }
24223  fi
24224
24225
24226     { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
24227 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
24228
24229  if test "${ac_cv_struct_boundary_float+set}" = set; then
24230   echo $ECHO_N "(cached) $ECHO_C" >&6
24231 else
24232   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
24233    cat >conftest.$ac_ext <<_ACEOF
24234 /* confdefs.h.  */
24235 _ACEOF
24236 cat confdefs.h >>conftest.$ac_ext
24237 cat >>conftest.$ac_ext <<_ACEOF
24238 /* end confdefs.h.  */
24239 #include "confdefs.h"
24240      #include <sys/types.h>
24241      struct s { char c; float i; };
24242
24243 int
24244 main ()
24245 {
24246 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
24247   ;
24248   return 0;
24249 }
24250 _ACEOF
24251 rm -f conftest.$ac_objext
24252 if { (ac_try="$ac_compile"
24253 case "(($ac_try" in
24254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24255   *) ac_try_echo=$ac_try;;
24256 esac
24257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24258   (eval "$ac_compile") 2>conftest.er1
24259   ac_status=$?
24260   grep -v '^ *+' conftest.er1 >conftest.err
24261   rm -f conftest.er1
24262   cat conftest.err >&5
24263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264   (exit $ac_status); } && {
24265          test -z "$ac_c_werror_flag" ||
24266          test ! -s conftest.err
24267        } && test -s conftest.$ac_objext; then
24268   ac_cv_struct_boundary_float=$ac_size
24269 else
24270   echo "$as_me: failed program was:" >&5
24271 sed 's/^/| /' conftest.$ac_ext >&5
24272
24273
24274 fi
24275
24276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24277    if test x$ac_cv_struct_boundary_float != x ; then break; fi
24278   done
24279
24280 fi
24281
24282  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
24283 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
24284  if test x$ac_cv_struct_boundary_float = x ; then
24285    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
24286 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
24287    { (exit 1); exit 1; }; }
24288  fi
24289                { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
24290 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
24291
24292  if test "${ac_cv_struct_boundary_double+set}" = set; then
24293   echo $ECHO_N "(cached) $ECHO_C" >&6
24294 else
24295   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
24296    cat >conftest.$ac_ext <<_ACEOF
24297 /* confdefs.h.  */
24298 _ACEOF
24299 cat confdefs.h >>conftest.$ac_ext
24300 cat >>conftest.$ac_ext <<_ACEOF
24301 /* end confdefs.h.  */
24302 #include "confdefs.h"
24303      #include <sys/types.h>
24304      struct s { char c; double i; };
24305
24306 int
24307 main ()
24308 {
24309 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
24310   ;
24311   return 0;
24312 }
24313 _ACEOF
24314 rm -f conftest.$ac_objext
24315 if { (ac_try="$ac_compile"
24316 case "(($ac_try" in
24317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24318   *) ac_try_echo=$ac_try;;
24319 esac
24320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24321   (eval "$ac_compile") 2>conftest.er1
24322   ac_status=$?
24323   grep -v '^ *+' conftest.er1 >conftest.err
24324   rm -f conftest.er1
24325   cat conftest.err >&5
24326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327   (exit $ac_status); } && {
24328          test -z "$ac_c_werror_flag" ||
24329          test ! -s conftest.err
24330        } && test -s conftest.$ac_objext; then
24331   ac_cv_struct_boundary_double=$ac_size
24332 else
24333   echo "$as_me: failed program was:" >&5
24334 sed 's/^/| /' conftest.$ac_ext >&5
24335
24336
24337 fi
24338
24339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24340    if test x$ac_cv_struct_boundary_double != x ; then break; fi
24341   done
24342
24343 fi
24344
24345  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
24346 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
24347  if test x$ac_cv_struct_boundary_double = x ; then
24348    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
24349 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
24350    { (exit 1); exit 1; }; }
24351  fi
24352
24353
24354 { echo "$as_me:$LINENO: checking size of void *" >&5
24355 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
24356     if test "${ac_cv_sizeof_void_p+set}" = set; then
24357   echo $ECHO_N "(cached) $ECHO_C" >&6
24358 else
24359   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
24360    cat >conftest.$ac_ext <<_ACEOF
24361 /* confdefs.h.  */
24362 _ACEOF
24363 cat confdefs.h >>conftest.$ac_ext
24364 cat >>conftest.$ac_ext <<_ACEOF
24365 /* end confdefs.h.  */
24366 #include "confdefs.h"
24367    #include <sys/types.h>
24368
24369
24370 int
24371 main ()
24372 {
24373 switch (0) case 0: case (sizeof (void *) == $ac_size):;
24374   ;
24375   return 0;
24376 }
24377 _ACEOF
24378 rm -f conftest.$ac_objext
24379 if { (ac_try="$ac_compile"
24380 case "(($ac_try" in
24381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24382   *) ac_try_echo=$ac_try;;
24383 esac
24384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24385   (eval "$ac_compile") 2>conftest.er1
24386   ac_status=$?
24387   grep -v '^ *+' conftest.er1 >conftest.err
24388   rm -f conftest.er1
24389   cat conftest.err >&5
24390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24391   (exit $ac_status); } && {
24392          test -z "$ac_c_werror_flag" ||
24393          test ! -s conftest.err
24394        } && test -s conftest.$ac_objext; then
24395   ac_cv_sizeof_void_p=$ac_size
24396 else
24397   echo "$as_me: failed program was:" >&5
24398 sed 's/^/| /' conftest.$ac_ext >&5
24399
24400
24401 fi
24402
24403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24404    if test x$ac_cv_sizeof_void_p != x ; then break; fi
24405   done
24406
24407 fi
24408
24409
24410 if test x$ac_cv_sizeof_void_p = x ; then
24411   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
24412 echo "$as_me: error: cannot determine a size for void *" >&2;}
24413    { (exit 1); exit 1; }; }
24414 fi
24415 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24416 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
24417                  { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
24418 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
24419
24420  if test "${ac_cv_struct_boundary_void_p+set}" = set; then
24421   echo $ECHO_N "(cached) $ECHO_C" >&6
24422 else
24423   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
24424    cat >conftest.$ac_ext <<_ACEOF
24425 /* confdefs.h.  */
24426 _ACEOF
24427 cat confdefs.h >>conftest.$ac_ext
24428 cat >>conftest.$ac_ext <<_ACEOF
24429 /* end confdefs.h.  */
24430 #include "confdefs.h"
24431      #include <sys/types.h>
24432      struct s { char c; void * i; };
24433
24434 int
24435 main ()
24436 {
24437 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
24438   ;
24439   return 0;
24440 }
24441 _ACEOF
24442 rm -f conftest.$ac_objext
24443 if { (ac_try="$ac_compile"
24444 case "(($ac_try" in
24445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24446   *) ac_try_echo=$ac_try;;
24447 esac
24448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24449   (eval "$ac_compile") 2>conftest.er1
24450   ac_status=$?
24451   grep -v '^ *+' conftest.er1 >conftest.err
24452   rm -f conftest.er1
24453   cat conftest.err >&5
24454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455   (exit $ac_status); } && {
24456          test -z "$ac_c_werror_flag" ||
24457          test ! -s conftest.err
24458        } && test -s conftest.$ac_objext; then
24459   ac_cv_struct_boundary_void_p=$ac_size
24460 else
24461   echo "$as_me: failed program was:" >&5
24462 sed 's/^/| /' conftest.$ac_ext >&5
24463
24464
24465 fi
24466
24467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24468    if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
24469   done
24470
24471 fi
24472
24473  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
24474 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
24475  if test x$ac_cv_struct_boundary_void_p = x ; then
24476    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
24477 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
24478    { (exit 1); exit 1; }; }
24479  fi
24480
24481 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
24482 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
24483     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
24484   echo $ECHO_N "(cached) $ECHO_C" >&6
24485 else
24486   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
24487    cat >conftest.$ac_ext <<_ACEOF
24488 /* confdefs.h.  */
24489 _ACEOF
24490 cat confdefs.h >>conftest.$ac_ext
24491 cat >>conftest.$ac_ext <<_ACEOF
24492 /* end confdefs.h.  */
24493 #include "confdefs.h"
24494    #include <sys/types.h>
24495
24496
24497 int
24498 main ()
24499 {
24500 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
24501   ;
24502   return 0;
24503 }
24504 _ACEOF
24505 rm -f conftest.$ac_objext
24506 if { (ac_try="$ac_compile"
24507 case "(($ac_try" in
24508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24509   *) ac_try_echo=$ac_try;;
24510 esac
24511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24512   (eval "$ac_compile") 2>conftest.er1
24513   ac_status=$?
24514   grep -v '^ *+' conftest.er1 >conftest.err
24515   rm -f conftest.er1
24516   cat conftest.err >&5
24517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518   (exit $ac_status); } && {
24519          test -z "$ac_c_werror_flag" ||
24520          test ! -s conftest.err
24521        } && test -s conftest.$ac_objext; then
24522   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
24523 else
24524   echo "$as_me: failed program was:" >&5
24525 sed 's/^/| /' conftest.$ac_ext >&5
24526
24527
24528 fi
24529
24530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24531    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
24532   done
24533
24534 fi
24535
24536
24537 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
24538   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
24539 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
24540    { (exit 1); exit 1; }; }
24541 fi
24542 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
24543 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
24544
24545
24546
24547 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
24548 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
24549 if test x$endian = x1 ; then
24550   trace_endian=B
24551 else
24552   trace_endian=l
24553 fi
24554 gras_arch=unknown
24555 trace="$trace_endian"
24556
24557 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
24558
24559 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
24560 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
24561 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
24562 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
24563
24564 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
24565 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
24566
24567 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
24568
24569 # sizeof float/double are not tested since IEEE 754 is assumed.
24570 # Check README.IEEE for rational.
24571
24572 # The numbers after the _ in the arch name are the maximal packing boundary.
24573 # big32_2   means that all data are aligned on a 2 bytes boundary.              (ARM)
24574 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
24575 case $trace in
24576   l_C:1/1:_I:2/1:4/1:4/1:8/1:_P:4/1:4/1:_D:4/1:8/1:) gras_arch=0; gras_size=32; gras_arch_name=little32_1;;
24577   l_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=1; gras_size=32; gras_arch_name=little32_2;;
24578   l_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=2; gras_size=32; gras_arch_name=little32_4;;
24579   l_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=3; gras_size=32; gras_arch_name=little32_8;;
24580
24581   l_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=4; gras_size=64; gras_arch_name=little64;;
24582
24583   B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=5; gras_size=32; gras_arch_name=big32;;
24584   B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=6; gras_size=32; gras_arch_name=big32_8_4;;
24585   B_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=7; gras_size=32; gras_arch_name=big32_4;;
24586   B_C:1/1:_I:2/2:4/2:4/2:8/2:_P:4/2:4/2:_D:4/2:8/2:) gras_arch=8; gras_size=32; gras_arch_name=big32_2;;
24587
24588   B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=9; gras_size=64; gras_arch_name=big64;;
24589   B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/4:) gras_arch=10;gras_size=64; gras_arch_name=big64_8_4;;
24590 esac
24591 if test x$gras_arch = xunknown ; then
24592   { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
24593 echo "${ECHO_T}damnit ($trace)" >&6; }
24594   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
24595 Please report this architecture trace ($trace) and what it corresponds to." >&5
24596 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
24597 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
24598    { (exit 1); exit 1; }; }
24599 fi
24600 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
24601
24602 cat >>confdefs.h <<_ACEOF
24603 #define GRAS_THISARCH $gras_arch
24604 _ACEOF
24605
24606 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
24607 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
24608
24609  if test "$gras_size" = 32; then
24610   GRAS_ARCH_32_BITS_TRUE=
24611   GRAS_ARCH_32_BITS_FALSE='#'
24612 else
24613   GRAS_ARCH_32_BITS_TRUE='#'
24614   GRAS_ARCH_32_BITS_FALSE=
24615 fi
24616
24617
24618 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
24619 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
24620 ac_cv_sizeof_max=0
24621 for s in $ac_cv_sizeof_char \
24622          $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
24623          $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
24624          4 8; do
24625
24626   if test $ac_cv_sizeof_max -lt $s ; then
24627     ac_cv_sizeof_max=$s
24628   fi
24629 done
24630 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
24631 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
24632
24633 cat >>confdefs.h <<_ACEOF
24634 #define SIZEOF_MAX $ac_cv_sizeof_max
24635 _ACEOF
24636
24637
24638
24639 # Check architecture signature end
24640   { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
24641 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
24642    cat >conftest.$ac_ext <<_ACEOF
24643 /* confdefs.h.  */
24644 _ACEOF
24645 cat confdefs.h >>conftest.$ac_ext
24646 cat >>conftest.$ac_ext <<_ACEOF
24647 /* end confdefs.h.  */
24648 #include "confdefs.h"
24649         #include <sys/types.h>
24650         #include <stddef.h> /* offsetof() */
24651         struct s {char c; double d;};
24652
24653 int
24654 main ()
24655 {
24656 switch (0)
24657         case 0:
24658         case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
24659
24660   ;
24661   return 0;
24662 }
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   gras_struct_packed=yes
24682 else
24683   echo "$as_me: failed program was:" >&5
24684 sed 's/^/| /' conftest.$ac_ext >&5
24685
24686         gras_struct_packed=no
24687 fi
24688
24689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24690
24691    { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
24692 echo "${ECHO_T}$gras_struct_packed" >&6; }
24693    if test x$gras_struct_packed = "xyes" ; then
24694      { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
24695 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
24696    { (exit 1); exit 1; }; }
24697    fi
24698
24699    { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
24700 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
24701    cat >conftest.$ac_ext <<_ACEOF
24702 /* confdefs.h.  */
24703 _ACEOF
24704 cat confdefs.h >>conftest.$ac_ext
24705 cat >>conftest.$ac_ext <<_ACEOF
24706 /* end confdefs.h.  */
24707 #include "confdefs.h"
24708         #include <sys/types.h>
24709         #include <stddef.h> /* offsetof() */
24710         struct s {double d; int i; char c;};
24711
24712 int
24713 main ()
24714 {
24715 switch (0)
24716         case 0:
24717         case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24718
24719   ;
24720   return 0;
24721 }
24722 _ACEOF
24723 rm -f conftest.$ac_objext
24724 if { (ac_try="$ac_compile"
24725 case "(($ac_try" in
24726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24727   *) ac_try_echo=$ac_try;;
24728 esac
24729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24730   (eval "$ac_compile") 2>conftest.er1
24731   ac_status=$?
24732   grep -v '^ *+' conftest.er1 >conftest.err
24733   rm -f conftest.er1
24734   cat conftest.err >&5
24735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736   (exit $ac_status); } && {
24737          test -z "$ac_c_werror_flag" ||
24738          test ! -s conftest.err
24739        } && test -s conftest.$ac_objext; then
24740   gras_struct_compact=yes
24741 else
24742   echo "$as_me: failed program was:" >&5
24743 sed 's/^/| /' conftest.$ac_ext >&5
24744
24745         gras_struct_compact=no
24746 fi
24747
24748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24749
24750    { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
24751 echo "${ECHO_T}$gras_struct_compact" >&6; }
24752
24753    if test x$gras_struct_compact != xyes ; then
24754      { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
24755 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
24756    { (exit 1); exit 1; }; }
24757    fi
24758
24759 cat >>confdefs.h <<_ACEOF
24760 #define GRAS_STRUCT_COMPACT 1
24761 _ACEOF
24762
24763    { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
24764 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
24765
24766    cat >conftest.$ac_ext <<_ACEOF
24767 /* confdefs.h.  */
24768 _ACEOF
24769 cat confdefs.h >>conftest.$ac_ext
24770 cat >>conftest.$ac_ext <<_ACEOF
24771 /* end confdefs.h.  */
24772 #include "confdefs.h"
24773       #include <sys/types.h>
24774         #include <stddef.h> /* offsetof() */
24775         struct s { double d; int i; char c[6]; };
24776
24777 int
24778 main ()
24779 {
24780 switch (0)
24781       case 0:
24782       case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
24783
24784   ;
24785   return 0;
24786 }
24787 _ACEOF
24788 rm -f conftest.$ac_objext
24789 if { (ac_try="$ac_compile"
24790 case "(($ac_try" in
24791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24792   *) ac_try_echo=$ac_try;;
24793 esac
24794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24795   (eval "$ac_compile") 2>conftest.er1
24796   ac_status=$?
24797   grep -v '^ *+' conftest.er1 >conftest.err
24798   rm -f conftest.er1
24799   cat conftest.err >&5
24800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801   (exit $ac_status); } && {
24802          test -z "$ac_c_werror_flag" ||
24803          test ! -s conftest.err
24804        } && test -s conftest.$ac_objext; then
24805   gras_array_straddle_struct=yes
24806 else
24807   echo "$as_me: failed program was:" >&5
24808 sed 's/^/| /' conftest.$ac_ext >&5
24809
24810         gras_array_straddle_struct=no
24811 fi
24812
24813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24814
24815    { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
24816 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
24817
24818    if test x$gras_array_straddle_struct = xyes ; then
24819
24820 cat >>confdefs.h <<_ACEOF
24821 #define GRAS_ARRAY_STRADDLE_STRUCT 1
24822 _ACEOF
24823
24824    else
24825      { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
24826 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
24827    { (exit 1); exit 1; }; }
24828    fi
24829
24830
24831
24832
24833
24834   { echo "$as_me:$LINENO: result: " >&5
24835 echo "${ECHO_T}" >&6; }
24836   { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
24837 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
24838
24839
24840
24841
24842 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
24843 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24844 if test "${ac_cv_check_mcsc+set}" = set; then
24845   echo $ECHO_N "(cached) $ECHO_C" >&6
24846 else
24847
24848 if test "$cross_compiling" = yes; then
24849   ac_cv_check_mcsc=no
24850
24851 else
24852   cat >conftest.$ac_ext <<_ACEOF
24853 /* confdefs.h.  */
24854 _ACEOF
24855 cat confdefs.h >>conftest.$ac_ext
24856 cat >>conftest.$ac_ext <<_ACEOF
24857 /* end confdefs.h.  */
24858
24859
24860 #include <stdio.h>
24861 #include <stdlib.h>
24862 #include <ucontext.h>
24863
24864 ucontext_t uc_child;
24865 ucontext_t uc_main;
24866
24867 void child(void)
24868 {
24869     if (swapcontext(&uc_child, &uc_main) != 0)
24870         exit(2);
24871 }
24872
24873 int main(int argc, char *argv[])
24874 {
24875     FILE *fp;
24876     void *stack;
24877
24878     /* the default is that it fails */
24879     if ((fp = fopen("conftestval", "w")) == NULL)
24880         exit(3);
24881     fprintf(fp, "no\n");
24882     fclose(fp);
24883
24884     /* configure a child user-space context */
24885     if ((stack = malloc(64*1024)) == NULL)
24886         exit(4);
24887     if (getcontext(&uc_child) != 0)
24888         exit(5);
24889     uc_child.uc_link = NULL;
24890     uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24891     uc_child.uc_stack.ss_size = 32*1024;
24892     uc_child.uc_stack.ss_flags = 0;
24893     makecontext(&uc_child, child, 0);
24894
24895     /* switch into the user context */
24896     if (swapcontext(&uc_main, &uc_child) != 0)
24897         exit(6);
24898
24899     /* Fine, child came home */
24900     if ((fp = fopen("conftestval", "w")) == NULL)
24901         exit(7);
24902     fprintf(fp, "yes\n");
24903     fclose(fp);
24904
24905     /* die successfully */
24906     exit(0);
24907 }
24908
24909 _ACEOF
24910 rm -f conftest$ac_exeext
24911 if { (ac_try="$ac_link"
24912 case "(($ac_try" in
24913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24914   *) ac_try_echo=$ac_try;;
24915 esac
24916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24917   (eval "$ac_link") 2>&5
24918   ac_status=$?
24919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24921   { (case "(($ac_try" in
24922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24923   *) ac_try_echo=$ac_try;;
24924 esac
24925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24926   (eval "$ac_try") 2>&5
24927   ac_status=$?
24928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929   (exit $ac_status); }; }; then
24930   ac_cv_check_mcsc=`cat conftestval`
24931 else
24932   echo "$as_me: program exited with status $ac_status" >&5
24933 echo "$as_me: failed program was:" >&5
24934 sed 's/^/| /' conftest.$ac_ext >&5
24935
24936 ( exit $ac_status )
24937 ac_cv_check_mcsc=no
24938 fi
24939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24940 fi
24941
24942
24943 fi
24944 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24945 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24946 if test ".$ac_cv_check_mcsc" = .yes; then
24947     mcsc=yes
24948 else
24949     mcsc=no
24950 fi
24951
24952
24953
24954 for ac_header in pthread.h
24955 do
24956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24958   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24961   echo $ECHO_N "(cached) $ECHO_C" >&6
24962 fi
24963 ac_res=`eval echo '${'$as_ac_Header'}'`
24964                { echo "$as_me:$LINENO: result: $ac_res" >&5
24965 echo "${ECHO_T}$ac_res" >&6; }
24966 else
24967   # Is the header compilable?
24968 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24970 cat >conftest.$ac_ext <<_ACEOF
24971 /* confdefs.h.  */
24972 _ACEOF
24973 cat confdefs.h >>conftest.$ac_ext
24974 cat >>conftest.$ac_ext <<_ACEOF
24975 /* end confdefs.h.  */
24976 $ac_includes_default
24977 #include <$ac_header>
24978 _ACEOF
24979 rm -f conftest.$ac_objext
24980 if { (ac_try="$ac_compile"
24981 case "(($ac_try" in
24982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24983   *) ac_try_echo=$ac_try;;
24984 esac
24985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24986   (eval "$ac_compile") 2>conftest.er1
24987   ac_status=$?
24988   grep -v '^ *+' conftest.er1 >conftest.err
24989   rm -f conftest.er1
24990   cat conftest.err >&5
24991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992   (exit $ac_status); } && {
24993          test -z "$ac_c_werror_flag" ||
24994          test ! -s conftest.err
24995        } && test -s conftest.$ac_objext; then
24996   ac_header_compiler=yes
24997 else
24998   echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25000
25001         ac_header_compiler=no
25002 fi
25003
25004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25006 echo "${ECHO_T}$ac_header_compiler" >&6; }
25007
25008 # Is the header present?
25009 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25011 cat >conftest.$ac_ext <<_ACEOF
25012 /* confdefs.h.  */
25013 _ACEOF
25014 cat confdefs.h >>conftest.$ac_ext
25015 cat >>conftest.$ac_ext <<_ACEOF
25016 /* end confdefs.h.  */
25017 #include <$ac_header>
25018 _ACEOF
25019 if { (ac_try="$ac_cpp conftest.$ac_ext"
25020 case "(($ac_try" in
25021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25022   *) ac_try_echo=$ac_try;;
25023 esac
25024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25025   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25026   ac_status=$?
25027   grep -v '^ *+' conftest.er1 >conftest.err
25028   rm -f conftest.er1
25029   cat conftest.err >&5
25030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031   (exit $ac_status); } >/dev/null && {
25032          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25033          test ! -s conftest.err
25034        }; then
25035   ac_header_preproc=yes
25036 else
25037   echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25039
25040   ac_header_preproc=no
25041 fi
25042
25043 rm -f conftest.err conftest.$ac_ext
25044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25045 echo "${ECHO_T}$ac_header_preproc" >&6; }
25046
25047 # So?  What about this header?
25048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25049   yes:no: )
25050     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25054     ac_header_preproc=yes
25055     ;;
25056   no:yes:* )
25057     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25059     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25060 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25061     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25063     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25064 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25067     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25069     ( cat <<\_ASBOX
25070 ## -------------------------------------------------- ##
25071 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
25072 ## -------------------------------------------------- ##
25073 _ASBOX
25074      ) | sed "s/^/$as_me: WARNING:     /" >&2
25075     ;;
25076 esac
25077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25080   echo $ECHO_N "(cached) $ECHO_C" >&6
25081 else
25082   eval "$as_ac_Header=\$ac_header_preproc"
25083 fi
25084 ac_res=`eval echo '${'$as_ac_Header'}'`
25085                { echo "$as_me:$LINENO: result: $ac_res" >&5
25086 echo "${ECHO_T}$ac_res" >&6; }
25087
25088 fi
25089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25090   cat >>confdefs.h <<_ACEOF
25091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25092 _ACEOF
25093
25094 fi
25095
25096 done
25097
25098 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
25099 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
25100 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
25101   echo $ECHO_N "(cached) $ECHO_C" >&6
25102 else
25103   ac_check_lib_save_LIBS=$LIBS
25104 LIBS="-lpthread  $LIBS"
25105 cat >conftest.$ac_ext <<_ACEOF
25106 /* confdefs.h.  */
25107 _ACEOF
25108 cat confdefs.h >>conftest.$ac_ext
25109 cat >>conftest.$ac_ext <<_ACEOF
25110 /* end confdefs.h.  */
25111
25112 /* Override any GCC internal prototype to avoid an error.
25113    Use char because int might match the return type of a GCC
25114    builtin and then its argument prototype would still apply.  */
25115 #ifdef __cplusplus
25116 extern "C"
25117 #endif
25118 char pthread_create ();
25119 int
25120 main ()
25121 {
25122 return pthread_create ();
25123   ;
25124   return 0;
25125 }
25126 _ACEOF
25127 rm -f conftest.$ac_objext conftest$ac_exeext
25128 if { (ac_try="$ac_link"
25129 case "(($ac_try" in
25130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25131   *) ac_try_echo=$ac_try;;
25132 esac
25133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25134   (eval "$ac_link") 2>conftest.er1
25135   ac_status=$?
25136   grep -v '^ *+' conftest.er1 >conftest.err
25137   rm -f conftest.er1
25138   cat conftest.err >&5
25139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25140   (exit $ac_status); } && {
25141          test -z "$ac_c_werror_flag" ||
25142          test ! -s conftest.err
25143        } && test -s conftest$ac_exeext &&
25144        $as_test_x conftest$ac_exeext; then
25145   ac_cv_lib_pthread_pthread_create=yes
25146 else
25147   echo "$as_me: failed program was:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25149
25150         ac_cv_lib_pthread_pthread_create=no
25151 fi
25152
25153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25154       conftest$ac_exeext conftest.$ac_ext
25155 LIBS=$ac_check_lib_save_LIBS
25156 fi
25157 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
25158 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
25159 if test $ac_cv_lib_pthread_pthread_create = yes; then
25160   pthread=yes
25161 else
25162   pthread=no
25163 fi
25164
25165
25166 if test x$pthread = xyes ; then
25167   { echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5
25168 echo $ECHO_N "checking for sem_init in -lpthread... $ECHO_C" >&6; }
25169 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then
25170   echo $ECHO_N "(cached) $ECHO_C" >&6
25171 else
25172   ac_check_lib_save_LIBS=$LIBS
25173 LIBS="-lpthread  $LIBS"
25174 cat >conftest.$ac_ext <<_ACEOF
25175 /* confdefs.h.  */
25176 _ACEOF
25177 cat confdefs.h >>conftest.$ac_ext
25178 cat >>conftest.$ac_ext <<_ACEOF
25179 /* end confdefs.h.  */
25180
25181 /* Override any GCC internal prototype to avoid an error.
25182    Use char because int might match the return type of a GCC
25183    builtin and then its argument prototype would still apply.  */
25184 #ifdef __cplusplus
25185 extern "C"
25186 #endif
25187 char sem_init ();
25188 int
25189 main ()
25190 {
25191 return sem_init ();
25192   ;
25193   return 0;
25194 }
25195 _ACEOF
25196 rm -f conftest.$ac_objext conftest$ac_exeext
25197 if { (ac_try="$ac_link"
25198 case "(($ac_try" in
25199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25200   *) ac_try_echo=$ac_try;;
25201 esac
25202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25203   (eval "$ac_link") 2>conftest.er1
25204   ac_status=$?
25205   grep -v '^ *+' conftest.er1 >conftest.err
25206   rm -f conftest.er1
25207   cat conftest.err >&5
25208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209   (exit $ac_status); } && {
25210          test -z "$ac_c_werror_flag" ||
25211          test ! -s conftest.err
25212        } && test -s conftest$ac_exeext &&
25213        $as_test_x conftest$ac_exeext; then
25214   ac_cv_lib_pthread_sem_init=yes
25215 else
25216   echo "$as_me: failed program was:" >&5
25217 sed 's/^/| /' conftest.$ac_ext >&5
25218
25219         ac_cv_lib_pthread_sem_init=no
25220 fi
25221
25222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25223       conftest$ac_exeext conftest.$ac_ext
25224 LIBS=$ac_check_lib_save_LIBS
25225 fi
25226 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5
25227 echo "${ECHO_T}$ac_cv_lib_pthread_sem_init" >&6; }
25228 if test $ac_cv_lib_pthread_sem_init = yes; then
25229   HAVE_SEM_INIT=yes
25230 else
25231   HAVE_SEM_INIT=no
25232 fi
25233
25234   if test ${HAVE_SEM_INIT} = yes ; then
25235      { echo "$as_me:$LINENO: checking if sem_init is compilable" >&5
25236 echo $ECHO_N "checking if sem_init is compilable... $ECHO_C" >&6; }
25237      cat >conftest.$ac_ext <<_ACEOF
25238 /* confdefs.h.  */
25239 _ACEOF
25240 cat confdefs.h >>conftest.$ac_ext
25241 cat >>conftest.$ac_ext <<_ACEOF
25242 /* end confdefs.h.  */
25243 #include <semaphore.h>
25244 int
25245 main ()
25246 {
25247 sem_t s; sem_init(&s);
25248   ;
25249   return 0;
25250 }
25251 _ACEOF
25252 rm -f conftest.$ac_objext
25253 if { (ac_try="$ac_compile"
25254 case "(($ac_try" in
25255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25256   *) ac_try_echo=$ac_try;;
25257 esac
25258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25259   (eval "$ac_compile") 2>conftest.er1
25260   ac_status=$?
25261   grep -v '^ *+' conftest.er1 >conftest.err
25262   rm -f conftest.er1
25263   cat conftest.err >&5
25264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265   (exit $ac_status); } && {
25266          test -z "$ac_c_werror_flag" ||
25267          test ! -s conftest.err
25268        } && test -s conftest.$ac_objext; then
25269   HAVE_SEM_INIT=yes
25270 else
25271   echo "$as_me: failed program was:" >&5
25272 sed 's/^/| /' conftest.$ac_ext >&5
25273
25274         HAVE_SEM_INIT=no
25275 fi
25276
25277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25278      if test ${HAVE_SEM_INIT} = yes ; then
25279
25280 cat >>confdefs.h <<\_ACEOF
25281 #define HAVE_SEM_INIT 1
25282 _ACEOF
25283
25284         { echo "$as_me:$LINENO: result: yes" >&5
25285 echo "${ECHO_T}yes" >&6; }
25286      else
25287         { echo "$as_me:$LINENO: result: no" >&5
25288 echo "${ECHO_T}no" >&6; }
25289      fi
25290   fi
25291   { echo "$as_me:$LINENO: checking for sem_timedwait in -lpthread" >&5
25292 echo $ECHO_N "checking for sem_timedwait in -lpthread... $ECHO_C" >&6; }
25293 if test "${ac_cv_lib_pthread_sem_timedwait+set}" = set; then
25294   echo $ECHO_N "(cached) $ECHO_C" >&6
25295 else
25296   ac_check_lib_save_LIBS=$LIBS
25297 LIBS="-lpthread  $LIBS"
25298 cat >conftest.$ac_ext <<_ACEOF
25299 /* confdefs.h.  */
25300 _ACEOF
25301 cat confdefs.h >>conftest.$ac_ext
25302 cat >>conftest.$ac_ext <<_ACEOF
25303 /* end confdefs.h.  */
25304
25305 /* Override any GCC internal prototype to avoid an error.
25306    Use char because int might match the return type of a GCC
25307    builtin and then its argument prototype would still apply.  */
25308 #ifdef __cplusplus
25309 extern "C"
25310 #endif
25311 char sem_timedwait ();
25312 int
25313 main ()
25314 {
25315 return sem_timedwait ();
25316   ;
25317   return 0;
25318 }
25319 _ACEOF
25320 rm -f conftest.$ac_objext conftest$ac_exeext
25321 if { (ac_try="$ac_link"
25322 case "(($ac_try" in
25323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25324   *) ac_try_echo=$ac_try;;
25325 esac
25326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25327   (eval "$ac_link") 2>conftest.er1
25328   ac_status=$?
25329   grep -v '^ *+' conftest.er1 >conftest.err
25330   rm -f conftest.er1
25331   cat conftest.err >&5
25332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333   (exit $ac_status); } && {
25334          test -z "$ac_c_werror_flag" ||
25335          test ! -s conftest.err
25336        } && test -s conftest$ac_exeext &&
25337        $as_test_x conftest$ac_exeext; then
25338   ac_cv_lib_pthread_sem_timedwait=yes
25339 else
25340   echo "$as_me: failed program was:" >&5
25341 sed 's/^/| /' conftest.$ac_ext >&5
25342
25343         ac_cv_lib_pthread_sem_timedwait=no
25344 fi
25345
25346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25347       conftest$ac_exeext conftest.$ac_ext
25348 LIBS=$ac_check_lib_save_LIBS
25349 fi
25350 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_timedwait" >&5
25351 echo "${ECHO_T}$ac_cv_lib_pthread_sem_timedwait" >&6; }
25352 if test $ac_cv_lib_pthread_sem_timedwait = yes; then
25353   HAVE_SEM_TIMEDWAIT=yes
25354 else
25355   HAVE_SEM_TIMEDWAIT=no
25356 fi
25357
25358   if test ${HAVE_SEM_TIMEDWAIT} = yes ; then
25359      { echo "$as_me:$LINENO: checking if sem_timedwait is compilable" >&5
25360 echo $ECHO_N "checking if sem_timedwait is compilable... $ECHO_C" >&6; }
25361      cat >conftest.$ac_ext <<_ACEOF
25362 /* confdefs.h.  */
25363 _ACEOF
25364 cat confdefs.h >>conftest.$ac_ext
25365 cat >>conftest.$ac_ext <<_ACEOF
25366 /* end confdefs.h.  */
25367 #include <semaphore.h>
25368 int
25369 main ()
25370 {
25371 sem_t *s; const struct timespec * t; sem_timedwait(s, t);
25372   ;
25373   return 0;
25374 }
25375 _ACEOF
25376 rm -f conftest.$ac_objext
25377 if { (ac_try="$ac_compile"
25378 case "(($ac_try" in
25379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25380   *) ac_try_echo=$ac_try;;
25381 esac
25382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25383   (eval "$ac_compile") 2>conftest.er1
25384   ac_status=$?
25385   grep -v '^ *+' conftest.er1 >conftest.err
25386   rm -f conftest.er1
25387   cat conftest.err >&5
25388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389   (exit $ac_status); } && {
25390          test -z "$ac_c_werror_flag" ||
25391          test ! -s conftest.err
25392        } && test -s conftest.$ac_objext; then
25393   HAVE_SEM_TIMEDWAIT=yes
25394 else
25395   echo "$as_me: failed program was:" >&5
25396 sed 's/^/| /' conftest.$ac_ext >&5
25397
25398         HAVE_SEM_TIMEDWAIT=no
25399 fi
25400
25401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25402      if test ${HAVE_SEM_TIMEDWAIT} = yes ; then
25403
25404 cat >>confdefs.h <<\_ACEOF
25405 #define HAVE_SEM_TIMEDWAIT 1
25406 _ACEOF
25407
25408         { echo "$as_me:$LINENO: result: yes" >&5
25409 echo "${ECHO_T}yes" >&6; }
25410      else
25411         { echo "$as_me:$LINENO: result: no" >&5
25412 echo "${ECHO_T}no" >&6; }
25413      fi
25414   fi
25415
25416   { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock in -lpthread" >&5
25417 echo $ECHO_N "checking for pthread_mutex_timedlock in -lpthread... $ECHO_C" >&6; }
25418 if test "${ac_cv_lib_pthread_pthread_mutex_timedlock+set}" = set; then
25419   echo $ECHO_N "(cached) $ECHO_C" >&6
25420 else
25421   ac_check_lib_save_LIBS=$LIBS
25422 LIBS="-lpthread  $LIBS"
25423 cat >conftest.$ac_ext <<_ACEOF
25424 /* confdefs.h.  */
25425 _ACEOF
25426 cat confdefs.h >>conftest.$ac_ext
25427 cat >>conftest.$ac_ext <<_ACEOF
25428 /* end confdefs.h.  */
25429
25430 /* Override any GCC internal prototype to avoid an error.
25431    Use char because int might match the return type of a GCC
25432    builtin and then its argument prototype would still apply.  */
25433 #ifdef __cplusplus
25434 extern "C"
25435 #endif
25436 char pthread_mutex_timedlock ();
25437 int
25438 main ()
25439 {
25440 return pthread_mutex_timedlock ();
25441   ;
25442   return 0;
25443 }
25444 _ACEOF
25445 rm -f conftest.$ac_objext conftest$ac_exeext
25446 if { (ac_try="$ac_link"
25447 case "(($ac_try" in
25448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25449   *) ac_try_echo=$ac_try;;
25450 esac
25451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25452   (eval "$ac_link") 2>conftest.er1
25453   ac_status=$?
25454   grep -v '^ *+' conftest.er1 >conftest.err
25455   rm -f conftest.er1
25456   cat conftest.err >&5
25457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458   (exit $ac_status); } && {
25459          test -z "$ac_c_werror_flag" ||
25460          test ! -s conftest.err
25461        } && test -s conftest$ac_exeext &&
25462        $as_test_x conftest$ac_exeext; then
25463   ac_cv_lib_pthread_pthread_mutex_timedlock=yes
25464 else
25465   echo "$as_me: failed program was:" >&5
25466 sed 's/^/| /' conftest.$ac_ext >&5
25467
25468         ac_cv_lib_pthread_pthread_mutex_timedlock=no
25469 fi
25470
25471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25472       conftest$ac_exeext conftest.$ac_ext
25473 LIBS=$ac_check_lib_save_LIBS
25474 fi
25475 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_timedlock" >&5
25476 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_timedlock" >&6; }
25477 if test $ac_cv_lib_pthread_pthread_mutex_timedlock = yes; then
25478   HAVE_MUTEX_TIMEDLOCK=yes
25479 else
25480   HAVE_MUTEX_TIMEDLOCK=no
25481 fi
25482
25483   if test ${HAVE_MUTEX_TIMEDLOCK} = yes ; then
25484      { echo "$as_me:$LINENO: checking if pthread_mutex_timedlock is compilable" >&5
25485 echo $ECHO_N "checking if pthread_mutex_timedlock is compilable... $ECHO_C" >&6; }
25486      cat >conftest.$ac_ext <<_ACEOF
25487 /* confdefs.h.  */
25488 _ACEOF
25489 cat confdefs.h >>conftest.$ac_ext
25490 cat >>conftest.$ac_ext <<_ACEOF
25491 /* end confdefs.h.  */
25492 #include <pthread.h>
25493 int
25494 main ()
25495 {
25496 pthread_mutex_t s; const struct timespec t; sem_timedlock(&s, &t);
25497   ;
25498   return 0;
25499 }
25500 _ACEOF
25501 rm -f conftest.$ac_objext
25502 if { (ac_try="$ac_compile"
25503 case "(($ac_try" in
25504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25505   *) ac_try_echo=$ac_try;;
25506 esac
25507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25508   (eval "$ac_compile") 2>conftest.er1
25509   ac_status=$?
25510   grep -v '^ *+' conftest.er1 >conftest.err
25511   rm -f conftest.er1
25512   cat conftest.err >&5
25513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514   (exit $ac_status); } && {
25515          test -z "$ac_c_werror_flag" ||
25516          test ! -s conftest.err
25517        } && test -s conftest.$ac_objext; then
25518   HAVE_MUTEX_TIMEDLOCK=yes
25519 else
25520   echo "$as_me: failed program was:" >&5
25521 sed 's/^/| /' conftest.$ac_ext >&5
25522
25523         HAVE_MUTEX_TIMEDLOCK=no
25524 fi
25525
25526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25527      if test ${HAVE_MUTEX_TIMEDLOCK} = yes ; then
25528
25529 cat >>confdefs.h <<\_ACEOF
25530 #define HAVE_MUTEX_TIMEDLOCK 1
25531 _ACEOF
25532
25533         { echo "$as_me:$LINENO: result: yes" >&5
25534 echo "${ECHO_T}yes" >&6; }
25535      else
25536         { echo "$as_me:$LINENO: result: no" >&5
25537 echo "${ECHO_T}no" >&6; }
25538      fi
25539   fi
25540 fi
25541
25542
25543 if test ".$mcsc" = .yes; then
25544    # ucontext found
25545    mcsc=yes
25546 elif test ".$pthread" = .yes; then
25547    # ucontext not found, but pthread found
25548    pthread=yes
25549 else
25550     ac_header=windows.h
25551     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25552     if test `eval echo '${'$as_ac_Header'}'` = yes; then
25553       windows_context=yes
25554     else
25555       { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
25556 echo "$as_me: error: no appropriate backend found" >&2;}
25557    { (exit 1); exit 1; }; }
25558     fi
25559 fi
25560  if test x$windows_context = xyes; then
25561   IS_WINDOWS_TRUE=
25562   IS_WINDOWS_FALSE='#'
25563 else
25564   IS_WINDOWS_TRUE='#'
25565   IS_WINDOWS_FALSE=
25566 fi
25567
25568
25569
25570
25571 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
25572 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
25573
25574
25575 # Check whether --with-pthread was given.
25576 if test "${with_pthread+set}" = set; then
25577   withval=$with_pthread; with_context=pthread
25578 fi
25579
25580
25581 # Check whether --with-pthread was given.
25582 if test "${with_pthread+set}" = set; then
25583   withval=$with_pthread; with_context=pthread
25584 fi
25585
25586
25587
25588 # Check whether --with-context was given.
25589 if test "${with_context+set}" = set; then
25590   withval=$with_context;
25591 else
25592   with_context=auto
25593 fi
25594
25595
25596 if test "x$with_context$mcsc" = "xucontextno" ; then
25597   { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
25598 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
25599    { (exit 77); exit 77; }; }
25600 fi
25601
25602 case $with_context in
25603  ucontext) ;;
25604  pthread) ;;
25605  pthreads) ;;
25606  windows) ;;
25607  auto) with_context=ucontext;;
25608  *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
25609 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
25610    { (exit 1); exit 1; }; } ;;
25611 esac
25612
25613 if test "x$with_context" = "xucontext" ; then
25614   if test ".$mcsc" = .yes; then
25615     { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
25616 echo "${ECHO_T}found working ucontext. Great!" >&6; }
25617
25618 cat >>confdefs.h <<\_ACEOF
25619 #define CONTEXT_UCONTEXT 1
25620 _ACEOF
25621
25622   else
25623     if test ".$windows_context" = .yes ; then
25624       { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
25625 echo "${ECHO_T}use windows context portability layer." >&6; }
25626       with_context=windows
25627     else
25628       { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
25629 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
25630       with_context=pthread
25631     fi
25632   fi
25633 fi
25634
25635 if test "x$with_context" = "xpthread"; then
25636   if test x$pthread != xyes ; then # reuse previous checks
25637     { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
25638 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
25639    { (exit 1); exit 1; }; }
25640   fi
25641
25642 cat >>confdefs.h <<\_ACEOF
25643 #define CONTEXT_THREADS 1
25644 _ACEOF
25645
25646   { echo "$as_me:$LINENO: result: You have pthreads and requested for them. Fine." >&5
25647 echo "${ECHO_T}You have pthreads and requested for them. Fine." >&6; }
25648 fi
25649  if test "x$with_context" != xucontext; then
25650   CONTEXT_THREADS_TRUE=
25651   CONTEXT_THREADS_FALSE='#'
25652 else
25653   CONTEXT_THREADS_TRUE='#'
25654   CONTEXT_THREADS_FALSE=
25655 fi
25656
25657
25658
25659 if test "x$with_context" = "xucontext" ; then
25660   { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
25661 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
25662 if test "${ac_cv_check_stackgrowth+set}" = set; then
25663   echo $ECHO_N "(cached) $ECHO_C" >&6
25664 else
25665
25666 cross_compiling=no
25667 if test "$cross_compiling" = yes; then
25668   ac_cv_check_stackgrowth=down
25669
25670 else
25671   cat >conftest.$ac_ext <<_ACEOF
25672 /* confdefs.h.  */
25673 _ACEOF
25674 cat confdefs.h >>conftest.$ac_ext
25675 cat >>conftest.$ac_ext <<_ACEOF
25676 /* end confdefs.h.  */
25677
25678 #include <stdio.h>
25679 #include <stdlib.h>
25680 static int iterate = 10;
25681 static int growsdown(int *x)
25682 {
25683     auto int y;
25684     y = (x > &y);
25685     if (--iterate > 0)
25686         y = growsdown(&y);
25687     if (y != (x > &y))
25688         exit(1);
25689     return y;
25690 }
25691 int main(int argc, char *argv[])
25692 {
25693     FILE *f;
25694     auto int x;
25695     if ((f = fopen("conftestval", "w")) == NULL)
25696         exit(1);
25697     fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
25698     fclose(f);
25699     exit(0);
25700 }
25701
25702
25703 _ACEOF
25704 rm -f conftest$ac_exeext
25705 if { (ac_try="$ac_link"
25706 case "(($ac_try" in
25707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25708   *) ac_try_echo=$ac_try;;
25709 esac
25710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25711   (eval "$ac_link") 2>&5
25712   ac_status=$?
25713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25715   { (case "(($ac_try" in
25716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25717   *) ac_try_echo=$ac_try;;
25718 esac
25719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25720   (eval "$ac_try") 2>&5
25721   ac_status=$?
25722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723   (exit $ac_status); }; }; then
25724   ac_cv_check_stackgrowth=`cat conftestval`
25725 else
25726   echo "$as_me: program exited with status $ac_status" >&5
25727 echo "$as_me: failed program was:" >&5
25728 sed 's/^/| /' conftest.$ac_ext >&5
25729
25730 ( exit $ac_status )
25731 ac_cv_check_stackgrowth=down
25732 fi
25733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25734 fi
25735
25736
25737 fi
25738 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
25739 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
25740 if test ".$ac_cv_check_stackgrowth" = ".down"; then
25741     val="-1"
25742 else
25743     val="+1"
25744 fi
25745
25746 cat >>confdefs.h <<_ACEOF
25747 #define PTH_STACKGROWTH $val
25748 _ACEOF
25749
25750
25751   if test ".$ac_cv_check_stackgrowth" = ".down"; then
25752       PTH_STACK_GROWTH="down"
25753   else
25754       PTH_STACK_GROWTH="up"
25755   fi
25756
25757
25758
25759
25760
25761
25762 for ac_func in makecontext
25763 do
25764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25768   echo $ECHO_N "(cached) $ECHO_C" >&6
25769 else
25770   cat >conftest.$ac_ext <<_ACEOF
25771 /* confdefs.h.  */
25772 _ACEOF
25773 cat confdefs.h >>conftest.$ac_ext
25774 cat >>conftest.$ac_ext <<_ACEOF
25775 /* end confdefs.h.  */
25776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25778 #define $ac_func innocuous_$ac_func
25779
25780 /* System header to define __stub macros and hopefully few prototypes,
25781     which can conflict with char $ac_func (); below.
25782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25783     <limits.h> exists even on freestanding compilers.  */
25784
25785 #ifdef __STDC__
25786 # include <limits.h>
25787 #else
25788 # include <assert.h>
25789 #endif
25790
25791 #undef $ac_func
25792
25793 /* Override any GCC internal prototype to avoid an error.
25794    Use char because int might match the return type of a GCC
25795    builtin and then its argument prototype would still apply.  */
25796 #ifdef __cplusplus
25797 extern "C"
25798 #endif
25799 char $ac_func ();
25800 /* The GNU C library defines this for functions which it implements
25801     to always fail with ENOSYS.  Some functions are actually named
25802     something starting with __ and the normal name is an alias.  */
25803 #if defined __stub_$ac_func || defined __stub___$ac_func
25804 choke me
25805 #endif
25806
25807 int
25808 main ()
25809 {
25810 return $ac_func ();
25811   ;
25812   return 0;
25813 }
25814 _ACEOF
25815 rm -f conftest.$ac_objext conftest$ac_exeext
25816 if { (ac_try="$ac_link"
25817 case "(($ac_try" in
25818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25819   *) ac_try_echo=$ac_try;;
25820 esac
25821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25822   (eval "$ac_link") 2>conftest.er1
25823   ac_status=$?
25824   grep -v '^ *+' conftest.er1 >conftest.err
25825   rm -f conftest.er1
25826   cat conftest.err >&5
25827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828   (exit $ac_status); } && {
25829          test -z "$ac_c_werror_flag" ||
25830          test ! -s conftest.err
25831        } && test -s conftest$ac_exeext &&
25832        $as_test_x conftest$ac_exeext; then
25833   eval "$as_ac_var=yes"
25834 else
25835   echo "$as_me: failed program was:" >&5
25836 sed 's/^/| /' conftest.$ac_ext >&5
25837
25838         eval "$as_ac_var=no"
25839 fi
25840
25841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25842       conftest$ac_exeext conftest.$ac_ext
25843 fi
25844 ac_res=`eval echo '${'$as_ac_var'}'`
25845                { echo "$as_me:$LINENO: result: $ac_res" >&5
25846 echo "${ECHO_T}$ac_res" >&6; }
25847 if test `eval echo '${'$as_ac_var'}'` = yes; then
25848   cat >>confdefs.h <<_ACEOF
25849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25850 _ACEOF
25851
25852 fi
25853 done
25854
25855
25856 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
25857 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
25858 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
25859   echo $ECHO_N "(cached) $ECHO_C" >&6
25860 else
25861
25862 if test ".$ac_cv_func_makecontext" = .no; then
25863         ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
25864 else
25865         OCFLAGS="$CFLAGS"
25866     CFLAGS="$CFLAGS -DTEST_makecontext"
25867     cross_compiling=no
25868         if test "$cross_compiling" = yes; then
25869
25870 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25871
25872 else
25873   cat >conftest.$ac_ext <<_ACEOF
25874 /* confdefs.h.  */
25875 _ACEOF
25876 cat confdefs.h >>conftest.$ac_ext
25877 cat >>conftest.$ac_ext <<_ACEOF
25878 /* end confdefs.h.  */
25879
25880 #include <stdio.h>
25881 #include <stdlib.h>
25882 #include <string.h>
25883 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25884 #include <sys/types.h>
25885 #include <signal.h>
25886 #include <unistd.h>
25887 #endif
25888 #if defined(TEST_makecontext)
25889 #include <ucontext.h>
25890 #endif
25891 union alltypes {
25892     long   l;
25893     double d;
25894     void  *vp;
25895     void (*fp)(void);
25896     char  *cp;
25897 };
25898 static volatile char *handler_addr = (char *)0xDEAD;
25899 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25900 static volatile int handler_done = 0;
25901 void handler(int sig)
25902 {
25903     char garbage[1024];
25904     int i;
25905     auto int dummy;
25906     for (i = 0; i < 1024; i++)
25907         garbage[i] = 'X';
25908     handler_addr = (char *)&dummy;
25909     handler_done = 1;
25910     return;
25911 }
25912 #endif
25913 #if defined(TEST_makecontext)
25914 static ucontext_t uc_handler;
25915 static ucontext_t uc_main;
25916 void handler(void)
25917 {
25918     char garbage[1024];
25919     int i;
25920     auto int dummy;
25921     for (i = 0; i < 1024; i++)
25922         garbage[i] = 'X';
25923     handler_addr = (char *)&dummy;
25924     swapcontext(&uc_handler, &uc_main);
25925     return;
25926 }
25927 #endif
25928 int main(int argc, char *argv[])
25929 {
25930     FILE *f;
25931     char *skaddr;
25932     char *skbuf;
25933     int sksize;
25934     char result[1024];
25935     int i;
25936     sksize = 32768;
25937     skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
25938     if (skbuf == NULL)
25939         exit(1);
25940     for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
25941         skbuf[i] = 'A';
25942     skaddr = skbuf+sizeof(union alltypes);
25943 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
25944     {
25945         struct sigaction sa;
25946 #if defined(TEST_sigstack)
25947         struct sigstack ss;
25948 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
25949         stack_t ss;
25950 #else
25951         struct sigaltstack ss;
25952 #endif
25953 #if defined(TEST_sigstack)
25954         ss.ss_sp      = (void *)(skaddr + sksize);
25955         ss.ss_onstack = 0;
25956         if (sigstack(&ss, NULL) < 0)
25957             exit(1);
25958 #elif defined(TEST_sigaltstack)
25959         ss.ss_sp    = (void *)(skaddr + sksize);
25960         ss.ss_size  = sksize;
25961         ss.ss_flags = 0;
25962         if (sigaltstack(&ss, NULL) < 0)
25963             exit(1);
25964 #endif
25965         memset((void *)&sa, 0, sizeof(struct sigaction));
25966         sa.sa_handler = handler;
25967         sa.sa_flags = SA_ONSTACK;
25968         sigemptyset(&sa.sa_mask);
25969         sigaction(SIGUSR1, &sa, NULL);
25970         kill(getpid(), SIGUSR1);
25971         while (!handler_done)
25972             /*nop*/;
25973     }
25974 #endif
25975 #if defined(TEST_makecontext)
25976     {
25977         if (getcontext(&uc_handler) != 0)
25978             exit(1);
25979         uc_handler.uc_link = NULL;
25980         uc_handler.uc_stack.ss_sp    = (void *)(skaddr + sksize);
25981         uc_handler.uc_stack.ss_size  = sksize;
25982         uc_handler.uc_stack.ss_flags = 0;
25983         makecontext(&uc_handler, handler, 0);
25984         swapcontext(&uc_main, &uc_handler);
25985     }
25986 #endif
25987     if (handler_addr == (char *)0xDEAD)
25988         exit(1);
25989     if (handler_addr < skaddr+sksize) {
25990         /* stack was placed into lower area */
25991         if (*(skaddr+sksize) != 'A')
25992              sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
25993                      sizeof(union alltypes), sizeof(union alltypes));
25994         else
25995              strcpy(result, "(skaddr)+(sksize),(sksize)");
25996     }
25997     else {
25998         /* stack was placed into higher area */
25999         if (*(skaddr+sksize*2) != 'A')
26000             sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
26001         else
26002             strcpy(result, "(skaddr),(sksize)");
26003     }
26004     if ((f = fopen("conftestval", "w")) == NULL)
26005         exit(1);
26006     fprintf(f, "%s\n", result);
26007     fclose(f);
26008     exit(0);
26009 }
26010
26011 _ACEOF
26012 rm -f conftest$ac_exeext
26013 if { (ac_try="$ac_link"
26014 case "(($ac_try" in
26015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26016   *) ac_try_echo=$ac_try;;
26017 esac
26018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26019   (eval "$ac_link") 2>&5
26020   ac_status=$?
26021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26023   { (case "(($ac_try" in
26024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26025   *) ac_try_echo=$ac_try;;
26026 esac
26027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26028   (eval "$ac_try") 2>&5
26029   ac_status=$?
26030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031   (exit $ac_status); }; }; then
26032
26033 ac_cv_stacksetup_makecontext=`cat conftestval`
26034 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
26035
26036 else
26037   echo "$as_me: program exited with status $ac_status" >&5
26038 echo "$as_me: failed program was:" >&5
26039 sed 's/^/| /' conftest.$ac_ext >&5
26040
26041 ( exit $ac_status )
26042
26043 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
26044
26045 fi
26046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26047 fi
26048
26049
26050 CFLAGS="$OCFLAGS"
26051
26052 fi
26053 fi
26054 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
26055 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
26056 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
26057 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
26058 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
26059 { echo "$as_me:$LINENO: result: $type" >&5
26060 echo "${ECHO_T}$type" >&6; }
26061 if test ".$verbose" = .yes; then
26062     { echo "$as_me:$LINENO: result:   $pth_skaddr_makecontext" >&5
26063 echo "${ECHO_T}  $pth_skaddr_makecontext" >&6; }
26064 fi
26065
26066 if test ".$verbose" = .yes; then
26067     { echo "$as_me:$LINENO: result:   $pth_sksize_makecontext" >&5
26068 echo "${ECHO_T}  $pth_sksize_makecontext" >&6; }
26069 fi
26070
26071
26072 fi
26073
26074 #########################################
26075 ## Check for libraries extra-dependencies
26076 ##
26077
26078
26079   { echo "$as_me:$LINENO: result: " >&5
26080 echo "${ECHO_T}" >&6; }
26081   { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
26082 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
26083
26084
26085 SIMGRID_DEP=""
26086 SMPI_DEP=""
26087 GRAS_DEP=""
26088
26089 if test xpthread=xyes ; then
26090   # if the pthreads are usable
26091   if test "x$with_context" = "xpthread" ; then
26092     # if we use them to implement the xbt_context
26093     SIMGRID_DEP="-lpthread"
26094   fi
26095   # we need them in any case for the gras lib (which is multithreaded), but on windows (of course)
26096   if test "x$with_context" != "xwindows" ; then
26097     GRAS_DEP="-lpthread"
26098   fi
26099 fi
26100
26101 #########################################
26102 ## Build optional modules (gtnets)
26103 ##
26104 gtnets=no
26105
26106 # Check whether --with-gtnets was given.
26107 if test "${with_gtnets+set}" = set; then
26108   withval=$with_gtnets; gtnets_path="$withval"
26109 else
26110   gtnets_path="no"
26111 fi
26112
26113 if test "x$gtnets_path" = "xno" ; then
26114   { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
26115 echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
26116 else
26117   { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&5
26118 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. *****" >&6; }
26119   { echo "$as_me:$LINENO: checking for gtnets" >&5
26120 echo $ECHO_N "checking for gtnets... $ECHO_C" >&6; }
26121   ac_ext=cpp
26122 ac_cpp='$CXXCPP $CPPFLAGS'
26123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26126
26127   GTNETS_LDFLAGS="-lgtnets -L$gtnets_path/lib"
26128   GTNETS_CPPFLAGS="-I$gtnets_path/include -I$gtnets_path/include/gtnets"
26129   LDFLAGS_SAV=$LDFLAGS
26130   CPPFLAGS_SAV=$CPPFLAGS
26131   CPPFLAGS+=$GTNETS_CPPFLAGS
26132   LDFLAGS+=$GTNETS_LDFLAGS
26133   cat >conftest.$ac_ext <<_ACEOF
26134 /* confdefs.h.  */
26135 _ACEOF
26136 cat confdefs.h >>conftest.$ac_ext
26137 cat >>conftest.$ac_ext <<_ACEOF
26138 /* end confdefs.h.  */
26139  #include <simulator.h>
26140
26141 int
26142 main ()
26143 {
26144 Simulator s; s.RunUntilNextCompletion();
26145   ;
26146   return 0;
26147 }
26148 _ACEOF
26149 rm -f conftest.$ac_objext conftest$ac_exeext
26150 if { (ac_try="$ac_link"
26151 case "(($ac_try" in
26152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26153   *) ac_try_echo=$ac_try;;
26154 esac
26155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26156   (eval "$ac_link") 2>conftest.er1
26157   ac_status=$?
26158   grep -v '^ *+' conftest.er1 >conftest.err
26159   rm -f conftest.er1
26160   cat conftest.err >&5
26161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162   (exit $ac_status); } && {
26163          test -z "$ac_cxx_werror_flag" ||
26164          test ! -s conftest.err
26165        } && test -s conftest$ac_exeext &&
26166        $as_test_x conftest$ac_exeext; then
26167   gtnets=yes
26168 else
26169   echo "$as_me: failed program was:" >&5
26170 sed 's/^/| /' conftest.$ac_ext >&5
26171
26172         gtnets=no
26173 fi
26174
26175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26176       conftest$ac_exeext conftest.$ac_ext
26177   CPPFLAGS=$CPPFLAGS_SAV
26178   LDFLAGS=$LDFLAGS_SAV
26179   ac_ext=c
26180 ac_cpp='$CPP $CPPFLAGS'
26181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26184
26185
26186   if test "x$gtnets" = xyes ; then
26187     AM_CPPFLAGS="$AM_CPPFLAGS $GTNETS_CPPFLAGS"
26188     SIMGRID_DEP="$SIMGRID_DEP $GTNETS_LDFLAGS"
26189     { echo "$as_me:$LINENO: result: Found working gtnets library." >&5
26190 echo "${ECHO_T}Found working gtnets library." >&6; }
26191
26192 cat >>confdefs.h <<\_ACEOF
26193 #define HAVE_GTNETS 1
26194 _ACEOF
26195
26196   else
26197     { echo "$as_me:$LINENO: result: Could not find any working gtnets library or not patched version" >&5
26198 echo "${ECHO_T}Could not find any working gtnets library or not patched version" >&6; }
26199   fi
26200 fi
26201  if test "x$gtnets" != xno; then
26202   HAVE_GTNETS_TRUE=
26203   HAVE_GTNETS_FALSE='#'
26204 else
26205   HAVE_GTNETS_TRUE='#'
26206   HAVE_GTNETS_FALSE=
26207 fi
26208
26209
26210 #########################################
26211 ## Build optional modules (csdp)
26212 ##
26213 csdp=no
26214
26215 # Check whether --with-csdp was given.
26216 if test "${with_csdp+set}" = set; then
26217   withval=$with_csdp; csdp_path="$withval"
26218 else
26219   csdp_path="no"
26220 fi
26221
26222 if test "x$csdp_path" = "xno" ; then
26223   { echo "$as_me:$LINENO: result: Eventually you will come to csdp." >&5
26224 echo "${ECHO_T}Eventually you will come to csdp." >&6; }
26225 else
26226   { echo "$as_me:$LINENO: result: ***** You have decided to use csdp. Let's check whether it works or not *****" >&5
26227 echo "${ECHO_T}***** You have decided to use csdp. Let's check whether it works or not *****" >&6; }
26228   { echo "$as_me:$LINENO: checking for csdp" >&5
26229 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
26230   CSDP_LDFLAGS="-L$csdp_path/lib -lsdp -llapack -lblas -lm"
26231   CSDP_CPPFLAGS="-I$csdp_path/include -I$csdp_path/include/csdp"
26232
26233   { echo "$as_me:$LINENO: checking for easy_sdp in -lsdp" >&5
26234 echo $ECHO_N "checking for easy_sdp in -lsdp... $ECHO_C" >&6; }
26235 if test "${ac_cv_lib_sdp_easy_sdp+set}" = set; then
26236   echo $ECHO_N "(cached) $ECHO_C" >&6
26237 else
26238   ac_check_lib_save_LIBS=$LIBS
26239 LIBS="-lsdp $CSDP_LDFLAGS $LIBS"
26240 cat >conftest.$ac_ext <<_ACEOF
26241 /* confdefs.h.  */
26242 _ACEOF
26243 cat confdefs.h >>conftest.$ac_ext
26244 cat >>conftest.$ac_ext <<_ACEOF
26245 /* end confdefs.h.  */
26246
26247 /* Override any GCC internal prototype to avoid an error.
26248    Use char because int might match the return type of a GCC
26249    builtin and then its argument prototype would still apply.  */
26250 #ifdef __cplusplus
26251 extern "C"
26252 #endif
26253 char easy_sdp ();
26254 int
26255 main ()
26256 {
26257 return easy_sdp ();
26258   ;
26259   return 0;
26260 }
26261 _ACEOF
26262 rm -f conftest.$ac_objext conftest$ac_exeext
26263 if { (ac_try="$ac_link"
26264 case "(($ac_try" in
26265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26266   *) ac_try_echo=$ac_try;;
26267 esac
26268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26269   (eval "$ac_link") 2>conftest.er1
26270   ac_status=$?
26271   grep -v '^ *+' conftest.er1 >conftest.err
26272   rm -f conftest.er1
26273   cat conftest.err >&5
26274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275   (exit $ac_status); } && {
26276          test -z "$ac_c_werror_flag" ||
26277          test ! -s conftest.err
26278        } && test -s conftest$ac_exeext &&
26279        $as_test_x conftest$ac_exeext; then
26280   ac_cv_lib_sdp_easy_sdp=yes
26281 else
26282   echo "$as_me: failed program was:" >&5
26283 sed 's/^/| /' conftest.$ac_ext >&5
26284
26285         ac_cv_lib_sdp_easy_sdp=no
26286 fi
26287
26288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26289       conftest$ac_exeext conftest.$ac_ext
26290 LIBS=$ac_check_lib_save_LIBS
26291 fi
26292 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_easy_sdp" >&5
26293 echo "${ECHO_T}$ac_cv_lib_sdp_easy_sdp" >&6; }
26294 if test $ac_cv_lib_sdp_easy_sdp = yes; then
26295   csdp_lib=yes
26296 else
26297   csdp_lib=no
26298 fi
26299
26300
26301   CPPFLAGS_SAV=$CPPFLAGS
26302   CPPFLAGS+=$CSDP_CPPFLAGS
26303   if test "${ac_cv_header_declarations_h+set}" = set; then
26304   { echo "$as_me:$LINENO: checking for declarations.h" >&5
26305 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
26306 if test "${ac_cv_header_declarations_h+set}" = set; then
26307   echo $ECHO_N "(cached) $ECHO_C" >&6
26308 fi
26309 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
26310 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
26311 else
26312   # Is the header compilable?
26313 { echo "$as_me:$LINENO: checking declarations.h usability" >&5
26314 echo $ECHO_N "checking declarations.h usability... $ECHO_C" >&6; }
26315 cat >conftest.$ac_ext <<_ACEOF
26316 /* confdefs.h.  */
26317 _ACEOF
26318 cat confdefs.h >>conftest.$ac_ext
26319 cat >>conftest.$ac_ext <<_ACEOF
26320 /* end confdefs.h.  */
26321 $ac_includes_default
26322 #include <declarations.h>
26323 _ACEOF
26324 rm -f conftest.$ac_objext
26325 if { (ac_try="$ac_compile"
26326 case "(($ac_try" in
26327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26328   *) ac_try_echo=$ac_try;;
26329 esac
26330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26331   (eval "$ac_compile") 2>conftest.er1
26332   ac_status=$?
26333   grep -v '^ *+' conftest.er1 >conftest.err
26334   rm -f conftest.er1
26335   cat conftest.err >&5
26336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337   (exit $ac_status); } && {
26338          test -z "$ac_c_werror_flag" ||
26339          test ! -s conftest.err
26340        } && test -s conftest.$ac_objext; then
26341   ac_header_compiler=yes
26342 else
26343   echo "$as_me: failed program was:" >&5
26344 sed 's/^/| /' conftest.$ac_ext >&5
26345
26346         ac_header_compiler=no
26347 fi
26348
26349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26351 echo "${ECHO_T}$ac_header_compiler" >&6; }
26352
26353 # Is the header present?
26354 { echo "$as_me:$LINENO: checking declarations.h presence" >&5
26355 echo $ECHO_N "checking declarations.h presence... $ECHO_C" >&6; }
26356 cat >conftest.$ac_ext <<_ACEOF
26357 /* confdefs.h.  */
26358 _ACEOF
26359 cat confdefs.h >>conftest.$ac_ext
26360 cat >>conftest.$ac_ext <<_ACEOF
26361 /* end confdefs.h.  */
26362 #include <declarations.h>
26363 _ACEOF
26364 if { (ac_try="$ac_cpp conftest.$ac_ext"
26365 case "(($ac_try" in
26366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26367   *) ac_try_echo=$ac_try;;
26368 esac
26369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26370   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26371   ac_status=$?
26372   grep -v '^ *+' conftest.er1 >conftest.err
26373   rm -f conftest.er1
26374   cat conftest.err >&5
26375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376   (exit $ac_status); } >/dev/null && {
26377          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26378          test ! -s conftest.err
26379        }; then
26380   ac_header_preproc=yes
26381 else
26382   echo "$as_me: failed program was:" >&5
26383 sed 's/^/| /' conftest.$ac_ext >&5
26384
26385   ac_header_preproc=no
26386 fi
26387
26388 rm -f conftest.err conftest.$ac_ext
26389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26390 echo "${ECHO_T}$ac_header_preproc" >&6; }
26391
26392 # So?  What about this header?
26393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26394   yes:no: )
26395     { echo "$as_me:$LINENO: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&5
26396 echo "$as_me: WARNING: declarations.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26397     { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the compiler's result" >&5
26398 echo "$as_me: WARNING: declarations.h: proceeding with the compiler's result" >&2;}
26399     ac_header_preproc=yes
26400     ;;
26401   no:yes:* )
26402     { echo "$as_me:$LINENO: WARNING: declarations.h: present but cannot be compiled" >&5
26403 echo "$as_me: WARNING: declarations.h: present but cannot be compiled" >&2;}
26404     { echo "$as_me:$LINENO: WARNING: declarations.h:     check for missing prerequisite headers?" >&5
26405 echo "$as_me: WARNING: declarations.h:     check for missing prerequisite headers?" >&2;}
26406     { echo "$as_me:$LINENO: WARNING: declarations.h: see the Autoconf documentation" >&5
26407 echo "$as_me: WARNING: declarations.h: see the Autoconf documentation" >&2;}
26408     { echo "$as_me:$LINENO: WARNING: declarations.h:     section \"Present But Cannot Be Compiled\"" >&5
26409 echo "$as_me: WARNING: declarations.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26410     { echo "$as_me:$LINENO: WARNING: declarations.h: proceeding with the preprocessor's result" >&5
26411 echo "$as_me: WARNING: declarations.h: proceeding with the preprocessor's result" >&2;}
26412     { echo "$as_me:$LINENO: WARNING: declarations.h: in the future, the compiler will take precedence" >&5
26413 echo "$as_me: WARNING: declarations.h: in the future, the compiler will take precedence" >&2;}
26414     ( cat <<\_ASBOX
26415 ## -------------------------------------------------- ##
26416 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
26417 ## -------------------------------------------------- ##
26418 _ASBOX
26419      ) | sed "s/^/$as_me: WARNING:     /" >&2
26420     ;;
26421 esac
26422 { echo "$as_me:$LINENO: checking for declarations.h" >&5
26423 echo $ECHO_N "checking for declarations.h... $ECHO_C" >&6; }
26424 if test "${ac_cv_header_declarations_h+set}" = set; then
26425   echo $ECHO_N "(cached) $ECHO_C" >&6
26426 else
26427   ac_cv_header_declarations_h=$ac_header_preproc
26428 fi
26429 { echo "$as_me:$LINENO: result: $ac_cv_header_declarations_h" >&5
26430 echo "${ECHO_T}$ac_cv_header_declarations_h" >&6; }
26431
26432 fi
26433 if test $ac_cv_header_declarations_h = yes; then
26434   csdp_header=yes
26435 else
26436   csdp_header=no
26437 fi
26438
26439
26440   CPPFLAGS=$CPPFLAGS_SAV
26441
26442
26443
26444   if test "x$csdp_lib = xyes" -a "x$csdp_header = xyes" ; then
26445      csdp=yes;
26446   else
26447      csdp=no;
26448   fi
26449   if test "x$csdp" = xyes; then
26450     AM_CPPFLAGS="$AM_CPPFLAGS $CSDP_CPPFLAGS"
26451     SIMGRID_DEP="$SIMGRID_DEP $CSDP_LDFLAGS"
26452     { echo "$as_me:$LINENO: result: Found working sdp library." >&5
26453 echo "${ECHO_T}Found working sdp library." >&6; }
26454
26455 cat >>confdefs.h <<\_ACEOF
26456 #define HAVE_SDP 1
26457 _ACEOF
26458
26459   else
26460     { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
26461 echo "${ECHO_T}Could not find any working sdp library." >&6; }
26462   fi;
26463 fi
26464  if test x$csdp != xno; then
26465   HAVE_SDP_TRUE=
26466   HAVE_SDP_FALSE='#'
26467 else
26468   HAVE_SDP_TRUE='#'
26469   HAVE_SDP_FALSE=
26470 fi
26471
26472
26473
26474
26475
26476 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26477 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
26478 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26479   echo $ECHO_N "(cached) $ECHO_C" >&6
26480 else
26481   ac_check_lib_save_LIBS=$LIBS
26482 LIBS="-lnsl  $LIBS"
26483 cat >conftest.$ac_ext <<_ACEOF
26484 /* confdefs.h.  */
26485 _ACEOF
26486 cat confdefs.h >>conftest.$ac_ext
26487 cat >>conftest.$ac_ext <<_ACEOF
26488 /* end confdefs.h.  */
26489
26490 /* Override any GCC internal prototype to avoid an error.
26491    Use char because int might match the return type of a GCC
26492    builtin and then its argument prototype would still apply.  */
26493 #ifdef __cplusplus
26494 extern "C"
26495 #endif
26496 char gethostbyname ();
26497 int
26498 main ()
26499 {
26500 return gethostbyname ();
26501   ;
26502   return 0;
26503 }
26504 _ACEOF
26505 rm -f conftest.$ac_objext conftest$ac_exeext
26506 if { (ac_try="$ac_link"
26507 case "(($ac_try" in
26508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26509   *) ac_try_echo=$ac_try;;
26510 esac
26511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26512   (eval "$ac_link") 2>conftest.er1
26513   ac_status=$?
26514   grep -v '^ *+' conftest.er1 >conftest.err
26515   rm -f conftest.er1
26516   cat conftest.err >&5
26517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518   (exit $ac_status); } && {
26519          test -z "$ac_c_werror_flag" ||
26520          test ! -s conftest.err
26521        } && test -s conftest$ac_exeext &&
26522        $as_test_x conftest$ac_exeext; then
26523   ac_cv_lib_nsl_gethostbyname=yes
26524 else
26525   echo "$as_me: failed program was:" >&5
26526 sed 's/^/| /' conftest.$ac_ext >&5
26527
26528         ac_cv_lib_nsl_gethostbyname=no
26529 fi
26530
26531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26532       conftest$ac_exeext conftest.$ac_ext
26533 LIBS=$ac_check_lib_save_LIBS
26534 fi
26535 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26536 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
26537 if test $ac_cv_lib_nsl_gethostbyname = yes; then
26538   GRAS_DEP="$GRAS_DEP -lnsl"
26539 fi
26540
26541 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26542 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
26543 if test "${ac_cv_lib_socket_connect+set}" = set; then
26544   echo $ECHO_N "(cached) $ECHO_C" >&6
26545 else
26546   ac_check_lib_save_LIBS=$LIBS
26547 LIBS="-lsocket  $LIBS"
26548 cat >conftest.$ac_ext <<_ACEOF
26549 /* confdefs.h.  */
26550 _ACEOF
26551 cat confdefs.h >>conftest.$ac_ext
26552 cat >>conftest.$ac_ext <<_ACEOF
26553 /* end confdefs.h.  */
26554
26555 /* Override any GCC internal prototype to avoid an error.
26556    Use char because int might match the return type of a GCC
26557    builtin and then its argument prototype would still apply.  */
26558 #ifdef __cplusplus
26559 extern "C"
26560 #endif
26561 char connect ();
26562 int
26563 main ()
26564 {
26565 return connect ();
26566   ;
26567   return 0;
26568 }
26569 _ACEOF
26570 rm -f conftest.$ac_objext conftest$ac_exeext
26571 if { (ac_try="$ac_link"
26572 case "(($ac_try" in
26573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26574   *) ac_try_echo=$ac_try;;
26575 esac
26576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26577   (eval "$ac_link") 2>conftest.er1
26578   ac_status=$?
26579   grep -v '^ *+' conftest.er1 >conftest.err
26580   rm -f conftest.er1
26581   cat conftest.err >&5
26582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583   (exit $ac_status); } && {
26584          test -z "$ac_c_werror_flag" ||
26585          test ! -s conftest.err
26586        } && test -s conftest$ac_exeext &&
26587        $as_test_x conftest$ac_exeext; then
26588   ac_cv_lib_socket_connect=yes
26589 else
26590   echo "$as_me: failed program was:" >&5
26591 sed 's/^/| /' conftest.$ac_ext >&5
26592
26593         ac_cv_lib_socket_connect=no
26594 fi
26595
26596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26597       conftest$ac_exeext conftest.$ac_ext
26598 LIBS=$ac_check_lib_save_LIBS
26599 fi
26600 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26601 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
26602 if test $ac_cv_lib_socket_connect = yes; then
26603   GRAS_DEP="$GRAS_DEP -lsocket"
26604 fi
26605
26606
26607 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
26608 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
26609 case $host_os in
26610   *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
26611             AM_CPPFLAGS="$AM_CPPFLAGS -DDLL_EXPORT"
26612             cat >>confdefs.h <<\_ACEOF
26613 #define CONTEXT_THREADS 1
26614 _ACEOF
26615 ;;
26616 esac
26617
26618
26619
26620 if test "x$GRAS_DEP" = x; then
26621    { echo "$as_me:$LINENO: result: none" >&5
26622 echo "${ECHO_T}none" >&6; }
26623 else
26624    { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
26625 echo "${ECHO_T}$GRAS_DEP" >&6; }
26626 fi
26627
26628
26629 ##############################################
26630 ## Enhance maintainer mode and SUBST variables
26631 ## (must be placed after any compilation tests since our overprotective flags
26632 ##  let some tests fail)
26633
26634 # Check whether we are doing a regular build or a GRAMINE (minimal) one
26635 # Next line is modified by sed when building gramine source tree
26636 gramine_mode=no
26637 if test x$gramine_mode = xyes
26638 then
26639   USE_MAINTAINER_MODE=no
26640 fi
26641  if test x$gramine_mode != xno; then
26642   GRAMINE_MODE_TRUE=
26643   GRAMINE_MODE_FALSE='#'
26644 else
26645   GRAMINE_MODE_TRUE='#'
26646   GRAMINE_MODE_FALSE=
26647 fi
26648
26649
26650
26651 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
26652 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
26653     # Check whether --enable-maintainer-mode was given.
26654 if test "${enable_maintainer_mode+set}" = set; then
26655   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
26656 else
26657   USE_MAINTAINER_MODE=no
26658 fi
26659
26660   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
26661 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
26662    if test $USE_MAINTAINER_MODE = yes; then
26663   MAINTAINER_MODE_TRUE=
26664   MAINTAINER_MODE_FALSE='#'
26665 else
26666   MAINTAINER_MODE_TRUE='#'
26667   MAINTAINER_MODE_FALSE=
26668 fi
26669
26670   MAINT=$MAINTAINER_MODE_TRUE
26671
26672
26673 if test x$USE_MAINTAINER_MODE = xyes
26674 then
26675    # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
26676    enable_compile_warnings=yes
26677 fi
26678
26679   # Check whether --enable-compile-warnings was given.
26680 if test "${enable_compile_warnings+set}" = set; then
26681   enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
26682 else
26683   enable_compile_warnings=no
26684 fi
26685
26686
26687   # Check whether --enable-compile-optimizations was given.
26688 if test "${enable_compile_optimizations+set}" = set; then
26689   enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
26690 else
26691   enable_compile_optimizations=auto
26692 fi
26693
26694
26695     # AC PROG CC tests whether -g is accepted.
26696     # Cool, but it also tries to set -O2 and -g.
26697     # I don't want it with gcc, but -O3 and -g2, and optimization only when asked by user
26698     case $CC in
26699       *gcc)
26700       if test "$CFLAGS" = "-g -O2" ; then
26701         CFLAGS="-g3"
26702       fi
26703       if test "$CXXFLAGS" = "-g -O2" ; then
26704         CXXFLAGS="-g3"
26705       fi
26706       if test "$GCJFLAGS" = "-g -O2" ; then
26707         CXXFLAGS="-g3"
26708       fi;;
26709     esac
26710
26711   if test "x$enable_compile_warnings" = "xyes" ; then
26712     { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
26713 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
26714     warnCFLAGS=
26715     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
26716       case " $CFLAGS " in
26717       *-Wall*) ;;
26718       *) warnCFLAGS="-Wall -Wunused" ;;
26719       esac
26720
26721       ## -W is not all that useful.  And it cannot be controlled
26722       ## with individual -Wno-xxx flags, unlike -Wall
26723
26724       ## -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
26725       ## -Wshadow chokes on try{ try{} } constructs
26726       if test "x$enable_compile_warnings" = "xyes"; then
26727         warnCFLAGS=`echo $warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations \
26728         -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
26729         -Wno-unused-function  -Wno-strict-aliasing  \
26730         -Werror \
26731         | sed 's/ +/ /g'`
26732         # -Wno-unused-variable  -Wno-unused-label
26733       fi
26734     fi
26735     { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
26736 echo "${ECHO_T}$warnCFLAGS" >&6; }
26737     # placed before since gcc remembers the last one on conflict
26738     CFLAGS="$warnCFLAGS $CFLAGS"
26739   fi
26740
26741   if test "x$enable_compile_optimizations" = "xyes" ||
26742      test "x$enable_compile_optimizations" = "xauto" ; then
26743     { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
26744 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
26745     optCFLAGS=
26746     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
26747         case " $CFLAGS " in
26748         *-O*) ;;
26749         *) optCFLAGS="$optCFLAGS -O3" ;;
26750         esac
26751         optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
26752
26753         GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
26754         GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
26755         if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" == "x3" ; then
26756           # avoid gcc bug #12828, which apeared in 3.x branch and is fixed in 3.4.0
26757           # but the check would be too complicated to get 3.4.
26758           # Instead, rule out any 3.x compiler.
26759
26760           # Note that the flag didn't exist before gcc 3.0
26761           optCFLAGS="$optCFLAGS -fno-loop-optimize"
26762         fi
26763             fi
26764     { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
26765 echo "${ECHO_T}$optCFLAGS" >&6; }
26766     # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
26767     if test "x$cflags_set" != "xyes" ; then
26768       CFLAGS="$optCFLAGS $CFLAGS"
26769     fi
26770   fi
26771
26772   if test x$lt_cv_prog_gnu_ld = xyes ; then
26773     LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
26774   else
26775     LD_DYNAMIC_FLAGS=
26776   fi
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786
26787
26788
26789
26790 ##############################################
26791 ## Specific mode for build daemons.
26792 ## (they compile the SVN without having the autotools installed)
26793 # Check whether --enable-botbuild was given.
26794 if test "${enable_botbuild+set}" = set; then
26795   enableval=$enable_botbuild; botbuild=$enableval
26796 else
26797   botbuild=no
26798 fi
26799
26800  if test x$botbuild != xno; then
26801   BOTBUILD_MODE_TRUE=
26802   BOTBUILD_MODE_FALSE='#'
26803 else
26804   BOTBUILD_MODE_TRUE='#'
26805   BOTBUILD_MODE_FALSE=
26806 fi
26807
26808
26809 if test -e .svn && test x$USE_MAINTAINER_MODE != xyes && test x$botbuild != xyes ; then
26810   echo "ERROR: "
26811   echo "ERROR: You have to enable the maintainer mode to compile the SVN."
26812   echo "ERROR: For this, just call configure this way:"
26813   echo "ERROR:"
26814   echo "ERROR: ./configure '--enable-maintainer-mode' $ac_configure_args"
26815   echo "ERROR:"
26816   exit 1
26817 fi
26818
26819
26820
26821   { echo "$as_me:$LINENO: result: " >&5
26822 echo "${ECHO_T}" >&6; }
26823   { echo "$as_me:$LINENO: result: ${T_MD}Check for Java bindings...${T_ME}" >&5
26824 echo "${ECHO_T}${T_MD}Check for Java bindings...${T_ME}" >&6; }
26825
26826 # Java cruft
26827 # Check whether --enable-java was given.
26828 if test "${enable_java+set}" = set; then
26829   enableval=$enable_java; disable_java=$enableval
26830 else
26831   disable_java=yes
26832 fi
26833
26834 if test "x$disable_java" != "xyes" ; then
26835    use_java="disabled by user"
26836 else
26837   # Extract the first word of "javac", so it can be a program name with args.
26838 set dummy javac; ac_word=$2
26839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26841 if test "${ac_cv_path_JAVAC+set}" = set; then
26842   echo $ECHO_N "(cached) $ECHO_C" >&6
26843 else
26844   case $JAVAC in
26845   [\\/]* | ?:[\\/]*)
26846   ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
26847   ;;
26848   *)
26849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26850 for as_dir in $PATH
26851 do
26852   IFS=$as_save_IFS
26853   test -z "$as_dir" && as_dir=.
26854   for ac_exec_ext in '' $ac_executable_extensions; do
26855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26856     ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
26857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26858     break 2
26859   fi
26860 done
26861 done
26862 IFS=$as_save_IFS
26863
26864   test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="`which javac`"
26865   ;;
26866 esac
26867 fi
26868 JAVAC=$ac_cv_path_JAVAC
26869 if test -n "$JAVAC"; then
26870   { echo "$as_me:$LINENO: result: $JAVAC" >&5
26871 echo "${ECHO_T}$JAVAC" >&6; }
26872 else
26873   { echo "$as_me:$LINENO: result: no" >&5
26874 echo "${ECHO_T}no" >&6; }
26875 fi
26876
26877
26878   # Extract the first word of "java ", so it can be a program name with args.
26879 set dummy java ; ac_word=$2
26880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26882 if test "${ac_cv_path_JAVA+set}" = set; then
26883   echo $ECHO_N "(cached) $ECHO_C" >&6
26884 else
26885   case $JAVA in
26886   [\\/]* | ?:[\\/]*)
26887   ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
26888   ;;
26889   *)
26890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26891 for as_dir in $PATH
26892 do
26893   IFS=$as_save_IFS
26894   test -z "$as_dir" && as_dir=.
26895   for ac_exec_ext in '' $ac_executable_extensions; do
26896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26897     ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
26898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26899     break 2
26900   fi
26901 done
26902 done
26903 IFS=$as_save_IFS
26904
26905   test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="`which java`"
26906   ;;
26907 esac
26908 fi
26909 JAVA=$ac_cv_path_JAVA
26910 if test -n "$JAVA"; then
26911   { echo "$as_me:$LINENO: result: $JAVA" >&5
26912 echo "${ECHO_T}$JAVA" >&6; }
26913 else
26914   { echo "$as_me:$LINENO: result: no" >&5
26915 echo "${ECHO_T}no" >&6; }
26916 fi
26917
26918
26919   # Extract the first word of "jar  ", so it can be a program name with args.
26920 set dummy jar  ; ac_word=$2
26921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26923 if test "${ac_cv_path_JAR+set}" = set; then
26924   echo $ECHO_N "(cached) $ECHO_C" >&6
26925 else
26926   case $JAR in
26927   [\\/]* | ?:[\\/]*)
26928   ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
26929   ;;
26930   *)
26931   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26932 for as_dir in $PATH
26933 do
26934   IFS=$as_save_IFS
26935   test -z "$as_dir" && as_dir=.
26936   for ac_exec_ext in '' $ac_executable_extensions; do
26937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26938     ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
26939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26940     break 2
26941   fi
26942 done
26943 done
26944 IFS=$as_save_IFS
26945
26946   test -z "$ac_cv_path_JAR" && ac_cv_path_JAR="`which jar`"
26947   ;;
26948 esac
26949 fi
26950 JAR=$ac_cv_path_JAR
26951 if test -n "$JAR"; then
26952   { echo "$as_me:$LINENO: result: $JAR" >&5
26953 echo "${ECHO_T}$JAR" >&6; }
26954 else
26955   { echo "$as_me:$LINENO: result: no" >&5
26956 echo "${ECHO_T}no" >&6; }
26957 fi
26958
26959
26960
26961 for ac_header in jni.h
26962 do
26963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26965   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26968   echo $ECHO_N "(cached) $ECHO_C" >&6
26969 fi
26970 ac_res=`eval echo '${'$as_ac_Header'}'`
26971                { echo "$as_me:$LINENO: result: $ac_res" >&5
26972 echo "${ECHO_T}$ac_res" >&6; }
26973 else
26974   # Is the header compilable?
26975 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26977 cat >conftest.$ac_ext <<_ACEOF
26978 /* confdefs.h.  */
26979 _ACEOF
26980 cat confdefs.h >>conftest.$ac_ext
26981 cat >>conftest.$ac_ext <<_ACEOF
26982 /* end confdefs.h.  */
26983 $ac_includes_default
26984 #include <$ac_header>
26985 _ACEOF
26986 rm -f conftest.$ac_objext
26987 if { (ac_try="$ac_compile"
26988 case "(($ac_try" in
26989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26990   *) ac_try_echo=$ac_try;;
26991 esac
26992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26993   (eval "$ac_compile") 2>conftest.er1
26994   ac_status=$?
26995   grep -v '^ *+' conftest.er1 >conftest.err
26996   rm -f conftest.er1
26997   cat conftest.err >&5
26998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999   (exit $ac_status); } && {
27000          test -z "$ac_c_werror_flag" ||
27001          test ! -s conftest.err
27002        } && test -s conftest.$ac_objext; then
27003   ac_header_compiler=yes
27004 else
27005   echo "$as_me: failed program was:" >&5
27006 sed 's/^/| /' conftest.$ac_ext >&5
27007
27008         ac_header_compiler=no
27009 fi
27010
27011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27013 echo "${ECHO_T}$ac_header_compiler" >&6; }
27014
27015 # Is the header present?
27016 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27018 cat >conftest.$ac_ext <<_ACEOF
27019 /* confdefs.h.  */
27020 _ACEOF
27021 cat confdefs.h >>conftest.$ac_ext
27022 cat >>conftest.$ac_ext <<_ACEOF
27023 /* end confdefs.h.  */
27024 #include <$ac_header>
27025 _ACEOF
27026 if { (ac_try="$ac_cpp conftest.$ac_ext"
27027 case "(($ac_try" in
27028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27029   *) ac_try_echo=$ac_try;;
27030 esac
27031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27032   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27033   ac_status=$?
27034   grep -v '^ *+' conftest.er1 >conftest.err
27035   rm -f conftest.er1
27036   cat conftest.err >&5
27037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038   (exit $ac_status); } >/dev/null && {
27039          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27040          test ! -s conftest.err
27041        }; then
27042   ac_header_preproc=yes
27043 else
27044   echo "$as_me: failed program was:" >&5
27045 sed 's/^/| /' conftest.$ac_ext >&5
27046
27047   ac_header_preproc=no
27048 fi
27049
27050 rm -f conftest.err conftest.$ac_ext
27051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27052 echo "${ECHO_T}$ac_header_preproc" >&6; }
27053
27054 # So?  What about this header?
27055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27056   yes:no: )
27057     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27059     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27061     ac_header_preproc=yes
27062     ;;
27063   no:yes:* )
27064     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27066     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27067 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27068     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27070     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27071 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27074     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27076     ( cat <<\_ASBOX
27077 ## -------------------------------------------------- ##
27078 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
27079 ## -------------------------------------------------- ##
27080 _ASBOX
27081      ) | sed "s/^/$as_me: WARNING:     /" >&2
27082     ;;
27083 esac
27084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27087   echo $ECHO_N "(cached) $ECHO_C" >&6
27088 else
27089   eval "$as_ac_Header=\$ac_header_preproc"
27090 fi
27091 ac_res=`eval echo '${'$as_ac_Header'}'`
27092                { echo "$as_me:$LINENO: result: $ac_res" >&5
27093 echo "${ECHO_T}$ac_res" >&6; }
27094
27095 fi
27096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27097   cat >>confdefs.h <<_ACEOF
27098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27099 _ACEOF
27100
27101 fi
27102
27103 done
27104
27105   if test -n "$JAVAC"   \
27106      && test -n "$JAVA" \
27107      && test -n "$JAR"  \
27108      && test "x$ac_cv_header_jni_h" = "xyes" ; then
27109
27110      use_java="yes"
27111
27112 cat >>confdefs.h <<\_ACEOF
27113 #define HAVE_JAVA 1
27114 _ACEOF
27115
27116   else
27117      use_java="no"
27118   fi
27119 fi
27120 { echo "$as_me:$LINENO: result: decide whether to compile java bindings... $use_java" >&5
27121 echo "${ECHO_T}decide whether to compile java bindings... $use_java" >&6; }
27122  if test "x$use_java" = "xyes"; then
27123   HAVE_JAVA_TRUE=
27124   HAVE_JAVA_FALSE='#'
27125 else
27126   HAVE_JAVA_TRUE='#'
27127   HAVE_JAVA_FALSE=
27128 fi
27129
27130
27131
27132 #####################
27133 ## Check for programs
27134 ##
27135
27136
27137   { echo "$as_me:$LINENO: result: " >&5
27138 echo "${ECHO_T}" >&6; }
27139   { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
27140 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
27141
27142 # Extract the first word of "bash", so it can be a program name with args.
27143 set dummy bash; ac_word=$2
27144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27146 if test "${ac_cv_prog_BASH+set}" = set; then
27147   echo $ECHO_N "(cached) $ECHO_C" >&6
27148 else
27149   if test -n "$BASH"; then
27150   ac_cv_prog_BASH="$BASH" # Let the user override the test.
27151 else
27152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27153 for as_dir in $PATH
27154 do
27155   IFS=$as_save_IFS
27156   test -z "$as_dir" && as_dir=.
27157   for ac_exec_ext in '' $ac_executable_extensions; do
27158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27159     ac_cv_prog_BASH="`which bash`"
27160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27161     break 2
27162   fi
27163 done
27164 done
27165 IFS=$as_save_IFS
27166
27167   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
27168 fi
27169 fi
27170 BASH=$ac_cv_prog_BASH
27171 if test -n "$BASH"; then
27172   { echo "$as_me:$LINENO: result: $BASH" >&5
27173 echo "${ECHO_T}$BASH" >&6; }
27174 else
27175   { echo "$as_me:$LINENO: result: no" >&5
27176 echo "${ECHO_T}no" >&6; }
27177 fi
27178
27179
27180 WARNING="This file is generated, do not edit"
27181
27182
27183
27184 # Can we rebuild the parsers?
27185 # We really want flex and refuse other lex. So, the parser is portable and
27186 # does not induce extra lib dependency
27187 for ac_prog in flex lex
27188 do
27189   # Extract the first word of "$ac_prog", so it can be a program name with args.
27190 set dummy $ac_prog; ac_word=$2
27191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27193 if test "${ac_cv_prog_LEX+set}" = set; then
27194   echo $ECHO_N "(cached) $ECHO_C" >&6
27195 else
27196   if test -n "$LEX"; then
27197   ac_cv_prog_LEX="$LEX" # Let the user override the test.
27198 else
27199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27200 for as_dir in $PATH
27201 do
27202   IFS=$as_save_IFS
27203   test -z "$as_dir" && as_dir=.
27204   for ac_exec_ext in '' $ac_executable_extensions; do
27205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27206     ac_cv_prog_LEX="$ac_prog"
27207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27208     break 2
27209   fi
27210 done
27211 done
27212 IFS=$as_save_IFS
27213
27214 fi
27215 fi
27216 LEX=$ac_cv_prog_LEX
27217 if test -n "$LEX"; then
27218   { echo "$as_me:$LINENO: result: $LEX" >&5
27219 echo "${ECHO_T}$LEX" >&6; }
27220 else
27221   { echo "$as_me:$LINENO: result: no" >&5
27222 echo "${ECHO_T}no" >&6; }
27223 fi
27224
27225
27226   test -n "$LEX" && break
27227 done
27228 test -n "$LEX" || LEX=":"
27229
27230 if test "x$LEX" != "x:"; then
27231   cat >conftest.l <<_ACEOF
27232 %%
27233 a { ECHO; }
27234 b { REJECT; }
27235 c { yymore (); }
27236 d { yyless (1); }
27237 e { yyless (input () != 0); }
27238 f { unput (yytext[0]); }
27239 . { BEGIN INITIAL; }
27240 %%
27241 #ifdef YYTEXT_POINTER
27242 extern char *yytext;
27243 #endif
27244 int
27245 main (void)
27246 {
27247   return ! yylex () + ! yywrap ();
27248 }
27249 _ACEOF
27250 { (ac_try="$LEX conftest.l"
27251 case "(($ac_try" in
27252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27253   *) ac_try_echo=$ac_try;;
27254 esac
27255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27256   (eval "$LEX conftest.l") 2>&5
27257   ac_status=$?
27258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259   (exit $ac_status); }
27260 { echo "$as_me:$LINENO: checking lex output file root" >&5
27261 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
27262 if test "${ac_cv_prog_lex_root+set}" = set; then
27263   echo $ECHO_N "(cached) $ECHO_C" >&6
27264 else
27265
27266 if test -f lex.yy.c; then
27267   ac_cv_prog_lex_root=lex.yy
27268 elif test -f lexyy.c; then
27269   ac_cv_prog_lex_root=lexyy
27270 else
27271   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
27272 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
27273    { (exit 1); exit 1; }; }
27274 fi
27275 fi
27276 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
27277 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
27278 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
27279
27280 if test -z "${LEXLIB+set}"; then
27281   { echo "$as_me:$LINENO: checking lex library" >&5
27282 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
27283 if test "${ac_cv_lib_lex+set}" = set; then
27284   echo $ECHO_N "(cached) $ECHO_C" >&6
27285 else
27286
27287     ac_save_LIBS=$LIBS
27288     ac_cv_lib_lex='none needed'
27289     for ac_lib in '' -lfl -ll; do
27290       LIBS="$ac_lib $ac_save_LIBS"
27291       cat >conftest.$ac_ext <<_ACEOF
27292 `cat $LEX_OUTPUT_ROOT.c`
27293 _ACEOF
27294 rm -f conftest.$ac_objext conftest$ac_exeext
27295 if { (ac_try="$ac_link"
27296 case "(($ac_try" in
27297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27298   *) ac_try_echo=$ac_try;;
27299 esac
27300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27301   (eval "$ac_link") 2>conftest.er1
27302   ac_status=$?
27303   grep -v '^ *+' conftest.er1 >conftest.err
27304   rm -f conftest.er1
27305   cat conftest.err >&5
27306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307   (exit $ac_status); } && {
27308          test -z "$ac_c_werror_flag" ||
27309          test ! -s conftest.err
27310        } && test -s conftest$ac_exeext &&
27311        $as_test_x conftest$ac_exeext; then
27312   ac_cv_lib_lex=$ac_lib
27313 else
27314   echo "$as_me: failed program was:" >&5
27315 sed 's/^/| /' conftest.$ac_ext >&5
27316
27317
27318 fi
27319
27320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27321       conftest$ac_exeext conftest.$ac_ext
27322       test "$ac_cv_lib_lex" != 'none needed' && break
27323     done
27324     LIBS=$ac_save_LIBS
27325
27326 fi
27327 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
27328 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
27329   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
27330 fi
27331
27332
27333 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
27334 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
27335 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
27336   echo $ECHO_N "(cached) $ECHO_C" >&6
27337 else
27338   # POSIX says lex can declare yytext either as a pointer or an array; the
27339 # default is implementation-dependent.  Figure out which it is, since
27340 # not all implementations provide the %pointer and %array declarations.
27341 ac_cv_prog_lex_yytext_pointer=no
27342 ac_save_LIBS=$LIBS
27343 LIBS="$LEXLIB $ac_save_LIBS"
27344 cat >conftest.$ac_ext <<_ACEOF
27345 #define YYTEXT_POINTER 1
27346 `cat $LEX_OUTPUT_ROOT.c`
27347 _ACEOF
27348 rm -f conftest.$ac_objext conftest$ac_exeext
27349 if { (ac_try="$ac_link"
27350 case "(($ac_try" in
27351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27352   *) ac_try_echo=$ac_try;;
27353 esac
27354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27355   (eval "$ac_link") 2>conftest.er1
27356   ac_status=$?
27357   grep -v '^ *+' conftest.er1 >conftest.err
27358   rm -f conftest.er1
27359   cat conftest.err >&5
27360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361   (exit $ac_status); } && {
27362          test -z "$ac_c_werror_flag" ||
27363          test ! -s conftest.err
27364        } && test -s conftest$ac_exeext &&
27365        $as_test_x conftest$ac_exeext; then
27366   ac_cv_prog_lex_yytext_pointer=yes
27367 else
27368   echo "$as_me: failed program was:" >&5
27369 sed 's/^/| /' conftest.$ac_ext >&5
27370
27371
27372 fi
27373
27374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27375       conftest$ac_exeext conftest.$ac_ext
27376 LIBS=$ac_save_LIBS
27377
27378 fi
27379 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
27380 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
27381 if test $ac_cv_prog_lex_yytext_pointer = yes; then
27382
27383 cat >>confdefs.h <<\_ACEOF
27384 #define YYTEXT_POINTER 1
27385 _ACEOF
27386
27387 fi
27388 rm -f conftest.l $LEX_OUTPUT_ROOT.c
27389
27390 fi
27391
27392   if test "$LEX" != flex; then
27393     { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
27394 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
27395     LEX=${am_missing_run}flex
27396     LEXLIB=''
27397
27398   else
27399     if test "x2.5.30" != "x" ; then
27400                               FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
27401
27402       FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
27403       FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
27404       FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
27405
27406       WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
27407       WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
27408       WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
27409
27410       if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
27411          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED"  ||
27412          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
27413       then
27414         { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
27415 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
27416         LEX=${am_missing_run}flex
27417         LEXLIB=''
27418
27419       else
27420         { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
27421 echo "$as_me: Flex found. Parsers will get updated" >&6;}
27422       fi
27423     fi
27424   fi
27425
27426
27427 # Can we rebuild the xml-lexers from the XML specification?
27428 # if not, simply touch the flex source files (which are distributed in
27429 #  tarballs even if generated by flexml) and hope for the best.
27430 # Extract the first word of "flexml", so it can be a program name with args.
27431 set dummy flexml; ac_word=$2
27432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27434 if test "${ac_cv_prog_FLEXML+set}" = set; then
27435   echo $ECHO_N "(cached) $ECHO_C" >&6
27436 else
27437   if test -n "$FLEXML"; then
27438   ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
27439 else
27440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27441 for as_dir in $PATH
27442 do
27443   IFS=$as_save_IFS
27444   test -z "$as_dir" && as_dir=.
27445   for ac_exec_ext in '' $ac_executable_extensions; do
27446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27447     ac_cv_prog_FLEXML="`which flexml`"
27448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27449     break 2
27450   fi
27451 done
27452 done
27453 IFS=$as_save_IFS
27454
27455   test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
27456 fi
27457 fi
27458 FLEXML=$ac_cv_prog_FLEXML
27459 if test -n "$FLEXML"; then
27460   { echo "$as_me:$LINENO: result: $FLEXML" >&5
27461 echo "${ECHO_T}$FLEXML" >&6; }
27462 else
27463   { echo "$as_me:$LINENO: result: no" >&5
27464 echo "${ECHO_T}no" >&6; }
27465 fi
27466
27467
27468  if test x$FLEXML != xNOTFOUND; then
27469   HAVE_FLEXML_TRUE=
27470   HAVE_FLEXML_FALSE='#'
27471 else
27472   HAVE_FLEXML_TRUE='#'
27473   HAVE_FLEXML_FALSE=
27474 fi
27475
27476
27477 if test x$USE_MAINTAINER_MODE = xyes
27478 then
27479    # Check for doxygen when in maintainer mode since dist* targets fail
27480    # without it
27481    # Extract the first word of "doxygen", so it can be a program name with args.
27482 set dummy doxygen; ac_word=$2
27483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27485 if test "${ac_cv_path_DOXYGEN+set}" = set; then
27486   echo $ECHO_N "(cached) $ECHO_C" >&6
27487 else
27488   case $DOXYGEN in
27489   [\\/]* | ?:[\\/]*)
27490   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
27491   ;;
27492   *)
27493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27494 for as_dir in $PATH
27495 do
27496   IFS=$as_save_IFS
27497   test -z "$as_dir" && as_dir=.
27498   for ac_exec_ext in '' $ac_executable_extensions; do
27499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27500     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
27501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27502     break 2
27503   fi
27504 done
27505 done
27506 IFS=$as_save_IFS
27507
27508   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
27509   ;;
27510 esac
27511 fi
27512 DOXYGEN=$ac_cv_path_DOXYGEN
27513 if test -n "$DOXYGEN"; then
27514   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
27515 echo "${ECHO_T}$DOXYGEN" >&6; }
27516 else
27517   { echo "$as_me:$LINENO: result: no" >&5
27518 echo "${ECHO_T}no" >&6; }
27519 fi
27520
27521
27522    if test x$DOXYGEN = x ; then
27523      { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
27524 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
27525    { (exit 1); exit 1; }; }
27526    fi
27527 fi
27528
27529 # Can we extract really usable backtraces? (also need the popen function)
27530 # Extract the first word of "addr2line", so it can be a program name with args.
27531 set dummy addr2line; ac_word=$2
27532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27534 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
27535   echo $ECHO_N "(cached) $ECHO_C" >&6
27536 else
27537   case $ADDR2LINE in
27538   [\\/]* | ?:[\\/]*)
27539   ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
27540   ;;
27541   *)
27542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27543 for as_dir in $PATH
27544 do
27545   IFS=$as_save_IFS
27546   test -z "$as_dir" && as_dir=.
27547   for ac_exec_ext in '' $ac_executable_extensions; do
27548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27549     ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
27550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27551     break 2
27552   fi
27553 done
27554 done
27555 IFS=$as_save_IFS
27556
27557   ;;
27558 esac
27559 fi
27560 ADDR2LINE=$ac_cv_path_ADDR2LINE
27561 if test -n "$ADDR2LINE"; then
27562   { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
27563 echo "${ECHO_T}$ADDR2LINE" >&6; }
27564 else
27565   { echo "$as_me:$LINENO: result: no" >&5
27566 echo "${ECHO_T}no" >&6; }
27567 fi
27568
27569
27570 if test x$ADDR2LINE != x ; then
27571
27572 cat >>confdefs.h <<_ACEOF
27573 #define ADDR2LINE "$ADDR2LINE"
27574 _ACEOF
27575
27576 fi
27577
27578
27579 # Can we make status line about the compilation result?
27580 # Extract the first word of "md5sum", so it can be a program name with args.
27581 set dummy md5sum; ac_word=$2
27582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27584 if test "${ac_cv_prog_MD5SUM+set}" = set; then
27585   echo $ECHO_N "(cached) $ECHO_C" >&6
27586 else
27587   if test -n "$MD5SUM"; then
27588   ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
27589 else
27590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27591 for as_dir in $PATH
27592 do
27593   IFS=$as_save_IFS
27594   test -z "$as_dir" && as_dir=.
27595   for ac_exec_ext in '' $ac_executable_extensions; do
27596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27597     ac_cv_prog_MD5SUM="`which md5sum`"
27598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27599     break 2
27600   fi
27601 done
27602 done
27603 IFS=$as_save_IFS
27604
27605 fi
27606 fi
27607 MD5SUM=$ac_cv_prog_MD5SUM
27608 if test -n "$MD5SUM"; then
27609   { echo "$as_me:$LINENO: result: $MD5SUM" >&5
27610 echo "${ECHO_T}$MD5SUM" >&6; }
27611 else
27612   { echo "$as_me:$LINENO: result: no" >&5
27613 echo "${ECHO_T}no" >&6; }
27614 fi
27615
27616
27617 if test x$MD5SUM != xno ; then
27618   build_version=`find . -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
27619                  xargs cat| $MD5SUM | sed 's/ .*$//'`
27620 else
27621   build_version="no_md5sum_binary"
27622 fi
27623 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
27624
27625
27626 ###################
27627 ## Makes the output
27628 ##
27629
27630
27631 #
27632 #      examples/gras/chord/Makefile  examples/gras/chord/test_sg examples/gras/chord/test_rl
27633 #  src/amok/Makefile
27634
27635
27636   { echo "$as_me:$LINENO: result: " >&5
27637 echo "${ECHO_T}" >&6; }
27638   { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
27639 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
27640
27641
27642 # Core of the libraries
27643
27644 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
27645
27646
27647 # Tools being embeeded in gramine (stub generator)
27648 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
27649
27650
27651
27652 # GRAMINE_CUT_BEGIN
27653
27654 # Tools NOT being embeeded in gramine
27655 ac_config_files="$ac_config_files tools/graspe-slave"
27656
27657
27658 # Testsuite
27659
27660 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests"
27661
27662
27663 # Teshsuite (testsuite using tesh)
27664 ac_config_files="$ac_config_files teshsuite/Makefile"
27665
27666
27667 # Documentation
27668 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
27669
27670
27671 # Examples
27672
27673 #      examples/gras/p2p/Makefile
27674 #      examples/gras/p2p/chord/Makefile
27675 #      examples/gras/p2p/can/Makefile
27676
27677 ac_config_files="$ac_config_files examples/java/Makefile examples/java/basic/Makefile examples/java/comm_time/Makefile examples/java/suspend/Makefile examples/java/ping_pong/Makefile"
27678
27679
27680 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/simdag/Makefile examples/gras/Makefile examples/gras/ping/Makefile examples/gras/rpc/Makefile examples/gras/spawn/Makefile examples/gras/synchro/Makefile examples/gras/timer/Makefile examples/gras/properties/Makefile examples/gras/chrono/Makefile examples/gras/mutual_exclusion/simple_token/Makefile examples/gras/mmrpc/Makefile examples/gras/pmm/Makefile examples/gras/all2all/Makefile examples/amok/Makefile"
27681
27682
27683 ac_config_files="$ac_config_files src/smpi/smpicc src/smpi/smpirun"
27684
27685
27686 # GRAMINE_CUT_END
27687
27688 cat >confcache <<\_ACEOF
27689 # This file is a shell script that caches the results of configure
27690 # tests run on this system so they can be shared between configure
27691 # scripts and configure runs, see configure's option --config-cache.
27692 # It is not useful on other systems.  If it contains results you don't
27693 # want to keep, you may remove or edit it.
27694 #
27695 # config.status only pays attention to the cache file if you give it
27696 # the --recheck option to rerun configure.
27697 #
27698 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27699 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27700 # following values.
27701
27702 _ACEOF
27703
27704 # The following way of writing the cache mishandles newlines in values,
27705 # but we know of no workaround that is simple, portable, and efficient.
27706 # So, we kill variables containing newlines.
27707 # Ultrix sh set writes to stderr and can't be redirected directly,
27708 # and sets the high bit in the cache file unless we assign to the vars.
27709 (
27710   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27711     eval ac_val=\$$ac_var
27712     case $ac_val in #(
27713     *${as_nl}*)
27714       case $ac_var in #(
27715       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27716 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27717       esac
27718       case $ac_var in #(
27719       _ | IFS | as_nl) ;; #(
27720       *) $as_unset $ac_var ;;
27721       esac ;;
27722     esac
27723   done
27724
27725   (set) 2>&1 |
27726     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27727     *${as_nl}ac_space=\ *)
27728       # `set' does not quote correctly, so add quotes (double-quote
27729       # substitution turns \\\\ into \\, and sed turns \\ into \).
27730       sed -n \
27731         "s/'/'\\\\''/g;
27732           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27733       ;; #(
27734     *)
27735       # `set' quotes correctly as required by POSIX, so do not add quotes.
27736       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27737       ;;
27738     esac |
27739     sort
27740 ) |
27741   sed '
27742      /^ac_cv_env_/b end
27743      t clear
27744      :clear
27745      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27746      t end
27747      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27748      :end' >>confcache
27749 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27750   if test -w "$cache_file"; then
27751     test "x$cache_file" != "x/dev/null" &&
27752       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27753 echo "$as_me: updating cache $cache_file" >&6;}
27754     cat confcache >$cache_file
27755   else
27756     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27757 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27758   fi
27759 fi
27760 rm -f confcache
27761
27762 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27763 # Let make expand exec_prefix.
27764 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27765
27766 DEFS=-DHAVE_CONFIG_H
27767
27768 ac_libobjs=
27769 ac_ltlibobjs=
27770 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27771   # 1. Remove the extension, and $U if already installed.
27772   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27773   ac_i=`echo "$ac_i" | sed "$ac_script"`
27774   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27775   #    will be set to the directory where LIBOBJS objects are built.
27776   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27777   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27778 done
27779 LIBOBJS=$ac_libobjs
27780
27781 LTLIBOBJS=$ac_ltlibobjs
27782
27783
27784 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27785   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27786 Usually this means the macro was only invoked conditionally." >&5
27787 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27788 Usually this means the macro was only invoked conditionally." >&2;}
27789    { (exit 1); exit 1; }; }
27790 fi
27791 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
27792   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
27793 Usually this means the macro was only invoked conditionally." >&5
27794 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
27795 Usually this means the macro was only invoked conditionally." >&2;}
27796    { (exit 1); exit 1; }; }
27797 fi
27798 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27799   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27800 Usually this means the macro was only invoked conditionally." >&5
27801 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27802 Usually this means the macro was only invoked conditionally." >&2;}
27803    { (exit 1); exit 1; }; }
27804 fi
27805 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27806   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27807 Usually this means the macro was only invoked conditionally." >&5
27808 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27809 Usually this means the macro was only invoked conditionally." >&2;}
27810    { (exit 1); exit 1; }; }
27811 fi
27812 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27813   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27814 Usually this means the macro was only invoked conditionally." >&5
27815 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27816 Usually this means the macro was only invoked conditionally." >&2;}
27817    { (exit 1); exit 1; }; }
27818 fi
27819 if test -z "${GRAS_ARCH_32_BITS_TRUE}" && test -z "${GRAS_ARCH_32_BITS_FALSE}"; then
27820   { { echo "$as_me:$LINENO: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
27821 Usually this means the macro was only invoked conditionally." >&5
27822 echo "$as_me: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
27823 Usually this means the macro was only invoked conditionally." >&2;}
27824    { (exit 1); exit 1; }; }
27825 fi
27826 if test -z "${IS_WINDOWS_TRUE}" && test -z "${IS_WINDOWS_FALSE}"; then
27827   { { echo "$as_me:$LINENO: error: conditional \"IS_WINDOWS\" was never defined.
27828 Usually this means the macro was only invoked conditionally." >&5
27829 echo "$as_me: error: conditional \"IS_WINDOWS\" was never defined.
27830 Usually this means the macro was only invoked conditionally." >&2;}
27831    { (exit 1); exit 1; }; }
27832 fi
27833 if test -z "${CONTEXT_THREADS_TRUE}" && test -z "${CONTEXT_THREADS_FALSE}"; then
27834   { { echo "$as_me:$LINENO: error: conditional \"CONTEXT_THREADS\" was never defined.
27835 Usually this means the macro was only invoked conditionally." >&5
27836 echo "$as_me: error: conditional \"CONTEXT_THREADS\" was never defined.
27837 Usually this means the macro was only invoked conditionally." >&2;}
27838    { (exit 1); exit 1; }; }
27839 fi
27840 if test -z "${HAVE_GTNETS_TRUE}" && test -z "${HAVE_GTNETS_FALSE}"; then
27841   { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTNETS\" was never defined.
27842 Usually this means the macro was only invoked conditionally." >&5
27843 echo "$as_me: error: conditional \"HAVE_GTNETS\" was never defined.
27844 Usually this means the macro was only invoked conditionally." >&2;}
27845    { (exit 1); exit 1; }; }
27846 fi
27847 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
27848   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
27849 Usually this means the macro was only invoked conditionally." >&5
27850 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
27851 Usually this means the macro was only invoked conditionally." >&2;}
27852    { (exit 1); exit 1; }; }
27853 fi
27854 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
27855   { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
27856 Usually this means the macro was only invoked conditionally." >&5
27857 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
27858 Usually this means the macro was only invoked conditionally." >&2;}
27859    { (exit 1); exit 1; }; }
27860 fi
27861 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27862   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27863 Usually this means the macro was only invoked conditionally." >&5
27864 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27865 Usually this means the macro was only invoked conditionally." >&2;}
27866    { (exit 1); exit 1; }; }
27867 fi
27868 if test -z "${BOTBUILD_MODE_TRUE}" && test -z "${BOTBUILD_MODE_FALSE}"; then
27869   { { echo "$as_me:$LINENO: error: conditional \"BOTBUILD_MODE\" was never defined.
27870 Usually this means the macro was only invoked conditionally." >&5
27871 echo "$as_me: error: conditional \"BOTBUILD_MODE\" was never defined.
27872 Usually this means the macro was only invoked conditionally." >&2;}
27873    { (exit 1); exit 1; }; }
27874 fi
27875 if test -z "${HAVE_JAVA_TRUE}" && test -z "${HAVE_JAVA_FALSE}"; then
27876   { { echo "$as_me:$LINENO: error: conditional \"HAVE_JAVA\" was never defined.
27877 Usually this means the macro was only invoked conditionally." >&5
27878 echo "$as_me: error: conditional \"HAVE_JAVA\" was never defined.
27879 Usually this means the macro was only invoked conditionally." >&2;}
27880    { (exit 1); exit 1; }; }
27881 fi
27882 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
27883   { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
27884 Usually this means the macro was only invoked conditionally." >&5
27885 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
27886 Usually this means the macro was only invoked conditionally." >&2;}
27887    { (exit 1); exit 1; }; }
27888 fi
27889
27890 : ${CONFIG_STATUS=./config.status}
27891 ac_clean_files_save=$ac_clean_files
27892 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27893 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27894 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27895 cat >$CONFIG_STATUS <<_ACEOF
27896 #! $SHELL
27897 # Generated by $as_me.
27898 # Run this file to recreate the current configuration.
27899 # Compiler output produced by configure, useful for debugging
27900 # configure, is in config.log if it exists.
27901
27902 debug=false
27903 ac_cs_recheck=false
27904 ac_cs_silent=false
27905 SHELL=\${CONFIG_SHELL-$SHELL}
27906 _ACEOF
27907
27908 cat >>$CONFIG_STATUS <<\_ACEOF
27909 ## --------------------- ##
27910 ## M4sh Initialization.  ##
27911 ## --------------------- ##
27912
27913 # Be more Bourne compatible
27914 DUALCASE=1; export DUALCASE # for MKS sh
27915 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27916   emulate sh
27917   NULLCMD=:
27918   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27919   # is contrary to our usage.  Disable this feature.
27920   alias -g '${1+"$@"}'='"$@"'
27921   setopt NO_GLOB_SUBST
27922 else
27923   case `(set -o) 2>/dev/null` in
27924   *posix*) set -o posix ;;
27925 esac
27926
27927 fi
27928
27929
27930
27931
27932 # PATH needs CR
27933 # Avoid depending upon Character Ranges.
27934 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27935 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27936 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27937 as_cr_digits='0123456789'
27938 as_cr_alnum=$as_cr_Letters$as_cr_digits
27939
27940 # The user is always right.
27941 if test "${PATH_SEPARATOR+set}" != set; then
27942   echo "#! /bin/sh" >conf$$.sh
27943   echo  "exit 0"   >>conf$$.sh
27944   chmod +x conf$$.sh
27945   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27946     PATH_SEPARATOR=';'
27947   else
27948     PATH_SEPARATOR=:
27949   fi
27950   rm -f conf$$.sh
27951 fi
27952
27953 # Support unset when possible.
27954 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27955   as_unset=unset
27956 else
27957   as_unset=false
27958 fi
27959
27960
27961 # IFS
27962 # We need space, tab and new line, in precisely that order.  Quoting is
27963 # there to prevent editors from complaining about space-tab.
27964 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27965 # splitting by setting IFS to empty value.)
27966 as_nl='
27967 '
27968 IFS=" ""        $as_nl"
27969
27970 # Find who we are.  Look in the path if we contain no directory separator.
27971 case $0 in
27972   *[\\/]* ) as_myself=$0 ;;
27973   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27974 for as_dir in $PATH
27975 do
27976   IFS=$as_save_IFS
27977   test -z "$as_dir" && as_dir=.
27978   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27979 done
27980 IFS=$as_save_IFS
27981
27982      ;;
27983 esac
27984 # We did not find ourselves, most probably we were run as `sh COMMAND'
27985 # in which case we are not to be found in the path.
27986 if test "x$as_myself" = x; then
27987   as_myself=$0
27988 fi
27989 if test ! -f "$as_myself"; then
27990   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27991   { (exit 1); exit 1; }
27992 fi
27993
27994 # Work around bugs in pre-3.0 UWIN ksh.
27995 for as_var in ENV MAIL MAILPATH
27996 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27997 done
27998 PS1='$ '
27999 PS2='> '
28000 PS4='+ '
28001
28002 # NLS nuisances.
28003 for as_var in \
28004   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28005   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28006   LC_TELEPHONE LC_TIME
28007 do
28008   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28009     eval $as_var=C; export $as_var
28010   else
28011     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28012   fi
28013 done
28014
28015 # Required to use basename.
28016 if expr a : '\(a\)' >/dev/null 2>&1 &&
28017    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28018   as_expr=expr
28019 else
28020   as_expr=false
28021 fi
28022
28023 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28024   as_basename=basename
28025 else
28026   as_basename=false
28027 fi
28028
28029
28030 # Name of the executable.
28031 as_me=`$as_basename -- "$0" ||
28032 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28033          X"$0" : 'X\(//\)$' \| \
28034          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28035 echo X/"$0" |
28036     sed '/^.*\/\([^/][^/]*\)\/*$/{
28037             s//\1/
28038             q
28039           }
28040           /^X\/\(\/\/\)$/{
28041             s//\1/
28042             q
28043           }
28044           /^X\/\(\/\).*/{
28045             s//\1/
28046             q
28047           }
28048           s/.*/./; q'`
28049
28050 # CDPATH.
28051 $as_unset CDPATH
28052
28053
28054
28055   as_lineno_1=$LINENO
28056   as_lineno_2=$LINENO
28057   test "x$as_lineno_1" != "x$as_lineno_2" &&
28058   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28059
28060   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28061   # uniformly replaced by the line number.  The first 'sed' inserts a
28062   # line-number line after each line using $LINENO; the second 'sed'
28063   # does the real work.  The second script uses 'N' to pair each
28064   # line-number line with the line containing $LINENO, and appends
28065   # trailing '-' during substitution so that $LINENO is not a special
28066   # case at line end.
28067   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28068   # scripts with optimization help from Paolo Bonzini.  Blame Lee
28069   # E. McMahon (1931-1989) for sed's syntax.  :-)
28070   sed -n '
28071     p
28072     /[$]LINENO/=
28073   ' <$as_myself |
28074     sed '
28075       s/[$]LINENO.*/&-/
28076       t lineno
28077       b
28078       :lineno
28079       N
28080       :loop
28081       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28082       t loop
28083       s/-\n.*//
28084     ' >$as_me.lineno &&
28085   chmod +x "$as_me.lineno" ||
28086     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28087    { (exit 1); exit 1; }; }
28088
28089   # Don't try to exec as it changes $[0], causing all sort of problems
28090   # (the dirname of $[0] is not the place where we might find the
28091   # original and so on.  Autoconf is especially sensitive to this).
28092   . "./$as_me.lineno"
28093   # Exit status is that of the last command.
28094   exit
28095 }
28096
28097
28098 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28099   as_dirname=dirname
28100 else
28101   as_dirname=false
28102 fi
28103
28104 ECHO_C= ECHO_N= ECHO_T=
28105 case `echo -n x` in
28106 -n*)
28107   case `echo 'x\c'` in
28108   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
28109   *)   ECHO_C='\c';;
28110   esac;;
28111 *)
28112   ECHO_N='-n';;
28113 esac
28114
28115 if expr a : '\(a\)' >/dev/null 2>&1 &&
28116    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28117   as_expr=expr
28118 else
28119   as_expr=false
28120 fi
28121
28122 rm -f conf$$ conf$$.exe conf$$.file
28123 if test -d conf$$.dir; then
28124   rm -f conf$$.dir/conf$$.file
28125 else
28126   rm -f conf$$.dir
28127   mkdir conf$$.dir
28128 fi
28129 echo >conf$$.file
28130 if ln -s conf$$.file conf$$ 2>/dev/null; then
28131   as_ln_s='ln -s'
28132   # ... but there are two gotchas:
28133   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28134   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28135   # In both cases, we have to default to `cp -p'.
28136   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28137     as_ln_s='cp -p'
28138 elif ln conf$$.file conf$$ 2>/dev/null; then
28139   as_ln_s=ln
28140 else
28141   as_ln_s='cp -p'
28142 fi
28143 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28144 rmdir conf$$.dir 2>/dev/null
28145
28146 if mkdir -p . 2>/dev/null; then
28147   as_mkdir_p=:
28148 else
28149   test -d ./-p && rmdir ./-p
28150   as_mkdir_p=false
28151 fi
28152
28153 if test -x / >/dev/null 2>&1; then
28154   as_test_x='test -x'
28155 else
28156   if ls -dL / >/dev/null 2>&1; then
28157     as_ls_L_option=L
28158   else
28159     as_ls_L_option=
28160   fi
28161   as_test_x='
28162     eval sh -c '\''
28163       if test -d "$1"; then
28164         test -d "$1/.";
28165       else
28166         case $1 in
28167         -*)set "./$1";;
28168         esac;
28169         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28170         ???[sx]*):;;*)false;;esac;fi
28171     '\'' sh
28172   '
28173 fi
28174 as_executable_p=$as_test_x
28175
28176 # Sed expression to map a string onto a valid CPP name.
28177 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28178
28179 # Sed expression to map a string onto a valid variable name.
28180 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28181
28182
28183 exec 6>&1
28184
28185 # Save the log message, to keep $[0] and so on meaningful, and to
28186 # report actual input values of CONFIG_FILES etc. instead of their
28187 # values after options handling.
28188 ac_log="
28189 This file was extended by simgrid $as_me 3.3-svn, which was
28190 generated by GNU Autoconf 2.61.  Invocation command line was
28191
28192   CONFIG_FILES    = $CONFIG_FILES
28193   CONFIG_HEADERS  = $CONFIG_HEADERS
28194   CONFIG_LINKS    = $CONFIG_LINKS
28195   CONFIG_COMMANDS = $CONFIG_COMMANDS
28196   $ $0 $@
28197
28198 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28199 "
28200
28201 _ACEOF
28202
28203 cat >>$CONFIG_STATUS <<_ACEOF
28204 # Files that config.status was made for.
28205 config_files="$ac_config_files"
28206 config_headers="$ac_config_headers"
28207 config_commands="$ac_config_commands"
28208
28209 _ACEOF
28210
28211 cat >>$CONFIG_STATUS <<\_ACEOF
28212 ac_cs_usage="\
28213 \`$as_me' instantiates files from templates according to the
28214 current configuration.
28215
28216 Usage: $0 [OPTIONS] [FILE]...
28217
28218   -h, --help       print this help, then exit
28219   -V, --version    print version number and configuration settings, then exit
28220   -q, --quiet      do not print progress messages
28221   -d, --debug      don't remove temporary files
28222       --recheck    update $as_me by reconfiguring in the same conditions
28223   --file=FILE[:TEMPLATE]
28224                    instantiate the configuration file FILE
28225   --header=FILE[:TEMPLATE]
28226                    instantiate the configuration header FILE
28227
28228 Configuration files:
28229 $config_files
28230
28231 Configuration headers:
28232 $config_headers
28233
28234 Configuration commands:
28235 $config_commands
28236
28237 Report bugs to <bug-autoconf@gnu.org>."
28238
28239 _ACEOF
28240 cat >>$CONFIG_STATUS <<_ACEOF
28241 ac_cs_version="\\
28242 simgrid config.status 3.3-svn
28243 configured by $0, generated by GNU Autoconf 2.61,
28244   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28245
28246 Copyright (C) 2006 Free Software Foundation, Inc.
28247 This config.status script is free software; the Free Software Foundation
28248 gives unlimited permission to copy, distribute and modify it."
28249
28250 ac_pwd='$ac_pwd'
28251 srcdir='$srcdir'
28252 INSTALL='$INSTALL'
28253 MKDIR_P='$MKDIR_P'
28254 _ACEOF
28255
28256 cat >>$CONFIG_STATUS <<\_ACEOF
28257 # If no file are specified by the user, then we need to provide default
28258 # value.  By we need to know if files were specified by the user.
28259 ac_need_defaults=:
28260 while test $# != 0
28261 do
28262   case $1 in
28263   --*=*)
28264     ac_option=`expr "X$1" : 'X\([^=]*\)='`
28265     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28266     ac_shift=:
28267     ;;
28268   *)
28269     ac_option=$1
28270     ac_optarg=$2
28271     ac_shift=shift
28272     ;;
28273   esac
28274
28275   case $ac_option in
28276   # Handling of the options.
28277   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28278     ac_cs_recheck=: ;;
28279   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28280     echo "$ac_cs_version"; exit ;;
28281   --debug | --debu | --deb | --de | --d | -d )
28282     debug=: ;;
28283   --file | --fil | --fi | --f )
28284     $ac_shift
28285     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28286     ac_need_defaults=false;;
28287   --header | --heade | --head | --hea )
28288     $ac_shift
28289     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28290     ac_need_defaults=false;;
28291   --he | --h)
28292     # Conflict between --help and --header
28293     { echo "$as_me: error: ambiguous option: $1
28294 Try \`$0 --help' for more information." >&2
28295    { (exit 1); exit 1; }; };;
28296   --help | --hel | -h )
28297     echo "$ac_cs_usage"; exit ;;
28298   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28299   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28300     ac_cs_silent=: ;;
28301
28302   # This is an error.
28303   -*) { echo "$as_me: error: unrecognized option: $1
28304 Try \`$0 --help' for more information." >&2
28305    { (exit 1); exit 1; }; } ;;
28306
28307   *) ac_config_targets="$ac_config_targets $1"
28308      ac_need_defaults=false ;;
28309
28310   esac
28311   shift
28312 done
28313
28314 ac_configure_extra_args=
28315
28316 if $ac_cs_silent; then
28317   exec 6>/dev/null
28318   ac_configure_extra_args="$ac_configure_extra_args --silent"
28319 fi
28320
28321 _ACEOF
28322 cat >>$CONFIG_STATUS <<_ACEOF
28323 if \$ac_cs_recheck; then
28324   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28325   CONFIG_SHELL=$SHELL
28326   export CONFIG_SHELL
28327   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28328 fi
28329
28330 _ACEOF
28331 cat >>$CONFIG_STATUS <<\_ACEOF
28332 exec 5>>config.log
28333 {
28334   echo
28335   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28336 ## Running $as_me. ##
28337 _ASBOX
28338   echo "$ac_log"
28339 } >&5
28340
28341 _ACEOF
28342 cat >>$CONFIG_STATUS <<_ACEOF
28343 #
28344 # INIT-COMMANDS
28345 #
28346 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28347
28348 _ACEOF
28349
28350 cat >>$CONFIG_STATUS <<\_ACEOF
28351
28352 # Handling of arguments.
28353 for ac_config_target in $ac_config_targets
28354 do
28355   case $ac_config_target in
28356     "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
28357     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28358     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28359     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
28360     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
28361     "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
28362     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
28363     "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
28364     "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
28365     "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
28366     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
28367     "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
28368     "teshsuite/Makefile") CONFIG_FILES="$CONFIG_FILES teshsuite/Makefile" ;;
28369     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
28370     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
28371     "examples/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/Makefile" ;;
28372     "examples/java/basic/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/basic/Makefile" ;;
28373     "examples/java/comm_time/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/comm_time/Makefile" ;;
28374     "examples/java/suspend/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/suspend/Makefile" ;;
28375     "examples/java/ping_pong/Makefile") CONFIG_FILES="$CONFIG_FILES examples/java/ping_pong/Makefile" ;;
28376     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
28377     "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
28378     "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
28379     "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
28380     "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
28381     "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
28382     "examples/gras/spawn/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/spawn/Makefile" ;;
28383     "examples/gras/synchro/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/synchro/Makefile" ;;
28384     "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
28385     "examples/gras/properties/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/properties/Makefile" ;;
28386     "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
28387     "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
28388     "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
28389     "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
28390     "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
28391     "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
28392     "src/smpi/smpicc") CONFIG_FILES="$CONFIG_FILES src/smpi/smpicc" ;;
28393     "src/smpi/smpirun") CONFIG_FILES="$CONFIG_FILES src/smpi/smpirun" ;;
28394
28395   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28396 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28397    { (exit 1); exit 1; }; };;
28398   esac
28399 done
28400
28401
28402 # If the user did not use the arguments to specify the items to instantiate,
28403 # then the envvar interface is used.  Set only those that are not.
28404 # We use the long form for the default assignment because of an extremely
28405 # bizarre bug on SunOS 4.1.3.
28406 if $ac_need_defaults; then
28407   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28408   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28409   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28410 fi
28411
28412 # Have a temporary directory for convenience.  Make it in the build tree
28413 # simply because there is no reason against having it here, and in addition,
28414 # creating and moving files from /tmp can sometimes cause problems.
28415 # Hook for its removal unless debugging.
28416 # Note that there is a small window in which the directory will not be cleaned:
28417 # after its creation but before its name has been assigned to `$tmp'.
28418 $debug ||
28419 {
28420   tmp=
28421   trap 'exit_status=$?
28422   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28423 ' 0
28424   trap '{ (exit 1); exit 1; }' 1 2 13 15
28425 }
28426 # Create a (secure) tmp directory for tmp files.
28427
28428 {
28429   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28430   test -n "$tmp" && test -d "$tmp"
28431 }  ||
28432 {
28433   tmp=./conf$$-$RANDOM
28434   (umask 077 && mkdir "$tmp")
28435 } ||
28436 {
28437    echo "$me: cannot create a temporary directory in ." >&2
28438    { (exit 1); exit 1; }
28439 }
28440
28441 #
28442 # Set up the sed scripts for CONFIG_FILES section.
28443 #
28444
28445 # No need to generate the scripts if there are no CONFIG_FILES.
28446 # This happens for instance when ./config.status config.h
28447 if test -n "$CONFIG_FILES"; then
28448
28449 _ACEOF
28450
28451
28452
28453 ac_delim='%!_!# '
28454 for ac_last_try in false false false false false :; do
28455   cat >conf$$subs.sed <<_ACEOF
28456 SHELL!$SHELL$ac_delim
28457 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28458 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28459 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28460 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28461 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28462 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28463 exec_prefix!$exec_prefix$ac_delim
28464 prefix!$prefix$ac_delim
28465 program_transform_name!$program_transform_name$ac_delim
28466 bindir!$bindir$ac_delim
28467 sbindir!$sbindir$ac_delim
28468 libexecdir!$libexecdir$ac_delim
28469 datarootdir!$datarootdir$ac_delim
28470 datadir!$datadir$ac_delim
28471 sysconfdir!$sysconfdir$ac_delim
28472 sharedstatedir!$sharedstatedir$ac_delim
28473 localstatedir!$localstatedir$ac_delim
28474 includedir!$includedir$ac_delim
28475 oldincludedir!$oldincludedir$ac_delim
28476 docdir!$docdir$ac_delim
28477 infodir!$infodir$ac_delim
28478 htmldir!$htmldir$ac_delim
28479 dvidir!$dvidir$ac_delim
28480 pdfdir!$pdfdir$ac_delim
28481 psdir!$psdir$ac_delim
28482 libdir!$libdir$ac_delim
28483 localedir!$localedir$ac_delim
28484 mandir!$mandir$ac_delim
28485 DEFS!$DEFS$ac_delim
28486 ECHO_C!$ECHO_C$ac_delim
28487 ECHO_N!$ECHO_N$ac_delim
28488 ECHO_T!$ECHO_T$ac_delim
28489 LIBS!$LIBS$ac_delim
28490 build_alias!$build_alias$ac_delim
28491 host_alias!$host_alias$ac_delim
28492 target_alias!$target_alias$ac_delim
28493 build!$build$ac_delim
28494 build_cpu!$build_cpu$ac_delim
28495 build_vendor!$build_vendor$ac_delim
28496 build_os!$build_os$ac_delim
28497 host!$host$ac_delim
28498 host_cpu!$host_cpu$ac_delim
28499 host_vendor!$host_vendor$ac_delim
28500 host_os!$host_os$ac_delim
28501 target!$target$ac_delim
28502 target_cpu!$target_cpu$ac_delim
28503 target_vendor!$target_vendor$ac_delim
28504 target_os!$target_os$ac_delim
28505 GCJ!$GCJ$ac_delim
28506 GCJFLAGS!$GCJFLAGS$ac_delim
28507 am__leading_dot!$am__leading_dot$ac_delim
28508 DEPDIR!$DEPDIR$ac_delim
28509 am__include!$am__include$ac_delim
28510 am__quote!$am__quote$ac_delim
28511 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
28512 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
28513 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
28514 GCJDEPMODE!$GCJDEPMODE$ac_delim
28515 am__fastdepGCJ_TRUE!$am__fastdepGCJ_TRUE$ac_delim
28516 am__fastdepGCJ_FALSE!$am__fastdepGCJ_FALSE$ac_delim
28517 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28518 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28519 INSTALL_DATA!$INSTALL_DATA$ac_delim
28520 am__isrc!$am__isrc$ac_delim
28521 CYGPATH_W!$CYGPATH_W$ac_delim
28522 PACKAGE!$PACKAGE$ac_delim
28523 VERSION!$VERSION$ac_delim
28524 ACLOCAL!$ACLOCAL$ac_delim
28525 AUTOCONF!$AUTOCONF$ac_delim
28526 AUTOMAKE!$AUTOMAKE$ac_delim
28527 AUTOHEADER!$AUTOHEADER$ac_delim
28528 MAKEINFO!$MAKEINFO$ac_delim
28529 install_sh!$install_sh$ac_delim
28530 STRIP!$STRIP$ac_delim
28531 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
28532 mkdir_p!$mkdir_p$ac_delim
28533 AWK!$AWK$ac_delim
28534 SET_MAKE!$SET_MAKE$ac_delim
28535 AMTAR!$AMTAR$ac_delim
28536 am__tar!$am__tar$ac_delim
28537 am__untar!$am__untar$ac_delim
28538 CC!$CC$ac_delim
28539 CFLAGS!$CFLAGS$ac_delim
28540 LDFLAGS!$LDFLAGS$ac_delim
28541 CPPFLAGS!$CPPFLAGS$ac_delim
28542 ac_ct_CC!$ac_ct_CC$ac_delim
28543 EXEEXT!$EXEEXT$ac_delim
28544 OBJEXT!$OBJEXT$ac_delim
28545 CCDEPMODE!$CCDEPMODE$ac_delim
28546 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
28547 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
28548 SED!$SED$ac_delim
28549 GREP!$GREP$ac_delim
28550 EGREP!$EGREP$ac_delim
28551 LN_S!$LN_S$ac_delim
28552 ECHO!$ECHO$ac_delim
28553 _ACEOF
28554
28555   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28556     break
28557   elif $ac_last_try; then
28558     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28559 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28560    { (exit 1); exit 1; }; }
28561   else
28562     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28563   fi
28564 done
28565
28566 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28567 if test -n "$ac_eof"; then
28568   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28569   ac_eof=`expr $ac_eof + 1`
28570 fi
28571
28572 cat >>$CONFIG_STATUS <<_ACEOF
28573 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28574 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28575 _ACEOF
28576 sed '
28577 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28578 s/^/s,@/; s/!/@,|#_!!_#|/
28579 :n
28580 t n
28581 s/'"$ac_delim"'$/,g/; t
28582 s/$/\\/; p
28583 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28584 ' >>$CONFIG_STATUS <conf$$subs.sed
28585 rm -f conf$$subs.sed
28586 cat >>$CONFIG_STATUS <<_ACEOF
28587 CEOF$ac_eof
28588 _ACEOF
28589
28590
28591 ac_delim='%!_!# '
28592 for ac_last_try in false false false false false :; do
28593   cat >conf$$subs.sed <<_ACEOF
28594 AR!$AR$ac_delim
28595 RANLIB!$RANLIB$ac_delim
28596 DSYMUTIL!$DSYMUTIL$ac_delim
28597 NMEDIT!$NMEDIT$ac_delim
28598 DLLTOOL!$DLLTOOL$ac_delim
28599 AS!$AS$ac_delim
28600 OBJDUMP!$OBJDUMP$ac_delim
28601 CPP!$CPP$ac_delim
28602 CXX!$CXX$ac_delim
28603 CXXFLAGS!$CXXFLAGS$ac_delim
28604 ac_ct_CXX!$ac_ct_CXX$ac_delim
28605 CXXDEPMODE!$CXXDEPMODE$ac_delim
28606 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
28607 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
28608 CXXCPP!$CXXCPP$ac_delim
28609 LIBTOOL!$LIBTOOL$ac_delim
28610 LIBOBJS!$LIBOBJS$ac_delim
28611 GRAS_ARCH_32_BITS_TRUE!$GRAS_ARCH_32_BITS_TRUE$ac_delim
28612 GRAS_ARCH_32_BITS_FALSE!$GRAS_ARCH_32_BITS_FALSE$ac_delim
28613 IS_WINDOWS_TRUE!$IS_WINDOWS_TRUE$ac_delim
28614 IS_WINDOWS_FALSE!$IS_WINDOWS_FALSE$ac_delim
28615 CONTEXT_THREADS_TRUE!$CONTEXT_THREADS_TRUE$ac_delim
28616 CONTEXT_THREADS_FALSE!$CONTEXT_THREADS_FALSE$ac_delim
28617 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
28618 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
28619 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
28620 HAVE_GTNETS_TRUE!$HAVE_GTNETS_TRUE$ac_delim
28621 HAVE_GTNETS_FALSE!$HAVE_GTNETS_FALSE$ac_delim
28622 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
28623 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
28624 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
28625 SMPI_DEP!$SMPI_DEP$ac_delim
28626 GRAS_DEP!$GRAS_DEP$ac_delim
28627 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
28628 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
28629 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
28630 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
28631 MAINT!$MAINT$ac_delim
28632 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
28633 AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
28634 abs_builddir!$abs_builddir$ac_delim
28635 abs_srcdir!$abs_srcdir$ac_delim
28636 abs_top_builddir!$abs_top_builddir$ac_delim
28637 abs_top_srcdir!$abs_top_srcdir$ac_delim
28638 BOTBUILD_MODE_TRUE!$BOTBUILD_MODE_TRUE$ac_delim
28639 BOTBUILD_MODE_FALSE!$BOTBUILD_MODE_FALSE$ac_delim
28640 JAVAC!$JAVAC$ac_delim
28641 JAVA!$JAVA$ac_delim
28642 JAR!$JAR$ac_delim
28643 HAVE_JAVA_TRUE!$HAVE_JAVA_TRUE$ac_delim
28644 HAVE_JAVA_FALSE!$HAVE_JAVA_FALSE$ac_delim
28645 BASH!$BASH$ac_delim
28646 WARNING!$WARNING$ac_delim
28647 LEX!$LEX$ac_delim
28648 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
28649 LEXLIB!$LEXLIB$ac_delim
28650 FLEXML!$FLEXML$ac_delim
28651 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
28652 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
28653 DOXYGEN!$DOXYGEN$ac_delim
28654 ADDR2LINE!$ADDR2LINE$ac_delim
28655 ac_configure_args!$ac_configure_args$ac_delim
28656 MD5SUM!$MD5SUM$ac_delim
28657 build_id!$build_id$ac_delim
28658 LTLIBOBJS!$LTLIBOBJS$ac_delim
28659 _ACEOF
28660
28661   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 65; then
28662     break
28663   elif $ac_last_try; then
28664     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28665 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28666    { (exit 1); exit 1; }; }
28667   else
28668     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28669   fi
28670 done
28671
28672 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28673 if test -n "$ac_eof"; then
28674   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
28675   ac_eof=`expr $ac_eof + 1`
28676 fi
28677
28678 cat >>$CONFIG_STATUS <<_ACEOF
28679 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28680 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28681 _ACEOF
28682 sed '
28683 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28684 s/^/s,@/; s/!/@,|#_!!_#|/
28685 :n
28686 t n
28687 s/'"$ac_delim"'$/,g/; t
28688 s/$/\\/; p
28689 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28690 ' >>$CONFIG_STATUS <conf$$subs.sed
28691 rm -f conf$$subs.sed
28692 cat >>$CONFIG_STATUS <<_ACEOF
28693 :end
28694 s/|#_!!_#|//g
28695 CEOF$ac_eof
28696 _ACEOF
28697
28698
28699 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28700 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28701 # trailing colons and then remove the whole line if VPATH becomes empty
28702 # (actually we leave an empty line to preserve line numbers).
28703 if test "x$srcdir" = x.; then
28704   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28705 s/:*\$(srcdir):*/:/
28706 s/:*\${srcdir}:*/:/
28707 s/:*@srcdir@:*/:/
28708 s/^\([^=]*=[     ]*\):*/\1/
28709 s/:*$//
28710 s/^[^=]*=[       ]*$//
28711 }'
28712 fi
28713
28714 cat >>$CONFIG_STATUS <<\_ACEOF
28715 fi # test -n "$CONFIG_FILES"
28716
28717
28718 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
28719 do
28720   case $ac_tag in
28721   :[FHLC]) ac_mode=$ac_tag; continue;;
28722   esac
28723   case $ac_mode$ac_tag in
28724   :[FHL]*:*);;
28725   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28726 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28727    { (exit 1); exit 1; }; };;
28728   :[FH]-) ac_tag=-:-;;
28729   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28730   esac
28731   ac_save_IFS=$IFS
28732   IFS=:
28733   set x $ac_tag
28734   IFS=$ac_save_IFS
28735   shift
28736   ac_file=$1
28737   shift
28738
28739   case $ac_mode in
28740   :L) ac_source=$1;;
28741   :[FH])
28742     ac_file_inputs=
28743     for ac_f
28744     do
28745       case $ac_f in
28746       -) ac_f="$tmp/stdin";;
28747       *) # Look for the file first in the build tree, then in the source tree
28748          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28749          # because $ac_f cannot contain `:'.
28750          test -f "$ac_f" ||
28751            case $ac_f in
28752            [\\/$]*) false;;
28753            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28754            esac ||
28755            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28756 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28757    { (exit 1); exit 1; }; };;
28758       esac
28759       ac_file_inputs="$ac_file_inputs $ac_f"
28760     done
28761
28762     # Let's still pretend it is `configure' which instantiates (i.e., don't
28763     # use $as_me), people would be surprised to read:
28764     #    /* config.h.  Generated by config.status.  */
28765     configure_input="Generated from "`IFS=:
28766           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28767     if test x"$ac_file" != x-; then
28768       configure_input="$ac_file.  $configure_input"
28769       { echo "$as_me:$LINENO: creating $ac_file" >&5
28770 echo "$as_me: creating $ac_file" >&6;}
28771     fi
28772
28773     case $ac_tag in
28774     *:-:* | *:-) cat >"$tmp/stdin";;
28775     esac
28776     ;;
28777   esac
28778
28779   ac_dir=`$as_dirname -- "$ac_file" ||
28780 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28781          X"$ac_file" : 'X\(//\)[^/]' \| \
28782          X"$ac_file" : 'X\(//\)$' \| \
28783          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28784 echo X"$ac_file" |
28785     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28786             s//\1/
28787             q
28788           }
28789           /^X\(\/\/\)[^/].*/{
28790             s//\1/
28791             q
28792           }
28793           /^X\(\/\/\)$/{
28794             s//\1/
28795             q
28796           }
28797           /^X\(\/\).*/{
28798             s//\1/
28799             q
28800           }
28801           s/.*/./; q'`
28802   { as_dir="$ac_dir"
28803   case $as_dir in #(
28804   -*) as_dir=./$as_dir;;
28805   esac
28806   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28807     as_dirs=
28808     while :; do
28809       case $as_dir in #(
28810       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28811       *) as_qdir=$as_dir;;
28812       esac
28813       as_dirs="'$as_qdir' $as_dirs"
28814       as_dir=`$as_dirname -- "$as_dir" ||
28815 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28816          X"$as_dir" : 'X\(//\)[^/]' \| \
28817          X"$as_dir" : 'X\(//\)$' \| \
28818          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28819 echo X"$as_dir" |
28820     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28821             s//\1/
28822             q
28823           }
28824           /^X\(\/\/\)[^/].*/{
28825             s//\1/
28826             q
28827           }
28828           /^X\(\/\/\)$/{
28829             s//\1/
28830             q
28831           }
28832           /^X\(\/\).*/{
28833             s//\1/
28834             q
28835           }
28836           s/.*/./; q'`
28837       test -d "$as_dir" && break
28838     done
28839     test -z "$as_dirs" || eval "mkdir $as_dirs"
28840   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28841 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28842    { (exit 1); exit 1; }; }; }
28843   ac_builddir=.
28844
28845 case "$ac_dir" in
28846 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28847 *)
28848   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28849   # A ".." for each directory in $ac_dir_suffix.
28850   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28851   case $ac_top_builddir_sub in
28852   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28853   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28854   esac ;;
28855 esac
28856 ac_abs_top_builddir=$ac_pwd
28857 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28858 # for backward compatibility:
28859 ac_top_builddir=$ac_top_build_prefix
28860
28861 case $srcdir in
28862   .)  # We are building in place.
28863     ac_srcdir=.
28864     ac_top_srcdir=$ac_top_builddir_sub
28865     ac_abs_top_srcdir=$ac_pwd ;;
28866   [\\/]* | ?:[\\/]* )  # Absolute name.
28867     ac_srcdir=$srcdir$ac_dir_suffix;
28868     ac_top_srcdir=$srcdir
28869     ac_abs_top_srcdir=$srcdir ;;
28870   *) # Relative name.
28871     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28872     ac_top_srcdir=$ac_top_build_prefix$srcdir
28873     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28874 esac
28875 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28876
28877
28878   case $ac_mode in
28879   :F)
28880   #
28881   # CONFIG_FILE
28882   #
28883
28884   case $INSTALL in
28885   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28886   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28887   esac
28888   ac_MKDIR_P=$MKDIR_P
28889   case $MKDIR_P in
28890   [\\/$]* | ?:[\\/]* ) ;;
28891   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28892   esac
28893 _ACEOF
28894
28895 cat >>$CONFIG_STATUS <<\_ACEOF
28896 # If the template does not know about datarootdir, expand it.
28897 # FIXME: This hack should be removed a few years after 2.60.
28898 ac_datarootdir_hack=; ac_datarootdir_seen=
28899
28900 case `sed -n '/datarootdir/ {
28901   p
28902   q
28903 }
28904 /@datadir@/p
28905 /@docdir@/p
28906 /@infodir@/p
28907 /@localedir@/p
28908 /@mandir@/p
28909 ' $ac_file_inputs` in
28910 *datarootdir*) ac_datarootdir_seen=yes;;
28911 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28912   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28913 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28914 _ACEOF
28915 cat >>$CONFIG_STATUS <<_ACEOF
28916   ac_datarootdir_hack='
28917   s&@datadir@&$datadir&g
28918   s&@docdir@&$docdir&g
28919   s&@infodir@&$infodir&g
28920   s&@localedir@&$localedir&g
28921   s&@mandir@&$mandir&g
28922     s&\\\${datarootdir}&$datarootdir&g' ;;
28923 esac
28924 _ACEOF
28925
28926 # Neutralize VPATH when `$srcdir' = `.'.
28927 # Shell code in configure.ac might set extrasub.
28928 # FIXME: do we really want to maintain this feature?
28929 cat >>$CONFIG_STATUS <<_ACEOF
28930   sed "$ac_vpsub
28931 $extrasub
28932 _ACEOF
28933 cat >>$CONFIG_STATUS <<\_ACEOF
28934 :t
28935 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28936 s&@configure_input@&$configure_input&;t t
28937 s&@top_builddir@&$ac_top_builddir_sub&;t t
28938 s&@srcdir@&$ac_srcdir&;t t
28939 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28940 s&@top_srcdir@&$ac_top_srcdir&;t t
28941 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28942 s&@builddir@&$ac_builddir&;t t
28943 s&@abs_builddir@&$ac_abs_builddir&;t t
28944 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28945 s&@INSTALL@&$ac_INSTALL&;t t
28946 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28947 $ac_datarootdir_hack
28948 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28949
28950 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28951   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28952   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28953   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28954 which seems to be undefined.  Please make sure it is defined." >&5
28955 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28956 which seems to be undefined.  Please make sure it is defined." >&2;}
28957
28958   rm -f "$tmp/stdin"
28959   case $ac_file in
28960   -) cat "$tmp/out"; rm -f "$tmp/out";;
28961   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28962   esac
28963  ;;
28964   :H)
28965   #
28966   # CONFIG_HEADER
28967   #
28968 _ACEOF
28969
28970 # Transform confdefs.h into a sed script `conftest.defines', that
28971 # substitutes the proper values into config.h.in to produce config.h.
28972 rm -f conftest.defines conftest.tail
28973 # First, append a space to every undef/define line, to ease matching.
28974 echo 's/$/ /' >conftest.defines
28975 # Then, protect against being on the right side of a sed subst, or in
28976 # an unquoted here document, in config.status.  If some macros were
28977 # called several times there might be several #defines for the same
28978 # symbol, which is useless.  But do not sort them, since the last
28979 # AC_DEFINE must be honored.
28980 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28981 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28982 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28983 # PARAMS is the parameter list in the macro definition--in most cases, it's
28984 # just an empty string.
28985 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
28986 ac_dB='\\)[      (].*,\\1define\\2'
28987 ac_dC=' '
28988 ac_dD=' ,'
28989
28990 uniq confdefs.h |
28991   sed -n '
28992         t rset
28993         :rset
28994         s/^[     ]*#[    ]*define[       ][      ]*//
28995         t ok
28996         d
28997         :ok
28998         s/[\\&,]/\\&/g
28999         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29000         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29001   ' >>conftest.defines
29002
29003 # Remove the space that was appended to ease matching.
29004 # Then replace #undef with comments.  This is necessary, for
29005 # example, in the case of _POSIX_SOURCE, which is predefined and required
29006 # on some systems where configure will not decide to define it.
29007 # (The regexp can be short, since the line contains either #define or #undef.)
29008 echo 's/ $//
29009 s,^[     #]*u.*,/* & */,' >>conftest.defines
29010
29011 # Break up conftest.defines:
29012 ac_max_sed_lines=50
29013
29014 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
29015 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
29016 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
29017 # et cetera.
29018 ac_in='$ac_file_inputs'
29019 ac_out='"$tmp/out1"'
29020 ac_nxt='"$tmp/out2"'
29021
29022 while :
29023 do
29024   # Write a here document:
29025     cat >>$CONFIG_STATUS <<_ACEOF
29026     # First, check the format of the line:
29027     cat >"\$tmp/defines.sed" <<\\CEOF
29028 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
29029 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
29030 b
29031 :def
29032 _ACEOF
29033   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
29034   echo 'CEOF
29035     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
29036   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
29037   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
29038   grep . conftest.tail >/dev/null || break
29039   rm -f conftest.defines
29040   mv conftest.tail conftest.defines
29041 done
29042 rm -f conftest.defines conftest.tail
29043
29044 echo "ac_result=$ac_in" >>$CONFIG_STATUS
29045 cat >>$CONFIG_STATUS <<\_ACEOF
29046   if test x"$ac_file" != x-; then
29047     echo "/* $configure_input  */" >"$tmp/config.h"
29048     cat "$ac_result" >>"$tmp/config.h"
29049     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
29050       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29051 echo "$as_me: $ac_file is unchanged" >&6;}
29052     else
29053       rm -f $ac_file
29054       mv "$tmp/config.h" $ac_file
29055     fi
29056   else
29057     echo "/* $configure_input  */"
29058     cat "$ac_result"
29059   fi
29060   rm -f "$tmp/out12"
29061 # Compute $ac_file's index in $config_headers.
29062 _am_arg=$ac_file
29063 _am_stamp_count=1
29064 for _am_header in $config_headers :; do
29065   case $_am_header in
29066     $_am_arg | $_am_arg:* )
29067       break ;;
29068     * )
29069       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29070   esac
29071 done
29072 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29073 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29074          X"$_am_arg" : 'X\(//\)[^/]' \| \
29075          X"$_am_arg" : 'X\(//\)$' \| \
29076          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29077 echo X"$_am_arg" |
29078     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29079             s//\1/
29080             q
29081           }
29082           /^X\(\/\/\)[^/].*/{
29083             s//\1/
29084             q
29085           }
29086           /^X\(\/\/\)$/{
29087             s//\1/
29088             q
29089           }
29090           /^X\(\/\).*/{
29091             s//\1/
29092             q
29093           }
29094           s/.*/./; q'`/stamp-h$_am_stamp_count
29095  ;;
29096
29097   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
29098 echo "$as_me: executing $ac_file commands" >&6;}
29099  ;;
29100   esac
29101
29102
29103   case $ac_file$ac_mode in
29104     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29105   # Strip MF so we end up with the name of the file.
29106   mf=`echo "$mf" | sed -e 's/:.*$//'`
29107   # Check whether this is an Automake generated Makefile or not.
29108   # We used to match only the files named `Makefile.in', but
29109   # some people rename them; so instead we look at the file content.
29110   # Grep'ing the first line is not enough: some people post-process
29111   # each Makefile.in and add a new line on top of each file to say so.
29112   # Grep'ing the whole file is not good either: AIX grep has a line
29113   # limit of 2048, but all sed's we know have understand at least 4000.
29114   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29115     dirpart=`$as_dirname -- "$mf" ||
29116 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29117          X"$mf" : 'X\(//\)[^/]' \| \
29118          X"$mf" : 'X\(//\)$' \| \
29119          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29120 echo X"$mf" |
29121     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29122             s//\1/
29123             q
29124           }
29125           /^X\(\/\/\)[^/].*/{
29126             s//\1/
29127             q
29128           }
29129           /^X\(\/\/\)$/{
29130             s//\1/
29131             q
29132           }
29133           /^X\(\/\).*/{
29134             s//\1/
29135             q
29136           }
29137           s/.*/./; q'`
29138   else
29139     continue
29140   fi
29141   # Extract the definition of DEPDIR, am__include, and am__quote
29142   # from the Makefile without running `make'.
29143   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29144   test -z "$DEPDIR" && continue
29145   am__include=`sed -n 's/^am__include = //p' < "$mf"`
29146   test -z "am__include" && continue
29147   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29148   # When using ansi2knr, U may be empty or an underscore; expand it
29149   U=`sed -n 's/^U = //p' < "$mf"`
29150   # Find all dependency output files, they are included files with
29151   # $(DEPDIR) in their names.  We invoke sed twice because it is the
29152   # simplest approach to changing $(DEPDIR) to its actual value in the
29153   # expansion.
29154   for file in `sed -n "
29155     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29156        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29157     # Make sure the directory exists.
29158     test -f "$dirpart/$file" && continue
29159     fdir=`$as_dirname -- "$file" ||
29160 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29161          X"$file" : 'X\(//\)[^/]' \| \
29162          X"$file" : 'X\(//\)$' \| \
29163          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29164 echo X"$file" |
29165     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29166             s//\1/
29167             q
29168           }
29169           /^X\(\/\/\)[^/].*/{
29170             s//\1/
29171             q
29172           }
29173           /^X\(\/\/\)$/{
29174             s//\1/
29175             q
29176           }
29177           /^X\(\/\).*/{
29178             s//\1/
29179             q
29180           }
29181           s/.*/./; q'`
29182     { as_dir=$dirpart/$fdir
29183   case $as_dir in #(
29184   -*) as_dir=./$as_dir;;
29185   esac
29186   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29187     as_dirs=
29188     while :; do
29189       case $as_dir in #(
29190       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29191       *) as_qdir=$as_dir;;
29192       esac
29193       as_dirs="'$as_qdir' $as_dirs"
29194       as_dir=`$as_dirname -- "$as_dir" ||
29195 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29196          X"$as_dir" : 'X\(//\)[^/]' \| \
29197          X"$as_dir" : 'X\(//\)$' \| \
29198          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29199 echo X"$as_dir" |
29200     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29201             s//\1/
29202             q
29203           }
29204           /^X\(\/\/\)[^/].*/{
29205             s//\1/
29206             q
29207           }
29208           /^X\(\/\/\)$/{
29209             s//\1/
29210             q
29211           }
29212           /^X\(\/\).*/{
29213             s//\1/
29214             q
29215           }
29216           s/.*/./; q'`
29217       test -d "$as_dir" && break
29218     done
29219     test -z "$as_dirs" || eval "mkdir $as_dirs"
29220   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29221 echo "$as_me: error: cannot create directory $as_dir" >&2;}
29222    { (exit 1); exit 1; }; }; }
29223     # echo "creating $dirpart/$file"
29224     echo '# dummy' > "$dirpart/$file"
29225   done
29226 done
29227  ;;
29228     "tools/graspe-slave":F)
29229     for file in                                                 \
29230      tools/graspe-slave           tools/graspe-master           \
29231     ; do                                                        \
29232       test -e $file && chmod +x $file;                          \
29233     done
29234  ;;
29235     "testsuite/Makefile":F)
29236     for file in                                                 \
29237      testsuite/run_tests                                        \
29238     ; do                                                        \
29239       test -e $file && chmod +x $file;                          \
29240     done
29241  ;;
29242     "testsuite/run_tests":F)
29243     for file in                                                 \
29244      testsuite/run_tests                                        \
29245     ; do                                                        \
29246       test -e $file && chmod +x $file;                          \
29247     done
29248  ;;
29249
29250   esac
29251 done # for ac_tag
29252
29253
29254 { (exit 0); exit 0; }
29255 _ACEOF
29256 chmod +x $CONFIG_STATUS
29257 ac_clean_files=$ac_clean_files_save
29258
29259
29260 # configure is writing to config.log, and then calls config.status.
29261 # config.status does its own redirection, appending to config.log.
29262 # Unfortunately, on DOS this fails, as config.log is still kept open
29263 # by configure, so config.status won't be able to write to it; its
29264 # output is simply discarded.  So we exec the FD to /dev/null,
29265 # effectively closing config.log, so it can be properly (re)opened and
29266 # appended to by config.status.  When coming back to configure, we
29267 # need to make the FD available again.
29268 if test "$no_create" != yes; then
29269   ac_cs_success=:
29270   ac_config_status_args=
29271   test "$silent" = yes &&
29272     ac_config_status_args="$ac_config_status_args --quiet"
29273   exec 5>/dev/null
29274   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29275   exec 5>>config.log
29276   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29277   # would make configure fail if this is the last instruction.
29278   $ac_cs_success || { (exit 1); exit 1; }
29279 fi
29280
29281
29282 echo "
29283
29284 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
29285
29286         Compiler:        ${CC} (version: ${GCC_VERSION})
29287
29288         CFlags:          ${CFLAGS}
29289         CPPFlags:        ${CPPFLAGS}
29290         LDFlags:         ${LDFLAGS}
29291
29292         Context backend: ${with_context}
29293         Compile Java:    ${use_java}
29294
29295         Maintainer mode: ${USE_MAINTAINER_MODE}
29296
29297 "
29298 if test x$botbuild = xyes ; then
29299   echo "        This is a bot build. Do not specify --enable-botbuild if you are not a bot."
29300   echo
29301 fi
29302
29303 if test -e .svn && test x$USE_MAINTAINER_MODE != xyes && test x$botbuild = xyes ; then
29304   echo "WARNING: "
29305   echo "WARNING: You are compiling the SVN in botbuild mode. If you are not a daemon, don't do so. "
29306   echo "WARNING: Remove the --enable-botbuild from your configure line, and add --enable-maintainer-mode instead."
29307   echo "WARNING:"
29308   echo "WARNING: You won't be able to build archives until then (make dist is likely to fail). "
29309   echo "WARNING:"
29310 fi
29311
29312 echo $build_id > stamp.configure
29313
29314 exit 0;