Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
311500616b0898a2f2daad18db121e4219a92be9
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.158 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for simgrid 3.3-cvs.
5 #
6 # Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 case X$ECHO in
560 X*--fallback-echo)
561   # Remove one level of quotation (which was required for Make).
562   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563   ;;
564 esac
565
566 echo=${ECHO-echo}
567 if test "X$1" = X--no-reexec; then
568   # Discard the --no-reexec flag, and continue.
569   shift
570 elif test "X$1" = X--fallback-echo; then
571   # Avoid inline document here, it may be left over
572   :
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574   # Yippee, $echo works!
575   :
576 else
577   # Restart under the correct shell.
578   exec $SHELL "$0" --no-reexec ${1+"$@"}
579 fi
580
581 if test "X$1" = X--fallback-echo; then
582   # used as fallback echo
583   shift
584   cat <<EOF
585 $*
586 EOF
587   exit 0
588 fi
589
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 # if CDPATH is set.
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600        echo_test_string=`eval $cmd` &&
601        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602     then
603       break
604     fi
605   done
606 fi
607
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610    test "X$echo_testing_string" = "X$echo_test_string"; then
611   :
612 else
613   # The Solaris, AIX, and Digital Unix default echo programs unquote
614   # backslashes.  This makes it impossible to quote backslashes using
615   #   echo "$something" | sed 's/\\/\\\\/g'
616   #
617   # So, first we look for a working echo in the user's PATH.
618
619   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620   for dir in $PATH /usr/ucb; do
621     IFS="$lt_save_ifs"
622     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625        test "X$echo_testing_string" = "X$echo_test_string"; then
626       echo="$dir/echo"
627       break
628     fi
629   done
630   IFS="$lt_save_ifs"
631
632   if test "X$echo" = Xecho; then
633     # We didn't find a better echo, so look for alternatives.
634     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636        test "X$echo_testing_string" = "X$echo_test_string"; then
637       # This shell has a builtin print -r that does the trick.
638       echo='print -r'
639     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640          test "X$CONFIG_SHELL" != X/bin/ksh; then
641       # If we have ksh, try running configure again with it.
642       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643       export ORIGINAL_CONFIG_SHELL
644       CONFIG_SHELL=/bin/ksh
645       export CONFIG_SHELL
646       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647     else
648       # Try using printf.
649       echo='printf %s\n'
650       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652          test "X$echo_testing_string" = "X$echo_test_string"; then
653         # Cool, printf works
654         :
655       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656            test "X$echo_testing_string" = 'X\t' &&
657            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658            test "X$echo_testing_string" = "X$echo_test_string"; then
659         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660         export CONFIG_SHELL
661         SHELL="$CONFIG_SHELL"
662         export SHELL
663         echo="$CONFIG_SHELL $0 --fallback-echo"
664       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665            test "X$echo_testing_string" = 'X\t' &&
666            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667            test "X$echo_testing_string" = "X$echo_test_string"; then
668         echo="$CONFIG_SHELL $0 --fallback-echo"
669       else
670         # maybe with a smaller string...
671         prev=:
672
673         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675           then
676             break
677           fi
678           prev="$cmd"
679         done
680
681         if test "$prev" != 'sed 50q "$0"'; then
682           echo_test_string=`eval $prev`
683           export echo_test_string
684           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685         else
686           # Oops.  We lost completely, so just stick with echo.
687           echo=echo
688         fi
689       fi
690     fi
691   fi
692 fi
693 fi
694
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
697 ECHO=$echo
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
700 fi
701
702
703
704
705 tagnames=${tagnames+${tagnames},}CXX
706
707 tagnames=${tagnames+${tagnames},}F77
708
709 exec 7<&0 </dev/null 6>&1
710
711 # Name of the host.
712 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713 # so uname gets run too.
714 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
715
716 #
717 # Initializations.
718 #
719 ac_default_prefix=/usr/local
720 ac_clean_files=
721 ac_config_libobj_dir=.
722 LIBOBJS=
723 cross_compiling=no
724 subdirs=
725 MFLAGS=
726 MAKEFLAGS=
727 SHELL=${CONFIG_SHELL-/bin/sh}
728
729 # Identity of this package.
730 PACKAGE_NAME='simgrid'
731 PACKAGE_TARNAME='simgrid'
732 PACKAGE_VERSION='3.3-cvs'
733 PACKAGE_STRING='simgrid 3.3-cvs'
734 PACKAGE_BUGREPORT='simgrid-devel@lists.gforge.inria.fr'
735
736 ac_unique_file="include/gras.h"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
739 #include <stdio.h>
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
742 #endif
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
745 #endif
746 #ifdef STDC_HEADERS
747 # include <stdlib.h>
748 # include <stddef.h>
749 #else
750 # ifdef HAVE_STDLIB_H
751 #  include <stdlib.h>
752 # endif
753 #endif
754 #ifdef HAVE_STRING_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #  include <memory.h>
757 # endif
758 # include <string.h>
759 #endif
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
762 #endif
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
765 #endif
766 #ifdef HAVE_STDINT_H
767 # include <stdint.h>
768 #endif
769 #ifdef HAVE_UNISTD_H
770 # include <unistd.h>
771 #endif"
772
773 ac_subst_vars='SHELL
774 PATH_SEPARATOR
775 PACKAGE_NAME
776 PACKAGE_TARNAME
777 PACKAGE_VERSION
778 PACKAGE_STRING
779 PACKAGE_BUGREPORT
780 exec_prefix
781 prefix
782 program_transform_name
783 bindir
784 sbindir
785 libexecdir
786 datarootdir
787 datadir
788 sysconfdir
789 sharedstatedir
790 localstatedir
791 includedir
792 oldincludedir
793 docdir
794 infodir
795 htmldir
796 dvidir
797 pdfdir
798 psdir
799 libdir
800 localedir
801 mandir
802 DEFS
803 ECHO_C
804 ECHO_N
805 ECHO_T
806 LIBS
807 build_alias
808 host_alias
809 target_alias
810 build
811 build_cpu
812 build_vendor
813 build_os
814 host
815 host_cpu
816 host_vendor
817 host_os
818 target
819 target_cpu
820 target_vendor
821 target_os
822 INSTALL_PROGRAM
823 INSTALL_SCRIPT
824 INSTALL_DATA
825 CYGPATH_W
826 PACKAGE
827 VERSION
828 ACLOCAL
829 AUTOCONF
830 AUTOMAKE
831 AUTOHEADER
832 MAKEINFO
833 install_sh
834 STRIP
835 INSTALL_STRIP_PROGRAM
836 mkdir_p
837 AWK
838 SET_MAKE
839 am__leading_dot
840 AMTAR
841 am__tar
842 am__untar
843 CC
844 CFLAGS
845 LDFLAGS
846 CPPFLAGS
847 ac_ct_CC
848 EXEEXT
849 OBJEXT
850 DEPDIR
851 am__include
852 am__quote
853 AMDEP_TRUE
854 AMDEP_FALSE
855 AMDEPBACKSLASH
856 CCDEPMODE
857 am__fastdepCC_TRUE
858 am__fastdepCC_FALSE
859 GREP
860 EGREP
861 LN_S
862 ECHO
863 AR
864 RANLIB
865 DLLTOOL
866 AS
867 OBJDUMP
868 CPP
869 CXX
870 CXXFLAGS
871 ac_ct_CXX
872 CXXDEPMODE
873 am__fastdepCXX_TRUE
874 am__fastdepCXX_FALSE
875 CXXCPP
876 LIBTOOL
877 LIBOBJS
878 GRAS_ARCH_32_BITS_TRUE
879 GRAS_ARCH_32_BITS_FALSE
880 PTH_STACK_GROWTH
881 pth_skaddr_makecontext
882 pth_sksize_makecontext
883 USE_SIMIX_TRUE
884 USE_SIMIX_FALSE
885 GTNETS_CFLAGS
886 GTNETS_LDFLAGS
887 USE_GTNETS_TRUE
888 USE_GTNETS_FALSE
889 HAVE_SDP_TRUE
890 HAVE_SDP_FALSE
891 SIMGRID_DEP
892 AM_CFLAGS
893 GRAS_DEP
894 GRAMINE_MODE_TRUE
895 GRAMINE_MODE_FALSE
896 MAINTAINER_MODE_TRUE
897 MAINTAINER_MODE_FALSE
898 MAINT
899 LD_DYNAMIC_FLAGS
900 abs_builddir
901 abs_srcdir
902 abs_top_builddir
903 abs_top_srcdir
904 BASH
905 WARNING
906 LEX
907 LEX_OUTPUT_ROOT
908 LEXLIB
909 FLEXML
910 HAVE_FLEXML_TRUE
911 HAVE_FLEXML_FALSE
912 DOXYGEN
913 ADDR2LINE
914 ac_configure_args
915 MD5SUM
916 build_id
917 LTLIBOBJS'
918 ac_subst_files=''
919       ac_precious_vars='build_alias
920 host_alias
921 target_alias
922 CC
923 CFLAGS
924 LDFLAGS
925 LIBS
926 CPPFLAGS
927 CPP
928 CXX
929 CXXFLAGS
930 CCC
931 CXXCPP'
932
933
934 # Initialize some variables set by options.
935 ac_init_help=
936 ac_init_version=false
937 # The variables have the same names as the options, with
938 # dashes changed to underlines.
939 cache_file=/dev/null
940 exec_prefix=NONE
941 no_create=
942 no_recursion=
943 prefix=NONE
944 program_prefix=NONE
945 program_suffix=NONE
946 program_transform_name=s,x,x,
947 silent=
948 site=
949 srcdir=
950 verbose=
951 x_includes=NONE
952 x_libraries=NONE
953
954 # Installation directory options.
955 # These are left unexpanded so users can "make install exec_prefix=/foo"
956 # and all the variables that are supposed to be based on exec_prefix
957 # by default will actually change.
958 # Use braces instead of parens because sh, perl, etc. also accept them.
959 # (The list follows the same order as the GNU Coding Standards.)
960 bindir='${exec_prefix}/bin'
961 sbindir='${exec_prefix}/sbin'
962 libexecdir='${exec_prefix}/libexec'
963 datarootdir='${prefix}/share'
964 datadir='${datarootdir}'
965 sysconfdir='${prefix}/etc'
966 sharedstatedir='${prefix}/com'
967 localstatedir='${prefix}/var'
968 includedir='${prefix}/include'
969 oldincludedir='/usr/include'
970 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
971 infodir='${datarootdir}/info'
972 htmldir='${docdir}'
973 dvidir='${docdir}'
974 pdfdir='${docdir}'
975 psdir='${docdir}'
976 libdir='${exec_prefix}/lib'
977 localedir='${datarootdir}/locale'
978 mandir='${datarootdir}/man'
979
980 ac_prev=
981 ac_dashdash=
982 for ac_option
983 do
984   # If the previous option needs an argument, assign it.
985   if test -n "$ac_prev"; then
986     eval $ac_prev=\$ac_option
987     ac_prev=
988     continue
989   fi
990
991   case $ac_option in
992   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
993   *)    ac_optarg=yes ;;
994   esac
995
996   # Accept the important Cygnus configure options, so we can diagnose typos.
997
998   case $ac_dashdash$ac_option in
999   --)
1000     ac_dashdash=yes ;;
1001
1002   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1003     ac_prev=bindir ;;
1004   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1005     bindir=$ac_optarg ;;
1006
1007   -build | --build | --buil | --bui | --bu)
1008     ac_prev=build_alias ;;
1009   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1010     build_alias=$ac_optarg ;;
1011
1012   -cache-file | --cache-file | --cache-fil | --cache-fi \
1013   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1014     ac_prev=cache_file ;;
1015   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1016   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1017     cache_file=$ac_optarg ;;
1018
1019   --config-cache | -C)
1020     cache_file=config.cache ;;
1021
1022   -datadir | --datadir | --datadi | --datad)
1023     ac_prev=datadir ;;
1024   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1025     datadir=$ac_optarg ;;
1026
1027   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1028   | --dataroo | --dataro | --datar)
1029     ac_prev=datarootdir ;;
1030   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1031   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1032     datarootdir=$ac_optarg ;;
1033
1034   -disable-* | --disable-*)
1035     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1036     # Reject names that are not valid shell variable names.
1037     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1038       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1039    { (exit 1); exit 1; }; }
1040     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1041     eval enable_$ac_feature=no ;;
1042
1043   -docdir | --docdir | --docdi | --doc | --do)
1044     ac_prev=docdir ;;
1045   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1046     docdir=$ac_optarg ;;
1047
1048   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1049     ac_prev=dvidir ;;
1050   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1051     dvidir=$ac_optarg ;;
1052
1053   -enable-* | --enable-*)
1054     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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=\$ac_optarg ;;
1061
1062   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064   | --exec | --exe | --ex)
1065     ac_prev=exec_prefix ;;
1066   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068   | --exec=* | --exe=* | --ex=*)
1069     exec_prefix=$ac_optarg ;;
1070
1071   -gas | --gas | --ga | --g)
1072     # Obsolete; use --with-gas.
1073     with_gas=yes ;;
1074
1075   -help | --help | --hel | --he | -h)
1076     ac_init_help=long ;;
1077   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078     ac_init_help=recursive ;;
1079   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080     ac_init_help=short ;;
1081
1082   -host | --host | --hos | --ho)
1083     ac_prev=host_alias ;;
1084   -host=* | --host=* | --hos=* | --ho=*)
1085     host_alias=$ac_optarg ;;
1086
1087   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1088     ac_prev=htmldir ;;
1089   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1090   | --ht=*)
1091     htmldir=$ac_optarg ;;
1092
1093   -includedir | --includedir | --includedi | --included | --include \
1094   | --includ | --inclu | --incl | --inc)
1095     ac_prev=includedir ;;
1096   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097   | --includ=* | --inclu=* | --incl=* | --inc=*)
1098     includedir=$ac_optarg ;;
1099
1100   -infodir | --infodir | --infodi | --infod | --info | --inf)
1101     ac_prev=infodir ;;
1102   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1103     infodir=$ac_optarg ;;
1104
1105   -libdir | --libdir | --libdi | --libd)
1106     ac_prev=libdir ;;
1107   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1108     libdir=$ac_optarg ;;
1109
1110   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111   | --libexe | --libex | --libe)
1112     ac_prev=libexecdir ;;
1113   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114   | --libexe=* | --libex=* | --libe=*)
1115     libexecdir=$ac_optarg ;;
1116
1117   -localedir | --localedir | --localedi | --localed | --locale)
1118     ac_prev=localedir ;;
1119   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120     localedir=$ac_optarg ;;
1121
1122   -localstatedir | --localstatedir | --localstatedi | --localstated \
1123   | --localstate | --localstat | --localsta | --localst | --locals)
1124     ac_prev=localstatedir ;;
1125   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1126   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1127     localstatedir=$ac_optarg ;;
1128
1129   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1130     ac_prev=mandir ;;
1131   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1132     mandir=$ac_optarg ;;
1133
1134   -nfp | --nfp | --nf)
1135     # Obsolete; use --without-fp.
1136     with_fp=no ;;
1137
1138   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1139   | --no-cr | --no-c | -n)
1140     no_create=yes ;;
1141
1142   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1144     no_recursion=yes ;;
1145
1146   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148   | --oldin | --oldi | --old | --ol | --o)
1149     ac_prev=oldincludedir ;;
1150   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1153     oldincludedir=$ac_optarg ;;
1154
1155   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1156     ac_prev=prefix ;;
1157   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1158     prefix=$ac_optarg ;;
1159
1160   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1161   | --program-pre | --program-pr | --program-p)
1162     ac_prev=program_prefix ;;
1163   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1164   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1165     program_prefix=$ac_optarg ;;
1166
1167   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1168   | --program-suf | --program-su | --program-s)
1169     ac_prev=program_suffix ;;
1170   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1171   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1172     program_suffix=$ac_optarg ;;
1173
1174   -program-transform-name | --program-transform-name \
1175   | --program-transform-nam | --program-transform-na \
1176   | --program-transform-n | --program-transform- \
1177   | --program-transform | --program-transfor \
1178   | --program-transfo | --program-transf \
1179   | --program-trans | --program-tran \
1180   | --progr-tra | --program-tr | --program-t)
1181     ac_prev=program_transform_name ;;
1182   -program-transform-name=* | --program-transform-name=* \
1183   | --program-transform-nam=* | --program-transform-na=* \
1184   | --program-transform-n=* | --program-transform-=* \
1185   | --program-transform=* | --program-transfor=* \
1186   | --program-transfo=* | --program-transf=* \
1187   | --program-trans=* | --program-tran=* \
1188   | --progr-tra=* | --program-tr=* | --program-t=*)
1189     program_transform_name=$ac_optarg ;;
1190
1191   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1192     ac_prev=pdfdir ;;
1193   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194     pdfdir=$ac_optarg ;;
1195
1196   -psdir | --psdir | --psdi | --psd | --ps)
1197     ac_prev=psdir ;;
1198   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1199     psdir=$ac_optarg ;;
1200
1201   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202   | -silent | --silent | --silen | --sile | --sil)
1203     silent=yes ;;
1204
1205   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206     ac_prev=sbindir ;;
1207   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208   | --sbi=* | --sb=*)
1209     sbindir=$ac_optarg ;;
1210
1211   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213   | --sharedst | --shareds | --shared | --share | --shar \
1214   | --sha | --sh)
1215     ac_prev=sharedstatedir ;;
1216   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219   | --sha=* | --sh=*)
1220     sharedstatedir=$ac_optarg ;;
1221
1222   -site | --site | --sit)
1223     ac_prev=site ;;
1224   -site=* | --site=* | --sit=*)
1225     site=$ac_optarg ;;
1226
1227   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228     ac_prev=srcdir ;;
1229   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230     srcdir=$ac_optarg ;;
1231
1232   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233   | --syscon | --sysco | --sysc | --sys | --sy)
1234     ac_prev=sysconfdir ;;
1235   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237     sysconfdir=$ac_optarg ;;
1238
1239   -target | --target | --targe | --targ | --tar | --ta | --t)
1240     ac_prev=target_alias ;;
1241   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242     target_alias=$ac_optarg ;;
1243
1244   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245     verbose=yes ;;
1246
1247   -version | --version | --versio | --versi | --vers | -V)
1248     ac_init_version=: ;;
1249
1250   -with-* | --with-*)
1251     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252     # Reject names that are not valid shell variable names.
1253     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254       { echo "$as_me: error: invalid package name: $ac_package" >&2
1255    { (exit 1); exit 1; }; }
1256     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1257     eval with_$ac_package=\$ac_optarg ;;
1258
1259   -without-* | --without-*)
1260     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1261     # Reject names that are not valid shell variable names.
1262     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263       { echo "$as_me: error: invalid package name: $ac_package" >&2
1264    { (exit 1); exit 1; }; }
1265     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1266     eval with_$ac_package=no ;;
1267
1268   --x)
1269     # Obsolete; use --with-x.
1270     with_x=yes ;;
1271
1272   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273   | --x-incl | --x-inc | --x-in | --x-i)
1274     ac_prev=x_includes ;;
1275   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1277     x_includes=$ac_optarg ;;
1278
1279   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281     ac_prev=x_libraries ;;
1282   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1284     x_libraries=$ac_optarg ;;
1285
1286   -*) { echo "$as_me: error: unrecognized option: $ac_option
1287 Try \`$0 --help' for more information." >&2
1288    { (exit 1); exit 1; }; }
1289     ;;
1290
1291   *=*)
1292     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1293     # Reject names that are not valid shell variable names.
1294     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1295       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1296    { (exit 1); exit 1; }; }
1297     eval $ac_envvar=\$ac_optarg
1298     export $ac_envvar ;;
1299
1300   *)
1301     # FIXME: should be removed in autoconf 3.0.
1302     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1304       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1306     ;;
1307
1308   esac
1309 done
1310
1311 if test -n "$ac_prev"; then
1312   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1313   { echo "$as_me: error: missing argument to $ac_option" >&2
1314    { (exit 1); exit 1; }; }
1315 fi
1316
1317 # Be sure to have absolute directory names.
1318 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1319                 datadir sysconfdir sharedstatedir localstatedir includedir \
1320                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1321                 libdir localedir mandir
1322 do
1323   eval ac_val=\$$ac_var
1324   case $ac_val in
1325     [\\/$]* | ?:[\\/]* )  continue;;
1326     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327   esac
1328   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1329    { (exit 1); exit 1; }; }
1330 done
1331
1332 # There might be people who depend on the old broken behavior: `$host'
1333 # used to hold the argument of --host etc.
1334 # FIXME: To remove some day.
1335 build=$build_alias
1336 host=$host_alias
1337 target=$target_alias
1338
1339 # FIXME: To remove some day.
1340 if test "x$host_alias" != x; then
1341   if test "x$build_alias" = x; then
1342     cross_compiling=maybe
1343     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1344     If a cross compiler is detected then cross compile mode will be used." >&2
1345   elif test "x$build_alias" != "x$host_alias"; then
1346     cross_compiling=yes
1347   fi
1348 fi
1349
1350 ac_tool_prefix=
1351 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1352
1353 test "$silent" = yes && exec 6>/dev/null
1354
1355
1356 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1357 ac_ls_di=`ls -di .` &&
1358 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1359   { echo "$as_me: error: Working directory cannot be determined" >&2
1360    { (exit 1); exit 1; }; }
1361 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1362   { echo "$as_me: error: pwd does not report name of working directory" >&2
1363    { (exit 1); exit 1; }; }
1364
1365
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368   ac_srcdir_defaulted=yes
1369   # Try the directory containing this script, then the parent directory.
1370   ac_confdir=`$as_dirname -- "$0" ||
1371 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372          X"$0" : 'X\(//\)[^/]' \| \
1373          X"$0" : 'X\(//\)$' \| \
1374          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1375 echo X"$0" |
1376     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377             s//\1/
1378             q
1379           }
1380           /^X\(\/\/\)[^/].*/{
1381             s//\1/
1382             q
1383           }
1384           /^X\(\/\/\)$/{
1385             s//\1/
1386             q
1387           }
1388           /^X\(\/\).*/{
1389             s//\1/
1390             q
1391           }
1392           s/.*/./; q'`
1393   srcdir=$ac_confdir
1394   if test ! -r "$srcdir/$ac_unique_file"; then
1395     srcdir=..
1396   fi
1397 else
1398   ac_srcdir_defaulted=no
1399 fi
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1403    { (exit 1); exit 1; }; }
1404 fi
1405 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1406 ac_abs_confdir=`(
1407         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1408    { (exit 1); exit 1; }; }
1409         pwd)`
1410 # When building in place, set srcdir=.
1411 if test "$ac_abs_confdir" = "$ac_pwd"; then
1412   srcdir=.
1413 fi
1414 # Remove unnecessary trailing slashes from srcdir.
1415 # Double slashes in file names in object file debugging info
1416 # mess up M-x gdb in Emacs.
1417 case $srcdir in
1418 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419 esac
1420 for ac_var in $ac_precious_vars; do
1421   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422   eval ac_env_${ac_var}_value=\$${ac_var}
1423   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425 done
1426
1427 #
1428 # Report the --help message.
1429 #
1430 if test "$ac_init_help" = "long"; then
1431   # Omit some internal or obsolete options to make the list less imposing.
1432   # This message is too long to be a string in the A/UX 3.1 sh.
1433   cat <<_ACEOF
1434 \`configure' configures simgrid 3.3-cvs to adapt to many kinds of systems.
1435
1436 Usage: $0 [OPTION]... [VAR=VALUE]...
1437
1438 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439 VAR=VALUE.  See below for descriptions of some of the useful variables.
1440
1441 Defaults for the options are specified in brackets.
1442
1443 Configuration:
1444   -h, --help              display this help and exit
1445       --help=short        display options specific to this package
1446       --help=recursive    display the short help of all the included packages
1447   -V, --version           display version information and exit
1448   -q, --quiet, --silent   do not print \`checking...' messages
1449       --cache-file=FILE   cache test results in FILE [disabled]
1450   -C, --config-cache      alias for \`--cache-file=config.cache'
1451   -n, --no-create         do not create output files
1452       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1453
1454 Installation directories:
1455   --prefix=PREFIX         install architecture-independent files in PREFIX
1456                           [$ac_default_prefix]
1457   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1458                           [PREFIX]
1459
1460 By default, \`make install' will install all the files in
1461 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1462 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463 for instance \`--prefix=\$HOME'.
1464
1465 For better control, use the options below.
1466
1467 Fine tuning of the installation directories:
1468   --bindir=DIR           user executables [EPREFIX/bin]
1469   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1470   --libexecdir=DIR       program executables [EPREFIX/libexec]
1471   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1472   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1473   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1474   --libdir=DIR           object code libraries [EPREFIX/lib]
1475   --includedir=DIR       C header files [PREFIX/include]
1476   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1477   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1478   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1479   --infodir=DIR          info documentation [DATAROOTDIR/info]
1480   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1481   --mandir=DIR           man documentation [DATAROOTDIR/man]
1482   --docdir=DIR           documentation root [DATAROOTDIR/doc/simgrid]
1483   --htmldir=DIR          html documentation [DOCDIR]
1484   --dvidir=DIR           dvi documentation [DOCDIR]
1485   --pdfdir=DIR           pdf documentation [DOCDIR]
1486   --psdir=DIR            ps documentation [DOCDIR]
1487 _ACEOF
1488
1489   cat <<\_ACEOF
1490
1491 Program names:
1492   --program-prefix=PREFIX            prepend PREFIX to installed program names
1493   --program-suffix=SUFFIX            append SUFFIX to installed program names
1494   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1495
1496 System types:
1497   --build=BUILD     configure for building on BUILD [guessed]
1498   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1499   --target=TARGET   configure for building compilers for TARGET [HOST]
1500 _ACEOF
1501 fi
1502
1503 if test -n "$ac_init_help"; then
1504   case $ac_init_help in
1505      short | recursive ) echo "Configuration of simgrid 3.3-cvs:";;
1506    esac
1507   cat <<\_ACEOF
1508
1509 Optional Features:
1510   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1511   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1512   --enable-shared[=PKGS]  build shared libraries [default=yes]
1513   --enable-static[=PKGS]  build static libraries [default=yes]
1514   --enable-fast-install[=PKGS]
1515                           optimize for fast installation [default=yes]
1516   --disable-dependency-tracking  speeds up one-time build
1517   --enable-dependency-tracking   do not reject slow dependency extractors
1518   --disable-libtool-lock  avoid locking (might break parallel builds)
1519   --enable-simix          Use the new SimIX module (default=no)
1520   --enable-maintainer-mode  enable make rules and dependencies not useful
1521                           (and sometimes confusing) to the casual installer
1522   --enable-compile-warnings
1523                           use compiler warnings (default=no, unless in
1524                           maintainer mode)
1525   --disable-compile-optimizations
1526                           use compiler optimizations (default=yes, unless if
1527                           CFLAGS is explicitly set)
1528
1529 Optional Packages:
1530   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1531   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1532   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1533   --with-pic              try to use only PIC/non-PIC objects [default=use
1534                           both]
1535   --with-tags[=TAGS]      include additional configurations [automatic]
1536   --with-pthread   Use pthread instead of ucontext.
1537   --with-pthreads   Use pthread instead of ucontext.
1538   --with-context=ucontext/pthread   Use either (System V) swapcontext or pthread [default=auto].
1539   --with-gtnets           Path to GTNetS installation (default to empty, ie
1540                           not using GTNetS)
1541
1542 Some influential environment variables:
1543   CC          C compiler command
1544   CFLAGS      C compiler flags
1545   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1546               nonstandard directory <lib dir>
1547   LIBS        libraries to pass to the linker, e.g. -l<library>
1548   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1549               you have headers in a nonstandard directory <include dir>
1550   CPP         C preprocessor
1551   CXX         C++ compiler command
1552   CXXFLAGS    C++ compiler flags
1553   CXXCPP      C++ preprocessor
1554
1555 Use these variables to override the choices made by `configure' or to help
1556 it to find libraries and programs with nonstandard names/locations.
1557
1558 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1559 _ACEOF
1560 ac_status=$?
1561 fi
1562
1563 if test "$ac_init_help" = "recursive"; then
1564   # If there are subdirs, report their specific --help.
1565   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1566     test -d "$ac_dir" || continue
1567     ac_builddir=.
1568
1569 case "$ac_dir" in
1570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *)
1572   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1573   # A ".." for each directory in $ac_dir_suffix.
1574   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1575   case $ac_top_builddir_sub in
1576   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1578   esac ;;
1579 esac
1580 ac_abs_top_builddir=$ac_pwd
1581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1582 # for backward compatibility:
1583 ac_top_builddir=$ac_top_build_prefix
1584
1585 case $srcdir in
1586   .)  # We are building in place.
1587     ac_srcdir=.
1588     ac_top_srcdir=$ac_top_builddir_sub
1589     ac_abs_top_srcdir=$ac_pwd ;;
1590   [\\/]* | ?:[\\/]* )  # Absolute name.
1591     ac_srcdir=$srcdir$ac_dir_suffix;
1592     ac_top_srcdir=$srcdir
1593     ac_abs_top_srcdir=$srcdir ;;
1594   *) # Relative name.
1595     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1596     ac_top_srcdir=$ac_top_build_prefix$srcdir
1597     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1598 esac
1599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1600
1601     cd "$ac_dir" || { ac_status=$?; continue; }
1602     # Check for guested configure.
1603     if test -f "$ac_srcdir/configure.gnu"; then
1604       echo &&
1605       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1606     elif test -f "$ac_srcdir/configure"; then
1607       echo &&
1608       $SHELL "$ac_srcdir/configure" --help=recursive
1609     else
1610       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1611     fi || ac_status=$?
1612     cd "$ac_pwd" || { ac_status=$?; break; }
1613   done
1614 fi
1615
1616 test -n "$ac_init_help" && exit $ac_status
1617 if $ac_init_version; then
1618   cat <<\_ACEOF
1619 simgrid configure 3.3-cvs
1620 generated by GNU Autoconf 2.61
1621
1622 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1623 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1624 This configure script is free software; the Free Software Foundation
1625 gives unlimited permission to copy, distribute and modify it.
1626 _ACEOF
1627   exit
1628 fi
1629 cat >config.log <<_ACEOF
1630 This file contains any messages produced by compilers while
1631 running configure, to aid debugging if configure makes a mistake.
1632
1633 It was created by simgrid $as_me 3.3-cvs, which was
1634 generated by GNU Autoconf 2.61.  Invocation command line was
1635
1636   $ $0 $@
1637
1638 _ACEOF
1639 exec 5>>config.log
1640 {
1641 cat <<_ASUNAME
1642 ## --------- ##
1643 ## Platform. ##
1644 ## --------- ##
1645
1646 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1647 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1648 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1649 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1650 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1651
1652 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1653 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1654
1655 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1656 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1657 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1658 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1659 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1660 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1661 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1662
1663 _ASUNAME
1664
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 for as_dir in $PATH
1667 do
1668   IFS=$as_save_IFS
1669   test -z "$as_dir" && as_dir=.
1670   echo "PATH: $as_dir"
1671 done
1672 IFS=$as_save_IFS
1673
1674 } >&5
1675
1676 cat >&5 <<_ACEOF
1677
1678
1679 ## ----------- ##
1680 ## Core tests. ##
1681 ## ----------- ##
1682
1683 _ACEOF
1684
1685
1686 # Keep a trace of the command line.
1687 # Strip out --no-create and --no-recursion so they do not pile up.
1688 # Strip out --silent because we don't want to record it for future runs.
1689 # Also quote any args containing shell meta-characters.
1690 # Make two passes to allow for proper duplicate-argument suppression.
1691 ac_configure_args=
1692 ac_configure_args0=
1693 ac_configure_args1=
1694 ac_must_keep_next=false
1695 for ac_pass in 1 2
1696 do
1697   for ac_arg
1698   do
1699     case $ac_arg in
1700     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1701     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1702     | -silent | --silent | --silen | --sile | --sil)
1703       continue ;;
1704     *\'*)
1705       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1706     esac
1707     case $ac_pass in
1708     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1709     2)
1710       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1711       if test $ac_must_keep_next = true; then
1712         ac_must_keep_next=false # Got value, back to normal.
1713       else
1714         case $ac_arg in
1715           *=* | --config-cache | -C | -disable-* | --disable-* \
1716           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1717           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1718           | -with-* | --with-* | -without-* | --without-* | --x)
1719             case "$ac_configure_args0 " in
1720               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1721             esac
1722             ;;
1723           -* ) ac_must_keep_next=true ;;
1724         esac
1725       fi
1726       ac_configure_args="$ac_configure_args '$ac_arg'"
1727       ;;
1728     esac
1729   done
1730 done
1731 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1732 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1733
1734 # When interrupted or exit'd, cleanup temporary files, and complete
1735 # config.log.  We remove comments because anyway the quotes in there
1736 # would cause problems or look ugly.
1737 # WARNING: Use '\'' to represent an apostrophe within the trap.
1738 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1739 trap 'exit_status=$?
1740   # Save into config.log some information that might help in debugging.
1741   {
1742     echo
1743
1744     cat <<\_ASBOX
1745 ## ---------------- ##
1746 ## Cache variables. ##
1747 ## ---------------- ##
1748 _ASBOX
1749     echo
1750     # The following way of writing the cache mishandles newlines in values,
1751 (
1752   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1753     eval ac_val=\$$ac_var
1754     case $ac_val in #(
1755     *${as_nl}*)
1756       case $ac_var in #(
1757       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1758 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1759       esac
1760       case $ac_var in #(
1761       _ | IFS | as_nl) ;; #(
1762       *) $as_unset $ac_var ;;
1763       esac ;;
1764     esac
1765   done
1766   (set) 2>&1 |
1767     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1768     *${as_nl}ac_space=\ *)
1769       sed -n \
1770         "s/'\''/'\''\\\\'\'''\''/g;
1771           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1772       ;; #(
1773     *)
1774       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1775       ;;
1776     esac |
1777     sort
1778 )
1779     echo
1780
1781     cat <<\_ASBOX
1782 ## ----------------- ##
1783 ## Output variables. ##
1784 ## ----------------- ##
1785 _ASBOX
1786     echo
1787     for ac_var in $ac_subst_vars
1788     do
1789       eval ac_val=\$$ac_var
1790       case $ac_val in
1791       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1792       esac
1793       echo "$ac_var='\''$ac_val'\''"
1794     done | sort
1795     echo
1796
1797     if test -n "$ac_subst_files"; then
1798       cat <<\_ASBOX
1799 ## ------------------- ##
1800 ## File substitutions. ##
1801 ## ------------------- ##
1802 _ASBOX
1803       echo
1804       for ac_var in $ac_subst_files
1805       do
1806         eval ac_val=\$$ac_var
1807         case $ac_val in
1808         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1809         esac
1810         echo "$ac_var='\''$ac_val'\''"
1811       done | sort
1812       echo
1813     fi
1814
1815     if test -s confdefs.h; then
1816       cat <<\_ASBOX
1817 ## ----------- ##
1818 ## confdefs.h. ##
1819 ## ----------- ##
1820 _ASBOX
1821       echo
1822       cat confdefs.h
1823       echo
1824     fi
1825     test "$ac_signal" != 0 &&
1826       echo "$as_me: caught signal $ac_signal"
1827     echo "$as_me: exit $exit_status"
1828   } >&5
1829   rm -f core *.core core.conftest.* &&
1830     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1831     exit $exit_status
1832 ' 0
1833 for ac_signal in 1 2 13 15; do
1834   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1835 done
1836 ac_signal=0
1837
1838 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1839 rm -f -r conftest* confdefs.h
1840
1841 # Predefined preprocessor variables.
1842
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_NAME "$PACKAGE_NAME"
1845 _ACEOF
1846
1847
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1850 _ACEOF
1851
1852
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1855 _ACEOF
1856
1857
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_STRING "$PACKAGE_STRING"
1860 _ACEOF
1861
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1865 _ACEOF
1866
1867
1868 # Let the site file select an alternate cache file if it wants to.
1869 # Prefer explicitly selected file to automatically selected ones.
1870 if test -n "$CONFIG_SITE"; then
1871   set x "$CONFIG_SITE"
1872 elif test "x$prefix" != xNONE; then
1873   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1874 else
1875   set x "$ac_default_prefix/share/config.site" \
1876         "$ac_default_prefix/etc/config.site"
1877 fi
1878 shift
1879 for ac_site_file
1880 do
1881   if test -r "$ac_site_file"; then
1882     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1883 echo "$as_me: loading site script $ac_site_file" >&6;}
1884     sed 's/^/| /' "$ac_site_file" >&5
1885     . "$ac_site_file"
1886   fi
1887 done
1888
1889 if test -r "$cache_file"; then
1890   # Some versions of bash will fail to source /dev/null (special
1891   # files actually), so we avoid doing that.
1892   if test -f "$cache_file"; then
1893     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1894 echo "$as_me: loading cache $cache_file" >&6;}
1895     case $cache_file in
1896       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1897       *)                      . "./$cache_file";;
1898     esac
1899   fi
1900 else
1901   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1902 echo "$as_me: creating cache $cache_file" >&6;}
1903   >$cache_file
1904 fi
1905
1906 # Check that the precious variables saved in the cache have kept the same
1907 # value.
1908 ac_cache_corrupted=false
1909 for ac_var in $ac_precious_vars; do
1910   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1911   eval ac_new_set=\$ac_env_${ac_var}_set
1912   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1913   eval ac_new_val=\$ac_env_${ac_var}_value
1914   case $ac_old_set,$ac_new_set in
1915     set,)
1916       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1917 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1918       ac_cache_corrupted=: ;;
1919     ,set)
1920       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1921 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1922       ac_cache_corrupted=: ;;
1923     ,);;
1924     *)
1925       if test "x$ac_old_val" != "x$ac_new_val"; then
1926         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1927 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1928         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1929 echo "$as_me:   former value:  $ac_old_val" >&2;}
1930         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1931 echo "$as_me:   current value: $ac_new_val" >&2;}
1932         ac_cache_corrupted=:
1933       fi;;
1934   esac
1935   # Pass precious variables to config.status.
1936   if test "$ac_new_set" = set; then
1937     case $ac_new_val in
1938     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1939     *) ac_arg=$ac_var=$ac_new_val ;;
1940     esac
1941     case " $ac_configure_args " in
1942       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1943       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1944     esac
1945   fi
1946 done
1947 if $ac_cache_corrupted; then
1948   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1949 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1950   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1951 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1952    { (exit 1); exit 1; }; }
1953 fi
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979 ac_ext=c
1980 ac_cpp='$CPP $CPPFLAGS'
1981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1984
1985
1986
1987 ac_config_headers="$ac_config_headers src/gras_config.h"
1988
1989 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
1990
1991
1992 ac_aux_dir=
1993 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1994   if test -f "$ac_dir/install-sh"; then
1995     ac_aux_dir=$ac_dir
1996     ac_install_sh="$ac_aux_dir/install-sh -c"
1997     break
1998   elif test -f "$ac_dir/install.sh"; then
1999     ac_aux_dir=$ac_dir
2000     ac_install_sh="$ac_aux_dir/install.sh -c"
2001     break
2002   elif test -f "$ac_dir/shtool"; then
2003     ac_aux_dir=$ac_dir
2004     ac_install_sh="$ac_aux_dir/shtool install -c"
2005     break
2006   fi
2007 done
2008 if test -z "$ac_aux_dir"; then
2009   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2010 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2011    { (exit 1); exit 1; }; }
2012 fi
2013
2014 # These three variables are undocumented and unsupported,
2015 # and are intended to be withdrawn in a future Autoconf release.
2016 # They can cause serious problems if a builder's source tree is in a directory
2017 # whose full name contains unusual characters.
2018 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2019 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2020 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2021
2022
2023 # Make sure we can run config.sub.
2024 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2025   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2026 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2027    { (exit 1); exit 1; }; }
2028
2029 { echo "$as_me:$LINENO: checking build system type" >&5
2030 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2031 if test "${ac_cv_build+set}" = set; then
2032   echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034   ac_build_alias=$build_alias
2035 test "x$ac_build_alias" = x &&
2036   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2037 test "x$ac_build_alias" = x &&
2038   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2039 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2040    { (exit 1); exit 1; }; }
2041 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2042   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2043 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2044    { (exit 1); exit 1; }; }
2045
2046 fi
2047 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2048 echo "${ECHO_T}$ac_cv_build" >&6; }
2049 case $ac_cv_build in
2050 *-*-*) ;;
2051 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2052 echo "$as_me: error: invalid value of canonical build" >&2;}
2053    { (exit 1); exit 1; }; };;
2054 esac
2055 build=$ac_cv_build
2056 ac_save_IFS=$IFS; IFS='-'
2057 set x $ac_cv_build
2058 shift
2059 build_cpu=$1
2060 build_vendor=$2
2061 shift; shift
2062 # Remember, the first character of IFS is used to create $*,
2063 # except with old shells:
2064 build_os=$*
2065 IFS=$ac_save_IFS
2066 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2067
2068
2069 { echo "$as_me:$LINENO: checking host system type" >&5
2070 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2071 if test "${ac_cv_host+set}" = set; then
2072   echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074   if test "x$host_alias" = x; then
2075   ac_cv_host=$ac_cv_build
2076 else
2077   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2078     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2079 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2080    { (exit 1); exit 1; }; }
2081 fi
2082
2083 fi
2084 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2085 echo "${ECHO_T}$ac_cv_host" >&6; }
2086 case $ac_cv_host in
2087 *-*-*) ;;
2088 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2089 echo "$as_me: error: invalid value of canonical host" >&2;}
2090    { (exit 1); exit 1; }; };;
2091 esac
2092 host=$ac_cv_host
2093 ac_save_IFS=$IFS; IFS='-'
2094 set x $ac_cv_host
2095 shift
2096 host_cpu=$1
2097 host_vendor=$2
2098 shift; shift
2099 # Remember, the first character of IFS is used to create $*,
2100 # except with old shells:
2101 host_os=$*
2102 IFS=$ac_save_IFS
2103 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2104
2105
2106 { echo "$as_me:$LINENO: checking target system type" >&5
2107 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2108 if test "${ac_cv_target+set}" = set; then
2109   echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111   if test "x$target_alias" = x; then
2112   ac_cv_target=$ac_cv_host
2113 else
2114   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2115     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2116 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2117    { (exit 1); exit 1; }; }
2118 fi
2119
2120 fi
2121 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2122 echo "${ECHO_T}$ac_cv_target" >&6; }
2123 case $ac_cv_target in
2124 *-*-*) ;;
2125 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2126 echo "$as_me: error: invalid value of canonical target" >&2;}
2127    { (exit 1); exit 1; }; };;
2128 esac
2129 target=$ac_cv_target
2130 ac_save_IFS=$IFS; IFS='-'
2131 set x $ac_cv_target
2132 shift
2133 target_cpu=$1
2134 target_vendor=$2
2135 shift; shift
2136 # Remember, the first character of IFS is used to create $*,
2137 # except with old shells:
2138 target_os=$*
2139 IFS=$ac_save_IFS
2140 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2141
2142
2143 # The aliases save the names the user supplied, while $host etc.
2144 # will get canonicalized.
2145 test -n "$target_alias" &&
2146   test "$program_prefix$program_suffix$program_transform_name" = \
2147     NONENONEs,x,x, &&
2148   program_prefix=${target_alias}-
2149 ac_ext=c
2150 ac_cpp='$CPP $CPPFLAGS'
2151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2154
2155
2156 am__api_version="1.9"
2157 # Find a good install program.  We prefer a C program (faster),
2158 # so one script is as good as another.  But avoid the broken or
2159 # incompatible versions:
2160 # SysV /etc/install, /usr/sbin/install
2161 # SunOS /usr/etc/install
2162 # IRIX /sbin/install
2163 # AIX /bin/install
2164 # AmigaOS /C/install, which installs bootblocks on floppy discs
2165 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2166 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2167 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2168 # OS/2's system install, which has a completely different semantic
2169 # ./install, which can be erroneously created by make from ./install.sh.
2170 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2171 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2172 if test -z "$INSTALL"; then
2173 if test "${ac_cv_path_install+set}" = set; then
2174   echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 for as_dir in $PATH
2178 do
2179   IFS=$as_save_IFS
2180   test -z "$as_dir" && as_dir=.
2181   # Account for people who put trailing slashes in PATH elements.
2182 case $as_dir/ in
2183   ./ | .// | /cC/* | \
2184   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2185   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2186   /usr/ucb/* ) ;;
2187   *)
2188     # OSF1 and SCO ODT 3.0 have their own names for install.
2189     # Don't use installbsd from OSF since it installs stuff as root
2190     # by default.
2191     for ac_prog in ginstall scoinst install; do
2192       for ac_exec_ext in '' $ac_executable_extensions; do
2193         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2194           if test $ac_prog = install &&
2195             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2196             # AIX install.  It has an incompatible calling convention.
2197             :
2198           elif test $ac_prog = install &&
2199             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2200             # program-specific install script used by HP pwplus--don't use.
2201             :
2202           else
2203             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2204             break 3
2205           fi
2206         fi
2207       done
2208     done
2209     ;;
2210 esac
2211 done
2212 IFS=$as_save_IFS
2213
2214
2215 fi
2216   if test "${ac_cv_path_install+set}" = set; then
2217     INSTALL=$ac_cv_path_install
2218   else
2219     # As a last resort, use the slow shell script.  Don't cache a
2220     # value for INSTALL within a source directory, because that will
2221     # break other packages using the cache if that directory is
2222     # removed, or if the value is a relative name.
2223     INSTALL=$ac_install_sh
2224   fi
2225 fi
2226 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2227 echo "${ECHO_T}$INSTALL" >&6; }
2228
2229 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2230 # It thinks the first close brace ends the variable substitution.
2231 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2232
2233 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2234
2235 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2236
2237 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2238 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2239 # Just in case
2240 sleep 1
2241 echo timestamp > conftest.file
2242 # Do `set' in a subshell so we don't clobber the current shell's
2243 # arguments.  Must try -L first in case configure is actually a
2244 # symlink; some systems play weird games with the mod time of symlinks
2245 # (eg FreeBSD returns the mod time of the symlink's containing
2246 # directory).
2247 if (
2248    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2249    if test "$*" = "X"; then
2250       # -L didn't work.
2251       set X `ls -t $srcdir/configure conftest.file`
2252    fi
2253    rm -f conftest.file
2254    if test "$*" != "X $srcdir/configure conftest.file" \
2255       && test "$*" != "X conftest.file $srcdir/configure"; then
2256
2257       # If neither matched, then we have a broken ls.  This can happen
2258       # if, for instance, CONFIG_SHELL is bash and it inherits a
2259       # broken ls alias from the environment.  This has actually
2260       # happened.  Such a system could not be considered "sane".
2261       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2262 alias in your environment" >&5
2263 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2264 alias in your environment" >&2;}
2265    { (exit 1); exit 1; }; }
2266    fi
2267
2268    test "$2" = conftest.file
2269    )
2270 then
2271    # Ok.
2272    :
2273 else
2274    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2275 Check your system clock" >&5
2276 echo "$as_me: error: newly created file is older than distributed files!
2277 Check your system clock" >&2;}
2278    { (exit 1); exit 1; }; }
2279 fi
2280 { echo "$as_me:$LINENO: result: yes" >&5
2281 echo "${ECHO_T}yes" >&6; }
2282 test "$program_prefix" != NONE &&
2283   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2284 # Use a double $ so make ignores it.
2285 test "$program_suffix" != NONE &&
2286   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2287 # Double any \ or $.  echo might interpret backslashes.
2288 # By default was `s,x,x', remove it if useless.
2289 cat <<\_ACEOF >conftest.sed
2290 s/[\\$]/&&/g;s/;s,x,x,$//
2291 _ACEOF
2292 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2293 rm -f conftest.sed
2294
2295 # expand $ac_aux_dir to an absolute path
2296 am_aux_dir=`cd $ac_aux_dir && pwd`
2297
2298 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2299 # Use eval to expand $SHELL
2300 if eval "$MISSING --run true"; then
2301   am_missing_run="$MISSING --run "
2302 else
2303   am_missing_run=
2304   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2305 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2306 fi
2307
2308 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2309   # We used to keeping the `.' as first argument, in order to
2310   # allow $(mkdir_p) to be used without argument.  As in
2311   #   $(mkdir_p) $(somedir)
2312   # where $(somedir) is conditionally defined.  However this is wrong
2313   # for two reasons:
2314   #  1. if the package is installed by a user who cannot write `.'
2315   #     make install will fail,
2316   #  2. the above comment should most certainly read
2317   #     $(mkdir_p) $(DESTDIR)$(somedir)
2318   #     so it does not work when $(somedir) is undefined and
2319   #     $(DESTDIR) is not.
2320   #  To support the latter case, we have to write
2321   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2322   #  so the `.' trick is pointless.
2323   mkdir_p='mkdir -p --'
2324 else
2325   # On NextStep and OpenStep, the `mkdir' command does not
2326   # recognize any option.  It will interpret all options as
2327   # directories to create, and then abort because `.' already
2328   # exists.
2329   for d in ./-p ./--version;
2330   do
2331     test -d $d && rmdir $d
2332   done
2333   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2334   if test -f "$ac_aux_dir/mkinstalldirs"; then
2335     mkdir_p='$(mkinstalldirs)'
2336   else
2337     mkdir_p='$(install_sh) -d'
2338   fi
2339 fi
2340
2341 for ac_prog in gawk mawk nawk awk
2342 do
2343   # Extract the first word of "$ac_prog", so it can be a program name with args.
2344 set dummy $ac_prog; ac_word=$2
2345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2347 if test "${ac_cv_prog_AWK+set}" = set; then
2348   echo $ECHO_N "(cached) $ECHO_C" >&6
2349 else
2350   if test -n "$AWK"; then
2351   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2352 else
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 for as_dir in $PATH
2355 do
2356   IFS=$as_save_IFS
2357   test -z "$as_dir" && as_dir=.
2358   for ac_exec_ext in '' $ac_executable_extensions; do
2359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360     ac_cv_prog_AWK="$ac_prog"
2361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362     break 2
2363   fi
2364 done
2365 done
2366 IFS=$as_save_IFS
2367
2368 fi
2369 fi
2370 AWK=$ac_cv_prog_AWK
2371 if test -n "$AWK"; then
2372   { echo "$as_me:$LINENO: result: $AWK" >&5
2373 echo "${ECHO_T}$AWK" >&6; }
2374 else
2375   { echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6; }
2377 fi
2378
2379
2380   test -n "$AWK" && break
2381 done
2382
2383 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2384 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2385 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2386 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2387   echo $ECHO_N "(cached) $ECHO_C" >&6
2388 else
2389   cat >conftest.make <<\_ACEOF
2390 SHELL = /bin/sh
2391 all:
2392         @echo '@@@%%%=$(MAKE)=@@@%%%'
2393 _ACEOF
2394 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2395 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2396   *@@@%%%=?*=@@@%%%*)
2397     eval ac_cv_prog_make_${ac_make}_set=yes;;
2398   *)
2399     eval ac_cv_prog_make_${ac_make}_set=no;;
2400 esac
2401 rm -f conftest.make
2402 fi
2403 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2404   { echo "$as_me:$LINENO: result: yes" >&5
2405 echo "${ECHO_T}yes" >&6; }
2406   SET_MAKE=
2407 else
2408   { echo "$as_me:$LINENO: result: no" >&5
2409 echo "${ECHO_T}no" >&6; }
2410   SET_MAKE="MAKE=${MAKE-make}"
2411 fi
2412
2413 rm -rf .tst 2>/dev/null
2414 mkdir .tst 2>/dev/null
2415 if test -d .tst; then
2416   am__leading_dot=.
2417 else
2418   am__leading_dot=_
2419 fi
2420 rmdir .tst 2>/dev/null
2421
2422 # test to see if srcdir already configured
2423 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2424    test -f $srcdir/config.status; then
2425   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2426 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2427    { (exit 1); exit 1; }; }
2428 fi
2429
2430 # test whether we have cygpath
2431 if test -z "$CYGPATH_W"; then
2432   if (cygpath --version) >/dev/null 2>/dev/null; then
2433     CYGPATH_W='cygpath -w'
2434   else
2435     CYGPATH_W=echo
2436   fi
2437 fi
2438
2439
2440 # Define the identity of the package.
2441  PACKAGE='simgrid'
2442  VERSION='3.3-cvs'
2443
2444
2445 cat >>confdefs.h <<_ACEOF
2446 #define PACKAGE "$PACKAGE"
2447 _ACEOF
2448
2449
2450 cat >>confdefs.h <<_ACEOF
2451 #define VERSION "$VERSION"
2452 _ACEOF
2453
2454 # Some tools Automake needs.
2455
2456 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2457
2458
2459 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2460
2461
2462 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2463
2464
2465 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2466
2467
2468 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2469
2470 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2471
2472 # Installed binaries are usually stripped using `strip' when the user
2473 # run `make install-strip'.  However `strip' might not be the right
2474 # tool to use in cross-compilation environments, therefore Automake
2475 # will honor the `STRIP' environment variable to overrule this program.
2476 if test "$cross_compiling" != no; then
2477   if test -n "$ac_tool_prefix"; then
2478   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2479 set dummy ${ac_tool_prefix}strip; ac_word=$2
2480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2482 if test "${ac_cv_prog_STRIP+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   if test -n "$STRIP"; then
2486   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491   IFS=$as_save_IFS
2492   test -z "$as_dir" && as_dir=.
2493   for ac_exec_ext in '' $ac_executable_extensions; do
2494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497     break 2
2498   fi
2499 done
2500 done
2501 IFS=$as_save_IFS
2502
2503 fi
2504 fi
2505 STRIP=$ac_cv_prog_STRIP
2506 if test -n "$STRIP"; then
2507   { echo "$as_me:$LINENO: result: $STRIP" >&5
2508 echo "${ECHO_T}$STRIP" >&6; }
2509 else
2510   { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2512 fi
2513
2514
2515 fi
2516 if test -z "$ac_cv_prog_STRIP"; then
2517   ac_ct_STRIP=$STRIP
2518   # Extract the first word of "strip", so it can be a program name with args.
2519 set dummy strip; ac_word=$2
2520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2522 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2523   echo $ECHO_N "(cached) $ECHO_C" >&6
2524 else
2525   if test -n "$ac_ct_STRIP"; then
2526   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2527 else
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2530 do
2531   IFS=$as_save_IFS
2532   test -z "$as_dir" && as_dir=.
2533   for ac_exec_ext in '' $ac_executable_extensions; do
2534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535     ac_cv_prog_ac_ct_STRIP="strip"
2536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2537     break 2
2538   fi
2539 done
2540 done
2541 IFS=$as_save_IFS
2542
2543 fi
2544 fi
2545 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2546 if test -n "$ac_ct_STRIP"; then
2547   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2548 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2549 else
2550   { echo "$as_me:$LINENO: result: no" >&5
2551 echo "${ECHO_T}no" >&6; }
2552 fi
2553
2554   if test "x$ac_ct_STRIP" = x; then
2555     STRIP=":"
2556   else
2557     case $cross_compiling:$ac_tool_warned in
2558 yes:)
2559 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2560 whose name does not start with the host triplet.  If you think this
2561 configuration is useful to you, please write to autoconf@gnu.org." >&5
2562 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2563 whose name does not start with the host triplet.  If you think this
2564 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2565 ac_tool_warned=yes ;;
2566 esac
2567     STRIP=$ac_ct_STRIP
2568   fi
2569 else
2570   STRIP="$ac_cv_prog_STRIP"
2571 fi
2572
2573 fi
2574 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2575
2576 # We need awk for the "check" target.  The system "awk" is bad on
2577 # some platforms.
2578 # Always define AMTAR for backward compatibility.
2579
2580 AMTAR=${AMTAR-"${am_missing_run}tar"}
2581
2582 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2583
2584
2585
2586
2587
2588
2589 ACLOCAL="$ACLOCAL -I acmacro"
2590
2591
2592
2593
2594
2595
2596 # Check whether --enable-shared was given.
2597 if test "${enable_shared+set}" = set; then
2598   enableval=$enable_shared; p=${PACKAGE-default}
2599     case $enableval in
2600     yes) enable_shared=yes ;;
2601     no) enable_shared=no ;;
2602     *)
2603       enable_shared=no
2604       # Look at the argument we got.  We use all the common list separators.
2605       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2606       for pkg in $enableval; do
2607         IFS="$lt_save_ifs"
2608         if test "X$pkg" = "X$p"; then
2609           enable_shared=yes
2610         fi
2611       done
2612       IFS="$lt_save_ifs"
2613       ;;
2614     esac
2615 else
2616   enable_shared=yes
2617 fi
2618
2619
2620 # Check whether --enable-static was given.
2621 if test "${enable_static+set}" = set; then
2622   enableval=$enable_static; p=${PACKAGE-default}
2623     case $enableval in
2624     yes) enable_static=yes ;;
2625     no) enable_static=no ;;
2626     *)
2627      enable_static=no
2628       # Look at the argument we got.  We use all the common list separators.
2629       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2630       for pkg in $enableval; do
2631         IFS="$lt_save_ifs"
2632         if test "X$pkg" = "X$p"; then
2633           enable_static=yes
2634         fi
2635       done
2636       IFS="$lt_save_ifs"
2637       ;;
2638     esac
2639 else
2640   enable_static=yes
2641 fi
2642
2643
2644 # Check whether --enable-fast-install was given.
2645 if test "${enable_fast_install+set}" = set; then
2646   enableval=$enable_fast_install; p=${PACKAGE-default}
2647     case $enableval in
2648     yes) enable_fast_install=yes ;;
2649     no) enable_fast_install=no ;;
2650     *)
2651       enable_fast_install=no
2652       # Look at the argument we got.  We use all the common list separators.
2653       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2654       for pkg in $enableval; do
2655         IFS="$lt_save_ifs"
2656         if test "X$pkg" = "X$p"; then
2657           enable_fast_install=yes
2658         fi
2659       done
2660       IFS="$lt_save_ifs"
2661       ;;
2662     esac
2663 else
2664   enable_fast_install=yes
2665 fi
2666
2667
2668 DEPDIR="${am__leading_dot}deps"
2669
2670 ac_config_commands="$ac_config_commands depfiles"
2671
2672
2673 am_make=${MAKE-make}
2674 cat > confinc << 'END'
2675 am__doit:
2676         @echo done
2677 .PHONY: am__doit
2678 END
2679 # If we don't find an include directive, just comment out the code.
2680 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2681 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2682 am__include="#"
2683 am__quote=
2684 _am_result=none
2685 # First try GNU make style include.
2686 echo "include confinc" > confmf
2687 # We grep out `Entering directory' and `Leaving directory'
2688 # messages which can occur if `w' ends up in MAKEFLAGS.
2689 # In particular we don't look at `^make:' because GNU make might
2690 # be invoked under some other name (usually "gmake"), in which
2691 # case it prints its new name instead of `make'.
2692 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2693    am__include=include
2694    am__quote=
2695    _am_result=GNU
2696 fi
2697 # Now try BSD make style include.
2698 if test "$am__include" = "#"; then
2699    echo '.include "confinc"' > confmf
2700    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2701       am__include=.include
2702       am__quote="\""
2703       _am_result=BSD
2704    fi
2705 fi
2706
2707
2708 { echo "$as_me:$LINENO: result: $_am_result" >&5
2709 echo "${ECHO_T}$_am_result" >&6; }
2710 rm -f confinc confmf
2711
2712 # Check whether --enable-dependency-tracking was given.
2713 if test "${enable_dependency_tracking+set}" = set; then
2714   enableval=$enable_dependency_tracking;
2715 fi
2716
2717 if test "x$enable_dependency_tracking" != xno; then
2718   am_depcomp="$ac_aux_dir/depcomp"
2719   AMDEPBACKSLASH='\'
2720 fi
2721
2722
2723 if test "x$enable_dependency_tracking" != xno; then
2724   AMDEP_TRUE=
2725   AMDEP_FALSE='#'
2726 else
2727   AMDEP_TRUE='#'
2728   AMDEP_FALSE=
2729 fi
2730
2731
2732
2733 ac_ext=c
2734 ac_cpp='$CPP $CPPFLAGS'
2735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738 if test -n "$ac_tool_prefix"; then
2739   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2740 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2743 if test "${ac_cv_prog_CC+set}" = set; then
2744   echo $ECHO_N "(cached) $ECHO_C" >&6
2745 else
2746   if test -n "$CC"; then
2747   ac_cv_prog_CC="$CC" # Let the user override the test.
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2751 do
2752   IFS=$as_save_IFS
2753   test -z "$as_dir" && as_dir=.
2754   for ac_exec_ext in '' $ac_executable_extensions; do
2755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758     break 2
2759   fi
2760 done
2761 done
2762 IFS=$as_save_IFS
2763
2764 fi
2765 fi
2766 CC=$ac_cv_prog_CC
2767 if test -n "$CC"; then
2768   { echo "$as_me:$LINENO: result: $CC" >&5
2769 echo "${ECHO_T}$CC" >&6; }
2770 else
2771   { echo "$as_me:$LINENO: result: no" >&5
2772 echo "${ECHO_T}no" >&6; }
2773 fi
2774
2775
2776 fi
2777 if test -z "$ac_cv_prog_CC"; then
2778   ac_ct_CC=$CC
2779   # Extract the first word of "gcc", so it can be a program name with args.
2780 set dummy gcc; ac_word=$2
2781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2783 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2784   echo $ECHO_N "(cached) $ECHO_C" >&6
2785 else
2786   if test -n "$ac_ct_CC"; then
2787   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792   IFS=$as_save_IFS
2793   test -z "$as_dir" && as_dir=.
2794   for ac_exec_ext in '' $ac_executable_extensions; do
2795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796     ac_cv_prog_ac_ct_CC="gcc"
2797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798     break 2
2799   fi
2800 done
2801 done
2802 IFS=$as_save_IFS
2803
2804 fi
2805 fi
2806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2807 if test -n "$ac_ct_CC"; then
2808   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2809 echo "${ECHO_T}$ac_ct_CC" >&6; }
2810 else
2811   { echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6; }
2813 fi
2814
2815   if test "x$ac_ct_CC" = x; then
2816     CC=""
2817   else
2818     case $cross_compiling:$ac_tool_warned in
2819 yes:)
2820 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2821 whose name does not start with the host triplet.  If you think this
2822 configuration is useful to you, please write to autoconf@gnu.org." >&5
2823 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2824 whose name does not start with the host triplet.  If you think this
2825 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2826 ac_tool_warned=yes ;;
2827 esac
2828     CC=$ac_ct_CC
2829   fi
2830 else
2831   CC="$ac_cv_prog_CC"
2832 fi
2833
2834 if test -z "$CC"; then
2835           if test -n "$ac_tool_prefix"; then
2836     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2837 set dummy ${ac_tool_prefix}cc; ac_word=$2
2838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2840 if test "${ac_cv_prog_CC+set}" = set; then
2841   echo $ECHO_N "(cached) $ECHO_C" >&6
2842 else
2843   if test -n "$CC"; then
2844   ac_cv_prog_CC="$CC" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849   IFS=$as_save_IFS
2850   test -z "$as_dir" && as_dir=.
2851   for ac_exec_ext in '' $ac_executable_extensions; do
2852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853     ac_cv_prog_CC="${ac_tool_prefix}cc"
2854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855     break 2
2856   fi
2857 done
2858 done
2859 IFS=$as_save_IFS
2860
2861 fi
2862 fi
2863 CC=$ac_cv_prog_CC
2864 if test -n "$CC"; then
2865   { echo "$as_me:$LINENO: result: $CC" >&5
2866 echo "${ECHO_T}$CC" >&6; }
2867 else
2868   { echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6; }
2870 fi
2871
2872
2873   fi
2874 fi
2875 if test -z "$CC"; then
2876   # Extract the first word of "cc", so it can be a program name with args.
2877 set dummy cc; ac_word=$2
2878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2880 if test "${ac_cv_prog_CC+set}" = set; then
2881   echo $ECHO_N "(cached) $ECHO_C" >&6
2882 else
2883   if test -n "$CC"; then
2884   ac_cv_prog_CC="$CC" # Let the user override the test.
2885 else
2886   ac_prog_rejected=no
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890   IFS=$as_save_IFS
2891   test -z "$as_dir" && as_dir=.
2892   for ac_exec_ext in '' $ac_executable_extensions; do
2893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2895        ac_prog_rejected=yes
2896        continue
2897      fi
2898     ac_cv_prog_CC="cc"
2899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2900     break 2
2901   fi
2902 done
2903 done
2904 IFS=$as_save_IFS
2905
2906 if test $ac_prog_rejected = yes; then
2907   # We found a bogon in the path, so make sure we never use it.
2908   set dummy $ac_cv_prog_CC
2909   shift
2910   if test $# != 0; then
2911     # We chose a different compiler from the bogus one.
2912     # However, it has the same basename, so the bogon will be chosen
2913     # first if we set CC to just the basename; use the full file name.
2914     shift
2915     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2916   fi
2917 fi
2918 fi
2919 fi
2920 CC=$ac_cv_prog_CC
2921 if test -n "$CC"; then
2922   { echo "$as_me:$LINENO: result: $CC" >&5
2923 echo "${ECHO_T}$CC" >&6; }
2924 else
2925   { echo "$as_me:$LINENO: result: no" >&5
2926 echo "${ECHO_T}no" >&6; }
2927 fi
2928
2929
2930 fi
2931 if test -z "$CC"; then
2932   if test -n "$ac_tool_prefix"; then
2933   for ac_prog in cl.exe
2934   do
2935     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2939 if test "${ac_cv_prog_CC+set}" = set; then
2940   echo $ECHO_N "(cached) $ECHO_C" >&6
2941 else
2942   if test -n "$CC"; then
2943   ac_cv_prog_CC="$CC" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948   IFS=$as_save_IFS
2949   test -z "$as_dir" && as_dir=.
2950   for ac_exec_ext in '' $ac_executable_extensions; do
2951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2954     break 2
2955   fi
2956 done
2957 done
2958 IFS=$as_save_IFS
2959
2960 fi
2961 fi
2962 CC=$ac_cv_prog_CC
2963 if test -n "$CC"; then
2964   { echo "$as_me:$LINENO: result: $CC" >&5
2965 echo "${ECHO_T}$CC" >&6; }
2966 else
2967   { echo "$as_me:$LINENO: result: no" >&5
2968 echo "${ECHO_T}no" >&6; }
2969 fi
2970
2971
2972     test -n "$CC" && break
2973   done
2974 fi
2975 if test -z "$CC"; then
2976   ac_ct_CC=$CC
2977   for ac_prog in cl.exe
2978 do
2979   # Extract the first word of "$ac_prog", so it can be a program name with args.
2980 set dummy $ac_prog; ac_word=$2
2981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2984   echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986   if test -n "$ac_ct_CC"; then
2987   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992   IFS=$as_save_IFS
2993   test -z "$as_dir" && as_dir=.
2994   for ac_exec_ext in '' $ac_executable_extensions; do
2995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996     ac_cv_prog_ac_ct_CC="$ac_prog"
2997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998     break 2
2999   fi
3000 done
3001 done
3002 IFS=$as_save_IFS
3003
3004 fi
3005 fi
3006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007 if test -n "$ac_ct_CC"; then
3008   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3009 echo "${ECHO_T}$ac_ct_CC" >&6; }
3010 else
3011   { echo "$as_me:$LINENO: result: no" >&5
3012 echo "${ECHO_T}no" >&6; }
3013 fi
3014
3015
3016   test -n "$ac_ct_CC" && break
3017 done
3018
3019   if test "x$ac_ct_CC" = x; then
3020     CC=""
3021   else
3022     case $cross_compiling:$ac_tool_warned in
3023 yes:)
3024 { echo "$as_me:$LINENO: 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." >&5
3027 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3028 whose name does not start with the host triplet.  If you think this
3029 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3030 ac_tool_warned=yes ;;
3031 esac
3032     CC=$ac_ct_CC
3033   fi
3034 fi
3035
3036 fi
3037
3038
3039 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3040 See \`config.log' for more details." >&5
3041 echo "$as_me: error: no acceptable C compiler found in \$PATH
3042 See \`config.log' for more details." >&2;}
3043    { (exit 1); exit 1; }; }
3044
3045 # Provide some information about the compiler.
3046 echo "$as_me:$LINENO: checking for C compiler version" >&5
3047 ac_compiler=`set X $ac_compile; echo $2`
3048 { (ac_try="$ac_compiler --version >&5"
3049 case "(($ac_try" in
3050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051   *) ac_try_echo=$ac_try;;
3052 esac
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054   (eval "$ac_compiler --version >&5") 2>&5
3055   ac_status=$?
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); }
3058 { (ac_try="$ac_compiler -v >&5"
3059 case "(($ac_try" in
3060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061   *) ac_try_echo=$ac_try;;
3062 esac
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064   (eval "$ac_compiler -v >&5") 2>&5
3065   ac_status=$?
3066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067   (exit $ac_status); }
3068 { (ac_try="$ac_compiler -V >&5"
3069 case "(($ac_try" in
3070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071   *) ac_try_echo=$ac_try;;
3072 esac
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074   (eval "$ac_compiler -V >&5") 2>&5
3075   ac_status=$?
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); }
3078
3079 cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h.  */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h.  */
3085
3086 int
3087 main ()
3088 {
3089
3090   ;
3091   return 0;
3092 }
3093 _ACEOF
3094 ac_clean_files_save=$ac_clean_files
3095 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3096 # Try to create an executable without -o first, disregard a.out.
3097 # It will help us diagnose broken compilers, and finding out an intuition
3098 # of exeext.
3099 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3100 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3101 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3102 #
3103 # List of possible output files, starting from the most likely.
3104 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3105 # only as a last resort.  b.out is created by i960 compilers.
3106 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3107 #
3108 # The IRIX 6 linker writes into existing files which may not be
3109 # executable, retaining their permissions.  Remove them first so a
3110 # subsequent execution test works.
3111 ac_rmfiles=
3112 for ac_file in $ac_files
3113 do
3114   case $ac_file in
3115     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3116     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3117   esac
3118 done
3119 rm -f $ac_rmfiles
3120
3121 if { (ac_try="$ac_link_default"
3122 case "(($ac_try" in
3123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124   *) ac_try_echo=$ac_try;;
3125 esac
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127   (eval "$ac_link_default") 2>&5
3128   ac_status=$?
3129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130   (exit $ac_status); }; then
3131   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3132 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3133 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3134 # so that the user can short-circuit this test for compilers unknown to
3135 # Autoconf.
3136 for ac_file in $ac_files ''
3137 do
3138   test -f "$ac_file" || continue
3139   case $ac_file in
3140     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3141         ;;
3142     [ab].out )
3143         # We found the default executable, but exeext='' is most
3144         # certainly right.
3145         break;;
3146     *.* )
3147         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3148         then :; else
3149            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3150         fi
3151         # We set ac_cv_exeext here because the later test for it is not
3152         # safe: cross compilers may not add the suffix if given an `-o'
3153         # argument, so we may need to know it at that point already.
3154         # Even if this section looks crufty: it has the advantage of
3155         # actually working.
3156         break;;
3157     * )
3158         break;;
3159   esac
3160 done
3161 test "$ac_cv_exeext" = no && ac_cv_exeext=
3162
3163 else
3164   ac_file=''
3165 fi
3166
3167 { echo "$as_me:$LINENO: result: $ac_file" >&5
3168 echo "${ECHO_T}$ac_file" >&6; }
3169 if test -z "$ac_file"; then
3170   echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3174 See \`config.log' for more details." >&5
3175 echo "$as_me: error: C compiler cannot create executables
3176 See \`config.log' for more details." >&2;}
3177    { (exit 77); exit 77; }; }
3178 fi
3179
3180 ac_exeext=$ac_cv_exeext
3181
3182 # Check that the compiler produces executables we can run.  If not, either
3183 # the compiler is broken, or we cross compile.
3184 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3185 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3186 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3187 # If not cross compiling, check that we can run a simple program.
3188 if test "$cross_compiling" != yes; then
3189   if { ac_try='./$ac_file'
3190   { (case "(($ac_try" in
3191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192   *) ac_try_echo=$ac_try;;
3193 esac
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195   (eval "$ac_try") 2>&5
3196   ac_status=$?
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); }; }; then
3199     cross_compiling=no
3200   else
3201     if test "$cross_compiling" = maybe; then
3202         cross_compiling=yes
3203     else
3204         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3205 If you meant to cross compile, use \`--host'.
3206 See \`config.log' for more details." >&5
3207 echo "$as_me: error: cannot run C compiled programs.
3208 If you meant to cross compile, use \`--host'.
3209 See \`config.log' for more details." >&2;}
3210    { (exit 1); exit 1; }; }
3211     fi
3212   fi
3213 fi
3214 { echo "$as_me:$LINENO: result: yes" >&5
3215 echo "${ECHO_T}yes" >&6; }
3216
3217 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3218 ac_clean_files=$ac_clean_files_save
3219 # Check that the compiler produces executables we can run.  If not, either
3220 # the compiler is broken, or we cross compile.
3221 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3222 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3223 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3224 echo "${ECHO_T}$cross_compiling" >&6; }
3225
3226 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3227 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3228 if { (ac_try="$ac_link"
3229 case "(($ac_try" in
3230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231   *) ac_try_echo=$ac_try;;
3232 esac
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234   (eval "$ac_link") 2>&5
3235   ac_status=$?
3236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); }; then
3238   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3239 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3240 # work properly (i.e., refer to `conftest.exe'), while it won't with
3241 # `rm'.
3242 for ac_file in conftest.exe conftest conftest.*; do
3243   test -f "$ac_file" || continue
3244   case $ac_file in
3245     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3246     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3247           break;;
3248     * ) break;;
3249   esac
3250 done
3251 else
3252   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3253 See \`config.log' for more details." >&5
3254 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3255 See \`config.log' for more details." >&2;}
3256    { (exit 1); exit 1; }; }
3257 fi
3258
3259 rm -f conftest$ac_cv_exeext
3260 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3261 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3262
3263 rm -f conftest.$ac_ext
3264 EXEEXT=$ac_cv_exeext
3265 ac_exeext=$EXEEXT
3266 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3267 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3268 if test "${ac_cv_objext+set}" = set; then
3269   echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271   cat >conftest.$ac_ext <<_ACEOF
3272 /* confdefs.h.  */
3273 _ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h.  */
3277
3278 int
3279 main ()
3280 {
3281
3282   ;
3283   return 0;
3284 }
3285 _ACEOF
3286 rm -f conftest.o conftest.obj
3287 if { (ac_try="$ac_compile"
3288 case "(($ac_try" in
3289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290   *) ac_try_echo=$ac_try;;
3291 esac
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293   (eval "$ac_compile") 2>&5
3294   ac_status=$?
3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296   (exit $ac_status); }; then
3297   for ac_file in conftest.o conftest.obj conftest.*; do
3298   test -f "$ac_file" || continue;
3299   case $ac_file in
3300     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3301     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3302        break;;
3303   esac
3304 done
3305 else
3306   echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3310 See \`config.log' for more details." >&5
3311 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3312 See \`config.log' for more details." >&2;}
3313    { (exit 1); exit 1; }; }
3314 fi
3315
3316 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3317 fi
3318 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3319 echo "${ECHO_T}$ac_cv_objext" >&6; }
3320 OBJEXT=$ac_cv_objext
3321 ac_objext=$OBJEXT
3322 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3323 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3324 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3325   echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
3327   cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h.  */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h.  */
3333
3334 int
3335 main ()
3336 {
3337 #ifndef __GNUC__
3338        choke me
3339 #endif
3340
3341   ;
3342   return 0;
3343 }
3344 _ACEOF
3345 rm -f conftest.$ac_objext
3346 if { (ac_try="$ac_compile"
3347 case "(($ac_try" in
3348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349   *) ac_try_echo=$ac_try;;
3350 esac
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352   (eval "$ac_compile") 2>conftest.er1
3353   ac_status=$?
3354   grep -v '^ *+' conftest.er1 >conftest.err
3355   rm -f conftest.er1
3356   cat conftest.err >&5
3357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358   (exit $ac_status); } && {
3359          test -z "$ac_c_werror_flag" ||
3360          test ! -s conftest.err
3361        } && test -s conftest.$ac_objext; then
3362   ac_compiler_gnu=yes
3363 else
3364   echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367         ac_compiler_gnu=no
3368 fi
3369
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3372
3373 fi
3374 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3375 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3376 GCC=`test $ac_compiler_gnu = yes && echo yes`
3377 ac_test_CFLAGS=${CFLAGS+set}
3378 ac_save_CFLAGS=$CFLAGS
3379 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3380 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3381 if test "${ac_cv_prog_cc_g+set}" = set; then
3382   echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384   ac_save_c_werror_flag=$ac_c_werror_flag
3385    ac_c_werror_flag=yes
3386    ac_cv_prog_cc_g=no
3387    CFLAGS="-g"
3388    cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394
3395 int
3396 main ()
3397 {
3398
3399   ;
3400   return 0;
3401 }
3402 _ACEOF
3403 rm -f conftest.$ac_objext
3404 if { (ac_try="$ac_compile"
3405 case "(($ac_try" in
3406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407   *) ac_try_echo=$ac_try;;
3408 esac
3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410   (eval "$ac_compile") 2>conftest.er1
3411   ac_status=$?
3412   grep -v '^ *+' conftest.er1 >conftest.err
3413   rm -f conftest.er1
3414   cat conftest.err >&5
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); } && {
3417          test -z "$ac_c_werror_flag" ||
3418          test ! -s conftest.err
3419        } && test -s conftest.$ac_objext; then
3420   ac_cv_prog_cc_g=yes
3421 else
3422   echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3424
3425         CFLAGS=""
3426       cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h.  */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h.  */
3432
3433 int
3434 main ()
3435 {
3436
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (ac_try="$ac_compile"
3443 case "(($ac_try" in
3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445   *) ac_try_echo=$ac_try;;
3446 esac
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448   (eval "$ac_compile") 2>conftest.er1
3449   ac_status=$?
3450   grep -v '^ *+' conftest.er1 >conftest.err
3451   rm -f conftest.er1
3452   cat conftest.err >&5
3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); } && {
3455          test -z "$ac_c_werror_flag" ||
3456          test ! -s conftest.err
3457        } && test -s conftest.$ac_objext; then
3458   :
3459 else
3460   echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3462
3463         ac_c_werror_flag=$ac_save_c_werror_flag
3464          CFLAGS="-g"
3465          cat >conftest.$ac_ext <<_ACEOF
3466 /* confdefs.h.  */
3467 _ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h.  */
3471
3472 int
3473 main ()
3474 {
3475
3476   ;
3477   return 0;
3478 }
3479 _ACEOF
3480 rm -f conftest.$ac_objext
3481 if { (ac_try="$ac_compile"
3482 case "(($ac_try" in
3483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484   *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487   (eval "$ac_compile") 2>conftest.er1
3488   ac_status=$?
3489   grep -v '^ *+' conftest.er1 >conftest.err
3490   rm -f conftest.er1
3491   cat conftest.err >&5
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); } && {
3494          test -z "$ac_c_werror_flag" ||
3495          test ! -s conftest.err
3496        } && test -s conftest.$ac_objext; then
3497   ac_cv_prog_cc_g=yes
3498 else
3499   echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3501
3502
3503 fi
3504
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 fi
3507
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 fi
3510
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512    ac_c_werror_flag=$ac_save_c_werror_flag
3513 fi
3514 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3515 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3516 if test "$ac_test_CFLAGS" = set; then
3517   CFLAGS=$ac_save_CFLAGS
3518 elif test $ac_cv_prog_cc_g = yes; then
3519   if test "$GCC" = yes; then
3520     CFLAGS="-g -O2"
3521   else
3522     CFLAGS="-g"
3523   fi
3524 else
3525   if test "$GCC" = yes; then
3526     CFLAGS="-O2"
3527   else
3528     CFLAGS=
3529   fi
3530 fi
3531 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3532 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3533 if test "${ac_cv_prog_cc_c89+set}" = set; then
3534   echo $ECHO_N "(cached) $ECHO_C" >&6
3535 else
3536   ac_cv_prog_cc_c89=no
3537 ac_save_CC=$CC
3538 cat >conftest.$ac_ext <<_ACEOF
3539 /* confdefs.h.  */
3540 _ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h.  */
3544 #include <stdarg.h>
3545 #include <stdio.h>
3546 #include <sys/types.h>
3547 #include <sys/stat.h>
3548 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3549 struct buf { int x; };
3550 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3551 static char *e (p, i)
3552      char **p;
3553      int i;
3554 {
3555   return p[i];
3556 }
3557 static char *f (char * (*g) (char **, int), char **p, ...)
3558 {
3559   char *s;
3560   va_list v;
3561   va_start (v,p);
3562   s = g (p, va_arg (v,int));
3563   va_end (v);
3564   return s;
3565 }
3566
3567 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3568    function prototypes and stuff, but not '\xHH' hex character constants.
3569    These don't provoke an error unfortunately, instead are silently treated
3570    as 'x'.  The following induces an error, until -std is added to get
3571    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3572    array size at least.  It's necessary to write '\x00'==0 to get something
3573    that's true only with -std.  */
3574 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3575
3576 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3577    inside strings and character constants.  */
3578 #define FOO(x) 'x'
3579 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3580
3581 int test (int i, double x);
3582 struct s1 {int (*f) (int a);};
3583 struct s2 {int (*f) (double a);};
3584 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3585 int argc;
3586 char **argv;
3587 int
3588 main ()
3589 {
3590 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3591   ;
3592   return 0;
3593 }
3594 _ACEOF
3595 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3596         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3597 do
3598   CC="$ac_save_CC $ac_arg"
3599   rm -f conftest.$ac_objext
3600 if { (ac_try="$ac_compile"
3601 case "(($ac_try" in
3602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603   *) ac_try_echo=$ac_try;;
3604 esac
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606   (eval "$ac_compile") 2>conftest.er1
3607   ac_status=$?
3608   grep -v '^ *+' conftest.er1 >conftest.err
3609   rm -f conftest.er1
3610   cat conftest.err >&5
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); } && {
3613          test -z "$ac_c_werror_flag" ||
3614          test ! -s conftest.err
3615        } && test -s conftest.$ac_objext; then
3616   ac_cv_prog_cc_c89=$ac_arg
3617 else
3618   echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3620
3621
3622 fi
3623
3624 rm -f core conftest.err conftest.$ac_objext
3625   test "x$ac_cv_prog_cc_c89" != "xno" && break
3626 done
3627 rm -f conftest.$ac_ext
3628 CC=$ac_save_CC
3629
3630 fi
3631 # AC_CACHE_VAL
3632 case "x$ac_cv_prog_cc_c89" in
3633   x)
3634     { echo "$as_me:$LINENO: result: none needed" >&5
3635 echo "${ECHO_T}none needed" >&6; } ;;
3636   xno)
3637     { echo "$as_me:$LINENO: result: unsupported" >&5
3638 echo "${ECHO_T}unsupported" >&6; } ;;
3639   *)
3640     CC="$CC $ac_cv_prog_cc_c89"
3641     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3642 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3643 esac
3644
3645
3646 ac_ext=c
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651
3652 depcc="$CC"   am_compiler_list=
3653
3654 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3655 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3656 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3657   echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3660   # We make a subdir and do the tests there.  Otherwise we can end up
3661   # making bogus files that we don't know about and never remove.  For
3662   # instance it was reported that on HP-UX the gcc test will end up
3663   # making a dummy file named `D' -- because `-MD' means `put the output
3664   # in D'.
3665   mkdir conftest.dir
3666   # Copy depcomp to subdir because otherwise we won't find it if we're
3667   # using a relative directory.
3668   cp "$am_depcomp" conftest.dir
3669   cd conftest.dir
3670   # We will build objects and dependencies in a subdirectory because
3671   # it helps to detect inapplicable dependency modes.  For instance
3672   # both Tru64's cc and ICC support -MD to output dependencies as a
3673   # side effect of compilation, but ICC will put the dependencies in
3674   # the current directory while Tru64 will put them in the object
3675   # directory.
3676   mkdir sub
3677
3678   am_cv_CC_dependencies_compiler_type=none
3679   if test "$am_compiler_list" = ""; then
3680      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3681   fi
3682   for depmode in $am_compiler_list; do
3683     # Setup a source with many dependencies, because some compilers
3684     # like to wrap large dependency lists on column 80 (with \), and
3685     # we should not choose a depcomp mode which is confused by this.
3686     #
3687     # We need to recreate these files for each test, as the compiler may
3688     # overwrite some of them when testing with obscure command lines.
3689     # This happens at least with the AIX C compiler.
3690     : > sub/conftest.c
3691     for i in 1 2 3 4 5 6; do
3692       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3693       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3694       # Solaris 8's {/usr,}/bin/sh.
3695       touch sub/conftst$i.h
3696     done
3697     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3698
3699     case $depmode in
3700     nosideeffect)
3701       # after this tag, mechanisms are not by side-effect, so they'll
3702       # only be used when explicitly requested
3703       if test "x$enable_dependency_tracking" = xyes; then
3704         continue
3705       else
3706         break
3707       fi
3708       ;;
3709     none) break ;;
3710     esac
3711     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3712     # mode.  It turns out that the SunPro C++ compiler does not properly
3713     # handle `-M -o', and we need to detect this.
3714     if depmode=$depmode \
3715        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3716        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3717        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3718          >/dev/null 2>conftest.err &&
3719        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3720        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3721        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3722       # icc doesn't choke on unknown options, it will just issue warnings
3723       # or remarks (even with -Werror).  So we grep stderr for any message
3724       # that says an option was ignored or not supported.
3725       # When given -MP, icc 7.0 and 7.1 complain thusly:
3726       #   icc: Command line warning: ignoring option '-M'; no argument required
3727       # The diagnosis changed in icc 8.0:
3728       #   icc: Command line remark: option '-MP' not supported
3729       if (grep 'ignoring option' conftest.err ||
3730           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3731         am_cv_CC_dependencies_compiler_type=$depmode
3732         break
3733       fi
3734     fi
3735   done
3736
3737   cd ..
3738   rm -rf conftest.dir
3739 else
3740   am_cv_CC_dependencies_compiler_type=none
3741 fi
3742
3743 fi
3744 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3745 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3746 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3747
3748
3749
3750 if
3751   test "x$enable_dependency_tracking" != xno \
3752   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3753   am__fastdepCC_TRUE=
3754   am__fastdepCC_FALSE='#'
3755 else
3756   am__fastdepCC_TRUE='#'
3757   am__fastdepCC_FALSE=
3758 fi
3759
3760
3761 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3762 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3763 if test "${lt_cv_path_SED+set}" = set; then
3764   echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766   # Loop through the user's path and test for sed and gsed.
3767 # Then use that list of sed's as ones to test for truncation.
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 for as_dir in $PATH
3770 do
3771   IFS=$as_save_IFS
3772   test -z "$as_dir" && as_dir=.
3773   for lt_ac_prog in sed gsed; do
3774     for ac_exec_ext in '' $ac_executable_extensions; do
3775       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3776         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3777       fi
3778     done
3779   done
3780 done
3781 lt_ac_max=0
3782 lt_ac_count=0
3783 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3784 # along with /bin/sed that truncates output.
3785 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3786   test ! -f $lt_ac_sed && continue
3787   cat /dev/null > conftest.in
3788   lt_ac_count=0
3789   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3790   # Check for GNU sed and select it if it is found.
3791   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3792     lt_cv_path_SED=$lt_ac_sed
3793     break
3794   fi
3795   while true; do
3796     cat conftest.in conftest.in >conftest.tmp
3797     mv conftest.tmp conftest.in
3798     cp conftest.in conftest.nl
3799     echo >>conftest.nl
3800     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3801     cmp -s conftest.out conftest.nl || break
3802     # 10000 chars as input seems more than enough
3803     test $lt_ac_count -gt 10 && break
3804     lt_ac_count=`expr $lt_ac_count + 1`
3805     if test $lt_ac_count -gt $lt_ac_max; then
3806       lt_ac_max=$lt_ac_count
3807       lt_cv_path_SED=$lt_ac_sed
3808     fi
3809   done
3810 done
3811
3812 fi
3813
3814 SED=$lt_cv_path_SED
3815 { echo "$as_me:$LINENO: result: $SED" >&5
3816 echo "${ECHO_T}$SED" >&6; }
3817
3818 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3819 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3820 if test "${ac_cv_path_GREP+set}" = set; then
3821   echo $ECHO_N "(cached) $ECHO_C" >&6
3822 else
3823   # Extract the first word of "grep ggrep" to use in msg output
3824 if test -z "$GREP"; then
3825 set dummy grep ggrep; ac_prog_name=$2
3826 if test "${ac_cv_path_GREP+set}" = set; then
3827   echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829   ac_path_GREP_found=false
3830 # Loop through the user's path and test for each of PROGNAME-LIST
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3833 do
3834   IFS=$as_save_IFS
3835   test -z "$as_dir" && as_dir=.
3836   for ac_prog in grep ggrep; do
3837   for ac_exec_ext in '' $ac_executable_extensions; do
3838     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3839     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3840     # Check for GNU ac_path_GREP and select it if it is found.
3841   # Check for GNU $ac_path_GREP
3842 case `"$ac_path_GREP" --version 2>&1` in
3843 *GNU*)
3844   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3845 *)
3846   ac_count=0
3847   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3848   while :
3849   do
3850     cat "conftest.in" "conftest.in" >"conftest.tmp"
3851     mv "conftest.tmp" "conftest.in"
3852     cp "conftest.in" "conftest.nl"
3853     echo 'GREP' >> "conftest.nl"
3854     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3855     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3856     ac_count=`expr $ac_count + 1`
3857     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3858       # Best one so far, save it but keep looking for a better one
3859       ac_cv_path_GREP="$ac_path_GREP"
3860       ac_path_GREP_max=$ac_count
3861     fi
3862     # 10*(2^10) chars as input seems more than enough
3863     test $ac_count -gt 10 && break
3864   done
3865   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3866 esac
3867
3868
3869     $ac_path_GREP_found && break 3
3870   done
3871 done
3872
3873 done
3874 IFS=$as_save_IFS
3875
3876
3877 fi
3878
3879 GREP="$ac_cv_path_GREP"
3880 if test -z "$GREP"; then
3881   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3882 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3883    { (exit 1); exit 1; }; }
3884 fi
3885
3886 else
3887   ac_cv_path_GREP=$GREP
3888 fi
3889
3890
3891 fi
3892 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3893 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3894  GREP="$ac_cv_path_GREP"
3895
3896
3897 { echo "$as_me:$LINENO: checking for egrep" >&5
3898 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3899 if test "${ac_cv_path_EGREP+set}" = set; then
3900   echo $ECHO_N "(cached) $ECHO_C" >&6
3901 else
3902   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3903    then ac_cv_path_EGREP="$GREP -E"
3904    else
3905      # Extract the first word of "egrep" to use in msg output
3906 if test -z "$EGREP"; then
3907 set dummy egrep; ac_prog_name=$2
3908 if test "${ac_cv_path_EGREP+set}" = set; then
3909   echo $ECHO_N "(cached) $ECHO_C" >&6
3910 else
3911   ac_path_EGREP_found=false
3912 # Loop through the user's path and test for each of PROGNAME-LIST
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3915 do
3916   IFS=$as_save_IFS
3917   test -z "$as_dir" && as_dir=.
3918   for ac_prog in egrep; do
3919   for ac_exec_ext in '' $ac_executable_extensions; do
3920     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3921     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3922     # Check for GNU ac_path_EGREP and select it if it is found.
3923   # Check for GNU $ac_path_EGREP
3924 case `"$ac_path_EGREP" --version 2>&1` in
3925 *GNU*)
3926   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3927 *)
3928   ac_count=0
3929   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3930   while :
3931   do
3932     cat "conftest.in" "conftest.in" >"conftest.tmp"
3933     mv "conftest.tmp" "conftest.in"
3934     cp "conftest.in" "conftest.nl"
3935     echo 'EGREP' >> "conftest.nl"
3936     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3937     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3938     ac_count=`expr $ac_count + 1`
3939     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3940       # Best one so far, save it but keep looking for a better one
3941       ac_cv_path_EGREP="$ac_path_EGREP"
3942       ac_path_EGREP_max=$ac_count
3943     fi
3944     # 10*(2^10) chars as input seems more than enough
3945     test $ac_count -gt 10 && break
3946   done
3947   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3948 esac
3949
3950
3951     $ac_path_EGREP_found && break 3
3952   done
3953 done
3954
3955 done
3956 IFS=$as_save_IFS
3957
3958
3959 fi
3960
3961 EGREP="$ac_cv_path_EGREP"
3962 if test -z "$EGREP"; then
3963   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3964 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3965    { (exit 1); exit 1; }; }
3966 fi
3967
3968 else
3969   ac_cv_path_EGREP=$EGREP
3970 fi
3971
3972
3973    fi
3974 fi
3975 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3976 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3977  EGREP="$ac_cv_path_EGREP"
3978
3979
3980
3981 # Check whether --with-gnu-ld was given.
3982 if test "${with_gnu_ld+set}" = set; then
3983   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3984 else
3985   with_gnu_ld=no
3986 fi
3987
3988 ac_prog=ld
3989 if test "$GCC" = yes; then
3990   # Check if gcc -print-prog-name=ld gives a path.
3991   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3992 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3993   case $host in
3994   *-*-mingw*)
3995     # gcc leaves a trailing carriage return which upsets mingw
3996     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3997   *)
3998     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3999   esac
4000   case $ac_prog in
4001     # Accept absolute paths.
4002     [\\/]* | ?:[\\/]*)
4003       re_direlt='/[^/][^/]*/\.\./'
4004       # Canonicalize the pathname of ld
4005       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4006       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4007         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4008       done
4009       test -z "$LD" && LD="$ac_prog"
4010       ;;
4011   "")
4012     # If it fails, then pretend we aren't using GCC.
4013     ac_prog=ld
4014     ;;
4015   *)
4016     # If it is relative, then search for the first ld in PATH.
4017     with_gnu_ld=unknown
4018     ;;
4019   esac
4020 elif test "$with_gnu_ld" = yes; then
4021   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4022 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4023 else
4024   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4025 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4026 fi
4027 if test "${lt_cv_path_LD+set}" = set; then
4028   echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030   if test -z "$LD"; then
4031   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4032   for ac_dir in $PATH; do
4033     IFS="$lt_save_ifs"
4034     test -z "$ac_dir" && ac_dir=.
4035     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4036       lt_cv_path_LD="$ac_dir/$ac_prog"
4037       # Check to see if the program is GNU ld.  I'd rather use --version,
4038       # but apparently some variants of GNU ld only accept -v.
4039       # Break only if it was the GNU/non-GNU ld that we prefer.
4040       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4041       *GNU* | *'with BFD'*)
4042         test "$with_gnu_ld" != no && break
4043         ;;
4044       *)
4045         test "$with_gnu_ld" != yes && break
4046         ;;
4047       esac
4048     fi
4049   done
4050   IFS="$lt_save_ifs"
4051 else
4052   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4053 fi
4054 fi
4055
4056 LD="$lt_cv_path_LD"
4057 if test -n "$LD"; then
4058   { echo "$as_me:$LINENO: result: $LD" >&5
4059 echo "${ECHO_T}$LD" >&6; }
4060 else
4061   { echo "$as_me:$LINENO: result: no" >&5
4062 echo "${ECHO_T}no" >&6; }
4063 fi
4064 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4065 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4066    { (exit 1); exit 1; }; }
4067 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4068 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4069 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4070   echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4073 case `$LD -v 2>&1 </dev/null` in
4074 *GNU* | *'with BFD'*)
4075   lt_cv_prog_gnu_ld=yes
4076   ;;
4077 *)
4078   lt_cv_prog_gnu_ld=no
4079   ;;
4080 esac
4081 fi
4082 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4083 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4084 with_gnu_ld=$lt_cv_prog_gnu_ld
4085
4086
4087 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4088 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4089 if test "${lt_cv_ld_reload_flag+set}" = set; then
4090   echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092   lt_cv_ld_reload_flag='-r'
4093 fi
4094 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4095 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4096 reload_flag=$lt_cv_ld_reload_flag
4097 case $reload_flag in
4098 "" | " "*) ;;
4099 *) reload_flag=" $reload_flag" ;;
4100 esac
4101 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4102 case $host_os in
4103   darwin*)
4104     if test "$GCC" = yes; then
4105       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4106     else
4107       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4108     fi
4109     ;;
4110 esac
4111
4112 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4113 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4114 if test "${lt_cv_path_NM+set}" = set; then
4115   echo $ECHO_N "(cached) $ECHO_C" >&6
4116 else
4117   if test -n "$NM"; then
4118   # Let the user override the test.
4119   lt_cv_path_NM="$NM"
4120 else
4121   lt_nm_to_check="${ac_tool_prefix}nm"
4122   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4123     lt_nm_to_check="$lt_nm_to_check nm"
4124   fi
4125   for lt_tmp_nm in $lt_nm_to_check; do
4126     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4127     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4128       IFS="$lt_save_ifs"
4129       test -z "$ac_dir" && ac_dir=.
4130       tmp_nm="$ac_dir/$lt_tmp_nm"
4131       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4132         # Check to see if the nm accepts a BSD-compat flag.
4133         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4134         #   nm: unknown option "B" ignored
4135         # Tru64's nm complains that /dev/null is an invalid object file
4136         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4137         */dev/null* | *'Invalid file or object type'*)
4138           lt_cv_path_NM="$tmp_nm -B"
4139           break
4140           ;;
4141         *)
4142           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4143           */dev/null*)
4144             lt_cv_path_NM="$tmp_nm -p"
4145             break
4146             ;;
4147           *)
4148             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4149             continue # so that we can try to find one that supports BSD flags
4150             ;;
4151           esac
4152           ;;
4153         esac
4154       fi
4155     done
4156     IFS="$lt_save_ifs"
4157   done
4158   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4159 fi
4160 fi
4161 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4162 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4163 NM="$lt_cv_path_NM"
4164
4165 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4166 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4167 LN_S=$as_ln_s
4168 if test "$LN_S" = "ln -s"; then
4169   { echo "$as_me:$LINENO: result: yes" >&5
4170 echo "${ECHO_T}yes" >&6; }
4171 else
4172   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4173 echo "${ECHO_T}no, using $LN_S" >&6; }
4174 fi
4175
4176 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4177 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4178 if test "${lt_cv_deplibs_check_method+set}" = set; then
4179   echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181   lt_cv_file_magic_cmd='$MAGIC_CMD'
4182 lt_cv_file_magic_test_file=
4183 lt_cv_deplibs_check_method='unknown'
4184 # Need to set the preceding variable on all platforms that support
4185 # interlibrary dependencies.
4186 # 'none' -- dependencies not supported.
4187 # `unknown' -- same as none, but documents that we really don't know.
4188 # 'pass_all' -- all dependencies passed with no checks.
4189 # 'test_compile' -- check by making test program.
4190 # 'file_magic [[regex]]' -- check by looking for files in library path
4191 # which responds to the $file_magic_cmd with a given extended regex.
4192 # If you have `file' or equivalent on your system and you're not sure
4193 # whether `pass_all' will *always* work, you probably want this one.
4194
4195 case $host_os in
4196 aix4* | aix5*)
4197   lt_cv_deplibs_check_method=pass_all
4198   ;;
4199
4200 beos*)
4201   lt_cv_deplibs_check_method=pass_all
4202   ;;
4203
4204 bsdi[45]*)
4205   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4206   lt_cv_file_magic_cmd='/usr/bin/file -L'
4207   lt_cv_file_magic_test_file=/shlib/libc.so
4208   ;;
4209
4210 cygwin*)
4211   # func_win32_libid is a shell function defined in ltmain.sh
4212   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4213   lt_cv_file_magic_cmd='func_win32_libid'
4214   ;;
4215
4216 mingw* | pw32*)
4217   # Base MSYS/MinGW do not provide the 'file' command needed by
4218   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4219   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4220   lt_cv_file_magic_cmd='$OBJDUMP -f'
4221   ;;
4222
4223 darwin* | rhapsody*)
4224   lt_cv_deplibs_check_method=pass_all
4225   ;;
4226
4227 freebsd* | dragonfly*)
4228   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4229     case $host_cpu in
4230     i*86 )
4231       # Not sure whether the presence of OpenBSD here was a mistake.
4232       # Let's accept both of them until this is cleared up.
4233       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4234       lt_cv_file_magic_cmd=/usr/bin/file
4235       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4236       ;;
4237     esac
4238   else
4239     lt_cv_deplibs_check_method=pass_all
4240   fi
4241   ;;
4242
4243 gnu*)
4244   lt_cv_deplibs_check_method=pass_all
4245   ;;
4246
4247 hpux10.20* | hpux11*)
4248   lt_cv_file_magic_cmd=/usr/bin/file
4249   case $host_cpu in
4250   ia64*)
4251     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4252     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4253     ;;
4254   hppa*64*)
4255     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]'
4256     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4257     ;;
4258   *)
4259     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4260     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4261     ;;
4262   esac
4263   ;;
4264
4265 interix3*)
4266   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4267   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4268   ;;
4269
4270 irix5* | irix6* | nonstopux*)
4271   case $LD in
4272   *-32|*"-32 ") libmagic=32-bit;;
4273   *-n32|*"-n32 ") libmagic=N32;;
4274   *-64|*"-64 ") libmagic=64-bit;;
4275   *) libmagic=never-match;;
4276   esac
4277   lt_cv_deplibs_check_method=pass_all
4278   ;;
4279
4280 # This must be Linux ELF.
4281 linux* | k*bsd*-gnu)
4282   lt_cv_deplibs_check_method=pass_all
4283   ;;
4284
4285 netbsd* | netbsdelf*-gnu)
4286   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4287     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4288   else
4289     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4290   fi
4291   ;;
4292
4293 newos6*)
4294   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4295   lt_cv_file_magic_cmd=/usr/bin/file
4296   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4297   ;;
4298
4299 nto-qnx*)
4300   lt_cv_deplibs_check_method=unknown
4301   ;;
4302
4303 openbsd*)
4304   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4305     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4306   else
4307     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4308   fi
4309   ;;
4310
4311 osf3* | osf4* | osf5*)
4312   lt_cv_deplibs_check_method=pass_all
4313   ;;
4314
4315 solaris*)
4316   lt_cv_deplibs_check_method=pass_all
4317   ;;
4318
4319 sysv4 | sysv4.3*)
4320   case $host_vendor in
4321   motorola)
4322     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]'
4323     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4324     ;;
4325   ncr)
4326     lt_cv_deplibs_check_method=pass_all
4327     ;;
4328   sequent)
4329     lt_cv_file_magic_cmd='/bin/file'
4330     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4331     ;;
4332   sni)
4333     lt_cv_file_magic_cmd='/bin/file'
4334     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4335     lt_cv_file_magic_test_file=/lib/libc.so
4336     ;;
4337   siemens)
4338     lt_cv_deplibs_check_method=pass_all
4339     ;;
4340   pc)
4341     lt_cv_deplibs_check_method=pass_all
4342     ;;
4343   esac
4344   ;;
4345
4346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4347   lt_cv_deplibs_check_method=pass_all
4348   ;;
4349 esac
4350
4351 fi
4352 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4353 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4354 file_magic_cmd=$lt_cv_file_magic_cmd
4355 deplibs_check_method=$lt_cv_deplibs_check_method
4356 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4357
4358
4359
4360
4361 # If no C compiler was specified, use CC.
4362 LTCC=${LTCC-"$CC"}
4363
4364 # If no C compiler flags were specified, use CFLAGS.
4365 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4366
4367 # Allow CC to be a program name with arguments.
4368 compiler=$CC
4369
4370
4371 # Check whether --enable-libtool-lock was given.
4372 if test "${enable_libtool_lock+set}" = set; then
4373   enableval=$enable_libtool_lock;
4374 fi
4375
4376 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4377
4378 # Some flags need to be propagated to the compiler or linker for good
4379 # libtool support.
4380 case $host in
4381 ia64-*-hpux*)
4382   # Find out which ABI we are using.
4383   echo 'int i;' > conftest.$ac_ext
4384   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4385   (eval $ac_compile) 2>&5
4386   ac_status=$?
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); }; then
4389     case `/usr/bin/file conftest.$ac_objext` in
4390     *ELF-32*)
4391       HPUX_IA64_MODE="32"
4392       ;;
4393     *ELF-64*)
4394       HPUX_IA64_MODE="64"
4395       ;;
4396     esac
4397   fi
4398   rm -rf conftest*
4399   ;;
4400 *-*-irix6*)
4401   # Find out which ABI we are using.
4402   echo '#line 4402 "configure"' > conftest.$ac_ext
4403   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4404   (eval $ac_compile) 2>&5
4405   ac_status=$?
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); }; then
4408    if test "$lt_cv_prog_gnu_ld" = yes; then
4409     case `/usr/bin/file conftest.$ac_objext` in
4410     *32-bit*)
4411       LD="${LD-ld} -melf32bsmip"
4412       ;;
4413     *N32*)
4414       LD="${LD-ld} -melf32bmipn32"
4415       ;;
4416     *64-bit*)
4417       LD="${LD-ld} -melf64bmip"
4418       ;;
4419     esac
4420    else
4421     case `/usr/bin/file conftest.$ac_objext` in
4422     *32-bit*)
4423       LD="${LD-ld} -32"
4424       ;;
4425     *N32*)
4426       LD="${LD-ld} -n32"
4427       ;;
4428     *64-bit*)
4429       LD="${LD-ld} -64"
4430       ;;
4431     esac
4432    fi
4433   fi
4434   rm -rf conftest*
4435   ;;
4436
4437 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4438   # Find out which ABI we are using.
4439   echo 'int i;' > conftest.$ac_ext
4440   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4441   (eval $ac_compile) 2>&5
4442   ac_status=$?
4443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444   (exit $ac_status); }; then
4445     case `/usr/bin/file conftest.o` in
4446     *32-bit*)
4447       case $host in
4448         x86_64-*linux*)
4449           LD="${LD-ld} -m elf_i386"
4450           ;;
4451         ppc64-*linux*|powerpc64-*linux*)
4452           LD="${LD-ld} -m elf32ppclinux"
4453           ;;
4454         s390x-*linux*)
4455           LD="${LD-ld} -m elf_s390"
4456           ;;
4457         sparc64-*linux*)
4458           LD="${LD-ld} -m elf32_sparc"
4459           ;;
4460       esac
4461       ;;
4462     *64-bit*)
4463       case $host in
4464         x86_64-*linux*)
4465           LD="${LD-ld} -m elf_x86_64"
4466           ;;
4467         ppc*-*linux*|powerpc*-*linux*)
4468           LD="${LD-ld} -m elf64ppc"
4469           ;;
4470         s390*-*linux*)
4471           LD="${LD-ld} -m elf64_s390"
4472           ;;
4473         sparc*-*linux*)
4474           LD="${LD-ld} -m elf64_sparc"
4475           ;;
4476       esac
4477       ;;
4478     esac
4479   fi
4480   rm -rf conftest*
4481   ;;
4482
4483 *-*-sco3.2v5*)
4484   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4485   SAVE_CFLAGS="$CFLAGS"
4486   CFLAGS="$CFLAGS -belf"
4487   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4488 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4489 if test "${lt_cv_cc_needs_belf+set}" = set; then
4490   echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492   ac_ext=c
4493 ac_cpp='$CPP $CPPFLAGS'
4494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4497
4498      cat >conftest.$ac_ext <<_ACEOF
4499 /* confdefs.h.  */
4500 _ACEOF
4501 cat confdefs.h >>conftest.$ac_ext
4502 cat >>conftest.$ac_ext <<_ACEOF
4503 /* end confdefs.h.  */
4504
4505 int
4506 main ()
4507 {
4508
4509   ;
4510   return 0;
4511 }
4512 _ACEOF
4513 rm -f conftest.$ac_objext conftest$ac_exeext
4514 if { (ac_try="$ac_link"
4515 case "(($ac_try" in
4516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517   *) ac_try_echo=$ac_try;;
4518 esac
4519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4520   (eval "$ac_link") 2>conftest.er1
4521   ac_status=$?
4522   grep -v '^ *+' conftest.er1 >conftest.err
4523   rm -f conftest.er1
4524   cat conftest.err >&5
4525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526   (exit $ac_status); } && {
4527          test -z "$ac_c_werror_flag" ||
4528          test ! -s conftest.err
4529        } && test -s conftest$ac_exeext &&
4530        $as_test_x conftest$ac_exeext; then
4531   lt_cv_cc_needs_belf=yes
4532 else
4533   echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.$ac_ext >&5
4535
4536         lt_cv_cc_needs_belf=no
4537 fi
4538
4539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4540       conftest$ac_exeext conftest.$ac_ext
4541      ac_ext=c
4542 ac_cpp='$CPP $CPPFLAGS'
4543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4546
4547 fi
4548 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4549 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4550   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4551     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4552     CFLAGS="$SAVE_CFLAGS"
4553   fi
4554   ;;
4555 sparc*-*solaris*)
4556   # Find out which ABI we are using.
4557   echo 'int i;' > conftest.$ac_ext
4558   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559   (eval $ac_compile) 2>&5
4560   ac_status=$?
4561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562   (exit $ac_status); }; then
4563     case `/usr/bin/file conftest.o` in
4564     *64-bit*)
4565       case $lt_cv_prog_gnu_ld in
4566       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4567       *)    LD="${LD-ld} -64" ;;
4568       esac
4569       ;;
4570     esac
4571   fi
4572   rm -rf conftest*
4573   ;;
4574
4575 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4576   if test -n "$ac_tool_prefix"; then
4577   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4578 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4581 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4582   echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584   if test -n "$DLLTOOL"; then
4585   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4586 else
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4589 do
4590   IFS=$as_save_IFS
4591   test -z "$as_dir" && as_dir=.
4592   for ac_exec_ext in '' $ac_executable_extensions; do
4593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4594     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4596     break 2
4597   fi
4598 done
4599 done
4600 IFS=$as_save_IFS
4601
4602 fi
4603 fi
4604 DLLTOOL=$ac_cv_prog_DLLTOOL
4605 if test -n "$DLLTOOL"; then
4606   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4607 echo "${ECHO_T}$DLLTOOL" >&6; }
4608 else
4609   { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4611 fi
4612
4613
4614 fi
4615 if test -z "$ac_cv_prog_DLLTOOL"; then
4616   ac_ct_DLLTOOL=$DLLTOOL
4617   # Extract the first word of "dlltool", so it can be a program name with args.
4618 set dummy dlltool; ac_word=$2
4619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4621 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4622   echo $ECHO_N "(cached) $ECHO_C" >&6
4623 else
4624   if test -n "$ac_ct_DLLTOOL"; then
4625   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4626 else
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4629 do
4630   IFS=$as_save_IFS
4631   test -z "$as_dir" && as_dir=.
4632   for ac_exec_ext in '' $ac_executable_extensions; do
4633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4636     break 2
4637   fi
4638 done
4639 done
4640 IFS=$as_save_IFS
4641
4642 fi
4643 fi
4644 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4645 if test -n "$ac_ct_DLLTOOL"; then
4646   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4647 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4648 else
4649   { echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6; }
4651 fi
4652
4653   if test "x$ac_ct_DLLTOOL" = x; then
4654     DLLTOOL="false"
4655   else
4656     case $cross_compiling:$ac_tool_warned in
4657 yes:)
4658 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4659 whose name does not start with the host triplet.  If you think this
4660 configuration is useful to you, please write to autoconf@gnu.org." >&5
4661 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4662 whose name does not start with the host triplet.  If you think this
4663 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4664 ac_tool_warned=yes ;;
4665 esac
4666     DLLTOOL=$ac_ct_DLLTOOL
4667   fi
4668 else
4669   DLLTOOL="$ac_cv_prog_DLLTOOL"
4670 fi
4671
4672   if test -n "$ac_tool_prefix"; then
4673   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4674 set dummy ${ac_tool_prefix}as; ac_word=$2
4675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4677 if test "${ac_cv_prog_AS+set}" = set; then
4678   echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680   if test -n "$AS"; then
4681   ac_cv_prog_AS="$AS" # Let the user override the test.
4682 else
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4685 do
4686   IFS=$as_save_IFS
4687   test -z "$as_dir" && as_dir=.
4688   for ac_exec_ext in '' $ac_executable_extensions; do
4689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4690     ac_cv_prog_AS="${ac_tool_prefix}as"
4691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692     break 2
4693   fi
4694 done
4695 done
4696 IFS=$as_save_IFS
4697
4698 fi
4699 fi
4700 AS=$ac_cv_prog_AS
4701 if test -n "$AS"; then
4702   { echo "$as_me:$LINENO: result: $AS" >&5
4703 echo "${ECHO_T}$AS" >&6; }
4704 else
4705   { echo "$as_me:$LINENO: result: no" >&5
4706 echo "${ECHO_T}no" >&6; }
4707 fi
4708
4709
4710 fi
4711 if test -z "$ac_cv_prog_AS"; then
4712   ac_ct_AS=$AS
4713   # Extract the first word of "as", so it can be a program name with args.
4714 set dummy as; ac_word=$2
4715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4717 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4718   echo $ECHO_N "(cached) $ECHO_C" >&6
4719 else
4720   if test -n "$ac_ct_AS"; then
4721   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4722 else
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH
4725 do
4726   IFS=$as_save_IFS
4727   test -z "$as_dir" && as_dir=.
4728   for ac_exec_ext in '' $ac_executable_extensions; do
4729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730     ac_cv_prog_ac_ct_AS="as"
4731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732     break 2
4733   fi
4734 done
4735 done
4736 IFS=$as_save_IFS
4737
4738 fi
4739 fi
4740 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4741 if test -n "$ac_ct_AS"; then
4742   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4743 echo "${ECHO_T}$ac_ct_AS" >&6; }
4744 else
4745   { echo "$as_me:$LINENO: result: no" >&5
4746 echo "${ECHO_T}no" >&6; }
4747 fi
4748
4749   if test "x$ac_ct_AS" = x; then
4750     AS="false"
4751   else
4752     case $cross_compiling:$ac_tool_warned in
4753 yes:)
4754 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4755 whose name does not start with the host triplet.  If you think this
4756 configuration is useful to you, please write to autoconf@gnu.org." >&5
4757 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4758 whose name does not start with the host triplet.  If you think this
4759 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4760 ac_tool_warned=yes ;;
4761 esac
4762     AS=$ac_ct_AS
4763   fi
4764 else
4765   AS="$ac_cv_prog_AS"
4766 fi
4767
4768   if test -n "$ac_tool_prefix"; then
4769   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4770 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4773 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4774   echo $ECHO_N "(cached) $ECHO_C" >&6
4775 else
4776   if test -n "$OBJDUMP"; then
4777   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4778 else
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4781 do
4782   IFS=$as_save_IFS
4783   test -z "$as_dir" && as_dir=.
4784   for ac_exec_ext in '' $ac_executable_extensions; do
4785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4788     break 2
4789   fi
4790 done
4791 done
4792 IFS=$as_save_IFS
4793
4794 fi
4795 fi
4796 OBJDUMP=$ac_cv_prog_OBJDUMP
4797 if test -n "$OBJDUMP"; then
4798   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4799 echo "${ECHO_T}$OBJDUMP" >&6; }
4800 else
4801   { echo "$as_me:$LINENO: result: no" >&5
4802 echo "${ECHO_T}no" >&6; }
4803 fi
4804
4805
4806 fi
4807 if test -z "$ac_cv_prog_OBJDUMP"; then
4808   ac_ct_OBJDUMP=$OBJDUMP
4809   # Extract the first word of "objdump", so it can be a program name with args.
4810 set dummy objdump; ac_word=$2
4811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4813 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4814   echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816   if test -n "$ac_ct_OBJDUMP"; then
4817   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4818 else
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4821 do
4822   IFS=$as_save_IFS
4823   test -z "$as_dir" && as_dir=.
4824   for ac_exec_ext in '' $ac_executable_extensions; do
4825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828     break 2
4829   fi
4830 done
4831 done
4832 IFS=$as_save_IFS
4833
4834 fi
4835 fi
4836 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4837 if test -n "$ac_ct_OBJDUMP"; then
4838   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4839 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4840 else
4841   { echo "$as_me:$LINENO: result: no" >&5
4842 echo "${ECHO_T}no" >&6; }
4843 fi
4844
4845   if test "x$ac_ct_OBJDUMP" = x; then
4846     OBJDUMP="false"
4847   else
4848     case $cross_compiling:$ac_tool_warned in
4849 yes:)
4850 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4851 whose name does not start with the host triplet.  If you think this
4852 configuration is useful to you, please write to autoconf@gnu.org." >&5
4853 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4854 whose name does not start with the host triplet.  If you think this
4855 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4856 ac_tool_warned=yes ;;
4857 esac
4858     OBJDUMP=$ac_ct_OBJDUMP
4859   fi
4860 else
4861   OBJDUMP="$ac_cv_prog_OBJDUMP"
4862 fi
4863
4864   ;;
4865
4866 esac
4867
4868 need_locks="$enable_libtool_lock"
4869
4870
4871 ac_ext=c
4872 ac_cpp='$CPP $CPPFLAGS'
4873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4876 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4877 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4878 # On Suns, sometimes $CPP names a directory.
4879 if test -n "$CPP" && test -d "$CPP"; then
4880   CPP=
4881 fi
4882 if test -z "$CPP"; then
4883   if test "${ac_cv_prog_CPP+set}" = set; then
4884   echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886       # Double quotes because CPP needs to be expanded
4887     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4888     do
4889       ac_preproc_ok=false
4890 for ac_c_preproc_warn_flag in '' yes
4891 do
4892   # Use a header file that comes with gcc, so configuring glibc
4893   # with a fresh cross-compiler works.
4894   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4895   # <limits.h> exists even on freestanding compilers.
4896   # On the NeXT, cc -E runs the code through the compiler's parser,
4897   # not just through cpp. "Syntax error" is here to catch this case.
4898   cat >conftest.$ac_ext <<_ACEOF
4899 /* confdefs.h.  */
4900 _ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h.  */
4904 #ifdef __STDC__
4905 # include <limits.h>
4906 #else
4907 # include <assert.h>
4908 #endif
4909                      Syntax error
4910 _ACEOF
4911 if { (ac_try="$ac_cpp conftest.$ac_ext"
4912 case "(($ac_try" in
4913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914   *) ac_try_echo=$ac_try;;
4915 esac
4916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4918   ac_status=$?
4919   grep -v '^ *+' conftest.er1 >conftest.err
4920   rm -f conftest.er1
4921   cat conftest.err >&5
4922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923   (exit $ac_status); } >/dev/null && {
4924          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4925          test ! -s conftest.err
4926        }; then
4927   :
4928 else
4929   echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4931
4932   # Broken: fails on valid input.
4933 continue
4934 fi
4935
4936 rm -f conftest.err conftest.$ac_ext
4937
4938   # OK, works on sane cases.  Now check whether nonexistent headers
4939   # can be detected and how.
4940   cat >conftest.$ac_ext <<_ACEOF
4941 /* confdefs.h.  */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h.  */
4946 #include <ac_nonexistent.h>
4947 _ACEOF
4948 if { (ac_try="$ac_cpp conftest.$ac_ext"
4949 case "(($ac_try" in
4950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951   *) ac_try_echo=$ac_try;;
4952 esac
4953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4954   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4955   ac_status=$?
4956   grep -v '^ *+' conftest.er1 >conftest.err
4957   rm -f conftest.er1
4958   cat conftest.err >&5
4959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960   (exit $ac_status); } >/dev/null && {
4961          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4962          test ! -s conftest.err
4963        }; then
4964   # Broken: success on invalid input.
4965 continue
4966 else
4967   echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4969
4970   # Passes both tests.
4971 ac_preproc_ok=:
4972 break
4973 fi
4974
4975 rm -f conftest.err conftest.$ac_ext
4976
4977 done
4978 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4979 rm -f conftest.err conftest.$ac_ext
4980 if $ac_preproc_ok; then
4981   break
4982 fi
4983
4984     done
4985     ac_cv_prog_CPP=$CPP
4986
4987 fi
4988   CPP=$ac_cv_prog_CPP
4989 else
4990   ac_cv_prog_CPP=$CPP
4991 fi
4992 { echo "$as_me:$LINENO: result: $CPP" >&5
4993 echo "${ECHO_T}$CPP" >&6; }
4994 ac_preproc_ok=false
4995 for ac_c_preproc_warn_flag in '' yes
4996 do
4997   # Use a header file that comes with gcc, so configuring glibc
4998   # with a fresh cross-compiler works.
4999   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5000   # <limits.h> exists even on freestanding compilers.
5001   # On the NeXT, cc -E runs the code through the compiler's parser,
5002   # not just through cpp. "Syntax error" is here to catch this case.
5003   cat >conftest.$ac_ext <<_ACEOF
5004 /* confdefs.h.  */
5005 _ACEOF
5006 cat confdefs.h >>conftest.$ac_ext
5007 cat >>conftest.$ac_ext <<_ACEOF
5008 /* end confdefs.h.  */
5009 #ifdef __STDC__
5010 # include <limits.h>
5011 #else
5012 # include <assert.h>
5013 #endif
5014                      Syntax error
5015 _ACEOF
5016 if { (ac_try="$ac_cpp conftest.$ac_ext"
5017 case "(($ac_try" in
5018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5019   *) ac_try_echo=$ac_try;;
5020 esac
5021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5022   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5023   ac_status=$?
5024   grep -v '^ *+' conftest.er1 >conftest.err
5025   rm -f conftest.er1
5026   cat conftest.err >&5
5027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028   (exit $ac_status); } >/dev/null && {
5029          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5030          test ! -s conftest.err
5031        }; then
5032   :
5033 else
5034   echo "$as_me: failed program was:" >&5
5035 sed 's/^/| /' conftest.$ac_ext >&5
5036
5037   # Broken: fails on valid input.
5038 continue
5039 fi
5040
5041 rm -f conftest.err conftest.$ac_ext
5042
5043   # OK, works on sane cases.  Now check whether nonexistent headers
5044   # can be detected and how.
5045   cat >conftest.$ac_ext <<_ACEOF
5046 /* confdefs.h.  */
5047 _ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h.  */
5051 #include <ac_nonexistent.h>
5052 _ACEOF
5053 if { (ac_try="$ac_cpp conftest.$ac_ext"
5054 case "(($ac_try" in
5055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5056   *) ac_try_echo=$ac_try;;
5057 esac
5058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5059   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5060   ac_status=$?
5061   grep -v '^ *+' conftest.er1 >conftest.err
5062   rm -f conftest.er1
5063   cat conftest.err >&5
5064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065   (exit $ac_status); } >/dev/null && {
5066          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5067          test ! -s conftest.err
5068        }; then
5069   # Broken: success on invalid input.
5070 continue
5071 else
5072   echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.$ac_ext >&5
5074
5075   # Passes both tests.
5076 ac_preproc_ok=:
5077 break
5078 fi
5079
5080 rm -f conftest.err conftest.$ac_ext
5081
5082 done
5083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5084 rm -f conftest.err conftest.$ac_ext
5085 if $ac_preproc_ok; then
5086   :
5087 else
5088   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5089 See \`config.log' for more details." >&5
5090 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5091 See \`config.log' for more details." >&2;}
5092    { (exit 1); exit 1; }; }
5093 fi
5094
5095 ac_ext=c
5096 ac_cpp='$CPP $CPPFLAGS'
5097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5100
5101
5102 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5103 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5104 if test "${ac_cv_header_stdc+set}" = set; then
5105   echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107   cat >conftest.$ac_ext <<_ACEOF
5108 /* confdefs.h.  */
5109 _ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h.  */
5113 #include <stdlib.h>
5114 #include <stdarg.h>
5115 #include <string.h>
5116 #include <float.h>
5117
5118 int
5119 main ()
5120 {
5121
5122   ;
5123   return 0;
5124 }
5125 _ACEOF
5126 rm -f conftest.$ac_objext
5127 if { (ac_try="$ac_compile"
5128 case "(($ac_try" in
5129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130   *) ac_try_echo=$ac_try;;
5131 esac
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133   (eval "$ac_compile") 2>conftest.er1
5134   ac_status=$?
5135   grep -v '^ *+' conftest.er1 >conftest.err
5136   rm -f conftest.er1
5137   cat conftest.err >&5
5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139   (exit $ac_status); } && {
5140          test -z "$ac_c_werror_flag" ||
5141          test ! -s conftest.err
5142        } && test -s conftest.$ac_objext; then
5143   ac_cv_header_stdc=yes
5144 else
5145   echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5147
5148         ac_cv_header_stdc=no
5149 fi
5150
5151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152
5153 if test $ac_cv_header_stdc = yes; then
5154   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5155   cat >conftest.$ac_ext <<_ACEOF
5156 /* confdefs.h.  */
5157 _ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h.  */
5161 #include <string.h>
5162
5163 _ACEOF
5164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5165   $EGREP "memchr" >/dev/null 2>&1; then
5166   :
5167 else
5168   ac_cv_header_stdc=no
5169 fi
5170 rm -f conftest*
5171
5172 fi
5173
5174 if test $ac_cv_header_stdc = yes; then
5175   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5176   cat >conftest.$ac_ext <<_ACEOF
5177 /* confdefs.h.  */
5178 _ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h.  */
5182 #include <stdlib.h>
5183
5184 _ACEOF
5185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5186   $EGREP "free" >/dev/null 2>&1; then
5187   :
5188 else
5189   ac_cv_header_stdc=no
5190 fi
5191 rm -f conftest*
5192
5193 fi
5194
5195 if test $ac_cv_header_stdc = yes; then
5196   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5197   if test "$cross_compiling" = yes; then
5198   :
5199 else
5200   cat >conftest.$ac_ext <<_ACEOF
5201 /* confdefs.h.  */
5202 _ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h.  */
5206 #include <ctype.h>
5207 #include <stdlib.h>
5208 #if ((' ' & 0x0FF) == 0x020)
5209 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5210 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5211 #else
5212 # define ISLOWER(c) \
5213                    (('a' <= (c) && (c) <= 'i') \
5214                      || ('j' <= (c) && (c) <= 'r') \
5215                      || ('s' <= (c) && (c) <= 'z'))
5216 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5217 #endif
5218
5219 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5220 int
5221 main ()
5222 {
5223   int i;
5224   for (i = 0; i < 256; i++)
5225     if (XOR (islower (i), ISLOWER (i))
5226         || toupper (i) != TOUPPER (i))
5227       return 2;
5228   return 0;
5229 }
5230 _ACEOF
5231 rm -f conftest$ac_exeext
5232 if { (ac_try="$ac_link"
5233 case "(($ac_try" in
5234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235   *) ac_try_echo=$ac_try;;
5236 esac
5237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5238   (eval "$ac_link") 2>&5
5239   ac_status=$?
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5242   { (case "(($ac_try" in
5243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5244   *) ac_try_echo=$ac_try;;
5245 esac
5246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5247   (eval "$ac_try") 2>&5
5248   ac_status=$?
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); }; }; then
5251   :
5252 else
5253   echo "$as_me: program exited with status $ac_status" >&5
5254 echo "$as_me: failed program was:" >&5
5255 sed 's/^/| /' conftest.$ac_ext >&5
5256
5257 ( exit $ac_status )
5258 ac_cv_header_stdc=no
5259 fi
5260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5261 fi
5262
5263
5264 fi
5265 fi
5266 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5267 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5268 if test $ac_cv_header_stdc = yes; then
5269
5270 cat >>confdefs.h <<\_ACEOF
5271 #define STDC_HEADERS 1
5272 _ACEOF
5273
5274 fi
5275
5276 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5287                   inttypes.h stdint.h unistd.h
5288 do
5289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5293   echo $ECHO_N "(cached) $ECHO_C" >&6
5294 else
5295   cat >conftest.$ac_ext <<_ACEOF
5296 /* confdefs.h.  */
5297 _ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h.  */
5301 $ac_includes_default
5302
5303 #include <$ac_header>
5304 _ACEOF
5305 rm -f conftest.$ac_objext
5306 if { (ac_try="$ac_compile"
5307 case "(($ac_try" in
5308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309   *) ac_try_echo=$ac_try;;
5310 esac
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312   (eval "$ac_compile") 2>conftest.er1
5313   ac_status=$?
5314   grep -v '^ *+' conftest.er1 >conftest.err
5315   rm -f conftest.er1
5316   cat conftest.err >&5
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); } && {
5319          test -z "$ac_c_werror_flag" ||
5320          test ! -s conftest.err
5321        } && test -s conftest.$ac_objext; then
5322   eval "$as_ac_Header=yes"
5323 else
5324   echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327         eval "$as_ac_Header=no"
5328 fi
5329
5330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5331 fi
5332 ac_res=`eval echo '${'$as_ac_Header'}'`
5333                { echo "$as_me:$LINENO: result: $ac_res" >&5
5334 echo "${ECHO_T}$ac_res" >&6; }
5335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5336   cat >>confdefs.h <<_ACEOF
5337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5338 _ACEOF
5339
5340 fi
5341
5342 done
5343
5344
5345
5346 for ac_header in dlfcn.h
5347 do
5348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5350   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5353   echo $ECHO_N "(cached) $ECHO_C" >&6
5354 fi
5355 ac_res=`eval echo '${'$as_ac_Header'}'`
5356                { echo "$as_me:$LINENO: result: $ac_res" >&5
5357 echo "${ECHO_T}$ac_res" >&6; }
5358 else
5359   # Is the header compilable?
5360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5362 cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h.  */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h.  */
5368 $ac_includes_default
5369 #include <$ac_header>
5370 _ACEOF
5371 rm -f conftest.$ac_objext
5372 if { (ac_try="$ac_compile"
5373 case "(($ac_try" in
5374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375   *) ac_try_echo=$ac_try;;
5376 esac
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378   (eval "$ac_compile") 2>conftest.er1
5379   ac_status=$?
5380   grep -v '^ *+' conftest.er1 >conftest.err
5381   rm -f conftest.er1
5382   cat conftest.err >&5
5383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384   (exit $ac_status); } && {
5385          test -z "$ac_c_werror_flag" ||
5386          test ! -s conftest.err
5387        } && test -s conftest.$ac_objext; then
5388   ac_header_compiler=yes
5389 else
5390   echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5392
5393         ac_header_compiler=no
5394 fi
5395
5396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5398 echo "${ECHO_T}$ac_header_compiler" >&6; }
5399
5400 # Is the header present?
5401 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5403 cat >conftest.$ac_ext <<_ACEOF
5404 /* confdefs.h.  */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h.  */
5409 #include <$ac_header>
5410 _ACEOF
5411 if { (ac_try="$ac_cpp conftest.$ac_ext"
5412 case "(($ac_try" in
5413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414   *) ac_try_echo=$ac_try;;
5415 esac
5416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5418   ac_status=$?
5419   grep -v '^ *+' conftest.er1 >conftest.err
5420   rm -f conftest.er1
5421   cat conftest.err >&5
5422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423   (exit $ac_status); } >/dev/null && {
5424          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5425          test ! -s conftest.err
5426        }; then
5427   ac_header_preproc=yes
5428 else
5429   echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.$ac_ext >&5
5431
5432   ac_header_preproc=no
5433 fi
5434
5435 rm -f conftest.err conftest.$ac_ext
5436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5437 echo "${ECHO_T}$ac_header_preproc" >&6; }
5438
5439 # So?  What about this header?
5440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5441   yes:no: )
5442     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5446     ac_header_preproc=yes
5447     ;;
5448   no:yes:* )
5449     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5451     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5452 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5453     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5455     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5456 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5459     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5461     ( cat <<\_ASBOX
5462 ## -------------------------------------------------- ##
5463 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
5464 ## -------------------------------------------------- ##
5465 _ASBOX
5466      ) | sed "s/^/$as_me: WARNING:     /" >&2
5467     ;;
5468 esac
5469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5472   echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474   eval "$as_ac_Header=\$ac_header_preproc"
5475 fi
5476 ac_res=`eval echo '${'$as_ac_Header'}'`
5477                { echo "$as_me:$LINENO: result: $ac_res" >&5
5478 echo "${ECHO_T}$ac_res" >&6; }
5479
5480 fi
5481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5482   cat >>confdefs.h <<_ACEOF
5483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5484 _ACEOF
5485
5486 fi
5487
5488 done
5489
5490 ac_ext=cpp
5491 ac_cpp='$CXXCPP $CPPFLAGS'
5492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5495 if test -z "$CXX"; then
5496   if test -n "$CCC"; then
5497     CXX=$CCC
5498   else
5499     if test -n "$ac_tool_prefix"; then
5500   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5501   do
5502     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5503 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5506 if test "${ac_cv_prog_CXX+set}" = set; then
5507   echo $ECHO_N "(cached) $ECHO_C" >&6
5508 else
5509   if test -n "$CXX"; then
5510   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5511 else
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513 for as_dir in $PATH
5514 do
5515   IFS=$as_save_IFS
5516   test -z "$as_dir" && as_dir=.
5517   for ac_exec_ext in '' $ac_executable_extensions; do
5518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5519     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5521     break 2
5522   fi
5523 done
5524 done
5525 IFS=$as_save_IFS
5526
5527 fi
5528 fi
5529 CXX=$ac_cv_prog_CXX
5530 if test -n "$CXX"; then
5531   { echo "$as_me:$LINENO: result: $CXX" >&5
5532 echo "${ECHO_T}$CXX" >&6; }
5533 else
5534   { echo "$as_me:$LINENO: result: no" >&5
5535 echo "${ECHO_T}no" >&6; }
5536 fi
5537
5538
5539     test -n "$CXX" && break
5540   done
5541 fi
5542 if test -z "$CXX"; then
5543   ac_ct_CXX=$CXX
5544   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5545 do
5546   # Extract the first word of "$ac_prog", so it can be a program name with args.
5547 set dummy $ac_prog; ac_word=$2
5548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5550 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5551   echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553   if test -n "$ac_ct_CXX"; then
5554   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5555 else
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5558 do
5559   IFS=$as_save_IFS
5560   test -z "$as_dir" && as_dir=.
5561   for ac_exec_ext in '' $ac_executable_extensions; do
5562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563     ac_cv_prog_ac_ct_CXX="$ac_prog"
5564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5565     break 2
5566   fi
5567 done
5568 done
5569 IFS=$as_save_IFS
5570
5571 fi
5572 fi
5573 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5574 if test -n "$ac_ct_CXX"; then
5575   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5576 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5577 else
5578   { echo "$as_me:$LINENO: result: no" >&5
5579 echo "${ECHO_T}no" >&6; }
5580 fi
5581
5582
5583   test -n "$ac_ct_CXX" && break
5584 done
5585
5586   if test "x$ac_ct_CXX" = x; then
5587     CXX="g++"
5588   else
5589     case $cross_compiling:$ac_tool_warned in
5590 yes:)
5591 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5592 whose name does not start with the host triplet.  If you think this
5593 configuration is useful to you, please write to autoconf@gnu.org." >&5
5594 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5595 whose name does not start with the host triplet.  If you think this
5596 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5597 ac_tool_warned=yes ;;
5598 esac
5599     CXX=$ac_ct_CXX
5600   fi
5601 fi
5602
5603   fi
5604 fi
5605 # Provide some information about the compiler.
5606 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5607 ac_compiler=`set X $ac_compile; echo $2`
5608 { (ac_try="$ac_compiler --version >&5"
5609 case "(($ac_try" in
5610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611   *) ac_try_echo=$ac_try;;
5612 esac
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614   (eval "$ac_compiler --version >&5") 2>&5
5615   ac_status=$?
5616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617   (exit $ac_status); }
5618 { (ac_try="$ac_compiler -v >&5"
5619 case "(($ac_try" in
5620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621   *) ac_try_echo=$ac_try;;
5622 esac
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624   (eval "$ac_compiler -v >&5") 2>&5
5625   ac_status=$?
5626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627   (exit $ac_status); }
5628 { (ac_try="$ac_compiler -V >&5"
5629 case "(($ac_try" in
5630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631   *) ac_try_echo=$ac_try;;
5632 esac
5633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634   (eval "$ac_compiler -V >&5") 2>&5
5635   ac_status=$?
5636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637   (exit $ac_status); }
5638
5639 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5640 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5641 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5642   echo $ECHO_N "(cached) $ECHO_C" >&6
5643 else
5644   cat >conftest.$ac_ext <<_ACEOF
5645 /* confdefs.h.  */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h.  */
5650
5651 int
5652 main ()
5653 {
5654 #ifndef __GNUC__
5655        choke me
5656 #endif
5657
5658   ;
5659   return 0;
5660 }
5661 _ACEOF
5662 rm -f conftest.$ac_objext
5663 if { (ac_try="$ac_compile"
5664 case "(($ac_try" in
5665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666   *) ac_try_echo=$ac_try;;
5667 esac
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669   (eval "$ac_compile") 2>conftest.er1
5670   ac_status=$?
5671   grep -v '^ *+' conftest.er1 >conftest.err
5672   rm -f conftest.er1
5673   cat conftest.err >&5
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); } && {
5676          test -z "$ac_cxx_werror_flag" ||
5677          test ! -s conftest.err
5678        } && test -s conftest.$ac_objext; then
5679   ac_compiler_gnu=yes
5680 else
5681   echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5683
5684         ac_compiler_gnu=no
5685 fi
5686
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5689
5690 fi
5691 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5692 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5693 GXX=`test $ac_compiler_gnu = yes && echo yes`
5694 ac_test_CXXFLAGS=${CXXFLAGS+set}
5695 ac_save_CXXFLAGS=$CXXFLAGS
5696 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5697 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5698 if test "${ac_cv_prog_cxx_g+set}" = set; then
5699   echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5702    ac_cxx_werror_flag=yes
5703    ac_cv_prog_cxx_g=no
5704    CXXFLAGS="-g"
5705    cat >conftest.$ac_ext <<_ACEOF
5706 /* confdefs.h.  */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h.  */
5711
5712 int
5713 main ()
5714 {
5715
5716   ;
5717   return 0;
5718 }
5719 _ACEOF
5720 rm -f conftest.$ac_objext
5721 if { (ac_try="$ac_compile"
5722 case "(($ac_try" in
5723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724   *) ac_try_echo=$ac_try;;
5725 esac
5726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727   (eval "$ac_compile") 2>conftest.er1
5728   ac_status=$?
5729   grep -v '^ *+' conftest.er1 >conftest.err
5730   rm -f conftest.er1
5731   cat conftest.err >&5
5732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733   (exit $ac_status); } && {
5734          test -z "$ac_cxx_werror_flag" ||
5735          test ! -s conftest.err
5736        } && test -s conftest.$ac_objext; then
5737   ac_cv_prog_cxx_g=yes
5738 else
5739   echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5741
5742         CXXFLAGS=""
5743       cat >conftest.$ac_ext <<_ACEOF
5744 /* confdefs.h.  */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h.  */
5749
5750 int
5751 main ()
5752 {
5753
5754   ;
5755   return 0;
5756 }
5757 _ACEOF
5758 rm -f conftest.$ac_objext
5759 if { (ac_try="$ac_compile"
5760 case "(($ac_try" in
5761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762   *) ac_try_echo=$ac_try;;
5763 esac
5764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765   (eval "$ac_compile") 2>conftest.er1
5766   ac_status=$?
5767   grep -v '^ *+' conftest.er1 >conftest.err
5768   rm -f conftest.er1
5769   cat conftest.err >&5
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); } && {
5772          test -z "$ac_cxx_werror_flag" ||
5773          test ! -s conftest.err
5774        } && test -s conftest.$ac_objext; then
5775   :
5776 else
5777   echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5779
5780         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5781          CXXFLAGS="-g"
5782          cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h.  */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h.  */
5788
5789 int
5790 main ()
5791 {
5792
5793   ;
5794   return 0;
5795 }
5796 _ACEOF
5797 rm -f conftest.$ac_objext
5798 if { (ac_try="$ac_compile"
5799 case "(($ac_try" in
5800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801   *) ac_try_echo=$ac_try;;
5802 esac
5803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804   (eval "$ac_compile") 2>conftest.er1
5805   ac_status=$?
5806   grep -v '^ *+' conftest.er1 >conftest.err
5807   rm -f conftest.er1
5808   cat conftest.err >&5
5809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810   (exit $ac_status); } && {
5811          test -z "$ac_cxx_werror_flag" ||
5812          test ! -s conftest.err
5813        } && test -s conftest.$ac_objext; then
5814   ac_cv_prog_cxx_g=yes
5815 else
5816   echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5818
5819
5820 fi
5821
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823 fi
5824
5825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826 fi
5827
5828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5829    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5830 fi
5831 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5832 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5833 if test "$ac_test_CXXFLAGS" = set; then
5834   CXXFLAGS=$ac_save_CXXFLAGS
5835 elif test $ac_cv_prog_cxx_g = yes; then
5836   if test "$GXX" = yes; then
5837     CXXFLAGS="-g -O2"
5838   else
5839     CXXFLAGS="-g"
5840   fi
5841 else
5842   if test "$GXX" = yes; then
5843     CXXFLAGS="-O2"
5844   else
5845     CXXFLAGS=
5846   fi
5847 fi
5848 ac_ext=cpp
5849 ac_cpp='$CXXCPP $CPPFLAGS'
5850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5853
5854 depcc="$CXX"  am_compiler_list=
5855
5856 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5857 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5858 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5859   echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5862   # We make a subdir and do the tests there.  Otherwise we can end up
5863   # making bogus files that we don't know about and never remove.  For
5864   # instance it was reported that on HP-UX the gcc test will end up
5865   # making a dummy file named `D' -- because `-MD' means `put the output
5866   # in D'.
5867   mkdir conftest.dir
5868   # Copy depcomp to subdir because otherwise we won't find it if we're
5869   # using a relative directory.
5870   cp "$am_depcomp" conftest.dir
5871   cd conftest.dir
5872   # We will build objects and dependencies in a subdirectory because
5873   # it helps to detect inapplicable dependency modes.  For instance
5874   # both Tru64's cc and ICC support -MD to output dependencies as a
5875   # side effect of compilation, but ICC will put the dependencies in
5876   # the current directory while Tru64 will put them in the object
5877   # directory.
5878   mkdir sub
5879
5880   am_cv_CXX_dependencies_compiler_type=none
5881   if test "$am_compiler_list" = ""; then
5882      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5883   fi
5884   for depmode in $am_compiler_list; do
5885     # Setup a source with many dependencies, because some compilers
5886     # like to wrap large dependency lists on column 80 (with \), and
5887     # we should not choose a depcomp mode which is confused by this.
5888     #
5889     # We need to recreate these files for each test, as the compiler may
5890     # overwrite some of them when testing with obscure command lines.
5891     # This happens at least with the AIX C compiler.
5892     : > sub/conftest.c
5893     for i in 1 2 3 4 5 6; do
5894       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5895       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5896       # Solaris 8's {/usr,}/bin/sh.
5897       touch sub/conftst$i.h
5898     done
5899     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5900
5901     case $depmode in
5902     nosideeffect)
5903       # after this tag, mechanisms are not by side-effect, so they'll
5904       # only be used when explicitly requested
5905       if test "x$enable_dependency_tracking" = xyes; then
5906         continue
5907       else
5908         break
5909       fi
5910       ;;
5911     none) break ;;
5912     esac
5913     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5914     # mode.  It turns out that the SunPro C++ compiler does not properly
5915     # handle `-M -o', and we need to detect this.
5916     if depmode=$depmode \
5917        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5918        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5919        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5920          >/dev/null 2>conftest.err &&
5921        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5922        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5923        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5924       # icc doesn't choke on unknown options, it will just issue warnings
5925       # or remarks (even with -Werror).  So we grep stderr for any message
5926       # that says an option was ignored or not supported.
5927       # When given -MP, icc 7.0 and 7.1 complain thusly:
5928       #   icc: Command line warning: ignoring option '-M'; no argument required
5929       # The diagnosis changed in icc 8.0:
5930       #   icc: Command line remark: option '-MP' not supported
5931       if (grep 'ignoring option' conftest.err ||
5932           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5933         am_cv_CXX_dependencies_compiler_type=$depmode
5934         break
5935       fi
5936     fi
5937   done
5938
5939   cd ..
5940   rm -rf conftest.dir
5941 else
5942   am_cv_CXX_dependencies_compiler_type=none
5943 fi
5944
5945 fi
5946 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5947 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5948 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5949
5950
5951
5952 if
5953   test "x$enable_dependency_tracking" != xno \
5954   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5955   am__fastdepCXX_TRUE=
5956   am__fastdepCXX_FALSE='#'
5957 else
5958   am__fastdepCXX_TRUE='#'
5959   am__fastdepCXX_FALSE=
5960 fi
5961
5962
5963
5964
5965 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5966     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5967     (test "X$CXX" != "Xg++"))) ; then
5968   ac_ext=cpp
5969 ac_cpp='$CXXCPP $CPPFLAGS'
5970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5973 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5974 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5975 if test -z "$CXXCPP"; then
5976   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5977   echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979       # Double quotes because CXXCPP needs to be expanded
5980     for CXXCPP in "$CXX -E" "/lib/cpp"
5981     do
5982       ac_preproc_ok=false
5983 for ac_cxx_preproc_warn_flag in '' yes
5984 do
5985   # Use a header file that comes with gcc, so configuring glibc
5986   # with a fresh cross-compiler works.
5987   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5988   # <limits.h> exists even on freestanding compilers.
5989   # On the NeXT, cc -E runs the code through the compiler's parser,
5990   # not just through cpp. "Syntax error" is here to catch this case.
5991   cat >conftest.$ac_ext <<_ACEOF
5992 /* confdefs.h.  */
5993 _ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h.  */
5997 #ifdef __STDC__
5998 # include <limits.h>
5999 #else
6000 # include <assert.h>
6001 #endif
6002                      Syntax error
6003 _ACEOF
6004 if { (ac_try="$ac_cpp conftest.$ac_ext"
6005 case "(($ac_try" in
6006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007   *) ac_try_echo=$ac_try;;
6008 esac
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6011   ac_status=$?
6012   grep -v '^ *+' conftest.er1 >conftest.err
6013   rm -f conftest.er1
6014   cat conftest.err >&5
6015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016   (exit $ac_status); } >/dev/null && {
6017          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6018          test ! -s conftest.err
6019        }; then
6020   :
6021 else
6022   echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6024
6025   # Broken: fails on valid input.
6026 continue
6027 fi
6028
6029 rm -f conftest.err conftest.$ac_ext
6030
6031   # OK, works on sane cases.  Now check whether nonexistent headers
6032   # can be detected and how.
6033   cat >conftest.$ac_ext <<_ACEOF
6034 /* confdefs.h.  */
6035 _ACEOF
6036 cat confdefs.h >>conftest.$ac_ext
6037 cat >>conftest.$ac_ext <<_ACEOF
6038 /* end confdefs.h.  */
6039 #include <ac_nonexistent.h>
6040 _ACEOF
6041 if { (ac_try="$ac_cpp conftest.$ac_ext"
6042 case "(($ac_try" in
6043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044   *) ac_try_echo=$ac_try;;
6045 esac
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6048   ac_status=$?
6049   grep -v '^ *+' conftest.er1 >conftest.err
6050   rm -f conftest.er1
6051   cat conftest.err >&5
6052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053   (exit $ac_status); } >/dev/null && {
6054          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6055          test ! -s conftest.err
6056        }; then
6057   # Broken: success on invalid input.
6058 continue
6059 else
6060   echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6062
6063   # Passes both tests.
6064 ac_preproc_ok=:
6065 break
6066 fi
6067
6068 rm -f conftest.err conftest.$ac_ext
6069
6070 done
6071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6072 rm -f conftest.err conftest.$ac_ext
6073 if $ac_preproc_ok; then
6074   break
6075 fi
6076
6077     done
6078     ac_cv_prog_CXXCPP=$CXXCPP
6079
6080 fi
6081   CXXCPP=$ac_cv_prog_CXXCPP
6082 else
6083   ac_cv_prog_CXXCPP=$CXXCPP
6084 fi
6085 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6086 echo "${ECHO_T}$CXXCPP" >&6; }
6087 ac_preproc_ok=false
6088 for ac_cxx_preproc_warn_flag in '' yes
6089 do
6090   # Use a header file that comes with gcc, so configuring glibc
6091   # with a fresh cross-compiler works.
6092   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6093   # <limits.h> exists even on freestanding compilers.
6094   # On the NeXT, cc -E runs the code through the compiler's parser,
6095   # not just through cpp. "Syntax error" is here to catch this case.
6096   cat >conftest.$ac_ext <<_ACEOF
6097 /* confdefs.h.  */
6098 _ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h.  */
6102 #ifdef __STDC__
6103 # include <limits.h>
6104 #else
6105 # include <assert.h>
6106 #endif
6107                      Syntax error
6108 _ACEOF
6109 if { (ac_try="$ac_cpp conftest.$ac_ext"
6110 case "(($ac_try" in
6111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6112   *) ac_try_echo=$ac_try;;
6113 esac
6114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6115   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6116   ac_status=$?
6117   grep -v '^ *+' conftest.er1 >conftest.err
6118   rm -f conftest.er1
6119   cat conftest.err >&5
6120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121   (exit $ac_status); } >/dev/null && {
6122          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6123          test ! -s conftest.err
6124        }; then
6125   :
6126 else
6127   echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6129
6130   # Broken: fails on valid input.
6131 continue
6132 fi
6133
6134 rm -f conftest.err conftest.$ac_ext
6135
6136   # OK, works on sane cases.  Now check whether nonexistent headers
6137   # can be detected and how.
6138   cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h.  */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h.  */
6144 #include <ac_nonexistent.h>
6145 _ACEOF
6146 if { (ac_try="$ac_cpp conftest.$ac_ext"
6147 case "(($ac_try" in
6148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149   *) ac_try_echo=$ac_try;;
6150 esac
6151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6153   ac_status=$?
6154   grep -v '^ *+' conftest.er1 >conftest.err
6155   rm -f conftest.er1
6156   cat conftest.err >&5
6157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158   (exit $ac_status); } >/dev/null && {
6159          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6160          test ! -s conftest.err
6161        }; then
6162   # Broken: success on invalid input.
6163 continue
6164 else
6165   echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6167
6168   # Passes both tests.
6169 ac_preproc_ok=:
6170 break
6171 fi
6172
6173 rm -f conftest.err conftest.$ac_ext
6174
6175 done
6176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6177 rm -f conftest.err conftest.$ac_ext
6178 if $ac_preproc_ok; then
6179   :
6180 else
6181   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6182 See \`config.log' for more details." >&5
6183 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6184 See \`config.log' for more details." >&2;}
6185    { (exit 1); exit 1; }; }
6186 fi
6187
6188 ac_ext=cpp
6189 ac_cpp='$CXXCPP $CPPFLAGS'
6190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6193
6194 fi
6195
6196
6197
6198
6199
6200 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6201
6202 # find the maximum length of command line arguments
6203 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6204 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6205 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6206   echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208     i=0
6209   teststring="ABCD"
6210
6211   case $build_os in
6212   msdosdjgpp*)
6213     # On DJGPP, this test can blow up pretty badly due to problems in libc
6214     # (any single argument exceeding 2000 bytes causes a buffer overrun
6215     # during glob expansion).  Even if it were fixed, the result of this
6216     # check would be larger than it should be.
6217     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6218     ;;
6219
6220   gnu*)
6221     # Under GNU Hurd, this test is not required because there is
6222     # no limit to the length of command line arguments.
6223     # Libtool will interpret -1 as no limit whatsoever
6224     lt_cv_sys_max_cmd_len=-1;
6225     ;;
6226
6227   cygwin* | mingw*)
6228     # On Win9x/ME, this test blows up -- it succeeds, but takes
6229     # about 5 minutes as the teststring grows exponentially.
6230     # Worse, since 9x/ME are not pre-emptively multitasking,
6231     # you end up with a "frozen" computer, even though with patience
6232     # the test eventually succeeds (with a max line length of 256k).
6233     # Instead, let's just punt: use the minimum linelength reported by
6234     # all of the supported platforms: 8192 (on NT/2K/XP).
6235     lt_cv_sys_max_cmd_len=8192;
6236     ;;
6237
6238   amigaos*)
6239     # On AmigaOS with pdksh, this test takes hours, literally.
6240     # So we just punt and use a minimum line length of 8192.
6241     lt_cv_sys_max_cmd_len=8192;
6242     ;;
6243
6244   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6245     # This has been around since 386BSD, at least.  Likely further.
6246     if test -x /sbin/sysctl; then
6247       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6248     elif test -x /usr/sbin/sysctl; then
6249       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6250     else
6251       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6252     fi
6253     # And add a safety zone
6254     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6255     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6256     ;;
6257
6258   interix*)
6259     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6260     lt_cv_sys_max_cmd_len=196608
6261     ;;
6262
6263   osf*)
6264     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6265     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6266     # nice to cause kernel panics so lets avoid the loop below.
6267     # First set a reasonable default.
6268     lt_cv_sys_max_cmd_len=16384
6269     #
6270     if test -x /sbin/sysconfig; then
6271       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6272         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6273       esac
6274     fi
6275     ;;
6276   sco3.2v5*)
6277     lt_cv_sys_max_cmd_len=102400
6278     ;;
6279   sysv5* | sco5v6* | sysv4.2uw2*)
6280     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6281     if test -n "$kargmax"; then
6282       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6283     else
6284       lt_cv_sys_max_cmd_len=32768
6285     fi
6286     ;;
6287   *)
6288     # If test is not a shell built-in, we'll probably end up computing a
6289     # maximum length that is only half of the actual maximum length, but
6290     # we can't tell.
6291     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6292     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6293                = "XX$teststring") >/dev/null 2>&1 &&
6294             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6295             lt_cv_sys_max_cmd_len=$new_result &&
6296             test $i != 17 # 1/2 MB should be enough
6297     do
6298       i=`expr $i + 1`
6299       teststring=$teststring$teststring
6300     done
6301     teststring=
6302     # Add a significant safety factor because C++ compilers can tack on massive
6303     # amounts of additional arguments before passing them to the linker.
6304     # It appears as though 1/2 is a usable value.
6305     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6306     ;;
6307   esac
6308
6309 fi
6310
6311 if test -n $lt_cv_sys_max_cmd_len ; then
6312   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6313 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6314 else
6315   { echo "$as_me:$LINENO: result: none" >&5
6316 echo "${ECHO_T}none" >&6; }
6317 fi
6318
6319
6320
6321
6322 # Check for command to grab the raw symbol name followed by C symbol from nm.
6323 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6324 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6325 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6326   echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328
6329 # These are sane defaults that work on at least a few old systems.
6330 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6331
6332 # Character class describing NM global symbol codes.
6333 symcode='[BCDEGRST]'
6334
6335 # Regexp to match symbols that can be accessed directly from C.
6336 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6337
6338 # Transform an extracted symbol line into a proper C declaration
6339 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6340
6341 # Transform an extracted symbol line into symbol name and symbol address
6342 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'"
6343
6344 # Define system-specific variables.
6345 case $host_os in
6346 aix*)
6347   symcode='[BCDT]'
6348   ;;
6349 cygwin* | mingw* | pw32*)
6350   symcode='[ABCDGISTW]'
6351   ;;
6352 hpux*) # Its linker distinguishes data from code symbols
6353   if test "$host_cpu" = ia64; then
6354     symcode='[ABCDEGRST]'
6355   fi
6356   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6357   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'"
6358   ;;
6359 linux* | k*bsd*-gnu)
6360   if test "$host_cpu" = ia64; then
6361     symcode='[ABCDGIRSTW]'
6362     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6363     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'"
6364   fi
6365   ;;
6366 irix* | nonstopux*)
6367   symcode='[BCDEGRST]'
6368   ;;
6369 osf*)
6370   symcode='[BCDEGQRST]'
6371   ;;
6372 solaris*)
6373   symcode='[BDRT]'
6374   ;;
6375 sco3.2v5*)
6376   symcode='[DT]'
6377   ;;
6378 sysv4.2uw2*)
6379   symcode='[DT]'
6380   ;;
6381 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6382   symcode='[ABDT]'
6383   ;;
6384 sysv4)
6385   symcode='[DFNSTU]'
6386   ;;
6387 esac
6388
6389 # Handle CRLF in mingw tool chain
6390 opt_cr=
6391 case $build_os in
6392 mingw*)
6393   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6394   ;;
6395 esac
6396
6397 # If we're using GNU nm, then use its standard symbol codes.
6398 case `$NM -V 2>&1` in
6399 *GNU* | *'with BFD'*)
6400   symcode='[ABCDGIRSTW]' ;;
6401 esac
6402
6403 # Try without a prefix undercore, then with it.
6404 for ac_symprfx in "" "_"; do
6405
6406   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6407   symxfrm="\\1 $ac_symprfx\\2 \\2"
6408
6409   # Write the raw and C identifiers.
6410   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6411
6412   # Check to see that the pipe works correctly.
6413   pipe_works=no
6414
6415   rm -f conftest*
6416   cat > conftest.$ac_ext <<EOF
6417 #ifdef __cplusplus
6418 extern "C" {
6419 #endif
6420 char nm_test_var;
6421 void nm_test_func(){}
6422 #ifdef __cplusplus
6423 }
6424 #endif
6425 int main(){nm_test_var='a';nm_test_func();return(0);}
6426 EOF
6427
6428   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6429   (eval $ac_compile) 2>&5
6430   ac_status=$?
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); }; then
6433     # Now try to grab the symbols.
6434     nlist=conftest.nm
6435     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6436   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6437   ac_status=$?
6438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439   (exit $ac_status); } && test -s "$nlist"; then
6440       # Try sorting and uniquifying the output.
6441       if sort "$nlist" | uniq > "$nlist"T; then
6442         mv -f "$nlist"T "$nlist"
6443       else
6444         rm -f "$nlist"T
6445       fi
6446
6447       # Make sure that we snagged all the symbols we need.
6448       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6449         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6450           cat <<EOF > conftest.$ac_ext
6451 #ifdef __cplusplus
6452 extern "C" {
6453 #endif
6454
6455 EOF
6456           # Now generate the symbol file.
6457           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6458
6459           cat <<EOF >> conftest.$ac_ext
6460 #if defined (__STDC__) && __STDC__
6461 # define lt_ptr_t void *
6462 #else
6463 # define lt_ptr_t char *
6464 # define const
6465 #endif
6466
6467 /* The mapping between symbol names and symbols. */
6468 const struct {
6469   const char *name;
6470   lt_ptr_t address;
6471 }
6472 lt_preloaded_symbols[] =
6473 {
6474 EOF
6475           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6476           cat <<\EOF >> conftest.$ac_ext
6477   {0, (lt_ptr_t) 0}
6478 };
6479
6480 #ifdef __cplusplus
6481 }
6482 #endif
6483 EOF
6484           # Now try linking the two files.
6485           mv conftest.$ac_objext conftstm.$ac_objext
6486           lt_save_LIBS="$LIBS"
6487           lt_save_CFLAGS="$CFLAGS"
6488           LIBS="conftstm.$ac_objext"
6489           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6490           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6491   (eval $ac_link) 2>&5
6492   ac_status=$?
6493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6495             pipe_works=yes
6496           fi
6497           LIBS="$lt_save_LIBS"
6498           CFLAGS="$lt_save_CFLAGS"
6499         else
6500           echo "cannot find nm_test_func in $nlist" >&5
6501         fi
6502       else
6503         echo "cannot find nm_test_var in $nlist" >&5
6504       fi
6505     else
6506       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6507     fi
6508   else
6509     echo "$progname: failed program was:" >&5
6510     cat conftest.$ac_ext >&5
6511   fi
6512   rm -f conftest* conftst*
6513
6514   # Do not use the global_symbol_pipe unless it works.
6515   if test "$pipe_works" = yes; then
6516     break
6517   else
6518     lt_cv_sys_global_symbol_pipe=
6519   fi
6520 done
6521
6522 fi
6523
6524 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6525   lt_cv_sys_global_symbol_to_cdecl=
6526 fi
6527 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6528   { echo "$as_me:$LINENO: result: failed" >&5
6529 echo "${ECHO_T}failed" >&6; }
6530 else
6531   { echo "$as_me:$LINENO: result: ok" >&5
6532 echo "${ECHO_T}ok" >&6; }
6533 fi
6534
6535 { echo "$as_me:$LINENO: checking for objdir" >&5
6536 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6537 if test "${lt_cv_objdir+set}" = set; then
6538   echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540   rm -f .libs 2>/dev/null
6541 mkdir .libs 2>/dev/null
6542 if test -d .libs; then
6543   lt_cv_objdir=.libs
6544 else
6545   # MS-DOS does not allow filenames that begin with a dot.
6546   lt_cv_objdir=_libs
6547 fi
6548 rmdir .libs 2>/dev/null
6549 fi
6550 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6551 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6552 objdir=$lt_cv_objdir
6553
6554
6555
6556
6557
6558 case $host_os in
6559 aix3*)
6560   # AIX sometimes has problems with the GCC collect2 program.  For some
6561   # reason, if we set the COLLECT_NAMES environment variable, the problems
6562   # vanish in a puff of smoke.
6563   if test "X${COLLECT_NAMES+set}" != Xset; then
6564     COLLECT_NAMES=
6565     export COLLECT_NAMES
6566   fi
6567   ;;
6568 esac
6569
6570 # Sed substitution that helps us do robust quoting.  It backslashifies
6571 # metacharacters that are still active within double-quoted strings.
6572 Xsed='sed -e 1s/^X//'
6573 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6574
6575 # Same as above, but do not quote variable references.
6576 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6577
6578 # Sed substitution to delay expansion of an escaped shell variable in a
6579 # double_quote_subst'ed string.
6580 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6581
6582 # Sed substitution to avoid accidental globbing in evaled expressions
6583 no_glob_subst='s/\*/\\\*/g'
6584
6585 # Constants:
6586 rm="rm -f"
6587
6588 # Global variables:
6589 default_ofile=libtool
6590 can_build_shared=yes
6591
6592 # All known linkers require a `.a' archive for static linking (except MSVC,
6593 # which needs '.lib').
6594 libext=a
6595 ltmain="$ac_aux_dir/ltmain.sh"
6596 ofile="$default_ofile"
6597 with_gnu_ld="$lt_cv_prog_gnu_ld"
6598
6599 if test -n "$ac_tool_prefix"; then
6600   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6601 set dummy ${ac_tool_prefix}ar; ac_word=$2
6602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6604 if test "${ac_cv_prog_AR+set}" = set; then
6605   echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6607   if test -n "$AR"; then
6608   ac_cv_prog_AR="$AR" # Let the user override the test.
6609 else
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 for as_dir in $PATH
6612 do
6613   IFS=$as_save_IFS
6614   test -z "$as_dir" && as_dir=.
6615   for ac_exec_ext in '' $ac_executable_extensions; do
6616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6617     ac_cv_prog_AR="${ac_tool_prefix}ar"
6618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6619     break 2
6620   fi
6621 done
6622 done
6623 IFS=$as_save_IFS
6624
6625 fi
6626 fi
6627 AR=$ac_cv_prog_AR
6628 if test -n "$AR"; then
6629   { echo "$as_me:$LINENO: result: $AR" >&5
6630 echo "${ECHO_T}$AR" >&6; }
6631 else
6632   { echo "$as_me:$LINENO: result: no" >&5
6633 echo "${ECHO_T}no" >&6; }
6634 fi
6635
6636
6637 fi
6638 if test -z "$ac_cv_prog_AR"; then
6639   ac_ct_AR=$AR
6640   # Extract the first word of "ar", so it can be a program name with args.
6641 set dummy ar; ac_word=$2
6642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6644 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6645   echo $ECHO_N "(cached) $ECHO_C" >&6
6646 else
6647   if test -n "$ac_ct_AR"; then
6648   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6649 else
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6652 do
6653   IFS=$as_save_IFS
6654   test -z "$as_dir" && as_dir=.
6655   for ac_exec_ext in '' $ac_executable_extensions; do
6656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657     ac_cv_prog_ac_ct_AR="ar"
6658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6659     break 2
6660   fi
6661 done
6662 done
6663 IFS=$as_save_IFS
6664
6665 fi
6666 fi
6667 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6668 if test -n "$ac_ct_AR"; then
6669   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6670 echo "${ECHO_T}$ac_ct_AR" >&6; }
6671 else
6672   { echo "$as_me:$LINENO: result: no" >&5
6673 echo "${ECHO_T}no" >&6; }
6674 fi
6675
6676   if test "x$ac_ct_AR" = x; then
6677     AR="false"
6678   else
6679     case $cross_compiling:$ac_tool_warned in
6680 yes:)
6681 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6682 whose name does not start with the host triplet.  If you think this
6683 configuration is useful to you, please write to autoconf@gnu.org." >&5
6684 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6685 whose name does not start with the host triplet.  If you think this
6686 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6687 ac_tool_warned=yes ;;
6688 esac
6689     AR=$ac_ct_AR
6690   fi
6691 else
6692   AR="$ac_cv_prog_AR"
6693 fi
6694
6695 if test -n "$ac_tool_prefix"; then
6696   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6697 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700 if test "${ac_cv_prog_RANLIB+set}" = set; then
6701   echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703   if test -n "$RANLIB"; then
6704   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6705 else
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6708 do
6709   IFS=$as_save_IFS
6710   test -z "$as_dir" && as_dir=.
6711   for ac_exec_ext in '' $ac_executable_extensions; do
6712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6713     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6715     break 2
6716   fi
6717 done
6718 done
6719 IFS=$as_save_IFS
6720
6721 fi
6722 fi
6723 RANLIB=$ac_cv_prog_RANLIB
6724 if test -n "$RANLIB"; then
6725   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6726 echo "${ECHO_T}$RANLIB" >&6; }
6727 else
6728   { echo "$as_me:$LINENO: result: no" >&5
6729 echo "${ECHO_T}no" >&6; }
6730 fi
6731
6732
6733 fi
6734 if test -z "$ac_cv_prog_RANLIB"; then
6735   ac_ct_RANLIB=$RANLIB
6736   # Extract the first word of "ranlib", so it can be a program name with args.
6737 set dummy ranlib; ac_word=$2
6738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6741   echo $ECHO_N "(cached) $ECHO_C" >&6
6742 else
6743   if test -n "$ac_ct_RANLIB"; then
6744   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6745 else
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 for as_dir in $PATH
6748 do
6749   IFS=$as_save_IFS
6750   test -z "$as_dir" && as_dir=.
6751   for ac_exec_ext in '' $ac_executable_extensions; do
6752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6753     ac_cv_prog_ac_ct_RANLIB="ranlib"
6754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755     break 2
6756   fi
6757 done
6758 done
6759 IFS=$as_save_IFS
6760
6761 fi
6762 fi
6763 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6764 if test -n "$ac_ct_RANLIB"; then
6765   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6766 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6767 else
6768   { echo "$as_me:$LINENO: result: no" >&5
6769 echo "${ECHO_T}no" >&6; }
6770 fi
6771
6772   if test "x$ac_ct_RANLIB" = x; then
6773     RANLIB=":"
6774   else
6775     case $cross_compiling:$ac_tool_warned in
6776 yes:)
6777 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6778 whose name does not start with the host triplet.  If you think this
6779 configuration is useful to you, please write to autoconf@gnu.org." >&5
6780 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6781 whose name does not start with the host triplet.  If you think this
6782 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6783 ac_tool_warned=yes ;;
6784 esac
6785     RANLIB=$ac_ct_RANLIB
6786   fi
6787 else
6788   RANLIB="$ac_cv_prog_RANLIB"
6789 fi
6790
6791 if test -n "$ac_tool_prefix"; then
6792   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6793 set dummy ${ac_tool_prefix}strip; ac_word=$2
6794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6796 if test "${ac_cv_prog_STRIP+set}" = set; then
6797   echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799   if test -n "$STRIP"; then
6800   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6801 else
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6804 do
6805   IFS=$as_save_IFS
6806   test -z "$as_dir" && as_dir=.
6807   for ac_exec_ext in '' $ac_executable_extensions; do
6808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6809     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811     break 2
6812   fi
6813 done
6814 done
6815 IFS=$as_save_IFS
6816
6817 fi
6818 fi
6819 STRIP=$ac_cv_prog_STRIP
6820 if test -n "$STRIP"; then
6821   { echo "$as_me:$LINENO: result: $STRIP" >&5
6822 echo "${ECHO_T}$STRIP" >&6; }
6823 else
6824   { echo "$as_me:$LINENO: result: no" >&5
6825 echo "${ECHO_T}no" >&6; }
6826 fi
6827
6828
6829 fi
6830 if test -z "$ac_cv_prog_STRIP"; then
6831   ac_ct_STRIP=$STRIP
6832   # Extract the first word of "strip", so it can be a program name with args.
6833 set dummy strip; ac_word=$2
6834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6836 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6837   echo $ECHO_N "(cached) $ECHO_C" >&6
6838 else
6839   if test -n "$ac_ct_STRIP"; then
6840   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6841 else
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 for as_dir in $PATH
6844 do
6845   IFS=$as_save_IFS
6846   test -z "$as_dir" && as_dir=.
6847   for ac_exec_ext in '' $ac_executable_extensions; do
6848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6849     ac_cv_prog_ac_ct_STRIP="strip"
6850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6851     break 2
6852   fi
6853 done
6854 done
6855 IFS=$as_save_IFS
6856
6857 fi
6858 fi
6859 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6860 if test -n "$ac_ct_STRIP"; then
6861   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6862 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6863 else
6864   { echo "$as_me:$LINENO: result: no" >&5
6865 echo "${ECHO_T}no" >&6; }
6866 fi
6867
6868   if test "x$ac_ct_STRIP" = x; then
6869     STRIP=":"
6870   else
6871     case $cross_compiling:$ac_tool_warned in
6872 yes:)
6873 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6874 whose name does not start with the host triplet.  If you think this
6875 configuration is useful to you, please write to autoconf@gnu.org." >&5
6876 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6877 whose name does not start with the host triplet.  If you think this
6878 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6879 ac_tool_warned=yes ;;
6880 esac
6881     STRIP=$ac_ct_STRIP
6882   fi
6883 else
6884   STRIP="$ac_cv_prog_STRIP"
6885 fi
6886
6887
6888 old_CC="$CC"
6889 old_CFLAGS="$CFLAGS"
6890
6891 # Set sane defaults for various variables
6892 test -z "$AR" && AR=ar
6893 test -z "$AR_FLAGS" && AR_FLAGS=cru
6894 test -z "$AS" && AS=as
6895 test -z "$CC" && CC=cc
6896 test -z "$LTCC" && LTCC=$CC
6897 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6898 test -z "$DLLTOOL" && DLLTOOL=dlltool
6899 test -z "$LD" && LD=ld
6900 test -z "$LN_S" && LN_S="ln -s"
6901 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6902 test -z "$NM" && NM=nm
6903 test -z "$SED" && SED=sed
6904 test -z "$OBJDUMP" && OBJDUMP=objdump
6905 test -z "$RANLIB" && RANLIB=:
6906 test -z "$STRIP" && STRIP=:
6907 test -z "$ac_objext" && ac_objext=o
6908
6909 # Determine commands to create old-style static archives.
6910 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6911 old_postinstall_cmds='chmod 644 $oldlib'
6912 old_postuninstall_cmds=
6913
6914 if test -n "$RANLIB"; then
6915   case $host_os in
6916   openbsd*)
6917     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6918     ;;
6919   *)
6920     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6921     ;;
6922   esac
6923   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6924 fi
6925
6926 for cc_temp in $compiler""; do
6927   case $cc_temp in
6928     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6929     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6930     \-*) ;;
6931     *) break;;
6932   esac
6933 done
6934 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6935
6936
6937 # Only perform the check for file, if the check method requires it
6938 case $deplibs_check_method in
6939 file_magic*)
6940   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6941     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6942 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6943 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6944   echo $ECHO_N "(cached) $ECHO_C" >&6
6945 else
6946   case $MAGIC_CMD in
6947 [\\/*] |  ?:[\\/]*)
6948   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6949   ;;
6950 *)
6951   lt_save_MAGIC_CMD="$MAGIC_CMD"
6952   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6953   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6954   for ac_dir in $ac_dummy; do
6955     IFS="$lt_save_ifs"
6956     test -z "$ac_dir" && ac_dir=.
6957     if test -f $ac_dir/${ac_tool_prefix}file; then
6958       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6959       if test -n "$file_magic_test_file"; then
6960         case $deplibs_check_method in
6961         "file_magic "*)
6962           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6963           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6964           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6965             $EGREP "$file_magic_regex" > /dev/null; then
6966             :
6967           else
6968             cat <<EOF 1>&2
6969
6970 *** Warning: the command libtool uses to detect shared libraries,
6971 *** $file_magic_cmd, produces output that libtool cannot recognize.
6972 *** The result is that libtool may fail to recognize shared libraries
6973 *** as such.  This will affect the creation of libtool libraries that
6974 *** depend on shared libraries, but programs linked with such libtool
6975 *** libraries will work regardless of this problem.  Nevertheless, you
6976 *** may want to report the problem to your system manager and/or to
6977 *** bug-libtool@gnu.org
6978
6979 EOF
6980           fi ;;
6981         esac
6982       fi
6983       break
6984     fi
6985   done
6986   IFS="$lt_save_ifs"
6987   MAGIC_CMD="$lt_save_MAGIC_CMD"
6988   ;;
6989 esac
6990 fi
6991
6992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6993 if test -n "$MAGIC_CMD"; then
6994   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6995 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6996 else
6997   { echo "$as_me:$LINENO: result: no" >&5
6998 echo "${ECHO_T}no" >&6; }
6999 fi
7000
7001 if test -z "$lt_cv_path_MAGIC_CMD"; then
7002   if test -n "$ac_tool_prefix"; then
7003     { echo "$as_me:$LINENO: checking for file" >&5
7004 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7005 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7006   echo $ECHO_N "(cached) $ECHO_C" >&6
7007 else
7008   case $MAGIC_CMD in
7009 [\\/*] |  ?:[\\/]*)
7010   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7011   ;;
7012 *)
7013   lt_save_MAGIC_CMD="$MAGIC_CMD"
7014   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7015   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7016   for ac_dir in $ac_dummy; do
7017     IFS="$lt_save_ifs"
7018     test -z "$ac_dir" && ac_dir=.
7019     if test -f $ac_dir/file; then
7020       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7021       if test -n "$file_magic_test_file"; then
7022         case $deplibs_check_method in
7023         "file_magic "*)
7024           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7025           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7026           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7027             $EGREP "$file_magic_regex" > /dev/null; then
7028             :
7029           else
7030             cat <<EOF 1>&2
7031
7032 *** Warning: the command libtool uses to detect shared libraries,
7033 *** $file_magic_cmd, produces output that libtool cannot recognize.
7034 *** The result is that libtool may fail to recognize shared libraries
7035 *** as such.  This will affect the creation of libtool libraries that
7036 *** depend on shared libraries, but programs linked with such libtool
7037 *** libraries will work regardless of this problem.  Nevertheless, you
7038 *** may want to report the problem to your system manager and/or to
7039 *** bug-libtool@gnu.org
7040
7041 EOF
7042           fi ;;
7043         esac
7044       fi
7045       break
7046     fi
7047   done
7048   IFS="$lt_save_ifs"
7049   MAGIC_CMD="$lt_save_MAGIC_CMD"
7050   ;;
7051 esac
7052 fi
7053
7054 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7055 if test -n "$MAGIC_CMD"; then
7056   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7057 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7058 else
7059   { echo "$as_me:$LINENO: result: no" >&5
7060 echo "${ECHO_T}no" >&6; }
7061 fi
7062
7063   else
7064     MAGIC_CMD=:
7065   fi
7066 fi
7067
7068   fi
7069   ;;
7070 esac
7071
7072 enable_dlopen=no
7073 enable_win32_dll=yes
7074
7075 # Check whether --enable-libtool-lock was given.
7076 if test "${enable_libtool_lock+set}" = set; then
7077   enableval=$enable_libtool_lock;
7078 fi
7079
7080 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7081
7082
7083 # Check whether --with-pic was given.
7084 if test "${with_pic+set}" = set; then
7085   withval=$with_pic; pic_mode="$withval"
7086 else
7087   pic_mode=default
7088 fi
7089
7090 test -z "$pic_mode" && pic_mode=default
7091
7092 # Use C for the default configuration in the libtool script
7093 tagname=
7094 lt_save_CC="$CC"
7095 ac_ext=c
7096 ac_cpp='$CPP $CPPFLAGS'
7097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7100
7101
7102 # Source file extension for C test sources.
7103 ac_ext=c
7104
7105 # Object file extension for compiled C test sources.
7106 objext=o
7107 objext=$objext
7108
7109 # Code to be used in simple compile tests
7110 lt_simple_compile_test_code="int some_variable = 0;\n"
7111
7112 # Code to be used in simple link tests
7113 lt_simple_link_test_code='int main(){return(0);}\n'
7114
7115
7116 # If no C compiler was specified, use CC.
7117 LTCC=${LTCC-"$CC"}
7118
7119 # If no C compiler flags were specified, use CFLAGS.
7120 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7121
7122 # Allow CC to be a program name with arguments.
7123 compiler=$CC
7124
7125
7126 # save warnings/boilerplate of simple test code
7127 ac_outfile=conftest.$ac_objext
7128 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7129 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7130 _lt_compiler_boilerplate=`cat conftest.err`
7131 $rm conftest*
7132
7133 ac_outfile=conftest.$ac_objext
7134 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7135 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7136 _lt_linker_boilerplate=`cat conftest.err`
7137 $rm conftest*
7138
7139
7140
7141 lt_prog_compiler_no_builtin_flag=
7142
7143 if test "$GCC" = yes; then
7144   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7145
7146
7147 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7148 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7149 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   lt_cv_prog_compiler_rtti_exceptions=no
7153   ac_outfile=conftest.$ac_objext
7154    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7155    lt_compiler_flag="-fno-rtti -fno-exceptions"
7156    # Insert the option either (1) after the last *FLAGS variable, or
7157    # (2) before a word containing "conftest.", or (3) at the end.
7158    # Note that $ac_compile itself does not contain backslashes and begins
7159    # with a dollar sign (not a hyphen), so the echo should work correctly.
7160    # The option is referenced via a variable to avoid confusing sed.
7161    lt_compile=`echo "$ac_compile" | $SED \
7162    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7163    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7164    -e 's:$: $lt_compiler_flag:'`
7165    (eval echo "\"\$as_me:7165: $lt_compile\"" >&5)
7166    (eval "$lt_compile" 2>conftest.err)
7167    ac_status=$?
7168    cat conftest.err >&5
7169    echo "$as_me:7169: \$? = $ac_status" >&5
7170    if (exit $ac_status) && test -s "$ac_outfile"; then
7171      # The compiler can only warn and ignore the option if not recognized
7172      # So say no if there are warnings other than the usual output.
7173      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7174      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7175      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7176        lt_cv_prog_compiler_rtti_exceptions=yes
7177      fi
7178    fi
7179    $rm conftest*
7180
7181 fi
7182 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7183 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7184
7185 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7186     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7187 else
7188     :
7189 fi
7190
7191 fi
7192
7193 lt_prog_compiler_wl=
7194 lt_prog_compiler_pic=
7195 lt_prog_compiler_static=
7196
7197 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7198 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7199
7200   if test "$GCC" = yes; then
7201     lt_prog_compiler_wl='-Wl,'
7202     lt_prog_compiler_static='-static'
7203
7204     case $host_os in
7205       aix*)
7206       # All AIX code is PIC.
7207       if test "$host_cpu" = ia64; then
7208         # AIX 5 now supports IA64 processor
7209         lt_prog_compiler_static='-Bstatic'
7210       fi
7211       ;;
7212
7213     amigaos*)
7214       # FIXME: we need at least 68020 code to build shared libraries, but
7215       # adding the `-m68020' flag to GCC prevents building anything better,
7216       # like `-m68040'.
7217       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7218       ;;
7219
7220     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7221       # PIC is the default for these OSes.
7222       ;;
7223
7224     mingw* | pw32* | os2*)
7225       # This hack is so that the source file can tell whether it is being
7226       # built for inclusion in a dll (and should export symbols for example).
7227       lt_prog_compiler_pic='-DDLL_EXPORT'
7228       ;;
7229
7230     darwin* | rhapsody*)
7231       # PIC is the default on this platform
7232       # Common symbols not allowed in MH_DYLIB files
7233       lt_prog_compiler_pic='-fno-common'
7234       ;;
7235
7236     interix3*)
7237       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7238       # Instead, we relocate shared libraries at runtime.
7239       ;;
7240
7241     msdosdjgpp*)
7242       # Just because we use GCC doesn't mean we suddenly get shared libraries
7243       # on systems that don't support them.
7244       lt_prog_compiler_can_build_shared=no
7245       enable_shared=no
7246       ;;
7247
7248     sysv4*MP*)
7249       if test -d /usr/nec; then
7250         lt_prog_compiler_pic=-Kconform_pic
7251       fi
7252       ;;
7253
7254     hpux*)
7255       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7256       # not for PA HP-UX.
7257       case $host_cpu in
7258       hppa*64*|ia64*)
7259         # +Z the default
7260         ;;
7261       *)
7262         lt_prog_compiler_pic='-fPIC'
7263         ;;
7264       esac
7265       ;;
7266
7267     *)
7268       lt_prog_compiler_pic='-fPIC'
7269       ;;
7270     esac
7271   else
7272     # PORTME Check for flag to pass linker flags through the system compiler.
7273     case $host_os in
7274     aix*)
7275       lt_prog_compiler_wl='-Wl,'
7276       if test "$host_cpu" = ia64; then
7277         # AIX 5 now supports IA64 processor
7278         lt_prog_compiler_static='-Bstatic'
7279       else
7280         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7281       fi
7282       ;;
7283       darwin*)
7284         # PIC is the default on this platform
7285         # Common symbols not allowed in MH_DYLIB files
7286        case $cc_basename in
7287          xlc*)
7288          lt_prog_compiler_pic='-qnocommon'
7289          lt_prog_compiler_wl='-Wl,'
7290          ;;
7291        esac
7292        ;;
7293
7294     mingw* | pw32* | os2*)
7295       # This hack is so that the source file can tell whether it is being
7296       # built for inclusion in a dll (and should export symbols for example).
7297       lt_prog_compiler_pic='-DDLL_EXPORT'
7298       ;;
7299
7300     hpux9* | hpux10* | hpux11*)
7301       lt_prog_compiler_wl='-Wl,'
7302       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7303       # not for PA HP-UX.
7304       case $host_cpu in
7305       hppa*64*|ia64*)
7306         # +Z the default
7307         ;;
7308       *)
7309         lt_prog_compiler_pic='+Z'
7310         ;;
7311       esac
7312       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7313       lt_prog_compiler_static='${wl}-a ${wl}archive'
7314       ;;
7315
7316     irix5* | irix6* | nonstopux*)
7317       lt_prog_compiler_wl='-Wl,'
7318       # PIC (with -KPIC) is the default.
7319       lt_prog_compiler_static='-non_shared'
7320       ;;
7321
7322     newsos6)
7323       lt_prog_compiler_pic='-KPIC'
7324       lt_prog_compiler_static='-Bstatic'
7325       ;;
7326
7327     linux* | k*bsd*-gnu)
7328       case $cc_basename in
7329       icc* | ecc*)
7330         lt_prog_compiler_wl='-Wl,'
7331         lt_prog_compiler_pic='-KPIC'
7332         lt_prog_compiler_static='-static'
7333         ;;
7334       pgcc* | pgf77* | pgf90* | pgf95*)
7335         # Portland Group compilers (*not* the Pentium gcc compiler,
7336         # which looks to be a dead project)
7337         lt_prog_compiler_wl='-Wl,'
7338         lt_prog_compiler_pic='-fpic'
7339         lt_prog_compiler_static='-Bstatic'
7340         ;;
7341       ccc*)
7342         lt_prog_compiler_wl='-Wl,'
7343         # All Alpha code is PIC.
7344         lt_prog_compiler_static='-non_shared'
7345         ;;
7346       esac
7347       ;;
7348
7349     osf3* | osf4* | osf5*)
7350       lt_prog_compiler_wl='-Wl,'
7351       # All OSF/1 code is PIC.
7352       lt_prog_compiler_static='-non_shared'
7353       ;;
7354
7355     solaris*)
7356       lt_prog_compiler_pic='-KPIC'
7357       lt_prog_compiler_static='-Bstatic'
7358       case $cc_basename in
7359       f77* | f90* | f95*)
7360         lt_prog_compiler_wl='-Qoption ld ';;
7361       *)
7362         lt_prog_compiler_wl='-Wl,';;
7363       esac
7364       ;;
7365
7366     sunos4*)
7367       lt_prog_compiler_wl='-Qoption ld '
7368       lt_prog_compiler_pic='-PIC'
7369       lt_prog_compiler_static='-Bstatic'
7370       ;;
7371
7372     sysv4 | sysv4.2uw2* | sysv4.3*)
7373       lt_prog_compiler_wl='-Wl,'
7374       lt_prog_compiler_pic='-KPIC'
7375       lt_prog_compiler_static='-Bstatic'
7376       ;;
7377
7378     sysv4*MP*)
7379       if test -d /usr/nec ;then
7380         lt_prog_compiler_pic='-Kconform_pic'
7381         lt_prog_compiler_static='-Bstatic'
7382       fi
7383       ;;
7384
7385     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7386       lt_prog_compiler_wl='-Wl,'
7387       lt_prog_compiler_pic='-KPIC'
7388       lt_prog_compiler_static='-Bstatic'
7389       ;;
7390
7391     unicos*)
7392       lt_prog_compiler_wl='-Wl,'
7393       lt_prog_compiler_can_build_shared=no
7394       ;;
7395
7396     uts4*)
7397       lt_prog_compiler_pic='-pic'
7398       lt_prog_compiler_static='-Bstatic'
7399       ;;
7400
7401     *)
7402       lt_prog_compiler_can_build_shared=no
7403       ;;
7404     esac
7405   fi
7406
7407 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7408 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7409
7410 #
7411 # Check to make sure the PIC flag actually works.
7412 #
7413 if test -n "$lt_prog_compiler_pic"; then
7414
7415 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7416 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7417 if test "${lt_prog_compiler_pic_works+set}" = set; then
7418   echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420   lt_prog_compiler_pic_works=no
7421   ac_outfile=conftest.$ac_objext
7422    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7423    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7424    # Insert the option either (1) after the last *FLAGS variable, or
7425    # (2) before a word containing "conftest.", or (3) at the end.
7426    # Note that $ac_compile itself does not contain backslashes and begins
7427    # with a dollar sign (not a hyphen), so the echo should work correctly.
7428    # The option is referenced via a variable to avoid confusing sed.
7429    lt_compile=`echo "$ac_compile" | $SED \
7430    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7431    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7432    -e 's:$: $lt_compiler_flag:'`
7433    (eval echo "\"\$as_me:7433: $lt_compile\"" >&5)
7434    (eval "$lt_compile" 2>conftest.err)
7435    ac_status=$?
7436    cat conftest.err >&5
7437    echo "$as_me:7437: \$? = $ac_status" >&5
7438    if (exit $ac_status) && test -s "$ac_outfile"; then
7439      # The compiler can only warn and ignore the option if not recognized
7440      # So say no if there are warnings other than the usual output.
7441      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7442      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7443      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7444        lt_prog_compiler_pic_works=yes
7445      fi
7446    fi
7447    $rm conftest*
7448
7449 fi
7450 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7451 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7452
7453 if test x"$lt_prog_compiler_pic_works" = xyes; then
7454     case $lt_prog_compiler_pic in
7455      "" | " "*) ;;
7456      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7457      esac
7458 else
7459     lt_prog_compiler_pic=
7460      lt_prog_compiler_can_build_shared=no
7461 fi
7462
7463 fi
7464 case $host_os in
7465   # For platforms which do not support PIC, -DPIC is meaningless:
7466   *djgpp*)
7467     lt_prog_compiler_pic=
7468     ;;
7469   *)
7470     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7471     ;;
7472 esac
7473
7474 #
7475 # Check to make sure the static flag actually works.
7476 #
7477 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7478 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7479 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7480 if test "${lt_prog_compiler_static_works+set}" = set; then
7481   echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483   lt_prog_compiler_static_works=no
7484    save_LDFLAGS="$LDFLAGS"
7485    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7486    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7487    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7488      # The linker can only warn and ignore the option if not recognized
7489      # So say no if there are warnings
7490      if test -s conftest.err; then
7491        # Append any errors to the config.log.
7492        cat conftest.err 1>&5
7493        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7494        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7495        if diff conftest.exp conftest.er2 >/dev/null; then
7496          lt_prog_compiler_static_works=yes
7497        fi
7498      else
7499        lt_prog_compiler_static_works=yes
7500      fi
7501    fi
7502    $rm conftest*
7503    LDFLAGS="$save_LDFLAGS"
7504
7505 fi
7506 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7507 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7508
7509 if test x"$lt_prog_compiler_static_works" = xyes; then
7510     :
7511 else
7512     lt_prog_compiler_static=
7513 fi
7514
7515
7516 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7517 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7518 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7519   echo $ECHO_N "(cached) $ECHO_C" >&6
7520 else
7521   lt_cv_prog_compiler_c_o=no
7522    $rm -r conftest 2>/dev/null
7523    mkdir conftest
7524    cd conftest
7525    mkdir out
7526    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7527
7528    lt_compiler_flag="-o out/conftest2.$ac_objext"
7529    # Insert the option either (1) after the last *FLAGS variable, or
7530    # (2) before a word containing "conftest.", or (3) at the end.
7531    # Note that $ac_compile itself does not contain backslashes and begins
7532    # with a dollar sign (not a hyphen), so the echo should work correctly.
7533    lt_compile=`echo "$ac_compile" | $SED \
7534    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7535    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7536    -e 's:$: $lt_compiler_flag:'`
7537    (eval echo "\"\$as_me:7537: $lt_compile\"" >&5)
7538    (eval "$lt_compile" 2>out/conftest.err)
7539    ac_status=$?
7540    cat out/conftest.err >&5
7541    echo "$as_me:7541: \$? = $ac_status" >&5
7542    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7543    then
7544      # The compiler can only warn and ignore the option if not recognized
7545      # So say no if there are warnings
7546      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7547      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7548      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7549        lt_cv_prog_compiler_c_o=yes
7550      fi
7551    fi
7552    chmod u+w . 2>&5
7553    $rm conftest*
7554    # SGI C++ compiler will create directory out/ii_files/ for
7555    # template instantiation
7556    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7557    $rm out/* && rmdir out
7558    cd ..
7559    rmdir conftest
7560    $rm conftest*
7561
7562 fi
7563 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7564 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7565
7566
7567 hard_links="nottested"
7568 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7569   # do not overwrite the value of need_locks provided by the user
7570   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7571 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7572   hard_links=yes
7573   $rm conftest*
7574   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7575   touch conftest.a
7576   ln conftest.a conftest.b 2>&5 || hard_links=no
7577   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7578   { echo "$as_me:$LINENO: result: $hard_links" >&5
7579 echo "${ECHO_T}$hard_links" >&6; }
7580   if test "$hard_links" = no; then
7581     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7582 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7583     need_locks=warn
7584   fi
7585 else
7586   need_locks=no
7587 fi
7588
7589 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7590 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7591
7592   runpath_var=
7593   allow_undefined_flag=
7594   enable_shared_with_static_runtimes=no
7595   archive_cmds=
7596   archive_expsym_cmds=
7597   old_archive_From_new_cmds=
7598   old_archive_from_expsyms_cmds=
7599   export_dynamic_flag_spec=
7600   whole_archive_flag_spec=
7601   thread_safe_flag_spec=
7602   hardcode_libdir_flag_spec=
7603   hardcode_libdir_flag_spec_ld=
7604   hardcode_libdir_separator=
7605   hardcode_direct=no
7606   hardcode_minus_L=no
7607   hardcode_shlibpath_var=unsupported
7608   link_all_deplibs=unknown
7609   hardcode_automatic=no
7610   module_cmds=
7611   module_expsym_cmds=
7612   always_export_symbols=no
7613   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7614   # include_expsyms should be a list of space-separated symbols to be *always*
7615   # included in the symbol list
7616   include_expsyms=
7617   # exclude_expsyms can be an extended regexp of symbols to exclude
7618   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7619   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7620   # as well as any symbol that contains `d'.
7621   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7622   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7623   # platforms (ab)use it in PIC code, but their linkers get confused if
7624   # the symbol is explicitly referenced.  Since portable code cannot
7625   # rely on this symbol name, it's probably fine to never include it in
7626   # preloaded symbol tables.
7627   extract_expsyms_cmds=
7628   # Just being paranoid about ensuring that cc_basename is set.
7629   for cc_temp in $compiler""; do
7630   case $cc_temp in
7631     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7632     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7633     \-*) ;;
7634     *) break;;
7635   esac
7636 done
7637 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7638
7639   case $host_os in
7640   cygwin* | mingw* | pw32*)
7641     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7642     # When not using gcc, we currently assume that we are using
7643     # Microsoft Visual C++.
7644     if test "$GCC" != yes; then
7645       with_gnu_ld=no
7646     fi
7647     ;;
7648   interix*)
7649     # we just hope/assume this is gcc and not c89 (= MSVC++)
7650     with_gnu_ld=yes
7651     ;;
7652   openbsd*)
7653     with_gnu_ld=no
7654     ;;
7655   esac
7656
7657   ld_shlibs=yes
7658   if test "$with_gnu_ld" = yes; then
7659     # If archive_cmds runs LD, not CC, wlarc should be empty
7660     wlarc='${wl}'
7661
7662     # Set some defaults for GNU ld with shared library support. These
7663     # are reset later if shared libraries are not supported. Putting them
7664     # here allows them to be overridden if necessary.
7665     runpath_var=LD_RUN_PATH
7666     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7667     export_dynamic_flag_spec='${wl}--export-dynamic'
7668     # ancient GNU ld didn't support --whole-archive et. al.
7669     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7670         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7671       else
7672         whole_archive_flag_spec=
7673     fi
7674     supports_anon_versioning=no
7675     case `$LD -v 2>/dev/null` in
7676       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7677       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7678       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7679       *\ 2.11.*) ;; # other 2.11 versions
7680       *) supports_anon_versioning=yes ;;
7681     esac
7682
7683     # See if GNU ld supports shared libraries.
7684     case $host_os in
7685     aix3* | aix4* | aix5*)
7686       # On AIX/PPC, the GNU linker is very broken
7687       if test "$host_cpu" != ia64; then
7688         ld_shlibs=no
7689         cat <<EOF 1>&2
7690
7691 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7692 *** to be unable to reliably create shared libraries on AIX.
7693 *** Therefore, libtool is disabling shared libraries support.  If you
7694 *** really care for shared libraries, you may want to modify your PATH
7695 *** so that a non-GNU linker is found, and then restart.
7696
7697 EOF
7698       fi
7699       ;;
7700
7701     amigaos*)
7702       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)'
7703       hardcode_libdir_flag_spec='-L$libdir'
7704       hardcode_minus_L=yes
7705
7706       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7707       # that the semantics of dynamic libraries on AmigaOS, at least up
7708       # to version 4, is to share data among multiple programs linked
7709       # with the same dynamic library.  Since this doesn't match the
7710       # behavior of shared libraries on other platforms, we can't use
7711       # them.
7712       ld_shlibs=no
7713       ;;
7714
7715     beos*)
7716       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7717         allow_undefined_flag=unsupported
7718         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7719         # support --undefined.  This deserves some investigation.  FIXME
7720         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7721       else
7722         ld_shlibs=no
7723       fi
7724       ;;
7725
7726     cygwin* | mingw* | pw32*)
7727       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7728       # as there is no search path for DLLs.
7729       hardcode_libdir_flag_spec='-L$libdir'
7730       allow_undefined_flag=unsupported
7731       always_export_symbols=no
7732       enable_shared_with_static_runtimes=yes
7733       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7734
7735       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7736         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7737         # If the export-symbols file already is a .def file (1st line
7738         # is EXPORTS), use it as is; otherwise, prepend...
7739         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7740           cp $export_symbols $output_objdir/$soname.def;
7741         else
7742           echo EXPORTS > $output_objdir/$soname.def;
7743           cat $export_symbols >> $output_objdir/$soname.def;
7744         fi~
7745         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7746       else
7747         ld_shlibs=no
7748       fi
7749       ;;
7750
7751     interix3*)
7752       hardcode_direct=no
7753       hardcode_shlibpath_var=no
7754       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7755       export_dynamic_flag_spec='${wl}-E'
7756       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7757       # Instead, shared libraries are loaded at an image base (0x10000000 by
7758       # default) and relocated if they conflict, which is a slow very memory
7759       # consuming and fragmenting process.  To avoid this, we pick a random,
7760       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7761       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7762       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7763       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'
7764       ;;
7765
7766     linux* | k*bsd*-gnu)
7767       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7768         tmp_addflag=
7769         case $cc_basename,$host_cpu in
7770         pgcc*)                          # Portland Group C compiler
7771           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'
7772           tmp_addflag=' $pic_flag'
7773           ;;
7774         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7775           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'
7776           tmp_addflag=' $pic_flag -Mnomain' ;;
7777         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7778           tmp_addflag=' -i_dynamic' ;;
7779         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7780           tmp_addflag=' -i_dynamic -nofor_main' ;;
7781         ifc* | ifort*)                  # Intel Fortran compiler
7782           tmp_addflag=' -nofor_main' ;;
7783         esac
7784         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7785
7786         if test $supports_anon_versioning = yes; then
7787           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7788   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7789   $echo "local: *; };" >> $output_objdir/$libname.ver~
7790           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7791         fi
7792         link_all_deplibs=no
7793       else
7794         ld_shlibs=no
7795       fi
7796       ;;
7797
7798     netbsd* | netbsdelf*-gnu)
7799       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7800         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7801         wlarc=
7802       else
7803         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7804         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7805       fi
7806       ;;
7807
7808     solaris*)
7809       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7810         ld_shlibs=no
7811         cat <<EOF 1>&2
7812
7813 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7814 *** create shared libraries on Solaris systems.  Therefore, libtool
7815 *** is disabling shared libraries support.  We urge you to upgrade GNU
7816 *** binutils to release 2.9.1 or newer.  Another option is to modify
7817 *** your PATH or compiler configuration so that the native linker is
7818 *** used, and then restart.
7819
7820 EOF
7821       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7822         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7823         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7824       else
7825         ld_shlibs=no
7826       fi
7827       ;;
7828
7829     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7830       case `$LD -v 2>&1` in
7831         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7832         ld_shlibs=no
7833         cat <<_LT_EOF 1>&2
7834
7835 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7836 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7837 *** is disabling shared libraries support.  We urge you to upgrade GNU
7838 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7839 *** your PATH or compiler configuration so that the native linker is
7840 *** used, and then restart.
7841
7842 _LT_EOF
7843         ;;
7844         *)
7845           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7846             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7847             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7848             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7849           else
7850             ld_shlibs=no
7851           fi
7852         ;;
7853       esac
7854       ;;
7855
7856     sunos4*)
7857       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7858       wlarc=
7859       hardcode_direct=yes
7860       hardcode_shlibpath_var=no
7861       ;;
7862
7863     *)
7864       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7865         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7866         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7867       else
7868         ld_shlibs=no
7869       fi
7870       ;;
7871     esac
7872
7873     if test "$ld_shlibs" = no; then
7874       runpath_var=
7875       hardcode_libdir_flag_spec=
7876       export_dynamic_flag_spec=
7877       whole_archive_flag_spec=
7878     fi
7879   else
7880     # PORTME fill in a description of your system's linker (not GNU ld)
7881     case $host_os in
7882     aix3*)
7883       allow_undefined_flag=unsupported
7884       always_export_symbols=yes
7885       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'
7886       # Note: this linker hardcodes the directories in LIBPATH if there
7887       # are no directories specified by -L.
7888       hardcode_minus_L=yes
7889       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7890         # Neither direct hardcoding nor static linking is supported with a
7891         # broken collect2.
7892         hardcode_direct=unsupported
7893       fi
7894       ;;
7895
7896     aix4* | aix5*)
7897       if test "$host_cpu" = ia64; then
7898         # On IA64, the linker does run time linking by default, so we don't
7899         # have to do anything special.
7900         aix_use_runtimelinking=no
7901         exp_sym_flag='-Bexport'
7902         no_entry_flag=""
7903       else
7904         # If we're using GNU nm, then we don't want the "-C" option.
7905         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7906         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7907           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'
7908         else
7909           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'
7910         fi
7911         aix_use_runtimelinking=no
7912
7913         # Test if we are trying to use run time linking or normal
7914         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7915         # need to do runtime linking.
7916         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7917           for ld_flag in $LDFLAGS; do
7918           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7919             aix_use_runtimelinking=yes
7920             break
7921           fi
7922           done
7923           ;;
7924         esac
7925
7926         exp_sym_flag='-bexport'
7927         no_entry_flag='-bnoentry'
7928       fi
7929
7930       # When large executables or shared objects are built, AIX ld can
7931       # have problems creating the table of contents.  If linking a library
7932       # or program results in "error TOC overflow" add -mminimal-toc to
7933       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7934       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7935
7936       archive_cmds=''
7937       hardcode_direct=yes
7938       hardcode_libdir_separator=':'
7939       link_all_deplibs=yes
7940
7941       if test "$GCC" = yes; then
7942         case $host_os in aix4.[012]|aix4.[012].*)
7943         # We only want to do this on AIX 4.2 and lower, the check
7944         # below for broken collect2 doesn't work under 4.3+
7945           collect2name=`${CC} -print-prog-name=collect2`
7946           if test -f "$collect2name" && \
7947            strings "$collect2name" | grep resolve_lib_name >/dev/null
7948           then
7949           # We have reworked collect2
7950           hardcode_direct=yes
7951           else
7952           # We have old collect2
7953           hardcode_direct=unsupported
7954           # It fails to find uninstalled libraries when the uninstalled
7955           # path is not listed in the libpath.  Setting hardcode_minus_L
7956           # to unsupported forces relinking
7957           hardcode_minus_L=yes
7958           hardcode_libdir_flag_spec='-L$libdir'
7959           hardcode_libdir_separator=
7960           fi
7961           ;;
7962         esac
7963         shared_flag='-shared'
7964         if test "$aix_use_runtimelinking" = yes; then
7965           shared_flag="$shared_flag "'${wl}-G'
7966         fi
7967       else
7968         # not using gcc
7969         if test "$host_cpu" = ia64; then
7970         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7971         # chokes on -Wl,-G. The following line is correct:
7972           shared_flag='-G'
7973         else
7974           if test "$aix_use_runtimelinking" = yes; then
7975             shared_flag='${wl}-G'
7976           else
7977             shared_flag='${wl}-bM:SRE'
7978           fi
7979         fi
7980       fi
7981
7982       # It seems that -bexpall does not export symbols beginning with
7983       # underscore (_), so it is better to generate a list of symbols to export.
7984       always_export_symbols=yes
7985       if test "$aix_use_runtimelinking" = yes; then
7986         # Warning - without using the other runtime loading flags (-brtl),
7987         # -berok will link without error, but may produce a broken library.
7988         allow_undefined_flag='-berok'
7989        # Determine the default libpath from the value encoded in an empty executable.
7990        cat >conftest.$ac_ext <<_ACEOF
7991 /* confdefs.h.  */
7992 _ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h.  */
7996
7997 int
7998 main ()
7999 {
8000
8001   ;
8002   return 0;
8003 }
8004 _ACEOF
8005 rm -f conftest.$ac_objext conftest$ac_exeext
8006 if { (ac_try="$ac_link"
8007 case "(($ac_try" in
8008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009   *) ac_try_echo=$ac_try;;
8010 esac
8011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012   (eval "$ac_link") 2>conftest.er1
8013   ac_status=$?
8014   grep -v '^ *+' conftest.er1 >conftest.err
8015   rm -f conftest.er1
8016   cat conftest.err >&5
8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018   (exit $ac_status); } && {
8019          test -z "$ac_c_werror_flag" ||
8020          test ! -s conftest.err
8021        } && test -s conftest$ac_exeext &&
8022        $as_test_x conftest$ac_exeext; then
8023
8024 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8025 }'`
8026 # Check for a 64-bit object if we didn't find anything.
8027 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8028 }'`; fi
8029 else
8030   echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8032
8033
8034 fi
8035
8036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8037       conftest$ac_exeext conftest.$ac_ext
8038 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8039
8040        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8041         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"
8042        else
8043         if test "$host_cpu" = ia64; then
8044           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8045           allow_undefined_flag="-z nodefs"
8046           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"
8047         else
8048          # Determine the default libpath from the value encoded in an empty executable.
8049          cat >conftest.$ac_ext <<_ACEOF
8050 /* confdefs.h.  */
8051 _ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h.  */
8055
8056 int
8057 main ()
8058 {
8059
8060   ;
8061   return 0;
8062 }
8063 _ACEOF
8064 rm -f conftest.$ac_objext conftest$ac_exeext
8065 if { (ac_try="$ac_link"
8066 case "(($ac_try" in
8067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068   *) ac_try_echo=$ac_try;;
8069 esac
8070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071   (eval "$ac_link") 2>conftest.er1
8072   ac_status=$?
8073   grep -v '^ *+' conftest.er1 >conftest.err
8074   rm -f conftest.er1
8075   cat conftest.err >&5
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); } && {
8078          test -z "$ac_c_werror_flag" ||
8079          test ! -s conftest.err
8080        } && test -s conftest$ac_exeext &&
8081        $as_test_x conftest$ac_exeext; then
8082
8083 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8084 }'`
8085 # Check for a 64-bit object if we didn't find anything.
8086 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8087 }'`; fi
8088 else
8089   echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8091
8092
8093 fi
8094
8095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8096       conftest$ac_exeext conftest.$ac_ext
8097 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8098
8099          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8100           # Warning - without using the other run time loading flags,
8101           # -berok will link without error, but may produce a broken library.
8102           no_undefined_flag=' ${wl}-bernotok'
8103           allow_undefined_flag=' ${wl}-berok'
8104           # Exported symbols can be pulled into shared objects from archives
8105           whole_archive_flag_spec='$convenience'
8106           archive_cmds_need_lc=yes
8107           # This is similar to how AIX traditionally builds its shared libraries.
8108           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'
8109         fi
8110       fi
8111       ;;
8112
8113     amigaos*)
8114       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)'
8115       hardcode_libdir_flag_spec='-L$libdir'
8116       hardcode_minus_L=yes
8117       # see comment about different semantics on the GNU ld section
8118       ld_shlibs=no
8119       ;;
8120
8121     bsdi[45]*)
8122       export_dynamic_flag_spec=-rdynamic
8123       ;;
8124
8125     cygwin* | mingw* | pw32*)
8126       # When not using gcc, we currently assume that we are using
8127       # Microsoft Visual C++.
8128       # hardcode_libdir_flag_spec is actually meaningless, as there is
8129       # no search path for DLLs.
8130       hardcode_libdir_flag_spec=' '
8131       allow_undefined_flag=unsupported
8132       # Tell ltmain to make .lib files, not .a files.
8133       libext=lib
8134       # Tell ltmain to make .dll files, not .so files.
8135       shrext_cmds=".dll"
8136       # FIXME: Setting linknames here is a bad hack.
8137       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8138       # The linker will automatically build a .lib file if we build a DLL.
8139       old_archive_From_new_cmds='true'
8140       # FIXME: Should let the user specify the lib program.
8141       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8142       fix_srcfile_path='`cygpath -w "$srcfile"`'
8143       enable_shared_with_static_runtimes=yes
8144       ;;
8145
8146     darwin* | rhapsody*)
8147       case $host_os in
8148         rhapsody* | darwin1.[012])
8149          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8150          ;;
8151        *) # Darwin 1.3 on
8152          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8153            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8154          else
8155            case ${MACOSX_DEPLOYMENT_TARGET} in
8156              10.[012])
8157                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8158                ;;
8159              10.*)
8160                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8161                ;;
8162            esac
8163          fi
8164          ;;
8165       esac
8166       archive_cmds_need_lc=no
8167       hardcode_direct=no
8168       hardcode_automatic=yes
8169       hardcode_shlibpath_var=unsupported
8170       whole_archive_flag_spec=''
8171       link_all_deplibs=yes
8172     if test "$GCC" = yes ; then
8173         output_verbose_link_cmd='echo'
8174         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8175       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8176       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8177       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8178       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}'
8179     else
8180       case $cc_basename in
8181         xlc*)
8182          output_verbose_link_cmd='echo'
8183          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8184          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8185           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8186          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8187           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}'
8188           ;;
8189        *)
8190          ld_shlibs=no
8191           ;;
8192       esac
8193     fi
8194       ;;
8195
8196     dgux*)
8197       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8198       hardcode_libdir_flag_spec='-L$libdir'
8199       hardcode_shlibpath_var=no
8200       ;;
8201
8202     freebsd1*)
8203       ld_shlibs=no
8204       ;;
8205
8206     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8207     # support.  Future versions do this automatically, but an explicit c++rt0.o
8208     # does not break anything, and helps significantly (at the cost of a little
8209     # extra space).
8210     freebsd2.2*)
8211       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8212       hardcode_libdir_flag_spec='-R$libdir'
8213       hardcode_direct=yes
8214       hardcode_shlibpath_var=no
8215       ;;
8216
8217     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8218     freebsd2*)
8219       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8220       hardcode_direct=yes
8221       hardcode_minus_L=yes
8222       hardcode_shlibpath_var=no
8223       ;;
8224
8225     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8226     freebsd* | dragonfly*)
8227       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8228       hardcode_libdir_flag_spec='-R$libdir'
8229       hardcode_direct=yes
8230       hardcode_shlibpath_var=no
8231       ;;
8232
8233     hpux9*)
8234       if test "$GCC" = yes; then
8235         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'
8236       else
8237         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'
8238       fi
8239       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8240       hardcode_libdir_separator=:
8241       hardcode_direct=yes
8242
8243       # hardcode_minus_L: Not really in the search PATH,
8244       # but as the default location of the library.
8245       hardcode_minus_L=yes
8246       export_dynamic_flag_spec='${wl}-E'
8247       ;;
8248
8249     hpux10*)
8250       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8251         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8252       else
8253         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8254       fi
8255       if test "$with_gnu_ld" = no; then
8256         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8257         hardcode_libdir_separator=:
8258
8259         hardcode_direct=yes
8260         export_dynamic_flag_spec='${wl}-E'
8261
8262         # hardcode_minus_L: Not really in the search PATH,
8263         # but as the default location of the library.
8264         hardcode_minus_L=yes
8265       fi
8266       ;;
8267
8268     hpux11*)
8269       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8270         case $host_cpu in
8271         hppa*64*)
8272           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8273           ;;
8274         ia64*)
8275           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8276           ;;
8277         *)
8278           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8279           ;;
8280         esac
8281       else
8282         case $host_cpu in
8283         hppa*64*)
8284           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8285           ;;
8286         ia64*)
8287           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8288           ;;
8289         *)
8290           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8291           ;;
8292         esac
8293       fi
8294       if test "$with_gnu_ld" = no; then
8295         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8296         hardcode_libdir_separator=:
8297
8298         case $host_cpu in
8299         hppa*64*|ia64*)
8300           hardcode_libdir_flag_spec_ld='+b $libdir'
8301           hardcode_direct=no
8302           hardcode_shlibpath_var=no
8303           ;;
8304         *)
8305           hardcode_direct=yes
8306           export_dynamic_flag_spec='${wl}-E'
8307
8308           # hardcode_minus_L: Not really in the search PATH,
8309           # but as the default location of the library.
8310           hardcode_minus_L=yes
8311           ;;
8312         esac
8313       fi
8314       ;;
8315
8316     irix5* | irix6* | nonstopux*)
8317       if test "$GCC" = yes; then
8318         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'
8319       else
8320         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'
8321         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8322       fi
8323       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8324       hardcode_libdir_separator=:
8325       link_all_deplibs=yes
8326       ;;
8327
8328     netbsd* | netbsdelf*-gnu)
8329       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8330         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8331       else
8332         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8333       fi
8334       hardcode_libdir_flag_spec='-R$libdir'
8335       hardcode_direct=yes
8336       hardcode_shlibpath_var=no
8337       ;;
8338
8339     newsos6)
8340       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8341       hardcode_direct=yes
8342       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8343       hardcode_libdir_separator=:
8344       hardcode_shlibpath_var=no
8345       ;;
8346
8347     openbsd*)
8348       hardcode_direct=yes
8349       hardcode_shlibpath_var=no
8350       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8351         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8352         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8353         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8354         export_dynamic_flag_spec='${wl}-E'
8355       else
8356        case $host_os in
8357          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8358            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8359            hardcode_libdir_flag_spec='-R$libdir'
8360            ;;
8361          *)
8362            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8363            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8364            ;;
8365        esac
8366       fi
8367       ;;
8368
8369     os2*)
8370       hardcode_libdir_flag_spec='-L$libdir'
8371       hardcode_minus_L=yes
8372       allow_undefined_flag=unsupported
8373       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'
8374       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8375       ;;
8376
8377     osf3*)
8378       if test "$GCC" = yes; then
8379         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8380         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'
8381       else
8382         allow_undefined_flag=' -expect_unresolved \*'
8383         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'
8384       fi
8385       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8386       hardcode_libdir_separator=:
8387       ;;
8388
8389     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8390       if test "$GCC" = yes; then
8391         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8392         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'
8393         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8394       else
8395         allow_undefined_flag=' -expect_unresolved \*'
8396         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'
8397         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8398         $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'
8399
8400         # Both c and cxx compiler support -rpath directly
8401         hardcode_libdir_flag_spec='-rpath $libdir'
8402       fi
8403       hardcode_libdir_separator=:
8404       ;;
8405
8406     solaris*)
8407       no_undefined_flag=' -z text'
8408       if test "$GCC" = yes; then
8409         wlarc='${wl}'
8410         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8411         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8412           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8413       else
8414         wlarc=''
8415         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8416         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8417         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8418       fi
8419       hardcode_libdir_flag_spec='-R$libdir'
8420       hardcode_shlibpath_var=no
8421       case $host_os in
8422       solaris2.[0-5] | solaris2.[0-5].*) ;;
8423       *)
8424         # The compiler driver will combine linker options so we
8425         # cannot just pass the convience library names through
8426         # without $wl, iff we do not link with $LD.
8427         # Luckily, gcc supports the same syntax we need for Sun Studio.
8428         # Supported since Solaris 2.6 (maybe 2.5.1?)
8429         case $wlarc in
8430         '')
8431           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8432         *)
8433           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8434         esac ;;
8435       esac
8436       link_all_deplibs=yes
8437       ;;
8438
8439     sunos4*)
8440       if test "x$host_vendor" = xsequent; then
8441         # Use $CC to link under sequent, because it throws in some extra .o
8442         # files that make .init and .fini sections work.
8443         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8444       else
8445         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8446       fi
8447       hardcode_libdir_flag_spec='-L$libdir'
8448       hardcode_direct=yes
8449       hardcode_minus_L=yes
8450       hardcode_shlibpath_var=no
8451       ;;
8452
8453     sysv4)
8454       case $host_vendor in
8455         sni)
8456           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8457           hardcode_direct=yes # is this really true???
8458         ;;
8459         siemens)
8460           ## LD is ld it makes a PLAMLIB
8461           ## CC just makes a GrossModule.
8462           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8463           reload_cmds='$CC -r -o $output$reload_objs'
8464           hardcode_direct=no
8465         ;;
8466         motorola)
8467           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8468           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8469         ;;
8470       esac
8471       runpath_var='LD_RUN_PATH'
8472       hardcode_shlibpath_var=no
8473       ;;
8474
8475     sysv4.3*)
8476       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8477       hardcode_shlibpath_var=no
8478       export_dynamic_flag_spec='-Bexport'
8479       ;;
8480
8481     sysv4*MP*)
8482       if test -d /usr/nec; then
8483         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8484         hardcode_shlibpath_var=no
8485         runpath_var=LD_RUN_PATH
8486         hardcode_runpath_var=yes
8487         ld_shlibs=yes
8488       fi
8489       ;;
8490
8491     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8492       no_undefined_flag='${wl}-z,text'
8493       archive_cmds_need_lc=no
8494       hardcode_shlibpath_var=no
8495       runpath_var='LD_RUN_PATH'
8496
8497       if test "$GCC" = yes; then
8498         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8499         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8500       else
8501         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8502         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8503       fi
8504       ;;
8505
8506     sysv5* | sco3.2v5* | sco5v6*)
8507       # Note: We can NOT use -z defs as we might desire, because we do not
8508       # link with -lc, and that would cause any symbols used from libc to
8509       # always be unresolved, which means just about no library would
8510       # ever link correctly.  If we're not using GNU ld we use -z text
8511       # though, which does catch some bad symbols but isn't as heavy-handed
8512       # as -z defs.
8513       no_undefined_flag='${wl}-z,text'
8514       allow_undefined_flag='${wl}-z,nodefs'
8515       archive_cmds_need_lc=no
8516       hardcode_shlibpath_var=no
8517       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8518       hardcode_libdir_separator=':'
8519       link_all_deplibs=yes
8520       export_dynamic_flag_spec='${wl}-Bexport'
8521       runpath_var='LD_RUN_PATH'
8522
8523       if test "$GCC" = yes; then
8524         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8525         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8526       else
8527         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8528         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8529       fi
8530       ;;
8531
8532     uts4*)
8533       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8534       hardcode_libdir_flag_spec='-L$libdir'
8535       hardcode_shlibpath_var=no
8536       ;;
8537
8538     *)
8539       ld_shlibs=no
8540       ;;
8541     esac
8542   fi
8543
8544 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8545 echo "${ECHO_T}$ld_shlibs" >&6; }
8546 test "$ld_shlibs" = no && can_build_shared=no
8547
8548 #
8549 # Do we need to explicitly link libc?
8550 #
8551 case "x$archive_cmds_need_lc" in
8552 x|xyes)
8553   # Assume -lc should be added
8554   archive_cmds_need_lc=yes
8555
8556   if test "$enable_shared" = yes && test "$GCC" = yes; then
8557     case $archive_cmds in
8558     *'~'*)
8559       # FIXME: we may have to deal with multi-command sequences.
8560       ;;
8561     '$CC '*)
8562       # Test whether the compiler implicitly links with -lc since on some
8563       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8564       # to ld, don't add -lc before -lgcc.
8565       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8566 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8567       $rm conftest*
8568       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8569
8570       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8571   (eval $ac_compile) 2>&5
8572   ac_status=$?
8573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574   (exit $ac_status); } 2>conftest.err; then
8575         soname=conftest
8576         lib=conftest
8577         libobjs=conftest.$ac_objext
8578         deplibs=
8579         wl=$lt_prog_compiler_wl
8580         pic_flag=$lt_prog_compiler_pic
8581         compiler_flags=-v
8582         linker_flags=-v
8583         verstring=
8584         output_objdir=.
8585         libname=conftest
8586         lt_save_allow_undefined_flag=$allow_undefined_flag
8587         allow_undefined_flag=
8588         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8589   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8590   ac_status=$?
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); }
8593         then
8594           archive_cmds_need_lc=no
8595         else
8596           archive_cmds_need_lc=yes
8597         fi
8598         allow_undefined_flag=$lt_save_allow_undefined_flag
8599       else
8600         cat conftest.err 1>&5
8601       fi
8602       $rm conftest*
8603       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8604 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8605       ;;
8606     esac
8607   fi
8608   ;;
8609 esac
8610
8611 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8612 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8613 library_names_spec=
8614 libname_spec='lib$name'
8615 soname_spec=
8616 shrext_cmds=".so"
8617 postinstall_cmds=
8618 postuninstall_cmds=
8619 finish_cmds=
8620 finish_eval=
8621 shlibpath_var=
8622 shlibpath_overrides_runpath=unknown
8623 version_type=none
8624 dynamic_linker="$host_os ld.so"
8625 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8626 if test "$GCC" = yes; then
8627   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8628   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8629     # if the path contains ";" then we assume it to be the separator
8630     # otherwise default to the standard path separator (i.e. ":") - it is
8631     # assumed that no part of a normal pathname contains ";" but that should
8632     # okay in the real world where ";" in dirpaths is itself problematic.
8633     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8634   else
8635     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8636   fi
8637 else
8638   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8639 fi
8640 need_lib_prefix=unknown
8641 hardcode_into_libs=no
8642
8643 # when you set need_version to no, make sure it does not cause -set_version
8644 # flags to be left without arguments
8645 need_version=unknown
8646
8647 case $host_os in
8648 aix3*)
8649   version_type=linux
8650   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8651   shlibpath_var=LIBPATH
8652
8653   # AIX 3 has no versioning support, so we append a major version to the name.
8654   soname_spec='${libname}${release}${shared_ext}$major'
8655   ;;
8656
8657 aix4* | aix5*)
8658   version_type=linux
8659   need_lib_prefix=no
8660   need_version=no
8661   hardcode_into_libs=yes
8662   if test "$host_cpu" = ia64; then
8663     # AIX 5 supports IA64
8664     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8665     shlibpath_var=LD_LIBRARY_PATH
8666   else
8667     # With GCC up to 2.95.x, collect2 would create an import file
8668     # for dependence libraries.  The import file would start with
8669     # the line `#! .'.  This would cause the generated library to
8670     # depend on `.', always an invalid library.  This was fixed in
8671     # development snapshots of GCC prior to 3.0.
8672     case $host_os in
8673       aix4 | aix4.[01] | aix4.[01].*)
8674       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8675            echo ' yes '
8676            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8677         :
8678       else
8679         can_build_shared=no
8680       fi
8681       ;;
8682     esac
8683     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8684     # soname into executable. Probably we can add versioning support to
8685     # collect2, so additional links can be useful in future.
8686     if test "$aix_use_runtimelinking" = yes; then
8687       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8688       # instead of lib<name>.a to let people know that these are not
8689       # typical AIX shared libraries.
8690       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8691     else
8692       # We preserve .a as extension for shared libraries through AIX4.2
8693       # and later when we are not doing run time linking.
8694       library_names_spec='${libname}${release}.a $libname.a'
8695       soname_spec='${libname}${release}${shared_ext}$major'
8696     fi
8697     shlibpath_var=LIBPATH
8698   fi
8699   ;;
8700
8701 amigaos*)
8702   library_names_spec='$libname.ixlibrary $libname.a'
8703   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8704   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'
8705   ;;
8706
8707 beos*)
8708   library_names_spec='${libname}${shared_ext}'
8709   dynamic_linker="$host_os ld.so"
8710   shlibpath_var=LIBRARY_PATH
8711   ;;
8712
8713 bsdi[45]*)
8714   version_type=linux
8715   need_version=no
8716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8717   soname_spec='${libname}${release}${shared_ext}$major'
8718   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8719   shlibpath_var=LD_LIBRARY_PATH
8720   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8721   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8722   # the default ld.so.conf also contains /usr/contrib/lib and
8723   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8724   # libtool to hard-code these into programs
8725   ;;
8726
8727 cygwin* | mingw* | pw32*)
8728   version_type=windows
8729   shrext_cmds=".dll"
8730   need_version=no
8731   need_lib_prefix=no
8732
8733   case $GCC,$host_os in
8734   yes,cygwin* | yes,mingw* | yes,pw32*)
8735     library_names_spec='$libname.dll.a'
8736     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8737     postinstall_cmds='base_file=`basename \${file}`~
8738       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8739       dldir=$destdir/`dirname \$dlpath`~
8740       test -d \$dldir || mkdir -p \$dldir~
8741       $install_prog $dir/$dlname \$dldir/$dlname~
8742       chmod a+x \$dldir/$dlname'
8743     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8744       dlpath=$dir/\$dldll~
8745        $rm \$dlpath'
8746     shlibpath_overrides_runpath=yes
8747
8748     case $host_os in
8749     cygwin*)
8750       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8751       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8752       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8753       ;;
8754     mingw*)
8755       # MinGW DLLs use traditional 'lib' prefix
8756       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8757       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8758       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8759         # It is most probably a Windows format PATH printed by
8760         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8761         # path with ; separators, and with drive letters. We can handle the
8762         # drive letters (cygwin fileutils understands them), so leave them,
8763         # especially as we might pass files found there to a mingw objdump,
8764         # which wouldn't understand a cygwinified path. Ahh.
8765         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8766       else
8767         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8768       fi
8769       ;;
8770     pw32*)
8771       # pw32 DLLs use 'pw' prefix rather than 'lib'
8772       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8773       ;;
8774     esac
8775     ;;
8776
8777   *)
8778     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8779     ;;
8780   esac
8781   dynamic_linker='Win32 ld.exe'
8782   # FIXME: first we should search . and the directory the executable is in
8783   shlibpath_var=PATH
8784   ;;
8785
8786 darwin* | rhapsody*)
8787   dynamic_linker="$host_os dyld"
8788   version_type=darwin
8789   need_lib_prefix=no
8790   need_version=no
8791   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8792   soname_spec='${libname}${release}${major}$shared_ext'
8793   shlibpath_overrides_runpath=yes
8794   shlibpath_var=DYLD_LIBRARY_PATH
8795   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8796   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8797   if test "$GCC" = yes; then
8798     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8799   else
8800     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8801   fi
8802   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8803   ;;
8804
8805 dgux*)
8806   version_type=linux
8807   need_lib_prefix=no
8808   need_version=no
8809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8810   soname_spec='${libname}${release}${shared_ext}$major'
8811   shlibpath_var=LD_LIBRARY_PATH
8812   ;;
8813
8814 freebsd1*)
8815   dynamic_linker=no
8816   ;;
8817
8818 freebsd* | dragonfly*)
8819   # DragonFly does not have aout.  When/if they implement a new
8820   # versioning mechanism, adjust this.
8821   if test -x /usr/bin/objformat; then
8822     objformat=`/usr/bin/objformat`
8823   else
8824     case $host_os in
8825     freebsd[123]*) objformat=aout ;;
8826     *) objformat=elf ;;
8827     esac
8828   fi
8829   version_type=freebsd-$objformat
8830   case $version_type in
8831     freebsd-elf*)
8832       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8833       need_version=no
8834       need_lib_prefix=no
8835       ;;
8836     freebsd-*)
8837       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8838       need_version=yes
8839       ;;
8840   esac
8841   shlibpath_var=LD_LIBRARY_PATH
8842   case $host_os in
8843   freebsd2*)
8844     shlibpath_overrides_runpath=yes
8845     ;;
8846   freebsd3.[01]* | freebsdelf3.[01]*)
8847     shlibpath_overrides_runpath=yes
8848     hardcode_into_libs=yes
8849     ;;
8850   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8851   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8852     shlibpath_overrides_runpath=no
8853     hardcode_into_libs=yes
8854     ;;
8855   freebsd*) # from 4.6 on
8856     shlibpath_overrides_runpath=yes
8857     hardcode_into_libs=yes
8858     ;;
8859   esac
8860   ;;
8861
8862 gnu*)
8863   version_type=linux
8864   need_lib_prefix=no
8865   need_version=no
8866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8867   soname_spec='${libname}${release}${shared_ext}$major'
8868   shlibpath_var=LD_LIBRARY_PATH
8869   hardcode_into_libs=yes
8870   ;;
8871
8872 hpux9* | hpux10* | hpux11*)
8873   # Give a soname corresponding to the major version so that dld.sl refuses to
8874   # link against other versions.
8875   version_type=sunos
8876   need_lib_prefix=no
8877   need_version=no
8878   case $host_cpu in
8879   ia64*)
8880     shrext_cmds='.so'
8881     hardcode_into_libs=yes
8882     dynamic_linker="$host_os dld.so"
8883     shlibpath_var=LD_LIBRARY_PATH
8884     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8885     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8886     soname_spec='${libname}${release}${shared_ext}$major'
8887     if test "X$HPUX_IA64_MODE" = X32; then
8888       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8889     else
8890       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8891     fi
8892     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8893     ;;
8894    hppa*64*)
8895      shrext_cmds='.sl'
8896      hardcode_into_libs=yes
8897      dynamic_linker="$host_os dld.sl"
8898      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8899      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8900      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8901      soname_spec='${libname}${release}${shared_ext}$major'
8902      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8903      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8904      ;;
8905    *)
8906     shrext_cmds='.sl'
8907     dynamic_linker="$host_os dld.sl"
8908     shlibpath_var=SHLIB_PATH
8909     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8910     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8911     soname_spec='${libname}${release}${shared_ext}$major'
8912     ;;
8913   esac
8914   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8915   postinstall_cmds='chmod 555 $lib'
8916   ;;
8917
8918 interix3*)
8919   version_type=linux
8920   need_lib_prefix=no
8921   need_version=no
8922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8923   soname_spec='${libname}${release}${shared_ext}$major'
8924   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8925   shlibpath_var=LD_LIBRARY_PATH
8926   shlibpath_overrides_runpath=no
8927   hardcode_into_libs=yes
8928   ;;
8929
8930 irix5* | irix6* | nonstopux*)
8931   case $host_os in
8932     nonstopux*) version_type=nonstopux ;;
8933     *)
8934         if test "$lt_cv_prog_gnu_ld" = yes; then
8935                 version_type=linux
8936         else
8937                 version_type=irix
8938         fi ;;
8939   esac
8940   need_lib_prefix=no
8941   need_version=no
8942   soname_spec='${libname}${release}${shared_ext}$major'
8943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8944   case $host_os in
8945   irix5* | nonstopux*)
8946     libsuff= shlibsuff=
8947     ;;
8948   *)
8949     case $LD in # libtool.m4 will add one of these switches to LD
8950     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8951       libsuff= shlibsuff= libmagic=32-bit;;
8952     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8953       libsuff=32 shlibsuff=N32 libmagic=N32;;
8954     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8955       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8956     *) libsuff= shlibsuff= libmagic=never-match;;
8957     esac
8958     ;;
8959   esac
8960   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8961   shlibpath_overrides_runpath=no
8962   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8963   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8964   hardcode_into_libs=yes
8965   ;;
8966
8967 # No shared lib support for Linux oldld, aout, or coff.
8968 linux*oldld* | linux*aout* | linux*coff*)
8969   dynamic_linker=no
8970   ;;
8971
8972 # This must be Linux ELF.
8973 linux* | k*bsd*-gnu)
8974   version_type=linux
8975   need_lib_prefix=no
8976   need_version=no
8977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8978   soname_spec='${libname}${release}${shared_ext}$major'
8979   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8980   shlibpath_var=LD_LIBRARY_PATH
8981   shlibpath_overrides_runpath=no
8982   # This implies no fast_install, which is unacceptable.
8983   # Some rework will be needed to allow for fast_install
8984   # before this can be enabled.
8985   hardcode_into_libs=yes
8986
8987   # Append ld.so.conf contents to the search path
8988   if test -f /etc/ld.so.conf; then
8989     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8990     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8991   fi
8992
8993   # We used to test for /lib/ld.so.1 and disable shared libraries on
8994   # powerpc, because MkLinux only supported shared libraries with the
8995   # GNU dynamic linker.  Since this was broken with cross compilers,
8996   # most powerpc-linux boxes support dynamic linking these days and
8997   # people can always --disable-shared, the test was removed, and we
8998   # assume the GNU/Linux dynamic linker is in use.
8999   dynamic_linker='GNU/Linux ld.so'
9000   ;;
9001
9002 netbsdelf*-gnu)
9003   version_type=linux
9004   need_lib_prefix=no
9005   need_version=no
9006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9007   soname_spec='${libname}${release}${shared_ext}$major'
9008   shlibpath_var=LD_LIBRARY_PATH
9009   shlibpath_overrides_runpath=no
9010   hardcode_into_libs=yes
9011   dynamic_linker='NetBSD ld.elf_so'
9012   ;;
9013
9014 netbsd*)
9015   version_type=sunos
9016   need_lib_prefix=no
9017   need_version=no
9018   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9019     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9020     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9021     dynamic_linker='NetBSD (a.out) ld.so'
9022   else
9023     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9024     soname_spec='${libname}${release}${shared_ext}$major'
9025     dynamic_linker='NetBSD ld.elf_so'
9026   fi
9027   shlibpath_var=LD_LIBRARY_PATH
9028   shlibpath_overrides_runpath=yes
9029   hardcode_into_libs=yes
9030   ;;
9031
9032 newsos6)
9033   version_type=linux
9034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9035   shlibpath_var=LD_LIBRARY_PATH
9036   shlibpath_overrides_runpath=yes
9037   ;;
9038
9039 nto-qnx*)
9040   version_type=linux
9041   need_lib_prefix=no
9042   need_version=no
9043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044   soname_spec='${libname}${release}${shared_ext}$major'
9045   shlibpath_var=LD_LIBRARY_PATH
9046   shlibpath_overrides_runpath=yes
9047   ;;
9048
9049 openbsd*)
9050   version_type=sunos
9051   sys_lib_dlsearch_path_spec="/usr/lib"
9052   need_lib_prefix=no
9053   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9054   case $host_os in
9055     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9056     *)                         need_version=no  ;;
9057   esac
9058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9059   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9060   shlibpath_var=LD_LIBRARY_PATH
9061   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9062     case $host_os in
9063       openbsd2.[89] | openbsd2.[89].*)
9064         shlibpath_overrides_runpath=no
9065         ;;
9066       *)
9067         shlibpath_overrides_runpath=yes
9068         ;;
9069       esac
9070   else
9071     shlibpath_overrides_runpath=yes
9072   fi
9073   ;;
9074
9075 os2*)
9076   libname_spec='$name'
9077   shrext_cmds=".dll"
9078   need_lib_prefix=no
9079   library_names_spec='$libname${shared_ext} $libname.a'
9080   dynamic_linker='OS/2 ld.exe'
9081   shlibpath_var=LIBPATH
9082   ;;
9083
9084 osf3* | osf4* | osf5*)
9085   version_type=osf
9086   need_lib_prefix=no
9087   need_version=no
9088   soname_spec='${libname}${release}${shared_ext}$major'
9089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090   shlibpath_var=LD_LIBRARY_PATH
9091   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9092   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9093   ;;
9094
9095 solaris*)
9096   version_type=linux
9097   need_lib_prefix=no
9098   need_version=no
9099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9100   soname_spec='${libname}${release}${shared_ext}$major'
9101   shlibpath_var=LD_LIBRARY_PATH
9102   shlibpath_overrides_runpath=yes
9103   hardcode_into_libs=yes
9104   # ldd complains unless libraries are executable
9105   postinstall_cmds='chmod +x $lib'
9106   ;;
9107
9108 sunos4*)
9109   version_type=sunos
9110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9111   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9112   shlibpath_var=LD_LIBRARY_PATH
9113   shlibpath_overrides_runpath=yes
9114   if test "$with_gnu_ld" = yes; then
9115     need_lib_prefix=no
9116   fi
9117   need_version=yes
9118   ;;
9119
9120 sysv4 | sysv4.3*)
9121   version_type=linux
9122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9123   soname_spec='${libname}${release}${shared_ext}$major'
9124   shlibpath_var=LD_LIBRARY_PATH
9125   case $host_vendor in
9126     sni)
9127       shlibpath_overrides_runpath=no
9128       need_lib_prefix=no
9129       export_dynamic_flag_spec='${wl}-Blargedynsym'
9130       runpath_var=LD_RUN_PATH
9131       ;;
9132     siemens)
9133       need_lib_prefix=no
9134       ;;
9135     motorola)
9136       need_lib_prefix=no
9137       need_version=no
9138       shlibpath_overrides_runpath=no
9139       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9140       ;;
9141   esac
9142   ;;
9143
9144 sysv4*MP*)
9145   if test -d /usr/nec ;then
9146     version_type=linux
9147     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9148     soname_spec='$libname${shared_ext}.$major'
9149     shlibpath_var=LD_LIBRARY_PATH
9150   fi
9151   ;;
9152
9153 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9154   version_type=freebsd-elf
9155   need_lib_prefix=no
9156   need_version=no
9157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9158   soname_spec='${libname}${release}${shared_ext}$major'
9159   shlibpath_var=LD_LIBRARY_PATH
9160   hardcode_into_libs=yes
9161   if test "$with_gnu_ld" = yes; then
9162     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9163     shlibpath_overrides_runpath=no
9164   else
9165     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9166     shlibpath_overrides_runpath=yes
9167     case $host_os in
9168       sco3.2v5*)
9169         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9170         ;;
9171     esac
9172   fi
9173   sys_lib_dlsearch_path_spec='/usr/lib'
9174   ;;
9175
9176 uts4*)
9177   version_type=linux
9178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179   soname_spec='${libname}${release}${shared_ext}$major'
9180   shlibpath_var=LD_LIBRARY_PATH
9181   ;;
9182
9183 *)
9184   dynamic_linker=no
9185   ;;
9186 esac
9187 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9188 echo "${ECHO_T}$dynamic_linker" >&6; }
9189 test "$dynamic_linker" = no && can_build_shared=no
9190
9191 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9192 if test "$GCC" = yes; then
9193   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9194 fi
9195
9196 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9197 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9198 hardcode_action=
9199 if test -n "$hardcode_libdir_flag_spec" || \
9200    test -n "$runpath_var" || \
9201    test "X$hardcode_automatic" = "Xyes" ; then
9202
9203   # We can hardcode non-existant directories.
9204   if test "$hardcode_direct" != no &&
9205      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9206      # have to relink, otherwise we might link with an installed library
9207      # when we should be linking with a yet-to-be-installed one
9208      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9209      test "$hardcode_minus_L" != no; then
9210     # Linking always hardcodes the temporary library directory.
9211     hardcode_action=relink
9212   else
9213     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9214     hardcode_action=immediate
9215   fi
9216 else
9217   # We cannot hardcode anything, or else we can only hardcode existing
9218   # directories.
9219   hardcode_action=unsupported
9220 fi
9221 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9222 echo "${ECHO_T}$hardcode_action" >&6; }
9223
9224 if test "$hardcode_action" = relink; then
9225   # Fast installation is not supported
9226   enable_fast_install=no
9227 elif test "$shlibpath_overrides_runpath" = yes ||
9228      test "$enable_shared" = no; then
9229   # Fast installation is not necessary
9230   enable_fast_install=needless
9231 fi
9232
9233 striplib=
9234 old_striplib=
9235 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9236 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9237 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9238   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9239   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9240   { echo "$as_me:$LINENO: result: yes" >&5
9241 echo "${ECHO_T}yes" >&6; }
9242 else
9243 # FIXME - insert some real tests, host_os isn't really good enough
9244   case $host_os in
9245    darwin*)
9246        if test -n "$STRIP" ; then
9247          striplib="$STRIP -x"
9248          { echo "$as_me:$LINENO: result: yes" >&5
9249 echo "${ECHO_T}yes" >&6; }
9250        else
9251   { echo "$as_me:$LINENO: result: no" >&5
9252 echo "${ECHO_T}no" >&6; }
9253 fi
9254        ;;
9255    *)
9256   { echo "$as_me:$LINENO: result: no" >&5
9257 echo "${ECHO_T}no" >&6; }
9258     ;;
9259   esac
9260 fi
9261
9262 if test "x$enable_dlopen" != xyes; then
9263   enable_dlopen=unknown
9264   enable_dlopen_self=unknown
9265   enable_dlopen_self_static=unknown
9266 else
9267   lt_cv_dlopen=no
9268   lt_cv_dlopen_libs=
9269
9270   case $host_os in
9271   beos*)
9272     lt_cv_dlopen="load_add_on"
9273     lt_cv_dlopen_libs=
9274     lt_cv_dlopen_self=yes
9275     ;;
9276
9277   mingw* | pw32*)
9278     lt_cv_dlopen="LoadLibrary"
9279     lt_cv_dlopen_libs=
9280    ;;
9281
9282   cygwin*)
9283     lt_cv_dlopen="dlopen"
9284     lt_cv_dlopen_libs=
9285    ;;
9286
9287   darwin*)
9288   # if libdl is installed we need to link against it
9289     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9290 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9291 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9292   echo $ECHO_N "(cached) $ECHO_C" >&6
9293 else
9294   ac_check_lib_save_LIBS=$LIBS
9295 LIBS="-ldl  $LIBS"
9296 cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h.  */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h.  */
9302
9303 /* Override any GCC internal prototype to avoid an error.
9304    Use char because int might match the return type of a GCC
9305    builtin and then its argument prototype would still apply.  */
9306 #ifdef __cplusplus
9307 extern "C"
9308 #endif
9309 char dlopen ();
9310 int
9311 main ()
9312 {
9313 return dlopen ();
9314   ;
9315   return 0;
9316 }
9317 _ACEOF
9318 rm -f conftest.$ac_objext conftest$ac_exeext
9319 if { (ac_try="$ac_link"
9320 case "(($ac_try" in
9321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9322   *) ac_try_echo=$ac_try;;
9323 esac
9324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9325   (eval "$ac_link") 2>conftest.er1
9326   ac_status=$?
9327   grep -v '^ *+' conftest.er1 >conftest.err
9328   rm -f conftest.er1
9329   cat conftest.err >&5
9330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331   (exit $ac_status); } && {
9332          test -z "$ac_c_werror_flag" ||
9333          test ! -s conftest.err
9334        } && test -s conftest$ac_exeext &&
9335        $as_test_x conftest$ac_exeext; then
9336   ac_cv_lib_dl_dlopen=yes
9337 else
9338   echo "$as_me: failed program was:" >&5
9339 sed 's/^/| /' conftest.$ac_ext >&5
9340
9341         ac_cv_lib_dl_dlopen=no
9342 fi
9343
9344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9345       conftest$ac_exeext conftest.$ac_ext
9346 LIBS=$ac_check_lib_save_LIBS
9347 fi
9348 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9349 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9350 if test $ac_cv_lib_dl_dlopen = yes; then
9351   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9352 else
9353
9354     lt_cv_dlopen="dyld"
9355     lt_cv_dlopen_libs=
9356     lt_cv_dlopen_self=yes
9357
9358 fi
9359
9360    ;;
9361
9362   *)
9363     { echo "$as_me:$LINENO: checking for shl_load" >&5
9364 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9365 if test "${ac_cv_func_shl_load+set}" = set; then
9366   echo $ECHO_N "(cached) $ECHO_C" >&6
9367 else
9368   cat >conftest.$ac_ext <<_ACEOF
9369 /* confdefs.h.  */
9370 _ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h.  */
9374 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9375    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9376 #define shl_load innocuous_shl_load
9377
9378 /* System header to define __stub macros and hopefully few prototypes,
9379     which can conflict with char shl_load (); below.
9380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9381     <limits.h> exists even on freestanding compilers.  */
9382
9383 #ifdef __STDC__
9384 # include <limits.h>
9385 #else
9386 # include <assert.h>
9387 #endif
9388
9389 #undef shl_load
9390
9391 /* Override any GCC internal prototype to avoid an error.
9392    Use char because int might match the return type of a GCC
9393    builtin and then its argument prototype would still apply.  */
9394 #ifdef __cplusplus
9395 extern "C"
9396 #endif
9397 char shl_load ();
9398 /* The GNU C library defines this for functions which it implements
9399     to always fail with ENOSYS.  Some functions are actually named
9400     something starting with __ and the normal name is an alias.  */
9401 #if defined __stub_shl_load || defined __stub___shl_load
9402 choke me
9403 #endif
9404
9405 int
9406 main ()
9407 {
9408 return shl_load ();
9409   ;
9410   return 0;
9411 }
9412 _ACEOF
9413 rm -f conftest.$ac_objext conftest$ac_exeext
9414 if { (ac_try="$ac_link"
9415 case "(($ac_try" in
9416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9417   *) ac_try_echo=$ac_try;;
9418 esac
9419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9420   (eval "$ac_link") 2>conftest.er1
9421   ac_status=$?
9422   grep -v '^ *+' conftest.er1 >conftest.err
9423   rm -f conftest.er1
9424   cat conftest.err >&5
9425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426   (exit $ac_status); } && {
9427          test -z "$ac_c_werror_flag" ||
9428          test ! -s conftest.err
9429        } && test -s conftest$ac_exeext &&
9430        $as_test_x conftest$ac_exeext; then
9431   ac_cv_func_shl_load=yes
9432 else
9433   echo "$as_me: failed program was:" >&5
9434 sed 's/^/| /' conftest.$ac_ext >&5
9435
9436         ac_cv_func_shl_load=no
9437 fi
9438
9439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9440       conftest$ac_exeext conftest.$ac_ext
9441 fi
9442 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9443 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9444 if test $ac_cv_func_shl_load = yes; then
9445   lt_cv_dlopen="shl_load"
9446 else
9447   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9448 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9449 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9450   echo $ECHO_N "(cached) $ECHO_C" >&6
9451 else
9452   ac_check_lib_save_LIBS=$LIBS
9453 LIBS="-ldld  $LIBS"
9454 cat >conftest.$ac_ext <<_ACEOF
9455 /* confdefs.h.  */
9456 _ACEOF
9457 cat confdefs.h >>conftest.$ac_ext
9458 cat >>conftest.$ac_ext <<_ACEOF
9459 /* end confdefs.h.  */
9460
9461 /* Override any GCC internal prototype to avoid an error.
9462    Use char because int might match the return type of a GCC
9463    builtin and then its argument prototype would still apply.  */
9464 #ifdef __cplusplus
9465 extern "C"
9466 #endif
9467 char shl_load ();
9468 int
9469 main ()
9470 {
9471 return shl_load ();
9472   ;
9473   return 0;
9474 }
9475 _ACEOF
9476 rm -f conftest.$ac_objext conftest$ac_exeext
9477 if { (ac_try="$ac_link"
9478 case "(($ac_try" in
9479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9480   *) ac_try_echo=$ac_try;;
9481 esac
9482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9483   (eval "$ac_link") 2>conftest.er1
9484   ac_status=$?
9485   grep -v '^ *+' conftest.er1 >conftest.err
9486   rm -f conftest.er1
9487   cat conftest.err >&5
9488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489   (exit $ac_status); } && {
9490          test -z "$ac_c_werror_flag" ||
9491          test ! -s conftest.err
9492        } && test -s conftest$ac_exeext &&
9493        $as_test_x conftest$ac_exeext; then
9494   ac_cv_lib_dld_shl_load=yes
9495 else
9496   echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9498
9499         ac_cv_lib_dld_shl_load=no
9500 fi
9501
9502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9503       conftest$ac_exeext conftest.$ac_ext
9504 LIBS=$ac_check_lib_save_LIBS
9505 fi
9506 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9507 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9508 if test $ac_cv_lib_dld_shl_load = yes; then
9509   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9510 else
9511   { echo "$as_me:$LINENO: checking for dlopen" >&5
9512 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9513 if test "${ac_cv_func_dlopen+set}" = set; then
9514   echo $ECHO_N "(cached) $ECHO_C" >&6
9515 else
9516   cat >conftest.$ac_ext <<_ACEOF
9517 /* confdefs.h.  */
9518 _ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h.  */
9522 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9523    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9524 #define dlopen innocuous_dlopen
9525
9526 /* System header to define __stub macros and hopefully few prototypes,
9527     which can conflict with char dlopen (); below.
9528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9529     <limits.h> exists even on freestanding compilers.  */
9530
9531 #ifdef __STDC__
9532 # include <limits.h>
9533 #else
9534 # include <assert.h>
9535 #endif
9536
9537 #undef dlopen
9538
9539 /* Override any GCC internal prototype to avoid an error.
9540    Use char because int might match the return type of a GCC
9541    builtin and then its argument prototype would still apply.  */
9542 #ifdef __cplusplus
9543 extern "C"
9544 #endif
9545 char dlopen ();
9546 /* The GNU C library defines this for functions which it implements
9547     to always fail with ENOSYS.  Some functions are actually named
9548     something starting with __ and the normal name is an alias.  */
9549 #if defined __stub_dlopen || defined __stub___dlopen
9550 choke me
9551 #endif
9552
9553 int
9554 main ()
9555 {
9556 return dlopen ();
9557   ;
9558   return 0;
9559 }
9560 _ACEOF
9561 rm -f conftest.$ac_objext conftest$ac_exeext
9562 if { (ac_try="$ac_link"
9563 case "(($ac_try" in
9564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565   *) ac_try_echo=$ac_try;;
9566 esac
9567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568   (eval "$ac_link") 2>conftest.er1
9569   ac_status=$?
9570   grep -v '^ *+' conftest.er1 >conftest.err
9571   rm -f conftest.er1
9572   cat conftest.err >&5
9573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574   (exit $ac_status); } && {
9575          test -z "$ac_c_werror_flag" ||
9576          test ! -s conftest.err
9577        } && test -s conftest$ac_exeext &&
9578        $as_test_x conftest$ac_exeext; then
9579   ac_cv_func_dlopen=yes
9580 else
9581   echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9583
9584         ac_cv_func_dlopen=no
9585 fi
9586
9587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9588       conftest$ac_exeext conftest.$ac_ext
9589 fi
9590 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9591 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9592 if test $ac_cv_func_dlopen = yes; then
9593   lt_cv_dlopen="dlopen"
9594 else
9595   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9596 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9597 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9598   echo $ECHO_N "(cached) $ECHO_C" >&6
9599 else
9600   ac_check_lib_save_LIBS=$LIBS
9601 LIBS="-ldl  $LIBS"
9602 cat >conftest.$ac_ext <<_ACEOF
9603 /* confdefs.h.  */
9604 _ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h.  */
9608
9609 /* Override any GCC internal prototype to avoid an error.
9610    Use char because int might match the return type of a GCC
9611    builtin and then its argument prototype would still apply.  */
9612 #ifdef __cplusplus
9613 extern "C"
9614 #endif
9615 char dlopen ();
9616 int
9617 main ()
9618 {
9619 return dlopen ();
9620   ;
9621   return 0;
9622 }
9623 _ACEOF
9624 rm -f conftest.$ac_objext conftest$ac_exeext
9625 if { (ac_try="$ac_link"
9626 case "(($ac_try" in
9627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628   *) ac_try_echo=$ac_try;;
9629 esac
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631   (eval "$ac_link") 2>conftest.er1
9632   ac_status=$?
9633   grep -v '^ *+' conftest.er1 >conftest.err
9634   rm -f conftest.er1
9635   cat conftest.err >&5
9636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637   (exit $ac_status); } && {
9638          test -z "$ac_c_werror_flag" ||
9639          test ! -s conftest.err
9640        } && test -s conftest$ac_exeext &&
9641        $as_test_x conftest$ac_exeext; then
9642   ac_cv_lib_dl_dlopen=yes
9643 else
9644   echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.$ac_ext >&5
9646
9647         ac_cv_lib_dl_dlopen=no
9648 fi
9649
9650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9651       conftest$ac_exeext conftest.$ac_ext
9652 LIBS=$ac_check_lib_save_LIBS
9653 fi
9654 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9655 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9656 if test $ac_cv_lib_dl_dlopen = yes; then
9657   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9658 else
9659   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9660 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9661 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9662   echo $ECHO_N "(cached) $ECHO_C" >&6
9663 else
9664   ac_check_lib_save_LIBS=$LIBS
9665 LIBS="-lsvld  $LIBS"
9666 cat >conftest.$ac_ext <<_ACEOF
9667 /* confdefs.h.  */
9668 _ACEOF
9669 cat confdefs.h >>conftest.$ac_ext
9670 cat >>conftest.$ac_ext <<_ACEOF
9671 /* end confdefs.h.  */
9672
9673 /* Override any GCC internal prototype to avoid an error.
9674    Use char because int might match the return type of a GCC
9675    builtin and then its argument prototype would still apply.  */
9676 #ifdef __cplusplus
9677 extern "C"
9678 #endif
9679 char dlopen ();
9680 int
9681 main ()
9682 {
9683 return dlopen ();
9684   ;
9685   return 0;
9686 }
9687 _ACEOF
9688 rm -f conftest.$ac_objext conftest$ac_exeext
9689 if { (ac_try="$ac_link"
9690 case "(($ac_try" in
9691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692   *) ac_try_echo=$ac_try;;
9693 esac
9694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695   (eval "$ac_link") 2>conftest.er1
9696   ac_status=$?
9697   grep -v '^ *+' conftest.er1 >conftest.err
9698   rm -f conftest.er1
9699   cat conftest.err >&5
9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701   (exit $ac_status); } && {
9702          test -z "$ac_c_werror_flag" ||
9703          test ! -s conftest.err
9704        } && test -s conftest$ac_exeext &&
9705        $as_test_x conftest$ac_exeext; then
9706   ac_cv_lib_svld_dlopen=yes
9707 else
9708   echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9710
9711         ac_cv_lib_svld_dlopen=no
9712 fi
9713
9714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9715       conftest$ac_exeext conftest.$ac_ext
9716 LIBS=$ac_check_lib_save_LIBS
9717 fi
9718 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9719 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9720 if test $ac_cv_lib_svld_dlopen = yes; then
9721   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9722 else
9723   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9724 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9725 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9726   echo $ECHO_N "(cached) $ECHO_C" >&6
9727 else
9728   ac_check_lib_save_LIBS=$LIBS
9729 LIBS="-ldld  $LIBS"
9730 cat >conftest.$ac_ext <<_ACEOF
9731 /* confdefs.h.  */
9732 _ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h.  */
9736
9737 /* Override any GCC internal prototype to avoid an error.
9738    Use char because int might match the return type of a GCC
9739    builtin and then its argument prototype would still apply.  */
9740 #ifdef __cplusplus
9741 extern "C"
9742 #endif
9743 char dld_link ();
9744 int
9745 main ()
9746 {
9747 return dld_link ();
9748   ;
9749   return 0;
9750 }
9751 _ACEOF
9752 rm -f conftest.$ac_objext conftest$ac_exeext
9753 if { (ac_try="$ac_link"
9754 case "(($ac_try" in
9755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756   *) ac_try_echo=$ac_try;;
9757 esac
9758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759   (eval "$ac_link") 2>conftest.er1
9760   ac_status=$?
9761   grep -v '^ *+' conftest.er1 >conftest.err
9762   rm -f conftest.er1
9763   cat conftest.err >&5
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); } && {
9766          test -z "$ac_c_werror_flag" ||
9767          test ! -s conftest.err
9768        } && test -s conftest$ac_exeext &&
9769        $as_test_x conftest$ac_exeext; then
9770   ac_cv_lib_dld_dld_link=yes
9771 else
9772   echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.$ac_ext >&5
9774
9775         ac_cv_lib_dld_dld_link=no
9776 fi
9777
9778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9779       conftest$ac_exeext conftest.$ac_ext
9780 LIBS=$ac_check_lib_save_LIBS
9781 fi
9782 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9783 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9784 if test $ac_cv_lib_dld_dld_link = yes; then
9785   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9786 fi
9787
9788
9789 fi
9790
9791
9792 fi
9793
9794
9795 fi
9796
9797
9798 fi
9799
9800
9801 fi
9802
9803     ;;
9804   esac
9805
9806   if test "x$lt_cv_dlopen" != xno; then
9807     enable_dlopen=yes
9808   else
9809     enable_dlopen=no
9810   fi
9811
9812   case $lt_cv_dlopen in
9813   dlopen)
9814     save_CPPFLAGS="$CPPFLAGS"
9815     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9816
9817     save_LDFLAGS="$LDFLAGS"
9818     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9819
9820     save_LIBS="$LIBS"
9821     LIBS="$lt_cv_dlopen_libs $LIBS"
9822
9823     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9824 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9825 if test "${lt_cv_dlopen_self+set}" = set; then
9826   echo $ECHO_N "(cached) $ECHO_C" >&6
9827 else
9828           if test "$cross_compiling" = yes; then :
9829   lt_cv_dlopen_self=cross
9830 else
9831   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9832   lt_status=$lt_dlunknown
9833   cat > conftest.$ac_ext <<EOF
9834 #line 9834 "configure"
9835 #include "confdefs.h"
9836
9837 #if HAVE_DLFCN_H
9838 #include <dlfcn.h>
9839 #endif
9840
9841 #include <stdio.h>
9842
9843 #ifdef RTLD_GLOBAL
9844 #  define LT_DLGLOBAL           RTLD_GLOBAL
9845 #else
9846 #  ifdef DL_GLOBAL
9847 #    define LT_DLGLOBAL         DL_GLOBAL
9848 #  else
9849 #    define LT_DLGLOBAL         0
9850 #  endif
9851 #endif
9852
9853 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9854    find out it does not work in some platform. */
9855 #ifndef LT_DLLAZY_OR_NOW
9856 #  ifdef RTLD_LAZY
9857 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9858 #  else
9859 #    ifdef DL_LAZY
9860 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9861 #    else
9862 #      ifdef RTLD_NOW
9863 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9864 #      else
9865 #        ifdef DL_NOW
9866 #          define LT_DLLAZY_OR_NOW      DL_NOW
9867 #        else
9868 #          define LT_DLLAZY_OR_NOW      0
9869 #        endif
9870 #      endif
9871 #    endif
9872 #  endif
9873 #endif
9874
9875 #ifdef __cplusplus
9876 extern "C" void exit (int);
9877 #endif
9878
9879 void fnord() { int i=42;}
9880 int main ()
9881 {
9882   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9883   int status = $lt_dlunknown;
9884
9885   if (self)
9886     {
9887       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9888       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9889       /* dlclose (self); */
9890     }
9891   else
9892     puts (dlerror ());
9893
9894     exit (status);
9895 }
9896 EOF
9897   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9898   (eval $ac_link) 2>&5
9899   ac_status=$?
9900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9902     (./conftest; exit; ) >&5 2>/dev/null
9903     lt_status=$?
9904     case x$lt_status in
9905       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9906       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9907       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9908     esac
9909   else :
9910     # compilation failed
9911     lt_cv_dlopen_self=no
9912   fi
9913 fi
9914 rm -fr conftest*
9915
9916
9917 fi
9918 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9919 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9920
9921     if test "x$lt_cv_dlopen_self" = xyes; then
9922       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9923       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9924 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9925 if test "${lt_cv_dlopen_self_static+set}" = set; then
9926   echo $ECHO_N "(cached) $ECHO_C" >&6
9927 else
9928           if test "$cross_compiling" = yes; then :
9929   lt_cv_dlopen_self_static=cross
9930 else
9931   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9932   lt_status=$lt_dlunknown
9933   cat > conftest.$ac_ext <<EOF
9934 #line 9934 "configure"
9935 #include "confdefs.h"
9936
9937 #if HAVE_DLFCN_H
9938 #include <dlfcn.h>
9939 #endif
9940
9941 #include <stdio.h>
9942
9943 #ifdef RTLD_GLOBAL
9944 #  define LT_DLGLOBAL           RTLD_GLOBAL
9945 #else
9946 #  ifdef DL_GLOBAL
9947 #    define LT_DLGLOBAL         DL_GLOBAL
9948 #  else
9949 #    define LT_DLGLOBAL         0
9950 #  endif
9951 #endif
9952
9953 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9954    find out it does not work in some platform. */
9955 #ifndef LT_DLLAZY_OR_NOW
9956 #  ifdef RTLD_LAZY
9957 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9958 #  else
9959 #    ifdef DL_LAZY
9960 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9961 #    else
9962 #      ifdef RTLD_NOW
9963 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9964 #      else
9965 #        ifdef DL_NOW
9966 #          define LT_DLLAZY_OR_NOW      DL_NOW
9967 #        else
9968 #          define LT_DLLAZY_OR_NOW      0
9969 #        endif
9970 #      endif
9971 #    endif
9972 #  endif
9973 #endif
9974
9975 #ifdef __cplusplus
9976 extern "C" void exit (int);
9977 #endif
9978
9979 void fnord() { int i=42;}
9980 int main ()
9981 {
9982   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9983   int status = $lt_dlunknown;
9984
9985   if (self)
9986     {
9987       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9988       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9989       /* dlclose (self); */
9990     }
9991   else
9992     puts (dlerror ());
9993
9994     exit (status);
9995 }
9996 EOF
9997   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9998   (eval $ac_link) 2>&5
9999   ac_status=$?
10000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10002     (./conftest; exit; ) >&5 2>/dev/null
10003     lt_status=$?
10004     case x$lt_status in
10005       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10006       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10007       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10008     esac
10009   else :
10010     # compilation failed
10011     lt_cv_dlopen_self_static=no
10012   fi
10013 fi
10014 rm -fr conftest*
10015
10016
10017 fi
10018 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10019 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10020     fi
10021
10022     CPPFLAGS="$save_CPPFLAGS"
10023     LDFLAGS="$save_LDFLAGS"
10024     LIBS="$save_LIBS"
10025     ;;
10026   esac
10027
10028   case $lt_cv_dlopen_self in
10029   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10030   *) enable_dlopen_self=unknown ;;
10031   esac
10032
10033   case $lt_cv_dlopen_self_static in
10034   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10035   *) enable_dlopen_self_static=unknown ;;
10036   esac
10037 fi
10038
10039
10040 # Report which library types will actually be built
10041 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10042 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10043 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10044 echo "${ECHO_T}$can_build_shared" >&6; }
10045
10046 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10047 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10048 test "$can_build_shared" = "no" && enable_shared=no
10049
10050 # On AIX, shared libraries and static libraries use the same namespace, and
10051 # are all built from PIC.
10052 case $host_os in
10053 aix3*)
10054   test "$enable_shared" = yes && enable_static=no
10055   if test -n "$RANLIB"; then
10056     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10057     postinstall_cmds='$RANLIB $lib'
10058   fi
10059   ;;
10060
10061 aix4* | aix5*)
10062   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10063     test "$enable_shared" = yes && enable_static=no
10064   fi
10065     ;;
10066 esac
10067 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10068 echo "${ECHO_T}$enable_shared" >&6; }
10069
10070 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10071 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10072 # Make sure either enable_shared or enable_static is yes.
10073 test "$enable_shared" = yes || enable_static=yes
10074 { echo "$as_me:$LINENO: result: $enable_static" >&5
10075 echo "${ECHO_T}$enable_static" >&6; }
10076
10077 # The else clause should only fire when bootstrapping the
10078 # libtool distribution, otherwise you forgot to ship ltmain.sh
10079 # with your package, and you will get complaints that there are
10080 # no rules to generate ltmain.sh.
10081 if test -f "$ltmain"; then
10082   # See if we are running on zsh, and set the options which allow our commands through
10083   # without removal of \ escapes.
10084   if test -n "${ZSH_VERSION+set}" ; then
10085     setopt NO_GLOB_SUBST
10086   fi
10087   # Now quote all the things that may contain metacharacters while being
10088   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10089   # variables and quote the copies for generation of the libtool script.
10090   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10091     SED SHELL STRIP \
10092     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10093     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10094     deplibs_check_method reload_flag reload_cmds need_locks \
10095     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10096     lt_cv_sys_global_symbol_to_c_name_address \
10097     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10098     old_postinstall_cmds old_postuninstall_cmds \
10099     compiler \
10100     CC \
10101     LD \
10102     lt_prog_compiler_wl \
10103     lt_prog_compiler_pic \
10104     lt_prog_compiler_static \
10105     lt_prog_compiler_no_builtin_flag \
10106     export_dynamic_flag_spec \
10107     thread_safe_flag_spec \
10108     whole_archive_flag_spec \
10109     enable_shared_with_static_runtimes \
10110     old_archive_cmds \
10111     old_archive_from_new_cmds \
10112     predep_objects \
10113     postdep_objects \
10114     predeps \
10115     postdeps \
10116     compiler_lib_search_path \
10117     archive_cmds \
10118     archive_expsym_cmds \
10119     postinstall_cmds \
10120     postuninstall_cmds \
10121     old_archive_from_expsyms_cmds \
10122     allow_undefined_flag \
10123     no_undefined_flag \
10124     export_symbols_cmds \
10125     hardcode_libdir_flag_spec \
10126     hardcode_libdir_flag_spec_ld \
10127     hardcode_libdir_separator \
10128     hardcode_automatic \
10129     module_cmds \
10130     module_expsym_cmds \
10131     lt_cv_prog_compiler_c_o \
10132     exclude_expsyms \
10133     include_expsyms; do
10134
10135     case $var in
10136     old_archive_cmds | \
10137     old_archive_from_new_cmds | \
10138     archive_cmds | \
10139     archive_expsym_cmds | \
10140     module_cmds | \
10141     module_expsym_cmds | \
10142     old_archive_from_expsyms_cmds | \
10143     export_symbols_cmds | \
10144     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10145     postinstall_cmds | postuninstall_cmds | \
10146     old_postinstall_cmds | old_postuninstall_cmds | \
10147     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10148       # Double-quote double-evaled strings.
10149       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10150       ;;
10151     *)
10152       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10153       ;;
10154     esac
10155   done
10156
10157   case $lt_echo in
10158   *'\$0 --fallback-echo"')
10159     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10160     ;;
10161   esac
10162
10163 cfgfile="${ofile}T"
10164   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10165   $rm -f "$cfgfile"
10166   { echo "$as_me:$LINENO: creating $ofile" >&5
10167 echo "$as_me: creating $ofile" >&6;}
10168
10169   cat <<__EOF__ >> "$cfgfile"
10170 #! $SHELL
10171
10172 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10173 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10174 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10175 #
10176 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10177 # Free Software Foundation, Inc.
10178 #
10179 # This file is part of GNU Libtool:
10180 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10181 #
10182 # This program is free software; you can redistribute it and/or modify
10183 # it under the terms of the GNU General Public License as published by
10184 # the Free Software Foundation; either version 2 of the License, or
10185 # (at your option) any later version.
10186 #
10187 # This program is distributed in the hope that it will be useful, but
10188 # WITHOUT ANY WARRANTY; without even the implied warranty of
10189 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10190 # General Public License for more details.
10191 #
10192 # You should have received a copy of the GNU General Public License
10193 # along with this program; if not, write to the Free Software
10194 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10195 #
10196 # As a special exception to the GNU General Public License, if you
10197 # distribute this file as part of a program that contains a
10198 # configuration script generated by Autoconf, you may include it under
10199 # the same distribution terms that you use for the rest of that program.
10200
10201 # A sed program that does not truncate output.
10202 SED=$lt_SED
10203
10204 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10205 Xsed="$SED -e 1s/^X//"
10206
10207 # The HP-UX ksh and POSIX shell print the target directory to stdout
10208 # if CDPATH is set.
10209 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10210
10211 # The names of the tagged configurations supported by this script.
10212 available_tags=
10213
10214 # ### BEGIN LIBTOOL CONFIG
10215
10216 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10217
10218 # Shell to use when invoking shell scripts.
10219 SHELL=$lt_SHELL
10220
10221 # Whether or not to build shared libraries.
10222 build_libtool_libs=$enable_shared
10223
10224 # Whether or not to build static libraries.
10225 build_old_libs=$enable_static
10226
10227 # Whether or not to add -lc for building shared libraries.
10228 build_libtool_need_lc=$archive_cmds_need_lc
10229
10230 # Whether or not to disallow shared libs when runtime libs are static
10231 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10232
10233 # Whether or not to optimize for fast installation.
10234 fast_install=$enable_fast_install
10235
10236 # The host system.
10237 host_alias=$host_alias
10238 host=$host
10239 host_os=$host_os
10240
10241 # The build system.
10242 build_alias=$build_alias
10243 build=$build
10244 build_os=$build_os
10245
10246 # An echo program that does not interpret backslashes.
10247 echo=$lt_echo
10248
10249 # The archiver.
10250 AR=$lt_AR
10251 AR_FLAGS=$lt_AR_FLAGS
10252
10253 # A C compiler.
10254 LTCC=$lt_LTCC
10255
10256 # LTCC compiler flags.
10257 LTCFLAGS=$lt_LTCFLAGS
10258
10259 # A language-specific compiler.
10260 CC=$lt_compiler
10261
10262 # Is the compiler the GNU C compiler?
10263 with_gcc=$GCC
10264
10265 # An ERE matcher.
10266 EGREP=$lt_EGREP
10267
10268 # The linker used to build libraries.
10269 LD=$lt_LD
10270
10271 # Whether we need hard or soft links.
10272 LN_S=$lt_LN_S
10273
10274 # A BSD-compatible nm program.
10275 NM=$lt_NM
10276
10277 # A symbol stripping program
10278 STRIP=$lt_STRIP
10279
10280 # Used to examine libraries when file_magic_cmd begins "file"
10281 MAGIC_CMD=$MAGIC_CMD
10282
10283 # Used on cygwin: DLL creation program.
10284 DLLTOOL="$DLLTOOL"
10285
10286 # Used on cygwin: object dumper.
10287 OBJDUMP="$OBJDUMP"
10288
10289 # Used on cygwin: assembler.
10290 AS="$AS"
10291
10292 # The name of the directory that contains temporary libtool files.
10293 objdir=$objdir
10294
10295 # How to create reloadable object files.
10296 reload_flag=$lt_reload_flag
10297 reload_cmds=$lt_reload_cmds
10298
10299 # How to pass a linker flag through the compiler.
10300 wl=$lt_lt_prog_compiler_wl
10301
10302 # Object file suffix (normally "o").
10303 objext="$ac_objext"
10304
10305 # Old archive suffix (normally "a").
10306 libext="$libext"
10307
10308 # Shared library suffix (normally ".so").
10309 shrext_cmds='$shrext_cmds'
10310
10311 # Executable file suffix (normally "").
10312 exeext="$exeext"
10313
10314 # Additional compiler flags for building library objects.
10315 pic_flag=$lt_lt_prog_compiler_pic
10316 pic_mode=$pic_mode
10317
10318 # What is the maximum length of a command?
10319 max_cmd_len=$lt_cv_sys_max_cmd_len
10320
10321 # Does compiler simultaneously support -c and -o options?
10322 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10323
10324 # Must we lock files when doing compilation?
10325 need_locks=$lt_need_locks
10326
10327 # Do we need the lib prefix for modules?
10328 need_lib_prefix=$need_lib_prefix
10329
10330 # Do we need a version for libraries?
10331 need_version=$need_version
10332
10333 # Whether dlopen is supported.
10334 dlopen_support=$enable_dlopen
10335
10336 # Whether dlopen of programs is supported.
10337 dlopen_self=$enable_dlopen_self
10338
10339 # Whether dlopen of statically linked programs is supported.
10340 dlopen_self_static=$enable_dlopen_self_static
10341
10342 # Compiler flag to prevent dynamic linking.
10343 link_static_flag=$lt_lt_prog_compiler_static
10344
10345 # Compiler flag to turn off builtin functions.
10346 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10347
10348 # Compiler flag to allow reflexive dlopens.
10349 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10350
10351 # Compiler flag to generate shared objects directly from archives.
10352 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10353
10354 # Compiler flag to generate thread-safe objects.
10355 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10356
10357 # Library versioning type.
10358 version_type=$version_type
10359
10360 # Format of library name prefix.
10361 libname_spec=$lt_libname_spec
10362
10363 # List of archive names.  First name is the real one, the rest are links.
10364 # The last name is the one that the linker finds with -lNAME.
10365 library_names_spec=$lt_library_names_spec
10366
10367 # The coded name of the library, if different from the real name.
10368 soname_spec=$lt_soname_spec
10369
10370 # Commands used to build and install an old-style archive.
10371 RANLIB=$lt_RANLIB
10372 old_archive_cmds=$lt_old_archive_cmds
10373 old_postinstall_cmds=$lt_old_postinstall_cmds
10374 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10375
10376 # Create an old-style archive from a shared archive.
10377 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10378
10379 # Create a temporary old-style archive to link instead of a shared archive.
10380 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10381
10382 # Commands used to build and install a shared archive.
10383 archive_cmds=$lt_archive_cmds
10384 archive_expsym_cmds=$lt_archive_expsym_cmds
10385 postinstall_cmds=$lt_postinstall_cmds
10386 postuninstall_cmds=$lt_postuninstall_cmds
10387
10388 # Commands used to build a loadable module (assumed same as above if empty)
10389 module_cmds=$lt_module_cmds
10390 module_expsym_cmds=$lt_module_expsym_cmds
10391
10392 # Commands to strip libraries.
10393 old_striplib=$lt_old_striplib
10394 striplib=$lt_striplib
10395
10396 # Dependencies to place before the objects being linked to create a
10397 # shared library.
10398 predep_objects=$lt_predep_objects
10399
10400 # Dependencies to place after the objects being linked to create a
10401 # shared library.
10402 postdep_objects=$lt_postdep_objects
10403
10404 # Dependencies to place before the objects being linked to create a
10405 # shared library.
10406 predeps=$lt_predeps
10407
10408 # Dependencies to place after the objects being linked to create a
10409 # shared library.
10410 postdeps=$lt_postdeps
10411
10412 # The library search path used internally by the compiler when linking
10413 # a shared library.
10414 compiler_lib_search_path=$lt_compiler_lib_search_path
10415
10416 # Method to check whether dependent libraries are shared objects.
10417 deplibs_check_method=$lt_deplibs_check_method
10418
10419 # Command to use when deplibs_check_method == file_magic.
10420 file_magic_cmd=$lt_file_magic_cmd
10421
10422 # Flag that allows shared libraries with undefined symbols to be built.
10423 allow_undefined_flag=$lt_allow_undefined_flag
10424
10425 # Flag that forces no undefined symbols.
10426 no_undefined_flag=$lt_no_undefined_flag
10427
10428 # Commands used to finish a libtool library installation in a directory.
10429 finish_cmds=$lt_finish_cmds
10430
10431 # Same as above, but a single script fragment to be evaled but not shown.
10432 finish_eval=$lt_finish_eval
10433
10434 # Take the output of nm and produce a listing of raw symbols and C names.
10435 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10436
10437 # Transform the output of nm in a proper C declaration
10438 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10439
10440 # Transform the output of nm in a C name address pair
10441 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10442
10443 # This is the shared library runtime path variable.
10444 runpath_var=$runpath_var
10445
10446 # This is the shared library path variable.
10447 shlibpath_var=$shlibpath_var
10448
10449 # Is shlibpath searched before the hard-coded library search path?
10450 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10451
10452 # How to hardcode a shared library path into an executable.
10453 hardcode_action=$hardcode_action
10454
10455 # Whether we should hardcode library paths into libraries.
10456 hardcode_into_libs=$hardcode_into_libs
10457
10458 # Flag to hardcode \$libdir into a binary during linking.
10459 # This must work even if \$libdir does not exist.
10460 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10461
10462 # If ld is used when linking, flag to hardcode \$libdir into
10463 # a binary during linking. This must work even if \$libdir does
10464 # not exist.
10465 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10466
10467 # Whether we need a single -rpath flag with a separated argument.
10468 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10469
10470 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10471 # resulting binary.
10472 hardcode_direct=$hardcode_direct
10473
10474 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10475 # resulting binary.
10476 hardcode_minus_L=$hardcode_minus_L
10477
10478 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10479 # the resulting binary.
10480 hardcode_shlibpath_var=$hardcode_shlibpath_var
10481
10482 # Set to yes if building a shared library automatically hardcodes DIR into the library
10483 # and all subsequent libraries and executables linked against it.
10484 hardcode_automatic=$hardcode_automatic
10485
10486 # Variables whose values should be saved in libtool wrapper scripts and
10487 # restored at relink time.
10488 variables_saved_for_relink="$variables_saved_for_relink"
10489
10490 # Whether libtool must link a program against all its dependency libraries.
10491 link_all_deplibs=$link_all_deplibs
10492
10493 # Compile-time system search path for libraries
10494 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10495
10496 # Run-time system search path for libraries
10497 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10498
10499 # Fix the shell variable \$srcfile for the compiler.
10500 fix_srcfile_path="$fix_srcfile_path"
10501
10502 # Set to yes if exported symbols are required.
10503 always_export_symbols=$always_export_symbols
10504
10505 # The commands to list exported symbols.
10506 export_symbols_cmds=$lt_export_symbols_cmds
10507
10508 # The commands to extract the exported symbol list from a shared archive.
10509 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10510
10511 # Symbols that should not be listed in the preloaded symbols.
10512 exclude_expsyms=$lt_exclude_expsyms
10513
10514 # Symbols that must always be exported.
10515 include_expsyms=$lt_include_expsyms
10516
10517 # ### END LIBTOOL CONFIG
10518
10519 __EOF__
10520
10521
10522   case $host_os in
10523   aix3*)
10524     cat <<\EOF >> "$cfgfile"
10525
10526 # AIX sometimes has problems with the GCC collect2 program.  For some
10527 # reason, if we set the COLLECT_NAMES environment variable, the problems
10528 # vanish in a puff of smoke.
10529 if test "X${COLLECT_NAMES+set}" != Xset; then
10530   COLLECT_NAMES=
10531   export COLLECT_NAMES
10532 fi
10533 EOF
10534     ;;
10535   esac
10536
10537   # We use sed instead of cat because bash on DJGPP gets confused if
10538   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10539   # text mode, it properly converts lines to CR/LF.  This bash problem
10540   # is reportedly fixed, but why not run on old versions too?
10541   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10542
10543   mv -f "$cfgfile" "$ofile" || \
10544     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10545   chmod +x "$ofile"
10546
10547 else
10548   # If there is no Makefile yet, we rely on a make rule to execute
10549   # `config.status --recheck' to rerun these tests and create the
10550   # libtool script then.
10551   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10552   if test -f "$ltmain_in"; then
10553     test -f Makefile && make "$ltmain"
10554   fi
10555 fi
10556
10557
10558 ac_ext=c
10559 ac_cpp='$CPP $CPPFLAGS'
10560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10563
10564 CC="$lt_save_CC"
10565
10566
10567 # Check whether --with-tags was given.
10568 if test "${with_tags+set}" = set; then
10569   withval=$with_tags; tagnames="$withval"
10570 fi
10571
10572
10573 if test -f "$ltmain" && test -n "$tagnames"; then
10574   if test ! -f "${ofile}"; then
10575     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10576 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10577   fi
10578
10579   if test -z "$LTCC"; then
10580     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10581     if test -z "$LTCC"; then
10582       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10583 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10584     else
10585       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10586 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10587     fi
10588   fi
10589   if test -z "$LTCFLAGS"; then
10590     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10591   fi
10592
10593   # Extract list of available tagged configurations in $ofile.
10594   # Note that this assumes the entire list is on one line.
10595   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10596
10597   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10598   for tagname in $tagnames; do
10599     IFS="$lt_save_ifs"
10600     # Check whether tagname contains only valid characters
10601     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10602     "") ;;
10603     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10604 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10605    { (exit 1); exit 1; }; }
10606         ;;
10607     esac
10608
10609     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10610     then
10611       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10612 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10613    { (exit 1); exit 1; }; }
10614     fi
10615
10616     # Update the list of available tags.
10617     if test -n "$tagname"; then
10618       echo appending configuration tag \"$tagname\" to $ofile
10619
10620       case $tagname in
10621       CXX)
10622         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10623             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10624             (test "X$CXX" != "Xg++"))) ; then
10625           ac_ext=cpp
10626 ac_cpp='$CXXCPP $CPPFLAGS'
10627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10630
10631
10632
10633
10634 archive_cmds_need_lc_CXX=no
10635 allow_undefined_flag_CXX=
10636 always_export_symbols_CXX=no
10637 archive_expsym_cmds_CXX=
10638 export_dynamic_flag_spec_CXX=
10639 hardcode_direct_CXX=no
10640 hardcode_libdir_flag_spec_CXX=
10641 hardcode_libdir_flag_spec_ld_CXX=
10642 hardcode_libdir_separator_CXX=
10643 hardcode_minus_L_CXX=no
10644 hardcode_shlibpath_var_CXX=unsupported
10645 hardcode_automatic_CXX=no
10646 module_cmds_CXX=
10647 module_expsym_cmds_CXX=
10648 link_all_deplibs_CXX=unknown
10649 old_archive_cmds_CXX=$old_archive_cmds
10650 no_undefined_flag_CXX=
10651 whole_archive_flag_spec_CXX=
10652 enable_shared_with_static_runtimes_CXX=no
10653
10654 # Dependencies to place before and after the object being linked:
10655 predep_objects_CXX=
10656 postdep_objects_CXX=
10657 predeps_CXX=
10658 postdeps_CXX=
10659 compiler_lib_search_path_CXX=
10660
10661 # Source file extension for C++ test sources.
10662 ac_ext=cpp
10663
10664 # Object file extension for compiled C++ test sources.
10665 objext=o
10666 objext_CXX=$objext
10667
10668 # Code to be used in simple compile tests
10669 lt_simple_compile_test_code="int some_variable = 0;\n"
10670
10671 # Code to be used in simple link tests
10672 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10673
10674 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10675
10676 # If no C compiler was specified, use CC.
10677 LTCC=${LTCC-"$CC"}
10678
10679 # If no C compiler flags were specified, use CFLAGS.
10680 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10681
10682 # Allow CC to be a program name with arguments.
10683 compiler=$CC
10684
10685
10686 # save warnings/boilerplate of simple test code
10687 ac_outfile=conftest.$ac_objext
10688 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10689 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10690 _lt_compiler_boilerplate=`cat conftest.err`
10691 $rm conftest*
10692
10693 ac_outfile=conftest.$ac_objext
10694 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10695 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10696 _lt_linker_boilerplate=`cat conftest.err`
10697 $rm conftest*
10698
10699
10700 # Allow CC to be a program name with arguments.
10701 lt_save_CC=$CC
10702 lt_save_LD=$LD
10703 lt_save_GCC=$GCC
10704 GCC=$GXX
10705 lt_save_with_gnu_ld=$with_gnu_ld
10706 lt_save_path_LD=$lt_cv_path_LD
10707 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10708   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10709 else
10710   $as_unset lt_cv_prog_gnu_ld
10711 fi
10712 if test -n "${lt_cv_path_LDCXX+set}"; then
10713   lt_cv_path_LD=$lt_cv_path_LDCXX
10714 else
10715   $as_unset lt_cv_path_LD
10716 fi
10717 test -z "${LDCXX+set}" || LD=$LDCXX
10718 CC=${CXX-"c++"}
10719 compiler=$CC
10720 compiler_CXX=$CC
10721 for cc_temp in $compiler""; do
10722   case $cc_temp in
10723     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10724     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10725     \-*) ;;
10726     *) break;;
10727   esac
10728 done
10729 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10730
10731
10732 # We don't want -fno-exception wen compiling C++ code, so set the
10733 # no_builtin_flag separately
10734 if test "$GXX" = yes; then
10735   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10736 else
10737   lt_prog_compiler_no_builtin_flag_CXX=
10738 fi
10739
10740 if test "$GXX" = yes; then
10741   # Set up default GNU C++ configuration
10742
10743
10744 # Check whether --with-gnu-ld was given.
10745 if test "${with_gnu_ld+set}" = set; then
10746   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10747 else
10748   with_gnu_ld=no
10749 fi
10750
10751 ac_prog=ld
10752 if test "$GCC" = yes; then
10753   # Check if gcc -print-prog-name=ld gives a path.
10754   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10755 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10756   case $host in
10757   *-*-mingw*)
10758     # gcc leaves a trailing carriage return which upsets mingw
10759     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10760   *)
10761     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10762   esac
10763   case $ac_prog in
10764     # Accept absolute paths.
10765     [\\/]* | ?:[\\/]*)
10766       re_direlt='/[^/][^/]*/\.\./'
10767       # Canonicalize the pathname of ld
10768       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10769       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10770         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10771       done
10772       test -z "$LD" && LD="$ac_prog"
10773       ;;
10774   "")
10775     # If it fails, then pretend we aren't using GCC.
10776     ac_prog=ld
10777     ;;
10778   *)
10779     # If it is relative, then search for the first ld in PATH.
10780     with_gnu_ld=unknown
10781     ;;
10782   esac
10783 elif test "$with_gnu_ld" = yes; then
10784   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10785 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10786 else
10787   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10788 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10789 fi
10790 if test "${lt_cv_path_LD+set}" = set; then
10791   echo $ECHO_N "(cached) $ECHO_C" >&6
10792 else
10793   if test -z "$LD"; then
10794   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10795   for ac_dir in $PATH; do
10796     IFS="$lt_save_ifs"
10797     test -z "$ac_dir" && ac_dir=.
10798     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10799       lt_cv_path_LD="$ac_dir/$ac_prog"
10800       # Check to see if the program is GNU ld.  I'd rather use --version,
10801       # but apparently some variants of GNU ld only accept -v.
10802       # Break only if it was the GNU/non-GNU ld that we prefer.
10803       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10804       *GNU* | *'with BFD'*)
10805         test "$with_gnu_ld" != no && break
10806         ;;
10807       *)
10808         test "$with_gnu_ld" != yes && break
10809         ;;
10810       esac
10811     fi
10812   done
10813   IFS="$lt_save_ifs"
10814 else
10815   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10816 fi
10817 fi
10818
10819 LD="$lt_cv_path_LD"
10820 if test -n "$LD"; then
10821   { echo "$as_me:$LINENO: result: $LD" >&5
10822 echo "${ECHO_T}$LD" >&6; }
10823 else
10824   { echo "$as_me:$LINENO: result: no" >&5
10825 echo "${ECHO_T}no" >&6; }
10826 fi
10827 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10828 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10829    { (exit 1); exit 1; }; }
10830 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10831 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10832 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10833   echo $ECHO_N "(cached) $ECHO_C" >&6
10834 else
10835   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10836 case `$LD -v 2>&1 </dev/null` in
10837 *GNU* | *'with BFD'*)
10838   lt_cv_prog_gnu_ld=yes
10839   ;;
10840 *)
10841   lt_cv_prog_gnu_ld=no
10842   ;;
10843 esac
10844 fi
10845 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10846 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10847 with_gnu_ld=$lt_cv_prog_gnu_ld
10848
10849
10850
10851   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10852   # archiving commands below assume that GNU ld is being used.
10853   if test "$with_gnu_ld" = yes; then
10854     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10855     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'
10856
10857     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10858     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10859
10860     # If archive_cmds runs LD, not CC, wlarc should be empty
10861     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10862     #     investigate it a little bit more. (MM)
10863     wlarc='${wl}'
10864
10865     # ancient GNU ld didn't support --whole-archive et. al.
10866     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10867         grep 'no-whole-archive' > /dev/null; then
10868       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10869     else
10870       whole_archive_flag_spec_CXX=
10871     fi
10872   else
10873     with_gnu_ld=no
10874     wlarc=
10875
10876     # A generic and very simple default shared library creation
10877     # command for GNU C++ for the case where it uses the native
10878     # linker, instead of GNU ld.  If possible, this setting should
10879     # overridden to take advantage of the native linker features on
10880     # the platform it is being used on.
10881     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10882   fi
10883
10884   # Commands to make compiler produce verbose output that lists
10885   # what "hidden" libraries, object files and flags are used when
10886   # linking a shared library.
10887   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10888
10889 else
10890   GXX=no
10891   with_gnu_ld=no
10892   wlarc=
10893 fi
10894
10895 # PORTME: fill in a description of your system's C++ link characteristics
10896 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10897 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10898 ld_shlibs_CXX=yes
10899 case $host_os in
10900   aix3*)
10901     # FIXME: insert proper C++ library support
10902     ld_shlibs_CXX=no
10903     ;;
10904   aix4* | aix5*)
10905     if test "$host_cpu" = ia64; then
10906       # On IA64, the linker does run time linking by default, so we don't
10907       # have to do anything special.
10908       aix_use_runtimelinking=no
10909       exp_sym_flag='-Bexport'
10910       no_entry_flag=""
10911     else
10912       aix_use_runtimelinking=no
10913
10914       # Test if we are trying to use run time linking or normal
10915       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10916       # need to do runtime linking.
10917       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10918         for ld_flag in $LDFLAGS; do
10919           case $ld_flag in
10920           *-brtl*)
10921             aix_use_runtimelinking=yes
10922             break
10923             ;;
10924           esac
10925         done
10926         ;;
10927       esac
10928
10929       exp_sym_flag='-bexport'
10930       no_entry_flag='-bnoentry'
10931     fi
10932
10933     # When large executables or shared objects are built, AIX ld can
10934     # have problems creating the table of contents.  If linking a library
10935     # or program results in "error TOC overflow" add -mminimal-toc to
10936     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10937     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10938
10939     archive_cmds_CXX=''
10940     hardcode_direct_CXX=yes
10941     hardcode_libdir_separator_CXX=':'
10942     link_all_deplibs_CXX=yes
10943
10944     if test "$GXX" = yes; then
10945       case $host_os in aix4.[012]|aix4.[012].*)
10946       # We only want to do this on AIX 4.2 and lower, the check
10947       # below for broken collect2 doesn't work under 4.3+
10948         collect2name=`${CC} -print-prog-name=collect2`
10949         if test -f "$collect2name" && \
10950            strings "$collect2name" | grep resolve_lib_name >/dev/null
10951         then
10952           # We have reworked collect2
10953           hardcode_direct_CXX=yes
10954         else
10955           # We have old collect2
10956           hardcode_direct_CXX=unsupported
10957           # It fails to find uninstalled libraries when the uninstalled
10958           # path is not listed in the libpath.  Setting hardcode_minus_L
10959           # to unsupported forces relinking
10960           hardcode_minus_L_CXX=yes
10961           hardcode_libdir_flag_spec_CXX='-L$libdir'
10962           hardcode_libdir_separator_CXX=
10963         fi
10964         ;;
10965       esac
10966       shared_flag='-shared'
10967       if test "$aix_use_runtimelinking" = yes; then
10968         shared_flag="$shared_flag "'${wl}-G'
10969       fi
10970     else
10971       # not using gcc
10972       if test "$host_cpu" = ia64; then
10973         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10974         # chokes on -Wl,-G. The following line is correct:
10975         shared_flag='-G'
10976       else
10977         if test "$aix_use_runtimelinking" = yes; then
10978           shared_flag='${wl}-G'
10979         else
10980           shared_flag='${wl}-bM:SRE'
10981         fi
10982       fi
10983     fi
10984
10985     # It seems that -bexpall does not export symbols beginning with
10986     # underscore (_), so it is better to generate a list of symbols to export.
10987     always_export_symbols_CXX=yes
10988     if test "$aix_use_runtimelinking" = yes; then
10989       # Warning - without using the other runtime loading flags (-brtl),
10990       # -berok will link without error, but may produce a broken library.
10991       allow_undefined_flag_CXX='-berok'
10992       # Determine the default libpath from the value encoded in an empty executable.
10993       cat >conftest.$ac_ext <<_ACEOF
10994 /* confdefs.h.  */
10995 _ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h.  */
10999
11000 int
11001 main ()
11002 {
11003
11004   ;
11005   return 0;
11006 }
11007 _ACEOF
11008 rm -f conftest.$ac_objext conftest$ac_exeext
11009 if { (ac_try="$ac_link"
11010 case "(($ac_try" in
11011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012   *) ac_try_echo=$ac_try;;
11013 esac
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015   (eval "$ac_link") 2>conftest.er1
11016   ac_status=$?
11017   grep -v '^ *+' conftest.er1 >conftest.err
11018   rm -f conftest.er1
11019   cat conftest.err >&5
11020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021   (exit $ac_status); } && {
11022          test -z "$ac_cxx_werror_flag" ||
11023          test ! -s conftest.err
11024        } && test -s conftest$ac_exeext &&
11025        $as_test_x conftest$ac_exeext; then
11026
11027 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11028 }'`
11029 # Check for a 64-bit object if we didn't find anything.
11030 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11031 }'`; fi
11032 else
11033   echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11035
11036
11037 fi
11038
11039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11040       conftest$ac_exeext conftest.$ac_ext
11041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11042
11043       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11044
11045       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"
11046      else
11047       if test "$host_cpu" = ia64; then
11048         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11049         allow_undefined_flag_CXX="-z nodefs"
11050         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"
11051       else
11052         # Determine the default libpath from the value encoded in an empty executable.
11053         cat >conftest.$ac_ext <<_ACEOF
11054 /* confdefs.h.  */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h.  */
11059
11060 int
11061 main ()
11062 {
11063
11064   ;
11065   return 0;
11066 }
11067 _ACEOF
11068 rm -f conftest.$ac_objext conftest$ac_exeext
11069 if { (ac_try="$ac_link"
11070 case "(($ac_try" in
11071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072   *) ac_try_echo=$ac_try;;
11073 esac
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075   (eval "$ac_link") 2>conftest.er1
11076   ac_status=$?
11077   grep -v '^ *+' conftest.er1 >conftest.err
11078   rm -f conftest.er1
11079   cat conftest.err >&5
11080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081   (exit $ac_status); } && {
11082          test -z "$ac_cxx_werror_flag" ||
11083          test ! -s conftest.err
11084        } && test -s conftest$ac_exeext &&
11085        $as_test_x conftest$ac_exeext; then
11086
11087 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11088 }'`
11089 # Check for a 64-bit object if we didn't find anything.
11090 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11091 }'`; fi
11092 else
11093   echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11095
11096
11097 fi
11098
11099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11100       conftest$ac_exeext conftest.$ac_ext
11101 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11102
11103         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11104         # Warning - without using the other run time loading flags,
11105         # -berok will link without error, but may produce a broken library.
11106         no_undefined_flag_CXX=' ${wl}-bernotok'
11107         allow_undefined_flag_CXX=' ${wl}-berok'
11108         # Exported symbols can be pulled into shared objects from archives
11109         whole_archive_flag_spec_CXX='$convenience'
11110         archive_cmds_need_lc_CXX=yes
11111         # This is similar to how AIX traditionally builds its shared libraries.
11112         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'
11113       fi
11114     fi
11115     ;;
11116
11117   beos*)
11118     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11119       allow_undefined_flag_CXX=unsupported
11120       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11121       # support --undefined.  This deserves some investigation.  FIXME
11122       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11123     else
11124       ld_shlibs_CXX=no
11125     fi
11126     ;;
11127
11128   chorus*)
11129     case $cc_basename in
11130       *)
11131         # FIXME: insert proper C++ library support
11132         ld_shlibs_CXX=no
11133         ;;
11134     esac
11135     ;;
11136
11137   cygwin* | mingw* | pw32*)
11138     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11139     # as there is no search path for DLLs.
11140     hardcode_libdir_flag_spec_CXX='-L$libdir'
11141     allow_undefined_flag_CXX=unsupported
11142     always_export_symbols_CXX=no
11143     enable_shared_with_static_runtimes_CXX=yes
11144
11145     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11146       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'
11147       # If the export-symbols file already is a .def file (1st line
11148       # is EXPORTS), use it as is; otherwise, prepend...
11149       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11150         cp $export_symbols $output_objdir/$soname.def;
11151       else
11152         echo EXPORTS > $output_objdir/$soname.def;
11153         cat $export_symbols >> $output_objdir/$soname.def;
11154       fi~
11155       $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'
11156     else
11157       ld_shlibs_CXX=no
11158     fi
11159   ;;
11160       darwin* | rhapsody*)
11161         case $host_os in
11162         rhapsody* | darwin1.[012])
11163          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11164          ;;
11165        *) # Darwin 1.3 on
11166          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11167            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11168          else
11169            case ${MACOSX_DEPLOYMENT_TARGET} in
11170              10.[012])
11171                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11172                ;;
11173              10.*)
11174                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11175                ;;
11176            esac
11177          fi
11178          ;;
11179         esac
11180       archive_cmds_need_lc_CXX=no
11181       hardcode_direct_CXX=no
11182       hardcode_automatic_CXX=yes
11183       hardcode_shlibpath_var_CXX=unsupported
11184       whole_archive_flag_spec_CXX=''
11185       link_all_deplibs_CXX=yes
11186
11187     if test "$GXX" = yes ; then
11188       lt_int_apple_cc_single_mod=no
11189       output_verbose_link_cmd='echo'
11190       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11191        lt_int_apple_cc_single_mod=yes
11192       fi
11193       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11194        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11195       else
11196           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'
11197         fi
11198         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11199         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11200           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11201             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11202           else
11203             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11204           fi
11205             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}'
11206       else
11207       case $cc_basename in
11208         xlc*)
11209          output_verbose_link_cmd='echo'
11210           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11211           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11212           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11213           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11214           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}'
11215           ;;
11216        *)
11217          ld_shlibs_CXX=no
11218           ;;
11219       esac
11220       fi
11221         ;;
11222
11223   dgux*)
11224     case $cc_basename in
11225       ec++*)
11226         # FIXME: insert proper C++ library support
11227         ld_shlibs_CXX=no
11228         ;;
11229       ghcx*)
11230         # Green Hills C++ Compiler
11231         # FIXME: insert proper C++ library support
11232         ld_shlibs_CXX=no
11233         ;;
11234       *)
11235         # FIXME: insert proper C++ library support
11236         ld_shlibs_CXX=no
11237         ;;
11238     esac
11239     ;;
11240   freebsd[12]*)
11241     # C++ shared libraries reported to be fairly broken before switch to ELF
11242     ld_shlibs_CXX=no
11243     ;;
11244   freebsd-elf*)
11245     archive_cmds_need_lc_CXX=no
11246     ;;
11247   freebsd* | dragonfly*)
11248     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11249     # conventions
11250     ld_shlibs_CXX=yes
11251     ;;
11252   gnu*)
11253     ;;
11254   hpux9*)
11255     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11256     hardcode_libdir_separator_CXX=:
11257     export_dynamic_flag_spec_CXX='${wl}-E'
11258     hardcode_direct_CXX=yes
11259     hardcode_minus_L_CXX=yes # Not in the search PATH,
11260                                 # but as the default
11261                                 # location of the library.
11262
11263     case $cc_basename in
11264     CC*)
11265       # FIXME: insert proper C++ library support
11266       ld_shlibs_CXX=no
11267       ;;
11268     aCC*)
11269       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'
11270       # Commands to make compiler produce verbose output that lists
11271       # what "hidden" libraries, object files and flags are used when
11272       # linking a shared library.
11273       #
11274       # There doesn't appear to be a way to prevent this compiler from
11275       # explicitly linking system object files so we need to strip them
11276       # from the output so that they don't get included in the library
11277       # dependencies.
11278       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'
11279       ;;
11280     *)
11281       if test "$GXX" = yes; then
11282         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'
11283       else
11284         # FIXME: insert proper C++ library support
11285         ld_shlibs_CXX=no
11286       fi
11287       ;;
11288     esac
11289     ;;
11290   hpux10*|hpux11*)
11291     if test $with_gnu_ld = no; then
11292       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11293       hardcode_libdir_separator_CXX=:
11294
11295       case $host_cpu in
11296       hppa*64*|ia64*)
11297         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11298         ;;
11299       *)
11300         export_dynamic_flag_spec_CXX='${wl}-E'
11301         ;;
11302       esac
11303     fi
11304     case $host_cpu in
11305     hppa*64*|ia64*)
11306       hardcode_direct_CXX=no
11307       hardcode_shlibpath_var_CXX=no
11308       ;;
11309     *)
11310       hardcode_direct_CXX=yes
11311       hardcode_minus_L_CXX=yes # Not in the search PATH,
11312                                               # but as the default
11313                                               # location of the library.
11314       ;;
11315     esac
11316
11317     case $cc_basename in
11318       CC*)
11319         # FIXME: insert proper C++ library support
11320         ld_shlibs_CXX=no
11321         ;;
11322       aCC*)
11323         case $host_cpu in
11324         hppa*64*)
11325           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11326           ;;
11327         ia64*)
11328           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11329           ;;
11330         *)
11331           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11332           ;;
11333         esac
11334         # Commands to make compiler produce verbose output that lists
11335         # what "hidden" libraries, object files and flags are used when
11336         # linking a shared library.
11337         #
11338         # There doesn't appear to be a way to prevent this compiler from
11339         # explicitly linking system object files so we need to strip them
11340         # from the output so that they don't get included in the library
11341         # dependencies.
11342         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'
11343         ;;
11344       *)
11345         if test "$GXX" = yes; then
11346           if test $with_gnu_ld = no; then
11347             case $host_cpu in
11348             hppa*64*)
11349               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11350               ;;
11351             ia64*)
11352               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11353               ;;
11354             *)
11355               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'
11356               ;;
11357             esac
11358           fi
11359         else
11360           # FIXME: insert proper C++ library support
11361           ld_shlibs_CXX=no
11362         fi
11363         ;;
11364     esac
11365     ;;
11366   interix3*)
11367     hardcode_direct_CXX=no
11368     hardcode_shlibpath_var_CXX=no
11369     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11370     export_dynamic_flag_spec_CXX='${wl}-E'
11371     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11372     # Instead, shared libraries are loaded at an image base (0x10000000 by
11373     # default) and relocated if they conflict, which is a slow very memory
11374     # consuming and fragmenting process.  To avoid this, we pick a random,
11375     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11376     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11377     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'
11378     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'
11379     ;;
11380   irix5* | irix6*)
11381     case $cc_basename in
11382       CC*)
11383         # SGI C++
11384         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'
11385
11386         # Archives containing C++ object files must be created using
11387         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11388         # necessary to make sure instantiated templates are included
11389         # in the archive.
11390         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11391         ;;
11392       *)
11393         if test "$GXX" = yes; then
11394           if test "$with_gnu_ld" = no; then
11395             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'
11396           else
11397             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'
11398           fi
11399         fi
11400         link_all_deplibs_CXX=yes
11401         ;;
11402     esac
11403     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11404     hardcode_libdir_separator_CXX=:
11405     ;;
11406   linux* | k*bsd*-gnu)
11407     case $cc_basename in
11408       KCC*)
11409         # Kuck and Associates, Inc. (KAI) C++ Compiler
11410
11411         # KCC will only create a shared library if the output file
11412         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11413         # to its proper name (with version) after linking.
11414         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'
11415         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'
11416         # Commands to make compiler produce verbose output that lists
11417         # what "hidden" libraries, object files and flags are used when
11418         # linking a shared library.
11419         #
11420         # There doesn't appear to be a way to prevent this compiler from
11421         # explicitly linking system object files so we need to strip them
11422         # from the output so that they don't get included in the library
11423         # dependencies.
11424         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'
11425
11426         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11427         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11428
11429         # Archives containing C++ object files must be created using
11430         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11431         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11432         ;;
11433       icpc*)
11434         # Intel C++
11435         with_gnu_ld=yes
11436         # version 8.0 and above of icpc choke on multiply defined symbols
11437         # if we add $predep_objects and $postdep_objects, however 7.1 and
11438         # earlier do not add the objects themselves.
11439         case `$CC -V 2>&1` in
11440         *"Version 7."*)
11441           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11442           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'
11443           ;;
11444         *)  # Version 8.0 or newer
11445           tmp_idyn=
11446           case $host_cpu in
11447             ia64*) tmp_idyn=' -i_dynamic';;
11448           esac
11449           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11450           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'
11451           ;;
11452         esac
11453         archive_cmds_need_lc_CXX=no
11454         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11455         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11456         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11457         ;;
11458       pgCC*)
11459         # Portland Group C++ compiler
11460         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11461         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'
11462
11463         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11464         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11465         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'
11466         ;;
11467       cxx*)
11468         # Compaq C++
11469         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11470         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'
11471
11472         runpath_var=LD_RUN_PATH
11473         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11474         hardcode_libdir_separator_CXX=:
11475
11476         # Commands to make compiler produce verbose output that lists
11477         # what "hidden" libraries, object files and flags are used when
11478         # linking a shared library.
11479         #
11480         # There doesn't appear to be a way to prevent this compiler from
11481         # explicitly linking system object files so we need to strip them
11482         # from the output so that they don't get included in the library
11483         # dependencies.
11484         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'
11485         ;;
11486     esac
11487     ;;
11488   lynxos*)
11489     # FIXME: insert proper C++ library support
11490     ld_shlibs_CXX=no
11491     ;;
11492   m88k*)
11493     # FIXME: insert proper C++ library support
11494     ld_shlibs_CXX=no
11495     ;;
11496   mvs*)
11497     case $cc_basename in
11498       cxx*)
11499         # FIXME: insert proper C++ library support
11500         ld_shlibs_CXX=no
11501         ;;
11502       *)
11503         # FIXME: insert proper C++ library support
11504         ld_shlibs_CXX=no
11505         ;;
11506     esac
11507     ;;
11508   netbsd* | netbsdelf*-gnu)
11509     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11510       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11511       wlarc=
11512       hardcode_libdir_flag_spec_CXX='-R$libdir'
11513       hardcode_direct_CXX=yes
11514       hardcode_shlibpath_var_CXX=no
11515     fi
11516     # Workaround some broken pre-1.5 toolchains
11517     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11518     ;;
11519   openbsd2*)
11520     # C++ shared libraries are fairly broken
11521     ld_shlibs_CXX=no
11522     ;;
11523   openbsd*)
11524     hardcode_direct_CXX=yes
11525     hardcode_shlibpath_var_CXX=no
11526     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11527     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11528     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11529       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11530       export_dynamic_flag_spec_CXX='${wl}-E'
11531       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11532     fi
11533     output_verbose_link_cmd='echo'
11534     ;;
11535   osf3*)
11536     case $cc_basename in
11537       KCC*)
11538         # Kuck and Associates, Inc. (KAI) C++ Compiler
11539
11540         # KCC will only create a shared library if the output file
11541         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11542         # to its proper name (with version) after linking.
11543         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'
11544
11545         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11546         hardcode_libdir_separator_CXX=:
11547
11548         # Archives containing C++ object files must be created using
11549         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11550         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11551
11552         ;;
11553       RCC*)
11554         # Rational C++ 2.4.1
11555         # FIXME: insert proper C++ library support
11556         ld_shlibs_CXX=no
11557         ;;
11558       cxx*)
11559         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11560         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'
11561
11562         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11563         hardcode_libdir_separator_CXX=:
11564
11565         # Commands to make compiler produce verbose output that lists
11566         # what "hidden" libraries, object files and flags are used when
11567         # linking a shared library.
11568         #
11569         # There doesn't appear to be a way to prevent this compiler from
11570         # explicitly linking system object files so we need to strip them
11571         # from the output so that they don't get included in the library
11572         # dependencies.
11573         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'
11574         ;;
11575       *)
11576         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11577           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11578           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'
11579
11580           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11581           hardcode_libdir_separator_CXX=:
11582
11583           # Commands to make compiler produce verbose output that lists
11584           # what "hidden" libraries, object files and flags are used when
11585           # linking a shared library.
11586           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11587
11588         else
11589           # FIXME: insert proper C++ library support
11590           ld_shlibs_CXX=no
11591         fi
11592         ;;
11593     esac
11594     ;;
11595   osf4* | osf5*)
11596     case $cc_basename in
11597       KCC*)
11598         # Kuck and Associates, Inc. (KAI) C++ Compiler
11599
11600         # KCC will only create a shared library if the output file
11601         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11602         # to its proper name (with version) after linking.
11603         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'
11604
11605         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11606         hardcode_libdir_separator_CXX=:
11607
11608         # Archives containing C++ object files must be created using
11609         # the KAI C++ compiler.
11610         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11611         ;;
11612       RCC*)
11613         # Rational C++ 2.4.1
11614         # FIXME: insert proper C++ library support
11615         ld_shlibs_CXX=no
11616         ;;
11617       cxx*)
11618         allow_undefined_flag_CXX=' -expect_unresolved \*'
11619         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'
11620         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11621           echo "-hidden">> $lib.exp~
11622           $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~
11623           $rm $lib.exp'
11624
11625         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11626         hardcode_libdir_separator_CXX=:
11627
11628         # Commands to make compiler produce verbose output that lists
11629         # what "hidden" libraries, object files and flags are used when
11630         # linking a shared library.
11631         #
11632         # There doesn't appear to be a way to prevent this compiler from
11633         # explicitly linking system object files so we need to strip them
11634         # from the output so that they don't get included in the library
11635         # dependencies.
11636         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'
11637         ;;
11638       *)
11639         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11640           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11641          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'
11642
11643           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11644           hardcode_libdir_separator_CXX=:
11645
11646           # Commands to make compiler produce verbose output that lists
11647           # what "hidden" libraries, object files and flags are used when
11648           # linking a shared library.
11649           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11650
11651         else
11652           # FIXME: insert proper C++ library support
11653           ld_shlibs_CXX=no
11654         fi
11655         ;;
11656     esac
11657     ;;
11658   psos*)
11659     # FIXME: insert proper C++ library support
11660     ld_shlibs_CXX=no
11661     ;;
11662   sunos4*)
11663     case $cc_basename in
11664       CC*)
11665         # Sun C++ 4.x
11666         # FIXME: insert proper C++ library support
11667         ld_shlibs_CXX=no
11668         ;;
11669       lcc*)
11670         # Lucid
11671         # FIXME: insert proper C++ library support
11672         ld_shlibs_CXX=no
11673         ;;
11674       *)
11675         # FIXME: insert proper C++ library support
11676         ld_shlibs_CXX=no
11677         ;;
11678     esac
11679     ;;
11680   solaris*)
11681     case $cc_basename in
11682       CC*)
11683         # Sun C++ 4.2, 5.x and Centerline C++
11684         archive_cmds_need_lc_CXX=yes
11685         no_undefined_flag_CXX=' -zdefs'
11686         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11687         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11688         $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'
11689
11690         hardcode_libdir_flag_spec_CXX='-R$libdir'
11691         hardcode_shlibpath_var_CXX=no
11692         case $host_os in
11693           solaris2.[0-5] | solaris2.[0-5].*) ;;
11694           *)
11695             # The C++ compiler is used as linker so we must use $wl
11696             # flag to pass the commands to the underlying system
11697             # linker. We must also pass each convience library through
11698             # to the system linker between allextract/defaultextract.
11699             # The C++ compiler will combine linker options so we
11700             # cannot just pass the convience library names through
11701             # without $wl.
11702             # Supported since Solaris 2.6 (maybe 2.5.1?)
11703             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11704             ;;
11705         esac
11706         link_all_deplibs_CXX=yes
11707
11708         output_verbose_link_cmd='echo'
11709
11710         # Archives containing C++ object files must be created using
11711         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11712         # necessary to make sure instantiated templates are included
11713         # in the archive.
11714         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11715         ;;
11716       gcx*)
11717         # Green Hills C++ Compiler
11718         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11719
11720         # The C++ compiler must be used to create the archive.
11721         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11722         ;;
11723       *)
11724         # GNU C++ compiler with Solaris linker
11725         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11726           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11727           if $CC --version | grep -v '^2\.7' > /dev/null; then
11728             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11729             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11730                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11731
11732             # Commands to make compiler produce verbose output that lists
11733             # what "hidden" libraries, object files and flags are used when
11734             # linking a shared library.
11735             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11736           else
11737             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11738             # platform.
11739             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11740             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11741                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11742
11743             # Commands to make compiler produce verbose output that lists
11744             # what "hidden" libraries, object files and flags are used when
11745             # linking a shared library.
11746             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11747           fi
11748
11749           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11750         fi
11751         ;;
11752     esac
11753     ;;
11754   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11755     no_undefined_flag_CXX='${wl}-z,text'
11756     archive_cmds_need_lc_CXX=no
11757     hardcode_shlibpath_var_CXX=no
11758     runpath_var='LD_RUN_PATH'
11759
11760     case $cc_basename in
11761       CC*)
11762         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11763         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11764         ;;
11765       *)
11766         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11767         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11768         ;;
11769     esac
11770     ;;
11771   sysv5* | sco3.2v5* | sco5v6*)
11772     # Note: We can NOT use -z defs as we might desire, because we do not
11773     # link with -lc, and that would cause any symbols used from libc to
11774     # always be unresolved, which means just about no library would
11775     # ever link correctly.  If we're not using GNU ld we use -z text
11776     # though, which does catch some bad symbols but isn't as heavy-handed
11777     # as -z defs.
11778     # For security reasons, it is highly recommended that you always
11779     # use absolute paths for naming shared libraries, and exclude the
11780     # DT_RUNPATH tag from executables and libraries.  But doing so
11781     # requires that you compile everything twice, which is a pain.
11782     # So that behaviour is only enabled if SCOABSPATH is set to a
11783     # non-empty value in the environment.  Most likely only useful for
11784     # creating official distributions of packages.
11785     # This is a hack until libtool officially supports absolute path
11786     # names for shared libraries.
11787     no_undefined_flag_CXX='${wl}-z,text'
11788     allow_undefined_flag_CXX='${wl}-z,nodefs'
11789     archive_cmds_need_lc_CXX=no
11790     hardcode_shlibpath_var_CXX=no
11791     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11792     hardcode_libdir_separator_CXX=':'
11793     link_all_deplibs_CXX=yes
11794     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11795     runpath_var='LD_RUN_PATH'
11796
11797     case $cc_basename in
11798       CC*)
11799         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11800         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11801         ;;
11802       *)
11803         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11804         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11805         ;;
11806     esac
11807     ;;
11808   tandem*)
11809     case $cc_basename in
11810       NCC*)
11811         # NonStop-UX NCC 3.20
11812         # FIXME: insert proper C++ library support
11813         ld_shlibs_CXX=no
11814         ;;
11815       *)
11816         # FIXME: insert proper C++ library support
11817         ld_shlibs_CXX=no
11818         ;;
11819     esac
11820     ;;
11821   vxworks*)
11822     # FIXME: insert proper C++ library support
11823     ld_shlibs_CXX=no
11824     ;;
11825   *)
11826     # FIXME: insert proper C++ library support
11827     ld_shlibs_CXX=no
11828     ;;
11829 esac
11830 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11831 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11832 test "$ld_shlibs_CXX" = no && can_build_shared=no
11833
11834 GCC_CXX="$GXX"
11835 LD_CXX="$LD"
11836
11837
11838 cat > conftest.$ac_ext <<EOF
11839 class Foo
11840 {
11841 public:
11842   Foo (void) { a = 0; }
11843 private:
11844   int a;
11845 };
11846 EOF
11847
11848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11849   (eval $ac_compile) 2>&5
11850   ac_status=$?
11851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852   (exit $ac_status); }; then
11853   # Parse the compiler output and extract the necessary
11854   # objects, libraries and library flags.
11855
11856   # Sentinel used to keep track of whether or not we are before
11857   # the conftest object file.
11858   pre_test_object_deps_done=no
11859
11860   # The `*' in the case matches for architectures that use `case' in
11861   # $output_verbose_cmd can trigger glob expansion during the loop
11862   # eval without this substitution.
11863   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11864
11865   for p in `eval $output_verbose_link_cmd`; do
11866     case $p in
11867
11868     -L* | -R* | -l*)
11869        # Some compilers place space between "-{L,R}" and the path.
11870        # Remove the space.
11871        if test $p = "-L" \
11872           || test $p = "-R"; then
11873          prev=$p
11874          continue
11875        else
11876          prev=
11877        fi
11878
11879        if test "$pre_test_object_deps_done" = no; then
11880          case $p in
11881          -L* | -R*)
11882            # Internal compiler library paths should come after those
11883            # provided the user.  The postdeps already come after the
11884            # user supplied libs so there is no need to process them.
11885            if test -z "$compiler_lib_search_path_CXX"; then
11886              compiler_lib_search_path_CXX="${prev}${p}"
11887            else
11888              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11889            fi
11890            ;;
11891          # The "-l" case would never come before the object being
11892          # linked, so don't bother handling this case.
11893          esac
11894        else
11895          if test -z "$postdeps_CXX"; then
11896            postdeps_CXX="${prev}${p}"
11897          else
11898            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11899          fi
11900        fi
11901        ;;
11902
11903     *.$objext)
11904        # This assumes that the test object file only shows up
11905        # once in the compiler output.
11906        if test "$p" = "conftest.$objext"; then
11907          pre_test_object_deps_done=yes
11908          continue
11909        fi
11910
11911        if test "$pre_test_object_deps_done" = no; then
11912          if test -z "$predep_objects_CXX"; then
11913            predep_objects_CXX="$p"
11914          else
11915            predep_objects_CXX="$predep_objects_CXX $p"
11916          fi
11917        else
11918          if test -z "$postdep_objects_CXX"; then
11919            postdep_objects_CXX="$p"
11920          else
11921            postdep_objects_CXX="$postdep_objects_CXX $p"
11922          fi
11923        fi
11924        ;;
11925
11926     *) ;; # Ignore the rest.
11927
11928     esac
11929   done
11930
11931   # Clean up.
11932   rm -f a.out a.exe
11933 else
11934   echo "libtool.m4: error: problem compiling CXX test program"
11935 fi
11936
11937 $rm -f confest.$objext
11938
11939 # PORTME: override above test on systems where it is broken
11940 case $host_os in
11941 interix3*)
11942   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11943   # hack all around it, let's just trust "g++" to DTRT.
11944   predep_objects_CXX=
11945   postdep_objects_CXX=
11946   postdeps_CXX=
11947   ;;
11948
11949 solaris*)
11950   case $cc_basename in
11951   CC*)
11952     # Adding this requires a known-good setup of shared libraries for
11953     # Sun compiler versions before 5.6, else PIC objects from an old
11954     # archive will be linked into the output, leading to subtle bugs.
11955     postdeps_CXX='-lCstd -lCrun'
11956     ;;
11957   esac
11958   ;;
11959 esac
11960
11961
11962 case " $postdeps_CXX " in
11963 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11964 esac
11965
11966 lt_prog_compiler_wl_CXX=
11967 lt_prog_compiler_pic_CXX=
11968 lt_prog_compiler_static_CXX=
11969
11970 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11971 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11972
11973   # C++ specific cases for pic, static, wl, etc.
11974   if test "$GXX" = yes; then
11975     lt_prog_compiler_wl_CXX='-Wl,'
11976     lt_prog_compiler_static_CXX='-static'
11977
11978     case $host_os in
11979     aix*)
11980       # All AIX code is PIC.
11981       if test "$host_cpu" = ia64; then
11982         # AIX 5 now supports IA64 processor
11983         lt_prog_compiler_static_CXX='-Bstatic'
11984       fi
11985       ;;
11986     amigaos*)
11987       # FIXME: we need at least 68020 code to build shared libraries, but
11988       # adding the `-m68020' flag to GCC prevents building anything better,
11989       # like `-m68040'.
11990       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11991       ;;
11992     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11993       # PIC is the default for these OSes.
11994       ;;
11995     mingw* | os2* | pw32*)
11996       # This hack is so that the source file can tell whether it is being
11997       # built for inclusion in a dll (and should export symbols for example).
11998       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11999       ;;
12000     darwin* | rhapsody*)
12001       # PIC is the default on this platform
12002       # Common symbols not allowed in MH_DYLIB files
12003       lt_prog_compiler_pic_CXX='-fno-common'
12004       ;;
12005     *djgpp*)
12006       # DJGPP does not support shared libraries at all
12007       lt_prog_compiler_pic_CXX=
12008       ;;
12009     interix3*)
12010       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12011       # Instead, we relocate shared libraries at runtime.
12012       ;;
12013     sysv4*MP*)
12014       if test -d /usr/nec; then
12015         lt_prog_compiler_pic_CXX=-Kconform_pic
12016       fi
12017       ;;
12018     hpux*)
12019       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12020       # not for PA HP-UX.
12021       case $host_cpu in
12022       hppa*64*|ia64*)
12023         ;;
12024       *)
12025         lt_prog_compiler_pic_CXX='-fPIC'
12026         ;;
12027       esac
12028       ;;
12029     *)
12030       lt_prog_compiler_pic_CXX='-fPIC'
12031       ;;
12032     esac
12033   else
12034     case $host_os in
12035       aix4* | aix5*)
12036         # All AIX code is PIC.
12037         if test "$host_cpu" = ia64; then
12038           # AIX 5 now supports IA64 processor
12039           lt_prog_compiler_static_CXX='-Bstatic'
12040         else
12041           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12042         fi
12043         ;;
12044       chorus*)
12045         case $cc_basename in
12046         cxch68*)
12047           # Green Hills C++ Compiler
12048           # _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"
12049           ;;
12050         esac
12051         ;;
12052        darwin*)
12053          # PIC is the default on this platform
12054          # Common symbols not allowed in MH_DYLIB files
12055          case $cc_basename in
12056            xlc*)
12057            lt_prog_compiler_pic_CXX='-qnocommon'
12058            lt_prog_compiler_wl_CXX='-Wl,'
12059            ;;
12060          esac
12061        ;;
12062       dgux*)
12063         case $cc_basename in
12064           ec++*)
12065             lt_prog_compiler_pic_CXX='-KPIC'
12066             ;;
12067           ghcx*)
12068             # Green Hills C++ Compiler
12069             lt_prog_compiler_pic_CXX='-pic'
12070             ;;
12071           *)
12072             ;;
12073         esac
12074         ;;
12075       freebsd* | dragonfly*)
12076         # FreeBSD uses GNU C++
12077         ;;
12078       hpux9* | hpux10* | hpux11*)
12079         case $cc_basename in
12080           CC*)
12081             lt_prog_compiler_wl_CXX='-Wl,'
12082             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12083             if test "$host_cpu" != ia64; then
12084               lt_prog_compiler_pic_CXX='+Z'
12085             fi
12086             ;;
12087           aCC*)
12088             lt_prog_compiler_wl_CXX='-Wl,'
12089             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12090             case $host_cpu in
12091             hppa*64*|ia64*)
12092               # +Z the default
12093               ;;
12094             *)
12095               lt_prog_compiler_pic_CXX='+Z'
12096               ;;
12097             esac
12098             ;;
12099           *)
12100             ;;
12101         esac
12102         ;;
12103       interix*)
12104         # This is c89, which is MS Visual C++ (no shared libs)
12105         # Anyone wants to do a port?
12106         ;;
12107       irix5* | irix6* | nonstopux*)
12108         case $cc_basename in
12109           CC*)
12110             lt_prog_compiler_wl_CXX='-Wl,'
12111             lt_prog_compiler_static_CXX='-non_shared'
12112             # CC pic flag -KPIC is the default.
12113             ;;
12114           *)
12115             ;;
12116         esac
12117         ;;
12118       linux* | k*bsd*-gnu)
12119         case $cc_basename in
12120           KCC*)
12121             # KAI C++ Compiler
12122             lt_prog_compiler_wl_CXX='--backend -Wl,'
12123             lt_prog_compiler_pic_CXX='-fPIC'
12124             ;;
12125           icpc* | ecpc*)
12126             # Intel C++
12127             lt_prog_compiler_wl_CXX='-Wl,'
12128             lt_prog_compiler_pic_CXX='-KPIC'
12129             lt_prog_compiler_static_CXX='-static'
12130             ;;
12131           pgCC*)
12132             # Portland Group C++ compiler.
12133             lt_prog_compiler_wl_CXX='-Wl,'
12134             lt_prog_compiler_pic_CXX='-fpic'
12135             lt_prog_compiler_static_CXX='-Bstatic'
12136             ;;
12137           cxx*)
12138             # Compaq C++
12139             # Make sure the PIC flag is empty.  It appears that all Alpha
12140             # Linux and Compaq Tru64 Unix objects are PIC.
12141             lt_prog_compiler_pic_CXX=
12142             lt_prog_compiler_static_CXX='-non_shared'
12143             ;;
12144           *)
12145             ;;
12146         esac
12147         ;;
12148       lynxos*)
12149         ;;
12150       m88k*)
12151         ;;
12152       mvs*)
12153         case $cc_basename in
12154           cxx*)
12155             lt_prog_compiler_pic_CXX='-W c,exportall'
12156             ;;
12157           *)
12158             ;;
12159         esac
12160         ;;
12161       netbsd* | netbsdelf*-gnu)
12162         ;;
12163       osf3* | osf4* | osf5*)
12164         case $cc_basename in
12165           KCC*)
12166             lt_prog_compiler_wl_CXX='--backend -Wl,'
12167             ;;
12168           RCC*)
12169             # Rational C++ 2.4.1
12170             lt_prog_compiler_pic_CXX='-pic'
12171             ;;
12172           cxx*)
12173             # Digital/Compaq C++
12174             lt_prog_compiler_wl_CXX='-Wl,'
12175             # Make sure the PIC flag is empty.  It appears that all Alpha
12176             # Linux and Compaq Tru64 Unix objects are PIC.
12177             lt_prog_compiler_pic_CXX=
12178             lt_prog_compiler_static_CXX='-non_shared'
12179             ;;
12180           *)
12181             ;;
12182         esac
12183         ;;
12184       psos*)
12185         ;;
12186       solaris*)
12187         case $cc_basename in
12188           CC*)
12189             # Sun C++ 4.2, 5.x and Centerline C++
12190             lt_prog_compiler_pic_CXX='-KPIC'
12191             lt_prog_compiler_static_CXX='-Bstatic'
12192             lt_prog_compiler_wl_CXX='-Qoption ld '
12193             ;;
12194           gcx*)
12195             # Green Hills C++ Compiler
12196             lt_prog_compiler_pic_CXX='-PIC'
12197             ;;
12198           *)
12199             ;;
12200         esac
12201         ;;
12202       sunos4*)
12203         case $cc_basename in
12204           CC*)
12205             # Sun C++ 4.x
12206             lt_prog_compiler_pic_CXX='-pic'
12207             lt_prog_compiler_static_CXX='-Bstatic'
12208             ;;
12209           lcc*)
12210             # Lucid
12211             lt_prog_compiler_pic_CXX='-pic'
12212             ;;
12213           *)
12214             ;;
12215         esac
12216         ;;
12217       tandem*)
12218         case $cc_basename in
12219           NCC*)
12220             # NonStop-UX NCC 3.20
12221             lt_prog_compiler_pic_CXX='-KPIC'
12222             ;;
12223           *)
12224             ;;
12225         esac
12226         ;;
12227       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12228         case $cc_basename in
12229           CC*)
12230             lt_prog_compiler_wl_CXX='-Wl,'
12231             lt_prog_compiler_pic_CXX='-KPIC'
12232             lt_prog_compiler_static_CXX='-Bstatic'
12233             ;;
12234         esac
12235         ;;
12236       vxworks*)
12237         ;;
12238       *)
12239         lt_prog_compiler_can_build_shared_CXX=no
12240         ;;
12241     esac
12242   fi
12243
12244 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12245 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12246
12247 #
12248 # Check to make sure the PIC flag actually works.
12249 #
12250 if test -n "$lt_prog_compiler_pic_CXX"; then
12251
12252 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12253 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12254 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12255   echo $ECHO_N "(cached) $ECHO_C" >&6
12256 else
12257   lt_prog_compiler_pic_works_CXX=no
12258   ac_outfile=conftest.$ac_objext
12259    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12260    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12261    # Insert the option either (1) after the last *FLAGS variable, or
12262    # (2) before a word containing "conftest.", or (3) at the end.
12263    # Note that $ac_compile itself does not contain backslashes and begins
12264    # with a dollar sign (not a hyphen), so the echo should work correctly.
12265    # The option is referenced via a variable to avoid confusing sed.
12266    lt_compile=`echo "$ac_compile" | $SED \
12267    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12268    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12269    -e 's:$: $lt_compiler_flag:'`
12270    (eval echo "\"\$as_me:12270: $lt_compile\"" >&5)
12271    (eval "$lt_compile" 2>conftest.err)
12272    ac_status=$?
12273    cat conftest.err >&5
12274    echo "$as_me:12274: \$? = $ac_status" >&5
12275    if (exit $ac_status) && test -s "$ac_outfile"; then
12276      # The compiler can only warn and ignore the option if not recognized
12277      # So say no if there are warnings other than the usual output.
12278      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12279      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12280      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12281        lt_prog_compiler_pic_works_CXX=yes
12282      fi
12283    fi
12284    $rm conftest*
12285
12286 fi
12287 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12288 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12289
12290 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12291     case $lt_prog_compiler_pic_CXX in
12292      "" | " "*) ;;
12293      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12294      esac
12295 else
12296     lt_prog_compiler_pic_CXX=
12297      lt_prog_compiler_can_build_shared_CXX=no
12298 fi
12299
12300 fi
12301 case $host_os in
12302   # For platforms which do not support PIC, -DPIC is meaningless:
12303   *djgpp*)
12304     lt_prog_compiler_pic_CXX=
12305     ;;
12306   *)
12307     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12308     ;;
12309 esac
12310
12311 #
12312 # Check to make sure the static flag actually works.
12313 #
12314 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12315 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12316 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12317 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12318   echo $ECHO_N "(cached) $ECHO_C" >&6
12319 else
12320   lt_prog_compiler_static_works_CXX=no
12321    save_LDFLAGS="$LDFLAGS"
12322    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12323    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12324    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12325      # The linker can only warn and ignore the option if not recognized
12326      # So say no if there are warnings
12327      if test -s conftest.err; then
12328        # Append any errors to the config.log.
12329        cat conftest.err 1>&5
12330        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12331        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12332        if diff conftest.exp conftest.er2 >/dev/null; then
12333          lt_prog_compiler_static_works_CXX=yes
12334        fi
12335      else
12336        lt_prog_compiler_static_works_CXX=yes
12337      fi
12338    fi
12339    $rm conftest*
12340    LDFLAGS="$save_LDFLAGS"
12341
12342 fi
12343 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12344 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12345
12346 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12347     :
12348 else
12349     lt_prog_compiler_static_CXX=
12350 fi
12351
12352
12353 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12354 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12355 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12356   echo $ECHO_N "(cached) $ECHO_C" >&6
12357 else
12358   lt_cv_prog_compiler_c_o_CXX=no
12359    $rm -r conftest 2>/dev/null
12360    mkdir conftest
12361    cd conftest
12362    mkdir out
12363    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12364
12365    lt_compiler_flag="-o out/conftest2.$ac_objext"
12366    # Insert the option either (1) after the last *FLAGS variable, or
12367    # (2) before a word containing "conftest.", or (3) at the end.
12368    # Note that $ac_compile itself does not contain backslashes and begins
12369    # with a dollar sign (not a hyphen), so the echo should work correctly.
12370    lt_compile=`echo "$ac_compile" | $SED \
12371    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12372    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12373    -e 's:$: $lt_compiler_flag:'`
12374    (eval echo "\"\$as_me:12374: $lt_compile\"" >&5)
12375    (eval "$lt_compile" 2>out/conftest.err)
12376    ac_status=$?
12377    cat out/conftest.err >&5
12378    echo "$as_me:12378: \$? = $ac_status" >&5
12379    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12380    then
12381      # The compiler can only warn and ignore the option if not recognized
12382      # So say no if there are warnings
12383      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12384      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12385      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12386        lt_cv_prog_compiler_c_o_CXX=yes
12387      fi
12388    fi
12389    chmod u+w . 2>&5
12390    $rm conftest*
12391    # SGI C++ compiler will create directory out/ii_files/ for
12392    # template instantiation
12393    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12394    $rm out/* && rmdir out
12395    cd ..
12396    rmdir conftest
12397    $rm conftest*
12398
12399 fi
12400 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12401 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12402
12403
12404 hard_links="nottested"
12405 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12406   # do not overwrite the value of need_locks provided by the user
12407   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12408 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12409   hard_links=yes
12410   $rm conftest*
12411   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12412   touch conftest.a
12413   ln conftest.a conftest.b 2>&5 || hard_links=no
12414   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12415   { echo "$as_me:$LINENO: result: $hard_links" >&5
12416 echo "${ECHO_T}$hard_links" >&6; }
12417   if test "$hard_links" = no; then
12418     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12419 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12420     need_locks=warn
12421   fi
12422 else
12423   need_locks=no
12424 fi
12425
12426 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12427 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12428
12429   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12430   case $host_os in
12431   aix4* | aix5*)
12432     # If we're using GNU nm, then we don't want the "-C" option.
12433     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12434     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12435       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'
12436     else
12437       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'
12438     fi
12439     ;;
12440   pw32*)
12441     export_symbols_cmds_CXX="$ltdll_cmds"
12442   ;;
12443   cygwin* | mingw*)
12444     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'
12445   ;;
12446   linux* | k*bsd*-gnu)
12447     link_all_deplibs_CXX=no
12448   ;;
12449   *)
12450     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12451   ;;
12452   esac
12453
12454 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12455 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12456 test "$ld_shlibs_CXX" = no && can_build_shared=no
12457
12458 #
12459 # Do we need to explicitly link libc?
12460 #
12461 case "x$archive_cmds_need_lc_CXX" in
12462 x|xyes)
12463   # Assume -lc should be added
12464   archive_cmds_need_lc_CXX=yes
12465
12466   if test "$enable_shared" = yes && test "$GCC" = yes; then
12467     case $archive_cmds_CXX in
12468     *'~'*)
12469       # FIXME: we may have to deal with multi-command sequences.
12470       ;;
12471     '$CC '*)
12472       # Test whether the compiler implicitly links with -lc since on some
12473       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12474       # to ld, don't add -lc before -lgcc.
12475       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12476 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12477       $rm conftest*
12478       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12479
12480       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12481   (eval $ac_compile) 2>&5
12482   ac_status=$?
12483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484   (exit $ac_status); } 2>conftest.err; then
12485         soname=conftest
12486         lib=conftest
12487         libobjs=conftest.$ac_objext
12488         deplibs=
12489         wl=$lt_prog_compiler_wl_CXX
12490         pic_flag=$lt_prog_compiler_pic_CXX
12491         compiler_flags=-v
12492         linker_flags=-v
12493         verstring=
12494         output_objdir=.
12495         libname=conftest
12496         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12497         allow_undefined_flag_CXX=
12498         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12499   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12500   ac_status=$?
12501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); }
12503         then
12504           archive_cmds_need_lc_CXX=no
12505         else
12506           archive_cmds_need_lc_CXX=yes
12507         fi
12508         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12509       else
12510         cat conftest.err 1>&5
12511       fi
12512       $rm conftest*
12513       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12514 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12515       ;;
12516     esac
12517   fi
12518   ;;
12519 esac
12520
12521 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12522 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12523 library_names_spec=
12524 libname_spec='lib$name'
12525 soname_spec=
12526 shrext_cmds=".so"
12527 postinstall_cmds=
12528 postuninstall_cmds=
12529 finish_cmds=
12530 finish_eval=
12531 shlibpath_var=
12532 shlibpath_overrides_runpath=unknown
12533 version_type=none
12534 dynamic_linker="$host_os ld.so"
12535 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12536 if test "$GCC" = yes; then
12537   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12538   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12539     # if the path contains ";" then we assume it to be the separator
12540     # otherwise default to the standard path separator (i.e. ":") - it is
12541     # assumed that no part of a normal pathname contains ";" but that should
12542     # okay in the real world where ";" in dirpaths is itself problematic.
12543     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12544   else
12545     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12546   fi
12547 else
12548   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12549 fi
12550 need_lib_prefix=unknown
12551 hardcode_into_libs=no
12552
12553 # when you set need_version to no, make sure it does not cause -set_version
12554 # flags to be left without arguments
12555 need_version=unknown
12556
12557 case $host_os in
12558 aix3*)
12559   version_type=linux
12560   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12561   shlibpath_var=LIBPATH
12562
12563   # AIX 3 has no versioning support, so we append a major version to the name.
12564   soname_spec='${libname}${release}${shared_ext}$major'
12565   ;;
12566
12567 aix4* | aix5*)
12568   version_type=linux
12569   need_lib_prefix=no
12570   need_version=no
12571   hardcode_into_libs=yes
12572   if test "$host_cpu" = ia64; then
12573     # AIX 5 supports IA64
12574     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12575     shlibpath_var=LD_LIBRARY_PATH
12576   else
12577     # With GCC up to 2.95.x, collect2 would create an import file
12578     # for dependence libraries.  The import file would start with
12579     # the line `#! .'.  This would cause the generated library to
12580     # depend on `.', always an invalid library.  This was fixed in
12581     # development snapshots of GCC prior to 3.0.
12582     case $host_os in
12583       aix4 | aix4.[01] | aix4.[01].*)
12584       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12585            echo ' yes '
12586            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12587         :
12588       else
12589         can_build_shared=no
12590       fi
12591       ;;
12592     esac
12593     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12594     # soname into executable. Probably we can add versioning support to
12595     # collect2, so additional links can be useful in future.
12596     if test "$aix_use_runtimelinking" = yes; then
12597       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12598       # instead of lib<name>.a to let people know that these are not
12599       # typical AIX shared libraries.
12600       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12601     else
12602       # We preserve .a as extension for shared libraries through AIX4.2
12603       # and later when we are not doing run time linking.
12604       library_names_spec='${libname}${release}.a $libname.a'
12605       soname_spec='${libname}${release}${shared_ext}$major'
12606     fi
12607     shlibpath_var=LIBPATH
12608   fi
12609   ;;
12610
12611 amigaos*)
12612   library_names_spec='$libname.ixlibrary $libname.a'
12613   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12614   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'
12615   ;;
12616
12617 beos*)
12618   library_names_spec='${libname}${shared_ext}'
12619   dynamic_linker="$host_os ld.so"
12620   shlibpath_var=LIBRARY_PATH
12621   ;;
12622
12623 bsdi[45]*)
12624   version_type=linux
12625   need_version=no
12626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12627   soname_spec='${libname}${release}${shared_ext}$major'
12628   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12629   shlibpath_var=LD_LIBRARY_PATH
12630   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12631   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12632   # the default ld.so.conf also contains /usr/contrib/lib and
12633   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12634   # libtool to hard-code these into programs
12635   ;;
12636
12637 cygwin* | mingw* | pw32*)
12638   version_type=windows
12639   shrext_cmds=".dll"
12640   need_version=no
12641   need_lib_prefix=no
12642
12643   case $GCC,$host_os in
12644   yes,cygwin* | yes,mingw* | yes,pw32*)
12645     library_names_spec='$libname.dll.a'
12646     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12647     postinstall_cmds='base_file=`basename \${file}`~
12648       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12649       dldir=$destdir/`dirname \$dlpath`~
12650       test -d \$dldir || mkdir -p \$dldir~
12651       $install_prog $dir/$dlname \$dldir/$dlname~
12652       chmod a+x \$dldir/$dlname'
12653     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12654       dlpath=$dir/\$dldll~
12655        $rm \$dlpath'
12656     shlibpath_overrides_runpath=yes
12657
12658     case $host_os in
12659     cygwin*)
12660       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12661       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12662       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12663       ;;
12664     mingw*)
12665       # MinGW DLLs use traditional 'lib' prefix
12666       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12667       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12668       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12669         # It is most probably a Windows format PATH printed by
12670         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12671         # path with ; separators, and with drive letters. We can handle the
12672         # drive letters (cygwin fileutils understands them), so leave them,
12673         # especially as we might pass files found there to a mingw objdump,
12674         # which wouldn't understand a cygwinified path. Ahh.
12675         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12676       else
12677         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12678       fi
12679       ;;
12680     pw32*)
12681       # pw32 DLLs use 'pw' prefix rather than 'lib'
12682       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12683       ;;
12684     esac
12685     ;;
12686
12687   *)
12688     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12689     ;;
12690   esac
12691   dynamic_linker='Win32 ld.exe'
12692   # FIXME: first we should search . and the directory the executable is in
12693   shlibpath_var=PATH
12694   ;;
12695
12696 darwin* | rhapsody*)
12697   dynamic_linker="$host_os dyld"
12698   version_type=darwin
12699   need_lib_prefix=no
12700   need_version=no
12701   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12702   soname_spec='${libname}${release}${major}$shared_ext'
12703   shlibpath_overrides_runpath=yes
12704   shlibpath_var=DYLD_LIBRARY_PATH
12705   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12706   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12707   if test "$GCC" = yes; then
12708     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12709   else
12710     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12711   fi
12712   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12713   ;;
12714
12715 dgux*)
12716   version_type=linux
12717   need_lib_prefix=no
12718   need_version=no
12719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12720   soname_spec='${libname}${release}${shared_ext}$major'
12721   shlibpath_var=LD_LIBRARY_PATH
12722   ;;
12723
12724 freebsd1*)
12725   dynamic_linker=no
12726   ;;
12727
12728 freebsd* | dragonfly*)
12729   # DragonFly does not have aout.  When/if they implement a new
12730   # versioning mechanism, adjust this.
12731   if test -x /usr/bin/objformat; then
12732     objformat=`/usr/bin/objformat`
12733   else
12734     case $host_os in
12735     freebsd[123]*) objformat=aout ;;
12736     *) objformat=elf ;;
12737     esac
12738   fi
12739   version_type=freebsd-$objformat
12740   case $version_type in
12741     freebsd-elf*)
12742       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12743       need_version=no
12744       need_lib_prefix=no
12745       ;;
12746     freebsd-*)
12747       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12748       need_version=yes
12749       ;;
12750   esac
12751   shlibpath_var=LD_LIBRARY_PATH
12752   case $host_os in
12753   freebsd2*)
12754     shlibpath_overrides_runpath=yes
12755     ;;
12756   freebsd3.[01]* | freebsdelf3.[01]*)
12757     shlibpath_overrides_runpath=yes
12758     hardcode_into_libs=yes
12759     ;;
12760   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12761   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12762     shlibpath_overrides_runpath=no
12763     hardcode_into_libs=yes
12764     ;;
12765   freebsd*) # from 4.6 on
12766     shlibpath_overrides_runpath=yes
12767     hardcode_into_libs=yes
12768     ;;
12769   esac
12770   ;;
12771
12772 gnu*)
12773   version_type=linux
12774   need_lib_prefix=no
12775   need_version=no
12776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12777   soname_spec='${libname}${release}${shared_ext}$major'
12778   shlibpath_var=LD_LIBRARY_PATH
12779   hardcode_into_libs=yes
12780   ;;
12781
12782 hpux9* | hpux10* | hpux11*)
12783   # Give a soname corresponding to the major version so that dld.sl refuses to
12784   # link against other versions.
12785   version_type=sunos
12786   need_lib_prefix=no
12787   need_version=no
12788   case $host_cpu in
12789   ia64*)
12790     shrext_cmds='.so'
12791     hardcode_into_libs=yes
12792     dynamic_linker="$host_os dld.so"
12793     shlibpath_var=LD_LIBRARY_PATH
12794     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12795     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12796     soname_spec='${libname}${release}${shared_ext}$major'
12797     if test "X$HPUX_IA64_MODE" = X32; then
12798       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12799     else
12800       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12801     fi
12802     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12803     ;;
12804    hppa*64*)
12805      shrext_cmds='.sl'
12806      hardcode_into_libs=yes
12807      dynamic_linker="$host_os dld.sl"
12808      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12809      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12810      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12811      soname_spec='${libname}${release}${shared_ext}$major'
12812      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12813      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12814      ;;
12815    *)
12816     shrext_cmds='.sl'
12817     dynamic_linker="$host_os dld.sl"
12818     shlibpath_var=SHLIB_PATH
12819     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12820     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12821     soname_spec='${libname}${release}${shared_ext}$major'
12822     ;;
12823   esac
12824   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12825   postinstall_cmds='chmod 555 $lib'
12826   ;;
12827
12828 interix3*)
12829   version_type=linux
12830   need_lib_prefix=no
12831   need_version=no
12832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12833   soname_spec='${libname}${release}${shared_ext}$major'
12834   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12835   shlibpath_var=LD_LIBRARY_PATH
12836   shlibpath_overrides_runpath=no
12837   hardcode_into_libs=yes
12838   ;;
12839
12840 irix5* | irix6* | nonstopux*)
12841   case $host_os in
12842     nonstopux*) version_type=nonstopux ;;
12843     *)
12844         if test "$lt_cv_prog_gnu_ld" = yes; then
12845                 version_type=linux
12846         else
12847                 version_type=irix
12848         fi ;;
12849   esac
12850   need_lib_prefix=no
12851   need_version=no
12852   soname_spec='${libname}${release}${shared_ext}$major'
12853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12854   case $host_os in
12855   irix5* | nonstopux*)
12856     libsuff= shlibsuff=
12857     ;;
12858   *)
12859     case $LD in # libtool.m4 will add one of these switches to LD
12860     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12861       libsuff= shlibsuff= libmagic=32-bit;;
12862     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12863       libsuff=32 shlibsuff=N32 libmagic=N32;;
12864     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12865       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12866     *) libsuff= shlibsuff= libmagic=never-match;;
12867     esac
12868     ;;
12869   esac
12870   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12871   shlibpath_overrides_runpath=no
12872   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12873   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12874   hardcode_into_libs=yes
12875   ;;
12876
12877 # No shared lib support for Linux oldld, aout, or coff.
12878 linux*oldld* | linux*aout* | linux*coff*)
12879   dynamic_linker=no
12880   ;;
12881
12882 # This must be Linux ELF.
12883 linux* | k*bsd*-gnu)
12884   version_type=linux
12885   need_lib_prefix=no
12886   need_version=no
12887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12888   soname_spec='${libname}${release}${shared_ext}$major'
12889   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12890   shlibpath_var=LD_LIBRARY_PATH
12891   shlibpath_overrides_runpath=no
12892   # This implies no fast_install, which is unacceptable.
12893   # Some rework will be needed to allow for fast_install
12894   # before this can be enabled.
12895   hardcode_into_libs=yes
12896
12897   # Append ld.so.conf contents to the search path
12898   if test -f /etc/ld.so.conf; then
12899     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12900     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12901   fi
12902
12903   # We used to test for /lib/ld.so.1 and disable shared libraries on
12904   # powerpc, because MkLinux only supported shared libraries with the
12905   # GNU dynamic linker.  Since this was broken with cross compilers,
12906   # most powerpc-linux boxes support dynamic linking these days and
12907   # people can always --disable-shared, the test was removed, and we
12908   # assume the GNU/Linux dynamic linker is in use.
12909   dynamic_linker='GNU/Linux ld.so'
12910   ;;
12911
12912 netbsdelf*-gnu)
12913   version_type=linux
12914   need_lib_prefix=no
12915   need_version=no
12916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12917   soname_spec='${libname}${release}${shared_ext}$major'
12918   shlibpath_var=LD_LIBRARY_PATH
12919   shlibpath_overrides_runpath=no
12920   hardcode_into_libs=yes
12921   dynamic_linker='NetBSD ld.elf_so'
12922   ;;
12923
12924 netbsd*)
12925   version_type=sunos
12926   need_lib_prefix=no
12927   need_version=no
12928   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12930     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12931     dynamic_linker='NetBSD (a.out) ld.so'
12932   else
12933     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12934     soname_spec='${libname}${release}${shared_ext}$major'
12935     dynamic_linker='NetBSD ld.elf_so'
12936   fi
12937   shlibpath_var=LD_LIBRARY_PATH
12938   shlibpath_overrides_runpath=yes
12939   hardcode_into_libs=yes
12940   ;;
12941
12942 newsos6)
12943   version_type=linux
12944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12945   shlibpath_var=LD_LIBRARY_PATH
12946   shlibpath_overrides_runpath=yes
12947   ;;
12948
12949 nto-qnx*)
12950   version_type=linux
12951   need_lib_prefix=no
12952   need_version=no
12953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12954   soname_spec='${libname}${release}${shared_ext}$major'
12955   shlibpath_var=LD_LIBRARY_PATH
12956   shlibpath_overrides_runpath=yes
12957   ;;
12958
12959 openbsd*)
12960   version_type=sunos
12961   sys_lib_dlsearch_path_spec="/usr/lib"
12962   need_lib_prefix=no
12963   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12964   case $host_os in
12965     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12966     *)                         need_version=no  ;;
12967   esac
12968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12969   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12970   shlibpath_var=LD_LIBRARY_PATH
12971   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12972     case $host_os in
12973       openbsd2.[89] | openbsd2.[89].*)
12974         shlibpath_overrides_runpath=no
12975         ;;
12976       *)
12977         shlibpath_overrides_runpath=yes
12978         ;;
12979       esac
12980   else
12981     shlibpath_overrides_runpath=yes
12982   fi
12983   ;;
12984
12985 os2*)
12986   libname_spec='$name'
12987   shrext_cmds=".dll"
12988   need_lib_prefix=no
12989   library_names_spec='$libname${shared_ext} $libname.a'
12990   dynamic_linker='OS/2 ld.exe'
12991   shlibpath_var=LIBPATH
12992   ;;
12993
12994 osf3* | osf4* | osf5*)
12995   version_type=osf
12996   need_lib_prefix=no
12997   need_version=no
12998   soname_spec='${libname}${release}${shared_ext}$major'
12999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13000   shlibpath_var=LD_LIBRARY_PATH
13001   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13002   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13003   ;;
13004
13005 solaris*)
13006   version_type=linux
13007   need_lib_prefix=no
13008   need_version=no
13009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13010   soname_spec='${libname}${release}${shared_ext}$major'
13011   shlibpath_var=LD_LIBRARY_PATH
13012   shlibpath_overrides_runpath=yes
13013   hardcode_into_libs=yes
13014   # ldd complains unless libraries are executable
13015   postinstall_cmds='chmod +x $lib'
13016   ;;
13017
13018 sunos4*)
13019   version_type=sunos
13020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13021   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13022   shlibpath_var=LD_LIBRARY_PATH
13023   shlibpath_overrides_runpath=yes
13024   if test "$with_gnu_ld" = yes; then
13025     need_lib_prefix=no
13026   fi
13027   need_version=yes
13028   ;;
13029
13030 sysv4 | sysv4.3*)
13031   version_type=linux
13032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13033   soname_spec='${libname}${release}${shared_ext}$major'
13034   shlibpath_var=LD_LIBRARY_PATH
13035   case $host_vendor in
13036     sni)
13037       shlibpath_overrides_runpath=no
13038       need_lib_prefix=no
13039       export_dynamic_flag_spec='${wl}-Blargedynsym'
13040       runpath_var=LD_RUN_PATH
13041       ;;
13042     siemens)
13043       need_lib_prefix=no
13044       ;;
13045     motorola)
13046       need_lib_prefix=no
13047       need_version=no
13048       shlibpath_overrides_runpath=no
13049       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13050       ;;
13051   esac
13052   ;;
13053
13054 sysv4*MP*)
13055   if test -d /usr/nec ;then
13056     version_type=linux
13057     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13058     soname_spec='$libname${shared_ext}.$major'
13059     shlibpath_var=LD_LIBRARY_PATH
13060   fi
13061   ;;
13062
13063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13064   version_type=freebsd-elf
13065   need_lib_prefix=no
13066   need_version=no
13067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13068   soname_spec='${libname}${release}${shared_ext}$major'
13069   shlibpath_var=LD_LIBRARY_PATH
13070   hardcode_into_libs=yes
13071   if test "$with_gnu_ld" = yes; then
13072     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13073     shlibpath_overrides_runpath=no
13074   else
13075     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13076     shlibpath_overrides_runpath=yes
13077     case $host_os in
13078       sco3.2v5*)
13079         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13080         ;;
13081     esac
13082   fi
13083   sys_lib_dlsearch_path_spec='/usr/lib'
13084   ;;
13085
13086 uts4*)
13087   version_type=linux
13088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13089   soname_spec='${libname}${release}${shared_ext}$major'
13090   shlibpath_var=LD_LIBRARY_PATH
13091   ;;
13092
13093 *)
13094   dynamic_linker=no
13095   ;;
13096 esac
13097 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13098 echo "${ECHO_T}$dynamic_linker" >&6; }
13099 test "$dynamic_linker" = no && can_build_shared=no
13100
13101 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13102 if test "$GCC" = yes; then
13103   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13104 fi
13105
13106 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13107 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13108 hardcode_action_CXX=
13109 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13110    test -n "$runpath_var_CXX" || \
13111    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13112
13113   # We can hardcode non-existant directories.
13114   if test "$hardcode_direct_CXX" != no &&
13115      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13116      # have to relink, otherwise we might link with an installed library
13117      # when we should be linking with a yet-to-be-installed one
13118      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13119      test "$hardcode_minus_L_CXX" != no; then
13120     # Linking always hardcodes the temporary library directory.
13121     hardcode_action_CXX=relink
13122   else
13123     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13124     hardcode_action_CXX=immediate
13125   fi
13126 else
13127   # We cannot hardcode anything, or else we can only hardcode existing
13128   # directories.
13129   hardcode_action_CXX=unsupported
13130 fi
13131 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13132 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13133
13134 if test "$hardcode_action_CXX" = relink; then
13135   # Fast installation is not supported
13136   enable_fast_install=no
13137 elif test "$shlibpath_overrides_runpath" = yes ||
13138      test "$enable_shared" = no; then
13139   # Fast installation is not necessary
13140   enable_fast_install=needless
13141 fi
13142
13143
13144 # The else clause should only fire when bootstrapping the
13145 # libtool distribution, otherwise you forgot to ship ltmain.sh
13146 # with your package, and you will get complaints that there are
13147 # no rules to generate ltmain.sh.
13148 if test -f "$ltmain"; then
13149   # See if we are running on zsh, and set the options which allow our commands through
13150   # without removal of \ escapes.
13151   if test -n "${ZSH_VERSION+set}" ; then
13152     setopt NO_GLOB_SUBST
13153   fi
13154   # Now quote all the things that may contain metacharacters while being
13155   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13156   # variables and quote the copies for generation of the libtool script.
13157   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13158     SED SHELL STRIP \
13159     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13160     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13161     deplibs_check_method reload_flag reload_cmds need_locks \
13162     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13163     lt_cv_sys_global_symbol_to_c_name_address \
13164     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13165     old_postinstall_cmds old_postuninstall_cmds \
13166     compiler_CXX \
13167     CC_CXX \
13168     LD_CXX \
13169     lt_prog_compiler_wl_CXX \
13170     lt_prog_compiler_pic_CXX \
13171     lt_prog_compiler_static_CXX \
13172     lt_prog_compiler_no_builtin_flag_CXX \
13173     export_dynamic_flag_spec_CXX \
13174     thread_safe_flag_spec_CXX \
13175     whole_archive_flag_spec_CXX \
13176     enable_shared_with_static_runtimes_CXX \
13177     old_archive_cmds_CXX \
13178     old_archive_from_new_cmds_CXX \
13179     predep_objects_CXX \
13180     postdep_objects_CXX \
13181     predeps_CXX \
13182     postdeps_CXX \
13183     compiler_lib_search_path_CXX \
13184     archive_cmds_CXX \
13185     archive_expsym_cmds_CXX \
13186     postinstall_cmds_CXX \
13187     postuninstall_cmds_CXX \
13188     old_archive_from_expsyms_cmds_CXX \
13189     allow_undefined_flag_CXX \
13190     no_undefined_flag_CXX \
13191     export_symbols_cmds_CXX \
13192     hardcode_libdir_flag_spec_CXX \
13193     hardcode_libdir_flag_spec_ld_CXX \
13194     hardcode_libdir_separator_CXX \
13195     hardcode_automatic_CXX \
13196     module_cmds_CXX \
13197     module_expsym_cmds_CXX \
13198     lt_cv_prog_compiler_c_o_CXX \
13199     exclude_expsyms_CXX \
13200     include_expsyms_CXX; do
13201
13202     case $var in
13203     old_archive_cmds_CXX | \
13204     old_archive_from_new_cmds_CXX | \
13205     archive_cmds_CXX | \
13206     archive_expsym_cmds_CXX | \
13207     module_cmds_CXX | \
13208     module_expsym_cmds_CXX | \
13209     old_archive_from_expsyms_cmds_CXX | \
13210     export_symbols_cmds_CXX | \
13211     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13212     postinstall_cmds | postuninstall_cmds | \
13213     old_postinstall_cmds | old_postuninstall_cmds | \
13214     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13215       # Double-quote double-evaled strings.
13216       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13217       ;;
13218     *)
13219       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13220       ;;
13221     esac
13222   done
13223
13224   case $lt_echo in
13225   *'\$0 --fallback-echo"')
13226     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13227     ;;
13228   esac
13229
13230 cfgfile="$ofile"
13231
13232   cat <<__EOF__ >> "$cfgfile"
13233 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13234
13235 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13236
13237 # Shell to use when invoking shell scripts.
13238 SHELL=$lt_SHELL
13239
13240 # Whether or not to build shared libraries.
13241 build_libtool_libs=$enable_shared
13242
13243 # Whether or not to build static libraries.
13244 build_old_libs=$enable_static
13245
13246 # Whether or not to add -lc for building shared libraries.
13247 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13248
13249 # Whether or not to disallow shared libs when runtime libs are static
13250 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13251
13252 # Whether or not to optimize for fast installation.
13253 fast_install=$enable_fast_install
13254
13255 # The host system.
13256 host_alias=$host_alias
13257 host=$host
13258 host_os=$host_os
13259
13260 # The build system.
13261 build_alias=$build_alias
13262 build=$build
13263 build_os=$build_os
13264
13265 # An echo program that does not interpret backslashes.
13266 echo=$lt_echo
13267
13268 # The archiver.
13269 AR=$lt_AR
13270 AR_FLAGS=$lt_AR_FLAGS
13271
13272 # A C compiler.
13273 LTCC=$lt_LTCC
13274
13275 # LTCC compiler flags.
13276 LTCFLAGS=$lt_LTCFLAGS
13277
13278 # A language-specific compiler.
13279 CC=$lt_compiler_CXX
13280
13281 # Is the compiler the GNU C compiler?
13282 with_gcc=$GCC_CXX
13283
13284 # An ERE matcher.
13285 EGREP=$lt_EGREP
13286
13287 # The linker used to build libraries.
13288 LD=$lt_LD_CXX
13289
13290 # Whether we need hard or soft links.
13291 LN_S=$lt_LN_S
13292
13293 # A BSD-compatible nm program.
13294 NM=$lt_NM
13295
13296 # A symbol stripping program
13297 STRIP=$lt_STRIP
13298
13299 # Used to examine libraries when file_magic_cmd begins "file"
13300 MAGIC_CMD=$MAGIC_CMD
13301
13302 # Used on cygwin: DLL creation program.
13303 DLLTOOL="$DLLTOOL"
13304
13305 # Used on cygwin: object dumper.
13306 OBJDUMP="$OBJDUMP"
13307
13308 # Used on cygwin: assembler.
13309 AS="$AS"
13310
13311 # The name of the directory that contains temporary libtool files.
13312 objdir=$objdir
13313
13314 # How to create reloadable object files.
13315 reload_flag=$lt_reload_flag
13316 reload_cmds=$lt_reload_cmds
13317
13318 # How to pass a linker flag through the compiler.
13319 wl=$lt_lt_prog_compiler_wl_CXX
13320
13321 # Object file suffix (normally "o").
13322 objext="$ac_objext"
13323
13324 # Old archive suffix (normally "a").
13325 libext="$libext"
13326
13327 # Shared library suffix (normally ".so").
13328 shrext_cmds='$shrext_cmds'
13329
13330 # Executable file suffix (normally "").
13331 exeext="$exeext"
13332
13333 # Additional compiler flags for building library objects.
13334 pic_flag=$lt_lt_prog_compiler_pic_CXX
13335 pic_mode=$pic_mode
13336
13337 # What is the maximum length of a command?
13338 max_cmd_len=$lt_cv_sys_max_cmd_len
13339
13340 # Does compiler simultaneously support -c and -o options?
13341 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13342
13343 # Must we lock files when doing compilation?
13344 need_locks=$lt_need_locks
13345
13346 # Do we need the lib prefix for modules?
13347 need_lib_prefix=$need_lib_prefix
13348
13349 # Do we need a version for libraries?
13350 need_version=$need_version
13351
13352 # Whether dlopen is supported.
13353 dlopen_support=$enable_dlopen
13354
13355 # Whether dlopen of programs is supported.
13356 dlopen_self=$enable_dlopen_self
13357
13358 # Whether dlopen of statically linked programs is supported.
13359 dlopen_self_static=$enable_dlopen_self_static
13360
13361 # Compiler flag to prevent dynamic linking.
13362 link_static_flag=$lt_lt_prog_compiler_static_CXX
13363
13364 # Compiler flag to turn off builtin functions.
13365 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13366
13367 # Compiler flag to allow reflexive dlopens.
13368 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13369
13370 # Compiler flag to generate shared objects directly from archives.
13371 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13372
13373 # Compiler flag to generate thread-safe objects.
13374 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13375
13376 # Library versioning type.
13377 version_type=$version_type
13378
13379 # Format of library name prefix.
13380 libname_spec=$lt_libname_spec
13381
13382 # List of archive names.  First name is the real one, the rest are links.
13383 # The last name is the one that the linker finds with -lNAME.
13384 library_names_spec=$lt_library_names_spec
13385
13386 # The coded name of the library, if different from the real name.
13387 soname_spec=$lt_soname_spec
13388
13389 # Commands used to build and install an old-style archive.
13390 RANLIB=$lt_RANLIB
13391 old_archive_cmds=$lt_old_archive_cmds_CXX
13392 old_postinstall_cmds=$lt_old_postinstall_cmds
13393 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13394
13395 # Create an old-style archive from a shared archive.
13396 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13397
13398 # Create a temporary old-style archive to link instead of a shared archive.
13399 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13400
13401 # Commands used to build and install a shared archive.
13402 archive_cmds=$lt_archive_cmds_CXX
13403 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13404 postinstall_cmds=$lt_postinstall_cmds
13405 postuninstall_cmds=$lt_postuninstall_cmds
13406
13407 # Commands used to build a loadable module (assumed same as above if empty)
13408 module_cmds=$lt_module_cmds_CXX
13409 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13410
13411 # Commands to strip libraries.
13412 old_striplib=$lt_old_striplib
13413 striplib=$lt_striplib
13414
13415 # Dependencies to place before the objects being linked to create a
13416 # shared library.
13417 predep_objects=$lt_predep_objects_CXX
13418
13419 # Dependencies to place after the objects being linked to create a
13420 # shared library.
13421 postdep_objects=$lt_postdep_objects_CXX
13422
13423 # Dependencies to place before the objects being linked to create a
13424 # shared library.
13425 predeps=$lt_predeps_CXX
13426
13427 # Dependencies to place after the objects being linked to create a
13428 # shared library.
13429 postdeps=$lt_postdeps_CXX
13430
13431 # The library search path used internally by the compiler when linking
13432 # a shared library.
13433 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13434
13435 # Method to check whether dependent libraries are shared objects.
13436 deplibs_check_method=$lt_deplibs_check_method
13437
13438 # Command to use when deplibs_check_method == file_magic.
13439 file_magic_cmd=$lt_file_magic_cmd
13440
13441 # Flag that allows shared libraries with undefined symbols to be built.
13442 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13443
13444 # Flag that forces no undefined symbols.
13445 no_undefined_flag=$lt_no_undefined_flag_CXX
13446
13447 # Commands used to finish a libtool library installation in a directory.
13448 finish_cmds=$lt_finish_cmds
13449
13450 # Same as above, but a single script fragment to be evaled but not shown.
13451 finish_eval=$lt_finish_eval
13452
13453 # Take the output of nm and produce a listing of raw symbols and C names.
13454 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13455
13456 # Transform the output of nm in a proper C declaration
13457 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13458
13459 # Transform the output of nm in a C name address pair
13460 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13461
13462 # This is the shared library runtime path variable.
13463 runpath_var=$runpath_var
13464
13465 # This is the shared library path variable.
13466 shlibpath_var=$shlibpath_var
13467
13468 # Is shlibpath searched before the hard-coded library search path?
13469 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13470
13471 # How to hardcode a shared library path into an executable.
13472 hardcode_action=$hardcode_action_CXX
13473
13474 # Whether we should hardcode library paths into libraries.
13475 hardcode_into_libs=$hardcode_into_libs
13476
13477 # Flag to hardcode \$libdir into a binary during linking.
13478 # This must work even if \$libdir does not exist.
13479 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13480
13481 # If ld is used when linking, flag to hardcode \$libdir into
13482 # a binary during linking. This must work even if \$libdir does
13483 # not exist.
13484 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13485
13486 # Whether we need a single -rpath flag with a separated argument.
13487 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13488
13489 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13490 # resulting binary.
13491 hardcode_direct=$hardcode_direct_CXX
13492
13493 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13494 # resulting binary.
13495 hardcode_minus_L=$hardcode_minus_L_CXX
13496
13497 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13498 # the resulting binary.
13499 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13500
13501 # Set to yes if building a shared library automatically hardcodes DIR into the library
13502 # and all subsequent libraries and executables linked against it.
13503 hardcode_automatic=$hardcode_automatic_CXX
13504
13505 # Variables whose values should be saved in libtool wrapper scripts and
13506 # restored at relink time.
13507 variables_saved_for_relink="$variables_saved_for_relink"
13508
13509 # Whether libtool must link a program against all its dependency libraries.
13510 link_all_deplibs=$link_all_deplibs_CXX
13511
13512 # Compile-time system search path for libraries
13513 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13514
13515 # Run-time system search path for libraries
13516 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13517
13518 # Fix the shell variable \$srcfile for the compiler.
13519 fix_srcfile_path="$fix_srcfile_path_CXX"
13520
13521 # Set to yes if exported symbols are required.
13522 always_export_symbols=$always_export_symbols_CXX
13523
13524 # The commands to list exported symbols.
13525 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13526
13527 # The commands to extract the exported symbol list from a shared archive.
13528 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13529
13530 # Symbols that should not be listed in the preloaded symbols.
13531 exclude_expsyms=$lt_exclude_expsyms_CXX
13532
13533 # Symbols that must always be exported.
13534 include_expsyms=$lt_include_expsyms_CXX
13535
13536 # ### END LIBTOOL TAG CONFIG: $tagname
13537
13538 __EOF__
13539
13540
13541 else
13542   # If there is no Makefile yet, we rely on a make rule to execute
13543   # `config.status --recheck' to rerun these tests and create the
13544   # libtool script then.
13545   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13546   if test -f "$ltmain_in"; then
13547     test -f Makefile && make "$ltmain"
13548   fi
13549 fi
13550
13551
13552 ac_ext=c
13553 ac_cpp='$CPP $CPPFLAGS'
13554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13557
13558 CC=$lt_save_CC
13559 LDCXX=$LD
13560 LD=$lt_save_LD
13561 GCC=$lt_save_GCC
13562 with_gnu_ldcxx=$with_gnu_ld
13563 with_gnu_ld=$lt_save_with_gnu_ld
13564 lt_cv_path_LDCXX=$lt_cv_path_LD
13565 lt_cv_path_LD=$lt_save_path_LD
13566 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13567 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13568
13569         else
13570           tagname=""
13571         fi
13572         ;;
13573
13574       F77)
13575         if test -n "$F77" && test "X$F77" != "Xno"; then
13576
13577 ac_ext=f
13578 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13579 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13580 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13581
13582
13583 archive_cmds_need_lc_F77=no
13584 allow_undefined_flag_F77=
13585 always_export_symbols_F77=no
13586 archive_expsym_cmds_F77=
13587 export_dynamic_flag_spec_F77=
13588 hardcode_direct_F77=no
13589 hardcode_libdir_flag_spec_F77=
13590 hardcode_libdir_flag_spec_ld_F77=
13591 hardcode_libdir_separator_F77=
13592 hardcode_minus_L_F77=no
13593 hardcode_automatic_F77=no
13594 module_cmds_F77=
13595 module_expsym_cmds_F77=
13596 link_all_deplibs_F77=unknown
13597 old_archive_cmds_F77=$old_archive_cmds
13598 no_undefined_flag_F77=
13599 whole_archive_flag_spec_F77=
13600 enable_shared_with_static_runtimes_F77=no
13601
13602 # Source file extension for f77 test sources.
13603 ac_ext=f
13604
13605 # Object file extension for compiled f77 test sources.
13606 objext=o
13607 objext_F77=$objext
13608
13609 # Code to be used in simple compile tests
13610 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13611
13612 # Code to be used in simple link tests
13613 lt_simple_link_test_code="      program t\n      end\n"
13614
13615 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13616
13617 # If no C compiler was specified, use CC.
13618 LTCC=${LTCC-"$CC"}
13619
13620 # If no C compiler flags were specified, use CFLAGS.
13621 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13622
13623 # Allow CC to be a program name with arguments.
13624 compiler=$CC
13625
13626
13627 # save warnings/boilerplate of simple test code
13628 ac_outfile=conftest.$ac_objext
13629 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13630 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13631 _lt_compiler_boilerplate=`cat conftest.err`
13632 $rm conftest*
13633
13634 ac_outfile=conftest.$ac_objext
13635 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13636 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13637 _lt_linker_boilerplate=`cat conftest.err`
13638 $rm conftest*
13639
13640
13641 # Allow CC to be a program name with arguments.
13642 lt_save_CC="$CC"
13643 CC=${F77-"f77"}
13644 compiler=$CC
13645 compiler_F77=$CC
13646 for cc_temp in $compiler""; do
13647   case $cc_temp in
13648     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13649     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13650     \-*) ;;
13651     *) break;;
13652   esac
13653 done
13654 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13655
13656
13657 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13658 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13659 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13660 echo "${ECHO_T}$can_build_shared" >&6; }
13661
13662 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13663 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13664 test "$can_build_shared" = "no" && enable_shared=no
13665
13666 # On AIX, shared libraries and static libraries use the same namespace, and
13667 # are all built from PIC.
13668 case $host_os in
13669 aix3*)
13670   test "$enable_shared" = yes && enable_static=no
13671   if test -n "$RANLIB"; then
13672     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13673     postinstall_cmds='$RANLIB $lib'
13674   fi
13675   ;;
13676 aix4* | aix5*)
13677   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13678     test "$enable_shared" = yes && enable_static=no
13679   fi
13680   ;;
13681 esac
13682 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13683 echo "${ECHO_T}$enable_shared" >&6; }
13684
13685 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13686 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13687 # Make sure either enable_shared or enable_static is yes.
13688 test "$enable_shared" = yes || enable_static=yes
13689 { echo "$as_me:$LINENO: result: $enable_static" >&5
13690 echo "${ECHO_T}$enable_static" >&6; }
13691
13692 GCC_F77="$G77"
13693 LD_F77="$LD"
13694
13695 lt_prog_compiler_wl_F77=
13696 lt_prog_compiler_pic_F77=
13697 lt_prog_compiler_static_F77=
13698
13699 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13700 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13701
13702   if test "$GCC" = yes; then
13703     lt_prog_compiler_wl_F77='-Wl,'
13704     lt_prog_compiler_static_F77='-static'
13705
13706     case $host_os in
13707       aix*)
13708       # All AIX code is PIC.
13709       if test "$host_cpu" = ia64; then
13710         # AIX 5 now supports IA64 processor
13711         lt_prog_compiler_static_F77='-Bstatic'
13712       fi
13713       ;;
13714
13715     amigaos*)
13716       # FIXME: we need at least 68020 code to build shared libraries, but
13717       # adding the `-m68020' flag to GCC prevents building anything better,
13718       # like `-m68040'.
13719       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13720       ;;
13721
13722     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13723       # PIC is the default for these OSes.
13724       ;;
13725
13726     mingw* | pw32* | os2*)
13727       # This hack is so that the source file can tell whether it is being
13728       # built for inclusion in a dll (and should export symbols for example).
13729       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13730       ;;
13731
13732     darwin* | rhapsody*)
13733       # PIC is the default on this platform
13734       # Common symbols not allowed in MH_DYLIB files
13735       lt_prog_compiler_pic_F77='-fno-common'
13736       ;;
13737
13738     interix3*)
13739       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13740       # Instead, we relocate shared libraries at runtime.
13741       ;;
13742
13743     msdosdjgpp*)
13744       # Just because we use GCC doesn't mean we suddenly get shared libraries
13745       # on systems that don't support them.
13746       lt_prog_compiler_can_build_shared_F77=no
13747       enable_shared=no
13748       ;;
13749
13750     sysv4*MP*)
13751       if test -d /usr/nec; then
13752         lt_prog_compiler_pic_F77=-Kconform_pic
13753       fi
13754       ;;
13755
13756     hpux*)
13757       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13758       # not for PA HP-UX.
13759       case $host_cpu in
13760       hppa*64*|ia64*)
13761         # +Z the default
13762         ;;
13763       *)
13764         lt_prog_compiler_pic_F77='-fPIC'
13765         ;;
13766       esac
13767       ;;
13768
13769     *)
13770       lt_prog_compiler_pic_F77='-fPIC'
13771       ;;
13772     esac
13773   else
13774     # PORTME Check for flag to pass linker flags through the system compiler.
13775     case $host_os in
13776     aix*)
13777       lt_prog_compiler_wl_F77='-Wl,'
13778       if test "$host_cpu" = ia64; then
13779         # AIX 5 now supports IA64 processor
13780         lt_prog_compiler_static_F77='-Bstatic'
13781       else
13782         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13783       fi
13784       ;;
13785       darwin*)
13786         # PIC is the default on this platform
13787         # Common symbols not allowed in MH_DYLIB files
13788        case $cc_basename in
13789          xlc*)
13790          lt_prog_compiler_pic_F77='-qnocommon'
13791          lt_prog_compiler_wl_F77='-Wl,'
13792          ;;
13793        esac
13794        ;;
13795
13796     mingw* | pw32* | os2*)
13797       # This hack is so that the source file can tell whether it is being
13798       # built for inclusion in a dll (and should export symbols for example).
13799       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13800       ;;
13801
13802     hpux9* | hpux10* | hpux11*)
13803       lt_prog_compiler_wl_F77='-Wl,'
13804       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13805       # not for PA HP-UX.
13806       case $host_cpu in
13807       hppa*64*|ia64*)
13808         # +Z the default
13809         ;;
13810       *)
13811         lt_prog_compiler_pic_F77='+Z'
13812         ;;
13813       esac
13814       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13815       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13816       ;;
13817
13818     irix5* | irix6* | nonstopux*)
13819       lt_prog_compiler_wl_F77='-Wl,'
13820       # PIC (with -KPIC) is the default.
13821       lt_prog_compiler_static_F77='-non_shared'
13822       ;;
13823
13824     newsos6)
13825       lt_prog_compiler_pic_F77='-KPIC'
13826       lt_prog_compiler_static_F77='-Bstatic'
13827       ;;
13828
13829     linux* | k*bsd*-gnu)
13830       case $cc_basename in
13831       icc* | ecc*)
13832         lt_prog_compiler_wl_F77='-Wl,'
13833         lt_prog_compiler_pic_F77='-KPIC'
13834         lt_prog_compiler_static_F77='-static'
13835         ;;
13836       pgcc* | pgf77* | pgf90* | pgf95*)
13837         # Portland Group compilers (*not* the Pentium gcc compiler,
13838         # which looks to be a dead project)
13839         lt_prog_compiler_wl_F77='-Wl,'
13840         lt_prog_compiler_pic_F77='-fpic'
13841         lt_prog_compiler_static_F77='-Bstatic'
13842         ;;
13843       ccc*)
13844         lt_prog_compiler_wl_F77='-Wl,'
13845         # All Alpha code is PIC.
13846         lt_prog_compiler_static_F77='-non_shared'
13847         ;;
13848       esac
13849       ;;
13850
13851     osf3* | osf4* | osf5*)
13852       lt_prog_compiler_wl_F77='-Wl,'
13853       # All OSF/1 code is PIC.
13854       lt_prog_compiler_static_F77='-non_shared'
13855       ;;
13856
13857     solaris*)
13858       lt_prog_compiler_pic_F77='-KPIC'
13859       lt_prog_compiler_static_F77='-Bstatic'
13860       case $cc_basename in
13861       f77* | f90* | f95*)
13862         lt_prog_compiler_wl_F77='-Qoption ld ';;
13863       *)
13864         lt_prog_compiler_wl_F77='-Wl,';;
13865       esac
13866       ;;
13867
13868     sunos4*)
13869       lt_prog_compiler_wl_F77='-Qoption ld '
13870       lt_prog_compiler_pic_F77='-PIC'
13871       lt_prog_compiler_static_F77='-Bstatic'
13872       ;;
13873
13874     sysv4 | sysv4.2uw2* | sysv4.3*)
13875       lt_prog_compiler_wl_F77='-Wl,'
13876       lt_prog_compiler_pic_F77='-KPIC'
13877       lt_prog_compiler_static_F77='-Bstatic'
13878       ;;
13879
13880     sysv4*MP*)
13881       if test -d /usr/nec ;then
13882         lt_prog_compiler_pic_F77='-Kconform_pic'
13883         lt_prog_compiler_static_F77='-Bstatic'
13884       fi
13885       ;;
13886
13887     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13888       lt_prog_compiler_wl_F77='-Wl,'
13889       lt_prog_compiler_pic_F77='-KPIC'
13890       lt_prog_compiler_static_F77='-Bstatic'
13891       ;;
13892
13893     unicos*)
13894       lt_prog_compiler_wl_F77='-Wl,'
13895       lt_prog_compiler_can_build_shared_F77=no
13896       ;;
13897
13898     uts4*)
13899       lt_prog_compiler_pic_F77='-pic'
13900       lt_prog_compiler_static_F77='-Bstatic'
13901       ;;
13902
13903     *)
13904       lt_prog_compiler_can_build_shared_F77=no
13905       ;;
13906     esac
13907   fi
13908
13909 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13910 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13911
13912 #
13913 # Check to make sure the PIC flag actually works.
13914 #
13915 if test -n "$lt_prog_compiler_pic_F77"; then
13916
13917 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13918 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13919 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13920   echo $ECHO_N "(cached) $ECHO_C" >&6
13921 else
13922   lt_prog_compiler_pic_works_F77=no
13923   ac_outfile=conftest.$ac_objext
13924    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13925    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13926    # Insert the option either (1) after the last *FLAGS variable, or
13927    # (2) before a word containing "conftest.", or (3) at the end.
13928    # Note that $ac_compile itself does not contain backslashes and begins
13929    # with a dollar sign (not a hyphen), so the echo should work correctly.
13930    # The option is referenced via a variable to avoid confusing sed.
13931    lt_compile=`echo "$ac_compile" | $SED \
13932    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13933    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13934    -e 's:$: $lt_compiler_flag:'`
13935    (eval echo "\"\$as_me:13935: $lt_compile\"" >&5)
13936    (eval "$lt_compile" 2>conftest.err)
13937    ac_status=$?
13938    cat conftest.err >&5
13939    echo "$as_me:13939: \$? = $ac_status" >&5
13940    if (exit $ac_status) && test -s "$ac_outfile"; then
13941      # The compiler can only warn and ignore the option if not recognized
13942      # So say no if there are warnings other than the usual output.
13943      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13944      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13945      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13946        lt_prog_compiler_pic_works_F77=yes
13947      fi
13948    fi
13949    $rm conftest*
13950
13951 fi
13952 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13953 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13954
13955 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13956     case $lt_prog_compiler_pic_F77 in
13957      "" | " "*) ;;
13958      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13959      esac
13960 else
13961     lt_prog_compiler_pic_F77=
13962      lt_prog_compiler_can_build_shared_F77=no
13963 fi
13964
13965 fi
13966 case $host_os in
13967   # For platforms which do not support PIC, -DPIC is meaningless:
13968   *djgpp*)
13969     lt_prog_compiler_pic_F77=
13970     ;;
13971   *)
13972     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13973     ;;
13974 esac
13975
13976 #
13977 # Check to make sure the static flag actually works.
13978 #
13979 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13980 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13981 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13982 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13983   echo $ECHO_N "(cached) $ECHO_C" >&6
13984 else
13985   lt_prog_compiler_static_works_F77=no
13986    save_LDFLAGS="$LDFLAGS"
13987    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13988    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13989    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13990      # The linker can only warn and ignore the option if not recognized
13991      # So say no if there are warnings
13992      if test -s conftest.err; then
13993        # Append any errors to the config.log.
13994        cat conftest.err 1>&5
13995        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13996        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13997        if diff conftest.exp conftest.er2 >/dev/null; then
13998          lt_prog_compiler_static_works_F77=yes
13999        fi
14000      else
14001        lt_prog_compiler_static_works_F77=yes
14002      fi
14003    fi
14004    $rm conftest*
14005    LDFLAGS="$save_LDFLAGS"
14006
14007 fi
14008 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14009 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14010
14011 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14012     :
14013 else
14014     lt_prog_compiler_static_F77=
14015 fi
14016
14017
14018 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14019 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14020 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14021   echo $ECHO_N "(cached) $ECHO_C" >&6
14022 else
14023   lt_cv_prog_compiler_c_o_F77=no
14024    $rm -r conftest 2>/dev/null
14025    mkdir conftest
14026    cd conftest
14027    mkdir out
14028    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14029
14030    lt_compiler_flag="-o out/conftest2.$ac_objext"
14031    # Insert the option either (1) after the last *FLAGS variable, or
14032    # (2) before a word containing "conftest.", or (3) at the end.
14033    # Note that $ac_compile itself does not contain backslashes and begins
14034    # with a dollar sign (not a hyphen), so the echo should work correctly.
14035    lt_compile=`echo "$ac_compile" | $SED \
14036    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14037    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14038    -e 's:$: $lt_compiler_flag:'`
14039    (eval echo "\"\$as_me:14039: $lt_compile\"" >&5)
14040    (eval "$lt_compile" 2>out/conftest.err)
14041    ac_status=$?
14042    cat out/conftest.err >&5
14043    echo "$as_me:14043: \$? = $ac_status" >&5
14044    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14045    then
14046      # The compiler can only warn and ignore the option if not recognized
14047      # So say no if there are warnings
14048      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14049      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14050      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14051        lt_cv_prog_compiler_c_o_F77=yes
14052      fi
14053    fi
14054    chmod u+w . 2>&5
14055    $rm conftest*
14056    # SGI C++ compiler will create directory out/ii_files/ for
14057    # template instantiation
14058    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14059    $rm out/* && rmdir out
14060    cd ..
14061    rmdir conftest
14062    $rm conftest*
14063
14064 fi
14065 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14066 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14067
14068
14069 hard_links="nottested"
14070 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14071   # do not overwrite the value of need_locks provided by the user
14072   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14073 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14074   hard_links=yes
14075   $rm conftest*
14076   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14077   touch conftest.a
14078   ln conftest.a conftest.b 2>&5 || hard_links=no
14079   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14080   { echo "$as_me:$LINENO: result: $hard_links" >&5
14081 echo "${ECHO_T}$hard_links" >&6; }
14082   if test "$hard_links" = no; then
14083     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14084 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14085     need_locks=warn
14086   fi
14087 else
14088   need_locks=no
14089 fi
14090
14091 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14092 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14093
14094   runpath_var=
14095   allow_undefined_flag_F77=
14096   enable_shared_with_static_runtimes_F77=no
14097   archive_cmds_F77=
14098   archive_expsym_cmds_F77=
14099   old_archive_From_new_cmds_F77=
14100   old_archive_from_expsyms_cmds_F77=
14101   export_dynamic_flag_spec_F77=
14102   whole_archive_flag_spec_F77=
14103   thread_safe_flag_spec_F77=
14104   hardcode_libdir_flag_spec_F77=
14105   hardcode_libdir_flag_spec_ld_F77=
14106   hardcode_libdir_separator_F77=
14107   hardcode_direct_F77=no
14108   hardcode_minus_L_F77=no
14109   hardcode_shlibpath_var_F77=unsupported
14110   link_all_deplibs_F77=unknown
14111   hardcode_automatic_F77=no
14112   module_cmds_F77=
14113   module_expsym_cmds_F77=
14114   always_export_symbols_F77=no
14115   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14116   # include_expsyms should be a list of space-separated symbols to be *always*
14117   # included in the symbol list
14118   include_expsyms_F77=
14119   # exclude_expsyms can be an extended regexp of symbols to exclude
14120   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14121   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14122   # as well as any symbol that contains `d'.
14123   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14124   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14125   # platforms (ab)use it in PIC code, but their linkers get confused if
14126   # the symbol is explicitly referenced.  Since portable code cannot
14127   # rely on this symbol name, it's probably fine to never include it in
14128   # preloaded symbol tables.
14129   extract_expsyms_cmds=
14130   # Just being paranoid about ensuring that cc_basename is set.
14131   for cc_temp in $compiler""; do
14132   case $cc_temp in
14133     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14134     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14135     \-*) ;;
14136     *) break;;
14137   esac
14138 done
14139 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14140
14141   case $host_os in
14142   cygwin* | mingw* | pw32*)
14143     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14144     # When not using gcc, we currently assume that we are using
14145     # Microsoft Visual C++.
14146     if test "$GCC" != yes; then
14147       with_gnu_ld=no
14148     fi
14149     ;;
14150   interix*)
14151     # we just hope/assume this is gcc and not c89 (= MSVC++)
14152     with_gnu_ld=yes
14153     ;;
14154   openbsd*)
14155     with_gnu_ld=no
14156     ;;
14157   esac
14158
14159   ld_shlibs_F77=yes
14160   if test "$with_gnu_ld" = yes; then
14161     # If archive_cmds runs LD, not CC, wlarc should be empty
14162     wlarc='${wl}'
14163
14164     # Set some defaults for GNU ld with shared library support. These
14165     # are reset later if shared libraries are not supported. Putting them
14166     # here allows them to be overridden if necessary.
14167     runpath_var=LD_RUN_PATH
14168     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14169     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14170     # ancient GNU ld didn't support --whole-archive et. al.
14171     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14172         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14173       else
14174         whole_archive_flag_spec_F77=
14175     fi
14176     supports_anon_versioning=no
14177     case `$LD -v 2>/dev/null` in
14178       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14179       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14180       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14181       *\ 2.11.*) ;; # other 2.11 versions
14182       *) supports_anon_versioning=yes ;;
14183     esac
14184
14185     # See if GNU ld supports shared libraries.
14186     case $host_os in
14187     aix3* | aix4* | aix5*)
14188       # On AIX/PPC, the GNU linker is very broken
14189       if test "$host_cpu" != ia64; then
14190         ld_shlibs_F77=no
14191         cat <<EOF 1>&2
14192
14193 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14194 *** to be unable to reliably create shared libraries on AIX.
14195 *** Therefore, libtool is disabling shared libraries support.  If you
14196 *** really care for shared libraries, you may want to modify your PATH
14197 *** so that a non-GNU linker is found, and then restart.
14198
14199 EOF
14200       fi
14201       ;;
14202
14203     amigaos*)
14204       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)'
14205       hardcode_libdir_flag_spec_F77='-L$libdir'
14206       hardcode_minus_L_F77=yes
14207
14208       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14209       # that the semantics of dynamic libraries on AmigaOS, at least up
14210       # to version 4, is to share data among multiple programs linked
14211       # with the same dynamic library.  Since this doesn't match the
14212       # behavior of shared libraries on other platforms, we can't use
14213       # them.
14214       ld_shlibs_F77=no
14215       ;;
14216
14217     beos*)
14218       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14219         allow_undefined_flag_F77=unsupported
14220         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14221         # support --undefined.  This deserves some investigation.  FIXME
14222         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14223       else
14224         ld_shlibs_F77=no
14225       fi
14226       ;;
14227
14228     cygwin* | mingw* | pw32*)
14229       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14230       # as there is no search path for DLLs.
14231       hardcode_libdir_flag_spec_F77='-L$libdir'
14232       allow_undefined_flag_F77=unsupported
14233       always_export_symbols_F77=no
14234       enable_shared_with_static_runtimes_F77=yes
14235       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14236
14237       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14238         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14239         # If the export-symbols file already is a .def file (1st line
14240         # is EXPORTS), use it as is; otherwise, prepend...
14241         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14242           cp $export_symbols $output_objdir/$soname.def;
14243         else
14244           echo EXPORTS > $output_objdir/$soname.def;
14245           cat $export_symbols >> $output_objdir/$soname.def;
14246         fi~
14247         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14248       else
14249         ld_shlibs_F77=no
14250       fi
14251       ;;
14252
14253     interix3*)
14254       hardcode_direct_F77=no
14255       hardcode_shlibpath_var_F77=no
14256       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14257       export_dynamic_flag_spec_F77='${wl}-E'
14258       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14259       # Instead, shared libraries are loaded at an image base (0x10000000 by
14260       # default) and relocated if they conflict, which is a slow very memory
14261       # consuming and fragmenting process.  To avoid this, we pick a random,
14262       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14263       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14264       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'
14265       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'
14266       ;;
14267
14268     linux* | k*bsd*-gnu)
14269       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14270         tmp_addflag=
14271         case $cc_basename,$host_cpu in
14272         pgcc*)                          # Portland Group C compiler
14273           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'
14274           tmp_addflag=' $pic_flag'
14275           ;;
14276         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14277           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'
14278           tmp_addflag=' $pic_flag -Mnomain' ;;
14279         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14280           tmp_addflag=' -i_dynamic' ;;
14281         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14282           tmp_addflag=' -i_dynamic -nofor_main' ;;
14283         ifc* | ifort*)                  # Intel Fortran compiler
14284           tmp_addflag=' -nofor_main' ;;
14285         esac
14286         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14287
14288         if test $supports_anon_versioning = yes; then
14289           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14290   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14291   $echo "local: *; };" >> $output_objdir/$libname.ver~
14292           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14293         fi
14294         link_all_deplibs_F77=no
14295       else
14296         ld_shlibs_F77=no
14297       fi
14298       ;;
14299
14300     netbsd* | netbsdelf*-gnu)
14301       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14302         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14303         wlarc=
14304       else
14305         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14306         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14307       fi
14308       ;;
14309
14310     solaris*)
14311       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14312         ld_shlibs_F77=no
14313         cat <<EOF 1>&2
14314
14315 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14316 *** create shared libraries on Solaris systems.  Therefore, libtool
14317 *** is disabling shared libraries support.  We urge you to upgrade GNU
14318 *** binutils to release 2.9.1 or newer.  Another option is to modify
14319 *** your PATH or compiler configuration so that the native linker is
14320 *** used, and then restart.
14321
14322 EOF
14323       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14324         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14325         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14326       else
14327         ld_shlibs_F77=no
14328       fi
14329       ;;
14330
14331     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14332       case `$LD -v 2>&1` in
14333         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14334         ld_shlibs_F77=no
14335         cat <<_LT_EOF 1>&2
14336
14337 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14338 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14339 *** is disabling shared libraries support.  We urge you to upgrade GNU
14340 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14341 *** your PATH or compiler configuration so that the native linker is
14342 *** used, and then restart.
14343
14344 _LT_EOF
14345         ;;
14346         *)
14347           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14348             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14349             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14350             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14351           else
14352             ld_shlibs_F77=no
14353           fi
14354         ;;
14355       esac
14356       ;;
14357
14358     sunos4*)
14359       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14360       wlarc=
14361       hardcode_direct_F77=yes
14362       hardcode_shlibpath_var_F77=no
14363       ;;
14364
14365     *)
14366       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14367         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14368         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14369       else
14370         ld_shlibs_F77=no
14371       fi
14372       ;;
14373     esac
14374
14375     if test "$ld_shlibs_F77" = no; then
14376       runpath_var=
14377       hardcode_libdir_flag_spec_F77=
14378       export_dynamic_flag_spec_F77=
14379       whole_archive_flag_spec_F77=
14380     fi
14381   else
14382     # PORTME fill in a description of your system's linker (not GNU ld)
14383     case $host_os in
14384     aix3*)
14385       allow_undefined_flag_F77=unsupported
14386       always_export_symbols_F77=yes
14387       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'
14388       # Note: this linker hardcodes the directories in LIBPATH if there
14389       # are no directories specified by -L.
14390       hardcode_minus_L_F77=yes
14391       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14392         # Neither direct hardcoding nor static linking is supported with a
14393         # broken collect2.
14394         hardcode_direct_F77=unsupported
14395       fi
14396       ;;
14397
14398     aix4* | aix5*)
14399       if test "$host_cpu" = ia64; then
14400         # On IA64, the linker does run time linking by default, so we don't
14401         # have to do anything special.
14402         aix_use_runtimelinking=no
14403         exp_sym_flag='-Bexport'
14404         no_entry_flag=""
14405       else
14406         # If we're using GNU nm, then we don't want the "-C" option.
14407         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14408         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14409           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'
14410         else
14411           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'
14412         fi
14413         aix_use_runtimelinking=no
14414
14415         # Test if we are trying to use run time linking or normal
14416         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14417         # need to do runtime linking.
14418         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14419           for ld_flag in $LDFLAGS; do
14420           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14421             aix_use_runtimelinking=yes
14422             break
14423           fi
14424           done
14425           ;;
14426         esac
14427
14428         exp_sym_flag='-bexport'
14429         no_entry_flag='-bnoentry'
14430       fi
14431
14432       # When large executables or shared objects are built, AIX ld can
14433       # have problems creating the table of contents.  If linking a library
14434       # or program results in "error TOC overflow" add -mminimal-toc to
14435       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14436       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14437
14438       archive_cmds_F77=''
14439       hardcode_direct_F77=yes
14440       hardcode_libdir_separator_F77=':'
14441       link_all_deplibs_F77=yes
14442
14443       if test "$GCC" = yes; then
14444         case $host_os in aix4.[012]|aix4.[012].*)
14445         # We only want to do this on AIX 4.2 and lower, the check
14446         # below for broken collect2 doesn't work under 4.3+
14447           collect2name=`${CC} -print-prog-name=collect2`
14448           if test -f "$collect2name" && \
14449            strings "$collect2name" | grep resolve_lib_name >/dev/null
14450           then
14451           # We have reworked collect2
14452           hardcode_direct_F77=yes
14453           else
14454           # We have old collect2
14455           hardcode_direct_F77=unsupported
14456           # It fails to find uninstalled libraries when the uninstalled
14457           # path is not listed in the libpath.  Setting hardcode_minus_L
14458           # to unsupported forces relinking
14459           hardcode_minus_L_F77=yes
14460           hardcode_libdir_flag_spec_F77='-L$libdir'
14461           hardcode_libdir_separator_F77=
14462           fi
14463           ;;
14464         esac
14465         shared_flag='-shared'
14466         if test "$aix_use_runtimelinking" = yes; then
14467           shared_flag="$shared_flag "'${wl}-G'
14468         fi
14469       else
14470         # not using gcc
14471         if test "$host_cpu" = ia64; then
14472         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14473         # chokes on -Wl,-G. The following line is correct:
14474           shared_flag='-G'
14475         else
14476           if test "$aix_use_runtimelinking" = yes; then
14477             shared_flag='${wl}-G'
14478           else
14479             shared_flag='${wl}-bM:SRE'
14480           fi
14481         fi
14482       fi
14483
14484       # It seems that -bexpall does not export symbols beginning with
14485       # underscore (_), so it is better to generate a list of symbols to export.
14486       always_export_symbols_F77=yes
14487       if test "$aix_use_runtimelinking" = yes; then
14488         # Warning - without using the other runtime loading flags (-brtl),
14489         # -berok will link without error, but may produce a broken library.
14490         allow_undefined_flag_F77='-berok'
14491        # Determine the default libpath from the value encoded in an empty executable.
14492        cat >conftest.$ac_ext <<_ACEOF
14493       program main
14494
14495       end
14496 _ACEOF
14497 rm -f conftest.$ac_objext conftest$ac_exeext
14498 if { (ac_try="$ac_link"
14499 case "(($ac_try" in
14500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14501   *) ac_try_echo=$ac_try;;
14502 esac
14503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14504   (eval "$ac_link") 2>conftest.er1
14505   ac_status=$?
14506   grep -v '^ *+' conftest.er1 >conftest.err
14507   rm -f conftest.er1
14508   cat conftest.err >&5
14509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510   (exit $ac_status); } && {
14511          test -z "$ac_f77_werror_flag" ||
14512          test ! -s conftest.err
14513        } && test -s conftest$ac_exeext &&
14514        $as_test_x conftest$ac_exeext; then
14515
14516 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14517 }'`
14518 # Check for a 64-bit object if we didn't find anything.
14519 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14520 }'`; fi
14521 else
14522   echo "$as_me: failed program was:" >&5
14523 sed 's/^/| /' conftest.$ac_ext >&5
14524
14525
14526 fi
14527
14528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14529       conftest$ac_exeext conftest.$ac_ext
14530 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14531
14532        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14533         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"
14534        else
14535         if test "$host_cpu" = ia64; then
14536           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14537           allow_undefined_flag_F77="-z nodefs"
14538           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"
14539         else
14540          # Determine the default libpath from the value encoded in an empty executable.
14541          cat >conftest.$ac_ext <<_ACEOF
14542       program main
14543
14544       end
14545 _ACEOF
14546 rm -f conftest.$ac_objext conftest$ac_exeext
14547 if { (ac_try="$ac_link"
14548 case "(($ac_try" in
14549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550   *) ac_try_echo=$ac_try;;
14551 esac
14552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553   (eval "$ac_link") 2>conftest.er1
14554   ac_status=$?
14555   grep -v '^ *+' conftest.er1 >conftest.err
14556   rm -f conftest.er1
14557   cat conftest.err >&5
14558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559   (exit $ac_status); } && {
14560          test -z "$ac_f77_werror_flag" ||
14561          test ! -s conftest.err
14562        } && test -s conftest$ac_exeext &&
14563        $as_test_x conftest$ac_exeext; then
14564
14565 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14566 }'`
14567 # Check for a 64-bit object if we didn't find anything.
14568 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14569 }'`; fi
14570 else
14571   echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.$ac_ext >&5
14573
14574
14575 fi
14576
14577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14578       conftest$ac_exeext conftest.$ac_ext
14579 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14580
14581          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14582           # Warning - without using the other run time loading flags,
14583           # -berok will link without error, but may produce a broken library.
14584           no_undefined_flag_F77=' ${wl}-bernotok'
14585           allow_undefined_flag_F77=' ${wl}-berok'
14586           # Exported symbols can be pulled into shared objects from archives
14587           whole_archive_flag_spec_F77='$convenience'
14588           archive_cmds_need_lc_F77=yes
14589           # This is similar to how AIX traditionally builds its shared libraries.
14590           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'
14591         fi
14592       fi
14593       ;;
14594
14595     amigaos*)
14596       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)'
14597       hardcode_libdir_flag_spec_F77='-L$libdir'
14598       hardcode_minus_L_F77=yes
14599       # see comment about different semantics on the GNU ld section
14600       ld_shlibs_F77=no
14601       ;;
14602
14603     bsdi[45]*)
14604       export_dynamic_flag_spec_F77=-rdynamic
14605       ;;
14606
14607     cygwin* | mingw* | pw32*)
14608       # When not using gcc, we currently assume that we are using
14609       # Microsoft Visual C++.
14610       # hardcode_libdir_flag_spec is actually meaningless, as there is
14611       # no search path for DLLs.
14612       hardcode_libdir_flag_spec_F77=' '
14613       allow_undefined_flag_F77=unsupported
14614       # Tell ltmain to make .lib files, not .a files.
14615       libext=lib
14616       # Tell ltmain to make .dll files, not .so files.
14617       shrext_cmds=".dll"
14618       # FIXME: Setting linknames here is a bad hack.
14619       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14620       # The linker will automatically build a .lib file if we build a DLL.
14621       old_archive_From_new_cmds_F77='true'
14622       # FIXME: Should let the user specify the lib program.
14623       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14624       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14625       enable_shared_with_static_runtimes_F77=yes
14626       ;;
14627
14628     darwin* | rhapsody*)
14629       case $host_os in
14630         rhapsody* | darwin1.[012])
14631          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14632          ;;
14633        *) # Darwin 1.3 on
14634          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14635            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14636          else
14637            case ${MACOSX_DEPLOYMENT_TARGET} in
14638              10.[012])
14639                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14640                ;;
14641              10.*)
14642                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14643                ;;
14644            esac
14645          fi
14646          ;;
14647       esac
14648       archive_cmds_need_lc_F77=no
14649       hardcode_direct_F77=no
14650       hardcode_automatic_F77=yes
14651       hardcode_shlibpath_var_F77=unsupported
14652       whole_archive_flag_spec_F77=''
14653       link_all_deplibs_F77=yes
14654     if test "$GCC" = yes ; then
14655         output_verbose_link_cmd='echo'
14656         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14657       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14658       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14659       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14660       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}'
14661     else
14662       case $cc_basename in
14663         xlc*)
14664          output_verbose_link_cmd='echo'
14665          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14666          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14667           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14668          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14669           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}'
14670           ;;
14671        *)
14672          ld_shlibs_F77=no
14673           ;;
14674       esac
14675     fi
14676       ;;
14677
14678     dgux*)
14679       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14680       hardcode_libdir_flag_spec_F77='-L$libdir'
14681       hardcode_shlibpath_var_F77=no
14682       ;;
14683
14684     freebsd1*)
14685       ld_shlibs_F77=no
14686       ;;
14687
14688     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14689     # support.  Future versions do this automatically, but an explicit c++rt0.o
14690     # does not break anything, and helps significantly (at the cost of a little
14691     # extra space).
14692     freebsd2.2*)
14693       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14694       hardcode_libdir_flag_spec_F77='-R$libdir'
14695       hardcode_direct_F77=yes
14696       hardcode_shlibpath_var_F77=no
14697       ;;
14698
14699     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14700     freebsd2*)
14701       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14702       hardcode_direct_F77=yes
14703       hardcode_minus_L_F77=yes
14704       hardcode_shlibpath_var_F77=no
14705       ;;
14706
14707     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14708     freebsd* | dragonfly*)
14709       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14710       hardcode_libdir_flag_spec_F77='-R$libdir'
14711       hardcode_direct_F77=yes
14712       hardcode_shlibpath_var_F77=no
14713       ;;
14714
14715     hpux9*)
14716       if test "$GCC" = yes; then
14717         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'
14718       else
14719         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'
14720       fi
14721       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14722       hardcode_libdir_separator_F77=:
14723       hardcode_direct_F77=yes
14724
14725       # hardcode_minus_L: Not really in the search PATH,
14726       # but as the default location of the library.
14727       hardcode_minus_L_F77=yes
14728       export_dynamic_flag_spec_F77='${wl}-E'
14729       ;;
14730
14731     hpux10*)
14732       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14733         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14734       else
14735         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14736       fi
14737       if test "$with_gnu_ld" = no; then
14738         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14739         hardcode_libdir_separator_F77=:
14740
14741         hardcode_direct_F77=yes
14742         export_dynamic_flag_spec_F77='${wl}-E'
14743
14744         # hardcode_minus_L: Not really in the search PATH,
14745         # but as the default location of the library.
14746         hardcode_minus_L_F77=yes
14747       fi
14748       ;;
14749
14750     hpux11*)
14751       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14752         case $host_cpu in
14753         hppa*64*)
14754           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14755           ;;
14756         ia64*)
14757           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14758           ;;
14759         *)
14760           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14761           ;;
14762         esac
14763       else
14764         case $host_cpu in
14765         hppa*64*)
14766           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14767           ;;
14768         ia64*)
14769           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14770           ;;
14771         *)
14772           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14773           ;;
14774         esac
14775       fi
14776       if test "$with_gnu_ld" = no; then
14777         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14778         hardcode_libdir_separator_F77=:
14779
14780         case $host_cpu in
14781         hppa*64*|ia64*)
14782           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14783           hardcode_direct_F77=no
14784           hardcode_shlibpath_var_F77=no
14785           ;;
14786         *)
14787           hardcode_direct_F77=yes
14788           export_dynamic_flag_spec_F77='${wl}-E'
14789
14790           # hardcode_minus_L: Not really in the search PATH,
14791           # but as the default location of the library.
14792           hardcode_minus_L_F77=yes
14793           ;;
14794         esac
14795       fi
14796       ;;
14797
14798     irix5* | irix6* | nonstopux*)
14799       if test "$GCC" = yes; then
14800         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'
14801       else
14802         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'
14803         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14804       fi
14805       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14806       hardcode_libdir_separator_F77=:
14807       link_all_deplibs_F77=yes
14808       ;;
14809
14810     netbsd* | netbsdelf*-gnu)
14811       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14812         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14813       else
14814         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14815       fi
14816       hardcode_libdir_flag_spec_F77='-R$libdir'
14817       hardcode_direct_F77=yes
14818       hardcode_shlibpath_var_F77=no
14819       ;;
14820
14821     newsos6)
14822       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14823       hardcode_direct_F77=yes
14824       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14825       hardcode_libdir_separator_F77=:
14826       hardcode_shlibpath_var_F77=no
14827       ;;
14828
14829     openbsd*)
14830       hardcode_direct_F77=yes
14831       hardcode_shlibpath_var_F77=no
14832       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14833         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14834         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14835         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14836         export_dynamic_flag_spec_F77='${wl}-E'
14837       else
14838        case $host_os in
14839          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14840            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14841            hardcode_libdir_flag_spec_F77='-R$libdir'
14842            ;;
14843          *)
14844            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14845            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14846            ;;
14847        esac
14848       fi
14849       ;;
14850
14851     os2*)
14852       hardcode_libdir_flag_spec_F77='-L$libdir'
14853       hardcode_minus_L_F77=yes
14854       allow_undefined_flag_F77=unsupported
14855       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'
14856       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14857       ;;
14858
14859     osf3*)
14860       if test "$GCC" = yes; then
14861         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14862         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'
14863       else
14864         allow_undefined_flag_F77=' -expect_unresolved \*'
14865         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'
14866       fi
14867       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14868       hardcode_libdir_separator_F77=:
14869       ;;
14870
14871     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14872       if test "$GCC" = yes; then
14873         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14874         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'
14875         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14876       else
14877         allow_undefined_flag_F77=' -expect_unresolved \*'
14878         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'
14879         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~
14880         $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'
14881
14882         # Both c and cxx compiler support -rpath directly
14883         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14884       fi
14885       hardcode_libdir_separator_F77=:
14886       ;;
14887
14888     solaris*)
14889       no_undefined_flag_F77=' -z text'
14890       if test "$GCC" = yes; then
14891         wlarc='${wl}'
14892         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14893         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14894           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14895       else
14896         wlarc=''
14897         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14898         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14899         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14900       fi
14901       hardcode_libdir_flag_spec_F77='-R$libdir'
14902       hardcode_shlibpath_var_F77=no
14903       case $host_os in
14904       solaris2.[0-5] | solaris2.[0-5].*) ;;
14905       *)
14906         # The compiler driver will combine linker options so we
14907         # cannot just pass the convience library names through
14908         # without $wl, iff we do not link with $LD.
14909         # Luckily, gcc supports the same syntax we need for Sun Studio.
14910         # Supported since Solaris 2.6 (maybe 2.5.1?)
14911         case $wlarc in
14912         '')
14913           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14914         *)
14915           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14916         esac ;;
14917       esac
14918       link_all_deplibs_F77=yes
14919       ;;
14920
14921     sunos4*)
14922       if test "x$host_vendor" = xsequent; then
14923         # Use $CC to link under sequent, because it throws in some extra .o
14924         # files that make .init and .fini sections work.
14925         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14926       else
14927         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14928       fi
14929       hardcode_libdir_flag_spec_F77='-L$libdir'
14930       hardcode_direct_F77=yes
14931       hardcode_minus_L_F77=yes
14932       hardcode_shlibpath_var_F77=no
14933       ;;
14934
14935     sysv4)
14936       case $host_vendor in
14937         sni)
14938           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14939           hardcode_direct_F77=yes # is this really true???
14940         ;;
14941         siemens)
14942           ## LD is ld it makes a PLAMLIB
14943           ## CC just makes a GrossModule.
14944           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14945           reload_cmds_F77='$CC -r -o $output$reload_objs'
14946           hardcode_direct_F77=no
14947         ;;
14948         motorola)
14949           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14950           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14951         ;;
14952       esac
14953       runpath_var='LD_RUN_PATH'
14954       hardcode_shlibpath_var_F77=no
14955       ;;
14956
14957     sysv4.3*)
14958       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14959       hardcode_shlibpath_var_F77=no
14960       export_dynamic_flag_spec_F77='-Bexport'
14961       ;;
14962
14963     sysv4*MP*)
14964       if test -d /usr/nec; then
14965         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14966         hardcode_shlibpath_var_F77=no
14967         runpath_var=LD_RUN_PATH
14968         hardcode_runpath_var=yes
14969         ld_shlibs_F77=yes
14970       fi
14971       ;;
14972
14973     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14974       no_undefined_flag_F77='${wl}-z,text'
14975       archive_cmds_need_lc_F77=no
14976       hardcode_shlibpath_var_F77=no
14977       runpath_var='LD_RUN_PATH'
14978
14979       if test "$GCC" = yes; then
14980         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14981         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14982       else
14983         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14984         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14985       fi
14986       ;;
14987
14988     sysv5* | sco3.2v5* | sco5v6*)
14989       # Note: We can NOT use -z defs as we might desire, because we do not
14990       # link with -lc, and that would cause any symbols used from libc to
14991       # always be unresolved, which means just about no library would
14992       # ever link correctly.  If we're not using GNU ld we use -z text
14993       # though, which does catch some bad symbols but isn't as heavy-handed
14994       # as -z defs.
14995       no_undefined_flag_F77='${wl}-z,text'
14996       allow_undefined_flag_F77='${wl}-z,nodefs'
14997       archive_cmds_need_lc_F77=no
14998       hardcode_shlibpath_var_F77=no
14999       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15000       hardcode_libdir_separator_F77=':'
15001       link_all_deplibs_F77=yes
15002       export_dynamic_flag_spec_F77='${wl}-Bexport'
15003       runpath_var='LD_RUN_PATH'
15004
15005       if test "$GCC" = yes; then
15006         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15007         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15008       else
15009         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15010         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15011       fi
15012       ;;
15013
15014     uts4*)
15015       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15016       hardcode_libdir_flag_spec_F77='-L$libdir'
15017       hardcode_shlibpath_var_F77=no
15018       ;;
15019
15020     *)
15021       ld_shlibs_F77=no
15022       ;;
15023     esac
15024   fi
15025
15026 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15027 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15028 test "$ld_shlibs_F77" = no && can_build_shared=no
15029
15030 #
15031 # Do we need to explicitly link libc?
15032 #
15033 case "x$archive_cmds_need_lc_F77" in
15034 x|xyes)
15035   # Assume -lc should be added
15036   archive_cmds_need_lc_F77=yes
15037
15038   if test "$enable_shared" = yes && test "$GCC" = yes; then
15039     case $archive_cmds_F77 in
15040     *'~'*)
15041       # FIXME: we may have to deal with multi-command sequences.
15042       ;;
15043     '$CC '*)
15044       # Test whether the compiler implicitly links with -lc since on some
15045       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15046       # to ld, don't add -lc before -lgcc.
15047       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15048 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15049       $rm conftest*
15050       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15051
15052       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15053   (eval $ac_compile) 2>&5
15054   ac_status=$?
15055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056   (exit $ac_status); } 2>conftest.err; then
15057         soname=conftest
15058         lib=conftest
15059         libobjs=conftest.$ac_objext
15060         deplibs=
15061         wl=$lt_prog_compiler_wl_F77
15062         pic_flag=$lt_prog_compiler_pic_F77
15063         compiler_flags=-v
15064         linker_flags=-v
15065         verstring=
15066         output_objdir=.
15067         libname=conftest
15068         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15069         allow_undefined_flag_F77=
15070         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15071   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15072   ac_status=$?
15073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074   (exit $ac_status); }
15075         then
15076           archive_cmds_need_lc_F77=no
15077         else
15078           archive_cmds_need_lc_F77=yes
15079         fi
15080         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15081       else
15082         cat conftest.err 1>&5
15083       fi
15084       $rm conftest*
15085       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15086 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15087       ;;
15088     esac
15089   fi
15090   ;;
15091 esac
15092
15093 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15094 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15095 library_names_spec=
15096 libname_spec='lib$name'
15097 soname_spec=
15098 shrext_cmds=".so"
15099 postinstall_cmds=
15100 postuninstall_cmds=
15101 finish_cmds=
15102 finish_eval=
15103 shlibpath_var=
15104 shlibpath_overrides_runpath=unknown
15105 version_type=none
15106 dynamic_linker="$host_os ld.so"
15107 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15108 if test "$GCC" = yes; then
15109   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15110   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15111     # if the path contains ";" then we assume it to be the separator
15112     # otherwise default to the standard path separator (i.e. ":") - it is
15113     # assumed that no part of a normal pathname contains ";" but that should
15114     # okay in the real world where ";" in dirpaths is itself problematic.
15115     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15116   else
15117     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15118   fi
15119 else
15120   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15121 fi
15122 need_lib_prefix=unknown
15123 hardcode_into_libs=no
15124
15125 # when you set need_version to no, make sure it does not cause -set_version
15126 # flags to be left without arguments
15127 need_version=unknown
15128
15129 case $host_os in
15130 aix3*)
15131   version_type=linux
15132   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15133   shlibpath_var=LIBPATH
15134
15135   # AIX 3 has no versioning support, so we append a major version to the name.
15136   soname_spec='${libname}${release}${shared_ext}$major'
15137   ;;
15138
15139 aix4* | aix5*)
15140   version_type=linux
15141   need_lib_prefix=no
15142   need_version=no
15143   hardcode_into_libs=yes
15144   if test "$host_cpu" = ia64; then
15145     # AIX 5 supports IA64
15146     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15147     shlibpath_var=LD_LIBRARY_PATH
15148   else
15149     # With GCC up to 2.95.x, collect2 would create an import file
15150     # for dependence libraries.  The import file would start with
15151     # the line `#! .'.  This would cause the generated library to
15152     # depend on `.', always an invalid library.  This was fixed in
15153     # development snapshots of GCC prior to 3.0.
15154     case $host_os in
15155       aix4 | aix4.[01] | aix4.[01].*)
15156       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15157            echo ' yes '
15158            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15159         :
15160       else
15161         can_build_shared=no
15162       fi
15163       ;;
15164     esac
15165     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15166     # soname into executable. Probably we can add versioning support to
15167     # collect2, so additional links can be useful in future.
15168     if test "$aix_use_runtimelinking" = yes; then
15169       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15170       # instead of lib<name>.a to let people know that these are not
15171       # typical AIX shared libraries.
15172       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15173     else
15174       # We preserve .a as extension for shared libraries through AIX4.2
15175       # and later when we are not doing run time linking.
15176       library_names_spec='${libname}${release}.a $libname.a'
15177       soname_spec='${libname}${release}${shared_ext}$major'
15178     fi
15179     shlibpath_var=LIBPATH
15180   fi
15181   ;;
15182
15183 amigaos*)
15184   library_names_spec='$libname.ixlibrary $libname.a'
15185   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15186   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'
15187   ;;
15188
15189 beos*)
15190   library_names_spec='${libname}${shared_ext}'
15191   dynamic_linker="$host_os ld.so"
15192   shlibpath_var=LIBRARY_PATH
15193   ;;
15194
15195 bsdi[45]*)
15196   version_type=linux
15197   need_version=no
15198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15199   soname_spec='${libname}${release}${shared_ext}$major'
15200   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15201   shlibpath_var=LD_LIBRARY_PATH
15202   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15203   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15204   # the default ld.so.conf also contains /usr/contrib/lib and
15205   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15206   # libtool to hard-code these into programs
15207   ;;
15208
15209 cygwin* | mingw* | pw32*)
15210   version_type=windows
15211   shrext_cmds=".dll"
15212   need_version=no
15213   need_lib_prefix=no
15214
15215   case $GCC,$host_os in
15216   yes,cygwin* | yes,mingw* | yes,pw32*)
15217     library_names_spec='$libname.dll.a'
15218     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15219     postinstall_cmds='base_file=`basename \${file}`~
15220       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15221       dldir=$destdir/`dirname \$dlpath`~
15222       test -d \$dldir || mkdir -p \$dldir~
15223       $install_prog $dir/$dlname \$dldir/$dlname~
15224       chmod a+x \$dldir/$dlname'
15225     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15226       dlpath=$dir/\$dldll~
15227        $rm \$dlpath'
15228     shlibpath_overrides_runpath=yes
15229
15230     case $host_os in
15231     cygwin*)
15232       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15233       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15234       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15235       ;;
15236     mingw*)
15237       # MinGW DLLs use traditional 'lib' prefix
15238       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15239       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15240       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15241         # It is most probably a Windows format PATH printed by
15242         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15243         # path with ; separators, and with drive letters. We can handle the
15244         # drive letters (cygwin fileutils understands them), so leave them,
15245         # especially as we might pass files found there to a mingw objdump,
15246         # which wouldn't understand a cygwinified path. Ahh.
15247         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15248       else
15249         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15250       fi
15251       ;;
15252     pw32*)
15253       # pw32 DLLs use 'pw' prefix rather than 'lib'
15254       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15255       ;;
15256     esac
15257     ;;
15258
15259   *)
15260     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15261     ;;
15262   esac
15263   dynamic_linker='Win32 ld.exe'
15264   # FIXME: first we should search . and the directory the executable is in
15265   shlibpath_var=PATH
15266   ;;
15267
15268 darwin* | rhapsody*)
15269   dynamic_linker="$host_os dyld"
15270   version_type=darwin
15271   need_lib_prefix=no
15272   need_version=no
15273   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15274   soname_spec='${libname}${release}${major}$shared_ext'
15275   shlibpath_overrides_runpath=yes
15276   shlibpath_var=DYLD_LIBRARY_PATH
15277   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15278   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15279   if test "$GCC" = yes; then
15280     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15281   else
15282     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15283   fi
15284   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15285   ;;
15286
15287 dgux*)
15288   version_type=linux
15289   need_lib_prefix=no
15290   need_version=no
15291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15292   soname_spec='${libname}${release}${shared_ext}$major'
15293   shlibpath_var=LD_LIBRARY_PATH
15294   ;;
15295
15296 freebsd1*)
15297   dynamic_linker=no
15298   ;;
15299
15300 freebsd* | dragonfly*)
15301   # DragonFly does not have aout.  When/if they implement a new
15302   # versioning mechanism, adjust this.
15303   if test -x /usr/bin/objformat; then
15304     objformat=`/usr/bin/objformat`
15305   else
15306     case $host_os in
15307     freebsd[123]*) objformat=aout ;;
15308     *) objformat=elf ;;
15309     esac
15310   fi
15311   version_type=freebsd-$objformat
15312   case $version_type in
15313     freebsd-elf*)
15314       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15315       need_version=no
15316       need_lib_prefix=no
15317       ;;
15318     freebsd-*)
15319       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15320       need_version=yes
15321       ;;
15322   esac
15323   shlibpath_var=LD_LIBRARY_PATH
15324   case $host_os in
15325   freebsd2*)
15326     shlibpath_overrides_runpath=yes
15327     ;;
15328   freebsd3.[01]* | freebsdelf3.[01]*)
15329     shlibpath_overrides_runpath=yes
15330     hardcode_into_libs=yes
15331     ;;
15332   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15333   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15334     shlibpath_overrides_runpath=no
15335     hardcode_into_libs=yes
15336     ;;
15337   freebsd*) # from 4.6 on
15338     shlibpath_overrides_runpath=yes
15339     hardcode_into_libs=yes
15340     ;;
15341   esac
15342   ;;
15343
15344 gnu*)
15345   version_type=linux
15346   need_lib_prefix=no
15347   need_version=no
15348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15349   soname_spec='${libname}${release}${shared_ext}$major'
15350   shlibpath_var=LD_LIBRARY_PATH
15351   hardcode_into_libs=yes
15352   ;;
15353
15354 hpux9* | hpux10* | hpux11*)
15355   # Give a soname corresponding to the major version so that dld.sl refuses to
15356   # link against other versions.
15357   version_type=sunos
15358   need_lib_prefix=no
15359   need_version=no
15360   case $host_cpu in
15361   ia64*)
15362     shrext_cmds='.so'
15363     hardcode_into_libs=yes
15364     dynamic_linker="$host_os dld.so"
15365     shlibpath_var=LD_LIBRARY_PATH
15366     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15367     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15368     soname_spec='${libname}${release}${shared_ext}$major'
15369     if test "X$HPUX_IA64_MODE" = X32; then
15370       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15371     else
15372       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15373     fi
15374     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15375     ;;
15376    hppa*64*)
15377      shrext_cmds='.sl'
15378      hardcode_into_libs=yes
15379      dynamic_linker="$host_os dld.sl"
15380      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15381      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15382      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15383      soname_spec='${libname}${release}${shared_ext}$major'
15384      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15385      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15386      ;;
15387    *)
15388     shrext_cmds='.sl'
15389     dynamic_linker="$host_os dld.sl"
15390     shlibpath_var=SHLIB_PATH
15391     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15392     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393     soname_spec='${libname}${release}${shared_ext}$major'
15394     ;;
15395   esac
15396   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15397   postinstall_cmds='chmod 555 $lib'
15398   ;;
15399
15400 interix3*)
15401   version_type=linux
15402   need_lib_prefix=no
15403   need_version=no
15404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15405   soname_spec='${libname}${release}${shared_ext}$major'
15406   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15407   shlibpath_var=LD_LIBRARY_PATH
15408   shlibpath_overrides_runpath=no
15409   hardcode_into_libs=yes
15410   ;;
15411
15412 irix5* | irix6* | nonstopux*)
15413   case $host_os in
15414     nonstopux*) version_type=nonstopux ;;
15415     *)
15416         if test "$lt_cv_prog_gnu_ld" = yes; then
15417                 version_type=linux
15418         else
15419                 version_type=irix
15420         fi ;;
15421   esac
15422   need_lib_prefix=no
15423   need_version=no
15424   soname_spec='${libname}${release}${shared_ext}$major'
15425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15426   case $host_os in
15427   irix5* | nonstopux*)
15428     libsuff= shlibsuff=
15429     ;;
15430   *)
15431     case $LD in # libtool.m4 will add one of these switches to LD
15432     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15433       libsuff= shlibsuff= libmagic=32-bit;;
15434     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15435       libsuff=32 shlibsuff=N32 libmagic=N32;;
15436     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15437       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15438     *) libsuff= shlibsuff= libmagic=never-match;;
15439     esac
15440     ;;
15441   esac
15442   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15443   shlibpath_overrides_runpath=no
15444   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15445   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15446   hardcode_into_libs=yes
15447   ;;
15448
15449 # No shared lib support for Linux oldld, aout, or coff.
15450 linux*oldld* | linux*aout* | linux*coff*)
15451   dynamic_linker=no
15452   ;;
15453
15454 # This must be Linux ELF.
15455 linux* | k*bsd*-gnu)
15456   version_type=linux
15457   need_lib_prefix=no
15458   need_version=no
15459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15460   soname_spec='${libname}${release}${shared_ext}$major'
15461   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15462   shlibpath_var=LD_LIBRARY_PATH
15463   shlibpath_overrides_runpath=no
15464   # This implies no fast_install, which is unacceptable.
15465   # Some rework will be needed to allow for fast_install
15466   # before this can be enabled.
15467   hardcode_into_libs=yes
15468
15469   # Append ld.so.conf contents to the search path
15470   if test -f /etc/ld.so.conf; then
15471     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15472     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15473   fi
15474
15475   # We used to test for /lib/ld.so.1 and disable shared libraries on
15476   # powerpc, because MkLinux only supported shared libraries with the
15477   # GNU dynamic linker.  Since this was broken with cross compilers,
15478   # most powerpc-linux boxes support dynamic linking these days and
15479   # people can always --disable-shared, the test was removed, and we
15480   # assume the GNU/Linux dynamic linker is in use.
15481   dynamic_linker='GNU/Linux ld.so'
15482   ;;
15483
15484 netbsdelf*-gnu)
15485   version_type=linux
15486   need_lib_prefix=no
15487   need_version=no
15488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15489   soname_spec='${libname}${release}${shared_ext}$major'
15490   shlibpath_var=LD_LIBRARY_PATH
15491   shlibpath_overrides_runpath=no
15492   hardcode_into_libs=yes
15493   dynamic_linker='NetBSD ld.elf_so'
15494   ;;
15495
15496 netbsd*)
15497   version_type=sunos
15498   need_lib_prefix=no
15499   need_version=no
15500   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15501     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15502     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15503     dynamic_linker='NetBSD (a.out) ld.so'
15504   else
15505     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15506     soname_spec='${libname}${release}${shared_ext}$major'
15507     dynamic_linker='NetBSD ld.elf_so'
15508   fi
15509   shlibpath_var=LD_LIBRARY_PATH
15510   shlibpath_overrides_runpath=yes
15511   hardcode_into_libs=yes
15512   ;;
15513
15514 newsos6)
15515   version_type=linux
15516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15517   shlibpath_var=LD_LIBRARY_PATH
15518   shlibpath_overrides_runpath=yes
15519   ;;
15520
15521 nto-qnx*)
15522   version_type=linux
15523   need_lib_prefix=no
15524   need_version=no
15525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15526   soname_spec='${libname}${release}${shared_ext}$major'
15527   shlibpath_var=LD_LIBRARY_PATH
15528   shlibpath_overrides_runpath=yes
15529   ;;
15530
15531 openbsd*)
15532   version_type=sunos
15533   sys_lib_dlsearch_path_spec="/usr/lib"
15534   need_lib_prefix=no
15535   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15536   case $host_os in
15537     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15538     *)                         need_version=no  ;;
15539   esac
15540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15541   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15542   shlibpath_var=LD_LIBRARY_PATH
15543   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15544     case $host_os in
15545       openbsd2.[89] | openbsd2.[89].*)
15546         shlibpath_overrides_runpath=no
15547         ;;
15548       *)
15549         shlibpath_overrides_runpath=yes
15550         ;;
15551       esac
15552   else
15553     shlibpath_overrides_runpath=yes
15554   fi
15555   ;;
15556
15557 os2*)
15558   libname_spec='$name'
15559   shrext_cmds=".dll"
15560   need_lib_prefix=no
15561   library_names_spec='$libname${shared_ext} $libname.a'
15562   dynamic_linker='OS/2 ld.exe'
15563   shlibpath_var=LIBPATH
15564   ;;
15565
15566 osf3* | osf4* | osf5*)
15567   version_type=osf
15568   need_lib_prefix=no
15569   need_version=no
15570   soname_spec='${libname}${release}${shared_ext}$major'
15571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15572   shlibpath_var=LD_LIBRARY_PATH
15573   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15574   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15575   ;;
15576
15577 solaris*)
15578   version_type=linux
15579   need_lib_prefix=no
15580   need_version=no
15581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15582   soname_spec='${libname}${release}${shared_ext}$major'
15583   shlibpath_var=LD_LIBRARY_PATH
15584   shlibpath_overrides_runpath=yes
15585   hardcode_into_libs=yes
15586   # ldd complains unless libraries are executable
15587   postinstall_cmds='chmod +x $lib'
15588   ;;
15589
15590 sunos4*)
15591   version_type=sunos
15592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15593   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15594   shlibpath_var=LD_LIBRARY_PATH
15595   shlibpath_overrides_runpath=yes
15596   if test "$with_gnu_ld" = yes; then
15597     need_lib_prefix=no
15598   fi
15599   need_version=yes
15600   ;;
15601
15602 sysv4 | sysv4.3*)
15603   version_type=linux
15604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15605   soname_spec='${libname}${release}${shared_ext}$major'
15606   shlibpath_var=LD_LIBRARY_PATH
15607   case $host_vendor in
15608     sni)
15609       shlibpath_overrides_runpath=no
15610       need_lib_prefix=no
15611       export_dynamic_flag_spec='${wl}-Blargedynsym'
15612       runpath_var=LD_RUN_PATH
15613       ;;
15614     siemens)
15615       need_lib_prefix=no
15616       ;;
15617     motorola)
15618       need_lib_prefix=no
15619       need_version=no
15620       shlibpath_overrides_runpath=no
15621       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15622       ;;
15623   esac
15624   ;;
15625
15626 sysv4*MP*)
15627   if test -d /usr/nec ;then
15628     version_type=linux
15629     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15630     soname_spec='$libname${shared_ext}.$major'
15631     shlibpath_var=LD_LIBRARY_PATH
15632   fi
15633   ;;
15634
15635 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15636   version_type=freebsd-elf
15637   need_lib_prefix=no
15638   need_version=no
15639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15640   soname_spec='${libname}${release}${shared_ext}$major'
15641   shlibpath_var=LD_LIBRARY_PATH
15642   hardcode_into_libs=yes
15643   if test "$with_gnu_ld" = yes; then
15644     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15645     shlibpath_overrides_runpath=no
15646   else
15647     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15648     shlibpath_overrides_runpath=yes
15649     case $host_os in
15650       sco3.2v5*)
15651         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15652         ;;
15653     esac
15654   fi
15655   sys_lib_dlsearch_path_spec='/usr/lib'
15656   ;;
15657
15658 uts4*)
15659   version_type=linux
15660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15661   soname_spec='${libname}${release}${shared_ext}$major'
15662   shlibpath_var=LD_LIBRARY_PATH
15663   ;;
15664
15665 *)
15666   dynamic_linker=no
15667   ;;
15668 esac
15669 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15670 echo "${ECHO_T}$dynamic_linker" >&6; }
15671 test "$dynamic_linker" = no && can_build_shared=no
15672
15673 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15674 if test "$GCC" = yes; then
15675   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15676 fi
15677
15678 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15679 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15680 hardcode_action_F77=
15681 if test -n "$hardcode_libdir_flag_spec_F77" || \
15682    test -n "$runpath_var_F77" || \
15683    test "X$hardcode_automatic_F77" = "Xyes" ; then
15684
15685   # We can hardcode non-existant directories.
15686   if test "$hardcode_direct_F77" != no &&
15687      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15688      # have to relink, otherwise we might link with an installed library
15689      # when we should be linking with a yet-to-be-installed one
15690      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15691      test "$hardcode_minus_L_F77" != no; then
15692     # Linking always hardcodes the temporary library directory.
15693     hardcode_action_F77=relink
15694   else
15695     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15696     hardcode_action_F77=immediate
15697   fi
15698 else
15699   # We cannot hardcode anything, or else we can only hardcode existing
15700   # directories.
15701   hardcode_action_F77=unsupported
15702 fi
15703 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15704 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15705
15706 if test "$hardcode_action_F77" = relink; then
15707   # Fast installation is not supported
15708   enable_fast_install=no
15709 elif test "$shlibpath_overrides_runpath" = yes ||
15710      test "$enable_shared" = no; then
15711   # Fast installation is not necessary
15712   enable_fast_install=needless
15713 fi
15714
15715
15716 # The else clause should only fire when bootstrapping the
15717 # libtool distribution, otherwise you forgot to ship ltmain.sh
15718 # with your package, and you will get complaints that there are
15719 # no rules to generate ltmain.sh.
15720 if test -f "$ltmain"; then
15721   # See if we are running on zsh, and set the options which allow our commands through
15722   # without removal of \ escapes.
15723   if test -n "${ZSH_VERSION+set}" ; then
15724     setopt NO_GLOB_SUBST
15725   fi
15726   # Now quote all the things that may contain metacharacters while being
15727   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15728   # variables and quote the copies for generation of the libtool script.
15729   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15730     SED SHELL STRIP \
15731     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15732     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15733     deplibs_check_method reload_flag reload_cmds need_locks \
15734     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15735     lt_cv_sys_global_symbol_to_c_name_address \
15736     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15737     old_postinstall_cmds old_postuninstall_cmds \
15738     compiler_F77 \
15739     CC_F77 \
15740     LD_F77 \
15741     lt_prog_compiler_wl_F77 \
15742     lt_prog_compiler_pic_F77 \
15743     lt_prog_compiler_static_F77 \
15744     lt_prog_compiler_no_builtin_flag_F77 \
15745     export_dynamic_flag_spec_F77 \
15746     thread_safe_flag_spec_F77 \
15747     whole_archive_flag_spec_F77 \
15748     enable_shared_with_static_runtimes_F77 \
15749     old_archive_cmds_F77 \
15750     old_archive_from_new_cmds_F77 \
15751     predep_objects_F77 \
15752     postdep_objects_F77 \
15753     predeps_F77 \
15754     postdeps_F77 \
15755     compiler_lib_search_path_F77 \
15756     archive_cmds_F77 \
15757     archive_expsym_cmds_F77 \
15758     postinstall_cmds_F77 \
15759     postuninstall_cmds_F77 \
15760     old_archive_from_expsyms_cmds_F77 \
15761     allow_undefined_flag_F77 \
15762     no_undefined_flag_F77 \
15763     export_symbols_cmds_F77 \
15764     hardcode_libdir_flag_spec_F77 \
15765     hardcode_libdir_flag_spec_ld_F77 \
15766     hardcode_libdir_separator_F77 \
15767     hardcode_automatic_F77 \
15768     module_cmds_F77 \
15769     module_expsym_cmds_F77 \
15770     lt_cv_prog_compiler_c_o_F77 \
15771     exclude_expsyms_F77 \
15772     include_expsyms_F77; do
15773
15774     case $var in
15775     old_archive_cmds_F77 | \
15776     old_archive_from_new_cmds_F77 | \
15777     archive_cmds_F77 | \
15778     archive_expsym_cmds_F77 | \
15779     module_cmds_F77 | \
15780     module_expsym_cmds_F77 | \
15781     old_archive_from_expsyms_cmds_F77 | \
15782     export_symbols_cmds_F77 | \
15783     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15784     postinstall_cmds | postuninstall_cmds | \
15785     old_postinstall_cmds | old_postuninstall_cmds | \
15786     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15787       # Double-quote double-evaled strings.
15788       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15789       ;;
15790     *)
15791       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15792       ;;
15793     esac
15794   done
15795
15796   case $lt_echo in
15797   *'\$0 --fallback-echo"')
15798     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15799     ;;
15800   esac
15801
15802 cfgfile="$ofile"
15803
15804   cat <<__EOF__ >> "$cfgfile"
15805 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15806
15807 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15808
15809 # Shell to use when invoking shell scripts.
15810 SHELL=$lt_SHELL
15811
15812 # Whether or not to build shared libraries.
15813 build_libtool_libs=$enable_shared
15814
15815 # Whether or not to build static libraries.
15816 build_old_libs=$enable_static
15817
15818 # Whether or not to add -lc for building shared libraries.
15819 build_libtool_need_lc=$archive_cmds_need_lc_F77
15820
15821 # Whether or not to disallow shared libs when runtime libs are static
15822 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15823
15824 # Whether or not to optimize for fast installation.
15825 fast_install=$enable_fast_install
15826
15827 # The host system.
15828 host_alias=$host_alias
15829 host=$host
15830 host_os=$host_os
15831
15832 # The build system.
15833 build_alias=$build_alias
15834 build=$build
15835 build_os=$build_os
15836
15837 # An echo program that does not interpret backslashes.
15838 echo=$lt_echo
15839
15840 # The archiver.
15841 AR=$lt_AR
15842 AR_FLAGS=$lt_AR_FLAGS
15843
15844 # A C compiler.
15845 LTCC=$lt_LTCC
15846
15847 # LTCC compiler flags.
15848 LTCFLAGS=$lt_LTCFLAGS
15849
15850 # A language-specific compiler.
15851 CC=$lt_compiler_F77
15852
15853 # Is the compiler the GNU C compiler?
15854 with_gcc=$GCC_F77
15855
15856 # An ERE matcher.
15857 EGREP=$lt_EGREP
15858
15859 # The linker used to build libraries.
15860 LD=$lt_LD_F77
15861
15862 # Whether we need hard or soft links.
15863 LN_S=$lt_LN_S
15864
15865 # A BSD-compatible nm program.
15866 NM=$lt_NM
15867
15868 # A symbol stripping program
15869 STRIP=$lt_STRIP
15870
15871 # Used to examine libraries when file_magic_cmd begins "file"
15872 MAGIC_CMD=$MAGIC_CMD
15873
15874 # Used on cygwin: DLL creation program.
15875 DLLTOOL="$DLLTOOL"
15876
15877 # Used on cygwin: object dumper.
15878 OBJDUMP="$OBJDUMP"
15879
15880 # Used on cygwin: assembler.
15881 AS="$AS"
15882
15883 # The name of the directory that contains temporary libtool files.
15884 objdir=$objdir
15885
15886 # How to create reloadable object files.
15887 reload_flag=$lt_reload_flag
15888 reload_cmds=$lt_reload_cmds
15889
15890 # How to pass a linker flag through the compiler.
15891 wl=$lt_lt_prog_compiler_wl_F77
15892
15893 # Object file suffix (normally "o").
15894 objext="$ac_objext"
15895
15896 # Old archive suffix (normally "a").
15897 libext="$libext"
15898
15899 # Shared library suffix (normally ".so").
15900 shrext_cmds='$shrext_cmds'
15901
15902 # Executable file suffix (normally "").
15903 exeext="$exeext"
15904
15905 # Additional compiler flags for building library objects.
15906 pic_flag=$lt_lt_prog_compiler_pic_F77
15907 pic_mode=$pic_mode
15908
15909 # What is the maximum length of a command?
15910 max_cmd_len=$lt_cv_sys_max_cmd_len
15911
15912 # Does compiler simultaneously support -c and -o options?
15913 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15914
15915 # Must we lock files when doing compilation?
15916 need_locks=$lt_need_locks
15917
15918 # Do we need the lib prefix for modules?
15919 need_lib_prefix=$need_lib_prefix
15920
15921 # Do we need a version for libraries?
15922 need_version=$need_version
15923
15924 # Whether dlopen is supported.
15925 dlopen_support=$enable_dlopen
15926
15927 # Whether dlopen of programs is supported.
15928 dlopen_self=$enable_dlopen_self
15929
15930 # Whether dlopen of statically linked programs is supported.
15931 dlopen_self_static=$enable_dlopen_self_static
15932
15933 # Compiler flag to prevent dynamic linking.
15934 link_static_flag=$lt_lt_prog_compiler_static_F77
15935
15936 # Compiler flag to turn off builtin functions.
15937 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15938
15939 # Compiler flag to allow reflexive dlopens.
15940 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15941
15942 # Compiler flag to generate shared objects directly from archives.
15943 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15944
15945 # Compiler flag to generate thread-safe objects.
15946 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15947
15948 # Library versioning type.
15949 version_type=$version_type
15950
15951 # Format of library name prefix.
15952 libname_spec=$lt_libname_spec
15953
15954 # List of archive names.  First name is the real one, the rest are links.
15955 # The last name is the one that the linker finds with -lNAME.
15956 library_names_spec=$lt_library_names_spec
15957
15958 # The coded name of the library, if different from the real name.
15959 soname_spec=$lt_soname_spec
15960
15961 # Commands used to build and install an old-style archive.
15962 RANLIB=$lt_RANLIB
15963 old_archive_cmds=$lt_old_archive_cmds_F77
15964 old_postinstall_cmds=$lt_old_postinstall_cmds
15965 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15966
15967 # Create an old-style archive from a shared archive.
15968 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15969
15970 # Create a temporary old-style archive to link instead of a shared archive.
15971 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15972
15973 # Commands used to build and install a shared archive.
15974 archive_cmds=$lt_archive_cmds_F77
15975 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15976 postinstall_cmds=$lt_postinstall_cmds
15977 postuninstall_cmds=$lt_postuninstall_cmds
15978
15979 # Commands used to build a loadable module (assumed same as above if empty)
15980 module_cmds=$lt_module_cmds_F77
15981 module_expsym_cmds=$lt_module_expsym_cmds_F77
15982
15983 # Commands to strip libraries.
15984 old_striplib=$lt_old_striplib
15985 striplib=$lt_striplib
15986
15987 # Dependencies to place before the objects being linked to create a
15988 # shared library.
15989 predep_objects=$lt_predep_objects_F77
15990
15991 # Dependencies to place after the objects being linked to create a
15992 # shared library.
15993 postdep_objects=$lt_postdep_objects_F77
15994
15995 # Dependencies to place before the objects being linked to create a
15996 # shared library.
15997 predeps=$lt_predeps_F77
15998
15999 # Dependencies to place after the objects being linked to create a
16000 # shared library.
16001 postdeps=$lt_postdeps_F77
16002
16003 # The library search path used internally by the compiler when linking
16004 # a shared library.
16005 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16006
16007 # Method to check whether dependent libraries are shared objects.
16008 deplibs_check_method=$lt_deplibs_check_method
16009
16010 # Command to use when deplibs_check_method == file_magic.
16011 file_magic_cmd=$lt_file_magic_cmd
16012
16013 # Flag that allows shared libraries with undefined symbols to be built.
16014 allow_undefined_flag=$lt_allow_undefined_flag_F77
16015
16016 # Flag that forces no undefined symbols.
16017 no_undefined_flag=$lt_no_undefined_flag_F77
16018
16019 # Commands used to finish a libtool library installation in a directory.
16020 finish_cmds=$lt_finish_cmds
16021
16022 # Same as above, but a single script fragment to be evaled but not shown.
16023 finish_eval=$lt_finish_eval
16024
16025 # Take the output of nm and produce a listing of raw symbols and C names.
16026 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16027
16028 # Transform the output of nm in a proper C declaration
16029 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16030
16031 # Transform the output of nm in a C name address pair
16032 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16033
16034 # This is the shared library runtime path variable.
16035 runpath_var=$runpath_var
16036
16037 # This is the shared library path variable.
16038 shlibpath_var=$shlibpath_var
16039
16040 # Is shlibpath searched before the hard-coded library search path?
16041 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16042
16043 # How to hardcode a shared library path into an executable.
16044 hardcode_action=$hardcode_action_F77
16045
16046 # Whether we should hardcode library paths into libraries.
16047 hardcode_into_libs=$hardcode_into_libs
16048
16049 # Flag to hardcode \$libdir into a binary during linking.
16050 # This must work even if \$libdir does not exist.
16051 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16052
16053 # If ld is used when linking, flag to hardcode \$libdir into
16054 # a binary during linking. This must work even if \$libdir does
16055 # not exist.
16056 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16057
16058 # Whether we need a single -rpath flag with a separated argument.
16059 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16060
16061 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16062 # resulting binary.
16063 hardcode_direct=$hardcode_direct_F77
16064
16065 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16066 # resulting binary.
16067 hardcode_minus_L=$hardcode_minus_L_F77
16068
16069 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16070 # the resulting binary.
16071 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16072
16073 # Set to yes if building a shared library automatically hardcodes DIR into the library
16074 # and all subsequent libraries and executables linked against it.
16075 hardcode_automatic=$hardcode_automatic_F77
16076
16077 # Variables whose values should be saved in libtool wrapper scripts and
16078 # restored at relink time.
16079 variables_saved_for_relink="$variables_saved_for_relink"
16080
16081 # Whether libtool must link a program against all its dependency libraries.
16082 link_all_deplibs=$link_all_deplibs_F77
16083
16084 # Compile-time system search path for libraries
16085 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16086
16087 # Run-time system search path for libraries
16088 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16089
16090 # Fix the shell variable \$srcfile for the compiler.
16091 fix_srcfile_path="$fix_srcfile_path_F77"
16092
16093 # Set to yes if exported symbols are required.
16094 always_export_symbols=$always_export_symbols_F77
16095
16096 # The commands to list exported symbols.
16097 export_symbols_cmds=$lt_export_symbols_cmds_F77
16098
16099 # The commands to extract the exported symbol list from a shared archive.
16100 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16101
16102 # Symbols that should not be listed in the preloaded symbols.
16103 exclude_expsyms=$lt_exclude_expsyms_F77
16104
16105 # Symbols that must always be exported.
16106 include_expsyms=$lt_include_expsyms_F77
16107
16108 # ### END LIBTOOL TAG CONFIG: $tagname
16109
16110 __EOF__
16111
16112
16113 else
16114   # If there is no Makefile yet, we rely on a make rule to execute
16115   # `config.status --recheck' to rerun these tests and create the
16116   # libtool script then.
16117   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16118   if test -f "$ltmain_in"; then
16119     test -f Makefile && make "$ltmain"
16120   fi
16121 fi
16122
16123
16124 ac_ext=c
16125 ac_cpp='$CPP $CPPFLAGS'
16126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16129
16130 CC="$lt_save_CC"
16131
16132         else
16133           tagname=""
16134         fi
16135         ;;
16136
16137       GCJ)
16138         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16139
16140
16141 # Source file extension for Java test sources.
16142 ac_ext=java
16143
16144 # Object file extension for compiled Java test sources.
16145 objext=o
16146 objext_GCJ=$objext
16147
16148 # Code to be used in simple compile tests
16149 lt_simple_compile_test_code="class foo {}\n"
16150
16151 # Code to be used in simple link tests
16152 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16153
16154 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16155
16156 # If no C compiler was specified, use CC.
16157 LTCC=${LTCC-"$CC"}
16158
16159 # If no C compiler flags were specified, use CFLAGS.
16160 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16161
16162 # Allow CC to be a program name with arguments.
16163 compiler=$CC
16164
16165
16166 # save warnings/boilerplate of simple test code
16167 ac_outfile=conftest.$ac_objext
16168 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16169 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16170 _lt_compiler_boilerplate=`cat conftest.err`
16171 $rm conftest*
16172
16173 ac_outfile=conftest.$ac_objext
16174 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16175 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16176 _lt_linker_boilerplate=`cat conftest.err`
16177 $rm conftest*
16178
16179
16180 # Allow CC to be a program name with arguments.
16181 lt_save_CC="$CC"
16182 CC=${GCJ-"gcj"}
16183 compiler=$CC
16184 compiler_GCJ=$CC
16185 for cc_temp in $compiler""; do
16186   case $cc_temp in
16187     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16188     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16189     \-*) ;;
16190     *) break;;
16191   esac
16192 done
16193 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16194
16195
16196 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16197 archive_cmds_need_lc_GCJ=no
16198
16199 old_archive_cmds_GCJ=$old_archive_cmds
16200
16201
16202 lt_prog_compiler_no_builtin_flag_GCJ=
16203
16204 if test "$GCC" = yes; then
16205   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16206
16207
16208 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16209 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16210 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16211   echo $ECHO_N "(cached) $ECHO_C" >&6
16212 else
16213   lt_cv_prog_compiler_rtti_exceptions=no
16214   ac_outfile=conftest.$ac_objext
16215    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16216    lt_compiler_flag="-fno-rtti -fno-exceptions"
16217    # Insert the option either (1) after the last *FLAGS variable, or
16218    # (2) before a word containing "conftest.", or (3) at the end.
16219    # Note that $ac_compile itself does not contain backslashes and begins
16220    # with a dollar sign (not a hyphen), so the echo should work correctly.
16221    # The option is referenced via a variable to avoid confusing sed.
16222    lt_compile=`echo "$ac_compile" | $SED \
16223    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16224    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16225    -e 's:$: $lt_compiler_flag:'`
16226    (eval echo "\"\$as_me:16226: $lt_compile\"" >&5)
16227    (eval "$lt_compile" 2>conftest.err)
16228    ac_status=$?
16229    cat conftest.err >&5
16230    echo "$as_me:16230: \$? = $ac_status" >&5
16231    if (exit $ac_status) && test -s "$ac_outfile"; then
16232      # The compiler can only warn and ignore the option if not recognized
16233      # So say no if there are warnings other than the usual output.
16234      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16235      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16236      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16237        lt_cv_prog_compiler_rtti_exceptions=yes
16238      fi
16239    fi
16240    $rm conftest*
16241
16242 fi
16243 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16244 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16245
16246 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16247     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16248 else
16249     :
16250 fi
16251
16252 fi
16253
16254 lt_prog_compiler_wl_GCJ=
16255 lt_prog_compiler_pic_GCJ=
16256 lt_prog_compiler_static_GCJ=
16257
16258 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16259 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16260
16261   if test "$GCC" = yes; then
16262     lt_prog_compiler_wl_GCJ='-Wl,'
16263     lt_prog_compiler_static_GCJ='-static'
16264
16265     case $host_os in
16266       aix*)
16267       # All AIX code is PIC.
16268       if test "$host_cpu" = ia64; then
16269         # AIX 5 now supports IA64 processor
16270         lt_prog_compiler_static_GCJ='-Bstatic'
16271       fi
16272       ;;
16273
16274     amigaos*)
16275       # FIXME: we need at least 68020 code to build shared libraries, but
16276       # adding the `-m68020' flag to GCC prevents building anything better,
16277       # like `-m68040'.
16278       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16279       ;;
16280
16281     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16282       # PIC is the default for these OSes.
16283       ;;
16284
16285     mingw* | pw32* | os2*)
16286       # This hack is so that the source file can tell whether it is being
16287       # built for inclusion in a dll (and should export symbols for example).
16288       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16289       ;;
16290
16291     darwin* | rhapsody*)
16292       # PIC is the default on this platform
16293       # Common symbols not allowed in MH_DYLIB files
16294       lt_prog_compiler_pic_GCJ='-fno-common'
16295       ;;
16296
16297     interix3*)
16298       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16299       # Instead, we relocate shared libraries at runtime.
16300       ;;
16301
16302     msdosdjgpp*)
16303       # Just because we use GCC doesn't mean we suddenly get shared libraries
16304       # on systems that don't support them.
16305       lt_prog_compiler_can_build_shared_GCJ=no
16306       enable_shared=no
16307       ;;
16308
16309     sysv4*MP*)
16310       if test -d /usr/nec; then
16311         lt_prog_compiler_pic_GCJ=-Kconform_pic
16312       fi
16313       ;;
16314
16315     hpux*)
16316       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16317       # not for PA HP-UX.
16318       case $host_cpu in
16319       hppa*64*|ia64*)
16320         # +Z the default
16321         ;;
16322       *)
16323         lt_prog_compiler_pic_GCJ='-fPIC'
16324         ;;
16325       esac
16326       ;;
16327
16328     *)
16329       lt_prog_compiler_pic_GCJ='-fPIC'
16330       ;;
16331     esac
16332   else
16333     # PORTME Check for flag to pass linker flags through the system compiler.
16334     case $host_os in
16335     aix*)
16336       lt_prog_compiler_wl_GCJ='-Wl,'
16337       if test "$host_cpu" = ia64; then
16338         # AIX 5 now supports IA64 processor
16339         lt_prog_compiler_static_GCJ='-Bstatic'
16340       else
16341         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16342       fi
16343       ;;
16344       darwin*)
16345         # PIC is the default on this platform
16346         # Common symbols not allowed in MH_DYLIB files
16347        case $cc_basename in
16348          xlc*)
16349          lt_prog_compiler_pic_GCJ='-qnocommon'
16350          lt_prog_compiler_wl_GCJ='-Wl,'
16351          ;;
16352        esac
16353        ;;
16354
16355     mingw* | pw32* | os2*)
16356       # This hack is so that the source file can tell whether it is being
16357       # built for inclusion in a dll (and should export symbols for example).
16358       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16359       ;;
16360
16361     hpux9* | hpux10* | hpux11*)
16362       lt_prog_compiler_wl_GCJ='-Wl,'
16363       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16364       # not for PA HP-UX.
16365       case $host_cpu in
16366       hppa*64*|ia64*)
16367         # +Z the default
16368         ;;
16369       *)
16370         lt_prog_compiler_pic_GCJ='+Z'
16371         ;;
16372       esac
16373       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16374       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16375       ;;
16376
16377     irix5* | irix6* | nonstopux*)
16378       lt_prog_compiler_wl_GCJ='-Wl,'
16379       # PIC (with -KPIC) is the default.
16380       lt_prog_compiler_static_GCJ='-non_shared'
16381       ;;
16382
16383     newsos6)
16384       lt_prog_compiler_pic_GCJ='-KPIC'
16385       lt_prog_compiler_static_GCJ='-Bstatic'
16386       ;;
16387
16388     linux* | k*bsd*-gnu)
16389       case $cc_basename in
16390       icc* | ecc*)
16391         lt_prog_compiler_wl_GCJ='-Wl,'
16392         lt_prog_compiler_pic_GCJ='-KPIC'
16393         lt_prog_compiler_static_GCJ='-static'
16394         ;;
16395       pgcc* | pgf77* | pgf90* | pgf95*)
16396         # Portland Group compilers (*not* the Pentium gcc compiler,
16397         # which looks to be a dead project)
16398         lt_prog_compiler_wl_GCJ='-Wl,'
16399         lt_prog_compiler_pic_GCJ='-fpic'
16400         lt_prog_compiler_static_GCJ='-Bstatic'
16401         ;;
16402       ccc*)
16403         lt_prog_compiler_wl_GCJ='-Wl,'
16404         # All Alpha code is PIC.
16405         lt_prog_compiler_static_GCJ='-non_shared'
16406         ;;
16407       esac
16408       ;;
16409
16410     osf3* | osf4* | osf5*)
16411       lt_prog_compiler_wl_GCJ='-Wl,'
16412       # All OSF/1 code is PIC.
16413       lt_prog_compiler_static_GCJ='-non_shared'
16414       ;;
16415
16416     solaris*)
16417       lt_prog_compiler_pic_GCJ='-KPIC'
16418       lt_prog_compiler_static_GCJ='-Bstatic'
16419       case $cc_basename in
16420       f77* | f90* | f95*)
16421         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16422       *)
16423         lt_prog_compiler_wl_GCJ='-Wl,';;
16424       esac
16425       ;;
16426
16427     sunos4*)
16428       lt_prog_compiler_wl_GCJ='-Qoption ld '
16429       lt_prog_compiler_pic_GCJ='-PIC'
16430       lt_prog_compiler_static_GCJ='-Bstatic'
16431       ;;
16432
16433     sysv4 | sysv4.2uw2* | sysv4.3*)
16434       lt_prog_compiler_wl_GCJ='-Wl,'
16435       lt_prog_compiler_pic_GCJ='-KPIC'
16436       lt_prog_compiler_static_GCJ='-Bstatic'
16437       ;;
16438
16439     sysv4*MP*)
16440       if test -d /usr/nec ;then
16441         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16442         lt_prog_compiler_static_GCJ='-Bstatic'
16443       fi
16444       ;;
16445
16446     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16447       lt_prog_compiler_wl_GCJ='-Wl,'
16448       lt_prog_compiler_pic_GCJ='-KPIC'
16449       lt_prog_compiler_static_GCJ='-Bstatic'
16450       ;;
16451
16452     unicos*)
16453       lt_prog_compiler_wl_GCJ='-Wl,'
16454       lt_prog_compiler_can_build_shared_GCJ=no
16455       ;;
16456
16457     uts4*)
16458       lt_prog_compiler_pic_GCJ='-pic'
16459       lt_prog_compiler_static_GCJ='-Bstatic'
16460       ;;
16461
16462     *)
16463       lt_prog_compiler_can_build_shared_GCJ=no
16464       ;;
16465     esac
16466   fi
16467
16468 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16469 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16470
16471 #
16472 # Check to make sure the PIC flag actually works.
16473 #
16474 if test -n "$lt_prog_compiler_pic_GCJ"; then
16475
16476 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16477 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16478 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16479   echo $ECHO_N "(cached) $ECHO_C" >&6
16480 else
16481   lt_prog_compiler_pic_works_GCJ=no
16482   ac_outfile=conftest.$ac_objext
16483    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16484    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16485    # Insert the option either (1) after the last *FLAGS variable, or
16486    # (2) before a word containing "conftest.", or (3) at the end.
16487    # Note that $ac_compile itself does not contain backslashes and begins
16488    # with a dollar sign (not a hyphen), so the echo should work correctly.
16489    # The option is referenced via a variable to avoid confusing sed.
16490    lt_compile=`echo "$ac_compile" | $SED \
16491    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16492    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16493    -e 's:$: $lt_compiler_flag:'`
16494    (eval echo "\"\$as_me:16494: $lt_compile\"" >&5)
16495    (eval "$lt_compile" 2>conftest.err)
16496    ac_status=$?
16497    cat conftest.err >&5
16498    echo "$as_me:16498: \$? = $ac_status" >&5
16499    if (exit $ac_status) && test -s "$ac_outfile"; then
16500      # The compiler can only warn and ignore the option if not recognized
16501      # So say no if there are warnings other than the usual output.
16502      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16503      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16504      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16505        lt_prog_compiler_pic_works_GCJ=yes
16506      fi
16507    fi
16508    $rm conftest*
16509
16510 fi
16511 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16512 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16513
16514 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16515     case $lt_prog_compiler_pic_GCJ in
16516      "" | " "*) ;;
16517      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16518      esac
16519 else
16520     lt_prog_compiler_pic_GCJ=
16521      lt_prog_compiler_can_build_shared_GCJ=no
16522 fi
16523
16524 fi
16525 case $host_os in
16526   # For platforms which do not support PIC, -DPIC is meaningless:
16527   *djgpp*)
16528     lt_prog_compiler_pic_GCJ=
16529     ;;
16530   *)
16531     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16532     ;;
16533 esac
16534
16535 #
16536 # Check to make sure the static flag actually works.
16537 #
16538 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16539 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16540 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16541 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16542   echo $ECHO_N "(cached) $ECHO_C" >&6
16543 else
16544   lt_prog_compiler_static_works_GCJ=no
16545    save_LDFLAGS="$LDFLAGS"
16546    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16547    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16548    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16549      # The linker can only warn and ignore the option if not recognized
16550      # So say no if there are warnings
16551      if test -s conftest.err; then
16552        # Append any errors to the config.log.
16553        cat conftest.err 1>&5
16554        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16555        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16556        if diff conftest.exp conftest.er2 >/dev/null; then
16557          lt_prog_compiler_static_works_GCJ=yes
16558        fi
16559      else
16560        lt_prog_compiler_static_works_GCJ=yes
16561      fi
16562    fi
16563    $rm conftest*
16564    LDFLAGS="$save_LDFLAGS"
16565
16566 fi
16567 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16568 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16569
16570 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16571     :
16572 else
16573     lt_prog_compiler_static_GCJ=
16574 fi
16575
16576
16577 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16578 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16579 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16580   echo $ECHO_N "(cached) $ECHO_C" >&6
16581 else
16582   lt_cv_prog_compiler_c_o_GCJ=no
16583    $rm -r conftest 2>/dev/null
16584    mkdir conftest
16585    cd conftest
16586    mkdir out
16587    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16588
16589    lt_compiler_flag="-o out/conftest2.$ac_objext"
16590    # Insert the option either (1) after the last *FLAGS variable, or
16591    # (2) before a word containing "conftest.", or (3) at the end.
16592    # Note that $ac_compile itself does not contain backslashes and begins
16593    # with a dollar sign (not a hyphen), so the echo should work correctly.
16594    lt_compile=`echo "$ac_compile" | $SED \
16595    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16596    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16597    -e 's:$: $lt_compiler_flag:'`
16598    (eval echo "\"\$as_me:16598: $lt_compile\"" >&5)
16599    (eval "$lt_compile" 2>out/conftest.err)
16600    ac_status=$?
16601    cat out/conftest.err >&5
16602    echo "$as_me:16602: \$? = $ac_status" >&5
16603    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16604    then
16605      # The compiler can only warn and ignore the option if not recognized
16606      # So say no if there are warnings
16607      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16608      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16609      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16610        lt_cv_prog_compiler_c_o_GCJ=yes
16611      fi
16612    fi
16613    chmod u+w . 2>&5
16614    $rm conftest*
16615    # SGI C++ compiler will create directory out/ii_files/ for
16616    # template instantiation
16617    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16618    $rm out/* && rmdir out
16619    cd ..
16620    rmdir conftest
16621    $rm conftest*
16622
16623 fi
16624 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16625 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16626
16627
16628 hard_links="nottested"
16629 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16630   # do not overwrite the value of need_locks provided by the user
16631   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16632 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16633   hard_links=yes
16634   $rm conftest*
16635   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16636   touch conftest.a
16637   ln conftest.a conftest.b 2>&5 || hard_links=no
16638   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16639   { echo "$as_me:$LINENO: result: $hard_links" >&5
16640 echo "${ECHO_T}$hard_links" >&6; }
16641   if test "$hard_links" = no; then
16642     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16643 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16644     need_locks=warn
16645   fi
16646 else
16647   need_locks=no
16648 fi
16649
16650 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16651 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16652
16653   runpath_var=
16654   allow_undefined_flag_GCJ=
16655   enable_shared_with_static_runtimes_GCJ=no
16656   archive_cmds_GCJ=
16657   archive_expsym_cmds_GCJ=
16658   old_archive_From_new_cmds_GCJ=
16659   old_archive_from_expsyms_cmds_GCJ=
16660   export_dynamic_flag_spec_GCJ=
16661   whole_archive_flag_spec_GCJ=
16662   thread_safe_flag_spec_GCJ=
16663   hardcode_libdir_flag_spec_GCJ=
16664   hardcode_libdir_flag_spec_ld_GCJ=
16665   hardcode_libdir_separator_GCJ=
16666   hardcode_direct_GCJ=no
16667   hardcode_minus_L_GCJ=no
16668   hardcode_shlibpath_var_GCJ=unsupported
16669   link_all_deplibs_GCJ=unknown
16670   hardcode_automatic_GCJ=no
16671   module_cmds_GCJ=
16672   module_expsym_cmds_GCJ=
16673   always_export_symbols_GCJ=no
16674   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16675   # include_expsyms should be a list of space-separated symbols to be *always*
16676   # included in the symbol list
16677   include_expsyms_GCJ=
16678   # exclude_expsyms can be an extended regexp of symbols to exclude
16679   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16680   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16681   # as well as any symbol that contains `d'.
16682   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16683   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16684   # platforms (ab)use it in PIC code, but their linkers get confused if
16685   # the symbol is explicitly referenced.  Since portable code cannot
16686   # rely on this symbol name, it's probably fine to never include it in
16687   # preloaded symbol tables.
16688   extract_expsyms_cmds=
16689   # Just being paranoid about ensuring that cc_basename is set.
16690   for cc_temp in $compiler""; do
16691   case $cc_temp in
16692     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16693     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16694     \-*) ;;
16695     *) break;;
16696   esac
16697 done
16698 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16699
16700   case $host_os in
16701   cygwin* | mingw* | pw32*)
16702     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16703     # When not using gcc, we currently assume that we are using
16704     # Microsoft Visual C++.
16705     if test "$GCC" != yes; then
16706       with_gnu_ld=no
16707     fi
16708     ;;
16709   interix*)
16710     # we just hope/assume this is gcc and not c89 (= MSVC++)
16711     with_gnu_ld=yes
16712     ;;
16713   openbsd*)
16714     with_gnu_ld=no
16715     ;;
16716   esac
16717
16718   ld_shlibs_GCJ=yes
16719   if test "$with_gnu_ld" = yes; then
16720     # If archive_cmds runs LD, not CC, wlarc should be empty
16721     wlarc='${wl}'
16722
16723     # Set some defaults for GNU ld with shared library support. These
16724     # are reset later if shared libraries are not supported. Putting them
16725     # here allows them to be overridden if necessary.
16726     runpath_var=LD_RUN_PATH
16727     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16728     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16729     # ancient GNU ld didn't support --whole-archive et. al.
16730     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16731         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16732       else
16733         whole_archive_flag_spec_GCJ=
16734     fi
16735     supports_anon_versioning=no
16736     case `$LD -v 2>/dev/null` in
16737       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16738       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16739       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16740       *\ 2.11.*) ;; # other 2.11 versions
16741       *) supports_anon_versioning=yes ;;
16742     esac
16743
16744     # See if GNU ld supports shared libraries.
16745     case $host_os in
16746     aix3* | aix4* | aix5*)
16747       # On AIX/PPC, the GNU linker is very broken
16748       if test "$host_cpu" != ia64; then
16749         ld_shlibs_GCJ=no
16750         cat <<EOF 1>&2
16751
16752 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16753 *** to be unable to reliably create shared libraries on AIX.
16754 *** Therefore, libtool is disabling shared libraries support.  If you
16755 *** really care for shared libraries, you may want to modify your PATH
16756 *** so that a non-GNU linker is found, and then restart.
16757
16758 EOF
16759       fi
16760       ;;
16761
16762     amigaos*)
16763       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)'
16764       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16765       hardcode_minus_L_GCJ=yes
16766
16767       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16768       # that the semantics of dynamic libraries on AmigaOS, at least up
16769       # to version 4, is to share data among multiple programs linked
16770       # with the same dynamic library.  Since this doesn't match the
16771       # behavior of shared libraries on other platforms, we can't use
16772       # them.
16773       ld_shlibs_GCJ=no
16774       ;;
16775
16776     beos*)
16777       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16778         allow_undefined_flag_GCJ=unsupported
16779         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16780         # support --undefined.  This deserves some investigation.  FIXME
16781         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16782       else
16783         ld_shlibs_GCJ=no
16784       fi
16785       ;;
16786
16787     cygwin* | mingw* | pw32*)
16788       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16789       # as there is no search path for DLLs.
16790       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16791       allow_undefined_flag_GCJ=unsupported
16792       always_export_symbols_GCJ=no
16793       enable_shared_with_static_runtimes_GCJ=yes
16794       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16795
16796       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16797         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16798         # If the export-symbols file already is a .def file (1st line
16799         # is EXPORTS), use it as is; otherwise, prepend...
16800         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16801           cp $export_symbols $output_objdir/$soname.def;
16802         else
16803           echo EXPORTS > $output_objdir/$soname.def;
16804           cat $export_symbols >> $output_objdir/$soname.def;
16805         fi~
16806         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16807       else
16808         ld_shlibs_GCJ=no
16809       fi
16810       ;;
16811
16812     interix3*)
16813       hardcode_direct_GCJ=no
16814       hardcode_shlibpath_var_GCJ=no
16815       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16816       export_dynamic_flag_spec_GCJ='${wl}-E'
16817       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16818       # Instead, shared libraries are loaded at an image base (0x10000000 by
16819       # default) and relocated if they conflict, which is a slow very memory
16820       # consuming and fragmenting process.  To avoid this, we pick a random,
16821       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16822       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16823       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'
16824       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'
16825       ;;
16826
16827     linux* | k*bsd*-gnu)
16828       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16829         tmp_addflag=
16830         case $cc_basename,$host_cpu in
16831         pgcc*)                          # Portland Group C compiler
16832           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'
16833           tmp_addflag=' $pic_flag'
16834           ;;
16835         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16836           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'
16837           tmp_addflag=' $pic_flag -Mnomain' ;;
16838         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16839           tmp_addflag=' -i_dynamic' ;;
16840         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16841           tmp_addflag=' -i_dynamic -nofor_main' ;;
16842         ifc* | ifort*)                  # Intel Fortran compiler
16843           tmp_addflag=' -nofor_main' ;;
16844         esac
16845         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16846
16847         if test $supports_anon_versioning = yes; then
16848           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16849   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16850   $echo "local: *; };" >> $output_objdir/$libname.ver~
16851           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16852         fi
16853         link_all_deplibs_GCJ=no
16854       else
16855         ld_shlibs_GCJ=no
16856       fi
16857       ;;
16858
16859     netbsd* | netbsdelf*-gnu)
16860       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16861         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16862         wlarc=
16863       else
16864         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16865         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16866       fi
16867       ;;
16868
16869     solaris*)
16870       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16871         ld_shlibs_GCJ=no
16872         cat <<EOF 1>&2
16873
16874 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16875 *** create shared libraries on Solaris systems.  Therefore, libtool
16876 *** is disabling shared libraries support.  We urge you to upgrade GNU
16877 *** binutils to release 2.9.1 or newer.  Another option is to modify
16878 *** your PATH or compiler configuration so that the native linker is
16879 *** used, and then restart.
16880
16881 EOF
16882       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16883         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16884         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16885       else
16886         ld_shlibs_GCJ=no
16887       fi
16888       ;;
16889
16890     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16891       case `$LD -v 2>&1` in
16892         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16893         ld_shlibs_GCJ=no
16894         cat <<_LT_EOF 1>&2
16895
16896 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16897 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16898 *** is disabling shared libraries support.  We urge you to upgrade GNU
16899 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16900 *** your PATH or compiler configuration so that the native linker is
16901 *** used, and then restart.
16902
16903 _LT_EOF
16904         ;;
16905         *)
16906           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16907             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16908             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16909             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16910           else
16911             ld_shlibs_GCJ=no
16912           fi
16913         ;;
16914       esac
16915       ;;
16916
16917     sunos4*)
16918       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16919       wlarc=
16920       hardcode_direct_GCJ=yes
16921       hardcode_shlibpath_var_GCJ=no
16922       ;;
16923
16924     *)
16925       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16926         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16927         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16928       else
16929         ld_shlibs_GCJ=no
16930       fi
16931       ;;
16932     esac
16933
16934     if test "$ld_shlibs_GCJ" = no; then
16935       runpath_var=
16936       hardcode_libdir_flag_spec_GCJ=
16937       export_dynamic_flag_spec_GCJ=
16938       whole_archive_flag_spec_GCJ=
16939     fi
16940   else
16941     # PORTME fill in a description of your system's linker (not GNU ld)
16942     case $host_os in
16943     aix3*)
16944       allow_undefined_flag_GCJ=unsupported
16945       always_export_symbols_GCJ=yes
16946       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'
16947       # Note: this linker hardcodes the directories in LIBPATH if there
16948       # are no directories specified by -L.
16949       hardcode_minus_L_GCJ=yes
16950       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16951         # Neither direct hardcoding nor static linking is supported with a
16952         # broken collect2.
16953         hardcode_direct_GCJ=unsupported
16954       fi
16955       ;;
16956
16957     aix4* | aix5*)
16958       if test "$host_cpu" = ia64; then
16959         # On IA64, the linker does run time linking by default, so we don't
16960         # have to do anything special.
16961         aix_use_runtimelinking=no
16962         exp_sym_flag='-Bexport'
16963         no_entry_flag=""
16964       else
16965         # If we're using GNU nm, then we don't want the "-C" option.
16966         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16967         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16968           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'
16969         else
16970           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'
16971         fi
16972         aix_use_runtimelinking=no
16973
16974         # Test if we are trying to use run time linking or normal
16975         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16976         # need to do runtime linking.
16977         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16978           for ld_flag in $LDFLAGS; do
16979           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16980             aix_use_runtimelinking=yes
16981             break
16982           fi
16983           done
16984           ;;
16985         esac
16986
16987         exp_sym_flag='-bexport'
16988         no_entry_flag='-bnoentry'
16989       fi
16990
16991       # When large executables or shared objects are built, AIX ld can
16992       # have problems creating the table of contents.  If linking a library
16993       # or program results in "error TOC overflow" add -mminimal-toc to
16994       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16995       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16996
16997       archive_cmds_GCJ=''
16998       hardcode_direct_GCJ=yes
16999       hardcode_libdir_separator_GCJ=':'
17000       link_all_deplibs_GCJ=yes
17001
17002       if test "$GCC" = yes; then
17003         case $host_os in aix4.[012]|aix4.[012].*)
17004         # We only want to do this on AIX 4.2 and lower, the check
17005         # below for broken collect2 doesn't work under 4.3+
17006           collect2name=`${CC} -print-prog-name=collect2`
17007           if test -f "$collect2name" && \
17008            strings "$collect2name" | grep resolve_lib_name >/dev/null
17009           then
17010           # We have reworked collect2
17011           hardcode_direct_GCJ=yes
17012           else
17013           # We have old collect2
17014           hardcode_direct_GCJ=unsupported
17015           # It fails to find uninstalled libraries when the uninstalled
17016           # path is not listed in the libpath.  Setting hardcode_minus_L
17017           # to unsupported forces relinking
17018           hardcode_minus_L_GCJ=yes
17019           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17020           hardcode_libdir_separator_GCJ=
17021           fi
17022           ;;
17023         esac
17024         shared_flag='-shared'
17025         if test "$aix_use_runtimelinking" = yes; then
17026           shared_flag="$shared_flag "'${wl}-G'
17027         fi
17028       else
17029         # not using gcc
17030         if test "$host_cpu" = ia64; then
17031         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17032         # chokes on -Wl,-G. The following line is correct:
17033           shared_flag='-G'
17034         else
17035           if test "$aix_use_runtimelinking" = yes; then
17036             shared_flag='${wl}-G'
17037           else
17038             shared_flag='${wl}-bM:SRE'
17039           fi
17040         fi
17041       fi
17042
17043       # It seems that -bexpall does not export symbols beginning with
17044       # underscore (_), so it is better to generate a list of symbols to export.
17045       always_export_symbols_GCJ=yes
17046       if test "$aix_use_runtimelinking" = yes; then
17047         # Warning - without using the other runtime loading flags (-brtl),
17048         # -berok will link without error, but may produce a broken library.
17049         allow_undefined_flag_GCJ='-berok'
17050        # Determine the default libpath from the value encoded in an empty executable.
17051        cat >conftest.$ac_ext <<_ACEOF
17052 /* confdefs.h.  */
17053 _ACEOF
17054 cat confdefs.h >>conftest.$ac_ext
17055 cat >>conftest.$ac_ext <<_ACEOF
17056 /* end confdefs.h.  */
17057
17058 int
17059 main ()
17060 {
17061
17062   ;
17063   return 0;
17064 }
17065 _ACEOF
17066 rm -f conftest.$ac_objext conftest$ac_exeext
17067 if { (ac_try="$ac_link"
17068 case "(($ac_try" in
17069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070   *) ac_try_echo=$ac_try;;
17071 esac
17072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073   (eval "$ac_link") 2>conftest.er1
17074   ac_status=$?
17075   grep -v '^ *+' conftest.er1 >conftest.err
17076   rm -f conftest.er1
17077   cat conftest.err >&5
17078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079   (exit $ac_status); } && {
17080          test -z "$ac_c_werror_flag" ||
17081          test ! -s conftest.err
17082        } && test -s conftest$ac_exeext &&
17083        $as_test_x conftest$ac_exeext; then
17084
17085 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17086 }'`
17087 # Check for a 64-bit object if we didn't find anything.
17088 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17089 }'`; fi
17090 else
17091   echo "$as_me: failed program was:" >&5
17092 sed 's/^/| /' conftest.$ac_ext >&5
17093
17094
17095 fi
17096
17097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17098       conftest$ac_exeext conftest.$ac_ext
17099 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17100
17101        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17102         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"
17103        else
17104         if test "$host_cpu" = ia64; then
17105           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17106           allow_undefined_flag_GCJ="-z nodefs"
17107           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"
17108         else
17109          # Determine the default libpath from the value encoded in an empty executable.
17110          cat >conftest.$ac_ext <<_ACEOF
17111 /* confdefs.h.  */
17112 _ACEOF
17113 cat confdefs.h >>conftest.$ac_ext
17114 cat >>conftest.$ac_ext <<_ACEOF
17115 /* end confdefs.h.  */
17116
17117 int
17118 main ()
17119 {
17120
17121   ;
17122   return 0;
17123 }
17124 _ACEOF
17125 rm -f conftest.$ac_objext conftest$ac_exeext
17126 if { (ac_try="$ac_link"
17127 case "(($ac_try" in
17128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17129   *) ac_try_echo=$ac_try;;
17130 esac
17131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17132   (eval "$ac_link") 2>conftest.er1
17133   ac_status=$?
17134   grep -v '^ *+' conftest.er1 >conftest.err
17135   rm -f conftest.er1
17136   cat conftest.err >&5
17137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138   (exit $ac_status); } && {
17139          test -z "$ac_c_werror_flag" ||
17140          test ! -s conftest.err
17141        } && test -s conftest$ac_exeext &&
17142        $as_test_x conftest$ac_exeext; then
17143
17144 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17145 }'`
17146 # Check for a 64-bit object if we didn't find anything.
17147 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17148 }'`; fi
17149 else
17150   echo "$as_me: failed program was:" >&5
17151 sed 's/^/| /' conftest.$ac_ext >&5
17152
17153
17154 fi
17155
17156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17157       conftest$ac_exeext conftest.$ac_ext
17158 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17159
17160          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17161           # Warning - without using the other run time loading flags,
17162           # -berok will link without error, but may produce a broken library.
17163           no_undefined_flag_GCJ=' ${wl}-bernotok'
17164           allow_undefined_flag_GCJ=' ${wl}-berok'
17165           # Exported symbols can be pulled into shared objects from archives
17166           whole_archive_flag_spec_GCJ='$convenience'
17167           archive_cmds_need_lc_GCJ=yes
17168           # This is similar to how AIX traditionally builds its shared libraries.
17169           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'
17170         fi
17171       fi
17172       ;;
17173
17174     amigaos*)
17175       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)'
17176       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17177       hardcode_minus_L_GCJ=yes
17178       # see comment about different semantics on the GNU ld section
17179       ld_shlibs_GCJ=no
17180       ;;
17181
17182     bsdi[45]*)
17183       export_dynamic_flag_spec_GCJ=-rdynamic
17184       ;;
17185
17186     cygwin* | mingw* | pw32*)
17187       # When not using gcc, we currently assume that we are using
17188       # Microsoft Visual C++.
17189       # hardcode_libdir_flag_spec is actually meaningless, as there is
17190       # no search path for DLLs.
17191       hardcode_libdir_flag_spec_GCJ=' '
17192       allow_undefined_flag_GCJ=unsupported
17193       # Tell ltmain to make .lib files, not .a files.
17194       libext=lib
17195       # Tell ltmain to make .dll files, not .so files.
17196       shrext_cmds=".dll"
17197       # FIXME: Setting linknames here is a bad hack.
17198       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17199       # The linker will automatically build a .lib file if we build a DLL.
17200       old_archive_From_new_cmds_GCJ='true'
17201       # FIXME: Should let the user specify the lib program.
17202       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17203       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17204       enable_shared_with_static_runtimes_GCJ=yes
17205       ;;
17206
17207     darwin* | rhapsody*)
17208       case $host_os in
17209         rhapsody* | darwin1.[012])
17210          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17211          ;;
17212        *) # Darwin 1.3 on
17213          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17214            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17215          else
17216            case ${MACOSX_DEPLOYMENT_TARGET} in
17217              10.[012])
17218                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17219                ;;
17220              10.*)
17221                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17222                ;;
17223            esac
17224          fi
17225          ;;
17226       esac
17227       archive_cmds_need_lc_GCJ=no
17228       hardcode_direct_GCJ=no
17229       hardcode_automatic_GCJ=yes
17230       hardcode_shlibpath_var_GCJ=unsupported
17231       whole_archive_flag_spec_GCJ=''
17232       link_all_deplibs_GCJ=yes
17233     if test "$GCC" = yes ; then
17234         output_verbose_link_cmd='echo'
17235         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17236       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17237       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17238       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17239       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}'
17240     else
17241       case $cc_basename in
17242         xlc*)
17243          output_verbose_link_cmd='echo'
17244          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17245          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17246           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17247          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17248           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}'
17249           ;;
17250        *)
17251          ld_shlibs_GCJ=no
17252           ;;
17253       esac
17254     fi
17255       ;;
17256
17257     dgux*)
17258       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17259       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17260       hardcode_shlibpath_var_GCJ=no
17261       ;;
17262
17263     freebsd1*)
17264       ld_shlibs_GCJ=no
17265       ;;
17266
17267     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17268     # support.  Future versions do this automatically, but an explicit c++rt0.o
17269     # does not break anything, and helps significantly (at the cost of a little
17270     # extra space).
17271     freebsd2.2*)
17272       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17273       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17274       hardcode_direct_GCJ=yes
17275       hardcode_shlibpath_var_GCJ=no
17276       ;;
17277
17278     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17279     freebsd2*)
17280       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17281       hardcode_direct_GCJ=yes
17282       hardcode_minus_L_GCJ=yes
17283       hardcode_shlibpath_var_GCJ=no
17284       ;;
17285
17286     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17287     freebsd* | dragonfly*)
17288       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17289       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17290       hardcode_direct_GCJ=yes
17291       hardcode_shlibpath_var_GCJ=no
17292       ;;
17293
17294     hpux9*)
17295       if test "$GCC" = yes; then
17296         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'
17297       else
17298         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'
17299       fi
17300       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17301       hardcode_libdir_separator_GCJ=:
17302       hardcode_direct_GCJ=yes
17303
17304       # hardcode_minus_L: Not really in the search PATH,
17305       # but as the default location of the library.
17306       hardcode_minus_L_GCJ=yes
17307       export_dynamic_flag_spec_GCJ='${wl}-E'
17308       ;;
17309
17310     hpux10*)
17311       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17312         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17313       else
17314         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17315       fi
17316       if test "$with_gnu_ld" = no; then
17317         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17318         hardcode_libdir_separator_GCJ=:
17319
17320         hardcode_direct_GCJ=yes
17321         export_dynamic_flag_spec_GCJ='${wl}-E'
17322
17323         # hardcode_minus_L: Not really in the search PATH,
17324         # but as the default location of the library.
17325         hardcode_minus_L_GCJ=yes
17326       fi
17327       ;;
17328
17329     hpux11*)
17330       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17331         case $host_cpu in
17332         hppa*64*)
17333           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17334           ;;
17335         ia64*)
17336           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17337           ;;
17338         *)
17339           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17340           ;;
17341         esac
17342       else
17343         case $host_cpu in
17344         hppa*64*)
17345           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17346           ;;
17347         ia64*)
17348           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17349           ;;
17350         *)
17351           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17352           ;;
17353         esac
17354       fi
17355       if test "$with_gnu_ld" = no; then
17356         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17357         hardcode_libdir_separator_GCJ=:
17358
17359         case $host_cpu in
17360         hppa*64*|ia64*)
17361           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17362           hardcode_direct_GCJ=no
17363           hardcode_shlibpath_var_GCJ=no
17364           ;;
17365         *)
17366           hardcode_direct_GCJ=yes
17367           export_dynamic_flag_spec_GCJ='${wl}-E'
17368
17369           # hardcode_minus_L: Not really in the search PATH,
17370           # but as the default location of the library.
17371           hardcode_minus_L_GCJ=yes
17372           ;;
17373         esac
17374       fi
17375       ;;
17376
17377     irix5* | irix6* | nonstopux*)
17378       if test "$GCC" = yes; then
17379         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'
17380       else
17381         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'
17382         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17383       fi
17384       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17385       hardcode_libdir_separator_GCJ=:
17386       link_all_deplibs_GCJ=yes
17387       ;;
17388
17389     netbsd* | netbsdelf*-gnu)
17390       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17391         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17392       else
17393         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17394       fi
17395       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17396       hardcode_direct_GCJ=yes
17397       hardcode_shlibpath_var_GCJ=no
17398       ;;
17399
17400     newsos6)
17401       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17402       hardcode_direct_GCJ=yes
17403       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17404       hardcode_libdir_separator_GCJ=:
17405       hardcode_shlibpath_var_GCJ=no
17406       ;;
17407
17408     openbsd*)
17409       hardcode_direct_GCJ=yes
17410       hardcode_shlibpath_var_GCJ=no
17411       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17412         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17413         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17414         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17415         export_dynamic_flag_spec_GCJ='${wl}-E'
17416       else
17417        case $host_os in
17418          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17419            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17420            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17421            ;;
17422          *)
17423            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17424            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17425            ;;
17426        esac
17427       fi
17428       ;;
17429
17430     os2*)
17431       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17432       hardcode_minus_L_GCJ=yes
17433       allow_undefined_flag_GCJ=unsupported
17434       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'
17435       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17436       ;;
17437
17438     osf3*)
17439       if test "$GCC" = yes; then
17440         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17441         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'
17442       else
17443         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17444         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'
17445       fi
17446       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17447       hardcode_libdir_separator_GCJ=:
17448       ;;
17449
17450     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17451       if test "$GCC" = yes; then
17452         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17453         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'
17454         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17455       else
17456         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17457         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'
17458         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~
17459         $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'
17460
17461         # Both c and cxx compiler support -rpath directly
17462         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17463       fi
17464       hardcode_libdir_separator_GCJ=:
17465       ;;
17466
17467     solaris*)
17468       no_undefined_flag_GCJ=' -z text'
17469       if test "$GCC" = yes; then
17470         wlarc='${wl}'
17471         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17472         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17473           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17474       else
17475         wlarc=''
17476         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17477         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17478         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17479       fi
17480       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17481       hardcode_shlibpath_var_GCJ=no
17482       case $host_os in
17483       solaris2.[0-5] | solaris2.[0-5].*) ;;
17484       *)
17485         # The compiler driver will combine linker options so we
17486         # cannot just pass the convience library names through
17487         # without $wl, iff we do not link with $LD.
17488         # Luckily, gcc supports the same syntax we need for Sun Studio.
17489         # Supported since Solaris 2.6 (maybe 2.5.1?)
17490         case $wlarc in
17491         '')
17492           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17493         *)
17494           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17495         esac ;;
17496       esac
17497       link_all_deplibs_GCJ=yes
17498       ;;
17499
17500     sunos4*)
17501       if test "x$host_vendor" = xsequent; then
17502         # Use $CC to link under sequent, because it throws in some extra .o
17503         # files that make .init and .fini sections work.
17504         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17505       else
17506         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17507       fi
17508       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17509       hardcode_direct_GCJ=yes
17510       hardcode_minus_L_GCJ=yes
17511       hardcode_shlibpath_var_GCJ=no
17512       ;;
17513
17514     sysv4)
17515       case $host_vendor in
17516         sni)
17517           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17518           hardcode_direct_GCJ=yes # is this really true???
17519         ;;
17520         siemens)
17521           ## LD is ld it makes a PLAMLIB
17522           ## CC just makes a GrossModule.
17523           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17524           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17525           hardcode_direct_GCJ=no
17526         ;;
17527         motorola)
17528           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17529           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17530         ;;
17531       esac
17532       runpath_var='LD_RUN_PATH'
17533       hardcode_shlibpath_var_GCJ=no
17534       ;;
17535
17536     sysv4.3*)
17537       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17538       hardcode_shlibpath_var_GCJ=no
17539       export_dynamic_flag_spec_GCJ='-Bexport'
17540       ;;
17541
17542     sysv4*MP*)
17543       if test -d /usr/nec; then
17544         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17545         hardcode_shlibpath_var_GCJ=no
17546         runpath_var=LD_RUN_PATH
17547         hardcode_runpath_var=yes
17548         ld_shlibs_GCJ=yes
17549       fi
17550       ;;
17551
17552     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17553       no_undefined_flag_GCJ='${wl}-z,text'
17554       archive_cmds_need_lc_GCJ=no
17555       hardcode_shlibpath_var_GCJ=no
17556       runpath_var='LD_RUN_PATH'
17557
17558       if test "$GCC" = yes; then
17559         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17560         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17561       else
17562         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17563         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17564       fi
17565       ;;
17566
17567     sysv5* | sco3.2v5* | sco5v6*)
17568       # Note: We can NOT use -z defs as we might desire, because we do not
17569       # link with -lc, and that would cause any symbols used from libc to
17570       # always be unresolved, which means just about no library would
17571       # ever link correctly.  If we're not using GNU ld we use -z text
17572       # though, which does catch some bad symbols but isn't as heavy-handed
17573       # as -z defs.
17574       no_undefined_flag_GCJ='${wl}-z,text'
17575       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17576       archive_cmds_need_lc_GCJ=no
17577       hardcode_shlibpath_var_GCJ=no
17578       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17579       hardcode_libdir_separator_GCJ=':'
17580       link_all_deplibs_GCJ=yes
17581       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17582       runpath_var='LD_RUN_PATH'
17583
17584       if test "$GCC" = yes; then
17585         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17586         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17587       else
17588         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17589         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17590       fi
17591       ;;
17592
17593     uts4*)
17594       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17595       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17596       hardcode_shlibpath_var_GCJ=no
17597       ;;
17598
17599     *)
17600       ld_shlibs_GCJ=no
17601       ;;
17602     esac
17603   fi
17604
17605 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17606 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17607 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17608
17609 #
17610 # Do we need to explicitly link libc?
17611 #
17612 case "x$archive_cmds_need_lc_GCJ" in
17613 x|xyes)
17614   # Assume -lc should be added
17615   archive_cmds_need_lc_GCJ=yes
17616
17617   if test "$enable_shared" = yes && test "$GCC" = yes; then
17618     case $archive_cmds_GCJ in
17619     *'~'*)
17620       # FIXME: we may have to deal with multi-command sequences.
17621       ;;
17622     '$CC '*)
17623       # Test whether the compiler implicitly links with -lc since on some
17624       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17625       # to ld, don't add -lc before -lgcc.
17626       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17627 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17628       $rm conftest*
17629       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17630
17631       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17632   (eval $ac_compile) 2>&5
17633   ac_status=$?
17634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635   (exit $ac_status); } 2>conftest.err; then
17636         soname=conftest
17637         lib=conftest
17638         libobjs=conftest.$ac_objext
17639         deplibs=
17640         wl=$lt_prog_compiler_wl_GCJ
17641         pic_flag=$lt_prog_compiler_pic_GCJ
17642         compiler_flags=-v
17643         linker_flags=-v
17644         verstring=
17645         output_objdir=.
17646         libname=conftest
17647         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17648         allow_undefined_flag_GCJ=
17649         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17650   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17651   ac_status=$?
17652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653   (exit $ac_status); }
17654         then
17655           archive_cmds_need_lc_GCJ=no
17656         else
17657           archive_cmds_need_lc_GCJ=yes
17658         fi
17659         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17660       else
17661         cat conftest.err 1>&5
17662       fi
17663       $rm conftest*
17664       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17665 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17666       ;;
17667     esac
17668   fi
17669   ;;
17670 esac
17671
17672 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17673 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17674 library_names_spec=
17675 libname_spec='lib$name'
17676 soname_spec=
17677 shrext_cmds=".so"
17678 postinstall_cmds=
17679 postuninstall_cmds=
17680 finish_cmds=
17681 finish_eval=
17682 shlibpath_var=
17683 shlibpath_overrides_runpath=unknown
17684 version_type=none
17685 dynamic_linker="$host_os ld.so"
17686 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17687 if test "$GCC" = yes; then
17688   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17689   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17690     # if the path contains ";" then we assume it to be the separator
17691     # otherwise default to the standard path separator (i.e. ":") - it is
17692     # assumed that no part of a normal pathname contains ";" but that should
17693     # okay in the real world where ";" in dirpaths is itself problematic.
17694     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17695   else
17696     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17697   fi
17698 else
17699   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17700 fi
17701 need_lib_prefix=unknown
17702 hardcode_into_libs=no
17703
17704 # when you set need_version to no, make sure it does not cause -set_version
17705 # flags to be left without arguments
17706 need_version=unknown
17707
17708 case $host_os in
17709 aix3*)
17710   version_type=linux
17711   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17712   shlibpath_var=LIBPATH
17713
17714   # AIX 3 has no versioning support, so we append a major version to the name.
17715   soname_spec='${libname}${release}${shared_ext}$major'
17716   ;;
17717
17718 aix4* | aix5*)
17719   version_type=linux
17720   need_lib_prefix=no
17721   need_version=no
17722   hardcode_into_libs=yes
17723   if test "$host_cpu" = ia64; then
17724     # AIX 5 supports IA64
17725     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17726     shlibpath_var=LD_LIBRARY_PATH
17727   else
17728     # With GCC up to 2.95.x, collect2 would create an import file
17729     # for dependence libraries.  The import file would start with
17730     # the line `#! .'.  This would cause the generated library to
17731     # depend on `.', always an invalid library.  This was fixed in
17732     # development snapshots of GCC prior to 3.0.
17733     case $host_os in
17734       aix4 | aix4.[01] | aix4.[01].*)
17735       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17736            echo ' yes '
17737            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17738         :
17739       else
17740         can_build_shared=no
17741       fi
17742       ;;
17743     esac
17744     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17745     # soname into executable. Probably we can add versioning support to
17746     # collect2, so additional links can be useful in future.
17747     if test "$aix_use_runtimelinking" = yes; then
17748       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17749       # instead of lib<name>.a to let people know that these are not
17750       # typical AIX shared libraries.
17751       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17752     else
17753       # We preserve .a as extension for shared libraries through AIX4.2
17754       # and later when we are not doing run time linking.
17755       library_names_spec='${libname}${release}.a $libname.a'
17756       soname_spec='${libname}${release}${shared_ext}$major'
17757     fi
17758     shlibpath_var=LIBPATH
17759   fi
17760   ;;
17761
17762 amigaos*)
17763   library_names_spec='$libname.ixlibrary $libname.a'
17764   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17765   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'
17766   ;;
17767
17768 beos*)
17769   library_names_spec='${libname}${shared_ext}'
17770   dynamic_linker="$host_os ld.so"
17771   shlibpath_var=LIBRARY_PATH
17772   ;;
17773
17774 bsdi[45]*)
17775   version_type=linux
17776   need_version=no
17777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17778   soname_spec='${libname}${release}${shared_ext}$major'
17779   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17780   shlibpath_var=LD_LIBRARY_PATH
17781   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17782   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17783   # the default ld.so.conf also contains /usr/contrib/lib and
17784   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17785   # libtool to hard-code these into programs
17786   ;;
17787
17788 cygwin* | mingw* | pw32*)
17789   version_type=windows
17790   shrext_cmds=".dll"
17791   need_version=no
17792   need_lib_prefix=no
17793
17794   case $GCC,$host_os in
17795   yes,cygwin* | yes,mingw* | yes,pw32*)
17796     library_names_spec='$libname.dll.a'
17797     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17798     postinstall_cmds='base_file=`basename \${file}`~
17799       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17800       dldir=$destdir/`dirname \$dlpath`~
17801       test -d \$dldir || mkdir -p \$dldir~
17802       $install_prog $dir/$dlname \$dldir/$dlname~
17803       chmod a+x \$dldir/$dlname'
17804     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17805       dlpath=$dir/\$dldll~
17806        $rm \$dlpath'
17807     shlibpath_overrides_runpath=yes
17808
17809     case $host_os in
17810     cygwin*)
17811       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17812       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17813       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17814       ;;
17815     mingw*)
17816       # MinGW DLLs use traditional 'lib' prefix
17817       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17818       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17819       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17820         # It is most probably a Windows format PATH printed by
17821         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17822         # path with ; separators, and with drive letters. We can handle the
17823         # drive letters (cygwin fileutils understands them), so leave them,
17824         # especially as we might pass files found there to a mingw objdump,
17825         # which wouldn't understand a cygwinified path. Ahh.
17826         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17827       else
17828         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17829       fi
17830       ;;
17831     pw32*)
17832       # pw32 DLLs use 'pw' prefix rather than 'lib'
17833       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17834       ;;
17835     esac
17836     ;;
17837
17838   *)
17839     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17840     ;;
17841   esac
17842   dynamic_linker='Win32 ld.exe'
17843   # FIXME: first we should search . and the directory the executable is in
17844   shlibpath_var=PATH
17845   ;;
17846
17847 darwin* | rhapsody*)
17848   dynamic_linker="$host_os dyld"
17849   version_type=darwin
17850   need_lib_prefix=no
17851   need_version=no
17852   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17853   soname_spec='${libname}${release}${major}$shared_ext'
17854   shlibpath_overrides_runpath=yes
17855   shlibpath_var=DYLD_LIBRARY_PATH
17856   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17857   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17858   if test "$GCC" = yes; then
17859     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17860   else
17861     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17862   fi
17863   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17864   ;;
17865
17866 dgux*)
17867   version_type=linux
17868   need_lib_prefix=no
17869   need_version=no
17870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17871   soname_spec='${libname}${release}${shared_ext}$major'
17872   shlibpath_var=LD_LIBRARY_PATH
17873   ;;
17874
17875 freebsd1*)
17876   dynamic_linker=no
17877   ;;
17878
17879 freebsd* | dragonfly*)
17880   # DragonFly does not have aout.  When/if they implement a new
17881   # versioning mechanism, adjust this.
17882   if test -x /usr/bin/objformat; then
17883     objformat=`/usr/bin/objformat`
17884   else
17885     case $host_os in
17886     freebsd[123]*) objformat=aout ;;
17887     *) objformat=elf ;;
17888     esac
17889   fi
17890   version_type=freebsd-$objformat
17891   case $version_type in
17892     freebsd-elf*)
17893       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17894       need_version=no
17895       need_lib_prefix=no
17896       ;;
17897     freebsd-*)
17898       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17899       need_version=yes
17900       ;;
17901   esac
17902   shlibpath_var=LD_LIBRARY_PATH
17903   case $host_os in
17904   freebsd2*)
17905     shlibpath_overrides_runpath=yes
17906     ;;
17907   freebsd3.[01]* | freebsdelf3.[01]*)
17908     shlibpath_overrides_runpath=yes
17909     hardcode_into_libs=yes
17910     ;;
17911   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17912   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17913     shlibpath_overrides_runpath=no
17914     hardcode_into_libs=yes
17915     ;;
17916   freebsd*) # from 4.6 on
17917     shlibpath_overrides_runpath=yes
17918     hardcode_into_libs=yes
17919     ;;
17920   esac
17921   ;;
17922
17923 gnu*)
17924   version_type=linux
17925   need_lib_prefix=no
17926   need_version=no
17927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17928   soname_spec='${libname}${release}${shared_ext}$major'
17929   shlibpath_var=LD_LIBRARY_PATH
17930   hardcode_into_libs=yes
17931   ;;
17932
17933 hpux9* | hpux10* | hpux11*)
17934   # Give a soname corresponding to the major version so that dld.sl refuses to
17935   # link against other versions.
17936   version_type=sunos
17937   need_lib_prefix=no
17938   need_version=no
17939   case $host_cpu in
17940   ia64*)
17941     shrext_cmds='.so'
17942     hardcode_into_libs=yes
17943     dynamic_linker="$host_os dld.so"
17944     shlibpath_var=LD_LIBRARY_PATH
17945     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17946     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17947     soname_spec='${libname}${release}${shared_ext}$major'
17948     if test "X$HPUX_IA64_MODE" = X32; then
17949       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17950     else
17951       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17952     fi
17953     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17954     ;;
17955    hppa*64*)
17956      shrext_cmds='.sl'
17957      hardcode_into_libs=yes
17958      dynamic_linker="$host_os dld.sl"
17959      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17960      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17961      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17962      soname_spec='${libname}${release}${shared_ext}$major'
17963      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17964      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17965      ;;
17966    *)
17967     shrext_cmds='.sl'
17968     dynamic_linker="$host_os dld.sl"
17969     shlibpath_var=SHLIB_PATH
17970     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17971     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17972     soname_spec='${libname}${release}${shared_ext}$major'
17973     ;;
17974   esac
17975   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17976   postinstall_cmds='chmod 555 $lib'
17977   ;;
17978
17979 interix3*)
17980   version_type=linux
17981   need_lib_prefix=no
17982   need_version=no
17983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17984   soname_spec='${libname}${release}${shared_ext}$major'
17985   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17986   shlibpath_var=LD_LIBRARY_PATH
17987   shlibpath_overrides_runpath=no
17988   hardcode_into_libs=yes
17989   ;;
17990
17991 irix5* | irix6* | nonstopux*)
17992   case $host_os in
17993     nonstopux*) version_type=nonstopux ;;
17994     *)
17995         if test "$lt_cv_prog_gnu_ld" = yes; then
17996                 version_type=linux
17997         else
17998                 version_type=irix
17999         fi ;;
18000   esac
18001   need_lib_prefix=no
18002   need_version=no
18003   soname_spec='${libname}${release}${shared_ext}$major'
18004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18005   case $host_os in
18006   irix5* | nonstopux*)
18007     libsuff= shlibsuff=
18008     ;;
18009   *)
18010     case $LD in # libtool.m4 will add one of these switches to LD
18011     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18012       libsuff= shlibsuff= libmagic=32-bit;;
18013     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18014       libsuff=32 shlibsuff=N32 libmagic=N32;;
18015     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18016       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18017     *) libsuff= shlibsuff= libmagic=never-match;;
18018     esac
18019     ;;
18020   esac
18021   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18022   shlibpath_overrides_runpath=no
18023   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18024   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18025   hardcode_into_libs=yes
18026   ;;
18027
18028 # No shared lib support for Linux oldld, aout, or coff.
18029 linux*oldld* | linux*aout* | linux*coff*)
18030   dynamic_linker=no
18031   ;;
18032
18033 # This must be Linux ELF.
18034 linux* | k*bsd*-gnu)
18035   version_type=linux
18036   need_lib_prefix=no
18037   need_version=no
18038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18039   soname_spec='${libname}${release}${shared_ext}$major'
18040   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18041   shlibpath_var=LD_LIBRARY_PATH
18042   shlibpath_overrides_runpath=no
18043   # This implies no fast_install, which is unacceptable.
18044   # Some rework will be needed to allow for fast_install
18045   # before this can be enabled.
18046   hardcode_into_libs=yes
18047
18048   # Append ld.so.conf contents to the search path
18049   if test -f /etc/ld.so.conf; then
18050     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18051     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18052   fi
18053
18054   # We used to test for /lib/ld.so.1 and disable shared libraries on
18055   # powerpc, because MkLinux only supported shared libraries with the
18056   # GNU dynamic linker.  Since this was broken with cross compilers,
18057   # most powerpc-linux boxes support dynamic linking these days and
18058   # people can always --disable-shared, the test was removed, and we
18059   # assume the GNU/Linux dynamic linker is in use.
18060   dynamic_linker='GNU/Linux ld.so'
18061   ;;
18062
18063 netbsdelf*-gnu)
18064   version_type=linux
18065   need_lib_prefix=no
18066   need_version=no
18067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18068   soname_spec='${libname}${release}${shared_ext}$major'
18069   shlibpath_var=LD_LIBRARY_PATH
18070   shlibpath_overrides_runpath=no
18071   hardcode_into_libs=yes
18072   dynamic_linker='NetBSD ld.elf_so'
18073   ;;
18074
18075 netbsd*)
18076   version_type=sunos
18077   need_lib_prefix=no
18078   need_version=no
18079   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18080     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18081     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18082     dynamic_linker='NetBSD (a.out) ld.so'
18083   else
18084     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18085     soname_spec='${libname}${release}${shared_ext}$major'
18086     dynamic_linker='NetBSD ld.elf_so'
18087   fi
18088   shlibpath_var=LD_LIBRARY_PATH
18089   shlibpath_overrides_runpath=yes
18090   hardcode_into_libs=yes
18091   ;;
18092
18093 newsos6)
18094   version_type=linux
18095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18096   shlibpath_var=LD_LIBRARY_PATH
18097   shlibpath_overrides_runpath=yes
18098   ;;
18099
18100 nto-qnx*)
18101   version_type=linux
18102   need_lib_prefix=no
18103   need_version=no
18104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18105   soname_spec='${libname}${release}${shared_ext}$major'
18106   shlibpath_var=LD_LIBRARY_PATH
18107   shlibpath_overrides_runpath=yes
18108   ;;
18109
18110 openbsd*)
18111   version_type=sunos
18112   sys_lib_dlsearch_path_spec="/usr/lib"
18113   need_lib_prefix=no
18114   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18115   case $host_os in
18116     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18117     *)                         need_version=no  ;;
18118   esac
18119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18120   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18121   shlibpath_var=LD_LIBRARY_PATH
18122   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18123     case $host_os in
18124       openbsd2.[89] | openbsd2.[89].*)
18125         shlibpath_overrides_runpath=no
18126         ;;
18127       *)
18128         shlibpath_overrides_runpath=yes
18129         ;;
18130       esac
18131   else
18132     shlibpath_overrides_runpath=yes
18133   fi
18134   ;;
18135
18136 os2*)
18137   libname_spec='$name'
18138   shrext_cmds=".dll"
18139   need_lib_prefix=no
18140   library_names_spec='$libname${shared_ext} $libname.a'
18141   dynamic_linker='OS/2 ld.exe'
18142   shlibpath_var=LIBPATH
18143   ;;
18144
18145 osf3* | osf4* | osf5*)
18146   version_type=osf
18147   need_lib_prefix=no
18148   need_version=no
18149   soname_spec='${libname}${release}${shared_ext}$major'
18150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18151   shlibpath_var=LD_LIBRARY_PATH
18152   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18153   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18154   ;;
18155
18156 solaris*)
18157   version_type=linux
18158   need_lib_prefix=no
18159   need_version=no
18160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18161   soname_spec='${libname}${release}${shared_ext}$major'
18162   shlibpath_var=LD_LIBRARY_PATH
18163   shlibpath_overrides_runpath=yes
18164   hardcode_into_libs=yes
18165   # ldd complains unless libraries are executable
18166   postinstall_cmds='chmod +x $lib'
18167   ;;
18168
18169 sunos4*)
18170   version_type=sunos
18171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18172   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18173   shlibpath_var=LD_LIBRARY_PATH
18174   shlibpath_overrides_runpath=yes
18175   if test "$with_gnu_ld" = yes; then
18176     need_lib_prefix=no
18177   fi
18178   need_version=yes
18179   ;;
18180
18181 sysv4 | sysv4.3*)
18182   version_type=linux
18183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18184   soname_spec='${libname}${release}${shared_ext}$major'
18185   shlibpath_var=LD_LIBRARY_PATH
18186   case $host_vendor in
18187     sni)
18188       shlibpath_overrides_runpath=no
18189       need_lib_prefix=no
18190       export_dynamic_flag_spec='${wl}-Blargedynsym'
18191       runpath_var=LD_RUN_PATH
18192       ;;
18193     siemens)
18194       need_lib_prefix=no
18195       ;;
18196     motorola)
18197       need_lib_prefix=no
18198       need_version=no
18199       shlibpath_overrides_runpath=no
18200       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18201       ;;
18202   esac
18203   ;;
18204
18205 sysv4*MP*)
18206   if test -d /usr/nec ;then
18207     version_type=linux
18208     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18209     soname_spec='$libname${shared_ext}.$major'
18210     shlibpath_var=LD_LIBRARY_PATH
18211   fi
18212   ;;
18213
18214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18215   version_type=freebsd-elf
18216   need_lib_prefix=no
18217   need_version=no
18218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18219   soname_spec='${libname}${release}${shared_ext}$major'
18220   shlibpath_var=LD_LIBRARY_PATH
18221   hardcode_into_libs=yes
18222   if test "$with_gnu_ld" = yes; then
18223     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18224     shlibpath_overrides_runpath=no
18225   else
18226     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18227     shlibpath_overrides_runpath=yes
18228     case $host_os in
18229       sco3.2v5*)
18230         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18231         ;;
18232     esac
18233   fi
18234   sys_lib_dlsearch_path_spec='/usr/lib'
18235   ;;
18236
18237 uts4*)
18238   version_type=linux
18239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18240   soname_spec='${libname}${release}${shared_ext}$major'
18241   shlibpath_var=LD_LIBRARY_PATH
18242   ;;
18243
18244 *)
18245   dynamic_linker=no
18246   ;;
18247 esac
18248 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18249 echo "${ECHO_T}$dynamic_linker" >&6; }
18250 test "$dynamic_linker" = no && can_build_shared=no
18251
18252 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18253 if test "$GCC" = yes; then
18254   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18255 fi
18256
18257 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18258 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18259 hardcode_action_GCJ=
18260 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18261    test -n "$runpath_var_GCJ" || \
18262    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18263
18264   # We can hardcode non-existant directories.
18265   if test "$hardcode_direct_GCJ" != no &&
18266      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18267      # have to relink, otherwise we might link with an installed library
18268      # when we should be linking with a yet-to-be-installed one
18269      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18270      test "$hardcode_minus_L_GCJ" != no; then
18271     # Linking always hardcodes the temporary library directory.
18272     hardcode_action_GCJ=relink
18273   else
18274     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18275     hardcode_action_GCJ=immediate
18276   fi
18277 else
18278   # We cannot hardcode anything, or else we can only hardcode existing
18279   # directories.
18280   hardcode_action_GCJ=unsupported
18281 fi
18282 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18283 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18284
18285 if test "$hardcode_action_GCJ" = relink; then
18286   # Fast installation is not supported
18287   enable_fast_install=no
18288 elif test "$shlibpath_overrides_runpath" = yes ||
18289      test "$enable_shared" = no; then
18290   # Fast installation is not necessary
18291   enable_fast_install=needless
18292 fi
18293
18294
18295 # The else clause should only fire when bootstrapping the
18296 # libtool distribution, otherwise you forgot to ship ltmain.sh
18297 # with your package, and you will get complaints that there are
18298 # no rules to generate ltmain.sh.
18299 if test -f "$ltmain"; then
18300   # See if we are running on zsh, and set the options which allow our commands through
18301   # without removal of \ escapes.
18302   if test -n "${ZSH_VERSION+set}" ; then
18303     setopt NO_GLOB_SUBST
18304   fi
18305   # Now quote all the things that may contain metacharacters while being
18306   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18307   # variables and quote the copies for generation of the libtool script.
18308   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18309     SED SHELL STRIP \
18310     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18311     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18312     deplibs_check_method reload_flag reload_cmds need_locks \
18313     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18314     lt_cv_sys_global_symbol_to_c_name_address \
18315     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18316     old_postinstall_cmds old_postuninstall_cmds \
18317     compiler_GCJ \
18318     CC_GCJ \
18319     LD_GCJ \
18320     lt_prog_compiler_wl_GCJ \
18321     lt_prog_compiler_pic_GCJ \
18322     lt_prog_compiler_static_GCJ \
18323     lt_prog_compiler_no_builtin_flag_GCJ \
18324     export_dynamic_flag_spec_GCJ \
18325     thread_safe_flag_spec_GCJ \
18326     whole_archive_flag_spec_GCJ \
18327     enable_shared_with_static_runtimes_GCJ \
18328     old_archive_cmds_GCJ \
18329     old_archive_from_new_cmds_GCJ \
18330     predep_objects_GCJ \
18331     postdep_objects_GCJ \
18332     predeps_GCJ \
18333     postdeps_GCJ \
18334     compiler_lib_search_path_GCJ \
18335     archive_cmds_GCJ \
18336     archive_expsym_cmds_GCJ \
18337     postinstall_cmds_GCJ \
18338     postuninstall_cmds_GCJ \
18339     old_archive_from_expsyms_cmds_GCJ \
18340     allow_undefined_flag_GCJ \
18341     no_undefined_flag_GCJ \
18342     export_symbols_cmds_GCJ \
18343     hardcode_libdir_flag_spec_GCJ \
18344     hardcode_libdir_flag_spec_ld_GCJ \
18345     hardcode_libdir_separator_GCJ \
18346     hardcode_automatic_GCJ \
18347     module_cmds_GCJ \
18348     module_expsym_cmds_GCJ \
18349     lt_cv_prog_compiler_c_o_GCJ \
18350     exclude_expsyms_GCJ \
18351     include_expsyms_GCJ; do
18352
18353     case $var in
18354     old_archive_cmds_GCJ | \
18355     old_archive_from_new_cmds_GCJ | \
18356     archive_cmds_GCJ | \
18357     archive_expsym_cmds_GCJ | \
18358     module_cmds_GCJ | \
18359     module_expsym_cmds_GCJ | \
18360     old_archive_from_expsyms_cmds_GCJ | \
18361     export_symbols_cmds_GCJ | \
18362     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18363     postinstall_cmds | postuninstall_cmds | \
18364     old_postinstall_cmds | old_postuninstall_cmds | \
18365     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18366       # Double-quote double-evaled strings.
18367       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18368       ;;
18369     *)
18370       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18371       ;;
18372     esac
18373   done
18374
18375   case $lt_echo in
18376   *'\$0 --fallback-echo"')
18377     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18378     ;;
18379   esac
18380
18381 cfgfile="$ofile"
18382
18383   cat <<__EOF__ >> "$cfgfile"
18384 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18385
18386 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18387
18388 # Shell to use when invoking shell scripts.
18389 SHELL=$lt_SHELL
18390
18391 # Whether or not to build shared libraries.
18392 build_libtool_libs=$enable_shared
18393
18394 # Whether or not to build static libraries.
18395 build_old_libs=$enable_static
18396
18397 # Whether or not to add -lc for building shared libraries.
18398 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18399
18400 # Whether or not to disallow shared libs when runtime libs are static
18401 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18402
18403 # Whether or not to optimize for fast installation.
18404 fast_install=$enable_fast_install
18405
18406 # The host system.
18407 host_alias=$host_alias
18408 host=$host
18409 host_os=$host_os
18410
18411 # The build system.
18412 build_alias=$build_alias
18413 build=$build
18414 build_os=$build_os
18415
18416 # An echo program that does not interpret backslashes.
18417 echo=$lt_echo
18418
18419 # The archiver.
18420 AR=$lt_AR
18421 AR_FLAGS=$lt_AR_FLAGS
18422
18423 # A C compiler.
18424 LTCC=$lt_LTCC
18425
18426 # LTCC compiler flags.
18427 LTCFLAGS=$lt_LTCFLAGS
18428
18429 # A language-specific compiler.
18430 CC=$lt_compiler_GCJ
18431
18432 # Is the compiler the GNU C compiler?
18433 with_gcc=$GCC_GCJ
18434
18435 # An ERE matcher.
18436 EGREP=$lt_EGREP
18437
18438 # The linker used to build libraries.
18439 LD=$lt_LD_GCJ
18440
18441 # Whether we need hard or soft links.
18442 LN_S=$lt_LN_S
18443
18444 # A BSD-compatible nm program.
18445 NM=$lt_NM
18446
18447 # A symbol stripping program
18448 STRIP=$lt_STRIP
18449
18450 # Used to examine libraries when file_magic_cmd begins "file"
18451 MAGIC_CMD=$MAGIC_CMD
18452
18453 # Used on cygwin: DLL creation program.
18454 DLLTOOL="$DLLTOOL"
18455
18456 # Used on cygwin: object dumper.
18457 OBJDUMP="$OBJDUMP"
18458
18459 # Used on cygwin: assembler.
18460 AS="$AS"
18461
18462 # The name of the directory that contains temporary libtool files.
18463 objdir=$objdir
18464
18465 # How to create reloadable object files.
18466 reload_flag=$lt_reload_flag
18467 reload_cmds=$lt_reload_cmds
18468
18469 # How to pass a linker flag through the compiler.
18470 wl=$lt_lt_prog_compiler_wl_GCJ
18471
18472 # Object file suffix (normally "o").
18473 objext="$ac_objext"
18474
18475 # Old archive suffix (normally "a").
18476 libext="$libext"
18477
18478 # Shared library suffix (normally ".so").
18479 shrext_cmds='$shrext_cmds'
18480
18481 # Executable file suffix (normally "").
18482 exeext="$exeext"
18483
18484 # Additional compiler flags for building library objects.
18485 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18486 pic_mode=$pic_mode
18487
18488 # What is the maximum length of a command?
18489 max_cmd_len=$lt_cv_sys_max_cmd_len
18490
18491 # Does compiler simultaneously support -c and -o options?
18492 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18493
18494 # Must we lock files when doing compilation?
18495 need_locks=$lt_need_locks
18496
18497 # Do we need the lib prefix for modules?
18498 need_lib_prefix=$need_lib_prefix
18499
18500 # Do we need a version for libraries?
18501 need_version=$need_version
18502
18503 # Whether dlopen is supported.
18504 dlopen_support=$enable_dlopen
18505
18506 # Whether dlopen of programs is supported.
18507 dlopen_self=$enable_dlopen_self
18508
18509 # Whether dlopen of statically linked programs is supported.
18510 dlopen_self_static=$enable_dlopen_self_static
18511
18512 # Compiler flag to prevent dynamic linking.
18513 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18514
18515 # Compiler flag to turn off builtin functions.
18516 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18517
18518 # Compiler flag to allow reflexive dlopens.
18519 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18520
18521 # Compiler flag to generate shared objects directly from archives.
18522 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18523
18524 # Compiler flag to generate thread-safe objects.
18525 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18526
18527 # Library versioning type.
18528 version_type=$version_type
18529
18530 # Format of library name prefix.
18531 libname_spec=$lt_libname_spec
18532
18533 # List of archive names.  First name is the real one, the rest are links.
18534 # The last name is the one that the linker finds with -lNAME.
18535 library_names_spec=$lt_library_names_spec
18536
18537 # The coded name of the library, if different from the real name.
18538 soname_spec=$lt_soname_spec
18539
18540 # Commands used to build and install an old-style archive.
18541 RANLIB=$lt_RANLIB
18542 old_archive_cmds=$lt_old_archive_cmds_GCJ
18543 old_postinstall_cmds=$lt_old_postinstall_cmds
18544 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18545
18546 # Create an old-style archive from a shared archive.
18547 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18548
18549 # Create a temporary old-style archive to link instead of a shared archive.
18550 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18551
18552 # Commands used to build and install a shared archive.
18553 archive_cmds=$lt_archive_cmds_GCJ
18554 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18555 postinstall_cmds=$lt_postinstall_cmds
18556 postuninstall_cmds=$lt_postuninstall_cmds
18557
18558 # Commands used to build a loadable module (assumed same as above if empty)
18559 module_cmds=$lt_module_cmds_GCJ
18560 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18561
18562 # Commands to strip libraries.
18563 old_striplib=$lt_old_striplib
18564 striplib=$lt_striplib
18565
18566 # Dependencies to place before the objects being linked to create a
18567 # shared library.
18568 predep_objects=$lt_predep_objects_GCJ
18569
18570 # Dependencies to place after the objects being linked to create a
18571 # shared library.
18572 postdep_objects=$lt_postdep_objects_GCJ
18573
18574 # Dependencies to place before the objects being linked to create a
18575 # shared library.
18576 predeps=$lt_predeps_GCJ
18577
18578 # Dependencies to place after the objects being linked to create a
18579 # shared library.
18580 postdeps=$lt_postdeps_GCJ
18581
18582 # The library search path used internally by the compiler when linking
18583 # a shared library.
18584 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18585
18586 # Method to check whether dependent libraries are shared objects.
18587 deplibs_check_method=$lt_deplibs_check_method
18588
18589 # Command to use when deplibs_check_method == file_magic.
18590 file_magic_cmd=$lt_file_magic_cmd
18591
18592 # Flag that allows shared libraries with undefined symbols to be built.
18593 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18594
18595 # Flag that forces no undefined symbols.
18596 no_undefined_flag=$lt_no_undefined_flag_GCJ
18597
18598 # Commands used to finish a libtool library installation in a directory.
18599 finish_cmds=$lt_finish_cmds
18600
18601 # Same as above, but a single script fragment to be evaled but not shown.
18602 finish_eval=$lt_finish_eval
18603
18604 # Take the output of nm and produce a listing of raw symbols and C names.
18605 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18606
18607 # Transform the output of nm in a proper C declaration
18608 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18609
18610 # Transform the output of nm in a C name address pair
18611 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18612
18613 # This is the shared library runtime path variable.
18614 runpath_var=$runpath_var
18615
18616 # This is the shared library path variable.
18617 shlibpath_var=$shlibpath_var
18618
18619 # Is shlibpath searched before the hard-coded library search path?
18620 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18621
18622 # How to hardcode a shared library path into an executable.
18623 hardcode_action=$hardcode_action_GCJ
18624
18625 # Whether we should hardcode library paths into libraries.
18626 hardcode_into_libs=$hardcode_into_libs
18627
18628 # Flag to hardcode \$libdir into a binary during linking.
18629 # This must work even if \$libdir does not exist.
18630 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18631
18632 # If ld is used when linking, flag to hardcode \$libdir into
18633 # a binary during linking. This must work even if \$libdir does
18634 # not exist.
18635 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18636
18637 # Whether we need a single -rpath flag with a separated argument.
18638 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18639
18640 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18641 # resulting binary.
18642 hardcode_direct=$hardcode_direct_GCJ
18643
18644 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18645 # resulting binary.
18646 hardcode_minus_L=$hardcode_minus_L_GCJ
18647
18648 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18649 # the resulting binary.
18650 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18651
18652 # Set to yes if building a shared library automatically hardcodes DIR into the library
18653 # and all subsequent libraries and executables linked against it.
18654 hardcode_automatic=$hardcode_automatic_GCJ
18655
18656 # Variables whose values should be saved in libtool wrapper scripts and
18657 # restored at relink time.
18658 variables_saved_for_relink="$variables_saved_for_relink"
18659
18660 # Whether libtool must link a program against all its dependency libraries.
18661 link_all_deplibs=$link_all_deplibs_GCJ
18662
18663 # Compile-time system search path for libraries
18664 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18665
18666 # Run-time system search path for libraries
18667 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18668
18669 # Fix the shell variable \$srcfile for the compiler.
18670 fix_srcfile_path="$fix_srcfile_path_GCJ"
18671
18672 # Set to yes if exported symbols are required.
18673 always_export_symbols=$always_export_symbols_GCJ
18674
18675 # The commands to list exported symbols.
18676 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18677
18678 # The commands to extract the exported symbol list from a shared archive.
18679 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18680
18681 # Symbols that should not be listed in the preloaded symbols.
18682 exclude_expsyms=$lt_exclude_expsyms_GCJ
18683
18684 # Symbols that must always be exported.
18685 include_expsyms=$lt_include_expsyms_GCJ
18686
18687 # ### END LIBTOOL TAG CONFIG: $tagname
18688
18689 __EOF__
18690
18691
18692 else
18693   # If there is no Makefile yet, we rely on a make rule to execute
18694   # `config.status --recheck' to rerun these tests and create the
18695   # libtool script then.
18696   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18697   if test -f "$ltmain_in"; then
18698     test -f Makefile && make "$ltmain"
18699   fi
18700 fi
18701
18702
18703 ac_ext=c
18704 ac_cpp='$CPP $CPPFLAGS'
18705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18708
18709 CC="$lt_save_CC"
18710
18711         else
18712           tagname=""
18713         fi
18714         ;;
18715
18716       RC)
18717
18718
18719 # Source file extension for RC test sources.
18720 ac_ext=rc
18721
18722 # Object file extension for compiled RC test sources.
18723 objext=o
18724 objext_RC=$objext
18725
18726 # Code to be used in simple compile tests
18727 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18728
18729 # Code to be used in simple link tests
18730 lt_simple_link_test_code="$lt_simple_compile_test_code"
18731
18732 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18733
18734 # If no C compiler was specified, use CC.
18735 LTCC=${LTCC-"$CC"}
18736
18737 # If no C compiler flags were specified, use CFLAGS.
18738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18739
18740 # Allow CC to be a program name with arguments.
18741 compiler=$CC
18742
18743
18744 # save warnings/boilerplate of simple test code
18745 ac_outfile=conftest.$ac_objext
18746 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18747 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18748 _lt_compiler_boilerplate=`cat conftest.err`
18749 $rm conftest*
18750
18751 ac_outfile=conftest.$ac_objext
18752 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18753 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18754 _lt_linker_boilerplate=`cat conftest.err`
18755 $rm conftest*
18756
18757
18758 # Allow CC to be a program name with arguments.
18759 lt_save_CC="$CC"
18760 CC=${RC-"windres"}
18761 compiler=$CC
18762 compiler_RC=$CC
18763 for cc_temp in $compiler""; do
18764   case $cc_temp in
18765     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18766     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18767     \-*) ;;
18768     *) break;;
18769   esac
18770 done
18771 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18772
18773 lt_cv_prog_compiler_c_o_RC=yes
18774
18775 # The else clause should only fire when bootstrapping the
18776 # libtool distribution, otherwise you forgot to ship ltmain.sh
18777 # with your package, and you will get complaints that there are
18778 # no rules to generate ltmain.sh.
18779 if test -f "$ltmain"; then
18780   # See if we are running on zsh, and set the options which allow our commands through
18781   # without removal of \ escapes.
18782   if test -n "${ZSH_VERSION+set}" ; then
18783     setopt NO_GLOB_SUBST
18784   fi
18785   # Now quote all the things that may contain metacharacters while being
18786   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18787   # variables and quote the copies for generation of the libtool script.
18788   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18789     SED SHELL STRIP \
18790     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18791     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18792     deplibs_check_method reload_flag reload_cmds need_locks \
18793     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18794     lt_cv_sys_global_symbol_to_c_name_address \
18795     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18796     old_postinstall_cmds old_postuninstall_cmds \
18797     compiler_RC \
18798     CC_RC \
18799     LD_RC \
18800     lt_prog_compiler_wl_RC \
18801     lt_prog_compiler_pic_RC \
18802     lt_prog_compiler_static_RC \
18803     lt_prog_compiler_no_builtin_flag_RC \
18804     export_dynamic_flag_spec_RC \
18805     thread_safe_flag_spec_RC \
18806     whole_archive_flag_spec_RC \
18807     enable_shared_with_static_runtimes_RC \
18808     old_archive_cmds_RC \
18809     old_archive_from_new_cmds_RC \
18810     predep_objects_RC \
18811     postdep_objects_RC \
18812     predeps_RC \
18813     postdeps_RC \
18814     compiler_lib_search_path_RC \
18815     archive_cmds_RC \
18816     archive_expsym_cmds_RC \
18817     postinstall_cmds_RC \
18818     postuninstall_cmds_RC \
18819     old_archive_from_expsyms_cmds_RC \
18820     allow_undefined_flag_RC \
18821     no_undefined_flag_RC \
18822     export_symbols_cmds_RC \
18823     hardcode_libdir_flag_spec_RC \
18824     hardcode_libdir_flag_spec_ld_RC \
18825     hardcode_libdir_separator_RC \
18826     hardcode_automatic_RC \
18827     module_cmds_RC \
18828     module_expsym_cmds_RC \
18829     lt_cv_prog_compiler_c_o_RC \
18830     exclude_expsyms_RC \
18831     include_expsyms_RC; do
18832
18833     case $var in
18834     old_archive_cmds_RC | \
18835     old_archive_from_new_cmds_RC | \
18836     archive_cmds_RC | \
18837     archive_expsym_cmds_RC | \
18838     module_cmds_RC | \
18839     module_expsym_cmds_RC | \
18840     old_archive_from_expsyms_cmds_RC | \
18841     export_symbols_cmds_RC | \
18842     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18843     postinstall_cmds | postuninstall_cmds | \
18844     old_postinstall_cmds | old_postuninstall_cmds | \
18845     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18846       # Double-quote double-evaled strings.
18847       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18848       ;;
18849     *)
18850       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18851       ;;
18852     esac
18853   done
18854
18855   case $lt_echo in
18856   *'\$0 --fallback-echo"')
18857     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18858     ;;
18859   esac
18860
18861 cfgfile="$ofile"
18862
18863   cat <<__EOF__ >> "$cfgfile"
18864 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18865
18866 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18867
18868 # Shell to use when invoking shell scripts.
18869 SHELL=$lt_SHELL
18870
18871 # Whether or not to build shared libraries.
18872 build_libtool_libs=$enable_shared
18873
18874 # Whether or not to build static libraries.
18875 build_old_libs=$enable_static
18876
18877 # Whether or not to add -lc for building shared libraries.
18878 build_libtool_need_lc=$archive_cmds_need_lc_RC
18879
18880 # Whether or not to disallow shared libs when runtime libs are static
18881 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18882
18883 # Whether or not to optimize for fast installation.
18884 fast_install=$enable_fast_install
18885
18886 # The host system.
18887 host_alias=$host_alias
18888 host=$host
18889 host_os=$host_os
18890
18891 # The build system.
18892 build_alias=$build_alias
18893 build=$build
18894 build_os=$build_os
18895
18896 # An echo program that does not interpret backslashes.
18897 echo=$lt_echo
18898
18899 # The archiver.
18900 AR=$lt_AR
18901 AR_FLAGS=$lt_AR_FLAGS
18902
18903 # A C compiler.
18904 LTCC=$lt_LTCC
18905
18906 # LTCC compiler flags.
18907 LTCFLAGS=$lt_LTCFLAGS
18908
18909 # A language-specific compiler.
18910 CC=$lt_compiler_RC
18911
18912 # Is the compiler the GNU C compiler?
18913 with_gcc=$GCC_RC
18914
18915 # An ERE matcher.
18916 EGREP=$lt_EGREP
18917
18918 # The linker used to build libraries.
18919 LD=$lt_LD_RC
18920
18921 # Whether we need hard or soft links.
18922 LN_S=$lt_LN_S
18923
18924 # A BSD-compatible nm program.
18925 NM=$lt_NM
18926
18927 # A symbol stripping program
18928 STRIP=$lt_STRIP
18929
18930 # Used to examine libraries when file_magic_cmd begins "file"
18931 MAGIC_CMD=$MAGIC_CMD
18932
18933 # Used on cygwin: DLL creation program.
18934 DLLTOOL="$DLLTOOL"
18935
18936 # Used on cygwin: object dumper.
18937 OBJDUMP="$OBJDUMP"
18938
18939 # Used on cygwin: assembler.
18940 AS="$AS"
18941
18942 # The name of the directory that contains temporary libtool files.
18943 objdir=$objdir
18944
18945 # How to create reloadable object files.
18946 reload_flag=$lt_reload_flag
18947 reload_cmds=$lt_reload_cmds
18948
18949 # How to pass a linker flag through the compiler.
18950 wl=$lt_lt_prog_compiler_wl_RC
18951
18952 # Object file suffix (normally "o").
18953 objext="$ac_objext"
18954
18955 # Old archive suffix (normally "a").
18956 libext="$libext"
18957
18958 # Shared library suffix (normally ".so").
18959 shrext_cmds='$shrext_cmds'
18960
18961 # Executable file suffix (normally "").
18962 exeext="$exeext"
18963
18964 # Additional compiler flags for building library objects.
18965 pic_flag=$lt_lt_prog_compiler_pic_RC
18966 pic_mode=$pic_mode
18967
18968 # What is the maximum length of a command?
18969 max_cmd_len=$lt_cv_sys_max_cmd_len
18970
18971 # Does compiler simultaneously support -c and -o options?
18972 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18973
18974 # Must we lock files when doing compilation?
18975 need_locks=$lt_need_locks
18976
18977 # Do we need the lib prefix for modules?
18978 need_lib_prefix=$need_lib_prefix
18979
18980 # Do we need a version for libraries?
18981 need_version=$need_version
18982
18983 # Whether dlopen is supported.
18984 dlopen_support=$enable_dlopen
18985
18986 # Whether dlopen of programs is supported.
18987 dlopen_self=$enable_dlopen_self
18988
18989 # Whether dlopen of statically linked programs is supported.
18990 dlopen_self_static=$enable_dlopen_self_static
18991
18992 # Compiler flag to prevent dynamic linking.
18993 link_static_flag=$lt_lt_prog_compiler_static_RC
18994
18995 # Compiler flag to turn off builtin functions.
18996 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18997
18998 # Compiler flag to allow reflexive dlopens.
18999 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19000
19001 # Compiler flag to generate shared objects directly from archives.
19002 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19003
19004 # Compiler flag to generate thread-safe objects.
19005 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19006
19007 # Library versioning type.
19008 version_type=$version_type
19009
19010 # Format of library name prefix.
19011 libname_spec=$lt_libname_spec
19012
19013 # List of archive names.  First name is the real one, the rest are links.
19014 # The last name is the one that the linker finds with -lNAME.
19015 library_names_spec=$lt_library_names_spec
19016
19017 # The coded name of the library, if different from the real name.
19018 soname_spec=$lt_soname_spec
19019
19020 # Commands used to build and install an old-style archive.
19021 RANLIB=$lt_RANLIB
19022 old_archive_cmds=$lt_old_archive_cmds_RC
19023 old_postinstall_cmds=$lt_old_postinstall_cmds
19024 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19025
19026 # Create an old-style archive from a shared archive.
19027 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19028
19029 # Create a temporary old-style archive to link instead of a shared archive.
19030 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19031
19032 # Commands used to build and install a shared archive.
19033 archive_cmds=$lt_archive_cmds_RC
19034 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19035 postinstall_cmds=$lt_postinstall_cmds
19036 postuninstall_cmds=$lt_postuninstall_cmds
19037
19038 # Commands used to build a loadable module (assumed same as above if empty)
19039 module_cmds=$lt_module_cmds_RC
19040 module_expsym_cmds=$lt_module_expsym_cmds_RC
19041
19042 # Commands to strip libraries.
19043 old_striplib=$lt_old_striplib
19044 striplib=$lt_striplib
19045
19046 # Dependencies to place before the objects being linked to create a
19047 # shared library.
19048 predep_objects=$lt_predep_objects_RC
19049
19050 # Dependencies to place after the objects being linked to create a
19051 # shared library.
19052 postdep_objects=$lt_postdep_objects_RC
19053
19054 # Dependencies to place before the objects being linked to create a
19055 # shared library.
19056 predeps=$lt_predeps_RC
19057
19058 # Dependencies to place after the objects being linked to create a
19059 # shared library.
19060 postdeps=$lt_postdeps_RC
19061
19062 # The library search path used internally by the compiler when linking
19063 # a shared library.
19064 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19065
19066 # Method to check whether dependent libraries are shared objects.
19067 deplibs_check_method=$lt_deplibs_check_method
19068
19069 # Command to use when deplibs_check_method == file_magic.
19070 file_magic_cmd=$lt_file_magic_cmd
19071
19072 # Flag that allows shared libraries with undefined symbols to be built.
19073 allow_undefined_flag=$lt_allow_undefined_flag_RC
19074
19075 # Flag that forces no undefined symbols.
19076 no_undefined_flag=$lt_no_undefined_flag_RC
19077
19078 # Commands used to finish a libtool library installation in a directory.
19079 finish_cmds=$lt_finish_cmds
19080
19081 # Same as above, but a single script fragment to be evaled but not shown.
19082 finish_eval=$lt_finish_eval
19083
19084 # Take the output of nm and produce a listing of raw symbols and C names.
19085 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19086
19087 # Transform the output of nm in a proper C declaration
19088 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19089
19090 # Transform the output of nm in a C name address pair
19091 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19092
19093 # This is the shared library runtime path variable.
19094 runpath_var=$runpath_var
19095
19096 # This is the shared library path variable.
19097 shlibpath_var=$shlibpath_var
19098
19099 # Is shlibpath searched before the hard-coded library search path?
19100 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19101
19102 # How to hardcode a shared library path into an executable.
19103 hardcode_action=$hardcode_action_RC
19104
19105 # Whether we should hardcode library paths into libraries.
19106 hardcode_into_libs=$hardcode_into_libs
19107
19108 # Flag to hardcode \$libdir into a binary during linking.
19109 # This must work even if \$libdir does not exist.
19110 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19111
19112 # If ld is used when linking, flag to hardcode \$libdir into
19113 # a binary during linking. This must work even if \$libdir does
19114 # not exist.
19115 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19116
19117 # Whether we need a single -rpath flag with a separated argument.
19118 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19119
19120 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19121 # resulting binary.
19122 hardcode_direct=$hardcode_direct_RC
19123
19124 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19125 # resulting binary.
19126 hardcode_minus_L=$hardcode_minus_L_RC
19127
19128 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19129 # the resulting binary.
19130 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19131
19132 # Set to yes if building a shared library automatically hardcodes DIR into the library
19133 # and all subsequent libraries and executables linked against it.
19134 hardcode_automatic=$hardcode_automatic_RC
19135
19136 # Variables whose values should be saved in libtool wrapper scripts and
19137 # restored at relink time.
19138 variables_saved_for_relink="$variables_saved_for_relink"
19139
19140 # Whether libtool must link a program against all its dependency libraries.
19141 link_all_deplibs=$link_all_deplibs_RC
19142
19143 # Compile-time system search path for libraries
19144 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19145
19146 # Run-time system search path for libraries
19147 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19148
19149 # Fix the shell variable \$srcfile for the compiler.
19150 fix_srcfile_path="$fix_srcfile_path_RC"
19151
19152 # Set to yes if exported symbols are required.
19153 always_export_symbols=$always_export_symbols_RC
19154
19155 # The commands to list exported symbols.
19156 export_symbols_cmds=$lt_export_symbols_cmds_RC
19157
19158 # The commands to extract the exported symbol list from a shared archive.
19159 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19160
19161 # Symbols that should not be listed in the preloaded symbols.
19162 exclude_expsyms=$lt_exclude_expsyms_RC
19163
19164 # Symbols that must always be exported.
19165 include_expsyms=$lt_include_expsyms_RC
19166
19167 # ### END LIBTOOL TAG CONFIG: $tagname
19168
19169 __EOF__
19170
19171
19172 else
19173   # If there is no Makefile yet, we rely on a make rule to execute
19174   # `config.status --recheck' to rerun these tests and create the
19175   # libtool script then.
19176   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19177   if test -f "$ltmain_in"; then
19178     test -f Makefile && make "$ltmain"
19179   fi
19180 fi
19181
19182
19183 ac_ext=c
19184 ac_cpp='$CPP $CPPFLAGS'
19185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19188
19189 CC="$lt_save_CC"
19190
19191         ;;
19192
19193       *)
19194         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19195 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19196    { (exit 1); exit 1; }; }
19197         ;;
19198       esac
19199
19200       # Append the new tag name to the list of available tags.
19201       if test -n "$tagname" ; then
19202       available_tags="$available_tags $tagname"
19203     fi
19204     fi
19205   done
19206   IFS="$lt_save_ifs"
19207
19208   # Now substitute the updated list of available tags.
19209   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19210     mv "${ofile}T" "$ofile"
19211     chmod +x "$ofile"
19212   else
19213     rm -f "${ofile}T"
19214     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19215 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19216    { (exit 1); exit 1; }; }
19217   fi
19218 fi
19219
19220
19221
19222 # This can be used to rebuild libtool when needed
19223 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19224
19225 # Always use our own libtool.
19226 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19227
19228 # Prevent multiple expansion
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250 ###############
19251 ## System checks
19252 ##
19253
19254   { echo "$as_me:$LINENO: result: " >&5
19255 echo "${ECHO_T}" >&6; }
19256   { echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
19257 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6; }
19258
19259 ac_ext=c
19260 ac_cpp='$CPP $CPPFLAGS'
19261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19264 if test -n "$ac_tool_prefix"; then
19265   for ac_prog in xlC gcc cc
19266   do
19267     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19271 if test "${ac_cv_prog_CC+set}" = set; then
19272   echo $ECHO_N "(cached) $ECHO_C" >&6
19273 else
19274   if test -n "$CC"; then
19275   ac_cv_prog_CC="$CC" # Let the user override the test.
19276 else
19277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19278 for as_dir in $PATH
19279 do
19280   IFS=$as_save_IFS
19281   test -z "$as_dir" && as_dir=.
19282   for ac_exec_ext in '' $ac_executable_extensions; do
19283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19284     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19286     break 2
19287   fi
19288 done
19289 done
19290 IFS=$as_save_IFS
19291
19292 fi
19293 fi
19294 CC=$ac_cv_prog_CC
19295 if test -n "$CC"; then
19296   { echo "$as_me:$LINENO: result: $CC" >&5
19297 echo "${ECHO_T}$CC" >&6; }
19298 else
19299   { echo "$as_me:$LINENO: result: no" >&5
19300 echo "${ECHO_T}no" >&6; }
19301 fi
19302
19303
19304     test -n "$CC" && break
19305   done
19306 fi
19307 if test -z "$CC"; then
19308   ac_ct_CC=$CC
19309   for ac_prog in xlC gcc cc
19310 do
19311   # Extract the first word of "$ac_prog", so it can be a program name with args.
19312 set dummy $ac_prog; ac_word=$2
19313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19315 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19316   echo $ECHO_N "(cached) $ECHO_C" >&6
19317 else
19318   if test -n "$ac_ct_CC"; then
19319   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19320 else
19321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19322 for as_dir in $PATH
19323 do
19324   IFS=$as_save_IFS
19325   test -z "$as_dir" && as_dir=.
19326   for ac_exec_ext in '' $ac_executable_extensions; do
19327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19328     ac_cv_prog_ac_ct_CC="$ac_prog"
19329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19330     break 2
19331   fi
19332 done
19333 done
19334 IFS=$as_save_IFS
19335
19336 fi
19337 fi
19338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19339 if test -n "$ac_ct_CC"; then
19340   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19341 echo "${ECHO_T}$ac_ct_CC" >&6; }
19342 else
19343   { echo "$as_me:$LINENO: result: no" >&5
19344 echo "${ECHO_T}no" >&6; }
19345 fi
19346
19347
19348   test -n "$ac_ct_CC" && break
19349 done
19350
19351   if test "x$ac_ct_CC" = x; then
19352     CC=""
19353   else
19354     case $cross_compiling:$ac_tool_warned in
19355 yes:)
19356 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19357 whose name does not start with the host triplet.  If you think this
19358 configuration is useful to you, please write to autoconf@gnu.org." >&5
19359 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19360 whose name does not start with the host triplet.  If you think this
19361 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19362 ac_tool_warned=yes ;;
19363 esac
19364     CC=$ac_ct_CC
19365   fi
19366 fi
19367
19368
19369 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19370 See \`config.log' for more details." >&5
19371 echo "$as_me: error: no acceptable C compiler found in \$PATH
19372 See \`config.log' for more details." >&2;}
19373    { (exit 1); exit 1; }; }
19374
19375 # Provide some information about the compiler.
19376 echo "$as_me:$LINENO: checking for C compiler version" >&5
19377 ac_compiler=`set X $ac_compile; echo $2`
19378 { (ac_try="$ac_compiler --version >&5"
19379 case "(($ac_try" in
19380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381   *) ac_try_echo=$ac_try;;
19382 esac
19383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384   (eval "$ac_compiler --version >&5") 2>&5
19385   ac_status=$?
19386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387   (exit $ac_status); }
19388 { (ac_try="$ac_compiler -v >&5"
19389 case "(($ac_try" in
19390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391   *) ac_try_echo=$ac_try;;
19392 esac
19393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19394   (eval "$ac_compiler -v >&5") 2>&5
19395   ac_status=$?
19396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397   (exit $ac_status); }
19398 { (ac_try="$ac_compiler -V >&5"
19399 case "(($ac_try" in
19400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19401   *) ac_try_echo=$ac_try;;
19402 esac
19403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19404   (eval "$ac_compiler -V >&5") 2>&5
19405   ac_status=$?
19406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407   (exit $ac_status); }
19408
19409 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19410 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19411 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19412   echo $ECHO_N "(cached) $ECHO_C" >&6
19413 else
19414   cat >conftest.$ac_ext <<_ACEOF
19415 /* confdefs.h.  */
19416 _ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h.  */
19420
19421 int
19422 main ()
19423 {
19424 #ifndef __GNUC__
19425        choke me
19426 #endif
19427
19428   ;
19429   return 0;
19430 }
19431 _ACEOF
19432 rm -f conftest.$ac_objext
19433 if { (ac_try="$ac_compile"
19434 case "(($ac_try" in
19435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436   *) ac_try_echo=$ac_try;;
19437 esac
19438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439   (eval "$ac_compile") 2>conftest.er1
19440   ac_status=$?
19441   grep -v '^ *+' conftest.er1 >conftest.err
19442   rm -f conftest.er1
19443   cat conftest.err >&5
19444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445   (exit $ac_status); } && {
19446          test -z "$ac_c_werror_flag" ||
19447          test ! -s conftest.err
19448        } && test -s conftest.$ac_objext; then
19449   ac_compiler_gnu=yes
19450 else
19451   echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19453
19454         ac_compiler_gnu=no
19455 fi
19456
19457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19458 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19459
19460 fi
19461 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19462 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19463 GCC=`test $ac_compiler_gnu = yes && echo yes`
19464 ac_test_CFLAGS=${CFLAGS+set}
19465 ac_save_CFLAGS=$CFLAGS
19466 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19467 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19468 if test "${ac_cv_prog_cc_g+set}" = set; then
19469   echo $ECHO_N "(cached) $ECHO_C" >&6
19470 else
19471   ac_save_c_werror_flag=$ac_c_werror_flag
19472    ac_c_werror_flag=yes
19473    ac_cv_prog_cc_g=no
19474    CFLAGS="-g"
19475    cat >conftest.$ac_ext <<_ACEOF
19476 /* confdefs.h.  */
19477 _ACEOF
19478 cat confdefs.h >>conftest.$ac_ext
19479 cat >>conftest.$ac_ext <<_ACEOF
19480 /* end confdefs.h.  */
19481
19482 int
19483 main ()
19484 {
19485
19486   ;
19487   return 0;
19488 }
19489 _ACEOF
19490 rm -f conftest.$ac_objext
19491 if { (ac_try="$ac_compile"
19492 case "(($ac_try" in
19493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494   *) ac_try_echo=$ac_try;;
19495 esac
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497   (eval "$ac_compile") 2>conftest.er1
19498   ac_status=$?
19499   grep -v '^ *+' conftest.er1 >conftest.err
19500   rm -f conftest.er1
19501   cat conftest.err >&5
19502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); } && {
19504          test -z "$ac_c_werror_flag" ||
19505          test ! -s conftest.err
19506        } && test -s conftest.$ac_objext; then
19507   ac_cv_prog_cc_g=yes
19508 else
19509   echo "$as_me: failed program was:" >&5
19510 sed 's/^/| /' conftest.$ac_ext >&5
19511
19512         CFLAGS=""
19513       cat >conftest.$ac_ext <<_ACEOF
19514 /* confdefs.h.  */
19515 _ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h.  */
19519
19520 int
19521 main ()
19522 {
19523
19524   ;
19525   return 0;
19526 }
19527 _ACEOF
19528 rm -f conftest.$ac_objext
19529 if { (ac_try="$ac_compile"
19530 case "(($ac_try" in
19531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532   *) ac_try_echo=$ac_try;;
19533 esac
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535   (eval "$ac_compile") 2>conftest.er1
19536   ac_status=$?
19537   grep -v '^ *+' conftest.er1 >conftest.err
19538   rm -f conftest.er1
19539   cat conftest.err >&5
19540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541   (exit $ac_status); } && {
19542          test -z "$ac_c_werror_flag" ||
19543          test ! -s conftest.err
19544        } && test -s conftest.$ac_objext; then
19545   :
19546 else
19547   echo "$as_me: failed program was:" >&5
19548 sed 's/^/| /' conftest.$ac_ext >&5
19549
19550         ac_c_werror_flag=$ac_save_c_werror_flag
19551          CFLAGS="-g"
19552          cat >conftest.$ac_ext <<_ACEOF
19553 /* confdefs.h.  */
19554 _ACEOF
19555 cat confdefs.h >>conftest.$ac_ext
19556 cat >>conftest.$ac_ext <<_ACEOF
19557 /* end confdefs.h.  */
19558
19559 int
19560 main ()
19561 {
19562
19563   ;
19564   return 0;
19565 }
19566 _ACEOF
19567 rm -f conftest.$ac_objext
19568 if { (ac_try="$ac_compile"
19569 case "(($ac_try" in
19570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571   *) ac_try_echo=$ac_try;;
19572 esac
19573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574   (eval "$ac_compile") 2>conftest.er1
19575   ac_status=$?
19576   grep -v '^ *+' conftest.er1 >conftest.err
19577   rm -f conftest.er1
19578   cat conftest.err >&5
19579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580   (exit $ac_status); } && {
19581          test -z "$ac_c_werror_flag" ||
19582          test ! -s conftest.err
19583        } && test -s conftest.$ac_objext; then
19584   ac_cv_prog_cc_g=yes
19585 else
19586   echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19588
19589
19590 fi
19591
19592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19593 fi
19594
19595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19596 fi
19597
19598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19599    ac_c_werror_flag=$ac_save_c_werror_flag
19600 fi
19601 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19602 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19603 if test "$ac_test_CFLAGS" = set; then
19604   CFLAGS=$ac_save_CFLAGS
19605 elif test $ac_cv_prog_cc_g = yes; then
19606   if test "$GCC" = yes; then
19607     CFLAGS="-g -O2"
19608   else
19609     CFLAGS="-g"
19610   fi
19611 else
19612   if test "$GCC" = yes; then
19613     CFLAGS="-O2"
19614   else
19615     CFLAGS=
19616   fi
19617 fi
19618 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19619 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19620 if test "${ac_cv_prog_cc_c89+set}" = set; then
19621   echo $ECHO_N "(cached) $ECHO_C" >&6
19622 else
19623   ac_cv_prog_cc_c89=no
19624 ac_save_CC=$CC
19625 cat >conftest.$ac_ext <<_ACEOF
19626 /* confdefs.h.  */
19627 _ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h.  */
19631 #include <stdarg.h>
19632 #include <stdio.h>
19633 #include <sys/types.h>
19634 #include <sys/stat.h>
19635 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19636 struct buf { int x; };
19637 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19638 static char *e (p, i)
19639      char **p;
19640      int i;
19641 {
19642   return p[i];
19643 }
19644 static char *f (char * (*g) (char **, int), char **p, ...)
19645 {
19646   char *s;
19647   va_list v;
19648   va_start (v,p);
19649   s = g (p, va_arg (v,int));
19650   va_end (v);
19651   return s;
19652 }
19653
19654 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19655    function prototypes and stuff, but not '\xHH' hex character constants.
19656    These don't provoke an error unfortunately, instead are silently treated
19657    as 'x'.  The following induces an error, until -std is added to get
19658    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19659    array size at least.  It's necessary to write '\x00'==0 to get something
19660    that's true only with -std.  */
19661 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19662
19663 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19664    inside strings and character constants.  */
19665 #define FOO(x) 'x'
19666 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19667
19668 int test (int i, double x);
19669 struct s1 {int (*f) (int a);};
19670 struct s2 {int (*f) (double a);};
19671 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19672 int argc;
19673 char **argv;
19674 int
19675 main ()
19676 {
19677 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19678   ;
19679   return 0;
19680 }
19681 _ACEOF
19682 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19683         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19684 do
19685   CC="$ac_save_CC $ac_arg"
19686   rm -f conftest.$ac_objext
19687 if { (ac_try="$ac_compile"
19688 case "(($ac_try" in
19689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690   *) ac_try_echo=$ac_try;;
19691 esac
19692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693   (eval "$ac_compile") 2>conftest.er1
19694   ac_status=$?
19695   grep -v '^ *+' conftest.er1 >conftest.err
19696   rm -f conftest.er1
19697   cat conftest.err >&5
19698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699   (exit $ac_status); } && {
19700          test -z "$ac_c_werror_flag" ||
19701          test ! -s conftest.err
19702        } && test -s conftest.$ac_objext; then
19703   ac_cv_prog_cc_c89=$ac_arg
19704 else
19705   echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19707
19708
19709 fi
19710
19711 rm -f core conftest.err conftest.$ac_objext
19712   test "x$ac_cv_prog_cc_c89" != "xno" && break
19713 done
19714 rm -f conftest.$ac_ext
19715 CC=$ac_save_CC
19716
19717 fi
19718 # AC_CACHE_VAL
19719 case "x$ac_cv_prog_cc_c89" in
19720   x)
19721     { echo "$as_me:$LINENO: result: none needed" >&5
19722 echo "${ECHO_T}none needed" >&6; } ;;
19723   xno)
19724     { echo "$as_me:$LINENO: result: unsupported" >&5
19725 echo "${ECHO_T}unsupported" >&6; } ;;
19726   *)
19727     CC="$CC $ac_cv_prog_cc_c89"
19728     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19729 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19730 esac
19731
19732
19733 ac_ext=c
19734 ac_cpp='$CPP $CPPFLAGS'
19735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19738
19739 depcc="$CC"   am_compiler_list=
19740
19741 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19742 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19743 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19744   echo $ECHO_N "(cached) $ECHO_C" >&6
19745 else
19746   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19747   # We make a subdir and do the tests there.  Otherwise we can end up
19748   # making bogus files that we don't know about and never remove.  For
19749   # instance it was reported that on HP-UX the gcc test will end up
19750   # making a dummy file named `D' -- because `-MD' means `put the output
19751   # in D'.
19752   mkdir conftest.dir
19753   # Copy depcomp to subdir because otherwise we won't find it if we're
19754   # using a relative directory.
19755   cp "$am_depcomp" conftest.dir
19756   cd conftest.dir
19757   # We will build objects and dependencies in a subdirectory because
19758   # it helps to detect inapplicable dependency modes.  For instance
19759   # both Tru64's cc and ICC support -MD to output dependencies as a
19760   # side effect of compilation, but ICC will put the dependencies in
19761   # the current directory while Tru64 will put them in the object
19762   # directory.
19763   mkdir sub
19764
19765   am_cv_CC_dependencies_compiler_type=none
19766   if test "$am_compiler_list" = ""; then
19767      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19768   fi
19769   for depmode in $am_compiler_list; do
19770     # Setup a source with many dependencies, because some compilers
19771     # like to wrap large dependency lists on column 80 (with \), and
19772     # we should not choose a depcomp mode which is confused by this.
19773     #
19774     # We need to recreate these files for each test, as the compiler may
19775     # overwrite some of them when testing with obscure command lines.
19776     # This happens at least with the AIX C compiler.
19777     : > sub/conftest.c
19778     for i in 1 2 3 4 5 6; do
19779       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19780       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19781       # Solaris 8's {/usr,}/bin/sh.
19782       touch sub/conftst$i.h
19783     done
19784     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19785
19786     case $depmode in
19787     nosideeffect)
19788       # after this tag, mechanisms are not by side-effect, so they'll
19789       # only be used when explicitly requested
19790       if test "x$enable_dependency_tracking" = xyes; then
19791         continue
19792       else
19793         break
19794       fi
19795       ;;
19796     none) break ;;
19797     esac
19798     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19799     # mode.  It turns out that the SunPro C++ compiler does not properly
19800     # handle `-M -o', and we need to detect this.
19801     if depmode=$depmode \
19802        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19803        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19804        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19805          >/dev/null 2>conftest.err &&
19806        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19807        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19808        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19809       # icc doesn't choke on unknown options, it will just issue warnings
19810       # or remarks (even with -Werror).  So we grep stderr for any message
19811       # that says an option was ignored or not supported.
19812       # When given -MP, icc 7.0 and 7.1 complain thusly:
19813       #   icc: Command line warning: ignoring option '-M'; no argument required
19814       # The diagnosis changed in icc 8.0:
19815       #   icc: Command line remark: option '-MP' not supported
19816       if (grep 'ignoring option' conftest.err ||
19817           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19818         am_cv_CC_dependencies_compiler_type=$depmode
19819         break
19820       fi
19821     fi
19822   done
19823
19824   cd ..
19825   rm -rf conftest.dir
19826 else
19827   am_cv_CC_dependencies_compiler_type=none
19828 fi
19829
19830 fi
19831 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19832 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19833 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19834
19835
19836
19837 if
19838   test "x$enable_dependency_tracking" != xno \
19839   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19840   am__fastdepCC_TRUE=
19841   am__fastdepCC_FALSE='#'
19842 else
19843   am__fastdepCC_TRUE='#'
19844   am__fastdepCC_FALSE=
19845 fi
19846
19847
19848 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19849 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
19850 # Just in case
19851 sleep 1
19852 echo timestamp > conftest.file
19853 # Do `set' in a subshell so we don't clobber the current shell's
19854 # arguments.  Must try -L first in case configure is actually a
19855 # symlink; some systems play weird games with the mod time of symlinks
19856 # (eg FreeBSD returns the mod time of the symlink's containing
19857 # directory).
19858 if (
19859    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19860    if test "$*" = "X"; then
19861       # -L didn't work.
19862       set X `ls -t $srcdir/configure conftest.file`
19863    fi
19864    rm -f conftest.file
19865    if test "$*" != "X $srcdir/configure conftest.file" \
19866       && test "$*" != "X conftest.file $srcdir/configure"; then
19867
19868       # If neither matched, then we have a broken ls.  This can happen
19869       # if, for instance, CONFIG_SHELL is bash and it inherits a
19870       # broken ls alias from the environment.  This has actually
19871       # happened.  Such a system could not be considered "sane".
19872       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
19873 alias in your environment" >&5
19874 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
19875 alias in your environment" >&2;}
19876    { (exit 1); exit 1; }; }
19877    fi
19878
19879    test "$2" = conftest.file
19880    )
19881 then
19882    # Ok.
19883    :
19884 else
19885    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19886 Check your system clock" >&5
19887 echo "$as_me: error: newly created file is older than distributed files!
19888 Check your system clock" >&2;}
19889    { (exit 1); exit 1; }; }
19890 fi
19891 { echo "$as_me:$LINENO: result: yes" >&5
19892 echo "${ECHO_T}yes" >&6; }
19893 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19894 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
19895 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19896 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
19897   echo $ECHO_N "(cached) $ECHO_C" >&6
19898 else
19899   cat >conftest.make <<\_ACEOF
19900 SHELL = /bin/sh
19901 all:
19902         @echo '@@@%%%=$(MAKE)=@@@%%%'
19903 _ACEOF
19904 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19905 case `${MAKE-make} -f conftest.make 2>/dev/null` in
19906   *@@@%%%=?*=@@@%%%*)
19907     eval ac_cv_prog_make_${ac_make}_set=yes;;
19908   *)
19909     eval ac_cv_prog_make_${ac_make}_set=no;;
19910 esac
19911 rm -f conftest.make
19912 fi
19913 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
19914   { echo "$as_me:$LINENO: result: yes" >&5
19915 echo "${ECHO_T}yes" >&6; }
19916   SET_MAKE=
19917 else
19918   { echo "$as_me:$LINENO: result: no" >&5
19919 echo "${ECHO_T}no" >&6; }
19920   SET_MAKE="MAKE=${MAKE-make}"
19921 fi
19922
19923
19924 { echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
19925 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6; }
19926 if test "$cross_compiling" = yes; then
19927   { echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
19928 echo "${ECHO_T}assuming the worse in cross-compilation" >&6; }
19929 else
19930   cat >conftest.$ac_ext <<_ACEOF
19931 /* confdefs.h.  */
19932 _ACEOF
19933 cat confdefs.h >>conftest.$ac_ext
19934 cat >>conftest.$ac_ext <<_ACEOF
19935 /* end confdefs.h.  */
19936 #include <stdio.h>
19937 int
19938 main ()
19939 {
19940 printf("%s",NULL);
19941   ;
19942   return 0;
19943 }
19944 _ACEOF
19945 rm -f conftest$ac_exeext
19946 if { (ac_try="$ac_link"
19947 case "(($ac_try" in
19948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949   *) ac_try_echo=$ac_try;;
19950 esac
19951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952   (eval "$ac_link") 2>&5
19953   ac_status=$?
19954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19956   { (case "(($ac_try" in
19957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958   *) ac_try_echo=$ac_try;;
19959 esac
19960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961   (eval "$ac_try") 2>&5
19962   ac_status=$?
19963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); }; }; then
19965
19966 cat >>confdefs.h <<\_ACEOF
19967 #define PRINTF_NULL_WORKING 1
19968 _ACEOF
19969
19970               { echo "$as_me:$LINENO: result: yes" >&5
19971 echo "${ECHO_T}yes" >&6; }
19972 else
19973   echo "$as_me: program exited with status $ac_status" >&5
19974 echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19976
19977 ( exit $ac_status )
19978 { echo "$as_me:$LINENO: result: no" >&5
19979 echo "${ECHO_T}no" >&6; }
19980 fi
19981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19982 fi
19983
19984
19985
19986
19987     { echo "$as_me:$LINENO: checking for va_copy() function" >&5
19988 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6; }
19989     if test "${ac_cv_va_copy+set}" = set; then
19990   echo $ECHO_N "(cached) $ECHO_C" >&6
19991 else
19992
19993     ac_cv_va_copy=""
19994
19995
19996
19997     if test ".$ac_cv_va_copy" = .; then
19998         if test "$cross_compiling" = yes; then
19999   ac_cv_va_copy="C99"
20000 else
20001   cat >conftest.$ac_ext <<_ACEOF
20002 /* confdefs.h.  */
20003 _ACEOF
20004 cat confdefs.h >>conftest.$ac_ext
20005 cat >>conftest.$ac_ext <<_ACEOF
20006 /* end confdefs.h.  */
20007
20008 #include <stdlib.h>
20009 #include <stdarg.h>
20010 #include <string.h>
20011 #define DO_VA_COPY(d, s) va_copy((d), (s))
20012 void test(char *str, ...)
20013 {
20014     va_list ap, ap2;
20015     int i;
20016     va_start(ap, str);
20017     DO_VA_COPY(ap2, ap);
20018     for (i = 1; i <= 9; i++) {
20019         int k = (int)va_arg(ap, int);
20020         if (k != i)
20021             abort();
20022     }
20023     DO_VA_COPY(ap, ap2);
20024     for (i = 1; i <= 9; i++) {
20025         int k = (int)va_arg(ap, int);
20026         if (k != i)
20027             abort();
20028     }
20029     va_end(ap);
20030 }
20031 int main(int argc, char *argv[])
20032 {
20033     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20034     exit(0);
20035 }
20036
20037 _ACEOF
20038 rm -f conftest$ac_exeext
20039 if { (ac_try="$ac_link"
20040 case "(($ac_try" in
20041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20042   *) ac_try_echo=$ac_try;;
20043 esac
20044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20045   (eval "$ac_link") 2>&5
20046   ac_status=$?
20047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20049   { (case "(($ac_try" in
20050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20051   *) ac_try_echo=$ac_try;;
20052 esac
20053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20054   (eval "$ac_try") 2>&5
20055   ac_status=$?
20056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057   (exit $ac_status); }; }; then
20058   ac_cv_va_copy="C99"
20059 else
20060   echo "$as_me: program exited with status $ac_status" >&5
20061 echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20063
20064 fi
20065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20066 fi
20067
20068
20069             fi
20070
20071
20072
20073
20074     if test ".$ac_cv_va_copy" = .; then
20075         if test "$cross_compiling" = yes; then
20076   ac_cv_va_copy="GCM"
20077 else
20078   cat >conftest.$ac_ext <<_ACEOF
20079 /* confdefs.h.  */
20080 _ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h.  */
20084
20085 #include <stdlib.h>
20086 #include <stdarg.h>
20087 #include <string.h>
20088 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
20089 void test(char *str, ...)
20090 {
20091     va_list ap, ap2;
20092     int i;
20093     va_start(ap, str);
20094     DO_VA_COPY(ap2, ap);
20095     for (i = 1; i <= 9; i++) {
20096         int k = (int)va_arg(ap, int);
20097         if (k != i)
20098             abort();
20099     }
20100     DO_VA_COPY(ap, ap2);
20101     for (i = 1; i <= 9; i++) {
20102         int k = (int)va_arg(ap, int);
20103         if (k != i)
20104             abort();
20105     }
20106     va_end(ap);
20107 }
20108 int main(int argc, char *argv[])
20109 {
20110     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20111     exit(0);
20112 }
20113
20114 _ACEOF
20115 rm -f conftest$ac_exeext
20116 if { (ac_try="$ac_link"
20117 case "(($ac_try" in
20118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20119   *) ac_try_echo=$ac_try;;
20120 esac
20121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20122   (eval "$ac_link") 2>&5
20123   ac_status=$?
20124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20126   { (case "(($ac_try" in
20127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128   *) ac_try_echo=$ac_try;;
20129 esac
20130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20131   (eval "$ac_try") 2>&5
20132   ac_status=$?
20133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134   (exit $ac_status); }; }; then
20135   ac_cv_va_copy="GCM"
20136 else
20137   echo "$as_me: program exited with status $ac_status" >&5
20138 echo "$as_me: failed program was:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20140
20141 fi
20142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20143 fi
20144
20145
20146             fi
20147
20148
20149
20150
20151     if test ".$ac_cv_va_copy" = .; then
20152         if test "$cross_compiling" = yes; then
20153   ac_cv_va_copy="GCH"
20154 else
20155   cat >conftest.$ac_ext <<_ACEOF
20156 /* confdefs.h.  */
20157 _ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h.  */
20161
20162 #include <stdlib.h>
20163 #include <stdarg.h>
20164 #include <string.h>
20165 #define DO_VA_COPY(d, s) __va_copy((d), (s))
20166 void test(char *str, ...)
20167 {
20168     va_list ap, ap2;
20169     int i;
20170     va_start(ap, str);
20171     DO_VA_COPY(ap2, ap);
20172     for (i = 1; i <= 9; i++) {
20173         int k = (int)va_arg(ap, int);
20174         if (k != i)
20175             abort();
20176     }
20177     DO_VA_COPY(ap, ap2);
20178     for (i = 1; i <= 9; i++) {
20179         int k = (int)va_arg(ap, int);
20180         if (k != i)
20181             abort();
20182     }
20183     va_end(ap);
20184 }
20185 int main(int argc, char *argv[])
20186 {
20187     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20188     exit(0);
20189 }
20190
20191 _ACEOF
20192 rm -f conftest$ac_exeext
20193 if { (ac_try="$ac_link"
20194 case "(($ac_try" in
20195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20196   *) ac_try_echo=$ac_try;;
20197 esac
20198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20199   (eval "$ac_link") 2>&5
20200   ac_status=$?
20201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20203   { (case "(($ac_try" in
20204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20205   *) ac_try_echo=$ac_try;;
20206 esac
20207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20208   (eval "$ac_try") 2>&5
20209   ac_status=$?
20210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211   (exit $ac_status); }; }; then
20212   ac_cv_va_copy="GCH"
20213 else
20214   echo "$as_me: program exited with status $ac_status" >&5
20215 echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20217
20218 fi
20219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20220 fi
20221
20222
20223             fi
20224
20225
20226
20227
20228     if test ".$ac_cv_va_copy" = .; then
20229         if test "$cross_compiling" = yes; then
20230   ac_cv_va_copy="GCB"
20231 else
20232   cat >conftest.$ac_ext <<_ACEOF
20233 /* confdefs.h.  */
20234 _ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h.  */
20238
20239 #include <stdlib.h>
20240 #include <stdarg.h>
20241 #include <string.h>
20242 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20243 void test(char *str, ...)
20244 {
20245     va_list ap, ap2;
20246     int i;
20247     va_start(ap, str);
20248     DO_VA_COPY(ap2, ap);
20249     for (i = 1; i <= 9; i++) {
20250         int k = (int)va_arg(ap, int);
20251         if (k != i)
20252             abort();
20253     }
20254     DO_VA_COPY(ap, ap2);
20255     for (i = 1; i <= 9; i++) {
20256         int k = (int)va_arg(ap, int);
20257         if (k != i)
20258             abort();
20259     }
20260     va_end(ap);
20261 }
20262 int main(int argc, char *argv[])
20263 {
20264     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20265     exit(0);
20266 }
20267
20268 _ACEOF
20269 rm -f conftest$ac_exeext
20270 if { (ac_try="$ac_link"
20271 case "(($ac_try" in
20272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273   *) ac_try_echo=$ac_try;;
20274 esac
20275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20276   (eval "$ac_link") 2>&5
20277   ac_status=$?
20278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20280   { (case "(($ac_try" in
20281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282   *) ac_try_echo=$ac_try;;
20283 esac
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285   (eval "$ac_try") 2>&5
20286   ac_status=$?
20287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288   (exit $ac_status); }; }; then
20289   ac_cv_va_copy="GCB"
20290 else
20291   echo "$as_me: program exited with status $ac_status" >&5
20292 echo "$as_me: failed program was:" >&5
20293 sed 's/^/| /' conftest.$ac_ext >&5
20294
20295 fi
20296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20297 fi
20298
20299
20300             fi
20301
20302
20303
20304
20305     if test ".$ac_cv_va_copy" = .; then
20306         if test "$cross_compiling" = yes; then
20307   ac_cv_va_copy="ASS"
20308 else
20309   cat >conftest.$ac_ext <<_ACEOF
20310 /* confdefs.h.  */
20311 _ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h.  */
20315
20316 #include <stdlib.h>
20317 #include <stdarg.h>
20318 #include <string.h>
20319 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20320 void test(char *str, ...)
20321 {
20322     va_list ap, ap2;
20323     int i;
20324     va_start(ap, str);
20325     DO_VA_COPY(ap2, ap);
20326     for (i = 1; i <= 9; i++) {
20327         int k = (int)va_arg(ap, int);
20328         if (k != i)
20329             abort();
20330     }
20331     DO_VA_COPY(ap, ap2);
20332     for (i = 1; i <= 9; i++) {
20333         int k = (int)va_arg(ap, int);
20334         if (k != i)
20335             abort();
20336     }
20337     va_end(ap);
20338 }
20339 int main(int argc, char *argv[])
20340 {
20341     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20342     exit(0);
20343 }
20344
20345 _ACEOF
20346 rm -f conftest$ac_exeext
20347 if { (ac_try="$ac_link"
20348 case "(($ac_try" in
20349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350   *) ac_try_echo=$ac_try;;
20351 esac
20352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353   (eval "$ac_link") 2>&5
20354   ac_status=$?
20355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20357   { (case "(($ac_try" in
20358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359   *) ac_try_echo=$ac_try;;
20360 esac
20361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20362   (eval "$ac_try") 2>&5
20363   ac_status=$?
20364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365   (exit $ac_status); }; }; then
20366   ac_cv_va_copy="ASS"
20367 else
20368   echo "$as_me: program exited with status $ac_status" >&5
20369 echo "$as_me: failed program was:" >&5
20370 sed 's/^/| /' conftest.$ac_ext >&5
20371
20372 fi
20373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20374 fi
20375
20376
20377             fi
20378
20379
20380
20381
20382     if test ".$ac_cv_va_copy" = .; then
20383         if test "$cross_compiling" = yes; then
20384   ac_cv_va_copy="ASP"
20385 else
20386   cat >conftest.$ac_ext <<_ACEOF
20387 /* confdefs.h.  */
20388 _ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h.  */
20392
20393 #include <stdlib.h>
20394 #include <stdarg.h>
20395 #include <string.h>
20396 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20397 void test(char *str, ...)
20398 {
20399     va_list ap, ap2;
20400     int i;
20401     va_start(ap, str);
20402     DO_VA_COPY(ap2, ap);
20403     for (i = 1; i <= 9; i++) {
20404         int k = (int)va_arg(ap, int);
20405         if (k != i)
20406             abort();
20407     }
20408     DO_VA_COPY(ap, ap2);
20409     for (i = 1; i <= 9; i++) {
20410         int k = (int)va_arg(ap, int);
20411         if (k != i)
20412             abort();
20413     }
20414     va_end(ap);
20415 }
20416 int main(int argc, char *argv[])
20417 {
20418     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20419     exit(0);
20420 }
20421
20422 _ACEOF
20423 rm -f conftest$ac_exeext
20424 if { (ac_try="$ac_link"
20425 case "(($ac_try" in
20426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427   *) ac_try_echo=$ac_try;;
20428 esac
20429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20430   (eval "$ac_link") 2>&5
20431   ac_status=$?
20432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20434   { (case "(($ac_try" in
20435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436   *) ac_try_echo=$ac_try;;
20437 esac
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439   (eval "$ac_try") 2>&5
20440   ac_status=$?
20441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442   (exit $ac_status); }; }; then
20443   ac_cv_va_copy="ASP"
20444 else
20445   echo "$as_me: program exited with status $ac_status" >&5
20446 echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20448
20449 fi
20450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20451 fi
20452
20453
20454             fi
20455
20456
20457
20458
20459     if test ".$ac_cv_va_copy" = .; then
20460         if test "$cross_compiling" = yes; then
20461   ac_cv_va_copy="CPS"
20462 else
20463   cat >conftest.$ac_ext <<_ACEOF
20464 /* confdefs.h.  */
20465 _ACEOF
20466 cat confdefs.h >>conftest.$ac_ext
20467 cat >>conftest.$ac_ext <<_ACEOF
20468 /* end confdefs.h.  */
20469
20470 #include <stdlib.h>
20471 #include <stdarg.h>
20472 #include <string.h>
20473 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20474 void test(char *str, ...)
20475 {
20476     va_list ap, ap2;
20477     int i;
20478     va_start(ap, str);
20479     DO_VA_COPY(ap2, ap);
20480     for (i = 1; i <= 9; i++) {
20481         int k = (int)va_arg(ap, int);
20482         if (k != i)
20483             abort();
20484     }
20485     DO_VA_COPY(ap, ap2);
20486     for (i = 1; i <= 9; i++) {
20487         int k = (int)va_arg(ap, int);
20488         if (k != i)
20489             abort();
20490     }
20491     va_end(ap);
20492 }
20493 int main(int argc, char *argv[])
20494 {
20495     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20496     exit(0);
20497 }
20498
20499 _ACEOF
20500 rm -f conftest$ac_exeext
20501 if { (ac_try="$ac_link"
20502 case "(($ac_try" in
20503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504   *) ac_try_echo=$ac_try;;
20505 esac
20506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507   (eval "$ac_link") 2>&5
20508   ac_status=$?
20509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20511   { (case "(($ac_try" in
20512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513   *) ac_try_echo=$ac_try;;
20514 esac
20515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20516   (eval "$ac_try") 2>&5
20517   ac_status=$?
20518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519   (exit $ac_status); }; }; then
20520   ac_cv_va_copy="CPS"
20521 else
20522   echo "$as_me: program exited with status $ac_status" >&5
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20525
20526 fi
20527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20528 fi
20529
20530
20531             fi
20532
20533
20534
20535
20536     if test ".$ac_cv_va_copy" = .; then
20537         if test "$cross_compiling" = yes; then
20538   ac_cv_va_copy="CPP"
20539 else
20540   cat >conftest.$ac_ext <<_ACEOF
20541 /* confdefs.h.  */
20542 _ACEOF
20543 cat confdefs.h >>conftest.$ac_ext
20544 cat >>conftest.$ac_ext <<_ACEOF
20545 /* end confdefs.h.  */
20546
20547 #include <stdlib.h>
20548 #include <stdarg.h>
20549 #include <string.h>
20550 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20551 void test(char *str, ...)
20552 {
20553     va_list ap, ap2;
20554     int i;
20555     va_start(ap, str);
20556     DO_VA_COPY(ap2, ap);
20557     for (i = 1; i <= 9; i++) {
20558         int k = (int)va_arg(ap, int);
20559         if (k != i)
20560             abort();
20561     }
20562     DO_VA_COPY(ap, ap2);
20563     for (i = 1; i <= 9; i++) {
20564         int k = (int)va_arg(ap, int);
20565         if (k != i)
20566             abort();
20567     }
20568     va_end(ap);
20569 }
20570 int main(int argc, char *argv[])
20571 {
20572     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20573     exit(0);
20574 }
20575
20576 _ACEOF
20577 rm -f conftest$ac_exeext
20578 if { (ac_try="$ac_link"
20579 case "(($ac_try" in
20580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581   *) ac_try_echo=$ac_try;;
20582 esac
20583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20584   (eval "$ac_link") 2>&5
20585   ac_status=$?
20586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20588   { (case "(($ac_try" in
20589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590   *) ac_try_echo=$ac_try;;
20591 esac
20592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20593   (eval "$ac_try") 2>&5
20594   ac_status=$?
20595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596   (exit $ac_status); }; }; then
20597   ac_cv_va_copy="CPP"
20598 else
20599   echo "$as_me: program exited with status $ac_status" >&5
20600 echo "$as_me: failed program was:" >&5
20601 sed 's/^/| /' conftest.$ac_ext >&5
20602
20603 fi
20604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20605 fi
20606
20607
20608             fi
20609
20610     if test ".$ac_cv_va_copy" = .; then
20611         { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20612 echo "$as_me: error: no working implementation found" >&2;}
20613    { (exit 1); exit 1; }; }
20614     fi
20615
20616 fi
20617
20618     if test ".$ac_cv_va_copy" = ".C99"; then
20619
20620 cat >>confdefs.h <<\_ACEOF
20621 #define HAVE_VA_COPY 1
20622 _ACEOF
20623
20624   fi
20625
20626 cat >>confdefs.h <<_ACEOF
20627 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20628 _ACEOF
20629
20630
20631
20632     if test ".$ac_cv_va_copy" = ".C99"; then
20633       { echo "$as_me:$LINENO: result: yes" >&5
20634 echo "${ECHO_T}yes" >&6; }
20635   else
20636       { echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20637 echo "${ECHO_T}no (using fallback implementation)" >&6; }
20638   fi
20639
20640
20641 # Checks for header files.
20642 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20643 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20644 if test "${ac_cv_header_stdc+set}" = set; then
20645   echo $ECHO_N "(cached) $ECHO_C" >&6
20646 else
20647   cat >conftest.$ac_ext <<_ACEOF
20648 /* confdefs.h.  */
20649 _ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h.  */
20653 #include <stdlib.h>
20654 #include <stdarg.h>
20655 #include <string.h>
20656 #include <float.h>
20657
20658 int
20659 main ()
20660 {
20661
20662   ;
20663   return 0;
20664 }
20665 _ACEOF
20666 rm -f conftest.$ac_objext
20667 if { (ac_try="$ac_compile"
20668 case "(($ac_try" in
20669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20670   *) ac_try_echo=$ac_try;;
20671 esac
20672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20673   (eval "$ac_compile") 2>conftest.er1
20674   ac_status=$?
20675   grep -v '^ *+' conftest.er1 >conftest.err
20676   rm -f conftest.er1
20677   cat conftest.err >&5
20678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679   (exit $ac_status); } && {
20680          test -z "$ac_c_werror_flag" ||
20681          test ! -s conftest.err
20682        } && test -s conftest.$ac_objext; then
20683   ac_cv_header_stdc=yes
20684 else
20685   echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20687
20688         ac_cv_header_stdc=no
20689 fi
20690
20691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20692
20693 if test $ac_cv_header_stdc = yes; then
20694   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20695   cat >conftest.$ac_ext <<_ACEOF
20696 /* confdefs.h.  */
20697 _ACEOF
20698 cat confdefs.h >>conftest.$ac_ext
20699 cat >>conftest.$ac_ext <<_ACEOF
20700 /* end confdefs.h.  */
20701 #include <string.h>
20702
20703 _ACEOF
20704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20705   $EGREP "memchr" >/dev/null 2>&1; then
20706   :
20707 else
20708   ac_cv_header_stdc=no
20709 fi
20710 rm -f conftest*
20711
20712 fi
20713
20714 if test $ac_cv_header_stdc = yes; then
20715   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20716   cat >conftest.$ac_ext <<_ACEOF
20717 /* confdefs.h.  */
20718 _ACEOF
20719 cat confdefs.h >>conftest.$ac_ext
20720 cat >>conftest.$ac_ext <<_ACEOF
20721 /* end confdefs.h.  */
20722 #include <stdlib.h>
20723
20724 _ACEOF
20725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20726   $EGREP "free" >/dev/null 2>&1; then
20727   :
20728 else
20729   ac_cv_header_stdc=no
20730 fi
20731 rm -f conftest*
20732
20733 fi
20734
20735 if test $ac_cv_header_stdc = yes; then
20736   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20737   if test "$cross_compiling" = yes; then
20738   :
20739 else
20740   cat >conftest.$ac_ext <<_ACEOF
20741 /* confdefs.h.  */
20742 _ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h.  */
20746 #include <ctype.h>
20747 #include <stdlib.h>
20748 #if ((' ' & 0x0FF) == 0x020)
20749 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20750 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20751 #else
20752 # define ISLOWER(c) \
20753                    (('a' <= (c) && (c) <= 'i') \
20754                      || ('j' <= (c) && (c) <= 'r') \
20755                      || ('s' <= (c) && (c) <= 'z'))
20756 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20757 #endif
20758
20759 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20760 int
20761 main ()
20762 {
20763   int i;
20764   for (i = 0; i < 256; i++)
20765     if (XOR (islower (i), ISLOWER (i))
20766         || toupper (i) != TOUPPER (i))
20767       return 2;
20768   return 0;
20769 }
20770 _ACEOF
20771 rm -f conftest$ac_exeext
20772 if { (ac_try="$ac_link"
20773 case "(($ac_try" in
20774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20775   *) ac_try_echo=$ac_try;;
20776 esac
20777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20778   (eval "$ac_link") 2>&5
20779   ac_status=$?
20780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20782   { (case "(($ac_try" in
20783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784   *) ac_try_echo=$ac_try;;
20785 esac
20786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787   (eval "$ac_try") 2>&5
20788   ac_status=$?
20789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790   (exit $ac_status); }; }; then
20791   :
20792 else
20793   echo "$as_me: program exited with status $ac_status" >&5
20794 echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20796
20797 ( exit $ac_status )
20798 ac_cv_header_stdc=no
20799 fi
20800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20801 fi
20802
20803
20804 fi
20805 fi
20806 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20807 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20808 if test $ac_cv_header_stdc = yes; then
20809
20810 cat >>confdefs.h <<\_ACEOF
20811 #define STDC_HEADERS 1
20812 _ACEOF
20813
20814 fi
20815
20816 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20817 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20818 if test "${ac_cv_header_time+set}" = set; then
20819   echo $ECHO_N "(cached) $ECHO_C" >&6
20820 else
20821   cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h.  */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h.  */
20827 #include <sys/types.h>
20828 #include <sys/time.h>
20829 #include <time.h>
20830
20831 int
20832 main ()
20833 {
20834 if ((struct tm *) 0)
20835 return 0;
20836   ;
20837   return 0;
20838 }
20839 _ACEOF
20840 rm -f conftest.$ac_objext
20841 if { (ac_try="$ac_compile"
20842 case "(($ac_try" in
20843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20844   *) ac_try_echo=$ac_try;;
20845 esac
20846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20847   (eval "$ac_compile") 2>conftest.er1
20848   ac_status=$?
20849   grep -v '^ *+' conftest.er1 >conftest.err
20850   rm -f conftest.er1
20851   cat conftest.err >&5
20852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853   (exit $ac_status); } && {
20854          test -z "$ac_c_werror_flag" ||
20855          test ! -s conftest.err
20856        } && test -s conftest.$ac_objext; then
20857   ac_cv_header_time=yes
20858 else
20859   echo "$as_me: failed program was:" >&5
20860 sed 's/^/| /' conftest.$ac_ext >&5
20861
20862         ac_cv_header_time=no
20863 fi
20864
20865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20866 fi
20867 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20868 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20869 if test $ac_cv_header_time = yes; then
20870
20871 cat >>confdefs.h <<\_ACEOF
20872 #define TIME_WITH_SYS_TIME 1
20873 _ACEOF
20874
20875 fi
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887 for ac_header in sys/socket.h \
20888                   sys/stat.h \
20889                   windows.h winsock.h winsock2.h \
20890                   sys/time.h \
20891                   errno.h unistd.h \
20892                   execinfo.h\
20893                   signal.h
20894 do
20895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20897   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20900   echo $ECHO_N "(cached) $ECHO_C" >&6
20901 fi
20902 ac_res=`eval echo '${'$as_ac_Header'}'`
20903                { echo "$as_me:$LINENO: result: $ac_res" >&5
20904 echo "${ECHO_T}$ac_res" >&6; }
20905 else
20906   # Is the header compilable?
20907 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20909 cat >conftest.$ac_ext <<_ACEOF
20910 /* confdefs.h.  */
20911 _ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h.  */
20915 $ac_includes_default
20916 #include <$ac_header>
20917 _ACEOF
20918 rm -f conftest.$ac_objext
20919 if { (ac_try="$ac_compile"
20920 case "(($ac_try" in
20921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922   *) ac_try_echo=$ac_try;;
20923 esac
20924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925   (eval "$ac_compile") 2>conftest.er1
20926   ac_status=$?
20927   grep -v '^ *+' conftest.er1 >conftest.err
20928   rm -f conftest.er1
20929   cat conftest.err >&5
20930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931   (exit $ac_status); } && {
20932          test -z "$ac_c_werror_flag" ||
20933          test ! -s conftest.err
20934        } && test -s conftest.$ac_objext; then
20935   ac_header_compiler=yes
20936 else
20937   echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20939
20940         ac_header_compiler=no
20941 fi
20942
20943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20945 echo "${ECHO_T}$ac_header_compiler" >&6; }
20946
20947 # Is the header present?
20948 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20950 cat >conftest.$ac_ext <<_ACEOF
20951 /* confdefs.h.  */
20952 _ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h.  */
20956 #include <$ac_header>
20957 _ACEOF
20958 if { (ac_try="$ac_cpp conftest.$ac_ext"
20959 case "(($ac_try" in
20960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961   *) ac_try_echo=$ac_try;;
20962 esac
20963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20965   ac_status=$?
20966   grep -v '^ *+' conftest.er1 >conftest.err
20967   rm -f conftest.er1
20968   cat conftest.err >&5
20969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970   (exit $ac_status); } >/dev/null && {
20971          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20972          test ! -s conftest.err
20973        }; then
20974   ac_header_preproc=yes
20975 else
20976   echo "$as_me: failed program was:" >&5
20977 sed 's/^/| /' conftest.$ac_ext >&5
20978
20979   ac_header_preproc=no
20980 fi
20981
20982 rm -f conftest.err conftest.$ac_ext
20983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20984 echo "${ECHO_T}$ac_header_preproc" >&6; }
20985
20986 # So?  What about this header?
20987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20988   yes:no: )
20989     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20991     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20993     ac_header_preproc=yes
20994     ;;
20995   no:yes:* )
20996     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20998     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20999 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21000     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21002     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21003 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21006     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21008     ( cat <<\_ASBOX
21009 ## -------------------------------------------------- ##
21010 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
21011 ## -------------------------------------------------- ##
21012 _ASBOX
21013      ) | sed "s/^/$as_me: WARNING:     /" >&2
21014     ;;
21015 esac
21016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21019   echo $ECHO_N "(cached) $ECHO_C" >&6
21020 else
21021   eval "$as_ac_Header=\$ac_header_preproc"
21022 fi
21023 ac_res=`eval echo '${'$as_ac_Header'}'`
21024                { echo "$as_me:$LINENO: result: $ac_res" >&5
21025 echo "${ECHO_T}$ac_res" >&6; }
21026
21027 fi
21028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21029   cat >>confdefs.h <<_ACEOF
21030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21031 _ACEOF
21032
21033 fi
21034
21035 done
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045 for ac_func in gettimeofday usleep \
21046                 getdtablesize \
21047                 sysconf\
21048                 readv\
21049                 popen\
21050                 signal\
21051                 getline
21052 do
21053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21054 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21057   echo $ECHO_N "(cached) $ECHO_C" >&6
21058 else
21059   cat >conftest.$ac_ext <<_ACEOF
21060 /* confdefs.h.  */
21061 _ACEOF
21062 cat confdefs.h >>conftest.$ac_ext
21063 cat >>conftest.$ac_ext <<_ACEOF
21064 /* end confdefs.h.  */
21065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21067 #define $ac_func innocuous_$ac_func
21068
21069 /* System header to define __stub macros and hopefully few prototypes,
21070     which can conflict with char $ac_func (); below.
21071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21072     <limits.h> exists even on freestanding compilers.  */
21073
21074 #ifdef __STDC__
21075 # include <limits.h>
21076 #else
21077 # include <assert.h>
21078 #endif
21079
21080 #undef $ac_func
21081
21082 /* Override any GCC internal prototype to avoid an error.
21083    Use char because int might match the return type of a GCC
21084    builtin and then its argument prototype would still apply.  */
21085 #ifdef __cplusplus
21086 extern "C"
21087 #endif
21088 char $ac_func ();
21089 /* The GNU C library defines this for functions which it implements
21090     to always fail with ENOSYS.  Some functions are actually named
21091     something starting with __ and the normal name is an alias.  */
21092 #if defined __stub_$ac_func || defined __stub___$ac_func
21093 choke me
21094 #endif
21095
21096 int
21097 main ()
21098 {
21099 return $ac_func ();
21100   ;
21101   return 0;
21102 }
21103 _ACEOF
21104 rm -f conftest.$ac_objext conftest$ac_exeext
21105 if { (ac_try="$ac_link"
21106 case "(($ac_try" in
21107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108   *) ac_try_echo=$ac_try;;
21109 esac
21110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111   (eval "$ac_link") 2>conftest.er1
21112   ac_status=$?
21113   grep -v '^ *+' conftest.er1 >conftest.err
21114   rm -f conftest.er1
21115   cat conftest.err >&5
21116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117   (exit $ac_status); } && {
21118          test -z "$ac_c_werror_flag" ||
21119          test ! -s conftest.err
21120        } && test -s conftest$ac_exeext &&
21121        $as_test_x conftest$ac_exeext; then
21122   eval "$as_ac_var=yes"
21123 else
21124   echo "$as_me: failed program was:" >&5
21125 sed 's/^/| /' conftest.$ac_ext >&5
21126
21127         eval "$as_ac_var=no"
21128 fi
21129
21130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21131       conftest$ac_exeext conftest.$ac_ext
21132 fi
21133 ac_res=`eval echo '${'$as_ac_var'}'`
21134                { echo "$as_me:$LINENO: result: $ac_res" >&5
21135 echo "${ECHO_T}$ac_res" >&6; }
21136 if test `eval echo '${'$as_ac_var'}'` = yes; then
21137   cat >>confdefs.h <<_ACEOF
21138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21139 _ACEOF
21140
21141 fi
21142 done
21143
21144
21145 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
21146
21147
21148 for ac_func in snprintf vsnprintf
21149 do
21150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21151 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21154   echo $ECHO_N "(cached) $ECHO_C" >&6
21155 else
21156   cat >conftest.$ac_ext <<_ACEOF
21157 /* confdefs.h.  */
21158 _ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h.  */
21162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21163    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21164 #define $ac_func innocuous_$ac_func
21165
21166 /* System header to define __stub macros and hopefully few prototypes,
21167     which can conflict with char $ac_func (); below.
21168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21169     <limits.h> exists even on freestanding compilers.  */
21170
21171 #ifdef __STDC__
21172 # include <limits.h>
21173 #else
21174 # include <assert.h>
21175 #endif
21176
21177 #undef $ac_func
21178
21179 /* Override any GCC internal prototype to avoid an error.
21180    Use char because int might match the return type of a GCC
21181    builtin and then its argument prototype would still apply.  */
21182 #ifdef __cplusplus
21183 extern "C"
21184 #endif
21185 char $ac_func ();
21186 /* The GNU C library defines this for functions which it implements
21187     to always fail with ENOSYS.  Some functions are actually named
21188     something starting with __ and the normal name is an alias.  */
21189 #if defined __stub_$ac_func || defined __stub___$ac_func
21190 choke me
21191 #endif
21192
21193 int
21194 main ()
21195 {
21196 return $ac_func ();
21197   ;
21198   return 0;
21199 }
21200 _ACEOF
21201 rm -f conftest.$ac_objext conftest$ac_exeext
21202 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
21209   ac_status=$?
21210   grep -v '^ *+' conftest.er1 >conftest.err
21211   rm -f conftest.er1
21212   cat conftest.err >&5
21213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214   (exit $ac_status); } && {
21215          test -z "$ac_c_werror_flag" ||
21216          test ! -s conftest.err
21217        } && test -s conftest$ac_exeext &&
21218        $as_test_x conftest$ac_exeext; then
21219   eval "$as_ac_var=yes"
21220 else
21221   echo "$as_me: failed program was:" >&5
21222 sed 's/^/| /' conftest.$ac_ext >&5
21223
21224         eval "$as_ac_var=no"
21225 fi
21226
21227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21228       conftest$ac_exeext conftest.$ac_ext
21229 fi
21230 ac_res=`eval echo '${'$as_ac_var'}'`
21231                { echo "$as_me:$LINENO: result: $ac_res" >&5
21232 echo "${ECHO_T}$ac_res" >&6; }
21233 if test `eval echo '${'$as_ac_var'}'` = yes; then
21234   cat >>confdefs.h <<_ACEOF
21235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21236 _ACEOF
21237
21238 fi
21239 done
21240
21241 { echo "$as_me:$LINENO: checking for working snprintf" >&5
21242 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
21243 if test "${ac_cv_have_working_snprintf+set}" = set; then
21244   echo $ECHO_N "(cached) $ECHO_C" >&6
21245 else
21246   if test "$cross_compiling" = yes; then
21247   ac_cv_have_working_snprintf=cross
21248 else
21249   cat >conftest.$ac_ext <<_ACEOF
21250 /* confdefs.h.  */
21251 _ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h.  */
21255 #include <stdio.h>
21256
21257 int main(void)
21258 {
21259     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21260     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21261     int i;
21262     i = snprintf (bufs, 2, "%s", "111");
21263     if (strcmp (bufs, "1")) exit (1);
21264     if (i != 3) exit (1);
21265     i = snprintf (bufd, 2, "%d", 111);
21266     if (strcmp (bufd, "1")) exit (1);
21267     if (i != 3) exit (1);
21268     exit(0);
21269 }
21270 _ACEOF
21271 rm -f conftest$ac_exeext
21272 if { (ac_try="$ac_link"
21273 case "(($ac_try" in
21274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21275   *) ac_try_echo=$ac_try;;
21276 esac
21277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21278   (eval "$ac_link") 2>&5
21279   ac_status=$?
21280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21282   { (case "(($ac_try" in
21283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21284   *) ac_try_echo=$ac_try;;
21285 esac
21286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21287   (eval "$ac_try") 2>&5
21288   ac_status=$?
21289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290   (exit $ac_status); }; }; then
21291   ac_cv_have_working_snprintf=yes
21292 else
21293   echo "$as_me: program exited with status $ac_status" >&5
21294 echo "$as_me: failed program was:" >&5
21295 sed 's/^/| /' conftest.$ac_ext >&5
21296
21297 ( exit $ac_status )
21298 ac_cv_have_working_snprintf=no
21299 fi
21300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21301 fi
21302
21303
21304 fi
21305
21306 { echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
21307 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
21308 { echo "$as_me:$LINENO: checking for working vsnprintf" >&5
21309 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
21310 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
21311   echo $ECHO_N "(cached) $ECHO_C" >&6
21312 else
21313   if test "$cross_compiling" = yes; then
21314   ac_cv_have_working_vsnprintf=cross
21315 else
21316   cat >conftest.$ac_ext <<_ACEOF
21317 /* confdefs.h.  */
21318 _ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h.  */
21322 #include <stdio.h>
21323 #include <stdarg.h>
21324
21325 int my_vsnprintf (char *buf, const char *tmpl, ...)
21326 {
21327     int i;
21328     va_list args;
21329     va_start (args, tmpl);
21330     i = vsnprintf (buf, 2, tmpl, args);
21331     va_end (args);
21332     return i;
21333 }
21334
21335 int main(void)
21336 {
21337     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
21338     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
21339     int i;
21340     i = my_vsnprintf (bufs, "%s", "111");
21341     if (strcmp (bufs, "1")) exit (1);
21342     if (i != 3) exit (1);
21343     i = my_vsnprintf (bufd, "%d", 111);
21344     if (strcmp (bufd, "1")) exit (1);
21345     if (i != 3) exit (1);
21346     exit(0);
21347 }
21348 _ACEOF
21349 rm -f conftest$ac_exeext
21350 if { (ac_try="$ac_link"
21351 case "(($ac_try" in
21352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21353   *) ac_try_echo=$ac_try;;
21354 esac
21355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21356   (eval "$ac_link") 2>&5
21357   ac_status=$?
21358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21360   { (case "(($ac_try" in
21361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21362   *) ac_try_echo=$ac_try;;
21363 esac
21364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21365   (eval "$ac_try") 2>&5
21366   ac_status=$?
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); }; }; then
21369   ac_cv_have_working_vsnprintf=yes
21370 else
21371   echo "$as_me: program exited with status $ac_status" >&5
21372 echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21374
21375 ( exit $ac_status )
21376 ac_cv_have_working_vsnprintf=no
21377 fi
21378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21379 fi
21380
21381
21382 fi
21383
21384 { echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
21385 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
21386 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
21387   case " $LIBOBJS " in
21388   *" snprintf.$ac_objext "* ) ;;
21389   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21390  ;;
21391 esac
21392
21393   { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
21394 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
21395
21396 cat >>confdefs.h <<\_ACEOF
21397 #define PREFER_PORTABLE_SNPRINTF 1
21398 _ACEOF
21399
21400 fi
21401 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
21402 { echo "$as_me:$LINENO: checking for asprintf" >&5
21403 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6; }
21404 if test "${ac_cv_func_asprintf+set}" = set; then
21405   echo $ECHO_N "(cached) $ECHO_C" >&6
21406 else
21407   cat >conftest.$ac_ext <<_ACEOF
21408 /* confdefs.h.  */
21409 _ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h.  */
21413 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
21414    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21415 #define asprintf innocuous_asprintf
21416
21417 /* System header to define __stub macros and hopefully few prototypes,
21418     which can conflict with char asprintf (); below.
21419     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21420     <limits.h> exists even on freestanding compilers.  */
21421
21422 #ifdef __STDC__
21423 # include <limits.h>
21424 #else
21425 # include <assert.h>
21426 #endif
21427
21428 #undef asprintf
21429
21430 /* Override any GCC internal prototype to avoid an error.
21431    Use char because int might match the return type of a GCC
21432    builtin and then its argument prototype would still apply.  */
21433 #ifdef __cplusplus
21434 extern "C"
21435 #endif
21436 char asprintf ();
21437 /* The GNU C library defines this for functions which it implements
21438     to always fail with ENOSYS.  Some functions are actually named
21439     something starting with __ and the normal name is an alias.  */
21440 #if defined __stub_asprintf || defined __stub___asprintf
21441 choke me
21442 #endif
21443
21444 int
21445 main ()
21446 {
21447 return asprintf ();
21448   ;
21449   return 0;
21450 }
21451 _ACEOF
21452 rm -f conftest.$ac_objext conftest$ac_exeext
21453 if { (ac_try="$ac_link"
21454 case "(($ac_try" in
21455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21456   *) ac_try_echo=$ac_try;;
21457 esac
21458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21459   (eval "$ac_link") 2>conftest.er1
21460   ac_status=$?
21461   grep -v '^ *+' conftest.er1 >conftest.err
21462   rm -f conftest.er1
21463   cat conftest.err >&5
21464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465   (exit $ac_status); } && {
21466          test -z "$ac_c_werror_flag" ||
21467          test ! -s conftest.err
21468        } && test -s conftest$ac_exeext &&
21469        $as_test_x conftest$ac_exeext; then
21470   ac_cv_func_asprintf=yes
21471 else
21472   echo "$as_me: failed program was:" >&5
21473 sed 's/^/| /' conftest.$ac_ext >&5
21474
21475         ac_cv_func_asprintf=no
21476 fi
21477
21478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21479       conftest$ac_exeext conftest.$ac_ext
21480 fi
21481 { echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21482 echo "${ECHO_T}$ac_cv_func_asprintf" >&6; }
21483 if test $ac_cv_func_asprintf = yes; then
21484   :
21485 else
21486
21487 cat >>confdefs.h <<\_ACEOF
21488 #define NEED_ASPRINTF 1
21489 _ACEOF
21490
21491 fi
21492
21493 { echo "$as_me:$LINENO: checking for vasprintf" >&5
21494 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6; }
21495 if test "${ac_cv_func_vasprintf+set}" = set; then
21496   echo $ECHO_N "(cached) $ECHO_C" >&6
21497 else
21498   cat >conftest.$ac_ext <<_ACEOF
21499 /* confdefs.h.  */
21500 _ACEOF
21501 cat confdefs.h >>conftest.$ac_ext
21502 cat >>conftest.$ac_ext <<_ACEOF
21503 /* end confdefs.h.  */
21504 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21506 #define vasprintf innocuous_vasprintf
21507
21508 /* System header to define __stub macros and hopefully few prototypes,
21509     which can conflict with char vasprintf (); below.
21510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21511     <limits.h> exists even on freestanding compilers.  */
21512
21513 #ifdef __STDC__
21514 # include <limits.h>
21515 #else
21516 # include <assert.h>
21517 #endif
21518
21519 #undef vasprintf
21520
21521 /* Override any GCC internal prototype to avoid an error.
21522    Use char because int might match the return type of a GCC
21523    builtin and then its argument prototype would still apply.  */
21524 #ifdef __cplusplus
21525 extern "C"
21526 #endif
21527 char vasprintf ();
21528 /* The GNU C library defines this for functions which it implements
21529     to always fail with ENOSYS.  Some functions are actually named
21530     something starting with __ and the normal name is an alias.  */
21531 #if defined __stub_vasprintf || defined __stub___vasprintf
21532 choke me
21533 #endif
21534
21535 int
21536 main ()
21537 {
21538 return vasprintf ();
21539   ;
21540   return 0;
21541 }
21542 _ACEOF
21543 rm -f conftest.$ac_objext conftest$ac_exeext
21544 if { (ac_try="$ac_link"
21545 case "(($ac_try" in
21546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21547   *) ac_try_echo=$ac_try;;
21548 esac
21549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21550   (eval "$ac_link") 2>conftest.er1
21551   ac_status=$?
21552   grep -v '^ *+' conftest.er1 >conftest.err
21553   rm -f conftest.er1
21554   cat conftest.err >&5
21555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556   (exit $ac_status); } && {
21557          test -z "$ac_c_werror_flag" ||
21558          test ! -s conftest.err
21559        } && test -s conftest$ac_exeext &&
21560        $as_test_x conftest$ac_exeext; then
21561   ac_cv_func_vasprintf=yes
21562 else
21563   echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21565
21566         ac_cv_func_vasprintf=no
21567 fi
21568
21569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21570       conftest$ac_exeext conftest.$ac_ext
21571 fi
21572 { echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21573 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6; }
21574 if test $ac_cv_func_vasprintf = yes; then
21575   :
21576 else
21577
21578 cat >>confdefs.h <<\_ACEOF
21579 #define NEED_VASPRINTF 1
21580 _ACEOF
21581
21582 fi
21583
21584
21585 # Checks for typedefs, structures, and compiler characteristics.
21586 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21587 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21588 if test "${ac_cv_c_const+set}" = set; then
21589   echo $ECHO_N "(cached) $ECHO_C" >&6
21590 else
21591   cat >conftest.$ac_ext <<_ACEOF
21592 /* confdefs.h.  */
21593 _ACEOF
21594 cat confdefs.h >>conftest.$ac_ext
21595 cat >>conftest.$ac_ext <<_ACEOF
21596 /* end confdefs.h.  */
21597
21598 int
21599 main ()
21600 {
21601 /* FIXME: Include the comments suggested by Paul. */
21602 #ifndef __cplusplus
21603   /* Ultrix mips cc rejects this.  */
21604   typedef int charset[2];
21605   const charset cs;
21606   /* SunOS 4.1.1 cc rejects this.  */
21607   char const *const *pcpcc;
21608   char **ppc;
21609   /* NEC SVR4.0.2 mips cc rejects this.  */
21610   struct point {int x, y;};
21611   static struct point const zero = {0,0};
21612   /* AIX XL C 1.02.0.0 rejects this.
21613      It does not let you subtract one const X* pointer from another in
21614      an arm of an if-expression whose if-part is not a constant
21615      expression */
21616   const char *g = "string";
21617   pcpcc = &g + (g ? g-g : 0);
21618   /* HPUX 7.0 cc rejects these. */
21619   ++pcpcc;
21620   ppc = (char**) pcpcc;
21621   pcpcc = (char const *const *) ppc;
21622   { /* SCO 3.2v4 cc rejects this.  */
21623     char *t;
21624     char const *s = 0 ? (char *) 0 : (char const *) 0;
21625
21626     *t++ = 0;
21627     if (s) return 0;
21628   }
21629   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21630     int x[] = {25, 17};
21631     const int *foo = &x[0];
21632     ++foo;
21633   }
21634   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21635     typedef const int *iptr;
21636     iptr p = 0;
21637     ++p;
21638   }
21639   { /* AIX XL C 1.02.0.0 rejects this saying
21640        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21641     struct s { int j; const int *ap[3]; };
21642     struct s *b; b->j = 5;
21643   }
21644   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21645     const int foo = 10;
21646     if (!foo) return 0;
21647   }
21648   return !cs[0] && !zero.x;
21649 #endif
21650
21651   ;
21652   return 0;
21653 }
21654 _ACEOF
21655 rm -f conftest.$ac_objext
21656 if { (ac_try="$ac_compile"
21657 case "(($ac_try" in
21658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21659   *) ac_try_echo=$ac_try;;
21660 esac
21661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21662   (eval "$ac_compile") 2>conftest.er1
21663   ac_status=$?
21664   grep -v '^ *+' conftest.er1 >conftest.err
21665   rm -f conftest.er1
21666   cat conftest.err >&5
21667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668   (exit $ac_status); } && {
21669          test -z "$ac_c_werror_flag" ||
21670          test ! -s conftest.err
21671        } && test -s conftest.$ac_objext; then
21672   ac_cv_c_const=yes
21673 else
21674   echo "$as_me: failed program was:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21676
21677         ac_cv_c_const=no
21678 fi
21679
21680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21681 fi
21682 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21683 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21684 if test $ac_cv_c_const = no; then
21685
21686 cat >>confdefs.h <<\_ACEOF
21687 #define const
21688 _ACEOF
21689
21690 fi
21691
21692 { echo "$as_me:$LINENO: checking for inline" >&5
21693 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21694 if test "${ac_cv_c_inline+set}" = set; then
21695   echo $ECHO_N "(cached) $ECHO_C" >&6
21696 else
21697   ac_cv_c_inline=no
21698 for ac_kw in inline __inline__ __inline; do
21699   cat >conftest.$ac_ext <<_ACEOF
21700 /* confdefs.h.  */
21701 _ACEOF
21702 cat confdefs.h >>conftest.$ac_ext
21703 cat >>conftest.$ac_ext <<_ACEOF
21704 /* end confdefs.h.  */
21705 #ifndef __cplusplus
21706 typedef int foo_t;
21707 static $ac_kw foo_t static_foo () {return 0; }
21708 $ac_kw foo_t foo () {return 0; }
21709 #endif
21710
21711 _ACEOF
21712 rm -f conftest.$ac_objext
21713 if { (ac_try="$ac_compile"
21714 case "(($ac_try" in
21715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21716   *) ac_try_echo=$ac_try;;
21717 esac
21718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21719   (eval "$ac_compile") 2>conftest.er1
21720   ac_status=$?
21721   grep -v '^ *+' conftest.er1 >conftest.err
21722   rm -f conftest.er1
21723   cat conftest.err >&5
21724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725   (exit $ac_status); } && {
21726          test -z "$ac_c_werror_flag" ||
21727          test ! -s conftest.err
21728        } && test -s conftest.$ac_objext; then
21729   ac_cv_c_inline=$ac_kw
21730 else
21731   echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21733
21734
21735 fi
21736
21737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21738   test "$ac_cv_c_inline" != no && break
21739 done
21740
21741 fi
21742 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21743 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21744
21745
21746 case $ac_cv_c_inline in
21747   inline | yes) ;;
21748   *)
21749     case $ac_cv_c_inline in
21750       no) ac_val=;;
21751       *) ac_val=$ac_cv_c_inline;;
21752     esac
21753     cat >>confdefs.h <<_ACEOF
21754 #ifndef __cplusplus
21755 #define inline $ac_val
21756 #endif
21757 _ACEOF
21758     ;;
21759 esac
21760
21761 { echo "$as_me:$LINENO: checking for size_t" >&5
21762 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21763 if test "${ac_cv_type_size_t+set}" = set; then
21764   echo $ECHO_N "(cached) $ECHO_C" >&6
21765 else
21766   cat >conftest.$ac_ext <<_ACEOF
21767 /* confdefs.h.  */
21768 _ACEOF
21769 cat confdefs.h >>conftest.$ac_ext
21770 cat >>conftest.$ac_ext <<_ACEOF
21771 /* end confdefs.h.  */
21772 $ac_includes_default
21773 typedef size_t ac__type_new_;
21774 int
21775 main ()
21776 {
21777 if ((ac__type_new_ *) 0)
21778   return 0;
21779 if (sizeof (ac__type_new_))
21780   return 0;
21781   ;
21782   return 0;
21783 }
21784 _ACEOF
21785 rm -f conftest.$ac_objext
21786 if { (ac_try="$ac_compile"
21787 case "(($ac_try" in
21788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21789   *) ac_try_echo=$ac_try;;
21790 esac
21791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21792   (eval "$ac_compile") 2>conftest.er1
21793   ac_status=$?
21794   grep -v '^ *+' conftest.er1 >conftest.err
21795   rm -f conftest.er1
21796   cat conftest.err >&5
21797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798   (exit $ac_status); } && {
21799          test -z "$ac_c_werror_flag" ||
21800          test ! -s conftest.err
21801        } && test -s conftest.$ac_objext; then
21802   ac_cv_type_size_t=yes
21803 else
21804   echo "$as_me: failed program was:" >&5
21805 sed 's/^/| /' conftest.$ac_ext >&5
21806
21807         ac_cv_type_size_t=no
21808 fi
21809
21810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21811 fi
21812 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21813 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21814 if test $ac_cv_type_size_t = yes; then
21815   :
21816 else
21817
21818 cat >>confdefs.h <<_ACEOF
21819 #define size_t unsigned int
21820 _ACEOF
21821
21822 fi
21823
21824
21825 ###################################
21826 ## SimGrid and GRAS specific checks
21827 ##
21828
21829
21830   { echo "$as_me:$LINENO: result: " >&5
21831 echo "${ECHO_T}" >&6; }
21832   { echo "$as_me:$LINENO: result: ${T_MD}Checking GRAS architecture signature...${T_ME}" >&5
21833 echo "${ECHO_T}${T_MD}Checking GRAS architecture signature...${T_ME}" >&6; }
21834
21835 # Check architecture signature begin
21836
21837 # Check for the architecture
21838 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21839 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21840 if test "${ac_cv_c_bigendian+set}" = set; then
21841   echo $ECHO_N "(cached) $ECHO_C" >&6
21842 else
21843   # See if sys/param.h defines the BYTE_ORDER macro.
21844 cat >conftest.$ac_ext <<_ACEOF
21845 /* confdefs.h.  */
21846 _ACEOF
21847 cat confdefs.h >>conftest.$ac_ext
21848 cat >>conftest.$ac_ext <<_ACEOF
21849 /* end confdefs.h.  */
21850 #include <sys/types.h>
21851 #include <sys/param.h>
21852
21853 int
21854 main ()
21855 {
21856 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21857         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21858  bogus endian macros
21859 #endif
21860
21861   ;
21862   return 0;
21863 }
21864 _ACEOF
21865 rm -f conftest.$ac_objext
21866 if { (ac_try="$ac_compile"
21867 case "(($ac_try" in
21868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21869   *) ac_try_echo=$ac_try;;
21870 esac
21871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21872   (eval "$ac_compile") 2>conftest.er1
21873   ac_status=$?
21874   grep -v '^ *+' conftest.er1 >conftest.err
21875   rm -f conftest.er1
21876   cat conftest.err >&5
21877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878   (exit $ac_status); } && {
21879          test -z "$ac_c_werror_flag" ||
21880          test ! -s conftest.err
21881        } && test -s conftest.$ac_objext; then
21882   # It does; now see whether it defined to BIG_ENDIAN or not.
21883 cat >conftest.$ac_ext <<_ACEOF
21884 /* confdefs.h.  */
21885 _ACEOF
21886 cat confdefs.h >>conftest.$ac_ext
21887 cat >>conftest.$ac_ext <<_ACEOF
21888 /* end confdefs.h.  */
21889 #include <sys/types.h>
21890 #include <sys/param.h>
21891
21892 int
21893 main ()
21894 {
21895 #if BYTE_ORDER != BIG_ENDIAN
21896  not big endian
21897 #endif
21898
21899   ;
21900   return 0;
21901 }
21902 _ACEOF
21903 rm -f conftest.$ac_objext
21904 if { (ac_try="$ac_compile"
21905 case "(($ac_try" in
21906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907   *) ac_try_echo=$ac_try;;
21908 esac
21909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21910   (eval "$ac_compile") 2>conftest.er1
21911   ac_status=$?
21912   grep -v '^ *+' conftest.er1 >conftest.err
21913   rm -f conftest.er1
21914   cat conftest.err >&5
21915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916   (exit $ac_status); } && {
21917          test -z "$ac_c_werror_flag" ||
21918          test ! -s conftest.err
21919        } && test -s conftest.$ac_objext; then
21920   ac_cv_c_bigendian=yes
21921 else
21922   echo "$as_me: failed program was:" >&5
21923 sed 's/^/| /' conftest.$ac_ext >&5
21924
21925         ac_cv_c_bigendian=no
21926 fi
21927
21928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21929 else
21930   echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21932
21933         # It does not; compile a test program.
21934 if test "$cross_compiling" = yes; then
21935   # try to guess the endianness by grepping values into an object file
21936   ac_cv_c_bigendian=unknown
21937   cat >conftest.$ac_ext <<_ACEOF
21938 /* confdefs.h.  */
21939 _ACEOF
21940 cat confdefs.h >>conftest.$ac_ext
21941 cat >>conftest.$ac_ext <<_ACEOF
21942 /* end confdefs.h.  */
21943 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21944 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21945 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21946 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21947 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21948 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21949 int
21950 main ()
21951 {
21952  _ascii (); _ebcdic ();
21953   ;
21954   return 0;
21955 }
21956 _ACEOF
21957 rm -f conftest.$ac_objext
21958 if { (ac_try="$ac_compile"
21959 case "(($ac_try" in
21960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961   *) ac_try_echo=$ac_try;;
21962 esac
21963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21964   (eval "$ac_compile") 2>conftest.er1
21965   ac_status=$?
21966   grep -v '^ *+' conftest.er1 >conftest.err
21967   rm -f conftest.er1
21968   cat conftest.err >&5
21969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970   (exit $ac_status); } && {
21971          test -z "$ac_c_werror_flag" ||
21972          test ! -s conftest.err
21973        } && test -s conftest.$ac_objext; then
21974   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21975   ac_cv_c_bigendian=yes
21976 fi
21977 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21978   if test "$ac_cv_c_bigendian" = unknown; then
21979     ac_cv_c_bigendian=no
21980   else
21981     # finding both strings is unlikely to happen, but who knows?
21982     ac_cv_c_bigendian=unknown
21983   fi
21984 fi
21985 else
21986   echo "$as_me: failed program was:" >&5
21987 sed 's/^/| /' conftest.$ac_ext >&5
21988
21989
21990 fi
21991
21992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21993 else
21994   cat >conftest.$ac_ext <<_ACEOF
21995 /* confdefs.h.  */
21996 _ACEOF
21997 cat confdefs.h >>conftest.$ac_ext
21998 cat >>conftest.$ac_ext <<_ACEOF
21999 /* end confdefs.h.  */
22000 $ac_includes_default
22001 int
22002 main ()
22003 {
22004
22005   /* Are we little or big endian?  From Harbison&Steele.  */
22006   union
22007   {
22008     long int l;
22009     char c[sizeof (long int)];
22010   } u;
22011   u.l = 1;
22012   return u.c[sizeof (long int) - 1] == 1;
22013
22014   ;
22015   return 0;
22016 }
22017 _ACEOF
22018 rm -f conftest$ac_exeext
22019 if { (ac_try="$ac_link"
22020 case "(($ac_try" in
22021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22022   *) ac_try_echo=$ac_try;;
22023 esac
22024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22025   (eval "$ac_link") 2>&5
22026   ac_status=$?
22027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22029   { (case "(($ac_try" in
22030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031   *) ac_try_echo=$ac_try;;
22032 esac
22033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22034   (eval "$ac_try") 2>&5
22035   ac_status=$?
22036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037   (exit $ac_status); }; }; then
22038   ac_cv_c_bigendian=no
22039 else
22040   echo "$as_me: program exited with status $ac_status" >&5
22041 echo "$as_me: failed program was:" >&5
22042 sed 's/^/| /' conftest.$ac_ext >&5
22043
22044 ( exit $ac_status )
22045 ac_cv_c_bigendian=yes
22046 fi
22047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22048 fi
22049
22050
22051 fi
22052
22053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22054 fi
22055 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22056 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22057 case $ac_cv_c_bigendian in
22058   yes)
22059     endian=1 ;;
22060   no)
22061     endian=0 ;;
22062   *)
22063     { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
22064 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
22065    { (exit 1); exit 1; }; } ;;
22066 esac
22067
22068
22069 cat >>confdefs.h <<_ACEOF
22070 #define GRAS_BIGENDIAN $endian
22071 _ACEOF
22072
22073
22074 { echo "$as_me:$LINENO: checking size of char" >&5
22075 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22076     if test "${ac_cv_sizeof_char+set}" = set; then
22077   echo $ECHO_N "(cached) $ECHO_C" >&6
22078 else
22079   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22080    cat >conftest.$ac_ext <<_ACEOF
22081 /* confdefs.h.  */
22082 _ACEOF
22083 cat confdefs.h >>conftest.$ac_ext
22084 cat >>conftest.$ac_ext <<_ACEOF
22085 /* end confdefs.h.  */
22086 #include "confdefs.h"
22087    #include <sys/types.h>
22088
22089
22090 int
22091 main ()
22092 {
22093 switch (0) case 0: case (sizeof (char) == $ac_size):;
22094   ;
22095   return 0;
22096 }
22097 _ACEOF
22098 rm -f conftest.$ac_objext
22099 if { (ac_try="$ac_compile"
22100 case "(($ac_try" in
22101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102   *) ac_try_echo=$ac_try;;
22103 esac
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105   (eval "$ac_compile") 2>conftest.er1
22106   ac_status=$?
22107   grep -v '^ *+' conftest.er1 >conftest.err
22108   rm -f conftest.er1
22109   cat conftest.err >&5
22110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111   (exit $ac_status); } && {
22112          test -z "$ac_c_werror_flag" ||
22113          test ! -s conftest.err
22114        } && test -s conftest.$ac_objext; then
22115   ac_cv_sizeof_char=$ac_size
22116 else
22117   echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22119
22120
22121 fi
22122
22123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22124    if test x$ac_cv_sizeof_char != x ; then break; fi
22125   done
22126
22127 fi
22128
22129
22130 unspecif=$ac_cv_sizeof_char
22131 if test x$unspecif = x ; then
22132   { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
22133 echo "$as_me: error: cannot determine a size for char" >&2;}
22134    { (exit 1); exit 1; }; }
22135 fi
22136
22137     if test "${ac_cv_sizeof_signed_char+set}" = set; then
22138   echo $ECHO_N "(cached) $ECHO_C" >&6
22139 else
22140   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22141    cat >conftest.$ac_ext <<_ACEOF
22142 /* confdefs.h.  */
22143 _ACEOF
22144 cat confdefs.h >>conftest.$ac_ext
22145 cat >>conftest.$ac_ext <<_ACEOF
22146 /* end confdefs.h.  */
22147 #include "confdefs.h"
22148    #include <sys/types.h>
22149
22150
22151 int
22152 main ()
22153 {
22154 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
22155   ;
22156   return 0;
22157 }
22158 _ACEOF
22159 rm -f conftest.$ac_objext
22160 if { (ac_try="$ac_compile"
22161 case "(($ac_try" in
22162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163   *) ac_try_echo=$ac_try;;
22164 esac
22165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22166   (eval "$ac_compile") 2>conftest.er1
22167   ac_status=$?
22168   grep -v '^ *+' conftest.er1 >conftest.err
22169   rm -f conftest.er1
22170   cat conftest.err >&5
22171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172   (exit $ac_status); } && {
22173          test -z "$ac_c_werror_flag" ||
22174          test ! -s conftest.err
22175        } && test -s conftest.$ac_objext; then
22176   ac_cv_sizeof_signed_char=$ac_size
22177 else
22178   echo "$as_me: failed program was:" >&5
22179 sed 's/^/| /' conftest.$ac_ext >&5
22180
22181
22182 fi
22183
22184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22185    if test x$ac_cv_sizeof_signed_char != x ; then break; fi
22186   done
22187
22188 fi
22189
22190
22191 signed=$ac_cv_sizeof_signed_char
22192 if test x$signed = x ; then
22193   { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
22194 echo "$as_me: error: cannot determine a size for signed char" >&2;}
22195    { (exit 1); exit 1; }; }
22196 fi
22197 if test x$unspecif != x$signed ; then
22198   { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
22199 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
22200    { (exit 1); exit 1; }; }
22201 fi
22202
22203     if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
22204   echo $ECHO_N "(cached) $ECHO_C" >&6
22205 else
22206   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22207    cat >conftest.$ac_ext <<_ACEOF
22208 /* confdefs.h.  */
22209 _ACEOF
22210 cat confdefs.h >>conftest.$ac_ext
22211 cat >>conftest.$ac_ext <<_ACEOF
22212 /* end confdefs.h.  */
22213 #include "confdefs.h"
22214    #include <sys/types.h>
22215
22216
22217 int
22218 main ()
22219 {
22220 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
22221   ;
22222   return 0;
22223 }
22224 _ACEOF
22225 rm -f conftest.$ac_objext
22226 if { (ac_try="$ac_compile"
22227 case "(($ac_try" in
22228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229   *) ac_try_echo=$ac_try;;
22230 esac
22231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22232   (eval "$ac_compile") 2>conftest.er1
22233   ac_status=$?
22234   grep -v '^ *+' conftest.er1 >conftest.err
22235   rm -f conftest.er1
22236   cat conftest.err >&5
22237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238   (exit $ac_status); } && {
22239          test -z "$ac_c_werror_flag" ||
22240          test ! -s conftest.err
22241        } && test -s conftest.$ac_objext; then
22242   ac_cv_sizeof_unsigned_char=$ac_size
22243 else
22244   echo "$as_me: failed program was:" >&5
22245 sed 's/^/| /' conftest.$ac_ext >&5
22246
22247
22248 fi
22249
22250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22251    if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
22252   done
22253
22254 fi
22255
22256
22257 unsigned=$ac_cv_sizeof_unsigned_char
22258 if test x$unsigned = x ; then
22259   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
22260 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
22261    { (exit 1); exit 1; }; }
22262 fi
22263 if test x$unsigned != x$signed ; then
22264   { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
22265 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
22266    { (exit 1); exit 1; }; }
22267 fi
22268
22269 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
22270 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
22271                   { echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
22272 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6; }
22273
22274  if test "${ac_cv_struct_boundary_char+set}" = set; then
22275   echo $ECHO_N "(cached) $ECHO_C" >&6
22276 else
22277   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22278    cat >conftest.$ac_ext <<_ACEOF
22279 /* confdefs.h.  */
22280 _ACEOF
22281 cat confdefs.h >>conftest.$ac_ext
22282 cat >>conftest.$ac_ext <<_ACEOF
22283 /* end confdefs.h.  */
22284 #include "confdefs.h"
22285      #include <sys/types.h>
22286      struct s { char c; char i; };
22287
22288 int
22289 main ()
22290 {
22291 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
22292   ;
22293   return 0;
22294 }
22295 _ACEOF
22296 rm -f conftest.$ac_objext
22297 if { (ac_try="$ac_compile"
22298 case "(($ac_try" in
22299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22300   *) ac_try_echo=$ac_try;;
22301 esac
22302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22303   (eval "$ac_compile") 2>conftest.er1
22304   ac_status=$?
22305   grep -v '^ *+' conftest.er1 >conftest.err
22306   rm -f conftest.er1
22307   cat conftest.err >&5
22308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309   (exit $ac_status); } && {
22310          test -z "$ac_c_werror_flag" ||
22311          test ! -s conftest.err
22312        } && test -s conftest.$ac_objext; then
22313   ac_cv_struct_boundary_char=$ac_size
22314 else
22315   echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22317
22318
22319 fi
22320
22321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22322    if test x$ac_cv_struct_boundary_char != x ; then break; fi
22323   done
22324
22325 fi
22326
22327  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
22328 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6; }
22329  if test x$ac_cv_struct_boundary_char = x ; then
22330    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of char in structures" >&5
22331 echo "$as_me: error: Cannot determine the minimal alignment boundary of char in structures" >&2;}
22332    { (exit 1); exit 1; }; }
22333  fi
22334
22335 { echo "$as_me:$LINENO: checking size of short int" >&5
22336 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
22337     if test "${ac_cv_sizeof_short_int+set}" = set; then
22338   echo $ECHO_N "(cached) $ECHO_C" >&6
22339 else
22340   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22341    cat >conftest.$ac_ext <<_ACEOF
22342 /* confdefs.h.  */
22343 _ACEOF
22344 cat confdefs.h >>conftest.$ac_ext
22345 cat >>conftest.$ac_ext <<_ACEOF
22346 /* end confdefs.h.  */
22347 #include "confdefs.h"
22348    #include <sys/types.h>
22349
22350
22351 int
22352 main ()
22353 {
22354 switch (0) case 0: case (sizeof (short int) == $ac_size):;
22355   ;
22356   return 0;
22357 }
22358 _ACEOF
22359 rm -f conftest.$ac_objext
22360 if { (ac_try="$ac_compile"
22361 case "(($ac_try" in
22362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22363   *) ac_try_echo=$ac_try;;
22364 esac
22365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22366   (eval "$ac_compile") 2>conftest.er1
22367   ac_status=$?
22368   grep -v '^ *+' conftest.er1 >conftest.err
22369   rm -f conftest.er1
22370   cat conftest.err >&5
22371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372   (exit $ac_status); } && {
22373          test -z "$ac_c_werror_flag" ||
22374          test ! -s conftest.err
22375        } && test -s conftest.$ac_objext; then
22376   ac_cv_sizeof_short_int=$ac_size
22377 else
22378   echo "$as_me: failed program was:" >&5
22379 sed 's/^/| /' conftest.$ac_ext >&5
22380
22381
22382 fi
22383
22384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22385    if test x$ac_cv_sizeof_short_int != x ; then break; fi
22386   done
22387
22388 fi
22389
22390
22391 unspecif=$ac_cv_sizeof_short_int
22392 if test x$unspecif = x ; then
22393   { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
22394 echo "$as_me: error: cannot determine a size for short int" >&2;}
22395    { (exit 1); exit 1; }; }
22396 fi
22397
22398     if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
22399   echo $ECHO_N "(cached) $ECHO_C" >&6
22400 else
22401   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22402    cat >conftest.$ac_ext <<_ACEOF
22403 /* confdefs.h.  */
22404 _ACEOF
22405 cat confdefs.h >>conftest.$ac_ext
22406 cat >>conftest.$ac_ext <<_ACEOF
22407 /* end confdefs.h.  */
22408 #include "confdefs.h"
22409    #include <sys/types.h>
22410
22411
22412 int
22413 main ()
22414 {
22415 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
22416   ;
22417   return 0;
22418 }
22419 _ACEOF
22420 rm -f conftest.$ac_objext
22421 if { (ac_try="$ac_compile"
22422 case "(($ac_try" in
22423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22424   *) ac_try_echo=$ac_try;;
22425 esac
22426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22427   (eval "$ac_compile") 2>conftest.er1
22428   ac_status=$?
22429   grep -v '^ *+' conftest.er1 >conftest.err
22430   rm -f conftest.er1
22431   cat conftest.err >&5
22432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433   (exit $ac_status); } && {
22434          test -z "$ac_c_werror_flag" ||
22435          test ! -s conftest.err
22436        } && test -s conftest.$ac_objext; then
22437   ac_cv_sizeof_signed_short_int=$ac_size
22438 else
22439   echo "$as_me: failed program was:" >&5
22440 sed 's/^/| /' conftest.$ac_ext >&5
22441
22442
22443 fi
22444
22445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22446    if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
22447   done
22448
22449 fi
22450
22451
22452 signed=$ac_cv_sizeof_signed_short_int
22453 if test x$signed = x ; then
22454   { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
22455 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
22456    { (exit 1); exit 1; }; }
22457 fi
22458 if test x$unspecif != x$signed ; then
22459   { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
22460 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
22461    { (exit 1); exit 1; }; }
22462 fi
22463
22464     if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
22465   echo $ECHO_N "(cached) $ECHO_C" >&6
22466 else
22467   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22468    cat >conftest.$ac_ext <<_ACEOF
22469 /* confdefs.h.  */
22470 _ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h.  */
22474 #include "confdefs.h"
22475    #include <sys/types.h>
22476
22477
22478 int
22479 main ()
22480 {
22481 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
22482   ;
22483   return 0;
22484 }
22485 _ACEOF
22486 rm -f conftest.$ac_objext
22487 if { (ac_try="$ac_compile"
22488 case "(($ac_try" in
22489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22490   *) ac_try_echo=$ac_try;;
22491 esac
22492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22493   (eval "$ac_compile") 2>conftest.er1
22494   ac_status=$?
22495   grep -v '^ *+' conftest.er1 >conftest.err
22496   rm -f conftest.er1
22497   cat conftest.err >&5
22498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499   (exit $ac_status); } && {
22500          test -z "$ac_c_werror_flag" ||
22501          test ! -s conftest.err
22502        } && test -s conftest.$ac_objext; then
22503   ac_cv_sizeof_unsigned_short_int=$ac_size
22504 else
22505   echo "$as_me: failed program was:" >&5
22506 sed 's/^/| /' conftest.$ac_ext >&5
22507
22508
22509 fi
22510
22511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22512    if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
22513   done
22514
22515 fi
22516
22517
22518 unsigned=$ac_cv_sizeof_unsigned_short_int
22519 if test x$unsigned = x ; then
22520   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
22521 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
22522    { (exit 1); exit 1; }; }
22523 fi
22524 if test x$unsigned != x$signed ; then
22525   { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
22526 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
22527    { (exit 1); exit 1; }; }
22528 fi
22529
22530 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
22531 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6; }
22532              { echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
22533 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6; }
22534
22535  if test "${ac_cv_struct_boundary_short_int+set}" = set; then
22536   echo $ECHO_N "(cached) $ECHO_C" >&6
22537 else
22538   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22539    cat >conftest.$ac_ext <<_ACEOF
22540 /* confdefs.h.  */
22541 _ACEOF
22542 cat confdefs.h >>conftest.$ac_ext
22543 cat >>conftest.$ac_ext <<_ACEOF
22544 /* end confdefs.h.  */
22545 #include "confdefs.h"
22546      #include <sys/types.h>
22547      struct s { char c; short int i; };
22548
22549 int
22550 main ()
22551 {
22552 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
22553   ;
22554   return 0;
22555 }
22556 _ACEOF
22557 rm -f conftest.$ac_objext
22558 if { (ac_try="$ac_compile"
22559 case "(($ac_try" in
22560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22561   *) ac_try_echo=$ac_try;;
22562 esac
22563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22564   (eval "$ac_compile") 2>conftest.er1
22565   ac_status=$?
22566   grep -v '^ *+' conftest.er1 >conftest.err
22567   rm -f conftest.er1
22568   cat conftest.err >&5
22569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570   (exit $ac_status); } && {
22571          test -z "$ac_c_werror_flag" ||
22572          test ! -s conftest.err
22573        } && test -s conftest.$ac_objext; then
22574   ac_cv_struct_boundary_short_int=$ac_size
22575 else
22576   echo "$as_me: failed program was:" >&5
22577 sed 's/^/| /' conftest.$ac_ext >&5
22578
22579
22580 fi
22581
22582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22583    if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
22584   done
22585
22586 fi
22587
22588  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
22589 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6; }
22590  if test x$ac_cv_struct_boundary_short_int = x ; then
22591    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of short int in structures" >&5
22592 echo "$as_me: error: Cannot determine the minimal alignment boundary of short int in structures" >&2;}
22593    { (exit 1); exit 1; }; }
22594  fi
22595
22596 { echo "$as_me:$LINENO: checking size of int" >&5
22597 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22598     if test "${ac_cv_sizeof_int+set}" = set; then
22599   echo $ECHO_N "(cached) $ECHO_C" >&6
22600 else
22601   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22602    cat >conftest.$ac_ext <<_ACEOF
22603 /* confdefs.h.  */
22604 _ACEOF
22605 cat confdefs.h >>conftest.$ac_ext
22606 cat >>conftest.$ac_ext <<_ACEOF
22607 /* end confdefs.h.  */
22608 #include "confdefs.h"
22609    #include <sys/types.h>
22610
22611
22612 int
22613 main ()
22614 {
22615 switch (0) case 0: case (sizeof (int) == $ac_size):;
22616   ;
22617   return 0;
22618 }
22619 _ACEOF
22620 rm -f conftest.$ac_objext
22621 if { (ac_try="$ac_compile"
22622 case "(($ac_try" in
22623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22624   *) ac_try_echo=$ac_try;;
22625 esac
22626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22627   (eval "$ac_compile") 2>conftest.er1
22628   ac_status=$?
22629   grep -v '^ *+' conftest.er1 >conftest.err
22630   rm -f conftest.er1
22631   cat conftest.err >&5
22632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633   (exit $ac_status); } && {
22634          test -z "$ac_c_werror_flag" ||
22635          test ! -s conftest.err
22636        } && test -s conftest.$ac_objext; then
22637   ac_cv_sizeof_int=$ac_size
22638 else
22639   echo "$as_me: failed program was:" >&5
22640 sed 's/^/| /' conftest.$ac_ext >&5
22641
22642
22643 fi
22644
22645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22646    if test x$ac_cv_sizeof_int != x ; then break; fi
22647   done
22648
22649 fi
22650
22651
22652 unspecif=$ac_cv_sizeof_int
22653 if test x$unspecif = x ; then
22654   { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
22655 echo "$as_me: error: cannot determine a size for int" >&2;}
22656    { (exit 1); exit 1; }; }
22657 fi
22658
22659     if test "${ac_cv_sizeof_signed_int+set}" = set; then
22660   echo $ECHO_N "(cached) $ECHO_C" >&6
22661 else
22662   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22663    cat >conftest.$ac_ext <<_ACEOF
22664 /* confdefs.h.  */
22665 _ACEOF
22666 cat confdefs.h >>conftest.$ac_ext
22667 cat >>conftest.$ac_ext <<_ACEOF
22668 /* end confdefs.h.  */
22669 #include "confdefs.h"
22670    #include <sys/types.h>
22671
22672
22673 int
22674 main ()
22675 {
22676 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
22677   ;
22678   return 0;
22679 }
22680 _ACEOF
22681 rm -f conftest.$ac_objext
22682 if { (ac_try="$ac_compile"
22683 case "(($ac_try" in
22684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685   *) ac_try_echo=$ac_try;;
22686 esac
22687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22688   (eval "$ac_compile") 2>conftest.er1
22689   ac_status=$?
22690   grep -v '^ *+' conftest.er1 >conftest.err
22691   rm -f conftest.er1
22692   cat conftest.err >&5
22693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694   (exit $ac_status); } && {
22695          test -z "$ac_c_werror_flag" ||
22696          test ! -s conftest.err
22697        } && test -s conftest.$ac_objext; then
22698   ac_cv_sizeof_signed_int=$ac_size
22699 else
22700   echo "$as_me: failed program was:" >&5
22701 sed 's/^/| /' conftest.$ac_ext >&5
22702
22703
22704 fi
22705
22706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22707    if test x$ac_cv_sizeof_signed_int != x ; then break; fi
22708   done
22709
22710 fi
22711
22712
22713 signed=$ac_cv_sizeof_signed_int
22714 if test x$signed = x ; then
22715   { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
22716 echo "$as_me: error: cannot determine a size for signed int" >&2;}
22717    { (exit 1); exit 1; }; }
22718 fi
22719 if test x$unspecif != x$signed ; then
22720   { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
22721 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
22722    { (exit 1); exit 1; }; }
22723 fi
22724
22725     if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
22726   echo $ECHO_N "(cached) $ECHO_C" >&6
22727 else
22728   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22729    cat >conftest.$ac_ext <<_ACEOF
22730 /* confdefs.h.  */
22731 _ACEOF
22732 cat confdefs.h >>conftest.$ac_ext
22733 cat >>conftest.$ac_ext <<_ACEOF
22734 /* end confdefs.h.  */
22735 #include "confdefs.h"
22736    #include <sys/types.h>
22737
22738
22739 int
22740 main ()
22741 {
22742 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
22743   ;
22744   return 0;
22745 }
22746 _ACEOF
22747 rm -f conftest.$ac_objext
22748 if { (ac_try="$ac_compile"
22749 case "(($ac_try" in
22750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22751   *) ac_try_echo=$ac_try;;
22752 esac
22753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22754   (eval "$ac_compile") 2>conftest.er1
22755   ac_status=$?
22756   grep -v '^ *+' conftest.er1 >conftest.err
22757   rm -f conftest.er1
22758   cat conftest.err >&5
22759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760   (exit $ac_status); } && {
22761          test -z "$ac_c_werror_flag" ||
22762          test ! -s conftest.err
22763        } && test -s conftest.$ac_objext; then
22764   ac_cv_sizeof_unsigned_int=$ac_size
22765 else
22766   echo "$as_me: failed program was:" >&5
22767 sed 's/^/| /' conftest.$ac_ext >&5
22768
22769
22770 fi
22771
22772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22773    if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
22774   done
22775
22776 fi
22777
22778
22779 unsigned=$ac_cv_sizeof_unsigned_int
22780 if test x$unsigned = x ; then
22781   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
22782 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
22783    { (exit 1); exit 1; }; }
22784 fi
22785 if test x$unsigned != x$signed ; then
22786   { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
22787 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
22788    { (exit 1); exit 1; }; }
22789 fi
22790
22791 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
22792 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
22793                    { echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
22794 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6; }
22795
22796  if test "${ac_cv_struct_boundary_int+set}" = set; then
22797   echo $ECHO_N "(cached) $ECHO_C" >&6
22798 else
22799   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
22800    cat >conftest.$ac_ext <<_ACEOF
22801 /* confdefs.h.  */
22802 _ACEOF
22803 cat confdefs.h >>conftest.$ac_ext
22804 cat >>conftest.$ac_ext <<_ACEOF
22805 /* end confdefs.h.  */
22806 #include "confdefs.h"
22807      #include <sys/types.h>
22808      struct s { char c; int i; };
22809
22810 int
22811 main ()
22812 {
22813 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
22814   ;
22815   return 0;
22816 }
22817 _ACEOF
22818 rm -f conftest.$ac_objext
22819 if { (ac_try="$ac_compile"
22820 case "(($ac_try" in
22821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22822   *) ac_try_echo=$ac_try;;
22823 esac
22824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22825   (eval "$ac_compile") 2>conftest.er1
22826   ac_status=$?
22827   grep -v '^ *+' conftest.er1 >conftest.err
22828   rm -f conftest.er1
22829   cat conftest.err >&5
22830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831   (exit $ac_status); } && {
22832          test -z "$ac_c_werror_flag" ||
22833          test ! -s conftest.err
22834        } && test -s conftest.$ac_objext; then
22835   ac_cv_struct_boundary_int=$ac_size
22836 else
22837   echo "$as_me: failed program was:" >&5
22838 sed 's/^/| /' conftest.$ac_ext >&5
22839
22840
22841 fi
22842
22843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22844    if test x$ac_cv_struct_boundary_int != x ; then break; fi
22845   done
22846
22847 fi
22848
22849  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
22850 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6; }
22851  if test x$ac_cv_struct_boundary_int = x ; then
22852    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of int in structures" >&5
22853 echo "$as_me: error: Cannot determine the minimal alignment boundary of int in structures" >&2;}
22854    { (exit 1); exit 1; }; }
22855  fi
22856
22857 { echo "$as_me:$LINENO: checking size of long int" >&5
22858 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
22859     if test "${ac_cv_sizeof_long_int+set}" = set; then
22860   echo $ECHO_N "(cached) $ECHO_C" >&6
22861 else
22862   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22863    cat >conftest.$ac_ext <<_ACEOF
22864 /* confdefs.h.  */
22865 _ACEOF
22866 cat confdefs.h >>conftest.$ac_ext
22867 cat >>conftest.$ac_ext <<_ACEOF
22868 /* end confdefs.h.  */
22869 #include "confdefs.h"
22870    #include <sys/types.h>
22871
22872
22873 int
22874 main ()
22875 {
22876 switch (0) case 0: case (sizeof (long int) == $ac_size):;
22877   ;
22878   return 0;
22879 }
22880 _ACEOF
22881 rm -f conftest.$ac_objext
22882 if { (ac_try="$ac_compile"
22883 case "(($ac_try" in
22884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22885   *) ac_try_echo=$ac_try;;
22886 esac
22887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22888   (eval "$ac_compile") 2>conftest.er1
22889   ac_status=$?
22890   grep -v '^ *+' conftest.er1 >conftest.err
22891   rm -f conftest.er1
22892   cat conftest.err >&5
22893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894   (exit $ac_status); } && {
22895          test -z "$ac_c_werror_flag" ||
22896          test ! -s conftest.err
22897        } && test -s conftest.$ac_objext; then
22898   ac_cv_sizeof_long_int=$ac_size
22899 else
22900   echo "$as_me: failed program was:" >&5
22901 sed 's/^/| /' conftest.$ac_ext >&5
22902
22903
22904 fi
22905
22906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22907    if test x$ac_cv_sizeof_long_int != x ; then break; fi
22908   done
22909
22910 fi
22911
22912
22913 unspecif=$ac_cv_sizeof_long_int
22914 if test x$unspecif = x ; then
22915   { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
22916 echo "$as_me: error: cannot determine a size for long int" >&2;}
22917    { (exit 1); exit 1; }; }
22918 fi
22919
22920     if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
22921   echo $ECHO_N "(cached) $ECHO_C" >&6
22922 else
22923   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22924    cat >conftest.$ac_ext <<_ACEOF
22925 /* confdefs.h.  */
22926 _ACEOF
22927 cat confdefs.h >>conftest.$ac_ext
22928 cat >>conftest.$ac_ext <<_ACEOF
22929 /* end confdefs.h.  */
22930 #include "confdefs.h"
22931    #include <sys/types.h>
22932
22933
22934 int
22935 main ()
22936 {
22937 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
22938   ;
22939   return 0;
22940 }
22941 _ACEOF
22942 rm -f conftest.$ac_objext
22943 if { (ac_try="$ac_compile"
22944 case "(($ac_try" in
22945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22946   *) ac_try_echo=$ac_try;;
22947 esac
22948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22949   (eval "$ac_compile") 2>conftest.er1
22950   ac_status=$?
22951   grep -v '^ *+' conftest.er1 >conftest.err
22952   rm -f conftest.er1
22953   cat conftest.err >&5
22954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955   (exit $ac_status); } && {
22956          test -z "$ac_c_werror_flag" ||
22957          test ! -s conftest.err
22958        } && test -s conftest.$ac_objext; then
22959   ac_cv_sizeof_signed_long_int=$ac_size
22960 else
22961   echo "$as_me: failed program was:" >&5
22962 sed 's/^/| /' conftest.$ac_ext >&5
22963
22964
22965 fi
22966
22967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22968    if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
22969   done
22970
22971 fi
22972
22973
22974 signed=$ac_cv_sizeof_signed_long_int
22975 if test x$signed = x ; then
22976   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
22977 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
22978    { (exit 1); exit 1; }; }
22979 fi
22980 if test x$unspecif != x$signed ; then
22981   { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
22982 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
22983    { (exit 1); exit 1; }; }
22984 fi
22985
22986     if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
22987   echo $ECHO_N "(cached) $ECHO_C" >&6
22988 else
22989   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
22990    cat >conftest.$ac_ext <<_ACEOF
22991 /* confdefs.h.  */
22992 _ACEOF
22993 cat confdefs.h >>conftest.$ac_ext
22994 cat >>conftest.$ac_ext <<_ACEOF
22995 /* end confdefs.h.  */
22996 #include "confdefs.h"
22997    #include <sys/types.h>
22998
22999
23000 int
23001 main ()
23002 {
23003 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
23004   ;
23005   return 0;
23006 }
23007 _ACEOF
23008 rm -f conftest.$ac_objext
23009 if { (ac_try="$ac_compile"
23010 case "(($ac_try" in
23011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23012   *) ac_try_echo=$ac_try;;
23013 esac
23014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23015   (eval "$ac_compile") 2>conftest.er1
23016   ac_status=$?
23017   grep -v '^ *+' conftest.er1 >conftest.err
23018   rm -f conftest.er1
23019   cat conftest.err >&5
23020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021   (exit $ac_status); } && {
23022          test -z "$ac_c_werror_flag" ||
23023          test ! -s conftest.err
23024        } && test -s conftest.$ac_objext; then
23025   ac_cv_sizeof_unsigned_long_int=$ac_size
23026 else
23027   echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23029
23030
23031 fi
23032
23033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23034    if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
23035   done
23036
23037 fi
23038
23039
23040 unsigned=$ac_cv_sizeof_unsigned_long_int
23041 if test x$unsigned = x ; then
23042   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
23043 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
23044    { (exit 1); exit 1; }; }
23045 fi
23046 if test x$unsigned != x$signed ; then
23047   { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
23048 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
23049    { (exit 1); exit 1; }; }
23050 fi
23051
23052 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
23053 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6; }
23054               { echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
23055 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6; }
23056
23057  if test "${ac_cv_struct_boundary_long_int+set}" = set; then
23058   echo $ECHO_N "(cached) $ECHO_C" >&6
23059 else
23060   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23061    cat >conftest.$ac_ext <<_ACEOF
23062 /* confdefs.h.  */
23063 _ACEOF
23064 cat confdefs.h >>conftest.$ac_ext
23065 cat >>conftest.$ac_ext <<_ACEOF
23066 /* end confdefs.h.  */
23067 #include "confdefs.h"
23068      #include <sys/types.h>
23069      struct s { char c; long int i; };
23070
23071 int
23072 main ()
23073 {
23074 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
23075   ;
23076   return 0;
23077 }
23078 _ACEOF
23079 rm -f conftest.$ac_objext
23080 if { (ac_try="$ac_compile"
23081 case "(($ac_try" in
23082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23083   *) ac_try_echo=$ac_try;;
23084 esac
23085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23086   (eval "$ac_compile") 2>conftest.er1
23087   ac_status=$?
23088   grep -v '^ *+' conftest.er1 >conftest.err
23089   rm -f conftest.er1
23090   cat conftest.err >&5
23091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092   (exit $ac_status); } && {
23093          test -z "$ac_c_werror_flag" ||
23094          test ! -s conftest.err
23095        } && test -s conftest.$ac_objext; then
23096   ac_cv_struct_boundary_long_int=$ac_size
23097 else
23098   echo "$as_me: failed program was:" >&5
23099 sed 's/^/| /' conftest.$ac_ext >&5
23100
23101
23102 fi
23103
23104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23105    if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
23106   done
23107
23108 fi
23109
23110  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
23111 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6; }
23112  if test x$ac_cv_struct_boundary_long_int = x ; then
23113    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long int in structures" >&5
23114 echo "$as_me: error: Cannot determine the minimal alignment boundary of long int in structures" >&2;}
23115    { (exit 1); exit 1; }; }
23116  fi
23117
23118 { echo "$as_me:$LINENO: checking size of long long int" >&5
23119 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
23120     if test "${ac_cv_sizeof_long_long_int+set}" = set; then
23121   echo $ECHO_N "(cached) $ECHO_C" >&6
23122 else
23123   for ac_size in 4 8 1 2 16  ; 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
23133
23134 int
23135 main ()
23136 {
23137 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
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_sizeof_long_long_int=$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_sizeof_long_long_int != x ; then break; fi
23169   done
23170
23171 fi
23172
23173
23174 unspecif=$ac_cv_sizeof_long_long_int
23175 if test x$unspecif = x ; then
23176   { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
23177 echo "$as_me: error: cannot determine a size for long long int" >&2;}
23178    { (exit 1); exit 1; }; }
23179 fi
23180
23181     if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
23182   echo $ECHO_N "(cached) $ECHO_C" >&6
23183 else
23184   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23185    cat >conftest.$ac_ext <<_ACEOF
23186 /* confdefs.h.  */
23187 _ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h.  */
23191 #include "confdefs.h"
23192    #include <sys/types.h>
23193
23194
23195 int
23196 main ()
23197 {
23198 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
23199   ;
23200   return 0;
23201 }
23202 _ACEOF
23203 rm -f conftest.$ac_objext
23204 if { (ac_try="$ac_compile"
23205 case "(($ac_try" in
23206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23207   *) ac_try_echo=$ac_try;;
23208 esac
23209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23210   (eval "$ac_compile") 2>conftest.er1
23211   ac_status=$?
23212   grep -v '^ *+' conftest.er1 >conftest.err
23213   rm -f conftest.er1
23214   cat conftest.err >&5
23215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216   (exit $ac_status); } && {
23217          test -z "$ac_c_werror_flag" ||
23218          test ! -s conftest.err
23219        } && test -s conftest.$ac_objext; then
23220   ac_cv_sizeof_signed_long_long_int=$ac_size
23221 else
23222   echo "$as_me: failed program was:" >&5
23223 sed 's/^/| /' conftest.$ac_ext >&5
23224
23225
23226 fi
23227
23228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23229    if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
23230   done
23231
23232 fi
23233
23234
23235 signed=$ac_cv_sizeof_signed_long_long_int
23236 if test x$signed = x ; then
23237   { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
23238 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
23239    { (exit 1); exit 1; }; }
23240 fi
23241 if test x$unspecif != x$signed ; then
23242   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
23243 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
23244    { (exit 1); exit 1; }; }
23245 fi
23246
23247     if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
23248   echo $ECHO_N "(cached) $ECHO_C" >&6
23249 else
23250   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23251    cat >conftest.$ac_ext <<_ACEOF
23252 /* confdefs.h.  */
23253 _ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h.  */
23257 #include "confdefs.h"
23258    #include <sys/types.h>
23259
23260
23261 int
23262 main ()
23263 {
23264 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
23265   ;
23266   return 0;
23267 }
23268 _ACEOF
23269 rm -f conftest.$ac_objext
23270 if { (ac_try="$ac_compile"
23271 case "(($ac_try" in
23272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23273   *) ac_try_echo=$ac_try;;
23274 esac
23275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23276   (eval "$ac_compile") 2>conftest.er1
23277   ac_status=$?
23278   grep -v '^ *+' conftest.er1 >conftest.err
23279   rm -f conftest.er1
23280   cat conftest.err >&5
23281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282   (exit $ac_status); } && {
23283          test -z "$ac_c_werror_flag" ||
23284          test ! -s conftest.err
23285        } && test -s conftest.$ac_objext; then
23286   ac_cv_sizeof_unsigned_long_long_int=$ac_size
23287 else
23288   echo "$as_me: failed program was:" >&5
23289 sed 's/^/| /' conftest.$ac_ext >&5
23290
23291
23292 fi
23293
23294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23295    if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
23296   done
23297
23298 fi
23299
23300
23301 unsigned=$ac_cv_sizeof_unsigned_long_long_int
23302 if test x$unsigned = x ; then
23303   { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
23304 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
23305    { (exit 1); exit 1; }; }
23306 fi
23307 if test x$unsigned != x$signed ; then
23308   { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
23309 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
23310    { (exit 1); exit 1; }; }
23311 fi
23312
23313 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
23314 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6; }
23315          { echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
23316 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6; }
23317
23318  if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
23319   echo $ECHO_N "(cached) $ECHO_C" >&6
23320 else
23321   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23322    cat >conftest.$ac_ext <<_ACEOF
23323 /* confdefs.h.  */
23324 _ACEOF
23325 cat confdefs.h >>conftest.$ac_ext
23326 cat >>conftest.$ac_ext <<_ACEOF
23327 /* end confdefs.h.  */
23328 #include "confdefs.h"
23329      #include <sys/types.h>
23330      struct s { char c; long long int i; };
23331
23332 int
23333 main ()
23334 {
23335 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
23336   ;
23337   return 0;
23338 }
23339 _ACEOF
23340 rm -f conftest.$ac_objext
23341 if { (ac_try="$ac_compile"
23342 case "(($ac_try" in
23343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23344   *) ac_try_echo=$ac_try;;
23345 esac
23346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23347   (eval "$ac_compile") 2>conftest.er1
23348   ac_status=$?
23349   grep -v '^ *+' conftest.er1 >conftest.err
23350   rm -f conftest.er1
23351   cat conftest.err >&5
23352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353   (exit $ac_status); } && {
23354          test -z "$ac_c_werror_flag" ||
23355          test ! -s conftest.err
23356        } && test -s conftest.$ac_objext; then
23357   ac_cv_struct_boundary_long_long_int=$ac_size
23358 else
23359   echo "$as_me: failed program was:" >&5
23360 sed 's/^/| /' conftest.$ac_ext >&5
23361
23362
23363 fi
23364
23365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23366    if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
23367   done
23368
23369 fi
23370
23371  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
23372 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6; }
23373  if test x$ac_cv_struct_boundary_long_long_int = x ; then
23374    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of long long int in structures" >&5
23375 echo "$as_me: error: Cannot determine the minimal alignment boundary of long long int in structures" >&2;}
23376    { (exit 1); exit 1; }; }
23377  fi
23378
23379
23380     { echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
23381 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6; }
23382
23383  if test "${ac_cv_struct_boundary_float+set}" = set; then
23384   echo $ECHO_N "(cached) $ECHO_C" >&6
23385 else
23386   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23387    cat >conftest.$ac_ext <<_ACEOF
23388 /* confdefs.h.  */
23389 _ACEOF
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h.  */
23393 #include "confdefs.h"
23394      #include <sys/types.h>
23395      struct s { char c; float i; };
23396
23397 int
23398 main ()
23399 {
23400 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
23401   ;
23402   return 0;
23403 }
23404 _ACEOF
23405 rm -f conftest.$ac_objext
23406 if { (ac_try="$ac_compile"
23407 case "(($ac_try" in
23408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23409   *) ac_try_echo=$ac_try;;
23410 esac
23411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23412   (eval "$ac_compile") 2>conftest.er1
23413   ac_status=$?
23414   grep -v '^ *+' conftest.er1 >conftest.err
23415   rm -f conftest.er1
23416   cat conftest.err >&5
23417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418   (exit $ac_status); } && {
23419          test -z "$ac_c_werror_flag" ||
23420          test ! -s conftest.err
23421        } && test -s conftest.$ac_objext; then
23422   ac_cv_struct_boundary_float=$ac_size
23423 else
23424   echo "$as_me: failed program was:" >&5
23425 sed 's/^/| /' conftest.$ac_ext >&5
23426
23427
23428 fi
23429
23430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23431    if test x$ac_cv_struct_boundary_float != x ; then break; fi
23432   done
23433
23434 fi
23435
23436  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
23437 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6; }
23438  if test x$ac_cv_struct_boundary_float = x ; then
23439    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of float in structures" >&5
23440 echo "$as_me: error: Cannot determine the minimal alignment boundary of float in structures" >&2;}
23441    { (exit 1); exit 1; }; }
23442  fi
23443                { echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
23444 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6; }
23445
23446  if test "${ac_cv_struct_boundary_double+set}" = set; then
23447   echo $ECHO_N "(cached) $ECHO_C" >&6
23448 else
23449   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23450    cat >conftest.$ac_ext <<_ACEOF
23451 /* confdefs.h.  */
23452 _ACEOF
23453 cat confdefs.h >>conftest.$ac_ext
23454 cat >>conftest.$ac_ext <<_ACEOF
23455 /* end confdefs.h.  */
23456 #include "confdefs.h"
23457      #include <sys/types.h>
23458      struct s { char c; double i; };
23459
23460 int
23461 main ()
23462 {
23463 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
23464   ;
23465   return 0;
23466 }
23467 _ACEOF
23468 rm -f conftest.$ac_objext
23469 if { (ac_try="$ac_compile"
23470 case "(($ac_try" in
23471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23472   *) ac_try_echo=$ac_try;;
23473 esac
23474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23475   (eval "$ac_compile") 2>conftest.er1
23476   ac_status=$?
23477   grep -v '^ *+' conftest.er1 >conftest.err
23478   rm -f conftest.er1
23479   cat conftest.err >&5
23480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481   (exit $ac_status); } && {
23482          test -z "$ac_c_werror_flag" ||
23483          test ! -s conftest.err
23484        } && test -s conftest.$ac_objext; then
23485   ac_cv_struct_boundary_double=$ac_size
23486 else
23487   echo "$as_me: failed program was:" >&5
23488 sed 's/^/| /' conftest.$ac_ext >&5
23489
23490
23491 fi
23492
23493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23494    if test x$ac_cv_struct_boundary_double != x ; then break; fi
23495   done
23496
23497 fi
23498
23499  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
23500 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6; }
23501  if test x$ac_cv_struct_boundary_double = x ; then
23502    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of double in structures" >&5
23503 echo "$as_me: error: Cannot determine the minimal alignment boundary of double in structures" >&2;}
23504    { (exit 1); exit 1; }; }
23505  fi
23506
23507
23508 { echo "$as_me:$LINENO: checking size of void *" >&5
23509 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
23510     if test "${ac_cv_sizeof_void_p+set}" = set; then
23511   echo $ECHO_N "(cached) $ECHO_C" >&6
23512 else
23513   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23514    cat >conftest.$ac_ext <<_ACEOF
23515 /* confdefs.h.  */
23516 _ACEOF
23517 cat confdefs.h >>conftest.$ac_ext
23518 cat >>conftest.$ac_ext <<_ACEOF
23519 /* end confdefs.h.  */
23520 #include "confdefs.h"
23521    #include <sys/types.h>
23522
23523
23524 int
23525 main ()
23526 {
23527 switch (0) case 0: case (sizeof (void *) == $ac_size):;
23528   ;
23529   return 0;
23530 }
23531 _ACEOF
23532 rm -f conftest.$ac_objext
23533 if { (ac_try="$ac_compile"
23534 case "(($ac_try" in
23535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23536   *) ac_try_echo=$ac_try;;
23537 esac
23538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23539   (eval "$ac_compile") 2>conftest.er1
23540   ac_status=$?
23541   grep -v '^ *+' conftest.er1 >conftest.err
23542   rm -f conftest.er1
23543   cat conftest.err >&5
23544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545   (exit $ac_status); } && {
23546          test -z "$ac_c_werror_flag" ||
23547          test ! -s conftest.err
23548        } && test -s conftest.$ac_objext; then
23549   ac_cv_sizeof_void_p=$ac_size
23550 else
23551   echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23553
23554
23555 fi
23556
23557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23558    if test x$ac_cv_sizeof_void_p != x ; then break; fi
23559   done
23560
23561 fi
23562
23563
23564 if test x$ac_cv_sizeof_void_p = x ; then
23565   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
23566 echo "$as_me: error: cannot determine a size for void *" >&2;}
23567    { (exit 1); exit 1; }; }
23568 fi
23569 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23570 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
23571                  { echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
23572 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6; }
23573
23574  if test "${ac_cv_struct_boundary_void_p+set}" = set; then
23575   echo $ECHO_N "(cached) $ECHO_C" >&6
23576 else
23577   for ac_size in 1 2 4 8 16 32 64 3 ; do # List sizes in rough order of prevalence.
23578    cat >conftest.$ac_ext <<_ACEOF
23579 /* confdefs.h.  */
23580 _ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h.  */
23584 #include "confdefs.h"
23585      #include <sys/types.h>
23586      struct s { char c; void * i; };
23587
23588 int
23589 main ()
23590 {
23591 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
23592   ;
23593   return 0;
23594 }
23595 _ACEOF
23596 rm -f conftest.$ac_objext
23597 if { (ac_try="$ac_compile"
23598 case "(($ac_try" in
23599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23600   *) ac_try_echo=$ac_try;;
23601 esac
23602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23603   (eval "$ac_compile") 2>conftest.er1
23604   ac_status=$?
23605   grep -v '^ *+' conftest.er1 >conftest.err
23606   rm -f conftest.er1
23607   cat conftest.err >&5
23608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609   (exit $ac_status); } && {
23610          test -z "$ac_c_werror_flag" ||
23611          test ! -s conftest.err
23612        } && test -s conftest.$ac_objext; then
23613   ac_cv_struct_boundary_void_p=$ac_size
23614 else
23615   echo "$as_me: failed program was:" >&5
23616 sed 's/^/| /' conftest.$ac_ext >&5
23617
23618
23619 fi
23620
23621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23622    if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
23623   done
23624
23625 fi
23626
23627  { echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
23628 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6; }
23629  if test x$ac_cv_struct_boundary_void_p = x ; then
23630    { { echo "$as_me:$LINENO: error: Cannot determine the minimal alignment boundary of void * in structures" >&5
23631 echo "$as_me: error: Cannot determine the minimal alignment boundary of void * in structures" >&2;}
23632    { (exit 1); exit 1; }; }
23633  fi
23634
23635 { echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
23636 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6; }
23637     if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
23638   echo $ECHO_N "(cached) $ECHO_C" >&6
23639 else
23640   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
23641    cat >conftest.$ac_ext <<_ACEOF
23642 /* confdefs.h.  */
23643 _ACEOF
23644 cat confdefs.h >>conftest.$ac_ext
23645 cat >>conftest.$ac_ext <<_ACEOF
23646 /* end confdefs.h.  */
23647 #include "confdefs.h"
23648    #include <sys/types.h>
23649
23650
23651 int
23652 main ()
23653 {
23654 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
23655   ;
23656   return 0;
23657 }
23658 _ACEOF
23659 rm -f conftest.$ac_objext
23660 if { (ac_try="$ac_compile"
23661 case "(($ac_try" in
23662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23663   *) ac_try_echo=$ac_try;;
23664 esac
23665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23666   (eval "$ac_compile") 2>conftest.er1
23667   ac_status=$?
23668   grep -v '^ *+' conftest.er1 >conftest.err
23669   rm -f conftest.er1
23670   cat conftest.err >&5
23671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672   (exit $ac_status); } && {
23673          test -z "$ac_c_werror_flag" ||
23674          test ! -s conftest.err
23675        } && test -s conftest.$ac_objext; then
23676   ac_cv_sizeof_void_LpR_LvoidR=$ac_size
23677 else
23678   echo "$as_me: failed program was:" >&5
23679 sed 's/^/| /' conftest.$ac_ext >&5
23680
23681
23682 fi
23683
23684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23685    if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
23686   done
23687
23688 fi
23689
23690
23691 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
23692   { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
23693 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
23694    { (exit 1); exit 1; }; }
23695 fi
23696 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
23697 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6; }
23698
23699
23700
23701 { echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
23702 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6; }
23703 if test x$endian = x1 ; then
23704   trace_endian=B
23705 else
23706   trace_endian=l
23707 fi
23708 gras_arch=unknown
23709 trace="$trace_endian"
23710
23711 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
23712
23713 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
23714 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
23715 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
23716 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
23717
23718 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
23719 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
23720
23721 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
23722
23723 # sizeof float/double are not tested since IEEE 754 is assumed.
23724 # Check README.IEEE for rational.
23725
23726 # The numbers after the _ in the arch name are the maximal packing boundary.
23727 # big32_2   means that all data are aligned on a 2 bytes boundary.              (ARM)
23728 # big32_8_4 means that some or them are aligned on 8 bytes, some are on 4 bytes (AIX)
23729 case $trace in
23730   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;;
23731   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;;
23732   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;;
23733   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;;
23734
23735   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;;
23736
23737   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;;
23738   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;;
23739   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;;
23740   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;;
23741
23742   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;;
23743   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;;
23744 esac
23745 if test x$gras_arch = xunknown ; then
23746   { echo "$as_me:$LINENO: result: damnit ($trace)" >&5
23747 echo "${ECHO_T}damnit ($trace)" >&6; }
23748   { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
23749 Please report this architecture trace ($trace) and what it corresponds to." >&5
23750 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
23751 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
23752    { (exit 1); exit 1; }; }
23753 fi
23754 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
23755
23756 cat >>confdefs.h <<_ACEOF
23757 #define GRAS_THISARCH $gras_arch
23758 _ACEOF
23759
23760 { echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
23761 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6; }
23762
23763
23764
23765 if test "$gras_size" = 32; then
23766   GRAS_ARCH_32_BITS_TRUE=
23767   GRAS_ARCH_32_BITS_FALSE='#'
23768 else
23769   GRAS_ARCH_32_BITS_TRUE='#'
23770   GRAS_ARCH_32_BITS_FALSE=
23771 fi
23772
23773
23774 { echo "$as_me:$LINENO: checking the maximal size of scalar" >&5
23775 echo $ECHO_N "checking the maximal size of scalar... $ECHO_C" >&6; }
23776 ac_cv_sizeof_max=0
23777 for s in $ac_cv_sizeof_char \
23778          $ac_cv_sizeof_short_int $ac_cv_sizeof_int $ac_cv_sizeof_long_int $ac_cv_sizeof_long_long_int \
23779          $ac_cv_sizeof_void_p $ac_cv_sizeof_void_LpR_LvoidR \
23780          4 8; do
23781
23782   if test $ac_cv_sizeof_max -lt $s ; then
23783     ac_cv_sizeof_max=$s
23784   fi
23785 done
23786 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_max" >&5
23787 echo "${ECHO_T}$ac_cv_sizeof_max" >&6; }
23788
23789 cat >>confdefs.h <<_ACEOF
23790 #define SIZEOF_MAX $ac_cv_sizeof_max
23791 _ACEOF
23792
23793
23794
23795 # Check architecture signature end
23796   { echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
23797 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6; }
23798    cat >conftest.$ac_ext <<_ACEOF
23799 /* confdefs.h.  */
23800 _ACEOF
23801 cat confdefs.h >>conftest.$ac_ext
23802 cat >>conftest.$ac_ext <<_ACEOF
23803 /* end confdefs.h.  */
23804 #include "confdefs.h"
23805         #include <sys/types.h>
23806         #include <stddef.h> /* offsetof() */
23807         struct s {char c; double d;};
23808
23809 int
23810 main ()
23811 {
23812 switch (0)
23813         case 0:
23814         case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
23815
23816   ;
23817   return 0;
23818 }
23819 _ACEOF
23820 rm -f conftest.$ac_objext
23821 if { (ac_try="$ac_compile"
23822 case "(($ac_try" in
23823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23824   *) ac_try_echo=$ac_try;;
23825 esac
23826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23827   (eval "$ac_compile") 2>conftest.er1
23828   ac_status=$?
23829   grep -v '^ *+' conftest.er1 >conftest.err
23830   rm -f conftest.er1
23831   cat conftest.err >&5
23832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833   (exit $ac_status); } && {
23834          test -z "$ac_c_werror_flag" ||
23835          test ! -s conftest.err
23836        } && test -s conftest.$ac_objext; then
23837   gras_struct_packed=yes
23838 else
23839   echo "$as_me: failed program was:" >&5
23840 sed 's/^/| /' conftest.$ac_ext >&5
23841
23842         gras_struct_packed=no
23843 fi
23844
23845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23846
23847    { echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
23848 echo "${ECHO_T}$gras_struct_packed" >&6; }
23849    if test x$gras_struct_packed = "xyes" ; then
23850      { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
23851 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
23852    { (exit 1); exit 1; }; }
23853    fi
23854
23855    { echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
23856 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6; }
23857    cat >conftest.$ac_ext <<_ACEOF
23858 /* confdefs.h.  */
23859 _ACEOF
23860 cat confdefs.h >>conftest.$ac_ext
23861 cat >>conftest.$ac_ext <<_ACEOF
23862 /* end confdefs.h.  */
23863 #include "confdefs.h"
23864         #include <sys/types.h>
23865         #include <stddef.h> /* offsetof() */
23866         struct s {double d; int i; char c;};
23867
23868 int
23869 main ()
23870 {
23871 switch (0)
23872         case 0:
23873         case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
23874
23875   ;
23876   return 0;
23877 }
23878 _ACEOF
23879 rm -f conftest.$ac_objext
23880 if { (ac_try="$ac_compile"
23881 case "(($ac_try" in
23882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23883   *) ac_try_echo=$ac_try;;
23884 esac
23885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23886   (eval "$ac_compile") 2>conftest.er1
23887   ac_status=$?
23888   grep -v '^ *+' conftest.er1 >conftest.err
23889   rm -f conftest.er1
23890   cat conftest.err >&5
23891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892   (exit $ac_status); } && {
23893          test -z "$ac_c_werror_flag" ||
23894          test ! -s conftest.err
23895        } && test -s conftest.$ac_objext; then
23896   gras_struct_compact=yes
23897 else
23898   echo "$as_me: failed program was:" >&5
23899 sed 's/^/| /' conftest.$ac_ext >&5
23900
23901         gras_struct_compact=no
23902 fi
23903
23904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23905
23906    { echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
23907 echo "${ECHO_T}$gras_struct_compact" >&6; }
23908
23909    if test x$gras_struct_compact != xyes ; then
23910      { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
23911 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
23912    { (exit 1); exit 1; }; }
23913    fi
23914
23915 cat >>confdefs.h <<_ACEOF
23916 #define GRAS_STRUCT_COMPACT 1
23917 _ACEOF
23918
23919    { echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
23920 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6; }
23921
23922    cat >conftest.$ac_ext <<_ACEOF
23923 /* confdefs.h.  */
23924 _ACEOF
23925 cat confdefs.h >>conftest.$ac_ext
23926 cat >>conftest.$ac_ext <<_ACEOF
23927 /* end confdefs.h.  */
23928 #include "confdefs.h"
23929       #include <sys/types.h>
23930         #include <stddef.h> /* offsetof() */
23931         struct s { double d; int i; char c[6]; };
23932
23933 int
23934 main ()
23935 {
23936 switch (0)
23937       case 0:
23938       case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
23939
23940   ;
23941   return 0;
23942 }
23943 _ACEOF
23944 rm -f conftest.$ac_objext
23945 if { (ac_try="$ac_compile"
23946 case "(($ac_try" in
23947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23948   *) ac_try_echo=$ac_try;;
23949 esac
23950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23951   (eval "$ac_compile") 2>conftest.er1
23952   ac_status=$?
23953   grep -v '^ *+' conftest.er1 >conftest.err
23954   rm -f conftest.er1
23955   cat conftest.err >&5
23956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957   (exit $ac_status); } && {
23958          test -z "$ac_c_werror_flag" ||
23959          test ! -s conftest.err
23960        } && test -s conftest.$ac_objext; then
23961   gras_array_straddle_struct=yes
23962 else
23963   echo "$as_me: failed program was:" >&5
23964 sed 's/^/| /' conftest.$ac_ext >&5
23965
23966         gras_array_straddle_struct=no
23967 fi
23968
23969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23970
23971    { echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
23972 echo "${ECHO_T}$gras_array_straddle_struct" >&6; }
23973
23974    if test x$gras_array_straddle_struct = xyes ; then
23975
23976 cat >>confdefs.h <<_ACEOF
23977 #define GRAS_ARRAY_STRADDLE_STRUCT 1
23978 _ACEOF
23979
23980    else
23981      { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
23982 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
23983    { (exit 1); exit 1; }; }
23984    fi
23985
23986
23987
23988
23989
23990   { echo "$as_me:$LINENO: result: " >&5
23991 echo "${ECHO_T}" >&6; }
23992   { echo "$as_me:$LINENO: result: ${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&5
23993 echo "${ECHO_T}${T_MD}Checking for threads, contexts or assimilated...${T_ME}" >&6; }
23994
23995
23996
23997
23998 { echo "$as_me:$LINENO: checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)" >&5
23999 echo $ECHO_N "checking for usable SVR4/SUSv2 makecontext(2)/swapcontext(2)... $ECHO_C" >&6; }
24000 if test "${ac_cv_check_mcsc+set}" = set; then
24001   echo $ECHO_N "(cached) $ECHO_C" >&6
24002 else
24003
24004 if test "$cross_compiling" = yes; then
24005   ac_cv_check_mcsc=no
24006
24007 else
24008   cat >conftest.$ac_ext <<_ACEOF
24009 /* confdefs.h.  */
24010 _ACEOF
24011 cat confdefs.h >>conftest.$ac_ext
24012 cat >>conftest.$ac_ext <<_ACEOF
24013 /* end confdefs.h.  */
24014
24015
24016 #include <stdio.h>
24017 #include <stdlib.h>
24018 #include <ucontext.h>
24019
24020 ucontext_t uc_child;
24021 ucontext_t uc_main;
24022
24023 void child(void *arg)
24024 {
24025     if (arg != (void *)12345)
24026         exit(1);
24027     if (swapcontext(&uc_child, &uc_main) != 0)
24028         exit(2);
24029 }
24030
24031 int main(int argc, char *argv[])
24032 {
24033     FILE *fp;
24034     void *stack;
24035
24036     /* the default is that it fails */
24037     if ((fp = fopen("conftestval", "w")) == NULL)
24038         exit(3);
24039     fprintf(fp, "no\n");
24040     fclose(fp);
24041
24042     /* configure a child user-space context */
24043     if ((stack = malloc(64*1024)) == NULL)
24044         exit(4);
24045     if (getcontext(&uc_child) != 0)
24046         exit(5);
24047     uc_child.uc_link = NULL;
24048     uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
24049     uc_child.uc_stack.ss_size = 32*1024;
24050     uc_child.uc_stack.ss_flags = 0;
24051     makecontext(&uc_child, child, 2, (void *)12345);
24052
24053     /* switch into the user context */
24054     if (swapcontext(&uc_main, &uc_child) != 0)
24055         exit(6);
24056
24057     /* Fine, child came home */
24058     if ((fp = fopen("conftestval", "w")) == NULL)
24059         exit(7);
24060     fprintf(fp, "yes\n");
24061     fclose(fp);
24062
24063     /* die successfully */
24064     exit(0);
24065 }
24066
24067 _ACEOF
24068 rm -f conftest$ac_exeext
24069 if { (ac_try="$ac_link"
24070 case "(($ac_try" in
24071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24072   *) ac_try_echo=$ac_try;;
24073 esac
24074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24075   (eval "$ac_link") 2>&5
24076   ac_status=$?
24077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24079   { (case "(($ac_try" in
24080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24081   *) ac_try_echo=$ac_try;;
24082 esac
24083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24084   (eval "$ac_try") 2>&5
24085   ac_status=$?
24086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087   (exit $ac_status); }; }; then
24088   ac_cv_check_mcsc=`cat conftestval`
24089 else
24090   echo "$as_me: program exited with status $ac_status" >&5
24091 echo "$as_me: failed program was:" >&5
24092 sed 's/^/| /' conftest.$ac_ext >&5
24093
24094 ( exit $ac_status )
24095 ac_cv_check_mcsc=no
24096 fi
24097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24098 fi
24099
24100
24101 fi
24102 { echo "$as_me:$LINENO: result: $ac_cv_check_mcsc" >&5
24103 echo "${ECHO_T}$ac_cv_check_mcsc" >&6; }
24104 if test ".$ac_cv_check_mcsc" = .yes; then
24105     mcsc=yes
24106 else
24107     mcsc=no
24108 fi
24109
24110
24111
24112 for ac_header in pthread.h
24113 do
24114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24116   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24119   echo $ECHO_N "(cached) $ECHO_C" >&6
24120 fi
24121 ac_res=`eval echo '${'$as_ac_Header'}'`
24122                { echo "$as_me:$LINENO: result: $ac_res" >&5
24123 echo "${ECHO_T}$ac_res" >&6; }
24124 else
24125   # Is the header compilable?
24126 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24127 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24128 cat >conftest.$ac_ext <<_ACEOF
24129 /* confdefs.h.  */
24130 _ACEOF
24131 cat confdefs.h >>conftest.$ac_ext
24132 cat >>conftest.$ac_ext <<_ACEOF
24133 /* end confdefs.h.  */
24134 $ac_includes_default
24135 #include <$ac_header>
24136 _ACEOF
24137 rm -f conftest.$ac_objext
24138 if { (ac_try="$ac_compile"
24139 case "(($ac_try" in
24140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24141   *) ac_try_echo=$ac_try;;
24142 esac
24143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24144   (eval "$ac_compile") 2>conftest.er1
24145   ac_status=$?
24146   grep -v '^ *+' conftest.er1 >conftest.err
24147   rm -f conftest.er1
24148   cat conftest.err >&5
24149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150   (exit $ac_status); } && {
24151          test -z "$ac_c_werror_flag" ||
24152          test ! -s conftest.err
24153        } && test -s conftest.$ac_objext; then
24154   ac_header_compiler=yes
24155 else
24156   echo "$as_me: failed program was:" >&5
24157 sed 's/^/| /' conftest.$ac_ext >&5
24158
24159         ac_header_compiler=no
24160 fi
24161
24162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24163 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24164 echo "${ECHO_T}$ac_header_compiler" >&6; }
24165
24166 # Is the header present?
24167 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24169 cat >conftest.$ac_ext <<_ACEOF
24170 /* confdefs.h.  */
24171 _ACEOF
24172 cat confdefs.h >>conftest.$ac_ext
24173 cat >>conftest.$ac_ext <<_ACEOF
24174 /* end confdefs.h.  */
24175 #include <$ac_header>
24176 _ACEOF
24177 if { (ac_try="$ac_cpp conftest.$ac_ext"
24178 case "(($ac_try" in
24179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24180   *) ac_try_echo=$ac_try;;
24181 esac
24182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24183   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24184   ac_status=$?
24185   grep -v '^ *+' conftest.er1 >conftest.err
24186   rm -f conftest.er1
24187   cat conftest.err >&5
24188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189   (exit $ac_status); } >/dev/null && {
24190          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24191          test ! -s conftest.err
24192        }; then
24193   ac_header_preproc=yes
24194 else
24195   echo "$as_me: failed program was:" >&5
24196 sed 's/^/| /' conftest.$ac_ext >&5
24197
24198   ac_header_preproc=no
24199 fi
24200
24201 rm -f conftest.err conftest.$ac_ext
24202 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24203 echo "${ECHO_T}$ac_header_preproc" >&6; }
24204
24205 # So?  What about this header?
24206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24207   yes:no: )
24208     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24211 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24212     ac_header_preproc=yes
24213     ;;
24214   no:yes:* )
24215     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24217     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24218 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24219     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24220 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24221     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24222 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24223     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24225     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24226 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24227     ( cat <<\_ASBOX
24228 ## -------------------------------------------------- ##
24229 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24230 ## -------------------------------------------------- ##
24231 _ASBOX
24232      ) | sed "s/^/$as_me: WARNING:     /" >&2
24233     ;;
24234 esac
24235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24238   echo $ECHO_N "(cached) $ECHO_C" >&6
24239 else
24240   eval "$as_ac_Header=\$ac_header_preproc"
24241 fi
24242 ac_res=`eval echo '${'$as_ac_Header'}'`
24243                { echo "$as_me:$LINENO: result: $ac_res" >&5
24244 echo "${ECHO_T}$ac_res" >&6; }
24245
24246 fi
24247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24248   cat >>confdefs.h <<_ACEOF
24249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24250 _ACEOF
24251
24252 fi
24253
24254 done
24255
24256 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24257 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24258 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24259   echo $ECHO_N "(cached) $ECHO_C" >&6
24260 else
24261   ac_check_lib_save_LIBS=$LIBS
24262 LIBS="-lpthread  $LIBS"
24263 cat >conftest.$ac_ext <<_ACEOF
24264 /* confdefs.h.  */
24265 _ACEOF
24266 cat confdefs.h >>conftest.$ac_ext
24267 cat >>conftest.$ac_ext <<_ACEOF
24268 /* end confdefs.h.  */
24269
24270 /* Override any GCC internal prototype to avoid an error.
24271    Use char because int might match the return type of a GCC
24272    builtin and then its argument prototype would still apply.  */
24273 #ifdef __cplusplus
24274 extern "C"
24275 #endif
24276 char pthread_create ();
24277 int
24278 main ()
24279 {
24280 return pthread_create ();
24281   ;
24282   return 0;
24283 }
24284 _ACEOF
24285 rm -f conftest.$ac_objext conftest$ac_exeext
24286 if { (ac_try="$ac_link"
24287 case "(($ac_try" in
24288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24289   *) ac_try_echo=$ac_try;;
24290 esac
24291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24292   (eval "$ac_link") 2>conftest.er1
24293   ac_status=$?
24294   grep -v '^ *+' conftest.er1 >conftest.err
24295   rm -f conftest.er1
24296   cat conftest.err >&5
24297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298   (exit $ac_status); } && {
24299          test -z "$ac_c_werror_flag" ||
24300          test ! -s conftest.err
24301        } && test -s conftest$ac_exeext &&
24302        $as_test_x conftest$ac_exeext; then
24303   ac_cv_lib_pthread_pthread_create=yes
24304 else
24305   echo "$as_me: failed program was:" >&5
24306 sed 's/^/| /' conftest.$ac_ext >&5
24307
24308         ac_cv_lib_pthread_pthread_create=no
24309 fi
24310
24311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24312       conftest$ac_exeext conftest.$ac_ext
24313 LIBS=$ac_check_lib_save_LIBS
24314 fi
24315 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24316 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24317 if test $ac_cv_lib_pthread_pthread_create = yes; then
24318   pthread=yes
24319 else
24320   pthread=no
24321 fi
24322
24323
24324
24325 if test ".$mcsc" = .yes; then
24326    mcsc=yes
24327 elif test ".$pthread" = .yes; then
24328    pthread=yes
24329 else
24330     ac_header=windows.h
24331     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24332     if test `eval echo '${'$as_ac_Header'}'` = yes; then
24333       windows_context=yes
24334     else
24335       { { echo "$as_me:$LINENO: error: no appropriate backend found" >&5
24336 echo "$as_me: error: no appropriate backend found" >&2;}
24337    { (exit 1); exit 1; }; }
24338     fi
24339 fi
24340
24341
24342 { echo "$as_me:$LINENO: checking what kind of backend should we use" >&5
24343 echo $ECHO_N "checking what kind of backend should we use... $ECHO_C" >&6; }
24344
24345
24346 # Check whether --with-pthread was given.
24347 if test "${with_pthread+set}" = set; then
24348   withval=$with_pthread; with_context=pthread
24349 fi
24350
24351
24352 # Check whether --with-pthread was given.
24353 if test "${with_pthread+set}" = set; then
24354   withval=$with_pthread; with_context=pthread
24355 fi
24356
24357
24358
24359 # Check whether --with-context was given.
24360 if test "${with_context+set}" = set; then
24361   withval=$with_context;
24362 else
24363   with_context=auto
24364 fi
24365
24366
24367 if test "x$with_context$mcsc" = "xucontextno" ; then
24368   { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
24369 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
24370    { (exit 77); exit 77; }; }
24371 fi
24372
24373 case $with_context in
24374  ucontext) ;;
24375  pthread) ;;
24376  pthreads) ;;
24377  windows) ;;
24378  auto) with_context=ucontext;;
24379  *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
24380 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
24381    { (exit 1); exit 1; }; } ;;
24382 esac
24383
24384 if test "x$with_context" = "xucontext" ; then
24385   if test ".$mcsc" = .yes; then
24386     { echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
24387 echo "${ECHO_T}found working ucontext. Great!" >&6; }
24388
24389 cat >>confdefs.h <<\_ACEOF
24390 #define CONTEXT_UCONTEXT 1
24391 _ACEOF
24392
24393   else
24394     if test ".$windows_context" = .yes ; then
24395       { echo "$as_me:$LINENO: result: use windows context portability layer." >&5
24396 echo "${ECHO_T}use windows context portability layer." >&6; }
24397       with_context=windows
24398     else
24399       { echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
24400 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6; }
24401       with_context=pthread
24402     fi
24403   fi
24404 fi
24405
24406 if test "x$with_context" = "xpthreads"; then
24407   with_context=pthread
24408 fi
24409 if test "x$with_context" = "xpthread"; then
24410
24411 for ac_header in pthread.h
24412 do
24413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24415   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24418   echo $ECHO_N "(cached) $ECHO_C" >&6
24419 fi
24420 ac_res=`eval echo '${'$as_ac_Header'}'`
24421                { echo "$as_me:$LINENO: result: $ac_res" >&5
24422 echo "${ECHO_T}$ac_res" >&6; }
24423 else
24424   # Is the header compilable?
24425 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24427 cat >conftest.$ac_ext <<_ACEOF
24428 /* confdefs.h.  */
24429 _ACEOF
24430 cat confdefs.h >>conftest.$ac_ext
24431 cat >>conftest.$ac_ext <<_ACEOF
24432 /* end confdefs.h.  */
24433 $ac_includes_default
24434 #include <$ac_header>
24435 _ACEOF
24436 rm -f conftest.$ac_objext
24437 if { (ac_try="$ac_compile"
24438 case "(($ac_try" in
24439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24440   *) ac_try_echo=$ac_try;;
24441 esac
24442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24443   (eval "$ac_compile") 2>conftest.er1
24444   ac_status=$?
24445   grep -v '^ *+' conftest.er1 >conftest.err
24446   rm -f conftest.er1
24447   cat conftest.err >&5
24448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449   (exit $ac_status); } && {
24450          test -z "$ac_c_werror_flag" ||
24451          test ! -s conftest.err
24452        } && test -s conftest.$ac_objext; then
24453   ac_header_compiler=yes
24454 else
24455   echo "$as_me: failed program was:" >&5
24456 sed 's/^/| /' conftest.$ac_ext >&5
24457
24458         ac_header_compiler=no
24459 fi
24460
24461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24463 echo "${ECHO_T}$ac_header_compiler" >&6; }
24464
24465 # Is the header present?
24466 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24468 cat >conftest.$ac_ext <<_ACEOF
24469 /* confdefs.h.  */
24470 _ACEOF
24471 cat confdefs.h >>conftest.$ac_ext
24472 cat >>conftest.$ac_ext <<_ACEOF
24473 /* end confdefs.h.  */
24474 #include <$ac_header>
24475 _ACEOF
24476 if { (ac_try="$ac_cpp conftest.$ac_ext"
24477 case "(($ac_try" in
24478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24479   *) ac_try_echo=$ac_try;;
24480 esac
24481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24482   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24483   ac_status=$?
24484   grep -v '^ *+' conftest.er1 >conftest.err
24485   rm -f conftest.er1
24486   cat conftest.err >&5
24487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488   (exit $ac_status); } >/dev/null && {
24489          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24490          test ! -s conftest.err
24491        }; then
24492   ac_header_preproc=yes
24493 else
24494   echo "$as_me: failed program was:" >&5
24495 sed 's/^/| /' conftest.$ac_ext >&5
24496
24497   ac_header_preproc=no
24498 fi
24499
24500 rm -f conftest.err conftest.$ac_ext
24501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24502 echo "${ECHO_T}$ac_header_preproc" >&6; }
24503
24504 # So?  What about this header?
24505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24506   yes:no: )
24507     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24511     ac_header_preproc=yes
24512     ;;
24513   no:yes:* )
24514     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24516     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24517 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24518     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24519 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24520     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24521 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24522     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24524     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24525 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24526     ( cat <<\_ASBOX
24527 ## -------------------------------------------------- ##
24528 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24529 ## -------------------------------------------------- ##
24530 _ASBOX
24531      ) | sed "s/^/$as_me: WARNING:     /" >&2
24532     ;;
24533 esac
24534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24537   echo $ECHO_N "(cached) $ECHO_C" >&6
24538 else
24539   eval "$as_ac_Header=\$ac_header_preproc"
24540 fi
24541 ac_res=`eval echo '${'$as_ac_Header'}'`
24542                { echo "$as_me:$LINENO: result: $ac_res" >&5
24543 echo "${ECHO_T}$ac_res" >&6; }
24544
24545 fi
24546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24547   cat >>confdefs.h <<_ACEOF
24548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24549 _ACEOF
24550
24551 fi
24552
24553 done
24554
24555
24556 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24557 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
24558 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24559   echo $ECHO_N "(cached) $ECHO_C" >&6
24560 else
24561   ac_check_lib_save_LIBS=$LIBS
24562 LIBS="-lpthread  $LIBS"
24563 cat >conftest.$ac_ext <<_ACEOF
24564 /* confdefs.h.  */
24565 _ACEOF
24566 cat confdefs.h >>conftest.$ac_ext
24567 cat >>conftest.$ac_ext <<_ACEOF
24568 /* end confdefs.h.  */
24569
24570 /* Override any GCC internal prototype to avoid an error.
24571    Use char because int might match the return type of a GCC
24572    builtin and then its argument prototype would still apply.  */
24573 #ifdef __cplusplus
24574 extern "C"
24575 #endif
24576 char pthread_create ();
24577 int
24578 main ()
24579 {
24580 return pthread_create ();
24581   ;
24582   return 0;
24583 }
24584 _ACEOF
24585 rm -f conftest.$ac_objext conftest$ac_exeext
24586 if { (ac_try="$ac_link"
24587 case "(($ac_try" in
24588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24589   *) ac_try_echo=$ac_try;;
24590 esac
24591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24592   (eval "$ac_link") 2>conftest.er1
24593   ac_status=$?
24594   grep -v '^ *+' conftest.er1 >conftest.err
24595   rm -f conftest.er1
24596   cat conftest.err >&5
24597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598   (exit $ac_status); } && {
24599          test -z "$ac_c_werror_flag" ||
24600          test ! -s conftest.err
24601        } && test -s conftest$ac_exeext &&
24602        $as_test_x conftest$ac_exeext; then
24603   ac_cv_lib_pthread_pthread_create=yes
24604 else
24605   echo "$as_me: failed program was:" >&5
24606 sed 's/^/| /' conftest.$ac_ext >&5
24607
24608         ac_cv_lib_pthread_pthread_create=no
24609 fi
24610
24611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24612       conftest$ac_exeext conftest.$ac_ext
24613 LIBS=$ac_check_lib_save_LIBS
24614 fi
24615 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24616 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
24617 if test $ac_cv_lib_pthread_pthread_create = yes; then
24618   cat >>confdefs.h <<_ACEOF
24619 #define HAVE_LIBPTHREAD 1
24620 _ACEOF
24621
24622   LIBS="-lpthread $LIBS"
24623
24624 else
24625   { { echo "$as_me:$LINENO: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&5
24626 echo "$as_me: error: Cannot find pthreads (try --with-context=ucontext if you haven't already tried)." >&2;}
24627    { (exit 1); exit 1; }; }
24628 fi
24629
24630
24631 cat >>confdefs.h <<\_ACEOF
24632 #define CONTEXT_THREADS 1
24633 _ACEOF
24634
24635   { echo "$as_me:$LINENO: result: You have pthreads. Let's use them." >&5
24636 echo "${ECHO_T}You have pthreads. Let's use them." >&6; }
24637 fi
24638
24639
24640 if test "x$with_context" = "xucontext" ; then
24641   { echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24642 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6; }
24643 if test "${ac_cv_check_stackgrowth+set}" = set; then
24644   echo $ECHO_N "(cached) $ECHO_C" >&6
24645 else
24646
24647 cross_compiling=no
24648 if test "$cross_compiling" = yes; then
24649   ac_cv_check_stackgrowth=down
24650
24651 else
24652   cat >conftest.$ac_ext <<_ACEOF
24653 /* confdefs.h.  */
24654 _ACEOF
24655 cat confdefs.h >>conftest.$ac_ext
24656 cat >>conftest.$ac_ext <<_ACEOF
24657 /* end confdefs.h.  */
24658
24659 #include <stdio.h>
24660 #include <stdlib.h>
24661 static int iterate = 10;
24662 static int growsdown(int *x)
24663 {
24664     auto int y;
24665     y = (x > &y);
24666     if (--iterate > 0)
24667         y = growsdown(&y);
24668     if (y != (x > &y))
24669         exit(1);
24670     return y;
24671 }
24672 int main(int argc, char *argv[])
24673 {
24674     FILE *f;
24675     auto int x;
24676     if ((f = fopen("conftestval", "w")) == NULL)
24677         exit(1);
24678     fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24679     fclose(f);
24680     exit(0);
24681 }
24682
24683
24684 _ACEOF
24685 rm -f conftest$ac_exeext
24686 if { (ac_try="$ac_link"
24687 case "(($ac_try" in
24688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24689   *) ac_try_echo=$ac_try;;
24690 esac
24691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24692   (eval "$ac_link") 2>&5
24693   ac_status=$?
24694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24695   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24696   { (case "(($ac_try" in
24697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24698   *) ac_try_echo=$ac_try;;
24699 esac
24700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24701   (eval "$ac_try") 2>&5
24702   ac_status=$?
24703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704   (exit $ac_status); }; }; then
24705   ac_cv_check_stackgrowth=`cat conftestval`
24706 else
24707   echo "$as_me: program exited with status $ac_status" >&5
24708 echo "$as_me: failed program was:" >&5
24709 sed 's/^/| /' conftest.$ac_ext >&5
24710
24711 ( exit $ac_status )
24712 ac_cv_check_stackgrowth=down
24713 fi
24714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24715 fi
24716
24717
24718 fi
24719 { echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24720 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6; }
24721 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24722     val="-1"
24723 else
24724     val="+1"
24725 fi
24726
24727 cat >>confdefs.h <<_ACEOF
24728 #define PTH_STACKGROWTH $val
24729 _ACEOF
24730
24731
24732   if test ".$ac_cv_check_stackgrowth" = ".down"; then
24733       PTH_STACK_GROWTH="down"
24734   else
24735       PTH_STACK_GROWTH="up"
24736   fi
24737
24738
24739
24740
24741
24742
24743 for ac_func in makecontext
24744 do
24745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24749   echo $ECHO_N "(cached) $ECHO_C" >&6
24750 else
24751   cat >conftest.$ac_ext <<_ACEOF
24752 /* confdefs.h.  */
24753 _ACEOF
24754 cat confdefs.h >>conftest.$ac_ext
24755 cat >>conftest.$ac_ext <<_ACEOF
24756 /* end confdefs.h.  */
24757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24759 #define $ac_func innocuous_$ac_func
24760
24761 /* System header to define __stub macros and hopefully few prototypes,
24762     which can conflict with char $ac_func (); below.
24763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24764     <limits.h> exists even on freestanding compilers.  */
24765
24766 #ifdef __STDC__
24767 # include <limits.h>
24768 #else
24769 # include <assert.h>
24770 #endif
24771
24772 #undef $ac_func
24773
24774 /* Override any GCC internal prototype to avoid an error.
24775    Use char because int might match the return type of a GCC
24776    builtin and then its argument prototype would still apply.  */
24777 #ifdef __cplusplus
24778 extern "C"
24779 #endif
24780 char $ac_func ();
24781 /* The GNU C library defines this for functions which it implements
24782     to always fail with ENOSYS.  Some functions are actually named
24783     something starting with __ and the normal name is an alias.  */
24784 #if defined __stub_$ac_func || defined __stub___$ac_func
24785 choke me
24786 #endif
24787
24788 int
24789 main ()
24790 {
24791 return $ac_func ();
24792   ;
24793   return 0;
24794 }
24795 _ACEOF
24796 rm -f conftest.$ac_objext conftest$ac_exeext
24797 if { (ac_try="$ac_link"
24798 case "(($ac_try" in
24799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24800   *) ac_try_echo=$ac_try;;
24801 esac
24802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24803   (eval "$ac_link") 2>conftest.er1
24804   ac_status=$?
24805   grep -v '^ *+' conftest.er1 >conftest.err
24806   rm -f conftest.er1
24807   cat conftest.err >&5
24808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809   (exit $ac_status); } && {
24810          test -z "$ac_c_werror_flag" ||
24811          test ! -s conftest.err
24812        } && test -s conftest$ac_exeext &&
24813        $as_test_x conftest$ac_exeext; then
24814   eval "$as_ac_var=yes"
24815 else
24816   echo "$as_me: failed program was:" >&5
24817 sed 's/^/| /' conftest.$ac_ext >&5
24818
24819         eval "$as_ac_var=no"
24820 fi
24821
24822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24823       conftest$ac_exeext conftest.$ac_ext
24824 fi
24825 ac_res=`eval echo '${'$as_ac_var'}'`
24826                { echo "$as_me:$LINENO: result: $ac_res" >&5
24827 echo "${ECHO_T}$ac_res" >&6; }
24828 if test `eval echo '${'$as_ac_var'}'` = yes; then
24829   cat >>confdefs.h <<_ACEOF
24830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24831 _ACEOF
24832
24833 fi
24834 done
24835
24836
24837 { echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
24838 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6; }
24839 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
24840   echo $ECHO_N "(cached) $ECHO_C" >&6
24841 else
24842
24843 if test ".$ac_cv_func_makecontext" = .no; then
24844         ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
24845 else
24846         OCFLAGS="$CFLAGS"
24847     CFLAGS="$CFLAGS -DTEST_makecontext"
24848     cross_compiling=no
24849         if test "$cross_compiling" = yes; then
24850
24851 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
24852
24853 else
24854   cat >conftest.$ac_ext <<_ACEOF
24855 /* confdefs.h.  */
24856 _ACEOF
24857 cat confdefs.h >>conftest.$ac_ext
24858 cat >>conftest.$ac_ext <<_ACEOF
24859 /* end confdefs.h.  */
24860
24861 #include <stdio.h>
24862 #include <stdlib.h>
24863 #include <string.h>
24864 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24865 #include <sys/types.h>
24866 #include <signal.h>
24867 #include <unistd.h>
24868 #endif
24869 #if defined(TEST_makecontext)
24870 #include <ucontext.h>
24871 #endif
24872 union alltypes {
24873     long   l;
24874     double d;
24875     void  *vp;
24876     void (*fp)(void);
24877     char  *cp;
24878 };
24879 static volatile char *handler_addr = (char *)0xDEAD;
24880 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24881 static volatile int handler_done = 0;
24882 void handler(int sig)
24883 {
24884     char garbage[1024];
24885     int i;
24886     auto int dummy;
24887     for (i = 0; i < 1024; i++)
24888         garbage[i] = 'X';
24889     handler_addr = (char *)&dummy;
24890     handler_done = 1;
24891     return;
24892 }
24893 #endif
24894 #if defined(TEST_makecontext)
24895 static ucontext_t uc_handler;
24896 static ucontext_t uc_main;
24897 void handler(void)
24898 {
24899     char garbage[1024];
24900     int i;
24901     auto int dummy;
24902     for (i = 0; i < 1024; i++)
24903         garbage[i] = 'X';
24904     handler_addr = (char *)&dummy;
24905     swapcontext(&uc_handler, &uc_main);
24906     return;
24907 }
24908 #endif
24909 int main(int argc, char *argv[])
24910 {
24911     FILE *f;
24912     char *skaddr;
24913     char *skbuf;
24914     int sksize;
24915     char result[1024];
24916     int i;
24917     sksize = 32768;
24918     skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
24919     if (skbuf == NULL)
24920         exit(1);
24921     for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
24922         skbuf[i] = 'A';
24923     skaddr = skbuf+sizeof(union alltypes);
24924 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24925     {
24926         struct sigaction sa;
24927 #if defined(TEST_sigstack)
24928         struct sigstack ss;
24929 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
24930         stack_t ss;
24931 #else
24932         struct sigaltstack ss;
24933 #endif
24934 #if defined(TEST_sigstack)
24935         ss.ss_sp      = (void *)(skaddr + sksize);
24936         ss.ss_onstack = 0;
24937         if (sigstack(&ss, NULL) < 0)
24938             exit(1);
24939 #elif defined(TEST_sigaltstack)
24940         ss.ss_sp    = (void *)(skaddr + sksize);
24941         ss.ss_size  = sksize;
24942         ss.ss_flags = 0;
24943         if (sigaltstack(&ss, NULL) < 0)
24944             exit(1);
24945 #endif
24946         memset((void *)&sa, 0, sizeof(struct sigaction));
24947         sa.sa_handler = handler;
24948         sa.sa_flags = SA_ONSTACK;
24949         sigemptyset(&sa.sa_mask);
24950         sigaction(SIGUSR1, &sa, NULL);
24951         kill(getpid(), SIGUSR1);
24952         while (!handler_done)
24953             /*nop*/;
24954     }
24955 #endif
24956 #if defined(TEST_makecontext)
24957     {
24958         if (getcontext(&uc_handler) != 0)
24959             exit(1);
24960         uc_handler.uc_link = NULL;
24961         uc_handler.uc_stack.ss_sp    = (void *)(skaddr + sksize);
24962         uc_handler.uc_stack.ss_size  = sksize;
24963         uc_handler.uc_stack.ss_flags = 0;
24964         makecontext(&uc_handler, handler, 1);
24965         swapcontext(&uc_main, &uc_handler);
24966     }
24967 #endif
24968     if (handler_addr == (char *)0xDEAD)
24969         exit(1);
24970     if (handler_addr < skaddr+sksize) {
24971         /* stack was placed into lower area */
24972         if (*(skaddr+sksize) != 'A')
24973              sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
24974                      sizeof(union alltypes), sizeof(union alltypes));
24975         else
24976              strcpy(result, "(skaddr)+(sksize),(sksize)");
24977     }
24978     else {
24979         /* stack was placed into higher area */
24980         if (*(skaddr+sksize*2) != 'A')
24981             sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
24982         else
24983             strcpy(result, "(skaddr),(sksize)");
24984     }
24985     if ((f = fopen("conftestval", "w")) == NULL)
24986         exit(1);
24987     fprintf(f, "%s\n", result);
24988     fclose(f);
24989     exit(0);
24990 }
24991
24992 _ACEOF
24993 rm -f conftest$ac_exeext
24994 if { (ac_try="$ac_link"
24995 case "(($ac_try" in
24996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24997   *) ac_try_echo=$ac_try;;
24998 esac
24999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25000   (eval "$ac_link") 2>&5
25001   ac_status=$?
25002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25004   { (case "(($ac_try" in
25005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25006   *) ac_try_echo=$ac_try;;
25007 esac
25008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25009   (eval "$ac_try") 2>&5
25010   ac_status=$?
25011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012   (exit $ac_status); }; }; then
25013
25014 ac_cv_stacksetup_makecontext=`cat conftestval`
25015 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
25016
25017 else
25018   echo "$as_me: program exited with status $ac_status" >&5
25019 echo "$as_me: failed program was:" >&5
25020 sed 's/^/| /' conftest.$ac_ext >&5
25021
25022 ( exit $ac_status )
25023
25024 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
25025
25026 fi
25027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25028 fi
25029
25030
25031 CFLAGS="$OCFLAGS"
25032
25033 fi
25034 fi
25035 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
25036 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
25037 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
25038 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
25039 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
25040 { echo "$as_me:$LINENO: result: $type" >&5
25041 echo "${ECHO_T}$type" >&6; }
25042 if test ".$verbose" = .yes; then
25043     { echo "$as_me:$LINENO: result:   $pth_skaddr_makecontext" >&5
25044 echo "${ECHO_T}  $pth_skaddr_makecontext" >&6; }
25045 fi
25046
25047 if test ".$verbose" = .yes; then
25048     { echo "$as_me:$LINENO: result:   $pth_sksize_makecontext" >&5
25049 echo "${ECHO_T}  $pth_sksize_makecontext" >&6; }
25050 fi
25051
25052
25053 fi
25054
25055
25056 #########################################
25057 ## Build optional modules (simix)
25058 ##
25059
25060   { echo "$as_me:$LINENO: result: " >&5
25061 echo "${ECHO_T}" >&6; }
25062   { echo "$as_me:$LINENO: result: ${T_MD}Optional modules${T_ME}" >&5
25063 echo "${ECHO_T}${T_MD}Optional modules${T_ME}" >&6; }
25064
25065 # Check whether --enable-simix was given.
25066 if test "${enable_simix+set}" = set; then
25067   enableval=$enable_simix; enable_simix=$enableval
25068 else
25069   enable_simix=no
25070 fi
25071
25072 if test "x$enable_simix" = "xyes" ; then
25073   { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****" >&5
25074 echo "${ECHO_T}***** You have decided to use the experimental SimIX. We hope you know what you're doing.. ****" >&6; }
25075
25076 cat >>confdefs.h <<\_ACEOF
25077 #define USE_SIMIX 1
25078 _ACEOF
25079
25080 else
25081   { echo "$as_me:$LINENO: result: Eventually you will come to SimIX." >&5
25082 echo "${ECHO_T}Eventually you will come to SimIX." >&6; }
25083 fi
25084
25085
25086 if test x$enable_simix != xno; then
25087   USE_SIMIX_TRUE=
25088   USE_SIMIX_FALSE='#'
25089 else
25090   USE_SIMIX_TRUE='#'
25091   USE_SIMIX_FALSE=
25092 fi
25093
25094
25095 #########################################
25096 ## Check for libraries extra-dependencies
25097 ##
25098
25099
25100   { echo "$as_me:$LINENO: result: " >&5
25101 echo "${ECHO_T}" >&6; }
25102   { echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
25103 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6; }
25104
25105
25106 SIMGRID_DEP=""
25107 GRAS_DEP=""
25108
25109 #########################################
25110 ## Build optional modules (gtnets)
25111 ##
25112
25113 # Check whether --with-gtnets was given.
25114 if test "${with_gtnets+set}" = set; then
25115   withval=$with_gtnets; gtnets_path="$withval"
25116 else
25117   gtnets_path="NO"
25118 fi
25119
25120 if test "x$gtnets_path" = "xNO" ; then
25121   { echo "$as_me:$LINENO: result: Eventually you will come to GTNetS." >&5
25122 echo "${ECHO_T}Eventually you will come to GTNetS." >&6; }
25123 else
25124   { echo "$as_me:$LINENO: result: ***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&5
25125 echo "${ECHO_T}***** You have decided to use the experimental GTNetS. We hope you know what you're doing.. ****" >&6; }
25126
25127 cat >>confdefs.h <<\_ACEOF
25128 #define USE_GTNETS 1
25129 _ACEOF
25130
25131   if ! test -e $gtnets_path ; then
25132     { { echo "$as_me:$LINENO: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&5
25133 echo "$as_me: error: Provided path to GTNetS include files ($gtnets_path) do not exist!" >&2;}
25134    { (exit 1); exit 1; }; }
25135   fi
25136   GTNETS_CFLAGS=-I$gtnets_path/include
25137
25138   GTNETS_LDFLAGS=-L$gtnets_path/lib
25139
25140   SIMGRID_DEP="$SIMGRID_DEP $GTNETS_LDFLAGS -lgtnets"
25141 fi
25142
25143
25144 if test "x$gtnets_path" != xNO; then
25145   USE_GTNETS_TRUE=
25146   USE_GTNETS_FALSE='#'
25147 else
25148   USE_GTNETS_TRUE='#'
25149   USE_GTNETS_FALSE=
25150 fi
25151
25152
25153 if test xpthread=xyes ; then
25154   # if the pthreads are usable
25155   if test "x$with_context" = "xpthread" ; then
25156     # if we use them to implement the xbt_context
25157     SIMGRID_DEP="-lpthread"
25158   fi
25159   # we need them in any case for the gras lib (which is multithreaded)
25160   GRAS_DEP="-lpthread"
25161 fi
25162
25163 { echo "$as_me:$LINENO: checking for csdp" >&5
25164 echo $ECHO_N "checking for csdp... $ECHO_C" >&6; }
25165 sdp=no
25166 { echo "$as_me:$LINENO: checking for sdp in -lsdp" >&5
25167 echo $ECHO_N "checking for sdp in -lsdp... $ECHO_C" >&6; }
25168 if test "${ac_cv_lib_sdp_sdp+set}" = set; then
25169   echo $ECHO_N "(cached) $ECHO_C" >&6
25170 else
25171   ac_check_lib_save_LIBS=$LIBS
25172 LIBS="-lsdp -llapack -lblas -lm $LIBS"
25173 cat >conftest.$ac_ext <<_ACEOF
25174 /* confdefs.h.  */
25175 _ACEOF
25176 cat confdefs.h >>conftest.$ac_ext
25177 cat >>conftest.$ac_ext <<_ACEOF
25178 /* end confdefs.h.  */
25179
25180 /* Override any GCC internal prototype to avoid an error.
25181    Use char because int might match the return type of a GCC
25182    builtin and then its argument prototype would still apply.  */
25183 #ifdef __cplusplus
25184 extern "C"
25185 #endif
25186 char sdp ();
25187 int
25188 main ()
25189 {
25190 return sdp ();
25191   ;
25192   return 0;
25193 }
25194 _ACEOF
25195 rm -f conftest.$ac_objext conftest$ac_exeext
25196 if { (ac_try="$ac_link"
25197 case "(($ac_try" in
25198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25199   *) ac_try_echo=$ac_try;;
25200 esac
25201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25202   (eval "$ac_link") 2>conftest.er1
25203   ac_status=$?
25204   grep -v '^ *+' conftest.er1 >conftest.err
25205   rm -f conftest.er1
25206   cat conftest.err >&5
25207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208   (exit $ac_status); } && {
25209          test -z "$ac_c_werror_flag" ||
25210          test ! -s conftest.err
25211        } && test -s conftest$ac_exeext &&
25212        $as_test_x conftest$ac_exeext; then
25213   ac_cv_lib_sdp_sdp=yes
25214 else
25215   echo "$as_me: failed program was:" >&5
25216 sed 's/^/| /' conftest.$ac_ext >&5
25217
25218         ac_cv_lib_sdp_sdp=no
25219 fi
25220
25221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25222       conftest$ac_exeext conftest.$ac_ext
25223 LIBS=$ac_check_lib_save_LIBS
25224 fi
25225 { echo "$as_me:$LINENO: result: $ac_cv_lib_sdp_sdp" >&5
25226 echo "${ECHO_T}$ac_cv_lib_sdp_sdp" >&6; }
25227 if test $ac_cv_lib_sdp_sdp = yes; then
25228   csdp=yes
25229 else
25230   csdp=no
25231 fi
25232
25233 if test "x$csdp" = xyes; then
25234   SIMGRID_DEP="$SIMGRID_DEP -lsdp -llapack -lblas -lm"
25235   { echo "$as_me:$LINENO: result: Found working sdp library." >&5
25236 echo "${ECHO_T}Found working sdp library." >&6; }
25237
25238 cat >>confdefs.h <<\_ACEOF
25239 #define HAVE_SDP 1
25240 _ACEOF
25241
25242 else
25243   { echo "$as_me:$LINENO: result: Could not find any working sdp library." >&5
25244 echo "${ECHO_T}Could not find any working sdp library." >&6; }
25245 fi;
25246
25247
25248 if test x$csdp != xno; then
25249   HAVE_SDP_TRUE=
25250   HAVE_SDP_FALSE='#'
25251 else
25252   HAVE_SDP_TRUE='#'
25253   HAVE_SDP_FALSE=
25254 fi
25255
25256
25257
25258
25259 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25260 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
25261 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25262   echo $ECHO_N "(cached) $ECHO_C" >&6
25263 else
25264   ac_check_lib_save_LIBS=$LIBS
25265 LIBS="-lnsl  $LIBS"
25266 cat >conftest.$ac_ext <<_ACEOF
25267 /* confdefs.h.  */
25268 _ACEOF
25269 cat confdefs.h >>conftest.$ac_ext
25270 cat >>conftest.$ac_ext <<_ACEOF
25271 /* end confdefs.h.  */
25272
25273 /* Override any GCC internal prototype to avoid an error.
25274    Use char because int might match the return type of a GCC
25275    builtin and then its argument prototype would still apply.  */
25276 #ifdef __cplusplus
25277 extern "C"
25278 #endif
25279 char gethostbyname ();
25280 int
25281 main ()
25282 {
25283 return gethostbyname ();
25284   ;
25285   return 0;
25286 }
25287 _ACEOF
25288 rm -f conftest.$ac_objext conftest$ac_exeext
25289 if { (ac_try="$ac_link"
25290 case "(($ac_try" in
25291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25292   *) ac_try_echo=$ac_try;;
25293 esac
25294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25295   (eval "$ac_link") 2>conftest.er1
25296   ac_status=$?
25297   grep -v '^ *+' conftest.er1 >conftest.err
25298   rm -f conftest.er1
25299   cat conftest.err >&5
25300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301   (exit $ac_status); } && {
25302          test -z "$ac_c_werror_flag" ||
25303          test ! -s conftest.err
25304        } && test -s conftest$ac_exeext &&
25305        $as_test_x conftest$ac_exeext; then
25306   ac_cv_lib_nsl_gethostbyname=yes
25307 else
25308   echo "$as_me: failed program was:" >&5
25309 sed 's/^/| /' conftest.$ac_ext >&5
25310
25311         ac_cv_lib_nsl_gethostbyname=no
25312 fi
25313
25314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25315       conftest$ac_exeext conftest.$ac_ext
25316 LIBS=$ac_check_lib_save_LIBS
25317 fi
25318 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25319 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
25320 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25321   GRAS_DEP="$GRAS_DEP -lnsl"
25322 fi
25323
25324 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25325 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25326 if test "${ac_cv_lib_socket_connect+set}" = set; then
25327   echo $ECHO_N "(cached) $ECHO_C" >&6
25328 else
25329   ac_check_lib_save_LIBS=$LIBS
25330 LIBS="-lsocket  $LIBS"
25331 cat >conftest.$ac_ext <<_ACEOF
25332 /* confdefs.h.  */
25333 _ACEOF
25334 cat confdefs.h >>conftest.$ac_ext
25335 cat >>conftest.$ac_ext <<_ACEOF
25336 /* end confdefs.h.  */
25337
25338 /* Override any GCC internal prototype to avoid an error.
25339    Use char because int might match the return type of a GCC
25340    builtin and then its argument prototype would still apply.  */
25341 #ifdef __cplusplus
25342 extern "C"
25343 #endif
25344 char connect ();
25345 int
25346 main ()
25347 {
25348 return connect ();
25349   ;
25350   return 0;
25351 }
25352 _ACEOF
25353 rm -f conftest.$ac_objext conftest$ac_exeext
25354 if { (ac_try="$ac_link"
25355 case "(($ac_try" in
25356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25357   *) ac_try_echo=$ac_try;;
25358 esac
25359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25360   (eval "$ac_link") 2>conftest.er1
25361   ac_status=$?
25362   grep -v '^ *+' conftest.er1 >conftest.err
25363   rm -f conftest.er1
25364   cat conftest.err >&5
25365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366   (exit $ac_status); } && {
25367          test -z "$ac_c_werror_flag" ||
25368          test ! -s conftest.err
25369        } && test -s conftest$ac_exeext &&
25370        $as_test_x conftest$ac_exeext; then
25371   ac_cv_lib_socket_connect=yes
25372 else
25373   echo "$as_me: failed program was:" >&5
25374 sed 's/^/| /' conftest.$ac_ext >&5
25375
25376         ac_cv_lib_socket_connect=no
25377 fi
25378
25379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25380       conftest$ac_exeext conftest.$ac_ext
25381 LIBS=$ac_check_lib_save_LIBS
25382 fi
25383 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25384 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25385 if test $ac_cv_lib_socket_connect = yes; then
25386   GRAS_DEP="$GRAS_DEP -lsocket"
25387 fi
25388
25389
25390 { echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
25391 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6; }
25392 case $host_os in
25393   *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32";
25394             AM_CFLAGS=-DDLL_EXPORT
25395
25396             cat >>confdefs.h <<\_ACEOF
25397 #define CONTEXT_THREADS 1
25398 _ACEOF
25399 ;;
25400 esac
25401
25402 if test "x$GRAS_DEP" = x; then
25403    { echo "$as_me:$LINENO: result: none" >&5
25404 echo "${ECHO_T}none" >&6; }
25405 else
25406    { echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
25407 echo "${ECHO_T}$GRAS_DEP" >&6; }
25408 fi
25409
25410
25411
25412 ##############################################
25413 ## Enhance maintainer mode and SUBST variables
25414 ## (must be placed after any compilation tests since our overprotective flags
25415 ##  let some tests fail)
25416
25417 # Check whether we are doing a regular build or a GRAMINE (minimal) one
25418 # Next line is modified by sed when building gramine source tree
25419 gramine_mode=no
25420 if test x$gramine_mode = xyes
25421 then
25422   USE_MAINTAINER_MODE=no
25423 fi
25424
25425
25426 if test x$gramine_mode != xno; then
25427   GRAMINE_MODE_TRUE=
25428   GRAMINE_MODE_FALSE='#'
25429 else
25430   GRAMINE_MODE_TRUE='#'
25431   GRAMINE_MODE_FALSE=
25432 fi
25433
25434
25435
25436 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25437 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
25438     # Check whether --enable-maintainer-mode was given.
25439 if test "${enable_maintainer_mode+set}" = set; then
25440   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
25441 else
25442   USE_MAINTAINER_MODE=no
25443 fi
25444
25445   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25446 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
25447
25448
25449 if test $USE_MAINTAINER_MODE = yes; then
25450   MAINTAINER_MODE_TRUE=
25451   MAINTAINER_MODE_FALSE='#'
25452 else
25453   MAINTAINER_MODE_TRUE='#'
25454   MAINTAINER_MODE_FALSE=
25455 fi
25456
25457   MAINT=$MAINTAINER_MODE_TRUE
25458
25459
25460 if test x$USE_MAINTAINER_MODE = xyes
25461 then
25462    # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
25463    enable_compile_warnings=yes
25464 fi
25465
25466   # Check whether --enable-compile-warnings was given.
25467 if test "${enable_compile_warnings+set}" = set; then
25468   enableval=$enable_compile_warnings; enable_compile_warnings=$enableval
25469 else
25470   enable_compile_warnings=no
25471 fi
25472
25473
25474   # Check whether --enable-compile-optimizations was given.
25475 if test "${enable_compile_optimizations+set}" = set; then
25476   enableval=$enable_compile_optimizations; enable_compile_optimizations=$enableval
25477 else
25478   enable_compile_optimizations=auto
25479 fi
25480
25481
25482   if test "x$cflags_set" != "xyes" ; then
25483     # if user didn't specify CFLAGS explicitely
25484
25485     # AC PROG CC tests whether -g is accepted.
25486     # Cool, but it also tries to set -O2. I don't want it with gcc
25487     saveCFLAGS="$CFLAGS"
25488     CFLAGS=
25489     case " $saveCFLAGS " in
25490     *-g*) CFLAGS="-g" ;;
25491     esac
25492     case " $saveCFLAGS " in
25493     *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
25494     esac
25495
25496     # damn AC PROG CC, why did you set -O??
25497     CFLAGS="-g"
25498   fi
25499
25500   if test "x$enable_compile_warnings" = "xyes" ; then
25501     { echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
25502 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6; }
25503     warnCFLAGS=
25504     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25505       case " $CFLAGS " in
25506       *-Wall*) ;;
25507       *) warnCFLAGS="-Wall -Wunused" ;;
25508       esac
25509
25510       ## -W is not all that useful.  And it cannot be controlled
25511       ## with individual -Wno-xxx flags, unlike -Wall
25512
25513       ## -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
25514       ## -Wshadow chokes on try{ try{} } constructs
25515       if test "x$enable_compile_warnings" = "xyes"; then
25516         warnCFLAGS=`echo $warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations \
25517         -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
25518         -Wno-unused-function  \
25519         -Werror \
25520         | sed 's/ +/ /g'`
25521         # -Wno-unused-variable  -Wno-unused-label
25522       fi
25523     fi
25524     { echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
25525 echo "${ECHO_T}$warnCFLAGS" >&6; }
25526     # placed before since gcc remembers the last one on conflict
25527     CFLAGS="$warnCFLAGS $CFLAGS"
25528   fi
25529
25530   if test "x$enable_compile_optimizations" = "xyes" ||
25531      test "x$enable_compile_optimizations" = "xauto" ; then
25532     { echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
25533 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6; }
25534     optCFLAGS=
25535     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
25536         case " $CFLAGS " in
25537         *-O*) ;;
25538         *) optCFLAGS="$optCFLAGS -O3" ;;
25539         esac
25540         optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
25541
25542         GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
25543         GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
25544         if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" != "x2" ; then
25545           # avoid gcc bug #12828, which is fixed in 3.4.0, but this version
25546           # isn't propagated enough to desserve an extra check
25547
25548           # Note that the flag didn't exist before gcc 3.0
25549           optCFLAGS="$optCFLAGS -fno-loop-optimize"
25550         fi
25551             fi
25552     { echo "$as_me:$LINENO: result: $optCFLAGS" >&5
25553 echo "${ECHO_T}$optCFLAGS" >&6; }
25554     # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
25555     if test "x$cflags_set" != "xyes" ; then
25556       CFLAGS="$optCFLAGS $CFLAGS"
25557     fi
25558   fi
25559
25560   if test x$lt_cv_prog_gnu_ld = xyes ; then
25561     LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
25562   else
25563     LD_DYNAMIC_FLAGS=
25564   fi
25565
25566
25567
25568
25569
25570
25571
25572
25573
25574
25575
25576
25577 #####################
25578 ## Check for programs
25579 ##
25580
25581
25582   { echo "$as_me:$LINENO: result: " >&5
25583 echo "${ECHO_T}" >&6; }
25584   { echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
25585 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6; }
25586
25587 # Extract the first word of "bash", so it can be a program name with args.
25588 set dummy bash; ac_word=$2
25589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25591 if test "${ac_cv_prog_BASH+set}" = set; then
25592   echo $ECHO_N "(cached) $ECHO_C" >&6
25593 else
25594   if test -n "$BASH"; then
25595   ac_cv_prog_BASH="$BASH" # Let the user override the test.
25596 else
25597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25598 for as_dir in $PATH
25599 do
25600   IFS=$as_save_IFS
25601   test -z "$as_dir" && as_dir=.
25602   for ac_exec_ext in '' $ac_executable_extensions; do
25603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25604     ac_cv_prog_BASH="`which bash`"
25605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25606     break 2
25607   fi
25608 done
25609 done
25610 IFS=$as_save_IFS
25611
25612   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
25613 fi
25614 fi
25615 BASH=$ac_cv_prog_BASH
25616 if test -n "$BASH"; then
25617   { echo "$as_me:$LINENO: result: $BASH" >&5
25618 echo "${ECHO_T}$BASH" >&6; }
25619 else
25620   { echo "$as_me:$LINENO: result: no" >&5
25621 echo "${ECHO_T}no" >&6; }
25622 fi
25623
25624
25625 WARNING="This file is generated, do not edit"
25626
25627
25628
25629 # Can we rebuild the parsers?
25630 # We really want flex and refuse other lex. So, the parser is portable and
25631 # does not induce extra lib dependency
25632 for ac_prog in flex lex
25633 do
25634   # Extract the first word of "$ac_prog", so it can be a program name with args.
25635 set dummy $ac_prog; ac_word=$2
25636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25638 if test "${ac_cv_prog_LEX+set}" = set; then
25639   echo $ECHO_N "(cached) $ECHO_C" >&6
25640 else
25641   if test -n "$LEX"; then
25642   ac_cv_prog_LEX="$LEX" # Let the user override the test.
25643 else
25644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25645 for as_dir in $PATH
25646 do
25647   IFS=$as_save_IFS
25648   test -z "$as_dir" && as_dir=.
25649   for ac_exec_ext in '' $ac_executable_extensions; do
25650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25651     ac_cv_prog_LEX="$ac_prog"
25652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25653     break 2
25654   fi
25655 done
25656 done
25657 IFS=$as_save_IFS
25658
25659 fi
25660 fi
25661 LEX=$ac_cv_prog_LEX
25662 if test -n "$LEX"; then
25663   { echo "$as_me:$LINENO: result: $LEX" >&5
25664 echo "${ECHO_T}$LEX" >&6; }
25665 else
25666   { echo "$as_me:$LINENO: result: no" >&5
25667 echo "${ECHO_T}no" >&6; }
25668 fi
25669
25670
25671   test -n "$LEX" && break
25672 done
25673 test -n "$LEX" || LEX=":"
25674
25675 if test "x$LEX" != "x:"; then
25676   cat >conftest.l <<_ACEOF
25677 %%
25678 a { ECHO; }
25679 b { REJECT; }
25680 c { yymore (); }
25681 d { yyless (1); }
25682 e { yyless (input () != 0); }
25683 f { unput (yytext[0]); }
25684 . { BEGIN INITIAL; }
25685 %%
25686 #ifdef YYTEXT_POINTER
25687 extern char *yytext;
25688 #endif
25689 int
25690 main (void)
25691 {
25692   return ! yylex () + ! yywrap ();
25693 }
25694 _ACEOF
25695 { (ac_try="$LEX conftest.l"
25696 case "(($ac_try" in
25697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25698   *) ac_try_echo=$ac_try;;
25699 esac
25700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25701   (eval "$LEX conftest.l") 2>&5
25702   ac_status=$?
25703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25704   (exit $ac_status); }
25705 { echo "$as_me:$LINENO: checking lex output file root" >&5
25706 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
25707 if test "${ac_cv_prog_lex_root+set}" = set; then
25708   echo $ECHO_N "(cached) $ECHO_C" >&6
25709 else
25710
25711 if test -f lex.yy.c; then
25712   ac_cv_prog_lex_root=lex.yy
25713 elif test -f lexyy.c; then
25714   ac_cv_prog_lex_root=lexyy
25715 else
25716   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
25717 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
25718    { (exit 1); exit 1; }; }
25719 fi
25720 fi
25721 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
25722 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
25723 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
25724
25725 if test -z "${LEXLIB+set}"; then
25726   { echo "$as_me:$LINENO: checking lex library" >&5
25727 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
25728 if test "${ac_cv_lib_lex+set}" = set; then
25729   echo $ECHO_N "(cached) $ECHO_C" >&6
25730 else
25731
25732     ac_save_LIBS=$LIBS
25733     ac_cv_lib_lex='none needed'
25734     for ac_lib in '' -lfl -ll; do
25735       LIBS="$ac_lib $ac_save_LIBS"
25736       cat >conftest.$ac_ext <<_ACEOF
25737 `cat $LEX_OUTPUT_ROOT.c`
25738 _ACEOF
25739 rm -f conftest.$ac_objext conftest$ac_exeext
25740 if { (ac_try="$ac_link"
25741 case "(($ac_try" in
25742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25743   *) ac_try_echo=$ac_try;;
25744 esac
25745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25746   (eval "$ac_link") 2>conftest.er1
25747   ac_status=$?
25748   grep -v '^ *+' conftest.er1 >conftest.err
25749   rm -f conftest.er1
25750   cat conftest.err >&5
25751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25752   (exit $ac_status); } && {
25753          test -z "$ac_c_werror_flag" ||
25754          test ! -s conftest.err
25755        } && test -s conftest$ac_exeext &&
25756        $as_test_x conftest$ac_exeext; then
25757   ac_cv_lib_lex=$ac_lib
25758 else
25759   echo "$as_me: failed program was:" >&5
25760 sed 's/^/| /' conftest.$ac_ext >&5
25761
25762
25763 fi
25764
25765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25766       conftest$ac_exeext conftest.$ac_ext
25767       test "$ac_cv_lib_lex" != 'none needed' && break
25768     done
25769     LIBS=$ac_save_LIBS
25770
25771 fi
25772 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
25773 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
25774   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
25775 fi
25776
25777
25778 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
25779 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
25780 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
25781   echo $ECHO_N "(cached) $ECHO_C" >&6
25782 else
25783   # POSIX says lex can declare yytext either as a pointer or an array; the
25784 # default is implementation-dependent.  Figure out which it is, since
25785 # not all implementations provide the %pointer and %array declarations.
25786 ac_cv_prog_lex_yytext_pointer=no
25787 ac_save_LIBS=$LIBS
25788 LIBS="$LEXLIB $ac_save_LIBS"
25789 cat >conftest.$ac_ext <<_ACEOF
25790 #define YYTEXT_POINTER 1
25791 `cat $LEX_OUTPUT_ROOT.c`
25792 _ACEOF
25793 rm -f conftest.$ac_objext conftest$ac_exeext
25794 if { (ac_try="$ac_link"
25795 case "(($ac_try" in
25796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25797   *) ac_try_echo=$ac_try;;
25798 esac
25799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25800   (eval "$ac_link") 2>conftest.er1
25801   ac_status=$?
25802   grep -v '^ *+' conftest.er1 >conftest.err
25803   rm -f conftest.er1
25804   cat conftest.err >&5
25805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25806   (exit $ac_status); } && {
25807          test -z "$ac_c_werror_flag" ||
25808          test ! -s conftest.err
25809        } && test -s conftest$ac_exeext &&
25810        $as_test_x conftest$ac_exeext; then
25811   ac_cv_prog_lex_yytext_pointer=yes
25812 else
25813   echo "$as_me: failed program was:" >&5
25814 sed 's/^/| /' conftest.$ac_ext >&5
25815
25816
25817 fi
25818
25819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25820       conftest$ac_exeext conftest.$ac_ext
25821 LIBS=$ac_save_LIBS
25822
25823 fi
25824 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
25825 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
25826 if test $ac_cv_prog_lex_yytext_pointer = yes; then
25827
25828 cat >>confdefs.h <<\_ACEOF
25829 #define YYTEXT_POINTER 1
25830 _ACEOF
25831
25832 fi
25833 rm -f conftest.l $LEX_OUTPUT_ROOT.c
25834
25835 fi
25836
25837   if test "$LEX" != flex; then
25838     { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
25839 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
25840     LEX=${am_missing_run}flex
25841     LEXLIB=''
25842
25843   else
25844     if test "x2.5.30" != "x" ; then
25845                               FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
25846
25847       FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
25848       FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
25849       FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
25850
25851       WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
25852       WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
25853       WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
25854
25855       if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
25856          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED"  ||
25857          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
25858       then
25859         { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
25860 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
25861         LEX=${am_missing_run}flex
25862         LEXLIB=''
25863
25864       else
25865         { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
25866 echo "$as_me: Flex found. Parsers will get updated" >&6;}
25867       fi
25868     fi
25869   fi
25870
25871
25872 # Can we rebuild the xml-lexers from the XML specification?
25873 # if not, simply touch the flex source files (which are distributed in
25874 #  tarballs even if generated by flexml) and hope for the best.
25875 # Extract the first word of "flexml", so it can be a program name with args.
25876 set dummy flexml; ac_word=$2
25877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25879 if test "${ac_cv_prog_FLEXML+set}" = set; then
25880   echo $ECHO_N "(cached) $ECHO_C" >&6
25881 else
25882   if test -n "$FLEXML"; then
25883   ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
25884 else
25885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25886 for as_dir in $PATH
25887 do
25888   IFS=$as_save_IFS
25889   test -z "$as_dir" && as_dir=.
25890   for ac_exec_ext in '' $ac_executable_extensions; do
25891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25892     ac_cv_prog_FLEXML="`which flexml`"
25893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25894     break 2
25895   fi
25896 done
25897 done
25898 IFS=$as_save_IFS
25899
25900   test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
25901 fi
25902 fi
25903 FLEXML=$ac_cv_prog_FLEXML
25904 if test -n "$FLEXML"; then
25905   { echo "$as_me:$LINENO: result: $FLEXML" >&5
25906 echo "${ECHO_T}$FLEXML" >&6; }
25907 else
25908   { echo "$as_me:$LINENO: result: no" >&5
25909 echo "${ECHO_T}no" >&6; }
25910 fi
25911
25912
25913
25914
25915 if test x$FLEXML != xNOTFOUND; then
25916   HAVE_FLEXML_TRUE=
25917   HAVE_FLEXML_FALSE='#'
25918 else
25919   HAVE_FLEXML_TRUE='#'
25920   HAVE_FLEXML_FALSE=
25921 fi
25922
25923
25924 if test x$USE_MAINTAINER_MODE = xyes
25925 then
25926    # Check for doxygen when in maintainer mode since dist* targets fail
25927    # without it
25928    # Extract the first word of "doxygen", so it can be a program name with args.
25929 set dummy doxygen; ac_word=$2
25930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25932 if test "${ac_cv_path_DOXYGEN+set}" = set; then
25933   echo $ECHO_N "(cached) $ECHO_C" >&6
25934 else
25935   case $DOXYGEN in
25936   [\\/]* | ?:[\\/]*)
25937   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
25938   ;;
25939   *)
25940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25941 for as_dir in $PATH
25942 do
25943   IFS=$as_save_IFS
25944   test -z "$as_dir" && as_dir=.
25945   for ac_exec_ext in '' $ac_executable_extensions; do
25946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25947     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
25948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25949     break 2
25950   fi
25951 done
25952 done
25953 IFS=$as_save_IFS
25954
25955   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
25956   ;;
25957 esac
25958 fi
25959 DOXYGEN=$ac_cv_path_DOXYGEN
25960 if test -n "$DOXYGEN"; then
25961   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
25962 echo "${ECHO_T}$DOXYGEN" >&6; }
25963 else
25964   { echo "$as_me:$LINENO: result: no" >&5
25965 echo "${ECHO_T}no" >&6; }
25966 fi
25967
25968
25969    if test x$DOXYGEN = x ; then
25970      { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
25971 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
25972    { (exit 1); exit 1; }; }
25973    fi
25974 fi
25975
25976 # Can we extract really usable backtraces? (also need the popen function)
25977 # Extract the first word of "addr2line", so it can be a program name with args.
25978 set dummy addr2line; ac_word=$2
25979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25981 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
25982   echo $ECHO_N "(cached) $ECHO_C" >&6
25983 else
25984   case $ADDR2LINE in
25985   [\\/]* | ?:[\\/]*)
25986   ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
25987   ;;
25988   *)
25989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25990 for as_dir in $PATH
25991 do
25992   IFS=$as_save_IFS
25993   test -z "$as_dir" && as_dir=.
25994   for ac_exec_ext in '' $ac_executable_extensions; do
25995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25996     ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
25997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25998     break 2
25999   fi
26000 done
26001 done
26002 IFS=$as_save_IFS
26003
26004   ;;
26005 esac
26006 fi
26007 ADDR2LINE=$ac_cv_path_ADDR2LINE
26008 if test -n "$ADDR2LINE"; then
26009   { echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
26010 echo "${ECHO_T}$ADDR2LINE" >&6; }
26011 else
26012   { echo "$as_me:$LINENO: result: no" >&5
26013 echo "${ECHO_T}no" >&6; }
26014 fi
26015
26016
26017 if test x$ADDR2LINE != x ; then
26018
26019 cat >>confdefs.h <<_ACEOF
26020 #define ADDR2LINE "$ADDR2LINE"
26021 _ACEOF
26022
26023 fi
26024
26025
26026 # Can we make status line about the compilation result?
26027 # Extract the first word of "md5sum", so it can be a program name with args.
26028 set dummy md5sum; ac_word=$2
26029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26031 if test "${ac_cv_prog_MD5SUM+set}" = set; then
26032   echo $ECHO_N "(cached) $ECHO_C" >&6
26033 else
26034   if test -n "$MD5SUM"; then
26035   ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
26036 else
26037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26038 for as_dir in $PATH
26039 do
26040   IFS=$as_save_IFS
26041   test -z "$as_dir" && as_dir=.
26042   for ac_exec_ext in '' $ac_executable_extensions; do
26043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26044     ac_cv_prog_MD5SUM="`which md5sum`"
26045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26046     break 2
26047   fi
26048 done
26049 done
26050 IFS=$as_save_IFS
26051
26052 fi
26053 fi
26054 MD5SUM=$ac_cv_prog_MD5SUM
26055 if test -n "$MD5SUM"; then
26056   { echo "$as_me:$LINENO: result: $MD5SUM" >&5
26057 echo "${ECHO_T}$MD5SUM" >&6; }
26058 else
26059   { echo "$as_me:$LINENO: result: no" >&5
26060 echo "${ECHO_T}no" >&6; }
26061 fi
26062
26063
26064 if test x$MD5SUM != xno ; then
26065   build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
26066                  xargs cat| $MD5SUM | sed 's/ .*$//'`
26067 else
26068   build_version="no_md5sum_binary"
26069 fi
26070 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
26071
26072
26073 ###################
26074 ## Makes the output
26075 ##
26076
26077
26078 #
26079 #      examples/gras/chord/Makefile  examples/gras/chord/test_sg examples/gras/chord/test_rl
26080 #  src/amok/Makefile
26081
26082
26083   { echo "$as_me:$LINENO: result: " >&5
26084 echo "${ECHO_T}" >&6; }
26085   { echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
26086 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6; }
26087
26088
26089 # Core of the libraries
26090
26091 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
26092
26093
26094 # Tools being embeeded in gramine (stub generator)
26095 ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile tools/tesh/Makefile"
26096
26097
26098
26099 # GRAMINE_CUT_BEGIN
26100
26101 # Tools NOT being embeeded in gramine
26102 ac_config_files="$ac_config_files tools/graspe-slave"
26103
26104
26105 # Testsuite
26106
26107 ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
26108
26109
26110 # Documentation
26111 ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
26112
26113
26114 # Examples
26115
26116 #      examples/gras/p2p/Makefile
26117 #      examples/gras/p2p/chord/Makefile
26118 #      examples/gras/p2p/can/Makefile
26119
26120 ac_config_files="$ac_config_files examples/Makefile examples/msg/Makefile examples/msg/basic.tesh examples/msg/small_plat.tesh examples/msg/suspend.tesh examples/msg/flexml_bypass.tesh examples/simdag/Makefile examples/simdag/test_simdag examples/gras/Makefile examples/gras/ping/Makefile examples/gras/rpc/Makefile examples/gras/timer/Makefile examples/gras/chrono/Makefile examples/gras/mutual_exclusion/simple_token/Makefile examples/gras/mmrpc/Makefile examples/gras/pmm/Makefile examples/gras/all2all/Makefile examples/amok/Makefile examples/amok/bandwidth/Makefile examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl examples/amok/saturate/Makefile examples/amok/saturate/test_sg examples/amok/saturate/test_rl"
26121
26122
26123
26124 # GRAMINE_CUT_END
26125
26126 cat >confcache <<\_ACEOF
26127 # This file is a shell script that caches the results of configure
26128 # tests run on this system so they can be shared between configure
26129 # scripts and configure runs, see configure's option --config-cache.
26130 # It is not useful on other systems.  If it contains results you don't
26131 # want to keep, you may remove or edit it.
26132 #
26133 # config.status only pays attention to the cache file if you give it
26134 # the --recheck option to rerun configure.
26135 #
26136 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26137 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26138 # following values.
26139
26140 _ACEOF
26141
26142 # The following way of writing the cache mishandles newlines in values,
26143 # but we know of no workaround that is simple, portable, and efficient.
26144 # So, we kill variables containing newlines.
26145 # Ultrix sh set writes to stderr and can't be redirected directly,
26146 # and sets the high bit in the cache file unless we assign to the vars.
26147 (
26148   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26149     eval ac_val=\$$ac_var
26150     case $ac_val in #(
26151     *${as_nl}*)
26152       case $ac_var in #(
26153       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26154 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26155       esac
26156       case $ac_var in #(
26157       _ | IFS | as_nl) ;; #(
26158       *) $as_unset $ac_var ;;
26159       esac ;;
26160     esac
26161   done
26162
26163   (set) 2>&1 |
26164     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26165     *${as_nl}ac_space=\ *)
26166       # `set' does not quote correctly, so add quotes (double-quote
26167       # substitution turns \\\\ into \\, and sed turns \\ into \).
26168       sed -n \
26169         "s/'/'\\\\''/g;
26170           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26171       ;; #(
26172     *)
26173       # `set' quotes correctly as required by POSIX, so do not add quotes.
26174       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26175       ;;
26176     esac |
26177     sort
26178 ) |
26179   sed '
26180      /^ac_cv_env_/b end
26181      t clear
26182      :clear
26183      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26184      t end
26185      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26186      :end' >>confcache
26187 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26188   if test -w "$cache_file"; then
26189     test "x$cache_file" != "x/dev/null" &&
26190       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26191 echo "$as_me: updating cache $cache_file" >&6;}
26192     cat confcache >$cache_file
26193   else
26194     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26195 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26196   fi
26197 fi
26198 rm -f confcache
26199
26200 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26201 # Let make expand exec_prefix.
26202 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26203
26204 DEFS=-DHAVE_CONFIG_H
26205
26206 ac_libobjs=
26207 ac_ltlibobjs=
26208 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26209   # 1. Remove the extension, and $U if already installed.
26210   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26211   ac_i=`echo "$ac_i" | sed "$ac_script"`
26212   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26213   #    will be set to the directory where LIBOBJS objects are built.
26214   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26215   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26216 done
26217 LIBOBJS=$ac_libobjs
26218
26219 LTLIBOBJS=$ac_ltlibobjs
26220
26221
26222 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26223   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26224 Usually this means the macro was only invoked conditionally." >&5
26225 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26226 Usually this means the macro was only invoked conditionally." >&2;}
26227    { (exit 1); exit 1; }; }
26228 fi
26229 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26230   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26231 Usually this means the macro was only invoked conditionally." >&5
26232 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26233 Usually this means the macro was only invoked conditionally." >&2;}
26234    { (exit 1); exit 1; }; }
26235 fi
26236 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26237   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26238 Usually this means the macro was only invoked conditionally." >&5
26239 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26240 Usually this means the macro was only invoked conditionally." >&2;}
26241    { (exit 1); exit 1; }; }
26242 fi
26243 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26244   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26245 Usually this means the macro was only invoked conditionally." >&5
26246 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26247 Usually this means the macro was only invoked conditionally." >&2;}
26248    { (exit 1); exit 1; }; }
26249 fi
26250 if test -z "${GRAS_ARCH_32_BITS_TRUE}" && test -z "${GRAS_ARCH_32_BITS_FALSE}"; then
26251   { { echo "$as_me:$LINENO: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26252 Usually this means the macro was only invoked conditionally." >&5
26253 echo "$as_me: error: conditional \"GRAS_ARCH_32_BITS\" was never defined.
26254 Usually this means the macro was only invoked conditionally." >&2;}
26255    { (exit 1); exit 1; }; }
26256 fi
26257 if test -z "${USE_SIMIX_TRUE}" && test -z "${USE_SIMIX_FALSE}"; then
26258   { { echo "$as_me:$LINENO: error: conditional \"USE_SIMIX\" was never defined.
26259 Usually this means the macro was only invoked conditionally." >&5
26260 echo "$as_me: error: conditional \"USE_SIMIX\" was never defined.
26261 Usually this means the macro was only invoked conditionally." >&2;}
26262    { (exit 1); exit 1; }; }
26263 fi
26264 if test -z "${USE_GTNETS_TRUE}" && test -z "${USE_GTNETS_FALSE}"; then
26265   { { echo "$as_me:$LINENO: error: conditional \"USE_GTNETS\" was never defined.
26266 Usually this means the macro was only invoked conditionally." >&5
26267 echo "$as_me: error: conditional \"USE_GTNETS\" was never defined.
26268 Usually this means the macro was only invoked conditionally." >&2;}
26269    { (exit 1); exit 1; }; }
26270 fi
26271 if test -z "${HAVE_SDP_TRUE}" && test -z "${HAVE_SDP_FALSE}"; then
26272   { { echo "$as_me:$LINENO: error: conditional \"HAVE_SDP\" was never defined.
26273 Usually this means the macro was only invoked conditionally." >&5
26274 echo "$as_me: error: conditional \"HAVE_SDP\" was never defined.
26275 Usually this means the macro was only invoked conditionally." >&2;}
26276    { (exit 1); exit 1; }; }
26277 fi
26278 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
26279   { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
26280 Usually this means the macro was only invoked conditionally." >&5
26281 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
26282 Usually this means the macro was only invoked conditionally." >&2;}
26283    { (exit 1); exit 1; }; }
26284 fi
26285 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26286   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26287 Usually this means the macro was only invoked conditionally." >&5
26288 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26289 Usually this means the macro was only invoked conditionally." >&2;}
26290    { (exit 1); exit 1; }; }
26291 fi
26292 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
26293   { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
26294 Usually this means the macro was only invoked conditionally." >&5
26295 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
26296 Usually this means the macro was only invoked conditionally." >&2;}
26297    { (exit 1); exit 1; }; }
26298 fi
26299
26300 : ${CONFIG_STATUS=./config.status}
26301 ac_clean_files_save=$ac_clean_files
26302 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26303 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26304 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26305 cat >$CONFIG_STATUS <<_ACEOF
26306 #! $SHELL
26307 # Generated by $as_me.
26308 # Run this file to recreate the current configuration.
26309 # Compiler output produced by configure, useful for debugging
26310 # configure, is in config.log if it exists.
26311
26312 debug=false
26313 ac_cs_recheck=false
26314 ac_cs_silent=false
26315 SHELL=\${CONFIG_SHELL-$SHELL}
26316 _ACEOF
26317
26318 cat >>$CONFIG_STATUS <<\_ACEOF
26319 ## --------------------- ##
26320 ## M4sh Initialization.  ##
26321 ## --------------------- ##
26322
26323 # Be more Bourne compatible
26324 DUALCASE=1; export DUALCASE # for MKS sh
26325 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26326   emulate sh
26327   NULLCMD=:
26328   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26329   # is contrary to our usage.  Disable this feature.
26330   alias -g '${1+"$@"}'='"$@"'
26331   setopt NO_GLOB_SUBST
26332 else
26333   case `(set -o) 2>/dev/null` in
26334   *posix*) set -o posix ;;
26335 esac
26336
26337 fi
26338
26339
26340
26341
26342 # PATH needs CR
26343 # Avoid depending upon Character Ranges.
26344 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26345 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26346 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26347 as_cr_digits='0123456789'
26348 as_cr_alnum=$as_cr_Letters$as_cr_digits
26349
26350 # The user is always right.
26351 if test "${PATH_SEPARATOR+set}" != set; then
26352   echo "#! /bin/sh" >conf$$.sh
26353   echo  "exit 0"   >>conf$$.sh
26354   chmod +x conf$$.sh
26355   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26356     PATH_SEPARATOR=';'
26357   else
26358     PATH_SEPARATOR=:
26359   fi
26360   rm -f conf$$.sh
26361 fi
26362
26363 # Support unset when possible.
26364 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26365   as_unset=unset
26366 else
26367   as_unset=false
26368 fi
26369
26370
26371 # IFS
26372 # We need space, tab and new line, in precisely that order.  Quoting is
26373 # there to prevent editors from complaining about space-tab.
26374 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26375 # splitting by setting IFS to empty value.)
26376 as_nl='
26377 '
26378 IFS=" ""        $as_nl"
26379
26380 # Find who we are.  Look in the path if we contain no directory separator.
26381 case $0 in
26382   *[\\/]* ) as_myself=$0 ;;
26383   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26384 for as_dir in $PATH
26385 do
26386   IFS=$as_save_IFS
26387   test -z "$as_dir" && as_dir=.
26388   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26389 done
26390 IFS=$as_save_IFS
26391
26392      ;;
26393 esac
26394 # We did not find ourselves, most probably we were run as `sh COMMAND'
26395 # in which case we are not to be found in the path.
26396 if test "x$as_myself" = x; then
26397   as_myself=$0
26398 fi
26399 if test ! -f "$as_myself"; then
26400   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26401   { (exit 1); exit 1; }
26402 fi
26403
26404 # Work around bugs in pre-3.0 UWIN ksh.
26405 for as_var in ENV MAIL MAILPATH
26406 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26407 done
26408 PS1='$ '
26409 PS2='> '
26410 PS4='+ '
26411
26412 # NLS nuisances.
26413 for as_var in \
26414   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26415   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26416   LC_TELEPHONE LC_TIME
26417 do
26418   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26419     eval $as_var=C; export $as_var
26420   else
26421     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26422   fi
26423 done
26424
26425 # Required to use basename.
26426 if expr a : '\(a\)' >/dev/null 2>&1 &&
26427    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26428   as_expr=expr
26429 else
26430   as_expr=false
26431 fi
26432
26433 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26434   as_basename=basename
26435 else
26436   as_basename=false
26437 fi
26438
26439
26440 # Name of the executable.
26441 as_me=`$as_basename -- "$0" ||
26442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26443          X"$0" : 'X\(//\)$' \| \
26444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26445 echo X/"$0" |
26446     sed '/^.*\/\([^/][^/]*\)\/*$/{
26447             s//\1/
26448             q
26449           }
26450           /^X\/\(\/\/\)$/{
26451             s//\1/
26452             q
26453           }
26454           /^X\/\(\/\).*/{
26455             s//\1/
26456             q
26457           }
26458           s/.*/./; q'`
26459
26460 # CDPATH.
26461 $as_unset CDPATH
26462
26463
26464
26465   as_lineno_1=$LINENO
26466   as_lineno_2=$LINENO
26467   test "x$as_lineno_1" != "x$as_lineno_2" &&
26468   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26469
26470   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26471   # uniformly replaced by the line number.  The first 'sed' inserts a
26472   # line-number line after each line using $LINENO; the second 'sed'
26473   # does the real work.  The second script uses 'N' to pair each
26474   # line-number line with the line containing $LINENO, and appends
26475   # trailing '-' during substitution so that $LINENO is not a special
26476   # case at line end.
26477   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26478   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26479   # E. McMahon (1931-1989) for sed's syntax.  :-)
26480   sed -n '
26481     p
26482     /[$]LINENO/=
26483   ' <$as_myself |
26484     sed '
26485       s/[$]LINENO.*/&-/
26486       t lineno
26487       b
26488       :lineno
26489       N
26490       :loop
26491       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26492       t loop
26493       s/-\n.*//
26494     ' >$as_me.lineno &&
26495   chmod +x "$as_me.lineno" ||
26496     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26497    { (exit 1); exit 1; }; }
26498
26499   # Don't try to exec as it changes $[0], causing all sort of problems
26500   # (the dirname of $[0] is not the place where we might find the
26501   # original and so on.  Autoconf is especially sensitive to this).
26502   . "./$as_me.lineno"
26503   # Exit status is that of the last command.
26504   exit
26505 }
26506
26507
26508 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26509   as_dirname=dirname
26510 else
26511   as_dirname=false
26512 fi
26513
26514 ECHO_C= ECHO_N= ECHO_T=
26515 case `echo -n x` in
26516 -n*)
26517   case `echo 'x\c'` in
26518   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26519   *)   ECHO_C='\c';;
26520   esac;;
26521 *)
26522   ECHO_N='-n';;
26523 esac
26524
26525 if expr a : '\(a\)' >/dev/null 2>&1 &&
26526    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26527   as_expr=expr
26528 else
26529   as_expr=false
26530 fi
26531
26532 rm -f conf$$ conf$$.exe conf$$.file
26533 if test -d conf$$.dir; then
26534   rm -f conf$$.dir/conf$$.file
26535 else
26536   rm -f conf$$.dir
26537   mkdir conf$$.dir
26538 fi
26539 echo >conf$$.file
26540 if ln -s conf$$.file conf$$ 2>/dev/null; then
26541   as_ln_s='ln -s'
26542   # ... but there are two gotchas:
26543   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26544   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26545   # In both cases, we have to default to `cp -p'.
26546   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26547     as_ln_s='cp -p'
26548 elif ln conf$$.file conf$$ 2>/dev/null; then
26549   as_ln_s=ln
26550 else
26551   as_ln_s='cp -p'
26552 fi
26553 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26554 rmdir conf$$.dir 2>/dev/null
26555
26556 if mkdir -p . 2>/dev/null; then
26557   as_mkdir_p=:
26558 else
26559   test -d ./-p && rmdir ./-p
26560   as_mkdir_p=false
26561 fi
26562
26563 if test -x / >/dev/null 2>&1; then
26564   as_test_x='test -x'
26565 else
26566   if ls -dL / >/dev/null 2>&1; then
26567     as_ls_L_option=L
26568   else
26569     as_ls_L_option=
26570   fi
26571   as_test_x='
26572     eval sh -c '\''
26573       if test -d "$1"; then
26574         test -d "$1/.";
26575       else
26576         case $1 in
26577         -*)set "./$1";;
26578         esac;
26579         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26580         ???[sx]*):;;*)false;;esac;fi
26581     '\'' sh
26582   '
26583 fi
26584 as_executable_p=$as_test_x
26585
26586 # Sed expression to map a string onto a valid CPP name.
26587 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26588
26589 # Sed expression to map a string onto a valid variable name.
26590 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26591
26592
26593 exec 6>&1
26594
26595 # Save the log message, to keep $[0] and so on meaningful, and to
26596 # report actual input values of CONFIG_FILES etc. instead of their
26597 # values after options handling.
26598 ac_log="
26599 This file was extended by simgrid $as_me 3.3-cvs, which was
26600 generated by GNU Autoconf 2.61.  Invocation command line was
26601
26602   CONFIG_FILES    = $CONFIG_FILES
26603   CONFIG_HEADERS  = $CONFIG_HEADERS
26604   CONFIG_LINKS    = $CONFIG_LINKS
26605   CONFIG_COMMANDS = $CONFIG_COMMANDS
26606   $ $0 $@
26607
26608 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26609 "
26610
26611 _ACEOF
26612
26613 cat >>$CONFIG_STATUS <<_ACEOF
26614 # Files that config.status was made for.
26615 config_files="$ac_config_files"
26616 config_headers="$ac_config_headers"
26617 config_commands="$ac_config_commands"
26618
26619 _ACEOF
26620
26621 cat >>$CONFIG_STATUS <<\_ACEOF
26622 ac_cs_usage="\
26623 \`$as_me' instantiates files from templates according to the
26624 current configuration.
26625
26626 Usage: $0 [OPTIONS] [FILE]...
26627
26628   -h, --help       print this help, then exit
26629   -V, --version    print version number and configuration settings, then exit
26630   -q, --quiet      do not print progress messages
26631   -d, --debug      don't remove temporary files
26632       --recheck    update $as_me by reconfiguring in the same conditions
26633   --file=FILE[:TEMPLATE]
26634                    instantiate the configuration file FILE
26635   --header=FILE[:TEMPLATE]
26636                    instantiate the configuration header FILE
26637
26638 Configuration files:
26639 $config_files
26640
26641 Configuration headers:
26642 $config_headers
26643
26644 Configuration commands:
26645 $config_commands
26646
26647 Report bugs to <bug-autoconf@gnu.org>."
26648
26649 _ACEOF
26650 cat >>$CONFIG_STATUS <<_ACEOF
26651 ac_cs_version="\\
26652 simgrid config.status 3.3-cvs
26653 configured by $0, generated by GNU Autoconf 2.61,
26654   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26655
26656 Copyright (C) 2006 Free Software Foundation, Inc.
26657 This config.status script is free software; the Free Software Foundation
26658 gives unlimited permission to copy, distribute and modify it."
26659
26660 ac_pwd='$ac_pwd'
26661 srcdir='$srcdir'
26662 INSTALL='$INSTALL'
26663 _ACEOF
26664
26665 cat >>$CONFIG_STATUS <<\_ACEOF
26666 # If no file are specified by the user, then we need to provide default
26667 # value.  By we need to know if files were specified by the user.
26668 ac_need_defaults=:
26669 while test $# != 0
26670 do
26671   case $1 in
26672   --*=*)
26673     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26674     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26675     ac_shift=:
26676     ;;
26677   *)
26678     ac_option=$1
26679     ac_optarg=$2
26680     ac_shift=shift
26681     ;;
26682   esac
26683
26684   case $ac_option in
26685   # Handling of the options.
26686   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26687     ac_cs_recheck=: ;;
26688   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26689     echo "$ac_cs_version"; exit ;;
26690   --debug | --debu | --deb | --de | --d | -d )
26691     debug=: ;;
26692   --file | --fil | --fi | --f )
26693     $ac_shift
26694     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26695     ac_need_defaults=false;;
26696   --header | --heade | --head | --hea )
26697     $ac_shift
26698     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26699     ac_need_defaults=false;;
26700   --he | --h)
26701     # Conflict between --help and --header
26702     { echo "$as_me: error: ambiguous option: $1
26703 Try \`$0 --help' for more information." >&2
26704    { (exit 1); exit 1; }; };;
26705   --help | --hel | -h )
26706     echo "$ac_cs_usage"; exit ;;
26707   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26708   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26709     ac_cs_silent=: ;;
26710
26711   # This is an error.
26712   -*) { echo "$as_me: error: unrecognized option: $1
26713 Try \`$0 --help' for more information." >&2
26714    { (exit 1); exit 1; }; } ;;
26715
26716   *) ac_config_targets="$ac_config_targets $1"
26717      ac_need_defaults=false ;;
26718
26719   esac
26720   shift
26721 done
26722
26723 ac_configure_extra_args=
26724
26725 if $ac_cs_silent; then
26726   exec 6>/dev/null
26727   ac_configure_extra_args="$ac_configure_extra_args --silent"
26728 fi
26729
26730 _ACEOF
26731 cat >>$CONFIG_STATUS <<_ACEOF
26732 if \$ac_cs_recheck; then
26733   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26734   CONFIG_SHELL=$SHELL
26735   export CONFIG_SHELL
26736   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26737 fi
26738
26739 _ACEOF
26740 cat >>$CONFIG_STATUS <<\_ACEOF
26741 exec 5>>config.log
26742 {
26743   echo
26744   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26745 ## Running $as_me. ##
26746 _ASBOX
26747   echo "$ac_log"
26748 } >&5
26749
26750 _ACEOF
26751 cat >>$CONFIG_STATUS <<_ACEOF
26752 #
26753 # INIT-COMMANDS
26754 #
26755 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26756
26757 _ACEOF
26758
26759 cat >>$CONFIG_STATUS <<\_ACEOF
26760
26761 # Handling of arguments.
26762 for ac_config_target in $ac_config_targets
26763 do
26764   case $ac_config_target in
26765     "src/gras_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
26766     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26767     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26768     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26769     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26770     "src/ucontext_stack.h") CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
26771     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
26772     "tools/gras/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
26773     "tools/tesh/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tesh/Makefile" ;;
26774     "tools/graspe-slave") CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
26775     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26776     "testsuite/run_tests") CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
26777     "testsuite/gras/trp_tcp_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
26778     "testsuite/gras/trp_file_usage") CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
26779     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26780     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
26781     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
26782     "examples/msg/Makefile") CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
26783     "examples/msg/basic.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/basic.tesh" ;;
26784     "examples/msg/small_plat.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/small_plat.tesh" ;;
26785     "examples/msg/suspend.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/suspend.tesh" ;;
26786     "examples/msg/flexml_bypass.tesh") CONFIG_FILES="$CONFIG_FILES examples/msg/flexml_bypass.tesh" ;;
26787     "examples/simdag/Makefile") CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
26788     "examples/simdag/test_simdag") CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
26789     "examples/gras/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
26790     "examples/gras/ping/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
26791     "examples/gras/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
26792     "examples/gras/timer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
26793     "examples/gras/chrono/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
26794     "examples/gras/mutual_exclusion/simple_token/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
26795     "examples/gras/mmrpc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
26796     "examples/gras/pmm/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
26797     "examples/gras/all2all/Makefile") CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
26798     "examples/amok/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
26799     "examples/amok/bandwidth/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
26800     "examples/amok/bandwidth/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
26801     "examples/amok/bandwidth/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
26802     "examples/amok/saturate/Makefile") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
26803     "examples/amok/saturate/test_sg") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
26804     "examples/amok/saturate/test_rl") CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
26805
26806   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26807 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26808    { (exit 1); exit 1; }; };;
26809   esac
26810 done
26811
26812
26813 # If the user did not use the arguments to specify the items to instantiate,
26814 # then the envvar interface is used.  Set only those that are not.
26815 # We use the long form for the default assignment because of an extremely
26816 # bizarre bug on SunOS 4.1.3.
26817 if $ac_need_defaults; then
26818   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26819   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26820   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26821 fi
26822
26823 # Have a temporary directory for convenience.  Make it in the build tree
26824 # simply because there is no reason against having it here, and in addition,
26825 # creating and moving files from /tmp can sometimes cause problems.
26826 # Hook for its removal unless debugging.
26827 # Note that there is a small window in which the directory will not be cleaned:
26828 # after its creation but before its name has been assigned to `$tmp'.
26829 $debug ||
26830 {
26831   tmp=
26832   trap 'exit_status=$?
26833   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26834 ' 0
26835   trap '{ (exit 1); exit 1; }' 1 2 13 15
26836 }
26837 # Create a (secure) tmp directory for tmp files.
26838
26839 {
26840   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26841   test -n "$tmp" && test -d "$tmp"
26842 }  ||
26843 {
26844   tmp=./conf$$-$RANDOM
26845   (umask 077 && mkdir "$tmp")
26846 } ||
26847 {
26848    echo "$me: cannot create a temporary directory in ." >&2
26849    { (exit 1); exit 1; }
26850 }
26851
26852 #
26853 # Set up the sed scripts for CONFIG_FILES section.
26854 #
26855
26856 # No need to generate the scripts if there are no CONFIG_FILES.
26857 # This happens for instance when ./config.status config.h
26858 if test -n "$CONFIG_FILES"; then
26859
26860 _ACEOF
26861
26862
26863
26864 ac_delim='%!_!# '
26865 for ac_last_try in false false false false false :; do
26866   cat >conf$$subs.sed <<_ACEOF
26867 SHELL!$SHELL$ac_delim
26868 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26869 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26870 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26871 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26872 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26873 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26874 exec_prefix!$exec_prefix$ac_delim
26875 prefix!$prefix$ac_delim
26876 program_transform_name!$program_transform_name$ac_delim
26877 bindir!$bindir$ac_delim
26878 sbindir!$sbindir$ac_delim
26879 libexecdir!$libexecdir$ac_delim
26880 datarootdir!$datarootdir$ac_delim
26881 datadir!$datadir$ac_delim
26882 sysconfdir!$sysconfdir$ac_delim
26883 sharedstatedir!$sharedstatedir$ac_delim
26884 localstatedir!$localstatedir$ac_delim
26885 includedir!$includedir$ac_delim
26886 oldincludedir!$oldincludedir$ac_delim
26887 docdir!$docdir$ac_delim
26888 infodir!$infodir$ac_delim
26889 htmldir!$htmldir$ac_delim
26890 dvidir!$dvidir$ac_delim
26891 pdfdir!$pdfdir$ac_delim
26892 psdir!$psdir$ac_delim
26893 libdir!$libdir$ac_delim
26894 localedir!$localedir$ac_delim
26895 mandir!$mandir$ac_delim
26896 DEFS!$DEFS$ac_delim
26897 ECHO_C!$ECHO_C$ac_delim
26898 ECHO_N!$ECHO_N$ac_delim
26899 ECHO_T!$ECHO_T$ac_delim
26900 LIBS!$LIBS$ac_delim
26901 build_alias!$build_alias$ac_delim
26902 host_alias!$host_alias$ac_delim
26903 target_alias!$target_alias$ac_delim
26904 build!$build$ac_delim
26905 build_cpu!$build_cpu$ac_delim
26906 build_vendor!$build_vendor$ac_delim
26907 build_os!$build_os$ac_delim
26908 host!$host$ac_delim
26909 host_cpu!$host_cpu$ac_delim
26910 host_vendor!$host_vendor$ac_delim
26911 host_os!$host_os$ac_delim
26912 target!$target$ac_delim
26913 target_cpu!$target_cpu$ac_delim
26914 target_vendor!$target_vendor$ac_delim
26915 target_os!$target_os$ac_delim
26916 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26917 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26918 INSTALL_DATA!$INSTALL_DATA$ac_delim
26919 CYGPATH_W!$CYGPATH_W$ac_delim
26920 PACKAGE!$PACKAGE$ac_delim
26921 VERSION!$VERSION$ac_delim
26922 ACLOCAL!$ACLOCAL$ac_delim
26923 AUTOCONF!$AUTOCONF$ac_delim
26924 AUTOMAKE!$AUTOMAKE$ac_delim
26925 AUTOHEADER!$AUTOHEADER$ac_delim
26926 MAKEINFO!$MAKEINFO$ac_delim
26927 install_sh!$install_sh$ac_delim
26928 STRIP!$STRIP$ac_delim
26929 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26930 mkdir_p!$mkdir_p$ac_delim
26931 AWK!$AWK$ac_delim
26932 SET_MAKE!$SET_MAKE$ac_delim
26933 am__leading_dot!$am__leading_dot$ac_delim
26934 AMTAR!$AMTAR$ac_delim
26935 am__tar!$am__tar$ac_delim
26936 am__untar!$am__untar$ac_delim
26937 CC!$CC$ac_delim
26938 CFLAGS!$CFLAGS$ac_delim
26939 LDFLAGS!$LDFLAGS$ac_delim
26940 CPPFLAGS!$CPPFLAGS$ac_delim
26941 ac_ct_CC!$ac_ct_CC$ac_delim
26942 EXEEXT!$EXEEXT$ac_delim
26943 OBJEXT!$OBJEXT$ac_delim
26944 DEPDIR!$DEPDIR$ac_delim
26945 am__include!$am__include$ac_delim
26946 am__quote!$am__quote$ac_delim
26947 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26948 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26949 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26950 CCDEPMODE!$CCDEPMODE$ac_delim
26951 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26952 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26953 GREP!$GREP$ac_delim
26954 EGREP!$EGREP$ac_delim
26955 LN_S!$LN_S$ac_delim
26956 ECHO!$ECHO$ac_delim
26957 AR!$AR$ac_delim
26958 RANLIB!$RANLIB$ac_delim
26959 DLLTOOL!$DLLTOOL$ac_delim
26960 AS!$AS$ac_delim
26961 OBJDUMP!$OBJDUMP$ac_delim
26962 CPP!$CPP$ac_delim
26963 CXX!$CXX$ac_delim
26964 _ACEOF
26965
26966   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26967     break
26968   elif $ac_last_try; then
26969     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26970 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26971    { (exit 1); exit 1; }; }
26972   else
26973     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26974   fi
26975 done
26976
26977 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26978 if test -n "$ac_eof"; then
26979   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26980   ac_eof=`expr $ac_eof + 1`
26981 fi
26982
26983 cat >>$CONFIG_STATUS <<_ACEOF
26984 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26985 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26986 _ACEOF
26987 sed '
26988 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26989 s/^/s,@/; s/!/@,|#_!!_#|/
26990 :n
26991 t n
26992 s/'"$ac_delim"'$/,g/; t
26993 s/$/\\/; p
26994 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26995 ' >>$CONFIG_STATUS <conf$$subs.sed
26996 rm -f conf$$subs.sed
26997 cat >>$CONFIG_STATUS <<_ACEOF
26998 CEOF$ac_eof
26999 _ACEOF
27000
27001
27002 ac_delim='%!_!# '
27003 for ac_last_try in false false false false false :; do
27004   cat >conf$$subs.sed <<_ACEOF
27005 CXXFLAGS!$CXXFLAGS$ac_delim
27006 ac_ct_CXX!$ac_ct_CXX$ac_delim
27007 CXXDEPMODE!$CXXDEPMODE$ac_delim
27008 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27009 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27010 CXXCPP!$CXXCPP$ac_delim
27011 LIBTOOL!$LIBTOOL$ac_delim
27012 LIBOBJS!$LIBOBJS$ac_delim
27013 GRAS_ARCH_32_BITS_TRUE!$GRAS_ARCH_32_BITS_TRUE$ac_delim
27014 GRAS_ARCH_32_BITS_FALSE!$GRAS_ARCH_32_BITS_FALSE$ac_delim
27015 PTH_STACK_GROWTH!$PTH_STACK_GROWTH$ac_delim
27016 pth_skaddr_makecontext!$pth_skaddr_makecontext$ac_delim
27017 pth_sksize_makecontext!$pth_sksize_makecontext$ac_delim
27018 USE_SIMIX_TRUE!$USE_SIMIX_TRUE$ac_delim
27019 USE_SIMIX_FALSE!$USE_SIMIX_FALSE$ac_delim
27020 GTNETS_CFLAGS!$GTNETS_CFLAGS$ac_delim
27021 GTNETS_LDFLAGS!$GTNETS_LDFLAGS$ac_delim
27022 USE_GTNETS_TRUE!$USE_GTNETS_TRUE$ac_delim
27023 USE_GTNETS_FALSE!$USE_GTNETS_FALSE$ac_delim
27024 HAVE_SDP_TRUE!$HAVE_SDP_TRUE$ac_delim
27025 HAVE_SDP_FALSE!$HAVE_SDP_FALSE$ac_delim
27026 SIMGRID_DEP!$SIMGRID_DEP$ac_delim
27027 AM_CFLAGS!$AM_CFLAGS$ac_delim
27028 GRAS_DEP!$GRAS_DEP$ac_delim
27029 GRAMINE_MODE_TRUE!$GRAMINE_MODE_TRUE$ac_delim
27030 GRAMINE_MODE_FALSE!$GRAMINE_MODE_FALSE$ac_delim
27031 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
27032 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
27033 MAINT!$MAINT$ac_delim
27034 LD_DYNAMIC_FLAGS!$LD_DYNAMIC_FLAGS$ac_delim
27035 abs_builddir!$abs_builddir$ac_delim
27036 abs_srcdir!$abs_srcdir$ac_delim
27037 abs_top_builddir!$abs_top_builddir$ac_delim
27038 abs_top_srcdir!$abs_top_srcdir$ac_delim
27039 BASH!$BASH$ac_delim
27040 WARNING!$WARNING$ac_delim
27041 LEX!$LEX$ac_delim
27042 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
27043 LEXLIB!$LEXLIB$ac_delim
27044 FLEXML!$FLEXML$ac_delim
27045 HAVE_FLEXML_TRUE!$HAVE_FLEXML_TRUE$ac_delim
27046 HAVE_FLEXML_FALSE!$HAVE_FLEXML_FALSE$ac_delim
27047 DOXYGEN!$DOXYGEN$ac_delim
27048 ADDR2LINE!$ADDR2LINE$ac_delim
27049 ac_configure_args!$ac_configure_args$ac_delim
27050 MD5SUM!$MD5SUM$ac_delim
27051 build_id!$build_id$ac_delim
27052 LTLIBOBJS!$LTLIBOBJS$ac_delim
27053 _ACEOF
27054
27055   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
27056     break
27057   elif $ac_last_try; then
27058     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27059 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27060    { (exit 1); exit 1; }; }
27061   else
27062     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27063   fi
27064 done
27065
27066 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27067 if test -n "$ac_eof"; then
27068   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27069   ac_eof=`expr $ac_eof + 1`
27070 fi
27071
27072 cat >>$CONFIG_STATUS <<_ACEOF
27073 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27075 _ACEOF
27076 sed '
27077 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27078 s/^/s,@/; s/!/@,|#_!!_#|/
27079 :n
27080 t n
27081 s/'"$ac_delim"'$/,g/; t
27082 s/$/\\/; p
27083 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27084 ' >>$CONFIG_STATUS <conf$$subs.sed
27085 rm -f conf$$subs.sed
27086 cat >>$CONFIG_STATUS <<_ACEOF
27087 :end
27088 s/|#_!!_#|//g
27089 CEOF$ac_eof
27090 _ACEOF
27091
27092
27093 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27094 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27095 # trailing colons and then remove the whole line if VPATH becomes empty
27096 # (actually we leave an empty line to preserve line numbers).
27097 if test "x$srcdir" = x.; then
27098   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27099 s/:*\$(srcdir):*/:/
27100 s/:*\${srcdir}:*/:/
27101 s/:*@srcdir@:*/:/
27102 s/^\([^=]*=[     ]*\):*/\1/
27103 s/:*$//
27104 s/^[^=]*=[       ]*$//
27105 }'
27106 fi
27107
27108 cat >>$CONFIG_STATUS <<\_ACEOF
27109 fi # test -n "$CONFIG_FILES"
27110
27111
27112 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
27113 do
27114   case $ac_tag in
27115   :[FHLC]) ac_mode=$ac_tag; continue;;
27116   esac
27117   case $ac_mode$ac_tag in
27118   :[FHL]*:*);;
27119   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27120 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27121    { (exit 1); exit 1; }; };;
27122   :[FH]-) ac_tag=-:-;;
27123   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27124   esac
27125   ac_save_IFS=$IFS
27126   IFS=:
27127   set x $ac_tag
27128   IFS=$ac_save_IFS
27129   shift
27130   ac_file=$1
27131   shift
27132
27133   case $ac_mode in
27134   :L) ac_source=$1;;
27135   :[FH])
27136     ac_file_inputs=
27137     for ac_f
27138     do
27139       case $ac_f in
27140       -) ac_f="$tmp/stdin";;
27141       *) # Look for the file first in the build tree, then in the source tree
27142          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27143          # because $ac_f cannot contain `:'.
27144          test -f "$ac_f" ||
27145            case $ac_f in
27146            [\\/$]*) false;;
27147            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27148            esac ||
27149            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27150 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27151    { (exit 1); exit 1; }; };;
27152       esac
27153       ac_file_inputs="$ac_file_inputs $ac_f"
27154     done
27155
27156     # Let's still pretend it is `configure' which instantiates (i.e., don't
27157     # use $as_me), people would be surprised to read:
27158     #    /* config.h.  Generated by config.status.  */
27159     configure_input="Generated from "`IFS=:
27160           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27161     if test x"$ac_file" != x-; then
27162       configure_input="$ac_file.  $configure_input"
27163       { echo "$as_me:$LINENO: creating $ac_file" >&5
27164 echo "$as_me: creating $ac_file" >&6;}
27165     fi
27166
27167     case $ac_tag in
27168     *:-:* | *:-) cat >"$tmp/stdin";;
27169     esac
27170     ;;
27171   esac
27172
27173   ac_dir=`$as_dirname -- "$ac_file" ||
27174 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27175          X"$ac_file" : 'X\(//\)[^/]' \| \
27176          X"$ac_file" : 'X\(//\)$' \| \
27177          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27178 echo X"$ac_file" |
27179     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27180             s//\1/
27181             q
27182           }
27183           /^X\(\/\/\)[^/].*/{
27184             s//\1/
27185             q
27186           }
27187           /^X\(\/\/\)$/{
27188             s//\1/
27189             q
27190           }
27191           /^X\(\/\).*/{
27192             s//\1/
27193             q
27194           }
27195           s/.*/./; q'`
27196   { as_dir="$ac_dir"
27197   case $as_dir in #(
27198   -*) as_dir=./$as_dir;;
27199   esac
27200   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27201     as_dirs=
27202     while :; do
27203       case $as_dir in #(
27204       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27205       *) as_qdir=$as_dir;;
27206       esac
27207       as_dirs="'$as_qdir' $as_dirs"
27208       as_dir=`$as_dirname -- "$as_dir" ||
27209 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27210          X"$as_dir" : 'X\(//\)[^/]' \| \
27211          X"$as_dir" : 'X\(//\)$' \| \
27212          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27213 echo X"$as_dir" |
27214     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27215             s//\1/
27216             q
27217           }
27218           /^X\(\/\/\)[^/].*/{
27219             s//\1/
27220             q
27221           }
27222           /^X\(\/\/\)$/{
27223             s//\1/
27224             q
27225           }
27226           /^X\(\/\).*/{
27227             s//\1/
27228             q
27229           }
27230           s/.*/./; q'`
27231       test -d "$as_dir" && break
27232     done
27233     test -z "$as_dirs" || eval "mkdir $as_dirs"
27234   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27235 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27236    { (exit 1); exit 1; }; }; }
27237   ac_builddir=.
27238
27239 case "$ac_dir" in
27240 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27241 *)
27242   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27243   # A ".." for each directory in $ac_dir_suffix.
27244   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27245   case $ac_top_builddir_sub in
27246   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27247   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27248   esac ;;
27249 esac
27250 ac_abs_top_builddir=$ac_pwd
27251 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27252 # for backward compatibility:
27253 ac_top_builddir=$ac_top_build_prefix
27254
27255 case $srcdir in
27256   .)  # We are building in place.
27257     ac_srcdir=.
27258     ac_top_srcdir=$ac_top_builddir_sub
27259     ac_abs_top_srcdir=$ac_pwd ;;
27260   [\\/]* | ?:[\\/]* )  # Absolute name.
27261     ac_srcdir=$srcdir$ac_dir_suffix;
27262     ac_top_srcdir=$srcdir
27263     ac_abs_top_srcdir=$srcdir ;;
27264   *) # Relative name.
27265     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27266     ac_top_srcdir=$ac_top_build_prefix$srcdir
27267     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27268 esac
27269 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27270
27271
27272   case $ac_mode in
27273   :F)
27274   #
27275   # CONFIG_FILE
27276   #
27277
27278   case $INSTALL in
27279   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27280   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27281   esac
27282 _ACEOF
27283
27284 cat >>$CONFIG_STATUS <<\_ACEOF
27285 # If the template does not know about datarootdir, expand it.
27286 # FIXME: This hack should be removed a few years after 2.60.
27287 ac_datarootdir_hack=; ac_datarootdir_seen=
27288
27289 case `sed -n '/datarootdir/ {
27290   p
27291   q
27292 }
27293 /@datadir@/p
27294 /@docdir@/p
27295 /@infodir@/p
27296 /@localedir@/p
27297 /@mandir@/p
27298 ' $ac_file_inputs` in
27299 *datarootdir*) ac_datarootdir_seen=yes;;
27300 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27301   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27302 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27303 _ACEOF
27304 cat >>$CONFIG_STATUS <<_ACEOF
27305   ac_datarootdir_hack='
27306   s&@datadir@&$datadir&g
27307   s&@docdir@&$docdir&g
27308   s&@infodir@&$infodir&g
27309   s&@localedir@&$localedir&g
27310   s&@mandir@&$mandir&g
27311     s&\\\${datarootdir}&$datarootdir&g' ;;
27312 esac
27313 _ACEOF
27314
27315 # Neutralize VPATH when `$srcdir' = `.'.
27316 # Shell code in configure.ac might set extrasub.
27317 # FIXME: do we really want to maintain this feature?
27318 cat >>$CONFIG_STATUS <<_ACEOF
27319   sed "$ac_vpsub
27320 $extrasub
27321 _ACEOF
27322 cat >>$CONFIG_STATUS <<\_ACEOF
27323 :t
27324 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27325 s&@configure_input@&$configure_input&;t t
27326 s&@top_builddir@&$ac_top_builddir_sub&;t t
27327 s&@srcdir@&$ac_srcdir&;t t
27328 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27329 s&@top_srcdir@&$ac_top_srcdir&;t t
27330 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27331 s&@builddir@&$ac_builddir&;t t
27332 s&@abs_builddir@&$ac_abs_builddir&;t t
27333 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27334 s&@INSTALL@&$ac_INSTALL&;t t
27335 $ac_datarootdir_hack
27336 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27337
27338 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27339   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27340   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27341   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27342 which seems to be undefined.  Please make sure it is defined." >&5
27343 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27344 which seems to be undefined.  Please make sure it is defined." >&2;}
27345
27346   rm -f "$tmp/stdin"
27347   case $ac_file in
27348   -) cat "$tmp/out"; rm -f "$tmp/out";;
27349   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27350   esac
27351  ;;
27352   :H)
27353   #
27354   # CONFIG_HEADER
27355   #
27356 _ACEOF
27357
27358 # Transform confdefs.h into a sed script `conftest.defines', that
27359 # substitutes the proper values into config.h.in to produce config.h.
27360 rm -f conftest.defines conftest.tail
27361 # First, append a space to every undef/define line, to ease matching.
27362 echo 's/$/ /' >conftest.defines
27363 # Then, protect against being on the right side of a sed subst, or in
27364 # an unquoted here document, in config.status.  If some macros were
27365 # called several times there might be several #defines for the same
27366 # symbol, which is useless.  But do not sort them, since the last
27367 # AC_DEFINE must be honored.
27368 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27369 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27370 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27371 # PARAMS is the parameter list in the macro definition--in most cases, it's
27372 # just an empty string.
27373 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27374 ac_dB='\\)[      (].*,\\1define\\2'
27375 ac_dC=' '
27376 ac_dD=' ,'
27377
27378 uniq confdefs.h |
27379   sed -n '
27380         t rset
27381         :rset
27382         s/^[     ]*#[    ]*define[       ][      ]*//
27383         t ok
27384         d
27385         :ok
27386         s/[\\&,]/\\&/g
27387         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27388         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27389   ' >>conftest.defines
27390
27391 # Remove the space that was appended to ease matching.
27392 # Then replace #undef with comments.  This is necessary, for
27393 # example, in the case of _POSIX_SOURCE, which is predefined and required
27394 # on some systems where configure will not decide to define it.
27395 # (The regexp can be short, since the line contains either #define or #undef.)
27396 echo 's/ $//
27397 s,^[     #]*u.*,/* & */,' >>conftest.defines
27398
27399 # Break up conftest.defines:
27400 ac_max_sed_lines=50
27401
27402 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27403 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27404 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27405 # et cetera.
27406 ac_in='$ac_file_inputs'
27407 ac_out='"$tmp/out1"'
27408 ac_nxt='"$tmp/out2"'
27409
27410 while :
27411 do
27412   # Write a here document:
27413     cat >>$CONFIG_STATUS <<_ACEOF
27414     # First, check the format of the line:
27415     cat >"\$tmp/defines.sed" <<\\CEOF
27416 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
27417 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
27418 b
27419 :def
27420 _ACEOF
27421   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27422   echo 'CEOF
27423     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27424   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27425   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27426   grep . conftest.tail >/dev/null || break
27427   rm -f conftest.defines
27428   mv conftest.tail conftest.defines
27429 done
27430 rm -f conftest.defines conftest.tail
27431
27432 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27433 cat >>$CONFIG_STATUS <<\_ACEOF
27434   if test x"$ac_file" != x-; then
27435     echo "/* $configure_input  */" >"$tmp/config.h"
27436     cat "$ac_result" >>"$tmp/config.h"
27437     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27438       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27439 echo "$as_me: $ac_file is unchanged" >&6;}
27440     else
27441       rm -f $ac_file
27442       mv "$tmp/config.h" $ac_file
27443     fi
27444   else
27445     echo "/* $configure_input  */"
27446     cat "$ac_result"
27447   fi
27448   rm -f "$tmp/out12"
27449 # Compute $ac_file's index in $config_headers.
27450 _am_stamp_count=1
27451 for _am_header in $config_headers :; do
27452   case $_am_header in
27453     $ac_file | $ac_file:* )
27454       break ;;
27455     * )
27456       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27457   esac
27458 done
27459 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
27460 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27461          X$ac_file : 'X\(//\)[^/]' \| \
27462          X$ac_file : 'X\(//\)$' \| \
27463          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
27464 echo X$ac_file |
27465     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27466             s//\1/
27467             q
27468           }
27469           /^X\(\/\/\)[^/].*/{
27470             s//\1/
27471             q
27472           }
27473           /^X\(\/\/\)$/{
27474             s//\1/
27475             q
27476           }
27477           /^X\(\/\).*/{
27478             s//\1/
27479             q
27480           }
27481           s/.*/./; q'`/stamp-h$_am_stamp_count
27482  ;;
27483
27484   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27485 echo "$as_me: executing $ac_file commands" >&6;}
27486  ;;
27487   esac
27488
27489
27490   case $ac_file$ac_mode in
27491     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27492   # Strip MF so we end up with the name of the file.
27493   mf=`echo "$mf" | sed -e 's/:.*$//'`
27494   # Check whether this is an Automake generated Makefile or not.
27495   # We used to match only the files named `Makefile.in', but
27496   # some people rename them; so instead we look at the file content.
27497   # Grep'ing the first line is not enough: some people post-process
27498   # each Makefile.in and add a new line on top of each file to say so.
27499   # So let's grep whole file.
27500   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27501     dirpart=`$as_dirname -- "$mf" ||
27502 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27503          X"$mf" : 'X\(//\)[^/]' \| \
27504          X"$mf" : 'X\(//\)$' \| \
27505          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27506 echo X"$mf" |
27507     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27508             s//\1/
27509             q
27510           }
27511           /^X\(\/\/\)[^/].*/{
27512             s//\1/
27513             q
27514           }
27515           /^X\(\/\/\)$/{
27516             s//\1/
27517             q
27518           }
27519           /^X\(\/\).*/{
27520             s//\1/
27521             q
27522           }
27523           s/.*/./; q'`
27524   else
27525     continue
27526   fi
27527   # Extract the definition of DEPDIR, am__include, and am__quote
27528   # from the Makefile without running `make'.
27529   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27530   test -z "$DEPDIR" && continue
27531   am__include=`sed -n 's/^am__include = //p' < "$mf"`
27532   test -z "am__include" && continue
27533   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27534   # When using ansi2knr, U may be empty or an underscore; expand it
27535   U=`sed -n 's/^U = //p' < "$mf"`
27536   # Find all dependency output files, they are included files with
27537   # $(DEPDIR) in their names.  We invoke sed twice because it is the
27538   # simplest approach to changing $(DEPDIR) to its actual value in the
27539   # expansion.
27540   for file in `sed -n "
27541     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27542        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27543     # Make sure the directory exists.
27544     test -f "$dirpart/$file" && continue
27545     fdir=`$as_dirname -- "$file" ||
27546 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27547          X"$file" : 'X\(//\)[^/]' \| \
27548          X"$file" : 'X\(//\)$' \| \
27549          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27550 echo X"$file" |
27551     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27552             s//\1/
27553             q
27554           }
27555           /^X\(\/\/\)[^/].*/{
27556             s//\1/
27557             q
27558           }
27559           /^X\(\/\/\)$/{
27560             s//\1/
27561             q
27562           }
27563           /^X\(\/\).*/{
27564             s//\1/
27565             q
27566           }
27567           s/.*/./; q'`
27568     { as_dir=$dirpart/$fdir
27569   case $as_dir in #(
27570   -*) as_dir=./$as_dir;;
27571   esac
27572   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27573     as_dirs=
27574     while :; do
27575       case $as_dir in #(
27576       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27577       *) as_qdir=$as_dir;;
27578       esac
27579       as_dirs="'$as_qdir' $as_dirs"
27580       as_dir=`$as_dirname -- "$as_dir" ||
27581 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27582          X"$as_dir" : 'X\(//\)[^/]' \| \
27583          X"$as_dir" : 'X\(//\)$' \| \
27584          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27585 echo X"$as_dir" |
27586     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27587             s//\1/
27588             q
27589           }
27590           /^X\(\/\/\)[^/].*/{
27591             s//\1/
27592             q
27593           }
27594           /^X\(\/\/\)$/{
27595             s//\1/
27596             q
27597           }
27598           /^X\(\/\).*/{
27599             s//\1/
27600             q
27601           }
27602           s/.*/./; q'`
27603       test -d "$as_dir" && break
27604     done
27605     test -z "$as_dirs" || eval "mkdir $as_dirs"
27606   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27607 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27608    { (exit 1); exit 1; }; }; }
27609     # echo "creating $dirpart/$file"
27610     echo '# dummy' > "$dirpart/$file"
27611   done
27612 done
27613  ;;
27614     "tools/graspe-slave":F)
27615     for file in                                                 \
27616      tools/graspe-slave           tools/graspe-master           \
27617     ; do                                                        \
27618       test -e $file && chmod +x $file;                          \
27619     done
27620  ;;
27621     "testsuite/Makefile":F)
27622     for file in                                                 \
27623      testsuite/run_tests                                        \
27624      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27625     ; do                                                        \
27626       test -e $file && chmod +x $file;                          \
27627     done
27628  ;;
27629     "testsuite/run_tests":F)
27630     for file in                                                 \
27631      testsuite/run_tests                                        \
27632      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27633     ; do                                                        \
27634       test -e $file && chmod +x $file;                          \
27635     done
27636  ;;
27637     "testsuite/gras/trp_tcp_usage":F)
27638     for file in                                                 \
27639      testsuite/run_tests                                        \
27640      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27641     ; do                                                        \
27642       test -e $file && chmod +x $file;                          \
27643     done
27644  ;;
27645     "testsuite/gras/trp_file_usage":F)
27646     for file in                                                 \
27647      testsuite/run_tests                                        \
27648      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
27649     ; do                                                        \
27650       test -e $file && chmod +x $file;                          \
27651     done
27652  ;;
27653     "examples/Makefile":F)
27654     for file in                                                 \
27655      \
27656      examples/msg/run_msg_test                                  \
27657      examples/simdag/test_simdag                                \
27658     ; do                                                        \
27659       test -e $file && chmod +x $file;                          \
27660     done
27661  ;;
27662     "examples/msg/Makefile":F)
27663     for file in                                                 \
27664      \
27665      examples/msg/run_msg_test                                  \
27666      examples/simdag/test_simdag                                \
27667     ; do                                                        \
27668       test -e $file && chmod +x $file;                          \
27669     done
27670  ;;
27671     "examples/msg/basic.tesh":F)
27672     for file in                                                 \
27673      \
27674      examples/msg/run_msg_test                                  \
27675      examples/simdag/test_simdag                                \
27676     ; do                                                        \
27677       test -e $file && chmod +x $file;                          \
27678     done
27679  ;;
27680     "examples/msg/small_plat.tesh":F)
27681     for file in                                                 \
27682      \
27683      examples/msg/run_msg_test                                  \
27684      examples/simdag/test_simdag                                \
27685     ; do                                                        \
27686       test -e $file && chmod +x $file;                          \
27687     done
27688  ;;
27689     "examples/msg/suspend.tesh":F)
27690     for file in                                                 \
27691      \
27692      examples/msg/run_msg_test                                  \
27693      examples/simdag/test_simdag                                \
27694     ; do                                                        \
27695       test -e $file && chmod +x $file;                          \
27696     done
27697  ;;
27698     "examples/msg/flexml_bypass.tesh":F)
27699     for file in                                                 \
27700      \
27701      examples/msg/run_msg_test                                  \
27702      examples/simdag/test_simdag                                \
27703     ; do                                                        \
27704       test -e $file && chmod +x $file;                          \
27705     done
27706  ;;
27707     "examples/simdag/Makefile":F)
27708     for file in                                                 \
27709      \
27710      examples/msg/run_msg_test                                  \
27711      examples/simdag/test_simdag                                \
27712     ; do                                                        \
27713       test -e $file && chmod +x $file;                          \
27714     done
27715  ;;
27716     "examples/simdag/test_simdag":F)
27717     for file in                                                 \
27718      \
27719      examples/msg/run_msg_test                                  \
27720      examples/simdag/test_simdag                                \
27721     ; do                                                        \
27722       test -e $file && chmod +x $file;                          \
27723     done
27724  ;;
27725     "examples/gras/Makefile":F)
27726     for file in                                                 \
27727      \
27728      examples/msg/run_msg_test                                  \
27729      examples/simdag/test_simdag                                \
27730     ; do                                                        \
27731       test -e $file && chmod +x $file;                          \
27732     done
27733  ;;
27734     "examples/gras/ping/Makefile":F)
27735     for file in                                                 \
27736      \
27737      examples/msg/run_msg_test                                  \
27738      examples/simdag/test_simdag                                \
27739     ; do                                                        \
27740       test -e $file && chmod +x $file;                          \
27741     done
27742  ;;
27743     "examples/gras/rpc/Makefile":F)
27744     for file in                                                 \
27745      \
27746      examples/msg/run_msg_test                                  \
27747      examples/simdag/test_simdag                                \
27748     ; do                                                        \
27749       test -e $file && chmod +x $file;                          \
27750     done
27751  ;;
27752     "examples/gras/timer/Makefile":F)
27753     for file in                                                 \
27754      \
27755      examples/msg/run_msg_test                                  \
27756      examples/simdag/test_simdag                                \
27757     ; do                                                        \
27758       test -e $file && chmod +x $file;                          \
27759     done
27760  ;;
27761     "examples/gras/chrono/Makefile":F)
27762     for file in                                                 \
27763      \
27764      examples/msg/run_msg_test                                  \
27765      examples/simdag/test_simdag                                \
27766     ; do                                                        \
27767       test -e $file && chmod +x $file;                          \
27768     done
27769  ;;
27770     "examples/gras/mutual_exclusion/simple_token/Makefile":F)
27771     for file in                                                 \
27772      \
27773      examples/msg/run_msg_test                                  \
27774      examples/simdag/test_simdag                                \
27775     ; do                                                        \
27776       test -e $file && chmod +x $file;                          \
27777     done
27778  ;;
27779     "examples/gras/mmrpc/Makefile":F)
27780     for file in                                                 \
27781      \
27782      examples/msg/run_msg_test                                  \
27783      examples/simdag/test_simdag                                \
27784     ; do                                                        \
27785       test -e $file && chmod +x $file;                          \
27786     done
27787  ;;
27788     "examples/gras/pmm/Makefile":F)
27789     for file in                                                 \
27790      \
27791      examples/msg/run_msg_test                                  \
27792      examples/simdag/test_simdag                                \
27793     ; do                                                        \
27794       test -e $file && chmod +x $file;                          \
27795     done
27796  ;;
27797     "examples/gras/all2all/Makefile":F)
27798     for file in                                                 \
27799      \
27800      examples/msg/run_msg_test                                  \
27801      examples/simdag/test_simdag                                \
27802     ; do                                                        \
27803       test -e $file && chmod +x $file;                          \
27804     done
27805  ;;
27806     "examples/amok/Makefile":F)
27807     for file in                                                 \
27808      \
27809      examples/msg/run_msg_test                                  \
27810      examples/simdag/test_simdag                                \
27811     ; do                                                        \
27812       test -e $file && chmod +x $file;                          \
27813     done
27814  ;;
27815     "examples/amok/bandwidth/Makefile":F)
27816     for file in                                                 \
27817      \
27818      examples/msg/run_msg_test                                  \
27819      examples/simdag/test_simdag                                \
27820     ; do                                                        \
27821       test -e $file && chmod +x $file;                          \
27822     done
27823  ;;
27824     "examples/amok/bandwidth/test_sg":F)
27825     for file in                                                 \
27826      \
27827      examples/msg/run_msg_test                                  \
27828      examples/simdag/test_simdag                                \
27829     ; do                                                        \
27830       test -e $file && chmod +x $file;                          \
27831     done
27832  ;;
27833     "examples/amok/bandwidth/test_rl":F)
27834     for file in                                                 \
27835      \
27836      examples/msg/run_msg_test                                  \
27837      examples/simdag/test_simdag                                \
27838     ; do                                                        \
27839       test -e $file && chmod +x $file;                          \
27840     done
27841  ;;
27842     "examples/amok/saturate/Makefile":F)
27843     for file in                                                 \
27844      \
27845      examples/msg/run_msg_test                                  \
27846      examples/simdag/test_simdag                                \
27847     ; do                                                        \
27848       test -e $file && chmod +x $file;                          \
27849     done
27850  ;;
27851     "examples/amok/saturate/test_sg":F)
27852     for file in                                                 \
27853      \
27854      examples/msg/run_msg_test                                  \
27855      examples/simdag/test_simdag                                \
27856     ; do                                                        \
27857       test -e $file && chmod +x $file;                          \
27858     done
27859  ;;
27860     "examples/amok/saturate/test_rl":F)
27861     for file in                                                 \
27862      \
27863      examples/msg/run_msg_test                                  \
27864      examples/simdag/test_simdag                                \
27865     ; do                                                        \
27866       test -e $file && chmod +x $file;                          \
27867     done
27868  ;;
27869
27870   esac
27871 done # for ac_tag
27872
27873
27874 { (exit 0); exit 0; }
27875 _ACEOF
27876 chmod +x $CONFIG_STATUS
27877 ac_clean_files=$ac_clean_files_save
27878
27879
27880 # configure is writing to config.log, and then calls config.status.
27881 # config.status does its own redirection, appending to config.log.
27882 # Unfortunately, on DOS this fails, as config.log is still kept open
27883 # by configure, so config.status won't be able to write to it; its
27884 # output is simply discarded.  So we exec the FD to /dev/null,
27885 # effectively closing config.log, so it can be properly (re)opened and
27886 # appended to by config.status.  When coming back to configure, we
27887 # need to make the FD available again.
27888 if test "$no_create" != yes; then
27889   ac_cs_success=:
27890   ac_config_status_args=
27891   test "$silent" = yes &&
27892     ac_config_status_args="$ac_config_status_args --quiet"
27893   exec 5>/dev/null
27894   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27895   exec 5>>config.log
27896   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27897   # would make configure fail if this is the last instruction.
27898   $ac_cs_success || { (exit 1); exit 1; }
27899 fi
27900
27901
27902 echo "
27903
27904 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
27905
27906         Compiler:        ${CC} (version: ${GCC_VERSION})
27907
27908         CFlags:          ${CFLAGS}
27909         CPPFlags:        ${CPPFLAGS}
27910         LDFlags:         ${LDFLAGS}
27911
27912         Context backend: ${with_context}
27913 "
27914
27915 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
27916   echo "WARNING:"
27917   echo "WARNING: you seem to compile the CVS version without the maintainer mode."
27918   echo "WARNING: You won't be able to build archives that way (make dist is likely to fail). "
27919   echo "WARNING: If you want to enable the maintainer mode, juste specify it like this:"
27920   echo "WARNING:"
27921   echo "WARNING: ./configure '--enable-maintainer-mode' $ac_configure_args"
27922   echo "WARNING:"
27923 fi
27924 echo $build_id > stamp.configure
27925
27926 exit 0;