OSDN Git Service

* version up.
[modchxj/mod_chxj.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for mod_chxj 0.13.1rc4.
4 #
5 # Report bugs to <konn@users.sourceforge.jp>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='mod_chxj'
730 PACKAGE_TARNAME='mod_chxj'
731 PACKAGE_VERSION='0.13.1rc4'
732 PACKAGE_STRING='mod_chxj 0.13.1rc4'
733 PACKAGE_BUGREPORT='konn@users.sourceforge.jp'
734
735 ac_unique_file="src/mod_chxj.c"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 #  include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 #  include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 INSTALL_PROGRAM
822 INSTALL_SCRIPT
823 INSTALL_DATA
824 am__isrc
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 SED
860 GREP
861 EGREP
862 LN_S
863 ECHO
864 AR
865 RANLIB
866 DSYMUTIL
867 NMEDIT
868 CPP
869 CXX
870 CXXFLAGS
871 ac_ct_CXX
872 CXXDEPMODE
873 am__fastdepCXX_TRUE
874 am__fastdepCXX_FALSE
875 CXXCPP
876 F77
877 FFLAGS
878 ac_ct_F77
879 LIBTOOL
880 LIBTOOL_DEPS
881 APXS2
882 APXS
883 WAND_CONFIG
884 APR_CONFIG
885 APR_1_CONFIG
886 APU_CONFIG
887 APU_1_CONFIG
888 PCRE_CONFIG
889 PCRE_1_CONFIG
890 LIBOBJS
891 with_apache_header
892 QDEFS
893 DDEFS
894 OPENSSL_PATH
895 LTLIBOBJS'
896 ac_subst_files=''
897       ac_precious_vars='build_alias
898 host_alias
899 target_alias
900 CC
901 CFLAGS
902 LDFLAGS
903 LIBS
904 CPPFLAGS
905 CPP
906 CXX
907 CXXFLAGS
908 CCC
909 CXXCPP
910 F77
911 FFLAGS'
912
913
914 # Initialize some variables set by options.
915 ac_init_help=
916 ac_init_version=false
917 # The variables have the same names as the options, with
918 # dashes changed to underlines.
919 cache_file=/dev/null
920 exec_prefix=NONE
921 no_create=
922 no_recursion=
923 prefix=NONE
924 program_prefix=NONE
925 program_suffix=NONE
926 program_transform_name=s,x,x,
927 silent=
928 site=
929 srcdir=
930 verbose=
931 x_includes=NONE
932 x_libraries=NONE
933
934 # Installation directory options.
935 # These are left unexpanded so users can "make install exec_prefix=/foo"
936 # and all the variables that are supposed to be based on exec_prefix
937 # by default will actually change.
938 # Use braces instead of parens because sh, perl, etc. also accept them.
939 # (The list follows the same order as the GNU Coding Standards.)
940 bindir='${exec_prefix}/bin'
941 sbindir='${exec_prefix}/sbin'
942 libexecdir='${exec_prefix}/libexec'
943 datarootdir='${prefix}/share'
944 datadir='${datarootdir}'
945 sysconfdir='${prefix}/etc'
946 sharedstatedir='${prefix}/com'
947 localstatedir='${prefix}/var'
948 includedir='${prefix}/include'
949 oldincludedir='/usr/include'
950 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
951 infodir='${datarootdir}/info'
952 htmldir='${docdir}'
953 dvidir='${docdir}'
954 pdfdir='${docdir}'
955 psdir='${docdir}'
956 libdir='${exec_prefix}/lib'
957 localedir='${datarootdir}/locale'
958 mandir='${datarootdir}/man'
959
960 ac_prev=
961 ac_dashdash=
962 for ac_option
963 do
964   # If the previous option needs an argument, assign it.
965   if test -n "$ac_prev"; then
966     eval $ac_prev=\$ac_option
967     ac_prev=
968     continue
969   fi
970
971   case $ac_option in
972   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973   *)    ac_optarg=yes ;;
974   esac
975
976   # Accept the important Cygnus configure options, so we can diagnose typos.
977
978   case $ac_dashdash$ac_option in
979   --)
980     ac_dashdash=yes ;;
981
982   -bindir | --bindir | --bindi | --bind | --bin | --bi)
983     ac_prev=bindir ;;
984   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
985     bindir=$ac_optarg ;;
986
987   -build | --build | --buil | --bui | --bu)
988     ac_prev=build_alias ;;
989   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
990     build_alias=$ac_optarg ;;
991
992   -cache-file | --cache-file | --cache-fil | --cache-fi \
993   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
994     ac_prev=cache_file ;;
995   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
996   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
997     cache_file=$ac_optarg ;;
998
999   --config-cache | -C)
1000     cache_file=config.cache ;;
1001
1002   -datadir | --datadir | --datadi | --datad)
1003     ac_prev=datadir ;;
1004   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1005     datadir=$ac_optarg ;;
1006
1007   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1008   | --dataroo | --dataro | --datar)
1009     ac_prev=datarootdir ;;
1010   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1011   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1012     datarootdir=$ac_optarg ;;
1013
1014   -disable-* | --disable-*)
1015     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1016     # Reject names that are not valid shell variable names.
1017     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019    { (exit 1); exit 1; }; }
1020     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1021     eval enable_$ac_feature=no ;;
1022
1023   -docdir | --docdir | --docdi | --doc | --do)
1024     ac_prev=docdir ;;
1025   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1026     docdir=$ac_optarg ;;
1027
1028   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1029     ac_prev=dvidir ;;
1030   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1031     dvidir=$ac_optarg ;;
1032
1033   -enable-* | --enable-*)
1034     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1035     # Reject names that are not valid shell variable names.
1036     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1037       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1038    { (exit 1); exit 1; }; }
1039     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1040     eval enable_$ac_feature=\$ac_optarg ;;
1041
1042   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044   | --exec | --exe | --ex)
1045     ac_prev=exec_prefix ;;
1046   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048   | --exec=* | --exe=* | --ex=*)
1049     exec_prefix=$ac_optarg ;;
1050
1051   -gas | --gas | --ga | --g)
1052     # Obsolete; use --with-gas.
1053     with_gas=yes ;;
1054
1055   -help | --help | --hel | --he | -h)
1056     ac_init_help=long ;;
1057   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058     ac_init_help=recursive ;;
1059   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060     ac_init_help=short ;;
1061
1062   -host | --host | --hos | --ho)
1063     ac_prev=host_alias ;;
1064   -host=* | --host=* | --hos=* | --ho=*)
1065     host_alias=$ac_optarg ;;
1066
1067   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068     ac_prev=htmldir ;;
1069   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070   | --ht=*)
1071     htmldir=$ac_optarg ;;
1072
1073   -includedir | --includedir | --includedi | --included | --include \
1074   | --includ | --inclu | --incl | --inc)
1075     ac_prev=includedir ;;
1076   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077   | --includ=* | --inclu=* | --incl=* | --inc=*)
1078     includedir=$ac_optarg ;;
1079
1080   -infodir | --infodir | --infodi | --infod | --info | --inf)
1081     ac_prev=infodir ;;
1082   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1083     infodir=$ac_optarg ;;
1084
1085   -libdir | --libdir | --libdi | --libd)
1086     ac_prev=libdir ;;
1087   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1088     libdir=$ac_optarg ;;
1089
1090   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091   | --libexe | --libex | --libe)
1092     ac_prev=libexecdir ;;
1093   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094   | --libexe=* | --libex=* | --libe=*)
1095     libexecdir=$ac_optarg ;;
1096
1097   -localedir | --localedir | --localedi | --localed | --locale)
1098     ac_prev=localedir ;;
1099   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100     localedir=$ac_optarg ;;
1101
1102   -localstatedir | --localstatedir | --localstatedi | --localstated \
1103   | --localstate | --localstat | --localsta | --localst | --locals)
1104     ac_prev=localstatedir ;;
1105   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1106   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1107     localstatedir=$ac_optarg ;;
1108
1109   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110     ac_prev=mandir ;;
1111   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1112     mandir=$ac_optarg ;;
1113
1114   -nfp | --nfp | --nf)
1115     # Obsolete; use --without-fp.
1116     with_fp=no ;;
1117
1118   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1119   | --no-cr | --no-c | -n)
1120     no_create=yes ;;
1121
1122   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124     no_recursion=yes ;;
1125
1126   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128   | --oldin | --oldi | --old | --ol | --o)
1129     ac_prev=oldincludedir ;;
1130   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1133     oldincludedir=$ac_optarg ;;
1134
1135   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136     ac_prev=prefix ;;
1137   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1138     prefix=$ac_optarg ;;
1139
1140   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141   | --program-pre | --program-pr | --program-p)
1142     ac_prev=program_prefix ;;
1143   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1145     program_prefix=$ac_optarg ;;
1146
1147   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148   | --program-suf | --program-su | --program-s)
1149     ac_prev=program_suffix ;;
1150   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1152     program_suffix=$ac_optarg ;;
1153
1154   -program-transform-name | --program-transform-name \
1155   | --program-transform-nam | --program-transform-na \
1156   | --program-transform-n | --program-transform- \
1157   | --program-transform | --program-transfor \
1158   | --program-transfo | --program-transf \
1159   | --program-trans | --program-tran \
1160   | --progr-tra | --program-tr | --program-t)
1161     ac_prev=program_transform_name ;;
1162   -program-transform-name=* | --program-transform-name=* \
1163   | --program-transform-nam=* | --program-transform-na=* \
1164   | --program-transform-n=* | --program-transform-=* \
1165   | --program-transform=* | --program-transfor=* \
1166   | --program-transfo=* | --program-transf=* \
1167   | --program-trans=* | --program-tran=* \
1168   | --progr-tra=* | --program-tr=* | --program-t=*)
1169     program_transform_name=$ac_optarg ;;
1170
1171   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172     ac_prev=pdfdir ;;
1173   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174     pdfdir=$ac_optarg ;;
1175
1176   -psdir | --psdir | --psdi | --psd | --ps)
1177     ac_prev=psdir ;;
1178   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179     psdir=$ac_optarg ;;
1180
1181   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182   | -silent | --silent | --silen | --sile | --sil)
1183     silent=yes ;;
1184
1185   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1186     ac_prev=sbindir ;;
1187   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1188   | --sbi=* | --sb=*)
1189     sbindir=$ac_optarg ;;
1190
1191   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1192   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1193   | --sharedst | --shareds | --shared | --share | --shar \
1194   | --sha | --sh)
1195     ac_prev=sharedstatedir ;;
1196   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1197   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1198   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1199   | --sha=* | --sh=*)
1200     sharedstatedir=$ac_optarg ;;
1201
1202   -site | --site | --sit)
1203     ac_prev=site ;;
1204   -site=* | --site=* | --sit=*)
1205     site=$ac_optarg ;;
1206
1207   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1208     ac_prev=srcdir ;;
1209   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1210     srcdir=$ac_optarg ;;
1211
1212   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1213   | --syscon | --sysco | --sysc | --sys | --sy)
1214     ac_prev=sysconfdir ;;
1215   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1216   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1217     sysconfdir=$ac_optarg ;;
1218
1219   -target | --target | --targe | --targ | --tar | --ta | --t)
1220     ac_prev=target_alias ;;
1221   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1222     target_alias=$ac_optarg ;;
1223
1224   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225     verbose=yes ;;
1226
1227   -version | --version | --versio | --versi | --vers | -V)
1228     ac_init_version=: ;;
1229
1230   -with-* | --with-*)
1231     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1232     # Reject names that are not valid shell variable names.
1233     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234       { echo "$as_me: error: invalid package name: $ac_package" >&2
1235    { (exit 1); exit 1; }; }
1236     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1237     eval with_$ac_package=\$ac_optarg ;;
1238
1239   -without-* | --without-*)
1240     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241     # Reject names that are not valid shell variable names.
1242     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243       { echo "$as_me: error: invalid package name: $ac_package" >&2
1244    { (exit 1); exit 1; }; }
1245     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1246     eval with_$ac_package=no ;;
1247
1248   --x)
1249     # Obsolete; use --with-x.
1250     with_x=yes ;;
1251
1252   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253   | --x-incl | --x-inc | --x-in | --x-i)
1254     ac_prev=x_includes ;;
1255   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257     x_includes=$ac_optarg ;;
1258
1259   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261     ac_prev=x_libraries ;;
1262   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264     x_libraries=$ac_optarg ;;
1265
1266   -*) { echo "$as_me: error: unrecognized option: $ac_option
1267 Try \`$0 --help' for more information." >&2
1268    { (exit 1); exit 1; }; }
1269     ;;
1270
1271   *=*)
1272     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273     # Reject names that are not valid shell variable names.
1274     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1275       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1276    { (exit 1); exit 1; }; }
1277     eval $ac_envvar=\$ac_optarg
1278     export $ac_envvar ;;
1279
1280   *)
1281     # FIXME: should be removed in autoconf 3.0.
1282     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1286     ;;
1287
1288   esac
1289 done
1290
1291 if test -n "$ac_prev"; then
1292   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293   { echo "$as_me: error: missing argument to $ac_option" >&2
1294    { (exit 1); exit 1; }; }
1295 fi
1296
1297 # Be sure to have absolute directory names.
1298 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299                 datadir sysconfdir sharedstatedir localstatedir includedir \
1300                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301                 libdir localedir mandir
1302 do
1303   eval ac_val=\$$ac_var
1304   case $ac_val in
1305     [\\/$]* | ?:[\\/]* )  continue;;
1306     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307   esac
1308   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1309    { (exit 1); exit 1; }; }
1310 done
1311
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1315 build=$build_alias
1316 host=$host_alias
1317 target=$target_alias
1318
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321   if test "x$build_alias" = x; then
1322     cross_compiling=maybe
1323     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324     If a cross compiler is detected then cross compile mode will be used." >&2
1325   elif test "x$build_alias" != "x$host_alias"; then
1326     cross_compiling=yes
1327   fi
1328 fi
1329
1330 ac_tool_prefix=
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333 test "$silent" = yes && exec 6>/dev/null
1334
1335
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339   { echo "$as_me: error: Working directory cannot be determined" >&2
1340    { (exit 1); exit 1; }; }
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342   { echo "$as_me: error: pwd does not report name of working directory" >&2
1343    { (exit 1); exit 1; }; }
1344
1345
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348   ac_srcdir_defaulted=yes
1349   # Try the directory containing this script, then the parent directory.
1350   ac_confdir=`$as_dirname -- "$0" ||
1351 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352          X"$0" : 'X\(//\)[^/]' \| \
1353          X"$0" : 'X\(//\)$' \| \
1354          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1355 echo X"$0" |
1356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357             s//\1/
1358             q
1359           }
1360           /^X\(\/\/\)[^/].*/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\/\)$/{
1365             s//\1/
1366             q
1367           }
1368           /^X\(\/\).*/{
1369             s//\1/
1370             q
1371           }
1372           s/.*/./; q'`
1373   srcdir=$ac_confdir
1374   if test ! -r "$srcdir/$ac_unique_file"; then
1375     srcdir=..
1376   fi
1377 else
1378   ac_srcdir_defaulted=no
1379 fi
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1383    { (exit 1); exit 1; }; }
1384 fi
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 ac_abs_confdir=`(
1387         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1388    { (exit 1); exit 1; }; }
1389         pwd)`
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392   srcdir=.
1393 fi
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1397 case $srcdir in
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 esac
1400 for ac_var in $ac_precious_vars; do
1401   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402   eval ac_env_${ac_var}_value=\$${ac_var}
1403   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 done
1406
1407 #
1408 # Report the --help message.
1409 #
1410 if test "$ac_init_help" = "long"; then
1411   # Omit some internal or obsolete options to make the list less imposing.
1412   # This message is too long to be a string in the A/UX 3.1 sh.
1413   cat <<_ACEOF
1414 \`configure' configures mod_chxj 0.13.1rc4 to adapt to many kinds of systems.
1415
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1417
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE.  See below for descriptions of some of the useful variables.
1420
1421 Defaults for the options are specified in brackets.
1422
1423 Configuration:
1424   -h, --help              display this help and exit
1425       --help=short        display options specific to this package
1426       --help=recursive    display the short help of all the included packages
1427   -V, --version           display version information and exit
1428   -q, --quiet, --silent   do not print \`checking...' messages
1429       --cache-file=FILE   cache test results in FILE [disabled]
1430   -C, --config-cache      alias for \`--cache-file=config.cache'
1431   -n, --no-create         do not create output files
1432       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1433
1434 Installation directories:
1435   --prefix=PREFIX         install architecture-independent files in PREFIX
1436                           [$ac_default_prefix]
1437   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1438                           [PREFIX]
1439
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1444
1445 For better control, use the options below.
1446
1447 Fine tuning of the installation directories:
1448   --bindir=DIR           user executables [EPREFIX/bin]
1449   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1450   --libexecdir=DIR       program executables [EPREFIX/libexec]
1451   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1452   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1453   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1454   --libdir=DIR           object code libraries [EPREFIX/lib]
1455   --includedir=DIR       C header files [PREFIX/include]
1456   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1457   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1458   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1459   --infodir=DIR          info documentation [DATAROOTDIR/info]
1460   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1461   --mandir=DIR           man documentation [DATAROOTDIR/man]
1462   --docdir=DIR           documentation root [DATAROOTDIR/doc/mod_chxj]
1463   --htmldir=DIR          html documentation [DOCDIR]
1464   --dvidir=DIR           dvi documentation [DOCDIR]
1465   --pdfdir=DIR           pdf documentation [DOCDIR]
1466   --psdir=DIR            ps documentation [DOCDIR]
1467 _ACEOF
1468
1469   cat <<\_ACEOF
1470
1471 Program names:
1472   --program-prefix=PREFIX            prepend PREFIX to installed program names
1473   --program-suffix=SUFFIX            append SUFFIX to installed program names
1474   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1475
1476 System types:
1477   --build=BUILD     configure for building on BUILD [guessed]
1478   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1479   --target=TARGET   configure for building compilers for TARGET [HOST]
1480 _ACEOF
1481 fi
1482
1483 if test -n "$ac_init_help"; then
1484   case $ac_init_help in
1485      short | recursive ) echo "Configuration of mod_chxj 0.13.1rc4:";;
1486    esac
1487   cat <<\_ACEOF
1488
1489 Optional Features:
1490   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1491   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1492   --disable-dependency-tracking  speeds up one-time build
1493   --enable-dependency-tracking   do not reject slow dependency extractors
1494   --enable-shared[=PKGS]  build shared libraries [default=yes]
1495   --enable-static[=PKGS]  build static libraries [default=yes]
1496   --enable-fast-install[=PKGS]
1497                           optimize for fast installation [default=yes]
1498   --disable-libtool-lock  avoid locking (might break parallel builds)
1499   --enable-img-conv-f      Please specify it when you change the file name of the image being written in the
1500 source by the automatic operation.
1501   --enable-memcache-cookie Please specify it when you save Cookie in memcached.
1502   --enable-memcached-static use static link.
1503   --enable-mysql-cookie    Please specify it when you save Cookie in MySQL.
1504   --enable-dump-log   When the log of conversion is output, it specifies it with the output file.
1505
1506 Optional Packages:
1507   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1508   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1509   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1510   --with-pic              try to use only PIC/non-PIC objects [default=use
1511                           both]
1512   --with-tags[=TAGS]      include additional configurations [automatic]
1513   --with-apache-header=ARG The directory with the header file of apache2.0 is specified.
1514   --with-apxs=ARG Path of apxs program file.
1515   --with-apr-config=ARG  Path of apr-config program file.
1516   --with-apu-config=ARG  Path of apu-config program file.
1517   --with-pcre-config=ARG  Path of pcre-config program file.
1518   --with-memcached-header Path of "memcached.h"
1519   --with-memcached-lib-dir Path of "libmemcached.so"
1520   --with-mysql-header=ARG  Path of "mysql.h"
1521   --with-mysql-lib-dir=ARG Path of libmysqlclient
1522 APR_HELP_STRING(--with-openssl=PATH,Path to OpenSSL (eg. /usr/local/ssl))
1523
1524 Some influential environment variables:
1525   CC          C compiler command
1526   CFLAGS      C compiler flags
1527   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1528               nonstandard directory <lib dir>
1529   LIBS        libraries to pass to the linker, e.g. -l<library>
1530   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1531               you have headers in a nonstandard directory <include dir>
1532   CPP         C preprocessor
1533   CXX         C++ compiler command
1534   CXXFLAGS    C++ compiler flags
1535   CXXCPP      C++ preprocessor
1536   F77         Fortran 77 compiler command
1537   FFLAGS      Fortran 77 compiler flags
1538
1539 Use these variables to override the choices made by `configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1541
1542 Report bugs to <konn@users.sourceforge.jp>.
1543 _ACEOF
1544 ac_status=$?
1545 fi
1546
1547 if test "$ac_init_help" = "recursive"; then
1548   # If there are subdirs, report their specific --help.
1549   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550     test -d "$ac_dir" || continue
1551     ac_builddir=.
1552
1553 case "$ac_dir" in
1554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *)
1556   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1557   # A ".." for each directory in $ac_dir_suffix.
1558   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1559   case $ac_top_builddir_sub in
1560   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1562   esac ;;
1563 esac
1564 ac_abs_top_builddir=$ac_pwd
1565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566 # for backward compatibility:
1567 ac_top_builddir=$ac_top_build_prefix
1568
1569 case $srcdir in
1570   .)  # We are building in place.
1571     ac_srcdir=.
1572     ac_top_srcdir=$ac_top_builddir_sub
1573     ac_abs_top_srcdir=$ac_pwd ;;
1574   [\\/]* | ?:[\\/]* )  # Absolute name.
1575     ac_srcdir=$srcdir$ac_dir_suffix;
1576     ac_top_srcdir=$srcdir
1577     ac_abs_top_srcdir=$srcdir ;;
1578   *) # Relative name.
1579     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580     ac_top_srcdir=$ac_top_build_prefix$srcdir
1581     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582 esac
1583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1584
1585     cd "$ac_dir" || { ac_status=$?; continue; }
1586     # Check for guested configure.
1587     if test -f "$ac_srcdir/configure.gnu"; then
1588       echo &&
1589       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590     elif test -f "$ac_srcdir/configure"; then
1591       echo &&
1592       $SHELL "$ac_srcdir/configure" --help=recursive
1593     else
1594       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595     fi || ac_status=$?
1596     cd "$ac_pwd" || { ac_status=$?; break; }
1597   done
1598 fi
1599
1600 test -n "$ac_init_help" && exit $ac_status
1601 if $ac_init_version; then
1602   cat <<\_ACEOF
1603 mod_chxj configure 0.13.1rc4
1604 generated by GNU Autoconf 2.61
1605
1606 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1607 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1608 This configure script is free software; the Free Software Foundation
1609 gives unlimited permission to copy, distribute and modify it.
1610 _ACEOF
1611   exit
1612 fi
1613 cat >config.log <<_ACEOF
1614 This file contains any messages produced by compilers while
1615 running configure, to aid debugging if configure makes a mistake.
1616
1617 It was created by mod_chxj $as_me 0.13.1rc4, which was
1618 generated by GNU Autoconf 2.61.  Invocation command line was
1619
1620   $ $0 $@
1621
1622 _ACEOF
1623 exec 5>>config.log
1624 {
1625 cat <<_ASUNAME
1626 ## --------- ##
1627 ## Platform. ##
1628 ## --------- ##
1629
1630 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1631 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1632 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1633 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1634 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1635
1636 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1637 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1638
1639 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1640 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1641 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1642 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1643 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1644 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1645 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1646
1647 _ASUNAME
1648
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1651 do
1652   IFS=$as_save_IFS
1653   test -z "$as_dir" && as_dir=.
1654   echo "PATH: $as_dir"
1655 done
1656 IFS=$as_save_IFS
1657
1658 } >&5
1659
1660 cat >&5 <<_ACEOF
1661
1662
1663 ## ----------- ##
1664 ## Core tests. ##
1665 ## ----------- ##
1666
1667 _ACEOF
1668
1669
1670 # Keep a trace of the command line.
1671 # Strip out --no-create and --no-recursion so they do not pile up.
1672 # Strip out --silent because we don't want to record it for future runs.
1673 # Also quote any args containing shell meta-characters.
1674 # Make two passes to allow for proper duplicate-argument suppression.
1675 ac_configure_args=
1676 ac_configure_args0=
1677 ac_configure_args1=
1678 ac_must_keep_next=false
1679 for ac_pass in 1 2
1680 do
1681   for ac_arg
1682   do
1683     case $ac_arg in
1684     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1685     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1686     | -silent | --silent | --silen | --sile | --sil)
1687       continue ;;
1688     *\'*)
1689       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1690     esac
1691     case $ac_pass in
1692     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1693     2)
1694       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1695       if test $ac_must_keep_next = true; then
1696         ac_must_keep_next=false # Got value, back to normal.
1697       else
1698         case $ac_arg in
1699           *=* | --config-cache | -C | -disable-* | --disable-* \
1700           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1701           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1702           | -with-* | --with-* | -without-* | --without-* | --x)
1703             case "$ac_configure_args0 " in
1704               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1705             esac
1706             ;;
1707           -* ) ac_must_keep_next=true ;;
1708         esac
1709       fi
1710       ac_configure_args="$ac_configure_args '$ac_arg'"
1711       ;;
1712     esac
1713   done
1714 done
1715 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1716 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1717
1718 # When interrupted or exit'd, cleanup temporary files, and complete
1719 # config.log.  We remove comments because anyway the quotes in there
1720 # would cause problems or look ugly.
1721 # WARNING: Use '\'' to represent an apostrophe within the trap.
1722 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1723 trap 'exit_status=$?
1724   # Save into config.log some information that might help in debugging.
1725   {
1726     echo
1727
1728     cat <<\_ASBOX
1729 ## ---------------- ##
1730 ## Cache variables. ##
1731 ## ---------------- ##
1732 _ASBOX
1733     echo
1734     # The following way of writing the cache mishandles newlines in values,
1735 (
1736   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1737     eval ac_val=\$$ac_var
1738     case $ac_val in #(
1739     *${as_nl}*)
1740       case $ac_var in #(
1741       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1742 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1743       esac
1744       case $ac_var in #(
1745       _ | IFS | as_nl) ;; #(
1746       *) $as_unset $ac_var ;;
1747       esac ;;
1748     esac
1749   done
1750   (set) 2>&1 |
1751     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1752     *${as_nl}ac_space=\ *)
1753       sed -n \
1754         "s/'\''/'\''\\\\'\'''\''/g;
1755           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1756       ;; #(
1757     *)
1758       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1759       ;;
1760     esac |
1761     sort
1762 )
1763     echo
1764
1765     cat <<\_ASBOX
1766 ## ----------------- ##
1767 ## Output variables. ##
1768 ## ----------------- ##
1769 _ASBOX
1770     echo
1771     for ac_var in $ac_subst_vars
1772     do
1773       eval ac_val=\$$ac_var
1774       case $ac_val in
1775       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1776       esac
1777       echo "$ac_var='\''$ac_val'\''"
1778     done | sort
1779     echo
1780
1781     if test -n "$ac_subst_files"; then
1782       cat <<\_ASBOX
1783 ## ------------------- ##
1784 ## File substitutions. ##
1785 ## ------------------- ##
1786 _ASBOX
1787       echo
1788       for ac_var in $ac_subst_files
1789       do
1790         eval ac_val=\$$ac_var
1791         case $ac_val in
1792         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1793         esac
1794         echo "$ac_var='\''$ac_val'\''"
1795       done | sort
1796       echo
1797     fi
1798
1799     if test -s confdefs.h; then
1800       cat <<\_ASBOX
1801 ## ----------- ##
1802 ## confdefs.h. ##
1803 ## ----------- ##
1804 _ASBOX
1805       echo
1806       cat confdefs.h
1807       echo
1808     fi
1809     test "$ac_signal" != 0 &&
1810       echo "$as_me: caught signal $ac_signal"
1811     echo "$as_me: exit $exit_status"
1812   } >&5
1813   rm -f core *.core core.conftest.* &&
1814     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1815     exit $exit_status
1816 ' 0
1817 for ac_signal in 1 2 13 15; do
1818   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1819 done
1820 ac_signal=0
1821
1822 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1823 rm -f -r conftest* confdefs.h
1824
1825 # Predefined preprocessor variables.
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_NAME "$PACKAGE_NAME"
1829 _ACEOF
1830
1831
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1834 _ACEOF
1835
1836
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1839 _ACEOF
1840
1841
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_STRING "$PACKAGE_STRING"
1844 _ACEOF
1845
1846
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1849 _ACEOF
1850
1851
1852 # Let the site file select an alternate cache file if it wants to.
1853 # Prefer explicitly selected file to automatically selected ones.
1854 if test -n "$CONFIG_SITE"; then
1855   set x "$CONFIG_SITE"
1856 elif test "x$prefix" != xNONE; then
1857   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1858 else
1859   set x "$ac_default_prefix/share/config.site" \
1860         "$ac_default_prefix/etc/config.site"
1861 fi
1862 shift
1863 for ac_site_file
1864 do
1865   if test -r "$ac_site_file"; then
1866     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1867 echo "$as_me: loading site script $ac_site_file" >&6;}
1868     sed 's/^/| /' "$ac_site_file" >&5
1869     . "$ac_site_file"
1870   fi
1871 done
1872
1873 if test -r "$cache_file"; then
1874   # Some versions of bash will fail to source /dev/null (special
1875   # files actually), so we avoid doing that.
1876   if test -f "$cache_file"; then
1877     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1878 echo "$as_me: loading cache $cache_file" >&6;}
1879     case $cache_file in
1880       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1881       *)                      . "./$cache_file";;
1882     esac
1883   fi
1884 else
1885   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1886 echo "$as_me: creating cache $cache_file" >&6;}
1887   >$cache_file
1888 fi
1889
1890 # Check that the precious variables saved in the cache have kept the same
1891 # value.
1892 ac_cache_corrupted=false
1893 for ac_var in $ac_precious_vars; do
1894   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1895   eval ac_new_set=\$ac_env_${ac_var}_set
1896   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1897   eval ac_new_val=\$ac_env_${ac_var}_value
1898   case $ac_old_set,$ac_new_set in
1899     set,)
1900       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1901 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1902       ac_cache_corrupted=: ;;
1903     ,set)
1904       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1905 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1906       ac_cache_corrupted=: ;;
1907     ,);;
1908     *)
1909       if test "x$ac_old_val" != "x$ac_new_val"; then
1910         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1911 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1912         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1913 echo "$as_me:   former value:  $ac_old_val" >&2;}
1914         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1915 echo "$as_me:   current value: $ac_new_val" >&2;}
1916         ac_cache_corrupted=:
1917       fi;;
1918   esac
1919   # Pass precious variables to config.status.
1920   if test "$ac_new_set" = set; then
1921     case $ac_new_val in
1922     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1923     *) ac_arg=$ac_var=$ac_new_val ;;
1924     esac
1925     case " $ac_configure_args " in
1926       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1927       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1928     esac
1929   fi
1930 done
1931 if $ac_cache_corrupted; then
1932   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1933 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1934   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1935 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1936    { (exit 1); exit 1; }; }
1937 fi
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963 ac_ext=c
1964 ac_cpp='$CPP $CPPFLAGS'
1965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1968
1969
1970
1971
1972 ac_aux_dir=
1973 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1974   if test -f "$ac_dir/install-sh"; then
1975     ac_aux_dir=$ac_dir
1976     ac_install_sh="$ac_aux_dir/install-sh -c"
1977     break
1978   elif test -f "$ac_dir/install.sh"; then
1979     ac_aux_dir=$ac_dir
1980     ac_install_sh="$ac_aux_dir/install.sh -c"
1981     break
1982   elif test -f "$ac_dir/shtool"; then
1983     ac_aux_dir=$ac_dir
1984     ac_install_sh="$ac_aux_dir/shtool install -c"
1985     break
1986   fi
1987 done
1988 if test -z "$ac_aux_dir"; then
1989   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1990 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1991    { (exit 1); exit 1; }; }
1992 fi
1993
1994 # These three variables are undocumented and unsupported,
1995 # and are intended to be withdrawn in a future Autoconf release.
1996 # They can cause serious problems if a builder's source tree is in a directory
1997 # whose full name contains unusual characters.
1998 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1999 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2000 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2001
2002
2003 # Make sure we can run config.sub.
2004 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2005   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2006 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2007    { (exit 1); exit 1; }; }
2008
2009 { echo "$as_me:$LINENO: checking build system type" >&5
2010 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2011 if test "${ac_cv_build+set}" = set; then
2012   echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014   ac_build_alias=$build_alias
2015 test "x$ac_build_alias" = x &&
2016   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2017 test "x$ac_build_alias" = x &&
2018   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2019 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2020    { (exit 1); exit 1; }; }
2021 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2022   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2023 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2024    { (exit 1); exit 1; }; }
2025
2026 fi
2027 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2028 echo "${ECHO_T}$ac_cv_build" >&6; }
2029 case $ac_cv_build in
2030 *-*-*) ;;
2031 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2032 echo "$as_me: error: invalid value of canonical build" >&2;}
2033    { (exit 1); exit 1; }; };;
2034 esac
2035 build=$ac_cv_build
2036 ac_save_IFS=$IFS; IFS='-'
2037 set x $ac_cv_build
2038 shift
2039 build_cpu=$1
2040 build_vendor=$2
2041 shift; shift
2042 # Remember, the first character of IFS is used to create $*,
2043 # except with old shells:
2044 build_os=$*
2045 IFS=$ac_save_IFS
2046 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2047
2048
2049 { echo "$as_me:$LINENO: checking host system type" >&5
2050 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2051 if test "${ac_cv_host+set}" = set; then
2052   echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054   if test "x$host_alias" = x; then
2055   ac_cv_host=$ac_cv_build
2056 else
2057   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2058     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2059 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2060    { (exit 1); exit 1; }; }
2061 fi
2062
2063 fi
2064 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2065 echo "${ECHO_T}$ac_cv_host" >&6; }
2066 case $ac_cv_host in
2067 *-*-*) ;;
2068 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2069 echo "$as_me: error: invalid value of canonical host" >&2;}
2070    { (exit 1); exit 1; }; };;
2071 esac
2072 host=$ac_cv_host
2073 ac_save_IFS=$IFS; IFS='-'
2074 set x $ac_cv_host
2075 shift
2076 host_cpu=$1
2077 host_vendor=$2
2078 shift; shift
2079 # Remember, the first character of IFS is used to create $*,
2080 # except with old shells:
2081 host_os=$*
2082 IFS=$ac_save_IFS
2083 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2084
2085
2086 { echo "$as_me:$LINENO: checking target system type" >&5
2087 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2088 if test "${ac_cv_target+set}" = set; then
2089   echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091   if test "x$target_alias" = x; then
2092   ac_cv_target=$ac_cv_host
2093 else
2094   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2095     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2096 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2097    { (exit 1); exit 1; }; }
2098 fi
2099
2100 fi
2101 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2102 echo "${ECHO_T}$ac_cv_target" >&6; }
2103 case $ac_cv_target in
2104 *-*-*) ;;
2105 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2106 echo "$as_me: error: invalid value of canonical target" >&2;}
2107    { (exit 1); exit 1; }; };;
2108 esac
2109 target=$ac_cv_target
2110 ac_save_IFS=$IFS; IFS='-'
2111 set x $ac_cv_target
2112 shift
2113 target_cpu=$1
2114 target_vendor=$2
2115 shift; shift
2116 # Remember, the first character of IFS is used to create $*,
2117 # except with old shells:
2118 target_os=$*
2119 IFS=$ac_save_IFS
2120 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2121
2122
2123 # The aliases save the names the user supplied, while $host etc.
2124 # will get canonicalized.
2125 test -n "$target_alias" &&
2126   test "$program_prefix$program_suffix$program_transform_name" = \
2127     NONENONEs,x,x, &&
2128   program_prefix=${target_alias}-
2129 am__api_version='1.10'
2130
2131 # Find a good install program.  We prefer a C program (faster),
2132 # so one script is as good as another.  But avoid the broken or
2133 # incompatible versions:
2134 # SysV /etc/install, /usr/sbin/install
2135 # SunOS /usr/etc/install
2136 # IRIX /sbin/install
2137 # AIX /bin/install
2138 # AmigaOS /C/install, which installs bootblocks on floppy discs
2139 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2140 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2141 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2142 # OS/2's system install, which has a completely different semantic
2143 # ./install, which can be erroneously created by make from ./install.sh.
2144 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2145 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2146 if test -z "$INSTALL"; then
2147 if test "${ac_cv_path_install+set}" = set; then
2148   echo $ECHO_N "(cached) $ECHO_C" >&6
2149 else
2150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2152 do
2153   IFS=$as_save_IFS
2154   test -z "$as_dir" && as_dir=.
2155   # Account for people who put trailing slashes in PATH elements.
2156 case $as_dir/ in
2157   ./ | .// | /cC/* | \
2158   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2159   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2160   /usr/ucb/* ) ;;
2161   *)
2162     # OSF1 and SCO ODT 3.0 have their own names for install.
2163     # Don't use installbsd from OSF since it installs stuff as root
2164     # by default.
2165     for ac_prog in ginstall scoinst install; do
2166       for ac_exec_ext in '' $ac_executable_extensions; do
2167         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2168           if test $ac_prog = install &&
2169             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2170             # AIX install.  It has an incompatible calling convention.
2171             :
2172           elif test $ac_prog = install &&
2173             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2174             # program-specific install script used by HP pwplus--don't use.
2175             :
2176           else
2177             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2178             break 3
2179           fi
2180         fi
2181       done
2182     done
2183     ;;
2184 esac
2185 done
2186 IFS=$as_save_IFS
2187
2188
2189 fi
2190   if test "${ac_cv_path_install+set}" = set; then
2191     INSTALL=$ac_cv_path_install
2192   else
2193     # As a last resort, use the slow shell script.  Don't cache a
2194     # value for INSTALL within a source directory, because that will
2195     # break other packages using the cache if that directory is
2196     # removed, or if the value is a relative name.
2197     INSTALL=$ac_install_sh
2198   fi
2199 fi
2200 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2201 echo "${ECHO_T}$INSTALL" >&6; }
2202
2203 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2204 # It thinks the first close brace ends the variable substitution.
2205 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2206
2207 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2208
2209 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2210
2211 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2212 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2213 # Just in case
2214 sleep 1
2215 echo timestamp > conftest.file
2216 # Do `set' in a subshell so we don't clobber the current shell's
2217 # arguments.  Must try -L first in case configure is actually a
2218 # symlink; some systems play weird games with the mod time of symlinks
2219 # (eg FreeBSD returns the mod time of the symlink's containing
2220 # directory).
2221 if (
2222    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2223    if test "$*" = "X"; then
2224       # -L didn't work.
2225       set X `ls -t $srcdir/configure conftest.file`
2226    fi
2227    rm -f conftest.file
2228    if test "$*" != "X $srcdir/configure conftest.file" \
2229       && test "$*" != "X conftest.file $srcdir/configure"; then
2230
2231       # If neither matched, then we have a broken ls.  This can happen
2232       # if, for instance, CONFIG_SHELL is bash and it inherits a
2233       # broken ls alias from the environment.  This has actually
2234       # happened.  Such a system could not be considered "sane".
2235       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2236 alias in your environment" >&5
2237 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2238 alias in your environment" >&2;}
2239    { (exit 1); exit 1; }; }
2240    fi
2241
2242    test "$2" = conftest.file
2243    )
2244 then
2245    # Ok.
2246    :
2247 else
2248    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2249 Check your system clock" >&5
2250 echo "$as_me: error: newly created file is older than distributed files!
2251 Check your system clock" >&2;}
2252    { (exit 1); exit 1; }; }
2253 fi
2254 { echo "$as_me:$LINENO: result: yes" >&5
2255 echo "${ECHO_T}yes" >&6; }
2256 test "$program_prefix" != NONE &&
2257   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2258 # Use a double $ so make ignores it.
2259 test "$program_suffix" != NONE &&
2260   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2261 # Double any \ or $.  echo might interpret backslashes.
2262 # By default was `s,x,x', remove it if useless.
2263 cat <<\_ACEOF >conftest.sed
2264 s/[\\$]/&&/g;s/;s,x,x,$//
2265 _ACEOF
2266 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2267 rm -f conftest.sed
2268
2269 # expand $ac_aux_dir to an absolute path
2270 am_aux_dir=`cd $ac_aux_dir && pwd`
2271
2272 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2273 # Use eval to expand $SHELL
2274 if eval "$MISSING --run true"; then
2275   am_missing_run="$MISSING --run "
2276 else
2277   am_missing_run=
2278   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2279 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2280 fi
2281
2282 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2283 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2284 if test -z "$MKDIR_P"; then
2285   if test "${ac_cv_path_mkdir+set}" = set; then
2286   echo $ECHO_N "(cached) $ECHO_C" >&6
2287 else
2288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2290 do
2291   IFS=$as_save_IFS
2292   test -z "$as_dir" && as_dir=.
2293   for ac_prog in mkdir gmkdir; do
2294          for ac_exec_ext in '' $ac_executable_extensions; do
2295            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2296            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2297              'mkdir (GNU coreutils) '* | \
2298              'mkdir (coreutils) '* | \
2299              'mkdir (fileutils) '4.1*)
2300                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2301                break 3;;
2302            esac
2303          done
2304        done
2305 done
2306 IFS=$as_save_IFS
2307
2308 fi
2309
2310   if test "${ac_cv_path_mkdir+set}" = set; then
2311     MKDIR_P="$ac_cv_path_mkdir -p"
2312   else
2313     # As a last resort, use the slow shell script.  Don't cache a
2314     # value for MKDIR_P within a source directory, because that will
2315     # break other packages using the cache if that directory is
2316     # removed, or if the value is a relative name.
2317     test -d ./--version && rmdir ./--version
2318     MKDIR_P="$ac_install_sh -d"
2319   fi
2320 fi
2321 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2322 echo "${ECHO_T}$MKDIR_P" >&6; }
2323
2324 mkdir_p="$MKDIR_P"
2325 case $mkdir_p in
2326   [\\/$]* | ?:[\\/]*) ;;
2327   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2328 esac
2329
2330 for ac_prog in gawk mawk nawk awk
2331 do
2332   # Extract the first word of "$ac_prog", so it can be a program name with args.
2333 set dummy $ac_prog; ac_word=$2
2334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2336 if test "${ac_cv_prog_AWK+set}" = set; then
2337   echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339   if test -n "$AWK"; then
2340   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2341 else
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2344 do
2345   IFS=$as_save_IFS
2346   test -z "$as_dir" && as_dir=.
2347   for ac_exec_ext in '' $ac_executable_extensions; do
2348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349     ac_cv_prog_AWK="$ac_prog"
2350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351     break 2
2352   fi
2353 done
2354 done
2355 IFS=$as_save_IFS
2356
2357 fi
2358 fi
2359 AWK=$ac_cv_prog_AWK
2360 if test -n "$AWK"; then
2361   { echo "$as_me:$LINENO: result: $AWK" >&5
2362 echo "${ECHO_T}$AWK" >&6; }
2363 else
2364   { echo "$as_me:$LINENO: result: no" >&5
2365 echo "${ECHO_T}no" >&6; }
2366 fi
2367
2368
2369   test -n "$AWK" && break
2370 done
2371
2372 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2373 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2374 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2375 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2376   echo $ECHO_N "(cached) $ECHO_C" >&6
2377 else
2378   cat >conftest.make <<\_ACEOF
2379 SHELL = /bin/sh
2380 all:
2381         @echo '@@@%%%=$(MAKE)=@@@%%%'
2382 _ACEOF
2383 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2384 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2385   *@@@%%%=?*=@@@%%%*)
2386     eval ac_cv_prog_make_${ac_make}_set=yes;;
2387   *)
2388     eval ac_cv_prog_make_${ac_make}_set=no;;
2389 esac
2390 rm -f conftest.make
2391 fi
2392 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2393   { echo "$as_me:$LINENO: result: yes" >&5
2394 echo "${ECHO_T}yes" >&6; }
2395   SET_MAKE=
2396 else
2397   { echo "$as_me:$LINENO: result: no" >&5
2398 echo "${ECHO_T}no" >&6; }
2399   SET_MAKE="MAKE=${MAKE-make}"
2400 fi
2401
2402 rm -rf .tst 2>/dev/null
2403 mkdir .tst 2>/dev/null
2404 if test -d .tst; then
2405   am__leading_dot=.
2406 else
2407   am__leading_dot=_
2408 fi
2409 rmdir .tst 2>/dev/null
2410
2411 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2412   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2413   # is not polluted with repeated "-I."
2414   am__isrc=' -I$(srcdir)'
2415   # test to see if srcdir already configured
2416   if test -f $srcdir/config.status; then
2417     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2418 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2419    { (exit 1); exit 1; }; }
2420   fi
2421 fi
2422
2423 # test whether we have cygpath
2424 if test -z "$CYGPATH_W"; then
2425   if (cygpath --version) >/dev/null 2>/dev/null; then
2426     CYGPATH_W='cygpath -w'
2427   else
2428     CYGPATH_W=echo
2429   fi
2430 fi
2431
2432
2433 # Define the identity of the package.
2434  PACKAGE=mod_chxj
2435  VERSION=0.13.1rc4
2436
2437
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE "$PACKAGE"
2440 _ACEOF
2441
2442
2443 cat >>confdefs.h <<_ACEOF
2444 #define VERSION "$VERSION"
2445 _ACEOF
2446
2447 # Some tools Automake needs.
2448
2449 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2450
2451
2452 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2453
2454
2455 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2456
2457
2458 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2459
2460
2461 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2462
2463 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2464
2465 # Installed binaries are usually stripped using `strip' when the user
2466 # run `make install-strip'.  However `strip' might not be the right
2467 # tool to use in cross-compilation environments, therefore Automake
2468 # will honor the `STRIP' environment variable to overrule this program.
2469 if test "$cross_compiling" != no; then
2470   if test -n "$ac_tool_prefix"; then
2471   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2472 set dummy ${ac_tool_prefix}strip; ac_word=$2
2473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2475 if test "${ac_cv_prog_STRIP+set}" = set; then
2476   echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478   if test -n "$STRIP"; then
2479   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2480 else
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2483 do
2484   IFS=$as_save_IFS
2485   test -z "$as_dir" && as_dir=.
2486   for ac_exec_ext in '' $ac_executable_extensions; do
2487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490     break 2
2491   fi
2492 done
2493 done
2494 IFS=$as_save_IFS
2495
2496 fi
2497 fi
2498 STRIP=$ac_cv_prog_STRIP
2499 if test -n "$STRIP"; then
2500   { echo "$as_me:$LINENO: result: $STRIP" >&5
2501 echo "${ECHO_T}$STRIP" >&6; }
2502 else
2503   { echo "$as_me:$LINENO: result: no" >&5
2504 echo "${ECHO_T}no" >&6; }
2505 fi
2506
2507
2508 fi
2509 if test -z "$ac_cv_prog_STRIP"; then
2510   ac_ct_STRIP=$STRIP
2511   # Extract the first word of "strip", so it can be a program name with args.
2512 set dummy strip; ac_word=$2
2513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2515 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2516   echo $ECHO_N "(cached) $ECHO_C" >&6
2517 else
2518   if test -n "$ac_ct_STRIP"; then
2519   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2520 else
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2523 do
2524   IFS=$as_save_IFS
2525   test -z "$as_dir" && as_dir=.
2526   for ac_exec_ext in '' $ac_executable_extensions; do
2527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528     ac_cv_prog_ac_ct_STRIP="strip"
2529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530     break 2
2531   fi
2532 done
2533 done
2534 IFS=$as_save_IFS
2535
2536 fi
2537 fi
2538 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2539 if test -n "$ac_ct_STRIP"; then
2540   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2541 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2542 else
2543   { echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6; }
2545 fi
2546
2547   if test "x$ac_ct_STRIP" = x; then
2548     STRIP=":"
2549   else
2550     case $cross_compiling:$ac_tool_warned in
2551 yes:)
2552 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2553 whose name does not start with the host triplet.  If you think this
2554 configuration is useful to you, please write to autoconf@gnu.org." >&5
2555 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2556 whose name does not start with the host triplet.  If you think this
2557 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2558 ac_tool_warned=yes ;;
2559 esac
2560     STRIP=$ac_ct_STRIP
2561   fi
2562 else
2563   STRIP="$ac_cv_prog_STRIP"
2564 fi
2565
2566 fi
2567 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2568
2569 # We need awk for the "check" target.  The system "awk" is bad on
2570 # some platforms.
2571 # Always define AMTAR for backward compatibility.
2572
2573 AMTAR=${AMTAR-"${am_missing_run}tar"}
2574
2575 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2576
2577
2578
2579
2580
2581 ac_config_headers="$ac_config_headers include/config.h"
2582
2583
2584
2585 # Checks for programs.
2586 ac_ext=c
2587 ac_cpp='$CPP $CPPFLAGS'
2588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591 if test -n "$ac_tool_prefix"; then
2592   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2593 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2596 if test "${ac_cv_prog_CC+set}" = set; then
2597   echo $ECHO_N "(cached) $ECHO_C" >&6
2598 else
2599   if test -n "$CC"; then
2600   ac_cv_prog_CC="$CC" # Let the user override the test.
2601 else
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2604 do
2605   IFS=$as_save_IFS
2606   test -z "$as_dir" && as_dir=.
2607   for ac_exec_ext in '' $ac_executable_extensions; do
2608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611     break 2
2612   fi
2613 done
2614 done
2615 IFS=$as_save_IFS
2616
2617 fi
2618 fi
2619 CC=$ac_cv_prog_CC
2620 if test -n "$CC"; then
2621   { echo "$as_me:$LINENO: result: $CC" >&5
2622 echo "${ECHO_T}$CC" >&6; }
2623 else
2624   { echo "$as_me:$LINENO: result: no" >&5
2625 echo "${ECHO_T}no" >&6; }
2626 fi
2627
2628
2629 fi
2630 if test -z "$ac_cv_prog_CC"; then
2631   ac_ct_CC=$CC
2632   # Extract the first word of "gcc", so it can be a program name with args.
2633 set dummy gcc; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637   echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639   if test -n "$ac_ct_CC"; then
2640   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645   IFS=$as_save_IFS
2646   test -z "$as_dir" && as_dir=.
2647   for ac_exec_ext in '' $ac_executable_extensions; do
2648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649     ac_cv_prog_ac_ct_CC="gcc"
2650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651     break 2
2652   fi
2653 done
2654 done
2655 IFS=$as_save_IFS
2656
2657 fi
2658 fi
2659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660 if test -n "$ac_ct_CC"; then
2661   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2662 echo "${ECHO_T}$ac_ct_CC" >&6; }
2663 else
2664   { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2666 fi
2667
2668   if test "x$ac_ct_CC" = x; then
2669     CC=""
2670   else
2671     case $cross_compiling:$ac_tool_warned in
2672 yes:)
2673 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2674 whose name does not start with the host triplet.  If you think this
2675 configuration is useful to you, please write to autoconf@gnu.org." >&5
2676 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2677 whose name does not start with the host triplet.  If you think this
2678 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2679 ac_tool_warned=yes ;;
2680 esac
2681     CC=$ac_ct_CC
2682   fi
2683 else
2684   CC="$ac_cv_prog_CC"
2685 fi
2686
2687 if test -z "$CC"; then
2688           if test -n "$ac_tool_prefix"; then
2689     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2690 set dummy ${ac_tool_prefix}cc; ac_word=$2
2691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2693 if test "${ac_cv_prog_CC+set}" = set; then
2694   echo $ECHO_N "(cached) $ECHO_C" >&6
2695 else
2696   if test -n "$CC"; then
2697   ac_cv_prog_CC="$CC" # Let the user override the test.
2698 else
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 for as_dir in $PATH
2701 do
2702   IFS=$as_save_IFS
2703   test -z "$as_dir" && as_dir=.
2704   for ac_exec_ext in '' $ac_executable_extensions; do
2705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706     ac_cv_prog_CC="${ac_tool_prefix}cc"
2707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708     break 2
2709   fi
2710 done
2711 done
2712 IFS=$as_save_IFS
2713
2714 fi
2715 fi
2716 CC=$ac_cv_prog_CC
2717 if test -n "$CC"; then
2718   { echo "$as_me:$LINENO: result: $CC" >&5
2719 echo "${ECHO_T}$CC" >&6; }
2720 else
2721   { echo "$as_me:$LINENO: result: no" >&5
2722 echo "${ECHO_T}no" >&6; }
2723 fi
2724
2725
2726   fi
2727 fi
2728 if test -z "$CC"; then
2729   # Extract the first word of "cc", so it can be a program name with args.
2730 set dummy cc; ac_word=$2
2731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2733 if test "${ac_cv_prog_CC+set}" = set; then
2734   echo $ECHO_N "(cached) $ECHO_C" >&6
2735 else
2736   if test -n "$CC"; then
2737   ac_cv_prog_CC="$CC" # Let the user override the test.
2738 else
2739   ac_prog_rejected=no
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2742 do
2743   IFS=$as_save_IFS
2744   test -z "$as_dir" && as_dir=.
2745   for ac_exec_ext in '' $ac_executable_extensions; do
2746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2748        ac_prog_rejected=yes
2749        continue
2750      fi
2751     ac_cv_prog_CC="cc"
2752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753     break 2
2754   fi
2755 done
2756 done
2757 IFS=$as_save_IFS
2758
2759 if test $ac_prog_rejected = yes; then
2760   # We found a bogon in the path, so make sure we never use it.
2761   set dummy $ac_cv_prog_CC
2762   shift
2763   if test $# != 0; then
2764     # We chose a different compiler from the bogus one.
2765     # However, it has the same basename, so the bogon will be chosen
2766     # first if we set CC to just the basename; use the full file name.
2767     shift
2768     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2769   fi
2770 fi
2771 fi
2772 fi
2773 CC=$ac_cv_prog_CC
2774 if test -n "$CC"; then
2775   { echo "$as_me:$LINENO: result: $CC" >&5
2776 echo "${ECHO_T}$CC" >&6; }
2777 else
2778   { echo "$as_me:$LINENO: result: no" >&5
2779 echo "${ECHO_T}no" >&6; }
2780 fi
2781
2782
2783 fi
2784 if test -z "$CC"; then
2785   if test -n "$ac_tool_prefix"; then
2786   for ac_prog in cl.exe
2787   do
2788     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2789 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2792 if test "${ac_cv_prog_CC+set}" = set; then
2793   echo $ECHO_N "(cached) $ECHO_C" >&6
2794 else
2795   if test -n "$CC"; then
2796   ac_cv_prog_CC="$CC" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2800 do
2801   IFS=$as_save_IFS
2802   test -z "$as_dir" && as_dir=.
2803   for ac_exec_ext in '' $ac_executable_extensions; do
2804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807     break 2
2808   fi
2809 done
2810 done
2811 IFS=$as_save_IFS
2812
2813 fi
2814 fi
2815 CC=$ac_cv_prog_CC
2816 if test -n "$CC"; then
2817   { echo "$as_me:$LINENO: result: $CC" >&5
2818 echo "${ECHO_T}$CC" >&6; }
2819 else
2820   { echo "$as_me:$LINENO: result: no" >&5
2821 echo "${ECHO_T}no" >&6; }
2822 fi
2823
2824
2825     test -n "$CC" && break
2826   done
2827 fi
2828 if test -z "$CC"; then
2829   ac_ct_CC=$CC
2830   for ac_prog in cl.exe
2831 do
2832   # Extract the first word of "$ac_prog", so it can be a program name with args.
2833 set dummy $ac_prog; ac_word=$2
2834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2836 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2837   echo $ECHO_N "(cached) $ECHO_C" >&6
2838 else
2839   if test -n "$ac_ct_CC"; then
2840   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2841 else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2844 do
2845   IFS=$as_save_IFS
2846   test -z "$as_dir" && as_dir=.
2847   for ac_exec_ext in '' $ac_executable_extensions; do
2848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849     ac_cv_prog_ac_ct_CC="$ac_prog"
2850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851     break 2
2852   fi
2853 done
2854 done
2855 IFS=$as_save_IFS
2856
2857 fi
2858 fi
2859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2860 if test -n "$ac_ct_CC"; then
2861   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2862 echo "${ECHO_T}$ac_ct_CC" >&6; }
2863 else
2864   { echo "$as_me:$LINENO: result: no" >&5
2865 echo "${ECHO_T}no" >&6; }
2866 fi
2867
2868
2869   test -n "$ac_ct_CC" && break
2870 done
2871
2872   if test "x$ac_ct_CC" = x; then
2873     CC=""
2874   else
2875     case $cross_compiling:$ac_tool_warned in
2876 yes:)
2877 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2878 whose name does not start with the host triplet.  If you think this
2879 configuration is useful to you, please write to autoconf@gnu.org." >&5
2880 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2881 whose name does not start with the host triplet.  If you think this
2882 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2883 ac_tool_warned=yes ;;
2884 esac
2885     CC=$ac_ct_CC
2886   fi
2887 fi
2888
2889 fi
2890
2891
2892 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2893 See \`config.log' for more details." >&5
2894 echo "$as_me: error: no acceptable C compiler found in \$PATH
2895 See \`config.log' for more details." >&2;}
2896    { (exit 1); exit 1; }; }
2897
2898 # Provide some information about the compiler.
2899 echo "$as_me:$LINENO: checking for C compiler version" >&5
2900 ac_compiler=`set X $ac_compile; echo $2`
2901 { (ac_try="$ac_compiler --version >&5"
2902 case "(($ac_try" in
2903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904   *) ac_try_echo=$ac_try;;
2905 esac
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907   (eval "$ac_compiler --version >&5") 2>&5
2908   ac_status=$?
2909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910   (exit $ac_status); }
2911 { (ac_try="$ac_compiler -v >&5"
2912 case "(($ac_try" in
2913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914   *) ac_try_echo=$ac_try;;
2915 esac
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917   (eval "$ac_compiler -v >&5") 2>&5
2918   ac_status=$?
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); }
2921 { (ac_try="$ac_compiler -V >&5"
2922 case "(($ac_try" in
2923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924   *) ac_try_echo=$ac_try;;
2925 esac
2926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927   (eval "$ac_compiler -V >&5") 2>&5
2928   ac_status=$?
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); }
2931
2932 cat >conftest.$ac_ext <<_ACEOF
2933 /* confdefs.h.  */
2934 _ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h.  */
2938
2939 int
2940 main ()
2941 {
2942
2943   ;
2944   return 0;
2945 }
2946 _ACEOF
2947 ac_clean_files_save=$ac_clean_files
2948 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2949 # Try to create an executable without -o first, disregard a.out.
2950 # It will help us diagnose broken compilers, and finding out an intuition
2951 # of exeext.
2952 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2953 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2954 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2955 #
2956 # List of possible output files, starting from the most likely.
2957 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2958 # only as a last resort.  b.out is created by i960 compilers.
2959 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2960 #
2961 # The IRIX 6 linker writes into existing files which may not be
2962 # executable, retaining their permissions.  Remove them first so a
2963 # subsequent execution test works.
2964 ac_rmfiles=
2965 for ac_file in $ac_files
2966 do
2967   case $ac_file in
2968     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2969     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2970   esac
2971 done
2972 rm -f $ac_rmfiles
2973
2974 if { (ac_try="$ac_link_default"
2975 case "(($ac_try" in
2976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977   *) ac_try_echo=$ac_try;;
2978 esac
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980   (eval "$ac_link_default") 2>&5
2981   ac_status=$?
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); }; then
2984   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2985 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2986 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2987 # so that the user can short-circuit this test for compilers unknown to
2988 # Autoconf.
2989 for ac_file in $ac_files ''
2990 do
2991   test -f "$ac_file" || continue
2992   case $ac_file in
2993     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2994         ;;
2995     [ab].out )
2996         # We found the default executable, but exeext='' is most
2997         # certainly right.
2998         break;;
2999     *.* )
3000         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3001         then :; else
3002            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3003         fi
3004         # We set ac_cv_exeext here because the later test for it is not
3005         # safe: cross compilers may not add the suffix if given an `-o'
3006         # argument, so we may need to know it at that point already.
3007         # Even if this section looks crufty: it has the advantage of
3008         # actually working.
3009         break;;
3010     * )
3011         break;;
3012   esac
3013 done
3014 test "$ac_cv_exeext" = no && ac_cv_exeext=
3015
3016 else
3017   ac_file=''
3018 fi
3019
3020 { echo "$as_me:$LINENO: result: $ac_file" >&5
3021 echo "${ECHO_T}$ac_file" >&6; }
3022 if test -z "$ac_file"; then
3023   echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3025
3026 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3027 See \`config.log' for more details." >&5
3028 echo "$as_me: error: C compiler cannot create executables
3029 See \`config.log' for more details." >&2;}
3030    { (exit 77); exit 77; }; }
3031 fi
3032
3033 ac_exeext=$ac_cv_exeext
3034
3035 # Check that the compiler produces executables we can run.  If not, either
3036 # the compiler is broken, or we cross compile.
3037 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3038 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3039 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3040 # If not cross compiling, check that we can run a simple program.
3041 if test "$cross_compiling" != yes; then
3042   if { ac_try='./$ac_file'
3043   { (case "(($ac_try" in
3044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045   *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048   (eval "$ac_try") 2>&5
3049   ac_status=$?
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); }; }; then
3052     cross_compiling=no
3053   else
3054     if test "$cross_compiling" = maybe; then
3055         cross_compiling=yes
3056     else
3057         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3058 If you meant to cross compile, use \`--host'.
3059 See \`config.log' for more details." >&5
3060 echo "$as_me: error: cannot run C compiled programs.
3061 If you meant to cross compile, use \`--host'.
3062 See \`config.log' for more details." >&2;}
3063    { (exit 1); exit 1; }; }
3064     fi
3065   fi
3066 fi
3067 { echo "$as_me:$LINENO: result: yes" >&5
3068 echo "${ECHO_T}yes" >&6; }
3069
3070 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3071 ac_clean_files=$ac_clean_files_save
3072 # Check that the compiler produces executables we can run.  If not, either
3073 # the compiler is broken, or we cross compile.
3074 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3075 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3076 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3077 echo "${ECHO_T}$cross_compiling" >&6; }
3078
3079 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3080 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3081 if { (ac_try="$ac_link"
3082 case "(($ac_try" in
3083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084   *) ac_try_echo=$ac_try;;
3085 esac
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087   (eval "$ac_link") 2>&5
3088   ac_status=$?
3089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090   (exit $ac_status); }; then
3091   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3092 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3093 # work properly (i.e., refer to `conftest.exe'), while it won't with
3094 # `rm'.
3095 for ac_file in conftest.exe conftest conftest.*; do
3096   test -f "$ac_file" || continue
3097   case $ac_file in
3098     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3099     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3100           break;;
3101     * ) break;;
3102   esac
3103 done
3104 else
3105   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3106 See \`config.log' for more details." >&5
3107 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3108 See \`config.log' for more details." >&2;}
3109    { (exit 1); exit 1; }; }
3110 fi
3111
3112 rm -f conftest$ac_cv_exeext
3113 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3114 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3115
3116 rm -f conftest.$ac_ext
3117 EXEEXT=$ac_cv_exeext
3118 ac_exeext=$EXEEXT
3119 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3120 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3121 if test "${ac_cv_objext+set}" = set; then
3122   echo $ECHO_N "(cached) $ECHO_C" >&6
3123 else
3124   cat >conftest.$ac_ext <<_ACEOF
3125 /* confdefs.h.  */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h.  */
3130
3131 int
3132 main ()
3133 {
3134
3135   ;
3136   return 0;
3137 }
3138 _ACEOF
3139 rm -f conftest.o conftest.obj
3140 if { (ac_try="$ac_compile"
3141 case "(($ac_try" in
3142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143   *) ac_try_echo=$ac_try;;
3144 esac
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146   (eval "$ac_compile") 2>&5
3147   ac_status=$?
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); }; then
3150   for ac_file in conftest.o conftest.obj conftest.*; do
3151   test -f "$ac_file" || continue;
3152   case $ac_file in
3153     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3154     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3155        break;;
3156   esac
3157 done
3158 else
3159   echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3161
3162 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3163 See \`config.log' for more details." >&5
3164 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3165 See \`config.log' for more details." >&2;}
3166    { (exit 1); exit 1; }; }
3167 fi
3168
3169 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3170 fi
3171 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3172 echo "${ECHO_T}$ac_cv_objext" >&6; }
3173 OBJEXT=$ac_cv_objext
3174 ac_objext=$OBJEXT
3175 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3176 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3177 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3178   echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180   cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h.  */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h.  */
3186
3187 int
3188 main ()
3189 {
3190 #ifndef __GNUC__
3191        choke me
3192 #endif
3193
3194   ;
3195   return 0;
3196 }
3197 _ACEOF
3198 rm -f conftest.$ac_objext
3199 if { (ac_try="$ac_compile"
3200 case "(($ac_try" in
3201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202   *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205   (eval "$ac_compile") 2>conftest.er1
3206   ac_status=$?
3207   grep -v '^ *+' conftest.er1 >conftest.err
3208   rm -f conftest.er1
3209   cat conftest.err >&5
3210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211   (exit $ac_status); } && {
3212          test -z "$ac_c_werror_flag" ||
3213          test ! -s conftest.err
3214        } && test -s conftest.$ac_objext; then
3215   ac_compiler_gnu=yes
3216 else
3217   echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3219
3220         ac_compiler_gnu=no
3221 fi
3222
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3225
3226 fi
3227 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3228 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3229 GCC=`test $ac_compiler_gnu = yes && echo yes`
3230 ac_test_CFLAGS=${CFLAGS+set}
3231 ac_save_CFLAGS=$CFLAGS
3232 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3233 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3234 if test "${ac_cv_prog_cc_g+set}" = set; then
3235   echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237   ac_save_c_werror_flag=$ac_c_werror_flag
3238    ac_c_werror_flag=yes
3239    ac_cv_prog_cc_g=no
3240    CFLAGS="-g"
3241    cat >conftest.$ac_ext <<_ACEOF
3242 /* confdefs.h.  */
3243 _ACEOF
3244 cat confdefs.h >>conftest.$ac_ext
3245 cat >>conftest.$ac_ext <<_ACEOF
3246 /* end confdefs.h.  */
3247
3248 int
3249 main ()
3250 {
3251
3252   ;
3253   return 0;
3254 }
3255 _ACEOF
3256 rm -f conftest.$ac_objext
3257 if { (ac_try="$ac_compile"
3258 case "(($ac_try" in
3259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260   *) ac_try_echo=$ac_try;;
3261 esac
3262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263   (eval "$ac_compile") 2>conftest.er1
3264   ac_status=$?
3265   grep -v '^ *+' conftest.er1 >conftest.err
3266   rm -f conftest.er1
3267   cat conftest.err >&5
3268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269   (exit $ac_status); } && {
3270          test -z "$ac_c_werror_flag" ||
3271          test ! -s conftest.err
3272        } && test -s conftest.$ac_objext; then
3273   ac_cv_prog_cc_g=yes
3274 else
3275   echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3277
3278         CFLAGS=""
3279       cat >conftest.$ac_ext <<_ACEOF
3280 /* confdefs.h.  */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h.  */
3285
3286 int
3287 main ()
3288 {
3289
3290   ;
3291   return 0;
3292 }
3293 _ACEOF
3294 rm -f conftest.$ac_objext
3295 if { (ac_try="$ac_compile"
3296 case "(($ac_try" in
3297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298   *) ac_try_echo=$ac_try;;
3299 esac
3300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301   (eval "$ac_compile") 2>conftest.er1
3302   ac_status=$?
3303   grep -v '^ *+' conftest.er1 >conftest.err
3304   rm -f conftest.er1
3305   cat conftest.err >&5
3306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307   (exit $ac_status); } && {
3308          test -z "$ac_c_werror_flag" ||
3309          test ! -s conftest.err
3310        } && test -s conftest.$ac_objext; then
3311   :
3312 else
3313   echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3315
3316         ac_c_werror_flag=$ac_save_c_werror_flag
3317          CFLAGS="-g"
3318          cat >conftest.$ac_ext <<_ACEOF
3319 /* confdefs.h.  */
3320 _ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h.  */
3324
3325 int
3326 main ()
3327 {
3328
3329   ;
3330   return 0;
3331 }
3332 _ACEOF
3333 rm -f conftest.$ac_objext
3334 if { (ac_try="$ac_compile"
3335 case "(($ac_try" in
3336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337   *) ac_try_echo=$ac_try;;
3338 esac
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340   (eval "$ac_compile") 2>conftest.er1
3341   ac_status=$?
3342   grep -v '^ *+' conftest.er1 >conftest.err
3343   rm -f conftest.er1
3344   cat conftest.err >&5
3345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346   (exit $ac_status); } && {
3347          test -z "$ac_c_werror_flag" ||
3348          test ! -s conftest.err
3349        } && test -s conftest.$ac_objext; then
3350   ac_cv_prog_cc_g=yes
3351 else
3352   echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3354
3355
3356 fi
3357
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 fi
3360
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 fi
3363
3364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365    ac_c_werror_flag=$ac_save_c_werror_flag
3366 fi
3367 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3368 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3369 if test "$ac_test_CFLAGS" = set; then
3370   CFLAGS=$ac_save_CFLAGS
3371 elif test $ac_cv_prog_cc_g = yes; then
3372   if test "$GCC" = yes; then
3373     CFLAGS="-g -O2"
3374   else
3375     CFLAGS="-g"
3376   fi
3377 else
3378   if test "$GCC" = yes; then
3379     CFLAGS="-O2"
3380   else
3381     CFLAGS=
3382   fi
3383 fi
3384 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3385 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3386 if test "${ac_cv_prog_cc_c89+set}" = set; then
3387   echo $ECHO_N "(cached) $ECHO_C" >&6
3388 else
3389   ac_cv_prog_cc_c89=no
3390 ac_save_CC=$CC
3391 cat >conftest.$ac_ext <<_ACEOF
3392 /* confdefs.h.  */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h.  */
3397 #include <stdarg.h>
3398 #include <stdio.h>
3399 #include <sys/types.h>
3400 #include <sys/stat.h>
3401 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3402 struct buf { int x; };
3403 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3404 static char *e (p, i)
3405      char **p;
3406      int i;
3407 {
3408   return p[i];
3409 }
3410 static char *f (char * (*g) (char **, int), char **p, ...)
3411 {
3412   char *s;
3413   va_list v;
3414   va_start (v,p);
3415   s = g (p, va_arg (v,int));
3416   va_end (v);
3417   return s;
3418 }
3419
3420 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3421    function prototypes and stuff, but not '\xHH' hex character constants.
3422    These don't provoke an error unfortunately, instead are silently treated
3423    as 'x'.  The following induces an error, until -std is added to get
3424    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3425    array size at least.  It's necessary to write '\x00'==0 to get something
3426    that's true only with -std.  */
3427 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3428
3429 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3430    inside strings and character constants.  */
3431 #define FOO(x) 'x'
3432 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3433
3434 int test (int i, double x);
3435 struct s1 {int (*f) (int a);};
3436 struct s2 {int (*f) (double a);};
3437 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3438 int argc;
3439 char **argv;
3440 int
3441 main ()
3442 {
3443 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3444   ;
3445   return 0;
3446 }
3447 _ACEOF
3448 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3449         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3450 do
3451   CC="$ac_save_CC $ac_arg"
3452   rm -f conftest.$ac_objext
3453 if { (ac_try="$ac_compile"
3454 case "(($ac_try" in
3455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456   *) ac_try_echo=$ac_try;;
3457 esac
3458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3459   (eval "$ac_compile") 2>conftest.er1
3460   ac_status=$?
3461   grep -v '^ *+' conftest.er1 >conftest.err
3462   rm -f conftest.er1
3463   cat conftest.err >&5
3464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465   (exit $ac_status); } && {
3466          test -z "$ac_c_werror_flag" ||
3467          test ! -s conftest.err
3468        } && test -s conftest.$ac_objext; then
3469   ac_cv_prog_cc_c89=$ac_arg
3470 else
3471   echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3473
3474
3475 fi
3476
3477 rm -f core conftest.err conftest.$ac_objext
3478   test "x$ac_cv_prog_cc_c89" != "xno" && break
3479 done
3480 rm -f conftest.$ac_ext
3481 CC=$ac_save_CC
3482
3483 fi
3484 # AC_CACHE_VAL
3485 case "x$ac_cv_prog_cc_c89" in
3486   x)
3487     { echo "$as_me:$LINENO: result: none needed" >&5
3488 echo "${ECHO_T}none needed" >&6; } ;;
3489   xno)
3490     { echo "$as_me:$LINENO: result: unsupported" >&5
3491 echo "${ECHO_T}unsupported" >&6; } ;;
3492   *)
3493     CC="$CC $ac_cv_prog_cc_c89"
3494     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3495 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3496 esac
3497
3498
3499 ac_ext=c
3500 ac_cpp='$CPP $CPPFLAGS'
3501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504 DEPDIR="${am__leading_dot}deps"
3505
3506 ac_config_commands="$ac_config_commands depfiles"
3507
3508
3509 am_make=${MAKE-make}
3510 cat > confinc << 'END'
3511 am__doit:
3512         @echo done
3513 .PHONY: am__doit
3514 END
3515 # If we don't find an include directive, just comment out the code.
3516 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3517 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3518 am__include="#"
3519 am__quote=
3520 _am_result=none
3521 # First try GNU make style include.
3522 echo "include confinc" > confmf
3523 # We grep out `Entering directory' and `Leaving directory'
3524 # messages which can occur if `w' ends up in MAKEFLAGS.
3525 # In particular we don't look at `^make:' because GNU make might
3526 # be invoked under some other name (usually "gmake"), in which
3527 # case it prints its new name instead of `make'.
3528 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3529    am__include=include
3530    am__quote=
3531    _am_result=GNU
3532 fi
3533 # Now try BSD make style include.
3534 if test "$am__include" = "#"; then
3535    echo '.include "confinc"' > confmf
3536    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3537       am__include=.include
3538       am__quote="\""
3539       _am_result=BSD
3540    fi
3541 fi
3542
3543
3544 { echo "$as_me:$LINENO: result: $_am_result" >&5
3545 echo "${ECHO_T}$_am_result" >&6; }
3546 rm -f confinc confmf
3547
3548 # Check whether --enable-dependency-tracking was given.
3549 if test "${enable_dependency_tracking+set}" = set; then
3550   enableval=$enable_dependency_tracking;
3551 fi
3552
3553 if test "x$enable_dependency_tracking" != xno; then
3554   am_depcomp="$ac_aux_dir/depcomp"
3555   AMDEPBACKSLASH='\'
3556 fi
3557  if test "x$enable_dependency_tracking" != xno; then
3558   AMDEP_TRUE=
3559   AMDEP_FALSE='#'
3560 else
3561   AMDEP_TRUE='#'
3562   AMDEP_FALSE=
3563 fi
3564
3565
3566
3567 depcc="$CC"   am_compiler_list=
3568
3569 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3570 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3571 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3572   echo $ECHO_N "(cached) $ECHO_C" >&6
3573 else
3574   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3575   # We make a subdir and do the tests there.  Otherwise we can end up
3576   # making bogus files that we don't know about and never remove.  For
3577   # instance it was reported that on HP-UX the gcc test will end up
3578   # making a dummy file named `D' -- because `-MD' means `put the output
3579   # in D'.
3580   mkdir conftest.dir
3581   # Copy depcomp to subdir because otherwise we won't find it if we're
3582   # using a relative directory.
3583   cp "$am_depcomp" conftest.dir
3584   cd conftest.dir
3585   # We will build objects and dependencies in a subdirectory because
3586   # it helps to detect inapplicable dependency modes.  For instance
3587   # both Tru64's cc and ICC support -MD to output dependencies as a
3588   # side effect of compilation, but ICC will put the dependencies in
3589   # the current directory while Tru64 will put them in the object
3590   # directory.
3591   mkdir sub
3592
3593   am_cv_CC_dependencies_compiler_type=none
3594   if test "$am_compiler_list" = ""; then
3595      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3596   fi
3597   for depmode in $am_compiler_list; do
3598     # Setup a source with many dependencies, because some compilers
3599     # like to wrap large dependency lists on column 80 (with \), and
3600     # we should not choose a depcomp mode which is confused by this.
3601     #
3602     # We need to recreate these files for each test, as the compiler may
3603     # overwrite some of them when testing with obscure command lines.
3604     # This happens at least with the AIX C compiler.
3605     : > sub/conftest.c
3606     for i in 1 2 3 4 5 6; do
3607       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3608       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3609       # Solaris 8's {/usr,}/bin/sh.
3610       touch sub/conftst$i.h
3611     done
3612     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3613
3614     case $depmode in
3615     nosideeffect)
3616       # after this tag, mechanisms are not by side-effect, so they'll
3617       # only be used when explicitly requested
3618       if test "x$enable_dependency_tracking" = xyes; then
3619         continue
3620       else
3621         break
3622       fi
3623       ;;
3624     none) break ;;
3625     esac
3626     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3627     # mode.  It turns out that the SunPro C++ compiler does not properly
3628     # handle `-M -o', and we need to detect this.
3629     if depmode=$depmode \
3630        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3631        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3632        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3633          >/dev/null 2>conftest.err &&
3634        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3635        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3636        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3637        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3638       # icc doesn't choke on unknown options, it will just issue warnings
3639       # or remarks (even with -Werror).  So we grep stderr for any message
3640       # that says an option was ignored or not supported.
3641       # When given -MP, icc 7.0 and 7.1 complain thusly:
3642       #   icc: Command line warning: ignoring option '-M'; no argument required
3643       # The diagnosis changed in icc 8.0:
3644       #   icc: Command line remark: option '-MP' not supported
3645       if (grep 'ignoring option' conftest.err ||
3646           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3647         am_cv_CC_dependencies_compiler_type=$depmode
3648         break
3649       fi
3650     fi
3651   done
3652
3653   cd ..
3654   rm -rf conftest.dir
3655 else
3656   am_cv_CC_dependencies_compiler_type=none
3657 fi
3658
3659 fi
3660 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3661 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3662 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3663
3664  if
3665   test "x$enable_dependency_tracking" != xno \
3666   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3667   am__fastdepCC_TRUE=
3668   am__fastdepCC_FALSE='#'
3669 else
3670   am__fastdepCC_TRUE='#'
3671   am__fastdepCC_FALSE=
3672 fi
3673
3674
3675 # Find a good install program.  We prefer a C program (faster),
3676 # so one script is as good as another.  But avoid the broken or
3677 # incompatible versions:
3678 # SysV /etc/install, /usr/sbin/install
3679 # SunOS /usr/etc/install
3680 # IRIX /sbin/install
3681 # AIX /bin/install
3682 # AmigaOS /C/install, which installs bootblocks on floppy discs
3683 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3684 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3685 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3686 # OS/2's system install, which has a completely different semantic
3687 # ./install, which can be erroneously created by make from ./install.sh.
3688 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3689 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3690 if test -z "$INSTALL"; then
3691 if test "${ac_cv_path_install+set}" = set; then
3692   echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH
3696 do
3697   IFS=$as_save_IFS
3698   test -z "$as_dir" && as_dir=.
3699   # Account for people who put trailing slashes in PATH elements.
3700 case $as_dir/ in
3701   ./ | .// | /cC/* | \
3702   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3703   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3704   /usr/ucb/* ) ;;
3705   *)
3706     # OSF1 and SCO ODT 3.0 have their own names for install.
3707     # Don't use installbsd from OSF since it installs stuff as root
3708     # by default.
3709     for ac_prog in ginstall scoinst install; do
3710       for ac_exec_ext in '' $ac_executable_extensions; do
3711         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3712           if test $ac_prog = install &&
3713             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3714             # AIX install.  It has an incompatible calling convention.
3715             :
3716           elif test $ac_prog = install &&
3717             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3718             # program-specific install script used by HP pwplus--don't use.
3719             :
3720           else
3721             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3722             break 3
3723           fi
3724         fi
3725       done
3726     done
3727     ;;
3728 esac
3729 done
3730 IFS=$as_save_IFS
3731
3732
3733 fi
3734   if test "${ac_cv_path_install+set}" = set; then
3735     INSTALL=$ac_cv_path_install
3736   else
3737     # As a last resort, use the slow shell script.  Don't cache a
3738     # value for INSTALL within a source directory, because that will
3739     # break other packages using the cache if that directory is
3740     # removed, or if the value is a relative name.
3741     INSTALL=$ac_install_sh
3742   fi
3743 fi
3744 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3745 echo "${ECHO_T}$INSTALL" >&6; }
3746
3747 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3748 # It thinks the first close brace ends the variable substitution.
3749 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3750
3751 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3752
3753 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3754
3755
3756
3757 # Check whether --enable-shared was given.
3758 if test "${enable_shared+set}" = set; then
3759   enableval=$enable_shared; p=${PACKAGE-default}
3760     case $enableval in
3761     yes) enable_shared=yes ;;
3762     no) enable_shared=no ;;
3763     *)
3764       enable_shared=no
3765       # Look at the argument we got.  We use all the common list separators.
3766       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3767       for pkg in $enableval; do
3768         IFS="$lt_save_ifs"
3769         if test "X$pkg" = "X$p"; then
3770           enable_shared=yes
3771         fi
3772       done
3773       IFS="$lt_save_ifs"
3774       ;;
3775     esac
3776 else
3777   enable_shared=yes
3778 fi
3779
3780
3781 # Check whether --enable-static was given.
3782 if test "${enable_static+set}" = set; then
3783   enableval=$enable_static; p=${PACKAGE-default}
3784     case $enableval in
3785     yes) enable_static=yes ;;
3786     no) enable_static=no ;;
3787     *)
3788      enable_static=no
3789       # Look at the argument we got.  We use all the common list separators.
3790       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3791       for pkg in $enableval; do
3792         IFS="$lt_save_ifs"
3793         if test "X$pkg" = "X$p"; then
3794           enable_static=yes
3795         fi
3796       done
3797       IFS="$lt_save_ifs"
3798       ;;
3799     esac
3800 else
3801   enable_static=yes
3802 fi
3803
3804
3805 # Check whether --enable-fast-install was given.
3806 if test "${enable_fast_install+set}" = set; then
3807   enableval=$enable_fast_install; p=${PACKAGE-default}
3808     case $enableval in
3809     yes) enable_fast_install=yes ;;
3810     no) enable_fast_install=no ;;
3811     *)
3812       enable_fast_install=no
3813       # Look at the argument we got.  We use all the common list separators.
3814       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3815       for pkg in $enableval; do
3816         IFS="$lt_save_ifs"
3817         if test "X$pkg" = "X$p"; then
3818           enable_fast_install=yes
3819         fi
3820       done
3821       IFS="$lt_save_ifs"
3822       ;;
3823     esac
3824 else
3825   enable_fast_install=yes
3826 fi
3827
3828
3829 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3830 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3831 if test "${lt_cv_path_SED+set}" = set; then
3832   echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834   # Loop through the user's path and test for sed and gsed.
3835 # Then use that list of sed's as ones to test for truncation.
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH
3838 do
3839   IFS=$as_save_IFS
3840   test -z "$as_dir" && as_dir=.
3841   for lt_ac_prog in sed gsed; do
3842     for ac_exec_ext in '' $ac_executable_extensions; do
3843       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3844         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3845       fi
3846     done
3847   done
3848 done
3849 IFS=$as_save_IFS
3850 lt_ac_max=0
3851 lt_ac_count=0
3852 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3853 # along with /bin/sed that truncates output.
3854 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3855   test ! -f $lt_ac_sed && continue
3856   cat /dev/null > conftest.in
3857   lt_ac_count=0
3858   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3859   # Check for GNU sed and select it if it is found.
3860   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3861     lt_cv_path_SED=$lt_ac_sed
3862     break
3863   fi
3864   while true; do
3865     cat conftest.in conftest.in >conftest.tmp
3866     mv conftest.tmp conftest.in
3867     cp conftest.in conftest.nl
3868     echo >>conftest.nl
3869     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3870     cmp -s conftest.out conftest.nl || break
3871     # 10000 chars as input seems more than enough
3872     test $lt_ac_count -gt 10 && break
3873     lt_ac_count=`expr $lt_ac_count + 1`
3874     if test $lt_ac_count -gt $lt_ac_max; then
3875       lt_ac_max=$lt_ac_count
3876       lt_cv_path_SED=$lt_ac_sed
3877     fi
3878   done
3879 done
3880
3881 fi
3882
3883 SED=$lt_cv_path_SED
3884
3885 { echo "$as_me:$LINENO: result: $SED" >&5
3886 echo "${ECHO_T}$SED" >&6; }
3887
3888 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3889 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3890 if test "${ac_cv_path_GREP+set}" = set; then
3891   echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893   # Extract the first word of "grep ggrep" to use in msg output
3894 if test -z "$GREP"; then
3895 set dummy grep ggrep; ac_prog_name=$2
3896 if test "${ac_cv_path_GREP+set}" = set; then
3897   echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899   ac_path_GREP_found=false
3900 # Loop through the user's path and test for each of PROGNAME-LIST
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3903 do
3904   IFS=$as_save_IFS
3905   test -z "$as_dir" && as_dir=.
3906   for ac_prog in grep ggrep; do
3907   for ac_exec_ext in '' $ac_executable_extensions; do
3908     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3909     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3910     # Check for GNU ac_path_GREP and select it if it is found.
3911   # Check for GNU $ac_path_GREP
3912 case `"$ac_path_GREP" --version 2>&1` in
3913 *GNU*)
3914   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3915 *)
3916   ac_count=0
3917   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3918   while :
3919   do
3920     cat "conftest.in" "conftest.in" >"conftest.tmp"
3921     mv "conftest.tmp" "conftest.in"
3922     cp "conftest.in" "conftest.nl"
3923     echo 'GREP' >> "conftest.nl"
3924     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3925     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3926     ac_count=`expr $ac_count + 1`
3927     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3928       # Best one so far, save it but keep looking for a better one
3929       ac_cv_path_GREP="$ac_path_GREP"
3930       ac_path_GREP_max=$ac_count
3931     fi
3932     # 10*(2^10) chars as input seems more than enough
3933     test $ac_count -gt 10 && break
3934   done
3935   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3936 esac
3937
3938
3939     $ac_path_GREP_found && break 3
3940   done
3941 done
3942
3943 done
3944 IFS=$as_save_IFS
3945
3946
3947 fi
3948
3949 GREP="$ac_cv_path_GREP"
3950 if test -z "$GREP"; then
3951   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3952 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3953    { (exit 1); exit 1; }; }
3954 fi
3955
3956 else
3957   ac_cv_path_GREP=$GREP
3958 fi
3959
3960
3961 fi
3962 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3963 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3964  GREP="$ac_cv_path_GREP"
3965
3966
3967 { echo "$as_me:$LINENO: checking for egrep" >&5
3968 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3969 if test "${ac_cv_path_EGREP+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3973    then ac_cv_path_EGREP="$GREP -E"
3974    else
3975      # Extract the first word of "egrep" to use in msg output
3976 if test -z "$EGREP"; then
3977 set dummy egrep; ac_prog_name=$2
3978 if test "${ac_cv_path_EGREP+set}" = set; then
3979   echo $ECHO_N "(cached) $ECHO_C" >&6
3980 else
3981   ac_path_EGREP_found=false
3982 # Loop through the user's path and test for each of PROGNAME-LIST
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3985 do
3986   IFS=$as_save_IFS
3987   test -z "$as_dir" && as_dir=.
3988   for ac_prog in egrep; do
3989   for ac_exec_ext in '' $ac_executable_extensions; do
3990     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3991     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3992     # Check for GNU ac_path_EGREP and select it if it is found.
3993   # Check for GNU $ac_path_EGREP
3994 case `"$ac_path_EGREP" --version 2>&1` in
3995 *GNU*)
3996   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3997 *)
3998   ac_count=0
3999   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4000   while :
4001   do
4002     cat "conftest.in" "conftest.in" >"conftest.tmp"
4003     mv "conftest.tmp" "conftest.in"
4004     cp "conftest.in" "conftest.nl"
4005     echo 'EGREP' >> "conftest.nl"
4006     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4007     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4008     ac_count=`expr $ac_count + 1`
4009     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4010       # Best one so far, save it but keep looking for a better one
4011       ac_cv_path_EGREP="$ac_path_EGREP"
4012       ac_path_EGREP_max=$ac_count
4013     fi
4014     # 10*(2^10) chars as input seems more than enough
4015     test $ac_count -gt 10 && break
4016   done
4017   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4018 esac
4019
4020
4021     $ac_path_EGREP_found && break 3
4022   done
4023 done
4024
4025 done
4026 IFS=$as_save_IFS
4027
4028
4029 fi
4030
4031 EGREP="$ac_cv_path_EGREP"
4032 if test -z "$EGREP"; then
4033   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4034 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4035    { (exit 1); exit 1; }; }
4036 fi
4037
4038 else
4039   ac_cv_path_EGREP=$EGREP
4040 fi
4041
4042
4043    fi
4044 fi
4045 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4046 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4047  EGREP="$ac_cv_path_EGREP"
4048
4049
4050
4051 # Check whether --with-gnu-ld was given.
4052 if test "${with_gnu_ld+set}" = set; then
4053   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4054 else
4055   with_gnu_ld=no
4056 fi
4057
4058 ac_prog=ld
4059 if test "$GCC" = yes; then
4060   # Check if gcc -print-prog-name=ld gives a path.
4061   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4062 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4063   case $host in
4064   *-*-mingw*)
4065     # gcc leaves a trailing carriage return which upsets mingw
4066     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4067   *)
4068     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4069   esac
4070   case $ac_prog in
4071     # Accept absolute paths.
4072     [\\/]* | ?:[\\/]*)
4073       re_direlt='/[^/][^/]*/\.\./'
4074       # Canonicalize the pathname of ld
4075       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4076       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4077         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4078       done
4079       test -z "$LD" && LD="$ac_prog"
4080       ;;
4081   "")
4082     # If it fails, then pretend we aren't using GCC.
4083     ac_prog=ld
4084     ;;
4085   *)
4086     # If it is relative, then search for the first ld in PATH.
4087     with_gnu_ld=unknown
4088     ;;
4089   esac
4090 elif test "$with_gnu_ld" = yes; then
4091   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4092 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4093 else
4094   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4095 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4096 fi
4097 if test "${lt_cv_path_LD+set}" = set; then
4098   echo $ECHO_N "(cached) $ECHO_C" >&6
4099 else
4100   if test -z "$LD"; then
4101   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4102   for ac_dir in $PATH; do
4103     IFS="$lt_save_ifs"
4104     test -z "$ac_dir" && ac_dir=.
4105     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4106       lt_cv_path_LD="$ac_dir/$ac_prog"
4107       # Check to see if the program is GNU ld.  I'd rather use --version,
4108       # but apparently some variants of GNU ld only accept -v.
4109       # Break only if it was the GNU/non-GNU ld that we prefer.
4110       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4111       *GNU* | *'with BFD'*)
4112         test "$with_gnu_ld" != no && break
4113         ;;
4114       *)
4115         test "$with_gnu_ld" != yes && break
4116         ;;
4117       esac
4118     fi
4119   done
4120   IFS="$lt_save_ifs"
4121 else
4122   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4123 fi
4124 fi
4125
4126 LD="$lt_cv_path_LD"
4127 if test -n "$LD"; then
4128   { echo "$as_me:$LINENO: result: $LD" >&5
4129 echo "${ECHO_T}$LD" >&6; }
4130 else
4131   { echo "$as_me:$LINENO: result: no" >&5
4132 echo "${ECHO_T}no" >&6; }
4133 fi
4134 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4135 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4136    { (exit 1); exit 1; }; }
4137 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4138 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4139 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4140   echo $ECHO_N "(cached) $ECHO_C" >&6
4141 else
4142   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4143 case `$LD -v 2>&1 </dev/null` in
4144 *GNU* | *'with BFD'*)
4145   lt_cv_prog_gnu_ld=yes
4146   ;;
4147 *)
4148   lt_cv_prog_gnu_ld=no
4149   ;;
4150 esac
4151 fi
4152 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4153 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4154 with_gnu_ld=$lt_cv_prog_gnu_ld
4155
4156
4157 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4158 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4159 if test "${lt_cv_ld_reload_flag+set}" = set; then
4160   echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162   lt_cv_ld_reload_flag='-r'
4163 fi
4164 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4165 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4166 reload_flag=$lt_cv_ld_reload_flag
4167 case $reload_flag in
4168 "" | " "*) ;;
4169 *) reload_flag=" $reload_flag" ;;
4170 esac
4171 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4172 case $host_os in
4173   darwin*)
4174     if test "$GCC" = yes; then
4175       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4176     else
4177       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4178     fi
4179     ;;
4180 esac
4181
4182 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4183 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4184 if test "${lt_cv_path_NM+set}" = set; then
4185   echo $ECHO_N "(cached) $ECHO_C" >&6
4186 else
4187   if test -n "$NM"; then
4188   # Let the user override the test.
4189   lt_cv_path_NM="$NM"
4190 else
4191   lt_nm_to_check="${ac_tool_prefix}nm"
4192   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4193     lt_nm_to_check="$lt_nm_to_check nm"
4194   fi
4195   for lt_tmp_nm in $lt_nm_to_check; do
4196     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4197     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4198       IFS="$lt_save_ifs"
4199       test -z "$ac_dir" && ac_dir=.
4200       tmp_nm="$ac_dir/$lt_tmp_nm"
4201       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4202         # Check to see if the nm accepts a BSD-compat flag.
4203         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4204         #   nm: unknown option "B" ignored
4205         # Tru64's nm complains that /dev/null is an invalid object file
4206         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4207         */dev/null* | *'Invalid file or object type'*)
4208           lt_cv_path_NM="$tmp_nm -B"
4209           break
4210           ;;
4211         *)
4212           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4213           */dev/null*)
4214             lt_cv_path_NM="$tmp_nm -p"
4215             break
4216             ;;
4217           *)
4218             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4219             continue # so that we can try to find one that supports BSD flags
4220             ;;
4221           esac
4222           ;;
4223         esac
4224       fi
4225     done
4226     IFS="$lt_save_ifs"
4227   done
4228   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4229 fi
4230 fi
4231 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4232 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4233 NM="$lt_cv_path_NM"
4234
4235 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4236 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4237 LN_S=$as_ln_s
4238 if test "$LN_S" = "ln -s"; then
4239   { echo "$as_me:$LINENO: result: yes" >&5
4240 echo "${ECHO_T}yes" >&6; }
4241 else
4242   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4243 echo "${ECHO_T}no, using $LN_S" >&6; }
4244 fi
4245
4246 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4247 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4248 if test "${lt_cv_deplibs_check_method+set}" = set; then
4249   echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251   lt_cv_file_magic_cmd='$MAGIC_CMD'
4252 lt_cv_file_magic_test_file=
4253 lt_cv_deplibs_check_method='unknown'
4254 # Need to set the preceding variable on all platforms that support
4255 # interlibrary dependencies.
4256 # 'none' -- dependencies not supported.
4257 # `unknown' -- same as none, but documents that we really don't know.
4258 # 'pass_all' -- all dependencies passed with no checks.
4259 # 'test_compile' -- check by making test program.
4260 # 'file_magic [[regex]]' -- check by looking for files in library path
4261 # which responds to the $file_magic_cmd with a given extended regex.
4262 # If you have `file' or equivalent on your system and you're not sure
4263 # whether `pass_all' will *always* work, you probably want this one.
4264
4265 case $host_os in
4266 aix[4-9]*)
4267   lt_cv_deplibs_check_method=pass_all
4268   ;;
4269
4270 beos*)
4271   lt_cv_deplibs_check_method=pass_all
4272   ;;
4273
4274 bsdi[45]*)
4275   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4276   lt_cv_file_magic_cmd='/usr/bin/file -L'
4277   lt_cv_file_magic_test_file=/shlib/libc.so
4278   ;;
4279
4280 cygwin*)
4281   # func_win32_libid is a shell function defined in ltmain.sh
4282   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4283   lt_cv_file_magic_cmd='func_win32_libid'
4284   ;;
4285
4286 mingw* | pw32*)
4287   # Base MSYS/MinGW do not provide the 'file' command needed by
4288   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4289   # unless we find 'file', for example because we are cross-compiling.
4290   if ( file / ) >/dev/null 2>&1; then
4291     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4292     lt_cv_file_magic_cmd='func_win32_libid'
4293   else
4294     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4295     lt_cv_file_magic_cmd='$OBJDUMP -f'
4296   fi
4297   ;;
4298
4299 darwin* | rhapsody*)
4300   lt_cv_deplibs_check_method=pass_all
4301   ;;
4302
4303 freebsd* | dragonfly*)
4304   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4305     case $host_cpu in
4306     i*86 )
4307       # Not sure whether the presence of OpenBSD here was a mistake.
4308       # Let's accept both of them until this is cleared up.
4309       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4310       lt_cv_file_magic_cmd=/usr/bin/file
4311       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4312       ;;
4313     esac
4314   else
4315     lt_cv_deplibs_check_method=pass_all
4316   fi
4317   ;;
4318
4319 gnu*)
4320   lt_cv_deplibs_check_method=pass_all
4321   ;;
4322
4323 hpux10.20* | hpux11*)
4324   lt_cv_file_magic_cmd=/usr/bin/file
4325   case $host_cpu in
4326   ia64*)
4327     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4328     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4329     ;;
4330   hppa*64*)
4331     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]'
4332     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4333     ;;
4334   *)
4335     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4336     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4337     ;;
4338   esac
4339   ;;
4340
4341 interix[3-9]*)
4342   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4343   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4344   ;;
4345
4346 irix5* | irix6* | nonstopux*)
4347   case $LD in
4348   *-32|*"-32 ") libmagic=32-bit;;
4349   *-n32|*"-n32 ") libmagic=N32;;
4350   *-64|*"-64 ") libmagic=64-bit;;
4351   *) libmagic=never-match;;
4352   esac
4353   lt_cv_deplibs_check_method=pass_all
4354   ;;
4355
4356 # This must be Linux ELF.
4357 linux* | k*bsd*-gnu)
4358   lt_cv_deplibs_check_method=pass_all
4359   ;;
4360
4361 netbsd* | netbsdelf*-gnu)
4362   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4363     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4364   else
4365     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4366   fi
4367   ;;
4368
4369 newos6*)
4370   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4371   lt_cv_file_magic_cmd=/usr/bin/file
4372   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4373   ;;
4374
4375 nto-qnx*)
4376   lt_cv_deplibs_check_method=unknown
4377   ;;
4378
4379 openbsd*)
4380   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4381     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4382   else
4383     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4384   fi
4385   ;;
4386
4387 osf3* | osf4* | osf5*)
4388   lt_cv_deplibs_check_method=pass_all
4389   ;;
4390
4391 rdos*)
4392   lt_cv_deplibs_check_method=pass_all
4393   ;;
4394
4395 solaris*)
4396   lt_cv_deplibs_check_method=pass_all
4397   ;;
4398
4399 sysv4 | sysv4.3*)
4400   case $host_vendor in
4401   motorola)
4402     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]'
4403     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4404     ;;
4405   ncr)
4406     lt_cv_deplibs_check_method=pass_all
4407     ;;
4408   sequent)
4409     lt_cv_file_magic_cmd='/bin/file'
4410     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4411     ;;
4412   sni)
4413     lt_cv_file_magic_cmd='/bin/file'
4414     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4415     lt_cv_file_magic_test_file=/lib/libc.so
4416     ;;
4417   siemens)
4418     lt_cv_deplibs_check_method=pass_all
4419     ;;
4420   pc)
4421     lt_cv_deplibs_check_method=pass_all
4422     ;;
4423   esac
4424   ;;
4425
4426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4427   lt_cv_deplibs_check_method=pass_all
4428   ;;
4429 esac
4430
4431 fi
4432 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4433 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4434 file_magic_cmd=$lt_cv_file_magic_cmd
4435 deplibs_check_method=$lt_cv_deplibs_check_method
4436 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4437
4438
4439
4440
4441 # If no C compiler was specified, use CC.
4442 LTCC=${LTCC-"$CC"}
4443
4444 # If no C compiler flags were specified, use CFLAGS.
4445 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4446
4447 # Allow CC to be a program name with arguments.
4448 compiler=$CC
4449
4450
4451 # Check whether --enable-libtool-lock was given.
4452 if test "${enable_libtool_lock+set}" = set; then
4453   enableval=$enable_libtool_lock;
4454 fi
4455
4456 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4457
4458 # Some flags need to be propagated to the compiler or linker for good
4459 # libtool support.
4460 case $host in
4461 ia64-*-hpux*)
4462   # Find out which ABI we are using.
4463   echo 'int i;' > conftest.$ac_ext
4464   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465   (eval $ac_compile) 2>&5
4466   ac_status=$?
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); }; then
4469     case `/usr/bin/file conftest.$ac_objext` in
4470     *ELF-32*)
4471       HPUX_IA64_MODE="32"
4472       ;;
4473     *ELF-64*)
4474       HPUX_IA64_MODE="64"
4475       ;;
4476     esac
4477   fi
4478   rm -rf conftest*
4479   ;;
4480 *-*-irix6*)
4481   # Find out which ABI we are using.
4482   echo '#line 4482 "configure"' > conftest.$ac_ext
4483   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4484   (eval $ac_compile) 2>&5
4485   ac_status=$?
4486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487   (exit $ac_status); }; then
4488    if test "$lt_cv_prog_gnu_ld" = yes; then
4489     case `/usr/bin/file conftest.$ac_objext` in
4490     *32-bit*)
4491       LD="${LD-ld} -melf32bsmip"
4492       ;;
4493     *N32*)
4494       LD="${LD-ld} -melf32bmipn32"
4495       ;;
4496     *64-bit*)
4497       LD="${LD-ld} -melf64bmip"
4498       ;;
4499     esac
4500    else
4501     case `/usr/bin/file conftest.$ac_objext` in
4502     *32-bit*)
4503       LD="${LD-ld} -32"
4504       ;;
4505     *N32*)
4506       LD="${LD-ld} -n32"
4507       ;;
4508     *64-bit*)
4509       LD="${LD-ld} -64"
4510       ;;
4511     esac
4512    fi
4513   fi
4514   rm -rf conftest*
4515   ;;
4516
4517 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4518 s390*-*linux*|sparc*-*linux*)
4519   # Find out which ABI we are using.
4520   echo 'int i;' > conftest.$ac_ext
4521   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4522   (eval $ac_compile) 2>&5
4523   ac_status=$?
4524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525   (exit $ac_status); }; then
4526     case `/usr/bin/file conftest.o` in
4527     *32-bit*)
4528       case $host in
4529         x86_64-*kfreebsd*-gnu)
4530           LD="${LD-ld} -m elf_i386_fbsd"
4531           ;;
4532         x86_64-*linux*)
4533           LD="${LD-ld} -m elf_i386"
4534           ;;
4535         ppc64-*linux*|powerpc64-*linux*)
4536           LD="${LD-ld} -m elf32ppclinux"
4537           ;;
4538         s390x-*linux*)
4539           LD="${LD-ld} -m elf_s390"
4540           ;;
4541         sparc64-*linux*)
4542           LD="${LD-ld} -m elf32_sparc"
4543           ;;
4544       esac
4545       ;;
4546     *64-bit*)
4547       case $host in
4548         x86_64-*kfreebsd*-gnu)
4549           LD="${LD-ld} -m elf_x86_64_fbsd"
4550           ;;
4551         x86_64-*linux*)
4552           LD="${LD-ld} -m elf_x86_64"
4553           ;;
4554         ppc*-*linux*|powerpc*-*linux*)
4555           LD="${LD-ld} -m elf64ppc"
4556           ;;
4557         s390*-*linux*)
4558           LD="${LD-ld} -m elf64_s390"
4559           ;;
4560         sparc*-*linux*)
4561           LD="${LD-ld} -m elf64_sparc"
4562           ;;
4563       esac
4564       ;;
4565     esac
4566   fi
4567   rm -rf conftest*
4568   ;;
4569
4570 *-*-sco3.2v5*)
4571   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4572   SAVE_CFLAGS="$CFLAGS"
4573   CFLAGS="$CFLAGS -belf"
4574   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4575 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4576 if test "${lt_cv_cc_needs_belf+set}" = set; then
4577   echo $ECHO_N "(cached) $ECHO_C" >&6
4578 else
4579   ac_ext=c
4580 ac_cpp='$CPP $CPPFLAGS'
4581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4584
4585      cat >conftest.$ac_ext <<_ACEOF
4586 /* confdefs.h.  */
4587 _ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h.  */
4591
4592 int
4593 main ()
4594 {
4595
4596   ;
4597   return 0;
4598 }
4599 _ACEOF
4600 rm -f conftest.$ac_objext conftest$ac_exeext
4601 if { (ac_try="$ac_link"
4602 case "(($ac_try" in
4603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604   *) ac_try_echo=$ac_try;;
4605 esac
4606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4607   (eval "$ac_link") 2>conftest.er1
4608   ac_status=$?
4609   grep -v '^ *+' conftest.er1 >conftest.err
4610   rm -f conftest.er1
4611   cat conftest.err >&5
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); } && {
4614          test -z "$ac_c_werror_flag" ||
4615          test ! -s conftest.err
4616        } && test -s conftest$ac_exeext &&
4617        $as_test_x conftest$ac_exeext; then
4618   lt_cv_cc_needs_belf=yes
4619 else
4620   echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4622
4623         lt_cv_cc_needs_belf=no
4624 fi
4625
4626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4627       conftest$ac_exeext conftest.$ac_ext
4628      ac_ext=c
4629 ac_cpp='$CPP $CPPFLAGS'
4630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4633
4634 fi
4635 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4636 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4637   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4638     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4639     CFLAGS="$SAVE_CFLAGS"
4640   fi
4641   ;;
4642 sparc*-*solaris*)
4643   # Find out which ABI we are using.
4644   echo 'int i;' > conftest.$ac_ext
4645   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4646   (eval $ac_compile) 2>&5
4647   ac_status=$?
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); }; then
4650     case `/usr/bin/file conftest.o` in
4651     *64-bit*)
4652       case $lt_cv_prog_gnu_ld in
4653       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4654       *)
4655         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4656           LD="${LD-ld} -64"
4657         fi
4658         ;;
4659       esac
4660       ;;
4661     esac
4662   fi
4663   rm -rf conftest*
4664   ;;
4665
4666
4667 esac
4668
4669 need_locks="$enable_libtool_lock"
4670
4671
4672 ac_ext=c
4673 ac_cpp='$CPP $CPPFLAGS'
4674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4677 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4678 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4679 # On Suns, sometimes $CPP names a directory.
4680 if test -n "$CPP" && test -d "$CPP"; then
4681   CPP=
4682 fi
4683 if test -z "$CPP"; then
4684   if test "${ac_cv_prog_CPP+set}" = set; then
4685   echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687       # Double quotes because CPP needs to be expanded
4688     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4689     do
4690       ac_preproc_ok=false
4691 for ac_c_preproc_warn_flag in '' yes
4692 do
4693   # Use a header file that comes with gcc, so configuring glibc
4694   # with a fresh cross-compiler works.
4695   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4696   # <limits.h> exists even on freestanding compilers.
4697   # On the NeXT, cc -E runs the code through the compiler's parser,
4698   # not just through cpp. "Syntax error" is here to catch this case.
4699   cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h.  */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h.  */
4705 #ifdef __STDC__
4706 # include <limits.h>
4707 #else
4708 # include <assert.h>
4709 #endif
4710                      Syntax error
4711 _ACEOF
4712 if { (ac_try="$ac_cpp conftest.$ac_ext"
4713 case "(($ac_try" in
4714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4715   *) ac_try_echo=$ac_try;;
4716 esac
4717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4718   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4719   ac_status=$?
4720   grep -v '^ *+' conftest.er1 >conftest.err
4721   rm -f conftest.er1
4722   cat conftest.err >&5
4723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724   (exit $ac_status); } >/dev/null && {
4725          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4726          test ! -s conftest.err
4727        }; then
4728   :
4729 else
4730   echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4732
4733   # Broken: fails on valid input.
4734 continue
4735 fi
4736
4737 rm -f conftest.err conftest.$ac_ext
4738
4739   # OK, works on sane cases.  Now check whether nonexistent headers
4740   # can be detected and how.
4741   cat >conftest.$ac_ext <<_ACEOF
4742 /* confdefs.h.  */
4743 _ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h.  */
4747 #include <ac_nonexistent.h>
4748 _ACEOF
4749 if { (ac_try="$ac_cpp conftest.$ac_ext"
4750 case "(($ac_try" in
4751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752   *) ac_try_echo=$ac_try;;
4753 esac
4754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4755   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4756   ac_status=$?
4757   grep -v '^ *+' conftest.er1 >conftest.err
4758   rm -f conftest.er1
4759   cat conftest.err >&5
4760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761   (exit $ac_status); } >/dev/null && {
4762          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4763          test ! -s conftest.err
4764        }; then
4765   # Broken: success on invalid input.
4766 continue
4767 else
4768   echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4770
4771   # Passes both tests.
4772 ac_preproc_ok=:
4773 break
4774 fi
4775
4776 rm -f conftest.err conftest.$ac_ext
4777
4778 done
4779 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4780 rm -f conftest.err conftest.$ac_ext
4781 if $ac_preproc_ok; then
4782   break
4783 fi
4784
4785     done
4786     ac_cv_prog_CPP=$CPP
4787
4788 fi
4789   CPP=$ac_cv_prog_CPP
4790 else
4791   ac_cv_prog_CPP=$CPP
4792 fi
4793 { echo "$as_me:$LINENO: result: $CPP" >&5
4794 echo "${ECHO_T}$CPP" >&6; }
4795 ac_preproc_ok=false
4796 for ac_c_preproc_warn_flag in '' yes
4797 do
4798   # Use a header file that comes with gcc, so configuring glibc
4799   # with a fresh cross-compiler works.
4800   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4801   # <limits.h> exists even on freestanding compilers.
4802   # On the NeXT, cc -E runs the code through the compiler's parser,
4803   # not just through cpp. "Syntax error" is here to catch this case.
4804   cat >conftest.$ac_ext <<_ACEOF
4805 /* confdefs.h.  */
4806 _ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h.  */
4810 #ifdef __STDC__
4811 # include <limits.h>
4812 #else
4813 # include <assert.h>
4814 #endif
4815                      Syntax error
4816 _ACEOF
4817 if { (ac_try="$ac_cpp conftest.$ac_ext"
4818 case "(($ac_try" in
4819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820   *) ac_try_echo=$ac_try;;
4821 esac
4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4824   ac_status=$?
4825   grep -v '^ *+' conftest.er1 >conftest.err
4826   rm -f conftest.er1
4827   cat conftest.err >&5
4828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829   (exit $ac_status); } >/dev/null && {
4830          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4831          test ! -s conftest.err
4832        }; then
4833   :
4834 else
4835   echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4837
4838   # Broken: fails on valid input.
4839 continue
4840 fi
4841
4842 rm -f conftest.err conftest.$ac_ext
4843
4844   # OK, works on sane cases.  Now check whether nonexistent headers
4845   # can be detected and how.
4846   cat >conftest.$ac_ext <<_ACEOF
4847 /* confdefs.h.  */
4848 _ACEOF
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h.  */
4852 #include <ac_nonexistent.h>
4853 _ACEOF
4854 if { (ac_try="$ac_cpp conftest.$ac_ext"
4855 case "(($ac_try" in
4856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857   *) ac_try_echo=$ac_try;;
4858 esac
4859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4860   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4861   ac_status=$?
4862   grep -v '^ *+' conftest.er1 >conftest.err
4863   rm -f conftest.er1
4864   cat conftest.err >&5
4865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866   (exit $ac_status); } >/dev/null && {
4867          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4868          test ! -s conftest.err
4869        }; then
4870   # Broken: success on invalid input.
4871 continue
4872 else
4873   echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.$ac_ext >&5
4875
4876   # Passes both tests.
4877 ac_preproc_ok=:
4878 break
4879 fi
4880
4881 rm -f conftest.err conftest.$ac_ext
4882
4883 done
4884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4885 rm -f conftest.err conftest.$ac_ext
4886 if $ac_preproc_ok; then
4887   :
4888 else
4889   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4890 See \`config.log' for more details." >&5
4891 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4892 See \`config.log' for more details." >&2;}
4893    { (exit 1); exit 1; }; }
4894 fi
4895
4896 ac_ext=c
4897 ac_cpp='$CPP $CPPFLAGS'
4898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4901
4902
4903 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4904 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4905 if test "${ac_cv_header_stdc+set}" = set; then
4906   echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908   cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h.  */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h.  */
4914 #include <stdlib.h>
4915 #include <stdarg.h>
4916 #include <string.h>
4917 #include <float.h>
4918
4919 int
4920 main ()
4921 {
4922
4923   ;
4924   return 0;
4925 }
4926 _ACEOF
4927 rm -f conftest.$ac_objext
4928 if { (ac_try="$ac_compile"
4929 case "(($ac_try" in
4930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931   *) ac_try_echo=$ac_try;;
4932 esac
4933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4934   (eval "$ac_compile") 2>conftest.er1
4935   ac_status=$?
4936   grep -v '^ *+' conftest.er1 >conftest.err
4937   rm -f conftest.er1
4938   cat conftest.err >&5
4939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); } && {
4941          test -z "$ac_c_werror_flag" ||
4942          test ! -s conftest.err
4943        } && test -s conftest.$ac_objext; then
4944   ac_cv_header_stdc=yes
4945 else
4946   echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4948
4949         ac_cv_header_stdc=no
4950 fi
4951
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953
4954 if test $ac_cv_header_stdc = yes; then
4955   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4956   cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h.  */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h.  */
4962 #include <string.h>
4963
4964 _ACEOF
4965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4966   $EGREP "memchr" >/dev/null 2>&1; then
4967   :
4968 else
4969   ac_cv_header_stdc=no
4970 fi
4971 rm -f conftest*
4972
4973 fi
4974
4975 if test $ac_cv_header_stdc = yes; then
4976   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4977   cat >conftest.$ac_ext <<_ACEOF
4978 /* confdefs.h.  */
4979 _ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h.  */
4983 #include <stdlib.h>
4984
4985 _ACEOF
4986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4987   $EGREP "free" >/dev/null 2>&1; then
4988   :
4989 else
4990   ac_cv_header_stdc=no
4991 fi
4992 rm -f conftest*
4993
4994 fi
4995
4996 if test $ac_cv_header_stdc = yes; then
4997   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4998   if test "$cross_compiling" = yes; then
4999   :
5000 else
5001   cat >conftest.$ac_ext <<_ACEOF
5002 /* confdefs.h.  */
5003 _ACEOF
5004 cat confdefs.h >>conftest.$ac_ext
5005 cat >>conftest.$ac_ext <<_ACEOF
5006 /* end confdefs.h.  */
5007 #include <ctype.h>
5008 #include <stdlib.h>
5009 #if ((' ' & 0x0FF) == 0x020)
5010 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5011 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5012 #else
5013 # define ISLOWER(c) \
5014                    (('a' <= (c) && (c) <= 'i') \
5015                      || ('j' <= (c) && (c) <= 'r') \
5016                      || ('s' <= (c) && (c) <= 'z'))
5017 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5018 #endif
5019
5020 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5021 int
5022 main ()
5023 {
5024   int i;
5025   for (i = 0; i < 256; i++)
5026     if (XOR (islower (i), ISLOWER (i))
5027         || toupper (i) != TOUPPER (i))
5028       return 2;
5029   return 0;
5030 }
5031 _ACEOF
5032 rm -f conftest$ac_exeext
5033 if { (ac_try="$ac_link"
5034 case "(($ac_try" in
5035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036   *) ac_try_echo=$ac_try;;
5037 esac
5038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5039   (eval "$ac_link") 2>&5
5040   ac_status=$?
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5043   { (case "(($ac_try" in
5044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045   *) ac_try_echo=$ac_try;;
5046 esac
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048   (eval "$ac_try") 2>&5
5049   ac_status=$?
5050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051   (exit $ac_status); }; }; then
5052   :
5053 else
5054   echo "$as_me: program exited with status $ac_status" >&5
5055 echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5057
5058 ( exit $ac_status )
5059 ac_cv_header_stdc=no
5060 fi
5061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5062 fi
5063
5064
5065 fi
5066 fi
5067 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5068 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5069 if test $ac_cv_header_stdc = yes; then
5070
5071 cat >>confdefs.h <<\_ACEOF
5072 #define STDC_HEADERS 1
5073 _ACEOF
5074
5075 fi
5076
5077 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5088                   inttypes.h stdint.h unistd.h
5089 do
5090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5094   echo $ECHO_N "(cached) $ECHO_C" >&6
5095 else
5096   cat >conftest.$ac_ext <<_ACEOF
5097 /* confdefs.h.  */
5098 _ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h.  */
5102 $ac_includes_default
5103
5104 #include <$ac_header>
5105 _ACEOF
5106 rm -f conftest.$ac_objext
5107 if { (ac_try="$ac_compile"
5108 case "(($ac_try" in
5109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5110   *) ac_try_echo=$ac_try;;
5111 esac
5112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5113   (eval "$ac_compile") 2>conftest.er1
5114   ac_status=$?
5115   grep -v '^ *+' conftest.er1 >conftest.err
5116   rm -f conftest.er1
5117   cat conftest.err >&5
5118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119   (exit $ac_status); } && {
5120          test -z "$ac_c_werror_flag" ||
5121          test ! -s conftest.err
5122        } && test -s conftest.$ac_objext; then
5123   eval "$as_ac_Header=yes"
5124 else
5125   echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128         eval "$as_ac_Header=no"
5129 fi
5130
5131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132 fi
5133 ac_res=`eval echo '${'$as_ac_Header'}'`
5134                { echo "$as_me:$LINENO: result: $ac_res" >&5
5135 echo "${ECHO_T}$ac_res" >&6; }
5136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5137   cat >>confdefs.h <<_ACEOF
5138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5139 _ACEOF
5140
5141 fi
5142
5143 done
5144
5145
5146
5147 for ac_header in dlfcn.h
5148 do
5149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5151   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5154   echo $ECHO_N "(cached) $ECHO_C" >&6
5155 fi
5156 ac_res=`eval echo '${'$as_ac_Header'}'`
5157                { echo "$as_me:$LINENO: result: $ac_res" >&5
5158 echo "${ECHO_T}$ac_res" >&6; }
5159 else
5160   # Is the header compilable?
5161 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5163 cat >conftest.$ac_ext <<_ACEOF
5164 /* confdefs.h.  */
5165 _ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h.  */
5169 $ac_includes_default
5170 #include <$ac_header>
5171 _ACEOF
5172 rm -f conftest.$ac_objext
5173 if { (ac_try="$ac_compile"
5174 case "(($ac_try" in
5175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176   *) ac_try_echo=$ac_try;;
5177 esac
5178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5179   (eval "$ac_compile") 2>conftest.er1
5180   ac_status=$?
5181   grep -v '^ *+' conftest.er1 >conftest.err
5182   rm -f conftest.er1
5183   cat conftest.err >&5
5184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185   (exit $ac_status); } && {
5186          test -z "$ac_c_werror_flag" ||
5187          test ! -s conftest.err
5188        } && test -s conftest.$ac_objext; then
5189   ac_header_compiler=yes
5190 else
5191   echo "$as_me: failed program was:" >&5
5192 sed 's/^/| /' conftest.$ac_ext >&5
5193
5194         ac_header_compiler=no
5195 fi
5196
5197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5199 echo "${ECHO_T}$ac_header_compiler" >&6; }
5200
5201 # Is the header present?
5202 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5204 cat >conftest.$ac_ext <<_ACEOF
5205 /* confdefs.h.  */
5206 _ACEOF
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h.  */
5210 #include <$ac_header>
5211 _ACEOF
5212 if { (ac_try="$ac_cpp conftest.$ac_ext"
5213 case "(($ac_try" in
5214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215   *) ac_try_echo=$ac_try;;
5216 esac
5217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5219   ac_status=$?
5220   grep -v '^ *+' conftest.er1 >conftest.err
5221   rm -f conftest.er1
5222   cat conftest.err >&5
5223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224   (exit $ac_status); } >/dev/null && {
5225          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5226          test ! -s conftest.err
5227        }; then
5228   ac_header_preproc=yes
5229 else
5230   echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5232
5233   ac_header_preproc=no
5234 fi
5235
5236 rm -f conftest.err conftest.$ac_ext
5237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5238 echo "${ECHO_T}$ac_header_preproc" >&6; }
5239
5240 # So?  What about this header?
5241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5242   yes:no: )
5243     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5245     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5247     ac_header_preproc=yes
5248     ;;
5249   no:yes:* )
5250     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5252     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5253 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5254     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5256     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5257 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5260     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5262     ( cat <<\_ASBOX
5263 ## ---------------------------------------- ##
5264 ## Report this to konn@users.sourceforge.jp ##
5265 ## ---------------------------------------- ##
5266 _ASBOX
5267      ) | sed "s/^/$as_me: WARNING:     /" >&2
5268     ;;
5269 esac
5270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5273   echo $ECHO_N "(cached) $ECHO_C" >&6
5274 else
5275   eval "$as_ac_Header=\$ac_header_preproc"
5276 fi
5277 ac_res=`eval echo '${'$as_ac_Header'}'`
5278                { echo "$as_me:$LINENO: result: $ac_res" >&5
5279 echo "${ECHO_T}$ac_res" >&6; }
5280
5281 fi
5282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5283   cat >>confdefs.h <<_ACEOF
5284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5285 _ACEOF
5286
5287 fi
5288
5289 done
5290
5291 ac_ext=cpp
5292 ac_cpp='$CXXCPP $CPPFLAGS'
5293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5296 if test -z "$CXX"; then
5297   if test -n "$CCC"; then
5298     CXX=$CCC
5299   else
5300     if test -n "$ac_tool_prefix"; then
5301   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5302   do
5303     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5304 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5307 if test "${ac_cv_prog_CXX+set}" = set; then
5308   echo $ECHO_N "(cached) $ECHO_C" >&6
5309 else
5310   if test -n "$CXX"; then
5311   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5312 else
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH
5315 do
5316   IFS=$as_save_IFS
5317   test -z "$as_dir" && as_dir=.
5318   for ac_exec_ext in '' $ac_executable_extensions; do
5319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5320     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5322     break 2
5323   fi
5324 done
5325 done
5326 IFS=$as_save_IFS
5327
5328 fi
5329 fi
5330 CXX=$ac_cv_prog_CXX
5331 if test -n "$CXX"; then
5332   { echo "$as_me:$LINENO: result: $CXX" >&5
5333 echo "${ECHO_T}$CXX" >&6; }
5334 else
5335   { echo "$as_me:$LINENO: result: no" >&5
5336 echo "${ECHO_T}no" >&6; }
5337 fi
5338
5339
5340     test -n "$CXX" && break
5341   done
5342 fi
5343 if test -z "$CXX"; then
5344   ac_ct_CXX=$CXX
5345   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5346 do
5347   # Extract the first word of "$ac_prog", so it can be a program name with args.
5348 set dummy $ac_prog; ac_word=$2
5349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5351 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5352   echo $ECHO_N "(cached) $ECHO_C" >&6
5353 else
5354   if test -n "$ac_ct_CXX"; then
5355   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5356 else
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in $PATH
5359 do
5360   IFS=$as_save_IFS
5361   test -z "$as_dir" && as_dir=.
5362   for ac_exec_ext in '' $ac_executable_extensions; do
5363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5364     ac_cv_prog_ac_ct_CXX="$ac_prog"
5365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366     break 2
5367   fi
5368 done
5369 done
5370 IFS=$as_save_IFS
5371
5372 fi
5373 fi
5374 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5375 if test -n "$ac_ct_CXX"; then
5376   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5377 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5378 else
5379   { echo "$as_me:$LINENO: result: no" >&5
5380 echo "${ECHO_T}no" >&6; }
5381 fi
5382
5383
5384   test -n "$ac_ct_CXX" && break
5385 done
5386
5387   if test "x$ac_ct_CXX" = x; then
5388     CXX="g++"
5389   else
5390     case $cross_compiling:$ac_tool_warned in
5391 yes:)
5392 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5393 whose name does not start with the host triplet.  If you think this
5394 configuration is useful to you, please write to autoconf@gnu.org." >&5
5395 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5396 whose name does not start with the host triplet.  If you think this
5397 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5398 ac_tool_warned=yes ;;
5399 esac
5400     CXX=$ac_ct_CXX
5401   fi
5402 fi
5403
5404   fi
5405 fi
5406 # Provide some information about the compiler.
5407 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5408 ac_compiler=`set X $ac_compile; echo $2`
5409 { (ac_try="$ac_compiler --version >&5"
5410 case "(($ac_try" in
5411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412   *) ac_try_echo=$ac_try;;
5413 esac
5414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5415   (eval "$ac_compiler --version >&5") 2>&5
5416   ac_status=$?
5417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418   (exit $ac_status); }
5419 { (ac_try="$ac_compiler -v >&5"
5420 case "(($ac_try" in
5421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5422   *) ac_try_echo=$ac_try;;
5423 esac
5424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5425   (eval "$ac_compiler -v >&5") 2>&5
5426   ac_status=$?
5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428   (exit $ac_status); }
5429 { (ac_try="$ac_compiler -V >&5"
5430 case "(($ac_try" in
5431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432   *) ac_try_echo=$ac_try;;
5433 esac
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435   (eval "$ac_compiler -V >&5") 2>&5
5436   ac_status=$?
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); }
5439
5440 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5441 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5442 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5443   echo $ECHO_N "(cached) $ECHO_C" >&6
5444 else
5445   cat >conftest.$ac_ext <<_ACEOF
5446 /* confdefs.h.  */
5447 _ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h.  */
5451
5452 int
5453 main ()
5454 {
5455 #ifndef __GNUC__
5456        choke me
5457 #endif
5458
5459   ;
5460   return 0;
5461 }
5462 _ACEOF
5463 rm -f conftest.$ac_objext
5464 if { (ac_try="$ac_compile"
5465 case "(($ac_try" in
5466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467   *) ac_try_echo=$ac_try;;
5468 esac
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470   (eval "$ac_compile") 2>conftest.er1
5471   ac_status=$?
5472   grep -v '^ *+' conftest.er1 >conftest.err
5473   rm -f conftest.er1
5474   cat conftest.err >&5
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); } && {
5477          test -z "$ac_cxx_werror_flag" ||
5478          test ! -s conftest.err
5479        } && test -s conftest.$ac_objext; then
5480   ac_compiler_gnu=yes
5481 else
5482   echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5484
5485         ac_compiler_gnu=no
5486 fi
5487
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5490
5491 fi
5492 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5493 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5494 GXX=`test $ac_compiler_gnu = yes && echo yes`
5495 ac_test_CXXFLAGS=${CXXFLAGS+set}
5496 ac_save_CXXFLAGS=$CXXFLAGS
5497 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5498 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5499 if test "${ac_cv_prog_cxx_g+set}" = set; then
5500   echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5503    ac_cxx_werror_flag=yes
5504    ac_cv_prog_cxx_g=no
5505    CXXFLAGS="-g"
5506    cat >conftest.$ac_ext <<_ACEOF
5507 /* confdefs.h.  */
5508 _ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h.  */
5512
5513 int
5514 main ()
5515 {
5516
5517   ;
5518   return 0;
5519 }
5520 _ACEOF
5521 rm -f conftest.$ac_objext
5522 if { (ac_try="$ac_compile"
5523 case "(($ac_try" in
5524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525   *) ac_try_echo=$ac_try;;
5526 esac
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528   (eval "$ac_compile") 2>conftest.er1
5529   ac_status=$?
5530   grep -v '^ *+' conftest.er1 >conftest.err
5531   rm -f conftest.er1
5532   cat conftest.err >&5
5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); } && {
5535          test -z "$ac_cxx_werror_flag" ||
5536          test ! -s conftest.err
5537        } && test -s conftest.$ac_objext; then
5538   ac_cv_prog_cxx_g=yes
5539 else
5540   echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5542
5543         CXXFLAGS=""
5544       cat >conftest.$ac_ext <<_ACEOF
5545 /* confdefs.h.  */
5546 _ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h.  */
5550
5551 int
5552 main ()
5553 {
5554
5555   ;
5556   return 0;
5557 }
5558 _ACEOF
5559 rm -f conftest.$ac_objext
5560 if { (ac_try="$ac_compile"
5561 case "(($ac_try" in
5562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563   *) ac_try_echo=$ac_try;;
5564 esac
5565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566   (eval "$ac_compile") 2>conftest.er1
5567   ac_status=$?
5568   grep -v '^ *+' conftest.er1 >conftest.err
5569   rm -f conftest.er1
5570   cat conftest.err >&5
5571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572   (exit $ac_status); } && {
5573          test -z "$ac_cxx_werror_flag" ||
5574          test ! -s conftest.err
5575        } && test -s conftest.$ac_objext; then
5576   :
5577 else
5578   echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.$ac_ext >&5
5580
5581         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5582          CXXFLAGS="-g"
5583          cat >conftest.$ac_ext <<_ACEOF
5584 /* confdefs.h.  */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h.  */
5589
5590 int
5591 main ()
5592 {
5593
5594   ;
5595   return 0;
5596 }
5597 _ACEOF
5598 rm -f conftest.$ac_objext
5599 if { (ac_try="$ac_compile"
5600 case "(($ac_try" in
5601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602   *) ac_try_echo=$ac_try;;
5603 esac
5604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605   (eval "$ac_compile") 2>conftest.er1
5606   ac_status=$?
5607   grep -v '^ *+' conftest.er1 >conftest.err
5608   rm -f conftest.er1
5609   cat conftest.err >&5
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); } && {
5612          test -z "$ac_cxx_werror_flag" ||
5613          test ! -s conftest.err
5614        } && test -s conftest.$ac_objext; then
5615   ac_cv_prog_cxx_g=yes
5616 else
5617   echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5619
5620
5621 fi
5622
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 fi
5625
5626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5627 fi
5628
5629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5630    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5631 fi
5632 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5633 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5634 if test "$ac_test_CXXFLAGS" = set; then
5635   CXXFLAGS=$ac_save_CXXFLAGS
5636 elif test $ac_cv_prog_cxx_g = yes; then
5637   if test "$GXX" = yes; then
5638     CXXFLAGS="-g -O2"
5639   else
5640     CXXFLAGS="-g"
5641   fi
5642 else
5643   if test "$GXX" = yes; then
5644     CXXFLAGS="-O2"
5645   else
5646     CXXFLAGS=
5647   fi
5648 fi
5649 ac_ext=cpp
5650 ac_cpp='$CXXCPP $CPPFLAGS'
5651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5654
5655 depcc="$CXX"  am_compiler_list=
5656
5657 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5658 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5659 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5660   echo $ECHO_N "(cached) $ECHO_C" >&6
5661 else
5662   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5663   # We make a subdir and do the tests there.  Otherwise we can end up
5664   # making bogus files that we don't know about and never remove.  For
5665   # instance it was reported that on HP-UX the gcc test will end up
5666   # making a dummy file named `D' -- because `-MD' means `put the output
5667   # in D'.
5668   mkdir conftest.dir
5669   # Copy depcomp to subdir because otherwise we won't find it if we're
5670   # using a relative directory.
5671   cp "$am_depcomp" conftest.dir
5672   cd conftest.dir
5673   # We will build objects and dependencies in a subdirectory because
5674   # it helps to detect inapplicable dependency modes.  For instance
5675   # both Tru64's cc and ICC support -MD to output dependencies as a
5676   # side effect of compilation, but ICC will put the dependencies in
5677   # the current directory while Tru64 will put them in the object
5678   # directory.
5679   mkdir sub
5680
5681   am_cv_CXX_dependencies_compiler_type=none
5682   if test "$am_compiler_list" = ""; then
5683      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5684   fi
5685   for depmode in $am_compiler_list; do
5686     # Setup a source with many dependencies, because some compilers
5687     # like to wrap large dependency lists on column 80 (with \), and
5688     # we should not choose a depcomp mode which is confused by this.
5689     #
5690     # We need to recreate these files for each test, as the compiler may
5691     # overwrite some of them when testing with obscure command lines.
5692     # This happens at least with the AIX C compiler.
5693     : > sub/conftest.c
5694     for i in 1 2 3 4 5 6; do
5695       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5696       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5697       # Solaris 8's {/usr,}/bin/sh.
5698       touch sub/conftst$i.h
5699     done
5700     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5701
5702     case $depmode in
5703     nosideeffect)
5704       # after this tag, mechanisms are not by side-effect, so they'll
5705       # only be used when explicitly requested
5706       if test "x$enable_dependency_tracking" = xyes; then
5707         continue
5708       else
5709         break
5710       fi
5711       ;;
5712     none) break ;;
5713     esac
5714     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5715     # mode.  It turns out that the SunPro C++ compiler does not properly
5716     # handle `-M -o', and we need to detect this.
5717     if depmode=$depmode \
5718        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5719        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5720        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5721          >/dev/null 2>conftest.err &&
5722        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5723        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5724        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5725        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5726       # icc doesn't choke on unknown options, it will just issue warnings
5727       # or remarks (even with -Werror).  So we grep stderr for any message
5728       # that says an option was ignored or not supported.
5729       # When given -MP, icc 7.0 and 7.1 complain thusly:
5730       #   icc: Command line warning: ignoring option '-M'; no argument required
5731       # The diagnosis changed in icc 8.0:
5732       #   icc: Command line remark: option '-MP' not supported
5733       if (grep 'ignoring option' conftest.err ||
5734           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5735         am_cv_CXX_dependencies_compiler_type=$depmode
5736         break
5737       fi
5738     fi
5739   done
5740
5741   cd ..
5742   rm -rf conftest.dir
5743 else
5744   am_cv_CXX_dependencies_compiler_type=none
5745 fi
5746
5747 fi
5748 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5749 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5750 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5751
5752  if
5753   test "x$enable_dependency_tracking" != xno \
5754   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5755   am__fastdepCXX_TRUE=
5756   am__fastdepCXX_FALSE='#'
5757 else
5758   am__fastdepCXX_TRUE='#'
5759   am__fastdepCXX_FALSE=
5760 fi
5761
5762
5763
5764
5765 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5766     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5767     (test "X$CXX" != "Xg++"))) ; then
5768   ac_ext=cpp
5769 ac_cpp='$CXXCPP $CPPFLAGS'
5770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5773 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5774 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5775 if test -z "$CXXCPP"; then
5776   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5777   echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779       # Double quotes because CXXCPP needs to be expanded
5780     for CXXCPP in "$CXX -E" "/lib/cpp"
5781     do
5782       ac_preproc_ok=false
5783 for ac_cxx_preproc_warn_flag in '' yes
5784 do
5785   # Use a header file that comes with gcc, so configuring glibc
5786   # with a fresh cross-compiler works.
5787   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5788   # <limits.h> exists even on freestanding compilers.
5789   # On the NeXT, cc -E runs the code through the compiler's parser,
5790   # not just through cpp. "Syntax error" is here to catch this case.
5791   cat >conftest.$ac_ext <<_ACEOF
5792 /* confdefs.h.  */
5793 _ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h.  */
5797 #ifdef __STDC__
5798 # include <limits.h>
5799 #else
5800 # include <assert.h>
5801 #endif
5802                      Syntax error
5803 _ACEOF
5804 if { (ac_try="$ac_cpp conftest.$ac_ext"
5805 case "(($ac_try" in
5806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807   *) ac_try_echo=$ac_try;;
5808 esac
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5811   ac_status=$?
5812   grep -v '^ *+' conftest.er1 >conftest.err
5813   rm -f conftest.er1
5814   cat conftest.err >&5
5815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816   (exit $ac_status); } >/dev/null && {
5817          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5818          test ! -s conftest.err
5819        }; then
5820   :
5821 else
5822   echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5824
5825   # Broken: fails on valid input.
5826 continue
5827 fi
5828
5829 rm -f conftest.err conftest.$ac_ext
5830
5831   # OK, works on sane cases.  Now check whether nonexistent headers
5832   # can be detected and how.
5833   cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h.  */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h.  */
5839 #include <ac_nonexistent.h>
5840 _ACEOF
5841 if { (ac_try="$ac_cpp conftest.$ac_ext"
5842 case "(($ac_try" in
5843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844   *) ac_try_echo=$ac_try;;
5845 esac
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5848   ac_status=$?
5849   grep -v '^ *+' conftest.er1 >conftest.err
5850   rm -f conftest.er1
5851   cat conftest.err >&5
5852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853   (exit $ac_status); } >/dev/null && {
5854          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5855          test ! -s conftest.err
5856        }; then
5857   # Broken: success on invalid input.
5858 continue
5859 else
5860   echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5862
5863   # Passes both tests.
5864 ac_preproc_ok=:
5865 break
5866 fi
5867
5868 rm -f conftest.err conftest.$ac_ext
5869
5870 done
5871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5872 rm -f conftest.err conftest.$ac_ext
5873 if $ac_preproc_ok; then
5874   break
5875 fi
5876
5877     done
5878     ac_cv_prog_CXXCPP=$CXXCPP
5879
5880 fi
5881   CXXCPP=$ac_cv_prog_CXXCPP
5882 else
5883   ac_cv_prog_CXXCPP=$CXXCPP
5884 fi
5885 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5886 echo "${ECHO_T}$CXXCPP" >&6; }
5887 ac_preproc_ok=false
5888 for ac_cxx_preproc_warn_flag in '' yes
5889 do
5890   # Use a header file that comes with gcc, so configuring glibc
5891   # with a fresh cross-compiler works.
5892   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5893   # <limits.h> exists even on freestanding compilers.
5894   # On the NeXT, cc -E runs the code through the compiler's parser,
5895   # not just through cpp. "Syntax error" is here to catch this case.
5896   cat >conftest.$ac_ext <<_ACEOF
5897 /* confdefs.h.  */
5898 _ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h.  */
5902 #ifdef __STDC__
5903 # include <limits.h>
5904 #else
5905 # include <assert.h>
5906 #endif
5907                      Syntax error
5908 _ACEOF
5909 if { (ac_try="$ac_cpp conftest.$ac_ext"
5910 case "(($ac_try" in
5911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912   *) ac_try_echo=$ac_try;;
5913 esac
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5916   ac_status=$?
5917   grep -v '^ *+' conftest.er1 >conftest.err
5918   rm -f conftest.er1
5919   cat conftest.err >&5
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); } >/dev/null && {
5922          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5923          test ! -s conftest.err
5924        }; then
5925   :
5926 else
5927   echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5929
5930   # Broken: fails on valid input.
5931 continue
5932 fi
5933
5934 rm -f conftest.err conftest.$ac_ext
5935
5936   # OK, works on sane cases.  Now check whether nonexistent headers
5937   # can be detected and how.
5938   cat >conftest.$ac_ext <<_ACEOF
5939 /* confdefs.h.  */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h.  */
5944 #include <ac_nonexistent.h>
5945 _ACEOF
5946 if { (ac_try="$ac_cpp conftest.$ac_ext"
5947 case "(($ac_try" in
5948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949   *) ac_try_echo=$ac_try;;
5950 esac
5951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5953   ac_status=$?
5954   grep -v '^ *+' conftest.er1 >conftest.err
5955   rm -f conftest.er1
5956   cat conftest.err >&5
5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); } >/dev/null && {
5959          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5960          test ! -s conftest.err
5961        }; then
5962   # Broken: success on invalid input.
5963 continue
5964 else
5965   echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5967
5968   # Passes both tests.
5969 ac_preproc_ok=:
5970 break
5971 fi
5972
5973 rm -f conftest.err conftest.$ac_ext
5974
5975 done
5976 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5977 rm -f conftest.err conftest.$ac_ext
5978 if $ac_preproc_ok; then
5979   :
5980 else
5981   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5982 See \`config.log' for more details." >&5
5983 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5984 See \`config.log' for more details." >&2;}
5985    { (exit 1); exit 1; }; }
5986 fi
5987
5988 ac_ext=cpp
5989 ac_cpp='$CXXCPP $CPPFLAGS'
5990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5993
5994 fi
5995
5996
5997 ac_ext=f
5998 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5999 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6000 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6001 if test -n "$ac_tool_prefix"; then
6002   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6003   do
6004     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6005 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6008 if test "${ac_cv_prog_F77+set}" = set; then
6009   echo $ECHO_N "(cached) $ECHO_C" >&6
6010 else
6011   if test -n "$F77"; then
6012   ac_cv_prog_F77="$F77" # Let the user override the test.
6013 else
6014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015 for as_dir in $PATH
6016 do
6017   IFS=$as_save_IFS
6018   test -z "$as_dir" && as_dir=.
6019   for ac_exec_ext in '' $ac_executable_extensions; do
6020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6021     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6023     break 2
6024   fi
6025 done
6026 done
6027 IFS=$as_save_IFS
6028
6029 fi
6030 fi
6031 F77=$ac_cv_prog_F77
6032 if test -n "$F77"; then
6033   { echo "$as_me:$LINENO: result: $F77" >&5
6034 echo "${ECHO_T}$F77" >&6; }
6035 else
6036   { echo "$as_me:$LINENO: result: no" >&5
6037 echo "${ECHO_T}no" >&6; }
6038 fi
6039
6040
6041     test -n "$F77" && break
6042   done
6043 fi
6044 if test -z "$F77"; then
6045   ac_ct_F77=$F77
6046   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6047 do
6048   # Extract the first word of "$ac_prog", so it can be a program name with args.
6049 set dummy $ac_prog; ac_word=$2
6050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6052 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6053   echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055   if test -n "$ac_ct_F77"; then
6056   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6060 do
6061   IFS=$as_save_IFS
6062   test -z "$as_dir" && as_dir=.
6063   for ac_exec_ext in '' $ac_executable_extensions; do
6064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6065     ac_cv_prog_ac_ct_F77="$ac_prog"
6066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6067     break 2
6068   fi
6069 done
6070 done
6071 IFS=$as_save_IFS
6072
6073 fi
6074 fi
6075 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6076 if test -n "$ac_ct_F77"; then
6077   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6078 echo "${ECHO_T}$ac_ct_F77" >&6; }
6079 else
6080   { echo "$as_me:$LINENO: result: no" >&5
6081 echo "${ECHO_T}no" >&6; }
6082 fi
6083
6084
6085   test -n "$ac_ct_F77" && break
6086 done
6087
6088   if test "x$ac_ct_F77" = x; then
6089     F77=""
6090   else
6091     case $cross_compiling:$ac_tool_warned in
6092 yes:)
6093 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6094 whose name does not start with the host triplet.  If you think this
6095 configuration is useful to you, please write to autoconf@gnu.org." >&5
6096 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6097 whose name does not start with the host triplet.  If you think this
6098 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6099 ac_tool_warned=yes ;;
6100 esac
6101     F77=$ac_ct_F77
6102   fi
6103 fi
6104
6105
6106 # Provide some information about the compiler.
6107 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6108 ac_compiler=`set X $ac_compile; echo $2`
6109 { (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
6116   ac_status=$?
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); }
6119 { (ac_try="$ac_compiler -v >&5"
6120 case "(($ac_try" in
6121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122   *) ac_try_echo=$ac_try;;
6123 esac
6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125   (eval "$ac_compiler -v >&5") 2>&5
6126   ac_status=$?
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); }
6129 { (ac_try="$ac_compiler -V >&5"
6130 case "(($ac_try" in
6131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132   *) ac_try_echo=$ac_try;;
6133 esac
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135   (eval "$ac_compiler -V >&5") 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); }
6139 rm -f a.out
6140
6141 # If we don't use `.F' as extension, the preprocessor is not run on the
6142 # input file.  (Note that this only needs to work for GNU compilers.)
6143 ac_save_ext=$ac_ext
6144 ac_ext=F
6145 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6146 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6147 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6148   echo $ECHO_N "(cached) $ECHO_C" >&6
6149 else
6150   cat >conftest.$ac_ext <<_ACEOF
6151       program main
6152 #ifndef __GNUC__
6153        choke me
6154 #endif
6155
6156       end
6157 _ACEOF
6158 rm -f conftest.$ac_objext
6159 if { (ac_try="$ac_compile"
6160 case "(($ac_try" in
6161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162   *) ac_try_echo=$ac_try;;
6163 esac
6164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165   (eval "$ac_compile") 2>conftest.er1
6166   ac_status=$?
6167   grep -v '^ *+' conftest.er1 >conftest.err
6168   rm -f conftest.er1
6169   cat conftest.err >&5
6170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171   (exit $ac_status); } && {
6172          test -z "$ac_f77_werror_flag" ||
6173          test ! -s conftest.err
6174        } && test -s conftest.$ac_objext; then
6175   ac_compiler_gnu=yes
6176 else
6177   echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6179
6180         ac_compiler_gnu=no
6181 fi
6182
6183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6184 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6185
6186 fi
6187 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6188 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6189 ac_ext=$ac_save_ext
6190 ac_test_FFLAGS=${FFLAGS+set}
6191 ac_save_FFLAGS=$FFLAGS
6192 FFLAGS=
6193 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6194 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6195 if test "${ac_cv_prog_f77_g+set}" = set; then
6196   echo $ECHO_N "(cached) $ECHO_C" >&6
6197 else
6198   FFLAGS=-g
6199 cat >conftest.$ac_ext <<_ACEOF
6200       program main
6201
6202       end
6203 _ACEOF
6204 rm -f conftest.$ac_objext
6205 if { (ac_try="$ac_compile"
6206 case "(($ac_try" in
6207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208   *) ac_try_echo=$ac_try;;
6209 esac
6210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211   (eval "$ac_compile") 2>conftest.er1
6212   ac_status=$?
6213   grep -v '^ *+' conftest.er1 >conftest.err
6214   rm -f conftest.er1
6215   cat conftest.err >&5
6216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217   (exit $ac_status); } && {
6218          test -z "$ac_f77_werror_flag" ||
6219          test ! -s conftest.err
6220        } && test -s conftest.$ac_objext; then
6221   ac_cv_prog_f77_g=yes
6222 else
6223   echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6225
6226         ac_cv_prog_f77_g=no
6227 fi
6228
6229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230
6231 fi
6232 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6233 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6234 if test "$ac_test_FFLAGS" = set; then
6235   FFLAGS=$ac_save_FFLAGS
6236 elif test $ac_cv_prog_f77_g = yes; then
6237   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6238     FFLAGS="-g -O2"
6239   else
6240     FFLAGS="-g"
6241   fi
6242 else
6243   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6244     FFLAGS="-O2"
6245   else
6246     FFLAGS=
6247   fi
6248 fi
6249
6250 G77=`test $ac_compiler_gnu = yes && echo yes`
6251 ac_ext=c
6252 ac_cpp='$CPP $CPPFLAGS'
6253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6256
6257
6258
6259 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6260 # find the maximum length of command line arguments
6261 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6262 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6263 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6264   echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266     i=0
6267   teststring="ABCD"
6268
6269   case $build_os in
6270   msdosdjgpp*)
6271     # On DJGPP, this test can blow up pretty badly due to problems in libc
6272     # (any single argument exceeding 2000 bytes causes a buffer overrun
6273     # during glob expansion).  Even if it were fixed, the result of this
6274     # check would be larger than it should be.
6275     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6276     ;;
6277
6278   gnu*)
6279     # Under GNU Hurd, this test is not required because there is
6280     # no limit to the length of command line arguments.
6281     # Libtool will interpret -1 as no limit whatsoever
6282     lt_cv_sys_max_cmd_len=-1;
6283     ;;
6284
6285   cygwin* | mingw*)
6286     # On Win9x/ME, this test blows up -- it succeeds, but takes
6287     # about 5 minutes as the teststring grows exponentially.
6288     # Worse, since 9x/ME are not pre-emptively multitasking,
6289     # you end up with a "frozen" computer, even though with patience
6290     # the test eventually succeeds (with a max line length of 256k).
6291     # Instead, let's just punt: use the minimum linelength reported by
6292     # all of the supported platforms: 8192 (on NT/2K/XP).
6293     lt_cv_sys_max_cmd_len=8192;
6294     ;;
6295
6296   amigaos*)
6297     # On AmigaOS with pdksh, this test takes hours, literally.
6298     # So we just punt and use a minimum line length of 8192.
6299     lt_cv_sys_max_cmd_len=8192;
6300     ;;
6301
6302   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6303     # This has been around since 386BSD, at least.  Likely further.
6304     if test -x /sbin/sysctl; then
6305       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6306     elif test -x /usr/sbin/sysctl; then
6307       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6308     else
6309       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6310     fi
6311     # And add a safety zone
6312     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6313     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6314     ;;
6315
6316   interix*)
6317     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6318     lt_cv_sys_max_cmd_len=196608
6319     ;;
6320
6321   osf*)
6322     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6323     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6324     # nice to cause kernel panics so lets avoid the loop below.
6325     # First set a reasonable default.
6326     lt_cv_sys_max_cmd_len=16384
6327     #
6328     if test -x /sbin/sysconfig; then
6329       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6330         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6331       esac
6332     fi
6333     ;;
6334   sco3.2v5*)
6335     lt_cv_sys_max_cmd_len=102400
6336     ;;
6337   sysv5* | sco5v6* | sysv4.2uw2*)
6338     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6339     if test -n "$kargmax"; then
6340       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6341     else
6342       lt_cv_sys_max_cmd_len=32768
6343     fi
6344     ;;
6345   *)
6346     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6347     if test -n "$lt_cv_sys_max_cmd_len"; then
6348       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6349       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6350     else
6351       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6352       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6353                = "XX$teststring") >/dev/null 2>&1 &&
6354               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6355               lt_cv_sys_max_cmd_len=$new_result &&
6356               test $i != 17 # 1/2 MB should be enough
6357       do
6358         i=`expr $i + 1`
6359         teststring=$teststring$teststring
6360       done
6361       teststring=
6362       # Add a significant safety factor because C++ compilers can tack on massive
6363       # amounts of additional arguments before passing them to the linker.
6364       # It appears as though 1/2 is a usable value.
6365       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6366     fi
6367     ;;
6368   esac
6369
6370 fi
6371
6372 if test -n $lt_cv_sys_max_cmd_len ; then
6373   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6374 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6375 else
6376   { echo "$as_me:$LINENO: result: none" >&5
6377 echo "${ECHO_T}none" >&6; }
6378 fi
6379
6380
6381
6382
6383
6384 # Check for command to grab the raw symbol name followed by C symbol from nm.
6385 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6386 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6387 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6388   echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390
6391 # These are sane defaults that work on at least a few old systems.
6392 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6393
6394 # Character class describing NM global symbol codes.
6395 symcode='[BCDEGRST]'
6396
6397 # Regexp to match symbols that can be accessed directly from C.
6398 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6399
6400 # Transform an extracted symbol line into a proper C declaration
6401 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6402
6403 # Transform an extracted symbol line into symbol name and symbol address
6404 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'"
6405
6406 # Define system-specific variables.
6407 case $host_os in
6408 aix*)
6409   symcode='[BCDT]'
6410   ;;
6411 cygwin* | mingw* | pw32*)
6412   symcode='[ABCDGISTW]'
6413   ;;
6414 hpux*) # Its linker distinguishes data from code symbols
6415   if test "$host_cpu" = ia64; then
6416     symcode='[ABCDEGRST]'
6417   fi
6418   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6419   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'"
6420   ;;
6421 linux* | k*bsd*-gnu)
6422   if test "$host_cpu" = ia64; then
6423     symcode='[ABCDGIRSTW]'
6424     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6425     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'"
6426   fi
6427   ;;
6428 irix* | nonstopux*)
6429   symcode='[BCDEGRST]'
6430   ;;
6431 osf*)
6432   symcode='[BCDEGQRST]'
6433   ;;
6434 solaris*)
6435   symcode='[BDRT]'
6436   ;;
6437 sco3.2v5*)
6438   symcode='[DT]'
6439   ;;
6440 sysv4.2uw2*)
6441   symcode='[DT]'
6442   ;;
6443 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6444   symcode='[ABDT]'
6445   ;;
6446 sysv4)
6447   symcode='[DFNSTU]'
6448   ;;
6449 esac
6450
6451 # Handle CRLF in mingw tool chain
6452 opt_cr=
6453 case $build_os in
6454 mingw*)
6455   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6456   ;;
6457 esac
6458
6459 # If we're using GNU nm, then use its standard symbol codes.
6460 case `$NM -V 2>&1` in
6461 *GNU* | *'with BFD'*)
6462   symcode='[ABCDGIRSTW]' ;;
6463 esac
6464
6465 # Try without a prefix undercore, then with it.
6466 for ac_symprfx in "" "_"; do
6467
6468   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6469   symxfrm="\\1 $ac_symprfx\\2 \\2"
6470
6471   # Write the raw and C identifiers.
6472   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6473
6474   # Check to see that the pipe works correctly.
6475   pipe_works=no
6476
6477   rm -f conftest*
6478   cat > conftest.$ac_ext <<EOF
6479 #ifdef __cplusplus
6480 extern "C" {
6481 #endif
6482 char nm_test_var;
6483 void nm_test_func(){}
6484 #ifdef __cplusplus
6485 }
6486 #endif
6487 int main(){nm_test_var='a';nm_test_func();return(0);}
6488 EOF
6489
6490   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6491   (eval $ac_compile) 2>&5
6492   ac_status=$?
6493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494   (exit $ac_status); }; then
6495     # Now try to grab the symbols.
6496     nlist=conftest.nm
6497     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6498   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6499   ac_status=$?
6500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501   (exit $ac_status); } && test -s "$nlist"; then
6502       # Try sorting and uniquifying the output.
6503       if sort "$nlist" | uniq > "$nlist"T; then
6504         mv -f "$nlist"T "$nlist"
6505       else
6506         rm -f "$nlist"T
6507       fi
6508
6509       # Make sure that we snagged all the symbols we need.
6510       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6511         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6512           cat <<EOF > conftest.$ac_ext
6513 #ifdef __cplusplus
6514 extern "C" {
6515 #endif
6516
6517 EOF
6518           # Now generate the symbol file.
6519           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6520
6521           cat <<EOF >> conftest.$ac_ext
6522 #if defined (__STDC__) && __STDC__
6523 # define lt_ptr_t void *
6524 #else
6525 # define lt_ptr_t char *
6526 # define const
6527 #endif
6528
6529 /* The mapping between symbol names and symbols. */
6530 const struct {
6531   const char *name;
6532   lt_ptr_t address;
6533 }
6534 lt_preloaded_symbols[] =
6535 {
6536 EOF
6537           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6538           cat <<\EOF >> conftest.$ac_ext
6539   {0, (lt_ptr_t) 0}
6540 };
6541
6542 #ifdef __cplusplus
6543 }
6544 #endif
6545 EOF
6546           # Now try linking the two files.
6547           mv conftest.$ac_objext conftstm.$ac_objext
6548           lt_save_LIBS="$LIBS"
6549           lt_save_CFLAGS="$CFLAGS"
6550           LIBS="conftstm.$ac_objext"
6551           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6552           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6553   (eval $ac_link) 2>&5
6554   ac_status=$?
6555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6557             pipe_works=yes
6558           fi
6559           LIBS="$lt_save_LIBS"
6560           CFLAGS="$lt_save_CFLAGS"
6561         else
6562           echo "cannot find nm_test_func in $nlist" >&5
6563         fi
6564       else
6565         echo "cannot find nm_test_var in $nlist" >&5
6566       fi
6567     else
6568       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6569     fi
6570   else
6571     echo "$progname: failed program was:" >&5
6572     cat conftest.$ac_ext >&5
6573   fi
6574   rm -rf conftest* conftst*
6575
6576   # Do not use the global_symbol_pipe unless it works.
6577   if test "$pipe_works" = yes; then
6578     break
6579   else
6580     lt_cv_sys_global_symbol_pipe=
6581   fi
6582 done
6583
6584 fi
6585
6586 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6587   lt_cv_sys_global_symbol_to_cdecl=
6588 fi
6589 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6590   { echo "$as_me:$LINENO: result: failed" >&5
6591 echo "${ECHO_T}failed" >&6; }
6592 else
6593   { echo "$as_me:$LINENO: result: ok" >&5
6594 echo "${ECHO_T}ok" >&6; }
6595 fi
6596
6597 { echo "$as_me:$LINENO: checking for objdir" >&5
6598 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6599 if test "${lt_cv_objdir+set}" = set; then
6600   echo $ECHO_N "(cached) $ECHO_C" >&6
6601 else
6602   rm -f .libs 2>/dev/null
6603 mkdir .libs 2>/dev/null
6604 if test -d .libs; then
6605   lt_cv_objdir=.libs
6606 else
6607   # MS-DOS does not allow filenames that begin with a dot.
6608   lt_cv_objdir=_libs
6609 fi
6610 rmdir .libs 2>/dev/null
6611 fi
6612 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6613 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6614 objdir=$lt_cv_objdir
6615
6616
6617
6618
6619
6620 case $host_os in
6621 aix3*)
6622   # AIX sometimes has problems with the GCC collect2 program.  For some
6623   # reason, if we set the COLLECT_NAMES environment variable, the problems
6624   # vanish in a puff of smoke.
6625   if test "X${COLLECT_NAMES+set}" != Xset; then
6626     COLLECT_NAMES=
6627     export COLLECT_NAMES
6628   fi
6629   ;;
6630 esac
6631
6632 # Sed substitution that helps us do robust quoting.  It backslashifies
6633 # metacharacters that are still active within double-quoted strings.
6634 Xsed='sed -e 1s/^X//'
6635 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6636
6637 # Same as above, but do not quote variable references.
6638 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6639
6640 # Sed substitution to delay expansion of an escaped shell variable in a
6641 # double_quote_subst'ed string.
6642 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6643
6644 # Sed substitution to avoid accidental globbing in evaled expressions
6645 no_glob_subst='s/\*/\\\*/g'
6646
6647 # Constants:
6648 rm="rm -f"
6649
6650 # Global variables:
6651 default_ofile=libtool
6652 can_build_shared=yes
6653
6654 # All known linkers require a `.a' archive for static linking (except MSVC,
6655 # which needs '.lib').
6656 libext=a
6657 ltmain="$ac_aux_dir/ltmain.sh"
6658 ofile="$default_ofile"
6659 with_gnu_ld="$lt_cv_prog_gnu_ld"
6660
6661 if test -n "$ac_tool_prefix"; then
6662   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6663 set dummy ${ac_tool_prefix}ar; ac_word=$2
6664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666 if test "${ac_cv_prog_AR+set}" = set; then
6667   echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669   if test -n "$AR"; then
6670   ac_cv_prog_AR="$AR" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675   IFS=$as_save_IFS
6676   test -z "$as_dir" && as_dir=.
6677   for ac_exec_ext in '' $ac_executable_extensions; do
6678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679     ac_cv_prog_AR="${ac_tool_prefix}ar"
6680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681     break 2
6682   fi
6683 done
6684 done
6685 IFS=$as_save_IFS
6686
6687 fi
6688 fi
6689 AR=$ac_cv_prog_AR
6690 if test -n "$AR"; then
6691   { echo "$as_me:$LINENO: result: $AR" >&5
6692 echo "${ECHO_T}$AR" >&6; }
6693 else
6694   { echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6; }
6696 fi
6697
6698
6699 fi
6700 if test -z "$ac_cv_prog_AR"; then
6701   ac_ct_AR=$AR
6702   # Extract the first word of "ar", so it can be a program name with args.
6703 set dummy ar; ac_word=$2
6704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6706 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6707   echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709   if test -n "$ac_ct_AR"; then
6710   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6711 else
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH
6714 do
6715   IFS=$as_save_IFS
6716   test -z "$as_dir" && as_dir=.
6717   for ac_exec_ext in '' $ac_executable_extensions; do
6718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6719     ac_cv_prog_ac_ct_AR="ar"
6720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6721     break 2
6722   fi
6723 done
6724 done
6725 IFS=$as_save_IFS
6726
6727 fi
6728 fi
6729 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6730 if test -n "$ac_ct_AR"; then
6731   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6732 echo "${ECHO_T}$ac_ct_AR" >&6; }
6733 else
6734   { echo "$as_me:$LINENO: result: no" >&5
6735 echo "${ECHO_T}no" >&6; }
6736 fi
6737
6738   if test "x$ac_ct_AR" = x; then
6739     AR="false"
6740   else
6741     case $cross_compiling:$ac_tool_warned in
6742 yes:)
6743 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6744 whose name does not start with the host triplet.  If you think this
6745 configuration is useful to you, please write to autoconf@gnu.org." >&5
6746 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6747 whose name does not start with the host triplet.  If you think this
6748 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6749 ac_tool_warned=yes ;;
6750 esac
6751     AR=$ac_ct_AR
6752   fi
6753 else
6754   AR="$ac_cv_prog_AR"
6755 fi
6756
6757 if test -n "$ac_tool_prefix"; then
6758   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6759 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6762 if test "${ac_cv_prog_RANLIB+set}" = set; then
6763   echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765   if test -n "$RANLIB"; then
6766   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771   IFS=$as_save_IFS
6772   test -z "$as_dir" && as_dir=.
6773   for ac_exec_ext in '' $ac_executable_extensions; do
6774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777     break 2
6778   fi
6779 done
6780 done
6781 IFS=$as_save_IFS
6782
6783 fi
6784 fi
6785 RANLIB=$ac_cv_prog_RANLIB
6786 if test -n "$RANLIB"; then
6787   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6788 echo "${ECHO_T}$RANLIB" >&6; }
6789 else
6790   { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6792 fi
6793
6794
6795 fi
6796 if test -z "$ac_cv_prog_RANLIB"; then
6797   ac_ct_RANLIB=$RANLIB
6798   # Extract the first word of "ranlib", so it can be a program name with args.
6799 set dummy ranlib; ac_word=$2
6800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6803   echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805   if test -n "$ac_ct_RANLIB"; then
6806   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811   IFS=$as_save_IFS
6812   test -z "$as_dir" && as_dir=.
6813   for ac_exec_ext in '' $ac_executable_extensions; do
6814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815     ac_cv_prog_ac_ct_RANLIB="ranlib"
6816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6817     break 2
6818   fi
6819 done
6820 done
6821 IFS=$as_save_IFS
6822
6823 fi
6824 fi
6825 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6826 if test -n "$ac_ct_RANLIB"; then
6827   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6828 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6829 else
6830   { echo "$as_me:$LINENO: result: no" >&5
6831 echo "${ECHO_T}no" >&6; }
6832 fi
6833
6834   if test "x$ac_ct_RANLIB" = x; then
6835     RANLIB=":"
6836   else
6837     case $cross_compiling:$ac_tool_warned in
6838 yes:)
6839 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6840 whose name does not start with the host triplet.  If you think this
6841 configuration is useful to you, please write to autoconf@gnu.org." >&5
6842 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6843 whose name does not start with the host triplet.  If you think this
6844 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6845 ac_tool_warned=yes ;;
6846 esac
6847     RANLIB=$ac_ct_RANLIB
6848   fi
6849 else
6850   RANLIB="$ac_cv_prog_RANLIB"
6851 fi
6852
6853 if test -n "$ac_tool_prefix"; then
6854   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6855 set dummy ${ac_tool_prefix}strip; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_prog_STRIP+set}" = set; then
6859   echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861   if test -n "$STRIP"; then
6862   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6866 do
6867   IFS=$as_save_IFS
6868   test -z "$as_dir" && as_dir=.
6869   for ac_exec_ext in '' $ac_executable_extensions; do
6870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873     break 2
6874   fi
6875 done
6876 done
6877 IFS=$as_save_IFS
6878
6879 fi
6880 fi
6881 STRIP=$ac_cv_prog_STRIP
6882 if test -n "$STRIP"; then
6883   { echo "$as_me:$LINENO: result: $STRIP" >&5
6884 echo "${ECHO_T}$STRIP" >&6; }
6885 else
6886   { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6888 fi
6889
6890
6891 fi
6892 if test -z "$ac_cv_prog_STRIP"; then
6893   ac_ct_STRIP=$STRIP
6894   # Extract the first word of "strip", so it can be a program name with args.
6895 set dummy strip; ac_word=$2
6896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6899   echo $ECHO_N "(cached) $ECHO_C" >&6
6900 else
6901   if test -n "$ac_ct_STRIP"; then
6902   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6903 else
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 for as_dir in $PATH
6906 do
6907   IFS=$as_save_IFS
6908   test -z "$as_dir" && as_dir=.
6909   for ac_exec_ext in '' $ac_executable_extensions; do
6910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6911     ac_cv_prog_ac_ct_STRIP="strip"
6912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913     break 2
6914   fi
6915 done
6916 done
6917 IFS=$as_save_IFS
6918
6919 fi
6920 fi
6921 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6922 if test -n "$ac_ct_STRIP"; then
6923   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6924 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6925 else
6926   { echo "$as_me:$LINENO: result: no" >&5
6927 echo "${ECHO_T}no" >&6; }
6928 fi
6929
6930   if test "x$ac_ct_STRIP" = x; then
6931     STRIP=":"
6932   else
6933     case $cross_compiling:$ac_tool_warned in
6934 yes:)
6935 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6936 whose name does not start with the host triplet.  If you think this
6937 configuration is useful to you, please write to autoconf@gnu.org." >&5
6938 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6939 whose name does not start with the host triplet.  If you think this
6940 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6941 ac_tool_warned=yes ;;
6942 esac
6943     STRIP=$ac_ct_STRIP
6944   fi
6945 else
6946   STRIP="$ac_cv_prog_STRIP"
6947 fi
6948
6949
6950 old_CC="$CC"
6951 old_CFLAGS="$CFLAGS"
6952
6953 # Set sane defaults for various variables
6954 test -z "$AR" && AR=ar
6955 test -z "$AR_FLAGS" && AR_FLAGS=cru
6956 test -z "$AS" && AS=as
6957 test -z "$CC" && CC=cc
6958 test -z "$LTCC" && LTCC=$CC
6959 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6960 test -z "$DLLTOOL" && DLLTOOL=dlltool
6961 test -z "$LD" && LD=ld
6962 test -z "$LN_S" && LN_S="ln -s"
6963 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6964 test -z "$NM" && NM=nm
6965 test -z "$SED" && SED=sed
6966 test -z "$OBJDUMP" && OBJDUMP=objdump
6967 test -z "$RANLIB" && RANLIB=:
6968 test -z "$STRIP" && STRIP=:
6969 test -z "$ac_objext" && ac_objext=o
6970
6971 # Determine commands to create old-style static archives.
6972 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6973 old_postinstall_cmds='chmod 644 $oldlib'
6974 old_postuninstall_cmds=
6975
6976 if test -n "$RANLIB"; then
6977   case $host_os in
6978   openbsd*)
6979     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6980     ;;
6981   *)
6982     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6983     ;;
6984   esac
6985   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6986 fi
6987
6988 for cc_temp in $compiler""; do
6989   case $cc_temp in
6990     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6991     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6992     \-*) ;;
6993     *) break;;
6994   esac
6995 done
6996 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6997
6998
6999 # Only perform the check for file, if the check method requires it
7000 case $deplibs_check_method in
7001 file_magic*)
7002   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7003     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7004 echo $ECHO_N "checking for ${ac_tool_prefix}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/${ac_tool_prefix}file; then
7020       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}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 if test -z "$lt_cv_path_MAGIC_CMD"; then
7064   if test -n "$ac_tool_prefix"; then
7065     { echo "$as_me:$LINENO: checking for file" >&5
7066 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7067 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7068   echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070   case $MAGIC_CMD in
7071 [\\/*] |  ?:[\\/]*)
7072   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7073   ;;
7074 *)
7075   lt_save_MAGIC_CMD="$MAGIC_CMD"
7076   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7077   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7078   for ac_dir in $ac_dummy; do
7079     IFS="$lt_save_ifs"
7080     test -z "$ac_dir" && ac_dir=.
7081     if test -f $ac_dir/file; then
7082       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7083       if test -n "$file_magic_test_file"; then
7084         case $deplibs_check_method in
7085         "file_magic "*)
7086           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7087           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7088           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7089             $EGREP "$file_magic_regex" > /dev/null; then
7090             :
7091           else
7092             cat <<EOF 1>&2
7093
7094 *** Warning: the command libtool uses to detect shared libraries,
7095 *** $file_magic_cmd, produces output that libtool cannot recognize.
7096 *** The result is that libtool may fail to recognize shared libraries
7097 *** as such.  This will affect the creation of libtool libraries that
7098 *** depend on shared libraries, but programs linked with such libtool
7099 *** libraries will work regardless of this problem.  Nevertheless, you
7100 *** may want to report the problem to your system manager and/or to
7101 *** bug-libtool@gnu.org
7102
7103 EOF
7104           fi ;;
7105         esac
7106       fi
7107       break
7108     fi
7109   done
7110   IFS="$lt_save_ifs"
7111   MAGIC_CMD="$lt_save_MAGIC_CMD"
7112   ;;
7113 esac
7114 fi
7115
7116 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7117 if test -n "$MAGIC_CMD"; then
7118   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7119 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7120 else
7121   { echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6; }
7123 fi
7124
7125   else
7126     MAGIC_CMD=:
7127   fi
7128 fi
7129
7130   fi
7131   ;;
7132 esac
7133
7134
7135   case $host_os in
7136     rhapsody* | darwin*)
7137     if test -n "$ac_tool_prefix"; then
7138   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7139 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7142 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7143   echo $ECHO_N "(cached) $ECHO_C" >&6
7144 else
7145   if test -n "$DSYMUTIL"; then
7146   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7147 else
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7150 do
7151   IFS=$as_save_IFS
7152   test -z "$as_dir" && as_dir=.
7153   for ac_exec_ext in '' $ac_executable_extensions; do
7154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7157     break 2
7158   fi
7159 done
7160 done
7161 IFS=$as_save_IFS
7162
7163 fi
7164 fi
7165 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7166 if test -n "$DSYMUTIL"; then
7167   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7168 echo "${ECHO_T}$DSYMUTIL" >&6; }
7169 else
7170   { echo "$as_me:$LINENO: result: no" >&5
7171 echo "${ECHO_T}no" >&6; }
7172 fi
7173
7174
7175 fi
7176 if test -z "$ac_cv_prog_DSYMUTIL"; then
7177   ac_ct_DSYMUTIL=$DSYMUTIL
7178   # Extract the first word of "dsymutil", so it can be a program name with args.
7179 set dummy dsymutil; ac_word=$2
7180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7182 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7183   echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185   if test -n "$ac_ct_DSYMUTIL"; then
7186   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7187 else
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7190 do
7191   IFS=$as_save_IFS
7192   test -z "$as_dir" && as_dir=.
7193   for ac_exec_ext in '' $ac_executable_extensions; do
7194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7195     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197     break 2
7198   fi
7199 done
7200 done
7201 IFS=$as_save_IFS
7202
7203 fi
7204 fi
7205 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7206 if test -n "$ac_ct_DSYMUTIL"; then
7207   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7208 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7209 else
7210   { echo "$as_me:$LINENO: result: no" >&5
7211 echo "${ECHO_T}no" >&6; }
7212 fi
7213
7214   if test "x$ac_ct_DSYMUTIL" = x; then
7215     DSYMUTIL=":"
7216   else
7217     case $cross_compiling:$ac_tool_warned in
7218 yes:)
7219 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7220 whose name does not start with the host triplet.  If you think this
7221 configuration is useful to you, please write to autoconf@gnu.org." >&5
7222 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7223 whose name does not start with the host triplet.  If you think this
7224 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7225 ac_tool_warned=yes ;;
7226 esac
7227     DSYMUTIL=$ac_ct_DSYMUTIL
7228   fi
7229 else
7230   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7231 fi
7232
7233     if test -n "$ac_tool_prefix"; then
7234   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7235 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7238 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7239   echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241   if test -n "$NMEDIT"; then
7242   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7243 else
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7246 do
7247   IFS=$as_save_IFS
7248   test -z "$as_dir" && as_dir=.
7249   for ac_exec_ext in '' $ac_executable_extensions; do
7250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7251     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7253     break 2
7254   fi
7255 done
7256 done
7257 IFS=$as_save_IFS
7258
7259 fi
7260 fi
7261 NMEDIT=$ac_cv_prog_NMEDIT
7262 if test -n "$NMEDIT"; then
7263   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7264 echo "${ECHO_T}$NMEDIT" >&6; }
7265 else
7266   { echo "$as_me:$LINENO: result: no" >&5
7267 echo "${ECHO_T}no" >&6; }
7268 fi
7269
7270
7271 fi
7272 if test -z "$ac_cv_prog_NMEDIT"; then
7273   ac_ct_NMEDIT=$NMEDIT
7274   # Extract the first word of "nmedit", so it can be a program name with args.
7275 set dummy nmedit; ac_word=$2
7276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7278 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7279   echo $ECHO_N "(cached) $ECHO_C" >&6
7280 else
7281   if test -n "$ac_ct_NMEDIT"; then
7282   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7283 else
7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 for as_dir in $PATH
7286 do
7287   IFS=$as_save_IFS
7288   test -z "$as_dir" && as_dir=.
7289   for ac_exec_ext in '' $ac_executable_extensions; do
7290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7291     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7293     break 2
7294   fi
7295 done
7296 done
7297 IFS=$as_save_IFS
7298
7299 fi
7300 fi
7301 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7302 if test -n "$ac_ct_NMEDIT"; then
7303   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7304 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7305 else
7306   { echo "$as_me:$LINENO: result: no" >&5
7307 echo "${ECHO_T}no" >&6; }
7308 fi
7309
7310   if test "x$ac_ct_NMEDIT" = x; then
7311     NMEDIT=":"
7312   else
7313     case $cross_compiling:$ac_tool_warned in
7314 yes:)
7315 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7316 whose name does not start with the host triplet.  If you think this
7317 configuration is useful to you, please write to autoconf@gnu.org." >&5
7318 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7319 whose name does not start with the host triplet.  If you think this
7320 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7321 ac_tool_warned=yes ;;
7322 esac
7323     NMEDIT=$ac_ct_NMEDIT
7324   fi
7325 else
7326   NMEDIT="$ac_cv_prog_NMEDIT"
7327 fi
7328
7329
7330     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7331 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7332 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7333   echo $ECHO_N "(cached) $ECHO_C" >&6
7334 else
7335   lt_cv_apple_cc_single_mod=no
7336       if test -z "${LT_MULTI_MODULE}"; then
7337    # By default we will add the -single_module flag. You can override
7338    # by either setting the environment variable LT_MULTI_MODULE
7339    # non-empty at configure time, or by adding -multi_module to the
7340    # link flags.
7341    echo "int foo(void){return 1;}" > conftest.c
7342    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7343      -dynamiclib ${wl}-single_module conftest.c
7344    if test -f libconftest.dylib; then
7345      lt_cv_apple_cc_single_mod=yes
7346      rm -rf libconftest.dylib*
7347    fi
7348    rm conftest.c
7349       fi
7350 fi
7351 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7352 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7353     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7354 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7355 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7356   echo $ECHO_N "(cached) $ECHO_C" >&6
7357 else
7358   lt_cv_ld_exported_symbols_list=no
7359       save_LDFLAGS=$LDFLAGS
7360       echo "_main" > conftest.sym
7361       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7362       cat >conftest.$ac_ext <<_ACEOF
7363 /* confdefs.h.  */
7364 _ACEOF
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h.  */
7368
7369 int
7370 main ()
7371 {
7372
7373   ;
7374   return 0;
7375 }
7376 _ACEOF
7377 rm -f conftest.$ac_objext conftest$ac_exeext
7378 if { (ac_try="$ac_link"
7379 case "(($ac_try" in
7380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7381   *) ac_try_echo=$ac_try;;
7382 esac
7383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7384   (eval "$ac_link") 2>conftest.er1
7385   ac_status=$?
7386   grep -v '^ *+' conftest.er1 >conftest.err
7387   rm -f conftest.er1
7388   cat conftest.err >&5
7389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); } && {
7391          test -z "$ac_c_werror_flag" ||
7392          test ! -s conftest.err
7393        } && test -s conftest$ac_exeext &&
7394        $as_test_x conftest$ac_exeext; then
7395   lt_cv_ld_exported_symbols_list=yes
7396 else
7397   echo "$as_me: failed program was:" >&5
7398 sed 's/^/| /' conftest.$ac_ext >&5
7399
7400         lt_cv_ld_exported_symbols_list=no
7401 fi
7402
7403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7404       conftest$ac_exeext conftest.$ac_ext
7405    LDFLAGS="$save_LDFLAGS"
7406
7407 fi
7408 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7409 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7410     case $host_os in
7411     rhapsody* | darwin1.[0123])
7412       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7413     darwin1.*)
7414      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7415     darwin*)
7416       # if running on 10.5 or later, the deployment target defaults
7417       # to the OS version, if on x86, and 10.4, the deployment
7418       # target defaults to 10.4. Don't you love it?
7419       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7420    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7421      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7422    10.[012]*)
7423      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7424    10.*)
7425      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7426       esac
7427     ;;
7428   esac
7429     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7430       _lt_dar_single_mod='$single_module'
7431     fi
7432     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7433       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7434     else
7435       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7436     fi
7437     if test "$DSYMUTIL" != ":"; then
7438       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7439     else
7440       _lt_dsymutil=
7441     fi
7442     ;;
7443   esac
7444
7445
7446 enable_dlopen=no
7447 enable_win32_dll=no
7448
7449 # Check whether --enable-libtool-lock was given.
7450 if test "${enable_libtool_lock+set}" = set; then
7451   enableval=$enable_libtool_lock;
7452 fi
7453
7454 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7455
7456
7457 # Check whether --with-pic was given.
7458 if test "${with_pic+set}" = set; then
7459   withval=$with_pic; pic_mode="$withval"
7460 else
7461   pic_mode=default
7462 fi
7463
7464 test -z "$pic_mode" && pic_mode=default
7465
7466 # Use C for the default configuration in the libtool script
7467 tagname=
7468 lt_save_CC="$CC"
7469 ac_ext=c
7470 ac_cpp='$CPP $CPPFLAGS'
7471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7474
7475
7476 # Source file extension for C test sources.
7477 ac_ext=c
7478
7479 # Object file extension for compiled C test sources.
7480 objext=o
7481 objext=$objext
7482
7483 # Code to be used in simple compile tests
7484 lt_simple_compile_test_code="int some_variable = 0;"
7485
7486 # Code to be used in simple link tests
7487 lt_simple_link_test_code='int main(){return(0);}'
7488
7489
7490 # If no C compiler was specified, use CC.
7491 LTCC=${LTCC-"$CC"}
7492
7493 # If no C compiler flags were specified, use CFLAGS.
7494 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7495
7496 # Allow CC to be a program name with arguments.
7497 compiler=$CC
7498
7499
7500 # save warnings/boilerplate of simple test code
7501 ac_outfile=conftest.$ac_objext
7502 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7503 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7504 _lt_compiler_boilerplate=`cat conftest.err`
7505 $rm conftest*
7506
7507 ac_outfile=conftest.$ac_objext
7508 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7509 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7510 _lt_linker_boilerplate=`cat conftest.err`
7511 $rm -r conftest*
7512
7513
7514
7515 lt_prog_compiler_no_builtin_flag=
7516
7517 if test "$GCC" = yes; then
7518   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7519
7520
7521 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7522 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7523 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7524   echo $ECHO_N "(cached) $ECHO_C" >&6
7525 else
7526   lt_cv_prog_compiler_rtti_exceptions=no
7527   ac_outfile=conftest.$ac_objext
7528    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7529    lt_compiler_flag="-fno-rtti -fno-exceptions"
7530    # Insert the option either (1) after the last *FLAGS variable, or
7531    # (2) before a word containing "conftest.", or (3) at the end.
7532    # Note that $ac_compile itself does not contain backslashes and begins
7533    # with a dollar sign (not a hyphen), so the echo should work correctly.
7534    # The option is referenced via a variable to avoid confusing sed.
7535    lt_compile=`echo "$ac_compile" | $SED \
7536    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7537    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7538    -e 's:$: $lt_compiler_flag:'`
7539    (eval echo "\"\$as_me:7539: $lt_compile\"" >&5)
7540    (eval "$lt_compile" 2>conftest.err)
7541    ac_status=$?
7542    cat conftest.err >&5
7543    echo "$as_me:7543: \$? = $ac_status" >&5
7544    if (exit $ac_status) && test -s "$ac_outfile"; then
7545      # The compiler can only warn and ignore the option if not recognized
7546      # So say no if there are warnings other than the usual output.
7547      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7548      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7549      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7550        lt_cv_prog_compiler_rtti_exceptions=yes
7551      fi
7552    fi
7553    $rm conftest*
7554
7555 fi
7556 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7557 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7558
7559 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7560     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7561 else
7562     :
7563 fi
7564
7565 fi
7566
7567 lt_prog_compiler_wl=
7568 lt_prog_compiler_pic=
7569 lt_prog_compiler_static=
7570
7571 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7572 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7573
7574   if test "$GCC" = yes; then
7575     lt_prog_compiler_wl='-Wl,'
7576     lt_prog_compiler_static='-static'
7577
7578     case $host_os in
7579       aix*)
7580       # All AIX code is PIC.
7581       if test "$host_cpu" = ia64; then
7582         # AIX 5 now supports IA64 processor
7583         lt_prog_compiler_static='-Bstatic'
7584       fi
7585       ;;
7586
7587     amigaos*)
7588       # FIXME: we need at least 68020 code to build shared libraries, but
7589       # adding the `-m68020' flag to GCC prevents building anything better,
7590       # like `-m68040'.
7591       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7592       ;;
7593
7594     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7595       # PIC is the default for these OSes.
7596       ;;
7597
7598     mingw* | cygwin* | pw32* | os2*)
7599       # This hack is so that the source file can tell whether it is being
7600       # built for inclusion in a dll (and should export symbols for example).
7601       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7602       # (--disable-auto-import) libraries
7603       lt_prog_compiler_pic='-DDLL_EXPORT'
7604       ;;
7605
7606     darwin* | rhapsody*)
7607       # PIC is the default on this platform
7608       # Common symbols not allowed in MH_DYLIB files
7609       lt_prog_compiler_pic='-fno-common'
7610       ;;
7611
7612     interix[3-9]*)
7613       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7614       # Instead, we relocate shared libraries at runtime.
7615       ;;
7616
7617     msdosdjgpp*)
7618       # Just because we use GCC doesn't mean we suddenly get shared libraries
7619       # on systems that don't support them.
7620       lt_prog_compiler_can_build_shared=no
7621       enable_shared=no
7622       ;;
7623
7624     sysv4*MP*)
7625       if test -d /usr/nec; then
7626         lt_prog_compiler_pic=-Kconform_pic
7627       fi
7628       ;;
7629
7630     hpux*)
7631       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7632       # not for PA HP-UX.
7633       case $host_cpu in
7634       hppa*64*|ia64*)
7635         # +Z the default
7636         ;;
7637       *)
7638         lt_prog_compiler_pic='-fPIC'
7639         ;;
7640       esac
7641       ;;
7642
7643     *)
7644       lt_prog_compiler_pic='-fPIC'
7645       ;;
7646     esac
7647   else
7648     # PORTME Check for flag to pass linker flags through the system compiler.
7649     case $host_os in
7650     aix*)
7651       lt_prog_compiler_wl='-Wl,'
7652       if test "$host_cpu" = ia64; then
7653         # AIX 5 now supports IA64 processor
7654         lt_prog_compiler_static='-Bstatic'
7655       else
7656         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7657       fi
7658       ;;
7659       darwin*)
7660         # PIC is the default on this platform
7661         # Common symbols not allowed in MH_DYLIB files
7662        case $cc_basename in
7663          xlc*)
7664          lt_prog_compiler_pic='-qnocommon'
7665          lt_prog_compiler_wl='-Wl,'
7666          ;;
7667        esac
7668        ;;
7669
7670     mingw* | cygwin* | pw32* | os2*)
7671       # This hack is so that the source file can tell whether it is being
7672       # built for inclusion in a dll (and should export symbols for example).
7673       lt_prog_compiler_pic='-DDLL_EXPORT'
7674       ;;
7675
7676     hpux9* | hpux10* | hpux11*)
7677       lt_prog_compiler_wl='-Wl,'
7678       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7679       # not for PA HP-UX.
7680       case $host_cpu in
7681       hppa*64*|ia64*)
7682         # +Z the default
7683         ;;
7684       *)
7685         lt_prog_compiler_pic='+Z'
7686         ;;
7687       esac
7688       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7689       lt_prog_compiler_static='${wl}-a ${wl}archive'
7690       ;;
7691
7692     irix5* | irix6* | nonstopux*)
7693       lt_prog_compiler_wl='-Wl,'
7694       # PIC (with -KPIC) is the default.
7695       lt_prog_compiler_static='-non_shared'
7696       ;;
7697
7698     newsos6)
7699       lt_prog_compiler_pic='-KPIC'
7700       lt_prog_compiler_static='-Bstatic'
7701       ;;
7702
7703     linux* | k*bsd*-gnu)
7704       case $cc_basename in
7705       icc* | ecc*)
7706         lt_prog_compiler_wl='-Wl,'
7707         lt_prog_compiler_pic='-KPIC'
7708         lt_prog_compiler_static='-static'
7709         ;;
7710       pgcc* | pgf77* | pgf90* | pgf95*)
7711         # Portland Group compilers (*not* the Pentium gcc compiler,
7712         # which looks to be a dead project)
7713         lt_prog_compiler_wl='-Wl,'
7714         lt_prog_compiler_pic='-fpic'
7715         lt_prog_compiler_static='-Bstatic'
7716         ;;
7717       ccc*)
7718         lt_prog_compiler_wl='-Wl,'
7719         # All Alpha code is PIC.
7720         lt_prog_compiler_static='-non_shared'
7721         ;;
7722       *)
7723         case `$CC -V 2>&1 | sed 5q` in
7724         *Sun\ C*)
7725           # Sun C 5.9
7726           lt_prog_compiler_pic='-KPIC'
7727           lt_prog_compiler_static='-Bstatic'
7728           lt_prog_compiler_wl='-Wl,'
7729           ;;
7730         *Sun\ F*)
7731           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7732           lt_prog_compiler_pic='-KPIC'
7733           lt_prog_compiler_static='-Bstatic'
7734           lt_prog_compiler_wl=''
7735           ;;
7736         esac
7737         ;;
7738       esac
7739       ;;
7740
7741     osf3* | osf4* | osf5*)
7742       lt_prog_compiler_wl='-Wl,'
7743       # All OSF/1 code is PIC.
7744       lt_prog_compiler_static='-non_shared'
7745       ;;
7746
7747     rdos*)
7748       lt_prog_compiler_static='-non_shared'
7749       ;;
7750
7751     solaris*)
7752       lt_prog_compiler_pic='-KPIC'
7753       lt_prog_compiler_static='-Bstatic'
7754       case $cc_basename in
7755       f77* | f90* | f95*)
7756         lt_prog_compiler_wl='-Qoption ld ';;
7757       *)
7758         lt_prog_compiler_wl='-Wl,';;
7759       esac
7760       ;;
7761
7762     sunos4*)
7763       lt_prog_compiler_wl='-Qoption ld '
7764       lt_prog_compiler_pic='-PIC'
7765       lt_prog_compiler_static='-Bstatic'
7766       ;;
7767
7768     sysv4 | sysv4.2uw2* | sysv4.3*)
7769       lt_prog_compiler_wl='-Wl,'
7770       lt_prog_compiler_pic='-KPIC'
7771       lt_prog_compiler_static='-Bstatic'
7772       ;;
7773
7774     sysv4*MP*)
7775       if test -d /usr/nec ;then
7776         lt_prog_compiler_pic='-Kconform_pic'
7777         lt_prog_compiler_static='-Bstatic'
7778       fi
7779       ;;
7780
7781     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7782       lt_prog_compiler_wl='-Wl,'
7783       lt_prog_compiler_pic='-KPIC'
7784       lt_prog_compiler_static='-Bstatic'
7785       ;;
7786
7787     unicos*)
7788       lt_prog_compiler_wl='-Wl,'
7789       lt_prog_compiler_can_build_shared=no
7790       ;;
7791
7792     uts4*)
7793       lt_prog_compiler_pic='-pic'
7794       lt_prog_compiler_static='-Bstatic'
7795       ;;
7796
7797     *)
7798       lt_prog_compiler_can_build_shared=no
7799       ;;
7800     esac
7801   fi
7802
7803 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7804 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7805
7806 #
7807 # Check to make sure the PIC flag actually works.
7808 #
7809 if test -n "$lt_prog_compiler_pic"; then
7810
7811 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7812 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7813 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7814   echo $ECHO_N "(cached) $ECHO_C" >&6
7815 else
7816   lt_cv_prog_compiler_pic_works=no
7817   ac_outfile=conftest.$ac_objext
7818    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7819    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7820    # Insert the option either (1) after the last *FLAGS variable, or
7821    # (2) before a word containing "conftest.", or (3) at the end.
7822    # Note that $ac_compile itself does not contain backslashes and begins
7823    # with a dollar sign (not a hyphen), so the echo should work correctly.
7824    # The option is referenced via a variable to avoid confusing sed.
7825    lt_compile=`echo "$ac_compile" | $SED \
7826    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7827    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7828    -e 's:$: $lt_compiler_flag:'`
7829    (eval echo "\"\$as_me:7829: $lt_compile\"" >&5)
7830    (eval "$lt_compile" 2>conftest.err)
7831    ac_status=$?
7832    cat conftest.err >&5
7833    echo "$as_me:7833: \$? = $ac_status" >&5
7834    if (exit $ac_status) && test -s "$ac_outfile"; then
7835      # The compiler can only warn and ignore the option if not recognized
7836      # So say no if there are warnings other than the usual output.
7837      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7838      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7839      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7840        lt_cv_prog_compiler_pic_works=yes
7841      fi
7842    fi
7843    $rm conftest*
7844
7845 fi
7846 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7847 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7848
7849 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7850     case $lt_prog_compiler_pic in
7851      "" | " "*) ;;
7852      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7853      esac
7854 else
7855     lt_prog_compiler_pic=
7856      lt_prog_compiler_can_build_shared=no
7857 fi
7858
7859 fi
7860 case $host_os in
7861   # For platforms which do not support PIC, -DPIC is meaningless:
7862   *djgpp*)
7863     lt_prog_compiler_pic=
7864     ;;
7865   *)
7866     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7867     ;;
7868 esac
7869
7870 #
7871 # Check to make sure the static flag actually works.
7872 #
7873 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7874 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7875 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7876 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7877   echo $ECHO_N "(cached) $ECHO_C" >&6
7878 else
7879   lt_cv_prog_compiler_static_works=no
7880    save_LDFLAGS="$LDFLAGS"
7881    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7882    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7883    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7884      # The linker can only warn and ignore the option if not recognized
7885      # So say no if there are warnings
7886      if test -s conftest.err; then
7887        # Append any errors to the config.log.
7888        cat conftest.err 1>&5
7889        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7890        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7891        if diff conftest.exp conftest.er2 >/dev/null; then
7892          lt_cv_prog_compiler_static_works=yes
7893        fi
7894      else
7895        lt_cv_prog_compiler_static_works=yes
7896      fi
7897    fi
7898    $rm -r conftest*
7899    LDFLAGS="$save_LDFLAGS"
7900
7901 fi
7902 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7903 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7904
7905 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7906     :
7907 else
7908     lt_prog_compiler_static=
7909 fi
7910
7911
7912 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7913 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7914 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7915   echo $ECHO_N "(cached) $ECHO_C" >&6
7916 else
7917   lt_cv_prog_compiler_c_o=no
7918    $rm -r conftest 2>/dev/null
7919    mkdir conftest
7920    cd conftest
7921    mkdir out
7922    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7923
7924    lt_compiler_flag="-o out/conftest2.$ac_objext"
7925    # Insert the option either (1) after the last *FLAGS variable, or
7926    # (2) before a word containing "conftest.", or (3) at the end.
7927    # Note that $ac_compile itself does not contain backslashes and begins
7928    # with a dollar sign (not a hyphen), so the echo should work correctly.
7929    lt_compile=`echo "$ac_compile" | $SED \
7930    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7931    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7932    -e 's:$: $lt_compiler_flag:'`
7933    (eval echo "\"\$as_me:7933: $lt_compile\"" >&5)
7934    (eval "$lt_compile" 2>out/conftest.err)
7935    ac_status=$?
7936    cat out/conftest.err >&5
7937    echo "$as_me:7937: \$? = $ac_status" >&5
7938    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7939    then
7940      # The compiler can only warn and ignore the option if not recognized
7941      # So say no if there are warnings
7942      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7943      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7944      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7945        lt_cv_prog_compiler_c_o=yes
7946      fi
7947    fi
7948    chmod u+w . 2>&5
7949    $rm conftest*
7950    # SGI C++ compiler will create directory out/ii_files/ for
7951    # template instantiation
7952    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7953    $rm out/* && rmdir out
7954    cd ..
7955    rmdir conftest
7956    $rm conftest*
7957
7958 fi
7959 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7960 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7961
7962
7963 hard_links="nottested"
7964 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7965   # do not overwrite the value of need_locks provided by the user
7966   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7967 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7968   hard_links=yes
7969   $rm conftest*
7970   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7971   touch conftest.a
7972   ln conftest.a conftest.b 2>&5 || hard_links=no
7973   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7974   { echo "$as_me:$LINENO: result: $hard_links" >&5
7975 echo "${ECHO_T}$hard_links" >&6; }
7976   if test "$hard_links" = no; then
7977     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7978 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7979     need_locks=warn
7980   fi
7981 else
7982   need_locks=no
7983 fi
7984
7985 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7986 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7987
7988   runpath_var=
7989   allow_undefined_flag=
7990   enable_shared_with_static_runtimes=no
7991   archive_cmds=
7992   archive_expsym_cmds=
7993   old_archive_From_new_cmds=
7994   old_archive_from_expsyms_cmds=
7995   export_dynamic_flag_spec=
7996   whole_archive_flag_spec=
7997   thread_safe_flag_spec=
7998   hardcode_libdir_flag_spec=
7999   hardcode_libdir_flag_spec_ld=
8000   hardcode_libdir_separator=
8001   hardcode_direct=no
8002   hardcode_minus_L=no
8003   hardcode_shlibpath_var=unsupported
8004   link_all_deplibs=unknown
8005   hardcode_automatic=no
8006   module_cmds=
8007   module_expsym_cmds=
8008   always_export_symbols=no
8009   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8010   # include_expsyms should be a list of space-separated symbols to be *always*
8011   # included in the symbol list
8012   include_expsyms=
8013   # exclude_expsyms can be an extended regexp of symbols to exclude
8014   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8015   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8016   # as well as any symbol that contains `d'.
8017   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8018   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8019   # platforms (ab)use it in PIC code, but their linkers get confused if
8020   # the symbol is explicitly referenced.  Since portable code cannot
8021   # rely on this symbol name, it's probably fine to never include it in
8022   # preloaded symbol tables.
8023   # Exclude shared library initialization/finalization symbols.
8024   extract_expsyms_cmds=
8025   # Just being paranoid about ensuring that cc_basename is set.
8026   for cc_temp in $compiler""; do
8027   case $cc_temp in
8028     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8029     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8030     \-*) ;;
8031     *) break;;
8032   esac
8033 done
8034 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8035
8036   case $host_os in
8037   cygwin* | mingw* | pw32*)
8038     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8039     # When not using gcc, we currently assume that we are using
8040     # Microsoft Visual C++.
8041     if test "$GCC" != yes; then
8042       with_gnu_ld=no
8043     fi
8044     ;;
8045   interix*)
8046     # we just hope/assume this is gcc and not c89 (= MSVC++)
8047     with_gnu_ld=yes
8048     ;;
8049   openbsd*)
8050     with_gnu_ld=no
8051     ;;
8052   esac
8053
8054   ld_shlibs=yes
8055   if test "$with_gnu_ld" = yes; then
8056     # If archive_cmds runs LD, not CC, wlarc should be empty
8057     wlarc='${wl}'
8058
8059     # Set some defaults for GNU ld with shared library support. These
8060     # are reset later if shared libraries are not supported. Putting them
8061     # here allows them to be overridden if necessary.
8062     runpath_var=LD_RUN_PATH
8063     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8064     export_dynamic_flag_spec='${wl}--export-dynamic'
8065     # ancient GNU ld didn't support --whole-archive et. al.
8066     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8067         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8068       else
8069         whole_archive_flag_spec=
8070     fi
8071     supports_anon_versioning=no
8072     case `$LD -v 2>/dev/null` in
8073       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8074       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8075       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8076       *\ 2.11.*) ;; # other 2.11 versions
8077       *) supports_anon_versioning=yes ;;
8078     esac
8079
8080     # See if GNU ld supports shared libraries.
8081     case $host_os in
8082     aix[3-9]*)
8083       # On AIX/PPC, the GNU linker is very broken
8084       if test "$host_cpu" != ia64; then
8085         ld_shlibs=no
8086         cat <<EOF 1>&2
8087
8088 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8089 *** to be unable to reliably create shared libraries on AIX.
8090 *** Therefore, libtool is disabling shared libraries support.  If you
8091 *** really care for shared libraries, you may want to modify your PATH
8092 *** so that a non-GNU linker is found, and then restart.
8093
8094 EOF
8095       fi
8096       ;;
8097
8098     amigaos*)
8099       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)'
8100       hardcode_libdir_flag_spec='-L$libdir'
8101       hardcode_minus_L=yes
8102
8103       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8104       # that the semantics of dynamic libraries on AmigaOS, at least up
8105       # to version 4, is to share data among multiple programs linked
8106       # with the same dynamic library.  Since this doesn't match the
8107       # behavior of shared libraries on other platforms, we can't use
8108       # them.
8109       ld_shlibs=no
8110       ;;
8111
8112     beos*)
8113       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8114         allow_undefined_flag=unsupported
8115         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8116         # support --undefined.  This deserves some investigation.  FIXME
8117         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8118       else
8119         ld_shlibs=no
8120       fi
8121       ;;
8122
8123     cygwin* | mingw* | pw32*)
8124       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8125       # as there is no search path for DLLs.
8126       hardcode_libdir_flag_spec='-L$libdir'
8127       allow_undefined_flag=unsupported
8128       always_export_symbols=no
8129       enable_shared_with_static_runtimes=yes
8130       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8131
8132       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8133         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8134         # If the export-symbols file already is a .def file (1st line
8135         # is EXPORTS), use it as is; otherwise, prepend...
8136         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8137           cp $export_symbols $output_objdir/$soname.def;
8138         else
8139           echo EXPORTS > $output_objdir/$soname.def;
8140           cat $export_symbols >> $output_objdir/$soname.def;
8141         fi~
8142         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8143       else
8144         ld_shlibs=no
8145       fi
8146       ;;
8147
8148     interix[3-9]*)
8149       hardcode_direct=no
8150       hardcode_shlibpath_var=no
8151       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8152       export_dynamic_flag_spec='${wl}-E'
8153       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8154       # Instead, shared libraries are loaded at an image base (0x10000000 by
8155       # default) and relocated if they conflict, which is a slow very memory
8156       # consuming and fragmenting process.  To avoid this, we pick a random,
8157       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8158       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8159       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8160       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'
8161       ;;
8162
8163     gnu* | linux* | k*bsd*-gnu)
8164       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8165         tmp_addflag=
8166         case $cc_basename,$host_cpu in
8167         pgcc*)                          # Portland Group C compiler
8168           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'
8169           tmp_addflag=' $pic_flag'
8170           ;;
8171         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8172           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'
8173           tmp_addflag=' $pic_flag -Mnomain' ;;
8174         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8175           tmp_addflag=' -i_dynamic' ;;
8176         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8177           tmp_addflag=' -i_dynamic -nofor_main' ;;
8178         ifc* | ifort*)                  # Intel Fortran compiler
8179           tmp_addflag=' -nofor_main' ;;
8180         esac
8181         case `$CC -V 2>&1 | sed 5q` in
8182         *Sun\ C*)                       # Sun C 5.9
8183           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8184           tmp_sharedflag='-G' ;;
8185         *Sun\ F*)                       # Sun Fortran 8.3
8186           tmp_sharedflag='-G' ;;
8187         *)
8188           tmp_sharedflag='-shared' ;;
8189         esac
8190         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8191
8192         if test $supports_anon_versioning = yes; then
8193           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8194   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8195   $echo "local: *; };" >> $output_objdir/$libname.ver~
8196           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8197         fi
8198         link_all_deplibs=no
8199       else
8200         ld_shlibs=no
8201       fi
8202       ;;
8203
8204     netbsd* | netbsdelf*-gnu)
8205       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8206         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8207         wlarc=
8208       else
8209         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8210         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8211       fi
8212       ;;
8213
8214     solaris*)
8215       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8216         ld_shlibs=no
8217         cat <<EOF 1>&2
8218
8219 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8220 *** create shared libraries on Solaris systems.  Therefore, libtool
8221 *** is disabling shared libraries support.  We urge you to upgrade GNU
8222 *** binutils to release 2.9.1 or newer.  Another option is to modify
8223 *** your PATH or compiler configuration so that the native linker is
8224 *** used, and then restart.
8225
8226 EOF
8227       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8228         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8229         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8230       else
8231         ld_shlibs=no
8232       fi
8233       ;;
8234
8235     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8236       case `$LD -v 2>&1` in
8237         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8238         ld_shlibs=no
8239         cat <<_LT_EOF 1>&2
8240
8241 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8242 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8243 *** is disabling shared libraries support.  We urge you to upgrade GNU
8244 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8245 *** your PATH or compiler configuration so that the native linker is
8246 *** used, and then restart.
8247
8248 _LT_EOF
8249         ;;
8250         *)
8251           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8252             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8253             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8254             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8255           else
8256             ld_shlibs=no
8257           fi
8258         ;;
8259       esac
8260       ;;
8261
8262     sunos4*)
8263       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8264       wlarc=
8265       hardcode_direct=yes
8266       hardcode_shlibpath_var=no
8267       ;;
8268
8269     *)
8270       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8271         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8272         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8273       else
8274         ld_shlibs=no
8275       fi
8276       ;;
8277     esac
8278
8279     if test "$ld_shlibs" = no; then
8280       runpath_var=
8281       hardcode_libdir_flag_spec=
8282       export_dynamic_flag_spec=
8283       whole_archive_flag_spec=
8284     fi
8285   else
8286     # PORTME fill in a description of your system's linker (not GNU ld)
8287     case $host_os in
8288     aix3*)
8289       allow_undefined_flag=unsupported
8290       always_export_symbols=yes
8291       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'
8292       # Note: this linker hardcodes the directories in LIBPATH if there
8293       # are no directories specified by -L.
8294       hardcode_minus_L=yes
8295       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8296         # Neither direct hardcoding nor static linking is supported with a
8297         # broken collect2.
8298         hardcode_direct=unsupported
8299       fi
8300       ;;
8301
8302     aix[4-9]*)
8303       if test "$host_cpu" = ia64; then
8304         # On IA64, the linker does run time linking by default, so we don't
8305         # have to do anything special.
8306         aix_use_runtimelinking=no
8307         exp_sym_flag='-Bexport'
8308         no_entry_flag=""
8309       else
8310         # If we're using GNU nm, then we don't want the "-C" option.
8311         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8312         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8313           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'
8314         else
8315           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'
8316         fi
8317         aix_use_runtimelinking=no
8318
8319         # Test if we are trying to use run time linking or normal
8320         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8321         # need to do runtime linking.
8322         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8323           for ld_flag in $LDFLAGS; do
8324           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8325             aix_use_runtimelinking=yes
8326             break
8327           fi
8328           done
8329           ;;
8330         esac
8331
8332         exp_sym_flag='-bexport'
8333         no_entry_flag='-bnoentry'
8334       fi
8335
8336       # When large executables or shared objects are built, AIX ld can
8337       # have problems creating the table of contents.  If linking a library
8338       # or program results in "error TOC overflow" add -mminimal-toc to
8339       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8340       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8341
8342       archive_cmds=''
8343       hardcode_direct=yes
8344       hardcode_libdir_separator=':'
8345       link_all_deplibs=yes
8346
8347       if test "$GCC" = yes; then
8348         case $host_os in aix4.[012]|aix4.[012].*)
8349         # We only want to do this on AIX 4.2 and lower, the check
8350         # below for broken collect2 doesn't work under 4.3+
8351           collect2name=`${CC} -print-prog-name=collect2`
8352           if test -f "$collect2name" && \
8353            strings "$collect2name" | grep resolve_lib_name >/dev/null
8354           then
8355           # We have reworked collect2
8356           :
8357           else
8358           # We have old collect2
8359           hardcode_direct=unsupported
8360           # It fails to find uninstalled libraries when the uninstalled
8361           # path is not listed in the libpath.  Setting hardcode_minus_L
8362           # to unsupported forces relinking
8363           hardcode_minus_L=yes
8364           hardcode_libdir_flag_spec='-L$libdir'
8365           hardcode_libdir_separator=
8366           fi
8367           ;;
8368         esac
8369         shared_flag='-shared'
8370         if test "$aix_use_runtimelinking" = yes; then
8371           shared_flag="$shared_flag "'${wl}-G'
8372         fi
8373       else
8374         # not using gcc
8375         if test "$host_cpu" = ia64; then
8376         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8377         # chokes on -Wl,-G. The following line is correct:
8378           shared_flag='-G'
8379         else
8380           if test "$aix_use_runtimelinking" = yes; then
8381             shared_flag='${wl}-G'
8382           else
8383             shared_flag='${wl}-bM:SRE'
8384           fi
8385         fi
8386       fi
8387
8388       # It seems that -bexpall does not export symbols beginning with
8389       # underscore (_), so it is better to generate a list of symbols to export.
8390       always_export_symbols=yes
8391       if test "$aix_use_runtimelinking" = yes; then
8392         # Warning - without using the other runtime loading flags (-brtl),
8393         # -berok will link without error, but may produce a broken library.
8394         allow_undefined_flag='-berok'
8395        # Determine the default libpath from the value encoded in an empty executable.
8396        cat >conftest.$ac_ext <<_ACEOF
8397 /* confdefs.h.  */
8398 _ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h.  */
8402
8403 int
8404 main ()
8405 {
8406
8407   ;
8408   return 0;
8409 }
8410 _ACEOF
8411 rm -f conftest.$ac_objext conftest$ac_exeext
8412 if { (ac_try="$ac_link"
8413 case "(($ac_try" in
8414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415   *) ac_try_echo=$ac_try;;
8416 esac
8417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418   (eval "$ac_link") 2>conftest.er1
8419   ac_status=$?
8420   grep -v '^ *+' conftest.er1 >conftest.err
8421   rm -f conftest.er1
8422   cat conftest.err >&5
8423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424   (exit $ac_status); } && {
8425          test -z "$ac_c_werror_flag" ||
8426          test ! -s conftest.err
8427        } && test -s conftest$ac_exeext &&
8428        $as_test_x conftest$ac_exeext; then
8429
8430 lt_aix_libpath_sed='
8431     /Import File Strings/,/^$/ {
8432         /^0/ {
8433             s/^0  *\(.*\)$/\1/
8434             p
8435         }
8436     }'
8437 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8438 # Check for a 64-bit object if we didn't find anything.
8439 if test -z "$aix_libpath"; then
8440   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8441 fi
8442 else
8443   echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8445
8446
8447 fi
8448
8449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8450       conftest$ac_exeext conftest.$ac_ext
8451 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8452
8453        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8454         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"
8455        else
8456         if test "$host_cpu" = ia64; then
8457           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8458           allow_undefined_flag="-z nodefs"
8459           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"
8460         else
8461          # Determine the default libpath from the value encoded in an empty executable.
8462          cat >conftest.$ac_ext <<_ACEOF
8463 /* confdefs.h.  */
8464 _ACEOF
8465 cat confdefs.h >>conftest.$ac_ext
8466 cat >>conftest.$ac_ext <<_ACEOF
8467 /* end confdefs.h.  */
8468
8469 int
8470 main ()
8471 {
8472
8473   ;
8474   return 0;
8475 }
8476 _ACEOF
8477 rm -f conftest.$ac_objext conftest$ac_exeext
8478 if { (ac_try="$ac_link"
8479 case "(($ac_try" in
8480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481   *) ac_try_echo=$ac_try;;
8482 esac
8483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484   (eval "$ac_link") 2>conftest.er1
8485   ac_status=$?
8486   grep -v '^ *+' conftest.er1 >conftest.err
8487   rm -f conftest.er1
8488   cat conftest.err >&5
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); } && {
8491          test -z "$ac_c_werror_flag" ||
8492          test ! -s conftest.err
8493        } && test -s conftest$ac_exeext &&
8494        $as_test_x conftest$ac_exeext; then
8495
8496 lt_aix_libpath_sed='
8497     /Import File Strings/,/^$/ {
8498         /^0/ {
8499             s/^0  *\(.*\)$/\1/
8500             p
8501         }
8502     }'
8503 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8504 # Check for a 64-bit object if we didn't find anything.
8505 if test -z "$aix_libpath"; then
8506   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8507 fi
8508 else
8509   echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8511
8512
8513 fi
8514
8515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8516       conftest$ac_exeext conftest.$ac_ext
8517 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8518
8519          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8520           # Warning - without using the other run time loading flags,
8521           # -berok will link without error, but may produce a broken library.
8522           no_undefined_flag=' ${wl}-bernotok'
8523           allow_undefined_flag=' ${wl}-berok'
8524           # Exported symbols can be pulled into shared objects from archives
8525           whole_archive_flag_spec='$convenience'
8526           archive_cmds_need_lc=yes
8527           # This is similar to how AIX traditionally builds its shared libraries.
8528           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'
8529         fi
8530       fi
8531       ;;
8532
8533     amigaos*)
8534       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)'
8535       hardcode_libdir_flag_spec='-L$libdir'
8536       hardcode_minus_L=yes
8537       # see comment about different semantics on the GNU ld section
8538       ld_shlibs=no
8539       ;;
8540
8541     bsdi[45]*)
8542       export_dynamic_flag_spec=-rdynamic
8543       ;;
8544
8545     cygwin* | mingw* | pw32*)
8546       # When not using gcc, we currently assume that we are using
8547       # Microsoft Visual C++.
8548       # hardcode_libdir_flag_spec is actually meaningless, as there is
8549       # no search path for DLLs.
8550       hardcode_libdir_flag_spec=' '
8551       allow_undefined_flag=unsupported
8552       # Tell ltmain to make .lib files, not .a files.
8553       libext=lib
8554       # Tell ltmain to make .dll files, not .so files.
8555       shrext_cmds=".dll"
8556       # FIXME: Setting linknames here is a bad hack.
8557       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8558       # The linker will automatically build a .lib file if we build a DLL.
8559       old_archive_From_new_cmds='true'
8560       # FIXME: Should let the user specify the lib program.
8561       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8562       fix_srcfile_path='`cygpath -w "$srcfile"`'
8563       enable_shared_with_static_runtimes=yes
8564       ;;
8565
8566     darwin* | rhapsody*)
8567       case $host_os in
8568         rhapsody* | darwin1.[012])
8569          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8570          ;;
8571        *) # Darwin 1.3 on
8572          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8573            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8574          else
8575            case ${MACOSX_DEPLOYMENT_TARGET} in
8576              10.[012])
8577                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8578                ;;
8579              10.*)
8580                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8581                ;;
8582            esac
8583          fi
8584          ;;
8585       esac
8586       archive_cmds_need_lc=no
8587       hardcode_direct=no
8588       hardcode_automatic=yes
8589       hardcode_shlibpath_var=unsupported
8590       whole_archive_flag_spec=''
8591       link_all_deplibs=yes
8592     if test "$GCC" = yes ; then
8593         output_verbose_link_cmd='echo'
8594         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8595         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8596         archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8597         module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8598     else
8599       case $cc_basename in
8600         xlc*)
8601          output_verbose_link_cmd='echo'
8602          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8603          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8604           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8605          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8606           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}'
8607           ;;
8608        *)
8609          ld_shlibs=no
8610           ;;
8611       esac
8612     fi
8613       ;;
8614
8615     dgux*)
8616       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8617       hardcode_libdir_flag_spec='-L$libdir'
8618       hardcode_shlibpath_var=no
8619       ;;
8620
8621     freebsd1*)
8622       ld_shlibs=no
8623       ;;
8624
8625     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8626     # support.  Future versions do this automatically, but an explicit c++rt0.o
8627     # does not break anything, and helps significantly (at the cost of a little
8628     # extra space).
8629     freebsd2.2*)
8630       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8631       hardcode_libdir_flag_spec='-R$libdir'
8632       hardcode_direct=yes
8633       hardcode_shlibpath_var=no
8634       ;;
8635
8636     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8637     freebsd2*)
8638       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8639       hardcode_direct=yes
8640       hardcode_minus_L=yes
8641       hardcode_shlibpath_var=no
8642       ;;
8643
8644     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8645     freebsd* | dragonfly*)
8646       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8647       hardcode_libdir_flag_spec='-R$libdir'
8648       hardcode_direct=yes
8649       hardcode_shlibpath_var=no
8650       ;;
8651
8652     hpux9*)
8653       if test "$GCC" = yes; then
8654         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'
8655       else
8656         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'
8657       fi
8658       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8659       hardcode_libdir_separator=:
8660       hardcode_direct=yes
8661
8662       # hardcode_minus_L: Not really in the search PATH,
8663       # but as the default location of the library.
8664       hardcode_minus_L=yes
8665       export_dynamic_flag_spec='${wl}-E'
8666       ;;
8667
8668     hpux10*)
8669       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8670         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8671       else
8672         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8673       fi
8674       if test "$with_gnu_ld" = no; then
8675         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8676         hardcode_libdir_separator=:
8677
8678         hardcode_direct=yes
8679         export_dynamic_flag_spec='${wl}-E'
8680
8681         # hardcode_minus_L: Not really in the search PATH,
8682         # but as the default location of the library.
8683         hardcode_minus_L=yes
8684       fi
8685       ;;
8686
8687     hpux11*)
8688       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8689         case $host_cpu in
8690         hppa*64*)
8691           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8692           ;;
8693         ia64*)
8694           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8695           ;;
8696         *)
8697           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8698           ;;
8699         esac
8700       else
8701         case $host_cpu in
8702         hppa*64*)
8703           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8704           ;;
8705         ia64*)
8706           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8707           ;;
8708         *)
8709           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8710           ;;
8711         esac
8712       fi
8713       if test "$with_gnu_ld" = no; then
8714         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8715         hardcode_libdir_separator=:
8716
8717         case $host_cpu in
8718         hppa*64*|ia64*)
8719           hardcode_libdir_flag_spec_ld='+b $libdir'
8720           hardcode_direct=no
8721           hardcode_shlibpath_var=no
8722           ;;
8723         *)
8724           hardcode_direct=yes
8725           export_dynamic_flag_spec='${wl}-E'
8726
8727           # hardcode_minus_L: Not really in the search PATH,
8728           # but as the default location of the library.
8729           hardcode_minus_L=yes
8730           ;;
8731         esac
8732       fi
8733       ;;
8734
8735     irix5* | irix6* | nonstopux*)
8736       if test "$GCC" = yes; then
8737         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'
8738       else
8739         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'
8740         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8741       fi
8742       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8743       hardcode_libdir_separator=:
8744       link_all_deplibs=yes
8745       ;;
8746
8747     netbsd* | netbsdelf*-gnu)
8748       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8749         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8750       else
8751         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8752       fi
8753       hardcode_libdir_flag_spec='-R$libdir'
8754       hardcode_direct=yes
8755       hardcode_shlibpath_var=no
8756       ;;
8757
8758     newsos6)
8759       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8760       hardcode_direct=yes
8761       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8762       hardcode_libdir_separator=:
8763       hardcode_shlibpath_var=no
8764       ;;
8765
8766     openbsd*)
8767       if test -f /usr/libexec/ld.so; then
8768         hardcode_direct=yes
8769         hardcode_shlibpath_var=no
8770         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8771           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8772           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8773           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8774           export_dynamic_flag_spec='${wl}-E'
8775         else
8776           case $host_os in
8777            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8778              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8779              hardcode_libdir_flag_spec='-R$libdir'
8780              ;;
8781            *)
8782              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8783              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8784              ;;
8785           esac
8786         fi
8787       else
8788         ld_shlibs=no
8789       fi
8790       ;;
8791
8792     os2*)
8793       hardcode_libdir_flag_spec='-L$libdir'
8794       hardcode_minus_L=yes
8795       allow_undefined_flag=unsupported
8796       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'
8797       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8798       ;;
8799
8800     osf3*)
8801       if test "$GCC" = yes; then
8802         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8803         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'
8804       else
8805         allow_undefined_flag=' -expect_unresolved \*'
8806         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'
8807       fi
8808       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8809       hardcode_libdir_separator=:
8810       ;;
8811
8812     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8813       if test "$GCC" = yes; then
8814         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8815         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'
8816         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8817       else
8818         allow_undefined_flag=' -expect_unresolved \*'
8819         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'
8820         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8821         $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'
8822
8823         # Both c and cxx compiler support -rpath directly
8824         hardcode_libdir_flag_spec='-rpath $libdir'
8825       fi
8826       hardcode_libdir_separator=:
8827       ;;
8828
8829     solaris*)
8830       no_undefined_flag=' -z text'
8831       if test "$GCC" = yes; then
8832         wlarc='${wl}'
8833         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8834         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8835           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8836       else
8837         wlarc=''
8838         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8839         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8840         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8841       fi
8842       hardcode_libdir_flag_spec='-R$libdir'
8843       hardcode_shlibpath_var=no
8844       case $host_os in
8845       solaris2.[0-5] | solaris2.[0-5].*) ;;
8846       *)
8847         # The compiler driver will combine and reorder linker options,
8848         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8849         # but is careful enough not to reorder.
8850         # Supported since Solaris 2.6 (maybe 2.5.1?)
8851         if test "$GCC" = yes; then
8852           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8853         else
8854           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8855         fi
8856         ;;
8857       esac
8858       link_all_deplibs=yes
8859       ;;
8860
8861     sunos4*)
8862       if test "x$host_vendor" = xsequent; then
8863         # Use $CC to link under sequent, because it throws in some extra .o
8864         # files that make .init and .fini sections work.
8865         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8866       else
8867         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8868       fi
8869       hardcode_libdir_flag_spec='-L$libdir'
8870       hardcode_direct=yes
8871       hardcode_minus_L=yes
8872       hardcode_shlibpath_var=no
8873       ;;
8874
8875     sysv4)
8876       case $host_vendor in
8877         sni)
8878           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8879           hardcode_direct=yes # is this really true???
8880         ;;
8881         siemens)
8882           ## LD is ld it makes a PLAMLIB
8883           ## CC just makes a GrossModule.
8884           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8885           reload_cmds='$CC -r -o $output$reload_objs'
8886           hardcode_direct=no
8887         ;;
8888         motorola)
8889           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8890           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8891         ;;
8892       esac
8893       runpath_var='LD_RUN_PATH'
8894       hardcode_shlibpath_var=no
8895       ;;
8896
8897     sysv4.3*)
8898       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8899       hardcode_shlibpath_var=no
8900       export_dynamic_flag_spec='-Bexport'
8901       ;;
8902
8903     sysv4*MP*)
8904       if test -d /usr/nec; then
8905         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8906         hardcode_shlibpath_var=no
8907         runpath_var=LD_RUN_PATH
8908         hardcode_runpath_var=yes
8909         ld_shlibs=yes
8910       fi
8911       ;;
8912
8913     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8914       no_undefined_flag='${wl}-z,text'
8915       archive_cmds_need_lc=no
8916       hardcode_shlibpath_var=no
8917       runpath_var='LD_RUN_PATH'
8918
8919       if test "$GCC" = yes; then
8920         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8921         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8922       else
8923         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8924         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8925       fi
8926       ;;
8927
8928     sysv5* | sco3.2v5* | sco5v6*)
8929       # Note: We can NOT use -z defs as we might desire, because we do not
8930       # link with -lc, and that would cause any symbols used from libc to
8931       # always be unresolved, which means just about no library would
8932       # ever link correctly.  If we're not using GNU ld we use -z text
8933       # though, which does catch some bad symbols but isn't as heavy-handed
8934       # as -z defs.
8935       no_undefined_flag='${wl}-z,text'
8936       allow_undefined_flag='${wl}-z,nodefs'
8937       archive_cmds_need_lc=no
8938       hardcode_shlibpath_var=no
8939       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8940       hardcode_libdir_separator=':'
8941       link_all_deplibs=yes
8942       export_dynamic_flag_spec='${wl}-Bexport'
8943       runpath_var='LD_RUN_PATH'
8944
8945       if test "$GCC" = yes; then
8946         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8947         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8948       else
8949         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8950         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8951       fi
8952       ;;
8953
8954     uts4*)
8955       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8956       hardcode_libdir_flag_spec='-L$libdir'
8957       hardcode_shlibpath_var=no
8958       ;;
8959
8960     *)
8961       ld_shlibs=no
8962       ;;
8963     esac
8964   fi
8965
8966 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8967 echo "${ECHO_T}$ld_shlibs" >&6; }
8968 test "$ld_shlibs" = no && can_build_shared=no
8969
8970 #
8971 # Do we need to explicitly link libc?
8972 #
8973 case "x$archive_cmds_need_lc" in
8974 x|xyes)
8975   # Assume -lc should be added
8976   archive_cmds_need_lc=yes
8977
8978   if test "$enable_shared" = yes && test "$GCC" = yes; then
8979     case $archive_cmds in
8980     *'~'*)
8981       # FIXME: we may have to deal with multi-command sequences.
8982       ;;
8983     '$CC '*)
8984       # Test whether the compiler implicitly links with -lc since on some
8985       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8986       # to ld, don't add -lc before -lgcc.
8987       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8988 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8989       $rm conftest*
8990       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8991
8992       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8993   (eval $ac_compile) 2>&5
8994   ac_status=$?
8995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996   (exit $ac_status); } 2>conftest.err; then
8997         soname=conftest
8998         lib=conftest
8999         libobjs=conftest.$ac_objext
9000         deplibs=
9001         wl=$lt_prog_compiler_wl
9002         pic_flag=$lt_prog_compiler_pic
9003         compiler_flags=-v
9004         linker_flags=-v
9005         verstring=
9006         output_objdir=.
9007         libname=conftest
9008         lt_save_allow_undefined_flag=$allow_undefined_flag
9009         allow_undefined_flag=
9010         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9011   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9012   ac_status=$?
9013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014   (exit $ac_status); }
9015         then
9016           archive_cmds_need_lc=no
9017         else
9018           archive_cmds_need_lc=yes
9019         fi
9020         allow_undefined_flag=$lt_save_allow_undefined_flag
9021       else
9022         cat conftest.err 1>&5
9023       fi
9024       $rm conftest*
9025       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9026 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9027       ;;
9028     esac
9029   fi
9030   ;;
9031 esac
9032
9033 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9034 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9035 library_names_spec=
9036 libname_spec='lib$name'
9037 soname_spec=
9038 shrext_cmds=".so"
9039 postinstall_cmds=
9040 postuninstall_cmds=
9041 finish_cmds=
9042 finish_eval=
9043 shlibpath_var=
9044 shlibpath_overrides_runpath=unknown
9045 version_type=none
9046 dynamic_linker="$host_os ld.so"
9047 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9048
9049 if test "$GCC" = yes; then
9050   case $host_os in
9051     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9052     *) lt_awk_arg="/^libraries:/" ;;
9053   esac
9054   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9055   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9056     # if the path contains ";" then we assume it to be the separator
9057     # otherwise default to the standard path separator (i.e. ":") - it is
9058     # assumed that no part of a normal pathname contains ";" but that should
9059     # okay in the real world where ";" in dirpaths is itself problematic.
9060     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9061   else
9062     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9063   fi
9064   # Ok, now we have the path, separated by spaces, we can step through it
9065   # and add multilib dir if necessary.
9066   lt_tmp_lt_search_path_spec=
9067   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9068   for lt_sys_path in $lt_search_path_spec; do
9069     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9070       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9071     else
9072       test -d "$lt_sys_path" && \
9073         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9074     fi
9075   done
9076   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9077 BEGIN {RS=" "; FS="/|\n";} {
9078   lt_foo="";
9079   lt_count=0;
9080   for (lt_i = NF; lt_i > 0; lt_i--) {
9081     if ($lt_i != "" && $lt_i != ".") {
9082       if ($lt_i == "..") {
9083         lt_count++;
9084       } else {
9085         if (lt_count == 0) {
9086           lt_foo="/" $lt_i lt_foo;
9087         } else {
9088           lt_count--;
9089         }
9090       }
9091     }
9092   }
9093   if (lt_foo != "") { lt_freq[lt_foo]++; }
9094   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9095 }'`
9096   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9097 else
9098   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9099 fi
9100 need_lib_prefix=unknown
9101 hardcode_into_libs=no
9102
9103 # when you set need_version to no, make sure it does not cause -set_version
9104 # flags to be left without arguments
9105 need_version=unknown
9106
9107 case $host_os in
9108 aix3*)
9109   version_type=linux
9110   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9111   shlibpath_var=LIBPATH
9112
9113   # AIX 3 has no versioning support, so we append a major version to the name.
9114   soname_spec='${libname}${release}${shared_ext}$major'
9115   ;;
9116
9117 aix[4-9]*)
9118   version_type=linux
9119   need_lib_prefix=no
9120   need_version=no
9121   hardcode_into_libs=yes
9122   if test "$host_cpu" = ia64; then
9123     # AIX 5 supports IA64
9124     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9125     shlibpath_var=LD_LIBRARY_PATH
9126   else
9127     # With GCC up to 2.95.x, collect2 would create an import file
9128     # for dependence libraries.  The import file would start with
9129     # the line `#! .'.  This would cause the generated library to
9130     # depend on `.', always an invalid library.  This was fixed in
9131     # development snapshots of GCC prior to 3.0.
9132     case $host_os in
9133       aix4 | aix4.[01] | aix4.[01].*)
9134       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9135            echo ' yes '
9136            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9137         :
9138       else
9139         can_build_shared=no
9140       fi
9141       ;;
9142     esac
9143     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9144     # soname into executable. Probably we can add versioning support to
9145     # collect2, so additional links can be useful in future.
9146     if test "$aix_use_runtimelinking" = yes; then
9147       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9148       # instead of lib<name>.a to let people know that these are not
9149       # typical AIX shared libraries.
9150       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151     else
9152       # We preserve .a as extension for shared libraries through AIX4.2
9153       # and later when we are not doing run time linking.
9154       library_names_spec='${libname}${release}.a $libname.a'
9155       soname_spec='${libname}${release}${shared_ext}$major'
9156     fi
9157     shlibpath_var=LIBPATH
9158   fi
9159   ;;
9160
9161 amigaos*)
9162   library_names_spec='$libname.ixlibrary $libname.a'
9163   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9164   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'
9165   ;;
9166
9167 beos*)
9168   library_names_spec='${libname}${shared_ext}'
9169   dynamic_linker="$host_os ld.so"
9170   shlibpath_var=LIBRARY_PATH
9171   ;;
9172
9173 bsdi[45]*)
9174   version_type=linux
9175   need_version=no
9176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9177   soname_spec='${libname}${release}${shared_ext}$major'
9178   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9179   shlibpath_var=LD_LIBRARY_PATH
9180   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9181   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9182   # the default ld.so.conf also contains /usr/contrib/lib and
9183   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9184   # libtool to hard-code these into programs
9185   ;;
9186
9187 cygwin* | mingw* | pw32*)
9188   version_type=windows
9189   shrext_cmds=".dll"
9190   need_version=no
9191   need_lib_prefix=no
9192
9193   case $GCC,$host_os in
9194   yes,cygwin* | yes,mingw* | yes,pw32*)
9195     library_names_spec='$libname.dll.a'
9196     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9197     postinstall_cmds='base_file=`basename \${file}`~
9198       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9199       dldir=$destdir/`dirname \$dlpath`~
9200       test -d \$dldir || mkdir -p \$dldir~
9201       $install_prog $dir/$dlname \$dldir/$dlname~
9202       chmod a+x \$dldir/$dlname'
9203     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9204       dlpath=$dir/\$dldll~
9205        $rm \$dlpath'
9206     shlibpath_overrides_runpath=yes
9207
9208     case $host_os in
9209     cygwin*)
9210       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9211       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9212       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9213       ;;
9214     mingw*)
9215       # MinGW DLLs use traditional 'lib' prefix
9216       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9217       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9218       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9219         # It is most probably a Windows format PATH printed by
9220         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9221         # path with ; separators, and with drive letters. We can handle the
9222         # drive letters (cygwin fileutils understands them), so leave them,
9223         # especially as we might pass files found there to a mingw objdump,
9224         # which wouldn't understand a cygwinified path. Ahh.
9225         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9226       else
9227         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9228       fi
9229       ;;
9230     pw32*)
9231       # pw32 DLLs use 'pw' prefix rather than 'lib'
9232       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9233       ;;
9234     esac
9235     ;;
9236
9237   *)
9238     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9239     ;;
9240   esac
9241   dynamic_linker='Win32 ld.exe'
9242   # FIXME: first we should search . and the directory the executable is in
9243   shlibpath_var=PATH
9244   ;;
9245
9246 darwin* | rhapsody*)
9247   dynamic_linker="$host_os dyld"
9248   version_type=darwin
9249   need_lib_prefix=no
9250   need_version=no
9251   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9252   soname_spec='${libname}${release}${major}$shared_ext'
9253   shlibpath_overrides_runpath=yes
9254   shlibpath_var=DYLD_LIBRARY_PATH
9255   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9256
9257   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9258   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9259   ;;
9260
9261 dgux*)
9262   version_type=linux
9263   need_lib_prefix=no
9264   need_version=no
9265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9266   soname_spec='${libname}${release}${shared_ext}$major'
9267   shlibpath_var=LD_LIBRARY_PATH
9268   ;;
9269
9270 freebsd1*)
9271   dynamic_linker=no
9272   ;;
9273
9274 freebsd* | dragonfly*)
9275   # DragonFly does not have aout.  When/if they implement a new
9276   # versioning mechanism, adjust this.
9277   if test -x /usr/bin/objformat; then
9278     objformat=`/usr/bin/objformat`
9279   else
9280     case $host_os in
9281     freebsd[123]*) objformat=aout ;;
9282     *) objformat=elf ;;
9283     esac
9284   fi
9285   version_type=freebsd-$objformat
9286   case $version_type in
9287     freebsd-elf*)
9288       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9289       need_version=no
9290       need_lib_prefix=no
9291       ;;
9292     freebsd-*)
9293       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9294       need_version=yes
9295       ;;
9296   esac
9297   shlibpath_var=LD_LIBRARY_PATH
9298   case $host_os in
9299   freebsd2*)
9300     shlibpath_overrides_runpath=yes
9301     ;;
9302   freebsd3.[01]* | freebsdelf3.[01]*)
9303     shlibpath_overrides_runpath=yes
9304     hardcode_into_libs=yes
9305     ;;
9306   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9307   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9308     shlibpath_overrides_runpath=no
9309     hardcode_into_libs=yes
9310     ;;
9311   *) # from 4.6 on, and DragonFly
9312     shlibpath_overrides_runpath=yes
9313     hardcode_into_libs=yes
9314     ;;
9315   esac
9316   ;;
9317
9318 gnu*)
9319   version_type=linux
9320   need_lib_prefix=no
9321   need_version=no
9322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9323   soname_spec='${libname}${release}${shared_ext}$major'
9324   shlibpath_var=LD_LIBRARY_PATH
9325   hardcode_into_libs=yes
9326   ;;
9327
9328 hpux9* | hpux10* | hpux11*)
9329   # Give a soname corresponding to the major version so that dld.sl refuses to
9330   # link against other versions.
9331   version_type=sunos
9332   need_lib_prefix=no
9333   need_version=no
9334   case $host_cpu in
9335   ia64*)
9336     shrext_cmds='.so'
9337     hardcode_into_libs=yes
9338     dynamic_linker="$host_os dld.so"
9339     shlibpath_var=LD_LIBRARY_PATH
9340     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9341     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9342     soname_spec='${libname}${release}${shared_ext}$major'
9343     if test "X$HPUX_IA64_MODE" = X32; then
9344       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9345     else
9346       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9347     fi
9348     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9349     ;;
9350    hppa*64*)
9351      shrext_cmds='.sl'
9352      hardcode_into_libs=yes
9353      dynamic_linker="$host_os dld.sl"
9354      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9355      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9356      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9357      soname_spec='${libname}${release}${shared_ext}$major'
9358      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9359      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9360      ;;
9361    *)
9362     shrext_cmds='.sl'
9363     dynamic_linker="$host_os dld.sl"
9364     shlibpath_var=SHLIB_PATH
9365     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9366     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367     soname_spec='${libname}${release}${shared_ext}$major'
9368     ;;
9369   esac
9370   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9371   postinstall_cmds='chmod 555 $lib'
9372   ;;
9373
9374 interix[3-9]*)
9375   version_type=linux
9376   need_lib_prefix=no
9377   need_version=no
9378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9379   soname_spec='${libname}${release}${shared_ext}$major'
9380   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9381   shlibpath_var=LD_LIBRARY_PATH
9382   shlibpath_overrides_runpath=no
9383   hardcode_into_libs=yes
9384   ;;
9385
9386 irix5* | irix6* | nonstopux*)
9387   case $host_os in
9388     nonstopux*) version_type=nonstopux ;;
9389     *)
9390         if test "$lt_cv_prog_gnu_ld" = yes; then
9391                 version_type=linux
9392         else
9393                 version_type=irix
9394         fi ;;
9395   esac
9396   need_lib_prefix=no
9397   need_version=no
9398   soname_spec='${libname}${release}${shared_ext}$major'
9399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9400   case $host_os in
9401   irix5* | nonstopux*)
9402     libsuff= shlibsuff=
9403     ;;
9404   *)
9405     case $LD in # libtool.m4 will add one of these switches to LD
9406     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9407       libsuff= shlibsuff= libmagic=32-bit;;
9408     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9409       libsuff=32 shlibsuff=N32 libmagic=N32;;
9410     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9411       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9412     *) libsuff= shlibsuff= libmagic=never-match;;
9413     esac
9414     ;;
9415   esac
9416   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9417   shlibpath_overrides_runpath=no
9418   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9419   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9420   hardcode_into_libs=yes
9421   ;;
9422
9423 # No shared lib support for Linux oldld, aout, or coff.
9424 linux*oldld* | linux*aout* | linux*coff*)
9425   dynamic_linker=no
9426   ;;
9427
9428 # This must be Linux ELF.
9429 linux* | k*bsd*-gnu)
9430   version_type=linux
9431   need_lib_prefix=no
9432   need_version=no
9433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434   soname_spec='${libname}${release}${shared_ext}$major'
9435   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9436   shlibpath_var=LD_LIBRARY_PATH
9437   shlibpath_overrides_runpath=no
9438   # This implies no fast_install, which is unacceptable.
9439   # Some rework will be needed to allow for fast_install
9440   # before this can be enabled.
9441   hardcode_into_libs=yes
9442
9443   # Append ld.so.conf contents to the search path
9444   if test -f /etc/ld.so.conf; then
9445     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9446     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9447   fi
9448
9449   # We used to test for /lib/ld.so.1 and disable shared libraries on
9450   # powerpc, because MkLinux only supported shared libraries with the
9451   # GNU dynamic linker.  Since this was broken with cross compilers,
9452   # most powerpc-linux boxes support dynamic linking these days and
9453   # people can always --disable-shared, the test was removed, and we
9454   # assume the GNU/Linux dynamic linker is in use.
9455   dynamic_linker='GNU/Linux ld.so'
9456   ;;
9457
9458 netbsdelf*-gnu)
9459   version_type=linux
9460   need_lib_prefix=no
9461   need_version=no
9462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9463   soname_spec='${libname}${release}${shared_ext}$major'
9464   shlibpath_var=LD_LIBRARY_PATH
9465   shlibpath_overrides_runpath=no
9466   hardcode_into_libs=yes
9467   dynamic_linker='NetBSD ld.elf_so'
9468   ;;
9469
9470 netbsd*)
9471   version_type=sunos
9472   need_lib_prefix=no
9473   need_version=no
9474   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9475     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9476     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9477     dynamic_linker='NetBSD (a.out) ld.so'
9478   else
9479     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9480     soname_spec='${libname}${release}${shared_ext}$major'
9481     dynamic_linker='NetBSD ld.elf_so'
9482   fi
9483   shlibpath_var=LD_LIBRARY_PATH
9484   shlibpath_overrides_runpath=yes
9485   hardcode_into_libs=yes
9486   ;;
9487
9488 newsos6)
9489   version_type=linux
9490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9491   shlibpath_var=LD_LIBRARY_PATH
9492   shlibpath_overrides_runpath=yes
9493   ;;
9494
9495 nto-qnx*)
9496   version_type=linux
9497   need_lib_prefix=no
9498   need_version=no
9499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9500   soname_spec='${libname}${release}${shared_ext}$major'
9501   shlibpath_var=LD_LIBRARY_PATH
9502   shlibpath_overrides_runpath=yes
9503   ;;
9504
9505 openbsd*)
9506   version_type=sunos
9507   sys_lib_dlsearch_path_spec="/usr/lib"
9508   need_lib_prefix=no
9509   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9510   case $host_os in
9511     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9512     *)                         need_version=no  ;;
9513   esac
9514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9515   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9516   shlibpath_var=LD_LIBRARY_PATH
9517   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9518     case $host_os in
9519       openbsd2.[89] | openbsd2.[89].*)
9520         shlibpath_overrides_runpath=no
9521         ;;
9522       *)
9523         shlibpath_overrides_runpath=yes
9524         ;;
9525       esac
9526   else
9527     shlibpath_overrides_runpath=yes
9528   fi
9529   ;;
9530
9531 os2*)
9532   libname_spec='$name'
9533   shrext_cmds=".dll"
9534   need_lib_prefix=no
9535   library_names_spec='$libname${shared_ext} $libname.a'
9536   dynamic_linker='OS/2 ld.exe'
9537   shlibpath_var=LIBPATH
9538   ;;
9539
9540 osf3* | osf4* | osf5*)
9541   version_type=osf
9542   need_lib_prefix=no
9543   need_version=no
9544   soname_spec='${libname}${release}${shared_ext}$major'
9545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9546   shlibpath_var=LD_LIBRARY_PATH
9547   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9548   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9549   ;;
9550
9551 rdos*)
9552   dynamic_linker=no
9553   ;;
9554
9555 solaris*)
9556   version_type=linux
9557   need_lib_prefix=no
9558   need_version=no
9559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9560   soname_spec='${libname}${release}${shared_ext}$major'
9561   shlibpath_var=LD_LIBRARY_PATH
9562   shlibpath_overrides_runpath=yes
9563   hardcode_into_libs=yes
9564   # ldd complains unless libraries are executable
9565   postinstall_cmds='chmod +x $lib'
9566   ;;
9567
9568 sunos4*)
9569   version_type=sunos
9570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9571   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9572   shlibpath_var=LD_LIBRARY_PATH
9573   shlibpath_overrides_runpath=yes
9574   if test "$with_gnu_ld" = yes; then
9575     need_lib_prefix=no
9576   fi
9577   need_version=yes
9578   ;;
9579
9580 sysv4 | sysv4.3*)
9581   version_type=linux
9582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9583   soname_spec='${libname}${release}${shared_ext}$major'
9584   shlibpath_var=LD_LIBRARY_PATH
9585   case $host_vendor in
9586     sni)
9587       shlibpath_overrides_runpath=no
9588       need_lib_prefix=no
9589       export_dynamic_flag_spec='${wl}-Blargedynsym'
9590       runpath_var=LD_RUN_PATH
9591       ;;
9592     siemens)
9593       need_lib_prefix=no
9594       ;;
9595     motorola)
9596       need_lib_prefix=no
9597       need_version=no
9598       shlibpath_overrides_runpath=no
9599       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9600       ;;
9601   esac
9602   ;;
9603
9604 sysv4*MP*)
9605   if test -d /usr/nec ;then
9606     version_type=linux
9607     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9608     soname_spec='$libname${shared_ext}.$major'
9609     shlibpath_var=LD_LIBRARY_PATH
9610   fi
9611   ;;
9612
9613 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9614   version_type=freebsd-elf
9615   need_lib_prefix=no
9616   need_version=no
9617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9618   soname_spec='${libname}${release}${shared_ext}$major'
9619   shlibpath_var=LD_LIBRARY_PATH
9620   hardcode_into_libs=yes
9621   if test "$with_gnu_ld" = yes; then
9622     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9623     shlibpath_overrides_runpath=no
9624   else
9625     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9626     shlibpath_overrides_runpath=yes
9627     case $host_os in
9628       sco3.2v5*)
9629         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9630         ;;
9631     esac
9632   fi
9633   sys_lib_dlsearch_path_spec='/usr/lib'
9634   ;;
9635
9636 uts4*)
9637   version_type=linux
9638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9639   soname_spec='${libname}${release}${shared_ext}$major'
9640   shlibpath_var=LD_LIBRARY_PATH
9641   ;;
9642
9643 *)
9644   dynamic_linker=no
9645   ;;
9646 esac
9647 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9648 echo "${ECHO_T}$dynamic_linker" >&6; }
9649 test "$dynamic_linker" = no && can_build_shared=no
9650
9651 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9652   echo $ECHO_N "(cached) $ECHO_C" >&6
9653 else
9654   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9655 fi
9656
9657 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9658 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9659   echo $ECHO_N "(cached) $ECHO_C" >&6
9660 else
9661   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9662 fi
9663
9664 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9665
9666 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9667 if test "$GCC" = yes; then
9668   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9669 fi
9670
9671 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9672 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9673 hardcode_action=
9674 if test -n "$hardcode_libdir_flag_spec" || \
9675    test -n "$runpath_var" || \
9676    test "X$hardcode_automatic" = "Xyes" ; then
9677
9678   # We can hardcode non-existant directories.
9679   if test "$hardcode_direct" != no &&
9680      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9681      # have to relink, otherwise we might link with an installed library
9682      # when we should be linking with a yet-to-be-installed one
9683      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9684      test "$hardcode_minus_L" != no; then
9685     # Linking always hardcodes the temporary library directory.
9686     hardcode_action=relink
9687   else
9688     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9689     hardcode_action=immediate
9690   fi
9691 else
9692   # We cannot hardcode anything, or else we can only hardcode existing
9693   # directories.
9694   hardcode_action=unsupported
9695 fi
9696 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9697 echo "${ECHO_T}$hardcode_action" >&6; }
9698
9699 if test "$hardcode_action" = relink; then
9700   # Fast installation is not supported
9701   enable_fast_install=no
9702 elif test "$shlibpath_overrides_runpath" = yes ||
9703      test "$enable_shared" = no; then
9704   # Fast installation is not necessary
9705   enable_fast_install=needless
9706 fi
9707
9708 striplib=
9709 old_striplib=
9710 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9711 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9712 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9713   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9714   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9715   { echo "$as_me:$LINENO: result: yes" >&5
9716 echo "${ECHO_T}yes" >&6; }
9717 else
9718 # FIXME - insert some real tests, host_os isn't really good enough
9719   case $host_os in
9720    darwin*)
9721        if test -n "$STRIP" ; then
9722          striplib="$STRIP -x"
9723          old_striplib="$STRIP -S"
9724          { echo "$as_me:$LINENO: result: yes" >&5
9725 echo "${ECHO_T}yes" >&6; }
9726        else
9727   { echo "$as_me:$LINENO: result: no" >&5
9728 echo "${ECHO_T}no" >&6; }
9729 fi
9730        ;;
9731    *)
9732   { echo "$as_me:$LINENO: result: no" >&5
9733 echo "${ECHO_T}no" >&6; }
9734     ;;
9735   esac
9736 fi
9737
9738 if test "x$enable_dlopen" != xyes; then
9739   enable_dlopen=unknown
9740   enable_dlopen_self=unknown
9741   enable_dlopen_self_static=unknown
9742 else
9743   lt_cv_dlopen=no
9744   lt_cv_dlopen_libs=
9745
9746   case $host_os in
9747   beos*)
9748     lt_cv_dlopen="load_add_on"
9749     lt_cv_dlopen_libs=
9750     lt_cv_dlopen_self=yes
9751     ;;
9752
9753   mingw* | pw32*)
9754     lt_cv_dlopen="LoadLibrary"
9755     lt_cv_dlopen_libs=
9756    ;;
9757
9758   cygwin*)
9759     lt_cv_dlopen="dlopen"
9760     lt_cv_dlopen_libs=
9761    ;;
9762
9763   darwin*)
9764   # if libdl is installed we need to link against it
9765     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9766 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9767 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9768   echo $ECHO_N "(cached) $ECHO_C" >&6
9769 else
9770   ac_check_lib_save_LIBS=$LIBS
9771 LIBS="-ldl  $LIBS"
9772 cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h.  */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h.  */
9778
9779 /* Override any GCC internal prototype to avoid an error.
9780    Use char because int might match the return type of a GCC
9781    builtin and then its argument prototype would still apply.  */
9782 #ifdef __cplusplus
9783 extern "C"
9784 #endif
9785 char dlopen ();
9786 int
9787 main ()
9788 {
9789 return dlopen ();
9790   ;
9791   return 0;
9792 }
9793 _ACEOF
9794 rm -f conftest.$ac_objext conftest$ac_exeext
9795 if { (ac_try="$ac_link"
9796 case "(($ac_try" in
9797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798   *) ac_try_echo=$ac_try;;
9799 esac
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801   (eval "$ac_link") 2>conftest.er1
9802   ac_status=$?
9803   grep -v '^ *+' conftest.er1 >conftest.err
9804   rm -f conftest.er1
9805   cat conftest.err >&5
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); } && {
9808          test -z "$ac_c_werror_flag" ||
9809          test ! -s conftest.err
9810        } && test -s conftest$ac_exeext &&
9811        $as_test_x conftest$ac_exeext; then
9812   ac_cv_lib_dl_dlopen=yes
9813 else
9814   echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9816
9817         ac_cv_lib_dl_dlopen=no
9818 fi
9819
9820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9821       conftest$ac_exeext conftest.$ac_ext
9822 LIBS=$ac_check_lib_save_LIBS
9823 fi
9824 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9825 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9826 if test $ac_cv_lib_dl_dlopen = yes; then
9827   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9828 else
9829
9830     lt_cv_dlopen="dyld"
9831     lt_cv_dlopen_libs=
9832     lt_cv_dlopen_self=yes
9833
9834 fi
9835
9836    ;;
9837
9838   *)
9839     { echo "$as_me:$LINENO: checking for shl_load" >&5
9840 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9841 if test "${ac_cv_func_shl_load+set}" = set; then
9842   echo $ECHO_N "(cached) $ECHO_C" >&6
9843 else
9844   cat >conftest.$ac_ext <<_ACEOF
9845 /* confdefs.h.  */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h.  */
9850 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9851    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9852 #define shl_load innocuous_shl_load
9853
9854 /* System header to define __stub macros and hopefully few prototypes,
9855     which can conflict with char shl_load (); below.
9856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9857     <limits.h> exists even on freestanding compilers.  */
9858
9859 #ifdef __STDC__
9860 # include <limits.h>
9861 #else
9862 # include <assert.h>
9863 #endif
9864
9865 #undef shl_load
9866
9867 /* Override any GCC internal prototype to avoid an error.
9868    Use char because int might match the return type of a GCC
9869    builtin and then its argument prototype would still apply.  */
9870 #ifdef __cplusplus
9871 extern "C"
9872 #endif
9873 char shl_load ();
9874 /* The GNU C library defines this for functions which it implements
9875     to always fail with ENOSYS.  Some functions are actually named
9876     something starting with __ and the normal name is an alias.  */
9877 #if defined __stub_shl_load || defined __stub___shl_load
9878 choke me
9879 #endif
9880
9881 int
9882 main ()
9883 {
9884 return shl_load ();
9885   ;
9886   return 0;
9887 }
9888 _ACEOF
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (ac_try="$ac_link"
9891 case "(($ac_try" in
9892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893   *) ac_try_echo=$ac_try;;
9894 esac
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896   (eval "$ac_link") 2>conftest.er1
9897   ac_status=$?
9898   grep -v '^ *+' conftest.er1 >conftest.err
9899   rm -f conftest.er1
9900   cat conftest.err >&5
9901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902   (exit $ac_status); } && {
9903          test -z "$ac_c_werror_flag" ||
9904          test ! -s conftest.err
9905        } && test -s conftest$ac_exeext &&
9906        $as_test_x conftest$ac_exeext; then
9907   ac_cv_func_shl_load=yes
9908 else
9909   echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9911
9912         ac_cv_func_shl_load=no
9913 fi
9914
9915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9916       conftest$ac_exeext conftest.$ac_ext
9917 fi
9918 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9919 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9920 if test $ac_cv_func_shl_load = yes; then
9921   lt_cv_dlopen="shl_load"
9922 else
9923   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9924 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9925 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9926   echo $ECHO_N "(cached) $ECHO_C" >&6
9927 else
9928   ac_check_lib_save_LIBS=$LIBS
9929 LIBS="-ldld  $LIBS"
9930 cat >conftest.$ac_ext <<_ACEOF
9931 /* confdefs.h.  */
9932 _ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h.  */
9936
9937 /* Override any GCC internal prototype to avoid an error.
9938    Use char because int might match the return type of a GCC
9939    builtin and then its argument prototype would still apply.  */
9940 #ifdef __cplusplus
9941 extern "C"
9942 #endif
9943 char shl_load ();
9944 int
9945 main ()
9946 {
9947 return shl_load ();
9948   ;
9949   return 0;
9950 }
9951 _ACEOF
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (ac_try="$ac_link"
9954 case "(($ac_try" in
9955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956   *) ac_try_echo=$ac_try;;
9957 esac
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959   (eval "$ac_link") 2>conftest.er1
9960   ac_status=$?
9961   grep -v '^ *+' conftest.er1 >conftest.err
9962   rm -f conftest.er1
9963   cat conftest.err >&5
9964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965   (exit $ac_status); } && {
9966          test -z "$ac_c_werror_flag" ||
9967          test ! -s conftest.err
9968        } && test -s conftest$ac_exeext &&
9969        $as_test_x conftest$ac_exeext; then
9970   ac_cv_lib_dld_shl_load=yes
9971 else
9972   echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9974
9975         ac_cv_lib_dld_shl_load=no
9976 fi
9977
9978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9979       conftest$ac_exeext conftest.$ac_ext
9980 LIBS=$ac_check_lib_save_LIBS
9981 fi
9982 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9983 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9984 if test $ac_cv_lib_dld_shl_load = yes; then
9985   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9986 else
9987   { echo "$as_me:$LINENO: checking for dlopen" >&5
9988 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9989 if test "${ac_cv_func_dlopen+set}" = set; then
9990   echo $ECHO_N "(cached) $ECHO_C" >&6
9991 else
9992   cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h.  */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h.  */
9998 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9999    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10000 #define dlopen innocuous_dlopen
10001
10002 /* System header to define __stub macros and hopefully few prototypes,
10003     which can conflict with char dlopen (); below.
10004     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10005     <limits.h> exists even on freestanding compilers.  */
10006
10007 #ifdef __STDC__
10008 # include <limits.h>
10009 #else
10010 # include <assert.h>
10011 #endif
10012
10013 #undef dlopen
10014
10015 /* Override any GCC internal prototype to avoid an error.
10016    Use char because int might match the return type of a GCC
10017    builtin and then its argument prototype would still apply.  */
10018 #ifdef __cplusplus
10019 extern "C"
10020 #endif
10021 char dlopen ();
10022 /* The GNU C library defines this for functions which it implements
10023     to always fail with ENOSYS.  Some functions are actually named
10024     something starting with __ and the normal name is an alias.  */
10025 #if defined __stub_dlopen || defined __stub___dlopen
10026 choke me
10027 #endif
10028
10029 int
10030 main ()
10031 {
10032 return dlopen ();
10033   ;
10034   return 0;
10035 }
10036 _ACEOF
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (ac_try="$ac_link"
10039 case "(($ac_try" in
10040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041   *) ac_try_echo=$ac_try;;
10042 esac
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044   (eval "$ac_link") 2>conftest.er1
10045   ac_status=$?
10046   grep -v '^ *+' conftest.er1 >conftest.err
10047   rm -f conftest.er1
10048   cat conftest.err >&5
10049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050   (exit $ac_status); } && {
10051          test -z "$ac_c_werror_flag" ||
10052          test ! -s conftest.err
10053        } && test -s conftest$ac_exeext &&
10054        $as_test_x conftest$ac_exeext; then
10055   ac_cv_func_dlopen=yes
10056 else
10057   echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10059
10060         ac_cv_func_dlopen=no
10061 fi
10062
10063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10064       conftest$ac_exeext conftest.$ac_ext
10065 fi
10066 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10067 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10068 if test $ac_cv_func_dlopen = yes; then
10069   lt_cv_dlopen="dlopen"
10070 else
10071   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10072 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10073 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10074   echo $ECHO_N "(cached) $ECHO_C" >&6
10075 else
10076   ac_check_lib_save_LIBS=$LIBS
10077 LIBS="-ldl  $LIBS"
10078 cat >conftest.$ac_ext <<_ACEOF
10079 /* confdefs.h.  */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h.  */
10084
10085 /* Override any GCC internal prototype to avoid an error.
10086    Use char because int might match the return type of a GCC
10087    builtin and then its argument prototype would still apply.  */
10088 #ifdef __cplusplus
10089 extern "C"
10090 #endif
10091 char dlopen ();
10092 int
10093 main ()
10094 {
10095 return dlopen ();
10096   ;
10097   return 0;
10098 }
10099 _ACEOF
10100 rm -f conftest.$ac_objext conftest$ac_exeext
10101 if { (ac_try="$ac_link"
10102 case "(($ac_try" in
10103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104   *) ac_try_echo=$ac_try;;
10105 esac
10106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107   (eval "$ac_link") 2>conftest.er1
10108   ac_status=$?
10109   grep -v '^ *+' conftest.er1 >conftest.err
10110   rm -f conftest.er1
10111   cat conftest.err >&5
10112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113   (exit $ac_status); } && {
10114          test -z "$ac_c_werror_flag" ||
10115          test ! -s conftest.err
10116        } && test -s conftest$ac_exeext &&
10117        $as_test_x conftest$ac_exeext; then
10118   ac_cv_lib_dl_dlopen=yes
10119 else
10120   echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10122
10123         ac_cv_lib_dl_dlopen=no
10124 fi
10125
10126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10127       conftest$ac_exeext conftest.$ac_ext
10128 LIBS=$ac_check_lib_save_LIBS
10129 fi
10130 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10131 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10132 if test $ac_cv_lib_dl_dlopen = yes; then
10133   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10134 else
10135   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10136 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10137 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10138   echo $ECHO_N "(cached) $ECHO_C" >&6
10139 else
10140   ac_check_lib_save_LIBS=$LIBS
10141 LIBS="-lsvld  $LIBS"
10142 cat >conftest.$ac_ext <<_ACEOF
10143 /* confdefs.h.  */
10144 _ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h.  */
10148
10149 /* Override any GCC internal prototype to avoid an error.
10150    Use char because int might match the return type of a GCC
10151    builtin and then its argument prototype would still apply.  */
10152 #ifdef __cplusplus
10153 extern "C"
10154 #endif
10155 char dlopen ();
10156 int
10157 main ()
10158 {
10159 return dlopen ();
10160   ;
10161   return 0;
10162 }
10163 _ACEOF
10164 rm -f conftest.$ac_objext conftest$ac_exeext
10165 if { (ac_try="$ac_link"
10166 case "(($ac_try" in
10167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168   *) ac_try_echo=$ac_try;;
10169 esac
10170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10171   (eval "$ac_link") 2>conftest.er1
10172   ac_status=$?
10173   grep -v '^ *+' conftest.er1 >conftest.err
10174   rm -f conftest.er1
10175   cat conftest.err >&5
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); } && {
10178          test -z "$ac_c_werror_flag" ||
10179          test ! -s conftest.err
10180        } && test -s conftest$ac_exeext &&
10181        $as_test_x conftest$ac_exeext; then
10182   ac_cv_lib_svld_dlopen=yes
10183 else
10184   echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10186
10187         ac_cv_lib_svld_dlopen=no
10188 fi
10189
10190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10191       conftest$ac_exeext conftest.$ac_ext
10192 LIBS=$ac_check_lib_save_LIBS
10193 fi
10194 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10195 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10196 if test $ac_cv_lib_svld_dlopen = yes; then
10197   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10198 else
10199   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10200 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10201 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10202   echo $ECHO_N "(cached) $ECHO_C" >&6
10203 else
10204   ac_check_lib_save_LIBS=$LIBS
10205 LIBS="-ldld  $LIBS"
10206 cat >conftest.$ac_ext <<_ACEOF
10207 /* confdefs.h.  */
10208 _ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h.  */
10212
10213 /* Override any GCC internal prototype to avoid an error.
10214    Use char because int might match the return type of a GCC
10215    builtin and then its argument prototype would still apply.  */
10216 #ifdef __cplusplus
10217 extern "C"
10218 #endif
10219 char dld_link ();
10220 int
10221 main ()
10222 {
10223 return dld_link ();
10224   ;
10225   return 0;
10226 }
10227 _ACEOF
10228 rm -f conftest.$ac_objext conftest$ac_exeext
10229 if { (ac_try="$ac_link"
10230 case "(($ac_try" in
10231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232   *) ac_try_echo=$ac_try;;
10233 esac
10234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10235   (eval "$ac_link") 2>conftest.er1
10236   ac_status=$?
10237   grep -v '^ *+' conftest.er1 >conftest.err
10238   rm -f conftest.er1
10239   cat conftest.err >&5
10240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241   (exit $ac_status); } && {
10242          test -z "$ac_c_werror_flag" ||
10243          test ! -s conftest.err
10244        } && test -s conftest$ac_exeext &&
10245        $as_test_x conftest$ac_exeext; then
10246   ac_cv_lib_dld_dld_link=yes
10247 else
10248   echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10250
10251         ac_cv_lib_dld_dld_link=no
10252 fi
10253
10254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10255       conftest$ac_exeext conftest.$ac_ext
10256 LIBS=$ac_check_lib_save_LIBS
10257 fi
10258 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10259 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10260 if test $ac_cv_lib_dld_dld_link = yes; then
10261   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10262 fi
10263
10264
10265 fi
10266
10267
10268 fi
10269
10270
10271 fi
10272
10273
10274 fi
10275
10276
10277 fi
10278
10279     ;;
10280   esac
10281
10282   if test "x$lt_cv_dlopen" != xno; then
10283     enable_dlopen=yes
10284   else
10285     enable_dlopen=no
10286   fi
10287
10288   case $lt_cv_dlopen in
10289   dlopen)
10290     save_CPPFLAGS="$CPPFLAGS"
10291     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10292
10293     save_LDFLAGS="$LDFLAGS"
10294     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10295
10296     save_LIBS="$LIBS"
10297     LIBS="$lt_cv_dlopen_libs $LIBS"
10298
10299     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10300 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10301 if test "${lt_cv_dlopen_self+set}" = set; then
10302   echo $ECHO_N "(cached) $ECHO_C" >&6
10303 else
10304           if test "$cross_compiling" = yes; then :
10305   lt_cv_dlopen_self=cross
10306 else
10307   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10308   lt_status=$lt_dlunknown
10309   cat > conftest.$ac_ext <<EOF
10310 #line 10310 "configure"
10311 #include "confdefs.h"
10312
10313 #if HAVE_DLFCN_H
10314 #include <dlfcn.h>
10315 #endif
10316
10317 #include <stdio.h>
10318
10319 #ifdef RTLD_GLOBAL
10320 #  define LT_DLGLOBAL           RTLD_GLOBAL
10321 #else
10322 #  ifdef DL_GLOBAL
10323 #    define LT_DLGLOBAL         DL_GLOBAL
10324 #  else
10325 #    define LT_DLGLOBAL         0
10326 #  endif
10327 #endif
10328
10329 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10330    find out it does not work in some platform. */
10331 #ifndef LT_DLLAZY_OR_NOW
10332 #  ifdef RTLD_LAZY
10333 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10334 #  else
10335 #    ifdef DL_LAZY
10336 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10337 #    else
10338 #      ifdef RTLD_NOW
10339 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10340 #      else
10341 #        ifdef DL_NOW
10342 #          define LT_DLLAZY_OR_NOW      DL_NOW
10343 #        else
10344 #          define LT_DLLAZY_OR_NOW      0
10345 #        endif
10346 #      endif
10347 #    endif
10348 #  endif
10349 #endif
10350
10351 #ifdef __cplusplus
10352 extern "C" void exit (int);
10353 #endif
10354
10355 void fnord() { int i=42;}
10356 int main ()
10357 {
10358   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10359   int status = $lt_dlunknown;
10360
10361   if (self)
10362     {
10363       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10364       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10365       /* dlclose (self); */
10366     }
10367   else
10368     puts (dlerror ());
10369
10370     exit (status);
10371 }
10372 EOF
10373   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10374   (eval $ac_link) 2>&5
10375   ac_status=$?
10376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10378     (./conftest; exit; ) >&5 2>/dev/null
10379     lt_status=$?
10380     case x$lt_status in
10381       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10382       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10383       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10384     esac
10385   else :
10386     # compilation failed
10387     lt_cv_dlopen_self=no
10388   fi
10389 fi
10390 rm -fr conftest*
10391
10392
10393 fi
10394 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10395 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10396
10397     if test "x$lt_cv_dlopen_self" = xyes; then
10398       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10399       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10400 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10401 if test "${lt_cv_dlopen_self_static+set}" = set; then
10402   echo $ECHO_N "(cached) $ECHO_C" >&6
10403 else
10404           if test "$cross_compiling" = yes; then :
10405   lt_cv_dlopen_self_static=cross
10406 else
10407   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10408   lt_status=$lt_dlunknown
10409   cat > conftest.$ac_ext <<EOF
10410 #line 10410 "configure"
10411 #include "confdefs.h"
10412
10413 #if HAVE_DLFCN_H
10414 #include <dlfcn.h>
10415 #endif
10416
10417 #include <stdio.h>
10418
10419 #ifdef RTLD_GLOBAL
10420 #  define LT_DLGLOBAL           RTLD_GLOBAL
10421 #else
10422 #  ifdef DL_GLOBAL
10423 #    define LT_DLGLOBAL         DL_GLOBAL
10424 #  else
10425 #    define LT_DLGLOBAL         0
10426 #  endif
10427 #endif
10428
10429 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10430    find out it does not work in some platform. */
10431 #ifndef LT_DLLAZY_OR_NOW
10432 #  ifdef RTLD_LAZY
10433 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10434 #  else
10435 #    ifdef DL_LAZY
10436 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10437 #    else
10438 #      ifdef RTLD_NOW
10439 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10440 #      else
10441 #        ifdef DL_NOW
10442 #          define LT_DLLAZY_OR_NOW      DL_NOW
10443 #        else
10444 #          define LT_DLLAZY_OR_NOW      0
10445 #        endif
10446 #      endif
10447 #    endif
10448 #  endif
10449 #endif
10450
10451 #ifdef __cplusplus
10452 extern "C" void exit (int);
10453 #endif
10454
10455 void fnord() { int i=42;}
10456 int main ()
10457 {
10458   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10459   int status = $lt_dlunknown;
10460
10461   if (self)
10462     {
10463       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10464       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10465       /* dlclose (self); */
10466     }
10467   else
10468     puts (dlerror ());
10469
10470     exit (status);
10471 }
10472 EOF
10473   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10474   (eval $ac_link) 2>&5
10475   ac_status=$?
10476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10478     (./conftest; exit; ) >&5 2>/dev/null
10479     lt_status=$?
10480     case x$lt_status in
10481       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10482       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10483       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10484     esac
10485   else :
10486     # compilation failed
10487     lt_cv_dlopen_self_static=no
10488   fi
10489 fi
10490 rm -fr conftest*
10491
10492
10493 fi
10494 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10495 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10496     fi
10497
10498     CPPFLAGS="$save_CPPFLAGS"
10499     LDFLAGS="$save_LDFLAGS"
10500     LIBS="$save_LIBS"
10501     ;;
10502   esac
10503
10504   case $lt_cv_dlopen_self in
10505   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10506   *) enable_dlopen_self=unknown ;;
10507   esac
10508
10509   case $lt_cv_dlopen_self_static in
10510   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10511   *) enable_dlopen_self_static=unknown ;;
10512   esac
10513 fi
10514
10515
10516 # Report which library types will actually be built
10517 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10518 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10519 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10520 echo "${ECHO_T}$can_build_shared" >&6; }
10521
10522 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10523 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10524 test "$can_build_shared" = "no" && enable_shared=no
10525
10526 # On AIX, shared libraries and static libraries use the same namespace, and
10527 # are all built from PIC.
10528 case $host_os in
10529 aix3*)
10530   test "$enable_shared" = yes && enable_static=no
10531   if test -n "$RANLIB"; then
10532     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10533     postinstall_cmds='$RANLIB $lib'
10534   fi
10535   ;;
10536
10537 aix[4-9]*)
10538   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10539     test "$enable_shared" = yes && enable_static=no
10540   fi
10541     ;;
10542 esac
10543 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10544 echo "${ECHO_T}$enable_shared" >&6; }
10545
10546 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10547 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10548 # Make sure either enable_shared or enable_static is yes.
10549 test "$enable_shared" = yes || enable_static=yes
10550 { echo "$as_me:$LINENO: result: $enable_static" >&5
10551 echo "${ECHO_T}$enable_static" >&6; }
10552
10553 # The else clause should only fire when bootstrapping the
10554 # libtool distribution, otherwise you forgot to ship ltmain.sh
10555 # with your package, and you will get complaints that there are
10556 # no rules to generate ltmain.sh.
10557 if test -f "$ltmain"; then
10558   # See if we are running on zsh, and set the options which allow our commands through
10559   # without removal of \ escapes.
10560   if test -n "${ZSH_VERSION+set}" ; then
10561     setopt NO_GLOB_SUBST
10562   fi
10563   # Now quote all the things that may contain metacharacters while being
10564   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10565   # variables and quote the copies for generation of the libtool script.
10566   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10567     SED SHELL STRIP \
10568     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10569     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10570     deplibs_check_method reload_flag reload_cmds need_locks \
10571     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10572     lt_cv_sys_global_symbol_to_c_name_address \
10573     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10574     old_postinstall_cmds old_postuninstall_cmds \
10575     compiler \
10576     CC \
10577     LD \
10578     lt_prog_compiler_wl \
10579     lt_prog_compiler_pic \
10580     lt_prog_compiler_static \
10581     lt_prog_compiler_no_builtin_flag \
10582     export_dynamic_flag_spec \
10583     thread_safe_flag_spec \
10584     whole_archive_flag_spec \
10585     enable_shared_with_static_runtimes \
10586     old_archive_cmds \
10587     old_archive_from_new_cmds \
10588     predep_objects \
10589     postdep_objects \
10590     predeps \
10591     postdeps \
10592     compiler_lib_search_path \
10593     compiler_lib_search_dirs \
10594     archive_cmds \
10595     archive_expsym_cmds \
10596     postinstall_cmds \
10597     postuninstall_cmds \
10598     old_archive_from_expsyms_cmds \
10599     allow_undefined_flag \
10600     no_undefined_flag \
10601     export_symbols_cmds \
10602     hardcode_libdir_flag_spec \
10603     hardcode_libdir_flag_spec_ld \
10604     hardcode_libdir_separator \
10605     hardcode_automatic \
10606     module_cmds \
10607     module_expsym_cmds \
10608     lt_cv_prog_compiler_c_o \
10609     fix_srcfile_path \
10610     exclude_expsyms \
10611     include_expsyms; do
10612
10613     case $var in
10614     old_archive_cmds | \
10615     old_archive_from_new_cmds | \
10616     archive_cmds | \
10617     archive_expsym_cmds | \
10618     module_cmds | \
10619     module_expsym_cmds | \
10620     old_archive_from_expsyms_cmds | \
10621     export_symbols_cmds | \
10622     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10623     postinstall_cmds | postuninstall_cmds | \
10624     old_postinstall_cmds | old_postuninstall_cmds | \
10625     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10626       # Double-quote double-evaled strings.
10627       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10628       ;;
10629     *)
10630       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10631       ;;
10632     esac
10633   done
10634
10635   case $lt_echo in
10636   *'\$0 --fallback-echo"')
10637     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10638     ;;
10639   esac
10640
10641 cfgfile="${ofile}T"
10642   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10643   $rm -f "$cfgfile"
10644   { echo "$as_me:$LINENO: creating $ofile" >&5
10645 echo "$as_me: creating $ofile" >&6;}
10646
10647   cat <<__EOF__ >> "$cfgfile"
10648 #! $SHELL
10649
10650 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10651 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10652 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10653 #
10654 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10655 # Free Software Foundation, Inc.
10656 #
10657 # This file is part of GNU Libtool:
10658 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10659 #
10660 # This program is free software; you can redistribute it and/or modify
10661 # it under the terms of the GNU General Public License as published by
10662 # the Free Software Foundation; either version 2 of the License, or
10663 # (at your option) any later version.
10664 #
10665 # This program is distributed in the hope that it will be useful, but
10666 # WITHOUT ANY WARRANTY; without even the implied warranty of
10667 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10668 # General Public License for more details.
10669 #
10670 # You should have received a copy of the GNU General Public License
10671 # along with this program; if not, write to the Free Software
10672 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10673 #
10674 # As a special exception to the GNU General Public License, if you
10675 # distribute this file as part of a program that contains a
10676 # configuration script generated by Autoconf, you may include it under
10677 # the same distribution terms that you use for the rest of that program.
10678
10679 # A sed program that does not truncate output.
10680 SED=$lt_SED
10681
10682 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10683 Xsed="$SED -e 1s/^X//"
10684
10685 # The HP-UX ksh and POSIX shell print the target directory to stdout
10686 # if CDPATH is set.
10687 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10688
10689 # The names of the tagged configurations supported by this script.
10690 available_tags=
10691
10692 # ### BEGIN LIBTOOL CONFIG
10693
10694 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10695
10696 # Shell to use when invoking shell scripts.
10697 SHELL=$lt_SHELL
10698
10699 # Whether or not to build shared libraries.
10700 build_libtool_libs=$enable_shared
10701
10702 # Whether or not to build static libraries.
10703 build_old_libs=$enable_static
10704
10705 # Whether or not to add -lc for building shared libraries.
10706 build_libtool_need_lc=$archive_cmds_need_lc
10707
10708 # Whether or not to disallow shared libs when runtime libs are static
10709 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10710
10711 # Whether or not to optimize for fast installation.
10712 fast_install=$enable_fast_install
10713
10714 # The host system.
10715 host_alias=$host_alias
10716 host=$host
10717 host_os=$host_os
10718
10719 # The build system.
10720 build_alias=$build_alias
10721 build=$build
10722 build_os=$build_os
10723
10724 # An echo program that does not interpret backslashes.
10725 echo=$lt_echo
10726
10727 # The archiver.
10728 AR=$lt_AR
10729 AR_FLAGS=$lt_AR_FLAGS
10730
10731 # A C compiler.
10732 LTCC=$lt_LTCC
10733
10734 # LTCC compiler flags.
10735 LTCFLAGS=$lt_LTCFLAGS
10736
10737 # A language-specific compiler.
10738 CC=$lt_compiler
10739
10740 # Is the compiler the GNU C compiler?
10741 with_gcc=$GCC
10742
10743 # An ERE matcher.
10744 EGREP=$lt_EGREP
10745
10746 # The linker used to build libraries.
10747 LD=$lt_LD
10748
10749 # Whether we need hard or soft links.
10750 LN_S=$lt_LN_S
10751
10752 # A BSD-compatible nm program.
10753 NM=$lt_NM
10754
10755 # A symbol stripping program
10756 STRIP=$lt_STRIP
10757
10758 # Used to examine libraries when file_magic_cmd begins "file"
10759 MAGIC_CMD=$MAGIC_CMD
10760
10761 # Used on cygwin: DLL creation program.
10762 DLLTOOL="$DLLTOOL"
10763
10764 # Used on cygwin: object dumper.
10765 OBJDUMP="$OBJDUMP"
10766
10767 # Used on cygwin: assembler.
10768 AS="$AS"
10769
10770 # The name of the directory that contains temporary libtool files.
10771 objdir=$objdir
10772
10773 # How to create reloadable object files.
10774 reload_flag=$lt_reload_flag
10775 reload_cmds=$lt_reload_cmds
10776
10777 # How to pass a linker flag through the compiler.
10778 wl=$lt_lt_prog_compiler_wl
10779
10780 # Object file suffix (normally "o").
10781 objext="$ac_objext"
10782
10783 # Old archive suffix (normally "a").
10784 libext="$libext"
10785
10786 # Shared library suffix (normally ".so").
10787 shrext_cmds='$shrext_cmds'
10788
10789 # Executable file suffix (normally "").
10790 exeext="$exeext"
10791
10792 # Additional compiler flags for building library objects.
10793 pic_flag=$lt_lt_prog_compiler_pic
10794 pic_mode=$pic_mode
10795
10796 # What is the maximum length of a command?
10797 max_cmd_len=$lt_cv_sys_max_cmd_len
10798
10799 # Does compiler simultaneously support -c and -o options?
10800 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10801
10802 # Must we lock files when doing compilation?
10803 need_locks=$lt_need_locks
10804
10805 # Do we need the lib prefix for modules?
10806 need_lib_prefix=$need_lib_prefix
10807
10808 # Do we need a version for libraries?
10809 need_version=$need_version
10810
10811 # Whether dlopen is supported.
10812 dlopen_support=$enable_dlopen
10813
10814 # Whether dlopen of programs is supported.
10815 dlopen_self=$enable_dlopen_self
10816
10817 # Whether dlopen of statically linked programs is supported.
10818 dlopen_self_static=$enable_dlopen_self_static
10819
10820 # Compiler flag to prevent dynamic linking.
10821 link_static_flag=$lt_lt_prog_compiler_static
10822
10823 # Compiler flag to turn off builtin functions.
10824 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10825
10826 # Compiler flag to allow reflexive dlopens.
10827 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10828
10829 # Compiler flag to generate shared objects directly from archives.
10830 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10831
10832 # Compiler flag to generate thread-safe objects.
10833 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10834
10835 # Library versioning type.
10836 version_type=$version_type
10837
10838 # Format of library name prefix.
10839 libname_spec=$lt_libname_spec
10840
10841 # List of archive names.  First name is the real one, the rest are links.
10842 # The last name is the one that the linker finds with -lNAME.
10843 library_names_spec=$lt_library_names_spec
10844
10845 # The coded name of the library, if different from the real name.
10846 soname_spec=$lt_soname_spec
10847
10848 # Commands used to build and install an old-style archive.
10849 RANLIB=$lt_RANLIB
10850 old_archive_cmds=$lt_old_archive_cmds
10851 old_postinstall_cmds=$lt_old_postinstall_cmds
10852 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10853
10854 # Create an old-style archive from a shared archive.
10855 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10856
10857 # Create a temporary old-style archive to link instead of a shared archive.
10858 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10859
10860 # Commands used to build and install a shared archive.
10861 archive_cmds=$lt_archive_cmds
10862 archive_expsym_cmds=$lt_archive_expsym_cmds
10863 postinstall_cmds=$lt_postinstall_cmds
10864 postuninstall_cmds=$lt_postuninstall_cmds
10865
10866 # Commands used to build a loadable module (assumed same as above if empty)
10867 module_cmds=$lt_module_cmds
10868 module_expsym_cmds=$lt_module_expsym_cmds
10869
10870 # Commands to strip libraries.
10871 old_striplib=$lt_old_striplib
10872 striplib=$lt_striplib
10873
10874 # Dependencies to place before the objects being linked to create a
10875 # shared library.
10876 predep_objects=$lt_predep_objects
10877
10878 # Dependencies to place after the objects being linked to create a
10879 # shared library.
10880 postdep_objects=$lt_postdep_objects
10881
10882 # Dependencies to place before the objects being linked to create a
10883 # shared library.
10884 predeps=$lt_predeps
10885
10886 # Dependencies to place after the objects being linked to create a
10887 # shared library.
10888 postdeps=$lt_postdeps
10889
10890 # The directories searched by this compiler when creating a shared
10891 # library
10892 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10893
10894 # The library search path used internally by the compiler when linking
10895 # a shared library.
10896 compiler_lib_search_path=$lt_compiler_lib_search_path
10897
10898 # Method to check whether dependent libraries are shared objects.
10899 deplibs_check_method=$lt_deplibs_check_method
10900
10901 # Command to use when deplibs_check_method == file_magic.
10902 file_magic_cmd=$lt_file_magic_cmd
10903
10904 # Flag that allows shared libraries with undefined symbols to be built.
10905 allow_undefined_flag=$lt_allow_undefined_flag
10906
10907 # Flag that forces no undefined symbols.
10908 no_undefined_flag=$lt_no_undefined_flag
10909
10910 # Commands used to finish a libtool library installation in a directory.
10911 finish_cmds=$lt_finish_cmds
10912
10913 # Same as above, but a single script fragment to be evaled but not shown.
10914 finish_eval=$lt_finish_eval
10915
10916 # Take the output of nm and produce a listing of raw symbols and C names.
10917 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10918
10919 # Transform the output of nm in a proper C declaration
10920 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10921
10922 # Transform the output of nm in a C name address pair
10923 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10924
10925 # This is the shared library runtime path variable.
10926 runpath_var=$runpath_var
10927
10928 # This is the shared library path variable.
10929 shlibpath_var=$shlibpath_var
10930
10931 # Is shlibpath searched before the hard-coded library search path?
10932 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10933
10934 # How to hardcode a shared library path into an executable.
10935 hardcode_action=$hardcode_action
10936
10937 # Whether we should hardcode library paths into libraries.
10938 hardcode_into_libs=$hardcode_into_libs
10939
10940 # Flag to hardcode \$libdir into a binary during linking.
10941 # This must work even if \$libdir does not exist.
10942 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10943
10944 # If ld is used when linking, flag to hardcode \$libdir into
10945 # a binary during linking. This must work even if \$libdir does
10946 # not exist.
10947 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10948
10949 # Whether we need a single -rpath flag with a separated argument.
10950 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10951
10952 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10953 # resulting binary.
10954 hardcode_direct=$hardcode_direct
10955
10956 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10957 # resulting binary.
10958 hardcode_minus_L=$hardcode_minus_L
10959
10960 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10961 # the resulting binary.
10962 hardcode_shlibpath_var=$hardcode_shlibpath_var
10963
10964 # Set to yes if building a shared library automatically hardcodes DIR into the library
10965 # and all subsequent libraries and executables linked against it.
10966 hardcode_automatic=$hardcode_automatic
10967
10968 # Variables whose values should be saved in libtool wrapper scripts and
10969 # restored at relink time.
10970 variables_saved_for_relink="$variables_saved_for_relink"
10971
10972 # Whether libtool must link a program against all its dependency libraries.
10973 link_all_deplibs=$link_all_deplibs
10974
10975 # Compile-time system search path for libraries
10976 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10977
10978 # Run-time system search path for libraries
10979 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10980
10981 # Fix the shell variable \$srcfile for the compiler.
10982 fix_srcfile_path=$lt_fix_srcfile_path
10983
10984 # Set to yes if exported symbols are required.
10985 always_export_symbols=$always_export_symbols
10986
10987 # The commands to list exported symbols.
10988 export_symbols_cmds=$lt_export_symbols_cmds
10989
10990 # The commands to extract the exported symbol list from a shared archive.
10991 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10992
10993 # Symbols that should not be listed in the preloaded symbols.
10994 exclude_expsyms=$lt_exclude_expsyms
10995
10996 # Symbols that must always be exported.
10997 include_expsyms=$lt_include_expsyms
10998
10999 # ### END LIBTOOL CONFIG
11000
11001 __EOF__
11002
11003
11004   case $host_os in
11005   aix3*)
11006     cat <<\EOF >> "$cfgfile"
11007
11008 # AIX sometimes has problems with the GCC collect2 program.  For some
11009 # reason, if we set the COLLECT_NAMES environment variable, the problems
11010 # vanish in a puff of smoke.
11011 if test "X${COLLECT_NAMES+set}" != Xset; then
11012   COLLECT_NAMES=
11013   export COLLECT_NAMES
11014 fi
11015 EOF
11016     ;;
11017   esac
11018
11019   # We use sed instead of cat because bash on DJGPP gets confused if
11020   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11021   # text mode, it properly converts lines to CR/LF.  This bash problem
11022   # is reportedly fixed, but why not run on old versions too?
11023   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11024
11025   mv -f "$cfgfile" "$ofile" || \
11026     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11027   chmod +x "$ofile"
11028
11029 else
11030   # If there is no Makefile yet, we rely on a make rule to execute
11031   # `config.status --recheck' to rerun these tests and create the
11032   # libtool script then.
11033   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11034   if test -f "$ltmain_in"; then
11035     test -f Makefile && make "$ltmain"
11036   fi
11037 fi
11038
11039
11040 ac_ext=c
11041 ac_cpp='$CPP $CPPFLAGS'
11042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11045
11046 CC="$lt_save_CC"
11047
11048
11049 # Check whether --with-tags was given.
11050 if test "${with_tags+set}" = set; then
11051   withval=$with_tags; tagnames="$withval"
11052 fi
11053
11054
11055 if test -f "$ltmain" && test -n "$tagnames"; then
11056   if test ! -f "${ofile}"; then
11057     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11058 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11059   fi
11060
11061   if test -z "$LTCC"; then
11062     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11063     if test -z "$LTCC"; then
11064       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11065 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11066     else
11067       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11068 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11069     fi
11070   fi
11071   if test -z "$LTCFLAGS"; then
11072     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11073   fi
11074
11075   # Extract list of available tagged configurations in $ofile.
11076   # Note that this assumes the entire list is on one line.
11077   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11078
11079   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11080   for tagname in $tagnames; do
11081     IFS="$lt_save_ifs"
11082     # Check whether tagname contains only valid characters
11083     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11084     "") ;;
11085     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11086 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11087    { (exit 1); exit 1; }; }
11088         ;;
11089     esac
11090
11091     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11092     then
11093       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11094 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11095    { (exit 1); exit 1; }; }
11096     fi
11097
11098     # Update the list of available tags.
11099     if test -n "$tagname"; then
11100       echo appending configuration tag \"$tagname\" to $ofile
11101
11102       case $tagname in
11103       CXX)
11104         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11105             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11106             (test "X$CXX" != "Xg++"))) ; then
11107           ac_ext=cpp
11108 ac_cpp='$CXXCPP $CPPFLAGS'
11109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11112
11113
11114
11115
11116 archive_cmds_need_lc_CXX=no
11117 allow_undefined_flag_CXX=
11118 always_export_symbols_CXX=no
11119 archive_expsym_cmds_CXX=
11120 export_dynamic_flag_spec_CXX=
11121 hardcode_direct_CXX=no
11122 hardcode_libdir_flag_spec_CXX=
11123 hardcode_libdir_flag_spec_ld_CXX=
11124 hardcode_libdir_separator_CXX=
11125 hardcode_minus_L_CXX=no
11126 hardcode_shlibpath_var_CXX=unsupported
11127 hardcode_automatic_CXX=no
11128 module_cmds_CXX=
11129 module_expsym_cmds_CXX=
11130 link_all_deplibs_CXX=unknown
11131 old_archive_cmds_CXX=$old_archive_cmds
11132 no_undefined_flag_CXX=
11133 whole_archive_flag_spec_CXX=
11134 enable_shared_with_static_runtimes_CXX=no
11135
11136 # Dependencies to place before and after the object being linked:
11137 predep_objects_CXX=
11138 postdep_objects_CXX=
11139 predeps_CXX=
11140 postdeps_CXX=
11141 compiler_lib_search_path_CXX=
11142 compiler_lib_search_dirs_CXX=
11143
11144 # Source file extension for C++ test sources.
11145 ac_ext=cpp
11146
11147 # Object file extension for compiled C++ test sources.
11148 objext=o
11149 objext_CXX=$objext
11150
11151 # Code to be used in simple compile tests
11152 lt_simple_compile_test_code="int some_variable = 0;"
11153
11154 # Code to be used in simple link tests
11155 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11156
11157 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11158
11159 # If no C compiler was specified, use CC.
11160 LTCC=${LTCC-"$CC"}
11161
11162 # If no C compiler flags were specified, use CFLAGS.
11163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11164
11165 # Allow CC to be a program name with arguments.
11166 compiler=$CC
11167
11168
11169 # save warnings/boilerplate of simple test code
11170 ac_outfile=conftest.$ac_objext
11171 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11172 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11173 _lt_compiler_boilerplate=`cat conftest.err`
11174 $rm conftest*
11175
11176 ac_outfile=conftest.$ac_objext
11177 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11178 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11179 _lt_linker_boilerplate=`cat conftest.err`
11180 $rm -r conftest*
11181
11182
11183 # Allow CC to be a program name with arguments.
11184 lt_save_CC=$CC
11185 lt_save_LD=$LD
11186 lt_save_GCC=$GCC
11187 GCC=$GXX
11188 lt_save_with_gnu_ld=$with_gnu_ld
11189 lt_save_path_LD=$lt_cv_path_LD
11190 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11191   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11192 else
11193   $as_unset lt_cv_prog_gnu_ld
11194 fi
11195 if test -n "${lt_cv_path_LDCXX+set}"; then
11196   lt_cv_path_LD=$lt_cv_path_LDCXX
11197 else
11198   $as_unset lt_cv_path_LD
11199 fi
11200 test -z "${LDCXX+set}" || LD=$LDCXX
11201 CC=${CXX-"c++"}
11202 compiler=$CC
11203 compiler_CXX=$CC
11204 for cc_temp in $compiler""; do
11205   case $cc_temp in
11206     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11207     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11208     \-*) ;;
11209     *) break;;
11210   esac
11211 done
11212 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11213
11214
11215 # We don't want -fno-exception wen compiling C++ code, so set the
11216 # no_builtin_flag separately
11217 if test "$GXX" = yes; then
11218   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11219 else
11220   lt_prog_compiler_no_builtin_flag_CXX=
11221 fi
11222
11223 if test "$GXX" = yes; then
11224   # Set up default GNU C++ configuration
11225
11226
11227 # Check whether --with-gnu-ld was given.
11228 if test "${with_gnu_ld+set}" = set; then
11229   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11230 else
11231   with_gnu_ld=no
11232 fi
11233
11234 ac_prog=ld
11235 if test "$GCC" = yes; then
11236   # Check if gcc -print-prog-name=ld gives a path.
11237   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11238 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11239   case $host in
11240   *-*-mingw*)
11241     # gcc leaves a trailing carriage return which upsets mingw
11242     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11243   *)
11244     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11245   esac
11246   case $ac_prog in
11247     # Accept absolute paths.
11248     [\\/]* | ?:[\\/]*)
11249       re_direlt='/[^/][^/]*/\.\./'
11250       # Canonicalize the pathname of ld
11251       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11252       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11253         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11254       done
11255       test -z "$LD" && LD="$ac_prog"
11256       ;;
11257   "")
11258     # If it fails, then pretend we aren't using GCC.
11259     ac_prog=ld
11260     ;;
11261   *)
11262     # If it is relative, then search for the first ld in PATH.
11263     with_gnu_ld=unknown
11264     ;;
11265   esac
11266 elif test "$with_gnu_ld" = yes; then
11267   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11268 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11269 else
11270   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11271 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11272 fi
11273 if test "${lt_cv_path_LD+set}" = set; then
11274   echo $ECHO_N "(cached) $ECHO_C" >&6
11275 else
11276   if test -z "$LD"; then
11277   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11278   for ac_dir in $PATH; do
11279     IFS="$lt_save_ifs"
11280     test -z "$ac_dir" && ac_dir=.
11281     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11282       lt_cv_path_LD="$ac_dir/$ac_prog"
11283       # Check to see if the program is GNU ld.  I'd rather use --version,
11284       # but apparently some variants of GNU ld only accept -v.
11285       # Break only if it was the GNU/non-GNU ld that we prefer.
11286       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11287       *GNU* | *'with BFD'*)
11288         test "$with_gnu_ld" != no && break
11289         ;;
11290       *)
11291         test "$with_gnu_ld" != yes && break
11292         ;;
11293       esac
11294     fi
11295   done
11296   IFS="$lt_save_ifs"
11297 else
11298   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11299 fi
11300 fi
11301
11302 LD="$lt_cv_path_LD"
11303 if test -n "$LD"; then
11304   { echo "$as_me:$LINENO: result: $LD" >&5
11305 echo "${ECHO_T}$LD" >&6; }
11306 else
11307   { echo "$as_me:$LINENO: result: no" >&5
11308 echo "${ECHO_T}no" >&6; }
11309 fi
11310 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11311 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11312    { (exit 1); exit 1; }; }
11313 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11314 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11315 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11316   echo $ECHO_N "(cached) $ECHO_C" >&6
11317 else
11318   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11319 case `$LD -v 2>&1 </dev/null` in
11320 *GNU* | *'with BFD'*)
11321   lt_cv_prog_gnu_ld=yes
11322   ;;
11323 *)
11324   lt_cv_prog_gnu_ld=no
11325   ;;
11326 esac
11327 fi
11328 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11329 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11330 with_gnu_ld=$lt_cv_prog_gnu_ld
11331
11332
11333
11334   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11335   # archiving commands below assume that GNU ld is being used.
11336   if test "$with_gnu_ld" = yes; then
11337     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11338     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'
11339
11340     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11341     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11342
11343     # If archive_cmds runs LD, not CC, wlarc should be empty
11344     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11345     #     investigate it a little bit more. (MM)
11346     wlarc='${wl}'
11347
11348     # ancient GNU ld didn't support --whole-archive et. al.
11349     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11350         grep 'no-whole-archive' > /dev/null; then
11351       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11352     else
11353       whole_archive_flag_spec_CXX=
11354     fi
11355   else
11356     with_gnu_ld=no
11357     wlarc=
11358
11359     # A generic and very simple default shared library creation
11360     # command for GNU C++ for the case where it uses the native
11361     # linker, instead of GNU ld.  If possible, this setting should
11362     # overridden to take advantage of the native linker features on
11363     # the platform it is being used on.
11364     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11365   fi
11366
11367   # Commands to make compiler produce verbose output that lists
11368   # what "hidden" libraries, object files and flags are used when
11369   # linking a shared library.
11370   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11371
11372 else
11373   GXX=no
11374   with_gnu_ld=no
11375   wlarc=
11376 fi
11377
11378 # PORTME: fill in a description of your system's C++ link characteristics
11379 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11380 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11381 ld_shlibs_CXX=yes
11382 case $host_os in
11383   aix3*)
11384     # FIXME: insert proper C++ library support
11385     ld_shlibs_CXX=no
11386     ;;
11387   aix[4-9]*)
11388     if test "$host_cpu" = ia64; then
11389       # On IA64, the linker does run time linking by default, so we don't
11390       # have to do anything special.
11391       aix_use_runtimelinking=no
11392       exp_sym_flag='-Bexport'
11393       no_entry_flag=""
11394     else
11395       aix_use_runtimelinking=no
11396
11397       # Test if we are trying to use run time linking or normal
11398       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11399       # need to do runtime linking.
11400       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11401         for ld_flag in $LDFLAGS; do
11402           case $ld_flag in
11403           *-brtl*)
11404             aix_use_runtimelinking=yes
11405             break
11406             ;;
11407           esac
11408         done
11409         ;;
11410       esac
11411
11412       exp_sym_flag='-bexport'
11413       no_entry_flag='-bnoentry'
11414     fi
11415
11416     # When large executables or shared objects are built, AIX ld can
11417     # have problems creating the table of contents.  If linking a library
11418     # or program results in "error TOC overflow" add -mminimal-toc to
11419     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11420     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11421
11422     archive_cmds_CXX=''
11423     hardcode_direct_CXX=yes
11424     hardcode_libdir_separator_CXX=':'
11425     link_all_deplibs_CXX=yes
11426
11427     if test "$GXX" = yes; then
11428       case $host_os in aix4.[012]|aix4.[012].*)
11429       # We only want to do this on AIX 4.2 and lower, the check
11430       # below for broken collect2 doesn't work under 4.3+
11431         collect2name=`${CC} -print-prog-name=collect2`
11432         if test -f "$collect2name" && \
11433            strings "$collect2name" | grep resolve_lib_name >/dev/null
11434         then
11435           # We have reworked collect2
11436           :
11437         else
11438           # We have old collect2
11439           hardcode_direct_CXX=unsupported
11440           # It fails to find uninstalled libraries when the uninstalled
11441           # path is not listed in the libpath.  Setting hardcode_minus_L
11442           # to unsupported forces relinking
11443           hardcode_minus_L_CXX=yes
11444           hardcode_libdir_flag_spec_CXX='-L$libdir'
11445           hardcode_libdir_separator_CXX=
11446         fi
11447         ;;
11448       esac
11449       shared_flag='-shared'
11450       if test "$aix_use_runtimelinking" = yes; then
11451         shared_flag="$shared_flag "'${wl}-G'
11452       fi
11453     else
11454       # not using gcc
11455       if test "$host_cpu" = ia64; then
11456         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11457         # chokes on -Wl,-G. The following line is correct:
11458         shared_flag='-G'
11459       else
11460         if test "$aix_use_runtimelinking" = yes; then
11461           shared_flag='${wl}-G'
11462         else
11463           shared_flag='${wl}-bM:SRE'
11464         fi
11465       fi
11466     fi
11467
11468     # It seems that -bexpall does not export symbols beginning with
11469     # underscore (_), so it is better to generate a list of symbols to export.
11470     always_export_symbols_CXX=yes
11471     if test "$aix_use_runtimelinking" = yes; then
11472       # Warning - without using the other runtime loading flags (-brtl),
11473       # -berok will link without error, but may produce a broken library.
11474       allow_undefined_flag_CXX='-berok'
11475       # Determine the default libpath from the value encoded in an empty executable.
11476       cat >conftest.$ac_ext <<_ACEOF
11477 /* confdefs.h.  */
11478 _ACEOF
11479 cat confdefs.h >>conftest.$ac_ext
11480 cat >>conftest.$ac_ext <<_ACEOF
11481 /* end confdefs.h.  */
11482
11483 int
11484 main ()
11485 {
11486
11487   ;
11488   return 0;
11489 }
11490 _ACEOF
11491 rm -f conftest.$ac_objext conftest$ac_exeext
11492 if { (ac_try="$ac_link"
11493 case "(($ac_try" in
11494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11495   *) ac_try_echo=$ac_try;;
11496 esac
11497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11498   (eval "$ac_link") 2>conftest.er1
11499   ac_status=$?
11500   grep -v '^ *+' conftest.er1 >conftest.err
11501   rm -f conftest.er1
11502   cat conftest.err >&5
11503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504   (exit $ac_status); } && {
11505          test -z "$ac_cxx_werror_flag" ||
11506          test ! -s conftest.err
11507        } && test -s conftest$ac_exeext &&
11508        $as_test_x conftest$ac_exeext; then
11509
11510 lt_aix_libpath_sed='
11511     /Import File Strings/,/^$/ {
11512         /^0/ {
11513             s/^0  *\(.*\)$/\1/
11514             p
11515         }
11516     }'
11517 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11518 # Check for a 64-bit object if we didn't find anything.
11519 if test -z "$aix_libpath"; then
11520   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11521 fi
11522 else
11523   echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11525
11526
11527 fi
11528
11529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11530       conftest$ac_exeext conftest.$ac_ext
11531 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11532
11533       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11534
11535       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"
11536      else
11537       if test "$host_cpu" = ia64; then
11538         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11539         allow_undefined_flag_CXX="-z nodefs"
11540         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"
11541       else
11542         # Determine the default libpath from the value encoded in an empty executable.
11543         cat >conftest.$ac_ext <<_ACEOF
11544 /* confdefs.h.  */
11545 _ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h.  */
11549
11550 int
11551 main ()
11552 {
11553
11554   ;
11555   return 0;
11556 }
11557 _ACEOF
11558 rm -f conftest.$ac_objext conftest$ac_exeext
11559 if { (ac_try="$ac_link"
11560 case "(($ac_try" in
11561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11562   *) ac_try_echo=$ac_try;;
11563 esac
11564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11565   (eval "$ac_link") 2>conftest.er1
11566   ac_status=$?
11567   grep -v '^ *+' conftest.er1 >conftest.err
11568   rm -f conftest.er1
11569   cat conftest.err >&5
11570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571   (exit $ac_status); } && {
11572          test -z "$ac_cxx_werror_flag" ||
11573          test ! -s conftest.err
11574        } && test -s conftest$ac_exeext &&
11575        $as_test_x conftest$ac_exeext; then
11576
11577 lt_aix_libpath_sed='
11578     /Import File Strings/,/^$/ {
11579         /^0/ {
11580             s/^0  *\(.*\)$/\1/
11581             p
11582         }
11583     }'
11584 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11585 # Check for a 64-bit object if we didn't find anything.
11586 if test -z "$aix_libpath"; then
11587   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11588 fi
11589 else
11590   echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11592
11593
11594 fi
11595
11596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11597       conftest$ac_exeext conftest.$ac_ext
11598 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11599
11600         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11601         # Warning - without using the other run time loading flags,
11602         # -berok will link without error, but may produce a broken library.
11603         no_undefined_flag_CXX=' ${wl}-bernotok'
11604         allow_undefined_flag_CXX=' ${wl}-berok'
11605         # Exported symbols can be pulled into shared objects from archives
11606         whole_archive_flag_spec_CXX='$convenience'
11607         archive_cmds_need_lc_CXX=yes
11608         # This is similar to how AIX traditionally builds its shared libraries.
11609         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'
11610       fi
11611     fi
11612     ;;
11613
11614   beos*)
11615     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11616       allow_undefined_flag_CXX=unsupported
11617       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11618       # support --undefined.  This deserves some investigation.  FIXME
11619       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11620     else
11621       ld_shlibs_CXX=no
11622     fi
11623     ;;
11624
11625   chorus*)
11626     case $cc_basename in
11627       *)
11628         # FIXME: insert proper C++ library support
11629         ld_shlibs_CXX=no
11630         ;;
11631     esac
11632     ;;
11633
11634   cygwin* | mingw* | pw32*)
11635     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11636     # as there is no search path for DLLs.
11637     hardcode_libdir_flag_spec_CXX='-L$libdir'
11638     allow_undefined_flag_CXX=unsupported
11639     always_export_symbols_CXX=no
11640     enable_shared_with_static_runtimes_CXX=yes
11641
11642     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11643       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'
11644       # If the export-symbols file already is a .def file (1st line
11645       # is EXPORTS), use it as is; otherwise, prepend...
11646       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11647         cp $export_symbols $output_objdir/$soname.def;
11648       else
11649         echo EXPORTS > $output_objdir/$soname.def;
11650         cat $export_symbols >> $output_objdir/$soname.def;
11651       fi~
11652       $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'
11653     else
11654       ld_shlibs_CXX=no
11655     fi
11656   ;;
11657       darwin* | rhapsody*)
11658       archive_cmds_need_lc_CXX=no
11659       hardcode_direct_CXX=no
11660       hardcode_automatic_CXX=yes
11661       hardcode_shlibpath_var_CXX=unsupported
11662       whole_archive_flag_spec_CXX=''
11663       link_all_deplibs_CXX=yes
11664       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11665       if test "$GXX" = yes ; then
11666       output_verbose_link_cmd='echo'
11667       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11668       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11669       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11670       module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11671       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11672         archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11673         archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11674       fi
11675       else
11676       case $cc_basename in
11677         xlc*)
11678          output_verbose_link_cmd='echo'
11679           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11680           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11681           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11682           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11683           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}'
11684           ;;
11685        *)
11686          ld_shlibs_CXX=no
11687           ;;
11688       esac
11689       fi
11690         ;;
11691
11692   dgux*)
11693     case $cc_basename in
11694       ec++*)
11695         # FIXME: insert proper C++ library support
11696         ld_shlibs_CXX=no
11697         ;;
11698       ghcx*)
11699         # Green Hills C++ Compiler
11700         # FIXME: insert proper C++ library support
11701         ld_shlibs_CXX=no
11702         ;;
11703       *)
11704         # FIXME: insert proper C++ library support
11705         ld_shlibs_CXX=no
11706         ;;
11707     esac
11708     ;;
11709   freebsd[12]*)
11710     # C++ shared libraries reported to be fairly broken before switch to ELF
11711     ld_shlibs_CXX=no
11712     ;;
11713   freebsd-elf*)
11714     archive_cmds_need_lc_CXX=no
11715     ;;
11716   freebsd* | dragonfly*)
11717     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11718     # conventions
11719     ld_shlibs_CXX=yes
11720     ;;
11721   gnu*)
11722     ;;
11723   hpux9*)
11724     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11725     hardcode_libdir_separator_CXX=:
11726     export_dynamic_flag_spec_CXX='${wl}-E'
11727     hardcode_direct_CXX=yes
11728     hardcode_minus_L_CXX=yes # Not in the search PATH,
11729                                 # but as the default
11730                                 # location of the library.
11731
11732     case $cc_basename in
11733     CC*)
11734       # FIXME: insert proper C++ library support
11735       ld_shlibs_CXX=no
11736       ;;
11737     aCC*)
11738       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'
11739       # Commands to make compiler produce verbose output that lists
11740       # what "hidden" libraries, object files and flags are used when
11741       # linking a shared library.
11742       #
11743       # There doesn't appear to be a way to prevent this compiler from
11744       # explicitly linking system object files so we need to strip them
11745       # from the output so that they don't get included in the library
11746       # dependencies.
11747       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'
11748       ;;
11749     *)
11750       if test "$GXX" = yes; then
11751         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'
11752       else
11753         # FIXME: insert proper C++ library support
11754         ld_shlibs_CXX=no
11755       fi
11756       ;;
11757     esac
11758     ;;
11759   hpux10*|hpux11*)
11760     if test $with_gnu_ld = no; then
11761       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11762       hardcode_libdir_separator_CXX=:
11763
11764       case $host_cpu in
11765       hppa*64*|ia64*) ;;
11766       *)
11767         export_dynamic_flag_spec_CXX='${wl}-E'
11768         ;;
11769       esac
11770     fi
11771     case $host_cpu in
11772     hppa*64*|ia64*)
11773       hardcode_direct_CXX=no
11774       hardcode_shlibpath_var_CXX=no
11775       ;;
11776     *)
11777       hardcode_direct_CXX=yes
11778       hardcode_minus_L_CXX=yes # Not in the search PATH,
11779                                               # but as the default
11780                                               # location of the library.
11781       ;;
11782     esac
11783
11784     case $cc_basename in
11785       CC*)
11786         # FIXME: insert proper C++ library support
11787         ld_shlibs_CXX=no
11788         ;;
11789       aCC*)
11790         case $host_cpu in
11791         hppa*64*)
11792           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11793           ;;
11794         ia64*)
11795           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11796           ;;
11797         *)
11798           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11799           ;;
11800         esac
11801         # Commands to make compiler produce verbose output that lists
11802         # what "hidden" libraries, object files and flags are used when
11803         # linking a shared library.
11804         #
11805         # There doesn't appear to be a way to prevent this compiler from
11806         # explicitly linking system object files so we need to strip them
11807         # from the output so that they don't get included in the library
11808         # dependencies.
11809         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'
11810         ;;
11811       *)
11812         if test "$GXX" = yes; then
11813           if test $with_gnu_ld = no; then
11814             case $host_cpu in
11815             hppa*64*)
11816               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11817               ;;
11818             ia64*)
11819               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11820               ;;
11821             *)
11822               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'
11823               ;;
11824             esac
11825           fi
11826         else
11827           # FIXME: insert proper C++ library support
11828           ld_shlibs_CXX=no
11829         fi
11830         ;;
11831     esac
11832     ;;
11833   interix[3-9]*)
11834     hardcode_direct_CXX=no
11835     hardcode_shlibpath_var_CXX=no
11836     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11837     export_dynamic_flag_spec_CXX='${wl}-E'
11838     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11839     # Instead, shared libraries are loaded at an image base (0x10000000 by
11840     # default) and relocated if they conflict, which is a slow very memory
11841     # consuming and fragmenting process.  To avoid this, we pick a random,
11842     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11843     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11844     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'
11845     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'
11846     ;;
11847   irix5* | irix6*)
11848     case $cc_basename in
11849       CC*)
11850         # SGI C++
11851         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'
11852
11853         # Archives containing C++ object files must be created using
11854         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11855         # necessary to make sure instantiated templates are included
11856         # in the archive.
11857         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11858         ;;
11859       *)
11860         if test "$GXX" = yes; then
11861           if test "$with_gnu_ld" = no; then
11862             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'
11863           else
11864             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'
11865           fi
11866         fi
11867         link_all_deplibs_CXX=yes
11868         ;;
11869     esac
11870     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11871     hardcode_libdir_separator_CXX=:
11872     ;;
11873   linux* | k*bsd*-gnu)
11874     case $cc_basename in
11875       KCC*)
11876         # Kuck and Associates, Inc. (KAI) C++ Compiler
11877
11878         # KCC will only create a shared library if the output file
11879         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11880         # to its proper name (with version) after linking.
11881         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'
11882         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'
11883         # Commands to make compiler produce verbose output that lists
11884         # what "hidden" libraries, object files and flags are used when
11885         # linking a shared library.
11886         #
11887         # There doesn't appear to be a way to prevent this compiler from
11888         # explicitly linking system object files so we need to strip them
11889         # from the output so that they don't get included in the library
11890         # dependencies.
11891         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'
11892
11893         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11894         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11895
11896         # Archives containing C++ object files must be created using
11897         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11898         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11899         ;;
11900       icpc*)
11901         # Intel C++
11902         with_gnu_ld=yes
11903         # version 8.0 and above of icpc choke on multiply defined symbols
11904         # if we add $predep_objects and $postdep_objects, however 7.1 and
11905         # earlier do not add the objects themselves.
11906         case `$CC -V 2>&1` in
11907         *"Version 7."*)
11908           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11909           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'
11910           ;;
11911         *)  # Version 8.0 or newer
11912           tmp_idyn=
11913           case $host_cpu in
11914             ia64*) tmp_idyn=' -i_dynamic';;
11915           esac
11916           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11917           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'
11918           ;;
11919         esac
11920         archive_cmds_need_lc_CXX=no
11921         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11922         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11923         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11924         ;;
11925       pgCC* | pgcpp*)
11926         # Portland Group C++ compiler
11927         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11928         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'
11929
11930         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11931         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11932         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'
11933         ;;
11934       cxx*)
11935         # Compaq C++
11936         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11937         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'
11938
11939         runpath_var=LD_RUN_PATH
11940         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11941         hardcode_libdir_separator_CXX=:
11942
11943         # Commands to make compiler produce verbose output that lists
11944         # what "hidden" libraries, object files and flags are used when
11945         # linking a shared library.
11946         #
11947         # There doesn't appear to be a way to prevent this compiler from
11948         # explicitly linking system object files so we need to strip them
11949         # from the output so that they don't get included in the library
11950         # dependencies.
11951         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'
11952         ;;
11953       *)
11954         case `$CC -V 2>&1 | sed 5q` in
11955         *Sun\ C*)
11956           # Sun C++ 5.9
11957           no_undefined_flag_CXX=' -zdefs'
11958           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11959           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11960           hardcode_libdir_flag_spec_CXX='-R$libdir'
11961           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11962
11963           # Not sure whether something based on
11964           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11965           # would be better.
11966           output_verbose_link_cmd='echo'
11967
11968           # Archives containing C++ object files must be created using
11969           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11970           # necessary to make sure instantiated templates are included
11971           # in the archive.
11972           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11973           ;;
11974         esac
11975         ;;
11976     esac
11977     ;;
11978   lynxos*)
11979     # FIXME: insert proper C++ library support
11980     ld_shlibs_CXX=no
11981     ;;
11982   m88k*)
11983     # FIXME: insert proper C++ library support
11984     ld_shlibs_CXX=no
11985     ;;
11986   mvs*)
11987     case $cc_basename in
11988       cxx*)
11989         # FIXME: insert proper C++ library support
11990         ld_shlibs_CXX=no
11991         ;;
11992       *)
11993         # FIXME: insert proper C++ library support
11994         ld_shlibs_CXX=no
11995         ;;
11996     esac
11997     ;;
11998   netbsd* | netbsdelf*-gnu)
11999     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12000       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12001       wlarc=
12002       hardcode_libdir_flag_spec_CXX='-R$libdir'
12003       hardcode_direct_CXX=yes
12004       hardcode_shlibpath_var_CXX=no
12005     fi
12006     # Workaround some broken pre-1.5 toolchains
12007     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12008     ;;
12009   openbsd2*)
12010     # C++ shared libraries are fairly broken
12011     ld_shlibs_CXX=no
12012     ;;
12013   openbsd*)
12014     if test -f /usr/libexec/ld.so; then
12015       hardcode_direct_CXX=yes
12016       hardcode_shlibpath_var_CXX=no
12017       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12018       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12019       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12020         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12021         export_dynamic_flag_spec_CXX='${wl}-E'
12022         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12023       fi
12024       output_verbose_link_cmd='echo'
12025     else
12026       ld_shlibs_CXX=no
12027     fi
12028     ;;
12029   osf3*)
12030     case $cc_basename in
12031       KCC*)
12032         # Kuck and Associates, Inc. (KAI) C++ Compiler
12033
12034         # KCC will only create a shared library if the output file
12035         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12036         # to its proper name (with version) after linking.
12037         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'
12038
12039         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12040         hardcode_libdir_separator_CXX=:
12041
12042         # Archives containing C++ object files must be created using
12043         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12044         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12045
12046         ;;
12047       RCC*)
12048         # Rational C++ 2.4.1
12049         # FIXME: insert proper C++ library support
12050         ld_shlibs_CXX=no
12051         ;;
12052       cxx*)
12053         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12054         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'
12055
12056         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12057         hardcode_libdir_separator_CXX=:
12058
12059         # Commands to make compiler produce verbose output that lists
12060         # what "hidden" libraries, object files and flags are used when
12061         # linking a shared library.
12062         #
12063         # There doesn't appear to be a way to prevent this compiler from
12064         # explicitly linking system object files so we need to strip them
12065         # from the output so that they don't get included in the library
12066         # dependencies.
12067         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'
12068         ;;
12069       *)
12070         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12071           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12072           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'
12073
12074           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12075           hardcode_libdir_separator_CXX=:
12076
12077           # Commands to make compiler produce verbose output that lists
12078           # what "hidden" libraries, object files and flags are used when
12079           # linking a shared library.
12080           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12081
12082         else
12083           # FIXME: insert proper C++ library support
12084           ld_shlibs_CXX=no
12085         fi
12086         ;;
12087     esac
12088     ;;
12089   osf4* | osf5*)
12090     case $cc_basename in
12091       KCC*)
12092         # Kuck and Associates, Inc. (KAI) C++ Compiler
12093
12094         # KCC will only create a shared library if the output file
12095         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12096         # to its proper name (with version) after linking.
12097         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'
12098
12099         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12100         hardcode_libdir_separator_CXX=:
12101
12102         # Archives containing C++ object files must be created using
12103         # the KAI C++ compiler.
12104         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12105         ;;
12106       RCC*)
12107         # Rational C++ 2.4.1
12108         # FIXME: insert proper C++ library support
12109         ld_shlibs_CXX=no
12110         ;;
12111       cxx*)
12112         allow_undefined_flag_CXX=' -expect_unresolved \*'
12113         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'
12114         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12115           echo "-hidden">> $lib.exp~
12116           $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~
12117           $rm $lib.exp'
12118
12119         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12120         hardcode_libdir_separator_CXX=:
12121
12122         # Commands to make compiler produce verbose output that lists
12123         # what "hidden" libraries, object files and flags are used when
12124         # linking a shared library.
12125         #
12126         # There doesn't appear to be a way to prevent this compiler from
12127         # explicitly linking system object files so we need to strip them
12128         # from the output so that they don't get included in the library
12129         # dependencies.
12130         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'
12131         ;;
12132       *)
12133         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12134           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12135          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'
12136
12137           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12138           hardcode_libdir_separator_CXX=:
12139
12140           # Commands to make compiler produce verbose output that lists
12141           # what "hidden" libraries, object files and flags are used when
12142           # linking a shared library.
12143           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12144
12145         else
12146           # FIXME: insert proper C++ library support
12147           ld_shlibs_CXX=no
12148         fi
12149         ;;
12150     esac
12151     ;;
12152   psos*)
12153     # FIXME: insert proper C++ library support
12154     ld_shlibs_CXX=no
12155     ;;
12156   sunos4*)
12157     case $cc_basename in
12158       CC*)
12159         # Sun C++ 4.x
12160         # FIXME: insert proper C++ library support
12161         ld_shlibs_CXX=no
12162         ;;
12163       lcc*)
12164         # Lucid
12165         # FIXME: insert proper C++ library support
12166         ld_shlibs_CXX=no
12167         ;;
12168       *)
12169         # FIXME: insert proper C++ library support
12170         ld_shlibs_CXX=no
12171         ;;
12172     esac
12173     ;;
12174   solaris*)
12175     case $cc_basename in
12176       CC*)
12177         # Sun C++ 4.2, 5.x and Centerline C++
12178         archive_cmds_need_lc_CXX=yes
12179         no_undefined_flag_CXX=' -zdefs'
12180         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12181         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12182         $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'
12183
12184         hardcode_libdir_flag_spec_CXX='-R$libdir'
12185         hardcode_shlibpath_var_CXX=no
12186         case $host_os in
12187           solaris2.[0-5] | solaris2.[0-5].*) ;;
12188           *)
12189             # The compiler driver will combine and reorder linker options,
12190             # but understands `-z linker_flag'.
12191             # Supported since Solaris 2.6 (maybe 2.5.1?)
12192             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12193             ;;
12194         esac
12195         link_all_deplibs_CXX=yes
12196
12197         output_verbose_link_cmd='echo'
12198
12199         # Archives containing C++ object files must be created using
12200         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12201         # necessary to make sure instantiated templates are included
12202         # in the archive.
12203         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12204         ;;
12205       gcx*)
12206         # Green Hills C++ Compiler
12207         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12208
12209         # The C++ compiler must be used to create the archive.
12210         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12211         ;;
12212       *)
12213         # GNU C++ compiler with Solaris linker
12214         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12215           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12216           if $CC --version | grep -v '^2\.7' > /dev/null; then
12217             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12218             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12219                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12220
12221             # Commands to make compiler produce verbose output that lists
12222             # what "hidden" libraries, object files and flags are used when
12223             # linking a shared library.
12224             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12225           else
12226             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12227             # platform.
12228             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12229             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12230                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12231
12232             # Commands to make compiler produce verbose output that lists
12233             # what "hidden" libraries, object files and flags are used when
12234             # linking a shared library.
12235             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12236           fi
12237
12238           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12239           case $host_os in
12240           solaris2.[0-5] | solaris2.[0-5].*) ;;
12241           *)
12242             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12243             ;;
12244           esac
12245         fi
12246         ;;
12247     esac
12248     ;;
12249   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12250     no_undefined_flag_CXX='${wl}-z,text'
12251     archive_cmds_need_lc_CXX=no
12252     hardcode_shlibpath_var_CXX=no
12253     runpath_var='LD_RUN_PATH'
12254
12255     case $cc_basename in
12256       CC*)
12257         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12258         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12259         ;;
12260       *)
12261         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12262         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12263         ;;
12264     esac
12265     ;;
12266   sysv5* | sco3.2v5* | sco5v6*)
12267     # Note: We can NOT use -z defs as we might desire, because we do not
12268     # link with -lc, and that would cause any symbols used from libc to
12269     # always be unresolved, which means just about no library would
12270     # ever link correctly.  If we're not using GNU ld we use -z text
12271     # though, which does catch some bad symbols but isn't as heavy-handed
12272     # as -z defs.
12273     # For security reasons, it is highly recommended that you always
12274     # use absolute paths for naming shared libraries, and exclude the
12275     # DT_RUNPATH tag from executables and libraries.  But doing so
12276     # requires that you compile everything twice, which is a pain.
12277     # So that behaviour is only enabled if SCOABSPATH is set to a
12278     # non-empty value in the environment.  Most likely only useful for
12279     # creating official distributions of packages.
12280     # This is a hack until libtool officially supports absolute path
12281     # names for shared libraries.
12282     no_undefined_flag_CXX='${wl}-z,text'
12283     allow_undefined_flag_CXX='${wl}-z,nodefs'
12284     archive_cmds_need_lc_CXX=no
12285     hardcode_shlibpath_var_CXX=no
12286     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12287     hardcode_libdir_separator_CXX=':'
12288     link_all_deplibs_CXX=yes
12289     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12290     runpath_var='LD_RUN_PATH'
12291
12292     case $cc_basename in
12293       CC*)
12294         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12295         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12296         ;;
12297       *)
12298         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12299         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12300         ;;
12301     esac
12302     ;;
12303   tandem*)
12304     case $cc_basename in
12305       NCC*)
12306         # NonStop-UX NCC 3.20
12307         # FIXME: insert proper C++ library support
12308         ld_shlibs_CXX=no
12309         ;;
12310       *)
12311         # FIXME: insert proper C++ library support
12312         ld_shlibs_CXX=no
12313         ;;
12314     esac
12315     ;;
12316   vxworks*)
12317     # FIXME: insert proper C++ library support
12318     ld_shlibs_CXX=no
12319     ;;
12320   *)
12321     # FIXME: insert proper C++ library support
12322     ld_shlibs_CXX=no
12323     ;;
12324 esac
12325 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12326 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12327 test "$ld_shlibs_CXX" = no && can_build_shared=no
12328
12329 GCC_CXX="$GXX"
12330 LD_CXX="$LD"
12331
12332 cat > conftest.$ac_ext <<EOF
12333 class Foo
12334 {
12335 public:
12336   Foo (void) { a = 0; }
12337 private:
12338   int a;
12339 };
12340 EOF
12341
12342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12343   (eval $ac_compile) 2>&5
12344   ac_status=$?
12345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346   (exit $ac_status); }; then
12347   # Parse the compiler output and extract the necessary
12348   # objects, libraries and library flags.
12349
12350   # Sentinel used to keep track of whether or not we are before
12351   # the conftest object file.
12352   pre_test_object_deps_done=no
12353
12354   # The `*' in the case matches for architectures that use `case' in
12355   # $output_verbose_cmd can trigger glob expansion during the loop
12356   # eval without this substitution.
12357   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12358
12359   for p in `eval $output_verbose_link_cmd`; do
12360     case $p in
12361
12362     -L* | -R* | -l*)
12363        # Some compilers place space between "-{L,R}" and the path.
12364        # Remove the space.
12365        if test $p = "-L" \
12366           || test $p = "-R"; then
12367          prev=$p
12368          continue
12369        else
12370          prev=
12371        fi
12372
12373        if test "$pre_test_object_deps_done" = no; then
12374          case $p in
12375          -L* | -R*)
12376            # Internal compiler library paths should come after those
12377            # provided the user.  The postdeps already come after the
12378            # user supplied libs so there is no need to process them.
12379            if test -z "$compiler_lib_search_path_CXX"; then
12380              compiler_lib_search_path_CXX="${prev}${p}"
12381            else
12382              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12383            fi
12384            ;;
12385          # The "-l" case would never come before the object being
12386          # linked, so don't bother handling this case.
12387          esac
12388        else
12389          if test -z "$postdeps_CXX"; then
12390            postdeps_CXX="${prev}${p}"
12391          else
12392            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12393          fi
12394        fi
12395        ;;
12396
12397     *.$objext)
12398        # This assumes that the test object file only shows up
12399        # once in the compiler output.
12400        if test "$p" = "conftest.$objext"; then
12401          pre_test_object_deps_done=yes
12402          continue
12403        fi
12404
12405        if test "$pre_test_object_deps_done" = no; then
12406          if test -z "$predep_objects_CXX"; then
12407            predep_objects_CXX="$p"
12408          else
12409            predep_objects_CXX="$predep_objects_CXX $p"
12410          fi
12411        else
12412          if test -z "$postdep_objects_CXX"; then
12413            postdep_objects_CXX="$p"
12414          else
12415            postdep_objects_CXX="$postdep_objects_CXX $p"
12416          fi
12417        fi
12418        ;;
12419
12420     *) ;; # Ignore the rest.
12421
12422     esac
12423   done
12424
12425   # Clean up.
12426   rm -f a.out a.exe
12427 else
12428   echo "libtool.m4: error: problem compiling CXX test program"
12429 fi
12430
12431 $rm -f confest.$objext
12432
12433 compiler_lib_search_dirs_CXX=
12434 if test -n "$compiler_lib_search_path_CXX"; then
12435   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12436 fi
12437
12438 # PORTME: override above test on systems where it is broken
12439 case $host_os in
12440 interix[3-9]*)
12441   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12442   # hack all around it, let's just trust "g++" to DTRT.
12443   predep_objects_CXX=
12444   postdep_objects_CXX=
12445   postdeps_CXX=
12446   ;;
12447
12448 linux*)
12449   case `$CC -V 2>&1 | sed 5q` in
12450   *Sun\ C*)
12451     # Sun C++ 5.9
12452     #
12453     # The more standards-conforming stlport4 library is
12454     # incompatible with the Cstd library. Avoid specifying
12455     # it if it's in CXXFLAGS. Ignore libCrun as
12456     # -library=stlport4 depends on it.
12457     case " $CXX $CXXFLAGS " in
12458     *" -library=stlport4 "*)
12459       solaris_use_stlport4=yes
12460       ;;
12461     esac
12462     if test "$solaris_use_stlport4" != yes; then
12463       postdeps_CXX='-library=Cstd -library=Crun'
12464     fi
12465     ;;
12466   esac
12467   ;;
12468
12469 solaris*)
12470   case $cc_basename in
12471   CC*)
12472     # The more standards-conforming stlport4 library is
12473     # incompatible with the Cstd library. Avoid specifying
12474     # it if it's in CXXFLAGS. Ignore libCrun as
12475     # -library=stlport4 depends on it.
12476     case " $CXX $CXXFLAGS " in
12477     *" -library=stlport4 "*)
12478       solaris_use_stlport4=yes
12479       ;;
12480     esac
12481
12482     # Adding this requires a known-good setup of shared libraries for
12483     # Sun compiler versions before 5.6, else PIC objects from an old
12484     # archive will be linked into the output, leading to subtle bugs.
12485     if test "$solaris_use_stlport4" != yes; then
12486       postdeps_CXX='-library=Cstd -library=Crun'
12487     fi
12488     ;;
12489   esac
12490   ;;
12491 esac
12492
12493 case " $postdeps_CXX " in
12494 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12495 esac
12496
12497 lt_prog_compiler_wl_CXX=
12498 lt_prog_compiler_pic_CXX=
12499 lt_prog_compiler_static_CXX=
12500
12501 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12502 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12503
12504   # C++ specific cases for pic, static, wl, etc.
12505   if test "$GXX" = yes; then
12506     lt_prog_compiler_wl_CXX='-Wl,'
12507     lt_prog_compiler_static_CXX='-static'
12508
12509     case $host_os in
12510     aix*)
12511       # All AIX code is PIC.
12512       if test "$host_cpu" = ia64; then
12513         # AIX 5 now supports IA64 processor
12514         lt_prog_compiler_static_CXX='-Bstatic'
12515       fi
12516       ;;
12517     amigaos*)
12518       # FIXME: we need at least 68020 code to build shared libraries, but
12519       # adding the `-m68020' flag to GCC prevents building anything better,
12520       # like `-m68040'.
12521       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12522       ;;
12523     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12524       # PIC is the default for these OSes.
12525       ;;
12526     mingw* | cygwin* | os2* | pw32*)
12527       # This hack is so that the source file can tell whether it is being
12528       # built for inclusion in a dll (and should export symbols for example).
12529       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12530       # (--disable-auto-import) libraries
12531       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12532       ;;
12533     darwin* | rhapsody*)
12534       # PIC is the default on this platform
12535       # Common symbols not allowed in MH_DYLIB files
12536       lt_prog_compiler_pic_CXX='-fno-common'
12537       ;;
12538     *djgpp*)
12539       # DJGPP does not support shared libraries at all
12540       lt_prog_compiler_pic_CXX=
12541       ;;
12542     interix[3-9]*)
12543       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12544       # Instead, we relocate shared libraries at runtime.
12545       ;;
12546     sysv4*MP*)
12547       if test -d /usr/nec; then
12548         lt_prog_compiler_pic_CXX=-Kconform_pic
12549       fi
12550       ;;
12551     hpux*)
12552       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12553       # not for PA HP-UX.
12554       case $host_cpu in
12555       hppa*64*|ia64*)
12556         ;;
12557       *)
12558         lt_prog_compiler_pic_CXX='-fPIC'
12559         ;;
12560       esac
12561       ;;
12562     *)
12563       lt_prog_compiler_pic_CXX='-fPIC'
12564       ;;
12565     esac
12566   else
12567     case $host_os in
12568       aix[4-9]*)
12569         # All AIX code is PIC.
12570         if test "$host_cpu" = ia64; then
12571           # AIX 5 now supports IA64 processor
12572           lt_prog_compiler_static_CXX='-Bstatic'
12573         else
12574           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12575         fi
12576         ;;
12577       chorus*)
12578         case $cc_basename in
12579         cxch68*)
12580           # Green Hills C++ Compiler
12581           # _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"
12582           ;;
12583         esac
12584         ;;
12585        darwin*)
12586          # PIC is the default on this platform
12587          # Common symbols not allowed in MH_DYLIB files
12588          case $cc_basename in
12589            xlc*)
12590            lt_prog_compiler_pic_CXX='-qnocommon'
12591            lt_prog_compiler_wl_CXX='-Wl,'
12592            ;;
12593          esac
12594        ;;
12595       dgux*)
12596         case $cc_basename in
12597           ec++*)
12598             lt_prog_compiler_pic_CXX='-KPIC'
12599             ;;
12600           ghcx*)
12601             # Green Hills C++ Compiler
12602             lt_prog_compiler_pic_CXX='-pic'
12603             ;;
12604           *)
12605             ;;
12606         esac
12607         ;;
12608       freebsd* | dragonfly*)
12609         # FreeBSD uses GNU C++
12610         ;;
12611       hpux9* | hpux10* | hpux11*)
12612         case $cc_basename in
12613           CC*)
12614             lt_prog_compiler_wl_CXX='-Wl,'
12615             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12616             if test "$host_cpu" != ia64; then
12617               lt_prog_compiler_pic_CXX='+Z'
12618             fi
12619             ;;
12620           aCC*)
12621             lt_prog_compiler_wl_CXX='-Wl,'
12622             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12623             case $host_cpu in
12624             hppa*64*|ia64*)
12625               # +Z the default
12626               ;;
12627             *)
12628               lt_prog_compiler_pic_CXX='+Z'
12629               ;;
12630             esac
12631             ;;
12632           *)
12633             ;;
12634         esac
12635         ;;
12636       interix*)
12637         # This is c89, which is MS Visual C++ (no shared libs)
12638         # Anyone wants to do a port?
12639         ;;
12640       irix5* | irix6* | nonstopux*)
12641         case $cc_basename in
12642           CC*)
12643             lt_prog_compiler_wl_CXX='-Wl,'
12644             lt_prog_compiler_static_CXX='-non_shared'
12645             # CC pic flag -KPIC is the default.
12646             ;;
12647           *)
12648             ;;
12649         esac
12650         ;;
12651       linux* | k*bsd*-gnu)
12652         case $cc_basename in
12653           KCC*)
12654             # KAI C++ Compiler
12655             lt_prog_compiler_wl_CXX='--backend -Wl,'
12656             lt_prog_compiler_pic_CXX='-fPIC'
12657             ;;
12658           icpc* | ecpc*)
12659             # Intel C++
12660             lt_prog_compiler_wl_CXX='-Wl,'
12661             lt_prog_compiler_pic_CXX='-KPIC'
12662             lt_prog_compiler_static_CXX='-static'
12663             ;;
12664           pgCC* | pgcpp*)
12665             # Portland Group C++ compiler.
12666             lt_prog_compiler_wl_CXX='-Wl,'
12667             lt_prog_compiler_pic_CXX='-fpic'
12668             lt_prog_compiler_static_CXX='-Bstatic'
12669             ;;
12670           cxx*)
12671             # Compaq C++
12672             # Make sure the PIC flag is empty.  It appears that all Alpha
12673             # Linux and Compaq Tru64 Unix objects are PIC.
12674             lt_prog_compiler_pic_CXX=
12675             lt_prog_compiler_static_CXX='-non_shared'
12676             ;;
12677           *)
12678             case `$CC -V 2>&1 | sed 5q` in
12679             *Sun\ C*)
12680               # Sun C++ 5.9
12681               lt_prog_compiler_pic_CXX='-KPIC'
12682               lt_prog_compiler_static_CXX='-Bstatic'
12683               lt_prog_compiler_wl_CXX='-Qoption ld '
12684               ;;
12685             esac
12686             ;;
12687         esac
12688         ;;
12689       lynxos*)
12690         ;;
12691       m88k*)
12692         ;;
12693       mvs*)
12694         case $cc_basename in
12695           cxx*)
12696             lt_prog_compiler_pic_CXX='-W c,exportall'
12697             ;;
12698           *)
12699             ;;
12700         esac
12701         ;;
12702       netbsd* | netbsdelf*-gnu)
12703         ;;
12704       osf3* | osf4* | osf5*)
12705         case $cc_basename in
12706           KCC*)
12707             lt_prog_compiler_wl_CXX='--backend -Wl,'
12708             ;;
12709           RCC*)
12710             # Rational C++ 2.4.1
12711             lt_prog_compiler_pic_CXX='-pic'
12712             ;;
12713           cxx*)
12714             # Digital/Compaq C++
12715             lt_prog_compiler_wl_CXX='-Wl,'
12716             # Make sure the PIC flag is empty.  It appears that all Alpha
12717             # Linux and Compaq Tru64 Unix objects are PIC.
12718             lt_prog_compiler_pic_CXX=
12719             lt_prog_compiler_static_CXX='-non_shared'
12720             ;;
12721           *)
12722             ;;
12723         esac
12724         ;;
12725       psos*)
12726         ;;
12727       solaris*)
12728         case $cc_basename in
12729           CC*)
12730             # Sun C++ 4.2, 5.x and Centerline C++
12731             lt_prog_compiler_pic_CXX='-KPIC'
12732             lt_prog_compiler_static_CXX='-Bstatic'
12733             lt_prog_compiler_wl_CXX='-Qoption ld '
12734             ;;
12735           gcx*)
12736             # Green Hills C++ Compiler
12737             lt_prog_compiler_pic_CXX='-PIC'
12738             ;;
12739           *)
12740             ;;
12741         esac
12742         ;;
12743       sunos4*)
12744         case $cc_basename in
12745           CC*)
12746             # Sun C++ 4.x
12747             lt_prog_compiler_pic_CXX='-pic'
12748             lt_prog_compiler_static_CXX='-Bstatic'
12749             ;;
12750           lcc*)
12751             # Lucid
12752             lt_prog_compiler_pic_CXX='-pic'
12753             ;;
12754           *)
12755             ;;
12756         esac
12757         ;;
12758       tandem*)
12759         case $cc_basename in
12760           NCC*)
12761             # NonStop-UX NCC 3.20
12762             lt_prog_compiler_pic_CXX='-KPIC'
12763             ;;
12764           *)
12765             ;;
12766         esac
12767         ;;
12768       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12769         case $cc_basename in
12770           CC*)
12771             lt_prog_compiler_wl_CXX='-Wl,'
12772             lt_prog_compiler_pic_CXX='-KPIC'
12773             lt_prog_compiler_static_CXX='-Bstatic'
12774             ;;
12775         esac
12776         ;;
12777       vxworks*)
12778         ;;
12779       *)
12780         lt_prog_compiler_can_build_shared_CXX=no
12781         ;;
12782     esac
12783   fi
12784
12785 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12786 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12787
12788 #
12789 # Check to make sure the PIC flag actually works.
12790 #
12791 if test -n "$lt_prog_compiler_pic_CXX"; then
12792
12793 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12794 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12795 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12796   echo $ECHO_N "(cached) $ECHO_C" >&6
12797 else
12798   lt_cv_prog_compiler_pic_works_CXX=no
12799   ac_outfile=conftest.$ac_objext
12800    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12801    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12802    # Insert the option either (1) after the last *FLAGS variable, or
12803    # (2) before a word containing "conftest.", or (3) at the end.
12804    # Note that $ac_compile itself does not contain backslashes and begins
12805    # with a dollar sign (not a hyphen), so the echo should work correctly.
12806    # The option is referenced via a variable to avoid confusing sed.
12807    lt_compile=`echo "$ac_compile" | $SED \
12808    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12809    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12810    -e 's:$: $lt_compiler_flag:'`
12811    (eval echo "\"\$as_me:12811: $lt_compile\"" >&5)
12812    (eval "$lt_compile" 2>conftest.err)
12813    ac_status=$?
12814    cat conftest.err >&5
12815    echo "$as_me:12815: \$? = $ac_status" >&5
12816    if (exit $ac_status) && test -s "$ac_outfile"; then
12817      # The compiler can only warn and ignore the option if not recognized
12818      # So say no if there are warnings other than the usual output.
12819      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12820      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12821      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12822        lt_cv_prog_compiler_pic_works_CXX=yes
12823      fi
12824    fi
12825    $rm conftest*
12826
12827 fi
12828 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12829 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12830
12831 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12832     case $lt_prog_compiler_pic_CXX in
12833      "" | " "*) ;;
12834      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12835      esac
12836 else
12837     lt_prog_compiler_pic_CXX=
12838      lt_prog_compiler_can_build_shared_CXX=no
12839 fi
12840
12841 fi
12842 case $host_os in
12843   # For platforms which do not support PIC, -DPIC is meaningless:
12844   *djgpp*)
12845     lt_prog_compiler_pic_CXX=
12846     ;;
12847   *)
12848     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12849     ;;
12850 esac
12851
12852 #
12853 # Check to make sure the static flag actually works.
12854 #
12855 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12856 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12857 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12858 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12859   echo $ECHO_N "(cached) $ECHO_C" >&6
12860 else
12861   lt_cv_prog_compiler_static_works_CXX=no
12862    save_LDFLAGS="$LDFLAGS"
12863    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12864    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12865    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12866      # The linker can only warn and ignore the option if not recognized
12867      # So say no if there are warnings
12868      if test -s conftest.err; then
12869        # Append any errors to the config.log.
12870        cat conftest.err 1>&5
12871        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12872        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12873        if diff conftest.exp conftest.er2 >/dev/null; then
12874          lt_cv_prog_compiler_static_works_CXX=yes
12875        fi
12876      else
12877        lt_cv_prog_compiler_static_works_CXX=yes
12878      fi
12879    fi
12880    $rm -r conftest*
12881    LDFLAGS="$save_LDFLAGS"
12882
12883 fi
12884 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12885 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12886
12887 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12888     :
12889 else
12890     lt_prog_compiler_static_CXX=
12891 fi
12892
12893
12894 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12895 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12896 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12897   echo $ECHO_N "(cached) $ECHO_C" >&6
12898 else
12899   lt_cv_prog_compiler_c_o_CXX=no
12900    $rm -r conftest 2>/dev/null
12901    mkdir conftest
12902    cd conftest
12903    mkdir out
12904    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12905
12906    lt_compiler_flag="-o out/conftest2.$ac_objext"
12907    # Insert the option either (1) after the last *FLAGS variable, or
12908    # (2) before a word containing "conftest.", or (3) at the end.
12909    # Note that $ac_compile itself does not contain backslashes and begins
12910    # with a dollar sign (not a hyphen), so the echo should work correctly.
12911    lt_compile=`echo "$ac_compile" | $SED \
12912    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12913    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12914    -e 's:$: $lt_compiler_flag:'`
12915    (eval echo "\"\$as_me:12915: $lt_compile\"" >&5)
12916    (eval "$lt_compile" 2>out/conftest.err)
12917    ac_status=$?
12918    cat out/conftest.err >&5
12919    echo "$as_me:12919: \$? = $ac_status" >&5
12920    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12921    then
12922      # The compiler can only warn and ignore the option if not recognized
12923      # So say no if there are warnings
12924      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12925      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12926      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12927        lt_cv_prog_compiler_c_o_CXX=yes
12928      fi
12929    fi
12930    chmod u+w . 2>&5
12931    $rm conftest*
12932    # SGI C++ compiler will create directory out/ii_files/ for
12933    # template instantiation
12934    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12935    $rm out/* && rmdir out
12936    cd ..
12937    rmdir conftest
12938    $rm conftest*
12939
12940 fi
12941 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12942 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12943
12944
12945 hard_links="nottested"
12946 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12947   # do not overwrite the value of need_locks provided by the user
12948   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12949 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12950   hard_links=yes
12951   $rm conftest*
12952   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12953   touch conftest.a
12954   ln conftest.a conftest.b 2>&5 || hard_links=no
12955   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12956   { echo "$as_me:$LINENO: result: $hard_links" >&5
12957 echo "${ECHO_T}$hard_links" >&6; }
12958   if test "$hard_links" = no; then
12959     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12960 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12961     need_locks=warn
12962   fi
12963 else
12964   need_locks=no
12965 fi
12966
12967 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12968 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12969
12970   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12971   case $host_os in
12972   aix[4-9]*)
12973     # If we're using GNU nm, then we don't want the "-C" option.
12974     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12975     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12976       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'
12977     else
12978       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'
12979     fi
12980     ;;
12981   pw32*)
12982     export_symbols_cmds_CXX="$ltdll_cmds"
12983   ;;
12984   cygwin* | mingw*)
12985     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'
12986   ;;
12987   linux* | k*bsd*-gnu)
12988     link_all_deplibs_CXX=no
12989   ;;
12990   *)
12991     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12992   ;;
12993   esac
12994   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12995
12996 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12997 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12998 test "$ld_shlibs_CXX" = no && can_build_shared=no
12999
13000 #
13001 # Do we need to explicitly link libc?
13002 #
13003 case "x$archive_cmds_need_lc_CXX" in
13004 x|xyes)
13005   # Assume -lc should be added
13006   archive_cmds_need_lc_CXX=yes
13007
13008   if test "$enable_shared" = yes && test "$GCC" = yes; then
13009     case $archive_cmds_CXX in
13010     *'~'*)
13011       # FIXME: we may have to deal with multi-command sequences.
13012       ;;
13013     '$CC '*)
13014       # Test whether the compiler implicitly links with -lc since on some
13015       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13016       # to ld, don't add -lc before -lgcc.
13017       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13018 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13019       $rm conftest*
13020       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13021
13022       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13023   (eval $ac_compile) 2>&5
13024   ac_status=$?
13025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026   (exit $ac_status); } 2>conftest.err; then
13027         soname=conftest
13028         lib=conftest
13029         libobjs=conftest.$ac_objext
13030         deplibs=
13031         wl=$lt_prog_compiler_wl_CXX
13032         pic_flag=$lt_prog_compiler_pic_CXX
13033         compiler_flags=-v
13034         linker_flags=-v
13035         verstring=
13036         output_objdir=.
13037         libname=conftest
13038         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13039         allow_undefined_flag_CXX=
13040         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13041   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13042   ac_status=$?
13043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044   (exit $ac_status); }
13045         then
13046           archive_cmds_need_lc_CXX=no
13047         else
13048           archive_cmds_need_lc_CXX=yes
13049         fi
13050         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13051       else
13052         cat conftest.err 1>&5
13053       fi
13054       $rm conftest*
13055       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13056 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13057       ;;
13058     esac
13059   fi
13060   ;;
13061 esac
13062
13063 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13064 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13065 library_names_spec=
13066 libname_spec='lib$name'
13067 soname_spec=
13068 shrext_cmds=".so"
13069 postinstall_cmds=
13070 postuninstall_cmds=
13071 finish_cmds=
13072 finish_eval=
13073 shlibpath_var=
13074 shlibpath_overrides_runpath=unknown
13075 version_type=none
13076 dynamic_linker="$host_os ld.so"
13077 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13078
13079 need_lib_prefix=unknown
13080 hardcode_into_libs=no
13081
13082 # when you set need_version to no, make sure it does not cause -set_version
13083 # flags to be left without arguments
13084 need_version=unknown
13085
13086 case $host_os in
13087 aix3*)
13088   version_type=linux
13089   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13090   shlibpath_var=LIBPATH
13091
13092   # AIX 3 has no versioning support, so we append a major version to the name.
13093   soname_spec='${libname}${release}${shared_ext}$major'
13094   ;;
13095
13096 aix[4-9]*)
13097   version_type=linux
13098   need_lib_prefix=no
13099   need_version=no
13100   hardcode_into_libs=yes
13101   if test "$host_cpu" = ia64; then
13102     # AIX 5 supports IA64
13103     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13104     shlibpath_var=LD_LIBRARY_PATH
13105   else
13106     # With GCC up to 2.95.x, collect2 would create an import file
13107     # for dependence libraries.  The import file would start with
13108     # the line `#! .'.  This would cause the generated library to
13109     # depend on `.', always an invalid library.  This was fixed in
13110     # development snapshots of GCC prior to 3.0.
13111     case $host_os in
13112       aix4 | aix4.[01] | aix4.[01].*)
13113       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13114            echo ' yes '
13115            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13116         :
13117       else
13118         can_build_shared=no
13119       fi
13120       ;;
13121     esac
13122     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13123     # soname into executable. Probably we can add versioning support to
13124     # collect2, so additional links can be useful in future.
13125     if test "$aix_use_runtimelinking" = yes; then
13126       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13127       # instead of lib<name>.a to let people know that these are not
13128       # typical AIX shared libraries.
13129       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13130     else
13131       # We preserve .a as extension for shared libraries through AIX4.2
13132       # and later when we are not doing run time linking.
13133       library_names_spec='${libname}${release}.a $libname.a'
13134       soname_spec='${libname}${release}${shared_ext}$major'
13135     fi
13136     shlibpath_var=LIBPATH
13137   fi
13138   ;;
13139
13140 amigaos*)
13141   library_names_spec='$libname.ixlibrary $libname.a'
13142   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13143   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'
13144   ;;
13145
13146 beos*)
13147   library_names_spec='${libname}${shared_ext}'
13148   dynamic_linker="$host_os ld.so"
13149   shlibpath_var=LIBRARY_PATH
13150   ;;
13151
13152 bsdi[45]*)
13153   version_type=linux
13154   need_version=no
13155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13156   soname_spec='${libname}${release}${shared_ext}$major'
13157   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13158   shlibpath_var=LD_LIBRARY_PATH
13159   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13160   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13161   # the default ld.so.conf also contains /usr/contrib/lib and
13162   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13163   # libtool to hard-code these into programs
13164   ;;
13165
13166 cygwin* | mingw* | pw32*)
13167   version_type=windows
13168   shrext_cmds=".dll"
13169   need_version=no
13170   need_lib_prefix=no
13171
13172   case $GCC,$host_os in
13173   yes,cygwin* | yes,mingw* | yes,pw32*)
13174     library_names_spec='$libname.dll.a'
13175     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13176     postinstall_cmds='base_file=`basename \${file}`~
13177       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13178       dldir=$destdir/`dirname \$dlpath`~
13179       test -d \$dldir || mkdir -p \$dldir~
13180       $install_prog $dir/$dlname \$dldir/$dlname~
13181       chmod a+x \$dldir/$dlname'
13182     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13183       dlpath=$dir/\$dldll~
13184        $rm \$dlpath'
13185     shlibpath_overrides_runpath=yes
13186
13187     case $host_os in
13188     cygwin*)
13189       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13190       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13191       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13192       ;;
13193     mingw*)
13194       # MinGW DLLs use traditional 'lib' prefix
13195       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13196       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13197       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13198         # It is most probably a Windows format PATH printed by
13199         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13200         # path with ; separators, and with drive letters. We can handle the
13201         # drive letters (cygwin fileutils understands them), so leave them,
13202         # especially as we might pass files found there to a mingw objdump,
13203         # which wouldn't understand a cygwinified path. Ahh.
13204         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13205       else
13206         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13207       fi
13208       ;;
13209     pw32*)
13210       # pw32 DLLs use 'pw' prefix rather than 'lib'
13211       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13212       ;;
13213     esac
13214     ;;
13215
13216   *)
13217     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13218     ;;
13219   esac
13220   dynamic_linker='Win32 ld.exe'
13221   # FIXME: first we should search . and the directory the executable is in
13222   shlibpath_var=PATH
13223   ;;
13224
13225 darwin* | rhapsody*)
13226   dynamic_linker="$host_os dyld"
13227   version_type=darwin
13228   need_lib_prefix=no
13229   need_version=no
13230   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13231   soname_spec='${libname}${release}${major}$shared_ext'
13232   shlibpath_overrides_runpath=yes
13233   shlibpath_var=DYLD_LIBRARY_PATH
13234   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13235
13236   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13237   ;;
13238
13239 dgux*)
13240   version_type=linux
13241   need_lib_prefix=no
13242   need_version=no
13243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13244   soname_spec='${libname}${release}${shared_ext}$major'
13245   shlibpath_var=LD_LIBRARY_PATH
13246   ;;
13247
13248 freebsd1*)
13249   dynamic_linker=no
13250   ;;
13251
13252 freebsd* | dragonfly*)
13253   # DragonFly does not have aout.  When/if they implement a new
13254   # versioning mechanism, adjust this.
13255   if test -x /usr/bin/objformat; then
13256     objformat=`/usr/bin/objformat`
13257   else
13258     case $host_os in
13259     freebsd[123]*) objformat=aout ;;
13260     *) objformat=elf ;;
13261     esac
13262   fi
13263   version_type=freebsd-$objformat
13264   case $version_type in
13265     freebsd-elf*)
13266       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13267       need_version=no
13268       need_lib_prefix=no
13269       ;;
13270     freebsd-*)
13271       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13272       need_version=yes
13273       ;;
13274   esac
13275   shlibpath_var=LD_LIBRARY_PATH
13276   case $host_os in
13277   freebsd2*)
13278     shlibpath_overrides_runpath=yes
13279     ;;
13280   freebsd3.[01]* | freebsdelf3.[01]*)
13281     shlibpath_overrides_runpath=yes
13282     hardcode_into_libs=yes
13283     ;;
13284   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13285   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13286     shlibpath_overrides_runpath=no
13287     hardcode_into_libs=yes
13288     ;;
13289   *) # from 4.6 on, and DragonFly
13290     shlibpath_overrides_runpath=yes
13291     hardcode_into_libs=yes
13292     ;;
13293   esac
13294   ;;
13295
13296 gnu*)
13297   version_type=linux
13298   need_lib_prefix=no
13299   need_version=no
13300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13301   soname_spec='${libname}${release}${shared_ext}$major'
13302   shlibpath_var=LD_LIBRARY_PATH
13303   hardcode_into_libs=yes
13304   ;;
13305
13306 hpux9* | hpux10* | hpux11*)
13307   # Give a soname corresponding to the major version so that dld.sl refuses to
13308   # link against other versions.
13309   version_type=sunos
13310   need_lib_prefix=no
13311   need_version=no
13312   case $host_cpu in
13313   ia64*)
13314     shrext_cmds='.so'
13315     hardcode_into_libs=yes
13316     dynamic_linker="$host_os dld.so"
13317     shlibpath_var=LD_LIBRARY_PATH
13318     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13319     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13320     soname_spec='${libname}${release}${shared_ext}$major'
13321     if test "X$HPUX_IA64_MODE" = X32; then
13322       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13323     else
13324       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13325     fi
13326     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13327     ;;
13328    hppa*64*)
13329      shrext_cmds='.sl'
13330      hardcode_into_libs=yes
13331      dynamic_linker="$host_os dld.sl"
13332      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13333      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13334      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13335      soname_spec='${libname}${release}${shared_ext}$major'
13336      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13337      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13338      ;;
13339    *)
13340     shrext_cmds='.sl'
13341     dynamic_linker="$host_os dld.sl"
13342     shlibpath_var=SHLIB_PATH
13343     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13344     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13345     soname_spec='${libname}${release}${shared_ext}$major'
13346     ;;
13347   esac
13348   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13349   postinstall_cmds='chmod 555 $lib'
13350   ;;
13351
13352 interix[3-9]*)
13353   version_type=linux
13354   need_lib_prefix=no
13355   need_version=no
13356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13357   soname_spec='${libname}${release}${shared_ext}$major'
13358   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13359   shlibpath_var=LD_LIBRARY_PATH
13360   shlibpath_overrides_runpath=no
13361   hardcode_into_libs=yes
13362   ;;
13363
13364 irix5* | irix6* | nonstopux*)
13365   case $host_os in
13366     nonstopux*) version_type=nonstopux ;;
13367     *)
13368         if test "$lt_cv_prog_gnu_ld" = yes; then
13369                 version_type=linux
13370         else
13371                 version_type=irix
13372         fi ;;
13373   esac
13374   need_lib_prefix=no
13375   need_version=no
13376   soname_spec='${libname}${release}${shared_ext}$major'
13377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13378   case $host_os in
13379   irix5* | nonstopux*)
13380     libsuff= shlibsuff=
13381     ;;
13382   *)
13383     case $LD in # libtool.m4 will add one of these switches to LD
13384     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13385       libsuff= shlibsuff= libmagic=32-bit;;
13386     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13387       libsuff=32 shlibsuff=N32 libmagic=N32;;
13388     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13389       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13390     *) libsuff= shlibsuff= libmagic=never-match;;
13391     esac
13392     ;;
13393   esac
13394   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13395   shlibpath_overrides_runpath=no
13396   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13397   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13398   hardcode_into_libs=yes
13399   ;;
13400
13401 # No shared lib support for Linux oldld, aout, or coff.
13402 linux*oldld* | linux*aout* | linux*coff*)
13403   dynamic_linker=no
13404   ;;
13405
13406 # This must be Linux ELF.
13407 linux* | k*bsd*-gnu)
13408   version_type=linux
13409   need_lib_prefix=no
13410   need_version=no
13411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13412   soname_spec='${libname}${release}${shared_ext}$major'
13413   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13414   shlibpath_var=LD_LIBRARY_PATH
13415   shlibpath_overrides_runpath=no
13416   # This implies no fast_install, which is unacceptable.
13417   # Some rework will be needed to allow for fast_install
13418   # before this can be enabled.
13419   hardcode_into_libs=yes
13420
13421   # Append ld.so.conf contents to the search path
13422   if test -f /etc/ld.so.conf; then
13423     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13424     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13425   fi
13426
13427   # We used to test for /lib/ld.so.1 and disable shared libraries on
13428   # powerpc, because MkLinux only supported shared libraries with the
13429   # GNU dynamic linker.  Since this was broken with cross compilers,
13430   # most powerpc-linux boxes support dynamic linking these days and
13431   # people can always --disable-shared, the test was removed, and we
13432   # assume the GNU/Linux dynamic linker is in use.
13433   dynamic_linker='GNU/Linux ld.so'
13434   ;;
13435
13436 netbsdelf*-gnu)
13437   version_type=linux
13438   need_lib_prefix=no
13439   need_version=no
13440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13441   soname_spec='${libname}${release}${shared_ext}$major'
13442   shlibpath_var=LD_LIBRARY_PATH
13443   shlibpath_overrides_runpath=no
13444   hardcode_into_libs=yes
13445   dynamic_linker='NetBSD ld.elf_so'
13446   ;;
13447
13448 netbsd*)
13449   version_type=sunos
13450   need_lib_prefix=no
13451   need_version=no
13452   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13453     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13454     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13455     dynamic_linker='NetBSD (a.out) ld.so'
13456   else
13457     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13458     soname_spec='${libname}${release}${shared_ext}$major'
13459     dynamic_linker='NetBSD ld.elf_so'
13460   fi
13461   shlibpath_var=LD_LIBRARY_PATH
13462   shlibpath_overrides_runpath=yes
13463   hardcode_into_libs=yes
13464   ;;
13465
13466 newsos6)
13467   version_type=linux
13468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13469   shlibpath_var=LD_LIBRARY_PATH
13470   shlibpath_overrides_runpath=yes
13471   ;;
13472
13473 nto-qnx*)
13474   version_type=linux
13475   need_lib_prefix=no
13476   need_version=no
13477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13478   soname_spec='${libname}${release}${shared_ext}$major'
13479   shlibpath_var=LD_LIBRARY_PATH
13480   shlibpath_overrides_runpath=yes
13481   ;;
13482
13483 openbsd*)
13484   version_type=sunos
13485   sys_lib_dlsearch_path_spec="/usr/lib"
13486   need_lib_prefix=no
13487   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13488   case $host_os in
13489     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13490     *)                         need_version=no  ;;
13491   esac
13492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13493   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13494   shlibpath_var=LD_LIBRARY_PATH
13495   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13496     case $host_os in
13497       openbsd2.[89] | openbsd2.[89].*)
13498         shlibpath_overrides_runpath=no
13499         ;;
13500       *)
13501         shlibpath_overrides_runpath=yes
13502         ;;
13503       esac
13504   else
13505     shlibpath_overrides_runpath=yes
13506   fi
13507   ;;
13508
13509 os2*)
13510   libname_spec='$name'
13511   shrext_cmds=".dll"
13512   need_lib_prefix=no
13513   library_names_spec='$libname${shared_ext} $libname.a'
13514   dynamic_linker='OS/2 ld.exe'
13515   shlibpath_var=LIBPATH
13516   ;;
13517
13518 osf3* | osf4* | osf5*)
13519   version_type=osf
13520   need_lib_prefix=no
13521   need_version=no
13522   soname_spec='${libname}${release}${shared_ext}$major'
13523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13524   shlibpath_var=LD_LIBRARY_PATH
13525   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13526   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13527   ;;
13528
13529 rdos*)
13530   dynamic_linker=no
13531   ;;
13532
13533 solaris*)
13534   version_type=linux
13535   need_lib_prefix=no
13536   need_version=no
13537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13538   soname_spec='${libname}${release}${shared_ext}$major'
13539   shlibpath_var=LD_LIBRARY_PATH
13540   shlibpath_overrides_runpath=yes
13541   hardcode_into_libs=yes
13542   # ldd complains unless libraries are executable
13543   postinstall_cmds='chmod +x $lib'
13544   ;;
13545
13546 sunos4*)
13547   version_type=sunos
13548   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13549   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13550   shlibpath_var=LD_LIBRARY_PATH
13551   shlibpath_overrides_runpath=yes
13552   if test "$with_gnu_ld" = yes; then
13553     need_lib_prefix=no
13554   fi
13555   need_version=yes
13556   ;;
13557
13558 sysv4 | sysv4.3*)
13559   version_type=linux
13560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13561   soname_spec='${libname}${release}${shared_ext}$major'
13562   shlibpath_var=LD_LIBRARY_PATH
13563   case $host_vendor in
13564     sni)
13565       shlibpath_overrides_runpath=no
13566       need_lib_prefix=no
13567       export_dynamic_flag_spec='${wl}-Blargedynsym'
13568       runpath_var=LD_RUN_PATH
13569       ;;
13570     siemens)
13571       need_lib_prefix=no
13572       ;;
13573     motorola)
13574       need_lib_prefix=no
13575       need_version=no
13576       shlibpath_overrides_runpath=no
13577       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13578       ;;
13579   esac
13580   ;;
13581
13582 sysv4*MP*)
13583   if test -d /usr/nec ;then
13584     version_type=linux
13585     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13586     soname_spec='$libname${shared_ext}.$major'
13587     shlibpath_var=LD_LIBRARY_PATH
13588   fi
13589   ;;
13590
13591 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13592   version_type=freebsd-elf
13593   need_lib_prefix=no
13594   need_version=no
13595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13596   soname_spec='${libname}${release}${shared_ext}$major'
13597   shlibpath_var=LD_LIBRARY_PATH
13598   hardcode_into_libs=yes
13599   if test "$with_gnu_ld" = yes; then
13600     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13601     shlibpath_overrides_runpath=no
13602   else
13603     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13604     shlibpath_overrides_runpath=yes
13605     case $host_os in
13606       sco3.2v5*)
13607         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13608         ;;
13609     esac
13610   fi
13611   sys_lib_dlsearch_path_spec='/usr/lib'
13612   ;;
13613
13614 uts4*)
13615   version_type=linux
13616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13617   soname_spec='${libname}${release}${shared_ext}$major'
13618   shlibpath_var=LD_LIBRARY_PATH
13619   ;;
13620
13621 *)
13622   dynamic_linker=no
13623   ;;
13624 esac
13625 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13626 echo "${ECHO_T}$dynamic_linker" >&6; }
13627 test "$dynamic_linker" = no && can_build_shared=no
13628
13629 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13630   echo $ECHO_N "(cached) $ECHO_C" >&6
13631 else
13632   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13633 fi
13634
13635 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13636 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13637   echo $ECHO_N "(cached) $ECHO_C" >&6
13638 else
13639   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13640 fi
13641
13642 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13643
13644 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13645 if test "$GCC" = yes; then
13646   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13647 fi
13648
13649 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13650 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13651 hardcode_action_CXX=
13652 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13653    test -n "$runpath_var_CXX" || \
13654    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13655
13656   # We can hardcode non-existant directories.
13657   if test "$hardcode_direct_CXX" != no &&
13658      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13659      # have to relink, otherwise we might link with an installed library
13660      # when we should be linking with a yet-to-be-installed one
13661      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13662      test "$hardcode_minus_L_CXX" != no; then
13663     # Linking always hardcodes the temporary library directory.
13664     hardcode_action_CXX=relink
13665   else
13666     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13667     hardcode_action_CXX=immediate
13668   fi
13669 else
13670   # We cannot hardcode anything, or else we can only hardcode existing
13671   # directories.
13672   hardcode_action_CXX=unsupported
13673 fi
13674 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13675 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13676
13677 if test "$hardcode_action_CXX" = relink; then
13678   # Fast installation is not supported
13679   enable_fast_install=no
13680 elif test "$shlibpath_overrides_runpath" = yes ||
13681      test "$enable_shared" = no; then
13682   # Fast installation is not necessary
13683   enable_fast_install=needless
13684 fi
13685
13686
13687 # The else clause should only fire when bootstrapping the
13688 # libtool distribution, otherwise you forgot to ship ltmain.sh
13689 # with your package, and you will get complaints that there are
13690 # no rules to generate ltmain.sh.
13691 if test -f "$ltmain"; then
13692   # See if we are running on zsh, and set the options which allow our commands through
13693   # without removal of \ escapes.
13694   if test -n "${ZSH_VERSION+set}" ; then
13695     setopt NO_GLOB_SUBST
13696   fi
13697   # Now quote all the things that may contain metacharacters while being
13698   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13699   # variables and quote the copies for generation of the libtool script.
13700   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13701     SED SHELL STRIP \
13702     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13703     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13704     deplibs_check_method reload_flag reload_cmds need_locks \
13705     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13706     lt_cv_sys_global_symbol_to_c_name_address \
13707     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13708     old_postinstall_cmds old_postuninstall_cmds \
13709     compiler_CXX \
13710     CC_CXX \
13711     LD_CXX \
13712     lt_prog_compiler_wl_CXX \
13713     lt_prog_compiler_pic_CXX \
13714     lt_prog_compiler_static_CXX \
13715     lt_prog_compiler_no_builtin_flag_CXX \
13716     export_dynamic_flag_spec_CXX \
13717     thread_safe_flag_spec_CXX \
13718     whole_archive_flag_spec_CXX \
13719     enable_shared_with_static_runtimes_CXX \
13720     old_archive_cmds_CXX \
13721     old_archive_from_new_cmds_CXX \
13722     predep_objects_CXX \
13723     postdep_objects_CXX \
13724     predeps_CXX \
13725     postdeps_CXX \
13726     compiler_lib_search_path_CXX \
13727     compiler_lib_search_dirs_CXX \
13728     archive_cmds_CXX \
13729     archive_expsym_cmds_CXX \
13730     postinstall_cmds_CXX \
13731     postuninstall_cmds_CXX \
13732     old_archive_from_expsyms_cmds_CXX \
13733     allow_undefined_flag_CXX \
13734     no_undefined_flag_CXX \
13735     export_symbols_cmds_CXX \
13736     hardcode_libdir_flag_spec_CXX \
13737     hardcode_libdir_flag_spec_ld_CXX \
13738     hardcode_libdir_separator_CXX \
13739     hardcode_automatic_CXX \
13740     module_cmds_CXX \
13741     module_expsym_cmds_CXX \
13742     lt_cv_prog_compiler_c_o_CXX \
13743     fix_srcfile_path_CXX \
13744     exclude_expsyms_CXX \
13745     include_expsyms_CXX; do
13746
13747     case $var in
13748     old_archive_cmds_CXX | \
13749     old_archive_from_new_cmds_CXX | \
13750     archive_cmds_CXX | \
13751     archive_expsym_cmds_CXX | \
13752     module_cmds_CXX | \
13753     module_expsym_cmds_CXX | \
13754     old_archive_from_expsyms_cmds_CXX | \
13755     export_symbols_cmds_CXX | \
13756     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13757     postinstall_cmds | postuninstall_cmds | \
13758     old_postinstall_cmds | old_postuninstall_cmds | \
13759     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13760       # Double-quote double-evaled strings.
13761       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13762       ;;
13763     *)
13764       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13765       ;;
13766     esac
13767   done
13768
13769   case $lt_echo in
13770   *'\$0 --fallback-echo"')
13771     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13772     ;;
13773   esac
13774
13775 cfgfile="$ofile"
13776
13777   cat <<__EOF__ >> "$cfgfile"
13778 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13779
13780 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13781
13782 # Shell to use when invoking shell scripts.
13783 SHELL=$lt_SHELL
13784
13785 # Whether or not to build shared libraries.
13786 build_libtool_libs=$enable_shared
13787
13788 # Whether or not to build static libraries.
13789 build_old_libs=$enable_static
13790
13791 # Whether or not to add -lc for building shared libraries.
13792 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13793
13794 # Whether or not to disallow shared libs when runtime libs are static
13795 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13796
13797 # Whether or not to optimize for fast installation.
13798 fast_install=$enable_fast_install
13799
13800 # The host system.
13801 host_alias=$host_alias
13802 host=$host
13803 host_os=$host_os
13804
13805 # The build system.
13806 build_alias=$build_alias
13807 build=$build
13808 build_os=$build_os
13809
13810 # An echo program that does not interpret backslashes.
13811 echo=$lt_echo
13812
13813 # The archiver.
13814 AR=$lt_AR
13815 AR_FLAGS=$lt_AR_FLAGS
13816
13817 # A C compiler.
13818 LTCC=$lt_LTCC
13819
13820 # LTCC compiler flags.
13821 LTCFLAGS=$lt_LTCFLAGS
13822
13823 # A language-specific compiler.
13824 CC=$lt_compiler_CXX
13825
13826 # Is the compiler the GNU C compiler?
13827 with_gcc=$GCC_CXX
13828
13829 # An ERE matcher.
13830 EGREP=$lt_EGREP
13831
13832 # The linker used to build libraries.
13833 LD=$lt_LD_CXX
13834
13835 # Whether we need hard or soft links.
13836 LN_S=$lt_LN_S
13837
13838 # A BSD-compatible nm program.
13839 NM=$lt_NM
13840
13841 # A symbol stripping program
13842 STRIP=$lt_STRIP
13843
13844 # Used to examine libraries when file_magic_cmd begins "file"
13845 MAGIC_CMD=$MAGIC_CMD
13846
13847 # Used on cygwin: DLL creation program.
13848 DLLTOOL="$DLLTOOL"
13849
13850 # Used on cygwin: object dumper.
13851 OBJDUMP="$OBJDUMP"
13852
13853 # Used on cygwin: assembler.
13854 AS="$AS"
13855
13856 # The name of the directory that contains temporary libtool files.
13857 objdir=$objdir
13858
13859 # How to create reloadable object files.
13860 reload_flag=$lt_reload_flag
13861 reload_cmds=$lt_reload_cmds
13862
13863 # How to pass a linker flag through the compiler.
13864 wl=$lt_lt_prog_compiler_wl_CXX
13865
13866 # Object file suffix (normally "o").
13867 objext="$ac_objext"
13868
13869 # Old archive suffix (normally "a").
13870 libext="$libext"
13871
13872 # Shared library suffix (normally ".so").
13873 shrext_cmds='$shrext_cmds'
13874
13875 # Executable file suffix (normally "").
13876 exeext="$exeext"
13877
13878 # Additional compiler flags for building library objects.
13879 pic_flag=$lt_lt_prog_compiler_pic_CXX
13880 pic_mode=$pic_mode
13881
13882 # What is the maximum length of a command?
13883 max_cmd_len=$lt_cv_sys_max_cmd_len
13884
13885 # Does compiler simultaneously support -c and -o options?
13886 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13887
13888 # Must we lock files when doing compilation?
13889 need_locks=$lt_need_locks
13890
13891 # Do we need the lib prefix for modules?
13892 need_lib_prefix=$need_lib_prefix
13893
13894 # Do we need a version for libraries?
13895 need_version=$need_version
13896
13897 # Whether dlopen is supported.
13898 dlopen_support=$enable_dlopen
13899
13900 # Whether dlopen of programs is supported.
13901 dlopen_self=$enable_dlopen_self
13902
13903 # Whether dlopen of statically linked programs is supported.
13904 dlopen_self_static=$enable_dlopen_self_static
13905
13906 # Compiler flag to prevent dynamic linking.
13907 link_static_flag=$lt_lt_prog_compiler_static_CXX
13908
13909 # Compiler flag to turn off builtin functions.
13910 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13911
13912 # Compiler flag to allow reflexive dlopens.
13913 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13914
13915 # Compiler flag to generate shared objects directly from archives.
13916 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13917
13918 # Compiler flag to generate thread-safe objects.
13919 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13920
13921 # Library versioning type.
13922 version_type=$version_type
13923
13924 # Format of library name prefix.
13925 libname_spec=$lt_libname_spec
13926
13927 # List of archive names.  First name is the real one, the rest are links.
13928 # The last name is the one that the linker finds with -lNAME.
13929 library_names_spec=$lt_library_names_spec
13930
13931 # The coded name of the library, if different from the real name.
13932 soname_spec=$lt_soname_spec
13933
13934 # Commands used to build and install an old-style archive.
13935 RANLIB=$lt_RANLIB
13936 old_archive_cmds=$lt_old_archive_cmds_CXX
13937 old_postinstall_cmds=$lt_old_postinstall_cmds
13938 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13939
13940 # Create an old-style archive from a shared archive.
13941 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13942
13943 # Create a temporary old-style archive to link instead of a shared archive.
13944 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13945
13946 # Commands used to build and install a shared archive.
13947 archive_cmds=$lt_archive_cmds_CXX
13948 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13949 postinstall_cmds=$lt_postinstall_cmds
13950 postuninstall_cmds=$lt_postuninstall_cmds
13951
13952 # Commands used to build a loadable module (assumed same as above if empty)
13953 module_cmds=$lt_module_cmds_CXX
13954 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13955
13956 # Commands to strip libraries.
13957 old_striplib=$lt_old_striplib
13958 striplib=$lt_striplib
13959
13960 # Dependencies to place before the objects being linked to create a
13961 # shared library.
13962 predep_objects=$lt_predep_objects_CXX
13963
13964 # Dependencies to place after the objects being linked to create a
13965 # shared library.
13966 postdep_objects=$lt_postdep_objects_CXX
13967
13968 # Dependencies to place before the objects being linked to create a
13969 # shared library.
13970 predeps=$lt_predeps_CXX
13971
13972 # Dependencies to place after the objects being linked to create a
13973 # shared library.
13974 postdeps=$lt_postdeps_CXX
13975
13976 # The directories searched by this compiler when creating a shared
13977 # library
13978 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13979
13980 # The library search path used internally by the compiler when linking
13981 # a shared library.
13982 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13983
13984 # Method to check whether dependent libraries are shared objects.
13985 deplibs_check_method=$lt_deplibs_check_method
13986
13987 # Command to use when deplibs_check_method == file_magic.
13988 file_magic_cmd=$lt_file_magic_cmd
13989
13990 # Flag that allows shared libraries with undefined symbols to be built.
13991 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13992
13993 # Flag that forces no undefined symbols.
13994 no_undefined_flag=$lt_no_undefined_flag_CXX
13995
13996 # Commands used to finish a libtool library installation in a directory.
13997 finish_cmds=$lt_finish_cmds
13998
13999 # Same as above, but a single script fragment to be evaled but not shown.
14000 finish_eval=$lt_finish_eval
14001
14002 # Take the output of nm and produce a listing of raw symbols and C names.
14003 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14004
14005 # Transform the output of nm in a proper C declaration
14006 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14007
14008 # Transform the output of nm in a C name address pair
14009 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14010
14011 # This is the shared library runtime path variable.
14012 runpath_var=$runpath_var
14013
14014 # This is the shared library path variable.
14015 shlibpath_var=$shlibpath_var
14016
14017 # Is shlibpath searched before the hard-coded library search path?
14018 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14019
14020 # How to hardcode a shared library path into an executable.
14021 hardcode_action=$hardcode_action_CXX
14022
14023 # Whether we should hardcode library paths into libraries.
14024 hardcode_into_libs=$hardcode_into_libs
14025
14026 # Flag to hardcode \$libdir into a binary during linking.
14027 # This must work even if \$libdir does not exist.
14028 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14029
14030 # If ld is used when linking, flag to hardcode \$libdir into
14031 # a binary during linking. This must work even if \$libdir does
14032 # not exist.
14033 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14034
14035 # Whether we need a single -rpath flag with a separated argument.
14036 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14037
14038 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14039 # resulting binary.
14040 hardcode_direct=$hardcode_direct_CXX
14041
14042 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14043 # resulting binary.
14044 hardcode_minus_L=$hardcode_minus_L_CXX
14045
14046 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14047 # the resulting binary.
14048 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14049
14050 # Set to yes if building a shared library automatically hardcodes DIR into the library
14051 # and all subsequent libraries and executables linked against it.
14052 hardcode_automatic=$hardcode_automatic_CXX
14053
14054 # Variables whose values should be saved in libtool wrapper scripts and
14055 # restored at relink time.
14056 variables_saved_for_relink="$variables_saved_for_relink"
14057
14058 # Whether libtool must link a program against all its dependency libraries.
14059 link_all_deplibs=$link_all_deplibs_CXX
14060
14061 # Compile-time system search path for libraries
14062 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14063
14064 # Run-time system search path for libraries
14065 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14066
14067 # Fix the shell variable \$srcfile for the compiler.
14068 fix_srcfile_path=$lt_fix_srcfile_path
14069
14070 # Set to yes if exported symbols are required.
14071 always_export_symbols=$always_export_symbols_CXX
14072
14073 # The commands to list exported symbols.
14074 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14075
14076 # The commands to extract the exported symbol list from a shared archive.
14077 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14078
14079 # Symbols that should not be listed in the preloaded symbols.
14080 exclude_expsyms=$lt_exclude_expsyms_CXX
14081
14082 # Symbols that must always be exported.
14083 include_expsyms=$lt_include_expsyms_CXX
14084
14085 # ### END LIBTOOL TAG CONFIG: $tagname
14086
14087 __EOF__
14088
14089
14090 else
14091   # If there is no Makefile yet, we rely on a make rule to execute
14092   # `config.status --recheck' to rerun these tests and create the
14093   # libtool script then.
14094   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14095   if test -f "$ltmain_in"; then
14096     test -f Makefile && make "$ltmain"
14097   fi
14098 fi
14099
14100
14101 ac_ext=c
14102 ac_cpp='$CPP $CPPFLAGS'
14103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14106
14107 CC=$lt_save_CC
14108 LDCXX=$LD
14109 LD=$lt_save_LD
14110 GCC=$lt_save_GCC
14111 with_gnu_ldcxx=$with_gnu_ld
14112 with_gnu_ld=$lt_save_with_gnu_ld
14113 lt_cv_path_LDCXX=$lt_cv_path_LD
14114 lt_cv_path_LD=$lt_save_path_LD
14115 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14116 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14117
14118         else
14119           tagname=""
14120         fi
14121         ;;
14122
14123       F77)
14124         if test -n "$F77" && test "X$F77" != "Xno"; then
14125
14126 ac_ext=f
14127 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14128 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14129 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14130
14131
14132 archive_cmds_need_lc_F77=no
14133 allow_undefined_flag_F77=
14134 always_export_symbols_F77=no
14135 archive_expsym_cmds_F77=
14136 export_dynamic_flag_spec_F77=
14137 hardcode_direct_F77=no
14138 hardcode_libdir_flag_spec_F77=
14139 hardcode_libdir_flag_spec_ld_F77=
14140 hardcode_libdir_separator_F77=
14141 hardcode_minus_L_F77=no
14142 hardcode_automatic_F77=no
14143 module_cmds_F77=
14144 module_expsym_cmds_F77=
14145 link_all_deplibs_F77=unknown
14146 old_archive_cmds_F77=$old_archive_cmds
14147 no_undefined_flag_F77=
14148 whole_archive_flag_spec_F77=
14149 enable_shared_with_static_runtimes_F77=no
14150
14151 # Source file extension for f77 test sources.
14152 ac_ext=f
14153
14154 # Object file extension for compiled f77 test sources.
14155 objext=o
14156 objext_F77=$objext
14157
14158 # Code to be used in simple compile tests
14159 lt_simple_compile_test_code="\
14160       subroutine t
14161       return
14162       end
14163 "
14164
14165 # Code to be used in simple link tests
14166 lt_simple_link_test_code="\
14167       program t
14168       end
14169 "
14170
14171 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14172
14173 # If no C compiler was specified, use CC.
14174 LTCC=${LTCC-"$CC"}
14175
14176 # If no C compiler flags were specified, use CFLAGS.
14177 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14178
14179 # Allow CC to be a program name with arguments.
14180 compiler=$CC
14181
14182
14183 # save warnings/boilerplate of simple test code
14184 ac_outfile=conftest.$ac_objext
14185 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14186 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14187 _lt_compiler_boilerplate=`cat conftest.err`
14188 $rm conftest*
14189
14190 ac_outfile=conftest.$ac_objext
14191 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14192 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14193 _lt_linker_boilerplate=`cat conftest.err`
14194 $rm -r conftest*
14195
14196
14197 # Allow CC to be a program name with arguments.
14198 lt_save_CC="$CC"
14199 CC=${F77-"f77"}
14200 compiler=$CC
14201 compiler_F77=$CC
14202 for cc_temp in $compiler""; do
14203   case $cc_temp in
14204     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14205     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14206     \-*) ;;
14207     *) break;;
14208   esac
14209 done
14210 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14211
14212
14213 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14214 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14215 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14216 echo "${ECHO_T}$can_build_shared" >&6; }
14217
14218 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14219 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14220 test "$can_build_shared" = "no" && enable_shared=no
14221
14222 # On AIX, shared libraries and static libraries use the same namespace, and
14223 # are all built from PIC.
14224 case $host_os in
14225 aix3*)
14226   test "$enable_shared" = yes && enable_static=no
14227   if test -n "$RANLIB"; then
14228     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14229     postinstall_cmds='$RANLIB $lib'
14230   fi
14231   ;;
14232 aix[4-9]*)
14233   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14234     test "$enable_shared" = yes && enable_static=no
14235   fi
14236   ;;
14237 esac
14238 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14239 echo "${ECHO_T}$enable_shared" >&6; }
14240
14241 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14242 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14243 # Make sure either enable_shared or enable_static is yes.
14244 test "$enable_shared" = yes || enable_static=yes
14245 { echo "$as_me:$LINENO: result: $enable_static" >&5
14246 echo "${ECHO_T}$enable_static" >&6; }
14247
14248 GCC_F77="$G77"
14249 LD_F77="$LD"
14250
14251 lt_prog_compiler_wl_F77=
14252 lt_prog_compiler_pic_F77=
14253 lt_prog_compiler_static_F77=
14254
14255 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14256 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14257
14258   if test "$GCC" = yes; then
14259     lt_prog_compiler_wl_F77='-Wl,'
14260     lt_prog_compiler_static_F77='-static'
14261
14262     case $host_os in
14263       aix*)
14264       # All AIX code is PIC.
14265       if test "$host_cpu" = ia64; then
14266         # AIX 5 now supports IA64 processor
14267         lt_prog_compiler_static_F77='-Bstatic'
14268       fi
14269       ;;
14270
14271     amigaos*)
14272       # FIXME: we need at least 68020 code to build shared libraries, but
14273       # adding the `-m68020' flag to GCC prevents building anything better,
14274       # like `-m68040'.
14275       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14276       ;;
14277
14278     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14279       # PIC is the default for these OSes.
14280       ;;
14281
14282     mingw* | cygwin* | pw32* | os2*)
14283       # This hack is so that the source file can tell whether it is being
14284       # built for inclusion in a dll (and should export symbols for example).
14285       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14286       # (--disable-auto-import) libraries
14287       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14288       ;;
14289
14290     darwin* | rhapsody*)
14291       # PIC is the default on this platform
14292       # Common symbols not allowed in MH_DYLIB files
14293       lt_prog_compiler_pic_F77='-fno-common'
14294       ;;
14295
14296     interix[3-9]*)
14297       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14298       # Instead, we relocate shared libraries at runtime.
14299       ;;
14300
14301     msdosdjgpp*)
14302       # Just because we use GCC doesn't mean we suddenly get shared libraries
14303       # on systems that don't support them.
14304       lt_prog_compiler_can_build_shared_F77=no
14305       enable_shared=no
14306       ;;
14307
14308     sysv4*MP*)
14309       if test -d /usr/nec; then
14310         lt_prog_compiler_pic_F77=-Kconform_pic
14311       fi
14312       ;;
14313
14314     hpux*)
14315       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14316       # not for PA HP-UX.
14317       case $host_cpu in
14318       hppa*64*|ia64*)
14319         # +Z the default
14320         ;;
14321       *)
14322         lt_prog_compiler_pic_F77='-fPIC'
14323         ;;
14324       esac
14325       ;;
14326
14327     *)
14328       lt_prog_compiler_pic_F77='-fPIC'
14329       ;;
14330     esac
14331   else
14332     # PORTME Check for flag to pass linker flags through the system compiler.
14333     case $host_os in
14334     aix*)
14335       lt_prog_compiler_wl_F77='-Wl,'
14336       if test "$host_cpu" = ia64; then
14337         # AIX 5 now supports IA64 processor
14338         lt_prog_compiler_static_F77='-Bstatic'
14339       else
14340         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14341       fi
14342       ;;
14343       darwin*)
14344         # PIC is the default on this platform
14345         # Common symbols not allowed in MH_DYLIB files
14346        case $cc_basename in
14347          xlc*)
14348          lt_prog_compiler_pic_F77='-qnocommon'
14349          lt_prog_compiler_wl_F77='-Wl,'
14350          ;;
14351        esac
14352        ;;
14353
14354     mingw* | cygwin* | pw32* | os2*)
14355       # This hack is so that the source file can tell whether it is being
14356       # built for inclusion in a dll (and should export symbols for example).
14357       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14358       ;;
14359
14360     hpux9* | hpux10* | hpux11*)
14361       lt_prog_compiler_wl_F77='-Wl,'
14362       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14363       # not for PA HP-UX.
14364       case $host_cpu in
14365       hppa*64*|ia64*)
14366         # +Z the default
14367         ;;
14368       *)
14369         lt_prog_compiler_pic_F77='+Z'
14370         ;;
14371       esac
14372       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14373       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14374       ;;
14375
14376     irix5* | irix6* | nonstopux*)
14377       lt_prog_compiler_wl_F77='-Wl,'
14378       # PIC (with -KPIC) is the default.
14379       lt_prog_compiler_static_F77='-non_shared'
14380       ;;
14381
14382     newsos6)
14383       lt_prog_compiler_pic_F77='-KPIC'
14384       lt_prog_compiler_static_F77='-Bstatic'
14385       ;;
14386
14387     linux* | k*bsd*-gnu)
14388       case $cc_basename in
14389       icc* | ecc*)
14390         lt_prog_compiler_wl_F77='-Wl,'
14391         lt_prog_compiler_pic_F77='-KPIC'
14392         lt_prog_compiler_static_F77='-static'
14393         ;;
14394       pgcc* | pgf77* | pgf90* | pgf95*)
14395         # Portland Group compilers (*not* the Pentium gcc compiler,
14396         # which looks to be a dead project)
14397         lt_prog_compiler_wl_F77='-Wl,'
14398         lt_prog_compiler_pic_F77='-fpic'
14399         lt_prog_compiler_static_F77='-Bstatic'
14400         ;;
14401       ccc*)
14402         lt_prog_compiler_wl_F77='-Wl,'
14403         # All Alpha code is PIC.
14404         lt_prog_compiler_static_F77='-non_shared'
14405         ;;
14406       *)
14407         case `$CC -V 2>&1 | sed 5q` in
14408         *Sun\ C*)
14409           # Sun C 5.9
14410           lt_prog_compiler_pic_F77='-KPIC'
14411           lt_prog_compiler_static_F77='-Bstatic'
14412           lt_prog_compiler_wl_F77='-Wl,'
14413           ;;
14414         *Sun\ F*)
14415           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14416           lt_prog_compiler_pic_F77='-KPIC'
14417           lt_prog_compiler_static_F77='-Bstatic'
14418           lt_prog_compiler_wl_F77=''
14419           ;;
14420         esac
14421         ;;
14422       esac
14423       ;;
14424
14425     osf3* | osf4* | osf5*)
14426       lt_prog_compiler_wl_F77='-Wl,'
14427       # All OSF/1 code is PIC.
14428       lt_prog_compiler_static_F77='-non_shared'
14429       ;;
14430
14431     rdos*)
14432       lt_prog_compiler_static_F77='-non_shared'
14433       ;;
14434
14435     solaris*)
14436       lt_prog_compiler_pic_F77='-KPIC'
14437       lt_prog_compiler_static_F77='-Bstatic'
14438       case $cc_basename in
14439       f77* | f90* | f95*)
14440         lt_prog_compiler_wl_F77='-Qoption ld ';;
14441       *)
14442         lt_prog_compiler_wl_F77='-Wl,';;
14443       esac
14444       ;;
14445
14446     sunos4*)
14447       lt_prog_compiler_wl_F77='-Qoption ld '
14448       lt_prog_compiler_pic_F77='-PIC'
14449       lt_prog_compiler_static_F77='-Bstatic'
14450       ;;
14451
14452     sysv4 | sysv4.2uw2* | sysv4.3*)
14453       lt_prog_compiler_wl_F77='-Wl,'
14454       lt_prog_compiler_pic_F77='-KPIC'
14455       lt_prog_compiler_static_F77='-Bstatic'
14456       ;;
14457
14458     sysv4*MP*)
14459       if test -d /usr/nec ;then
14460         lt_prog_compiler_pic_F77='-Kconform_pic'
14461         lt_prog_compiler_static_F77='-Bstatic'
14462       fi
14463       ;;
14464
14465     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14466       lt_prog_compiler_wl_F77='-Wl,'
14467       lt_prog_compiler_pic_F77='-KPIC'
14468       lt_prog_compiler_static_F77='-Bstatic'
14469       ;;
14470
14471     unicos*)
14472       lt_prog_compiler_wl_F77='-Wl,'
14473       lt_prog_compiler_can_build_shared_F77=no
14474       ;;
14475
14476     uts4*)
14477       lt_prog_compiler_pic_F77='-pic'
14478       lt_prog_compiler_static_F77='-Bstatic'
14479       ;;
14480
14481     *)
14482       lt_prog_compiler_can_build_shared_F77=no
14483       ;;
14484     esac
14485   fi
14486
14487 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14488 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14489
14490 #
14491 # Check to make sure the PIC flag actually works.
14492 #
14493 if test -n "$lt_prog_compiler_pic_F77"; then
14494
14495 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14496 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14497 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14498   echo $ECHO_N "(cached) $ECHO_C" >&6
14499 else
14500   lt_cv_prog_compiler_pic_works_F77=no
14501   ac_outfile=conftest.$ac_objext
14502    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14503    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14504    # Insert the option either (1) after the last *FLAGS variable, or
14505    # (2) before a word containing "conftest.", or (3) at the end.
14506    # Note that $ac_compile itself does not contain backslashes and begins
14507    # with a dollar sign (not a hyphen), so the echo should work correctly.
14508    # The option is referenced via a variable to avoid confusing sed.
14509    lt_compile=`echo "$ac_compile" | $SED \
14510    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14511    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14512    -e 's:$: $lt_compiler_flag:'`
14513    (eval echo "\"\$as_me:14513: $lt_compile\"" >&5)
14514    (eval "$lt_compile" 2>conftest.err)
14515    ac_status=$?
14516    cat conftest.err >&5
14517    echo "$as_me:14517: \$? = $ac_status" >&5
14518    if (exit $ac_status) && test -s "$ac_outfile"; then
14519      # The compiler can only warn and ignore the option if not recognized
14520      # So say no if there are warnings other than the usual output.
14521      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14522      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14523      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14524        lt_cv_prog_compiler_pic_works_F77=yes
14525      fi
14526    fi
14527    $rm conftest*
14528
14529 fi
14530 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14531 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14532
14533 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14534     case $lt_prog_compiler_pic_F77 in
14535      "" | " "*) ;;
14536      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14537      esac
14538 else
14539     lt_prog_compiler_pic_F77=
14540      lt_prog_compiler_can_build_shared_F77=no
14541 fi
14542
14543 fi
14544 case $host_os in
14545   # For platforms which do not support PIC, -DPIC is meaningless:
14546   *djgpp*)
14547     lt_prog_compiler_pic_F77=
14548     ;;
14549   *)
14550     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14551     ;;
14552 esac
14553
14554 #
14555 # Check to make sure the static flag actually works.
14556 #
14557 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14558 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14559 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14560 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14561   echo $ECHO_N "(cached) $ECHO_C" >&6
14562 else
14563   lt_cv_prog_compiler_static_works_F77=no
14564    save_LDFLAGS="$LDFLAGS"
14565    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14566    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14567    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14568      # The linker can only warn and ignore the option if not recognized
14569      # So say no if there are warnings
14570      if test -s conftest.err; then
14571        # Append any errors to the config.log.
14572        cat conftest.err 1>&5
14573        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14574        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14575        if diff conftest.exp conftest.er2 >/dev/null; then
14576          lt_cv_prog_compiler_static_works_F77=yes
14577        fi
14578      else
14579        lt_cv_prog_compiler_static_works_F77=yes
14580      fi
14581    fi
14582    $rm -r conftest*
14583    LDFLAGS="$save_LDFLAGS"
14584
14585 fi
14586 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14587 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14588
14589 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14590     :
14591 else
14592     lt_prog_compiler_static_F77=
14593 fi
14594
14595
14596 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14597 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14598 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14599   echo $ECHO_N "(cached) $ECHO_C" >&6
14600 else
14601   lt_cv_prog_compiler_c_o_F77=no
14602    $rm -r conftest 2>/dev/null
14603    mkdir conftest
14604    cd conftest
14605    mkdir out
14606    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14607
14608    lt_compiler_flag="-o out/conftest2.$ac_objext"
14609    # Insert the option either (1) after the last *FLAGS variable, or
14610    # (2) before a word containing "conftest.", or (3) at the end.
14611    # Note that $ac_compile itself does not contain backslashes and begins
14612    # with a dollar sign (not a hyphen), so the echo should work correctly.
14613    lt_compile=`echo "$ac_compile" | $SED \
14614    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14615    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14616    -e 's:$: $lt_compiler_flag:'`
14617    (eval echo "\"\$as_me:14617: $lt_compile\"" >&5)
14618    (eval "$lt_compile" 2>out/conftest.err)
14619    ac_status=$?
14620    cat out/conftest.err >&5
14621    echo "$as_me:14621: \$? = $ac_status" >&5
14622    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14623    then
14624      # The compiler can only warn and ignore the option if not recognized
14625      # So say no if there are warnings
14626      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14627      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14628      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14629        lt_cv_prog_compiler_c_o_F77=yes
14630      fi
14631    fi
14632    chmod u+w . 2>&5
14633    $rm conftest*
14634    # SGI C++ compiler will create directory out/ii_files/ for
14635    # template instantiation
14636    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14637    $rm out/* && rmdir out
14638    cd ..
14639    rmdir conftest
14640    $rm conftest*
14641
14642 fi
14643 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14644 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14645
14646
14647 hard_links="nottested"
14648 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14649   # do not overwrite the value of need_locks provided by the user
14650   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14651 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14652   hard_links=yes
14653   $rm conftest*
14654   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14655   touch conftest.a
14656   ln conftest.a conftest.b 2>&5 || hard_links=no
14657   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14658   { echo "$as_me:$LINENO: result: $hard_links" >&5
14659 echo "${ECHO_T}$hard_links" >&6; }
14660   if test "$hard_links" = no; then
14661     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14662 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14663     need_locks=warn
14664   fi
14665 else
14666   need_locks=no
14667 fi
14668
14669 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14670 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14671
14672   runpath_var=
14673   allow_undefined_flag_F77=
14674   enable_shared_with_static_runtimes_F77=no
14675   archive_cmds_F77=
14676   archive_expsym_cmds_F77=
14677   old_archive_From_new_cmds_F77=
14678   old_archive_from_expsyms_cmds_F77=
14679   export_dynamic_flag_spec_F77=
14680   whole_archive_flag_spec_F77=
14681   thread_safe_flag_spec_F77=
14682   hardcode_libdir_flag_spec_F77=
14683   hardcode_libdir_flag_spec_ld_F77=
14684   hardcode_libdir_separator_F77=
14685   hardcode_direct_F77=no
14686   hardcode_minus_L_F77=no
14687   hardcode_shlibpath_var_F77=unsupported
14688   link_all_deplibs_F77=unknown
14689   hardcode_automatic_F77=no
14690   module_cmds_F77=
14691   module_expsym_cmds_F77=
14692   always_export_symbols_F77=no
14693   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14694   # include_expsyms should be a list of space-separated symbols to be *always*
14695   # included in the symbol list
14696   include_expsyms_F77=
14697   # exclude_expsyms can be an extended regexp of symbols to exclude
14698   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14699   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14700   # as well as any symbol that contains `d'.
14701   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14702   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14703   # platforms (ab)use it in PIC code, but their linkers get confused if
14704   # the symbol is explicitly referenced.  Since portable code cannot
14705   # rely on this symbol name, it's probably fine to never include it in
14706   # preloaded symbol tables.
14707   # Exclude shared library initialization/finalization symbols.
14708   extract_expsyms_cmds=
14709   # Just being paranoid about ensuring that cc_basename is set.
14710   for cc_temp in $compiler""; do
14711   case $cc_temp in
14712     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14713     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14714     \-*) ;;
14715     *) break;;
14716   esac
14717 done
14718 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14719
14720   case $host_os in
14721   cygwin* | mingw* | pw32*)
14722     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14723     # When not using gcc, we currently assume that we are using
14724     # Microsoft Visual C++.
14725     if test "$GCC" != yes; then
14726       with_gnu_ld=no
14727     fi
14728     ;;
14729   interix*)
14730     # we just hope/assume this is gcc and not c89 (= MSVC++)
14731     with_gnu_ld=yes
14732     ;;
14733   openbsd*)
14734     with_gnu_ld=no
14735     ;;
14736   esac
14737
14738   ld_shlibs_F77=yes
14739   if test "$with_gnu_ld" = yes; then
14740     # If archive_cmds runs LD, not CC, wlarc should be empty
14741     wlarc='${wl}'
14742
14743     # Set some defaults for GNU ld with shared library support. These
14744     # are reset later if shared libraries are not supported. Putting them
14745     # here allows them to be overridden if necessary.
14746     runpath_var=LD_RUN_PATH
14747     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14748     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14749     # ancient GNU ld didn't support --whole-archive et. al.
14750     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14751         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14752       else
14753         whole_archive_flag_spec_F77=
14754     fi
14755     supports_anon_versioning=no
14756     case `$LD -v 2>/dev/null` in
14757       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14758       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14759       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14760       *\ 2.11.*) ;; # other 2.11 versions
14761       *) supports_anon_versioning=yes ;;
14762     esac
14763
14764     # See if GNU ld supports shared libraries.
14765     case $host_os in
14766     aix[3-9]*)
14767       # On AIX/PPC, the GNU linker is very broken
14768       if test "$host_cpu" != ia64; then
14769         ld_shlibs_F77=no
14770         cat <<EOF 1>&2
14771
14772 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14773 *** to be unable to reliably create shared libraries on AIX.
14774 *** Therefore, libtool is disabling shared libraries support.  If you
14775 *** really care for shared libraries, you may want to modify your PATH
14776 *** so that a non-GNU linker is found, and then restart.
14777
14778 EOF
14779       fi
14780       ;;
14781
14782     amigaos*)
14783       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)'
14784       hardcode_libdir_flag_spec_F77='-L$libdir'
14785       hardcode_minus_L_F77=yes
14786
14787       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14788       # that the semantics of dynamic libraries on AmigaOS, at least up
14789       # to version 4, is to share data among multiple programs linked
14790       # with the same dynamic library.  Since this doesn't match the
14791       # behavior of shared libraries on other platforms, we can't use
14792       # them.
14793       ld_shlibs_F77=no
14794       ;;
14795
14796     beos*)
14797       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14798         allow_undefined_flag_F77=unsupported
14799         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14800         # support --undefined.  This deserves some investigation.  FIXME
14801         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14802       else
14803         ld_shlibs_F77=no
14804       fi
14805       ;;
14806
14807     cygwin* | mingw* | pw32*)
14808       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14809       # as there is no search path for DLLs.
14810       hardcode_libdir_flag_spec_F77='-L$libdir'
14811       allow_undefined_flag_F77=unsupported
14812       always_export_symbols_F77=no
14813       enable_shared_with_static_runtimes_F77=yes
14814       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14815
14816       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14817         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14818         # If the export-symbols file already is a .def file (1st line
14819         # is EXPORTS), use it as is; otherwise, prepend...
14820         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14821           cp $export_symbols $output_objdir/$soname.def;
14822         else
14823           echo EXPORTS > $output_objdir/$soname.def;
14824           cat $export_symbols >> $output_objdir/$soname.def;
14825         fi~
14826         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14827       else
14828         ld_shlibs_F77=no
14829       fi
14830       ;;
14831
14832     interix[3-9]*)
14833       hardcode_direct_F77=no
14834       hardcode_shlibpath_var_F77=no
14835       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14836       export_dynamic_flag_spec_F77='${wl}-E'
14837       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14838       # Instead, shared libraries are loaded at an image base (0x10000000 by
14839       # default) and relocated if they conflict, which is a slow very memory
14840       # consuming and fragmenting process.  To avoid this, we pick a random,
14841       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14842       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14843       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'
14844       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'
14845       ;;
14846
14847     gnu* | linux* | k*bsd*-gnu)
14848       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14849         tmp_addflag=
14850         case $cc_basename,$host_cpu in
14851         pgcc*)                          # Portland Group C compiler
14852           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'
14853           tmp_addflag=' $pic_flag'
14854           ;;
14855         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14856           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'
14857           tmp_addflag=' $pic_flag -Mnomain' ;;
14858         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14859           tmp_addflag=' -i_dynamic' ;;
14860         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14861           tmp_addflag=' -i_dynamic -nofor_main' ;;
14862         ifc* | ifort*)                  # Intel Fortran compiler
14863           tmp_addflag=' -nofor_main' ;;
14864         esac
14865         case `$CC -V 2>&1 | sed 5q` in
14866         *Sun\ C*)                       # Sun C 5.9
14867           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14868           tmp_sharedflag='-G' ;;
14869         *Sun\ F*)                       # Sun Fortran 8.3
14870           tmp_sharedflag='-G' ;;
14871         *)
14872           tmp_sharedflag='-shared' ;;
14873         esac
14874         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14875
14876         if test $supports_anon_versioning = yes; then
14877           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14878   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14879   $echo "local: *; };" >> $output_objdir/$libname.ver~
14880           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14881         fi
14882         link_all_deplibs_F77=no
14883       else
14884         ld_shlibs_F77=no
14885       fi
14886       ;;
14887
14888     netbsd* | netbsdelf*-gnu)
14889       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14890         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14891         wlarc=
14892       else
14893         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14894         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14895       fi
14896       ;;
14897
14898     solaris*)
14899       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14900         ld_shlibs_F77=no
14901         cat <<EOF 1>&2
14902
14903 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14904 *** create shared libraries on Solaris systems.  Therefore, libtool
14905 *** is disabling shared libraries support.  We urge you to upgrade GNU
14906 *** binutils to release 2.9.1 or newer.  Another option is to modify
14907 *** your PATH or compiler configuration so that the native linker is
14908 *** used, and then restart.
14909
14910 EOF
14911       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14912         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14913         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14914       else
14915         ld_shlibs_F77=no
14916       fi
14917       ;;
14918
14919     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14920       case `$LD -v 2>&1` in
14921         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14922         ld_shlibs_F77=no
14923         cat <<_LT_EOF 1>&2
14924
14925 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14926 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14927 *** is disabling shared libraries support.  We urge you to upgrade GNU
14928 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14929 *** your PATH or compiler configuration so that the native linker is
14930 *** used, and then restart.
14931
14932 _LT_EOF
14933         ;;
14934         *)
14935           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14936             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14937             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14938             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14939           else
14940             ld_shlibs_F77=no
14941           fi
14942         ;;
14943       esac
14944       ;;
14945
14946     sunos4*)
14947       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14948       wlarc=
14949       hardcode_direct_F77=yes
14950       hardcode_shlibpath_var_F77=no
14951       ;;
14952
14953     *)
14954       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14955         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14956         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14957       else
14958         ld_shlibs_F77=no
14959       fi
14960       ;;
14961     esac
14962
14963     if test "$ld_shlibs_F77" = no; then
14964       runpath_var=
14965       hardcode_libdir_flag_spec_F77=
14966       export_dynamic_flag_spec_F77=
14967       whole_archive_flag_spec_F77=
14968     fi
14969   else
14970     # PORTME fill in a description of your system's linker (not GNU ld)
14971     case $host_os in
14972     aix3*)
14973       allow_undefined_flag_F77=unsupported
14974       always_export_symbols_F77=yes
14975       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'
14976       # Note: this linker hardcodes the directories in LIBPATH if there
14977       # are no directories specified by -L.
14978       hardcode_minus_L_F77=yes
14979       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14980         # Neither direct hardcoding nor static linking is supported with a
14981         # broken collect2.
14982         hardcode_direct_F77=unsupported
14983       fi
14984       ;;
14985
14986     aix[4-9]*)
14987       if test "$host_cpu" = ia64; then
14988         # On IA64, the linker does run time linking by default, so we don't
14989         # have to do anything special.
14990         aix_use_runtimelinking=no
14991         exp_sym_flag='-Bexport'
14992         no_entry_flag=""
14993       else
14994         # If we're using GNU nm, then we don't want the "-C" option.
14995         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14996         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14997           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'
14998         else
14999           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'
15000         fi
15001         aix_use_runtimelinking=no
15002
15003         # Test if we are trying to use run time linking or normal
15004         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15005         # need to do runtime linking.
15006         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15007           for ld_flag in $LDFLAGS; do
15008           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15009             aix_use_runtimelinking=yes
15010             break
15011           fi
15012           done
15013           ;;
15014         esac
15015
15016         exp_sym_flag='-bexport'
15017         no_entry_flag='-bnoentry'
15018       fi
15019
15020       # When large executables or shared objects are built, AIX ld can
15021       # have problems creating the table of contents.  If linking a library
15022       # or program results in "error TOC overflow" add -mminimal-toc to
15023       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15024       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15025
15026       archive_cmds_F77=''
15027       hardcode_direct_F77=yes
15028       hardcode_libdir_separator_F77=':'
15029       link_all_deplibs_F77=yes
15030
15031       if test "$GCC" = yes; then
15032         case $host_os in aix4.[012]|aix4.[012].*)
15033         # We only want to do this on AIX 4.2 and lower, the check
15034         # below for broken collect2 doesn't work under 4.3+
15035           collect2name=`${CC} -print-prog-name=collect2`
15036           if test -f "$collect2name" && \
15037            strings "$collect2name" | grep resolve_lib_name >/dev/null
15038           then
15039           # We have reworked collect2
15040           :
15041           else
15042           # We have old collect2
15043           hardcode_direct_F77=unsupported
15044           # It fails to find uninstalled libraries when the uninstalled
15045           # path is not listed in the libpath.  Setting hardcode_minus_L
15046           # to unsupported forces relinking
15047           hardcode_minus_L_F77=yes
15048           hardcode_libdir_flag_spec_F77='-L$libdir'
15049           hardcode_libdir_separator_F77=
15050           fi
15051           ;;
15052         esac
15053         shared_flag='-shared'
15054         if test "$aix_use_runtimelinking" = yes; then
15055           shared_flag="$shared_flag "'${wl}-G'
15056         fi
15057       else
15058         # not using gcc
15059         if test "$host_cpu" = ia64; then
15060         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15061         # chokes on -Wl,-G. The following line is correct:
15062           shared_flag='-G'
15063         else
15064           if test "$aix_use_runtimelinking" = yes; then
15065             shared_flag='${wl}-G'
15066           else
15067             shared_flag='${wl}-bM:SRE'
15068           fi
15069         fi
15070       fi
15071
15072       # It seems that -bexpall does not export symbols beginning with
15073       # underscore (_), so it is better to generate a list of symbols to export.
15074       always_export_symbols_F77=yes
15075       if test "$aix_use_runtimelinking" = yes; then
15076         # Warning - without using the other runtime loading flags (-brtl),
15077         # -berok will link without error, but may produce a broken library.
15078         allow_undefined_flag_F77='-berok'
15079        # Determine the default libpath from the value encoded in an empty executable.
15080        cat >conftest.$ac_ext <<_ACEOF
15081       program main
15082
15083       end
15084 _ACEOF
15085 rm -f conftest.$ac_objext conftest$ac_exeext
15086 if { (ac_try="$ac_link"
15087 case "(($ac_try" in
15088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15089   *) ac_try_echo=$ac_try;;
15090 esac
15091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15092   (eval "$ac_link") 2>conftest.er1
15093   ac_status=$?
15094   grep -v '^ *+' conftest.er1 >conftest.err
15095   rm -f conftest.er1
15096   cat conftest.err >&5
15097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098   (exit $ac_status); } && {
15099          test -z "$ac_f77_werror_flag" ||
15100          test ! -s conftest.err
15101        } && test -s conftest$ac_exeext &&
15102        $as_test_x conftest$ac_exeext; then
15103
15104 lt_aix_libpath_sed='
15105     /Import File Strings/,/^$/ {
15106         /^0/ {
15107             s/^0  *\(.*\)$/\1/
15108             p
15109         }
15110     }'
15111 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15112 # Check for a 64-bit object if we didn't find anything.
15113 if test -z "$aix_libpath"; then
15114   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15115 fi
15116 else
15117   echo "$as_me: failed program was:" >&5
15118 sed 's/^/| /' conftest.$ac_ext >&5
15119
15120
15121 fi
15122
15123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15124       conftest$ac_exeext conftest.$ac_ext
15125 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15126
15127        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15128         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"
15129        else
15130         if test "$host_cpu" = ia64; then
15131           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15132           allow_undefined_flag_F77="-z nodefs"
15133           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"
15134         else
15135          # Determine the default libpath from the value encoded in an empty executable.
15136          cat >conftest.$ac_ext <<_ACEOF
15137       program main
15138
15139       end
15140 _ACEOF
15141 rm -f conftest.$ac_objext conftest$ac_exeext
15142 if { (ac_try="$ac_link"
15143 case "(($ac_try" in
15144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145   *) ac_try_echo=$ac_try;;
15146 esac
15147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15148   (eval "$ac_link") 2>conftest.er1
15149   ac_status=$?
15150   grep -v '^ *+' conftest.er1 >conftest.err
15151   rm -f conftest.er1
15152   cat conftest.err >&5
15153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154   (exit $ac_status); } && {
15155          test -z "$ac_f77_werror_flag" ||
15156          test ! -s conftest.err
15157        } && test -s conftest$ac_exeext &&
15158        $as_test_x conftest$ac_exeext; then
15159
15160 lt_aix_libpath_sed='
15161     /Import File Strings/,/^$/ {
15162         /^0/ {
15163             s/^0  *\(.*\)$/\1/
15164             p
15165         }
15166     }'
15167 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15168 # Check for a 64-bit object if we didn't find anything.
15169 if test -z "$aix_libpath"; then
15170   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15171 fi
15172 else
15173   echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15175
15176
15177 fi
15178
15179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15180       conftest$ac_exeext conftest.$ac_ext
15181 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15182
15183          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15184           # Warning - without using the other run time loading flags,
15185           # -berok will link without error, but may produce a broken library.
15186           no_undefined_flag_F77=' ${wl}-bernotok'
15187           allow_undefined_flag_F77=' ${wl}-berok'
15188           # Exported symbols can be pulled into shared objects from archives
15189           whole_archive_flag_spec_F77='$convenience'
15190           archive_cmds_need_lc_F77=yes
15191           # This is similar to how AIX traditionally builds its shared libraries.
15192           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'
15193         fi
15194       fi
15195       ;;
15196
15197     amigaos*)
15198       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)'
15199       hardcode_libdir_flag_spec_F77='-L$libdir'
15200       hardcode_minus_L_F77=yes
15201       # see comment about different semantics on the GNU ld section
15202       ld_shlibs_F77=no
15203       ;;
15204
15205     bsdi[45]*)
15206       export_dynamic_flag_spec_F77=-rdynamic
15207       ;;
15208
15209     cygwin* | mingw* | pw32*)
15210       # When not using gcc, we currently assume that we are using
15211       # Microsoft Visual C++.
15212       # hardcode_libdir_flag_spec is actually meaningless, as there is
15213       # no search path for DLLs.
15214       hardcode_libdir_flag_spec_F77=' '
15215       allow_undefined_flag_F77=unsupported
15216       # Tell ltmain to make .lib files, not .a files.
15217       libext=lib
15218       # Tell ltmain to make .dll files, not .so files.
15219       shrext_cmds=".dll"
15220       # FIXME: Setting linknames here is a bad hack.
15221       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15222       # The linker will automatically build a .lib file if we build a DLL.
15223       old_archive_From_new_cmds_F77='true'
15224       # FIXME: Should let the user specify the lib program.
15225       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15226       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15227       enable_shared_with_static_runtimes_F77=yes
15228       ;;
15229
15230     darwin* | rhapsody*)
15231       case $host_os in
15232         rhapsody* | darwin1.[012])
15233          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15234          ;;
15235        *) # Darwin 1.3 on
15236          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15237            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15238          else
15239            case ${MACOSX_DEPLOYMENT_TARGET} in
15240              10.[012])
15241                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15242                ;;
15243              10.*)
15244                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15245                ;;
15246            esac
15247          fi
15248          ;;
15249       esac
15250       archive_cmds_need_lc_F77=no
15251       hardcode_direct_F77=no
15252       hardcode_automatic_F77=yes
15253       hardcode_shlibpath_var_F77=unsupported
15254       whole_archive_flag_spec_F77=''
15255       link_all_deplibs_F77=yes
15256     if test "$GCC" = yes ; then
15257         output_verbose_link_cmd='echo'
15258         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15259         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15260         archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15261         module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15262     else
15263       case $cc_basename in
15264         xlc*)
15265          output_verbose_link_cmd='echo'
15266          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15267          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15268           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15269          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15270           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}'
15271           ;;
15272        *)
15273          ld_shlibs_F77=no
15274           ;;
15275       esac
15276     fi
15277       ;;
15278
15279     dgux*)
15280       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15281       hardcode_libdir_flag_spec_F77='-L$libdir'
15282       hardcode_shlibpath_var_F77=no
15283       ;;
15284
15285     freebsd1*)
15286       ld_shlibs_F77=no
15287       ;;
15288
15289     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15290     # support.  Future versions do this automatically, but an explicit c++rt0.o
15291     # does not break anything, and helps significantly (at the cost of a little
15292     # extra space).
15293     freebsd2.2*)
15294       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15295       hardcode_libdir_flag_spec_F77='-R$libdir'
15296       hardcode_direct_F77=yes
15297       hardcode_shlibpath_var_F77=no
15298       ;;
15299
15300     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15301     freebsd2*)
15302       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15303       hardcode_direct_F77=yes
15304       hardcode_minus_L_F77=yes
15305       hardcode_shlibpath_var_F77=no
15306       ;;
15307
15308     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15309     freebsd* | dragonfly*)
15310       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15311       hardcode_libdir_flag_spec_F77='-R$libdir'
15312       hardcode_direct_F77=yes
15313       hardcode_shlibpath_var_F77=no
15314       ;;
15315
15316     hpux9*)
15317       if test "$GCC" = yes; then
15318         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'
15319       else
15320         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'
15321       fi
15322       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15323       hardcode_libdir_separator_F77=:
15324       hardcode_direct_F77=yes
15325
15326       # hardcode_minus_L: Not really in the search PATH,
15327       # but as the default location of the library.
15328       hardcode_minus_L_F77=yes
15329       export_dynamic_flag_spec_F77='${wl}-E'
15330       ;;
15331
15332     hpux10*)
15333       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15334         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15335       else
15336         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15337       fi
15338       if test "$with_gnu_ld" = no; then
15339         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15340         hardcode_libdir_separator_F77=:
15341
15342         hardcode_direct_F77=yes
15343         export_dynamic_flag_spec_F77='${wl}-E'
15344
15345         # hardcode_minus_L: Not really in the search PATH,
15346         # but as the default location of the library.
15347         hardcode_minus_L_F77=yes
15348       fi
15349       ;;
15350
15351     hpux11*)
15352       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15353         case $host_cpu in
15354         hppa*64*)
15355           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15356           ;;
15357         ia64*)
15358           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15359           ;;
15360         *)
15361           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15362           ;;
15363         esac
15364       else
15365         case $host_cpu in
15366         hppa*64*)
15367           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15368           ;;
15369         ia64*)
15370           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15371           ;;
15372         *)
15373           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15374           ;;
15375         esac
15376       fi
15377       if test "$with_gnu_ld" = no; then
15378         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15379         hardcode_libdir_separator_F77=:
15380
15381         case $host_cpu in
15382         hppa*64*|ia64*)
15383           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15384           hardcode_direct_F77=no
15385           hardcode_shlibpath_var_F77=no
15386           ;;
15387         *)
15388           hardcode_direct_F77=yes
15389           export_dynamic_flag_spec_F77='${wl}-E'
15390
15391           # hardcode_minus_L: Not really in the search PATH,
15392           # but as the default location of the library.
15393           hardcode_minus_L_F77=yes
15394           ;;
15395         esac
15396       fi
15397       ;;
15398
15399     irix5* | irix6* | nonstopux*)
15400       if test "$GCC" = yes; then
15401         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'
15402       else
15403         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'
15404         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15405       fi
15406       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15407       hardcode_libdir_separator_F77=:
15408       link_all_deplibs_F77=yes
15409       ;;
15410
15411     netbsd* | netbsdelf*-gnu)
15412       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15413         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15414       else
15415         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15416       fi
15417       hardcode_libdir_flag_spec_F77='-R$libdir'
15418       hardcode_direct_F77=yes
15419       hardcode_shlibpath_var_F77=no
15420       ;;
15421
15422     newsos6)
15423       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15424       hardcode_direct_F77=yes
15425       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15426       hardcode_libdir_separator_F77=:
15427       hardcode_shlibpath_var_F77=no
15428       ;;
15429
15430     openbsd*)
15431       if test -f /usr/libexec/ld.so; then
15432         hardcode_direct_F77=yes
15433         hardcode_shlibpath_var_F77=no
15434         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15435           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15436           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15437           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15438           export_dynamic_flag_spec_F77='${wl}-E'
15439         else
15440           case $host_os in
15441            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15442              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15443              hardcode_libdir_flag_spec_F77='-R$libdir'
15444              ;;
15445            *)
15446              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15447              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15448              ;;
15449           esac
15450         fi
15451       else
15452         ld_shlibs_F77=no
15453       fi
15454       ;;
15455
15456     os2*)
15457       hardcode_libdir_flag_spec_F77='-L$libdir'
15458       hardcode_minus_L_F77=yes
15459       allow_undefined_flag_F77=unsupported
15460       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'
15461       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15462       ;;
15463
15464     osf3*)
15465       if test "$GCC" = yes; then
15466         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15467         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'
15468       else
15469         allow_undefined_flag_F77=' -expect_unresolved \*'
15470         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'
15471       fi
15472       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15473       hardcode_libdir_separator_F77=:
15474       ;;
15475
15476     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15477       if test "$GCC" = yes; then
15478         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15479         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'
15480         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15481       else
15482         allow_undefined_flag_F77=' -expect_unresolved \*'
15483         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'
15484         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~
15485         $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'
15486
15487         # Both c and cxx compiler support -rpath directly
15488         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15489       fi
15490       hardcode_libdir_separator_F77=:
15491       ;;
15492
15493     solaris*)
15494       no_undefined_flag_F77=' -z text'
15495       if test "$GCC" = yes; then
15496         wlarc='${wl}'
15497         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15498         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15499           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15500       else
15501         wlarc=''
15502         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15503         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15504         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15505       fi
15506       hardcode_libdir_flag_spec_F77='-R$libdir'
15507       hardcode_shlibpath_var_F77=no
15508       case $host_os in
15509       solaris2.[0-5] | solaris2.[0-5].*) ;;
15510       *)
15511         # The compiler driver will combine and reorder linker options,
15512         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15513         # but is careful enough not to reorder.
15514         # Supported since Solaris 2.6 (maybe 2.5.1?)
15515         if test "$GCC" = yes; then
15516           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15517         else
15518           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15519         fi
15520         ;;
15521       esac
15522       link_all_deplibs_F77=yes
15523       ;;
15524
15525     sunos4*)
15526       if test "x$host_vendor" = xsequent; then
15527         # Use $CC to link under sequent, because it throws in some extra .o
15528         # files that make .init and .fini sections work.
15529         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15530       else
15531         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15532       fi
15533       hardcode_libdir_flag_spec_F77='-L$libdir'
15534       hardcode_direct_F77=yes
15535       hardcode_minus_L_F77=yes
15536       hardcode_shlibpath_var_F77=no
15537       ;;
15538
15539     sysv4)
15540       case $host_vendor in
15541         sni)
15542           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15543           hardcode_direct_F77=yes # is this really true???
15544         ;;
15545         siemens)
15546           ## LD is ld it makes a PLAMLIB
15547           ## CC just makes a GrossModule.
15548           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15549           reload_cmds_F77='$CC -r -o $output$reload_objs'
15550           hardcode_direct_F77=no
15551         ;;
15552         motorola)
15553           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15554           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15555         ;;
15556       esac
15557       runpath_var='LD_RUN_PATH'
15558       hardcode_shlibpath_var_F77=no
15559       ;;
15560
15561     sysv4.3*)
15562       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15563       hardcode_shlibpath_var_F77=no
15564       export_dynamic_flag_spec_F77='-Bexport'
15565       ;;
15566
15567     sysv4*MP*)
15568       if test -d /usr/nec; then
15569         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15570         hardcode_shlibpath_var_F77=no
15571         runpath_var=LD_RUN_PATH
15572         hardcode_runpath_var=yes
15573         ld_shlibs_F77=yes
15574       fi
15575       ;;
15576
15577     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15578       no_undefined_flag_F77='${wl}-z,text'
15579       archive_cmds_need_lc_F77=no
15580       hardcode_shlibpath_var_F77=no
15581       runpath_var='LD_RUN_PATH'
15582
15583       if test "$GCC" = yes; then
15584         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15585         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15586       else
15587         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15588         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15589       fi
15590       ;;
15591
15592     sysv5* | sco3.2v5* | sco5v6*)
15593       # Note: We can NOT use -z defs as we might desire, because we do not
15594       # link with -lc, and that would cause any symbols used from libc to
15595       # always be unresolved, which means just about no library would
15596       # ever link correctly.  If we're not using GNU ld we use -z text
15597       # though, which does catch some bad symbols but isn't as heavy-handed
15598       # as -z defs.
15599       no_undefined_flag_F77='${wl}-z,text'
15600       allow_undefined_flag_F77='${wl}-z,nodefs'
15601       archive_cmds_need_lc_F77=no
15602       hardcode_shlibpath_var_F77=no
15603       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15604       hardcode_libdir_separator_F77=':'
15605       link_all_deplibs_F77=yes
15606       export_dynamic_flag_spec_F77='${wl}-Bexport'
15607       runpath_var='LD_RUN_PATH'
15608
15609       if test "$GCC" = yes; then
15610         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15611         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15612       else
15613         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15614         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15615       fi
15616       ;;
15617
15618     uts4*)
15619       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15620       hardcode_libdir_flag_spec_F77='-L$libdir'
15621       hardcode_shlibpath_var_F77=no
15622       ;;
15623
15624     *)
15625       ld_shlibs_F77=no
15626       ;;
15627     esac
15628   fi
15629
15630 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15631 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15632 test "$ld_shlibs_F77" = no && can_build_shared=no
15633
15634 #
15635 # Do we need to explicitly link libc?
15636 #
15637 case "x$archive_cmds_need_lc_F77" in
15638 x|xyes)
15639   # Assume -lc should be added
15640   archive_cmds_need_lc_F77=yes
15641
15642   if test "$enable_shared" = yes && test "$GCC" = yes; then
15643     case $archive_cmds_F77 in
15644     *'~'*)
15645       # FIXME: we may have to deal with multi-command sequences.
15646       ;;
15647     '$CC '*)
15648       # Test whether the compiler implicitly links with -lc since on some
15649       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15650       # to ld, don't add -lc before -lgcc.
15651       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15652 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15653       $rm conftest*
15654       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15655
15656       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15657   (eval $ac_compile) 2>&5
15658   ac_status=$?
15659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660   (exit $ac_status); } 2>conftest.err; then
15661         soname=conftest
15662         lib=conftest
15663         libobjs=conftest.$ac_objext
15664         deplibs=
15665         wl=$lt_prog_compiler_wl_F77
15666         pic_flag=$lt_prog_compiler_pic_F77
15667         compiler_flags=-v
15668         linker_flags=-v
15669         verstring=
15670         output_objdir=.
15671         libname=conftest
15672         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15673         allow_undefined_flag_F77=
15674         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15675   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15676   ac_status=$?
15677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678   (exit $ac_status); }
15679         then
15680           archive_cmds_need_lc_F77=no
15681         else
15682           archive_cmds_need_lc_F77=yes
15683         fi
15684         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15685       else
15686         cat conftest.err 1>&5
15687       fi
15688       $rm conftest*
15689       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15690 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15691       ;;
15692     esac
15693   fi
15694   ;;
15695 esac
15696
15697 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15698 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15699 library_names_spec=
15700 libname_spec='lib$name'
15701 soname_spec=
15702 shrext_cmds=".so"
15703 postinstall_cmds=
15704 postuninstall_cmds=
15705 finish_cmds=
15706 finish_eval=
15707 shlibpath_var=
15708 shlibpath_overrides_runpath=unknown
15709 version_type=none
15710 dynamic_linker="$host_os ld.so"
15711 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15712
15713 need_lib_prefix=unknown
15714 hardcode_into_libs=no
15715
15716 # when you set need_version to no, make sure it does not cause -set_version
15717 # flags to be left without arguments
15718 need_version=unknown
15719
15720 case $host_os in
15721 aix3*)
15722   version_type=linux
15723   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15724   shlibpath_var=LIBPATH
15725
15726   # AIX 3 has no versioning support, so we append a major version to the name.
15727   soname_spec='${libname}${release}${shared_ext}$major'
15728   ;;
15729
15730 aix[4-9]*)
15731   version_type=linux
15732   need_lib_prefix=no
15733   need_version=no
15734   hardcode_into_libs=yes
15735   if test "$host_cpu" = ia64; then
15736     # AIX 5 supports IA64
15737     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15738     shlibpath_var=LD_LIBRARY_PATH
15739   else
15740     # With GCC up to 2.95.x, collect2 would create an import file
15741     # for dependence libraries.  The import file would start with
15742     # the line `#! .'.  This would cause the generated library to
15743     # depend on `.', always an invalid library.  This was fixed in
15744     # development snapshots of GCC prior to 3.0.
15745     case $host_os in
15746       aix4 | aix4.[01] | aix4.[01].*)
15747       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15748            echo ' yes '
15749            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15750         :
15751       else
15752         can_build_shared=no
15753       fi
15754       ;;
15755     esac
15756     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15757     # soname into executable. Probably we can add versioning support to
15758     # collect2, so additional links can be useful in future.
15759     if test "$aix_use_runtimelinking" = yes; then
15760       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15761       # instead of lib<name>.a to let people know that these are not
15762       # typical AIX shared libraries.
15763       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15764     else
15765       # We preserve .a as extension for shared libraries through AIX4.2
15766       # and later when we are not doing run time linking.
15767       library_names_spec='${libname}${release}.a $libname.a'
15768       soname_spec='${libname}${release}${shared_ext}$major'
15769     fi
15770     shlibpath_var=LIBPATH
15771   fi
15772   ;;
15773
15774 amigaos*)
15775   library_names_spec='$libname.ixlibrary $libname.a'
15776   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15777   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'
15778   ;;
15779
15780 beos*)
15781   library_names_spec='${libname}${shared_ext}'
15782   dynamic_linker="$host_os ld.so"
15783   shlibpath_var=LIBRARY_PATH
15784   ;;
15785
15786 bsdi[45]*)
15787   version_type=linux
15788   need_version=no
15789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15790   soname_spec='${libname}${release}${shared_ext}$major'
15791   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15792   shlibpath_var=LD_LIBRARY_PATH
15793   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15794   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15795   # the default ld.so.conf also contains /usr/contrib/lib and
15796   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15797   # libtool to hard-code these into programs
15798   ;;
15799
15800 cygwin* | mingw* | pw32*)
15801   version_type=windows
15802   shrext_cmds=".dll"
15803   need_version=no
15804   need_lib_prefix=no
15805
15806   case $GCC,$host_os in
15807   yes,cygwin* | yes,mingw* | yes,pw32*)
15808     library_names_spec='$libname.dll.a'
15809     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15810     postinstall_cmds='base_file=`basename \${file}`~
15811       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15812       dldir=$destdir/`dirname \$dlpath`~
15813       test -d \$dldir || mkdir -p \$dldir~
15814       $install_prog $dir/$dlname \$dldir/$dlname~
15815       chmod a+x \$dldir/$dlname'
15816     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15817       dlpath=$dir/\$dldll~
15818        $rm \$dlpath'
15819     shlibpath_overrides_runpath=yes
15820
15821     case $host_os in
15822     cygwin*)
15823       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15824       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15825       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15826       ;;
15827     mingw*)
15828       # MinGW DLLs use traditional 'lib' prefix
15829       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15830       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15831       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15832         # It is most probably a Windows format PATH printed by
15833         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15834         # path with ; separators, and with drive letters. We can handle the
15835         # drive letters (cygwin fileutils understands them), so leave them,
15836         # especially as we might pass files found there to a mingw objdump,
15837         # which wouldn't understand a cygwinified path. Ahh.
15838         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15839       else
15840         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15841       fi
15842       ;;
15843     pw32*)
15844       # pw32 DLLs use 'pw' prefix rather than 'lib'
15845       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15846       ;;
15847     esac
15848     ;;
15849
15850   *)
15851     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15852     ;;
15853   esac
15854   dynamic_linker='Win32 ld.exe'
15855   # FIXME: first we should search . and the directory the executable is in
15856   shlibpath_var=PATH
15857   ;;
15858
15859 darwin* | rhapsody*)
15860   dynamic_linker="$host_os dyld"
15861   version_type=darwin
15862   need_lib_prefix=no
15863   need_version=no
15864   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15865   soname_spec='${libname}${release}${major}$shared_ext'
15866   shlibpath_overrides_runpath=yes
15867   shlibpath_var=DYLD_LIBRARY_PATH
15868   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15869
15870   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15871   ;;
15872
15873 dgux*)
15874   version_type=linux
15875   need_lib_prefix=no
15876   need_version=no
15877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15878   soname_spec='${libname}${release}${shared_ext}$major'
15879   shlibpath_var=LD_LIBRARY_PATH
15880   ;;
15881
15882 freebsd1*)
15883   dynamic_linker=no
15884   ;;
15885
15886 freebsd* | dragonfly*)
15887   # DragonFly does not have aout.  When/if they implement a new
15888   # versioning mechanism, adjust this.
15889   if test -x /usr/bin/objformat; then
15890     objformat=`/usr/bin/objformat`
15891   else
15892     case $host_os in
15893     freebsd[123]*) objformat=aout ;;
15894     *) objformat=elf ;;
15895     esac
15896   fi
15897   version_type=freebsd-$objformat
15898   case $version_type in
15899     freebsd-elf*)
15900       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15901       need_version=no
15902       need_lib_prefix=no
15903       ;;
15904     freebsd-*)
15905       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15906       need_version=yes
15907       ;;
15908   esac
15909   shlibpath_var=LD_LIBRARY_PATH
15910   case $host_os in
15911   freebsd2*)
15912     shlibpath_overrides_runpath=yes
15913     ;;
15914   freebsd3.[01]* | freebsdelf3.[01]*)
15915     shlibpath_overrides_runpath=yes
15916     hardcode_into_libs=yes
15917     ;;
15918   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15919   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15920     shlibpath_overrides_runpath=no
15921     hardcode_into_libs=yes
15922     ;;
15923   *) # from 4.6 on, and DragonFly
15924     shlibpath_overrides_runpath=yes
15925     hardcode_into_libs=yes
15926     ;;
15927   esac
15928   ;;
15929
15930 gnu*)
15931   version_type=linux
15932   need_lib_prefix=no
15933   need_version=no
15934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15935   soname_spec='${libname}${release}${shared_ext}$major'
15936   shlibpath_var=LD_LIBRARY_PATH
15937   hardcode_into_libs=yes
15938   ;;
15939
15940 hpux9* | hpux10* | hpux11*)
15941   # Give a soname corresponding to the major version so that dld.sl refuses to
15942   # link against other versions.
15943   version_type=sunos
15944   need_lib_prefix=no
15945   need_version=no
15946   case $host_cpu in
15947   ia64*)
15948     shrext_cmds='.so'
15949     hardcode_into_libs=yes
15950     dynamic_linker="$host_os dld.so"
15951     shlibpath_var=LD_LIBRARY_PATH
15952     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15953     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15954     soname_spec='${libname}${release}${shared_ext}$major'
15955     if test "X$HPUX_IA64_MODE" = X32; then
15956       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15957     else
15958       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15959     fi
15960     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15961     ;;
15962    hppa*64*)
15963      shrext_cmds='.sl'
15964      hardcode_into_libs=yes
15965      dynamic_linker="$host_os dld.sl"
15966      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15967      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15968      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15969      soname_spec='${libname}${release}${shared_ext}$major'
15970      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15971      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15972      ;;
15973    *)
15974     shrext_cmds='.sl'
15975     dynamic_linker="$host_os dld.sl"
15976     shlibpath_var=SHLIB_PATH
15977     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15978     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15979     soname_spec='${libname}${release}${shared_ext}$major'
15980     ;;
15981   esac
15982   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15983   postinstall_cmds='chmod 555 $lib'
15984   ;;
15985
15986 interix[3-9]*)
15987   version_type=linux
15988   need_lib_prefix=no
15989   need_version=no
15990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15991   soname_spec='${libname}${release}${shared_ext}$major'
15992   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15993   shlibpath_var=LD_LIBRARY_PATH
15994   shlibpath_overrides_runpath=no
15995   hardcode_into_libs=yes
15996   ;;
15997
15998 irix5* | irix6* | nonstopux*)
15999   case $host_os in
16000     nonstopux*) version_type=nonstopux ;;
16001     *)
16002         if test "$lt_cv_prog_gnu_ld" = yes; then
16003                 version_type=linux
16004         else
16005                 version_type=irix
16006         fi ;;
16007   esac
16008   need_lib_prefix=no
16009   need_version=no
16010   soname_spec='${libname}${release}${shared_ext}$major'
16011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16012   case $host_os in
16013   irix5* | nonstopux*)
16014     libsuff= shlibsuff=
16015     ;;
16016   *)
16017     case $LD in # libtool.m4 will add one of these switches to LD
16018     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16019       libsuff= shlibsuff= libmagic=32-bit;;
16020     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16021       libsuff=32 shlibsuff=N32 libmagic=N32;;
16022     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16023       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16024     *) libsuff= shlibsuff= libmagic=never-match;;
16025     esac
16026     ;;
16027   esac
16028   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16029   shlibpath_overrides_runpath=no
16030   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16031   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16032   hardcode_into_libs=yes
16033   ;;
16034
16035 # No shared lib support for Linux oldld, aout, or coff.
16036 linux*oldld* | linux*aout* | linux*coff*)
16037   dynamic_linker=no
16038   ;;
16039
16040 # This must be Linux ELF.
16041 linux* | k*bsd*-gnu)
16042   version_type=linux
16043   need_lib_prefix=no
16044   need_version=no
16045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16046   soname_spec='${libname}${release}${shared_ext}$major'
16047   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16048   shlibpath_var=LD_LIBRARY_PATH
16049   shlibpath_overrides_runpath=no
16050   # This implies no fast_install, which is unacceptable.
16051   # Some rework will be needed to allow for fast_install
16052   # before this can be enabled.
16053   hardcode_into_libs=yes
16054
16055   # Append ld.so.conf contents to the search path
16056   if test -f /etc/ld.so.conf; then
16057     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16058     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16059   fi
16060
16061   # We used to test for /lib/ld.so.1 and disable shared libraries on
16062   # powerpc, because MkLinux only supported shared libraries with the
16063   # GNU dynamic linker.  Since this was broken with cross compilers,
16064   # most powerpc-linux boxes support dynamic linking these days and
16065   # people can always --disable-shared, the test was removed, and we
16066   # assume the GNU/Linux dynamic linker is in use.
16067   dynamic_linker='GNU/Linux ld.so'
16068   ;;
16069
16070 netbsdelf*-gnu)
16071   version_type=linux
16072   need_lib_prefix=no
16073   need_version=no
16074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16075   soname_spec='${libname}${release}${shared_ext}$major'
16076   shlibpath_var=LD_LIBRARY_PATH
16077   shlibpath_overrides_runpath=no
16078   hardcode_into_libs=yes
16079   dynamic_linker='NetBSD ld.elf_so'
16080   ;;
16081
16082 netbsd*)
16083   version_type=sunos
16084   need_lib_prefix=no
16085   need_version=no
16086   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16087     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16088     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16089     dynamic_linker='NetBSD (a.out) ld.so'
16090   else
16091     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16092     soname_spec='${libname}${release}${shared_ext}$major'
16093     dynamic_linker='NetBSD ld.elf_so'
16094   fi
16095   shlibpath_var=LD_LIBRARY_PATH
16096   shlibpath_overrides_runpath=yes
16097   hardcode_into_libs=yes
16098   ;;
16099
16100 newsos6)
16101   version_type=linux
16102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16103   shlibpath_var=LD_LIBRARY_PATH
16104   shlibpath_overrides_runpath=yes
16105   ;;
16106
16107 nto-qnx*)
16108   version_type=linux
16109   need_lib_prefix=no
16110   need_version=no
16111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112   soname_spec='${libname}${release}${shared_ext}$major'
16113   shlibpath_var=LD_LIBRARY_PATH
16114   shlibpath_overrides_runpath=yes
16115   ;;
16116
16117 openbsd*)
16118   version_type=sunos
16119   sys_lib_dlsearch_path_spec="/usr/lib"
16120   need_lib_prefix=no
16121   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16122   case $host_os in
16123     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16124     *)                         need_version=no  ;;
16125   esac
16126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16127   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16128   shlibpath_var=LD_LIBRARY_PATH
16129   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16130     case $host_os in
16131       openbsd2.[89] | openbsd2.[89].*)
16132         shlibpath_overrides_runpath=no
16133         ;;
16134       *)
16135         shlibpath_overrides_runpath=yes
16136         ;;
16137       esac
16138   else
16139     shlibpath_overrides_runpath=yes
16140   fi
16141   ;;
16142
16143 os2*)
16144   libname_spec='$name'
16145   shrext_cmds=".dll"
16146   need_lib_prefix=no
16147   library_names_spec='$libname${shared_ext} $libname.a'
16148   dynamic_linker='OS/2 ld.exe'
16149   shlibpath_var=LIBPATH
16150   ;;
16151
16152 osf3* | osf4* | osf5*)
16153   version_type=osf
16154   need_lib_prefix=no
16155   need_version=no
16156   soname_spec='${libname}${release}${shared_ext}$major'
16157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16158   shlibpath_var=LD_LIBRARY_PATH
16159   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16160   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16161   ;;
16162
16163 rdos*)
16164   dynamic_linker=no
16165   ;;
16166
16167 solaris*)
16168   version_type=linux
16169   need_lib_prefix=no
16170   need_version=no
16171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16172   soname_spec='${libname}${release}${shared_ext}$major'
16173   shlibpath_var=LD_LIBRARY_PATH
16174   shlibpath_overrides_runpath=yes
16175   hardcode_into_libs=yes
16176   # ldd complains unless libraries are executable
16177   postinstall_cmds='chmod +x $lib'
16178   ;;
16179
16180 sunos4*)
16181   version_type=sunos
16182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16183   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16184   shlibpath_var=LD_LIBRARY_PATH
16185   shlibpath_overrides_runpath=yes
16186   if test "$with_gnu_ld" = yes; then
16187     need_lib_prefix=no
16188   fi
16189   need_version=yes
16190   ;;
16191
16192 sysv4 | sysv4.3*)
16193   version_type=linux
16194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16195   soname_spec='${libname}${release}${shared_ext}$major'
16196   shlibpath_var=LD_LIBRARY_PATH
16197   case $host_vendor in
16198     sni)
16199       shlibpath_overrides_runpath=no
16200       need_lib_prefix=no
16201       export_dynamic_flag_spec='${wl}-Blargedynsym'
16202       runpath_var=LD_RUN_PATH
16203       ;;
16204     siemens)
16205       need_lib_prefix=no
16206       ;;
16207     motorola)
16208       need_lib_prefix=no
16209       need_version=no
16210       shlibpath_overrides_runpath=no
16211       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16212       ;;
16213   esac
16214   ;;
16215
16216 sysv4*MP*)
16217   if test -d /usr/nec ;then
16218     version_type=linux
16219     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16220     soname_spec='$libname${shared_ext}.$major'
16221     shlibpath_var=LD_LIBRARY_PATH
16222   fi
16223   ;;
16224
16225 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16226   version_type=freebsd-elf
16227   need_lib_prefix=no
16228   need_version=no
16229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16230   soname_spec='${libname}${release}${shared_ext}$major'
16231   shlibpath_var=LD_LIBRARY_PATH
16232   hardcode_into_libs=yes
16233   if test "$with_gnu_ld" = yes; then
16234     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16235     shlibpath_overrides_runpath=no
16236   else
16237     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16238     shlibpath_overrides_runpath=yes
16239     case $host_os in
16240       sco3.2v5*)
16241         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16242         ;;
16243     esac
16244   fi
16245   sys_lib_dlsearch_path_spec='/usr/lib'
16246   ;;
16247
16248 uts4*)
16249   version_type=linux
16250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16251   soname_spec='${libname}${release}${shared_ext}$major'
16252   shlibpath_var=LD_LIBRARY_PATH
16253   ;;
16254
16255 *)
16256   dynamic_linker=no
16257   ;;
16258 esac
16259 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16260 echo "${ECHO_T}$dynamic_linker" >&6; }
16261 test "$dynamic_linker" = no && can_build_shared=no
16262
16263 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16264   echo $ECHO_N "(cached) $ECHO_C" >&6
16265 else
16266   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16267 fi
16268
16269 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16270 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16271   echo $ECHO_N "(cached) $ECHO_C" >&6
16272 else
16273   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16274 fi
16275
16276 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16277
16278 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16279 if test "$GCC" = yes; then
16280   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16281 fi
16282
16283 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16284 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16285 hardcode_action_F77=
16286 if test -n "$hardcode_libdir_flag_spec_F77" || \
16287    test -n "$runpath_var_F77" || \
16288    test "X$hardcode_automatic_F77" = "Xyes" ; then
16289
16290   # We can hardcode non-existant directories.
16291   if test "$hardcode_direct_F77" != no &&
16292      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16293      # have to relink, otherwise we might link with an installed library
16294      # when we should be linking with a yet-to-be-installed one
16295      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16296      test "$hardcode_minus_L_F77" != no; then
16297     # Linking always hardcodes the temporary library directory.
16298     hardcode_action_F77=relink
16299   else
16300     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16301     hardcode_action_F77=immediate
16302   fi
16303 else
16304   # We cannot hardcode anything, or else we can only hardcode existing
16305   # directories.
16306   hardcode_action_F77=unsupported
16307 fi
16308 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16309 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16310
16311 if test "$hardcode_action_F77" = relink; then
16312   # Fast installation is not supported
16313   enable_fast_install=no
16314 elif test "$shlibpath_overrides_runpath" = yes ||
16315      test "$enable_shared" = no; then
16316   # Fast installation is not necessary
16317   enable_fast_install=needless
16318 fi
16319
16320
16321 # The else clause should only fire when bootstrapping the
16322 # libtool distribution, otherwise you forgot to ship ltmain.sh
16323 # with your package, and you will get complaints that there are
16324 # no rules to generate ltmain.sh.
16325 if test -f "$ltmain"; then
16326   # See if we are running on zsh, and set the options which allow our commands through
16327   # without removal of \ escapes.
16328   if test -n "${ZSH_VERSION+set}" ; then
16329     setopt NO_GLOB_SUBST
16330   fi
16331   # Now quote all the things that may contain metacharacters while being
16332   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16333   # variables and quote the copies for generation of the libtool script.
16334   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16335     SED SHELL STRIP \
16336     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16337     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16338     deplibs_check_method reload_flag reload_cmds need_locks \
16339     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16340     lt_cv_sys_global_symbol_to_c_name_address \
16341     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16342     old_postinstall_cmds old_postuninstall_cmds \
16343     compiler_F77 \
16344     CC_F77 \
16345     LD_F77 \
16346     lt_prog_compiler_wl_F77 \
16347     lt_prog_compiler_pic_F77 \
16348     lt_prog_compiler_static_F77 \
16349     lt_prog_compiler_no_builtin_flag_F77 \
16350     export_dynamic_flag_spec_F77 \
16351     thread_safe_flag_spec_F77 \
16352     whole_archive_flag_spec_F77 \
16353     enable_shared_with_static_runtimes_F77 \
16354     old_archive_cmds_F77 \
16355     old_archive_from_new_cmds_F77 \
16356     predep_objects_F77 \
16357     postdep_objects_F77 \
16358     predeps_F77 \
16359     postdeps_F77 \
16360     compiler_lib_search_path_F77 \
16361     compiler_lib_search_dirs_F77 \
16362     archive_cmds_F77 \
16363     archive_expsym_cmds_F77 \
16364     postinstall_cmds_F77 \
16365     postuninstall_cmds_F77 \
16366     old_archive_from_expsyms_cmds_F77 \
16367     allow_undefined_flag_F77 \
16368     no_undefined_flag_F77 \
16369     export_symbols_cmds_F77 \
16370     hardcode_libdir_flag_spec_F77 \
16371     hardcode_libdir_flag_spec_ld_F77 \
16372     hardcode_libdir_separator_F77 \
16373     hardcode_automatic_F77 \
16374     module_cmds_F77 \
16375     module_expsym_cmds_F77 \
16376     lt_cv_prog_compiler_c_o_F77 \
16377     fix_srcfile_path_F77 \
16378     exclude_expsyms_F77 \
16379     include_expsyms_F77; do
16380
16381     case $var in
16382     old_archive_cmds_F77 | \
16383     old_archive_from_new_cmds_F77 | \
16384     archive_cmds_F77 | \
16385     archive_expsym_cmds_F77 | \
16386     module_cmds_F77 | \
16387     module_expsym_cmds_F77 | \
16388     old_archive_from_expsyms_cmds_F77 | \
16389     export_symbols_cmds_F77 | \
16390     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16391     postinstall_cmds | postuninstall_cmds | \
16392     old_postinstall_cmds | old_postuninstall_cmds | \
16393     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16394       # Double-quote double-evaled strings.
16395       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16396       ;;
16397     *)
16398       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16399       ;;
16400     esac
16401   done
16402
16403   case $lt_echo in
16404   *'\$0 --fallback-echo"')
16405     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16406     ;;
16407   esac
16408
16409 cfgfile="$ofile"
16410
16411   cat <<__EOF__ >> "$cfgfile"
16412 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16413
16414 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16415
16416 # Shell to use when invoking shell scripts.
16417 SHELL=$lt_SHELL
16418
16419 # Whether or not to build shared libraries.
16420 build_libtool_libs=$enable_shared
16421
16422 # Whether or not to build static libraries.
16423 build_old_libs=$enable_static
16424
16425 # Whether or not to add -lc for building shared libraries.
16426 build_libtool_need_lc=$archive_cmds_need_lc_F77
16427
16428 # Whether or not to disallow shared libs when runtime libs are static
16429 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16430
16431 # Whether or not to optimize for fast installation.
16432 fast_install=$enable_fast_install
16433
16434 # The host system.
16435 host_alias=$host_alias
16436 host=$host
16437 host_os=$host_os
16438
16439 # The build system.
16440 build_alias=$build_alias
16441 build=$build
16442 build_os=$build_os
16443
16444 # An echo program that does not interpret backslashes.
16445 echo=$lt_echo
16446
16447 # The archiver.
16448 AR=$lt_AR
16449 AR_FLAGS=$lt_AR_FLAGS
16450
16451 # A C compiler.
16452 LTCC=$lt_LTCC
16453
16454 # LTCC compiler flags.
16455 LTCFLAGS=$lt_LTCFLAGS
16456
16457 # A language-specific compiler.
16458 CC=$lt_compiler_F77
16459
16460 # Is the compiler the GNU C compiler?
16461 with_gcc=$GCC_F77
16462
16463 # An ERE matcher.
16464 EGREP=$lt_EGREP
16465
16466 # The linker used to build libraries.
16467 LD=$lt_LD_F77
16468
16469 # Whether we need hard or soft links.
16470 LN_S=$lt_LN_S
16471
16472 # A BSD-compatible nm program.
16473 NM=$lt_NM
16474
16475 # A symbol stripping program
16476 STRIP=$lt_STRIP
16477
16478 # Used to examine libraries when file_magic_cmd begins "file"
16479 MAGIC_CMD=$MAGIC_CMD
16480
16481 # Used on cygwin: DLL creation program.
16482 DLLTOOL="$DLLTOOL"
16483
16484 # Used on cygwin: object dumper.
16485 OBJDUMP="$OBJDUMP"
16486
16487 # Used on cygwin: assembler.
16488 AS="$AS"
16489
16490 # The name of the directory that contains temporary libtool files.
16491 objdir=$objdir
16492
16493 # How to create reloadable object files.
16494 reload_flag=$lt_reload_flag
16495 reload_cmds=$lt_reload_cmds
16496
16497 # How to pass a linker flag through the compiler.
16498 wl=$lt_lt_prog_compiler_wl_F77
16499
16500 # Object file suffix (normally "o").
16501 objext="$ac_objext"
16502
16503 # Old archive suffix (normally "a").
16504 libext="$libext"
16505
16506 # Shared library suffix (normally ".so").
16507 shrext_cmds='$shrext_cmds'
16508
16509 # Executable file suffix (normally "").
16510 exeext="$exeext"
16511
16512 # Additional compiler flags for building library objects.
16513 pic_flag=$lt_lt_prog_compiler_pic_F77
16514 pic_mode=$pic_mode
16515
16516 # What is the maximum length of a command?
16517 max_cmd_len=$lt_cv_sys_max_cmd_len
16518
16519 # Does compiler simultaneously support -c and -o options?
16520 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16521
16522 # Must we lock files when doing compilation?
16523 need_locks=$lt_need_locks
16524
16525 # Do we need the lib prefix for modules?
16526 need_lib_prefix=$need_lib_prefix
16527
16528 # Do we need a version for libraries?
16529 need_version=$need_version
16530
16531 # Whether dlopen is supported.
16532 dlopen_support=$enable_dlopen
16533
16534 # Whether dlopen of programs is supported.
16535 dlopen_self=$enable_dlopen_self
16536
16537 # Whether dlopen of statically linked programs is supported.
16538 dlopen_self_static=$enable_dlopen_self_static
16539
16540 # Compiler flag to prevent dynamic linking.
16541 link_static_flag=$lt_lt_prog_compiler_static_F77
16542
16543 # Compiler flag to turn off builtin functions.
16544 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16545
16546 # Compiler flag to allow reflexive dlopens.
16547 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16548
16549 # Compiler flag to generate shared objects directly from archives.
16550 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16551
16552 # Compiler flag to generate thread-safe objects.
16553 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16554
16555 # Library versioning type.
16556 version_type=$version_type
16557
16558 # Format of library name prefix.
16559 libname_spec=$lt_libname_spec
16560
16561 # List of archive names.  First name is the real one, the rest are links.
16562 # The last name is the one that the linker finds with -lNAME.
16563 library_names_spec=$lt_library_names_spec
16564
16565 # The coded name of the library, if different from the real name.
16566 soname_spec=$lt_soname_spec
16567
16568 # Commands used to build and install an old-style archive.
16569 RANLIB=$lt_RANLIB
16570 old_archive_cmds=$lt_old_archive_cmds_F77
16571 old_postinstall_cmds=$lt_old_postinstall_cmds
16572 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16573
16574 # Create an old-style archive from a shared archive.
16575 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16576
16577 # Create a temporary old-style archive to link instead of a shared archive.
16578 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16579
16580 # Commands used to build and install a shared archive.
16581 archive_cmds=$lt_archive_cmds_F77
16582 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16583 postinstall_cmds=$lt_postinstall_cmds
16584 postuninstall_cmds=$lt_postuninstall_cmds
16585
16586 # Commands used to build a loadable module (assumed same as above if empty)
16587 module_cmds=$lt_module_cmds_F77
16588 module_expsym_cmds=$lt_module_expsym_cmds_F77
16589
16590 # Commands to strip libraries.
16591 old_striplib=$lt_old_striplib
16592 striplib=$lt_striplib
16593
16594 # Dependencies to place before the objects being linked to create a
16595 # shared library.
16596 predep_objects=$lt_predep_objects_F77
16597
16598 # Dependencies to place after the objects being linked to create a
16599 # shared library.
16600 postdep_objects=$lt_postdep_objects_F77
16601
16602 # Dependencies to place before the objects being linked to create a
16603 # shared library.
16604 predeps=$lt_predeps_F77
16605
16606 # Dependencies to place after the objects being linked to create a
16607 # shared library.
16608 postdeps=$lt_postdeps_F77
16609
16610 # The directories searched by this compiler when creating a shared
16611 # library
16612 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16613
16614 # The library search path used internally by the compiler when linking
16615 # a shared library.
16616 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16617
16618 # Method to check whether dependent libraries are shared objects.
16619 deplibs_check_method=$lt_deplibs_check_method
16620
16621 # Command to use when deplibs_check_method == file_magic.
16622 file_magic_cmd=$lt_file_magic_cmd
16623
16624 # Flag that allows shared libraries with undefined symbols to be built.
16625 allow_undefined_flag=$lt_allow_undefined_flag_F77
16626
16627 # Flag that forces no undefined symbols.
16628 no_undefined_flag=$lt_no_undefined_flag_F77
16629
16630 # Commands used to finish a libtool library installation in a directory.
16631 finish_cmds=$lt_finish_cmds
16632
16633 # Same as above, but a single script fragment to be evaled but not shown.
16634 finish_eval=$lt_finish_eval
16635
16636 # Take the output of nm and produce a listing of raw symbols and C names.
16637 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16638
16639 # Transform the output of nm in a proper C declaration
16640 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16641
16642 # Transform the output of nm in a C name address pair
16643 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16644
16645 # This is the shared library runtime path variable.
16646 runpath_var=$runpath_var
16647
16648 # This is the shared library path variable.
16649 shlibpath_var=$shlibpath_var
16650
16651 # Is shlibpath searched before the hard-coded library search path?
16652 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16653
16654 # How to hardcode a shared library path into an executable.
16655 hardcode_action=$hardcode_action_F77
16656
16657 # Whether we should hardcode library paths into libraries.
16658 hardcode_into_libs=$hardcode_into_libs
16659
16660 # Flag to hardcode \$libdir into a binary during linking.
16661 # This must work even if \$libdir does not exist.
16662 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16663
16664 # If ld is used when linking, flag to hardcode \$libdir into
16665 # a binary during linking. This must work even if \$libdir does
16666 # not exist.
16667 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16668
16669 # Whether we need a single -rpath flag with a separated argument.
16670 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16671
16672 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16673 # resulting binary.
16674 hardcode_direct=$hardcode_direct_F77
16675
16676 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16677 # resulting binary.
16678 hardcode_minus_L=$hardcode_minus_L_F77
16679
16680 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16681 # the resulting binary.
16682 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16683
16684 # Set to yes if building a shared library automatically hardcodes DIR into the library
16685 # and all subsequent libraries and executables linked against it.
16686 hardcode_automatic=$hardcode_automatic_F77
16687
16688 # Variables whose values should be saved in libtool wrapper scripts and
16689 # restored at relink time.
16690 variables_saved_for_relink="$variables_saved_for_relink"
16691
16692 # Whether libtool must link a program against all its dependency libraries.
16693 link_all_deplibs=$link_all_deplibs_F77
16694
16695 # Compile-time system search path for libraries
16696 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16697
16698 # Run-time system search path for libraries
16699 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16700
16701 # Fix the shell variable \$srcfile for the compiler.
16702 fix_srcfile_path=$lt_fix_srcfile_path
16703
16704 # Set to yes if exported symbols are required.
16705 always_export_symbols=$always_export_symbols_F77
16706
16707 # The commands to list exported symbols.
16708 export_symbols_cmds=$lt_export_symbols_cmds_F77
16709
16710 # The commands to extract the exported symbol list from a shared archive.
16711 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16712
16713 # Symbols that should not be listed in the preloaded symbols.
16714 exclude_expsyms=$lt_exclude_expsyms_F77
16715
16716 # Symbols that must always be exported.
16717 include_expsyms=$lt_include_expsyms_F77
16718
16719 # ### END LIBTOOL TAG CONFIG: $tagname
16720
16721 __EOF__
16722
16723
16724 else
16725   # If there is no Makefile yet, we rely on a make rule to execute
16726   # `config.status --recheck' to rerun these tests and create the
16727   # libtool script then.
16728   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16729   if test -f "$ltmain_in"; then
16730     test -f Makefile && make "$ltmain"
16731   fi
16732 fi
16733
16734
16735 ac_ext=c
16736 ac_cpp='$CPP $CPPFLAGS'
16737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16740
16741 CC="$lt_save_CC"
16742
16743         else
16744           tagname=""
16745         fi
16746         ;;
16747
16748       GCJ)
16749         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16750
16751
16752 # Source file extension for Java test sources.
16753 ac_ext=java
16754
16755 # Object file extension for compiled Java test sources.
16756 objext=o
16757 objext_GCJ=$objext
16758
16759 # Code to be used in simple compile tests
16760 lt_simple_compile_test_code="class foo {}"
16761
16762 # Code to be used in simple link tests
16763 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16764
16765 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16766
16767 # If no C compiler was specified, use CC.
16768 LTCC=${LTCC-"$CC"}
16769
16770 # If no C compiler flags were specified, use CFLAGS.
16771 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16772
16773 # Allow CC to be a program name with arguments.
16774 compiler=$CC
16775
16776
16777 # save warnings/boilerplate of simple test code
16778 ac_outfile=conftest.$ac_objext
16779 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16780 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16781 _lt_compiler_boilerplate=`cat conftest.err`
16782 $rm conftest*
16783
16784 ac_outfile=conftest.$ac_objext
16785 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16786 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16787 _lt_linker_boilerplate=`cat conftest.err`
16788 $rm -r conftest*
16789
16790
16791 # Allow CC to be a program name with arguments.
16792 lt_save_CC="$CC"
16793 CC=${GCJ-"gcj"}
16794 compiler=$CC
16795 compiler_GCJ=$CC
16796 for cc_temp in $compiler""; do
16797   case $cc_temp in
16798     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16799     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16800     \-*) ;;
16801     *) break;;
16802   esac
16803 done
16804 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16805
16806
16807 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16808 archive_cmds_need_lc_GCJ=no
16809
16810 old_archive_cmds_GCJ=$old_archive_cmds
16811
16812
16813 lt_prog_compiler_no_builtin_flag_GCJ=
16814
16815 if test "$GCC" = yes; then
16816   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16817
16818
16819 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16820 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16821 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16822   echo $ECHO_N "(cached) $ECHO_C" >&6
16823 else
16824   lt_cv_prog_compiler_rtti_exceptions=no
16825   ac_outfile=conftest.$ac_objext
16826    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16827    lt_compiler_flag="-fno-rtti -fno-exceptions"
16828    # Insert the option either (1) after the last *FLAGS variable, or
16829    # (2) before a word containing "conftest.", or (3) at the end.
16830    # Note that $ac_compile itself does not contain backslashes and begins
16831    # with a dollar sign (not a hyphen), so the echo should work correctly.
16832    # The option is referenced via a variable to avoid confusing sed.
16833    lt_compile=`echo "$ac_compile" | $SED \
16834    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16835    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16836    -e 's:$: $lt_compiler_flag:'`
16837    (eval echo "\"\$as_me:16837: $lt_compile\"" >&5)
16838    (eval "$lt_compile" 2>conftest.err)
16839    ac_status=$?
16840    cat conftest.err >&5
16841    echo "$as_me:16841: \$? = $ac_status" >&5
16842    if (exit $ac_status) && test -s "$ac_outfile"; then
16843      # The compiler can only warn and ignore the option if not recognized
16844      # So say no if there are warnings other than the usual output.
16845      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16846      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16847      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16848        lt_cv_prog_compiler_rtti_exceptions=yes
16849      fi
16850    fi
16851    $rm conftest*
16852
16853 fi
16854 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16855 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16856
16857 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16858     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16859 else
16860     :
16861 fi
16862
16863 fi
16864
16865 lt_prog_compiler_wl_GCJ=
16866 lt_prog_compiler_pic_GCJ=
16867 lt_prog_compiler_static_GCJ=
16868
16869 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16870 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16871
16872   if test "$GCC" = yes; then
16873     lt_prog_compiler_wl_GCJ='-Wl,'
16874     lt_prog_compiler_static_GCJ='-static'
16875
16876     case $host_os in
16877       aix*)
16878       # All AIX code is PIC.
16879       if test "$host_cpu" = ia64; then
16880         # AIX 5 now supports IA64 processor
16881         lt_prog_compiler_static_GCJ='-Bstatic'
16882       fi
16883       ;;
16884
16885     amigaos*)
16886       # FIXME: we need at least 68020 code to build shared libraries, but
16887       # adding the `-m68020' flag to GCC prevents building anything better,
16888       # like `-m68040'.
16889       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16890       ;;
16891
16892     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16893       # PIC is the default for these OSes.
16894       ;;
16895
16896     mingw* | cygwin* | pw32* | os2*)
16897       # This hack is so that the source file can tell whether it is being
16898       # built for inclusion in a dll (and should export symbols for example).
16899       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16900       # (--disable-auto-import) libraries
16901
16902       ;;
16903
16904     darwin* | rhapsody*)
16905       # PIC is the default on this platform
16906       # Common symbols not allowed in MH_DYLIB files
16907       lt_prog_compiler_pic_GCJ='-fno-common'
16908       ;;
16909
16910     interix[3-9]*)
16911       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16912       # Instead, we relocate shared libraries at runtime.
16913       ;;
16914
16915     msdosdjgpp*)
16916       # Just because we use GCC doesn't mean we suddenly get shared libraries
16917       # on systems that don't support them.
16918       lt_prog_compiler_can_build_shared_GCJ=no
16919       enable_shared=no
16920       ;;
16921
16922     sysv4*MP*)
16923       if test -d /usr/nec; then
16924         lt_prog_compiler_pic_GCJ=-Kconform_pic
16925       fi
16926       ;;
16927
16928     hpux*)
16929       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16930       # not for PA HP-UX.
16931       case $host_cpu in
16932       hppa*64*|ia64*)
16933         # +Z the default
16934         ;;
16935       *)
16936         lt_prog_compiler_pic_GCJ='-fPIC'
16937         ;;
16938       esac
16939       ;;
16940
16941     *)
16942       lt_prog_compiler_pic_GCJ='-fPIC'
16943       ;;
16944     esac
16945   else
16946     # PORTME Check for flag to pass linker flags through the system compiler.
16947     case $host_os in
16948     aix*)
16949       lt_prog_compiler_wl_GCJ='-Wl,'
16950       if test "$host_cpu" = ia64; then
16951         # AIX 5 now supports IA64 processor
16952         lt_prog_compiler_static_GCJ='-Bstatic'
16953       else
16954         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16955       fi
16956       ;;
16957       darwin*)
16958         # PIC is the default on this platform
16959         # Common symbols not allowed in MH_DYLIB files
16960        case $cc_basename in
16961          xlc*)
16962          lt_prog_compiler_pic_GCJ='-qnocommon'
16963          lt_prog_compiler_wl_GCJ='-Wl,'
16964          ;;
16965        esac
16966        ;;
16967
16968     mingw* | cygwin* | pw32* | os2*)
16969       # This hack is so that the source file can tell whether it is being
16970       # built for inclusion in a dll (and should export symbols for example).
16971
16972       ;;
16973
16974     hpux9* | hpux10* | hpux11*)
16975       lt_prog_compiler_wl_GCJ='-Wl,'
16976       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16977       # not for PA HP-UX.
16978       case $host_cpu in
16979       hppa*64*|ia64*)
16980         # +Z the default
16981         ;;
16982       *)
16983         lt_prog_compiler_pic_GCJ='+Z'
16984         ;;
16985       esac
16986       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16987       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16988       ;;
16989
16990     irix5* | irix6* | nonstopux*)
16991       lt_prog_compiler_wl_GCJ='-Wl,'
16992       # PIC (with -KPIC) is the default.
16993       lt_prog_compiler_static_GCJ='-non_shared'
16994       ;;
16995
16996     newsos6)
16997       lt_prog_compiler_pic_GCJ='-KPIC'
16998       lt_prog_compiler_static_GCJ='-Bstatic'
16999       ;;
17000
17001     linux* | k*bsd*-gnu)
17002       case $cc_basename in
17003       icc* | ecc*)
17004         lt_prog_compiler_wl_GCJ='-Wl,'
17005         lt_prog_compiler_pic_GCJ='-KPIC'
17006         lt_prog_compiler_static_GCJ='-static'
17007         ;;
17008       pgcc* | pgf77* | pgf90* | pgf95*)
17009         # Portland Group compilers (*not* the Pentium gcc compiler,
17010         # which looks to be a dead project)
17011         lt_prog_compiler_wl_GCJ='-Wl,'
17012         lt_prog_compiler_pic_GCJ='-fpic'
17013         lt_prog_compiler_static_GCJ='-Bstatic'
17014         ;;
17015       ccc*)
17016         lt_prog_compiler_wl_GCJ='-Wl,'
17017         # All Alpha code is PIC.
17018         lt_prog_compiler_static_GCJ='-non_shared'
17019         ;;
17020       *)
17021         case `$CC -V 2>&1 | sed 5q` in
17022         *Sun\ C*)
17023           # Sun C 5.9
17024           lt_prog_compiler_pic_GCJ='-KPIC'
17025           lt_prog_compiler_static_GCJ='-Bstatic'
17026           lt_prog_compiler_wl_GCJ='-Wl,'
17027           ;;
17028         *Sun\ F*)
17029           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17030           lt_prog_compiler_pic_GCJ='-KPIC'
17031           lt_prog_compiler_static_GCJ='-Bstatic'
17032           lt_prog_compiler_wl_GCJ=''
17033           ;;
17034         esac
17035         ;;
17036       esac
17037       ;;
17038
17039     osf3* | osf4* | osf5*)
17040       lt_prog_compiler_wl_GCJ='-Wl,'
17041       # All OSF/1 code is PIC.
17042       lt_prog_compiler_static_GCJ='-non_shared'
17043       ;;
17044
17045     rdos*)
17046       lt_prog_compiler_static_GCJ='-non_shared'
17047       ;;
17048
17049     solaris*)
17050       lt_prog_compiler_pic_GCJ='-KPIC'
17051       lt_prog_compiler_static_GCJ='-Bstatic'
17052       case $cc_basename in
17053       f77* | f90* | f95*)
17054         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17055       *)
17056         lt_prog_compiler_wl_GCJ='-Wl,';;
17057       esac
17058       ;;
17059
17060     sunos4*)
17061       lt_prog_compiler_wl_GCJ='-Qoption ld '
17062       lt_prog_compiler_pic_GCJ='-PIC'
17063       lt_prog_compiler_static_GCJ='-Bstatic'
17064       ;;
17065
17066     sysv4 | sysv4.2uw2* | sysv4.3*)
17067       lt_prog_compiler_wl_GCJ='-Wl,'
17068       lt_prog_compiler_pic_GCJ='-KPIC'
17069       lt_prog_compiler_static_GCJ='-Bstatic'
17070       ;;
17071
17072     sysv4*MP*)
17073       if test -d /usr/nec ;then
17074         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17075         lt_prog_compiler_static_GCJ='-Bstatic'
17076       fi
17077       ;;
17078
17079     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17080       lt_prog_compiler_wl_GCJ='-Wl,'
17081       lt_prog_compiler_pic_GCJ='-KPIC'
17082       lt_prog_compiler_static_GCJ='-Bstatic'
17083       ;;
17084
17085     unicos*)
17086       lt_prog_compiler_wl_GCJ='-Wl,'
17087       lt_prog_compiler_can_build_shared_GCJ=no
17088       ;;
17089
17090     uts4*)
17091       lt_prog_compiler_pic_GCJ='-pic'
17092       lt_prog_compiler_static_GCJ='-Bstatic'
17093       ;;
17094
17095     *)
17096       lt_prog_compiler_can_build_shared_GCJ=no
17097       ;;
17098     esac
17099   fi
17100
17101 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17102 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17103
17104 #
17105 # Check to make sure the PIC flag actually works.
17106 #
17107 if test -n "$lt_prog_compiler_pic_GCJ"; then
17108
17109 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17110 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17111 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17112   echo $ECHO_N "(cached) $ECHO_C" >&6
17113 else
17114   lt_cv_prog_compiler_pic_works_GCJ=no
17115   ac_outfile=conftest.$ac_objext
17116    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17117    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17118    # Insert the option either (1) after the last *FLAGS variable, or
17119    # (2) before a word containing "conftest.", or (3) at the end.
17120    # Note that $ac_compile itself does not contain backslashes and begins
17121    # with a dollar sign (not a hyphen), so the echo should work correctly.
17122    # The option is referenced via a variable to avoid confusing sed.
17123    lt_compile=`echo "$ac_compile" | $SED \
17124    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17125    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17126    -e 's:$: $lt_compiler_flag:'`
17127    (eval echo "\"\$as_me:17127: $lt_compile\"" >&5)
17128    (eval "$lt_compile" 2>conftest.err)
17129    ac_status=$?
17130    cat conftest.err >&5
17131    echo "$as_me:17131: \$? = $ac_status" >&5
17132    if (exit $ac_status) && test -s "$ac_outfile"; then
17133      # The compiler can only warn and ignore the option if not recognized
17134      # So say no if there are warnings other than the usual output.
17135      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17136      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17137      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17138        lt_cv_prog_compiler_pic_works_GCJ=yes
17139      fi
17140    fi
17141    $rm conftest*
17142
17143 fi
17144 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17145 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17146
17147 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17148     case $lt_prog_compiler_pic_GCJ in
17149      "" | " "*) ;;
17150      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17151      esac
17152 else
17153     lt_prog_compiler_pic_GCJ=
17154      lt_prog_compiler_can_build_shared_GCJ=no
17155 fi
17156
17157 fi
17158 case $host_os in
17159   # For platforms which do not support PIC, -DPIC is meaningless:
17160   *djgpp*)
17161     lt_prog_compiler_pic_GCJ=
17162     ;;
17163   *)
17164     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17165     ;;
17166 esac
17167
17168 #
17169 # Check to make sure the static flag actually works.
17170 #
17171 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17172 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17173 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17174 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17175   echo $ECHO_N "(cached) $ECHO_C" >&6
17176 else
17177   lt_cv_prog_compiler_static_works_GCJ=no
17178    save_LDFLAGS="$LDFLAGS"
17179    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17180    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17181    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17182      # The linker can only warn and ignore the option if not recognized
17183      # So say no if there are warnings
17184      if test -s conftest.err; then
17185        # Append any errors to the config.log.
17186        cat conftest.err 1>&5
17187        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17188        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17189        if diff conftest.exp conftest.er2 >/dev/null; then
17190          lt_cv_prog_compiler_static_works_GCJ=yes
17191        fi
17192      else
17193        lt_cv_prog_compiler_static_works_GCJ=yes
17194      fi
17195    fi
17196    $rm -r conftest*
17197    LDFLAGS="$save_LDFLAGS"
17198
17199 fi
17200 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17201 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17202
17203 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17204     :
17205 else
17206     lt_prog_compiler_static_GCJ=
17207 fi
17208
17209
17210 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17211 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17212 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17213   echo $ECHO_N "(cached) $ECHO_C" >&6
17214 else
17215   lt_cv_prog_compiler_c_o_GCJ=no
17216    $rm -r conftest 2>/dev/null
17217    mkdir conftest
17218    cd conftest
17219    mkdir out
17220    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17221
17222    lt_compiler_flag="-o out/conftest2.$ac_objext"
17223    # Insert the option either (1) after the last *FLAGS variable, or
17224    # (2) before a word containing "conftest.", or (3) at the end.
17225    # Note that $ac_compile itself does not contain backslashes and begins
17226    # with a dollar sign (not a hyphen), so the echo should work correctly.
17227    lt_compile=`echo "$ac_compile" | $SED \
17228    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17229    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17230    -e 's:$: $lt_compiler_flag:'`
17231    (eval echo "\"\$as_me:17231: $lt_compile\"" >&5)
17232    (eval "$lt_compile" 2>out/conftest.err)
17233    ac_status=$?
17234    cat out/conftest.err >&5
17235    echo "$as_me:17235: \$? = $ac_status" >&5
17236    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17237    then
17238      # The compiler can only warn and ignore the option if not recognized
17239      # So say no if there are warnings
17240      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17241      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17242      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17243        lt_cv_prog_compiler_c_o_GCJ=yes
17244      fi
17245    fi
17246    chmod u+w . 2>&5
17247    $rm conftest*
17248    # SGI C++ compiler will create directory out/ii_files/ for
17249    # template instantiation
17250    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17251    $rm out/* && rmdir out
17252    cd ..
17253    rmdir conftest
17254    $rm conftest*
17255
17256 fi
17257 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17258 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17259
17260
17261 hard_links="nottested"
17262 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17263   # do not overwrite the value of need_locks provided by the user
17264   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17265 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17266   hard_links=yes
17267   $rm conftest*
17268   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17269   touch conftest.a
17270   ln conftest.a conftest.b 2>&5 || hard_links=no
17271   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17272   { echo "$as_me:$LINENO: result: $hard_links" >&5
17273 echo "${ECHO_T}$hard_links" >&6; }
17274   if test "$hard_links" = no; then
17275     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17276 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17277     need_locks=warn
17278   fi
17279 else
17280   need_locks=no
17281 fi
17282
17283 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17284 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17285
17286   runpath_var=
17287   allow_undefined_flag_GCJ=
17288   enable_shared_with_static_runtimes_GCJ=no
17289   archive_cmds_GCJ=
17290   archive_expsym_cmds_GCJ=
17291   old_archive_From_new_cmds_GCJ=
17292   old_archive_from_expsyms_cmds_GCJ=
17293   export_dynamic_flag_spec_GCJ=
17294   whole_archive_flag_spec_GCJ=
17295   thread_safe_flag_spec_GCJ=
17296   hardcode_libdir_flag_spec_GCJ=
17297   hardcode_libdir_flag_spec_ld_GCJ=
17298   hardcode_libdir_separator_GCJ=
17299   hardcode_direct_GCJ=no
17300   hardcode_minus_L_GCJ=no
17301   hardcode_shlibpath_var_GCJ=unsupported
17302   link_all_deplibs_GCJ=unknown
17303   hardcode_automatic_GCJ=no
17304   module_cmds_GCJ=
17305   module_expsym_cmds_GCJ=
17306   always_export_symbols_GCJ=no
17307   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17308   # include_expsyms should be a list of space-separated symbols to be *always*
17309   # included in the symbol list
17310   include_expsyms_GCJ=
17311   # exclude_expsyms can be an extended regexp of symbols to exclude
17312   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17313   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17314   # as well as any symbol that contains `d'.
17315   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17316   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17317   # platforms (ab)use it in PIC code, but their linkers get confused if
17318   # the symbol is explicitly referenced.  Since portable code cannot
17319   # rely on this symbol name, it's probably fine to never include it in
17320   # preloaded symbol tables.
17321   # Exclude shared library initialization/finalization symbols.
17322   extract_expsyms_cmds=
17323   # Just being paranoid about ensuring that cc_basename is set.
17324   for cc_temp in $compiler""; do
17325   case $cc_temp in
17326     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17327     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17328     \-*) ;;
17329     *) break;;
17330   esac
17331 done
17332 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17333
17334   case $host_os in
17335   cygwin* | mingw* | pw32*)
17336     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17337     # When not using gcc, we currently assume that we are using
17338     # Microsoft Visual C++.
17339     if test "$GCC" != yes; then
17340       with_gnu_ld=no
17341     fi
17342     ;;
17343   interix*)
17344     # we just hope/assume this is gcc and not c89 (= MSVC++)
17345     with_gnu_ld=yes
17346     ;;
17347   openbsd*)
17348     with_gnu_ld=no
17349     ;;
17350   esac
17351
17352   ld_shlibs_GCJ=yes
17353   if test "$with_gnu_ld" = yes; then
17354     # If archive_cmds runs LD, not CC, wlarc should be empty
17355     wlarc='${wl}'
17356
17357     # Set some defaults for GNU ld with shared library support. These
17358     # are reset later if shared libraries are not supported. Putting them
17359     # here allows them to be overridden if necessary.
17360     runpath_var=LD_RUN_PATH
17361     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17362     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17363     # ancient GNU ld didn't support --whole-archive et. al.
17364     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17365         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17366       else
17367         whole_archive_flag_spec_GCJ=
17368     fi
17369     supports_anon_versioning=no
17370     case `$LD -v 2>/dev/null` in
17371       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17372       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17373       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17374       *\ 2.11.*) ;; # other 2.11 versions
17375       *) supports_anon_versioning=yes ;;
17376     esac
17377
17378     # See if GNU ld supports shared libraries.
17379     case $host_os in
17380     aix[3-9]*)
17381       # On AIX/PPC, the GNU linker is very broken
17382       if test "$host_cpu" != ia64; then
17383         ld_shlibs_GCJ=no
17384         cat <<EOF 1>&2
17385
17386 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17387 *** to be unable to reliably create shared libraries on AIX.
17388 *** Therefore, libtool is disabling shared libraries support.  If you
17389 *** really care for shared libraries, you may want to modify your PATH
17390 *** so that a non-GNU linker is found, and then restart.
17391
17392 EOF
17393       fi
17394       ;;
17395
17396     amigaos*)
17397       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)'
17398       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17399       hardcode_minus_L_GCJ=yes
17400
17401       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17402       # that the semantics of dynamic libraries on AmigaOS, at least up
17403       # to version 4, is to share data among multiple programs linked
17404       # with the same dynamic library.  Since this doesn't match the
17405       # behavior of shared libraries on other platforms, we can't use
17406       # them.
17407       ld_shlibs_GCJ=no
17408       ;;
17409
17410     beos*)
17411       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17412         allow_undefined_flag_GCJ=unsupported
17413         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17414         # support --undefined.  This deserves some investigation.  FIXME
17415         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17416       else
17417         ld_shlibs_GCJ=no
17418       fi
17419       ;;
17420
17421     cygwin* | mingw* | pw32*)
17422       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17423       # as there is no search path for DLLs.
17424       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17425       allow_undefined_flag_GCJ=unsupported
17426       always_export_symbols_GCJ=no
17427       enable_shared_with_static_runtimes_GCJ=yes
17428       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17429
17430       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17431         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17432         # If the export-symbols file already is a .def file (1st line
17433         # is EXPORTS), use it as is; otherwise, prepend...
17434         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17435           cp $export_symbols $output_objdir/$soname.def;
17436         else
17437           echo EXPORTS > $output_objdir/$soname.def;
17438           cat $export_symbols >> $output_objdir/$soname.def;
17439         fi~
17440         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17441       else
17442         ld_shlibs_GCJ=no
17443       fi
17444       ;;
17445
17446     interix[3-9]*)
17447       hardcode_direct_GCJ=no
17448       hardcode_shlibpath_var_GCJ=no
17449       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17450       export_dynamic_flag_spec_GCJ='${wl}-E'
17451       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17452       # Instead, shared libraries are loaded at an image base (0x10000000 by
17453       # default) and relocated if they conflict, which is a slow very memory
17454       # consuming and fragmenting process.  To avoid this, we pick a random,
17455       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17456       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17457       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'
17458       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'
17459       ;;
17460
17461     gnu* | linux* | k*bsd*-gnu)
17462       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17463         tmp_addflag=
17464         case $cc_basename,$host_cpu in
17465         pgcc*)                          # Portland Group C compiler
17466           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'
17467           tmp_addflag=' $pic_flag'
17468           ;;
17469         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17470           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'
17471           tmp_addflag=' $pic_flag -Mnomain' ;;
17472         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17473           tmp_addflag=' -i_dynamic' ;;
17474         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17475           tmp_addflag=' -i_dynamic -nofor_main' ;;
17476         ifc* | ifort*)                  # Intel Fortran compiler
17477           tmp_addflag=' -nofor_main' ;;
17478         esac
17479         case `$CC -V 2>&1 | sed 5q` in
17480         *Sun\ C*)                       # Sun C 5.9
17481           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17482           tmp_sharedflag='-G' ;;
17483         *Sun\ F*)                       # Sun Fortran 8.3
17484           tmp_sharedflag='-G' ;;
17485         *)
17486           tmp_sharedflag='-shared' ;;
17487         esac
17488         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17489
17490         if test $supports_anon_versioning = yes; then
17491           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17492   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17493   $echo "local: *; };" >> $output_objdir/$libname.ver~
17494           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17495         fi
17496         link_all_deplibs_GCJ=no
17497       else
17498         ld_shlibs_GCJ=no
17499       fi
17500       ;;
17501
17502     netbsd* | netbsdelf*-gnu)
17503       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17504         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17505         wlarc=
17506       else
17507         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17508         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17509       fi
17510       ;;
17511
17512     solaris*)
17513       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17514         ld_shlibs_GCJ=no
17515         cat <<EOF 1>&2
17516
17517 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17518 *** create shared libraries on Solaris systems.  Therefore, libtool
17519 *** is disabling shared libraries support.  We urge you to upgrade GNU
17520 *** binutils to release 2.9.1 or newer.  Another option is to modify
17521 *** your PATH or compiler configuration so that the native linker is
17522 *** used, and then restart.
17523
17524 EOF
17525       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17526         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17527         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17528       else
17529         ld_shlibs_GCJ=no
17530       fi
17531       ;;
17532
17533     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17534       case `$LD -v 2>&1` in
17535         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17536         ld_shlibs_GCJ=no
17537         cat <<_LT_EOF 1>&2
17538
17539 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17540 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17541 *** is disabling shared libraries support.  We urge you to upgrade GNU
17542 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17543 *** your PATH or compiler configuration so that the native linker is
17544 *** used, and then restart.
17545
17546 _LT_EOF
17547         ;;
17548         *)
17549           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17550             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17551             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17552             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17553           else
17554             ld_shlibs_GCJ=no
17555           fi
17556         ;;
17557       esac
17558       ;;
17559
17560     sunos4*)
17561       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17562       wlarc=
17563       hardcode_direct_GCJ=yes
17564       hardcode_shlibpath_var_GCJ=no
17565       ;;
17566
17567     *)
17568       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17569         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17570         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17571       else
17572         ld_shlibs_GCJ=no
17573       fi
17574       ;;
17575     esac
17576
17577     if test "$ld_shlibs_GCJ" = no; then
17578       runpath_var=
17579       hardcode_libdir_flag_spec_GCJ=
17580       export_dynamic_flag_spec_GCJ=
17581       whole_archive_flag_spec_GCJ=
17582     fi
17583   else
17584     # PORTME fill in a description of your system's linker (not GNU ld)
17585     case $host_os in
17586     aix3*)
17587       allow_undefined_flag_GCJ=unsupported
17588       always_export_symbols_GCJ=yes
17589       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'
17590       # Note: this linker hardcodes the directories in LIBPATH if there
17591       # are no directories specified by -L.
17592       hardcode_minus_L_GCJ=yes
17593       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17594         # Neither direct hardcoding nor static linking is supported with a
17595         # broken collect2.
17596         hardcode_direct_GCJ=unsupported
17597       fi
17598       ;;
17599
17600     aix[4-9]*)
17601       if test "$host_cpu" = ia64; then
17602         # On IA64, the linker does run time linking by default, so we don't
17603         # have to do anything special.
17604         aix_use_runtimelinking=no
17605         exp_sym_flag='-Bexport'
17606         no_entry_flag=""
17607       else
17608         # If we're using GNU nm, then we don't want the "-C" option.
17609         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17610         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17611           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'
17612         else
17613           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'
17614         fi
17615         aix_use_runtimelinking=no
17616
17617         # Test if we are trying to use run time linking or normal
17618         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17619         # need to do runtime linking.
17620         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17621           for ld_flag in $LDFLAGS; do
17622           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17623             aix_use_runtimelinking=yes
17624             break
17625           fi
17626           done
17627           ;;
17628         esac
17629
17630         exp_sym_flag='-bexport'
17631         no_entry_flag='-bnoentry'
17632       fi
17633
17634       # When large executables or shared objects are built, AIX ld can
17635       # have problems creating the table of contents.  If linking a library
17636       # or program results in "error TOC overflow" add -mminimal-toc to
17637       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17638       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17639
17640       archive_cmds_GCJ=''
17641       hardcode_direct_GCJ=yes
17642       hardcode_libdir_separator_GCJ=':'
17643       link_all_deplibs_GCJ=yes
17644
17645       if test "$GCC" = yes; then
17646         case $host_os in aix4.[012]|aix4.[012].*)
17647         # We only want to do this on AIX 4.2 and lower, the check
17648         # below for broken collect2 doesn't work under 4.3+
17649           collect2name=`${CC} -print-prog-name=collect2`
17650           if test -f "$collect2name" && \
17651            strings "$collect2name" | grep resolve_lib_name >/dev/null
17652           then
17653           # We have reworked collect2
17654           :
17655           else
17656           # We have old collect2
17657           hardcode_direct_GCJ=unsupported
17658           # It fails to find uninstalled libraries when the uninstalled
17659           # path is not listed in the libpath.  Setting hardcode_minus_L
17660           # to unsupported forces relinking
17661           hardcode_minus_L_GCJ=yes
17662           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17663           hardcode_libdir_separator_GCJ=
17664           fi
17665           ;;
17666         esac
17667         shared_flag='-shared'
17668         if test "$aix_use_runtimelinking" = yes; then
17669           shared_flag="$shared_flag "'${wl}-G'
17670         fi
17671       else
17672         # not using gcc
17673         if test "$host_cpu" = ia64; then
17674         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17675         # chokes on -Wl,-G. The following line is correct:
17676           shared_flag='-G'
17677         else
17678           if test "$aix_use_runtimelinking" = yes; then
17679             shared_flag='${wl}-G'
17680           else
17681             shared_flag='${wl}-bM:SRE'
17682           fi
17683         fi
17684       fi
17685
17686       # It seems that -bexpall does not export symbols beginning with
17687       # underscore (_), so it is better to generate a list of symbols to export.
17688       always_export_symbols_GCJ=yes
17689       if test "$aix_use_runtimelinking" = yes; then
17690         # Warning - without using the other runtime loading flags (-brtl),
17691         # -berok will link without error, but may produce a broken library.
17692         allow_undefined_flag_GCJ='-berok'
17693        # Determine the default libpath from the value encoded in an empty executable.
17694        cat >conftest.$ac_ext <<_ACEOF
17695 /* confdefs.h.  */
17696 _ACEOF
17697 cat confdefs.h >>conftest.$ac_ext
17698 cat >>conftest.$ac_ext <<_ACEOF
17699 /* end confdefs.h.  */
17700
17701 int
17702 main ()
17703 {
17704
17705   ;
17706   return 0;
17707 }
17708 _ACEOF
17709 rm -f conftest.$ac_objext conftest$ac_exeext
17710 if { (ac_try="$ac_link"
17711 case "(($ac_try" in
17712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17713   *) ac_try_echo=$ac_try;;
17714 esac
17715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17716   (eval "$ac_link") 2>conftest.er1
17717   ac_status=$?
17718   grep -v '^ *+' conftest.er1 >conftest.err
17719   rm -f conftest.er1
17720   cat conftest.err >&5
17721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722   (exit $ac_status); } && {
17723          test -z "$ac_c_werror_flag" ||
17724          test ! -s conftest.err
17725        } && test -s conftest$ac_exeext &&
17726        $as_test_x conftest$ac_exeext; then
17727
17728 lt_aix_libpath_sed='
17729     /Import File Strings/,/^$/ {
17730         /^0/ {
17731             s/^0  *\(.*\)$/\1/
17732             p
17733         }
17734     }'
17735 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17736 # Check for a 64-bit object if we didn't find anything.
17737 if test -z "$aix_libpath"; then
17738   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17739 fi
17740 else
17741   echo "$as_me: failed program was:" >&5
17742 sed 's/^/| /' conftest.$ac_ext >&5
17743
17744
17745 fi
17746
17747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17748       conftest$ac_exeext conftest.$ac_ext
17749 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17750
17751        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17752         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"
17753        else
17754         if test "$host_cpu" = ia64; then
17755           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17756           allow_undefined_flag_GCJ="-z nodefs"
17757           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"
17758         else
17759          # Determine the default libpath from the value encoded in an empty executable.
17760          cat >conftest.$ac_ext <<_ACEOF
17761 /* confdefs.h.  */
17762 _ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h.  */
17766
17767 int
17768 main ()
17769 {
17770
17771   ;
17772   return 0;
17773 }
17774 _ACEOF
17775 rm -f conftest.$ac_objext conftest$ac_exeext
17776 if { (ac_try="$ac_link"
17777 case "(($ac_try" in
17778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17779   *) ac_try_echo=$ac_try;;
17780 esac
17781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17782   (eval "$ac_link") 2>conftest.er1
17783   ac_status=$?
17784   grep -v '^ *+' conftest.er1 >conftest.err
17785   rm -f conftest.er1
17786   cat conftest.err >&5
17787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788   (exit $ac_status); } && {
17789          test -z "$ac_c_werror_flag" ||
17790          test ! -s conftest.err
17791        } && test -s conftest$ac_exeext &&
17792        $as_test_x conftest$ac_exeext; then
17793
17794 lt_aix_libpath_sed='
17795     /Import File Strings/,/^$/ {
17796         /^0/ {
17797             s/^0  *\(.*\)$/\1/
17798             p
17799         }
17800     }'
17801 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17802 # Check for a 64-bit object if we didn't find anything.
17803 if test -z "$aix_libpath"; then
17804   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17805 fi
17806 else
17807   echo "$as_me: failed program was:" >&5
17808 sed 's/^/| /' conftest.$ac_ext >&5
17809
17810
17811 fi
17812
17813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17814       conftest$ac_exeext conftest.$ac_ext
17815 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17816
17817          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17818           # Warning - without using the other run time loading flags,
17819           # -berok will link without error, but may produce a broken library.
17820           no_undefined_flag_GCJ=' ${wl}-bernotok'
17821           allow_undefined_flag_GCJ=' ${wl}-berok'
17822           # Exported symbols can be pulled into shared objects from archives
17823           whole_archive_flag_spec_GCJ='$convenience'
17824           archive_cmds_need_lc_GCJ=yes
17825           # This is similar to how AIX traditionally builds its shared libraries.
17826           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'
17827         fi
17828       fi
17829       ;;
17830
17831     amigaos*)
17832       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)'
17833       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17834       hardcode_minus_L_GCJ=yes
17835       # see comment about different semantics on the GNU ld section
17836       ld_shlibs_GCJ=no
17837       ;;
17838
17839     bsdi[45]*)
17840       export_dynamic_flag_spec_GCJ=-rdynamic
17841       ;;
17842
17843     cygwin* | mingw* | pw32*)
17844       # When not using gcc, we currently assume that we are using
17845       # Microsoft Visual C++.
17846       # hardcode_libdir_flag_spec is actually meaningless, as there is
17847       # no search path for DLLs.
17848       hardcode_libdir_flag_spec_GCJ=' '
17849       allow_undefined_flag_GCJ=unsupported
17850       # Tell ltmain to make .lib files, not .a files.
17851       libext=lib
17852       # Tell ltmain to make .dll files, not .so files.
17853       shrext_cmds=".dll"
17854       # FIXME: Setting linknames here is a bad hack.
17855       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17856       # The linker will automatically build a .lib file if we build a DLL.
17857       old_archive_From_new_cmds_GCJ='true'
17858       # FIXME: Should let the user specify the lib program.
17859       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17860       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17861       enable_shared_with_static_runtimes_GCJ=yes
17862       ;;
17863
17864     darwin* | rhapsody*)
17865       case $host_os in
17866         rhapsody* | darwin1.[012])
17867          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17868          ;;
17869        *) # Darwin 1.3 on
17870          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17871            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17872          else
17873            case ${MACOSX_DEPLOYMENT_TARGET} in
17874              10.[012])
17875                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17876                ;;
17877              10.*)
17878                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17879                ;;
17880            esac
17881          fi
17882          ;;
17883       esac
17884       archive_cmds_need_lc_GCJ=no
17885       hardcode_direct_GCJ=no
17886       hardcode_automatic_GCJ=yes
17887       hardcode_shlibpath_var_GCJ=unsupported
17888       whole_archive_flag_spec_GCJ=''
17889       link_all_deplibs_GCJ=yes
17890     if test "$GCC" = yes ; then
17891         output_verbose_link_cmd='echo'
17892         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17893         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17894         archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17895         module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17896     else
17897       case $cc_basename in
17898         xlc*)
17899          output_verbose_link_cmd='echo'
17900          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17901          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17902           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17903          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17904           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}'
17905           ;;
17906        *)
17907          ld_shlibs_GCJ=no
17908           ;;
17909       esac
17910     fi
17911       ;;
17912
17913     dgux*)
17914       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17915       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17916       hardcode_shlibpath_var_GCJ=no
17917       ;;
17918
17919     freebsd1*)
17920       ld_shlibs_GCJ=no
17921       ;;
17922
17923     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17924     # support.  Future versions do this automatically, but an explicit c++rt0.o
17925     # does not break anything, and helps significantly (at the cost of a little
17926     # extra space).
17927     freebsd2.2*)
17928       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17929       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17930       hardcode_direct_GCJ=yes
17931       hardcode_shlibpath_var_GCJ=no
17932       ;;
17933
17934     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17935     freebsd2*)
17936       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17937       hardcode_direct_GCJ=yes
17938       hardcode_minus_L_GCJ=yes
17939       hardcode_shlibpath_var_GCJ=no
17940       ;;
17941
17942     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17943     freebsd* | dragonfly*)
17944       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17945       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17946       hardcode_direct_GCJ=yes
17947       hardcode_shlibpath_var_GCJ=no
17948       ;;
17949
17950     hpux9*)
17951       if test "$GCC" = yes; then
17952         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'
17953       else
17954         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'
17955       fi
17956       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17957       hardcode_libdir_separator_GCJ=:
17958       hardcode_direct_GCJ=yes
17959
17960       # hardcode_minus_L: Not really in the search PATH,
17961       # but as the default location of the library.
17962       hardcode_minus_L_GCJ=yes
17963       export_dynamic_flag_spec_GCJ='${wl}-E'
17964       ;;
17965
17966     hpux10*)
17967       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17968         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17969       else
17970         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17971       fi
17972       if test "$with_gnu_ld" = no; then
17973         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17974         hardcode_libdir_separator_GCJ=:
17975
17976         hardcode_direct_GCJ=yes
17977         export_dynamic_flag_spec_GCJ='${wl}-E'
17978
17979         # hardcode_minus_L: Not really in the search PATH,
17980         # but as the default location of the library.
17981         hardcode_minus_L_GCJ=yes
17982       fi
17983       ;;
17984
17985     hpux11*)
17986       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17987         case $host_cpu in
17988         hppa*64*)
17989           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17990           ;;
17991         ia64*)
17992           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17993           ;;
17994         *)
17995           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17996           ;;
17997         esac
17998       else
17999         case $host_cpu in
18000         hppa*64*)
18001           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18002           ;;
18003         ia64*)
18004           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18005           ;;
18006         *)
18007           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18008           ;;
18009         esac
18010       fi
18011       if test "$with_gnu_ld" = no; then
18012         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18013         hardcode_libdir_separator_GCJ=:
18014
18015         case $host_cpu in
18016         hppa*64*|ia64*)
18017           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18018           hardcode_direct_GCJ=no
18019           hardcode_shlibpath_var_GCJ=no
18020           ;;
18021         *)
18022           hardcode_direct_GCJ=yes
18023           export_dynamic_flag_spec_GCJ='${wl}-E'
18024
18025           # hardcode_minus_L: Not really in the search PATH,
18026           # but as the default location of the library.
18027           hardcode_minus_L_GCJ=yes
18028           ;;
18029         esac
18030       fi
18031       ;;
18032
18033     irix5* | irix6* | nonstopux*)
18034       if test "$GCC" = yes; then
18035         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'
18036       else
18037         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'
18038         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18039       fi
18040       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18041       hardcode_libdir_separator_GCJ=:
18042       link_all_deplibs_GCJ=yes
18043       ;;
18044
18045     netbsd* | netbsdelf*-gnu)
18046       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18047         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18048       else
18049         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18050       fi
18051       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18052       hardcode_direct_GCJ=yes
18053       hardcode_shlibpath_var_GCJ=no
18054       ;;
18055
18056     newsos6)
18057       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18058       hardcode_direct_GCJ=yes
18059       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18060       hardcode_libdir_separator_GCJ=:
18061       hardcode_shlibpath_var_GCJ=no
18062       ;;
18063
18064     openbsd*)
18065       if test -f /usr/libexec/ld.so; then
18066         hardcode_direct_GCJ=yes
18067         hardcode_shlibpath_var_GCJ=no
18068         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18069           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18070           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18071           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18072           export_dynamic_flag_spec_GCJ='${wl}-E'
18073         else
18074           case $host_os in
18075            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18076              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18077              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18078              ;;
18079            *)
18080              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18081              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18082              ;;
18083           esac
18084         fi
18085       else
18086         ld_shlibs_GCJ=no
18087       fi
18088       ;;
18089
18090     os2*)
18091       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18092       hardcode_minus_L_GCJ=yes
18093       allow_undefined_flag_GCJ=unsupported
18094       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'
18095       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18096       ;;
18097
18098     osf3*)
18099       if test "$GCC" = yes; then
18100         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18101         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'
18102       else
18103         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18104         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'
18105       fi
18106       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18107       hardcode_libdir_separator_GCJ=:
18108       ;;
18109
18110     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18111       if test "$GCC" = yes; then
18112         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18113         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'
18114         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18115       else
18116         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18117         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'
18118         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~
18119         $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'
18120
18121         # Both c and cxx compiler support -rpath directly
18122         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18123       fi
18124       hardcode_libdir_separator_GCJ=:
18125       ;;
18126
18127     solaris*)
18128       no_undefined_flag_GCJ=' -z text'
18129       if test "$GCC" = yes; then
18130         wlarc='${wl}'
18131         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18132         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18133           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18134       else
18135         wlarc=''
18136         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18137         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18138         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18139       fi
18140       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18141       hardcode_shlibpath_var_GCJ=no
18142       case $host_os in
18143       solaris2.[0-5] | solaris2.[0-5].*) ;;
18144       *)
18145         # The compiler driver will combine and reorder linker options,
18146         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18147         # but is careful enough not to reorder.
18148         # Supported since Solaris 2.6 (maybe 2.5.1?)
18149         if test "$GCC" = yes; then
18150           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18151         else
18152           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18153         fi
18154         ;;
18155       esac
18156       link_all_deplibs_GCJ=yes
18157       ;;
18158
18159     sunos4*)
18160       if test "x$host_vendor" = xsequent; then
18161         # Use $CC to link under sequent, because it throws in some extra .o
18162         # files that make .init and .fini sections work.
18163         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18164       else
18165         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18166       fi
18167       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18168       hardcode_direct_GCJ=yes
18169       hardcode_minus_L_GCJ=yes
18170       hardcode_shlibpath_var_GCJ=no
18171       ;;
18172
18173     sysv4)
18174       case $host_vendor in
18175         sni)
18176           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18177           hardcode_direct_GCJ=yes # is this really true???
18178         ;;
18179         siemens)
18180           ## LD is ld it makes a PLAMLIB
18181           ## CC just makes a GrossModule.
18182           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18183           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18184           hardcode_direct_GCJ=no
18185         ;;
18186         motorola)
18187           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18188           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18189         ;;
18190       esac
18191       runpath_var='LD_RUN_PATH'
18192       hardcode_shlibpath_var_GCJ=no
18193       ;;
18194
18195     sysv4.3*)
18196       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18197       hardcode_shlibpath_var_GCJ=no
18198       export_dynamic_flag_spec_GCJ='-Bexport'
18199       ;;
18200
18201     sysv4*MP*)
18202       if test -d /usr/nec; then
18203         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18204         hardcode_shlibpath_var_GCJ=no
18205         runpath_var=LD_RUN_PATH
18206         hardcode_runpath_var=yes
18207         ld_shlibs_GCJ=yes
18208       fi
18209       ;;
18210
18211     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18212       no_undefined_flag_GCJ='${wl}-z,text'
18213       archive_cmds_need_lc_GCJ=no
18214       hardcode_shlibpath_var_GCJ=no
18215       runpath_var='LD_RUN_PATH'
18216
18217       if test "$GCC" = yes; then
18218         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18219         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18220       else
18221         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18222         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18223       fi
18224       ;;
18225
18226     sysv5* | sco3.2v5* | sco5v6*)
18227       # Note: We can NOT use -z defs as we might desire, because we do not
18228       # link with -lc, and that would cause any symbols used from libc to
18229       # always be unresolved, which means just about no library would
18230       # ever link correctly.  If we're not using GNU ld we use -z text
18231       # though, which does catch some bad symbols but isn't as heavy-handed
18232       # as -z defs.
18233       no_undefined_flag_GCJ='${wl}-z,text'
18234       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18235       archive_cmds_need_lc_GCJ=no
18236       hardcode_shlibpath_var_GCJ=no
18237       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18238       hardcode_libdir_separator_GCJ=':'
18239       link_all_deplibs_GCJ=yes
18240       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18241       runpath_var='LD_RUN_PATH'
18242
18243       if test "$GCC" = yes; then
18244         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18245         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18246       else
18247         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18248         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18249       fi
18250       ;;
18251
18252     uts4*)
18253       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18254       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18255       hardcode_shlibpath_var_GCJ=no
18256       ;;
18257
18258     *)
18259       ld_shlibs_GCJ=no
18260       ;;
18261     esac
18262   fi
18263
18264 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18265 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18266 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18267
18268 #
18269 # Do we need to explicitly link libc?
18270 #
18271 case "x$archive_cmds_need_lc_GCJ" in
18272 x|xyes)
18273   # Assume -lc should be added
18274   archive_cmds_need_lc_GCJ=yes
18275
18276   if test "$enable_shared" = yes && test "$GCC" = yes; then
18277     case $archive_cmds_GCJ in
18278     *'~'*)
18279       # FIXME: we may have to deal with multi-command sequences.
18280       ;;
18281     '$CC '*)
18282       # Test whether the compiler implicitly links with -lc since on some
18283       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18284       # to ld, don't add -lc before -lgcc.
18285       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18286 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18287       $rm conftest*
18288       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18289
18290       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18291   (eval $ac_compile) 2>&5
18292   ac_status=$?
18293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294   (exit $ac_status); } 2>conftest.err; then
18295         soname=conftest
18296         lib=conftest
18297         libobjs=conftest.$ac_objext
18298         deplibs=
18299         wl=$lt_prog_compiler_wl_GCJ
18300         pic_flag=$lt_prog_compiler_pic_GCJ
18301         compiler_flags=-v
18302         linker_flags=-v
18303         verstring=
18304         output_objdir=.
18305         libname=conftest
18306         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18307         allow_undefined_flag_GCJ=
18308         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18309   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18310   ac_status=$?
18311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312   (exit $ac_status); }
18313         then
18314           archive_cmds_need_lc_GCJ=no
18315         else
18316           archive_cmds_need_lc_GCJ=yes
18317         fi
18318         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18319       else
18320         cat conftest.err 1>&5
18321       fi
18322       $rm conftest*
18323       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18324 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18325       ;;
18326     esac
18327   fi
18328   ;;
18329 esac
18330
18331 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18332 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18333 library_names_spec=
18334 libname_spec='lib$name'
18335 soname_spec=
18336 shrext_cmds=".so"
18337 postinstall_cmds=
18338 postuninstall_cmds=
18339 finish_cmds=
18340 finish_eval=
18341 shlibpath_var=
18342 shlibpath_overrides_runpath=unknown
18343 version_type=none
18344 dynamic_linker="$host_os ld.so"
18345 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18346
18347 need_lib_prefix=unknown
18348 hardcode_into_libs=no
18349
18350 # when you set need_version to no, make sure it does not cause -set_version
18351 # flags to be left without arguments
18352 need_version=unknown
18353
18354 case $host_os in
18355 aix3*)
18356   version_type=linux
18357   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18358   shlibpath_var=LIBPATH
18359
18360   # AIX 3 has no versioning support, so we append a major version to the name.
18361   soname_spec='${libname}${release}${shared_ext}$major'
18362   ;;
18363
18364 aix[4-9]*)
18365   version_type=linux
18366   need_lib_prefix=no
18367   need_version=no
18368   hardcode_into_libs=yes
18369   if test "$host_cpu" = ia64; then
18370     # AIX 5 supports IA64
18371     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18372     shlibpath_var=LD_LIBRARY_PATH
18373   else
18374     # With GCC up to 2.95.x, collect2 would create an import file
18375     # for dependence libraries.  The import file would start with
18376     # the line `#! .'.  This would cause the generated library to
18377     # depend on `.', always an invalid library.  This was fixed in
18378     # development snapshots of GCC prior to 3.0.
18379     case $host_os in
18380       aix4 | aix4.[01] | aix4.[01].*)
18381       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18382            echo ' yes '
18383            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18384         :
18385       else
18386         can_build_shared=no
18387       fi
18388       ;;
18389     esac
18390     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18391     # soname into executable. Probably we can add versioning support to
18392     # collect2, so additional links can be useful in future.
18393     if test "$aix_use_runtimelinking" = yes; then
18394       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18395       # instead of lib<name>.a to let people know that these are not
18396       # typical AIX shared libraries.
18397       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18398     else
18399       # We preserve .a as extension for shared libraries through AIX4.2
18400       # and later when we are not doing run time linking.
18401       library_names_spec='${libname}${release}.a $libname.a'
18402       soname_spec='${libname}${release}${shared_ext}$major'
18403     fi
18404     shlibpath_var=LIBPATH
18405   fi
18406   ;;
18407
18408 amigaos*)
18409   library_names_spec='$libname.ixlibrary $libname.a'
18410   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18411   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'
18412   ;;
18413
18414 beos*)
18415   library_names_spec='${libname}${shared_ext}'
18416   dynamic_linker="$host_os ld.so"
18417   shlibpath_var=LIBRARY_PATH
18418   ;;
18419
18420 bsdi[45]*)
18421   version_type=linux
18422   need_version=no
18423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18424   soname_spec='${libname}${release}${shared_ext}$major'
18425   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18426   shlibpath_var=LD_LIBRARY_PATH
18427   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18428   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18429   # the default ld.so.conf also contains /usr/contrib/lib and
18430   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18431   # libtool to hard-code these into programs
18432   ;;
18433
18434 cygwin* | mingw* | pw32*)
18435   version_type=windows
18436   shrext_cmds=".dll"
18437   need_version=no
18438   need_lib_prefix=no
18439
18440   case $GCC,$host_os in
18441   yes,cygwin* | yes,mingw* | yes,pw32*)
18442     library_names_spec='$libname.dll.a'
18443     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18444     postinstall_cmds='base_file=`basename \${file}`~
18445       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18446       dldir=$destdir/`dirname \$dlpath`~
18447       test -d \$dldir || mkdir -p \$dldir~
18448       $install_prog $dir/$dlname \$dldir/$dlname~
18449       chmod a+x \$dldir/$dlname'
18450     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18451       dlpath=$dir/\$dldll~
18452        $rm \$dlpath'
18453     shlibpath_overrides_runpath=yes
18454
18455     case $host_os in
18456     cygwin*)
18457       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18458       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18459       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18460       ;;
18461     mingw*)
18462       # MinGW DLLs use traditional 'lib' prefix
18463       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18464       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18465       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18466         # It is most probably a Windows format PATH printed by
18467         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18468         # path with ; separators, and with drive letters. We can handle the
18469         # drive letters (cygwin fileutils understands them), so leave them,
18470         # especially as we might pass files found there to a mingw objdump,
18471         # which wouldn't understand a cygwinified path. Ahh.
18472         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18473       else
18474         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18475       fi
18476       ;;
18477     pw32*)
18478       # pw32 DLLs use 'pw' prefix rather than 'lib'
18479       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18480       ;;
18481     esac
18482     ;;
18483
18484   *)
18485     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18486     ;;
18487   esac
18488   dynamic_linker='Win32 ld.exe'
18489   # FIXME: first we should search . and the directory the executable is in
18490   shlibpath_var=PATH
18491   ;;
18492
18493 darwin* | rhapsody*)
18494   dynamic_linker="$host_os dyld"
18495   version_type=darwin
18496   need_lib_prefix=no
18497   need_version=no
18498   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18499   soname_spec='${libname}${release}${major}$shared_ext'
18500   shlibpath_overrides_runpath=yes
18501   shlibpath_var=DYLD_LIBRARY_PATH
18502   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18503
18504   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18505   ;;
18506
18507 dgux*)
18508   version_type=linux
18509   need_lib_prefix=no
18510   need_version=no
18511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18512   soname_spec='${libname}${release}${shared_ext}$major'
18513   shlibpath_var=LD_LIBRARY_PATH
18514   ;;
18515
18516 freebsd1*)
18517   dynamic_linker=no
18518   ;;
18519
18520 freebsd* | dragonfly*)
18521   # DragonFly does not have aout.  When/if they implement a new
18522   # versioning mechanism, adjust this.
18523   if test -x /usr/bin/objformat; then
18524     objformat=`/usr/bin/objformat`
18525   else
18526     case $host_os in
18527     freebsd[123]*) objformat=aout ;;
18528     *) objformat=elf ;;
18529     esac
18530   fi
18531   version_type=freebsd-$objformat
18532   case $version_type in
18533     freebsd-elf*)
18534       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18535       need_version=no
18536       need_lib_prefix=no
18537       ;;
18538     freebsd-*)
18539       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18540       need_version=yes
18541       ;;
18542   esac
18543   shlibpath_var=LD_LIBRARY_PATH
18544   case $host_os in
18545   freebsd2*)
18546     shlibpath_overrides_runpath=yes
18547     ;;
18548   freebsd3.[01]* | freebsdelf3.[01]*)
18549     shlibpath_overrides_runpath=yes
18550     hardcode_into_libs=yes
18551     ;;
18552   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18553   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18554     shlibpath_overrides_runpath=no
18555     hardcode_into_libs=yes
18556     ;;
18557   *) # from 4.6 on, and DragonFly
18558     shlibpath_overrides_runpath=yes
18559     hardcode_into_libs=yes
18560     ;;
18561   esac
18562   ;;
18563
18564 gnu*)
18565   version_type=linux
18566   need_lib_prefix=no
18567   need_version=no
18568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18569   soname_spec='${libname}${release}${shared_ext}$major'
18570   shlibpath_var=LD_LIBRARY_PATH
18571   hardcode_into_libs=yes
18572   ;;
18573
18574 hpux9* | hpux10* | hpux11*)
18575   # Give a soname corresponding to the major version so that dld.sl refuses to
18576   # link against other versions.
18577   version_type=sunos
18578   need_lib_prefix=no
18579   need_version=no
18580   case $host_cpu in
18581   ia64*)
18582     shrext_cmds='.so'
18583     hardcode_into_libs=yes
18584     dynamic_linker="$host_os dld.so"
18585     shlibpath_var=LD_LIBRARY_PATH
18586     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18587     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18588     soname_spec='${libname}${release}${shared_ext}$major'
18589     if test "X$HPUX_IA64_MODE" = X32; then
18590       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18591     else
18592       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18593     fi
18594     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18595     ;;
18596    hppa*64*)
18597      shrext_cmds='.sl'
18598      hardcode_into_libs=yes
18599      dynamic_linker="$host_os dld.sl"
18600      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18601      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18602      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18603      soname_spec='${libname}${release}${shared_ext}$major'
18604      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18605      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18606      ;;
18607    *)
18608     shrext_cmds='.sl'
18609     dynamic_linker="$host_os dld.sl"
18610     shlibpath_var=SHLIB_PATH
18611     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18612     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18613     soname_spec='${libname}${release}${shared_ext}$major'
18614     ;;
18615   esac
18616   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18617   postinstall_cmds='chmod 555 $lib'
18618   ;;
18619
18620 interix[3-9]*)
18621   version_type=linux
18622   need_lib_prefix=no
18623   need_version=no
18624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18625   soname_spec='${libname}${release}${shared_ext}$major'
18626   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18627   shlibpath_var=LD_LIBRARY_PATH
18628   shlibpath_overrides_runpath=no
18629   hardcode_into_libs=yes
18630   ;;
18631
18632 irix5* | irix6* | nonstopux*)
18633   case $host_os in
18634     nonstopux*) version_type=nonstopux ;;
18635     *)
18636         if test "$lt_cv_prog_gnu_ld" = yes; then
18637                 version_type=linux
18638         else
18639                 version_type=irix
18640         fi ;;
18641   esac
18642   need_lib_prefix=no
18643   need_version=no
18644   soname_spec='${libname}${release}${shared_ext}$major'
18645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18646   case $host_os in
18647   irix5* | nonstopux*)
18648     libsuff= shlibsuff=
18649     ;;
18650   *)
18651     case $LD in # libtool.m4 will add one of these switches to LD
18652     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18653       libsuff= shlibsuff= libmagic=32-bit;;
18654     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18655       libsuff=32 shlibsuff=N32 libmagic=N32;;
18656     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18657       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18658     *) libsuff= shlibsuff= libmagic=never-match;;
18659     esac
18660     ;;
18661   esac
18662   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18663   shlibpath_overrides_runpath=no
18664   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18665   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18666   hardcode_into_libs=yes
18667   ;;
18668
18669 # No shared lib support for Linux oldld, aout, or coff.
18670 linux*oldld* | linux*aout* | linux*coff*)
18671   dynamic_linker=no
18672   ;;
18673
18674 # This must be Linux ELF.
18675 linux* | k*bsd*-gnu)
18676   version_type=linux
18677   need_lib_prefix=no
18678   need_version=no
18679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18680   soname_spec='${libname}${release}${shared_ext}$major'
18681   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18682   shlibpath_var=LD_LIBRARY_PATH
18683   shlibpath_overrides_runpath=no
18684   # This implies no fast_install, which is unacceptable.
18685   # Some rework will be needed to allow for fast_install
18686   # before this can be enabled.
18687   hardcode_into_libs=yes
18688
18689   # Append ld.so.conf contents to the search path
18690   if test -f /etc/ld.so.conf; then
18691     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18692     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18693   fi
18694
18695   # We used to test for /lib/ld.so.1 and disable shared libraries on
18696   # powerpc, because MkLinux only supported shared libraries with the
18697   # GNU dynamic linker.  Since this was broken with cross compilers,
18698   # most powerpc-linux boxes support dynamic linking these days and
18699   # people can always --disable-shared, the test was removed, and we
18700   # assume the GNU/Linux dynamic linker is in use.
18701   dynamic_linker='GNU/Linux ld.so'
18702   ;;
18703
18704 netbsdelf*-gnu)
18705   version_type=linux
18706   need_lib_prefix=no
18707   need_version=no
18708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18709   soname_spec='${libname}${release}${shared_ext}$major'
18710   shlibpath_var=LD_LIBRARY_PATH
18711   shlibpath_overrides_runpath=no
18712   hardcode_into_libs=yes
18713   dynamic_linker='NetBSD ld.elf_so'
18714   ;;
18715
18716 netbsd*)
18717   version_type=sunos
18718   need_lib_prefix=no
18719   need_version=no
18720   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18721     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18722     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18723     dynamic_linker='NetBSD (a.out) ld.so'
18724   else
18725     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18726     soname_spec='${libname}${release}${shared_ext}$major'
18727     dynamic_linker='NetBSD ld.elf_so'
18728   fi
18729   shlibpath_var=LD_LIBRARY_PATH
18730   shlibpath_overrides_runpath=yes
18731   hardcode_into_libs=yes
18732   ;;
18733
18734 newsos6)
18735   version_type=linux
18736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18737   shlibpath_var=LD_LIBRARY_PATH
18738   shlibpath_overrides_runpath=yes
18739   ;;
18740
18741 nto-qnx*)
18742   version_type=linux
18743   need_lib_prefix=no
18744   need_version=no
18745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18746   soname_spec='${libname}${release}${shared_ext}$major'
18747   shlibpath_var=LD_LIBRARY_PATH
18748   shlibpath_overrides_runpath=yes
18749   ;;
18750
18751 openbsd*)
18752   version_type=sunos
18753   sys_lib_dlsearch_path_spec="/usr/lib"
18754   need_lib_prefix=no
18755   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18756   case $host_os in
18757     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18758     *)                         need_version=no  ;;
18759   esac
18760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18761   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18762   shlibpath_var=LD_LIBRARY_PATH
18763   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18764     case $host_os in
18765       openbsd2.[89] | openbsd2.[89].*)
18766         shlibpath_overrides_runpath=no
18767         ;;
18768       *)
18769         shlibpath_overrides_runpath=yes
18770         ;;
18771       esac
18772   else
18773     shlibpath_overrides_runpath=yes
18774   fi
18775   ;;
18776
18777 os2*)
18778   libname_spec='$name'
18779   shrext_cmds=".dll"
18780   need_lib_prefix=no
18781   library_names_spec='$libname${shared_ext} $libname.a'
18782   dynamic_linker='OS/2 ld.exe'
18783   shlibpath_var=LIBPATH
18784   ;;
18785
18786 osf3* | osf4* | osf5*)
18787   version_type=osf
18788   need_lib_prefix=no
18789   need_version=no
18790   soname_spec='${libname}${release}${shared_ext}$major'
18791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18792   shlibpath_var=LD_LIBRARY_PATH
18793   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18794   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18795   ;;
18796
18797 rdos*)
18798   dynamic_linker=no
18799   ;;
18800
18801 solaris*)
18802   version_type=linux
18803   need_lib_prefix=no
18804   need_version=no
18805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18806   soname_spec='${libname}${release}${shared_ext}$major'
18807   shlibpath_var=LD_LIBRARY_PATH
18808   shlibpath_overrides_runpath=yes
18809   hardcode_into_libs=yes
18810   # ldd complains unless libraries are executable
18811   postinstall_cmds='chmod +x $lib'
18812   ;;
18813
18814 sunos4*)
18815   version_type=sunos
18816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18817   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18818   shlibpath_var=LD_LIBRARY_PATH
18819   shlibpath_overrides_runpath=yes
18820   if test "$with_gnu_ld" = yes; then
18821     need_lib_prefix=no
18822   fi
18823   need_version=yes
18824   ;;
18825
18826 sysv4 | sysv4.3*)
18827   version_type=linux
18828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18829   soname_spec='${libname}${release}${shared_ext}$major'
18830   shlibpath_var=LD_LIBRARY_PATH
18831   case $host_vendor in
18832     sni)
18833       shlibpath_overrides_runpath=no
18834       need_lib_prefix=no
18835       export_dynamic_flag_spec='${wl}-Blargedynsym'
18836       runpath_var=LD_RUN_PATH
18837       ;;
18838     siemens)
18839       need_lib_prefix=no
18840       ;;
18841     motorola)
18842       need_lib_prefix=no
18843       need_version=no
18844       shlibpath_overrides_runpath=no
18845       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18846       ;;
18847   esac
18848   ;;
18849
18850 sysv4*MP*)
18851   if test -d /usr/nec ;then
18852     version_type=linux
18853     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18854     soname_spec='$libname${shared_ext}.$major'
18855     shlibpath_var=LD_LIBRARY_PATH
18856   fi
18857   ;;
18858
18859 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18860   version_type=freebsd-elf
18861   need_lib_prefix=no
18862   need_version=no
18863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18864   soname_spec='${libname}${release}${shared_ext}$major'
18865   shlibpath_var=LD_LIBRARY_PATH
18866   hardcode_into_libs=yes
18867   if test "$with_gnu_ld" = yes; then
18868     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18869     shlibpath_overrides_runpath=no
18870   else
18871     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18872     shlibpath_overrides_runpath=yes
18873     case $host_os in
18874       sco3.2v5*)
18875         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18876         ;;
18877     esac
18878   fi
18879   sys_lib_dlsearch_path_spec='/usr/lib'
18880   ;;
18881
18882 uts4*)
18883   version_type=linux
18884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18885   soname_spec='${libname}${release}${shared_ext}$major'
18886   shlibpath_var=LD_LIBRARY_PATH
18887   ;;
18888
18889 *)
18890   dynamic_linker=no
18891   ;;
18892 esac
18893 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18894 echo "${ECHO_T}$dynamic_linker" >&6; }
18895 test "$dynamic_linker" = no && can_build_shared=no
18896
18897 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18898   echo $ECHO_N "(cached) $ECHO_C" >&6
18899 else
18900   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18901 fi
18902
18903 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18904 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18905   echo $ECHO_N "(cached) $ECHO_C" >&6
18906 else
18907   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18908 fi
18909
18910 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18911
18912 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18913 if test "$GCC" = yes; then
18914   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18915 fi
18916
18917 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18918 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18919 hardcode_action_GCJ=
18920 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18921    test -n "$runpath_var_GCJ" || \
18922    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18923
18924   # We can hardcode non-existant directories.
18925   if test "$hardcode_direct_GCJ" != no &&
18926      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18927      # have to relink, otherwise we might link with an installed library
18928      # when we should be linking with a yet-to-be-installed one
18929      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18930      test "$hardcode_minus_L_GCJ" != no; then
18931     # Linking always hardcodes the temporary library directory.
18932     hardcode_action_GCJ=relink
18933   else
18934     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18935     hardcode_action_GCJ=immediate
18936   fi
18937 else
18938   # We cannot hardcode anything, or else we can only hardcode existing
18939   # directories.
18940   hardcode_action_GCJ=unsupported
18941 fi
18942 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18943 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18944
18945 if test "$hardcode_action_GCJ" = relink; then
18946   # Fast installation is not supported
18947   enable_fast_install=no
18948 elif test "$shlibpath_overrides_runpath" = yes ||
18949      test "$enable_shared" = no; then
18950   # Fast installation is not necessary
18951   enable_fast_install=needless
18952 fi
18953
18954
18955 # The else clause should only fire when bootstrapping the
18956 # libtool distribution, otherwise you forgot to ship ltmain.sh
18957 # with your package, and you will get complaints that there are
18958 # no rules to generate ltmain.sh.
18959 if test -f "$ltmain"; then
18960   # See if we are running on zsh, and set the options which allow our commands through
18961   # without removal of \ escapes.
18962   if test -n "${ZSH_VERSION+set}" ; then
18963     setopt NO_GLOB_SUBST
18964   fi
18965   # Now quote all the things that may contain metacharacters while being
18966   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18967   # variables and quote the copies for generation of the libtool script.
18968   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18969     SED SHELL STRIP \
18970     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18971     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18972     deplibs_check_method reload_flag reload_cmds need_locks \
18973     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18974     lt_cv_sys_global_symbol_to_c_name_address \
18975     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18976     old_postinstall_cmds old_postuninstall_cmds \
18977     compiler_GCJ \
18978     CC_GCJ \
18979     LD_GCJ \
18980     lt_prog_compiler_wl_GCJ \
18981     lt_prog_compiler_pic_GCJ \
18982     lt_prog_compiler_static_GCJ \
18983     lt_prog_compiler_no_builtin_flag_GCJ \
18984     export_dynamic_flag_spec_GCJ \
18985     thread_safe_flag_spec_GCJ \
18986     whole_archive_flag_spec_GCJ \
18987     enable_shared_with_static_runtimes_GCJ \
18988     old_archive_cmds_GCJ \
18989     old_archive_from_new_cmds_GCJ \
18990     predep_objects_GCJ \
18991     postdep_objects_GCJ \
18992     predeps_GCJ \
18993     postdeps_GCJ \
18994     compiler_lib_search_path_GCJ \
18995     compiler_lib_search_dirs_GCJ \
18996     archive_cmds_GCJ \
18997     archive_expsym_cmds_GCJ \
18998     postinstall_cmds_GCJ \
18999     postuninstall_cmds_GCJ \
19000     old_archive_from_expsyms_cmds_GCJ \
19001     allow_undefined_flag_GCJ \
19002     no_undefined_flag_GCJ \
19003     export_symbols_cmds_GCJ \
19004     hardcode_libdir_flag_spec_GCJ \
19005     hardcode_libdir_flag_spec_ld_GCJ \
19006     hardcode_libdir_separator_GCJ \
19007     hardcode_automatic_GCJ \
19008     module_cmds_GCJ \
19009     module_expsym_cmds_GCJ \
19010     lt_cv_prog_compiler_c_o_GCJ \
19011     fix_srcfile_path_GCJ \
19012     exclude_expsyms_GCJ \
19013     include_expsyms_GCJ; do
19014
19015     case $var in
19016     old_archive_cmds_GCJ | \
19017     old_archive_from_new_cmds_GCJ | \
19018     archive_cmds_GCJ | \
19019     archive_expsym_cmds_GCJ | \
19020     module_cmds_GCJ | \
19021     module_expsym_cmds_GCJ | \
19022     old_archive_from_expsyms_cmds_GCJ | \
19023     export_symbols_cmds_GCJ | \
19024     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19025     postinstall_cmds | postuninstall_cmds | \
19026     old_postinstall_cmds | old_postuninstall_cmds | \
19027     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19028       # Double-quote double-evaled strings.
19029       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19030       ;;
19031     *)
19032       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19033       ;;
19034     esac
19035   done
19036
19037   case $lt_echo in
19038   *'\$0 --fallback-echo"')
19039     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19040     ;;
19041   esac
19042
19043 cfgfile="$ofile"
19044
19045   cat <<__EOF__ >> "$cfgfile"
19046 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19047
19048 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19049
19050 # Shell to use when invoking shell scripts.
19051 SHELL=$lt_SHELL
19052
19053 # Whether or not to build shared libraries.
19054 build_libtool_libs=$enable_shared
19055
19056 # Whether or not to build static libraries.
19057 build_old_libs=$enable_static
19058
19059 # Whether or not to add -lc for building shared libraries.
19060 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19061
19062 # Whether or not to disallow shared libs when runtime libs are static
19063 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19064
19065 # Whether or not to optimize for fast installation.
19066 fast_install=$enable_fast_install
19067
19068 # The host system.
19069 host_alias=$host_alias
19070 host=$host
19071 host_os=$host_os
19072
19073 # The build system.
19074 build_alias=$build_alias
19075 build=$build
19076 build_os=$build_os
19077
19078 # An echo program that does not interpret backslashes.
19079 echo=$lt_echo
19080
19081 # The archiver.
19082 AR=$lt_AR
19083 AR_FLAGS=$lt_AR_FLAGS
19084
19085 # A C compiler.
19086 LTCC=$lt_LTCC
19087
19088 # LTCC compiler flags.
19089 LTCFLAGS=$lt_LTCFLAGS
19090
19091 # A language-specific compiler.
19092 CC=$lt_compiler_GCJ
19093
19094 # Is the compiler the GNU C compiler?
19095 with_gcc=$GCC_GCJ
19096
19097 # An ERE matcher.
19098 EGREP=$lt_EGREP
19099
19100 # The linker used to build libraries.
19101 LD=$lt_LD_GCJ
19102
19103 # Whether we need hard or soft links.
19104 LN_S=$lt_LN_S
19105
19106 # A BSD-compatible nm program.
19107 NM=$lt_NM
19108
19109 # A symbol stripping program
19110 STRIP=$lt_STRIP
19111
19112 # Used to examine libraries when file_magic_cmd begins "file"
19113 MAGIC_CMD=$MAGIC_CMD
19114
19115 # Used on cygwin: DLL creation program.
19116 DLLTOOL="$DLLTOOL"
19117
19118 # Used on cygwin: object dumper.
19119 OBJDUMP="$OBJDUMP"
19120
19121 # Used on cygwin: assembler.
19122 AS="$AS"
19123
19124 # The name of the directory that contains temporary libtool files.
19125 objdir=$objdir
19126
19127 # How to create reloadable object files.
19128 reload_flag=$lt_reload_flag
19129 reload_cmds=$lt_reload_cmds
19130
19131 # How to pass a linker flag through the compiler.
19132 wl=$lt_lt_prog_compiler_wl_GCJ
19133
19134 # Object file suffix (normally "o").
19135 objext="$ac_objext"
19136
19137 # Old archive suffix (normally "a").
19138 libext="$libext"
19139
19140 # Shared library suffix (normally ".so").
19141 shrext_cmds='$shrext_cmds'
19142
19143 # Executable file suffix (normally "").
19144 exeext="$exeext"
19145
19146 # Additional compiler flags for building library objects.
19147 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19148 pic_mode=$pic_mode
19149
19150 # What is the maximum length of a command?
19151 max_cmd_len=$lt_cv_sys_max_cmd_len
19152
19153 # Does compiler simultaneously support -c and -o options?
19154 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19155
19156 # Must we lock files when doing compilation?
19157 need_locks=$lt_need_locks
19158
19159 # Do we need the lib prefix for modules?
19160 need_lib_prefix=$need_lib_prefix
19161
19162 # Do we need a version for libraries?
19163 need_version=$need_version
19164
19165 # Whether dlopen is supported.
19166 dlopen_support=$enable_dlopen
19167
19168 # Whether dlopen of programs is supported.
19169 dlopen_self=$enable_dlopen_self
19170
19171 # Whether dlopen of statically linked programs is supported.
19172 dlopen_self_static=$enable_dlopen_self_static
19173
19174 # Compiler flag to prevent dynamic linking.
19175 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19176
19177 # Compiler flag to turn off builtin functions.
19178 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19179
19180 # Compiler flag to allow reflexive dlopens.
19181 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19182
19183 # Compiler flag to generate shared objects directly from archives.
19184 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19185
19186 # Compiler flag to generate thread-safe objects.
19187 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19188
19189 # Library versioning type.
19190 version_type=$version_type
19191
19192 # Format of library name prefix.
19193 libname_spec=$lt_libname_spec
19194
19195 # List of archive names.  First name is the real one, the rest are links.
19196 # The last name is the one that the linker finds with -lNAME.
19197 library_names_spec=$lt_library_names_spec
19198
19199 # The coded name of the library, if different from the real name.
19200 soname_spec=$lt_soname_spec
19201
19202 # Commands used to build and install an old-style archive.
19203 RANLIB=$lt_RANLIB
19204 old_archive_cmds=$lt_old_archive_cmds_GCJ
19205 old_postinstall_cmds=$lt_old_postinstall_cmds
19206 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19207
19208 # Create an old-style archive from a shared archive.
19209 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19210
19211 # Create a temporary old-style archive to link instead of a shared archive.
19212 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19213
19214 # Commands used to build and install a shared archive.
19215 archive_cmds=$lt_archive_cmds_GCJ
19216 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19217 postinstall_cmds=$lt_postinstall_cmds
19218 postuninstall_cmds=$lt_postuninstall_cmds
19219
19220 # Commands used to build a loadable module (assumed same as above if empty)
19221 module_cmds=$lt_module_cmds_GCJ
19222 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19223
19224 # Commands to strip libraries.
19225 old_striplib=$lt_old_striplib
19226 striplib=$lt_striplib
19227
19228 # Dependencies to place before the objects being linked to create a
19229 # shared library.
19230 predep_objects=$lt_predep_objects_GCJ
19231
19232 # Dependencies to place after the objects being linked to create a
19233 # shared library.
19234 postdep_objects=$lt_postdep_objects_GCJ
19235
19236 # Dependencies to place before the objects being linked to create a
19237 # shared library.
19238 predeps=$lt_predeps_GCJ
19239
19240 # Dependencies to place after the objects being linked to create a
19241 # shared library.
19242 postdeps=$lt_postdeps_GCJ
19243
19244 # The directories searched by this compiler when creating a shared
19245 # library
19246 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19247
19248 # The library search path used internally by the compiler when linking
19249 # a shared library.
19250 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19251
19252 # Method to check whether dependent libraries are shared objects.
19253 deplibs_check_method=$lt_deplibs_check_method
19254
19255 # Command to use when deplibs_check_method == file_magic.
19256 file_magic_cmd=$lt_file_magic_cmd
19257
19258 # Flag that allows shared libraries with undefined symbols to be built.
19259 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19260
19261 # Flag that forces no undefined symbols.
19262 no_undefined_flag=$lt_no_undefined_flag_GCJ
19263
19264 # Commands used to finish a libtool library installation in a directory.
19265 finish_cmds=$lt_finish_cmds
19266
19267 # Same as above, but a single script fragment to be evaled but not shown.
19268 finish_eval=$lt_finish_eval
19269
19270 # Take the output of nm and produce a listing of raw symbols and C names.
19271 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19272
19273 # Transform the output of nm in a proper C declaration
19274 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19275
19276 # Transform the output of nm in a C name address pair
19277 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19278
19279 # This is the shared library runtime path variable.
19280 runpath_var=$runpath_var
19281
19282 # This is the shared library path variable.
19283 shlibpath_var=$shlibpath_var
19284
19285 # Is shlibpath searched before the hard-coded library search path?
19286 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19287
19288 # How to hardcode a shared library path into an executable.
19289 hardcode_action=$hardcode_action_GCJ
19290
19291 # Whether we should hardcode library paths into libraries.
19292 hardcode_into_libs=$hardcode_into_libs
19293
19294 # Flag to hardcode \$libdir into a binary during linking.
19295 # This must work even if \$libdir does not exist.
19296 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19297
19298 # If ld is used when linking, flag to hardcode \$libdir into
19299 # a binary during linking. This must work even if \$libdir does
19300 # not exist.
19301 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19302
19303 # Whether we need a single -rpath flag with a separated argument.
19304 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19305
19306 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19307 # resulting binary.
19308 hardcode_direct=$hardcode_direct_GCJ
19309
19310 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19311 # resulting binary.
19312 hardcode_minus_L=$hardcode_minus_L_GCJ
19313
19314 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19315 # the resulting binary.
19316 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19317
19318 # Set to yes if building a shared library automatically hardcodes DIR into the library
19319 # and all subsequent libraries and executables linked against it.
19320 hardcode_automatic=$hardcode_automatic_GCJ
19321
19322 # Variables whose values should be saved in libtool wrapper scripts and
19323 # restored at relink time.
19324 variables_saved_for_relink="$variables_saved_for_relink"
19325
19326 # Whether libtool must link a program against all its dependency libraries.
19327 link_all_deplibs=$link_all_deplibs_GCJ
19328
19329 # Compile-time system search path for libraries
19330 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19331
19332 # Run-time system search path for libraries
19333 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19334
19335 # Fix the shell variable \$srcfile for the compiler.
19336 fix_srcfile_path=$lt_fix_srcfile_path
19337
19338 # Set to yes if exported symbols are required.
19339 always_export_symbols=$always_export_symbols_GCJ
19340
19341 # The commands to list exported symbols.
19342 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19343
19344 # The commands to extract the exported symbol list from a shared archive.
19345 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19346
19347 # Symbols that should not be listed in the preloaded symbols.
19348 exclude_expsyms=$lt_exclude_expsyms_GCJ
19349
19350 # Symbols that must always be exported.
19351 include_expsyms=$lt_include_expsyms_GCJ
19352
19353 # ### END LIBTOOL TAG CONFIG: $tagname
19354
19355 __EOF__
19356
19357
19358 else
19359   # If there is no Makefile yet, we rely on a make rule to execute
19360   # `config.status --recheck' to rerun these tests and create the
19361   # libtool script then.
19362   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19363   if test -f "$ltmain_in"; then
19364     test -f Makefile && make "$ltmain"
19365   fi
19366 fi
19367
19368
19369 ac_ext=c
19370 ac_cpp='$CPP $CPPFLAGS'
19371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19374
19375 CC="$lt_save_CC"
19376
19377         else
19378           tagname=""
19379         fi
19380         ;;
19381
19382       RC)
19383
19384
19385 # Source file extension for RC test sources.
19386 ac_ext=rc
19387
19388 # Object file extension for compiled RC test sources.
19389 objext=o
19390 objext_RC=$objext
19391
19392 # Code to be used in simple compile tests
19393 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19394
19395 # Code to be used in simple link tests
19396 lt_simple_link_test_code="$lt_simple_compile_test_code"
19397
19398 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19399
19400 # If no C compiler was specified, use CC.
19401 LTCC=${LTCC-"$CC"}
19402
19403 # If no C compiler flags were specified, use CFLAGS.
19404 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19405
19406 # Allow CC to be a program name with arguments.
19407 compiler=$CC
19408
19409
19410 # save warnings/boilerplate of simple test code
19411 ac_outfile=conftest.$ac_objext
19412 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19413 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19414 _lt_compiler_boilerplate=`cat conftest.err`
19415 $rm conftest*
19416
19417 ac_outfile=conftest.$ac_objext
19418 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19419 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19420 _lt_linker_boilerplate=`cat conftest.err`
19421 $rm -r conftest*
19422
19423
19424 # Allow CC to be a program name with arguments.
19425 lt_save_CC="$CC"
19426 CC=${RC-"windres"}
19427 compiler=$CC
19428 compiler_RC=$CC
19429 for cc_temp in $compiler""; do
19430   case $cc_temp in
19431     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19432     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19433     \-*) ;;
19434     *) break;;
19435   esac
19436 done
19437 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19438
19439 lt_cv_prog_compiler_c_o_RC=yes
19440
19441 # The else clause should only fire when bootstrapping the
19442 # libtool distribution, otherwise you forgot to ship ltmain.sh
19443 # with your package, and you will get complaints that there are
19444 # no rules to generate ltmain.sh.
19445 if test -f "$ltmain"; then
19446   # See if we are running on zsh, and set the options which allow our commands through
19447   # without removal of \ escapes.
19448   if test -n "${ZSH_VERSION+set}" ; then
19449     setopt NO_GLOB_SUBST
19450   fi
19451   # Now quote all the things that may contain metacharacters while being
19452   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19453   # variables and quote the copies for generation of the libtool script.
19454   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19455     SED SHELL STRIP \
19456     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19457     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19458     deplibs_check_method reload_flag reload_cmds need_locks \
19459     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19460     lt_cv_sys_global_symbol_to_c_name_address \
19461     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19462     old_postinstall_cmds old_postuninstall_cmds \
19463     compiler_RC \
19464     CC_RC \
19465     LD_RC \
19466     lt_prog_compiler_wl_RC \
19467     lt_prog_compiler_pic_RC \
19468     lt_prog_compiler_static_RC \
19469     lt_prog_compiler_no_builtin_flag_RC \
19470     export_dynamic_flag_spec_RC \
19471     thread_safe_flag_spec_RC \
19472     whole_archive_flag_spec_RC \
19473     enable_shared_with_static_runtimes_RC \
19474     old_archive_cmds_RC \
19475     old_archive_from_new_cmds_RC \
19476     predep_objects_RC \
19477     postdep_objects_RC \
19478     predeps_RC \
19479     postdeps_RC \
19480     compiler_lib_search_path_RC \
19481     compiler_lib_search_dirs_RC \
19482     archive_cmds_RC \
19483     archive_expsym_cmds_RC \
19484     postinstall_cmds_RC \
19485     postuninstall_cmds_RC \
19486     old_archive_from_expsyms_cmds_RC \
19487     allow_undefined_flag_RC \
19488     no_undefined_flag_RC \
19489     export_symbols_cmds_RC \
19490     hardcode_libdir_flag_spec_RC \
19491     hardcode_libdir_flag_spec_ld_RC \
19492     hardcode_libdir_separator_RC \
19493     hardcode_automatic_RC \
19494     module_cmds_RC \
19495     module_expsym_cmds_RC \
19496     lt_cv_prog_compiler_c_o_RC \
19497     fix_srcfile_path_RC \
19498     exclude_expsyms_RC \
19499     include_expsyms_RC; do
19500
19501     case $var in
19502     old_archive_cmds_RC | \
19503     old_archive_from_new_cmds_RC | \
19504     archive_cmds_RC | \
19505     archive_expsym_cmds_RC | \
19506     module_cmds_RC | \
19507     module_expsym_cmds_RC | \
19508     old_archive_from_expsyms_cmds_RC | \
19509     export_symbols_cmds_RC | \
19510     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19511     postinstall_cmds | postuninstall_cmds | \
19512     old_postinstall_cmds | old_postuninstall_cmds | \
19513     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19514       # Double-quote double-evaled strings.
19515       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19516       ;;
19517     *)
19518       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19519       ;;
19520     esac
19521   done
19522
19523   case $lt_echo in
19524   *'\$0 --fallback-echo"')
19525     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19526     ;;
19527   esac
19528
19529 cfgfile="$ofile"
19530
19531   cat <<__EOF__ >> "$cfgfile"
19532 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19533
19534 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19535
19536 # Shell to use when invoking shell scripts.
19537 SHELL=$lt_SHELL
19538
19539 # Whether or not to build shared libraries.
19540 build_libtool_libs=$enable_shared
19541
19542 # Whether or not to build static libraries.
19543 build_old_libs=$enable_static
19544
19545 # Whether or not to add -lc for building shared libraries.
19546 build_libtool_need_lc=$archive_cmds_need_lc_RC
19547
19548 # Whether or not to disallow shared libs when runtime libs are static
19549 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19550
19551 # Whether or not to optimize for fast installation.
19552 fast_install=$enable_fast_install
19553
19554 # The host system.
19555 host_alias=$host_alias
19556 host=$host
19557 host_os=$host_os
19558
19559 # The build system.
19560 build_alias=$build_alias
19561 build=$build
19562 build_os=$build_os
19563
19564 # An echo program that does not interpret backslashes.
19565 echo=$lt_echo
19566
19567 # The archiver.
19568 AR=$lt_AR
19569 AR_FLAGS=$lt_AR_FLAGS
19570
19571 # A C compiler.
19572 LTCC=$lt_LTCC
19573
19574 # LTCC compiler flags.
19575 LTCFLAGS=$lt_LTCFLAGS
19576
19577 # A language-specific compiler.
19578 CC=$lt_compiler_RC
19579
19580 # Is the compiler the GNU C compiler?
19581 with_gcc=$GCC_RC
19582
19583 # An ERE matcher.
19584 EGREP=$lt_EGREP
19585
19586 # The linker used to build libraries.
19587 LD=$lt_LD_RC
19588
19589 # Whether we need hard or soft links.
19590 LN_S=$lt_LN_S
19591
19592 # A BSD-compatible nm program.
19593 NM=$lt_NM
19594
19595 # A symbol stripping program
19596 STRIP=$lt_STRIP
19597
19598 # Used to examine libraries when file_magic_cmd begins "file"
19599 MAGIC_CMD=$MAGIC_CMD
19600
19601 # Used on cygwin: DLL creation program.
19602 DLLTOOL="$DLLTOOL"
19603
19604 # Used on cygwin: object dumper.
19605 OBJDUMP="$OBJDUMP"
19606
19607 # Used on cygwin: assembler.
19608 AS="$AS"
19609
19610 # The name of the directory that contains temporary libtool files.
19611 objdir=$objdir
19612
19613 # How to create reloadable object files.
19614 reload_flag=$lt_reload_flag
19615 reload_cmds=$lt_reload_cmds
19616
19617 # How to pass a linker flag through the compiler.
19618 wl=$lt_lt_prog_compiler_wl_RC
19619
19620 # Object file suffix (normally "o").
19621 objext="$ac_objext"
19622
19623 # Old archive suffix (normally "a").
19624 libext="$libext"
19625
19626 # Shared library suffix (normally ".so").
19627 shrext_cmds='$shrext_cmds'
19628
19629 # Executable file suffix (normally "").
19630 exeext="$exeext"
19631
19632 # Additional compiler flags for building library objects.
19633 pic_flag=$lt_lt_prog_compiler_pic_RC
19634 pic_mode=$pic_mode
19635
19636 # What is the maximum length of a command?
19637 max_cmd_len=$lt_cv_sys_max_cmd_len
19638
19639 # Does compiler simultaneously support -c and -o options?
19640 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19641
19642 # Must we lock files when doing compilation?
19643 need_locks=$lt_need_locks
19644
19645 # Do we need the lib prefix for modules?
19646 need_lib_prefix=$need_lib_prefix
19647
19648 # Do we need a version for libraries?
19649 need_version=$need_version
19650
19651 # Whether dlopen is supported.
19652 dlopen_support=$enable_dlopen
19653
19654 # Whether dlopen of programs is supported.
19655 dlopen_self=$enable_dlopen_self
19656
19657 # Whether dlopen of statically linked programs is supported.
19658 dlopen_self_static=$enable_dlopen_self_static
19659
19660 # Compiler flag to prevent dynamic linking.
19661 link_static_flag=$lt_lt_prog_compiler_static_RC
19662
19663 # Compiler flag to turn off builtin functions.
19664 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19665
19666 # Compiler flag to allow reflexive dlopens.
19667 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19668
19669 # Compiler flag to generate shared objects directly from archives.
19670 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19671
19672 # Compiler flag to generate thread-safe objects.
19673 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19674
19675 # Library versioning type.
19676 version_type=$version_type
19677
19678 # Format of library name prefix.
19679 libname_spec=$lt_libname_spec
19680
19681 # List of archive names.  First name is the real one, the rest are links.
19682 # The last name is the one that the linker finds with -lNAME.
19683 library_names_spec=$lt_library_names_spec
19684
19685 # The coded name of the library, if different from the real name.
19686 soname_spec=$lt_soname_spec
19687
19688 # Commands used to build and install an old-style archive.
19689 RANLIB=$lt_RANLIB
19690 old_archive_cmds=$lt_old_archive_cmds_RC
19691 old_postinstall_cmds=$lt_old_postinstall_cmds
19692 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19693
19694 # Create an old-style archive from a shared archive.
19695 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19696
19697 # Create a temporary old-style archive to link instead of a shared archive.
19698 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19699
19700 # Commands used to build and install a shared archive.
19701 archive_cmds=$lt_archive_cmds_RC
19702 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19703 postinstall_cmds=$lt_postinstall_cmds
19704 postuninstall_cmds=$lt_postuninstall_cmds
19705
19706 # Commands used to build a loadable module (assumed same as above if empty)
19707 module_cmds=$lt_module_cmds_RC
19708 module_expsym_cmds=$lt_module_expsym_cmds_RC
19709
19710 # Commands to strip libraries.
19711 old_striplib=$lt_old_striplib
19712 striplib=$lt_striplib
19713
19714 # Dependencies to place before the objects being linked to create a
19715 # shared library.
19716 predep_objects=$lt_predep_objects_RC
19717
19718 # Dependencies to place after the objects being linked to create a
19719 # shared library.
19720 postdep_objects=$lt_postdep_objects_RC
19721
19722 # Dependencies to place before the objects being linked to create a
19723 # shared library.
19724 predeps=$lt_predeps_RC
19725
19726 # Dependencies to place after the objects being linked to create a
19727 # shared library.
19728 postdeps=$lt_postdeps_RC
19729
19730 # The directories searched by this compiler when creating a shared
19731 # library
19732 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19733
19734 # The library search path used internally by the compiler when linking
19735 # a shared library.
19736 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19737
19738 # Method to check whether dependent libraries are shared objects.
19739 deplibs_check_method=$lt_deplibs_check_method
19740
19741 # Command to use when deplibs_check_method == file_magic.
19742 file_magic_cmd=$lt_file_magic_cmd
19743
19744 # Flag that allows shared libraries with undefined symbols to be built.
19745 allow_undefined_flag=$lt_allow_undefined_flag_RC
19746
19747 # Flag that forces no undefined symbols.
19748 no_undefined_flag=$lt_no_undefined_flag_RC
19749
19750 # Commands used to finish a libtool library installation in a directory.
19751 finish_cmds=$lt_finish_cmds
19752
19753 # Same as above, but a single script fragment to be evaled but not shown.
19754 finish_eval=$lt_finish_eval
19755
19756 # Take the output of nm and produce a listing of raw symbols and C names.
19757 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19758
19759 # Transform the output of nm in a proper C declaration
19760 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19761
19762 # Transform the output of nm in a C name address pair
19763 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19764
19765 # This is the shared library runtime path variable.
19766 runpath_var=$runpath_var
19767
19768 # This is the shared library path variable.
19769 shlibpath_var=$shlibpath_var
19770
19771 # Is shlibpath searched before the hard-coded library search path?
19772 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19773
19774 # How to hardcode a shared library path into an executable.
19775 hardcode_action=$hardcode_action_RC
19776
19777 # Whether we should hardcode library paths into libraries.
19778 hardcode_into_libs=$hardcode_into_libs
19779
19780 # Flag to hardcode \$libdir into a binary during linking.
19781 # This must work even if \$libdir does not exist.
19782 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19783
19784 # If ld is used when linking, flag to hardcode \$libdir into
19785 # a binary during linking. This must work even if \$libdir does
19786 # not exist.
19787 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19788
19789 # Whether we need a single -rpath flag with a separated argument.
19790 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19791
19792 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19793 # resulting binary.
19794 hardcode_direct=$hardcode_direct_RC
19795
19796 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19797 # resulting binary.
19798 hardcode_minus_L=$hardcode_minus_L_RC
19799
19800 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19801 # the resulting binary.
19802 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19803
19804 # Set to yes if building a shared library automatically hardcodes DIR into the library
19805 # and all subsequent libraries and executables linked against it.
19806 hardcode_automatic=$hardcode_automatic_RC
19807
19808 # Variables whose values should be saved in libtool wrapper scripts and
19809 # restored at relink time.
19810 variables_saved_for_relink="$variables_saved_for_relink"
19811
19812 # Whether libtool must link a program against all its dependency libraries.
19813 link_all_deplibs=$link_all_deplibs_RC
19814
19815 # Compile-time system search path for libraries
19816 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19817
19818 # Run-time system search path for libraries
19819 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19820
19821 # Fix the shell variable \$srcfile for the compiler.
19822 fix_srcfile_path=$lt_fix_srcfile_path
19823
19824 # Set to yes if exported symbols are required.
19825 always_export_symbols=$always_export_symbols_RC
19826
19827 # The commands to list exported symbols.
19828 export_symbols_cmds=$lt_export_symbols_cmds_RC
19829
19830 # The commands to extract the exported symbol list from a shared archive.
19831 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19832
19833 # Symbols that should not be listed in the preloaded symbols.
19834 exclude_expsyms=$lt_exclude_expsyms_RC
19835
19836 # Symbols that must always be exported.
19837 include_expsyms=$lt_include_expsyms_RC
19838
19839 # ### END LIBTOOL TAG CONFIG: $tagname
19840
19841 __EOF__
19842
19843
19844 else
19845   # If there is no Makefile yet, we rely on a make rule to execute
19846   # `config.status --recheck' to rerun these tests and create the
19847   # libtool script then.
19848   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19849   if test -f "$ltmain_in"; then
19850     test -f Makefile && make "$ltmain"
19851   fi
19852 fi
19853
19854
19855 ac_ext=c
19856 ac_cpp='$CPP $CPPFLAGS'
19857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19860
19861 CC="$lt_save_CC"
19862
19863         ;;
19864
19865       *)
19866         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19867 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19868    { (exit 1); exit 1; }; }
19869         ;;
19870       esac
19871
19872       # Append the new tag name to the list of available tags.
19873       if test -n "$tagname" ; then
19874       available_tags="$available_tags $tagname"
19875     fi
19876     fi
19877   done
19878   IFS="$lt_save_ifs"
19879
19880   # Now substitute the updated list of available tags.
19881   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19882     mv "${ofile}T" "$ofile"
19883     chmod +x "$ofile"
19884   else
19885     rm -f "${ofile}T"
19886     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19887 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19888    { (exit 1); exit 1; }; }
19889   fi
19890 fi
19891
19892
19893
19894 # This can be used to rebuild libtool when needed
19895 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19896
19897 # Always use our own libtool.
19898 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19899
19900 # Prevent multiple expansion
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924 # Checks for libraries.
19925
19926 { echo "$as_me:$LINENO: checking for main in -lapr-1" >&5
19927 echo $ECHO_N "checking for main in -lapr-1... $ECHO_C" >&6; }
19928 if test "${ac_cv_lib_apr_1_main+set}" = set; then
19929   echo $ECHO_N "(cached) $ECHO_C" >&6
19930 else
19931   ac_check_lib_save_LIBS=$LIBS
19932 LIBS="-lapr-1  $LIBS"
19933 cat >conftest.$ac_ext <<_ACEOF
19934 /* confdefs.h.  */
19935 _ACEOF
19936 cat confdefs.h >>conftest.$ac_ext
19937 cat >>conftest.$ac_ext <<_ACEOF
19938 /* end confdefs.h.  */
19939
19940
19941 int
19942 main ()
19943 {
19944 return main ();
19945   ;
19946   return 0;
19947 }
19948 _ACEOF
19949 rm -f conftest.$ac_objext conftest$ac_exeext
19950 if { (ac_try="$ac_link"
19951 case "(($ac_try" in
19952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953   *) ac_try_echo=$ac_try;;
19954 esac
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956   (eval "$ac_link") 2>conftest.er1
19957   ac_status=$?
19958   grep -v '^ *+' conftest.er1 >conftest.err
19959   rm -f conftest.er1
19960   cat conftest.err >&5
19961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962   (exit $ac_status); } && {
19963          test -z "$ac_c_werror_flag" ||
19964          test ! -s conftest.err
19965        } && test -s conftest$ac_exeext &&
19966        $as_test_x conftest$ac_exeext; then
19967   ac_cv_lib_apr_1_main=yes
19968 else
19969   echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19971
19972         ac_cv_lib_apr_1_main=no
19973 fi
19974
19975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19976       conftest$ac_exeext conftest.$ac_ext
19977 LIBS=$ac_check_lib_save_LIBS
19978 fi
19979 { echo "$as_me:$LINENO: result: $ac_cv_lib_apr_1_main" >&5
19980 echo "${ECHO_T}$ac_cv_lib_apr_1_main" >&6; }
19981 if test $ac_cv_lib_apr_1_main = yes; then
19982   cat >>confdefs.h <<_ACEOF
19983 #define HAVE_LIBAPR_1 1
19984 _ACEOF
19985
19986   LIBS="-lapr-1 $LIBS"
19987
19988 fi
19989
19990
19991
19992 # Check whether --with-apache-header was given.
19993 if test "${with_apache_header+set}" = set; then
19994   withval=$with_apache_header;
19995 fi
19996
19997 if test "x$with_apache_header" = "xyes"; then
19998     { { echo "$as_me:$LINENO: error:
19999 Please specify the --with-apache-header option. And, please specify the place of the header file.
20000
20001 " >&5
20002 echo "$as_me: error:
20003 Please specify the --with-apache-header option. And, please specify the place of the header file.
20004
20005 " >&2;}
20006    { (exit 1); exit 1; }; }
20007 fi
20008
20009
20010 # Check whether --with-apxs was given.
20011 if test "${with_apxs+set}" = set; then
20012   withval=$with_apxs;
20013 fi
20014
20015 if test "x$with_apxs" = "x" ; then
20016   APXS=""
20017 fi
20018 if test "x$with_apxs" = "xyes" ; then
20019     { { echo "$as_me:$LINENO: error:
20020 Please specify the --with-apxs option. And, please specify the place of the apxs program.
20021 " >&5
20022 echo "$as_me: error:
20023 Please specify the --with-apxs option. And, please specify the place of the apxs program.
20024 " >&2;}
20025    { (exit 1); exit 1; }; }
20026 fi
20027
20028
20029 # Check whether --with-apr-config was given.
20030 if test "${with_apr_config+set}" = set; then
20031   withval=$with_apr_config;
20032 fi
20033
20034 if test "x$with_apr_config" = "xyes" ; then
20035     { { echo "$as_me:$LINENO: error:
20036 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
20037 " >&5
20038 echo "$as_me: error:
20039 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
20040 " >&2;}
20041    { (exit 1); exit 1; }; }
20042 fi
20043
20044
20045 # Check whether --with-apu-config was given.
20046 if test "${with_apu_config+set}" = set; then
20047   withval=$with_apu_config;
20048 fi
20049
20050 if test "x$with_apu_config" = "xyes" ; then
20051     { { echo "$as_me:$LINENO: error:
20052 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
20053 " >&5
20054 echo "$as_me: error:
20055 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
20056 " >&2;}
20057    { (exit 1); exit 1; }; }
20058 fi
20059
20060
20061 # Check whether --with-pcre-config was given.
20062 if test "${with_pcre_config+set}" = set; then
20063   withval=$with_pcre_config;
20064 fi
20065
20066 if test "x$with_pcre_config" = "xyes" ; then
20067     { { echo "$as_me:$LINENO: error:
20068 Please specify the --with-pcre-config option. And, please specify the place of the pcre-config program.
20069 " >&5
20070 echo "$as_me: error:
20071 Please specify the --with-pcre-config option. And, please specify the place of the pcre-config program.
20072 " >&2;}
20073    { (exit 1); exit 1; }; }
20074 fi
20075
20076
20077
20078 # Check whether --enable-img-conv-f was given.
20079 if test "${enable_img_conv_f+set}" = set; then
20080   enableval=$enable_img_conv_f;
20081 fi
20082
20083 if test "x$enable_img_conv_f" = "xyes"; then
20084   QDEFS=""
20085 else
20086   QDEFS="-DIMG_NOT_CONVERT_FILENAME"
20087 fi
20088
20089
20090 # Check whether --enable-memcache-cookie was given.
20091 if test "${enable_memcache_cookie+set}" = set; then
20092   enableval=$enable_memcache_cookie;
20093 fi
20094
20095 # Check whether --enable-memcached-static was given.
20096 if test "${enable_memcached_static+set}" = set; then
20097   enableval=$enable_memcached_static;
20098 fi
20099
20100
20101 # Check whether --with-memcached-header was given.
20102 if test "${with_memcached_header+set}" = set; then
20103   withval=$with_memcached_header;
20104 fi
20105
20106
20107 # Check whether --with-memcached-lib-dir was given.
20108 if test "${with_memcached_lib_dir+set}" = set; then
20109   withval=$with_memcached_lib_dir;
20110 fi
20111
20112 if test "x$enable_memcache_cookie" = "xyes" ; then
20113         if test "x${with_memcached_header}" = "x" -o "x${with_memcached_header}" = "xyes" ; then
20114     { { echo "$as_me:$LINENO: error:
20115 Please specify the --with-memcached-header And, please specify the place of the \"memcached.h\" header file directory.
20116 " >&5
20117 echo "$as_me: error:
20118 Please specify the --with-memcached-header And, please specify the place of the \"memcached.h\" header file directory.
20119 " >&2;}
20120    { (exit 1); exit 1; }; }
20121   fi
20122   if test "x${with_memcached_lib_dir}" = "x" -o "x${with_memcached_lib_dir}" = "xyes" ; then
20123     { { echo "$as_me:$LINENO: error:
20124 Please specify the --with-memcached-lib-dir And, please specify the place of libmemcached library directory.
20125 " >&5
20126 echo "$as_me: error:
20127 Please specify the --with-memcached-lib-dir And, please specify the place of libmemcached library directory.
20128 " >&2;}
20129    { (exit 1); exit 1; }; }
20130   fi
20131   if test "x$enable_memcached_static" = "xyes" ; then
20132     MEMCACHE_COOKIE_DEFS="-DUSE_MEMCACHE_COOKIE -I${with_memcached_header} "
20133     MEMCACHE_COOKIE_LIBS=" ${with_memcached_lib_dir}/libmemcached.a "
20134   else
20135     MEMCACHE_COOKIE_DEFS="-DUSE_MEMCACHE_COOKIE -I${with_memcached_header} "
20136     MEMCACHE_COOKIE_LIBS="-L${with_memcached_lib_dir} -lmemcached "
20137   fi
20138 else
20139         MEMCACHE_COOKIE_DEFS=""
20140   MEMCACHE_COOKIE_LIBS=""
20141 fi
20142 # Check whether --enable-mysql-cookie was given.
20143 if test "${enable_mysql_cookie+set}" = set; then
20144   enableval=$enable_mysql_cookie;
20145 fi
20146
20147
20148 # Check whether --with-mysql-header was given.
20149 if test "${with_mysql_header+set}" = set; then
20150   withval=$with_mysql_header;
20151 fi
20152
20153
20154 # Check whether --with-mysql-lib-dir was given.
20155 if test "${with_mysql_lib_dir+set}" = set; then
20156   withval=$with_mysql_lib_dir;
20157 fi
20158
20159 if test "x$enable_mysql_cookie" = "xyes"; then
20160         if test "x$with_mysql_header" = "x" -o "x$with_mysql_header" = "xyes" ; then
20161     { { echo "$as_me:$LINENO: error:
20162 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
20163 " >&5
20164 echo "$as_me: error:
20165 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
20166 " >&2;}
20167    { (exit 1); exit 1; }; }
20168   fi
20169   if test "x$with_mysql_lib_dir" = "x" -o "x$with_mysql_lib_dir" = "xyes" ; then
20170     { { echo "$as_me:$LINENO: error:
20171 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
20172 " >&5
20173 echo "$as_me: error:
20174 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
20175 " >&2;}
20176    { (exit 1); exit 1; }; }
20177   fi
20178   MYSQL_COOKIE_DEFS="-DUSE_MYSQL_COOKIE -I${with_mysql_header}"
20179   MYSQL_COOKIE_LIBS="-L${with_mysql_lib_dir} -lmysqlclient_r"
20180 else
20181         MYSQL_COOKIE_DEFS=""
20182   MYSQL_COOKIE_LIBS=""
20183 fi
20184
20185 OPENSSL_PATH=""
20186
20187 # Check whether --with-openssl was given.
20188 if test "${with_openssl+set}" = set; then
20189   withval=$with_openssl;
20190   if test "$withval" = "yes"; then
20191     { { echo "$as_me:$LINENO: error: --with-openssl requires a path" >&5
20192 echo "$as_me: error: --with-openssl requires a path" >&2;}
20193    { (exit 1); exit 1; }; }
20194   else
20195     openssl_prefix=$withval
20196
20197     if test "x$openssl_prefix" != "x" -a ! -d "$openssl_prefix"; then
20198       { { echo "$as_me:$LINENO: error: '--with-openssl requires a path to a directory'" >&5
20199 echo "$as_me: error: '--with-openssl requires a path to a directory'" >&2;}
20200    { (exit 1); exit 1; }; }
20201     fi
20202
20203     CPPFLAGS="${CPPFLAGS} -I${openssl_prefix}/include"
20204     LDFLAGS="${LDFLAGS} -L${openssl_prefix}/lib"
20205     LDFLAGS="${LDFLAGS} -R${openssl_prefix}/lib"
20206     OPENSSL_PATH="--with-openssl=${openssl_prefix}"
20207   fi
20208
20209 fi
20210
20211
20212 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
20213   { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
20214 echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
20215 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
20216   echo $ECHO_N "(cached) $ECHO_C" >&6
20217 fi
20218 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
20219 echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
20220 else
20221   # Is the header compilable?
20222 { echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5
20223 echo $ECHO_N "checking openssl/opensslv.h usability... $ECHO_C" >&6; }
20224 cat >conftest.$ac_ext <<_ACEOF
20225 /* confdefs.h.  */
20226 _ACEOF
20227 cat confdefs.h >>conftest.$ac_ext
20228 cat >>conftest.$ac_ext <<_ACEOF
20229 /* end confdefs.h.  */
20230 $ac_includes_default
20231 #include <openssl/opensslv.h>
20232 _ACEOF
20233 rm -f conftest.$ac_objext
20234 if { (ac_try="$ac_compile"
20235 case "(($ac_try" in
20236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237   *) ac_try_echo=$ac_try;;
20238 esac
20239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240   (eval "$ac_compile") 2>conftest.er1
20241   ac_status=$?
20242   grep -v '^ *+' conftest.er1 >conftest.err
20243   rm -f conftest.er1
20244   cat conftest.err >&5
20245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246   (exit $ac_status); } && {
20247          test -z "$ac_c_werror_flag" ||
20248          test ! -s conftest.err
20249        } && test -s conftest.$ac_objext; then
20250   ac_header_compiler=yes
20251 else
20252   echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.$ac_ext >&5
20254
20255         ac_header_compiler=no
20256 fi
20257
20258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20260 echo "${ECHO_T}$ac_header_compiler" >&6; }
20261
20262 # Is the header present?
20263 { echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5
20264 echo $ECHO_N "checking openssl/opensslv.h presence... $ECHO_C" >&6; }
20265 cat >conftest.$ac_ext <<_ACEOF
20266 /* confdefs.h.  */
20267 _ACEOF
20268 cat confdefs.h >>conftest.$ac_ext
20269 cat >>conftest.$ac_ext <<_ACEOF
20270 /* end confdefs.h.  */
20271 #include <openssl/opensslv.h>
20272 _ACEOF
20273 if { (ac_try="$ac_cpp conftest.$ac_ext"
20274 case "(($ac_try" in
20275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276   *) ac_try_echo=$ac_try;;
20277 esac
20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20280   ac_status=$?
20281   grep -v '^ *+' conftest.er1 >conftest.err
20282   rm -f conftest.er1
20283   cat conftest.err >&5
20284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285   (exit $ac_status); } >/dev/null && {
20286          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20287          test ! -s conftest.err
20288        }; then
20289   ac_header_preproc=yes
20290 else
20291   echo "$as_me: failed program was:" >&5
20292 sed 's/^/| /' conftest.$ac_ext >&5
20293
20294   ac_header_preproc=no
20295 fi
20296
20297 rm -f conftest.err conftest.$ac_ext
20298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20299 echo "${ECHO_T}$ac_header_preproc" >&6; }
20300
20301 # So?  What about this header?
20302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20303   yes:no: )
20304     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5
20305 echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20306     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5
20307 echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;}
20308     ac_header_preproc=yes
20309     ;;
20310   no:yes:* )
20311     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5
20312 echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;}
20313     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h:     check for missing prerequisite headers?" >&5
20314 echo "$as_me: WARNING: openssl/opensslv.h:     check for missing prerequisite headers?" >&2;}
20315     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5
20316 echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;}
20317     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h:     section \"Present But Cannot Be Compiled\"" >&5
20318 echo "$as_me: WARNING: openssl/opensslv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20319     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5
20320 echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;}
20321     { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5
20322 echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;}
20323     ( cat <<\_ASBOX
20324 ## ---------------------------------------- ##
20325 ## Report this to konn@users.sourceforge.jp ##
20326 ## ---------------------------------------- ##
20327 _ASBOX
20328      ) | sed "s/^/$as_me: WARNING:     /" >&2
20329     ;;
20330 esac
20331 { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
20332 echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
20333 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
20334   echo $ECHO_N "(cached) $ECHO_C" >&6
20335 else
20336   ac_cv_header_openssl_opensslv_h=$ac_header_preproc
20337 fi
20338 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
20339 echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
20340
20341 fi
20342 if test $ac_cv_header_openssl_opensslv_h = yes; then
20343   :
20344 else
20345   { { echo "$as_me:$LINENO: error: We require OpenSSL; try --with-openssl" >&5
20346 echo "$as_me: error: We require OpenSSL; try --with-openssl" >&2;}
20347    { (exit 1); exit 1; }; }
20348 fi
20349
20350
20351
20352 # Check whether --enable-dump-log was given.
20353 if test "${enable_dump_log+set}" = set; then
20354   enableval=$enable_dump_log;
20355 fi
20356
20357 if test "x$enable_dump_log" = "xyes"; then
20358   DDEFS="-DDUMP_LOG=\\\"/tmp/dump.log\\\""
20359 else
20360     if test "x$enable_dump_log" != "x" ; then
20361         DDEFS="-DDUMP_LOG=\\\"${enable_dump_log}\\\""
20362     fi
20363 fi
20364
20365
20366 if test "x$with_apxs" = "x" ; then
20367   # Extract the first word of "apxs2", so it can be a program name with args.
20368 set dummy apxs2; ac_word=$2
20369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20371 if test "${ac_cv_path_APXS2+set}" = set; then
20372   echo $ECHO_N "(cached) $ECHO_C" >&6
20373 else
20374   case $APXS2 in
20375   [\\/]* | ?:[\\/]*)
20376   ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
20377   ;;
20378   *)
20379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20380 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
20381 for as_dir in $as_dummy
20382 do
20383   IFS=$as_save_IFS
20384   test -z "$as_dir" && as_dir=.
20385   for ac_exec_ext in '' $ac_executable_extensions; do
20386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20387     ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
20388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20389     break 2
20390   fi
20391 done
20392 done
20393 IFS=$as_save_IFS
20394
20395   test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
20396   ;;
20397 esac
20398 fi
20399 APXS2=$ac_cv_path_APXS2
20400 if test -n "$APXS2"; then
20401   { echo "$as_me:$LINENO: result: $APXS2" >&5
20402 echo "${ECHO_T}$APXS2" >&6; }
20403 else
20404   { echo "$as_me:$LINENO: result: no" >&5
20405 echo "${ECHO_T}no" >&6; }
20406 fi
20407
20408
20409   if test "x$APXS2" = "xno"; then
20410     # Extract the first word of "apxs", so it can be a program name with args.
20411 set dummy apxs; ac_word=$2
20412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20414 if test "${ac_cv_path_APXS+set}" = set; then
20415   echo $ECHO_N "(cached) $ECHO_C" >&6
20416 else
20417   case $APXS in
20418   [\\/]* | ?:[\\/]*)
20419   ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
20420   ;;
20421   *)
20422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20423 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
20424 for as_dir in $as_dummy
20425 do
20426   IFS=$as_save_IFS
20427   test -z "$as_dir" && as_dir=.
20428   for ac_exec_ext in '' $ac_executable_extensions; do
20429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20430     ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
20431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20432     break 2
20433   fi
20434 done
20435 done
20436 IFS=$as_save_IFS
20437
20438   test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
20439   ;;
20440 esac
20441 fi
20442 APXS=$ac_cv_path_APXS
20443 if test -n "$APXS"; then
20444   { echo "$as_me:$LINENO: result: $APXS" >&5
20445 echo "${ECHO_T}$APXS" >&6; }
20446 else
20447   { echo "$as_me:$LINENO: result: no" >&5
20448 echo "${ECHO_T}no" >&6; }
20449 fi
20450
20451
20452     if test "x$APXS" = "xno" ; then
20453       { { echo "$as_me:$LINENO: error: apxs not found." >&5
20454 echo "$as_me: error: apxs not found." >&2;}
20455    { (exit 1); exit 1; }; }
20456     fi
20457   else
20458     APXS="$APXS2"
20459   fi
20460 fi
20461 if test "x$with_apxs" != "x" ; then
20462   APXS=$with_apxs
20463 fi
20464
20465 # Extract the first word of "libtool", so it can be a program name with args.
20466 set dummy libtool; ac_word=$2
20467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20469 if test "${ac_cv_path_LIBTOOL+set}" = set; then
20470   echo $ECHO_N "(cached) $ECHO_C" >&6
20471 else
20472   case $LIBTOOL in
20473   [\\/]* | ?:[\\/]*)
20474   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
20475   ;;
20476   *)
20477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20478 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20479 for as_dir in $as_dummy
20480 do
20481   IFS=$as_save_IFS
20482   test -z "$as_dir" && as_dir=.
20483   for ac_exec_ext in '' $ac_executable_extensions; do
20484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20485     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
20486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20487     break 2
20488   fi
20489 done
20490 done
20491 IFS=$as_save_IFS
20492
20493   test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
20494   ;;
20495 esac
20496 fi
20497 LIBTOOL=$ac_cv_path_LIBTOOL
20498 if test -n "$LIBTOOL"; then
20499   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
20500 echo "${ECHO_T}$LIBTOOL" >&6; }
20501 else
20502   { echo "$as_me:$LINENO: result: no" >&5
20503 echo "${ECHO_T}no" >&6; }
20504 fi
20505
20506
20507 if test "x$LIBTOOL" = "xno"; then
20508     { { echo "$as_me:$LINENO: error: libtool not found." >&5
20509 echo "$as_me: error: libtool not found." >&2;}
20510    { (exit 1); exit 1; }; }
20511 fi
20512
20513
20514 # Extract the first word of "Wand-config", so it can be a program name with args.
20515 set dummy Wand-config; ac_word=$2
20516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20518 if test "${ac_cv_path_WAND_CONFIG+set}" = set; then
20519   echo $ECHO_N "(cached) $ECHO_C" >&6
20520 else
20521   case $WAND_CONFIG in
20522   [\\/]* | ?:[\\/]*)
20523   ac_cv_path_WAND_CONFIG="$WAND_CONFIG" # Let the user override the test with a path.
20524   ;;
20525   *)
20526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20527 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20528 for as_dir in $as_dummy
20529 do
20530   IFS=$as_save_IFS
20531   test -z "$as_dir" && as_dir=.
20532   for ac_exec_ext in '' $ac_executable_extensions; do
20533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20534     ac_cv_path_WAND_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20536     break 2
20537   fi
20538 done
20539 done
20540 IFS=$as_save_IFS
20541
20542   test -z "$ac_cv_path_WAND_CONFIG" && ac_cv_path_WAND_CONFIG="no"
20543   ;;
20544 esac
20545 fi
20546 WAND_CONFIG=$ac_cv_path_WAND_CONFIG
20547 if test -n "$WAND_CONFIG"; then
20548   { echo "$as_me:$LINENO: result: $WAND_CONFIG" >&5
20549 echo "${ECHO_T}$WAND_CONFIG" >&6; }
20550 else
20551   { echo "$as_me:$LINENO: result: no" >&5
20552 echo "${ECHO_T}no" >&6; }
20553 fi
20554
20555
20556 if test "x$WAND_CONFIG" = "xno" ; then
20557     { { echo "$as_me:$LINENO: error: wand-config not found." >&5
20558 echo "$as_me: error: wand-config not found." >&2;}
20559    { (exit 1); exit 1; }; }
20560 fi
20561
20562 if test "x$with_apr_config" = "x" ; then
20563   # Extract the first word of "apr-config", so it can be a program name with args.
20564 set dummy apr-config; ac_word=$2
20565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20567 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
20568   echo $ECHO_N "(cached) $ECHO_C" >&6
20569 else
20570   case $APR_CONFIG in
20571   [\\/]* | ?:[\\/]*)
20572   ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
20573   ;;
20574   *)
20575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20576 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20577 for as_dir in $as_dummy
20578 do
20579   IFS=$as_save_IFS
20580   test -z "$as_dir" && as_dir=.
20581   for ac_exec_ext in '' $ac_executable_extensions; do
20582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20583     ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20585     break 2
20586   fi
20587 done
20588 done
20589 IFS=$as_save_IFS
20590
20591   test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
20592   ;;
20593 esac
20594 fi
20595 APR_CONFIG=$ac_cv_path_APR_CONFIG
20596 if test -n "$APR_CONFIG"; then
20597   { echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
20598 echo "${ECHO_T}$APR_CONFIG" >&6; }
20599 else
20600   { echo "$as_me:$LINENO: result: no" >&5
20601 echo "${ECHO_T}no" >&6; }
20602 fi
20603
20604
20605   if test "x$APR_CONFIG" = "xno" ; then
20606     # Extract the first word of "apr-1-config", so it can be a program name with args.
20607 set dummy apr-1-config; ac_word=$2
20608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20610 if test "${ac_cv_path_APR_1_CONFIG+set}" = set; then
20611   echo $ECHO_N "(cached) $ECHO_C" >&6
20612 else
20613   case $APR_1_CONFIG in
20614   [\\/]* | ?:[\\/]*)
20615   ac_cv_path_APR_1_CONFIG="$APR_1_CONFIG" # Let the user override the test with a path.
20616   ;;
20617   *)
20618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20619 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20620 for as_dir in $as_dummy
20621 do
20622   IFS=$as_save_IFS
20623   test -z "$as_dir" && as_dir=.
20624   for ac_exec_ext in '' $ac_executable_extensions; do
20625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20626     ac_cv_path_APR_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20628     break 2
20629   fi
20630 done
20631 done
20632 IFS=$as_save_IFS
20633
20634   test -z "$ac_cv_path_APR_1_CONFIG" && ac_cv_path_APR_1_CONFIG="no"
20635   ;;
20636 esac
20637 fi
20638 APR_1_CONFIG=$ac_cv_path_APR_1_CONFIG
20639 if test -n "$APR_1_CONFIG"; then
20640   { echo "$as_me:$LINENO: result: $APR_1_CONFIG" >&5
20641 echo "${ECHO_T}$APR_1_CONFIG" >&6; }
20642 else
20643   { echo "$as_me:$LINENO: result: no" >&5
20644 echo "${ECHO_T}no" >&6; }
20645 fi
20646
20647
20648     if test "x$APR_1_CONFIG" = "xno" ; then
20649       { { echo "$as_me:$LINENO: error: apr-config and apr-1-config not found." >&5
20650 echo "$as_me: error: apr-config and apr-1-config not found." >&2;}
20651    { (exit 1); exit 1; }; }
20652     else
20653       APR_CONFIG="$APR_1_CONFIG"
20654     fi
20655   fi
20656 fi
20657 if test "x$with_apr_config" != "x" ; then
20658   APR_CONFIG=$with_apr_config
20659 fi
20660 if test "x$with_apu_config" = "x" ; then
20661   # Extract the first word of "apu-config", so it can be a program name with args.
20662 set dummy apu-config; ac_word=$2
20663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20665 if test "${ac_cv_path_APU_CONFIG+set}" = set; then
20666   echo $ECHO_N "(cached) $ECHO_C" >&6
20667 else
20668   case $APU_CONFIG in
20669   [\\/]* | ?:[\\/]*)
20670   ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
20671   ;;
20672   *)
20673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20674 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20675 for as_dir in $as_dummy
20676 do
20677   IFS=$as_save_IFS
20678   test -z "$as_dir" && as_dir=.
20679   for ac_exec_ext in '' $ac_executable_extensions; do
20680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20681     ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20683     break 2
20684   fi
20685 done
20686 done
20687 IFS=$as_save_IFS
20688
20689   test -z "$ac_cv_path_APU_CONFIG" && ac_cv_path_APU_CONFIG="no"
20690   ;;
20691 esac
20692 fi
20693 APU_CONFIG=$ac_cv_path_APU_CONFIG
20694 if test -n "$APU_CONFIG"; then
20695   { echo "$as_me:$LINENO: result: $APU_CONFIG" >&5
20696 echo "${ECHO_T}$APU_CONFIG" >&6; }
20697 else
20698   { echo "$as_me:$LINENO: result: no" >&5
20699 echo "${ECHO_T}no" >&6; }
20700 fi
20701
20702
20703   if test "x$APU_CONFIG" = "xno" ; then
20704     # Extract the first word of "apu-1-config", so it can be a program name with args.
20705 set dummy apu-1-config; ac_word=$2
20706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20708 if test "${ac_cv_path_APU_1_CONFIG+set}" = set; then
20709   echo $ECHO_N "(cached) $ECHO_C" >&6
20710 else
20711   case $APU_1_CONFIG in
20712   [\\/]* | ?:[\\/]*)
20713   ac_cv_path_APU_1_CONFIG="$APU_1_CONFIG" # Let the user override the test with a path.
20714   ;;
20715   *)
20716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20717 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20718 for as_dir in $as_dummy
20719 do
20720   IFS=$as_save_IFS
20721   test -z "$as_dir" && as_dir=.
20722   for ac_exec_ext in '' $ac_executable_extensions; do
20723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20724     ac_cv_path_APU_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20726     break 2
20727   fi
20728 done
20729 done
20730 IFS=$as_save_IFS
20731
20732   test -z "$ac_cv_path_APU_1_CONFIG" && ac_cv_path_APU_1_CONFIG="no"
20733   ;;
20734 esac
20735 fi
20736 APU_1_CONFIG=$ac_cv_path_APU_1_CONFIG
20737 if test -n "$APU_1_CONFIG"; then
20738   { echo "$as_me:$LINENO: result: $APU_1_CONFIG" >&5
20739 echo "${ECHO_T}$APU_1_CONFIG" >&6; }
20740 else
20741   { echo "$as_me:$LINENO: result: no" >&5
20742 echo "${ECHO_T}no" >&6; }
20743 fi
20744
20745
20746     if test "x$APU_1_CONFIG" = "xno" ; then
20747       { { echo "$as_me:$LINENO: error: apu-config and apu-1-config not found." >&5
20748 echo "$as_me: error: apu-config and apu-1-config not found." >&2;}
20749    { (exit 1); exit 1; }; }
20750     else
20751       APU_CONFIG="$APU_1_CONFIG"
20752     fi
20753   fi
20754 fi
20755 if test "x$with_apu_config" != "x" ; then
20756   APU_CONFIG=$with_apu_config
20757 fi
20758
20759 case $host_os in
20760   freebsd*)
20761     CFLAGS="${CFLAGS} -I/usr/local/include "
20762     ;;
20763 esac
20764
20765 if test "x${with_apache_header}" = "x" ; then
20766   with_apache_header=`${APXS} -q includedir`
20767 fi
20768
20769 LIBS="${LIBS} `${WAND_CONFIG} --ldflags` `${WAND_CONFIG} --libs | sed -e s/-ldpstk//` "
20770 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
20771 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
20772 LIBS="${LIBS} ${MYSQL_COOKIE_LIBS}"
20773 LIBS="${LIBS} ${MEMCACHE_COOKIE_LIBS} "
20774 LIBS="${LIBS} css/src/.libs/libscss.a"
20775 LIBS="${LIBS} -lcrypto -lssl "
20776 CFLAGS="${CFLAGS} `${WAND_CONFIG} --cppflags` `${WAND_CONFIG} --cflags`"
20777 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
20778 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
20779 CFLAGS="${CFLAGS} ${MYSQL_COOKIE_DEFS}"
20780 CFLAGS="${CFLAGS} ${MEMCACHE_COOKIE_DEFS}"
20781 CPPFLAGS="${CPPFLAGS} `${APR_CONFIG} --includes` -I${with_apache_header}"
20782 CPPFLAGS="${CPPFLAGS} ${MYSQL_COOKIE_DEFS}"
20783 CPPFLAGS="${CPPFLAGS} ${MEMCACHE_COOKIE_DEFS}"
20784
20785 # Checks for header files.
20786 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20787 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20788 if test "${ac_cv_header_stdc+set}" = set; then
20789   echo $ECHO_N "(cached) $ECHO_C" >&6
20790 else
20791   cat >conftest.$ac_ext <<_ACEOF
20792 /* confdefs.h.  */
20793 _ACEOF
20794 cat confdefs.h >>conftest.$ac_ext
20795 cat >>conftest.$ac_ext <<_ACEOF
20796 /* end confdefs.h.  */
20797 #include <stdlib.h>
20798 #include <stdarg.h>
20799 #include <string.h>
20800 #include <float.h>
20801
20802 int
20803 main ()
20804 {
20805
20806   ;
20807   return 0;
20808 }
20809 _ACEOF
20810 rm -f conftest.$ac_objext
20811 if { (ac_try="$ac_compile"
20812 case "(($ac_try" in
20813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20814   *) ac_try_echo=$ac_try;;
20815 esac
20816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20817   (eval "$ac_compile") 2>conftest.er1
20818   ac_status=$?
20819   grep -v '^ *+' conftest.er1 >conftest.err
20820   rm -f conftest.er1
20821   cat conftest.err >&5
20822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823   (exit $ac_status); } && {
20824          test -z "$ac_c_werror_flag" ||
20825          test ! -s conftest.err
20826        } && test -s conftest.$ac_objext; then
20827   ac_cv_header_stdc=yes
20828 else
20829   echo "$as_me: failed program was:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20831
20832         ac_cv_header_stdc=no
20833 fi
20834
20835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20836
20837 if test $ac_cv_header_stdc = yes; then
20838   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20839   cat >conftest.$ac_ext <<_ACEOF
20840 /* confdefs.h.  */
20841 _ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h.  */
20845 #include <string.h>
20846
20847 _ACEOF
20848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20849   $EGREP "memchr" >/dev/null 2>&1; then
20850   :
20851 else
20852   ac_cv_header_stdc=no
20853 fi
20854 rm -f conftest*
20855
20856 fi
20857
20858 if test $ac_cv_header_stdc = yes; then
20859   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20860   cat >conftest.$ac_ext <<_ACEOF
20861 /* confdefs.h.  */
20862 _ACEOF
20863 cat confdefs.h >>conftest.$ac_ext
20864 cat >>conftest.$ac_ext <<_ACEOF
20865 /* end confdefs.h.  */
20866 #include <stdlib.h>
20867
20868 _ACEOF
20869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20870   $EGREP "free" >/dev/null 2>&1; then
20871   :
20872 else
20873   ac_cv_header_stdc=no
20874 fi
20875 rm -f conftest*
20876
20877 fi
20878
20879 if test $ac_cv_header_stdc = yes; then
20880   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20881   if test "$cross_compiling" = yes; then
20882   :
20883 else
20884   cat >conftest.$ac_ext <<_ACEOF
20885 /* confdefs.h.  */
20886 _ACEOF
20887 cat confdefs.h >>conftest.$ac_ext
20888 cat >>conftest.$ac_ext <<_ACEOF
20889 /* end confdefs.h.  */
20890 #include <ctype.h>
20891 #include <stdlib.h>
20892 #if ((' ' & 0x0FF) == 0x020)
20893 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20894 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20895 #else
20896 # define ISLOWER(c) \
20897                    (('a' <= (c) && (c) <= 'i') \
20898                      || ('j' <= (c) && (c) <= 'r') \
20899                      || ('s' <= (c) && (c) <= 'z'))
20900 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20901 #endif
20902
20903 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20904 int
20905 main ()
20906 {
20907   int i;
20908   for (i = 0; i < 256; i++)
20909     if (XOR (islower (i), ISLOWER (i))
20910         || toupper (i) != TOUPPER (i))
20911       return 2;
20912   return 0;
20913 }
20914 _ACEOF
20915 rm -f conftest$ac_exeext
20916 if { (ac_try="$ac_link"
20917 case "(($ac_try" in
20918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919   *) ac_try_echo=$ac_try;;
20920 esac
20921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922   (eval "$ac_link") 2>&5
20923   ac_status=$?
20924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20926   { (case "(($ac_try" in
20927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20928   *) ac_try_echo=$ac_try;;
20929 esac
20930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20931   (eval "$ac_try") 2>&5
20932   ac_status=$?
20933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934   (exit $ac_status); }; }; then
20935   :
20936 else
20937   echo "$as_me: program exited with status $ac_status" >&5
20938 echo "$as_me: failed program was:" >&5
20939 sed 's/^/| /' conftest.$ac_ext >&5
20940
20941 ( exit $ac_status )
20942 ac_cv_header_stdc=no
20943 fi
20944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20945 fi
20946
20947
20948 fi
20949 fi
20950 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20951 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20952 if test $ac_cv_header_stdc = yes; then
20953
20954 cat >>confdefs.h <<\_ACEOF
20955 #define STDC_HEADERS 1
20956 _ACEOF
20957
20958 fi
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968 for ac_header in string.h strings.h unistd.h fcntl.h sys/types.h sys/stat.h sys/mman.h libgen.h
20969 do
20970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20972   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20975   echo $ECHO_N "(cached) $ECHO_C" >&6
20976 fi
20977 ac_res=`eval echo '${'$as_ac_Header'}'`
20978                { echo "$as_me:$LINENO: result: $ac_res" >&5
20979 echo "${ECHO_T}$ac_res" >&6; }
20980 else
20981   # Is the header compilable?
20982 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20984 cat >conftest.$ac_ext <<_ACEOF
20985 /* confdefs.h.  */
20986 _ACEOF
20987 cat confdefs.h >>conftest.$ac_ext
20988 cat >>conftest.$ac_ext <<_ACEOF
20989 /* end confdefs.h.  */
20990 $ac_includes_default
20991 #include <$ac_header>
20992 _ACEOF
20993 rm -f conftest.$ac_objext
20994 if { (ac_try="$ac_compile"
20995 case "(($ac_try" in
20996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997   *) ac_try_echo=$ac_try;;
20998 esac
20999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21000   (eval "$ac_compile") 2>conftest.er1
21001   ac_status=$?
21002   grep -v '^ *+' conftest.er1 >conftest.err
21003   rm -f conftest.er1
21004   cat conftest.err >&5
21005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006   (exit $ac_status); } && {
21007          test -z "$ac_c_werror_flag" ||
21008          test ! -s conftest.err
21009        } && test -s conftest.$ac_objext; then
21010   ac_header_compiler=yes
21011 else
21012   echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21014
21015         ac_header_compiler=no
21016 fi
21017
21018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21020 echo "${ECHO_T}$ac_header_compiler" >&6; }
21021
21022 # Is the header present?
21023 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21024 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21025 cat >conftest.$ac_ext <<_ACEOF
21026 /* confdefs.h.  */
21027 _ACEOF
21028 cat confdefs.h >>conftest.$ac_ext
21029 cat >>conftest.$ac_ext <<_ACEOF
21030 /* end confdefs.h.  */
21031 #include <$ac_header>
21032 _ACEOF
21033 if { (ac_try="$ac_cpp conftest.$ac_ext"
21034 case "(($ac_try" in
21035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036   *) ac_try_echo=$ac_try;;
21037 esac
21038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21040   ac_status=$?
21041   grep -v '^ *+' conftest.er1 >conftest.err
21042   rm -f conftest.er1
21043   cat conftest.err >&5
21044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045   (exit $ac_status); } >/dev/null && {
21046          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21047          test ! -s conftest.err
21048        }; then
21049   ac_header_preproc=yes
21050 else
21051   echo "$as_me: failed program was:" >&5
21052 sed 's/^/| /' conftest.$ac_ext >&5
21053
21054   ac_header_preproc=no
21055 fi
21056
21057 rm -f conftest.err conftest.$ac_ext
21058 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21059 echo "${ECHO_T}$ac_header_preproc" >&6; }
21060
21061 # So?  What about this header?
21062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21063   yes:no: )
21064     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21068     ac_header_preproc=yes
21069     ;;
21070   no:yes:* )
21071     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21073     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21074 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21075     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21076 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21077     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21078 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21079     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21081     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21082 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21083     ( cat <<\_ASBOX
21084 ## ---------------------------------------- ##
21085 ## Report this to konn@users.sourceforge.jp ##
21086 ## ---------------------------------------- ##
21087 _ASBOX
21088      ) | sed "s/^/$as_me: WARNING:     /" >&2
21089     ;;
21090 esac
21091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21094   echo $ECHO_N "(cached) $ECHO_C" >&6
21095 else
21096   eval "$as_ac_Header=\$ac_header_preproc"
21097 fi
21098 ac_res=`eval echo '${'$as_ac_Header'}'`
21099                { echo "$as_me:$LINENO: result: $ac_res" >&5
21100 echo "${ECHO_T}$ac_res" >&6; }
21101
21102 fi
21103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21104   cat >>confdefs.h <<_ACEOF
21105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21106 _ACEOF
21107
21108 fi
21109
21110 done
21111
21112 APR_HEADER_DIR="`${APR_CONFIG} --includes | sed -e 's/-I//g' | sed -e 's/ //g'`"
21113
21114
21115 for ac_header in apr_shm.h apr_global_mutex.h
21116 do
21117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21119   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21122   echo $ECHO_N "(cached) $ECHO_C" >&6
21123 fi
21124 ac_res=`eval echo '${'$as_ac_Header'}'`
21125                { echo "$as_me:$LINENO: result: $ac_res" >&5
21126 echo "${ECHO_T}$ac_res" >&6; }
21127 else
21128   # Is the header compilable?
21129 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21131 cat >conftest.$ac_ext <<_ACEOF
21132 /* confdefs.h.  */
21133 _ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h.  */
21137 $ac_includes_default
21138 #include <$ac_header>
21139 _ACEOF
21140 rm -f conftest.$ac_objext
21141 if { (ac_try="$ac_compile"
21142 case "(($ac_try" in
21143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144   *) ac_try_echo=$ac_try;;
21145 esac
21146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21147   (eval "$ac_compile") 2>conftest.er1
21148   ac_status=$?
21149   grep -v '^ *+' conftest.er1 >conftest.err
21150   rm -f conftest.er1
21151   cat conftest.err >&5
21152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153   (exit $ac_status); } && {
21154          test -z "$ac_c_werror_flag" ||
21155          test ! -s conftest.err
21156        } && test -s conftest.$ac_objext; then
21157   ac_header_compiler=yes
21158 else
21159   echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21161
21162         ac_header_compiler=no
21163 fi
21164
21165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21167 echo "${ECHO_T}$ac_header_compiler" >&6; }
21168
21169 # Is the header present?
21170 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21172 cat >conftest.$ac_ext <<_ACEOF
21173 /* confdefs.h.  */
21174 _ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h.  */
21178 #include <$ac_header>
21179 _ACEOF
21180 if { (ac_try="$ac_cpp conftest.$ac_ext"
21181 case "(($ac_try" in
21182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21183   *) ac_try_echo=$ac_try;;
21184 esac
21185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21186   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21187   ac_status=$?
21188   grep -v '^ *+' conftest.er1 >conftest.err
21189   rm -f conftest.er1
21190   cat conftest.err >&5
21191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192   (exit $ac_status); } >/dev/null && {
21193          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21194          test ! -s conftest.err
21195        }; then
21196   ac_header_preproc=yes
21197 else
21198   echo "$as_me: failed program was:" >&5
21199 sed 's/^/| /' conftest.$ac_ext >&5
21200
21201   ac_header_preproc=no
21202 fi
21203
21204 rm -f conftest.err conftest.$ac_ext
21205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21206 echo "${ECHO_T}$ac_header_preproc" >&6; }
21207
21208 # So?  What about this header?
21209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21210   yes:no: )
21211     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21213     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21215     ac_header_preproc=yes
21216     ;;
21217   no:yes:* )
21218     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21220     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21221 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21222     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21224     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21225 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21228     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21230     ( cat <<\_ASBOX
21231 ## ---------------------------------------- ##
21232 ## Report this to konn@users.sourceforge.jp ##
21233 ## ---------------------------------------- ##
21234 _ASBOX
21235      ) | sed "s/^/$as_me: WARNING:     /" >&2
21236     ;;
21237 esac
21238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21241   echo $ECHO_N "(cached) $ECHO_C" >&6
21242 else
21243   eval "$as_ac_Header=\$ac_header_preproc"
21244 fi
21245 ac_res=`eval echo '${'$as_ac_Header'}'`
21246                { echo "$as_me:$LINENO: result: $ac_res" >&5
21247 echo "${ECHO_T}$ac_res" >&6; }
21248
21249 fi
21250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21251   cat >>confdefs.h <<_ACEOF
21252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21253 _ACEOF
21254
21255 fi
21256
21257 done
21258
21259
21260 for ac_header in apr.h
21261 do
21262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21264   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21267   echo $ECHO_N "(cached) $ECHO_C" >&6
21268 fi
21269 ac_res=`eval echo '${'$as_ac_Header'}'`
21270                { echo "$as_me:$LINENO: result: $ac_res" >&5
21271 echo "${ECHO_T}$ac_res" >&6; }
21272 else
21273   # Is the header compilable?
21274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21276 cat >conftest.$ac_ext <<_ACEOF
21277 /* confdefs.h.  */
21278 _ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h.  */
21282 $ac_includes_default
21283 #include <$ac_header>
21284 _ACEOF
21285 rm -f conftest.$ac_objext
21286 if { (ac_try="$ac_compile"
21287 case "(($ac_try" in
21288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289   *) ac_try_echo=$ac_try;;
21290 esac
21291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21292   (eval "$ac_compile") 2>conftest.er1
21293   ac_status=$?
21294   grep -v '^ *+' conftest.er1 >conftest.err
21295   rm -f conftest.er1
21296   cat conftest.err >&5
21297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298   (exit $ac_status); } && {
21299          test -z "$ac_c_werror_flag" ||
21300          test ! -s conftest.err
21301        } && test -s conftest.$ac_objext; then
21302   ac_header_compiler=yes
21303 else
21304   echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21306
21307         ac_header_compiler=no
21308 fi
21309
21310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21311 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21312 echo "${ECHO_T}$ac_header_compiler" >&6; }
21313
21314 # Is the header present?
21315 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21317 cat >conftest.$ac_ext <<_ACEOF
21318 /* confdefs.h.  */
21319 _ACEOF
21320 cat confdefs.h >>conftest.$ac_ext
21321 cat >>conftest.$ac_ext <<_ACEOF
21322 /* end confdefs.h.  */
21323 #include <$ac_header>
21324 _ACEOF
21325 if { (ac_try="$ac_cpp conftest.$ac_ext"
21326 case "(($ac_try" in
21327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21328   *) ac_try_echo=$ac_try;;
21329 esac
21330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21331   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21332   ac_status=$?
21333   grep -v '^ *+' conftest.er1 >conftest.err
21334   rm -f conftest.er1
21335   cat conftest.err >&5
21336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337   (exit $ac_status); } >/dev/null && {
21338          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21339          test ! -s conftest.err
21340        }; then
21341   ac_header_preproc=yes
21342 else
21343   echo "$as_me: failed program was:" >&5
21344 sed 's/^/| /' conftest.$ac_ext >&5
21345
21346   ac_header_preproc=no
21347 fi
21348
21349 rm -f conftest.err conftest.$ac_ext
21350 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21351 echo "${ECHO_T}$ac_header_preproc" >&6; }
21352
21353 # So?  What about this header?
21354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21355   yes:no: )
21356     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21358     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21360     ac_header_preproc=yes
21361     ;;
21362   no:yes:* )
21363     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21365     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21366 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21367     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21369     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21370 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21373     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21375     ( cat <<\_ASBOX
21376 ## ---------------------------------------- ##
21377 ## Report this to konn@users.sourceforge.jp ##
21378 ## ---------------------------------------- ##
21379 _ASBOX
21380      ) | sed "s/^/$as_me: WARNING:     /" >&2
21381     ;;
21382 esac
21383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21386   echo $ECHO_N "(cached) $ECHO_C" >&6
21387 else
21388   eval "$as_ac_Header=\$ac_header_preproc"
21389 fi
21390 ac_res=`eval echo '${'$as_ac_Header'}'`
21391                { echo "$as_me:$LINENO: result: $ac_res" >&5
21392 echo "${ECHO_T}$ac_res" >&6; }
21393
21394 fi
21395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21396   cat >>confdefs.h <<_ACEOF
21397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21398 _ACEOF
21399
21400 fi
21401
21402 done
21403
21404
21405 for ac_header in ap_config.h
21406 do
21407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21409   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21412   echo $ECHO_N "(cached) $ECHO_C" >&6
21413 fi
21414 ac_res=`eval echo '${'$as_ac_Header'}'`
21415                { echo "$as_me:$LINENO: result: $ac_res" >&5
21416 echo "${ECHO_T}$ac_res" >&6; }
21417 else
21418   # Is the header compilable?
21419 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21421 cat >conftest.$ac_ext <<_ACEOF
21422 /* confdefs.h.  */
21423 _ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h.  */
21427 $ac_includes_default
21428 #include <$ac_header>
21429 _ACEOF
21430 rm -f conftest.$ac_objext
21431 if { (ac_try="$ac_compile"
21432 case "(($ac_try" in
21433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21434   *) ac_try_echo=$ac_try;;
21435 esac
21436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21437   (eval "$ac_compile") 2>conftest.er1
21438   ac_status=$?
21439   grep -v '^ *+' conftest.er1 >conftest.err
21440   rm -f conftest.er1
21441   cat conftest.err >&5
21442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443   (exit $ac_status); } && {
21444          test -z "$ac_c_werror_flag" ||
21445          test ! -s conftest.err
21446        } && test -s conftest.$ac_objext; then
21447   ac_header_compiler=yes
21448 else
21449   echo "$as_me: failed program was:" >&5
21450 sed 's/^/| /' conftest.$ac_ext >&5
21451
21452         ac_header_compiler=no
21453 fi
21454
21455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21457 echo "${ECHO_T}$ac_header_compiler" >&6; }
21458
21459 # Is the header present?
21460 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21462 cat >conftest.$ac_ext <<_ACEOF
21463 /* confdefs.h.  */
21464 _ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h.  */
21468 #include <$ac_header>
21469 _ACEOF
21470 if { (ac_try="$ac_cpp conftest.$ac_ext"
21471 case "(($ac_try" in
21472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21473   *) ac_try_echo=$ac_try;;
21474 esac
21475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21476   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21477   ac_status=$?
21478   grep -v '^ *+' conftest.er1 >conftest.err
21479   rm -f conftest.er1
21480   cat conftest.err >&5
21481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482   (exit $ac_status); } >/dev/null && {
21483          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21484          test ! -s conftest.err
21485        }; then
21486   ac_header_preproc=yes
21487 else
21488   echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21490
21491   ac_header_preproc=no
21492 fi
21493
21494 rm -f conftest.err conftest.$ac_ext
21495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21496 echo "${ECHO_T}$ac_header_preproc" >&6; }
21497
21498 # So?  What about this header?
21499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21500   yes:no: )
21501     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21503     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21505     ac_header_preproc=yes
21506     ;;
21507   no:yes:* )
21508     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21510     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21511 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21512     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21514     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21515 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21518     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21520     ( cat <<\_ASBOX
21521 ## ---------------------------------------- ##
21522 ## Report this to konn@users.sourceforge.jp ##
21523 ## ---------------------------------------- ##
21524 _ASBOX
21525      ) | sed "s/^/$as_me: WARNING:     /" >&2
21526     ;;
21527 esac
21528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21531   echo $ECHO_N "(cached) $ECHO_C" >&6
21532 else
21533   eval "$as_ac_Header=\$ac_header_preproc"
21534 fi
21535 ac_res=`eval echo '${'$as_ac_Header'}'`
21536                { echo "$as_me:$LINENO: result: $ac_res" >&5
21537 echo "${ECHO_T}$ac_res" >&6; }
21538
21539 fi
21540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21541   cat >>confdefs.h <<_ACEOF
21542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21543 _ACEOF
21544
21545 fi
21546
21547 done
21548
21549
21550 for ac_header in libgen.h
21551 do
21552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21554   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21557   echo $ECHO_N "(cached) $ECHO_C" >&6
21558 fi
21559 ac_res=`eval echo '${'$as_ac_Header'}'`
21560                { echo "$as_me:$LINENO: result: $ac_res" >&5
21561 echo "${ECHO_T}$ac_res" >&6; }
21562 else
21563   # Is the header compilable?
21564 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21566 cat >conftest.$ac_ext <<_ACEOF
21567 /* confdefs.h.  */
21568 _ACEOF
21569 cat confdefs.h >>conftest.$ac_ext
21570 cat >>conftest.$ac_ext <<_ACEOF
21571 /* end confdefs.h.  */
21572 $ac_includes_default
21573 #include <$ac_header>
21574 _ACEOF
21575 rm -f conftest.$ac_objext
21576 if { (ac_try="$ac_compile"
21577 case "(($ac_try" in
21578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21579   *) ac_try_echo=$ac_try;;
21580 esac
21581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21582   (eval "$ac_compile") 2>conftest.er1
21583   ac_status=$?
21584   grep -v '^ *+' conftest.er1 >conftest.err
21585   rm -f conftest.er1
21586   cat conftest.err >&5
21587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588   (exit $ac_status); } && {
21589          test -z "$ac_c_werror_flag" ||
21590          test ! -s conftest.err
21591        } && test -s conftest.$ac_objext; then
21592   ac_header_compiler=yes
21593 else
21594   echo "$as_me: failed program was:" >&5
21595 sed 's/^/| /' conftest.$ac_ext >&5
21596
21597         ac_header_compiler=no
21598 fi
21599
21600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21602 echo "${ECHO_T}$ac_header_compiler" >&6; }
21603
21604 # Is the header present?
21605 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21607 cat >conftest.$ac_ext <<_ACEOF
21608 /* confdefs.h.  */
21609 _ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h.  */
21613 #include <$ac_header>
21614 _ACEOF
21615 if { (ac_try="$ac_cpp conftest.$ac_ext"
21616 case "(($ac_try" in
21617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21618   *) ac_try_echo=$ac_try;;
21619 esac
21620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21621   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21622   ac_status=$?
21623   grep -v '^ *+' conftest.er1 >conftest.err
21624   rm -f conftest.er1
21625   cat conftest.err >&5
21626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627   (exit $ac_status); } >/dev/null && {
21628          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21629          test ! -s conftest.err
21630        }; then
21631   ac_header_preproc=yes
21632 else
21633   echo "$as_me: failed program was:" >&5
21634 sed 's/^/| /' conftest.$ac_ext >&5
21635
21636   ac_header_preproc=no
21637 fi
21638
21639 rm -f conftest.err conftest.$ac_ext
21640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21641 echo "${ECHO_T}$ac_header_preproc" >&6; }
21642
21643 # So?  What about this header?
21644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21645   yes:no: )
21646     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21648     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21650     ac_header_preproc=yes
21651     ;;
21652   no:yes:* )
21653     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21655     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21656 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21657     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21659     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21660 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21661     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21663     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21665     ( cat <<\_ASBOX
21666 ## ---------------------------------------- ##
21667 ## Report this to konn@users.sourceforge.jp ##
21668 ## ---------------------------------------- ##
21669 _ASBOX
21670      ) | sed "s/^/$as_me: WARNING:     /" >&2
21671     ;;
21672 esac
21673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21676   echo $ECHO_N "(cached) $ECHO_C" >&6
21677 else
21678   eval "$as_ac_Header=\$ac_header_preproc"
21679 fi
21680 ac_res=`eval echo '${'$as_ac_Header'}'`
21681                { echo "$as_me:$LINENO: result: $ac_res" >&5
21682 echo "${ECHO_T}$ac_res" >&6; }
21683
21684 fi
21685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21686   cat >>confdefs.h <<_ACEOF
21687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21688 _ACEOF
21689
21690 fi
21691
21692 done
21693
21694 #AC_CHECK_HEADERS([ap_regex.h],
21695 #  AC_DEFINE([HAVE_AP_REGEX_H], [], [Define to 1 if you have the <ap_regex.h> header file.]),[],
21696 #[[
21697 ##ifdef HAVE_APR_H
21698 ##include "apr.h"
21699 ##endif
21700 ##ifdef HAVE_AP_CONFIG_H
21701 ##include "ap_config.h"
21702 ##endif
21703 #]])
21704
21705 for ac_header in ap_regex.h
21706 do
21707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21711   echo $ECHO_N "(cached) $ECHO_C" >&6
21712 else
21713   cat >conftest.$ac_ext <<_ACEOF
21714 /* confdefs.h.  */
21715 _ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h.  */
21719 #ifdef HAVE_APR_H
21720 # include "apr.h"
21721 #endif
21722 #ifdef HAVE_AP_CONFIG_H
21723 # include "ap_config.h"
21724 #endif
21725
21726
21727 #include <$ac_header>
21728 _ACEOF
21729 rm -f conftest.$ac_objext
21730 if { (ac_try="$ac_compile"
21731 case "(($ac_try" in
21732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21733   *) ac_try_echo=$ac_try;;
21734 esac
21735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21736   (eval "$ac_compile") 2>conftest.er1
21737   ac_status=$?
21738   grep -v '^ *+' conftest.er1 >conftest.err
21739   rm -f conftest.er1
21740   cat conftest.err >&5
21741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742   (exit $ac_status); } && {
21743          test -z "$ac_c_werror_flag" ||
21744          test ! -s conftest.err
21745        } && test -s conftest.$ac_objext; then
21746   eval "$as_ac_Header=yes"
21747 else
21748   echo "$as_me: failed program was:" >&5
21749 sed 's/^/| /' conftest.$ac_ext >&5
21750
21751         eval "$as_ac_Header=no"
21752 fi
21753
21754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21755 fi
21756 ac_res=`eval echo '${'$as_ac_Header'}'`
21757                { echo "$as_me:$LINENO: result: $ac_res" >&5
21758 echo "${ECHO_T}$ac_res" >&6; }
21759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21760   cat >>confdefs.h <<_ACEOF
21761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21762 _ACEOF
21763  use_pcre_flag="no"
21764 else
21765   use_pcre_flag="yes"
21766 fi
21767
21768 done
21769
21770 if test "x$use_pcre_flag" = "xyes" ; then
21771   if test "x$with_pcre_config" = "x" ; then
21772     # Extract the first word of "pcre-config", so it can be a program name with args.
21773 set dummy pcre-config; ac_word=$2
21774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21776 if test "${ac_cv_path_PCRE_CONFIG+set}" = set; then
21777   echo $ECHO_N "(cached) $ECHO_C" >&6
21778 else
21779   case $PCRE_CONFIG in
21780   [\\/]* | ?:[\\/]*)
21781   ac_cv_path_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test with a path.
21782   ;;
21783   *)
21784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21785 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21786 for as_dir in $as_dummy
21787 do
21788   IFS=$as_save_IFS
21789   test -z "$as_dir" && as_dir=.
21790   for ac_exec_ext in '' $ac_executable_extensions; do
21791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21792     ac_cv_path_PCRE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21794     break 2
21795   fi
21796 done
21797 done
21798 IFS=$as_save_IFS
21799
21800   test -z "$ac_cv_path_PCRE_CONFIG" && ac_cv_path_PCRE_CONFIG="no"
21801   ;;
21802 esac
21803 fi
21804 PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG
21805 if test -n "$PCRE_CONFIG"; then
21806   { echo "$as_me:$LINENO: result: $PCRE_CONFIG" >&5
21807 echo "${ECHO_T}$PCRE_CONFIG" >&6; }
21808 else
21809   { echo "$as_me:$LINENO: result: no" >&5
21810 echo "${ECHO_T}no" >&6; }
21811 fi
21812
21813
21814     if test "x$PCRE_CONFIG" = "xno" ; then
21815       # Extract the first word of "pcre-1-config", so it can be a program name with args.
21816 set dummy pcre-1-config; ac_word=$2
21817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21819 if test "${ac_cv_path_PCRE_1_CONFIG+set}" = set; then
21820   echo $ECHO_N "(cached) $ECHO_C" >&6
21821 else
21822   case $PCRE_1_CONFIG in
21823   [\\/]* | ?:[\\/]*)
21824   ac_cv_path_PCRE_1_CONFIG="$PCRE_1_CONFIG" # Let the user override the test with a path.
21825   ;;
21826   *)
21827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21828 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21829 for as_dir in $as_dummy
21830 do
21831   IFS=$as_save_IFS
21832   test -z "$as_dir" && as_dir=.
21833   for ac_exec_ext in '' $ac_executable_extensions; do
21834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21835     ac_cv_path_PCRE_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21837     break 2
21838   fi
21839 done
21840 done
21841 IFS=$as_save_IFS
21842
21843   test -z "$ac_cv_path_PCRE_1_CONFIG" && ac_cv_path_PCRE_1_CONFIG="no"
21844   ;;
21845 esac
21846 fi
21847 PCRE_1_CONFIG=$ac_cv_path_PCRE_1_CONFIG
21848 if test -n "$PCRE_1_CONFIG"; then
21849   { echo "$as_me:$LINENO: result: $PCRE_1_CONFIG" >&5
21850 echo "${ECHO_T}$PCRE_1_CONFIG" >&6; }
21851 else
21852   { echo "$as_me:$LINENO: result: no" >&5
21853 echo "${ECHO_T}no" >&6; }
21854 fi
21855
21856
21857       if test "x$PCRE_1_CONFIG" = "xno" ; then
21858         { { echo "$as_me:$LINENO: error: pcre-config and pcre-1-config not found." >&5
21859 echo "$as_me: error: pcre-config and pcre-1-config not found." >&2;}
21860    { (exit 1); exit 1; }; }
21861       else
21862         PCRE_CONFIG="$PCRE_1_CONFIG"
21863       fi
21864     fi
21865   fi
21866   if test "x$with_pcre_config" != "x" ; then
21867     PCRE_CONFIG=$with_pcre_config
21868   fi
21869   CFLAGS="${CFLAGS} `${PCRE_CONFIG} --cflags`"
21870 else
21871
21872 cat >>confdefs.h <<\_ACEOF
21873 #define HAVE_AP_REGEX_H 1
21874 _ACEOF
21875
21876 fi
21877
21878 # Checks for typedefs, structures, and compiler characteristics.
21879 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21880 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21881 if test "${ac_cv_c_const+set}" = set; then
21882   echo $ECHO_N "(cached) $ECHO_C" >&6
21883 else
21884   cat >conftest.$ac_ext <<_ACEOF
21885 /* confdefs.h.  */
21886 _ACEOF
21887 cat confdefs.h >>conftest.$ac_ext
21888 cat >>conftest.$ac_ext <<_ACEOF
21889 /* end confdefs.h.  */
21890
21891 int
21892 main ()
21893 {
21894 /* FIXME: Include the comments suggested by Paul. */
21895 #ifndef __cplusplus
21896   /* Ultrix mips cc rejects this.  */
21897   typedef int charset[2];
21898   const charset cs;
21899   /* SunOS 4.1.1 cc rejects this.  */
21900   char const *const *pcpcc;
21901   char **ppc;
21902   /* NEC SVR4.0.2 mips cc rejects this.  */
21903   struct point {int x, y;};
21904   static struct point const zero = {0,0};
21905   /* AIX XL C 1.02.0.0 rejects this.
21906      It does not let you subtract one const X* pointer from another in
21907      an arm of an if-expression whose if-part is not a constant
21908      expression */
21909   const char *g = "string";
21910   pcpcc = &g + (g ? g-g : 0);
21911   /* HPUX 7.0 cc rejects these. */
21912   ++pcpcc;
21913   ppc = (char**) pcpcc;
21914   pcpcc = (char const *const *) ppc;
21915   { /* SCO 3.2v4 cc rejects this.  */
21916     char *t;
21917     char const *s = 0 ? (char *) 0 : (char const *) 0;
21918
21919     *t++ = 0;
21920     if (s) return 0;
21921   }
21922   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21923     int x[] = {25, 17};
21924     const int *foo = &x[0];
21925     ++foo;
21926   }
21927   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21928     typedef const int *iptr;
21929     iptr p = 0;
21930     ++p;
21931   }
21932   { /* AIX XL C 1.02.0.0 rejects this saying
21933        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21934     struct s { int j; const int *ap[3]; };
21935     struct s *b; b->j = 5;
21936   }
21937   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21938     const int foo = 10;
21939     if (!foo) return 0;
21940   }
21941   return !cs[0] && !zero.x;
21942 #endif
21943
21944   ;
21945   return 0;
21946 }
21947 _ACEOF
21948 rm -f conftest.$ac_objext
21949 if { (ac_try="$ac_compile"
21950 case "(($ac_try" in
21951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21952   *) ac_try_echo=$ac_try;;
21953 esac
21954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21955   (eval "$ac_compile") 2>conftest.er1
21956   ac_status=$?
21957   grep -v '^ *+' conftest.er1 >conftest.err
21958   rm -f conftest.er1
21959   cat conftest.err >&5
21960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961   (exit $ac_status); } && {
21962          test -z "$ac_c_werror_flag" ||
21963          test ! -s conftest.err
21964        } && test -s conftest.$ac_objext; then
21965   ac_cv_c_const=yes
21966 else
21967   echo "$as_me: failed program was:" >&5
21968 sed 's/^/| /' conftest.$ac_ext >&5
21969
21970         ac_cv_c_const=no
21971 fi
21972
21973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21974 fi
21975 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21976 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21977 if test $ac_cv_c_const = no; then
21978
21979 cat >>confdefs.h <<\_ACEOF
21980 #define const
21981 _ACEOF
21982
21983 fi
21984
21985
21986 # Checks for library functions.
21987
21988 for ac_header in stdlib.h
21989 do
21990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21992   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21995   echo $ECHO_N "(cached) $ECHO_C" >&6
21996 fi
21997 ac_res=`eval echo '${'$as_ac_Header'}'`
21998                { echo "$as_me:$LINENO: result: $ac_res" >&5
21999 echo "${ECHO_T}$ac_res" >&6; }
22000 else
22001   # Is the header compilable?
22002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22004 cat >conftest.$ac_ext <<_ACEOF
22005 /* confdefs.h.  */
22006 _ACEOF
22007 cat confdefs.h >>conftest.$ac_ext
22008 cat >>conftest.$ac_ext <<_ACEOF
22009 /* end confdefs.h.  */
22010 $ac_includes_default
22011 #include <$ac_header>
22012 _ACEOF
22013 rm -f conftest.$ac_objext
22014 if { (ac_try="$ac_compile"
22015 case "(($ac_try" in
22016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22017   *) ac_try_echo=$ac_try;;
22018 esac
22019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22020   (eval "$ac_compile") 2>conftest.er1
22021   ac_status=$?
22022   grep -v '^ *+' conftest.er1 >conftest.err
22023   rm -f conftest.er1
22024   cat conftest.err >&5
22025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026   (exit $ac_status); } && {
22027          test -z "$ac_c_werror_flag" ||
22028          test ! -s conftest.err
22029        } && test -s conftest.$ac_objext; then
22030   ac_header_compiler=yes
22031 else
22032   echo "$as_me: failed program was:" >&5
22033 sed 's/^/| /' conftest.$ac_ext >&5
22034
22035         ac_header_compiler=no
22036 fi
22037
22038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22040 echo "${ECHO_T}$ac_header_compiler" >&6; }
22041
22042 # Is the header present?
22043 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22045 cat >conftest.$ac_ext <<_ACEOF
22046 /* confdefs.h.  */
22047 _ACEOF
22048 cat confdefs.h >>conftest.$ac_ext
22049 cat >>conftest.$ac_ext <<_ACEOF
22050 /* end confdefs.h.  */
22051 #include <$ac_header>
22052 _ACEOF
22053 if { (ac_try="$ac_cpp conftest.$ac_ext"
22054 case "(($ac_try" in
22055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056   *) ac_try_echo=$ac_try;;
22057 esac
22058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22059   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22060   ac_status=$?
22061   grep -v '^ *+' conftest.er1 >conftest.err
22062   rm -f conftest.er1
22063   cat conftest.err >&5
22064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065   (exit $ac_status); } >/dev/null && {
22066          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22067          test ! -s conftest.err
22068        }; then
22069   ac_header_preproc=yes
22070 else
22071   echo "$as_me: failed program was:" >&5
22072 sed 's/^/| /' conftest.$ac_ext >&5
22073
22074   ac_header_preproc=no
22075 fi
22076
22077 rm -f conftest.err conftest.$ac_ext
22078 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22079 echo "${ECHO_T}$ac_header_preproc" >&6; }
22080
22081 # So?  What about this header?
22082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22083   yes:no: )
22084     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22086     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22088     ac_header_preproc=yes
22089     ;;
22090   no:yes:* )
22091     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22093     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22094 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22095     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22097     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22098 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22101     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22103     ( cat <<\_ASBOX
22104 ## ---------------------------------------- ##
22105 ## Report this to konn@users.sourceforge.jp ##
22106 ## ---------------------------------------- ##
22107 _ASBOX
22108      ) | sed "s/^/$as_me: WARNING:     /" >&2
22109     ;;
22110 esac
22111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22114   echo $ECHO_N "(cached) $ECHO_C" >&6
22115 else
22116   eval "$as_ac_Header=\$ac_header_preproc"
22117 fi
22118 ac_res=`eval echo '${'$as_ac_Header'}'`
22119                { echo "$as_me:$LINENO: result: $ac_res" >&5
22120 echo "${ECHO_T}$ac_res" >&6; }
22121
22122 fi
22123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22124   cat >>confdefs.h <<_ACEOF
22125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22126 _ACEOF
22127
22128 fi
22129
22130 done
22131
22132 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22133 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
22134 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22135   echo $ECHO_N "(cached) $ECHO_C" >&6
22136 else
22137   if test "$cross_compiling" = yes; then
22138   ac_cv_func_malloc_0_nonnull=no
22139 else
22140   cat >conftest.$ac_ext <<_ACEOF
22141 /* confdefs.h.  */
22142 _ACEOF
22143 cat confdefs.h >>conftest.$ac_ext
22144 cat >>conftest.$ac_ext <<_ACEOF
22145 /* end confdefs.h.  */
22146 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
22147 # include <stdlib.h>
22148 #else
22149 char *malloc ();
22150 #endif
22151
22152 int
22153 main ()
22154 {
22155 return ! malloc (0);
22156   ;
22157   return 0;
22158 }
22159 _ACEOF
22160 rm -f conftest$ac_exeext
22161 if { (ac_try="$ac_link"
22162 case "(($ac_try" in
22163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22164   *) ac_try_echo=$ac_try;;
22165 esac
22166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22167   (eval "$ac_link") 2>&5
22168   ac_status=$?
22169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22171   { (case "(($ac_try" in
22172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173   *) ac_try_echo=$ac_try;;
22174 esac
22175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22176   (eval "$ac_try") 2>&5
22177   ac_status=$?
22178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179   (exit $ac_status); }; }; then
22180   ac_cv_func_malloc_0_nonnull=yes
22181 else
22182   echo "$as_me: program exited with status $ac_status" >&5
22183 echo "$as_me: failed program was:" >&5
22184 sed 's/^/| /' conftest.$ac_ext >&5
22185
22186 ( exit $ac_status )
22187 ac_cv_func_malloc_0_nonnull=no
22188 fi
22189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22190 fi
22191
22192
22193 fi
22194 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22195 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
22196 if test $ac_cv_func_malloc_0_nonnull = yes; then
22197
22198 cat >>confdefs.h <<\_ACEOF
22199 #define HAVE_MALLOC 1
22200 _ACEOF
22201
22202 else
22203   cat >>confdefs.h <<\_ACEOF
22204 #define HAVE_MALLOC 0
22205 _ACEOF
22206
22207    case " $LIBOBJS " in
22208   *" malloc.$ac_objext "* ) ;;
22209   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
22210  ;;
22211 esac
22212
22213
22214 cat >>confdefs.h <<\_ACEOF
22215 #define malloc rpl_malloc
22216 _ACEOF
22217
22218 fi
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230 for ac_func in open mmap close memset memcpy strcasecmp strncasecmp strstr
22231 do
22232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22236   echo $ECHO_N "(cached) $ECHO_C" >&6
22237 else
22238   cat >conftest.$ac_ext <<_ACEOF
22239 /* confdefs.h.  */
22240 _ACEOF
22241 cat confdefs.h >>conftest.$ac_ext
22242 cat >>conftest.$ac_ext <<_ACEOF
22243 /* end confdefs.h.  */
22244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22246 #define $ac_func innocuous_$ac_func
22247
22248 /* System header to define __stub macros and hopefully few prototypes,
22249     which can conflict with char $ac_func (); below.
22250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22251     <limits.h> exists even on freestanding compilers.  */
22252
22253 #ifdef __STDC__
22254 # include <limits.h>
22255 #else
22256 # include <assert.h>
22257 #endif
22258
22259 #undef $ac_func
22260
22261 /* Override any GCC internal prototype to avoid an error.
22262    Use char because int might match the return type of a GCC
22263    builtin and then its argument prototype would still apply.  */
22264 #ifdef __cplusplus
22265 extern "C"
22266 #endif
22267 char $ac_func ();
22268 /* The GNU C library defines this for functions which it implements
22269     to always fail with ENOSYS.  Some functions are actually named
22270     something starting with __ and the normal name is an alias.  */
22271 #if defined __stub_$ac_func || defined __stub___$ac_func
22272 choke me
22273 #endif
22274
22275 int
22276 main ()
22277 {
22278 return $ac_func ();
22279   ;
22280   return 0;
22281 }
22282 _ACEOF
22283 rm -f conftest.$ac_objext conftest$ac_exeext
22284 if { (ac_try="$ac_link"
22285 case "(($ac_try" in
22286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287   *) ac_try_echo=$ac_try;;
22288 esac
22289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22290   (eval "$ac_link") 2>conftest.er1
22291   ac_status=$?
22292   grep -v '^ *+' conftest.er1 >conftest.err
22293   rm -f conftest.er1
22294   cat conftest.err >&5
22295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296   (exit $ac_status); } && {
22297          test -z "$ac_c_werror_flag" ||
22298          test ! -s conftest.err
22299        } && test -s conftest$ac_exeext &&
22300        $as_test_x conftest$ac_exeext; then
22301   eval "$as_ac_var=yes"
22302 else
22303   echo "$as_me: failed program was:" >&5
22304 sed 's/^/| /' conftest.$ac_ext >&5
22305
22306         eval "$as_ac_var=no"
22307 fi
22308
22309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22310       conftest$ac_exeext conftest.$ac_ext
22311 fi
22312 ac_res=`eval echo '${'$as_ac_var'}'`
22313                { echo "$as_me:$LINENO: result: $ac_res" >&5
22314 echo "${ECHO_T}$ac_res" >&6; }
22315 if test `eval echo '${'$as_ac_var'}'` = yes; then
22316   cat >>confdefs.h <<_ACEOF
22317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22318 _ACEOF
22319
22320 fi
22321 done
22322
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335 ac_config_files="$ac_config_files Makefile src/Makefile support/centos/mod-chxj.spec"
22336
22337 cat >confcache <<\_ACEOF
22338 # This file is a shell script that caches the results of configure
22339 # tests run on this system so they can be shared between configure
22340 # scripts and configure runs, see configure's option --config-cache.
22341 # It is not useful on other systems.  If it contains results you don't
22342 # want to keep, you may remove or edit it.
22343 #
22344 # config.status only pays attention to the cache file if you give it
22345 # the --recheck option to rerun configure.
22346 #
22347 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22348 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22349 # following values.
22350
22351 _ACEOF
22352
22353 # The following way of writing the cache mishandles newlines in values,
22354 # but we know of no workaround that is simple, portable, and efficient.
22355 # So, we kill variables containing newlines.
22356 # Ultrix sh set writes to stderr and can't be redirected directly,
22357 # and sets the high bit in the cache file unless we assign to the vars.
22358 (
22359   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22360     eval ac_val=\$$ac_var
22361     case $ac_val in #(
22362     *${as_nl}*)
22363       case $ac_var in #(
22364       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22365 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22366       esac
22367       case $ac_var in #(
22368       _ | IFS | as_nl) ;; #(
22369       *) $as_unset $ac_var ;;
22370       esac ;;
22371     esac
22372   done
22373
22374   (set) 2>&1 |
22375     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22376     *${as_nl}ac_space=\ *)
22377       # `set' does not quote correctly, so add quotes (double-quote
22378       # substitution turns \\\\ into \\, and sed turns \\ into \).
22379       sed -n \
22380         "s/'/'\\\\''/g;
22381           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22382       ;; #(
22383     *)
22384       # `set' quotes correctly as required by POSIX, so do not add quotes.
22385       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22386       ;;
22387     esac |
22388     sort
22389 ) |
22390   sed '
22391      /^ac_cv_env_/b end
22392      t clear
22393      :clear
22394      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22395      t end
22396      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22397      :end' >>confcache
22398 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22399   if test -w "$cache_file"; then
22400     test "x$cache_file" != "x/dev/null" &&
22401       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22402 echo "$as_me: updating cache $cache_file" >&6;}
22403     cat confcache >$cache_file
22404   else
22405     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22406 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22407   fi
22408 fi
22409 rm -f confcache
22410
22411 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22412 # Let make expand exec_prefix.
22413 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22414
22415 DEFS=-DHAVE_CONFIG_H
22416
22417 ac_libobjs=
22418 ac_ltlibobjs=
22419 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22420   # 1. Remove the extension, and $U if already installed.
22421   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22422   ac_i=`echo "$ac_i" | sed "$ac_script"`
22423   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22424   #    will be set to the directory where LIBOBJS objects are built.
22425   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22426   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22427 done
22428 LIBOBJS=$ac_libobjs
22429
22430 LTLIBOBJS=$ac_ltlibobjs
22431
22432
22433 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22434   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22435 Usually this means the macro was only invoked conditionally." >&5
22436 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22437 Usually this means the macro was only invoked conditionally." >&2;}
22438    { (exit 1); exit 1; }; }
22439 fi
22440 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22441   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22442 Usually this means the macro was only invoked conditionally." >&5
22443 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22444 Usually this means the macro was only invoked conditionally." >&2;}
22445    { (exit 1); exit 1; }; }
22446 fi
22447 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22448   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22449 Usually this means the macro was only invoked conditionally." >&5
22450 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22451 Usually this means the macro was only invoked conditionally." >&2;}
22452    { (exit 1); exit 1; }; }
22453 fi
22454
22455 : ${CONFIG_STATUS=./config.status}
22456 ac_clean_files_save=$ac_clean_files
22457 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22458 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22459 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22460 cat >$CONFIG_STATUS <<_ACEOF
22461 #! $SHELL
22462 # Generated by $as_me.
22463 # Run this file to recreate the current configuration.
22464 # Compiler output produced by configure, useful for debugging
22465 # configure, is in config.log if it exists.
22466
22467 debug=false
22468 ac_cs_recheck=false
22469 ac_cs_silent=false
22470 SHELL=\${CONFIG_SHELL-$SHELL}
22471 _ACEOF
22472
22473 cat >>$CONFIG_STATUS <<\_ACEOF
22474 ## --------------------- ##
22475 ## M4sh Initialization.  ##
22476 ## --------------------- ##
22477
22478 # Be more Bourne compatible
22479 DUALCASE=1; export DUALCASE # for MKS sh
22480 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22481   emulate sh
22482   NULLCMD=:
22483   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22484   # is contrary to our usage.  Disable this feature.
22485   alias -g '${1+"$@"}'='"$@"'
22486   setopt NO_GLOB_SUBST
22487 else
22488   case `(set -o) 2>/dev/null` in
22489   *posix*) set -o posix ;;
22490 esac
22491
22492 fi
22493
22494
22495
22496
22497 # PATH needs CR
22498 # Avoid depending upon Character Ranges.
22499 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22500 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22501 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22502 as_cr_digits='0123456789'
22503 as_cr_alnum=$as_cr_Letters$as_cr_digits
22504
22505 # The user is always right.
22506 if test "${PATH_SEPARATOR+set}" != set; then
22507   echo "#! /bin/sh" >conf$$.sh
22508   echo  "exit 0"   >>conf$$.sh
22509   chmod +x conf$$.sh
22510   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22511     PATH_SEPARATOR=';'
22512   else
22513     PATH_SEPARATOR=:
22514   fi
22515   rm -f conf$$.sh
22516 fi
22517
22518 # Support unset when possible.
22519 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22520   as_unset=unset
22521 else
22522   as_unset=false
22523 fi
22524
22525
22526 # IFS
22527 # We need space, tab and new line, in precisely that order.  Quoting is
22528 # there to prevent editors from complaining about space-tab.
22529 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22530 # splitting by setting IFS to empty value.)
22531 as_nl='
22532 '
22533 IFS=" ""        $as_nl"
22534
22535 # Find who we are.  Look in the path if we contain no directory separator.
22536 case $0 in
22537   *[\\/]* ) as_myself=$0 ;;
22538   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22539 for as_dir in $PATH
22540 do
22541   IFS=$as_save_IFS
22542   test -z "$as_dir" && as_dir=.
22543   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22544 done
22545 IFS=$as_save_IFS
22546
22547      ;;
22548 esac
22549 # We did not find ourselves, most probably we were run as `sh COMMAND'
22550 # in which case we are not to be found in the path.
22551 if test "x$as_myself" = x; then
22552   as_myself=$0
22553 fi
22554 if test ! -f "$as_myself"; then
22555   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22556   { (exit 1); exit 1; }
22557 fi
22558
22559 # Work around bugs in pre-3.0 UWIN ksh.
22560 for as_var in ENV MAIL MAILPATH
22561 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22562 done
22563 PS1='$ '
22564 PS2='> '
22565 PS4='+ '
22566
22567 # NLS nuisances.
22568 for as_var in \
22569   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22570   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22571   LC_TELEPHONE LC_TIME
22572 do
22573   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22574     eval $as_var=C; export $as_var
22575   else
22576     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22577   fi
22578 done
22579
22580 # Required to use basename.
22581 if expr a : '\(a\)' >/dev/null 2>&1 &&
22582    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22583   as_expr=expr
22584 else
22585   as_expr=false
22586 fi
22587
22588 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22589   as_basename=basename
22590 else
22591   as_basename=false
22592 fi
22593
22594
22595 # Name of the executable.
22596 as_me=`$as_basename -- "$0" ||
22597 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22598          X"$0" : 'X\(//\)$' \| \
22599          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22600 echo X/"$0" |
22601     sed '/^.*\/\([^/][^/]*\)\/*$/{
22602             s//\1/
22603             q
22604           }
22605           /^X\/\(\/\/\)$/{
22606             s//\1/
22607             q
22608           }
22609           /^X\/\(\/\).*/{
22610             s//\1/
22611             q
22612           }
22613           s/.*/./; q'`
22614
22615 # CDPATH.
22616 $as_unset CDPATH
22617
22618
22619
22620   as_lineno_1=$LINENO
22621   as_lineno_2=$LINENO
22622   test "x$as_lineno_1" != "x$as_lineno_2" &&
22623   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22624
22625   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22626   # uniformly replaced by the line number.  The first 'sed' inserts a
22627   # line-number line after each line using $LINENO; the second 'sed'
22628   # does the real work.  The second script uses 'N' to pair each
22629   # line-number line with the line containing $LINENO, and appends
22630   # trailing '-' during substitution so that $LINENO is not a special
22631   # case at line end.
22632   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22633   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22634   # E. McMahon (1931-1989) for sed's syntax.  :-)
22635   sed -n '
22636     p
22637     /[$]LINENO/=
22638   ' <$as_myself |
22639     sed '
22640       s/[$]LINENO.*/&-/
22641       t lineno
22642       b
22643       :lineno
22644       N
22645       :loop
22646       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22647       t loop
22648       s/-\n.*//
22649     ' >$as_me.lineno &&
22650   chmod +x "$as_me.lineno" ||
22651     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22652    { (exit 1); exit 1; }; }
22653
22654   # Don't try to exec as it changes $[0], causing all sort of problems
22655   # (the dirname of $[0] is not the place where we might find the
22656   # original and so on.  Autoconf is especially sensitive to this).
22657   . "./$as_me.lineno"
22658   # Exit status is that of the last command.
22659   exit
22660 }
22661
22662
22663 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22664   as_dirname=dirname
22665 else
22666   as_dirname=false
22667 fi
22668
22669 ECHO_C= ECHO_N= ECHO_T=
22670 case `echo -n x` in
22671 -n*)
22672   case `echo 'x\c'` in
22673   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22674   *)   ECHO_C='\c';;
22675   esac;;
22676 *)
22677   ECHO_N='-n';;
22678 esac
22679
22680 if expr a : '\(a\)' >/dev/null 2>&1 &&
22681    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22682   as_expr=expr
22683 else
22684   as_expr=false
22685 fi
22686
22687 rm -f conf$$ conf$$.exe conf$$.file
22688 if test -d conf$$.dir; then
22689   rm -f conf$$.dir/conf$$.file
22690 else
22691   rm -f conf$$.dir
22692   mkdir conf$$.dir
22693 fi
22694 echo >conf$$.file
22695 if ln -s conf$$.file conf$$ 2>/dev/null; then
22696   as_ln_s='ln -s'
22697   # ... but there are two gotchas:
22698   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22699   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22700   # In both cases, we have to default to `cp -p'.
22701   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22702     as_ln_s='cp -p'
22703 elif ln conf$$.file conf$$ 2>/dev/null; then
22704   as_ln_s=ln
22705 else
22706   as_ln_s='cp -p'
22707 fi
22708 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22709 rmdir conf$$.dir 2>/dev/null
22710
22711 if mkdir -p . 2>/dev/null; then
22712   as_mkdir_p=:
22713 else
22714   test -d ./-p && rmdir ./-p
22715   as_mkdir_p=false
22716 fi
22717
22718 if test -x / >/dev/null 2>&1; then
22719   as_test_x='test -x'
22720 else
22721   if ls -dL / >/dev/null 2>&1; then
22722     as_ls_L_option=L
22723   else
22724     as_ls_L_option=
22725   fi
22726   as_test_x='
22727     eval sh -c '\''
22728       if test -d "$1"; then
22729         test -d "$1/.";
22730       else
22731         case $1 in
22732         -*)set "./$1";;
22733         esac;
22734         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22735         ???[sx]*):;;*)false;;esac;fi
22736     '\'' sh
22737   '
22738 fi
22739 as_executable_p=$as_test_x
22740
22741 # Sed expression to map a string onto a valid CPP name.
22742 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22743
22744 # Sed expression to map a string onto a valid variable name.
22745 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22746
22747
22748 exec 6>&1
22749
22750 # Save the log message, to keep $[0] and so on meaningful, and to
22751 # report actual input values of CONFIG_FILES etc. instead of their
22752 # values after options handling.
22753 ac_log="
22754 This file was extended by mod_chxj $as_me 0.13.1rc4, which was
22755 generated by GNU Autoconf 2.61.  Invocation command line was
22756
22757   CONFIG_FILES    = $CONFIG_FILES
22758   CONFIG_HEADERS  = $CONFIG_HEADERS
22759   CONFIG_LINKS    = $CONFIG_LINKS
22760   CONFIG_COMMANDS = $CONFIG_COMMANDS
22761   $ $0 $@
22762
22763 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22764 "
22765
22766 _ACEOF
22767
22768 cat >>$CONFIG_STATUS <<_ACEOF
22769 # Files that config.status was made for.
22770 config_files="$ac_config_files"
22771 config_headers="$ac_config_headers"
22772 config_commands="$ac_config_commands"
22773
22774 _ACEOF
22775
22776 cat >>$CONFIG_STATUS <<\_ACEOF
22777 ac_cs_usage="\
22778 \`$as_me' instantiates files from templates according to the
22779 current configuration.
22780
22781 Usage: $0 [OPTIONS] [FILE]...
22782
22783   -h, --help       print this help, then exit
22784   -V, --version    print version number and configuration settings, then exit
22785   -q, --quiet      do not print progress messages
22786   -d, --debug      don't remove temporary files
22787       --recheck    update $as_me by reconfiguring in the same conditions
22788   --file=FILE[:TEMPLATE]
22789                    instantiate the configuration file FILE
22790   --header=FILE[:TEMPLATE]
22791                    instantiate the configuration header FILE
22792
22793 Configuration files:
22794 $config_files
22795
22796 Configuration headers:
22797 $config_headers
22798
22799 Configuration commands:
22800 $config_commands
22801
22802 Report bugs to <bug-autoconf@gnu.org>."
22803
22804 _ACEOF
22805 cat >>$CONFIG_STATUS <<_ACEOF
22806 ac_cs_version="\\
22807 mod_chxj config.status 0.13.1rc4
22808 configured by $0, generated by GNU Autoconf 2.61,
22809   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22810
22811 Copyright (C) 2006 Free Software Foundation, Inc.
22812 This config.status script is free software; the Free Software Foundation
22813 gives unlimited permission to copy, distribute and modify it."
22814
22815 ac_pwd='$ac_pwd'
22816 srcdir='$srcdir'
22817 INSTALL='$INSTALL'
22818 MKDIR_P='$MKDIR_P'
22819 _ACEOF
22820
22821 cat >>$CONFIG_STATUS <<\_ACEOF
22822 # If no file are specified by the user, then we need to provide default
22823 # value.  By we need to know if files were specified by the user.
22824 ac_need_defaults=:
22825 while test $# != 0
22826 do
22827   case $1 in
22828   --*=*)
22829     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22830     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22831     ac_shift=:
22832     ;;
22833   *)
22834     ac_option=$1
22835     ac_optarg=$2
22836     ac_shift=shift
22837     ;;
22838   esac
22839
22840   case $ac_option in
22841   # Handling of the options.
22842   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22843     ac_cs_recheck=: ;;
22844   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22845     echo "$ac_cs_version"; exit ;;
22846   --debug | --debu | --deb | --de | --d | -d )
22847     debug=: ;;
22848   --file | --fil | --fi | --f )
22849     $ac_shift
22850     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22851     ac_need_defaults=false;;
22852   --header | --heade | --head | --hea )
22853     $ac_shift
22854     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22855     ac_need_defaults=false;;
22856   --he | --h)
22857     # Conflict between --help and --header
22858     { echo "$as_me: error: ambiguous option: $1
22859 Try \`$0 --help' for more information." >&2
22860    { (exit 1); exit 1; }; };;
22861   --help | --hel | -h )
22862     echo "$ac_cs_usage"; exit ;;
22863   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22864   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22865     ac_cs_silent=: ;;
22866
22867   # This is an error.
22868   -*) { echo "$as_me: error: unrecognized option: $1
22869 Try \`$0 --help' for more information." >&2
22870    { (exit 1); exit 1; }; } ;;
22871
22872   *) ac_config_targets="$ac_config_targets $1"
22873      ac_need_defaults=false ;;
22874
22875   esac
22876   shift
22877 done
22878
22879 ac_configure_extra_args=
22880
22881 if $ac_cs_silent; then
22882   exec 6>/dev/null
22883   ac_configure_extra_args="$ac_configure_extra_args --silent"
22884 fi
22885
22886 _ACEOF
22887 cat >>$CONFIG_STATUS <<_ACEOF
22888 if \$ac_cs_recheck; then
22889   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22890   CONFIG_SHELL=$SHELL
22891   export CONFIG_SHELL
22892   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22893 fi
22894
22895 _ACEOF
22896 cat >>$CONFIG_STATUS <<\_ACEOF
22897 exec 5>>config.log
22898 {
22899   echo
22900   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22901 ## Running $as_me. ##
22902 _ASBOX
22903   echo "$ac_log"
22904 } >&5
22905
22906 _ACEOF
22907 cat >>$CONFIG_STATUS <<_ACEOF
22908 #
22909 # INIT-COMMANDS
22910 #
22911 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22912
22913 _ACEOF
22914
22915 cat >>$CONFIG_STATUS <<\_ACEOF
22916
22917 # Handling of arguments.
22918 for ac_config_target in $ac_config_targets
22919 do
22920   case $ac_config_target in
22921     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
22922     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22923     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22924     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22925     "support/centos/mod-chxj.spec") CONFIG_FILES="$CONFIG_FILES support/centos/mod-chxj.spec" ;;
22926
22927   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22928 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22929    { (exit 1); exit 1; }; };;
22930   esac
22931 done
22932
22933
22934 # If the user did not use the arguments to specify the items to instantiate,
22935 # then the envvar interface is used.  Set only those that are not.
22936 # We use the long form for the default assignment because of an extremely
22937 # bizarre bug on SunOS 4.1.3.
22938 if $ac_need_defaults; then
22939   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22940   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22941   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22942 fi
22943
22944 # Have a temporary directory for convenience.  Make it in the build tree
22945 # simply because there is no reason against having it here, and in addition,
22946 # creating and moving files from /tmp can sometimes cause problems.
22947 # Hook for its removal unless debugging.
22948 # Note that there is a small window in which the directory will not be cleaned:
22949 # after its creation but before its name has been assigned to `$tmp'.
22950 $debug ||
22951 {
22952   tmp=
22953   trap 'exit_status=$?
22954   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22955 ' 0
22956   trap '{ (exit 1); exit 1; }' 1 2 13 15
22957 }
22958 # Create a (secure) tmp directory for tmp files.
22959
22960 {
22961   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22962   test -n "$tmp" && test -d "$tmp"
22963 }  ||
22964 {
22965   tmp=./conf$$-$RANDOM
22966   (umask 077 && mkdir "$tmp")
22967 } ||
22968 {
22969    echo "$me: cannot create a temporary directory in ." >&2
22970    { (exit 1); exit 1; }
22971 }
22972
22973 #
22974 # Set up the sed scripts for CONFIG_FILES section.
22975 #
22976
22977 # No need to generate the scripts if there are no CONFIG_FILES.
22978 # This happens for instance when ./config.status config.h
22979 if test -n "$CONFIG_FILES"; then
22980
22981 _ACEOF
22982
22983
22984
22985 ac_delim='%!_!# '
22986 for ac_last_try in false false false false false :; do
22987   cat >conf$$subs.sed <<_ACEOF
22988 SHELL!$SHELL$ac_delim
22989 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22990 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22991 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22992 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22993 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22994 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22995 exec_prefix!$exec_prefix$ac_delim
22996 prefix!$prefix$ac_delim
22997 program_transform_name!$program_transform_name$ac_delim
22998 bindir!$bindir$ac_delim
22999 sbindir!$sbindir$ac_delim
23000 libexecdir!$libexecdir$ac_delim
23001 datarootdir!$datarootdir$ac_delim
23002 datadir!$datadir$ac_delim
23003 sysconfdir!$sysconfdir$ac_delim
23004 sharedstatedir!$sharedstatedir$ac_delim
23005 localstatedir!$localstatedir$ac_delim
23006 includedir!$includedir$ac_delim
23007 oldincludedir!$oldincludedir$ac_delim
23008 docdir!$docdir$ac_delim
23009 infodir!$infodir$ac_delim
23010 htmldir!$htmldir$ac_delim
23011 dvidir!$dvidir$ac_delim
23012 pdfdir!$pdfdir$ac_delim
23013 psdir!$psdir$ac_delim
23014 libdir!$libdir$ac_delim
23015 localedir!$localedir$ac_delim
23016 mandir!$mandir$ac_delim
23017 DEFS!$DEFS$ac_delim
23018 ECHO_C!$ECHO_C$ac_delim
23019 ECHO_N!$ECHO_N$ac_delim
23020 ECHO_T!$ECHO_T$ac_delim
23021 LIBS!$LIBS$ac_delim
23022 build_alias!$build_alias$ac_delim
23023 host_alias!$host_alias$ac_delim
23024 target_alias!$target_alias$ac_delim
23025 build!$build$ac_delim
23026 build_cpu!$build_cpu$ac_delim
23027 build_vendor!$build_vendor$ac_delim
23028 build_os!$build_os$ac_delim
23029 host!$host$ac_delim
23030 host_cpu!$host_cpu$ac_delim
23031 host_vendor!$host_vendor$ac_delim
23032 host_os!$host_os$ac_delim
23033 target!$target$ac_delim
23034 target_cpu!$target_cpu$ac_delim
23035 target_vendor!$target_vendor$ac_delim
23036 target_os!$target_os$ac_delim
23037 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23038 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23039 INSTALL_DATA!$INSTALL_DATA$ac_delim
23040 am__isrc!$am__isrc$ac_delim
23041 CYGPATH_W!$CYGPATH_W$ac_delim
23042 PACKAGE!$PACKAGE$ac_delim
23043 VERSION!$VERSION$ac_delim
23044 ACLOCAL!$ACLOCAL$ac_delim
23045 AUTOCONF!$AUTOCONF$ac_delim
23046 AUTOMAKE!$AUTOMAKE$ac_delim
23047 AUTOHEADER!$AUTOHEADER$ac_delim
23048 MAKEINFO!$MAKEINFO$ac_delim
23049 install_sh!$install_sh$ac_delim
23050 STRIP!$STRIP$ac_delim
23051 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23052 mkdir_p!$mkdir_p$ac_delim
23053 AWK!$AWK$ac_delim
23054 SET_MAKE!$SET_MAKE$ac_delim
23055 am__leading_dot!$am__leading_dot$ac_delim
23056 AMTAR!$AMTAR$ac_delim
23057 am__tar!$am__tar$ac_delim
23058 am__untar!$am__untar$ac_delim
23059 CC!$CC$ac_delim
23060 CFLAGS!$CFLAGS$ac_delim
23061 LDFLAGS!$LDFLAGS$ac_delim
23062 CPPFLAGS!$CPPFLAGS$ac_delim
23063 ac_ct_CC!$ac_ct_CC$ac_delim
23064 EXEEXT!$EXEEXT$ac_delim
23065 OBJEXT!$OBJEXT$ac_delim
23066 DEPDIR!$DEPDIR$ac_delim
23067 am__include!$am__include$ac_delim
23068 am__quote!$am__quote$ac_delim
23069 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23070 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23071 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23072 CCDEPMODE!$CCDEPMODE$ac_delim
23073 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23074 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23075 SED!$SED$ac_delim
23076 GREP!$GREP$ac_delim
23077 EGREP!$EGREP$ac_delim
23078 LN_S!$LN_S$ac_delim
23079 ECHO!$ECHO$ac_delim
23080 AR!$AR$ac_delim
23081 RANLIB!$RANLIB$ac_delim
23082 DSYMUTIL!$DSYMUTIL$ac_delim
23083 NMEDIT!$NMEDIT$ac_delim
23084 CPP!$CPP$ac_delim
23085 _ACEOF
23086
23087   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23088     break
23089   elif $ac_last_try; then
23090     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23091 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23092    { (exit 1); exit 1; }; }
23093   else
23094     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23095   fi
23096 done
23097
23098 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23099 if test -n "$ac_eof"; then
23100   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23101   ac_eof=`expr $ac_eof + 1`
23102 fi
23103
23104 cat >>$CONFIG_STATUS <<_ACEOF
23105 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23107 _ACEOF
23108 sed '
23109 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23110 s/^/s,@/; s/!/@,|#_!!_#|/
23111 :n
23112 t n
23113 s/'"$ac_delim"'$/,g/; t
23114 s/$/\\/; p
23115 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23116 ' >>$CONFIG_STATUS <conf$$subs.sed
23117 rm -f conf$$subs.sed
23118 cat >>$CONFIG_STATUS <<_ACEOF
23119 CEOF$ac_eof
23120 _ACEOF
23121
23122
23123 ac_delim='%!_!# '
23124 for ac_last_try in false false false false false :; do
23125   cat >conf$$subs.sed <<_ACEOF
23126 CXX!$CXX$ac_delim
23127 CXXFLAGS!$CXXFLAGS$ac_delim
23128 ac_ct_CXX!$ac_ct_CXX$ac_delim
23129 CXXDEPMODE!$CXXDEPMODE$ac_delim
23130 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23131 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23132 CXXCPP!$CXXCPP$ac_delim
23133 F77!$F77$ac_delim
23134 FFLAGS!$FFLAGS$ac_delim
23135 ac_ct_F77!$ac_ct_F77$ac_delim
23136 LIBTOOL!$LIBTOOL$ac_delim
23137 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
23138 APXS2!$APXS2$ac_delim
23139 APXS!$APXS$ac_delim
23140 WAND_CONFIG!$WAND_CONFIG$ac_delim
23141 APR_CONFIG!$APR_CONFIG$ac_delim
23142 APR_1_CONFIG!$APR_1_CONFIG$ac_delim
23143 APU_CONFIG!$APU_CONFIG$ac_delim
23144 APU_1_CONFIG!$APU_1_CONFIG$ac_delim
23145 PCRE_CONFIG!$PCRE_CONFIG$ac_delim
23146 PCRE_1_CONFIG!$PCRE_1_CONFIG$ac_delim
23147 LIBOBJS!$LIBOBJS$ac_delim
23148 with_apache_header!$with_apache_header$ac_delim
23149 QDEFS!$QDEFS$ac_delim
23150 DDEFS!$DDEFS$ac_delim
23151 OPENSSL_PATH!$OPENSSL_PATH$ac_delim
23152 LTLIBOBJS!$LTLIBOBJS$ac_delim
23153 _ACEOF
23154
23155   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then
23156     break
23157   elif $ac_last_try; then
23158     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23159 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23160    { (exit 1); exit 1; }; }
23161   else
23162     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23163   fi
23164 done
23165
23166 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23167 if test -n "$ac_eof"; then
23168   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23169   ac_eof=`expr $ac_eof + 1`
23170 fi
23171
23172 cat >>$CONFIG_STATUS <<_ACEOF
23173 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23174 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23175 _ACEOF
23176 sed '
23177 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23178 s/^/s,@/; s/!/@,|#_!!_#|/
23179 :n
23180 t n
23181 s/'"$ac_delim"'$/,g/; t
23182 s/$/\\/; p
23183 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23184 ' >>$CONFIG_STATUS <conf$$subs.sed
23185 rm -f conf$$subs.sed
23186 cat >>$CONFIG_STATUS <<_ACEOF
23187 :end
23188 s/|#_!!_#|//g
23189 CEOF$ac_eof
23190 _ACEOF
23191
23192
23193 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23194 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23195 # trailing colons and then remove the whole line if VPATH becomes empty
23196 # (actually we leave an empty line to preserve line numbers).
23197 if test "x$srcdir" = x.; then
23198   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23199 s/:*\$(srcdir):*/:/
23200 s/:*\${srcdir}:*/:/
23201 s/:*@srcdir@:*/:/
23202 s/^\([^=]*=[     ]*\):*/\1/
23203 s/:*$//
23204 s/^[^=]*=[       ]*$//
23205 }'
23206 fi
23207
23208 cat >>$CONFIG_STATUS <<\_ACEOF
23209 fi # test -n "$CONFIG_FILES"
23210
23211
23212 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23213 do
23214   case $ac_tag in
23215   :[FHLC]) ac_mode=$ac_tag; continue;;
23216   esac
23217   case $ac_mode$ac_tag in
23218   :[FHL]*:*);;
23219   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23220 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23221    { (exit 1); exit 1; }; };;
23222   :[FH]-) ac_tag=-:-;;
23223   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23224   esac
23225   ac_save_IFS=$IFS
23226   IFS=:
23227   set x $ac_tag
23228   IFS=$ac_save_IFS
23229   shift
23230   ac_file=$1
23231   shift
23232
23233   case $ac_mode in
23234   :L) ac_source=$1;;
23235   :[FH])
23236     ac_file_inputs=
23237     for ac_f
23238     do
23239       case $ac_f in
23240       -) ac_f="$tmp/stdin";;
23241       *) # Look for the file first in the build tree, then in the source tree
23242          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23243          # because $ac_f cannot contain `:'.
23244          test -f "$ac_f" ||
23245            case $ac_f in
23246            [\\/$]*) false;;
23247            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23248            esac ||
23249            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23250 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23251    { (exit 1); exit 1; }; };;
23252       esac
23253       ac_file_inputs="$ac_file_inputs $ac_f"
23254     done
23255
23256     # Let's still pretend it is `configure' which instantiates (i.e., don't
23257     # use $as_me), people would be surprised to read:
23258     #    /* config.h.  Generated by config.status.  */
23259     configure_input="Generated from "`IFS=:
23260           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23261     if test x"$ac_file" != x-; then
23262       configure_input="$ac_file.  $configure_input"
23263       { echo "$as_me:$LINENO: creating $ac_file" >&5
23264 echo "$as_me: creating $ac_file" >&6;}
23265     fi
23266
23267     case $ac_tag in
23268     *:-:* | *:-) cat >"$tmp/stdin";;
23269     esac
23270     ;;
23271   esac
23272
23273   ac_dir=`$as_dirname -- "$ac_file" ||
23274 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23275          X"$ac_file" : 'X\(//\)[^/]' \| \
23276          X"$ac_file" : 'X\(//\)$' \| \
23277          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23278 echo X"$ac_file" |
23279     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23280             s//\1/
23281             q
23282           }
23283           /^X\(\/\/\)[^/].*/{
23284             s//\1/
23285             q
23286           }
23287           /^X\(\/\/\)$/{
23288             s//\1/
23289             q
23290           }
23291           /^X\(\/\).*/{
23292             s//\1/
23293             q
23294           }
23295           s/.*/./; q'`
23296   { as_dir="$ac_dir"
23297   case $as_dir in #(
23298   -*) as_dir=./$as_dir;;
23299   esac
23300   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23301     as_dirs=
23302     while :; do
23303       case $as_dir in #(
23304       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23305       *) as_qdir=$as_dir;;
23306       esac
23307       as_dirs="'$as_qdir' $as_dirs"
23308       as_dir=`$as_dirname -- "$as_dir" ||
23309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23310          X"$as_dir" : 'X\(//\)[^/]' \| \
23311          X"$as_dir" : 'X\(//\)$' \| \
23312          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23313 echo X"$as_dir" |
23314     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23315             s//\1/
23316             q
23317           }
23318           /^X\(\/\/\)[^/].*/{
23319             s//\1/
23320             q
23321           }
23322           /^X\(\/\/\)$/{
23323             s//\1/
23324             q
23325           }
23326           /^X\(\/\).*/{
23327             s//\1/
23328             q
23329           }
23330           s/.*/./; q'`
23331       test -d "$as_dir" && break
23332     done
23333     test -z "$as_dirs" || eval "mkdir $as_dirs"
23334   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23335 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23336    { (exit 1); exit 1; }; }; }
23337   ac_builddir=.
23338
23339 case "$ac_dir" in
23340 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23341 *)
23342   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23343   # A ".." for each directory in $ac_dir_suffix.
23344   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23345   case $ac_top_builddir_sub in
23346   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23347   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23348   esac ;;
23349 esac
23350 ac_abs_top_builddir=$ac_pwd
23351 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23352 # for backward compatibility:
23353 ac_top_builddir=$ac_top_build_prefix
23354
23355 case $srcdir in
23356   .)  # We are building in place.
23357     ac_srcdir=.
23358     ac_top_srcdir=$ac_top_builddir_sub
23359     ac_abs_top_srcdir=$ac_pwd ;;
23360   [\\/]* | ?:[\\/]* )  # Absolute name.
23361     ac_srcdir=$srcdir$ac_dir_suffix;
23362     ac_top_srcdir=$srcdir
23363     ac_abs_top_srcdir=$srcdir ;;
23364   *) # Relative name.
23365     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23366     ac_top_srcdir=$ac_top_build_prefix$srcdir
23367     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23368 esac
23369 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23370
23371
23372   case $ac_mode in
23373   :F)
23374   #
23375   # CONFIG_FILE
23376   #
23377
23378   case $INSTALL in
23379   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23380   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23381   esac
23382   ac_MKDIR_P=$MKDIR_P
23383   case $MKDIR_P in
23384   [\\/$]* | ?:[\\/]* ) ;;
23385   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23386   esac
23387 _ACEOF
23388
23389 cat >>$CONFIG_STATUS <<\_ACEOF
23390 # If the template does not know about datarootdir, expand it.
23391 # FIXME: This hack should be removed a few years after 2.60.
23392 ac_datarootdir_hack=; ac_datarootdir_seen=
23393
23394 case `sed -n '/datarootdir/ {
23395   p
23396   q
23397 }
23398 /@datadir@/p
23399 /@docdir@/p
23400 /@infodir@/p
23401 /@localedir@/p
23402 /@mandir@/p
23403 ' $ac_file_inputs` in
23404 *datarootdir*) ac_datarootdir_seen=yes;;
23405 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23406   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23407 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23408 _ACEOF
23409 cat >>$CONFIG_STATUS <<_ACEOF
23410   ac_datarootdir_hack='
23411   s&@datadir@&$datadir&g
23412   s&@docdir@&$docdir&g
23413   s&@infodir@&$infodir&g
23414   s&@localedir@&$localedir&g
23415   s&@mandir@&$mandir&g
23416     s&\\\${datarootdir}&$datarootdir&g' ;;
23417 esac
23418 _ACEOF
23419
23420 # Neutralize VPATH when `$srcdir' = `.'.
23421 # Shell code in configure.ac might set extrasub.
23422 # FIXME: do we really want to maintain this feature?
23423 cat >>$CONFIG_STATUS <<_ACEOF
23424   sed "$ac_vpsub
23425 $extrasub
23426 _ACEOF
23427 cat >>$CONFIG_STATUS <<\_ACEOF
23428 :t
23429 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23430 s&@configure_input@&$configure_input&;t t
23431 s&@top_builddir@&$ac_top_builddir_sub&;t t
23432 s&@srcdir@&$ac_srcdir&;t t
23433 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23434 s&@top_srcdir@&$ac_top_srcdir&;t t
23435 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23436 s&@builddir@&$ac_builddir&;t t
23437 s&@abs_builddir@&$ac_abs_builddir&;t t
23438 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23439 s&@INSTALL@&$ac_INSTALL&;t t
23440 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23441 $ac_datarootdir_hack
23442 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23443
23444 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23445   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23446   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23447   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23448 which seems to be undefined.  Please make sure it is defined." >&5
23449 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23450 which seems to be undefined.  Please make sure it is defined." >&2;}
23451
23452   rm -f "$tmp/stdin"
23453   case $ac_file in
23454   -) cat "$tmp/out"; rm -f "$tmp/out";;
23455   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23456   esac
23457  ;;
23458   :H)
23459   #
23460   # CONFIG_HEADER
23461   #
23462 _ACEOF
23463
23464 # Transform confdefs.h into a sed script `conftest.defines', that
23465 # substitutes the proper values into config.h.in to produce config.h.
23466 rm -f conftest.defines conftest.tail
23467 # First, append a space to every undef/define line, to ease matching.
23468 echo 's/$/ /' >conftest.defines
23469 # Then, protect against being on the right side of a sed subst, or in
23470 # an unquoted here document, in config.status.  If some macros were
23471 # called several times there might be several #defines for the same
23472 # symbol, which is useless.  But do not sort them, since the last
23473 # AC_DEFINE must be honored.
23474 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23475 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23476 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23477 # PARAMS is the parameter list in the macro definition--in most cases, it's
23478 # just an empty string.
23479 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23480 ac_dB='\\)[      (].*,\\1define\\2'
23481 ac_dC=' '
23482 ac_dD=' ,'
23483
23484 uniq confdefs.h |
23485   sed -n '
23486         t rset
23487         :rset
23488         s/^[     ]*#[    ]*define[       ][      ]*//
23489         t ok
23490         d
23491         :ok
23492         s/[\\&,]/\\&/g
23493         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23494         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23495   ' >>conftest.defines
23496
23497 # Remove the space that was appended to ease matching.
23498 # Then replace #undef with comments.  This is necessary, for
23499 # example, in the case of _POSIX_SOURCE, which is predefined and required
23500 # on some systems where configure will not decide to define it.
23501 # (The regexp can be short, since the line contains either #define or #undef.)
23502 echo 's/ $//
23503 s,^[     #]*u.*,/* & */,' >>conftest.defines
23504
23505 # Break up conftest.defines:
23506 ac_max_sed_lines=50
23507
23508 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23509 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23510 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23511 # et cetera.
23512 ac_in='$ac_file_inputs'
23513 ac_out='"$tmp/out1"'
23514 ac_nxt='"$tmp/out2"'
23515
23516 while :
23517 do
23518   # Write a here document:
23519     cat >>$CONFIG_STATUS <<_ACEOF
23520     # First, check the format of the line:
23521     cat >"\$tmp/defines.sed" <<\\CEOF
23522 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23523 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23524 b
23525 :def
23526 _ACEOF
23527   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23528   echo 'CEOF
23529     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23530   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23531   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23532   grep . conftest.tail >/dev/null || break
23533   rm -f conftest.defines
23534   mv conftest.tail conftest.defines
23535 done
23536 rm -f conftest.defines conftest.tail
23537
23538 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23539 cat >>$CONFIG_STATUS <<\_ACEOF
23540   if test x"$ac_file" != x-; then
23541     echo "/* $configure_input  */" >"$tmp/config.h"
23542     cat "$ac_result" >>"$tmp/config.h"
23543     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23544       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23545 echo "$as_me: $ac_file is unchanged" >&6;}
23546     else
23547       rm -f $ac_file
23548       mv "$tmp/config.h" $ac_file
23549     fi
23550   else
23551     echo "/* $configure_input  */"
23552     cat "$ac_result"
23553   fi
23554   rm -f "$tmp/out12"
23555 # Compute $ac_file's index in $config_headers.
23556 _am_arg=$ac_file
23557 _am_stamp_count=1
23558 for _am_header in $config_headers :; do
23559   case $_am_header in
23560     $_am_arg | $_am_arg:* )
23561       break ;;
23562     * )
23563       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23564   esac
23565 done
23566 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23567 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23568          X"$_am_arg" : 'X\(//\)[^/]' \| \
23569          X"$_am_arg" : 'X\(//\)$' \| \
23570          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23571 echo X"$_am_arg" |
23572     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23573             s//\1/
23574             q
23575           }
23576           /^X\(\/\/\)[^/].*/{
23577             s//\1/
23578             q
23579           }
23580           /^X\(\/\/\)$/{
23581             s//\1/
23582             q
23583           }
23584           /^X\(\/\).*/{
23585             s//\1/
23586             q
23587           }
23588           s/.*/./; q'`/stamp-h$_am_stamp_count
23589  ;;
23590
23591   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23592 echo "$as_me: executing $ac_file commands" >&6;}
23593  ;;
23594   esac
23595
23596
23597   case $ac_file$ac_mode in
23598     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23599   # Strip MF so we end up with the name of the file.
23600   mf=`echo "$mf" | sed -e 's/:.*$//'`
23601   # Check whether this is an Automake generated Makefile or not.
23602   # We used to match only the files named `Makefile.in', but
23603   # some people rename them; so instead we look at the file content.
23604   # Grep'ing the first line is not enough: some people post-process
23605   # each Makefile.in and add a new line on top of each file to say so.
23606   # Grep'ing the whole file is not good either: AIX grep has a line
23607   # limit of 2048, but all sed's we know have understand at least 4000.
23608   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23609     dirpart=`$as_dirname -- "$mf" ||
23610 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23611          X"$mf" : 'X\(//\)[^/]' \| \
23612          X"$mf" : 'X\(//\)$' \| \
23613          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23614 echo X"$mf" |
23615     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23616             s//\1/
23617             q
23618           }
23619           /^X\(\/\/\)[^/].*/{
23620             s//\1/
23621             q
23622           }
23623           /^X\(\/\/\)$/{
23624             s//\1/
23625             q
23626           }
23627           /^X\(\/\).*/{
23628             s//\1/
23629             q
23630           }
23631           s/.*/./; q'`
23632   else
23633     continue
23634   fi
23635   # Extract the definition of DEPDIR, am__include, and am__quote
23636   # from the Makefile without running `make'.
23637   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23638   test -z "$DEPDIR" && continue
23639   am__include=`sed -n 's/^am__include = //p' < "$mf"`
23640   test -z "am__include" && continue
23641   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23642   # When using ansi2knr, U may be empty or an underscore; expand it
23643   U=`sed -n 's/^U = //p' < "$mf"`
23644   # Find all dependency output files, they are included files with
23645   # $(DEPDIR) in their names.  We invoke sed twice because it is the
23646   # simplest approach to changing $(DEPDIR) to its actual value in the
23647   # expansion.
23648   for file in `sed -n "
23649     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23650        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23651     # Make sure the directory exists.
23652     test -f "$dirpart/$file" && continue
23653     fdir=`$as_dirname -- "$file" ||
23654 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23655          X"$file" : 'X\(//\)[^/]' \| \
23656          X"$file" : 'X\(//\)$' \| \
23657          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23658 echo X"$file" |
23659     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23660             s//\1/
23661             q
23662           }
23663           /^X\(\/\/\)[^/].*/{
23664             s//\1/
23665             q
23666           }
23667           /^X\(\/\/\)$/{
23668             s//\1/
23669             q
23670           }
23671           /^X\(\/\).*/{
23672             s//\1/
23673             q
23674           }
23675           s/.*/./; q'`
23676     { as_dir=$dirpart/$fdir
23677   case $as_dir in #(
23678   -*) as_dir=./$as_dir;;
23679   esac
23680   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23681     as_dirs=
23682     while :; do
23683       case $as_dir in #(
23684       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23685       *) as_qdir=$as_dir;;
23686       esac
23687       as_dirs="'$as_qdir' $as_dirs"
23688       as_dir=`$as_dirname -- "$as_dir" ||
23689 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23690          X"$as_dir" : 'X\(//\)[^/]' \| \
23691          X"$as_dir" : 'X\(//\)$' \| \
23692          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23693 echo X"$as_dir" |
23694     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23695             s//\1/
23696             q
23697           }
23698           /^X\(\/\/\)[^/].*/{
23699             s//\1/
23700             q
23701           }
23702           /^X\(\/\/\)$/{
23703             s//\1/
23704             q
23705           }
23706           /^X\(\/\).*/{
23707             s//\1/
23708             q
23709           }
23710           s/.*/./; q'`
23711       test -d "$as_dir" && break
23712     done
23713     test -z "$as_dirs" || eval "mkdir $as_dirs"
23714   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23715 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23716    { (exit 1); exit 1; }; }; }
23717     # echo "creating $dirpart/$file"
23718     echo '# dummy' > "$dirpart/$file"
23719   done
23720 done
23721  ;;
23722
23723   esac
23724 done # for ac_tag
23725
23726
23727 { (exit 0); exit 0; }
23728 _ACEOF
23729 chmod +x $CONFIG_STATUS
23730 ac_clean_files=$ac_clean_files_save
23731
23732
23733 # configure is writing to config.log, and then calls config.status.
23734 # config.status does its own redirection, appending to config.log.
23735 # Unfortunately, on DOS this fails, as config.log is still kept open
23736 # by configure, so config.status won't be able to write to it; its
23737 # output is simply discarded.  So we exec the FD to /dev/null,
23738 # effectively closing config.log, so it can be properly (re)opened and
23739 # appended to by config.status.  When coming back to configure, we
23740 # need to make the FD available again.
23741 if test "$no_create" != yes; then
23742   ac_cs_success=:
23743   ac_config_status_args=
23744   test "$silent" = yes &&
23745     ac_config_status_args="$ac_config_status_args --quiet"
23746   exec 5>/dev/null
23747   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23748   exec 5>>config.log
23749   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23750   # would make configure fail if this is the last instruction.
23751   $ac_cs_success || { (exit 1); exit 1; }
23752 fi
23753