OSDN Git Service

Add SNMP code
[ultramonkey-l7/ultramonkey-l7-v3.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580   # Remove one level of quotation (which was required for Make).
581   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582   ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587   # Discard the --no-reexec flag, and continue.
588   shift
589 elif test "X$1" = X--fallback-echo; then
590   # Avoid inline document here, it may be left over
591   :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593   # Yippee, $ECHO works!
594   :
595 else
596   # Restart under the correct shell.
597   exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601   # used as fallback echo
602   shift
603   cat <<_LT_EOF
604 $*
605 _LT_EOF
606   exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$lt_ECHO"; then
614   if test "X${echo_test_string+set}" != Xset; then
615     # find a string as large as possible, as long as the shell can cope with it
616     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620       then
621         break
622       fi
623     done
624   fi
625
626   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628      test "X$echo_testing_string" = "X$echo_test_string"; then
629     :
630   else
631     # The Solaris, AIX, and Digital Unix default echo programs unquote
632     # backslashes.  This makes it impossible to quote backslashes using
633     #   echo "$something" | sed 's/\\/\\\\/g'
634     #
635     # So, first we look for a working echo in the user's PATH.
636
637     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638     for dir in $PATH /usr/ucb; do
639       IFS="$lt_save_ifs"
640       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643          test "X$echo_testing_string" = "X$echo_test_string"; then
644         ECHO="$dir/echo"
645         break
646       fi
647     done
648     IFS="$lt_save_ifs"
649
650     if test "X$ECHO" = Xecho; then
651       # We didn't find a better echo, so look for alternatives.
652       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654          test "X$echo_testing_string" = "X$echo_test_string"; then
655         # This shell has a builtin print -r that does the trick.
656         ECHO='print -r'
657       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658            test "X$CONFIG_SHELL" != X/bin/ksh; then
659         # If we have ksh, try running configure again with it.
660         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661         export ORIGINAL_CONFIG_SHELL
662         CONFIG_SHELL=/bin/ksh
663         export CONFIG_SHELL
664         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665       else
666         # Try using printf.
667         ECHO='printf %s\n'
668         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670            test "X$echo_testing_string" = "X$echo_test_string"; then
671           # Cool, printf works
672           :
673         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674              test "X$echo_testing_string" = 'X\t' &&
675              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676              test "X$echo_testing_string" = "X$echo_test_string"; then
677           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678           export CONFIG_SHELL
679           SHELL="$CONFIG_SHELL"
680           export SHELL
681           ECHO="$CONFIG_SHELL $0 --fallback-echo"
682         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683              test "X$echo_testing_string" = 'X\t' &&
684              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685              test "X$echo_testing_string" = "X$echo_test_string"; then
686           ECHO="$CONFIG_SHELL $0 --fallback-echo"
687         else
688           # maybe with a smaller string...
689           prev=:
690
691           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693             then
694               break
695             fi
696             prev="$cmd"
697           done
698
699           if test "$prev" != 'sed 50q "$0"'; then
700             echo_test_string=`eval $prev`
701             export echo_test_string
702             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703           else
704             # Oops.  We lost completely, so just stick with echo.
705             ECHO=echo
706           fi
707         fi
708       fi
709     fi
710   fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME=
745 PACKAGE_TARNAME=
746 PACKAGE_VERSION=
747 PACKAGE_STRING=
748 PACKAGE_BUGREPORT=
749
750 ac_unique_file="l7vsd"
751 ac_unique_file="config.h.in"
752 # Factoring default headers for most tests.
753 ac_includes_default="\
754 #include <stdio.h>
755 #ifdef HAVE_SYS_TYPES_H
756 # include <sys/types.h>
757 #endif
758 #ifdef HAVE_SYS_STAT_H
759 # include <sys/stat.h>
760 #endif
761 #ifdef STDC_HEADERS
762 # include <stdlib.h>
763 # include <stddef.h>
764 #else
765 # ifdef HAVE_STDLIB_H
766 #  include <stdlib.h>
767 # endif
768 #endif
769 #ifdef HAVE_STRING_H
770 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
771 #  include <memory.h>
772 # endif
773 # include <string.h>
774 #endif
775 #ifdef HAVE_STRINGS_H
776 # include <strings.h>
777 #endif
778 #ifdef HAVE_INTTYPES_H
779 # include <inttypes.h>
780 #endif
781 #ifdef HAVE_STDINT_H
782 # include <stdint.h>
783 #endif
784 #ifdef HAVE_UNISTD_H
785 # include <unistd.h>
786 #endif"
787
788 ac_header_list=
789 ac_func_list=
790 ac_subst_vars='am__EXEEXT_FALSE
791 am__EXEEXT_TRUE
792 LTLIBOBJS
793 ultramonkeyl7_version
794 external_agent_libs
795 MANDIR
796 l7vs_config
797 l7vs_max_buffer_size
798 l7vs_moddir
799 l7vsadm_sockdir
800 LIBOBJS
801 CXXCPP
802 CPP
803 OTOOL64
804 OTOOL
805 LIPO
806 NMEDIT
807 DSYMUTIL
808 lt_ECHO
809 RANLIB
810 AR
811 OBJDUMP
812 LN_S
813 NM
814 ac_ct_DUMPBIN
815 DUMPBIN
816 LD
817 FGREP
818 EGREP
819 GREP
820 SED
821 am__fastdepCC_FALSE
822 am__fastdepCC_TRUE
823 CCDEPMODE
824 ac_ct_CC
825 CFLAGS
826 CC
827 host_os
828 host_vendor
829 host_cpu
830 host
831 build_os
832 build_vendor
833 build_cpu
834 build
835 LIBTOOL
836 am__fastdepCXX_FALSE
837 am__fastdepCXX_TRUE
838 CXXDEPMODE
839 AMDEPBACKSLASH
840 AMDEP_FALSE
841 AMDEP_TRUE
842 am__quote
843 am__include
844 DEPDIR
845 OBJEXT
846 EXEEXT
847 ac_ct_CXX
848 CPPFLAGS
849 LDFLAGS
850 CXXFLAGS
851 CXX
852 am__untar
853 am__tar
854 AMTAR
855 am__leading_dot
856 SET_MAKE
857 AWK
858 mkdir_p
859 MKDIR_P
860 INSTALL_STRIP_PROGRAM
861 STRIP
862 install_sh
863 MAKEINFO
864 AUTOHEADER
865 AUTOMAKE
866 AUTOCONF
867 ACLOCAL
868 VERSION
869 PACKAGE
870 CYGPATH_W
871 am__isrc
872 INSTALL_DATA
873 INSTALL_SCRIPT
874 INSTALL_PROGRAM
875 target_alias
876 host_alias
877 build_alias
878 LIBS
879 ECHO_T
880 ECHO_N
881 ECHO_C
882 DEFS
883 mandir
884 localedir
885 libdir
886 psdir
887 pdfdir
888 dvidir
889 htmldir
890 infodir
891 docdir
892 oldincludedir
893 includedir
894 localstatedir
895 sharedstatedir
896 sysconfdir
897 datadir
898 datarootdir
899 libexecdir
900 sbindir
901 bindir
902 program_transform_name
903 prefix
904 exec_prefix
905 PACKAGE_BUGREPORT
906 PACKAGE_STRING
907 PACKAGE_VERSION
908 PACKAGE_TARNAME
909 PACKAGE_NAME
910 PATH_SEPARATOR
911 SHELL'
912 ac_subst_files=''
913 ac_user_opts='
914 enable_option_checking
915 enable_dependency_tracking
916 enable_shared
917 enable_static
918 with_pic
919 enable_fast_install
920 with_gnu_ld
921 enable_libtool_lock
922 with_l7vs_moddir
923 with_l7vsadm_sockdir
924 with_l7vs_buffer_size
925 with_l7vs_config_dir
926 '
927       ac_precious_vars='build_alias
928 host_alias
929 target_alias
930 CXX
931 CXXFLAGS
932 LDFLAGS
933 LIBS
934 CPPFLAGS
935 CCC
936 CC
937 CFLAGS
938 CPP
939 CXXCPP'
940
941
942 # Initialize some variables set by options.
943 ac_init_help=
944 ac_init_version=false
945 ac_unrecognized_opts=
946 ac_unrecognized_sep=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
949 cache_file=/dev/null
950 exec_prefix=NONE
951 no_create=
952 no_recursion=
953 prefix=NONE
954 program_prefix=NONE
955 program_suffix=NONE
956 program_transform_name=s,x,x,
957 silent=
958 site=
959 srcdir=
960 verbose=
961 x_includes=NONE
962 x_libraries=NONE
963
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE}'
981 infodir='${datarootdir}/info'
982 htmldir='${docdir}'
983 dvidir='${docdir}'
984 pdfdir='${docdir}'
985 psdir='${docdir}'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
989
990 ac_prev=
991 ac_dashdash=
992 for ac_option
993 do
994   # If the previous option needs an argument, assign it.
995   if test -n "$ac_prev"; then
996     eval $ac_prev=\$ac_option
997     ac_prev=
998     continue
999   fi
1000
1001   case $ac_option in
1002   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003   *)    ac_optarg=yes ;;
1004   esac
1005
1006   # Accept the important Cygnus configure options, so we can diagnose typos.
1007
1008   case $ac_dashdash$ac_option in
1009   --)
1010     ac_dashdash=yes ;;
1011
1012   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013     ac_prev=bindir ;;
1014   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015     bindir=$ac_optarg ;;
1016
1017   -build | --build | --buil | --bui | --bu)
1018     ac_prev=build_alias ;;
1019   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020     build_alias=$ac_optarg ;;
1021
1022   -cache-file | --cache-file | --cache-fil | --cache-fi \
1023   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024     ac_prev=cache_file ;;
1025   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027     cache_file=$ac_optarg ;;
1028
1029   --config-cache | -C)
1030     cache_file=config.cache ;;
1031
1032   -datadir | --datadir | --datadi | --datad)
1033     ac_prev=datadir ;;
1034   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035     datadir=$ac_optarg ;;
1036
1037   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038   | --dataroo | --dataro | --datar)
1039     ac_prev=datarootdir ;;
1040   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042     datarootdir=$ac_optarg ;;
1043
1044   -disable-* | --disable-*)
1045     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046     # Reject names that are not valid shell variable names.
1047     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1049    { (exit 1); exit 1; }; }
1050     ac_useropt_orig=$ac_useropt
1051     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052     case $ac_user_opts in
1053       *"
1054 "enable_$ac_useropt"
1055 "*) ;;
1056       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057          ac_unrecognized_sep=', ';;
1058     esac
1059     eval enable_$ac_useropt=no ;;
1060
1061   -docdir | --docdir | --docdi | --doc | --do)
1062     ac_prev=docdir ;;
1063   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064     docdir=$ac_optarg ;;
1065
1066   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067     ac_prev=dvidir ;;
1068   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069     dvidir=$ac_optarg ;;
1070
1071   -enable-* | --enable-*)
1072     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073     # Reject names that are not valid shell variable names.
1074     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1076    { (exit 1); exit 1; }; }
1077     ac_useropt_orig=$ac_useropt
1078     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079     case $ac_user_opts in
1080       *"
1081 "enable_$ac_useropt"
1082 "*) ;;
1083       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1084          ac_unrecognized_sep=', ';;
1085     esac
1086     eval enable_$ac_useropt=\$ac_optarg ;;
1087
1088   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090   | --exec | --exe | --ex)
1091     ac_prev=exec_prefix ;;
1092   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094   | --exec=* | --exe=* | --ex=*)
1095     exec_prefix=$ac_optarg ;;
1096
1097   -gas | --gas | --ga | --g)
1098     # Obsolete; use --with-gas.
1099     with_gas=yes ;;
1100
1101   -help | --help | --hel | --he | -h)
1102     ac_init_help=long ;;
1103   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104     ac_init_help=recursive ;;
1105   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106     ac_init_help=short ;;
1107
1108   -host | --host | --hos | --ho)
1109     ac_prev=host_alias ;;
1110   -host=* | --host=* | --hos=* | --ho=*)
1111     host_alias=$ac_optarg ;;
1112
1113   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114     ac_prev=htmldir ;;
1115   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116   | --ht=*)
1117     htmldir=$ac_optarg ;;
1118
1119   -includedir | --includedir | --includedi | --included | --include \
1120   | --includ | --inclu | --incl | --inc)
1121     ac_prev=includedir ;;
1122   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123   | --includ=* | --inclu=* | --incl=* | --inc=*)
1124     includedir=$ac_optarg ;;
1125
1126   -infodir | --infodir | --infodi | --infod | --info | --inf)
1127     ac_prev=infodir ;;
1128   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129     infodir=$ac_optarg ;;
1130
1131   -libdir | --libdir | --libdi | --libd)
1132     ac_prev=libdir ;;
1133   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134     libdir=$ac_optarg ;;
1135
1136   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137   | --libexe | --libex | --libe)
1138     ac_prev=libexecdir ;;
1139   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140   | --libexe=* | --libex=* | --libe=*)
1141     libexecdir=$ac_optarg ;;
1142
1143   -localedir | --localedir | --localedi | --localed | --locale)
1144     ac_prev=localedir ;;
1145   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146     localedir=$ac_optarg ;;
1147
1148   -localstatedir | --localstatedir | --localstatedi | --localstated \
1149   | --localstate | --localstat | --localsta | --localst | --locals)
1150     ac_prev=localstatedir ;;
1151   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153     localstatedir=$ac_optarg ;;
1154
1155   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156     ac_prev=mandir ;;
1157   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158     mandir=$ac_optarg ;;
1159
1160   -nfp | --nfp | --nf)
1161     # Obsolete; use --without-fp.
1162     with_fp=no ;;
1163
1164   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165   | --no-cr | --no-c | -n)
1166     no_create=yes ;;
1167
1168   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170     no_recursion=yes ;;
1171
1172   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174   | --oldin | --oldi | --old | --ol | --o)
1175     ac_prev=oldincludedir ;;
1176   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179     oldincludedir=$ac_optarg ;;
1180
1181   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182     ac_prev=prefix ;;
1183   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184     prefix=$ac_optarg ;;
1185
1186   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187   | --program-pre | --program-pr | --program-p)
1188     ac_prev=program_prefix ;;
1189   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191     program_prefix=$ac_optarg ;;
1192
1193   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194   | --program-suf | --program-su | --program-s)
1195     ac_prev=program_suffix ;;
1196   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198     program_suffix=$ac_optarg ;;
1199
1200   -program-transform-name | --program-transform-name \
1201   | --program-transform-nam | --program-transform-na \
1202   | --program-transform-n | --program-transform- \
1203   | --program-transform | --program-transfor \
1204   | --program-transfo | --program-transf \
1205   | --program-trans | --program-tran \
1206   | --progr-tra | --program-tr | --program-t)
1207     ac_prev=program_transform_name ;;
1208   -program-transform-name=* | --program-transform-name=* \
1209   | --program-transform-nam=* | --program-transform-na=* \
1210   | --program-transform-n=* | --program-transform-=* \
1211   | --program-transform=* | --program-transfor=* \
1212   | --program-transfo=* | --program-transf=* \
1213   | --program-trans=* | --program-tran=* \
1214   | --progr-tra=* | --program-tr=* | --program-t=*)
1215     program_transform_name=$ac_optarg ;;
1216
1217   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218     ac_prev=pdfdir ;;
1219   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220     pdfdir=$ac_optarg ;;
1221
1222   -psdir | --psdir | --psdi | --psd | --ps)
1223     ac_prev=psdir ;;
1224   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225     psdir=$ac_optarg ;;
1226
1227   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228   | -silent | --silent | --silen | --sile | --sil)
1229     silent=yes ;;
1230
1231   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232     ac_prev=sbindir ;;
1233   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234   | --sbi=* | --sb=*)
1235     sbindir=$ac_optarg ;;
1236
1237   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239   | --sharedst | --shareds | --shared | --share | --shar \
1240   | --sha | --sh)
1241     ac_prev=sharedstatedir ;;
1242   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245   | --sha=* | --sh=*)
1246     sharedstatedir=$ac_optarg ;;
1247
1248   -site | --site | --sit)
1249     ac_prev=site ;;
1250   -site=* | --site=* | --sit=*)
1251     site=$ac_optarg ;;
1252
1253   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254     ac_prev=srcdir ;;
1255   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256     srcdir=$ac_optarg ;;
1257
1258   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259   | --syscon | --sysco | --sysc | --sys | --sy)
1260     ac_prev=sysconfdir ;;
1261   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263     sysconfdir=$ac_optarg ;;
1264
1265   -target | --target | --targe | --targ | --tar | --ta | --t)
1266     ac_prev=target_alias ;;
1267   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268     target_alias=$ac_optarg ;;
1269
1270   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271     verbose=yes ;;
1272
1273   -version | --version | --versio | --versi | --vers | -V)
1274     ac_init_version=: ;;
1275
1276   -with-* | --with-*)
1277     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278     # Reject names that are not valid shell variable names.
1279     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1281    { (exit 1); exit 1; }; }
1282     ac_useropt_orig=$ac_useropt
1283     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284     case $ac_user_opts in
1285       *"
1286 "with_$ac_useropt"
1287 "*) ;;
1288       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1289          ac_unrecognized_sep=', ';;
1290     esac
1291     eval with_$ac_useropt=\$ac_optarg ;;
1292
1293   -without-* | --without-*)
1294     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295     # Reject names that are not valid shell variable names.
1296     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1298    { (exit 1); exit 1; }; }
1299     ac_useropt_orig=$ac_useropt
1300     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301     case $ac_user_opts in
1302       *"
1303 "with_$ac_useropt"
1304 "*) ;;
1305       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306          ac_unrecognized_sep=', ';;
1307     esac
1308     eval with_$ac_useropt=no ;;
1309
1310   --x)
1311     # Obsolete; use --with-x.
1312     with_x=yes ;;
1313
1314   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315   | --x-incl | --x-inc | --x-in | --x-i)
1316     ac_prev=x_includes ;;
1317   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319     x_includes=$ac_optarg ;;
1320
1321   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323     ac_prev=x_libraries ;;
1324   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326     x_libraries=$ac_optarg ;;
1327
1328   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1329 Try \`$0 --help' for more information." >&2
1330    { (exit 1); exit 1; }; }
1331     ;;
1332
1333   *=*)
1334     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335     # Reject names that are not valid shell variable names.
1336     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1337       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1338    { (exit 1); exit 1; }; }
1339     eval $ac_envvar=\$ac_optarg
1340     export $ac_envvar ;;
1341
1342   *)
1343     # FIXME: should be removed in autoconf 3.0.
1344     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348     ;;
1349
1350   esac
1351 done
1352
1353 if test -n "$ac_prev"; then
1354   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1356    { (exit 1); exit 1; }; }
1357 fi
1358
1359 if test -n "$ac_unrecognized_opts"; then
1360   case $enable_option_checking in
1361     no) ;;
1362     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1363    { (exit 1); exit 1; }; } ;;
1364     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365   esac
1366 fi
1367
1368 # Check all directory arguments for consistency.
1369 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370                 datadir sysconfdir sharedstatedir localstatedir includedir \
1371                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372                 libdir localedir mandir
1373 do
1374   eval ac_val=\$$ac_var
1375   # Remove trailing slashes.
1376   case $ac_val in
1377     */ )
1378       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379       eval $ac_var=\$ac_val;;
1380   esac
1381   # Be sure to have absolute directory names.
1382   case $ac_val in
1383     [\\/$]* | ?:[\\/]* )  continue;;
1384     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1385   esac
1386   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1387    { (exit 1); exit 1; }; }
1388 done
1389
1390 # There might be people who depend on the old broken behavior: `$host'
1391 # used to hold the argument of --host etc.
1392 # FIXME: To remove some day.
1393 build=$build_alias
1394 host=$host_alias
1395 target=$target_alias
1396
1397 # FIXME: To remove some day.
1398 if test "x$host_alias" != x; then
1399   if test "x$build_alias" = x; then
1400     cross_compiling=maybe
1401     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1402     If a cross compiler is detected then cross compile mode will be used." >&2
1403   elif test "x$build_alias" != "x$host_alias"; then
1404     cross_compiling=yes
1405   fi
1406 fi
1407
1408 ac_tool_prefix=
1409 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1410
1411 test "$silent" = yes && exec 6>/dev/null
1412
1413
1414 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di=`ls -di .` &&
1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1418    { (exit 1); exit 1; }; }
1419 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1420   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1421    { (exit 1); exit 1; }; }
1422
1423
1424 # Find the source files, if location was not specified.
1425 if test -z "$srcdir"; then
1426   ac_srcdir_defaulted=yes
1427   # Try the directory containing this script, then the parent directory.
1428   ac_confdir=`$as_dirname -- "$as_myself" ||
1429 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1430          X"$as_myself" : 'X\(//\)[^/]' \| \
1431          X"$as_myself" : 'X\(//\)$' \| \
1432          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1433 $as_echo X"$as_myself" |
1434     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1435             s//\1/
1436             q
1437           }
1438           /^X\(\/\/\)[^/].*/{
1439             s//\1/
1440             q
1441           }
1442           /^X\(\/\/\)$/{
1443             s//\1/
1444             q
1445           }
1446           /^X\(\/\).*/{
1447             s//\1/
1448             q
1449           }
1450           s/.*/./; q'`
1451   srcdir=$ac_confdir
1452   if test ! -r "$srcdir/$ac_unique_file"; then
1453     srcdir=..
1454   fi
1455 else
1456   ac_srcdir_defaulted=no
1457 fi
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1459   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1460   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1461    { (exit 1); exit 1; }; }
1462 fi
1463 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1464 ac_abs_confdir=`(
1465         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1466    { (exit 1); exit 1; }; }
1467         pwd)`
1468 # When building in place, set srcdir=.
1469 if test "$ac_abs_confdir" = "$ac_pwd"; then
1470   srcdir=.
1471 fi
1472 # Remove unnecessary trailing slashes from srcdir.
1473 # Double slashes in file names in object file debugging info
1474 # mess up M-x gdb in Emacs.
1475 case $srcdir in
1476 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477 esac
1478 for ac_var in $ac_precious_vars; do
1479   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1480   eval ac_env_${ac_var}_value=\$${ac_var}
1481   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1482   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483 done
1484
1485 #
1486 # Report the --help message.
1487 #
1488 if test "$ac_init_help" = "long"; then
1489   # Omit some internal or obsolete options to make the list less imposing.
1490   # This message is too long to be a string in the A/UX 3.1 sh.
1491   cat <<_ACEOF
1492 \`configure' configures this package to adapt to many kinds of systems.
1493
1494 Usage: $0 [OPTION]... [VAR=VALUE]...
1495
1496 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497 VAR=VALUE.  See below for descriptions of some of the useful variables.
1498
1499 Defaults for the options are specified in brackets.
1500
1501 Configuration:
1502   -h, --help              display this help and exit
1503       --help=short        display options specific to this package
1504       --help=recursive    display the short help of all the included packages
1505   -V, --version           display version information and exit
1506   -q, --quiet, --silent   do not print \`checking...' messages
1507       --cache-file=FILE   cache test results in FILE [disabled]
1508   -C, --config-cache      alias for \`--cache-file=config.cache'
1509   -n, --no-create         do not create output files
1510       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1511
1512 Installation directories:
1513   --prefix=PREFIX         install architecture-independent files in PREFIX
1514                           [$ac_default_prefix]
1515   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1516                           [PREFIX]
1517
1518 By default, \`make install' will install all the files in
1519 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1520 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521 for instance \`--prefix=\$HOME'.
1522
1523 For better control, use the options below.
1524
1525 Fine tuning of the installation directories:
1526   --bindir=DIR            user executables [EPREFIX/bin]
1527   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1528   --libexecdir=DIR        program executables [EPREFIX/libexec]
1529   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1530   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1531   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1532   --libdir=DIR            object code libraries [EPREFIX/lib]
1533   --includedir=DIR        C header files [PREFIX/include]
1534   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1535   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1536   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1537   --infodir=DIR           info documentation [DATAROOTDIR/info]
1538   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1539   --mandir=DIR            man documentation [DATAROOTDIR/man]
1540   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1541   --htmldir=DIR           html documentation [DOCDIR]
1542   --dvidir=DIR            dvi documentation [DOCDIR]
1543   --pdfdir=DIR            pdf documentation [DOCDIR]
1544   --psdir=DIR             ps documentation [DOCDIR]
1545 _ACEOF
1546
1547   cat <<\_ACEOF
1548
1549 Program names:
1550   --program-prefix=PREFIX            prepend PREFIX to installed program names
1551   --program-suffix=SUFFIX            append SUFFIX to installed program names
1552   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1553
1554 System types:
1555   --build=BUILD     configure for building on BUILD [guessed]
1556   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1557 _ACEOF
1558 fi
1559
1560 if test -n "$ac_init_help"; then
1561
1562   cat <<\_ACEOF
1563
1564 Optional Features:
1565   --disable-option-checking  ignore unrecognized --enable/--with options
1566   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1567   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1568   --disable-dependency-tracking  speeds up one-time build
1569   --enable-dependency-tracking   do not reject slow dependency extractors
1570   --enable-shared[=PKGS]  build shared libraries [default=yes]
1571   --enable-static[=PKGS]  build static libraries [default=yes]
1572   --enable-fast-install[=PKGS]
1573                           optimize for fast installation [default=yes]
1574   --disable-libtool-lock  avoid locking (might break parallel builds)
1575
1576 Optional Packages:
1577   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1578   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1579   --with-pic              try to use only PIC/non-PIC objects [default=use
1580                           both]
1581   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1582         --with-l7vs-moddir=DIR  l7vs module is to be installed in DIR.
1583                                                                 default=LIBDIR/l7vs
1584         --with-l7vsadm-sockdir=DIR      l7vsadm sockfile PATH.
1585                                                                         default=/var/run/l7vs
1586         --with-l7vs-buffer-size=NUM     l7vsd using heap buffer size.
1587                                                                         default=4096
1588         --with-l7vs-config-dir=DIR      l7vs configfile PATH.
1589                                                                         default=/etc/l7vs/l7vs.cf
1590
1591 Some influential environment variables:
1592   CXX         C++ compiler command
1593   CXXFLAGS    C++ compiler flags
1594   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1595               nonstandard directory <lib dir>
1596   LIBS        libraries to pass to the linker, e.g. -l<library>
1597   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1598               you have headers in a nonstandard directory <include dir>
1599   CC          C compiler command
1600   CFLAGS      C compiler flags
1601   CPP         C preprocessor
1602   CXXCPP      C++ preprocessor
1603
1604 Use these variables to override the choices made by `configure' or to help
1605 it to find libraries and programs with nonstandard names/locations.
1606
1607 _ACEOF
1608 ac_status=$?
1609 fi
1610
1611 if test "$ac_init_help" = "recursive"; then
1612   # If there are subdirs, report their specific --help.
1613   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1614     test -d "$ac_dir" ||
1615       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1616       continue
1617     ac_builddir=.
1618
1619 case "$ac_dir" in
1620 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *)
1622   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1623   # A ".." for each directory in $ac_dir_suffix.
1624   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1625   case $ac_top_builddir_sub in
1626   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1628   esac ;;
1629 esac
1630 ac_abs_top_builddir=$ac_pwd
1631 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1632 # for backward compatibility:
1633 ac_top_builddir=$ac_top_build_prefix
1634
1635 case $srcdir in
1636   .)  # We are building in place.
1637     ac_srcdir=.
1638     ac_top_srcdir=$ac_top_builddir_sub
1639     ac_abs_top_srcdir=$ac_pwd ;;
1640   [\\/]* | ?:[\\/]* )  # Absolute name.
1641     ac_srcdir=$srcdir$ac_dir_suffix;
1642     ac_top_srcdir=$srcdir
1643     ac_abs_top_srcdir=$srcdir ;;
1644   *) # Relative name.
1645     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1646     ac_top_srcdir=$ac_top_build_prefix$srcdir
1647     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1648 esac
1649 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1650
1651     cd "$ac_dir" || { ac_status=$?; continue; }
1652     # Check for guested configure.
1653     if test -f "$ac_srcdir/configure.gnu"; then
1654       echo &&
1655       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1656     elif test -f "$ac_srcdir/configure"; then
1657       echo &&
1658       $SHELL "$ac_srcdir/configure" --help=recursive
1659     else
1660       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1661     fi || ac_status=$?
1662     cd "$ac_pwd" || { ac_status=$?; break; }
1663   done
1664 fi
1665
1666 test -n "$ac_init_help" && exit $ac_status
1667 if $ac_init_version; then
1668   cat <<\_ACEOF
1669 configure
1670 generated by GNU Autoconf 2.63
1671
1672 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1673 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1674 This configure script is free software; the Free Software Foundation
1675 gives unlimited permission to copy, distribute and modify it.
1676 _ACEOF
1677   exit
1678 fi
1679 cat >config.log <<_ACEOF
1680 This file contains any messages produced by compilers while
1681 running configure, to aid debugging if configure makes a mistake.
1682
1683 It was created by $as_me, which was
1684 generated by GNU Autoconf 2.63.  Invocation command line was
1685
1686   $ $0 $@
1687
1688 _ACEOF
1689 exec 5>>config.log
1690 {
1691 cat <<_ASUNAME
1692 ## --------- ##
1693 ## Platform. ##
1694 ## --------- ##
1695
1696 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1697 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1698 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1699 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1700 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1701
1702 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1703 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1704
1705 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1706 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1707 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1708 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1709 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1710 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1711 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1712
1713 _ASUNAME
1714
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 for as_dir in $PATH
1717 do
1718   IFS=$as_save_IFS
1719   test -z "$as_dir" && as_dir=.
1720   $as_echo "PATH: $as_dir"
1721 done
1722 IFS=$as_save_IFS
1723
1724 } >&5
1725
1726 cat >&5 <<_ACEOF
1727
1728
1729 ## ----------- ##
1730 ## Core tests. ##
1731 ## ----------- ##
1732
1733 _ACEOF
1734
1735
1736 # Keep a trace of the command line.
1737 # Strip out --no-create and --no-recursion so they do not pile up.
1738 # Strip out --silent because we don't want to record it for future runs.
1739 # Also quote any args containing shell meta-characters.
1740 # Make two passes to allow for proper duplicate-argument suppression.
1741 ac_configure_args=
1742 ac_configure_args0=
1743 ac_configure_args1=
1744 ac_must_keep_next=false
1745 for ac_pass in 1 2
1746 do
1747   for ac_arg
1748   do
1749     case $ac_arg in
1750     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1751     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1752     | -silent | --silent | --silen | --sile | --sil)
1753       continue ;;
1754     *\'*)
1755       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1756     esac
1757     case $ac_pass in
1758     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1759     2)
1760       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1761       if test $ac_must_keep_next = true; then
1762         ac_must_keep_next=false # Got value, back to normal.
1763       else
1764         case $ac_arg in
1765           *=* | --config-cache | -C | -disable-* | --disable-* \
1766           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1767           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1768           | -with-* | --with-* | -without-* | --without-* | --x)
1769             case "$ac_configure_args0 " in
1770               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1771             esac
1772             ;;
1773           -* ) ac_must_keep_next=true ;;
1774         esac
1775       fi
1776       ac_configure_args="$ac_configure_args '$ac_arg'"
1777       ;;
1778     esac
1779   done
1780 done
1781 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1782 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1783
1784 # When interrupted or exit'd, cleanup temporary files, and complete
1785 # config.log.  We remove comments because anyway the quotes in there
1786 # would cause problems or look ugly.
1787 # WARNING: Use '\'' to represent an apostrophe within the trap.
1788 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1789 trap 'exit_status=$?
1790   # Save into config.log some information that might help in debugging.
1791   {
1792     echo
1793
1794     cat <<\_ASBOX
1795 ## ---------------- ##
1796 ## Cache variables. ##
1797 ## ---------------- ##
1798 _ASBOX
1799     echo
1800     # The following way of writing the cache mishandles newlines in values,
1801 (
1802   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1803     eval ac_val=\$$ac_var
1804     case $ac_val in #(
1805     *${as_nl}*)
1806       case $ac_var in #(
1807       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1808 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1809       esac
1810       case $ac_var in #(
1811       _ | IFS | as_nl) ;; #(
1812       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1813       *) $as_unset $ac_var ;;
1814       esac ;;
1815     esac
1816   done
1817   (set) 2>&1 |
1818     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1819     *${as_nl}ac_space=\ *)
1820       sed -n \
1821         "s/'\''/'\''\\\\'\'''\''/g;
1822           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1823       ;; #(
1824     *)
1825       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1826       ;;
1827     esac |
1828     sort
1829 )
1830     echo
1831
1832     cat <<\_ASBOX
1833 ## ----------------- ##
1834 ## Output variables. ##
1835 ## ----------------- ##
1836 _ASBOX
1837     echo
1838     for ac_var in $ac_subst_vars
1839     do
1840       eval ac_val=\$$ac_var
1841       case $ac_val in
1842       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843       esac
1844       $as_echo "$ac_var='\''$ac_val'\''"
1845     done | sort
1846     echo
1847
1848     if test -n "$ac_subst_files"; then
1849       cat <<\_ASBOX
1850 ## ------------------- ##
1851 ## File substitutions. ##
1852 ## ------------------- ##
1853 _ASBOX
1854       echo
1855       for ac_var in $ac_subst_files
1856       do
1857         eval ac_val=\$$ac_var
1858         case $ac_val in
1859         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860         esac
1861         $as_echo "$ac_var='\''$ac_val'\''"
1862       done | sort
1863       echo
1864     fi
1865
1866     if test -s confdefs.h; then
1867       cat <<\_ASBOX
1868 ## ----------- ##
1869 ## confdefs.h. ##
1870 ## ----------- ##
1871 _ASBOX
1872       echo
1873       cat confdefs.h
1874       echo
1875     fi
1876     test "$ac_signal" != 0 &&
1877       $as_echo "$as_me: caught signal $ac_signal"
1878     $as_echo "$as_me: exit $exit_status"
1879   } >&5
1880   rm -f core *.core core.conftest.* &&
1881     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1882     exit $exit_status
1883 ' 0
1884 for ac_signal in 1 2 13 15; do
1885   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1886 done
1887 ac_signal=0
1888
1889 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1890 rm -f -r conftest* confdefs.h
1891
1892 # Predefined preprocessor variables.
1893
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_NAME "$PACKAGE_NAME"
1896 _ACEOF
1897
1898
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1901 _ACEOF
1902
1903
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1906 _ACEOF
1907
1908
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_STRING "$PACKAGE_STRING"
1911 _ACEOF
1912
1913
1914 cat >>confdefs.h <<_ACEOF
1915 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1916 _ACEOF
1917
1918
1919 # Let the site file select an alternate cache file if it wants to.
1920 # Prefer an explicitly selected file to automatically selected ones.
1921 ac_site_file1=NONE
1922 ac_site_file2=NONE
1923 if test -n "$CONFIG_SITE"; then
1924   ac_site_file1=$CONFIG_SITE
1925 elif test "x$prefix" != xNONE; then
1926   ac_site_file1=$prefix/share/config.site
1927   ac_site_file2=$prefix/etc/config.site
1928 else
1929   ac_site_file1=$ac_default_prefix/share/config.site
1930   ac_site_file2=$ac_default_prefix/etc/config.site
1931 fi
1932 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1933 do
1934   test "x$ac_site_file" = xNONE && continue
1935   if test -r "$ac_site_file"; then
1936     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1937 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1938     sed 's/^/| /' "$ac_site_file" >&5
1939     . "$ac_site_file"
1940   fi
1941 done
1942
1943 if test -r "$cache_file"; then
1944   # Some versions of bash will fail to source /dev/null (special
1945   # files actually), so we avoid doing that.
1946   if test -f "$cache_file"; then
1947     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1948 $as_echo "$as_me: loading cache $cache_file" >&6;}
1949     case $cache_file in
1950       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1951       *)                      . "./$cache_file";;
1952     esac
1953   fi
1954 else
1955   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1956 $as_echo "$as_me: creating cache $cache_file" >&6;}
1957   >$cache_file
1958 fi
1959
1960 ac_header_list="$ac_header_list sys/time.h"
1961 ac_header_list="$ac_header_list unistd.h"
1962 ac_func_list="$ac_func_list alarm"
1963 # Check that the precious variables saved in the cache have kept the same
1964 # value.
1965 ac_cache_corrupted=false
1966 for ac_var in $ac_precious_vars; do
1967   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1968   eval ac_new_set=\$ac_env_${ac_var}_set
1969   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1970   eval ac_new_val=\$ac_env_${ac_var}_value
1971   case $ac_old_set,$ac_new_set in
1972     set,)
1973       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1974 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1975       ac_cache_corrupted=: ;;
1976     ,set)
1977       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1978 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1979       ac_cache_corrupted=: ;;
1980     ,);;
1981     *)
1982       if test "x$ac_old_val" != "x$ac_new_val"; then
1983         # differences in whitespace do not lead to failure.
1984         ac_old_val_w=`echo x $ac_old_val`
1985         ac_new_val_w=`echo x $ac_new_val`
1986         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1987           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1988 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1989           ac_cache_corrupted=:
1990         else
1991           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1992 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1993           eval $ac_var=\$ac_old_val
1994         fi
1995         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1996 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1997         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1998 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1999       fi;;
2000   esac
2001   # Pass precious variables to config.status.
2002   if test "$ac_new_set" = set; then
2003     case $ac_new_val in
2004     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2005     *) ac_arg=$ac_var=$ac_new_val ;;
2006     esac
2007     case " $ac_configure_args " in
2008       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2009       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2010     esac
2011   fi
2012 done
2013 if $ac_cache_corrupted; then
2014   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2016   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2017 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2018   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2019 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2020    { (exit 1); exit 1; }; }
2021 fi
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039 ac_ext=c
2040 ac_cpp='$CPP $CPPFLAGS'
2041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2044
2045
2046 PACKAGENAME=l7vsd
2047 VERSION=3.0.0
2048
2049 am__api_version='1.11'
2050
2051 ac_aux_dir=
2052 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2053   if test -f "$ac_dir/install-sh"; then
2054     ac_aux_dir=$ac_dir
2055     ac_install_sh="$ac_aux_dir/install-sh -c"
2056     break
2057   elif test -f "$ac_dir/install.sh"; then
2058     ac_aux_dir=$ac_dir
2059     ac_install_sh="$ac_aux_dir/install.sh -c"
2060     break
2061   elif test -f "$ac_dir/shtool"; then
2062     ac_aux_dir=$ac_dir
2063     ac_install_sh="$ac_aux_dir/shtool install -c"
2064     break
2065   fi
2066 done
2067 if test -z "$ac_aux_dir"; then
2068   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2069 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2070    { (exit 1); exit 1; }; }
2071 fi
2072
2073 # These three variables are undocumented and unsupported,
2074 # and are intended to be withdrawn in a future Autoconf release.
2075 # They can cause serious problems if a builder's source tree is in a directory
2076 # whose full name contains unusual characters.
2077 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2078 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2079 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2080
2081
2082 # Find a good install program.  We prefer a C program (faster),
2083 # so one script is as good as another.  But avoid the broken or
2084 # incompatible versions:
2085 # SysV /etc/install, /usr/sbin/install
2086 # SunOS /usr/etc/install
2087 # IRIX /sbin/install
2088 # AIX /bin/install
2089 # AmigaOS /C/install, which installs bootblocks on floppy discs
2090 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2091 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2092 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2093 # OS/2's system install, which has a completely different semantic
2094 # ./install, which can be erroneously created by make from ./install.sh.
2095 # Reject install programs that cannot install multiple files.
2096 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2097 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2098 if test -z "$INSTALL"; then
2099 if test "${ac_cv_path_install+set}" = set; then
2100   $as_echo_n "(cached) " >&6
2101 else
2102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2104 do
2105   IFS=$as_save_IFS
2106   test -z "$as_dir" && as_dir=.
2107   # Account for people who put trailing slashes in PATH elements.
2108 case $as_dir/ in
2109   ./ | .// | /cC/* | \
2110   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2111   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2112   /usr/ucb/* ) ;;
2113   *)
2114     # OSF1 and SCO ODT 3.0 have their own names for install.
2115     # Don't use installbsd from OSF since it installs stuff as root
2116     # by default.
2117     for ac_prog in ginstall scoinst install; do
2118       for ac_exec_ext in '' $ac_executable_extensions; do
2119         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2120           if test $ac_prog = install &&
2121             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2122             # AIX install.  It has an incompatible calling convention.
2123             :
2124           elif test $ac_prog = install &&
2125             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2126             # program-specific install script used by HP pwplus--don't use.
2127             :
2128           else
2129             rm -rf conftest.one conftest.two conftest.dir
2130             echo one > conftest.one
2131             echo two > conftest.two
2132             mkdir conftest.dir
2133             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2134               test -s conftest.one && test -s conftest.two &&
2135               test -s conftest.dir/conftest.one &&
2136               test -s conftest.dir/conftest.two
2137             then
2138               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2139               break 3
2140             fi
2141           fi
2142         fi
2143       done
2144     done
2145     ;;
2146 esac
2147
2148 done
2149 IFS=$as_save_IFS
2150
2151 rm -rf conftest.one conftest.two conftest.dir
2152
2153 fi
2154   if test "${ac_cv_path_install+set}" = set; then
2155     INSTALL=$ac_cv_path_install
2156   else
2157     # As a last resort, use the slow shell script.  Don't cache a
2158     # value for INSTALL within a source directory, because that will
2159     # break other packages using the cache if that directory is
2160     # removed, or if the value is a relative name.
2161     INSTALL=$ac_install_sh
2162   fi
2163 fi
2164 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2165 $as_echo "$INSTALL" >&6; }
2166
2167 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2168 # It thinks the first close brace ends the variable substitution.
2169 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2170
2171 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2172
2173 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2174
2175 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2176 $as_echo_n "checking whether build environment is sane... " >&6; }
2177 # Just in case
2178 sleep 1
2179 echo timestamp > conftest.file
2180 # Reject unsafe characters in $srcdir or the absolute working directory
2181 # name.  Accept space and tab only in the latter.
2182 am_lf='
2183 '
2184 case `pwd` in
2185   *[\\\"\#\$\&\'\`$am_lf]*)
2186     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2187 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2188    { (exit 1); exit 1; }; };;
2189 esac
2190 case $srcdir in
2191   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2192     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2193 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2194    { (exit 1); exit 1; }; };;
2195 esac
2196
2197 # Do `set' in a subshell so we don't clobber the current shell's
2198 # arguments.  Must try -L first in case configure is actually a
2199 # symlink; some systems play weird games with the mod time of symlinks
2200 # (eg FreeBSD returns the mod time of the symlink's containing
2201 # directory).
2202 if (
2203    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2204    if test "$*" = "X"; then
2205       # -L didn't work.
2206       set X `ls -t "$srcdir/configure" conftest.file`
2207    fi
2208    rm -f conftest.file
2209    if test "$*" != "X $srcdir/configure conftest.file" \
2210       && test "$*" != "X conftest.file $srcdir/configure"; then
2211
2212       # If neither matched, then we have a broken ls.  This can happen
2213       # if, for instance, CONFIG_SHELL is bash and it inherits a
2214       # broken ls alias from the environment.  This has actually
2215       # happened.  Such a system could not be considered "sane".
2216       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2217 alias in your environment" >&5
2218 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2219 alias in your environment" >&2;}
2220    { (exit 1); exit 1; }; }
2221    fi
2222
2223    test "$2" = conftest.file
2224    )
2225 then
2226    # Ok.
2227    :
2228 else
2229    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2230 Check your system clock" >&5
2231 $as_echo "$as_me: error: newly created file is older than distributed files!
2232 Check your system clock" >&2;}
2233    { (exit 1); exit 1; }; }
2234 fi
2235 { $as_echo "$as_me:$LINENO: result: yes" >&5
2236 $as_echo "yes" >&6; }
2237 test "$program_prefix" != NONE &&
2238   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2239 # Use a double $ so make ignores it.
2240 test "$program_suffix" != NONE &&
2241   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2242 # Double any \ or $.
2243 # By default was `s,x,x', remove it if useless.
2244 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2245 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2246
2247 # expand $ac_aux_dir to an absolute path
2248 am_aux_dir=`cd $ac_aux_dir && pwd`
2249
2250 if test x"${MISSING+set}" != xset; then
2251   case $am_aux_dir in
2252   *\ * | *\     *)
2253     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2254   *)
2255     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2256   esac
2257 fi
2258 # Use eval to expand $SHELL
2259 if eval "$MISSING --run true"; then
2260   am_missing_run="$MISSING --run "
2261 else
2262   am_missing_run=
2263   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2264 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2265 fi
2266
2267 if test x"${install_sh}" != xset; then
2268   case $am_aux_dir in
2269   *\ * | *\     *)
2270     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2271   *)
2272     install_sh="\${SHELL} $am_aux_dir/install-sh"
2273   esac
2274 fi
2275
2276 # Installed binaries are usually stripped using `strip' when the user
2277 # run `make install-strip'.  However `strip' might not be the right
2278 # tool to use in cross-compilation environments, therefore Automake
2279 # will honor the `STRIP' environment variable to overrule this program.
2280 if test "$cross_compiling" != no; then
2281   if test -n "$ac_tool_prefix"; then
2282   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2283 set dummy ${ac_tool_prefix}strip; ac_word=$2
2284 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2285 $as_echo_n "checking for $ac_word... " >&6; }
2286 if test "${ac_cv_prog_STRIP+set}" = set; then
2287   $as_echo_n "(cached) " >&6
2288 else
2289   if test -n "$STRIP"; then
2290   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2291 else
2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 for as_dir in $PATH
2294 do
2295   IFS=$as_save_IFS
2296   test -z "$as_dir" && as_dir=.
2297   for ac_exec_ext in '' $ac_executable_extensions; do
2298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2300     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301     break 2
2302   fi
2303 done
2304 done
2305 IFS=$as_save_IFS
2306
2307 fi
2308 fi
2309 STRIP=$ac_cv_prog_STRIP
2310 if test -n "$STRIP"; then
2311   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2312 $as_echo "$STRIP" >&6; }
2313 else
2314   { $as_echo "$as_me:$LINENO: result: no" >&5
2315 $as_echo "no" >&6; }
2316 fi
2317
2318
2319 fi
2320 if test -z "$ac_cv_prog_STRIP"; then
2321   ac_ct_STRIP=$STRIP
2322   # Extract the first word of "strip", so it can be a program name with args.
2323 set dummy strip; ac_word=$2
2324 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2325 $as_echo_n "checking for $ac_word... " >&6; }
2326 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2327   $as_echo_n "(cached) " >&6
2328 else
2329   if test -n "$ac_ct_STRIP"; then
2330   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2331 else
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 for as_dir in $PATH
2334 do
2335   IFS=$as_save_IFS
2336   test -z "$as_dir" && as_dir=.
2337   for ac_exec_ext in '' $ac_executable_extensions; do
2338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339     ac_cv_prog_ac_ct_STRIP="strip"
2340     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341     break 2
2342   fi
2343 done
2344 done
2345 IFS=$as_save_IFS
2346
2347 fi
2348 fi
2349 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2350 if test -n "$ac_ct_STRIP"; then
2351   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2352 $as_echo "$ac_ct_STRIP" >&6; }
2353 else
2354   { $as_echo "$as_me:$LINENO: result: no" >&5
2355 $as_echo "no" >&6; }
2356 fi
2357
2358   if test "x$ac_ct_STRIP" = x; then
2359     STRIP=":"
2360   else
2361     case $cross_compiling:$ac_tool_warned in
2362 yes:)
2363 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2365 ac_tool_warned=yes ;;
2366 esac
2367     STRIP=$ac_ct_STRIP
2368   fi
2369 else
2370   STRIP="$ac_cv_prog_STRIP"
2371 fi
2372
2373 fi
2374 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2375
2376 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2377 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2378 if test -z "$MKDIR_P"; then
2379   if test "${ac_cv_path_mkdir+set}" = set; then
2380   $as_echo_n "(cached) " >&6
2381 else
2382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2384 do
2385   IFS=$as_save_IFS
2386   test -z "$as_dir" && as_dir=.
2387   for ac_prog in mkdir gmkdir; do
2388          for ac_exec_ext in '' $ac_executable_extensions; do
2389            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2390            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2391              'mkdir (GNU coreutils) '* | \
2392              'mkdir (coreutils) '* | \
2393              'mkdir (fileutils) '4.1*)
2394                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2395                break 3;;
2396            esac
2397          done
2398        done
2399 done
2400 IFS=$as_save_IFS
2401
2402 fi
2403
2404   if test "${ac_cv_path_mkdir+set}" = set; then
2405     MKDIR_P="$ac_cv_path_mkdir -p"
2406   else
2407     # As a last resort, use the slow shell script.  Don't cache a
2408     # value for MKDIR_P within a source directory, because that will
2409     # break other packages using the cache if that directory is
2410     # removed, or if the value is a relative name.
2411     test -d ./--version && rmdir ./--version
2412     MKDIR_P="$ac_install_sh -d"
2413   fi
2414 fi
2415 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2416 $as_echo "$MKDIR_P" >&6; }
2417
2418 mkdir_p="$MKDIR_P"
2419 case $mkdir_p in
2420   [\\/$]* | ?:[\\/]*) ;;
2421   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2422 esac
2423
2424 for ac_prog in gawk mawk nawk awk
2425 do
2426   # Extract the first word of "$ac_prog", so it can be a program name with args.
2427 set dummy $ac_prog; ac_word=$2
2428 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 $as_echo_n "checking for $ac_word... " >&6; }
2430 if test "${ac_cv_prog_AWK+set}" = set; then
2431   $as_echo_n "(cached) " >&6
2432 else
2433   if test -n "$AWK"; then
2434   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2438 do
2439   IFS=$as_save_IFS
2440   test -z "$as_dir" && as_dir=.
2441   for ac_exec_ext in '' $ac_executable_extensions; do
2442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2443     ac_cv_prog_AWK="$ac_prog"
2444     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445     break 2
2446   fi
2447 done
2448 done
2449 IFS=$as_save_IFS
2450
2451 fi
2452 fi
2453 AWK=$ac_cv_prog_AWK
2454 if test -n "$AWK"; then
2455   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2456 $as_echo "$AWK" >&6; }
2457 else
2458   { $as_echo "$as_me:$LINENO: result: no" >&5
2459 $as_echo "no" >&6; }
2460 fi
2461
2462
2463   test -n "$AWK" && break
2464 done
2465
2466 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2467 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2468 set x ${MAKE-make}
2469 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2470 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2471   $as_echo_n "(cached) " >&6
2472 else
2473   cat >conftest.make <<\_ACEOF
2474 SHELL = /bin/sh
2475 all:
2476         @echo '@@@%%%=$(MAKE)=@@@%%%'
2477 _ACEOF
2478 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2479 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2480   *@@@%%%=?*=@@@%%%*)
2481     eval ac_cv_prog_make_${ac_make}_set=yes;;
2482   *)
2483     eval ac_cv_prog_make_${ac_make}_set=no;;
2484 esac
2485 rm -f conftest.make
2486 fi
2487 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2488   { $as_echo "$as_me:$LINENO: result: yes" >&5
2489 $as_echo "yes" >&6; }
2490   SET_MAKE=
2491 else
2492   { $as_echo "$as_me:$LINENO: result: no" >&5
2493 $as_echo "no" >&6; }
2494   SET_MAKE="MAKE=${MAKE-make}"
2495 fi
2496
2497 rm -rf .tst 2>/dev/null
2498 mkdir .tst 2>/dev/null
2499 if test -d .tst; then
2500   am__leading_dot=.
2501 else
2502   am__leading_dot=_
2503 fi
2504 rmdir .tst 2>/dev/null
2505
2506 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2507   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2508   # is not polluted with repeated "-I."
2509   am__isrc=' -I$(srcdir)'
2510   # test to see if srcdir already configured
2511   if test -f $srcdir/config.status; then
2512     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2513 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2514    { (exit 1); exit 1; }; }
2515   fi
2516 fi
2517
2518 # test whether we have cygpath
2519 if test -z "$CYGPATH_W"; then
2520   if (cygpath --version) >/dev/null 2>/dev/null; then
2521     CYGPATH_W='cygpath -w'
2522   else
2523     CYGPATH_W=echo
2524   fi
2525 fi
2526
2527
2528 # Define the identity of the package.
2529  PACKAGE=$PACKAGENAME
2530  VERSION=$VERSION
2531
2532
2533 # Some tools Automake needs.
2534
2535 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2536
2537
2538 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2539
2540
2541 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2542
2543
2544 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2545
2546
2547 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2548
2549 # We need awk for the "check" target.  The system "awk" is bad on
2550 # some platforms.
2551 # Always define AMTAR for backward compatibility.
2552
2553 AMTAR=${AMTAR-"${am_missing_run}tar"}
2554
2555 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2556
2557
2558
2559
2560
2561
2562 ac_config_headers="$ac_config_headers config.h"
2563
2564
2565 # Checks for programs.
2566 ac_ext=cpp
2567 ac_cpp='$CXXCPP $CPPFLAGS'
2568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2571 if test -z "$CXX"; then
2572   if test -n "$CCC"; then
2573     CXX=$CCC
2574   else
2575     if test -n "$ac_tool_prefix"; then
2576   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2577   do
2578     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2579 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2580 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2581 $as_echo_n "checking for $ac_word... " >&6; }
2582 if test "${ac_cv_prog_CXX+set}" = set; then
2583   $as_echo_n "(cached) " >&6
2584 else
2585   if test -n "$CXX"; then
2586   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2590 do
2591   IFS=$as_save_IFS
2592   test -z "$as_dir" && as_dir=.
2593   for ac_exec_ext in '' $ac_executable_extensions; do
2594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2596     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597     break 2
2598   fi
2599 done
2600 done
2601 IFS=$as_save_IFS
2602
2603 fi
2604 fi
2605 CXX=$ac_cv_prog_CXX
2606 if test -n "$CXX"; then
2607   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
2608 $as_echo "$CXX" >&6; }
2609 else
2610   { $as_echo "$as_me:$LINENO: result: no" >&5
2611 $as_echo "no" >&6; }
2612 fi
2613
2614
2615     test -n "$CXX" && break
2616   done
2617 fi
2618 if test -z "$CXX"; then
2619   ac_ct_CXX=$CXX
2620   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2621 do
2622   # Extract the first word of "$ac_prog", so it can be a program name with args.
2623 set dummy $ac_prog; ac_word=$2
2624 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2625 $as_echo_n "checking for $ac_word... " >&6; }
2626 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2627   $as_echo_n "(cached) " >&6
2628 else
2629   if test -n "$ac_ct_CXX"; then
2630   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2631 else
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 for as_dir in $PATH
2634 do
2635   IFS=$as_save_IFS
2636   test -z "$as_dir" && as_dir=.
2637   for ac_exec_ext in '' $ac_executable_extensions; do
2638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2639     ac_cv_prog_ac_ct_CXX="$ac_prog"
2640     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2641     break 2
2642   fi
2643 done
2644 done
2645 IFS=$as_save_IFS
2646
2647 fi
2648 fi
2649 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2650 if test -n "$ac_ct_CXX"; then
2651   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2652 $as_echo "$ac_ct_CXX" >&6; }
2653 else
2654   { $as_echo "$as_me:$LINENO: result: no" >&5
2655 $as_echo "no" >&6; }
2656 fi
2657
2658
2659   test -n "$ac_ct_CXX" && break
2660 done
2661
2662   if test "x$ac_ct_CXX" = x; then
2663     CXX="g++"
2664   else
2665     case $cross_compiling:$ac_tool_warned in
2666 yes:)
2667 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2669 ac_tool_warned=yes ;;
2670 esac
2671     CXX=$ac_ct_CXX
2672   fi
2673 fi
2674
2675   fi
2676 fi
2677 # Provide some information about the compiler.
2678 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2679 set X $ac_compile
2680 ac_compiler=$2
2681 { (ac_try="$ac_compiler --version >&5"
2682 case "(($ac_try" in
2683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684   *) ac_try_echo=$ac_try;;
2685 esac
2686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2687 $as_echo "$ac_try_echo") >&5
2688   (eval "$ac_compiler --version >&5") 2>&5
2689   ac_status=$?
2690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); }
2692 { (ac_try="$ac_compiler -v >&5"
2693 case "(($ac_try" in
2694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695   *) ac_try_echo=$ac_try;;
2696 esac
2697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2698 $as_echo "$ac_try_echo") >&5
2699   (eval "$ac_compiler -v >&5") 2>&5
2700   ac_status=$?
2701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702   (exit $ac_status); }
2703 { (ac_try="$ac_compiler -V >&5"
2704 case "(($ac_try" in
2705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706   *) ac_try_echo=$ac_try;;
2707 esac
2708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2709 $as_echo "$ac_try_echo") >&5
2710   (eval "$ac_compiler -V >&5") 2>&5
2711   ac_status=$?
2712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); }
2714
2715 cat >conftest.$ac_ext <<_ACEOF
2716 /* confdefs.h.  */
2717 _ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h.  */
2721
2722 int
2723 main ()
2724 {
2725
2726   ;
2727   return 0;
2728 }
2729 _ACEOF
2730 ac_clean_files_save=$ac_clean_files
2731 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2732 # Try to create an executable without -o first, disregard a.out.
2733 # It will help us diagnose broken compilers, and finding out an intuition
2734 # of exeext.
2735 { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2736 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2737 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2738
2739 # The possible output files:
2740 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2741
2742 ac_rmfiles=
2743 for ac_file in $ac_files
2744 do
2745   case $ac_file in
2746     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2747     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2748   esac
2749 done
2750 rm -f $ac_rmfiles
2751
2752 if { (ac_try="$ac_link_default"
2753 case "(($ac_try" in
2754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755   *) ac_try_echo=$ac_try;;
2756 esac
2757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2758 $as_echo "$ac_try_echo") >&5
2759   (eval "$ac_link_default") 2>&5
2760   ac_status=$?
2761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); }; then
2763   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2764 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2765 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2766 # so that the user can short-circuit this test for compilers unknown to
2767 # Autoconf.
2768 for ac_file in $ac_files ''
2769 do
2770   test -f "$ac_file" || continue
2771   case $ac_file in
2772     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2773         ;;
2774     [ab].out )
2775         # We found the default executable, but exeext='' is most
2776         # certainly right.
2777         break;;
2778     *.* )
2779         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2780         then :; else
2781            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2782         fi
2783         # We set ac_cv_exeext here because the later test for it is not
2784         # safe: cross compilers may not add the suffix if given an `-o'
2785         # argument, so we may need to know it at that point already.
2786         # Even if this section looks crufty: it has the advantage of
2787         # actually working.
2788         break;;
2789     * )
2790         break;;
2791   esac
2792 done
2793 test "$ac_cv_exeext" = no && ac_cv_exeext=
2794
2795 else
2796   ac_file=''
2797 fi
2798
2799 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2800 $as_echo "$ac_file" >&6; }
2801 if test -z "$ac_file"; then
2802   $as_echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2804
2805 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2807 { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2808 See \`config.log' for more details." >&5
2809 $as_echo "$as_me: error: C++ compiler cannot create executables
2810 See \`config.log' for more details." >&2;}
2811    { (exit 77); exit 77; }; }; }
2812 fi
2813
2814 ac_exeext=$ac_cv_exeext
2815
2816 # Check that the compiler produces executables we can run.  If not, either
2817 # the compiler is broken, or we cross compile.
2818 { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2819 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2820 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2821 # If not cross compiling, check that we can run a simple program.
2822 if test "$cross_compiling" != yes; then
2823   if { ac_try='./$ac_file'
2824   { (case "(($ac_try" in
2825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826   *) ac_try_echo=$ac_try;;
2827 esac
2828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2829 $as_echo "$ac_try_echo") >&5
2830   (eval "$ac_try") 2>&5
2831   ac_status=$?
2832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); }; }; then
2834     cross_compiling=no
2835   else
2836     if test "$cross_compiling" = maybe; then
2837         cross_compiling=yes
2838     else
2839         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2841 { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2842 If you meant to cross compile, use \`--host'.
2843 See \`config.log' for more details." >&5
2844 $as_echo "$as_me: error: cannot run C++ compiled programs.
2845 If you meant to cross compile, use \`--host'.
2846 See \`config.log' for more details." >&2;}
2847    { (exit 1); exit 1; }; }; }
2848     fi
2849   fi
2850 fi
2851 { $as_echo "$as_me:$LINENO: result: yes" >&5
2852 $as_echo "yes" >&6; }
2853
2854 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2855 ac_clean_files=$ac_clean_files_save
2856 # Check that the compiler produces executables we can run.  If not, either
2857 # the compiler is broken, or we cross compile.
2858 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2859 $as_echo_n "checking whether we are cross compiling... " >&6; }
2860 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2861 $as_echo "$cross_compiling" >&6; }
2862
2863 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2864 $as_echo_n "checking for suffix of executables... " >&6; }
2865 if { (ac_try="$ac_link"
2866 case "(($ac_try" in
2867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868   *) ac_try_echo=$ac_try;;
2869 esac
2870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2871 $as_echo "$ac_try_echo") >&5
2872   (eval "$ac_link") 2>&5
2873   ac_status=$?
2874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); }; then
2876   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2877 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2878 # work properly (i.e., refer to `conftest.exe'), while it won't with
2879 # `rm'.
2880 for ac_file in conftest.exe conftest conftest.*; do
2881   test -f "$ac_file" || continue
2882   case $ac_file in
2883     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2884     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2885           break;;
2886     * ) break;;
2887   esac
2888 done
2889 else
2890   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2892 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2893 See \`config.log' for more details." >&5
2894 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2895 See \`config.log' for more details." >&2;}
2896    { (exit 1); exit 1; }; }; }
2897 fi
2898
2899 rm -f conftest$ac_cv_exeext
2900 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2901 $as_echo "$ac_cv_exeext" >&6; }
2902
2903 rm -f conftest.$ac_ext
2904 EXEEXT=$ac_cv_exeext
2905 ac_exeext=$EXEEXT
2906 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2907 $as_echo_n "checking for suffix of object files... " >&6; }
2908 if test "${ac_cv_objext+set}" = set; then
2909   $as_echo_n "(cached) " >&6
2910 else
2911   cat >conftest.$ac_ext <<_ACEOF
2912 /* confdefs.h.  */
2913 _ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h.  */
2917
2918 int
2919 main ()
2920 {
2921
2922   ;
2923   return 0;
2924 }
2925 _ACEOF
2926 rm -f conftest.o conftest.obj
2927 if { (ac_try="$ac_compile"
2928 case "(($ac_try" in
2929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930   *) ac_try_echo=$ac_try;;
2931 esac
2932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2933 $as_echo "$ac_try_echo") >&5
2934   (eval "$ac_compile") 2>&5
2935   ac_status=$?
2936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); }; then
2938   for ac_file in conftest.o conftest.obj conftest.*; do
2939   test -f "$ac_file" || continue;
2940   case $ac_file in
2941     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2942     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2943        break;;
2944   esac
2945 done
2946 else
2947   $as_echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2949
2950 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2952 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2953 See \`config.log' for more details." >&5
2954 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2955 See \`config.log' for more details." >&2;}
2956    { (exit 1); exit 1; }; }; }
2957 fi
2958
2959 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2960 fi
2961 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2962 $as_echo "$ac_cv_objext" >&6; }
2963 OBJEXT=$ac_cv_objext
2964 ac_objext=$OBJEXT
2965 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2966 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2967 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2968   $as_echo_n "(cached) " >&6
2969 else
2970   cat >conftest.$ac_ext <<_ACEOF
2971 /* confdefs.h.  */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h.  */
2976
2977 int
2978 main ()
2979 {
2980 #ifndef __GNUC__
2981        choke me
2982 #endif
2983
2984   ;
2985   return 0;
2986 }
2987 _ACEOF
2988 rm -f conftest.$ac_objext
2989 if { (ac_try="$ac_compile"
2990 case "(($ac_try" in
2991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992   *) ac_try_echo=$ac_try;;
2993 esac
2994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2995 $as_echo "$ac_try_echo") >&5
2996   (eval "$ac_compile") 2>conftest.er1
2997   ac_status=$?
2998   grep -v '^ *+' conftest.er1 >conftest.err
2999   rm -f conftest.er1
3000   cat conftest.err >&5
3001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); } && {
3003          test -z "$ac_cxx_werror_flag" ||
3004          test ! -s conftest.err
3005        } && test -s conftest.$ac_objext; then
3006   ac_compiler_gnu=yes
3007 else
3008   $as_echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3010
3011         ac_compiler_gnu=no
3012 fi
3013
3014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3015 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3016
3017 fi
3018 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3019 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3020 if test $ac_compiler_gnu = yes; then
3021   GXX=yes
3022 else
3023   GXX=
3024 fi
3025 ac_test_CXXFLAGS=${CXXFLAGS+set}
3026 ac_save_CXXFLAGS=$CXXFLAGS
3027 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3028 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3029 if test "${ac_cv_prog_cxx_g+set}" = set; then
3030   $as_echo_n "(cached) " >&6
3031 else
3032   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3033    ac_cxx_werror_flag=yes
3034    ac_cv_prog_cxx_g=no
3035    CXXFLAGS="-g"
3036    cat >conftest.$ac_ext <<_ACEOF
3037 /* confdefs.h.  */
3038 _ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h.  */
3042
3043 int
3044 main ()
3045 {
3046
3047   ;
3048   return 0;
3049 }
3050 _ACEOF
3051 rm -f conftest.$ac_objext
3052 if { (ac_try="$ac_compile"
3053 case "(($ac_try" in
3054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055   *) ac_try_echo=$ac_try;;
3056 esac
3057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3058 $as_echo "$ac_try_echo") >&5
3059   (eval "$ac_compile") 2>conftest.er1
3060   ac_status=$?
3061   grep -v '^ *+' conftest.er1 >conftest.err
3062   rm -f conftest.er1
3063   cat conftest.err >&5
3064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065   (exit $ac_status); } && {
3066          test -z "$ac_cxx_werror_flag" ||
3067          test ! -s conftest.err
3068        } && test -s conftest.$ac_objext; then
3069   ac_cv_prog_cxx_g=yes
3070 else
3071   $as_echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3073
3074         CXXFLAGS=""
3075       cat >conftest.$ac_ext <<_ACEOF
3076 /* confdefs.h.  */
3077 _ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h.  */
3081
3082 int
3083 main ()
3084 {
3085
3086   ;
3087   return 0;
3088 }
3089 _ACEOF
3090 rm -f conftest.$ac_objext
3091 if { (ac_try="$ac_compile"
3092 case "(($ac_try" in
3093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094   *) ac_try_echo=$ac_try;;
3095 esac
3096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3097 $as_echo "$ac_try_echo") >&5
3098   (eval "$ac_compile") 2>conftest.er1
3099   ac_status=$?
3100   grep -v '^ *+' conftest.er1 >conftest.err
3101   rm -f conftest.er1
3102   cat conftest.err >&5
3103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104   (exit $ac_status); } && {
3105          test -z "$ac_cxx_werror_flag" ||
3106          test ! -s conftest.err
3107        } && test -s conftest.$ac_objext; then
3108   :
3109 else
3110   $as_echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3112
3113         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3114          CXXFLAGS="-g"
3115          cat >conftest.$ac_ext <<_ACEOF
3116 /* confdefs.h.  */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h.  */
3121
3122 int
3123 main ()
3124 {
3125
3126   ;
3127   return 0;
3128 }
3129 _ACEOF
3130 rm -f conftest.$ac_objext
3131 if { (ac_try="$ac_compile"
3132 case "(($ac_try" in
3133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134   *) ac_try_echo=$ac_try;;
3135 esac
3136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3137 $as_echo "$ac_try_echo") >&5
3138   (eval "$ac_compile") 2>conftest.er1
3139   ac_status=$?
3140   grep -v '^ *+' conftest.er1 >conftest.err
3141   rm -f conftest.er1
3142   cat conftest.err >&5
3143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); } && {
3145          test -z "$ac_cxx_werror_flag" ||
3146          test ! -s conftest.err
3147        } && test -s conftest.$ac_objext; then
3148   ac_cv_prog_cxx_g=yes
3149 else
3150   $as_echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3152
3153
3154 fi
3155
3156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3157 fi
3158
3159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 fi
3161
3162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3163    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3164 fi
3165 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3166 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3167 if test "$ac_test_CXXFLAGS" = set; then
3168   CXXFLAGS=$ac_save_CXXFLAGS
3169 elif test $ac_cv_prog_cxx_g = yes; then
3170   if test "$GXX" = yes; then
3171     CXXFLAGS="-g -O2"
3172   else
3173     CXXFLAGS="-g"
3174   fi
3175 else
3176   if test "$GXX" = yes; then
3177     CXXFLAGS="-O2"
3178   else
3179     CXXFLAGS=
3180   fi
3181 fi
3182 ac_ext=c
3183 ac_cpp='$CPP $CPPFLAGS'
3184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187 DEPDIR="${am__leading_dot}deps"
3188
3189 ac_config_commands="$ac_config_commands depfiles"
3190
3191
3192 am_make=${MAKE-make}
3193 cat > confinc << 'END'
3194 am__doit:
3195         @echo this is the am__doit target
3196 .PHONY: am__doit
3197 END
3198 # If we don't find an include directive, just comment out the code.
3199 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3200 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3201 am__include="#"
3202 am__quote=
3203 _am_result=none
3204 # First try GNU make style include.
3205 echo "include confinc" > confmf
3206 # Ignore all kinds of additional output from `make'.
3207 case `$am_make -s -f confmf 2> /dev/null` in #(
3208 *the\ am__doit\ target*)
3209   am__include=include
3210   am__quote=
3211   _am_result=GNU
3212   ;;
3213 esac
3214 # Now try BSD make style include.
3215 if test "$am__include" = "#"; then
3216    echo '.include "confinc"' > confmf
3217    case `$am_make -s -f confmf 2> /dev/null` in #(
3218    *the\ am__doit\ target*)
3219      am__include=.include
3220      am__quote="\""
3221      _am_result=BSD
3222      ;;
3223    esac
3224 fi
3225
3226
3227 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3228 $as_echo "$_am_result" >&6; }
3229 rm -f confinc confmf
3230
3231 # Check whether --enable-dependency-tracking was given.
3232 if test "${enable_dependency_tracking+set}" = set; then
3233   enableval=$enable_dependency_tracking;
3234 fi
3235
3236 if test "x$enable_dependency_tracking" != xno; then
3237   am_depcomp="$ac_aux_dir/depcomp"
3238   AMDEPBACKSLASH='\'
3239 fi
3240  if test "x$enable_dependency_tracking" != xno; then
3241   AMDEP_TRUE=
3242   AMDEP_FALSE='#'
3243 else
3244   AMDEP_TRUE='#'
3245   AMDEP_FALSE=
3246 fi
3247
3248
3249
3250 depcc="$CXX"  am_compiler_list=
3251
3252 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3253 $as_echo_n "checking dependency style of $depcc... " >&6; }
3254 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3255   $as_echo_n "(cached) " >&6
3256 else
3257   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3258   # We make a subdir and do the tests there.  Otherwise we can end up
3259   # making bogus files that we don't know about and never remove.  For
3260   # instance it was reported that on HP-UX the gcc test will end up
3261   # making a dummy file named `D' -- because `-MD' means `put the output
3262   # in D'.
3263   mkdir conftest.dir
3264   # Copy depcomp to subdir because otherwise we won't find it if we're
3265   # using a relative directory.
3266   cp "$am_depcomp" conftest.dir
3267   cd conftest.dir
3268   # We will build objects and dependencies in a subdirectory because
3269   # it helps to detect inapplicable dependency modes.  For instance
3270   # both Tru64's cc and ICC support -MD to output dependencies as a
3271   # side effect of compilation, but ICC will put the dependencies in
3272   # the current directory while Tru64 will put them in the object
3273   # directory.
3274   mkdir sub
3275
3276   am_cv_CXX_dependencies_compiler_type=none
3277   if test "$am_compiler_list" = ""; then
3278      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3279   fi
3280   am__universal=false
3281   case " $depcc " in #(
3282      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3283      esac
3284
3285   for depmode in $am_compiler_list; do
3286     # Setup a source with many dependencies, because some compilers
3287     # like to wrap large dependency lists on column 80 (with \), and
3288     # we should not choose a depcomp mode which is confused by this.
3289     #
3290     # We need to recreate these files for each test, as the compiler may
3291     # overwrite some of them when testing with obscure command lines.
3292     # This happens at least with the AIX C compiler.
3293     : > sub/conftest.c
3294     for i in 1 2 3 4 5 6; do
3295       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3296       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3297       # Solaris 8's {/usr,}/bin/sh.
3298       touch sub/conftst$i.h
3299     done
3300     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3301
3302     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3303     # mode.  It turns out that the SunPro C++ compiler does not properly
3304     # handle `-M -o', and we need to detect this.  Also, some Intel
3305     # versions had trouble with output in subdirs
3306     am__obj=sub/conftest.${OBJEXT-o}
3307     am__minus_obj="-o $am__obj"
3308     case $depmode in
3309     gcc)
3310       # This depmode causes a compiler race in universal mode.
3311       test "$am__universal" = false || continue
3312       ;;
3313     nosideeffect)
3314       # after this tag, mechanisms are not by side-effect, so they'll
3315       # only be used when explicitly requested
3316       if test "x$enable_dependency_tracking" = xyes; then
3317         continue
3318       else
3319         break
3320       fi
3321       ;;
3322     msvisualcpp | msvcmsys)
3323       # This compiler won't grok `-c -o', but also, the minuso test has
3324       # not run yet.  These depmodes are late enough in the game, and
3325       # so weak that their functioning should not be impacted.
3326       am__obj=conftest.${OBJEXT-o}
3327       am__minus_obj=
3328       ;;
3329     none) break ;;
3330     esac
3331     if depmode=$depmode \
3332        source=sub/conftest.c object=$am__obj \
3333        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3334        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3335          >/dev/null 2>conftest.err &&
3336        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3337        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3338        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3339        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3340       # icc doesn't choke on unknown options, it will just issue warnings
3341       # or remarks (even with -Werror).  So we grep stderr for any message
3342       # that says an option was ignored or not supported.
3343       # When given -MP, icc 7.0 and 7.1 complain thusly:
3344       #   icc: Command line warning: ignoring option '-M'; no argument required
3345       # The diagnosis changed in icc 8.0:
3346       #   icc: Command line remark: option '-MP' not supported
3347       if (grep 'ignoring option' conftest.err ||
3348           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3349         am_cv_CXX_dependencies_compiler_type=$depmode
3350         break
3351       fi
3352     fi
3353   done
3354
3355   cd ..
3356   rm -rf conftest.dir
3357 else
3358   am_cv_CXX_dependencies_compiler_type=none
3359 fi
3360
3361 fi
3362 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3363 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3364 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3365
3366  if
3367   test "x$enable_dependency_tracking" != xno \
3368   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3369   am__fastdepCXX_TRUE=
3370   am__fastdepCXX_FALSE='#'
3371 else
3372   am__fastdepCXX_TRUE='#'
3373   am__fastdepCXX_FALSE=
3374 fi
3375
3376
3377 case `pwd` in
3378   *\ * | *\     *)
3379     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3380 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3381 esac
3382
3383
3384
3385 macro_version='2.2.6b'
3386 macro_revision='1.3017'
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400 ltmain="$ac_aux_dir/ltmain.sh"
3401
3402 # Make sure we can run config.sub.
3403 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3404   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3405 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3406    { (exit 1); exit 1; }; }
3407
3408 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3409 $as_echo_n "checking build system type... " >&6; }
3410 if test "${ac_cv_build+set}" = set; then
3411   $as_echo_n "(cached) " >&6
3412 else
3413   ac_build_alias=$build_alias
3414 test "x$ac_build_alias" = x &&
3415   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3416 test "x$ac_build_alias" = x &&
3417   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3418 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3419    { (exit 1); exit 1; }; }
3420 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3421   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3422 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3423    { (exit 1); exit 1; }; }
3424
3425 fi
3426 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3427 $as_echo "$ac_cv_build" >&6; }
3428 case $ac_cv_build in
3429 *-*-*) ;;
3430 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3431 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3432    { (exit 1); exit 1; }; };;
3433 esac
3434 build=$ac_cv_build
3435 ac_save_IFS=$IFS; IFS='-'
3436 set x $ac_cv_build
3437 shift
3438 build_cpu=$1
3439 build_vendor=$2
3440 shift; shift
3441 # Remember, the first character of IFS is used to create $*,
3442 # except with old shells:
3443 build_os=$*
3444 IFS=$ac_save_IFS
3445 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3446
3447
3448 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3449 $as_echo_n "checking host system type... " >&6; }
3450 if test "${ac_cv_host+set}" = set; then
3451   $as_echo_n "(cached) " >&6
3452 else
3453   if test "x$host_alias" = x; then
3454   ac_cv_host=$ac_cv_build
3455 else
3456   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3457     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3458 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3459    { (exit 1); exit 1; }; }
3460 fi
3461
3462 fi
3463 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3464 $as_echo "$ac_cv_host" >&6; }
3465 case $ac_cv_host in
3466 *-*-*) ;;
3467 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3468 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3469    { (exit 1); exit 1; }; };;
3470 esac
3471 host=$ac_cv_host
3472 ac_save_IFS=$IFS; IFS='-'
3473 set x $ac_cv_host
3474 shift
3475 host_cpu=$1
3476 host_vendor=$2
3477 shift; shift
3478 # Remember, the first character of IFS is used to create $*,
3479 # except with old shells:
3480 host_os=$*
3481 IFS=$ac_save_IFS
3482 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3483
3484
3485 ac_ext=c
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 if test -n "$ac_tool_prefix"; then
3491   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3492 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3493 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if test "${ac_cv_prog_CC+set}" = set; then
3496   $as_echo_n "(cached) " >&6
3497 else
3498   if test -n "$CC"; then
3499   ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3503 do
3504   IFS=$as_save_IFS
3505   test -z "$as_dir" && as_dir=.
3506   for ac_exec_ext in '' $ac_executable_extensions; do
3507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3508     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3509     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3510     break 2
3511   fi
3512 done
3513 done
3514 IFS=$as_save_IFS
3515
3516 fi
3517 fi
3518 CC=$ac_cv_prog_CC
3519 if test -n "$CC"; then
3520   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3521 $as_echo "$CC" >&6; }
3522 else
3523   { $as_echo "$as_me:$LINENO: result: no" >&5
3524 $as_echo "no" >&6; }
3525 fi
3526
3527
3528 fi
3529 if test -z "$ac_cv_prog_CC"; then
3530   ac_ct_CC=$CC
3531   # Extract the first word of "gcc", so it can be a program name with args.
3532 set dummy gcc; ac_word=$2
3533 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3534 $as_echo_n "checking for $ac_word... " >&6; }
3535 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3536   $as_echo_n "(cached) " >&6
3537 else
3538   if test -n "$ac_ct_CC"; then
3539   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3543 do
3544   IFS=$as_save_IFS
3545   test -z "$as_dir" && as_dir=.
3546   for ac_exec_ext in '' $ac_executable_extensions; do
3547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3548     ac_cv_prog_ac_ct_CC="gcc"
3549     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3550     break 2
3551   fi
3552 done
3553 done
3554 IFS=$as_save_IFS
3555
3556 fi
3557 fi
3558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559 if test -n "$ac_ct_CC"; then
3560   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3561 $as_echo "$ac_ct_CC" >&6; }
3562 else
3563   { $as_echo "$as_me:$LINENO: result: no" >&5
3564 $as_echo "no" >&6; }
3565 fi
3566
3567   if test "x$ac_ct_CC" = x; then
3568     CC=""
3569   else
3570     case $cross_compiling:$ac_tool_warned in
3571 yes:)
3572 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3574 ac_tool_warned=yes ;;
3575 esac
3576     CC=$ac_ct_CC
3577   fi
3578 else
3579   CC="$ac_cv_prog_CC"
3580 fi
3581
3582 if test -z "$CC"; then
3583           if test -n "$ac_tool_prefix"; then
3584     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3585 set dummy ${ac_tool_prefix}cc; ac_word=$2
3586 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if test "${ac_cv_prog_CC+set}" = set; then
3589   $as_echo_n "(cached) " >&6
3590 else
3591   if test -n "$CC"; then
3592   ac_cv_prog_CC="$CC" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3596 do
3597   IFS=$as_save_IFS
3598   test -z "$as_dir" && as_dir=.
3599   for ac_exec_ext in '' $ac_executable_extensions; do
3600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601     ac_cv_prog_CC="${ac_tool_prefix}cc"
3602     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3603     break 2
3604   fi
3605 done
3606 done
3607 IFS=$as_save_IFS
3608
3609 fi
3610 fi
3611 CC=$ac_cv_prog_CC
3612 if test -n "$CC"; then
3613   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3614 $as_echo "$CC" >&6; }
3615 else
3616   { $as_echo "$as_me:$LINENO: result: no" >&5
3617 $as_echo "no" >&6; }
3618 fi
3619
3620
3621   fi
3622 fi
3623 if test -z "$CC"; then
3624   # Extract the first word of "cc", so it can be a program name with args.
3625 set dummy cc; ac_word=$2
3626 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3627 $as_echo_n "checking for $ac_word... " >&6; }
3628 if test "${ac_cv_prog_CC+set}" = set; then
3629   $as_echo_n "(cached) " >&6
3630 else
3631   if test -n "$CC"; then
3632   ac_cv_prog_CC="$CC" # Let the user override the test.
3633 else
3634   ac_prog_rejected=no
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3637 do
3638   IFS=$as_save_IFS
3639   test -z "$as_dir" && as_dir=.
3640   for ac_exec_ext in '' $ac_executable_extensions; do
3641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3642     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3643        ac_prog_rejected=yes
3644        continue
3645      fi
3646     ac_cv_prog_CC="cc"
3647     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3648     break 2
3649   fi
3650 done
3651 done
3652 IFS=$as_save_IFS
3653
3654 if test $ac_prog_rejected = yes; then
3655   # We found a bogon in the path, so make sure we never use it.
3656   set dummy $ac_cv_prog_CC
3657   shift
3658   if test $# != 0; then
3659     # We chose a different compiler from the bogus one.
3660     # However, it has the same basename, so the bogon will be chosen
3661     # first if we set CC to just the basename; use the full file name.
3662     shift
3663     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3664   fi
3665 fi
3666 fi
3667 fi
3668 CC=$ac_cv_prog_CC
3669 if test -n "$CC"; then
3670   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3671 $as_echo "$CC" >&6; }
3672 else
3673   { $as_echo "$as_me:$LINENO: result: no" >&5
3674 $as_echo "no" >&6; }
3675 fi
3676
3677
3678 fi
3679 if test -z "$CC"; then
3680   if test -n "$ac_tool_prefix"; then
3681   for ac_prog in cl.exe
3682   do
3683     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3684 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3685 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3686 $as_echo_n "checking for $ac_word... " >&6; }
3687 if test "${ac_cv_prog_CC+set}" = set; then
3688   $as_echo_n "(cached) " >&6
3689 else
3690   if test -n "$CC"; then
3691   ac_cv_prog_CC="$CC" # Let the user override the test.
3692 else
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH
3695 do
3696   IFS=$as_save_IFS
3697   test -z "$as_dir" && as_dir=.
3698   for ac_exec_ext in '' $ac_executable_extensions; do
3699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3700     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3701     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3702     break 2
3703   fi
3704 done
3705 done
3706 IFS=$as_save_IFS
3707
3708 fi
3709 fi
3710 CC=$ac_cv_prog_CC
3711 if test -n "$CC"; then
3712   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3713 $as_echo "$CC" >&6; }
3714 else
3715   { $as_echo "$as_me:$LINENO: result: no" >&5
3716 $as_echo "no" >&6; }
3717 fi
3718
3719
3720     test -n "$CC" && break
3721   done
3722 fi
3723 if test -z "$CC"; then
3724   ac_ct_CC=$CC
3725   for ac_prog in cl.exe
3726 do
3727   # Extract the first word of "$ac_prog", so it can be a program name with args.
3728 set dummy $ac_prog; ac_word=$2
3729 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3730 $as_echo_n "checking for $ac_word... " >&6; }
3731 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3732   $as_echo_n "(cached) " >&6
3733 else
3734   if test -n "$ac_ct_CC"; then
3735   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3739 do
3740   IFS=$as_save_IFS
3741   test -z "$as_dir" && as_dir=.
3742   for ac_exec_ext in '' $ac_executable_extensions; do
3743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3744     ac_cv_prog_ac_ct_CC="$ac_prog"
3745     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746     break 2
3747   fi
3748 done
3749 done
3750 IFS=$as_save_IFS
3751
3752 fi
3753 fi
3754 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3755 if test -n "$ac_ct_CC"; then
3756   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3757 $as_echo "$ac_ct_CC" >&6; }
3758 else
3759   { $as_echo "$as_me:$LINENO: result: no" >&5
3760 $as_echo "no" >&6; }
3761 fi
3762
3763
3764   test -n "$ac_ct_CC" && break
3765 done
3766
3767   if test "x$ac_ct_CC" = x; then
3768     CC=""
3769   else
3770     case $cross_compiling:$ac_tool_warned in
3771 yes:)
3772 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3774 ac_tool_warned=yes ;;
3775 esac
3776     CC=$ac_ct_CC
3777   fi
3778 fi
3779
3780 fi
3781
3782
3783 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3786 See \`config.log' for more details." >&5
3787 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3788 See \`config.log' for more details." >&2;}
3789    { (exit 1); exit 1; }; }; }
3790
3791 # Provide some information about the compiler.
3792 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3793 set X $ac_compile
3794 ac_compiler=$2
3795 { (ac_try="$ac_compiler --version >&5"
3796 case "(($ac_try" in
3797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798   *) ac_try_echo=$ac_try;;
3799 esac
3800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3801 $as_echo "$ac_try_echo") >&5
3802   (eval "$ac_compiler --version >&5") 2>&5
3803   ac_status=$?
3804   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); }
3806 { (ac_try="$ac_compiler -v >&5"
3807 case "(($ac_try" in
3808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809   *) ac_try_echo=$ac_try;;
3810 esac
3811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3812 $as_echo "$ac_try_echo") >&5
3813   (eval "$ac_compiler -v >&5") 2>&5
3814   ac_status=$?
3815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816   (exit $ac_status); }
3817 { (ac_try="$ac_compiler -V >&5"
3818 case "(($ac_try" in
3819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820   *) ac_try_echo=$ac_try;;
3821 esac
3822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3823 $as_echo "$ac_try_echo") >&5
3824   (eval "$ac_compiler -V >&5") 2>&5
3825   ac_status=$?
3826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827   (exit $ac_status); }
3828
3829 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3830 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3831 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3832   $as_echo_n "(cached) " >&6
3833 else
3834   cat >conftest.$ac_ext <<_ACEOF
3835 /* confdefs.h.  */
3836 _ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h.  */
3840
3841 int
3842 main ()
3843 {
3844 #ifndef __GNUC__
3845        choke me
3846 #endif
3847
3848   ;
3849   return 0;
3850 }
3851 _ACEOF
3852 rm -f conftest.$ac_objext
3853 if { (ac_try="$ac_compile"
3854 case "(($ac_try" in
3855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856   *) ac_try_echo=$ac_try;;
3857 esac
3858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3859 $as_echo "$ac_try_echo") >&5
3860   (eval "$ac_compile") 2>conftest.er1
3861   ac_status=$?
3862   grep -v '^ *+' conftest.er1 >conftest.err
3863   rm -f conftest.er1
3864   cat conftest.err >&5
3865   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); } && {
3867          test -z "$ac_c_werror_flag" ||
3868          test ! -s conftest.err
3869        } && test -s conftest.$ac_objext; then
3870   ac_compiler_gnu=yes
3871 else
3872   $as_echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3874
3875         ac_compiler_gnu=no
3876 fi
3877
3878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3880
3881 fi
3882 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3883 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3884 if test $ac_compiler_gnu = yes; then
3885   GCC=yes
3886 else
3887   GCC=
3888 fi
3889 ac_test_CFLAGS=${CFLAGS+set}
3890 ac_save_CFLAGS=$CFLAGS
3891 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3892 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3893 if test "${ac_cv_prog_cc_g+set}" = set; then
3894   $as_echo_n "(cached) " >&6
3895 else
3896   ac_save_c_werror_flag=$ac_c_werror_flag
3897    ac_c_werror_flag=yes
3898    ac_cv_prog_cc_g=no
3899    CFLAGS="-g"
3900    cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h.  */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h.  */
3906
3907 int
3908 main ()
3909 {
3910
3911   ;
3912   return 0;
3913 }
3914 _ACEOF
3915 rm -f conftest.$ac_objext
3916 if { (ac_try="$ac_compile"
3917 case "(($ac_try" in
3918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919   *) ac_try_echo=$ac_try;;
3920 esac
3921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3922 $as_echo "$ac_try_echo") >&5
3923   (eval "$ac_compile") 2>conftest.er1
3924   ac_status=$?
3925   grep -v '^ *+' conftest.er1 >conftest.err
3926   rm -f conftest.er1
3927   cat conftest.err >&5
3928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929   (exit $ac_status); } && {
3930          test -z "$ac_c_werror_flag" ||
3931          test ! -s conftest.err
3932        } && test -s conftest.$ac_objext; then
3933   ac_cv_prog_cc_g=yes
3934 else
3935   $as_echo "$as_me: failed program was:" >&5
3936 sed 's/^/| /' conftest.$ac_ext >&5
3937
3938         CFLAGS=""
3939       cat >conftest.$ac_ext <<_ACEOF
3940 /* confdefs.h.  */
3941 _ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h.  */
3945
3946 int
3947 main ()
3948 {
3949
3950   ;
3951   return 0;
3952 }
3953 _ACEOF
3954 rm -f conftest.$ac_objext
3955 if { (ac_try="$ac_compile"
3956 case "(($ac_try" in
3957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958   *) ac_try_echo=$ac_try;;
3959 esac
3960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3961 $as_echo "$ac_try_echo") >&5
3962   (eval "$ac_compile") 2>conftest.er1
3963   ac_status=$?
3964   grep -v '^ *+' conftest.er1 >conftest.err
3965   rm -f conftest.er1
3966   cat conftest.err >&5
3967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968   (exit $ac_status); } && {
3969          test -z "$ac_c_werror_flag" ||
3970          test ! -s conftest.err
3971        } && test -s conftest.$ac_objext; then
3972   :
3973 else
3974   $as_echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3976
3977         ac_c_werror_flag=$ac_save_c_werror_flag
3978          CFLAGS="-g"
3979          cat >conftest.$ac_ext <<_ACEOF
3980 /* confdefs.h.  */
3981 _ACEOF
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h.  */
3985
3986 int
3987 main ()
3988 {
3989
3990   ;
3991   return 0;
3992 }
3993 _ACEOF
3994 rm -f conftest.$ac_objext
3995 if { (ac_try="$ac_compile"
3996 case "(($ac_try" in
3997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998   *) ac_try_echo=$ac_try;;
3999 esac
4000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4001 $as_echo "$ac_try_echo") >&5
4002   (eval "$ac_compile") 2>conftest.er1
4003   ac_status=$?
4004   grep -v '^ *+' conftest.er1 >conftest.err
4005   rm -f conftest.er1
4006   cat conftest.err >&5
4007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008   (exit $ac_status); } && {
4009          test -z "$ac_c_werror_flag" ||
4010          test ! -s conftest.err
4011        } && test -s conftest.$ac_objext; then
4012   ac_cv_prog_cc_g=yes
4013 else
4014   $as_echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4016
4017
4018 fi
4019
4020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021 fi
4022
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 fi
4025
4026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027    ac_c_werror_flag=$ac_save_c_werror_flag
4028 fi
4029 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4030 $as_echo "$ac_cv_prog_cc_g" >&6; }
4031 if test "$ac_test_CFLAGS" = set; then
4032   CFLAGS=$ac_save_CFLAGS
4033 elif test $ac_cv_prog_cc_g = yes; then
4034   if test "$GCC" = yes; then
4035     CFLAGS="-g -O2"
4036   else
4037     CFLAGS="-g"
4038   fi
4039 else
4040   if test "$GCC" = yes; then
4041     CFLAGS="-O2"
4042   else
4043     CFLAGS=
4044   fi
4045 fi
4046 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4047 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4048 if test "${ac_cv_prog_cc_c89+set}" = set; then
4049   $as_echo_n "(cached) " >&6
4050 else
4051   ac_cv_prog_cc_c89=no
4052 ac_save_CC=$CC
4053 cat >conftest.$ac_ext <<_ACEOF
4054 /* confdefs.h.  */
4055 _ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h.  */
4059 #include <stdarg.h>
4060 #include <stdio.h>
4061 #include <sys/types.h>
4062 #include <sys/stat.h>
4063 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4064 struct buf { int x; };
4065 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4066 static char *e (p, i)
4067      char **p;
4068      int i;
4069 {
4070   return p[i];
4071 }
4072 static char *f (char * (*g) (char **, int), char **p, ...)
4073 {
4074   char *s;
4075   va_list v;
4076   va_start (v,p);
4077   s = g (p, va_arg (v,int));
4078   va_end (v);
4079   return s;
4080 }
4081
4082 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4083    function prototypes and stuff, but not '\xHH' hex character constants.
4084    These don't provoke an error unfortunately, instead are silently treated
4085    as 'x'.  The following induces an error, until -std is added to get
4086    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4087    array size at least.  It's necessary to write '\x00'==0 to get something
4088    that's true only with -std.  */
4089 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4090
4091 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4092    inside strings and character constants.  */
4093 #define FOO(x) 'x'
4094 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4095
4096 int test (int i, double x);
4097 struct s1 {int (*f) (int a);};
4098 struct s2 {int (*f) (double a);};
4099 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4100 int argc;
4101 char **argv;
4102 int
4103 main ()
4104 {
4105 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4106   ;
4107   return 0;
4108 }
4109 _ACEOF
4110 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4111         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4112 do
4113   CC="$ac_save_CC $ac_arg"
4114   rm -f conftest.$ac_objext
4115 if { (ac_try="$ac_compile"
4116 case "(($ac_try" in
4117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118   *) ac_try_echo=$ac_try;;
4119 esac
4120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4121 $as_echo "$ac_try_echo") >&5
4122   (eval "$ac_compile") 2>conftest.er1
4123   ac_status=$?
4124   grep -v '^ *+' conftest.er1 >conftest.err
4125   rm -f conftest.er1
4126   cat conftest.err >&5
4127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128   (exit $ac_status); } && {
4129          test -z "$ac_c_werror_flag" ||
4130          test ! -s conftest.err
4131        } && test -s conftest.$ac_objext; then
4132   ac_cv_prog_cc_c89=$ac_arg
4133 else
4134   $as_echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4136
4137
4138 fi
4139
4140 rm -f core conftest.err conftest.$ac_objext
4141   test "x$ac_cv_prog_cc_c89" != "xno" && break
4142 done
4143 rm -f conftest.$ac_ext
4144 CC=$ac_save_CC
4145
4146 fi
4147 # AC_CACHE_VAL
4148 case "x$ac_cv_prog_cc_c89" in
4149   x)
4150     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4151 $as_echo "none needed" >&6; } ;;
4152   xno)
4153     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4154 $as_echo "unsupported" >&6; } ;;
4155   *)
4156     CC="$CC $ac_cv_prog_cc_c89"
4157     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4158 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4159 esac
4160
4161
4162 ac_ext=c
4163 ac_cpp='$CPP $CPPFLAGS'
4164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4167
4168 depcc="$CC"   am_compiler_list=
4169
4170 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4171 $as_echo_n "checking dependency style of $depcc... " >&6; }
4172 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4173   $as_echo_n "(cached) " >&6
4174 else
4175   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4176   # We make a subdir and do the tests there.  Otherwise we can end up
4177   # making bogus files that we don't know about and never remove.  For
4178   # instance it was reported that on HP-UX the gcc test will end up
4179   # making a dummy file named `D' -- because `-MD' means `put the output
4180   # in D'.
4181   mkdir conftest.dir
4182   # Copy depcomp to subdir because otherwise we won't find it if we're
4183   # using a relative directory.
4184   cp "$am_depcomp" conftest.dir
4185   cd conftest.dir
4186   # We will build objects and dependencies in a subdirectory because
4187   # it helps to detect inapplicable dependency modes.  For instance
4188   # both Tru64's cc and ICC support -MD to output dependencies as a
4189   # side effect of compilation, but ICC will put the dependencies in
4190   # the current directory while Tru64 will put them in the object
4191   # directory.
4192   mkdir sub
4193
4194   am_cv_CC_dependencies_compiler_type=none
4195   if test "$am_compiler_list" = ""; then
4196      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4197   fi
4198   am__universal=false
4199   case " $depcc " in #(
4200      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4201      esac
4202
4203   for depmode in $am_compiler_list; do
4204     # Setup a source with many dependencies, because some compilers
4205     # like to wrap large dependency lists on column 80 (with \), and
4206     # we should not choose a depcomp mode which is confused by this.
4207     #
4208     # We need to recreate these files for each test, as the compiler may
4209     # overwrite some of them when testing with obscure command lines.
4210     # This happens at least with the AIX C compiler.
4211     : > sub/conftest.c
4212     for i in 1 2 3 4 5 6; do
4213       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4214       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4215       # Solaris 8's {/usr,}/bin/sh.
4216       touch sub/conftst$i.h
4217     done
4218     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4219
4220     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4221     # mode.  It turns out that the SunPro C++ compiler does not properly
4222     # handle `-M -o', and we need to detect this.  Also, some Intel
4223     # versions had trouble with output in subdirs
4224     am__obj=sub/conftest.${OBJEXT-o}
4225     am__minus_obj="-o $am__obj"
4226     case $depmode in
4227     gcc)
4228       # This depmode causes a compiler race in universal mode.
4229       test "$am__universal" = false || continue
4230       ;;
4231     nosideeffect)
4232       # after this tag, mechanisms are not by side-effect, so they'll
4233       # only be used when explicitly requested
4234       if test "x$enable_dependency_tracking" = xyes; then
4235         continue
4236       else
4237         break
4238       fi
4239       ;;
4240     msvisualcpp | msvcmsys)
4241       # This compiler won't grok `-c -o', but also, the minuso test has
4242       # not run yet.  These depmodes are late enough in the game, and
4243       # so weak that their functioning should not be impacted.
4244       am__obj=conftest.${OBJEXT-o}
4245       am__minus_obj=
4246       ;;
4247     none) break ;;
4248     esac
4249     if depmode=$depmode \
4250        source=sub/conftest.c object=$am__obj \
4251        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4252        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4253          >/dev/null 2>conftest.err &&
4254        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4255        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4256        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4257        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4258       # icc doesn't choke on unknown options, it will just issue warnings
4259       # or remarks (even with -Werror).  So we grep stderr for any message
4260       # that says an option was ignored or not supported.
4261       # When given -MP, icc 7.0 and 7.1 complain thusly:
4262       #   icc: Command line warning: ignoring option '-M'; no argument required
4263       # The diagnosis changed in icc 8.0:
4264       #   icc: Command line remark: option '-MP' not supported
4265       if (grep 'ignoring option' conftest.err ||
4266           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4267         am_cv_CC_dependencies_compiler_type=$depmode
4268         break
4269       fi
4270     fi
4271   done
4272
4273   cd ..
4274   rm -rf conftest.dir
4275 else
4276   am_cv_CC_dependencies_compiler_type=none
4277 fi
4278
4279 fi
4280 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4281 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4282 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4283
4284  if
4285   test "x$enable_dependency_tracking" != xno \
4286   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4287   am__fastdepCC_TRUE=
4288   am__fastdepCC_FALSE='#'
4289 else
4290   am__fastdepCC_TRUE='#'
4291   am__fastdepCC_FALSE=
4292 fi
4293
4294
4295 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4296 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4297 if test "${ac_cv_path_SED+set}" = set; then
4298   $as_echo_n "(cached) " >&6
4299 else
4300             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4301      for ac_i in 1 2 3 4 5 6 7; do
4302        ac_script="$ac_script$as_nl$ac_script"
4303      done
4304      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4305      $as_unset ac_script || ac_script=
4306      if test -z "$SED"; then
4307   ac_path_SED_found=false
4308   # Loop through the user's path and test for each of PROGNAME-LIST
4309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4311 do
4312   IFS=$as_save_IFS
4313   test -z "$as_dir" && as_dir=.
4314   for ac_prog in sed gsed; do
4315     for ac_exec_ext in '' $ac_executable_extensions; do
4316       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4317       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4318 # Check for GNU ac_path_SED and select it if it is found.
4319   # Check for GNU $ac_path_SED
4320 case `"$ac_path_SED" --version 2>&1` in
4321 *GNU*)
4322   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4323 *)
4324   ac_count=0
4325   $as_echo_n 0123456789 >"conftest.in"
4326   while :
4327   do
4328     cat "conftest.in" "conftest.in" >"conftest.tmp"
4329     mv "conftest.tmp" "conftest.in"
4330     cp "conftest.in" "conftest.nl"
4331     $as_echo '' >> "conftest.nl"
4332     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4333     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4334     ac_count=`expr $ac_count + 1`
4335     if test $ac_count -gt ${ac_path_SED_max-0}; then
4336       # Best one so far, save it but keep looking for a better one
4337       ac_cv_path_SED="$ac_path_SED"
4338       ac_path_SED_max=$ac_count
4339     fi
4340     # 10*(2^10) chars as input seems more than enough
4341     test $ac_count -gt 10 && break
4342   done
4343   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4344 esac
4345
4346       $ac_path_SED_found && break 3
4347     done
4348   done
4349 done
4350 IFS=$as_save_IFS
4351   if test -z "$ac_cv_path_SED"; then
4352     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4353 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4354    { (exit 1); exit 1; }; }
4355   fi
4356 else
4357   ac_cv_path_SED=$SED
4358 fi
4359
4360 fi
4361 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4362 $as_echo "$ac_cv_path_SED" >&6; }
4363  SED="$ac_cv_path_SED"
4364   rm -f conftest.sed
4365
4366 test -z "$SED" && SED=sed
4367 Xsed="$SED -e 1s/^X//"
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4380 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4381 if test "${ac_cv_path_GREP+set}" = set; then
4382   $as_echo_n "(cached) " >&6
4383 else
4384   if test -z "$GREP"; then
4385   ac_path_GREP_found=false
4386   # Loop through the user's path and test for each of PROGNAME-LIST
4387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4389 do
4390   IFS=$as_save_IFS
4391   test -z "$as_dir" && as_dir=.
4392   for ac_prog in grep ggrep; do
4393     for ac_exec_ext in '' $ac_executable_extensions; do
4394       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4395       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4396 # Check for GNU ac_path_GREP and select it if it is found.
4397   # Check for GNU $ac_path_GREP
4398 case `"$ac_path_GREP" --version 2>&1` in
4399 *GNU*)
4400   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4401 *)
4402   ac_count=0
4403   $as_echo_n 0123456789 >"conftest.in"
4404   while :
4405   do
4406     cat "conftest.in" "conftest.in" >"conftest.tmp"
4407     mv "conftest.tmp" "conftest.in"
4408     cp "conftest.in" "conftest.nl"
4409     $as_echo 'GREP' >> "conftest.nl"
4410     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4411     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4412     ac_count=`expr $ac_count + 1`
4413     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4414       # Best one so far, save it but keep looking for a better one
4415       ac_cv_path_GREP="$ac_path_GREP"
4416       ac_path_GREP_max=$ac_count
4417     fi
4418     # 10*(2^10) chars as input seems more than enough
4419     test $ac_count -gt 10 && break
4420   done
4421   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4422 esac
4423
4424       $ac_path_GREP_found && break 3
4425     done
4426   done
4427 done
4428 IFS=$as_save_IFS
4429   if test -z "$ac_cv_path_GREP"; then
4430     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4431 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4432    { (exit 1); exit 1; }; }
4433   fi
4434 else
4435   ac_cv_path_GREP=$GREP
4436 fi
4437
4438 fi
4439 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4440 $as_echo "$ac_cv_path_GREP" >&6; }
4441  GREP="$ac_cv_path_GREP"
4442
4443
4444 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4445 $as_echo_n "checking for egrep... " >&6; }
4446 if test "${ac_cv_path_EGREP+set}" = set; then
4447   $as_echo_n "(cached) " >&6
4448 else
4449   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4450    then ac_cv_path_EGREP="$GREP -E"
4451    else
4452      if test -z "$EGREP"; then
4453   ac_path_EGREP_found=false
4454   # Loop through the user's path and test for each of PROGNAME-LIST
4455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4457 do
4458   IFS=$as_save_IFS
4459   test -z "$as_dir" && as_dir=.
4460   for ac_prog in egrep; do
4461     for ac_exec_ext in '' $ac_executable_extensions; do
4462       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4463       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4464 # Check for GNU ac_path_EGREP and select it if it is found.
4465   # Check for GNU $ac_path_EGREP
4466 case `"$ac_path_EGREP" --version 2>&1` in
4467 *GNU*)
4468   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4469 *)
4470   ac_count=0
4471   $as_echo_n 0123456789 >"conftest.in"
4472   while :
4473   do
4474     cat "conftest.in" "conftest.in" >"conftest.tmp"
4475     mv "conftest.tmp" "conftest.in"
4476     cp "conftest.in" "conftest.nl"
4477     $as_echo 'EGREP' >> "conftest.nl"
4478     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4479     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4480     ac_count=`expr $ac_count + 1`
4481     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4482       # Best one so far, save it but keep looking for a better one
4483       ac_cv_path_EGREP="$ac_path_EGREP"
4484       ac_path_EGREP_max=$ac_count
4485     fi
4486     # 10*(2^10) chars as input seems more than enough
4487     test $ac_count -gt 10 && break
4488   done
4489   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4490 esac
4491
4492       $ac_path_EGREP_found && break 3
4493     done
4494   done
4495 done
4496 IFS=$as_save_IFS
4497   if test -z "$ac_cv_path_EGREP"; then
4498     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4499 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4500    { (exit 1); exit 1; }; }
4501   fi
4502 else
4503   ac_cv_path_EGREP=$EGREP
4504 fi
4505
4506    fi
4507 fi
4508 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4509 $as_echo "$ac_cv_path_EGREP" >&6; }
4510  EGREP="$ac_cv_path_EGREP"
4511
4512
4513 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4514 $as_echo_n "checking for fgrep... " >&6; }
4515 if test "${ac_cv_path_FGREP+set}" = set; then
4516   $as_echo_n "(cached) " >&6
4517 else
4518   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4519    then ac_cv_path_FGREP="$GREP -F"
4520    else
4521      if test -z "$FGREP"; then
4522   ac_path_FGREP_found=false
4523   # Loop through the user's path and test for each of PROGNAME-LIST
4524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4526 do
4527   IFS=$as_save_IFS
4528   test -z "$as_dir" && as_dir=.
4529   for ac_prog in fgrep; do
4530     for ac_exec_ext in '' $ac_executable_extensions; do
4531       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4532       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4533 # Check for GNU ac_path_FGREP and select it if it is found.
4534   # Check for GNU $ac_path_FGREP
4535 case `"$ac_path_FGREP" --version 2>&1` in
4536 *GNU*)
4537   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4538 *)
4539   ac_count=0
4540   $as_echo_n 0123456789 >"conftest.in"
4541   while :
4542   do
4543     cat "conftest.in" "conftest.in" >"conftest.tmp"
4544     mv "conftest.tmp" "conftest.in"
4545     cp "conftest.in" "conftest.nl"
4546     $as_echo 'FGREP' >> "conftest.nl"
4547     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4548     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4549     ac_count=`expr $ac_count + 1`
4550     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4551       # Best one so far, save it but keep looking for a better one
4552       ac_cv_path_FGREP="$ac_path_FGREP"
4553       ac_path_FGREP_max=$ac_count
4554     fi
4555     # 10*(2^10) chars as input seems more than enough
4556     test $ac_count -gt 10 && break
4557   done
4558   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4559 esac
4560
4561       $ac_path_FGREP_found && break 3
4562     done
4563   done
4564 done
4565 IFS=$as_save_IFS
4566   if test -z "$ac_cv_path_FGREP"; then
4567     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4568 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4569    { (exit 1); exit 1; }; }
4570   fi
4571 else
4572   ac_cv_path_FGREP=$FGREP
4573 fi
4574
4575    fi
4576 fi
4577 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4578 $as_echo "$ac_cv_path_FGREP" >&6; }
4579  FGREP="$ac_cv_path_FGREP"
4580
4581
4582 test -z "$GREP" && GREP=grep
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602 # Check whether --with-gnu-ld was given.
4603 if test "${with_gnu_ld+set}" = set; then
4604   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4605 else
4606   with_gnu_ld=no
4607 fi
4608
4609 ac_prog=ld
4610 if test "$GCC" = yes; then
4611   # Check if gcc -print-prog-name=ld gives a path.
4612   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4613 $as_echo_n "checking for ld used by $CC... " >&6; }
4614   case $host in
4615   *-*-mingw*)
4616     # gcc leaves a trailing carriage return which upsets mingw
4617     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4618   *)
4619     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4620   esac
4621   case $ac_prog in
4622     # Accept absolute paths.
4623     [\\/]* | ?:[\\/]*)
4624       re_direlt='/[^/][^/]*/\.\./'
4625       # Canonicalize the pathname of ld
4626       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4627       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4628         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4629       done
4630       test -z "$LD" && LD="$ac_prog"
4631       ;;
4632   "")
4633     # If it fails, then pretend we aren't using GCC.
4634     ac_prog=ld
4635     ;;
4636   *)
4637     # If it is relative, then search for the first ld in PATH.
4638     with_gnu_ld=unknown
4639     ;;
4640   esac
4641 elif test "$with_gnu_ld" = yes; then
4642   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4643 $as_echo_n "checking for GNU ld... " >&6; }
4644 else
4645   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4646 $as_echo_n "checking for non-GNU ld... " >&6; }
4647 fi
4648 if test "${lt_cv_path_LD+set}" = set; then
4649   $as_echo_n "(cached) " >&6
4650 else
4651   if test -z "$LD"; then
4652   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4653   for ac_dir in $PATH; do
4654     IFS="$lt_save_ifs"
4655     test -z "$ac_dir" && ac_dir=.
4656     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4657       lt_cv_path_LD="$ac_dir/$ac_prog"
4658       # Check to see if the program is GNU ld.  I'd rather use --version,
4659       # but apparently some variants of GNU ld only accept -v.
4660       # Break only if it was the GNU/non-GNU ld that we prefer.
4661       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4662       *GNU* | *'with BFD'*)
4663         test "$with_gnu_ld" != no && break
4664         ;;
4665       *)
4666         test "$with_gnu_ld" != yes && break
4667         ;;
4668       esac
4669     fi
4670   done
4671   IFS="$lt_save_ifs"
4672 else
4673   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4674 fi
4675 fi
4676
4677 LD="$lt_cv_path_LD"
4678 if test -n "$LD"; then
4679   { $as_echo "$as_me:$LINENO: result: $LD" >&5
4680 $as_echo "$LD" >&6; }
4681 else
4682   { $as_echo "$as_me:$LINENO: result: no" >&5
4683 $as_echo "no" >&6; }
4684 fi
4685 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4686 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4687    { (exit 1); exit 1; }; }
4688 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4689 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4690 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4691   $as_echo_n "(cached) " >&6
4692 else
4693   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4694 case `$LD -v 2>&1 </dev/null` in
4695 *GNU* | *'with BFD'*)
4696   lt_cv_prog_gnu_ld=yes
4697   ;;
4698 *)
4699   lt_cv_prog_gnu_ld=no
4700   ;;
4701 esac
4702 fi
4703 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4704 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4705 with_gnu_ld=$lt_cv_prog_gnu_ld
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4716 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4717 if test "${lt_cv_path_NM+set}" = set; then
4718   $as_echo_n "(cached) " >&6
4719 else
4720   if test -n "$NM"; then
4721   # Let the user override the test.
4722   lt_cv_path_NM="$NM"
4723 else
4724   lt_nm_to_check="${ac_tool_prefix}nm"
4725   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4726     lt_nm_to_check="$lt_nm_to_check nm"
4727   fi
4728   for lt_tmp_nm in $lt_nm_to_check; do
4729     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4730     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4731       IFS="$lt_save_ifs"
4732       test -z "$ac_dir" && ac_dir=.
4733       tmp_nm="$ac_dir/$lt_tmp_nm"
4734       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4735         # Check to see if the nm accepts a BSD-compat flag.
4736         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4737         #   nm: unknown option "B" ignored
4738         # Tru64's nm complains that /dev/null is an invalid object file
4739         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4740         */dev/null* | *'Invalid file or object type'*)
4741           lt_cv_path_NM="$tmp_nm -B"
4742           break
4743           ;;
4744         *)
4745           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4746           */dev/null*)
4747             lt_cv_path_NM="$tmp_nm -p"
4748             break
4749             ;;
4750           *)
4751             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4752             continue # so that we can try to find one that supports BSD flags
4753             ;;
4754           esac
4755           ;;
4756         esac
4757       fi
4758     done
4759     IFS="$lt_save_ifs"
4760   done
4761   : ${lt_cv_path_NM=no}
4762 fi
4763 fi
4764 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4765 $as_echo "$lt_cv_path_NM" >&6; }
4766 if test "$lt_cv_path_NM" != "no"; then
4767   NM="$lt_cv_path_NM"
4768 else
4769   # Didn't find any BSD compatible name lister, look for dumpbin.
4770   if test -n "$ac_tool_prefix"; then
4771   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4772   do
4773     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4775 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4776 $as_echo_n "checking for $ac_word... " >&6; }
4777 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4778   $as_echo_n "(cached) " >&6
4779 else
4780   if test -n "$DUMPBIN"; then
4781   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4782 else
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4785 do
4786   IFS=$as_save_IFS
4787   test -z "$as_dir" && as_dir=.
4788   for ac_exec_ext in '' $ac_executable_extensions; do
4789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4791     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792     break 2
4793   fi
4794 done
4795 done
4796 IFS=$as_save_IFS
4797
4798 fi
4799 fi
4800 DUMPBIN=$ac_cv_prog_DUMPBIN
4801 if test -n "$DUMPBIN"; then
4802   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4803 $as_echo "$DUMPBIN" >&6; }
4804 else
4805   { $as_echo "$as_me:$LINENO: result: no" >&5
4806 $as_echo "no" >&6; }
4807 fi
4808
4809
4810     test -n "$DUMPBIN" && break
4811   done
4812 fi
4813 if test -z "$DUMPBIN"; then
4814   ac_ct_DUMPBIN=$DUMPBIN
4815   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4816 do
4817   # Extract the first word of "$ac_prog", so it can be a program name with args.
4818 set dummy $ac_prog; ac_word=$2
4819 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 $as_echo_n "checking for $ac_word... " >&6; }
4821 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4822   $as_echo_n "(cached) " >&6
4823 else
4824   if test -n "$ac_ct_DUMPBIN"; then
4825   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4826 else
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830   IFS=$as_save_IFS
4831   test -z "$as_dir" && as_dir=.
4832   for ac_exec_ext in '' $ac_executable_extensions; do
4833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4834     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4835     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4836     break 2
4837   fi
4838 done
4839 done
4840 IFS=$as_save_IFS
4841
4842 fi
4843 fi
4844 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4845 if test -n "$ac_ct_DUMPBIN"; then
4846   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4847 $as_echo "$ac_ct_DUMPBIN" >&6; }
4848 else
4849   { $as_echo "$as_me:$LINENO: result: no" >&5
4850 $as_echo "no" >&6; }
4851 fi
4852
4853
4854   test -n "$ac_ct_DUMPBIN" && break
4855 done
4856
4857   if test "x$ac_ct_DUMPBIN" = x; then
4858     DUMPBIN=":"
4859   else
4860     case $cross_compiling:$ac_tool_warned in
4861 yes:)
4862 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4864 ac_tool_warned=yes ;;
4865 esac
4866     DUMPBIN=$ac_ct_DUMPBIN
4867   fi
4868 fi
4869
4870
4871   if test "$DUMPBIN" != ":"; then
4872     NM="$DUMPBIN"
4873   fi
4874 fi
4875 test -z "$NM" && NM=nm
4876
4877
4878
4879
4880
4881
4882 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4883 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4884 if test "${lt_cv_nm_interface+set}" = set; then
4885   $as_echo_n "(cached) " >&6
4886 else
4887   lt_cv_nm_interface="BSD nm"
4888   echo "int some_variable = 0;" > conftest.$ac_ext
4889   (eval echo "\"\$as_me:4889: $ac_compile\"" >&5)
4890   (eval "$ac_compile" 2>conftest.err)
4891   cat conftest.err >&5
4892   (eval echo "\"\$as_me:4892: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4893   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4894   cat conftest.err >&5
4895   (eval echo "\"\$as_me:4895: output\"" >&5)
4896   cat conftest.out >&5
4897   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4898     lt_cv_nm_interface="MS dumpbin"
4899   fi
4900   rm -f conftest*
4901 fi
4902 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4903 $as_echo "$lt_cv_nm_interface" >&6; }
4904
4905 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4906 $as_echo_n "checking whether ln -s works... " >&6; }
4907 LN_S=$as_ln_s
4908 if test "$LN_S" = "ln -s"; then
4909   { $as_echo "$as_me:$LINENO: result: yes" >&5
4910 $as_echo "yes" >&6; }
4911 else
4912   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4913 $as_echo "no, using $LN_S" >&6; }
4914 fi
4915
4916 # find the maximum length of command line arguments
4917 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4918 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4919 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4920   $as_echo_n "(cached) " >&6
4921 else
4922     i=0
4923   teststring="ABCD"
4924
4925   case $build_os in
4926   msdosdjgpp*)
4927     # On DJGPP, this test can blow up pretty badly due to problems in libc
4928     # (any single argument exceeding 2000 bytes causes a buffer overrun
4929     # during glob expansion).  Even if it were fixed, the result of this
4930     # check would be larger than it should be.
4931     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4932     ;;
4933
4934   gnu*)
4935     # Under GNU Hurd, this test is not required because there is
4936     # no limit to the length of command line arguments.
4937     # Libtool will interpret -1 as no limit whatsoever
4938     lt_cv_sys_max_cmd_len=-1;
4939     ;;
4940
4941   cygwin* | mingw* | cegcc*)
4942     # On Win9x/ME, this test blows up -- it succeeds, but takes
4943     # about 5 minutes as the teststring grows exponentially.
4944     # Worse, since 9x/ME are not pre-emptively multitasking,
4945     # you end up with a "frozen" computer, even though with patience
4946     # the test eventually succeeds (with a max line length of 256k).
4947     # Instead, let's just punt: use the minimum linelength reported by
4948     # all of the supported platforms: 8192 (on NT/2K/XP).
4949     lt_cv_sys_max_cmd_len=8192;
4950     ;;
4951
4952   amigaos*)
4953     # On AmigaOS with pdksh, this test takes hours, literally.
4954     # So we just punt and use a minimum line length of 8192.
4955     lt_cv_sys_max_cmd_len=8192;
4956     ;;
4957
4958   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4959     # This has been around since 386BSD, at least.  Likely further.
4960     if test -x /sbin/sysctl; then
4961       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4962     elif test -x /usr/sbin/sysctl; then
4963       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4964     else
4965       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4966     fi
4967     # And add a safety zone
4968     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4969     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4970     ;;
4971
4972   interix*)
4973     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4974     lt_cv_sys_max_cmd_len=196608
4975     ;;
4976
4977   osf*)
4978     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4979     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4980     # nice to cause kernel panics so lets avoid the loop below.
4981     # First set a reasonable default.
4982     lt_cv_sys_max_cmd_len=16384
4983     #
4984     if test -x /sbin/sysconfig; then
4985       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4986         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4987       esac
4988     fi
4989     ;;
4990   sco3.2v5*)
4991     lt_cv_sys_max_cmd_len=102400
4992     ;;
4993   sysv5* | sco5v6* | sysv4.2uw2*)
4994     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4995     if test -n "$kargmax"; then
4996       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4997     else
4998       lt_cv_sys_max_cmd_len=32768
4999     fi
5000     ;;
5001   *)
5002     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5003     if test -n "$lt_cv_sys_max_cmd_len"; then
5004       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5005       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5006     else
5007       # Make teststring a little bigger before we do anything with it.
5008       # a 1K string should be a reasonable start.
5009       for i in 1 2 3 4 5 6 7 8 ; do
5010         teststring=$teststring$teststring
5011       done
5012       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5013       # If test is not a shell built-in, we'll probably end up computing a
5014       # maximum length that is only half of the actual maximum length, but
5015       # we can't tell.
5016       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5017                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5018               test $i != 17 # 1/2 MB should be enough
5019       do
5020         i=`expr $i + 1`
5021         teststring=$teststring$teststring
5022       done
5023       # Only check the string length outside the loop.
5024       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5025       teststring=
5026       # Add a significant safety factor because C++ compilers can tack on
5027       # massive amounts of additional arguments before passing them to the
5028       # linker.  It appears as though 1/2 is a usable value.
5029       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5030     fi
5031     ;;
5032   esac
5033
5034 fi
5035
5036 if test -n $lt_cv_sys_max_cmd_len ; then
5037   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5038 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5039 else
5040   { $as_echo "$as_me:$LINENO: result: none" >&5
5041 $as_echo "none" >&6; }
5042 fi
5043 max_cmd_len=$lt_cv_sys_max_cmd_len
5044
5045
5046
5047
5048
5049
5050 : ${CP="cp -f"}
5051 : ${MV="mv -f"}
5052 : ${RM="rm -f"}
5053
5054 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5055 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5056 # Try some XSI features
5057 xsi_shell=no
5058 ( _lt_dummy="a/b/c"
5059   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5060       = c,a/b,, \
5061     && eval 'test $(( 1 + 1 )) -eq 2 \
5062     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5063   && xsi_shell=yes
5064 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5065 $as_echo "$xsi_shell" >&6; }
5066
5067
5068 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5069 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5070 lt_shell_append=no
5071 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5072     >/dev/null 2>&1 \
5073   && lt_shell_append=yes
5074 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5075 $as_echo "$lt_shell_append" >&6; }
5076
5077
5078 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5079   lt_unset=unset
5080 else
5081   lt_unset=false
5082 fi
5083
5084
5085
5086
5087
5088 # test EBCDIC or ASCII
5089 case `echo X|tr X '\101'` in
5090  A) # ASCII based system
5091     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5092   lt_SP2NL='tr \040 \012'
5093   lt_NL2SP='tr \015\012 \040\040'
5094   ;;
5095  *) # EBCDIC based system
5096   lt_SP2NL='tr \100 \n'
5097   lt_NL2SP='tr \r\n \100\100'
5098   ;;
5099 esac
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5110 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5111 if test "${lt_cv_ld_reload_flag+set}" = set; then
5112   $as_echo_n "(cached) " >&6
5113 else
5114   lt_cv_ld_reload_flag='-r'
5115 fi
5116 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5117 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5118 reload_flag=$lt_cv_ld_reload_flag
5119 case $reload_flag in
5120 "" | " "*) ;;
5121 *) reload_flag=" $reload_flag" ;;
5122 esac
5123 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5124 case $host_os in
5125   darwin*)
5126     if test "$GCC" = yes; then
5127       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5128     else
5129       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5130     fi
5131     ;;
5132 esac
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142 if test -n "$ac_tool_prefix"; then
5143   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5144 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5145 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5148   $as_echo_n "(cached) " >&6
5149 else
5150   if test -n "$OBJDUMP"; then
5151   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5152 else
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in $PATH
5155 do
5156   IFS=$as_save_IFS
5157   test -z "$as_dir" && as_dir=.
5158   for ac_exec_ext in '' $ac_executable_extensions; do
5159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5160     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5161     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5162     break 2
5163   fi
5164 done
5165 done
5166 IFS=$as_save_IFS
5167
5168 fi
5169 fi
5170 OBJDUMP=$ac_cv_prog_OBJDUMP
5171 if test -n "$OBJDUMP"; then
5172   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5173 $as_echo "$OBJDUMP" >&6; }
5174 else
5175   { $as_echo "$as_me:$LINENO: result: no" >&5
5176 $as_echo "no" >&6; }
5177 fi
5178
5179
5180 fi
5181 if test -z "$ac_cv_prog_OBJDUMP"; then
5182   ac_ct_OBJDUMP=$OBJDUMP
5183   # Extract the first word of "objdump", so it can be a program name with args.
5184 set dummy objdump; ac_word=$2
5185 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5188   $as_echo_n "(cached) " >&6
5189 else
5190   if test -n "$ac_ct_OBJDUMP"; then
5191   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5192 else
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5195 do
5196   IFS=$as_save_IFS
5197   test -z "$as_dir" && as_dir=.
5198   for ac_exec_ext in '' $ac_executable_extensions; do
5199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5200     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5201     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202     break 2
5203   fi
5204 done
5205 done
5206 IFS=$as_save_IFS
5207
5208 fi
5209 fi
5210 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5211 if test -n "$ac_ct_OBJDUMP"; then
5212   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5213 $as_echo "$ac_ct_OBJDUMP" >&6; }
5214 else
5215   { $as_echo "$as_me:$LINENO: result: no" >&5
5216 $as_echo "no" >&6; }
5217 fi
5218
5219   if test "x$ac_ct_OBJDUMP" = x; then
5220     OBJDUMP="false"
5221   else
5222     case $cross_compiling:$ac_tool_warned in
5223 yes:)
5224 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5226 ac_tool_warned=yes ;;
5227 esac
5228     OBJDUMP=$ac_ct_OBJDUMP
5229   fi
5230 else
5231   OBJDUMP="$ac_cv_prog_OBJDUMP"
5232 fi
5233
5234 test -z "$OBJDUMP" && OBJDUMP=objdump
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5245 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5246 if test "${lt_cv_deplibs_check_method+set}" = set; then
5247   $as_echo_n "(cached) " >&6
5248 else
5249   lt_cv_file_magic_cmd='$MAGIC_CMD'
5250 lt_cv_file_magic_test_file=
5251 lt_cv_deplibs_check_method='unknown'
5252 # Need to set the preceding variable on all platforms that support
5253 # interlibrary dependencies.
5254 # 'none' -- dependencies not supported.
5255 # `unknown' -- same as none, but documents that we really don't know.
5256 # 'pass_all' -- all dependencies passed with no checks.
5257 # 'test_compile' -- check by making test program.
5258 # 'file_magic [[regex]]' -- check by looking for files in library path
5259 # which responds to the $file_magic_cmd with a given extended regex.
5260 # If you have `file' or equivalent on your system and you're not sure
5261 # whether `pass_all' will *always* work, you probably want this one.
5262
5263 case $host_os in
5264 aix[4-9]*)
5265   lt_cv_deplibs_check_method=pass_all
5266   ;;
5267
5268 beos*)
5269   lt_cv_deplibs_check_method=pass_all
5270   ;;
5271
5272 bsdi[45]*)
5273   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5274   lt_cv_file_magic_cmd='/usr/bin/file -L'
5275   lt_cv_file_magic_test_file=/shlib/libc.so
5276   ;;
5277
5278 cygwin*)
5279   # func_win32_libid is a shell function defined in ltmain.sh
5280   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5281   lt_cv_file_magic_cmd='func_win32_libid'
5282   ;;
5283
5284 mingw* | pw32*)
5285   # Base MSYS/MinGW do not provide the 'file' command needed by
5286   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5287   # unless we find 'file', for example because we are cross-compiling.
5288   if ( file / ) >/dev/null 2>&1; then
5289     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5290     lt_cv_file_magic_cmd='func_win32_libid'
5291   else
5292     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5293     lt_cv_file_magic_cmd='$OBJDUMP -f'
5294   fi
5295   ;;
5296
5297 cegcc)
5298   # use the weaker test based on 'objdump'. See mingw*.
5299   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5300   lt_cv_file_magic_cmd='$OBJDUMP -f'
5301   ;;
5302
5303 darwin* | rhapsody*)
5304   lt_cv_deplibs_check_method=pass_all
5305   ;;
5306
5307 freebsd* | dragonfly*)
5308   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5309     case $host_cpu in
5310     i*86 )
5311       # Not sure whether the presence of OpenBSD here was a mistake.
5312       # Let's accept both of them until this is cleared up.
5313       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5314       lt_cv_file_magic_cmd=/usr/bin/file
5315       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5316       ;;
5317     esac
5318   else
5319     lt_cv_deplibs_check_method=pass_all
5320   fi
5321   ;;
5322
5323 gnu*)
5324   lt_cv_deplibs_check_method=pass_all
5325   ;;
5326
5327 hpux10.20* | hpux11*)
5328   lt_cv_file_magic_cmd=/usr/bin/file
5329   case $host_cpu in
5330   ia64*)
5331     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5332     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5333     ;;
5334   hppa*64*)
5335     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]'
5336     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5337     ;;
5338   *)
5339     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5340     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5341     ;;
5342   esac
5343   ;;
5344
5345 interix[3-9]*)
5346   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5347   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5348   ;;
5349
5350 irix5* | irix6* | nonstopux*)
5351   case $LD in
5352   *-32|*"-32 ") libmagic=32-bit;;
5353   *-n32|*"-n32 ") libmagic=N32;;
5354   *-64|*"-64 ") libmagic=64-bit;;
5355   *) libmagic=never-match;;
5356   esac
5357   lt_cv_deplibs_check_method=pass_all
5358   ;;
5359
5360 # This must be Linux ELF.
5361 linux* | k*bsd*-gnu)
5362   lt_cv_deplibs_check_method=pass_all
5363   ;;
5364
5365 netbsd*)
5366   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5367     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5368   else
5369     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5370   fi
5371   ;;
5372
5373 newos6*)
5374   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5375   lt_cv_file_magic_cmd=/usr/bin/file
5376   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5377   ;;
5378
5379 *nto* | *qnx*)
5380   lt_cv_deplibs_check_method=pass_all
5381   ;;
5382
5383 openbsd*)
5384   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5385     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5386   else
5387     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5388   fi
5389   ;;
5390
5391 osf3* | osf4* | osf5*)
5392   lt_cv_deplibs_check_method=pass_all
5393   ;;
5394
5395 rdos*)
5396   lt_cv_deplibs_check_method=pass_all
5397   ;;
5398
5399 solaris*)
5400   lt_cv_deplibs_check_method=pass_all
5401   ;;
5402
5403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5404   lt_cv_deplibs_check_method=pass_all
5405   ;;
5406
5407 sysv4 | sysv4.3*)
5408   case $host_vendor in
5409   motorola)
5410     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]'
5411     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5412     ;;
5413   ncr)
5414     lt_cv_deplibs_check_method=pass_all
5415     ;;
5416   sequent)
5417     lt_cv_file_magic_cmd='/bin/file'
5418     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5419     ;;
5420   sni)
5421     lt_cv_file_magic_cmd='/bin/file'
5422     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5423     lt_cv_file_magic_test_file=/lib/libc.so
5424     ;;
5425   siemens)
5426     lt_cv_deplibs_check_method=pass_all
5427     ;;
5428   pc)
5429     lt_cv_deplibs_check_method=pass_all
5430     ;;
5431   esac
5432   ;;
5433
5434 tpf*)
5435   lt_cv_deplibs_check_method=pass_all
5436   ;;
5437 esac
5438
5439 fi
5440 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5441 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5442 file_magic_cmd=$lt_cv_file_magic_cmd
5443 deplibs_check_method=$lt_cv_deplibs_check_method
5444 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457 if test -n "$ac_tool_prefix"; then
5458   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5459 set dummy ${ac_tool_prefix}ar; ac_word=$2
5460 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5461 $as_echo_n "checking for $ac_word... " >&6; }
5462 if test "${ac_cv_prog_AR+set}" = set; then
5463   $as_echo_n "(cached) " >&6
5464 else
5465   if test -n "$AR"; then
5466   ac_cv_prog_AR="$AR" # Let the user override the test.
5467 else
5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469 for as_dir in $PATH
5470 do
5471   IFS=$as_save_IFS
5472   test -z "$as_dir" && as_dir=.
5473   for ac_exec_ext in '' $ac_executable_extensions; do
5474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5475     ac_cv_prog_AR="${ac_tool_prefix}ar"
5476     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5477     break 2
5478   fi
5479 done
5480 done
5481 IFS=$as_save_IFS
5482
5483 fi
5484 fi
5485 AR=$ac_cv_prog_AR
5486 if test -n "$AR"; then
5487   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5488 $as_echo "$AR" >&6; }
5489 else
5490   { $as_echo "$as_me:$LINENO: result: no" >&5
5491 $as_echo "no" >&6; }
5492 fi
5493
5494
5495 fi
5496 if test -z "$ac_cv_prog_AR"; then
5497   ac_ct_AR=$AR
5498   # Extract the first word of "ar", so it can be a program name with args.
5499 set dummy ar; ac_word=$2
5500 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5501 $as_echo_n "checking for $ac_word... " >&6; }
5502 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5503   $as_echo_n "(cached) " >&6
5504 else
5505   if test -n "$ac_ct_AR"; then
5506   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5507 else
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in $PATH
5510 do
5511   IFS=$as_save_IFS
5512   test -z "$as_dir" && as_dir=.
5513   for ac_exec_ext in '' $ac_executable_extensions; do
5514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5515     ac_cv_prog_ac_ct_AR="ar"
5516     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5517     break 2
5518   fi
5519 done
5520 done
5521 IFS=$as_save_IFS
5522
5523 fi
5524 fi
5525 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5526 if test -n "$ac_ct_AR"; then
5527   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5528 $as_echo "$ac_ct_AR" >&6; }
5529 else
5530   { $as_echo "$as_me:$LINENO: result: no" >&5
5531 $as_echo "no" >&6; }
5532 fi
5533
5534   if test "x$ac_ct_AR" = x; then
5535     AR="false"
5536   else
5537     case $cross_compiling:$ac_tool_warned in
5538 yes:)
5539 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5541 ac_tool_warned=yes ;;
5542 esac
5543     AR=$ac_ct_AR
5544   fi
5545 else
5546   AR="$ac_cv_prog_AR"
5547 fi
5548
5549 test -z "$AR" && AR=ar
5550 test -z "$AR_FLAGS" && AR_FLAGS=cru
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562 if test -n "$ac_tool_prefix"; then
5563   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5564 set dummy ${ac_tool_prefix}strip; ac_word=$2
5565 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if test "${ac_cv_prog_STRIP+set}" = set; then
5568   $as_echo_n "(cached) " >&6
5569 else
5570   if test -n "$STRIP"; then
5571   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5572 else
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5575 do
5576   IFS=$as_save_IFS
5577   test -z "$as_dir" && as_dir=.
5578   for ac_exec_ext in '' $ac_executable_extensions; do
5579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5580     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5581     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5582     break 2
5583   fi
5584 done
5585 done
5586 IFS=$as_save_IFS
5587
5588 fi
5589 fi
5590 STRIP=$ac_cv_prog_STRIP
5591 if test -n "$STRIP"; then
5592   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5593 $as_echo "$STRIP" >&6; }
5594 else
5595   { $as_echo "$as_me:$LINENO: result: no" >&5
5596 $as_echo "no" >&6; }
5597 fi
5598
5599
5600 fi
5601 if test -z "$ac_cv_prog_STRIP"; then
5602   ac_ct_STRIP=$STRIP
5603   # Extract the first word of "strip", so it can be a program name with args.
5604 set dummy strip; ac_word=$2
5605 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5608   $as_echo_n "(cached) " >&6
5609 else
5610   if test -n "$ac_ct_STRIP"; then
5611   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5612 else
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH
5615 do
5616   IFS=$as_save_IFS
5617   test -z "$as_dir" && as_dir=.
5618   for ac_exec_ext in '' $ac_executable_extensions; do
5619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5620     ac_cv_prog_ac_ct_STRIP="strip"
5621     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5622     break 2
5623   fi
5624 done
5625 done
5626 IFS=$as_save_IFS
5627
5628 fi
5629 fi
5630 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5631 if test -n "$ac_ct_STRIP"; then
5632   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5633 $as_echo "$ac_ct_STRIP" >&6; }
5634 else
5635   { $as_echo "$as_me:$LINENO: result: no" >&5
5636 $as_echo "no" >&6; }
5637 fi
5638
5639   if test "x$ac_ct_STRIP" = x; then
5640     STRIP=":"
5641   else
5642     case $cross_compiling:$ac_tool_warned in
5643 yes:)
5644 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5646 ac_tool_warned=yes ;;
5647 esac
5648     STRIP=$ac_ct_STRIP
5649   fi
5650 else
5651   STRIP="$ac_cv_prog_STRIP"
5652 fi
5653
5654 test -z "$STRIP" && STRIP=:
5655
5656
5657
5658
5659
5660
5661 if test -n "$ac_tool_prefix"; then
5662   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5663 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5664 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if test "${ac_cv_prog_RANLIB+set}" = set; then
5667   $as_echo_n "(cached) " >&6
5668 else
5669   if test -n "$RANLIB"; then
5670   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675   IFS=$as_save_IFS
5676   test -z "$as_dir" && as_dir=.
5677   for ac_exec_ext in '' $ac_executable_extensions; do
5678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5679     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5680     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5681     break 2
5682   fi
5683 done
5684 done
5685 IFS=$as_save_IFS
5686
5687 fi
5688 fi
5689 RANLIB=$ac_cv_prog_RANLIB
5690 if test -n "$RANLIB"; then
5691   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5692 $as_echo "$RANLIB" >&6; }
5693 else
5694   { $as_echo "$as_me:$LINENO: result: no" >&5
5695 $as_echo "no" >&6; }
5696 fi
5697
5698
5699 fi
5700 if test -z "$ac_cv_prog_RANLIB"; then
5701   ac_ct_RANLIB=$RANLIB
5702   # Extract the first word of "ranlib", so it can be a program name with args.
5703 set dummy ranlib; ac_word=$2
5704 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5707   $as_echo_n "(cached) " >&6
5708 else
5709   if test -n "$ac_ct_RANLIB"; then
5710   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5711 else
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5714 do
5715   IFS=$as_save_IFS
5716   test -z "$as_dir" && as_dir=.
5717   for ac_exec_ext in '' $ac_executable_extensions; do
5718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5719     ac_cv_prog_ac_ct_RANLIB="ranlib"
5720     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5721     break 2
5722   fi
5723 done
5724 done
5725 IFS=$as_save_IFS
5726
5727 fi
5728 fi
5729 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5730 if test -n "$ac_ct_RANLIB"; then
5731   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5732 $as_echo "$ac_ct_RANLIB" >&6; }
5733 else
5734   { $as_echo "$as_me:$LINENO: result: no" >&5
5735 $as_echo "no" >&6; }
5736 fi
5737
5738   if test "x$ac_ct_RANLIB" = x; then
5739     RANLIB=":"
5740   else
5741     case $cross_compiling:$ac_tool_warned in
5742 yes:)
5743 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5745 ac_tool_warned=yes ;;
5746 esac
5747     RANLIB=$ac_ct_RANLIB
5748   fi
5749 else
5750   RANLIB="$ac_cv_prog_RANLIB"
5751 fi
5752
5753 test -z "$RANLIB" && RANLIB=:
5754
5755
5756
5757
5758
5759
5760 # Determine commands to create old-style static archives.
5761 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5762 old_postinstall_cmds='chmod 644 $oldlib'
5763 old_postuninstall_cmds=
5764
5765 if test -n "$RANLIB"; then
5766   case $host_os in
5767   openbsd*)
5768     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5769     ;;
5770   *)
5771     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5772     ;;
5773   esac
5774   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5775 fi
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810 # If no C compiler was specified, use CC.
5811 LTCC=${LTCC-"$CC"}
5812
5813 # If no C compiler flags were specified, use CFLAGS.
5814 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5815
5816 # Allow CC to be a program name with arguments.
5817 compiler=$CC
5818
5819
5820 # Check for command to grab the raw symbol name followed by C symbol from nm.
5821 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5822 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5823 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5824   $as_echo_n "(cached) " >&6
5825 else
5826
5827 # These are sane defaults that work on at least a few old systems.
5828 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5829
5830 # Character class describing NM global symbol codes.
5831 symcode='[BCDEGRST]'
5832
5833 # Regexp to match symbols that can be accessed directly from C.
5834 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5835
5836 # Define system-specific variables.
5837 case $host_os in
5838 aix*)
5839   symcode='[BCDT]'
5840   ;;
5841 cygwin* | mingw* | pw32* | cegcc*)
5842   symcode='[ABCDGISTW]'
5843   ;;
5844 hpux*)
5845   if test "$host_cpu" = ia64; then
5846     symcode='[ABCDEGRST]'
5847   fi
5848   ;;
5849 irix* | nonstopux*)
5850   symcode='[BCDEGRST]'
5851   ;;
5852 osf*)
5853   symcode='[BCDEGQRST]'
5854   ;;
5855 solaris*)
5856   symcode='[BDRT]'
5857   ;;
5858 sco3.2v5*)
5859   symcode='[DT]'
5860   ;;
5861 sysv4.2uw2*)
5862   symcode='[DT]'
5863   ;;
5864 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5865   symcode='[ABDT]'
5866   ;;
5867 sysv4)
5868   symcode='[DFNSTU]'
5869   ;;
5870 esac
5871
5872 # If we're using GNU nm, then use its standard symbol codes.
5873 case `$NM -V 2>&1` in
5874 *GNU* | *'with BFD'*)
5875   symcode='[ABCDGIRSTW]' ;;
5876 esac
5877
5878 # Transform an extracted symbol line into a proper C declaration.
5879 # Some systems (esp. on ia64) link data and code symbols differently,
5880 # so use this general approach.
5881 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5882
5883 # Transform an extracted symbol line into symbol name and symbol address
5884 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5885 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5886
5887 # Handle CRLF in mingw tool chain
5888 opt_cr=
5889 case $build_os in
5890 mingw*)
5891   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5892   ;;
5893 esac
5894
5895 # Try without a prefix underscore, then with it.
5896 for ac_symprfx in "" "_"; do
5897
5898   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5899   symxfrm="\\1 $ac_symprfx\\2 \\2"
5900
5901   # Write the raw and C identifiers.
5902   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5903     # Fake it for dumpbin and say T for any non-static function
5904     # and D for any global variable.
5905     # Also find C++ and __fastcall symbols from MSVC++,
5906     # which start with @ or ?.
5907     lt_cv_sys_global_symbol_pipe="$AWK '"\
5908 "     {last_section=section; section=\$ 3};"\
5909 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5910 "     \$ 0!~/External *\|/{next};"\
5911 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5912 "     {if(hide[section]) next};"\
5913 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5914 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5915 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5916 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5917 "     ' prfx=^$ac_symprfx"
5918   else
5919     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5920   fi
5921
5922   # Check to see that the pipe works correctly.
5923   pipe_works=no
5924
5925   rm -f conftest*
5926   cat > conftest.$ac_ext <<_LT_EOF
5927 #ifdef __cplusplus
5928 extern "C" {
5929 #endif
5930 char nm_test_var;
5931 void nm_test_func(void);
5932 void nm_test_func(void){}
5933 #ifdef __cplusplus
5934 }
5935 #endif
5936 int main(){nm_test_var='a';nm_test_func();return(0);}
5937 _LT_EOF
5938
5939   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5940   (eval $ac_compile) 2>&5
5941   ac_status=$?
5942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943   (exit $ac_status); }; then
5944     # Now try to grab the symbols.
5945     nlist=conftest.nm
5946     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5947   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5948   ac_status=$?
5949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); } && test -s "$nlist"; then
5951       # Try sorting and uniquifying the output.
5952       if sort "$nlist" | uniq > "$nlist"T; then
5953         mv -f "$nlist"T "$nlist"
5954       else
5955         rm -f "$nlist"T
5956       fi
5957
5958       # Make sure that we snagged all the symbols we need.
5959       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5960         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5961           cat <<_LT_EOF > conftest.$ac_ext
5962 #ifdef __cplusplus
5963 extern "C" {
5964 #endif
5965
5966 _LT_EOF
5967           # Now generate the symbol file.
5968           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5969
5970           cat <<_LT_EOF >> conftest.$ac_ext
5971
5972 /* The mapping between symbol names and symbols.  */
5973 const struct {
5974   const char *name;
5975   void       *address;
5976 }
5977 lt__PROGRAM__LTX_preloaded_symbols[] =
5978 {
5979   { "@PROGRAM@", (void *) 0 },
5980 _LT_EOF
5981           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5982           cat <<\_LT_EOF >> conftest.$ac_ext
5983   {0, (void *) 0}
5984 };
5985
5986 /* This works around a problem in FreeBSD linker */
5987 #ifdef FREEBSD_WORKAROUND
5988 static const void *lt_preloaded_setup() {
5989   return lt__PROGRAM__LTX_preloaded_symbols;
5990 }
5991 #endif
5992
5993 #ifdef __cplusplus
5994 }
5995 #endif
5996 _LT_EOF
5997           # Now try linking the two files.
5998           mv conftest.$ac_objext conftstm.$ac_objext
5999           lt_save_LIBS="$LIBS"
6000           lt_save_CFLAGS="$CFLAGS"
6001           LIBS="conftstm.$ac_objext"
6002           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6003           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6004   (eval $ac_link) 2>&5
6005   ac_status=$?
6006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6008             pipe_works=yes
6009           fi
6010           LIBS="$lt_save_LIBS"
6011           CFLAGS="$lt_save_CFLAGS"
6012         else
6013           echo "cannot find nm_test_func in $nlist" >&5
6014         fi
6015       else
6016         echo "cannot find nm_test_var in $nlist" >&5
6017       fi
6018     else
6019       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6020     fi
6021   else
6022     echo "$progname: failed program was:" >&5
6023     cat conftest.$ac_ext >&5
6024   fi
6025   rm -rf conftest* conftst*
6026
6027   # Do not use the global_symbol_pipe unless it works.
6028   if test "$pipe_works" = yes; then
6029     break
6030   else
6031     lt_cv_sys_global_symbol_pipe=
6032   fi
6033 done
6034
6035 fi
6036
6037 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6038   lt_cv_sys_global_symbol_to_cdecl=
6039 fi
6040 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6041   { $as_echo "$as_me:$LINENO: result: failed" >&5
6042 $as_echo "failed" >&6; }
6043 else
6044   { $as_echo "$as_me:$LINENO: result: ok" >&5
6045 $as_echo "ok" >&6; }
6046 fi
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070 # Check whether --enable-libtool-lock was given.
6071 if test "${enable_libtool_lock+set}" = set; then
6072   enableval=$enable_libtool_lock;
6073 fi
6074
6075 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6076
6077 # Some flags need to be propagated to the compiler or linker for good
6078 # libtool support.
6079 case $host in
6080 ia64-*-hpux*)
6081   # Find out which ABI we are using.
6082   echo 'int i;' > conftest.$ac_ext
6083   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6084   (eval $ac_compile) 2>&5
6085   ac_status=$?
6086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); }; then
6088     case `/usr/bin/file conftest.$ac_objext` in
6089       *ELF-32*)
6090         HPUX_IA64_MODE="32"
6091         ;;
6092       *ELF-64*)
6093         HPUX_IA64_MODE="64"
6094         ;;
6095     esac
6096   fi
6097   rm -rf conftest*
6098   ;;
6099 *-*-irix6*)
6100   # Find out which ABI we are using.
6101   echo '#line 6101 "configure"' > conftest.$ac_ext
6102   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6103   (eval $ac_compile) 2>&5
6104   ac_status=$?
6105   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106   (exit $ac_status); }; then
6107     if test "$lt_cv_prog_gnu_ld" = yes; then
6108       case `/usr/bin/file conftest.$ac_objext` in
6109         *32-bit*)
6110           LD="${LD-ld} -melf32bsmip"
6111           ;;
6112         *N32*)
6113           LD="${LD-ld} -melf32bmipn32"
6114           ;;
6115         *64-bit*)
6116           LD="${LD-ld} -melf64bmip"
6117         ;;
6118       esac
6119     else
6120       case `/usr/bin/file conftest.$ac_objext` in
6121         *32-bit*)
6122           LD="${LD-ld} -32"
6123           ;;
6124         *N32*)
6125           LD="${LD-ld} -n32"
6126           ;;
6127         *64-bit*)
6128           LD="${LD-ld} -64"
6129           ;;
6130       esac
6131     fi
6132   fi
6133   rm -rf conftest*
6134   ;;
6135
6136 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6137 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6138   # Find out which ABI we are using.
6139   echo 'int i;' > conftest.$ac_ext
6140   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6141   (eval $ac_compile) 2>&5
6142   ac_status=$?
6143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); }; then
6145     case `/usr/bin/file conftest.o` in
6146       *32-bit*)
6147         case $host in
6148           x86_64-*kfreebsd*-gnu)
6149             LD="${LD-ld} -m elf_i386_fbsd"
6150             ;;
6151           x86_64-*linux*)
6152             LD="${LD-ld} -m elf_i386"
6153             ;;
6154           ppc64-*linux*|powerpc64-*linux*)
6155             LD="${LD-ld} -m elf32ppclinux"
6156             ;;
6157           s390x-*linux*)
6158             LD="${LD-ld} -m elf_s390"
6159             ;;
6160           sparc64-*linux*)
6161             LD="${LD-ld} -m elf32_sparc"
6162             ;;
6163         esac
6164         ;;
6165       *64-bit*)
6166         case $host in
6167           x86_64-*kfreebsd*-gnu)
6168             LD="${LD-ld} -m elf_x86_64_fbsd"
6169             ;;
6170           x86_64-*linux*)
6171             LD="${LD-ld} -m elf_x86_64"
6172             ;;
6173           ppc*-*linux*|powerpc*-*linux*)
6174             LD="${LD-ld} -m elf64ppc"
6175             ;;
6176           s390*-*linux*|s390*-*tpf*)
6177             LD="${LD-ld} -m elf64_s390"
6178             ;;
6179           sparc*-*linux*)
6180             LD="${LD-ld} -m elf64_sparc"
6181             ;;
6182         esac
6183         ;;
6184     esac
6185   fi
6186   rm -rf conftest*
6187   ;;
6188
6189 *-*-sco3.2v5*)
6190   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6191   SAVE_CFLAGS="$CFLAGS"
6192   CFLAGS="$CFLAGS -belf"
6193   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6194 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6195 if test "${lt_cv_cc_needs_belf+set}" = set; then
6196   $as_echo_n "(cached) " >&6
6197 else
6198   ac_ext=c
6199 ac_cpp='$CPP $CPPFLAGS'
6200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6203
6204      cat >conftest.$ac_ext <<_ACEOF
6205 /* confdefs.h.  */
6206 _ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h.  */
6210
6211 int
6212 main ()
6213 {
6214
6215   ;
6216   return 0;
6217 }
6218 _ACEOF
6219 rm -f conftest.$ac_objext conftest$ac_exeext
6220 if { (ac_try="$ac_link"
6221 case "(($ac_try" in
6222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223   *) ac_try_echo=$ac_try;;
6224 esac
6225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6226 $as_echo "$ac_try_echo") >&5
6227   (eval "$ac_link") 2>conftest.er1
6228   ac_status=$?
6229   grep -v '^ *+' conftest.er1 >conftest.err
6230   rm -f conftest.er1
6231   cat conftest.err >&5
6232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233   (exit $ac_status); } && {
6234          test -z "$ac_c_werror_flag" ||
6235          test ! -s conftest.err
6236        } && test -s conftest$ac_exeext && {
6237          test "$cross_compiling" = yes ||
6238          $as_test_x conftest$ac_exeext
6239        }; then
6240   lt_cv_cc_needs_belf=yes
6241 else
6242   $as_echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6244
6245         lt_cv_cc_needs_belf=no
6246 fi
6247
6248 rm -rf conftest.dSYM
6249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6250       conftest$ac_exeext conftest.$ac_ext
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 fi
6258 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6259 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6260   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6261     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6262     CFLAGS="$SAVE_CFLAGS"
6263   fi
6264   ;;
6265 sparc*-*solaris*)
6266   # Find out which ABI we are using.
6267   echo 'int i;' > conftest.$ac_ext
6268   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6269   (eval $ac_compile) 2>&5
6270   ac_status=$?
6271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272   (exit $ac_status); }; then
6273     case `/usr/bin/file conftest.o` in
6274     *64-bit*)
6275       case $lt_cv_prog_gnu_ld in
6276       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6277       *)
6278         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6279           LD="${LD-ld} -64"
6280         fi
6281         ;;
6282       esac
6283       ;;
6284     esac
6285   fi
6286   rm -rf conftest*
6287   ;;
6288 esac
6289
6290 need_locks="$enable_libtool_lock"
6291
6292
6293   case $host_os in
6294     rhapsody* | darwin*)
6295     if test -n "$ac_tool_prefix"; then
6296   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6297 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6298 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6299 $as_echo_n "checking for $ac_word... " >&6; }
6300 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6301   $as_echo_n "(cached) " >&6
6302 else
6303   if test -n "$DSYMUTIL"; then
6304   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6305 else
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 for as_dir in $PATH
6308 do
6309   IFS=$as_save_IFS
6310   test -z "$as_dir" && as_dir=.
6311   for ac_exec_ext in '' $ac_executable_extensions; do
6312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6313     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6314     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315     break 2
6316   fi
6317 done
6318 done
6319 IFS=$as_save_IFS
6320
6321 fi
6322 fi
6323 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6324 if test -n "$DSYMUTIL"; then
6325   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6326 $as_echo "$DSYMUTIL" >&6; }
6327 else
6328   { $as_echo "$as_me:$LINENO: result: no" >&5
6329 $as_echo "no" >&6; }
6330 fi
6331
6332
6333 fi
6334 if test -z "$ac_cv_prog_DSYMUTIL"; then
6335   ac_ct_DSYMUTIL=$DSYMUTIL
6336   # Extract the first word of "dsymutil", so it can be a program name with args.
6337 set dummy dsymutil; ac_word=$2
6338 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6341   $as_echo_n "(cached) " >&6
6342 else
6343   if test -n "$ac_ct_DSYMUTIL"; then
6344   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6345 else
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6348 do
6349   IFS=$as_save_IFS
6350   test -z "$as_dir" && as_dir=.
6351   for ac_exec_ext in '' $ac_executable_extensions; do
6352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6353     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6354     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6355     break 2
6356   fi
6357 done
6358 done
6359 IFS=$as_save_IFS
6360
6361 fi
6362 fi
6363 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6364 if test -n "$ac_ct_DSYMUTIL"; then
6365   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6366 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6367 else
6368   { $as_echo "$as_me:$LINENO: result: no" >&5
6369 $as_echo "no" >&6; }
6370 fi
6371
6372   if test "x$ac_ct_DSYMUTIL" = x; then
6373     DSYMUTIL=":"
6374   else
6375     case $cross_compiling:$ac_tool_warned in
6376 yes:)
6377 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6379 ac_tool_warned=yes ;;
6380 esac
6381     DSYMUTIL=$ac_ct_DSYMUTIL
6382   fi
6383 else
6384   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6385 fi
6386
6387     if test -n "$ac_tool_prefix"; then
6388   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6389 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6390 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6393   $as_echo_n "(cached) " >&6
6394 else
6395   if test -n "$NMEDIT"; then
6396   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6400 do
6401   IFS=$as_save_IFS
6402   test -z "$as_dir" && as_dir=.
6403   for ac_exec_ext in '' $ac_executable_extensions; do
6404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6405     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6406     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6407     break 2
6408   fi
6409 done
6410 done
6411 IFS=$as_save_IFS
6412
6413 fi
6414 fi
6415 NMEDIT=$ac_cv_prog_NMEDIT
6416 if test -n "$NMEDIT"; then
6417   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6418 $as_echo "$NMEDIT" >&6; }
6419 else
6420   { $as_echo "$as_me:$LINENO: result: no" >&5
6421 $as_echo "no" >&6; }
6422 fi
6423
6424
6425 fi
6426 if test -z "$ac_cv_prog_NMEDIT"; then
6427   ac_ct_NMEDIT=$NMEDIT
6428   # Extract the first word of "nmedit", so it can be a program name with args.
6429 set dummy nmedit; ac_word=$2
6430 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6433   $as_echo_n "(cached) " >&6
6434 else
6435   if test -n "$ac_ct_NMEDIT"; then
6436   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6437 else
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6440 do
6441   IFS=$as_save_IFS
6442   test -z "$as_dir" && as_dir=.
6443   for ac_exec_ext in '' $ac_executable_extensions; do
6444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6445     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6446     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447     break 2
6448   fi
6449 done
6450 done
6451 IFS=$as_save_IFS
6452
6453 fi
6454 fi
6455 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6456 if test -n "$ac_ct_NMEDIT"; then
6457   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6458 $as_echo "$ac_ct_NMEDIT" >&6; }
6459 else
6460   { $as_echo "$as_me:$LINENO: result: no" >&5
6461 $as_echo "no" >&6; }
6462 fi
6463
6464   if test "x$ac_ct_NMEDIT" = x; then
6465     NMEDIT=":"
6466   else
6467     case $cross_compiling:$ac_tool_warned in
6468 yes:)
6469 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6471 ac_tool_warned=yes ;;
6472 esac
6473     NMEDIT=$ac_ct_NMEDIT
6474   fi
6475 else
6476   NMEDIT="$ac_cv_prog_NMEDIT"
6477 fi
6478
6479     if test -n "$ac_tool_prefix"; then
6480   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6481 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6482 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6483 $as_echo_n "checking for $ac_word... " >&6; }
6484 if test "${ac_cv_prog_LIPO+set}" = set; then
6485   $as_echo_n "(cached) " >&6
6486 else
6487   if test -n "$LIPO"; then
6488   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6489 else
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 for as_dir in $PATH
6492 do
6493   IFS=$as_save_IFS
6494   test -z "$as_dir" && as_dir=.
6495   for ac_exec_ext in '' $ac_executable_extensions; do
6496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6498     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6499     break 2
6500   fi
6501 done
6502 done
6503 IFS=$as_save_IFS
6504
6505 fi
6506 fi
6507 LIPO=$ac_cv_prog_LIPO
6508 if test -n "$LIPO"; then
6509   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6510 $as_echo "$LIPO" >&6; }
6511 else
6512   { $as_echo "$as_me:$LINENO: result: no" >&5
6513 $as_echo "no" >&6; }
6514 fi
6515
6516
6517 fi
6518 if test -z "$ac_cv_prog_LIPO"; then
6519   ac_ct_LIPO=$LIPO
6520   # Extract the first word of "lipo", so it can be a program name with args.
6521 set dummy lipo; ac_word=$2
6522 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6523 $as_echo_n "checking for $ac_word... " >&6; }
6524 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6525   $as_echo_n "(cached) " >&6
6526 else
6527   if test -n "$ac_ct_LIPO"; then
6528   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6529 else
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in $PATH
6532 do
6533   IFS=$as_save_IFS
6534   test -z "$as_dir" && as_dir=.
6535   for ac_exec_ext in '' $ac_executable_extensions; do
6536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6537     ac_cv_prog_ac_ct_LIPO="lipo"
6538     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539     break 2
6540   fi
6541 done
6542 done
6543 IFS=$as_save_IFS
6544
6545 fi
6546 fi
6547 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6548 if test -n "$ac_ct_LIPO"; then
6549   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6550 $as_echo "$ac_ct_LIPO" >&6; }
6551 else
6552   { $as_echo "$as_me:$LINENO: result: no" >&5
6553 $as_echo "no" >&6; }
6554 fi
6555
6556   if test "x$ac_ct_LIPO" = x; then
6557     LIPO=":"
6558   else
6559     case $cross_compiling:$ac_tool_warned in
6560 yes:)
6561 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6563 ac_tool_warned=yes ;;
6564 esac
6565     LIPO=$ac_ct_LIPO
6566   fi
6567 else
6568   LIPO="$ac_cv_prog_LIPO"
6569 fi
6570
6571     if test -n "$ac_tool_prefix"; then
6572   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6573 set dummy ${ac_tool_prefix}otool; ac_word=$2
6574 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6575 $as_echo_n "checking for $ac_word... " >&6; }
6576 if test "${ac_cv_prog_OTOOL+set}" = set; then
6577   $as_echo_n "(cached) " >&6
6578 else
6579   if test -n "$OTOOL"; then
6580   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6581 else
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH
6584 do
6585   IFS=$as_save_IFS
6586   test -z "$as_dir" && as_dir=.
6587   for ac_exec_ext in '' $ac_executable_extensions; do
6588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6589     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6590     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591     break 2
6592   fi
6593 done
6594 done
6595 IFS=$as_save_IFS
6596
6597 fi
6598 fi
6599 OTOOL=$ac_cv_prog_OTOOL
6600 if test -n "$OTOOL"; then
6601   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6602 $as_echo "$OTOOL" >&6; }
6603 else
6604   { $as_echo "$as_me:$LINENO: result: no" >&5
6605 $as_echo "no" >&6; }
6606 fi
6607
6608
6609 fi
6610 if test -z "$ac_cv_prog_OTOOL"; then
6611   ac_ct_OTOOL=$OTOOL
6612   # Extract the first word of "otool", so it can be a program name with args.
6613 set dummy otool; ac_word=$2
6614 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6617   $as_echo_n "(cached) " >&6
6618 else
6619   if test -n "$ac_ct_OTOOL"; then
6620   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6621 else
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6624 do
6625   IFS=$as_save_IFS
6626   test -z "$as_dir" && as_dir=.
6627   for ac_exec_ext in '' $ac_executable_extensions; do
6628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6629     ac_cv_prog_ac_ct_OTOOL="otool"
6630     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631     break 2
6632   fi
6633 done
6634 done
6635 IFS=$as_save_IFS
6636
6637 fi
6638 fi
6639 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6640 if test -n "$ac_ct_OTOOL"; then
6641   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6642 $as_echo "$ac_ct_OTOOL" >&6; }
6643 else
6644   { $as_echo "$as_me:$LINENO: result: no" >&5
6645 $as_echo "no" >&6; }
6646 fi
6647
6648   if test "x$ac_ct_OTOOL" = x; then
6649     OTOOL=":"
6650   else
6651     case $cross_compiling:$ac_tool_warned in
6652 yes:)
6653 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6655 ac_tool_warned=yes ;;
6656 esac
6657     OTOOL=$ac_ct_OTOOL
6658   fi
6659 else
6660   OTOOL="$ac_cv_prog_OTOOL"
6661 fi
6662
6663     if test -n "$ac_tool_prefix"; then
6664   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6665 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6667 $as_echo_n "checking for $ac_word... " >&6; }
6668 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6669   $as_echo_n "(cached) " >&6
6670 else
6671   if test -n "$OTOOL64"; then
6672   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6673 else
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6676 do
6677   IFS=$as_save_IFS
6678   test -z "$as_dir" && as_dir=.
6679   for ac_exec_ext in '' $ac_executable_extensions; do
6680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6681     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6682     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683     break 2
6684   fi
6685 done
6686 done
6687 IFS=$as_save_IFS
6688
6689 fi
6690 fi
6691 OTOOL64=$ac_cv_prog_OTOOL64
6692 if test -n "$OTOOL64"; then
6693   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6694 $as_echo "$OTOOL64" >&6; }
6695 else
6696   { $as_echo "$as_me:$LINENO: result: no" >&5
6697 $as_echo "no" >&6; }
6698 fi
6699
6700
6701 fi
6702 if test -z "$ac_cv_prog_OTOOL64"; then
6703   ac_ct_OTOOL64=$OTOOL64
6704   # Extract the first word of "otool64", so it can be a program name with args.
6705 set dummy otool64; ac_word=$2
6706 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6707 $as_echo_n "checking for $ac_word... " >&6; }
6708 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6709   $as_echo_n "(cached) " >&6
6710 else
6711   if test -n "$ac_ct_OTOOL64"; then
6712   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6713 else
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 for as_dir in $PATH
6716 do
6717   IFS=$as_save_IFS
6718   test -z "$as_dir" && as_dir=.
6719   for ac_exec_ext in '' $ac_executable_extensions; do
6720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6721     ac_cv_prog_ac_ct_OTOOL64="otool64"
6722     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723     break 2
6724   fi
6725 done
6726 done
6727 IFS=$as_save_IFS
6728
6729 fi
6730 fi
6731 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6732 if test -n "$ac_ct_OTOOL64"; then
6733   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6734 $as_echo "$ac_ct_OTOOL64" >&6; }
6735 else
6736   { $as_echo "$as_me:$LINENO: result: no" >&5
6737 $as_echo "no" >&6; }
6738 fi
6739
6740   if test "x$ac_ct_OTOOL64" = x; then
6741     OTOOL64=":"
6742   else
6743     case $cross_compiling:$ac_tool_warned in
6744 yes:)
6745 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6747 ac_tool_warned=yes ;;
6748 esac
6749     OTOOL64=$ac_ct_OTOOL64
6750   fi
6751 else
6752   OTOOL64="$ac_cv_prog_OTOOL64"
6753 fi
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6782 $as_echo_n "checking for -single_module linker flag... " >&6; }
6783 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6784   $as_echo_n "(cached) " >&6
6785 else
6786   lt_cv_apple_cc_single_mod=no
6787       if test -z "${LT_MULTI_MODULE}"; then
6788         # By default we will add the -single_module flag. You can override
6789         # by either setting the environment variable LT_MULTI_MODULE
6790         # non-empty at configure time, or by adding -multi_module to the
6791         # link flags.
6792         rm -rf libconftest.dylib*
6793         echo "int foo(void){return 1;}" > conftest.c
6794         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6795 -dynamiclib -Wl,-single_module conftest.c" >&5
6796         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6797           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6798         _lt_result=$?
6799         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6800           lt_cv_apple_cc_single_mod=yes
6801         else
6802           cat conftest.err >&5
6803         fi
6804         rm -rf libconftest.dylib*
6805         rm -f conftest.*
6806       fi
6807 fi
6808 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6809 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6810     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6811 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6812 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6813   $as_echo_n "(cached) " >&6
6814 else
6815   lt_cv_ld_exported_symbols_list=no
6816       save_LDFLAGS=$LDFLAGS
6817       echo "_main" > conftest.sym
6818       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6819       cat >conftest.$ac_ext <<_ACEOF
6820 /* confdefs.h.  */
6821 _ACEOF
6822 cat confdefs.h >>conftest.$ac_ext
6823 cat >>conftest.$ac_ext <<_ACEOF
6824 /* end confdefs.h.  */
6825
6826 int
6827 main ()
6828 {
6829
6830   ;
6831   return 0;
6832 }
6833 _ACEOF
6834 rm -f conftest.$ac_objext conftest$ac_exeext
6835 if { (ac_try="$ac_link"
6836 case "(($ac_try" in
6837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6838   *) ac_try_echo=$ac_try;;
6839 esac
6840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6841 $as_echo "$ac_try_echo") >&5
6842   (eval "$ac_link") 2>conftest.er1
6843   ac_status=$?
6844   grep -v '^ *+' conftest.er1 >conftest.err
6845   rm -f conftest.er1
6846   cat conftest.err >&5
6847   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848   (exit $ac_status); } && {
6849          test -z "$ac_c_werror_flag" ||
6850          test ! -s conftest.err
6851        } && test -s conftest$ac_exeext && {
6852          test "$cross_compiling" = yes ||
6853          $as_test_x conftest$ac_exeext
6854        }; then
6855   lt_cv_ld_exported_symbols_list=yes
6856 else
6857   $as_echo "$as_me: failed program was:" >&5
6858 sed 's/^/| /' conftest.$ac_ext >&5
6859
6860         lt_cv_ld_exported_symbols_list=no
6861 fi
6862
6863 rm -rf conftest.dSYM
6864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6865       conftest$ac_exeext conftest.$ac_ext
6866         LDFLAGS="$save_LDFLAGS"
6867
6868 fi
6869 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6870 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6871     case $host_os in
6872     rhapsody* | darwin1.[012])
6873       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6874     darwin1.*)
6875       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6876     darwin*) # darwin 5.x on
6877       # if running on 10.5 or later, the deployment target defaults
6878       # to the OS version, if on x86, and 10.4, the deployment
6879       # target defaults to 10.4. Don't you love it?
6880       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6881         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6882           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6883         10.[012]*)
6884           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6885         10.*)
6886           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6887       esac
6888     ;;
6889   esac
6890     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6891       _lt_dar_single_mod='$single_module'
6892     fi
6893     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6894       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6895     else
6896       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6897     fi
6898     if test "$DSYMUTIL" != ":"; then
6899       _lt_dsymutil='~$DSYMUTIL $lib || :'
6900     else
6901       _lt_dsymutil=
6902     fi
6903     ;;
6904   esac
6905
6906 ac_ext=c
6907 ac_cpp='$CPP $CPPFLAGS'
6908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6911 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6912 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6913 # On Suns, sometimes $CPP names a directory.
6914 if test -n "$CPP" && test -d "$CPP"; then
6915   CPP=
6916 fi
6917 if test -z "$CPP"; then
6918   if test "${ac_cv_prog_CPP+set}" = set; then
6919   $as_echo_n "(cached) " >&6
6920 else
6921       # Double quotes because CPP needs to be expanded
6922     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6923     do
6924       ac_preproc_ok=false
6925 for ac_c_preproc_warn_flag in '' yes
6926 do
6927   # Use a header file that comes with gcc, so configuring glibc
6928   # with a fresh cross-compiler works.
6929   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6930   # <limits.h> exists even on freestanding compilers.
6931   # On the NeXT, cc -E runs the code through the compiler's parser,
6932   # not just through cpp. "Syntax error" is here to catch this case.
6933   cat >conftest.$ac_ext <<_ACEOF
6934 /* confdefs.h.  */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h.  */
6939 #ifdef __STDC__
6940 # include <limits.h>
6941 #else
6942 # include <assert.h>
6943 #endif
6944                      Syntax error
6945 _ACEOF
6946 if { (ac_try="$ac_cpp conftest.$ac_ext"
6947 case "(($ac_try" in
6948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6949   *) ac_try_echo=$ac_try;;
6950 esac
6951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6952 $as_echo "$ac_try_echo") >&5
6953   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6954   ac_status=$?
6955   grep -v '^ *+' conftest.er1 >conftest.err
6956   rm -f conftest.er1
6957   cat conftest.err >&5
6958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959   (exit $ac_status); } >/dev/null && {
6960          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6961          test ! -s conftest.err
6962        }; then
6963   :
6964 else
6965   $as_echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6967
6968   # Broken: fails on valid input.
6969 continue
6970 fi
6971
6972 rm -f conftest.err conftest.$ac_ext
6973
6974   # OK, works on sane cases.  Now check whether nonexistent headers
6975   # can be detected and how.
6976   cat >conftest.$ac_ext <<_ACEOF
6977 /* confdefs.h.  */
6978 _ACEOF
6979 cat confdefs.h >>conftest.$ac_ext
6980 cat >>conftest.$ac_ext <<_ACEOF
6981 /* end confdefs.h.  */
6982 #include <ac_nonexistent.h>
6983 _ACEOF
6984 if { (ac_try="$ac_cpp conftest.$ac_ext"
6985 case "(($ac_try" in
6986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987   *) ac_try_echo=$ac_try;;
6988 esac
6989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6990 $as_echo "$ac_try_echo") >&5
6991   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6992   ac_status=$?
6993   grep -v '^ *+' conftest.er1 >conftest.err
6994   rm -f conftest.er1
6995   cat conftest.err >&5
6996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997   (exit $ac_status); } >/dev/null && {
6998          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6999          test ! -s conftest.err
7000        }; then
7001   # Broken: success on invalid input.
7002 continue
7003 else
7004   $as_echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7006
7007   # Passes both tests.
7008 ac_preproc_ok=:
7009 break
7010 fi
7011
7012 rm -f conftest.err conftest.$ac_ext
7013
7014 done
7015 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7016 rm -f conftest.err conftest.$ac_ext
7017 if $ac_preproc_ok; then
7018   break
7019 fi
7020
7021     done
7022     ac_cv_prog_CPP=$CPP
7023
7024 fi
7025   CPP=$ac_cv_prog_CPP
7026 else
7027   ac_cv_prog_CPP=$CPP
7028 fi
7029 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
7030 $as_echo "$CPP" >&6; }
7031 ac_preproc_ok=false
7032 for ac_c_preproc_warn_flag in '' yes
7033 do
7034   # Use a header file that comes with gcc, so configuring glibc
7035   # with a fresh cross-compiler works.
7036   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7037   # <limits.h> exists even on freestanding compilers.
7038   # On the NeXT, cc -E runs the code through the compiler's parser,
7039   # not just through cpp. "Syntax error" is here to catch this case.
7040   cat >conftest.$ac_ext <<_ACEOF
7041 /* confdefs.h.  */
7042 _ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h.  */
7046 #ifdef __STDC__
7047 # include <limits.h>
7048 #else
7049 # include <assert.h>
7050 #endif
7051                      Syntax error
7052 _ACEOF
7053 if { (ac_try="$ac_cpp conftest.$ac_ext"
7054 case "(($ac_try" in
7055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056   *) ac_try_echo=$ac_try;;
7057 esac
7058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7059 $as_echo "$ac_try_echo") >&5
7060   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7061   ac_status=$?
7062   grep -v '^ *+' conftest.er1 >conftest.err
7063   rm -f conftest.er1
7064   cat conftest.err >&5
7065   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066   (exit $ac_status); } >/dev/null && {
7067          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7068          test ! -s conftest.err
7069        }; then
7070   :
7071 else
7072   $as_echo "$as_me: failed program was:" >&5
7073 sed 's/^/| /' conftest.$ac_ext >&5
7074
7075   # Broken: fails on valid input.
7076 continue
7077 fi
7078
7079 rm -f conftest.err conftest.$ac_ext
7080
7081   # OK, works on sane cases.  Now check whether nonexistent headers
7082   # can be detected and how.
7083   cat >conftest.$ac_ext <<_ACEOF
7084 /* confdefs.h.  */
7085 _ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h.  */
7089 #include <ac_nonexistent.h>
7090 _ACEOF
7091 if { (ac_try="$ac_cpp conftest.$ac_ext"
7092 case "(($ac_try" in
7093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7094   *) ac_try_echo=$ac_try;;
7095 esac
7096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7097 $as_echo "$ac_try_echo") >&5
7098   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7099   ac_status=$?
7100   grep -v '^ *+' conftest.er1 >conftest.err
7101   rm -f conftest.er1
7102   cat conftest.err >&5
7103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104   (exit $ac_status); } >/dev/null && {
7105          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7106          test ! -s conftest.err
7107        }; then
7108   # Broken: success on invalid input.
7109 continue
7110 else
7111   $as_echo "$as_me: failed program was:" >&5
7112 sed 's/^/| /' conftest.$ac_ext >&5
7113
7114   # Passes both tests.
7115 ac_preproc_ok=:
7116 break
7117 fi
7118
7119 rm -f conftest.err conftest.$ac_ext
7120
7121 done
7122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7123 rm -f conftest.err conftest.$ac_ext
7124 if $ac_preproc_ok; then
7125   :
7126 else
7127   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7129 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7130 See \`config.log' for more details." >&5
7131 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7132 See \`config.log' for more details." >&2;}
7133    { (exit 1); exit 1; }; }; }
7134 fi
7135
7136 ac_ext=c
7137 ac_cpp='$CPP $CPPFLAGS'
7138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7141
7142
7143 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7144 $as_echo_n "checking for ANSI C header files... " >&6; }
7145 if test "${ac_cv_header_stdc+set}" = set; then
7146   $as_echo_n "(cached) " >&6
7147 else
7148   cat >conftest.$ac_ext <<_ACEOF
7149 /* confdefs.h.  */
7150 _ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h.  */
7154 #include <stdlib.h>
7155 #include <stdarg.h>
7156 #include <string.h>
7157 #include <float.h>
7158
7159 int
7160 main ()
7161 {
7162
7163   ;
7164   return 0;
7165 }
7166 _ACEOF
7167 rm -f conftest.$ac_objext
7168 if { (ac_try="$ac_compile"
7169 case "(($ac_try" in
7170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7171   *) ac_try_echo=$ac_try;;
7172 esac
7173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7174 $as_echo "$ac_try_echo") >&5
7175   (eval "$ac_compile") 2>conftest.er1
7176   ac_status=$?
7177   grep -v '^ *+' conftest.er1 >conftest.err
7178   rm -f conftest.er1
7179   cat conftest.err >&5
7180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181   (exit $ac_status); } && {
7182          test -z "$ac_c_werror_flag" ||
7183          test ! -s conftest.err
7184        } && test -s conftest.$ac_objext; then
7185   ac_cv_header_stdc=yes
7186 else
7187   $as_echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7189
7190         ac_cv_header_stdc=no
7191 fi
7192
7193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194
7195 if test $ac_cv_header_stdc = yes; then
7196   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7197   cat >conftest.$ac_ext <<_ACEOF
7198 /* confdefs.h.  */
7199 _ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h.  */
7203 #include <string.h>
7204
7205 _ACEOF
7206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7207   $EGREP "memchr" >/dev/null 2>&1; then
7208   :
7209 else
7210   ac_cv_header_stdc=no
7211 fi
7212 rm -f conftest*
7213
7214 fi
7215
7216 if test $ac_cv_header_stdc = yes; then
7217   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7218   cat >conftest.$ac_ext <<_ACEOF
7219 /* confdefs.h.  */
7220 _ACEOF
7221 cat confdefs.h >>conftest.$ac_ext
7222 cat >>conftest.$ac_ext <<_ACEOF
7223 /* end confdefs.h.  */
7224 #include <stdlib.h>
7225
7226 _ACEOF
7227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7228   $EGREP "free" >/dev/null 2>&1; then
7229   :
7230 else
7231   ac_cv_header_stdc=no
7232 fi
7233 rm -f conftest*
7234
7235 fi
7236
7237 if test $ac_cv_header_stdc = yes; then
7238   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7239   if test "$cross_compiling" = yes; then
7240   :
7241 else
7242   cat >conftest.$ac_ext <<_ACEOF
7243 /* confdefs.h.  */
7244 _ACEOF
7245 cat confdefs.h >>conftest.$ac_ext
7246 cat >>conftest.$ac_ext <<_ACEOF
7247 /* end confdefs.h.  */
7248 #include <ctype.h>
7249 #include <stdlib.h>
7250 #if ((' ' & 0x0FF) == 0x020)
7251 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7252 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7253 #else
7254 # define ISLOWER(c) \
7255                    (('a' <= (c) && (c) <= 'i') \
7256                      || ('j' <= (c) && (c) <= 'r') \
7257                      || ('s' <= (c) && (c) <= 'z'))
7258 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7259 #endif
7260
7261 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7262 int
7263 main ()
7264 {
7265   int i;
7266   for (i = 0; i < 256; i++)
7267     if (XOR (islower (i), ISLOWER (i))
7268         || toupper (i) != TOUPPER (i))
7269       return 2;
7270   return 0;
7271 }
7272 _ACEOF
7273 rm -f conftest$ac_exeext
7274 if { (ac_try="$ac_link"
7275 case "(($ac_try" in
7276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7277   *) ac_try_echo=$ac_try;;
7278 esac
7279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7280 $as_echo "$ac_try_echo") >&5
7281   (eval "$ac_link") 2>&5
7282   ac_status=$?
7283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7285   { (case "(($ac_try" in
7286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287   *) ac_try_echo=$ac_try;;
7288 esac
7289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7290 $as_echo "$ac_try_echo") >&5
7291   (eval "$ac_try") 2>&5
7292   ac_status=$?
7293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294   (exit $ac_status); }; }; then
7295   :
7296 else
7297   $as_echo "$as_me: program exited with status $ac_status" >&5
7298 $as_echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7300
7301 ( exit $ac_status )
7302 ac_cv_header_stdc=no
7303 fi
7304 rm -rf conftest.dSYM
7305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7306 fi
7307
7308
7309 fi
7310 fi
7311 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7312 $as_echo "$ac_cv_header_stdc" >&6; }
7313 if test $ac_cv_header_stdc = yes; then
7314
7315 cat >>confdefs.h <<\_ACEOF
7316 #define STDC_HEADERS 1
7317 _ACEOF
7318
7319 fi
7320
7321 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7332                   inttypes.h stdint.h unistd.h
7333 do
7334 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7335 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7336 $as_echo_n "checking for $ac_header... " >&6; }
7337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7338   $as_echo_n "(cached) " >&6
7339 else
7340   cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h.  */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h.  */
7346 $ac_includes_default
7347
7348 #include <$ac_header>
7349 _ACEOF
7350 rm -f conftest.$ac_objext
7351 if { (ac_try="$ac_compile"
7352 case "(($ac_try" in
7353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354   *) ac_try_echo=$ac_try;;
7355 esac
7356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7357 $as_echo "$ac_try_echo") >&5
7358   (eval "$ac_compile") 2>conftest.er1
7359   ac_status=$?
7360   grep -v '^ *+' conftest.er1 >conftest.err
7361   rm -f conftest.er1
7362   cat conftest.err >&5
7363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364   (exit $ac_status); } && {
7365          test -z "$ac_c_werror_flag" ||
7366          test ! -s conftest.err
7367        } && test -s conftest.$ac_objext; then
7368   eval "$as_ac_Header=yes"
7369 else
7370   $as_echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7372
7373         eval "$as_ac_Header=no"
7374 fi
7375
7376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377 fi
7378 ac_res=`eval 'as_val=${'$as_ac_Header'}
7379                  $as_echo "$as_val"'`
7380                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7381 $as_echo "$ac_res" >&6; }
7382 as_val=`eval 'as_val=${'$as_ac_Header'}
7383                  $as_echo "$as_val"'`
7384    if test "x$as_val" = x""yes; then
7385   cat >>confdefs.h <<_ACEOF
7386 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7387 _ACEOF
7388
7389 fi
7390
7391 done
7392
7393
7394
7395 for ac_header in dlfcn.h
7396 do
7397 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7398 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7399 $as_echo_n "checking for $ac_header... " >&6; }
7400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7401   $as_echo_n "(cached) " >&6
7402 else
7403   cat >conftest.$ac_ext <<_ACEOF
7404 /* confdefs.h.  */
7405 _ACEOF
7406 cat confdefs.h >>conftest.$ac_ext
7407 cat >>conftest.$ac_ext <<_ACEOF
7408 /* end confdefs.h.  */
7409 $ac_includes_default
7410
7411 #include <$ac_header>
7412 _ACEOF
7413 rm -f conftest.$ac_objext
7414 if { (ac_try="$ac_compile"
7415 case "(($ac_try" in
7416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7417   *) ac_try_echo=$ac_try;;
7418 esac
7419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7420 $as_echo "$ac_try_echo") >&5
7421   (eval "$ac_compile") 2>conftest.er1
7422   ac_status=$?
7423   grep -v '^ *+' conftest.er1 >conftest.err
7424   rm -f conftest.er1
7425   cat conftest.err >&5
7426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427   (exit $ac_status); } && {
7428          test -z "$ac_c_werror_flag" ||
7429          test ! -s conftest.err
7430        } && test -s conftest.$ac_objext; then
7431   eval "$as_ac_Header=yes"
7432 else
7433   $as_echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7435
7436         eval "$as_ac_Header=no"
7437 fi
7438
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 fi
7441 ac_res=`eval 'as_val=${'$as_ac_Header'}
7442                  $as_echo "$as_val"'`
7443                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7444 $as_echo "$ac_res" >&6; }
7445 as_val=`eval 'as_val=${'$as_ac_Header'}
7446                  $as_echo "$as_val"'`
7447    if test "x$as_val" = x""yes; then
7448   cat >>confdefs.h <<_ACEOF
7449 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7450 _ACEOF
7451
7452 fi
7453
7454 done
7455
7456
7457
7458 ac_ext=cpp
7459 ac_cpp='$CXXCPP $CPPFLAGS'
7460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7463 if test -z "$CXX"; then
7464   if test -n "$CCC"; then
7465     CXX=$CCC
7466   else
7467     if test -n "$ac_tool_prefix"; then
7468   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7469   do
7470     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7472 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7473 $as_echo_n "checking for $ac_word... " >&6; }
7474 if test "${ac_cv_prog_CXX+set}" = set; then
7475   $as_echo_n "(cached) " >&6
7476 else
7477   if test -n "$CXX"; then
7478   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7479 else
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 for as_dir in $PATH
7482 do
7483   IFS=$as_save_IFS
7484   test -z "$as_dir" && as_dir=.
7485   for ac_exec_ext in '' $ac_executable_extensions; do
7486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7487     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7488     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489     break 2
7490   fi
7491 done
7492 done
7493 IFS=$as_save_IFS
7494
7495 fi
7496 fi
7497 CXX=$ac_cv_prog_CXX
7498 if test -n "$CXX"; then
7499   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
7500 $as_echo "$CXX" >&6; }
7501 else
7502   { $as_echo "$as_me:$LINENO: result: no" >&5
7503 $as_echo "no" >&6; }
7504 fi
7505
7506
7507     test -n "$CXX" && break
7508   done
7509 fi
7510 if test -z "$CXX"; then
7511   ac_ct_CXX=$CXX
7512   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7513 do
7514   # Extract the first word of "$ac_prog", so it can be a program name with args.
7515 set dummy $ac_prog; ac_word=$2
7516 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7519   $as_echo_n "(cached) " >&6
7520 else
7521   if test -n "$ac_ct_CXX"; then
7522   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527   IFS=$as_save_IFS
7528   test -z "$as_dir" && as_dir=.
7529   for ac_exec_ext in '' $ac_executable_extensions; do
7530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7531     ac_cv_prog_ac_ct_CXX="$ac_prog"
7532     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533     break 2
7534   fi
7535 done
7536 done
7537 IFS=$as_save_IFS
7538
7539 fi
7540 fi
7541 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7542 if test -n "$ac_ct_CXX"; then
7543   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7544 $as_echo "$ac_ct_CXX" >&6; }
7545 else
7546   { $as_echo "$as_me:$LINENO: result: no" >&5
7547 $as_echo "no" >&6; }
7548 fi
7549
7550
7551   test -n "$ac_ct_CXX" && break
7552 done
7553
7554   if test "x$ac_ct_CXX" = x; then
7555     CXX="g++"
7556   else
7557     case $cross_compiling:$ac_tool_warned in
7558 yes:)
7559 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7561 ac_tool_warned=yes ;;
7562 esac
7563     CXX=$ac_ct_CXX
7564   fi
7565 fi
7566
7567   fi
7568 fi
7569 # Provide some information about the compiler.
7570 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
7571 set X $ac_compile
7572 ac_compiler=$2
7573 { (ac_try="$ac_compiler --version >&5"
7574 case "(($ac_try" in
7575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576   *) ac_try_echo=$ac_try;;
7577 esac
7578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7579 $as_echo "$ac_try_echo") >&5
7580   (eval "$ac_compiler --version >&5") 2>&5
7581   ac_status=$?
7582   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583   (exit $ac_status); }
7584 { (ac_try="$ac_compiler -v >&5"
7585 case "(($ac_try" in
7586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7587   *) ac_try_echo=$ac_try;;
7588 esac
7589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7590 $as_echo "$ac_try_echo") >&5
7591   (eval "$ac_compiler -v >&5") 2>&5
7592   ac_status=$?
7593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594   (exit $ac_status); }
7595 { (ac_try="$ac_compiler -V >&5"
7596 case "(($ac_try" in
7597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598   *) ac_try_echo=$ac_try;;
7599 esac
7600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7601 $as_echo "$ac_try_echo") >&5
7602   (eval "$ac_compiler -V >&5") 2>&5
7603   ac_status=$?
7604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605   (exit $ac_status); }
7606
7607 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7608 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7609 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7610   $as_echo_n "(cached) " >&6
7611 else
7612   cat >conftest.$ac_ext <<_ACEOF
7613 /* confdefs.h.  */
7614 _ACEOF
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h.  */
7618
7619 int
7620 main ()
7621 {
7622 #ifndef __GNUC__
7623        choke me
7624 #endif
7625
7626   ;
7627   return 0;
7628 }
7629 _ACEOF
7630 rm -f conftest.$ac_objext
7631 if { (ac_try="$ac_compile"
7632 case "(($ac_try" in
7633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7634   *) ac_try_echo=$ac_try;;
7635 esac
7636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7637 $as_echo "$ac_try_echo") >&5
7638   (eval "$ac_compile") 2>conftest.er1
7639   ac_status=$?
7640   grep -v '^ *+' conftest.er1 >conftest.err
7641   rm -f conftest.er1
7642   cat conftest.err >&5
7643   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644   (exit $ac_status); } && {
7645          test -z "$ac_cxx_werror_flag" ||
7646          test ! -s conftest.err
7647        } && test -s conftest.$ac_objext; then
7648   ac_compiler_gnu=yes
7649 else
7650   $as_echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.$ac_ext >&5
7652
7653         ac_compiler_gnu=no
7654 fi
7655
7656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7657 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7658
7659 fi
7660 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7661 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7662 if test $ac_compiler_gnu = yes; then
7663   GXX=yes
7664 else
7665   GXX=
7666 fi
7667 ac_test_CXXFLAGS=${CXXFLAGS+set}
7668 ac_save_CXXFLAGS=$CXXFLAGS
7669 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7670 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7671 if test "${ac_cv_prog_cxx_g+set}" = set; then
7672   $as_echo_n "(cached) " >&6
7673 else
7674   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7675    ac_cxx_werror_flag=yes
7676    ac_cv_prog_cxx_g=no
7677    CXXFLAGS="-g"
7678    cat >conftest.$ac_ext <<_ACEOF
7679 /* confdefs.h.  */
7680 _ACEOF
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h.  */
7684
7685 int
7686 main ()
7687 {
7688
7689   ;
7690   return 0;
7691 }
7692 _ACEOF
7693 rm -f conftest.$ac_objext
7694 if { (ac_try="$ac_compile"
7695 case "(($ac_try" in
7696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7697   *) ac_try_echo=$ac_try;;
7698 esac
7699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7700 $as_echo "$ac_try_echo") >&5
7701   (eval "$ac_compile") 2>conftest.er1
7702   ac_status=$?
7703   grep -v '^ *+' conftest.er1 >conftest.err
7704   rm -f conftest.er1
7705   cat conftest.err >&5
7706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707   (exit $ac_status); } && {
7708          test -z "$ac_cxx_werror_flag" ||
7709          test ! -s conftest.err
7710        } && test -s conftest.$ac_objext; then
7711   ac_cv_prog_cxx_g=yes
7712 else
7713   $as_echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7715
7716         CXXFLAGS=""
7717       cat >conftest.$ac_ext <<_ACEOF
7718 /* confdefs.h.  */
7719 _ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h.  */
7723
7724 int
7725 main ()
7726 {
7727
7728   ;
7729   return 0;
7730 }
7731 _ACEOF
7732 rm -f conftest.$ac_objext
7733 if { (ac_try="$ac_compile"
7734 case "(($ac_try" in
7735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7736   *) ac_try_echo=$ac_try;;
7737 esac
7738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7739 $as_echo "$ac_try_echo") >&5
7740   (eval "$ac_compile") 2>conftest.er1
7741   ac_status=$?
7742   grep -v '^ *+' conftest.er1 >conftest.err
7743   rm -f conftest.er1
7744   cat conftest.err >&5
7745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746   (exit $ac_status); } && {
7747          test -z "$ac_cxx_werror_flag" ||
7748          test ! -s conftest.err
7749        } && test -s conftest.$ac_objext; then
7750   :
7751 else
7752   $as_echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7754
7755         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7756          CXXFLAGS="-g"
7757          cat >conftest.$ac_ext <<_ACEOF
7758 /* confdefs.h.  */
7759 _ACEOF
7760 cat confdefs.h >>conftest.$ac_ext
7761 cat >>conftest.$ac_ext <<_ACEOF
7762 /* end confdefs.h.  */
7763
7764 int
7765 main ()
7766 {
7767
7768   ;
7769   return 0;
7770 }
7771 _ACEOF
7772 rm -f conftest.$ac_objext
7773 if { (ac_try="$ac_compile"
7774 case "(($ac_try" in
7775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776   *) ac_try_echo=$ac_try;;
7777 esac
7778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7779 $as_echo "$ac_try_echo") >&5
7780   (eval "$ac_compile") 2>conftest.er1
7781   ac_status=$?
7782   grep -v '^ *+' conftest.er1 >conftest.err
7783   rm -f conftest.er1
7784   cat conftest.err >&5
7785   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786   (exit $ac_status); } && {
7787          test -z "$ac_cxx_werror_flag" ||
7788          test ! -s conftest.err
7789        } && test -s conftest.$ac_objext; then
7790   ac_cv_prog_cxx_g=yes
7791 else
7792   $as_echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7794
7795
7796 fi
7797
7798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799 fi
7800
7801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7802 fi
7803
7804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7805    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7806 fi
7807 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7808 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7809 if test "$ac_test_CXXFLAGS" = set; then
7810   CXXFLAGS=$ac_save_CXXFLAGS
7811 elif test $ac_cv_prog_cxx_g = yes; then
7812   if test "$GXX" = yes; then
7813     CXXFLAGS="-g -O2"
7814   else
7815     CXXFLAGS="-g"
7816   fi
7817 else
7818   if test "$GXX" = yes; then
7819     CXXFLAGS="-O2"
7820   else
7821     CXXFLAGS=
7822   fi
7823 fi
7824 ac_ext=c
7825 ac_cpp='$CPP $CPPFLAGS'
7826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7829
7830 depcc="$CXX"  am_compiler_list=
7831
7832 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7833 $as_echo_n "checking dependency style of $depcc... " >&6; }
7834 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7835   $as_echo_n "(cached) " >&6
7836 else
7837   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7838   # We make a subdir and do the tests there.  Otherwise we can end up
7839   # making bogus files that we don't know about and never remove.  For
7840   # instance it was reported that on HP-UX the gcc test will end up
7841   # making a dummy file named `D' -- because `-MD' means `put the output
7842   # in D'.
7843   mkdir conftest.dir
7844   # Copy depcomp to subdir because otherwise we won't find it if we're
7845   # using a relative directory.
7846   cp "$am_depcomp" conftest.dir
7847   cd conftest.dir
7848   # We will build objects and dependencies in a subdirectory because
7849   # it helps to detect inapplicable dependency modes.  For instance
7850   # both Tru64's cc and ICC support -MD to output dependencies as a
7851   # side effect of compilation, but ICC will put the dependencies in
7852   # the current directory while Tru64 will put them in the object
7853   # directory.
7854   mkdir sub
7855
7856   am_cv_CXX_dependencies_compiler_type=none
7857   if test "$am_compiler_list" = ""; then
7858      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7859   fi
7860   am__universal=false
7861   case " $depcc " in #(
7862      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7863      esac
7864
7865   for depmode in $am_compiler_list; do
7866     # Setup a source with many dependencies, because some compilers
7867     # like to wrap large dependency lists on column 80 (with \), and
7868     # we should not choose a depcomp mode which is confused by this.
7869     #
7870     # We need to recreate these files for each test, as the compiler may
7871     # overwrite some of them when testing with obscure command lines.
7872     # This happens at least with the AIX C compiler.
7873     : > sub/conftest.c
7874     for i in 1 2 3 4 5 6; do
7875       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7876       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7877       # Solaris 8's {/usr,}/bin/sh.
7878       touch sub/conftst$i.h
7879     done
7880     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7881
7882     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7883     # mode.  It turns out that the SunPro C++ compiler does not properly
7884     # handle `-M -o', and we need to detect this.  Also, some Intel
7885     # versions had trouble with output in subdirs
7886     am__obj=sub/conftest.${OBJEXT-o}
7887     am__minus_obj="-o $am__obj"
7888     case $depmode in
7889     gcc)
7890       # This depmode causes a compiler race in universal mode.
7891       test "$am__universal" = false || continue
7892       ;;
7893     nosideeffect)
7894       # after this tag, mechanisms are not by side-effect, so they'll
7895       # only be used when explicitly requested
7896       if test "x$enable_dependency_tracking" = xyes; then
7897         continue
7898       else
7899         break
7900       fi
7901       ;;
7902     msvisualcpp | msvcmsys)
7903       # This compiler won't grok `-c -o', but also, the minuso test has
7904       # not run yet.  These depmodes are late enough in the game, and
7905       # so weak that their functioning should not be impacted.
7906       am__obj=conftest.${OBJEXT-o}
7907       am__minus_obj=
7908       ;;
7909     none) break ;;
7910     esac
7911     if depmode=$depmode \
7912        source=sub/conftest.c object=$am__obj \
7913        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7914        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7915          >/dev/null 2>conftest.err &&
7916        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7917        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7918        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7919        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7920       # icc doesn't choke on unknown options, it will just issue warnings
7921       # or remarks (even with -Werror).  So we grep stderr for any message
7922       # that says an option was ignored or not supported.
7923       # When given -MP, icc 7.0 and 7.1 complain thusly:
7924       #   icc: Command line warning: ignoring option '-M'; no argument required
7925       # The diagnosis changed in icc 8.0:
7926       #   icc: Command line remark: option '-MP' not supported
7927       if (grep 'ignoring option' conftest.err ||
7928           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7929         am_cv_CXX_dependencies_compiler_type=$depmode
7930         break
7931       fi
7932     fi
7933   done
7934
7935   cd ..
7936   rm -rf conftest.dir
7937 else
7938   am_cv_CXX_dependencies_compiler_type=none
7939 fi
7940
7941 fi
7942 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7943 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7944 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7945
7946  if
7947   test "x$enable_dependency_tracking" != xno \
7948   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7949   am__fastdepCXX_TRUE=
7950   am__fastdepCXX_FALSE='#'
7951 else
7952   am__fastdepCXX_TRUE='#'
7953   am__fastdepCXX_FALSE=
7954 fi
7955
7956
7957 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7958     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7959     (test "X$CXX" != "Xg++"))) ; then
7960   ac_ext=cpp
7961 ac_cpp='$CXXCPP $CPPFLAGS'
7962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7965 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7966 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7967 if test -z "$CXXCPP"; then
7968   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7969   $as_echo_n "(cached) " >&6
7970 else
7971       # Double quotes because CXXCPP needs to be expanded
7972     for CXXCPP in "$CXX -E" "/lib/cpp"
7973     do
7974       ac_preproc_ok=false
7975 for ac_cxx_preproc_warn_flag in '' yes
7976 do
7977   # Use a header file that comes with gcc, so configuring glibc
7978   # with a fresh cross-compiler works.
7979   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7980   # <limits.h> exists even on freestanding compilers.
7981   # On the NeXT, cc -E runs the code through the compiler's parser,
7982   # not just through cpp. "Syntax error" is here to catch this case.
7983   cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h.  */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h.  */
7989 #ifdef __STDC__
7990 # include <limits.h>
7991 #else
7992 # include <assert.h>
7993 #endif
7994                      Syntax error
7995 _ACEOF
7996 if { (ac_try="$ac_cpp conftest.$ac_ext"
7997 case "(($ac_try" in
7998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7999   *) ac_try_echo=$ac_try;;
8000 esac
8001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8002 $as_echo "$ac_try_echo") >&5
8003   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8004   ac_status=$?
8005   grep -v '^ *+' conftest.er1 >conftest.err
8006   rm -f conftest.er1
8007   cat conftest.err >&5
8008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); } >/dev/null && {
8010          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8011          test ! -s conftest.err
8012        }; then
8013   :
8014 else
8015   $as_echo "$as_me: failed program was:" >&5
8016 sed 's/^/| /' conftest.$ac_ext >&5
8017
8018   # Broken: fails on valid input.
8019 continue
8020 fi
8021
8022 rm -f conftest.err conftest.$ac_ext
8023
8024   # OK, works on sane cases.  Now check whether nonexistent headers
8025   # can be detected and how.
8026   cat >conftest.$ac_ext <<_ACEOF
8027 /* confdefs.h.  */
8028 _ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h.  */
8032 #include <ac_nonexistent.h>
8033 _ACEOF
8034 if { (ac_try="$ac_cpp conftest.$ac_ext"
8035 case "(($ac_try" in
8036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037   *) ac_try_echo=$ac_try;;
8038 esac
8039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8040 $as_echo "$ac_try_echo") >&5
8041   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8042   ac_status=$?
8043   grep -v '^ *+' conftest.er1 >conftest.err
8044   rm -f conftest.er1
8045   cat conftest.err >&5
8046   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047   (exit $ac_status); } >/dev/null && {
8048          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8049          test ! -s conftest.err
8050        }; then
8051   # Broken: success on invalid input.
8052 continue
8053 else
8054   $as_echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8056
8057   # Passes both tests.
8058 ac_preproc_ok=:
8059 break
8060 fi
8061
8062 rm -f conftest.err conftest.$ac_ext
8063
8064 done
8065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8066 rm -f conftest.err conftest.$ac_ext
8067 if $ac_preproc_ok; then
8068   break
8069 fi
8070
8071     done
8072     ac_cv_prog_CXXCPP=$CXXCPP
8073
8074 fi
8075   CXXCPP=$ac_cv_prog_CXXCPP
8076 else
8077   ac_cv_prog_CXXCPP=$CXXCPP
8078 fi
8079 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
8080 $as_echo "$CXXCPP" >&6; }
8081 ac_preproc_ok=false
8082 for ac_cxx_preproc_warn_flag in '' yes
8083 do
8084   # Use a header file that comes with gcc, so configuring glibc
8085   # with a fresh cross-compiler works.
8086   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8087   # <limits.h> exists even on freestanding compilers.
8088   # On the NeXT, cc -E runs the code through the compiler's parser,
8089   # not just through cpp. "Syntax error" is here to catch this case.
8090   cat >conftest.$ac_ext <<_ACEOF
8091 /* confdefs.h.  */
8092 _ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h.  */
8096 #ifdef __STDC__
8097 # include <limits.h>
8098 #else
8099 # include <assert.h>
8100 #endif
8101                      Syntax error
8102 _ACEOF
8103 if { (ac_try="$ac_cpp conftest.$ac_ext"
8104 case "(($ac_try" in
8105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106   *) ac_try_echo=$ac_try;;
8107 esac
8108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8109 $as_echo "$ac_try_echo") >&5
8110   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8111   ac_status=$?
8112   grep -v '^ *+' conftest.er1 >conftest.err
8113   rm -f conftest.er1
8114   cat conftest.err >&5
8115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116   (exit $ac_status); } >/dev/null && {
8117          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8118          test ! -s conftest.err
8119        }; then
8120   :
8121 else
8122   $as_echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8124
8125   # Broken: fails on valid input.
8126 continue
8127 fi
8128
8129 rm -f conftest.err conftest.$ac_ext
8130
8131   # OK, works on sane cases.  Now check whether nonexistent headers
8132   # can be detected and how.
8133   cat >conftest.$ac_ext <<_ACEOF
8134 /* confdefs.h.  */
8135 _ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h.  */
8139 #include <ac_nonexistent.h>
8140 _ACEOF
8141 if { (ac_try="$ac_cpp conftest.$ac_ext"
8142 case "(($ac_try" in
8143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144   *) ac_try_echo=$ac_try;;
8145 esac
8146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8147 $as_echo "$ac_try_echo") >&5
8148   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8149   ac_status=$?
8150   grep -v '^ *+' conftest.er1 >conftest.err
8151   rm -f conftest.er1
8152   cat conftest.err >&5
8153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154   (exit $ac_status); } >/dev/null && {
8155          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8156          test ! -s conftest.err
8157        }; then
8158   # Broken: success on invalid input.
8159 continue
8160 else
8161   $as_echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.$ac_ext >&5
8163
8164   # Passes both tests.
8165 ac_preproc_ok=:
8166 break
8167 fi
8168
8169 rm -f conftest.err conftest.$ac_ext
8170
8171 done
8172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8173 rm -f conftest.err conftest.$ac_ext
8174 if $ac_preproc_ok; then
8175   :
8176 else
8177   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8179 _lt_caught_CXX_error=yes; }
8180 fi
8181
8182 ac_ext=c
8183 ac_cpp='$CPP $CPPFLAGS'
8184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8187
8188 else
8189   _lt_caught_CXX_error=yes
8190 fi
8191
8192
8193
8194
8195
8196 # Set options
8197
8198
8199
8200         enable_dlopen=no
8201
8202
8203   enable_win32_dll=no
8204
8205
8206             # Check whether --enable-shared was given.
8207 if test "${enable_shared+set}" = set; then
8208   enableval=$enable_shared; p=${PACKAGE-default}
8209     case $enableval in
8210     yes) enable_shared=yes ;;
8211     no) enable_shared=no ;;
8212     *)
8213       enable_shared=no
8214       # Look at the argument we got.  We use all the common list separators.
8215       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8216       for pkg in $enableval; do
8217         IFS="$lt_save_ifs"
8218         if test "X$pkg" = "X$p"; then
8219           enable_shared=yes
8220         fi
8221       done
8222       IFS="$lt_save_ifs"
8223       ;;
8224     esac
8225 else
8226   enable_shared=yes
8227 fi
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237   # Check whether --enable-static was given.
8238 if test "${enable_static+set}" = set; then
8239   enableval=$enable_static; p=${PACKAGE-default}
8240     case $enableval in
8241     yes) enable_static=yes ;;
8242     no) enable_static=no ;;
8243     *)
8244      enable_static=no
8245       # Look at the argument we got.  We use all the common list separators.
8246       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8247       for pkg in $enableval; do
8248         IFS="$lt_save_ifs"
8249         if test "X$pkg" = "X$p"; then
8250           enable_static=yes
8251         fi
8252       done
8253       IFS="$lt_save_ifs"
8254       ;;
8255     esac
8256 else
8257   enable_static=yes
8258 fi
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269 # Check whether --with-pic was given.
8270 if test "${with_pic+set}" = set; then
8271   withval=$with_pic; pic_mode="$withval"
8272 else
8273   pic_mode=default
8274 fi
8275
8276
8277 test -z "$pic_mode" && pic_mode=default
8278
8279
8280
8281
8282
8283
8284
8285   # Check whether --enable-fast-install was given.
8286 if test "${enable_fast_install+set}" = set; then
8287   enableval=$enable_fast_install; p=${PACKAGE-default}
8288     case $enableval in
8289     yes) enable_fast_install=yes ;;
8290     no) enable_fast_install=no ;;
8291     *)
8292       enable_fast_install=no
8293       # Look at the argument we got.  We use all the common list separators.
8294       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8295       for pkg in $enableval; do
8296         IFS="$lt_save_ifs"
8297         if test "X$pkg" = "X$p"; then
8298           enable_fast_install=yes
8299         fi
8300       done
8301       IFS="$lt_save_ifs"
8302       ;;
8303     esac
8304 else
8305   enable_fast_install=yes
8306 fi
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318 # This can be used to rebuild libtool when needed
8319 LIBTOOL_DEPS="$ltmain"
8320
8321 # Always use our own libtool.
8322 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348 test -z "$LN_S" && LN_S="ln -s"
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363 if test -n "${ZSH_VERSION+set}" ; then
8364    setopt NO_GLOB_SUBST
8365 fi
8366
8367 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8368 $as_echo_n "checking for objdir... " >&6; }
8369 if test "${lt_cv_objdir+set}" = set; then
8370   $as_echo_n "(cached) " >&6
8371 else
8372   rm -f .libs 2>/dev/null
8373 mkdir .libs 2>/dev/null
8374 if test -d .libs; then
8375   lt_cv_objdir=.libs
8376 else
8377   # MS-DOS does not allow filenames that begin with a dot.
8378   lt_cv_objdir=_libs
8379 fi
8380 rmdir .libs 2>/dev/null
8381 fi
8382 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8383 $as_echo "$lt_cv_objdir" >&6; }
8384 objdir=$lt_cv_objdir
8385
8386
8387
8388
8389
8390 cat >>confdefs.h <<_ACEOF
8391 #define LT_OBJDIR "$lt_cv_objdir/"
8392 _ACEOF
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410 case $host_os in
8411 aix3*)
8412   # AIX sometimes has problems with the GCC collect2 program.  For some
8413   # reason, if we set the COLLECT_NAMES environment variable, the problems
8414   # vanish in a puff of smoke.
8415   if test "X${COLLECT_NAMES+set}" != Xset; then
8416     COLLECT_NAMES=
8417     export COLLECT_NAMES
8418   fi
8419   ;;
8420 esac
8421
8422 # Sed substitution that helps us do robust quoting.  It backslashifies
8423 # metacharacters that are still active within double-quoted strings.
8424 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8425
8426 # Same as above, but do not quote variable references.
8427 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8428
8429 # Sed substitution to delay expansion of an escaped shell variable in a
8430 # double_quote_subst'ed string.
8431 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8432
8433 # Sed substitution to delay expansion of an escaped single quote.
8434 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8435
8436 # Sed substitution to avoid accidental globbing in evaled expressions
8437 no_glob_subst='s/\*/\\\*/g'
8438
8439 # Global variables:
8440 ofile=libtool
8441 can_build_shared=yes
8442
8443 # All known linkers require a `.a' archive for static linking (except MSVC,
8444 # which needs '.lib').
8445 libext=a
8446
8447 with_gnu_ld="$lt_cv_prog_gnu_ld"
8448
8449 old_CC="$CC"
8450 old_CFLAGS="$CFLAGS"
8451
8452 # Set sane defaults for various variables
8453 test -z "$CC" && CC=cc
8454 test -z "$LTCC" && LTCC=$CC
8455 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8456 test -z "$LD" && LD=ld
8457 test -z "$ac_objext" && ac_objext=o
8458
8459 for cc_temp in $compiler""; do
8460   case $cc_temp in
8461     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8462     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8463     \-*) ;;
8464     *) break;;
8465   esac
8466 done
8467 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8468
8469
8470 # Only perform the check for file, if the check method requires it
8471 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8472 case $deplibs_check_method in
8473 file_magic*)
8474   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8475     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8476 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8477 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8478   $as_echo_n "(cached) " >&6
8479 else
8480   case $MAGIC_CMD in
8481 [\\/*] |  ?:[\\/]*)
8482   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8483   ;;
8484 *)
8485   lt_save_MAGIC_CMD="$MAGIC_CMD"
8486   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8487   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8488   for ac_dir in $ac_dummy; do
8489     IFS="$lt_save_ifs"
8490     test -z "$ac_dir" && ac_dir=.
8491     if test -f $ac_dir/${ac_tool_prefix}file; then
8492       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8493       if test -n "$file_magic_test_file"; then
8494         case $deplibs_check_method in
8495         "file_magic "*)
8496           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8497           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8498           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8499             $EGREP "$file_magic_regex" > /dev/null; then
8500             :
8501           else
8502             cat <<_LT_EOF 1>&2
8503
8504 *** Warning: the command libtool uses to detect shared libraries,
8505 *** $file_magic_cmd, produces output that libtool cannot recognize.
8506 *** The result is that libtool may fail to recognize shared libraries
8507 *** as such.  This will affect the creation of libtool libraries that
8508 *** depend on shared libraries, but programs linked with such libtool
8509 *** libraries will work regardless of this problem.  Nevertheless, you
8510 *** may want to report the problem to your system manager and/or to
8511 *** bug-libtool@gnu.org
8512
8513 _LT_EOF
8514           fi ;;
8515         esac
8516       fi
8517       break
8518     fi
8519   done
8520   IFS="$lt_save_ifs"
8521   MAGIC_CMD="$lt_save_MAGIC_CMD"
8522   ;;
8523 esac
8524 fi
8525
8526 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8527 if test -n "$MAGIC_CMD"; then
8528   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8529 $as_echo "$MAGIC_CMD" >&6; }
8530 else
8531   { $as_echo "$as_me:$LINENO: result: no" >&5
8532 $as_echo "no" >&6; }
8533 fi
8534
8535
8536
8537
8538
8539 if test -z "$lt_cv_path_MAGIC_CMD"; then
8540   if test -n "$ac_tool_prefix"; then
8541     { $as_echo "$as_me:$LINENO: checking for file" >&5
8542 $as_echo_n "checking for file... " >&6; }
8543 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8544   $as_echo_n "(cached) " >&6
8545 else
8546   case $MAGIC_CMD in
8547 [\\/*] |  ?:[\\/]*)
8548   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8549   ;;
8550 *)
8551   lt_save_MAGIC_CMD="$MAGIC_CMD"
8552   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8553   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8554   for ac_dir in $ac_dummy; do
8555     IFS="$lt_save_ifs"
8556     test -z "$ac_dir" && ac_dir=.
8557     if test -f $ac_dir/file; then
8558       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8559       if test -n "$file_magic_test_file"; then
8560         case $deplibs_check_method in
8561         "file_magic "*)
8562           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8563           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8564           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8565             $EGREP "$file_magic_regex" > /dev/null; then
8566             :
8567           else
8568             cat <<_LT_EOF 1>&2
8569
8570 *** Warning: the command libtool uses to detect shared libraries,
8571 *** $file_magic_cmd, produces output that libtool cannot recognize.
8572 *** The result is that libtool may fail to recognize shared libraries
8573 *** as such.  This will affect the creation of libtool libraries that
8574 *** depend on shared libraries, but programs linked with such libtool
8575 *** libraries will work regardless of this problem.  Nevertheless, you
8576 *** may want to report the problem to your system manager and/or to
8577 *** bug-libtool@gnu.org
8578
8579 _LT_EOF
8580           fi ;;
8581         esac
8582       fi
8583       break
8584     fi
8585   done
8586   IFS="$lt_save_ifs"
8587   MAGIC_CMD="$lt_save_MAGIC_CMD"
8588   ;;
8589 esac
8590 fi
8591
8592 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8593 if test -n "$MAGIC_CMD"; then
8594   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8595 $as_echo "$MAGIC_CMD" >&6; }
8596 else
8597   { $as_echo "$as_me:$LINENO: result: no" >&5
8598 $as_echo "no" >&6; }
8599 fi
8600
8601
8602   else
8603     MAGIC_CMD=:
8604   fi
8605 fi
8606
8607   fi
8608   ;;
8609 esac
8610
8611 # Use C for the default configuration in the libtool script
8612
8613 lt_save_CC="$CC"
8614 ac_ext=c
8615 ac_cpp='$CPP $CPPFLAGS'
8616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8619
8620
8621 # Source file extension for C test sources.
8622 ac_ext=c
8623
8624 # Object file extension for compiled C test sources.
8625 objext=o
8626 objext=$objext
8627
8628 # Code to be used in simple compile tests
8629 lt_simple_compile_test_code="int some_variable = 0;"
8630
8631 # Code to be used in simple link tests
8632 lt_simple_link_test_code='int main(){return(0);}'
8633
8634
8635
8636
8637
8638
8639
8640 # If no C compiler was specified, use CC.
8641 LTCC=${LTCC-"$CC"}
8642
8643 # If no C compiler flags were specified, use CFLAGS.
8644 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8645
8646 # Allow CC to be a program name with arguments.
8647 compiler=$CC
8648
8649 # Save the default compiler, since it gets overwritten when the other
8650 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8651 compiler_DEFAULT=$CC
8652
8653 # save warnings/boilerplate of simple test code
8654 ac_outfile=conftest.$ac_objext
8655 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8656 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8657 _lt_compiler_boilerplate=`cat conftest.err`
8658 $RM conftest*
8659
8660 ac_outfile=conftest.$ac_objext
8661 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8662 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8663 _lt_linker_boilerplate=`cat conftest.err`
8664 $RM -r conftest*
8665
8666
8667 if test -n "$compiler"; then
8668
8669 lt_prog_compiler_no_builtin_flag=
8670
8671 if test "$GCC" = yes; then
8672   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8673
8674   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8675 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8676 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8677   $as_echo_n "(cached) " >&6
8678 else
8679   lt_cv_prog_compiler_rtti_exceptions=no
8680    ac_outfile=conftest.$ac_objext
8681    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8682    lt_compiler_flag="-fno-rtti -fno-exceptions"
8683    # Insert the option either (1) after the last *FLAGS variable, or
8684    # (2) before a word containing "conftest.", or (3) at the end.
8685    # Note that $ac_compile itself does not contain backslashes and begins
8686    # with a dollar sign (not a hyphen), so the echo should work correctly.
8687    # The option is referenced via a variable to avoid confusing sed.
8688    lt_compile=`echo "$ac_compile" | $SED \
8689    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8690    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8691    -e 's:$: $lt_compiler_flag:'`
8692    (eval echo "\"\$as_me:8692: $lt_compile\"" >&5)
8693    (eval "$lt_compile" 2>conftest.err)
8694    ac_status=$?
8695    cat conftest.err >&5
8696    echo "$as_me:8696: \$? = $ac_status" >&5
8697    if (exit $ac_status) && test -s "$ac_outfile"; then
8698      # The compiler can only warn and ignore the option if not recognized
8699      # So say no if there are warnings other than the usual output.
8700      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8701      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8702      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8703        lt_cv_prog_compiler_rtti_exceptions=yes
8704      fi
8705    fi
8706    $RM conftest*
8707
8708 fi
8709 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8710 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8711
8712 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8713     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8714 else
8715     :
8716 fi
8717
8718 fi
8719
8720
8721
8722
8723
8724
8725   lt_prog_compiler_wl=
8726 lt_prog_compiler_pic=
8727 lt_prog_compiler_static=
8728
8729 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8730 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8731
8732   if test "$GCC" = yes; then
8733     lt_prog_compiler_wl='-Wl,'
8734     lt_prog_compiler_static='-static'
8735
8736     case $host_os in
8737       aix*)
8738       # All AIX code is PIC.
8739       if test "$host_cpu" = ia64; then
8740         # AIX 5 now supports IA64 processor
8741         lt_prog_compiler_static='-Bstatic'
8742       fi
8743       ;;
8744
8745     amigaos*)
8746       case $host_cpu in
8747       powerpc)
8748             # see comment about AmigaOS4 .so support
8749             lt_prog_compiler_pic='-fPIC'
8750         ;;
8751       m68k)
8752             # FIXME: we need at least 68020 code to build shared libraries, but
8753             # adding the `-m68020' flag to GCC prevents building anything better,
8754             # like `-m68040'.
8755             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8756         ;;
8757       esac
8758       ;;
8759
8760     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8761       # PIC is the default for these OSes.
8762       ;;
8763
8764     mingw* | cygwin* | pw32* | os2* | cegcc*)
8765       # This hack is so that the source file can tell whether it is being
8766       # built for inclusion in a dll (and should export symbols for example).
8767       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8768       # (--disable-auto-import) libraries
8769       lt_prog_compiler_pic='-DDLL_EXPORT'
8770       ;;
8771
8772     darwin* | rhapsody*)
8773       # PIC is the default on this platform
8774       # Common symbols not allowed in MH_DYLIB files
8775       lt_prog_compiler_pic='-fno-common'
8776       ;;
8777
8778     hpux*)
8779       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8780       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8781       # sets the default TLS model and affects inlining.
8782       case $host_cpu in
8783       hppa*64*)
8784         # +Z the default
8785         ;;
8786       *)
8787         lt_prog_compiler_pic='-fPIC'
8788         ;;
8789       esac
8790       ;;
8791
8792     interix[3-9]*)
8793       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8794       # Instead, we relocate shared libraries at runtime.
8795       ;;
8796
8797     msdosdjgpp*)
8798       # Just because we use GCC doesn't mean we suddenly get shared libraries
8799       # on systems that don't support them.
8800       lt_prog_compiler_can_build_shared=no
8801       enable_shared=no
8802       ;;
8803
8804     *nto* | *qnx*)
8805       # QNX uses GNU C++, but need to define -shared option too, otherwise
8806       # it will coredump.
8807       lt_prog_compiler_pic='-fPIC -shared'
8808       ;;
8809
8810     sysv4*MP*)
8811       if test -d /usr/nec; then
8812         lt_prog_compiler_pic=-Kconform_pic
8813       fi
8814       ;;
8815
8816     *)
8817       lt_prog_compiler_pic='-fPIC'
8818       ;;
8819     esac
8820   else
8821     # PORTME Check for flag to pass linker flags through the system compiler.
8822     case $host_os in
8823     aix*)
8824       lt_prog_compiler_wl='-Wl,'
8825       if test "$host_cpu" = ia64; then
8826         # AIX 5 now supports IA64 processor
8827         lt_prog_compiler_static='-Bstatic'
8828       else
8829         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8830       fi
8831       ;;
8832
8833     mingw* | cygwin* | pw32* | os2* | cegcc*)
8834       # This hack is so that the source file can tell whether it is being
8835       # built for inclusion in a dll (and should export symbols for example).
8836       lt_prog_compiler_pic='-DDLL_EXPORT'
8837       ;;
8838
8839     hpux9* | hpux10* | hpux11*)
8840       lt_prog_compiler_wl='-Wl,'
8841       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8842       # not for PA HP-UX.
8843       case $host_cpu in
8844       hppa*64*|ia64*)
8845         # +Z the default
8846         ;;
8847       *)
8848         lt_prog_compiler_pic='+Z'
8849         ;;
8850       esac
8851       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8852       lt_prog_compiler_static='${wl}-a ${wl}archive'
8853       ;;
8854
8855     irix5* | irix6* | nonstopux*)
8856       lt_prog_compiler_wl='-Wl,'
8857       # PIC (with -KPIC) is the default.
8858       lt_prog_compiler_static='-non_shared'
8859       ;;
8860
8861     linux* | k*bsd*-gnu)
8862       case $cc_basename in
8863       # old Intel for x86_64 which still supported -KPIC.
8864       ecc*)
8865         lt_prog_compiler_wl='-Wl,'
8866         lt_prog_compiler_pic='-KPIC'
8867         lt_prog_compiler_static='-static'
8868         ;;
8869       # icc used to be incompatible with GCC.
8870       # ICC 10 doesn't accept -KPIC any more.
8871       icc* | ifort*)
8872         lt_prog_compiler_wl='-Wl,'
8873         lt_prog_compiler_pic='-fPIC'
8874         lt_prog_compiler_static='-static'
8875         ;;
8876       # Lahey Fortran 8.1.
8877       lf95*)
8878         lt_prog_compiler_wl='-Wl,'
8879         lt_prog_compiler_pic='--shared'
8880         lt_prog_compiler_static='--static'
8881         ;;
8882       pgcc* | pgf77* | pgf90* | pgf95*)
8883         # Portland Group compilers (*not* the Pentium gcc compiler,
8884         # which looks to be a dead project)
8885         lt_prog_compiler_wl='-Wl,'
8886         lt_prog_compiler_pic='-fpic'
8887         lt_prog_compiler_static='-Bstatic'
8888         ;;
8889       ccc*)
8890         lt_prog_compiler_wl='-Wl,'
8891         # All Alpha code is PIC.
8892         lt_prog_compiler_static='-non_shared'
8893         ;;
8894       xl*)
8895         # IBM XL C 8.0/Fortran 10.1 on PPC
8896         lt_prog_compiler_wl='-Wl,'
8897         lt_prog_compiler_pic='-qpic'
8898         lt_prog_compiler_static='-qstaticlink'
8899         ;;
8900       *)
8901         case `$CC -V 2>&1 | sed 5q` in
8902         *Sun\ C*)
8903           # Sun C 5.9
8904           lt_prog_compiler_pic='-KPIC'
8905           lt_prog_compiler_static='-Bstatic'
8906           lt_prog_compiler_wl='-Wl,'
8907           ;;
8908         *Sun\ F*)
8909           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8910           lt_prog_compiler_pic='-KPIC'
8911           lt_prog_compiler_static='-Bstatic'
8912           lt_prog_compiler_wl=''
8913           ;;
8914         esac
8915         ;;
8916       esac
8917       ;;
8918
8919     newsos6)
8920       lt_prog_compiler_pic='-KPIC'
8921       lt_prog_compiler_static='-Bstatic'
8922       ;;
8923
8924     *nto* | *qnx*)
8925       # QNX uses GNU C++, but need to define -shared option too, otherwise
8926       # it will coredump.
8927       lt_prog_compiler_pic='-fPIC -shared'
8928       ;;
8929
8930     osf3* | osf4* | osf5*)
8931       lt_prog_compiler_wl='-Wl,'
8932       # All OSF/1 code is PIC.
8933       lt_prog_compiler_static='-non_shared'
8934       ;;
8935
8936     rdos*)
8937       lt_prog_compiler_static='-non_shared'
8938       ;;
8939
8940     solaris*)
8941       lt_prog_compiler_pic='-KPIC'
8942       lt_prog_compiler_static='-Bstatic'
8943       case $cc_basename in
8944       f77* | f90* | f95*)
8945         lt_prog_compiler_wl='-Qoption ld ';;
8946       *)
8947         lt_prog_compiler_wl='-Wl,';;
8948       esac
8949       ;;
8950
8951     sunos4*)
8952       lt_prog_compiler_wl='-Qoption ld '
8953       lt_prog_compiler_pic='-PIC'
8954       lt_prog_compiler_static='-Bstatic'
8955       ;;
8956
8957     sysv4 | sysv4.2uw2* | sysv4.3*)
8958       lt_prog_compiler_wl='-Wl,'
8959       lt_prog_compiler_pic='-KPIC'
8960       lt_prog_compiler_static='-Bstatic'
8961       ;;
8962
8963     sysv4*MP*)
8964       if test -d /usr/nec ;then
8965         lt_prog_compiler_pic='-Kconform_pic'
8966         lt_prog_compiler_static='-Bstatic'
8967       fi
8968       ;;
8969
8970     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8971       lt_prog_compiler_wl='-Wl,'
8972       lt_prog_compiler_pic='-KPIC'
8973       lt_prog_compiler_static='-Bstatic'
8974       ;;
8975
8976     unicos*)
8977       lt_prog_compiler_wl='-Wl,'
8978       lt_prog_compiler_can_build_shared=no
8979       ;;
8980
8981     uts4*)
8982       lt_prog_compiler_pic='-pic'
8983       lt_prog_compiler_static='-Bstatic'
8984       ;;
8985
8986     *)
8987       lt_prog_compiler_can_build_shared=no
8988       ;;
8989     esac
8990   fi
8991
8992 case $host_os in
8993   # For platforms which do not support PIC, -DPIC is meaningless:
8994   *djgpp*)
8995     lt_prog_compiler_pic=
8996     ;;
8997   *)
8998     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8999     ;;
9000 esac
9001 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9002 $as_echo "$lt_prog_compiler_pic" >&6; }
9003
9004
9005
9006
9007
9008
9009 #
9010 # Check to make sure the PIC flag actually works.
9011 #
9012 if test -n "$lt_prog_compiler_pic"; then
9013   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9014 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9015 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9016   $as_echo_n "(cached) " >&6
9017 else
9018   lt_cv_prog_compiler_pic_works=no
9019    ac_outfile=conftest.$ac_objext
9020    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9021    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9022    # Insert the option either (1) after the last *FLAGS variable, or
9023    # (2) before a word containing "conftest.", or (3) at the end.
9024    # Note that $ac_compile itself does not contain backslashes and begins
9025    # with a dollar sign (not a hyphen), so the echo should work correctly.
9026    # The option is referenced via a variable to avoid confusing sed.
9027    lt_compile=`echo "$ac_compile" | $SED \
9028    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9029    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9030    -e 's:$: $lt_compiler_flag:'`
9031    (eval echo "\"\$as_me:9031: $lt_compile\"" >&5)
9032    (eval "$lt_compile" 2>conftest.err)
9033    ac_status=$?
9034    cat conftest.err >&5
9035    echo "$as_me:9035: \$? = $ac_status" >&5
9036    if (exit $ac_status) && test -s "$ac_outfile"; then
9037      # The compiler can only warn and ignore the option if not recognized
9038      # So say no if there are warnings other than the usual output.
9039      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9040      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9041      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9042        lt_cv_prog_compiler_pic_works=yes
9043      fi
9044    fi
9045    $RM conftest*
9046
9047 fi
9048 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9049 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9050
9051 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9052     case $lt_prog_compiler_pic in
9053      "" | " "*) ;;
9054      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9055      esac
9056 else
9057     lt_prog_compiler_pic=
9058      lt_prog_compiler_can_build_shared=no
9059 fi
9060
9061 fi
9062
9063
9064
9065
9066
9067
9068 #
9069 # Check to make sure the static flag actually works.
9070 #
9071 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9072 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9073 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9074 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9075   $as_echo_n "(cached) " >&6
9076 else
9077   lt_cv_prog_compiler_static_works=no
9078    save_LDFLAGS="$LDFLAGS"
9079    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9080    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9081    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9082      # The linker can only warn and ignore the option if not recognized
9083      # So say no if there are warnings
9084      if test -s conftest.err; then
9085        # Append any errors to the config.log.
9086        cat conftest.err 1>&5
9087        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9088        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9089        if diff conftest.exp conftest.er2 >/dev/null; then
9090          lt_cv_prog_compiler_static_works=yes
9091        fi
9092      else
9093        lt_cv_prog_compiler_static_works=yes
9094      fi
9095    fi
9096    $RM -r conftest*
9097    LDFLAGS="$save_LDFLAGS"
9098
9099 fi
9100 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9101 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9102
9103 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9104     :
9105 else
9106     lt_prog_compiler_static=
9107 fi
9108
9109
9110
9111
9112
9113
9114
9115   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9116 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9117 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9118   $as_echo_n "(cached) " >&6
9119 else
9120   lt_cv_prog_compiler_c_o=no
9121    $RM -r conftest 2>/dev/null
9122    mkdir conftest
9123    cd conftest
9124    mkdir out
9125    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9126
9127    lt_compiler_flag="-o out/conftest2.$ac_objext"
9128    # Insert the option either (1) after the last *FLAGS variable, or
9129    # (2) before a word containing "conftest.", or (3) at the end.
9130    # Note that $ac_compile itself does not contain backslashes and begins
9131    # with a dollar sign (not a hyphen), so the echo should work correctly.
9132    lt_compile=`echo "$ac_compile" | $SED \
9133    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9134    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9135    -e 's:$: $lt_compiler_flag:'`
9136    (eval echo "\"\$as_me:9136: $lt_compile\"" >&5)
9137    (eval "$lt_compile" 2>out/conftest.err)
9138    ac_status=$?
9139    cat out/conftest.err >&5
9140    echo "$as_me:9140: \$? = $ac_status" >&5
9141    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9142    then
9143      # The compiler can only warn and ignore the option if not recognized
9144      # So say no if there are warnings
9145      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9146      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9147      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9148        lt_cv_prog_compiler_c_o=yes
9149      fi
9150    fi
9151    chmod u+w . 2>&5
9152    $RM conftest*
9153    # SGI C++ compiler will create directory out/ii_files/ for
9154    # template instantiation
9155    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9156    $RM out/* && rmdir out
9157    cd ..
9158    $RM -r conftest
9159    $RM conftest*
9160
9161 fi
9162 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9163 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9164
9165
9166
9167
9168
9169
9170   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9171 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9172 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9173   $as_echo_n "(cached) " >&6
9174 else
9175   lt_cv_prog_compiler_c_o=no
9176    $RM -r conftest 2>/dev/null
9177    mkdir conftest
9178    cd conftest
9179    mkdir out
9180    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9181
9182    lt_compiler_flag="-o out/conftest2.$ac_objext"
9183    # Insert the option either (1) after the last *FLAGS variable, or
9184    # (2) before a word containing "conftest.", or (3) at the end.
9185    # Note that $ac_compile itself does not contain backslashes and begins
9186    # with a dollar sign (not a hyphen), so the echo should work correctly.
9187    lt_compile=`echo "$ac_compile" | $SED \
9188    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9189    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9190    -e 's:$: $lt_compiler_flag:'`
9191    (eval echo "\"\$as_me:9191: $lt_compile\"" >&5)
9192    (eval "$lt_compile" 2>out/conftest.err)
9193    ac_status=$?
9194    cat out/conftest.err >&5
9195    echo "$as_me:9195: \$? = $ac_status" >&5
9196    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9197    then
9198      # The compiler can only warn and ignore the option if not recognized
9199      # So say no if there are warnings
9200      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9201      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9202      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9203        lt_cv_prog_compiler_c_o=yes
9204      fi
9205    fi
9206    chmod u+w . 2>&5
9207    $RM conftest*
9208    # SGI C++ compiler will create directory out/ii_files/ for
9209    # template instantiation
9210    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9211    $RM out/* && rmdir out
9212    cd ..
9213    $RM -r conftest
9214    $RM conftest*
9215
9216 fi
9217 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9218 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9219
9220
9221
9222
9223 hard_links="nottested"
9224 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9225   # do not overwrite the value of need_locks provided by the user
9226   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9227 $as_echo_n "checking if we can lock with hard links... " >&6; }
9228   hard_links=yes
9229   $RM conftest*
9230   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9231   touch conftest.a
9232   ln conftest.a conftest.b 2>&5 || hard_links=no
9233   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9234   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9235 $as_echo "$hard_links" >&6; }
9236   if test "$hard_links" = no; then
9237     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9238 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9239     need_locks=warn
9240   fi
9241 else
9242   need_locks=no
9243 fi
9244
9245
9246
9247
9248
9249
9250   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9251 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9252
9253   runpath_var=
9254   allow_undefined_flag=
9255   always_export_symbols=no
9256   archive_cmds=
9257   archive_expsym_cmds=
9258   compiler_needs_object=no
9259   enable_shared_with_static_runtimes=no
9260   export_dynamic_flag_spec=
9261   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9262   hardcode_automatic=no
9263   hardcode_direct=no
9264   hardcode_direct_absolute=no
9265   hardcode_libdir_flag_spec=
9266   hardcode_libdir_flag_spec_ld=
9267   hardcode_libdir_separator=
9268   hardcode_minus_L=no
9269   hardcode_shlibpath_var=unsupported
9270   inherit_rpath=no
9271   link_all_deplibs=unknown
9272   module_cmds=
9273   module_expsym_cmds=
9274   old_archive_from_new_cmds=
9275   old_archive_from_expsyms_cmds=
9276   thread_safe_flag_spec=
9277   whole_archive_flag_spec=
9278   # include_expsyms should be a list of space-separated symbols to be *always*
9279   # included in the symbol list
9280   include_expsyms=
9281   # exclude_expsyms can be an extended regexp of symbols to exclude
9282   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9283   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9284   # as well as any symbol that contains `d'.
9285   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9286   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9287   # platforms (ab)use it in PIC code, but their linkers get confused if
9288   # the symbol is explicitly referenced.  Since portable code cannot
9289   # rely on this symbol name, it's probably fine to never include it in
9290   # preloaded symbol tables.
9291   # Exclude shared library initialization/finalization symbols.
9292   extract_expsyms_cmds=
9293
9294   case $host_os in
9295   cygwin* | mingw* | pw32* | cegcc*)
9296     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9297     # When not using gcc, we currently assume that we are using
9298     # Microsoft Visual C++.
9299     if test "$GCC" != yes; then
9300       with_gnu_ld=no
9301     fi
9302     ;;
9303   interix*)
9304     # we just hope/assume this is gcc and not c89 (= MSVC++)
9305     with_gnu_ld=yes
9306     ;;
9307   openbsd*)
9308     with_gnu_ld=no
9309     ;;
9310   esac
9311
9312   ld_shlibs=yes
9313   if test "$with_gnu_ld" = yes; then
9314     # If archive_cmds runs LD, not CC, wlarc should be empty
9315     wlarc='${wl}'
9316
9317     # Set some defaults for GNU ld with shared library support. These
9318     # are reset later if shared libraries are not supported. Putting them
9319     # here allows them to be overridden if necessary.
9320     runpath_var=LD_RUN_PATH
9321     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9322     export_dynamic_flag_spec='${wl}--export-dynamic'
9323     # ancient GNU ld didn't support --whole-archive et. al.
9324     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9325       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9326     else
9327       whole_archive_flag_spec=
9328     fi
9329     supports_anon_versioning=no
9330     case `$LD -v 2>&1` in
9331       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9332       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9333       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9334       *\ 2.11.*) ;; # other 2.11 versions
9335       *) supports_anon_versioning=yes ;;
9336     esac
9337
9338     # See if GNU ld supports shared libraries.
9339     case $host_os in
9340     aix[3-9]*)
9341       # On AIX/PPC, the GNU linker is very broken
9342       if test "$host_cpu" != ia64; then
9343         ld_shlibs=no
9344         cat <<_LT_EOF 1>&2
9345
9346 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9347 *** to be unable to reliably create shared libraries on AIX.
9348 *** Therefore, libtool is disabling shared libraries support.  If you
9349 *** really care for shared libraries, you may want to modify your PATH
9350 *** so that a non-GNU linker is found, and then restart.
9351
9352 _LT_EOF
9353       fi
9354       ;;
9355
9356     amigaos*)
9357       case $host_cpu in
9358       powerpc)
9359             # see comment about AmigaOS4 .so support
9360             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9361             archive_expsym_cmds=''
9362         ;;
9363       m68k)
9364             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)'
9365             hardcode_libdir_flag_spec='-L$libdir'
9366             hardcode_minus_L=yes
9367         ;;
9368       esac
9369       ;;
9370
9371     beos*)
9372       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9373         allow_undefined_flag=unsupported
9374         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9375         # support --undefined.  This deserves some investigation.  FIXME
9376         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9377       else
9378         ld_shlibs=no
9379       fi
9380       ;;
9381
9382     cygwin* | mingw* | pw32* | cegcc*)
9383       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9384       # as there is no search path for DLLs.
9385       hardcode_libdir_flag_spec='-L$libdir'
9386       allow_undefined_flag=unsupported
9387       always_export_symbols=no
9388       enable_shared_with_static_runtimes=yes
9389       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9390
9391       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9392         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9393         # If the export-symbols file already is a .def file (1st line
9394         # is EXPORTS), use it as is; otherwise, prepend...
9395         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9396           cp $export_symbols $output_objdir/$soname.def;
9397         else
9398           echo EXPORTS > $output_objdir/$soname.def;
9399           cat $export_symbols >> $output_objdir/$soname.def;
9400         fi~
9401         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9402       else
9403         ld_shlibs=no
9404       fi
9405       ;;
9406
9407     interix[3-9]*)
9408       hardcode_direct=no
9409       hardcode_shlibpath_var=no
9410       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9411       export_dynamic_flag_spec='${wl}-E'
9412       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9413       # Instead, shared libraries are loaded at an image base (0x10000000 by
9414       # default) and relocated if they conflict, which is a slow very memory
9415       # consuming and fragmenting process.  To avoid this, we pick a random,
9416       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9417       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9418       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9419       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'
9420       ;;
9421
9422     gnu* | linux* | tpf* | k*bsd*-gnu)
9423       tmp_diet=no
9424       if test "$host_os" = linux-dietlibc; then
9425         case $cc_basename in
9426           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9427         esac
9428       fi
9429       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9430          && test "$tmp_diet" = no
9431       then
9432         tmp_addflag=
9433         tmp_sharedflag='-shared'
9434         case $cc_basename,$host_cpu in
9435         pgcc*)                          # Portland Group C compiler
9436           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'
9437           tmp_addflag=' $pic_flag'
9438           ;;
9439         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9440           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'
9441           tmp_addflag=' $pic_flag -Mnomain' ;;
9442         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9443           tmp_addflag=' -i_dynamic' ;;
9444         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9445           tmp_addflag=' -i_dynamic -nofor_main' ;;
9446         ifc* | ifort*)                  # Intel Fortran compiler
9447           tmp_addflag=' -nofor_main' ;;
9448         lf95*)                          # Lahey Fortran 8.1
9449           whole_archive_flag_spec=
9450           tmp_sharedflag='--shared' ;;
9451         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9452           tmp_sharedflag='-qmkshrobj'
9453           tmp_addflag= ;;
9454         esac
9455         case `$CC -V 2>&1 | sed 5q` in
9456         *Sun\ C*)                       # Sun C 5.9
9457           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'
9458           compiler_needs_object=yes
9459           tmp_sharedflag='-G' ;;
9460         *Sun\ F*)                       # Sun Fortran 8.3
9461           tmp_sharedflag='-G' ;;
9462         esac
9463         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9464
9465         if test "x$supports_anon_versioning" = xyes; then
9466           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9467             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9468             echo "local: *; };" >> $output_objdir/$libname.ver~
9469             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9470         fi
9471
9472         case $cc_basename in
9473         xlf*)
9474           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9475           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9476           hardcode_libdir_flag_spec=
9477           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9478           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9479           if test "x$supports_anon_versioning" = xyes; then
9480             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9481               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9482               echo "local: *; };" >> $output_objdir/$libname.ver~
9483               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9484           fi
9485           ;;
9486         esac
9487       else
9488         ld_shlibs=no
9489       fi
9490       ;;
9491
9492     netbsd*)
9493       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9494         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9495         wlarc=
9496       else
9497         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9498         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9499       fi
9500       ;;
9501
9502     solaris*)
9503       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9504         ld_shlibs=no
9505         cat <<_LT_EOF 1>&2
9506
9507 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9508 *** create shared libraries on Solaris systems.  Therefore, libtool
9509 *** is disabling shared libraries support.  We urge you to upgrade GNU
9510 *** binutils to release 2.9.1 or newer.  Another option is to modify
9511 *** your PATH or compiler configuration so that the native linker is
9512 *** used, and then restart.
9513
9514 _LT_EOF
9515       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9516         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9517         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9518       else
9519         ld_shlibs=no
9520       fi
9521       ;;
9522
9523     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9524       case `$LD -v 2>&1` in
9525         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9526         ld_shlibs=no
9527         cat <<_LT_EOF 1>&2
9528
9529 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9530 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9531 *** is disabling shared libraries support.  We urge you to upgrade GNU
9532 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9533 *** your PATH or compiler configuration so that the native linker is
9534 *** used, and then restart.
9535
9536 _LT_EOF
9537         ;;
9538         *)
9539           # For security reasons, it is highly recommended that you always
9540           # use absolute paths for naming shared libraries, and exclude the
9541           # DT_RUNPATH tag from executables and libraries.  But doing so
9542           # requires that you compile everything twice, which is a pain.
9543           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9544             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9545             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9546             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9547           else
9548             ld_shlibs=no
9549           fi
9550         ;;
9551       esac
9552       ;;
9553
9554     sunos4*)
9555       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9556       wlarc=
9557       hardcode_direct=yes
9558       hardcode_shlibpath_var=no
9559       ;;
9560
9561     *)
9562       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9563         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9564         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9565       else
9566         ld_shlibs=no
9567       fi
9568       ;;
9569     esac
9570
9571     if test "$ld_shlibs" = no; then
9572       runpath_var=
9573       hardcode_libdir_flag_spec=
9574       export_dynamic_flag_spec=
9575       whole_archive_flag_spec=
9576     fi
9577   else
9578     # PORTME fill in a description of your system's linker (not GNU ld)
9579     case $host_os in
9580     aix3*)
9581       allow_undefined_flag=unsupported
9582       always_export_symbols=yes
9583       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'
9584       # Note: this linker hardcodes the directories in LIBPATH if there
9585       # are no directories specified by -L.
9586       hardcode_minus_L=yes
9587       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9588         # Neither direct hardcoding nor static linking is supported with a
9589         # broken collect2.
9590         hardcode_direct=unsupported
9591       fi
9592       ;;
9593
9594     aix[4-9]*)
9595       if test "$host_cpu" = ia64; then
9596         # On IA64, the linker does run time linking by default, so we don't
9597         # have to do anything special.
9598         aix_use_runtimelinking=no
9599         exp_sym_flag='-Bexport'
9600         no_entry_flag=""
9601       else
9602         # If we're using GNU nm, then we don't want the "-C" option.
9603         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9604         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9605           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'
9606         else
9607           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'
9608         fi
9609         aix_use_runtimelinking=no
9610
9611         # Test if we are trying to use run time linking or normal
9612         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9613         # need to do runtime linking.
9614         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9615           for ld_flag in $LDFLAGS; do
9616           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9617             aix_use_runtimelinking=yes
9618             break
9619           fi
9620           done
9621           ;;
9622         esac
9623
9624         exp_sym_flag='-bexport'
9625         no_entry_flag='-bnoentry'
9626       fi
9627
9628       # When large executables or shared objects are built, AIX ld can
9629       # have problems creating the table of contents.  If linking a library
9630       # or program results in "error TOC overflow" add -mminimal-toc to
9631       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9632       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9633
9634       archive_cmds=''
9635       hardcode_direct=yes
9636       hardcode_direct_absolute=yes
9637       hardcode_libdir_separator=':'
9638       link_all_deplibs=yes
9639       file_list_spec='${wl}-f,'
9640
9641       if test "$GCC" = yes; then
9642         case $host_os in aix4.[012]|aix4.[012].*)
9643         # We only want to do this on AIX 4.2 and lower, the check
9644         # below for broken collect2 doesn't work under 4.3+
9645           collect2name=`${CC} -print-prog-name=collect2`
9646           if test -f "$collect2name" &&
9647            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9648           then
9649           # We have reworked collect2
9650           :
9651           else
9652           # We have old collect2
9653           hardcode_direct=unsupported
9654           # It fails to find uninstalled libraries when the uninstalled
9655           # path is not listed in the libpath.  Setting hardcode_minus_L
9656           # to unsupported forces relinking
9657           hardcode_minus_L=yes
9658           hardcode_libdir_flag_spec='-L$libdir'
9659           hardcode_libdir_separator=
9660           fi
9661           ;;
9662         esac
9663         shared_flag='-shared'
9664         if test "$aix_use_runtimelinking" = yes; then
9665           shared_flag="$shared_flag "'${wl}-G'
9666         fi
9667       else
9668         # not using gcc
9669         if test "$host_cpu" = ia64; then
9670         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9671         # chokes on -Wl,-G. The following line is correct:
9672           shared_flag='-G'
9673         else
9674           if test "$aix_use_runtimelinking" = yes; then
9675             shared_flag='${wl}-G'
9676           else
9677             shared_flag='${wl}-bM:SRE'
9678           fi
9679         fi
9680       fi
9681
9682       export_dynamic_flag_spec='${wl}-bexpall'
9683       # It seems that -bexpall does not export symbols beginning with
9684       # underscore (_), so it is better to generate a list of symbols to export.
9685       always_export_symbols=yes
9686       if test "$aix_use_runtimelinking" = yes; then
9687         # Warning - without using the other runtime loading flags (-brtl),
9688         # -berok will link without error, but may produce a broken library.
9689         allow_undefined_flag='-berok'
9690         # Determine the default libpath from the value encoded in an
9691         # empty executable.
9692         cat >conftest.$ac_ext <<_ACEOF
9693 /* confdefs.h.  */
9694 _ACEOF
9695 cat confdefs.h >>conftest.$ac_ext
9696 cat >>conftest.$ac_ext <<_ACEOF
9697 /* end confdefs.h.  */
9698
9699 int
9700 main ()
9701 {
9702
9703   ;
9704   return 0;
9705 }
9706 _ACEOF
9707 rm -f conftest.$ac_objext conftest$ac_exeext
9708 if { (ac_try="$ac_link"
9709 case "(($ac_try" in
9710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711   *) ac_try_echo=$ac_try;;
9712 esac
9713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9714 $as_echo "$ac_try_echo") >&5
9715   (eval "$ac_link") 2>conftest.er1
9716   ac_status=$?
9717   grep -v '^ *+' conftest.er1 >conftest.err
9718   rm -f conftest.er1
9719   cat conftest.err >&5
9720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); } && {
9722          test -z "$ac_c_werror_flag" ||
9723          test ! -s conftest.err
9724        } && test -s conftest$ac_exeext && {
9725          test "$cross_compiling" = yes ||
9726          $as_test_x conftest$ac_exeext
9727        }; then
9728
9729 lt_aix_libpath_sed='
9730     /Import File Strings/,/^$/ {
9731         /^0/ {
9732             s/^0  *\(.*\)$/\1/
9733             p
9734         }
9735     }'
9736 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9737 # Check for a 64-bit object if we didn't find anything.
9738 if test -z "$aix_libpath"; then
9739   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9740 fi
9741 else
9742   $as_echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9744
9745
9746 fi
9747
9748 rm -rf conftest.dSYM
9749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9750       conftest$ac_exeext conftest.$ac_ext
9751 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9752
9753         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9754         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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9755       else
9756         if test "$host_cpu" = ia64; then
9757           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9758           allow_undefined_flag="-z nodefs"
9759           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"
9760         else
9761          # Determine the default libpath from the value encoded in an
9762          # empty executable.
9763          cat >conftest.$ac_ext <<_ACEOF
9764 /* confdefs.h.  */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h.  */
9769
9770 int
9771 main ()
9772 {
9773
9774   ;
9775   return 0;
9776 }
9777 _ACEOF
9778 rm -f conftest.$ac_objext conftest$ac_exeext
9779 if { (ac_try="$ac_link"
9780 case "(($ac_try" in
9781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782   *) ac_try_echo=$ac_try;;
9783 esac
9784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9785 $as_echo "$ac_try_echo") >&5
9786   (eval "$ac_link") 2>conftest.er1
9787   ac_status=$?
9788   grep -v '^ *+' conftest.er1 >conftest.err
9789   rm -f conftest.er1
9790   cat conftest.err >&5
9791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); } && {
9793          test -z "$ac_c_werror_flag" ||
9794          test ! -s conftest.err
9795        } && test -s conftest$ac_exeext && {
9796          test "$cross_compiling" = yes ||
9797          $as_test_x conftest$ac_exeext
9798        }; then
9799
9800 lt_aix_libpath_sed='
9801     /Import File Strings/,/^$/ {
9802         /^0/ {
9803             s/^0  *\(.*\)$/\1/
9804             p
9805         }
9806     }'
9807 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9808 # Check for a 64-bit object if we didn't find anything.
9809 if test -z "$aix_libpath"; then
9810   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9811 fi
9812 else
9813   $as_echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9815
9816
9817 fi
9818
9819 rm -rf conftest.dSYM
9820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9821       conftest$ac_exeext conftest.$ac_ext
9822 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9823
9824          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9825           # Warning - without using the other run time loading flags,
9826           # -berok will link without error, but may produce a broken library.
9827           no_undefined_flag=' ${wl}-bernotok'
9828           allow_undefined_flag=' ${wl}-berok'
9829           # Exported symbols can be pulled into shared objects from archives
9830           whole_archive_flag_spec='$convenience'
9831           archive_cmds_need_lc=yes
9832           # This is similar to how AIX traditionally builds its shared libraries.
9833           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'
9834         fi
9835       fi
9836       ;;
9837
9838     amigaos*)
9839       case $host_cpu in
9840       powerpc)
9841             # see comment about AmigaOS4 .so support
9842             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9843             archive_expsym_cmds=''
9844         ;;
9845       m68k)
9846             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)'
9847             hardcode_libdir_flag_spec='-L$libdir'
9848             hardcode_minus_L=yes
9849         ;;
9850       esac
9851       ;;
9852
9853     bsdi[45]*)
9854       export_dynamic_flag_spec=-rdynamic
9855       ;;
9856
9857     cygwin* | mingw* | pw32* | cegcc*)
9858       # When not using gcc, we currently assume that we are using
9859       # Microsoft Visual C++.
9860       # hardcode_libdir_flag_spec is actually meaningless, as there is
9861       # no search path for DLLs.
9862       hardcode_libdir_flag_spec=' '
9863       allow_undefined_flag=unsupported
9864       # Tell ltmain to make .lib files, not .a files.
9865       libext=lib
9866       # Tell ltmain to make .dll files, not .so files.
9867       shrext_cmds=".dll"
9868       # FIXME: Setting linknames here is a bad hack.
9869       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9870       # The linker will automatically build a .lib file if we build a DLL.
9871       old_archive_from_new_cmds='true'
9872       # FIXME: Should let the user specify the lib program.
9873       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9874       fix_srcfile_path='`cygpath -w "$srcfile"`'
9875       enable_shared_with_static_runtimes=yes
9876       ;;
9877
9878     darwin* | rhapsody*)
9879
9880
9881   archive_cmds_need_lc=no
9882   hardcode_direct=no
9883   hardcode_automatic=yes
9884   hardcode_shlibpath_var=unsupported
9885   whole_archive_flag_spec=''
9886   link_all_deplibs=yes
9887   allow_undefined_flag="$_lt_dar_allow_undefined"
9888   case $cc_basename in
9889      ifort*) _lt_dar_can_shared=yes ;;
9890      *) _lt_dar_can_shared=$GCC ;;
9891   esac
9892   if test "$_lt_dar_can_shared" = "yes"; then
9893     output_verbose_link_cmd=echo
9894     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9895     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9896     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}"
9897     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}"
9898
9899   else
9900   ld_shlibs=no
9901   fi
9902
9903       ;;
9904
9905     dgux*)
9906       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9907       hardcode_libdir_flag_spec='-L$libdir'
9908       hardcode_shlibpath_var=no
9909       ;;
9910
9911     freebsd1*)
9912       ld_shlibs=no
9913       ;;
9914
9915     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9916     # support.  Future versions do this automatically, but an explicit c++rt0.o
9917     # does not break anything, and helps significantly (at the cost of a little
9918     # extra space).
9919     freebsd2.2*)
9920       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9921       hardcode_libdir_flag_spec='-R$libdir'
9922       hardcode_direct=yes
9923       hardcode_shlibpath_var=no
9924       ;;
9925
9926     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9927     freebsd2*)
9928       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9929       hardcode_direct=yes
9930       hardcode_minus_L=yes
9931       hardcode_shlibpath_var=no
9932       ;;
9933
9934     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9935     freebsd* | dragonfly*)
9936       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9937       hardcode_libdir_flag_spec='-R$libdir'
9938       hardcode_direct=yes
9939       hardcode_shlibpath_var=no
9940       ;;
9941
9942     hpux9*)
9943       if test "$GCC" = yes; then
9944         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'
9945       else
9946         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'
9947       fi
9948       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9949       hardcode_libdir_separator=:
9950       hardcode_direct=yes
9951
9952       # hardcode_minus_L: Not really in the search PATH,
9953       # but as the default location of the library.
9954       hardcode_minus_L=yes
9955       export_dynamic_flag_spec='${wl}-E'
9956       ;;
9957
9958     hpux10*)
9959       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9960         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9961       else
9962         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9963       fi
9964       if test "$with_gnu_ld" = no; then
9965         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9966         hardcode_libdir_flag_spec_ld='+b $libdir'
9967         hardcode_libdir_separator=:
9968         hardcode_direct=yes
9969         hardcode_direct_absolute=yes
9970         export_dynamic_flag_spec='${wl}-E'
9971         # hardcode_minus_L: Not really in the search PATH,
9972         # but as the default location of the library.
9973         hardcode_minus_L=yes
9974       fi
9975       ;;
9976
9977     hpux11*)
9978       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9979         case $host_cpu in
9980         hppa*64*)
9981           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9982           ;;
9983         ia64*)
9984           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9985           ;;
9986         *)
9987           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9988           ;;
9989         esac
9990       else
9991         case $host_cpu in
9992         hppa*64*)
9993           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9994           ;;
9995         ia64*)
9996           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9997           ;;
9998         *)
9999           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10000           ;;
10001         esac
10002       fi
10003       if test "$with_gnu_ld" = no; then
10004         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10005         hardcode_libdir_separator=:
10006
10007         case $host_cpu in
10008         hppa*64*|ia64*)
10009           hardcode_direct=no
10010           hardcode_shlibpath_var=no
10011           ;;
10012         *)
10013           hardcode_direct=yes
10014           hardcode_direct_absolute=yes
10015           export_dynamic_flag_spec='${wl}-E'
10016
10017           # hardcode_minus_L: Not really in the search PATH,
10018           # but as the default location of the library.
10019           hardcode_minus_L=yes
10020           ;;
10021         esac
10022       fi
10023       ;;
10024
10025     irix5* | irix6* | nonstopux*)
10026       if test "$GCC" = yes; then
10027         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10028         # Try to use the -exported_symbol ld option, if it does not
10029         # work, assume that -exports_file does not work either and
10030         # implicitly export all symbols.
10031         save_LDFLAGS="$LDFLAGS"
10032         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10033         cat >conftest.$ac_ext <<_ACEOF
10034 int foo(void) {}
10035 _ACEOF
10036 rm -f conftest.$ac_objext conftest$ac_exeext
10037 if { (ac_try="$ac_link"
10038 case "(($ac_try" in
10039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040   *) ac_try_echo=$ac_try;;
10041 esac
10042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10043 $as_echo "$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   $as_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          test "$cross_compiling" = yes ||
10055          $as_test_x conftest$ac_exeext
10056        }; then
10057   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10058
10059 else
10060   $as_echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10062
10063
10064 fi
10065
10066 rm -rf conftest.dSYM
10067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10068       conftest$ac_exeext conftest.$ac_ext
10069         LDFLAGS="$save_LDFLAGS"
10070       else
10071         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10072         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10073       fi
10074       archive_cmds_need_lc='no'
10075       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10076       hardcode_libdir_separator=:
10077       inherit_rpath=yes
10078       link_all_deplibs=yes
10079       ;;
10080
10081     netbsd*)
10082       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10083         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10084       else
10085         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10086       fi
10087       hardcode_libdir_flag_spec='-R$libdir'
10088       hardcode_direct=yes
10089       hardcode_shlibpath_var=no
10090       ;;
10091
10092     newsos6)
10093       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10094       hardcode_direct=yes
10095       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10096       hardcode_libdir_separator=:
10097       hardcode_shlibpath_var=no
10098       ;;
10099
10100     *nto* | *qnx*)
10101       ;;
10102
10103     openbsd*)
10104       if test -f /usr/libexec/ld.so; then
10105         hardcode_direct=yes
10106         hardcode_shlibpath_var=no
10107         hardcode_direct_absolute=yes
10108         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10109           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10110           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10111           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10112           export_dynamic_flag_spec='${wl}-E'
10113         else
10114           case $host_os in
10115            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10116              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10117              hardcode_libdir_flag_spec='-R$libdir'
10118              ;;
10119            *)
10120              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10121              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10122              ;;
10123           esac
10124         fi
10125       else
10126         ld_shlibs=no
10127       fi
10128       ;;
10129
10130     os2*)
10131       hardcode_libdir_flag_spec='-L$libdir'
10132       hardcode_minus_L=yes
10133       allow_undefined_flag=unsupported
10134       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'
10135       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10136       ;;
10137
10138     osf3*)
10139       if test "$GCC" = yes; then
10140         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10141         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10142       else
10143         allow_undefined_flag=' -expect_unresolved \*'
10144         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10145       fi
10146       archive_cmds_need_lc='no'
10147       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10148       hardcode_libdir_separator=:
10149       ;;
10150
10151     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10152       if test "$GCC" = yes; then
10153         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10154         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10155         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10156       else
10157         allow_undefined_flag=' -expect_unresolved \*'
10158         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10159         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10160         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10161
10162         # Both c and cxx compiler support -rpath directly
10163         hardcode_libdir_flag_spec='-rpath $libdir'
10164       fi
10165       archive_cmds_need_lc='no'
10166       hardcode_libdir_separator=:
10167       ;;
10168
10169     solaris*)
10170       no_undefined_flag=' -z defs'
10171       if test "$GCC" = yes; then
10172         wlarc='${wl}'
10173         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10174         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10175           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10176       else
10177         case `$CC -V 2>&1` in
10178         *"Compilers 5.0"*)
10179           wlarc=''
10180           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10181           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10182           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10183           ;;
10184         *)
10185           wlarc='${wl}'
10186           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10187           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10188           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10189           ;;
10190         esac
10191       fi
10192       hardcode_libdir_flag_spec='-R$libdir'
10193       hardcode_shlibpath_var=no
10194       case $host_os in
10195       solaris2.[0-5] | solaris2.[0-5].*) ;;
10196       *)
10197         # The compiler driver will combine and reorder linker options,
10198         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10199         # but is careful enough not to reorder.
10200         # Supported since Solaris 2.6 (maybe 2.5.1?)
10201         if test "$GCC" = yes; then
10202           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10203         else
10204           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10205         fi
10206         ;;
10207       esac
10208       link_all_deplibs=yes
10209       ;;
10210
10211     sunos4*)
10212       if test "x$host_vendor" = xsequent; then
10213         # Use $CC to link under sequent, because it throws in some extra .o
10214         # files that make .init and .fini sections work.
10215         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10216       else
10217         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10218       fi
10219       hardcode_libdir_flag_spec='-L$libdir'
10220       hardcode_direct=yes
10221       hardcode_minus_L=yes
10222       hardcode_shlibpath_var=no
10223       ;;
10224
10225     sysv4)
10226       case $host_vendor in
10227         sni)
10228           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10229           hardcode_direct=yes # is this really true???
10230         ;;
10231         siemens)
10232           ## LD is ld it makes a PLAMLIB
10233           ## CC just makes a GrossModule.
10234           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10235           reload_cmds='$CC -r -o $output$reload_objs'
10236           hardcode_direct=no
10237         ;;
10238         motorola)
10239           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10240           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10241         ;;
10242       esac
10243       runpath_var='LD_RUN_PATH'
10244       hardcode_shlibpath_var=no
10245       ;;
10246
10247     sysv4.3*)
10248       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10249       hardcode_shlibpath_var=no
10250       export_dynamic_flag_spec='-Bexport'
10251       ;;
10252
10253     sysv4*MP*)
10254       if test -d /usr/nec; then
10255         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10256         hardcode_shlibpath_var=no
10257         runpath_var=LD_RUN_PATH
10258         hardcode_runpath_var=yes
10259         ld_shlibs=yes
10260       fi
10261       ;;
10262
10263     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10264       no_undefined_flag='${wl}-z,text'
10265       archive_cmds_need_lc=no
10266       hardcode_shlibpath_var=no
10267       runpath_var='LD_RUN_PATH'
10268
10269       if test "$GCC" = yes; then
10270         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10271         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10272       else
10273         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10274         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10275       fi
10276       ;;
10277
10278     sysv5* | sco3.2v5* | sco5v6*)
10279       # Note: We can NOT use -z defs as we might desire, because we do not
10280       # link with -lc, and that would cause any symbols used from libc to
10281       # always be unresolved, which means just about no library would
10282       # ever link correctly.  If we're not using GNU ld we use -z text
10283       # though, which does catch some bad symbols but isn't as heavy-handed
10284       # as -z defs.
10285       no_undefined_flag='${wl}-z,text'
10286       allow_undefined_flag='${wl}-z,nodefs'
10287       archive_cmds_need_lc=no
10288       hardcode_shlibpath_var=no
10289       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10290       hardcode_libdir_separator=':'
10291       link_all_deplibs=yes
10292       export_dynamic_flag_spec='${wl}-Bexport'
10293       runpath_var='LD_RUN_PATH'
10294
10295       if test "$GCC" = yes; then
10296         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10297         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10298       else
10299         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10300         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10301       fi
10302       ;;
10303
10304     uts4*)
10305       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10306       hardcode_libdir_flag_spec='-L$libdir'
10307       hardcode_shlibpath_var=no
10308       ;;
10309
10310     *)
10311       ld_shlibs=no
10312       ;;
10313     esac
10314
10315     if test x$host_vendor = xsni; then
10316       case $host in
10317       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10318         export_dynamic_flag_spec='${wl}-Blargedynsym'
10319         ;;
10320       esac
10321     fi
10322   fi
10323
10324 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10325 $as_echo "$ld_shlibs" >&6; }
10326 test "$ld_shlibs" = no && can_build_shared=no
10327
10328 with_gnu_ld=$with_gnu_ld
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344 #
10345 # Do we need to explicitly link libc?
10346 #
10347 case "x$archive_cmds_need_lc" in
10348 x|xyes)
10349   # Assume -lc should be added
10350   archive_cmds_need_lc=yes
10351
10352   if test "$enable_shared" = yes && test "$GCC" = yes; then
10353     case $archive_cmds in
10354     *'~'*)
10355       # FIXME: we may have to deal with multi-command sequences.
10356       ;;
10357     '$CC '*)
10358       # Test whether the compiler implicitly links with -lc since on some
10359       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10360       # to ld, don't add -lc before -lgcc.
10361       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10362 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10363       $RM conftest*
10364       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10365
10366       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10367   (eval $ac_compile) 2>&5
10368   ac_status=$?
10369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); } 2>conftest.err; then
10371         soname=conftest
10372         lib=conftest
10373         libobjs=conftest.$ac_objext
10374         deplibs=
10375         wl=$lt_prog_compiler_wl
10376         pic_flag=$lt_prog_compiler_pic
10377         compiler_flags=-v
10378         linker_flags=-v
10379         verstring=
10380         output_objdir=.
10381         libname=conftest
10382         lt_save_allow_undefined_flag=$allow_undefined_flag
10383         allow_undefined_flag=
10384         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10385   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10386   ac_status=$?
10387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388   (exit $ac_status); }
10389         then
10390           archive_cmds_need_lc=no
10391         else
10392           archive_cmds_need_lc=yes
10393         fi
10394         allow_undefined_flag=$lt_save_allow_undefined_flag
10395       else
10396         cat conftest.err 1>&5
10397       fi
10398       $RM conftest*
10399       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10400 $as_echo "$archive_cmds_need_lc" >&6; }
10401       ;;
10402     esac
10403   fi
10404   ;;
10405 esac
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10564 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10565
10566 if test "$GCC" = yes; then
10567   case $host_os in
10568     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10569     *) lt_awk_arg="/^libraries:/" ;;
10570   esac
10571   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10572   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10573     # if the path contains ";" then we assume it to be the separator
10574     # otherwise default to the standard path separator (i.e. ":") - it is
10575     # assumed that no part of a normal pathname contains ";" but that should
10576     # okay in the real world where ";" in dirpaths is itself problematic.
10577     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10578   else
10579     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10580   fi
10581   # Ok, now we have the path, separated by spaces, we can step through it
10582   # and add multilib dir if necessary.
10583   lt_tmp_lt_search_path_spec=
10584   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10585   for lt_sys_path in $lt_search_path_spec; do
10586     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10587       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10588     else
10589       test -d "$lt_sys_path" && \
10590         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10591     fi
10592   done
10593   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10594 BEGIN {RS=" "; FS="/|\n";} {
10595   lt_foo="";
10596   lt_count=0;
10597   for (lt_i = NF; lt_i > 0; lt_i--) {
10598     if ($lt_i != "" && $lt_i != ".") {
10599       if ($lt_i == "..") {
10600         lt_count++;
10601       } else {
10602         if (lt_count == 0) {
10603           lt_foo="/" $lt_i lt_foo;
10604         } else {
10605           lt_count--;
10606         }
10607       }
10608     }
10609   }
10610   if (lt_foo != "") { lt_freq[lt_foo]++; }
10611   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10612 }'`
10613   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10614 else
10615   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10616 fi
10617 library_names_spec=
10618 libname_spec='lib$name'
10619 soname_spec=
10620 shrext_cmds=".so"
10621 postinstall_cmds=
10622 postuninstall_cmds=
10623 finish_cmds=
10624 finish_eval=
10625 shlibpath_var=
10626 shlibpath_overrides_runpath=unknown
10627 version_type=none
10628 dynamic_linker="$host_os ld.so"
10629 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10630 need_lib_prefix=unknown
10631 hardcode_into_libs=no
10632
10633 # when you set need_version to no, make sure it does not cause -set_version
10634 # flags to be left without arguments
10635 need_version=unknown
10636
10637 case $host_os in
10638 aix3*)
10639   version_type=linux
10640   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10641   shlibpath_var=LIBPATH
10642
10643   # AIX 3 has no versioning support, so we append a major version to the name.
10644   soname_spec='${libname}${release}${shared_ext}$major'
10645   ;;
10646
10647 aix[4-9]*)
10648   version_type=linux
10649   need_lib_prefix=no
10650   need_version=no
10651   hardcode_into_libs=yes
10652   if test "$host_cpu" = ia64; then
10653     # AIX 5 supports IA64
10654     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10655     shlibpath_var=LD_LIBRARY_PATH
10656   else
10657     # With GCC up to 2.95.x, collect2 would create an import file
10658     # for dependence libraries.  The import file would start with
10659     # the line `#! .'.  This would cause the generated library to
10660     # depend on `.', always an invalid library.  This was fixed in
10661     # development snapshots of GCC prior to 3.0.
10662     case $host_os in
10663       aix4 | aix4.[01] | aix4.[01].*)
10664       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10665            echo ' yes '
10666            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10667         :
10668       else
10669         can_build_shared=no
10670       fi
10671       ;;
10672     esac
10673     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10674     # soname into executable. Probably we can add versioning support to
10675     # collect2, so additional links can be useful in future.
10676     if test "$aix_use_runtimelinking" = yes; then
10677       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10678       # instead of lib<name>.a to let people know that these are not
10679       # typical AIX shared libraries.
10680       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681     else
10682       # We preserve .a as extension for shared libraries through AIX4.2
10683       # and later when we are not doing run time linking.
10684       library_names_spec='${libname}${release}.a $libname.a'
10685       soname_spec='${libname}${release}${shared_ext}$major'
10686     fi
10687     shlibpath_var=LIBPATH
10688   fi
10689   ;;
10690
10691 amigaos*)
10692   case $host_cpu in
10693   powerpc)
10694     # Since July 2007 AmigaOS4 officially supports .so libraries.
10695     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10696     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10697     ;;
10698   m68k)
10699     library_names_spec='$libname.ixlibrary $libname.a'
10700     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10701     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'
10702     ;;
10703   esac
10704   ;;
10705
10706 beos*)
10707   library_names_spec='${libname}${shared_ext}'
10708   dynamic_linker="$host_os ld.so"
10709   shlibpath_var=LIBRARY_PATH
10710   ;;
10711
10712 bsdi[45]*)
10713   version_type=linux
10714   need_version=no
10715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716   soname_spec='${libname}${release}${shared_ext}$major'
10717   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10718   shlibpath_var=LD_LIBRARY_PATH
10719   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10720   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10721   # the default ld.so.conf also contains /usr/contrib/lib and
10722   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10723   # libtool to hard-code these into programs
10724   ;;
10725
10726 cygwin* | mingw* | pw32* | cegcc*)
10727   version_type=windows
10728   shrext_cmds=".dll"
10729   need_version=no
10730   need_lib_prefix=no
10731
10732   case $GCC,$host_os in
10733   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10734     library_names_spec='$libname.dll.a'
10735     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10736     postinstall_cmds='base_file=`basename \${file}`~
10737       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10738       dldir=$destdir/`dirname \$dlpath`~
10739       test -d \$dldir || mkdir -p \$dldir~
10740       $install_prog $dir/$dlname \$dldir/$dlname~
10741       chmod a+x \$dldir/$dlname~
10742       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10743         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10744       fi'
10745     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10746       dlpath=$dir/\$dldll~
10747        $RM \$dlpath'
10748     shlibpath_overrides_runpath=yes
10749
10750     case $host_os in
10751     cygwin*)
10752       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10753       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10754       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10755       ;;
10756     mingw* | cegcc*)
10757       # MinGW DLLs use traditional 'lib' prefix
10758       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10759       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10760       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10761         # It is most probably a Windows format PATH printed by
10762         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10763         # path with ; separators, and with drive letters. We can handle the
10764         # drive letters (cygwin fileutils understands them), so leave them,
10765         # especially as we might pass files found there to a mingw objdump,
10766         # which wouldn't understand a cygwinified path. Ahh.
10767         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10768       else
10769         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10770       fi
10771       ;;
10772     pw32*)
10773       # pw32 DLLs use 'pw' prefix rather than 'lib'
10774       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10775       ;;
10776     esac
10777     ;;
10778
10779   *)
10780     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10781     ;;
10782   esac
10783   dynamic_linker='Win32 ld.exe'
10784   # FIXME: first we should search . and the directory the executable is in
10785   shlibpath_var=PATH
10786   ;;
10787
10788 darwin* | rhapsody*)
10789   dynamic_linker="$host_os dyld"
10790   version_type=darwin
10791   need_lib_prefix=no
10792   need_version=no
10793   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10794   soname_spec='${libname}${release}${major}$shared_ext'
10795   shlibpath_overrides_runpath=yes
10796   shlibpath_var=DYLD_LIBRARY_PATH
10797   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10798
10799   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10800   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10801   ;;
10802
10803 dgux*)
10804   version_type=linux
10805   need_lib_prefix=no
10806   need_version=no
10807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10808   soname_spec='${libname}${release}${shared_ext}$major'
10809   shlibpath_var=LD_LIBRARY_PATH
10810   ;;
10811
10812 freebsd1*)
10813   dynamic_linker=no
10814   ;;
10815
10816 freebsd* | dragonfly*)
10817   # DragonFly does not have aout.  When/if they implement a new
10818   # versioning mechanism, adjust this.
10819   if test -x /usr/bin/objformat; then
10820     objformat=`/usr/bin/objformat`
10821   else
10822     case $host_os in
10823     freebsd[123]*) objformat=aout ;;
10824     *) objformat=elf ;;
10825     esac
10826   fi
10827   version_type=freebsd-$objformat
10828   case $version_type in
10829     freebsd-elf*)
10830       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10831       need_version=no
10832       need_lib_prefix=no
10833       ;;
10834     freebsd-*)
10835       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10836       need_version=yes
10837       ;;
10838   esac
10839   shlibpath_var=LD_LIBRARY_PATH
10840   case $host_os in
10841   freebsd2*)
10842     shlibpath_overrides_runpath=yes
10843     ;;
10844   freebsd3.[01]* | freebsdelf3.[01]*)
10845     shlibpath_overrides_runpath=yes
10846     hardcode_into_libs=yes
10847     ;;
10848   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10849   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10850     shlibpath_overrides_runpath=no
10851     hardcode_into_libs=yes
10852     ;;
10853   *) # from 4.6 on, and DragonFly
10854     shlibpath_overrides_runpath=yes
10855     hardcode_into_libs=yes
10856     ;;
10857   esac
10858   ;;
10859
10860 gnu*)
10861   version_type=linux
10862   need_lib_prefix=no
10863   need_version=no
10864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10865   soname_spec='${libname}${release}${shared_ext}$major'
10866   shlibpath_var=LD_LIBRARY_PATH
10867   hardcode_into_libs=yes
10868   ;;
10869
10870 hpux9* | hpux10* | hpux11*)
10871   # Give a soname corresponding to the major version so that dld.sl refuses to
10872   # link against other versions.
10873   version_type=sunos
10874   need_lib_prefix=no
10875   need_version=no
10876   case $host_cpu in
10877   ia64*)
10878     shrext_cmds='.so'
10879     hardcode_into_libs=yes
10880     dynamic_linker="$host_os dld.so"
10881     shlibpath_var=LD_LIBRARY_PATH
10882     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10883     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10884     soname_spec='${libname}${release}${shared_ext}$major'
10885     if test "X$HPUX_IA64_MODE" = X32; then
10886       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10887     else
10888       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10889     fi
10890     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10891     ;;
10892   hppa*64*)
10893     shrext_cmds='.sl'
10894     hardcode_into_libs=yes
10895     dynamic_linker="$host_os dld.sl"
10896     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10897     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10898     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10899     soname_spec='${libname}${release}${shared_ext}$major'
10900     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10901     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10902     ;;
10903   *)
10904     shrext_cmds='.sl'
10905     dynamic_linker="$host_os dld.sl"
10906     shlibpath_var=SHLIB_PATH
10907     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10908     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10909     soname_spec='${libname}${release}${shared_ext}$major'
10910     ;;
10911   esac
10912   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10913   postinstall_cmds='chmod 555 $lib'
10914   ;;
10915
10916 interix[3-9]*)
10917   version_type=linux
10918   need_lib_prefix=no
10919   need_version=no
10920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10921   soname_spec='${libname}${release}${shared_ext}$major'
10922   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10923   shlibpath_var=LD_LIBRARY_PATH
10924   shlibpath_overrides_runpath=no
10925   hardcode_into_libs=yes
10926   ;;
10927
10928 irix5* | irix6* | nonstopux*)
10929   case $host_os in
10930     nonstopux*) version_type=nonstopux ;;
10931     *)
10932         if test "$lt_cv_prog_gnu_ld" = yes; then
10933                 version_type=linux
10934         else
10935                 version_type=irix
10936         fi ;;
10937   esac
10938   need_lib_prefix=no
10939   need_version=no
10940   soname_spec='${libname}${release}${shared_ext}$major'
10941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10942   case $host_os in
10943   irix5* | nonstopux*)
10944     libsuff= shlibsuff=
10945     ;;
10946   *)
10947     case $LD in # libtool.m4 will add one of these switches to LD
10948     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10949       libsuff= shlibsuff= libmagic=32-bit;;
10950     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10951       libsuff=32 shlibsuff=N32 libmagic=N32;;
10952     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10953       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10954     *) libsuff= shlibsuff= libmagic=never-match;;
10955     esac
10956     ;;
10957   esac
10958   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10959   shlibpath_overrides_runpath=no
10960   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10961   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10962   hardcode_into_libs=yes
10963   ;;
10964
10965 # No shared lib support for Linux oldld, aout, or coff.
10966 linux*oldld* | linux*aout* | linux*coff*)
10967   dynamic_linker=no
10968   ;;
10969
10970 # This must be Linux ELF.
10971 linux* | k*bsd*-gnu)
10972   version_type=linux
10973   need_lib_prefix=no
10974   need_version=no
10975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10976   soname_spec='${libname}${release}${shared_ext}$major'
10977   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10978   shlibpath_var=LD_LIBRARY_PATH
10979   shlibpath_overrides_runpath=no
10980   # Some binutils ld are patched to set DT_RUNPATH
10981   save_LDFLAGS=$LDFLAGS
10982   save_libdir=$libdir
10983   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10984        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10985   cat >conftest.$ac_ext <<_ACEOF
10986 /* confdefs.h.  */
10987 _ACEOF
10988 cat confdefs.h >>conftest.$ac_ext
10989 cat >>conftest.$ac_ext <<_ACEOF
10990 /* end confdefs.h.  */
10991
10992 int
10993 main ()
10994 {
10995
10996   ;
10997   return 0;
10998 }
10999 _ACEOF
11000 rm -f conftest.$ac_objext conftest$ac_exeext
11001 if { (ac_try="$ac_link"
11002 case "(($ac_try" in
11003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004   *) ac_try_echo=$ac_try;;
11005 esac
11006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11007 $as_echo "$ac_try_echo") >&5
11008   (eval "$ac_link") 2>conftest.er1
11009   ac_status=$?
11010   grep -v '^ *+' conftest.er1 >conftest.err
11011   rm -f conftest.er1
11012   cat conftest.err >&5
11013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); } && {
11015          test -z "$ac_c_werror_flag" ||
11016          test ! -s conftest.err
11017        } && test -s conftest$ac_exeext && {
11018          test "$cross_compiling" = yes ||
11019          $as_test_x conftest$ac_exeext
11020        }; then
11021   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11022   shlibpath_overrides_runpath=yes
11023 fi
11024
11025 else
11026   $as_echo "$as_me: failed program was:" >&5
11027 sed 's/^/| /' conftest.$ac_ext >&5
11028
11029
11030 fi
11031
11032 rm -rf conftest.dSYM
11033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11034       conftest$ac_exeext conftest.$ac_ext
11035   LDFLAGS=$save_LDFLAGS
11036   libdir=$save_libdir
11037
11038   # This implies no fast_install, which is unacceptable.
11039   # Some rework will be needed to allow for fast_install
11040   # before this can be enabled.
11041   hardcode_into_libs=yes
11042
11043   # Add ABI-specific directories to the system library path.
11044   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11045
11046   # Append ld.so.conf contents to the search path
11047   if test -f /etc/ld.so.conf; then
11048     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' ' '`
11049     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11050   fi
11051
11052   # We used to test for /lib/ld.so.1 and disable shared libraries on
11053   # powerpc, because MkLinux only supported shared libraries with the
11054   # GNU dynamic linker.  Since this was broken with cross compilers,
11055   # most powerpc-linux boxes support dynamic linking these days and
11056   # people can always --disable-shared, the test was removed, and we
11057   # assume the GNU/Linux dynamic linker is in use.
11058   dynamic_linker='GNU/Linux ld.so'
11059   ;;
11060
11061 netbsd*)
11062   version_type=sunos
11063   need_lib_prefix=no
11064   need_version=no
11065   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11066     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11067     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11068     dynamic_linker='NetBSD (a.out) ld.so'
11069   else
11070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11071     soname_spec='${libname}${release}${shared_ext}$major'
11072     dynamic_linker='NetBSD ld.elf_so'
11073   fi
11074   shlibpath_var=LD_LIBRARY_PATH
11075   shlibpath_overrides_runpath=yes
11076   hardcode_into_libs=yes
11077   ;;
11078
11079 newsos6)
11080   version_type=linux
11081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082   shlibpath_var=LD_LIBRARY_PATH
11083   shlibpath_overrides_runpath=yes
11084   ;;
11085
11086 *nto* | *qnx*)
11087   version_type=qnx
11088   need_lib_prefix=no
11089   need_version=no
11090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091   soname_spec='${libname}${release}${shared_ext}$major'
11092   shlibpath_var=LD_LIBRARY_PATH
11093   shlibpath_overrides_runpath=no
11094   hardcode_into_libs=yes
11095   dynamic_linker='ldqnx.so'
11096   ;;
11097
11098 openbsd*)
11099   version_type=sunos
11100   sys_lib_dlsearch_path_spec="/usr/lib"
11101   need_lib_prefix=no
11102   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11103   case $host_os in
11104     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11105     *)                          need_version=no  ;;
11106   esac
11107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11108   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11109   shlibpath_var=LD_LIBRARY_PATH
11110   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11111     case $host_os in
11112       openbsd2.[89] | openbsd2.[89].*)
11113         shlibpath_overrides_runpath=no
11114         ;;
11115       *)
11116         shlibpath_overrides_runpath=yes
11117         ;;
11118       esac
11119   else
11120     shlibpath_overrides_runpath=yes
11121   fi
11122   ;;
11123
11124 os2*)
11125   libname_spec='$name'
11126   shrext_cmds=".dll"
11127   need_lib_prefix=no
11128   library_names_spec='$libname${shared_ext} $libname.a'
11129   dynamic_linker='OS/2 ld.exe'
11130   shlibpath_var=LIBPATH
11131   ;;
11132
11133 osf3* | osf4* | osf5*)
11134   version_type=osf
11135   need_lib_prefix=no
11136   need_version=no
11137   soname_spec='${libname}${release}${shared_ext}$major'
11138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11139   shlibpath_var=LD_LIBRARY_PATH
11140   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11141   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11142   ;;
11143
11144 rdos*)
11145   dynamic_linker=no
11146   ;;
11147
11148 solaris*)
11149   version_type=linux
11150   need_lib_prefix=no
11151   need_version=no
11152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153   soname_spec='${libname}${release}${shared_ext}$major'
11154   shlibpath_var=LD_LIBRARY_PATH
11155   shlibpath_overrides_runpath=yes
11156   hardcode_into_libs=yes
11157   # ldd complains unless libraries are executable
11158   postinstall_cmds='chmod +x $lib'
11159   ;;
11160
11161 sunos4*)
11162   version_type=sunos
11163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11164   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11165   shlibpath_var=LD_LIBRARY_PATH
11166   shlibpath_overrides_runpath=yes
11167   if test "$with_gnu_ld" = yes; then
11168     need_lib_prefix=no
11169   fi
11170   need_version=yes
11171   ;;
11172
11173 sysv4 | sysv4.3*)
11174   version_type=linux
11175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176   soname_spec='${libname}${release}${shared_ext}$major'
11177   shlibpath_var=LD_LIBRARY_PATH
11178   case $host_vendor in
11179     sni)
11180       shlibpath_overrides_runpath=no
11181       need_lib_prefix=no
11182       runpath_var=LD_RUN_PATH
11183       ;;
11184     siemens)
11185       need_lib_prefix=no
11186       ;;
11187     motorola)
11188       need_lib_prefix=no
11189       need_version=no
11190       shlibpath_overrides_runpath=no
11191       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11192       ;;
11193   esac
11194   ;;
11195
11196 sysv4*MP*)
11197   if test -d /usr/nec ;then
11198     version_type=linux
11199     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11200     soname_spec='$libname${shared_ext}.$major'
11201     shlibpath_var=LD_LIBRARY_PATH
11202   fi
11203   ;;
11204
11205 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11206   version_type=freebsd-elf
11207   need_lib_prefix=no
11208   need_version=no
11209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11210   soname_spec='${libname}${release}${shared_ext}$major'
11211   shlibpath_var=LD_LIBRARY_PATH
11212   shlibpath_overrides_runpath=yes
11213   hardcode_into_libs=yes
11214   if test "$with_gnu_ld" = yes; then
11215     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11216   else
11217     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11218     case $host_os in
11219       sco3.2v5*)
11220         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11221         ;;
11222     esac
11223   fi
11224   sys_lib_dlsearch_path_spec='/usr/lib'
11225   ;;
11226
11227 tpf*)
11228   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11229   version_type=linux
11230   need_lib_prefix=no
11231   need_version=no
11232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11233   shlibpath_var=LD_LIBRARY_PATH
11234   shlibpath_overrides_runpath=no
11235   hardcode_into_libs=yes
11236   ;;
11237
11238 uts4*)
11239   version_type=linux
11240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11241   soname_spec='${libname}${release}${shared_ext}$major'
11242   shlibpath_var=LD_LIBRARY_PATH
11243   ;;
11244
11245 *)
11246   dynamic_linker=no
11247   ;;
11248 esac
11249 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11250 $as_echo "$dynamic_linker" >&6; }
11251 test "$dynamic_linker" = no && can_build_shared=no
11252
11253 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11254 if test "$GCC" = yes; then
11255   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11256 fi
11257
11258 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11259   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11260 fi
11261 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11262   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11263 fi
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11352 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11353 hardcode_action=
11354 if test -n "$hardcode_libdir_flag_spec" ||
11355    test -n "$runpath_var" ||
11356    test "X$hardcode_automatic" = "Xyes" ; then
11357
11358   # We can hardcode non-existent directories.
11359   if test "$hardcode_direct" != no &&
11360      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11361      # have to relink, otherwise we might link with an installed library
11362      # when we should be linking with a yet-to-be-installed one
11363      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11364      test "$hardcode_minus_L" != no; then
11365     # Linking always hardcodes the temporary library directory.
11366     hardcode_action=relink
11367   else
11368     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11369     hardcode_action=immediate
11370   fi
11371 else
11372   # We cannot hardcode anything, or else we can only hardcode existing
11373   # directories.
11374   hardcode_action=unsupported
11375 fi
11376 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11377 $as_echo "$hardcode_action" >&6; }
11378
11379 if test "$hardcode_action" = relink ||
11380    test "$inherit_rpath" = yes; then
11381   # Fast installation is not supported
11382   enable_fast_install=no
11383 elif test "$shlibpath_overrides_runpath" = yes ||
11384      test "$enable_shared" = no; then
11385   # Fast installation is not necessary
11386   enable_fast_install=needless
11387 fi
11388
11389
11390
11391
11392
11393
11394   if test "x$enable_dlopen" != xyes; then
11395   enable_dlopen=unknown
11396   enable_dlopen_self=unknown
11397   enable_dlopen_self_static=unknown
11398 else
11399   lt_cv_dlopen=no
11400   lt_cv_dlopen_libs=
11401
11402   case $host_os in
11403   beos*)
11404     lt_cv_dlopen="load_add_on"
11405     lt_cv_dlopen_libs=
11406     lt_cv_dlopen_self=yes
11407     ;;
11408
11409   mingw* | pw32* | cegcc*)
11410     lt_cv_dlopen="LoadLibrary"
11411     lt_cv_dlopen_libs=
11412     ;;
11413
11414   cygwin*)
11415     lt_cv_dlopen="dlopen"
11416     lt_cv_dlopen_libs=
11417     ;;
11418
11419   darwin*)
11420   # if libdl is installed we need to link against it
11421     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11422 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11423 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11424   $as_echo_n "(cached) " >&6
11425 else
11426   ac_check_lib_save_LIBS=$LIBS
11427 LIBS="-ldl  $LIBS"
11428 cat >conftest.$ac_ext <<_ACEOF
11429 /* confdefs.h.  */
11430 _ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h.  */
11434
11435 /* Override any GCC internal prototype to avoid an error.
11436    Use char because int might match the return type of a GCC
11437    builtin and then its argument prototype would still apply.  */
11438 #ifdef __cplusplus
11439 extern "C"
11440 #endif
11441 char dlopen ();
11442 int
11443 main ()
11444 {
11445 return dlopen ();
11446   ;
11447   return 0;
11448 }
11449 _ACEOF
11450 rm -f conftest.$ac_objext conftest$ac_exeext
11451 if { (ac_try="$ac_link"
11452 case "(($ac_try" in
11453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11454   *) ac_try_echo=$ac_try;;
11455 esac
11456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11457 $as_echo "$ac_try_echo") >&5
11458   (eval "$ac_link") 2>conftest.er1
11459   ac_status=$?
11460   grep -v '^ *+' conftest.er1 >conftest.err
11461   rm -f conftest.er1
11462   cat conftest.err >&5
11463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464   (exit $ac_status); } && {
11465          test -z "$ac_c_werror_flag" ||
11466          test ! -s conftest.err
11467        } && test -s conftest$ac_exeext && {
11468          test "$cross_compiling" = yes ||
11469          $as_test_x conftest$ac_exeext
11470        }; then
11471   ac_cv_lib_dl_dlopen=yes
11472 else
11473   $as_echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.$ac_ext >&5
11475
11476         ac_cv_lib_dl_dlopen=no
11477 fi
11478
11479 rm -rf conftest.dSYM
11480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11481       conftest$ac_exeext conftest.$ac_ext
11482 LIBS=$ac_check_lib_save_LIBS
11483 fi
11484 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11485 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11486 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11487   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11488 else
11489
11490     lt_cv_dlopen="dyld"
11491     lt_cv_dlopen_libs=
11492     lt_cv_dlopen_self=yes
11493
11494 fi
11495
11496     ;;
11497
11498   *)
11499     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11500 $as_echo_n "checking for shl_load... " >&6; }
11501 if test "${ac_cv_func_shl_load+set}" = set; then
11502   $as_echo_n "(cached) " >&6
11503 else
11504   cat >conftest.$ac_ext <<_ACEOF
11505 /* confdefs.h.  */
11506 _ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h.  */
11510 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11512 #define shl_load innocuous_shl_load
11513
11514 /* System header to define __stub macros and hopefully few prototypes,
11515     which can conflict with char shl_load (); below.
11516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11517     <limits.h> exists even on freestanding compilers.  */
11518
11519 #ifdef __STDC__
11520 # include <limits.h>
11521 #else
11522 # include <assert.h>
11523 #endif
11524
11525 #undef shl_load
11526
11527 /* Override any GCC internal prototype to avoid an error.
11528    Use char because int might match the return type of a GCC
11529    builtin and then its argument prototype would still apply.  */
11530 #ifdef __cplusplus
11531 extern "C"
11532 #endif
11533 char shl_load ();
11534 /* The GNU C library defines this for functions which it implements
11535     to always fail with ENOSYS.  Some functions are actually named
11536     something starting with __ and the normal name is an alias.  */
11537 #if defined __stub_shl_load || defined __stub___shl_load
11538 choke me
11539 #endif
11540
11541 int
11542 main ()
11543 {
11544 return shl_load ();
11545   ;
11546   return 0;
11547 }
11548 _ACEOF
11549 rm -f conftest.$ac_objext conftest$ac_exeext
11550 if { (ac_try="$ac_link"
11551 case "(($ac_try" in
11552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553   *) ac_try_echo=$ac_try;;
11554 esac
11555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11556 $as_echo "$ac_try_echo") >&5
11557   (eval "$ac_link") 2>conftest.er1
11558   ac_status=$?
11559   grep -v '^ *+' conftest.er1 >conftest.err
11560   rm -f conftest.er1
11561   cat conftest.err >&5
11562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563   (exit $ac_status); } && {
11564          test -z "$ac_c_werror_flag" ||
11565          test ! -s conftest.err
11566        } && test -s conftest$ac_exeext && {
11567          test "$cross_compiling" = yes ||
11568          $as_test_x conftest$ac_exeext
11569        }; then
11570   ac_cv_func_shl_load=yes
11571 else
11572   $as_echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11574
11575         ac_cv_func_shl_load=no
11576 fi
11577
11578 rm -rf conftest.dSYM
11579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11580       conftest$ac_exeext conftest.$ac_ext
11581 fi
11582 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11583 $as_echo "$ac_cv_func_shl_load" >&6; }
11584 if test "x$ac_cv_func_shl_load" = x""yes; then
11585   lt_cv_dlopen="shl_load"
11586 else
11587   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11588 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11589 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11590   $as_echo_n "(cached) " >&6
11591 else
11592   ac_check_lib_save_LIBS=$LIBS
11593 LIBS="-ldld  $LIBS"
11594 cat >conftest.$ac_ext <<_ACEOF
11595 /* confdefs.h.  */
11596 _ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h.  */
11600
11601 /* Override any GCC internal prototype to avoid an error.
11602    Use char because int might match the return type of a GCC
11603    builtin and then its argument prototype would still apply.  */
11604 #ifdef __cplusplus
11605 extern "C"
11606 #endif
11607 char shl_load ();
11608 int
11609 main ()
11610 {
11611 return shl_load ();
11612   ;
11613   return 0;
11614 }
11615 _ACEOF
11616 rm -f conftest.$ac_objext conftest$ac_exeext
11617 if { (ac_try="$ac_link"
11618 case "(($ac_try" in
11619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620   *) ac_try_echo=$ac_try;;
11621 esac
11622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11623 $as_echo "$ac_try_echo") >&5
11624   (eval "$ac_link") 2>conftest.er1
11625   ac_status=$?
11626   grep -v '^ *+' conftest.er1 >conftest.err
11627   rm -f conftest.er1
11628   cat conftest.err >&5
11629   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); } && {
11631          test -z "$ac_c_werror_flag" ||
11632          test ! -s conftest.err
11633        } && test -s conftest$ac_exeext && {
11634          test "$cross_compiling" = yes ||
11635          $as_test_x conftest$ac_exeext
11636        }; then
11637   ac_cv_lib_dld_shl_load=yes
11638 else
11639   $as_echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11641
11642         ac_cv_lib_dld_shl_load=no
11643 fi
11644
11645 rm -rf conftest.dSYM
11646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11647       conftest$ac_exeext conftest.$ac_ext
11648 LIBS=$ac_check_lib_save_LIBS
11649 fi
11650 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11651 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11652 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11653   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11654 else
11655   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11656 $as_echo_n "checking for dlopen... " >&6; }
11657 if test "${ac_cv_func_dlopen+set}" = set; then
11658   $as_echo_n "(cached) " >&6
11659 else
11660   cat >conftest.$ac_ext <<_ACEOF
11661 /* confdefs.h.  */
11662 _ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h.  */
11666 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11668 #define dlopen innocuous_dlopen
11669
11670 /* System header to define __stub macros and hopefully few prototypes,
11671     which can conflict with char dlopen (); below.
11672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11673     <limits.h> exists even on freestanding compilers.  */
11674
11675 #ifdef __STDC__
11676 # include <limits.h>
11677 #else
11678 # include <assert.h>
11679 #endif
11680
11681 #undef dlopen
11682
11683 /* Override any GCC internal prototype to avoid an error.
11684    Use char because int might match the return type of a GCC
11685    builtin and then its argument prototype would still apply.  */
11686 #ifdef __cplusplus
11687 extern "C"
11688 #endif
11689 char dlopen ();
11690 /* The GNU C library defines this for functions which it implements
11691     to always fail with ENOSYS.  Some functions are actually named
11692     something starting with __ and the normal name is an alias.  */
11693 #if defined __stub_dlopen || defined __stub___dlopen
11694 choke me
11695 #endif
11696
11697 int
11698 main ()
11699 {
11700 return dlopen ();
11701   ;
11702   return 0;
11703 }
11704 _ACEOF
11705 rm -f conftest.$ac_objext conftest$ac_exeext
11706 if { (ac_try="$ac_link"
11707 case "(($ac_try" in
11708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709   *) ac_try_echo=$ac_try;;
11710 esac
11711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11712 $as_echo "$ac_try_echo") >&5
11713   (eval "$ac_link") 2>conftest.er1
11714   ac_status=$?
11715   grep -v '^ *+' conftest.er1 >conftest.err
11716   rm -f conftest.er1
11717   cat conftest.err >&5
11718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); } && {
11720          test -z "$ac_c_werror_flag" ||
11721          test ! -s conftest.err
11722        } && test -s conftest$ac_exeext && {
11723          test "$cross_compiling" = yes ||
11724          $as_test_x conftest$ac_exeext
11725        }; then
11726   ac_cv_func_dlopen=yes
11727 else
11728   $as_echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11730
11731         ac_cv_func_dlopen=no
11732 fi
11733
11734 rm -rf conftest.dSYM
11735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11736       conftest$ac_exeext conftest.$ac_ext
11737 fi
11738 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11739 $as_echo "$ac_cv_func_dlopen" >&6; }
11740 if test "x$ac_cv_func_dlopen" = x""yes; then
11741   lt_cv_dlopen="dlopen"
11742 else
11743   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11744 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11745 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11746   $as_echo_n "(cached) " >&6
11747 else
11748   ac_check_lib_save_LIBS=$LIBS
11749 LIBS="-ldl  $LIBS"
11750 cat >conftest.$ac_ext <<_ACEOF
11751 /* confdefs.h.  */
11752 _ACEOF
11753 cat confdefs.h >>conftest.$ac_ext
11754 cat >>conftest.$ac_ext <<_ACEOF
11755 /* end confdefs.h.  */
11756
11757 /* Override any GCC internal prototype to avoid an error.
11758    Use char because int might match the return type of a GCC
11759    builtin and then its argument prototype would still apply.  */
11760 #ifdef __cplusplus
11761 extern "C"
11762 #endif
11763 char dlopen ();
11764 int
11765 main ()
11766 {
11767 return dlopen ();
11768   ;
11769   return 0;
11770 }
11771 _ACEOF
11772 rm -f conftest.$ac_objext conftest$ac_exeext
11773 if { (ac_try="$ac_link"
11774 case "(($ac_try" in
11775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11776   *) ac_try_echo=$ac_try;;
11777 esac
11778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11779 $as_echo "$ac_try_echo") >&5
11780   (eval "$ac_link") 2>conftest.er1
11781   ac_status=$?
11782   grep -v '^ *+' conftest.er1 >conftest.err
11783   rm -f conftest.er1
11784   cat conftest.err >&5
11785   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); } && {
11787          test -z "$ac_c_werror_flag" ||
11788          test ! -s conftest.err
11789        } && test -s conftest$ac_exeext && {
11790          test "$cross_compiling" = yes ||
11791          $as_test_x conftest$ac_exeext
11792        }; then
11793   ac_cv_lib_dl_dlopen=yes
11794 else
11795   $as_echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11797
11798         ac_cv_lib_dl_dlopen=no
11799 fi
11800
11801 rm -rf conftest.dSYM
11802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11803       conftest$ac_exeext conftest.$ac_ext
11804 LIBS=$ac_check_lib_save_LIBS
11805 fi
11806 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11807 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11808 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11809   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11810 else
11811   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11812 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11813 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11814   $as_echo_n "(cached) " >&6
11815 else
11816   ac_check_lib_save_LIBS=$LIBS
11817 LIBS="-lsvld  $LIBS"
11818 cat >conftest.$ac_ext <<_ACEOF
11819 /* confdefs.h.  */
11820 _ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h.  */
11824
11825 /* Override any GCC internal prototype to avoid an error.
11826    Use char because int might match the return type of a GCC
11827    builtin and then its argument prototype would still apply.  */
11828 #ifdef __cplusplus
11829 extern "C"
11830 #endif
11831 char dlopen ();
11832 int
11833 main ()
11834 {
11835 return dlopen ();
11836   ;
11837   return 0;
11838 }
11839 _ACEOF
11840 rm -f conftest.$ac_objext conftest$ac_exeext
11841 if { (ac_try="$ac_link"
11842 case "(($ac_try" in
11843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844   *) ac_try_echo=$ac_try;;
11845 esac
11846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11847 $as_echo "$ac_try_echo") >&5
11848   (eval "$ac_link") 2>conftest.er1
11849   ac_status=$?
11850   grep -v '^ *+' conftest.er1 >conftest.err
11851   rm -f conftest.er1
11852   cat conftest.err >&5
11853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); } && {
11855          test -z "$ac_c_werror_flag" ||
11856          test ! -s conftest.err
11857        } && test -s conftest$ac_exeext && {
11858          test "$cross_compiling" = yes ||
11859          $as_test_x conftest$ac_exeext
11860        }; then
11861   ac_cv_lib_svld_dlopen=yes
11862 else
11863   $as_echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11865
11866         ac_cv_lib_svld_dlopen=no
11867 fi
11868
11869 rm -rf conftest.dSYM
11870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11871       conftest$ac_exeext conftest.$ac_ext
11872 LIBS=$ac_check_lib_save_LIBS
11873 fi
11874 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11875 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11876 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11877   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11878 else
11879   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11880 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11881 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11882   $as_echo_n "(cached) " >&6
11883 else
11884   ac_check_lib_save_LIBS=$LIBS
11885 LIBS="-ldld  $LIBS"
11886 cat >conftest.$ac_ext <<_ACEOF
11887 /* confdefs.h.  */
11888 _ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h.  */
11892
11893 /* Override any GCC internal prototype to avoid an error.
11894    Use char because int might match the return type of a GCC
11895    builtin and then its argument prototype would still apply.  */
11896 #ifdef __cplusplus
11897 extern "C"
11898 #endif
11899 char dld_link ();
11900 int
11901 main ()
11902 {
11903 return dld_link ();
11904   ;
11905   return 0;
11906 }
11907 _ACEOF
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (ac_try="$ac_link"
11910 case "(($ac_try" in
11911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912   *) ac_try_echo=$ac_try;;
11913 esac
11914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11915 $as_echo "$ac_try_echo") >&5
11916   (eval "$ac_link") 2>conftest.er1
11917   ac_status=$?
11918   grep -v '^ *+' conftest.er1 >conftest.err
11919   rm -f conftest.er1
11920   cat conftest.err >&5
11921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922   (exit $ac_status); } && {
11923          test -z "$ac_c_werror_flag" ||
11924          test ! -s conftest.err
11925        } && test -s conftest$ac_exeext && {
11926          test "$cross_compiling" = yes ||
11927          $as_test_x conftest$ac_exeext
11928        }; then
11929   ac_cv_lib_dld_dld_link=yes
11930 else
11931   $as_echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11933
11934         ac_cv_lib_dld_dld_link=no
11935 fi
11936
11937 rm -rf conftest.dSYM
11938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11939       conftest$ac_exeext conftest.$ac_ext
11940 LIBS=$ac_check_lib_save_LIBS
11941 fi
11942 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11943 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11944 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11945   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11946 fi
11947
11948
11949 fi
11950
11951
11952 fi
11953
11954
11955 fi
11956
11957
11958 fi
11959
11960
11961 fi
11962
11963     ;;
11964   esac
11965
11966   if test "x$lt_cv_dlopen" != xno; then
11967     enable_dlopen=yes
11968   else
11969     enable_dlopen=no
11970   fi
11971
11972   case $lt_cv_dlopen in
11973   dlopen)
11974     save_CPPFLAGS="$CPPFLAGS"
11975     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11976
11977     save_LDFLAGS="$LDFLAGS"
11978     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11979
11980     save_LIBS="$LIBS"
11981     LIBS="$lt_cv_dlopen_libs $LIBS"
11982
11983     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11984 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11985 if test "${lt_cv_dlopen_self+set}" = set; then
11986   $as_echo_n "(cached) " >&6
11987 else
11988           if test "$cross_compiling" = yes; then :
11989   lt_cv_dlopen_self=cross
11990 else
11991   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11992   lt_status=$lt_dlunknown
11993   cat > conftest.$ac_ext <<_LT_EOF
11994 #line 11994 "configure"
11995 #include "confdefs.h"
11996
11997 #if HAVE_DLFCN_H
11998 #include <dlfcn.h>
11999 #endif
12000
12001 #include <stdio.h>
12002
12003 #ifdef RTLD_GLOBAL
12004 #  define LT_DLGLOBAL           RTLD_GLOBAL
12005 #else
12006 #  ifdef DL_GLOBAL
12007 #    define LT_DLGLOBAL         DL_GLOBAL
12008 #  else
12009 #    define LT_DLGLOBAL         0
12010 #  endif
12011 #endif
12012
12013 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12014    find out it does not work in some platform. */
12015 #ifndef LT_DLLAZY_OR_NOW
12016 #  ifdef RTLD_LAZY
12017 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12018 #  else
12019 #    ifdef DL_LAZY
12020 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12021 #    else
12022 #      ifdef RTLD_NOW
12023 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12024 #      else
12025 #        ifdef DL_NOW
12026 #          define LT_DLLAZY_OR_NOW      DL_NOW
12027 #        else
12028 #          define LT_DLLAZY_OR_NOW      0
12029 #        endif
12030 #      endif
12031 #    endif
12032 #  endif
12033 #endif
12034
12035 void fnord() { int i=42;}
12036 int main ()
12037 {
12038   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12039   int status = $lt_dlunknown;
12040
12041   if (self)
12042     {
12043       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12044       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12045       /* dlclose (self); */
12046     }
12047   else
12048     puts (dlerror ());
12049
12050   return status;
12051 }
12052 _LT_EOF
12053   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12054   (eval $ac_link) 2>&5
12055   ac_status=$?
12056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12058     (./conftest; exit; ) >&5 2>/dev/null
12059     lt_status=$?
12060     case x$lt_status in
12061       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12062       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12063       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12064     esac
12065   else :
12066     # compilation failed
12067     lt_cv_dlopen_self=no
12068   fi
12069 fi
12070 rm -fr conftest*
12071
12072
12073 fi
12074 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12075 $as_echo "$lt_cv_dlopen_self" >&6; }
12076
12077     if test "x$lt_cv_dlopen_self" = xyes; then
12078       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12079       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12080 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12081 if test "${lt_cv_dlopen_self_static+set}" = set; then
12082   $as_echo_n "(cached) " >&6
12083 else
12084           if test "$cross_compiling" = yes; then :
12085   lt_cv_dlopen_self_static=cross
12086 else
12087   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12088   lt_status=$lt_dlunknown
12089   cat > conftest.$ac_ext <<_LT_EOF
12090 #line 12090 "configure"
12091 #include "confdefs.h"
12092
12093 #if HAVE_DLFCN_H
12094 #include <dlfcn.h>
12095 #endif
12096
12097 #include <stdio.h>
12098
12099 #ifdef RTLD_GLOBAL
12100 #  define LT_DLGLOBAL           RTLD_GLOBAL
12101 #else
12102 #  ifdef DL_GLOBAL
12103 #    define LT_DLGLOBAL         DL_GLOBAL
12104 #  else
12105 #    define LT_DLGLOBAL         0
12106 #  endif
12107 #endif
12108
12109 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12110    find out it does not work in some platform. */
12111 #ifndef LT_DLLAZY_OR_NOW
12112 #  ifdef RTLD_LAZY
12113 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12114 #  else
12115 #    ifdef DL_LAZY
12116 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12117 #    else
12118 #      ifdef RTLD_NOW
12119 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12120 #      else
12121 #        ifdef DL_NOW
12122 #          define LT_DLLAZY_OR_NOW      DL_NOW
12123 #        else
12124 #          define LT_DLLAZY_OR_NOW      0
12125 #        endif
12126 #      endif
12127 #    endif
12128 #  endif
12129 #endif
12130
12131 void fnord() { int i=42;}
12132 int main ()
12133 {
12134   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12135   int status = $lt_dlunknown;
12136
12137   if (self)
12138     {
12139       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12140       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12141       /* dlclose (self); */
12142     }
12143   else
12144     puts (dlerror ());
12145
12146   return status;
12147 }
12148 _LT_EOF
12149   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12150   (eval $ac_link) 2>&5
12151   ac_status=$?
12152   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12154     (./conftest; exit; ) >&5 2>/dev/null
12155     lt_status=$?
12156     case x$lt_status in
12157       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12158       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12159       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12160     esac
12161   else :
12162     # compilation failed
12163     lt_cv_dlopen_self_static=no
12164   fi
12165 fi
12166 rm -fr conftest*
12167
12168
12169 fi
12170 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12171 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12172     fi
12173
12174     CPPFLAGS="$save_CPPFLAGS"
12175     LDFLAGS="$save_LDFLAGS"
12176     LIBS="$save_LIBS"
12177     ;;
12178   esac
12179
12180   case $lt_cv_dlopen_self in
12181   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12182   *) enable_dlopen_self=unknown ;;
12183   esac
12184
12185   case $lt_cv_dlopen_self_static in
12186   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12187   *) enable_dlopen_self_static=unknown ;;
12188   esac
12189 fi
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207 striplib=
12208 old_striplib=
12209 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12210 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12211 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12212   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12213   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12214   { $as_echo "$as_me:$LINENO: result: yes" >&5
12215 $as_echo "yes" >&6; }
12216 else
12217 # FIXME - insert some real tests, host_os isn't really good enough
12218   case $host_os in
12219   darwin*)
12220     if test -n "$STRIP" ; then
12221       striplib="$STRIP -x"
12222       old_striplib="$STRIP -S"
12223       { $as_echo "$as_me:$LINENO: result: yes" >&5
12224 $as_echo "yes" >&6; }
12225     else
12226       { $as_echo "$as_me:$LINENO: result: no" >&5
12227 $as_echo "no" >&6; }
12228     fi
12229     ;;
12230   *)
12231     { $as_echo "$as_me:$LINENO: result: no" >&5
12232 $as_echo "no" >&6; }
12233     ;;
12234   esac
12235 fi
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248   # Report which library types will actually be built
12249   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12250 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12251   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12252 $as_echo "$can_build_shared" >&6; }
12253
12254   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12255 $as_echo_n "checking whether to build shared libraries... " >&6; }
12256   test "$can_build_shared" = "no" && enable_shared=no
12257
12258   # On AIX, shared libraries and static libraries use the same namespace, and
12259   # are all built from PIC.
12260   case $host_os in
12261   aix3*)
12262     test "$enable_shared" = yes && enable_static=no
12263     if test -n "$RANLIB"; then
12264       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12265       postinstall_cmds='$RANLIB $lib'
12266     fi
12267     ;;
12268
12269   aix[4-9]*)
12270     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12271       test "$enable_shared" = yes && enable_static=no
12272     fi
12273     ;;
12274   esac
12275   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12276 $as_echo "$enable_shared" >&6; }
12277
12278   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12279 $as_echo_n "checking whether to build static libraries... " >&6; }
12280   # Make sure either enable_shared or enable_static is yes.
12281   test "$enable_shared" = yes || enable_static=yes
12282   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12283 $as_echo "$enable_static" >&6; }
12284
12285
12286
12287
12288 fi
12289 ac_ext=c
12290 ac_cpp='$CPP $CPPFLAGS'
12291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12294
12295 CC="$lt_save_CC"
12296
12297
12298 ac_ext=cpp
12299 ac_cpp='$CXXCPP $CPPFLAGS'
12300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12303
12304 archive_cmds_need_lc_CXX=no
12305 allow_undefined_flag_CXX=
12306 always_export_symbols_CXX=no
12307 archive_expsym_cmds_CXX=
12308 compiler_needs_object_CXX=no
12309 export_dynamic_flag_spec_CXX=
12310 hardcode_direct_CXX=no
12311 hardcode_direct_absolute_CXX=no
12312 hardcode_libdir_flag_spec_CXX=
12313 hardcode_libdir_flag_spec_ld_CXX=
12314 hardcode_libdir_separator_CXX=
12315 hardcode_minus_L_CXX=no
12316 hardcode_shlibpath_var_CXX=unsupported
12317 hardcode_automatic_CXX=no
12318 inherit_rpath_CXX=no
12319 module_cmds_CXX=
12320 module_expsym_cmds_CXX=
12321 link_all_deplibs_CXX=unknown
12322 old_archive_cmds_CXX=$old_archive_cmds
12323 no_undefined_flag_CXX=
12324 whole_archive_flag_spec_CXX=
12325 enable_shared_with_static_runtimes_CXX=no
12326
12327 # Source file extension for C++ test sources.
12328 ac_ext=cpp
12329
12330 # Object file extension for compiled C++ test sources.
12331 objext=o
12332 objext_CXX=$objext
12333
12334 # No sense in running all these tests if we already determined that
12335 # the CXX compiler isn't working.  Some variables (like enable_shared)
12336 # are currently assumed to apply to all compilers on this platform,
12337 # and will be corrupted by setting them based on a non-working compiler.
12338 if test "$_lt_caught_CXX_error" != yes; then
12339   # Code to be used in simple compile tests
12340   lt_simple_compile_test_code="int some_variable = 0;"
12341
12342   # Code to be used in simple link tests
12343   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12344
12345   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12346
12347
12348
12349
12350
12351
12352 # If no C compiler was specified, use CC.
12353 LTCC=${LTCC-"$CC"}
12354
12355 # If no C compiler flags were specified, use CFLAGS.
12356 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12357
12358 # Allow CC to be a program name with arguments.
12359 compiler=$CC
12360
12361
12362   # save warnings/boilerplate of simple test code
12363   ac_outfile=conftest.$ac_objext
12364 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12365 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12366 _lt_compiler_boilerplate=`cat conftest.err`
12367 $RM conftest*
12368
12369   ac_outfile=conftest.$ac_objext
12370 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12371 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12372 _lt_linker_boilerplate=`cat conftest.err`
12373 $RM -r conftest*
12374
12375
12376   # Allow CC to be a program name with arguments.
12377   lt_save_CC=$CC
12378   lt_save_LD=$LD
12379   lt_save_GCC=$GCC
12380   GCC=$GXX
12381   lt_save_with_gnu_ld=$with_gnu_ld
12382   lt_save_path_LD=$lt_cv_path_LD
12383   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12384     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12385   else
12386     $as_unset lt_cv_prog_gnu_ld
12387   fi
12388   if test -n "${lt_cv_path_LDCXX+set}"; then
12389     lt_cv_path_LD=$lt_cv_path_LDCXX
12390   else
12391     $as_unset lt_cv_path_LD
12392   fi
12393   test -z "${LDCXX+set}" || LD=$LDCXX
12394   CC=${CXX-"c++"}
12395   compiler=$CC
12396   compiler_CXX=$CC
12397   for cc_temp in $compiler""; do
12398   case $cc_temp in
12399     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12400     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12401     \-*) ;;
12402     *) break;;
12403   esac
12404 done
12405 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12406
12407
12408   if test -n "$compiler"; then
12409     # We don't want -fno-exception when compiling C++ code, so set the
12410     # no_builtin_flag separately
12411     if test "$GXX" = yes; then
12412       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12413     else
12414       lt_prog_compiler_no_builtin_flag_CXX=
12415     fi
12416
12417     if test "$GXX" = yes; then
12418       # Set up default GNU C++ configuration
12419
12420
12421
12422 # Check whether --with-gnu-ld was given.
12423 if test "${with_gnu_ld+set}" = set; then
12424   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12425 else
12426   with_gnu_ld=no
12427 fi
12428
12429 ac_prog=ld
12430 if test "$GCC" = yes; then
12431   # Check if gcc -print-prog-name=ld gives a path.
12432   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12433 $as_echo_n "checking for ld used by $CC... " >&6; }
12434   case $host in
12435   *-*-mingw*)
12436     # gcc leaves a trailing carriage return which upsets mingw
12437     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12438   *)
12439     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12440   esac
12441   case $ac_prog in
12442     # Accept absolute paths.
12443     [\\/]* | ?:[\\/]*)
12444       re_direlt='/[^/][^/]*/\.\./'
12445       # Canonicalize the pathname of ld
12446       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12447       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12448         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12449       done
12450       test -z "$LD" && LD="$ac_prog"
12451       ;;
12452   "")
12453     # If it fails, then pretend we aren't using GCC.
12454     ac_prog=ld
12455     ;;
12456   *)
12457     # If it is relative, then search for the first ld in PATH.
12458     with_gnu_ld=unknown
12459     ;;
12460   esac
12461 elif test "$with_gnu_ld" = yes; then
12462   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
12463 $as_echo_n "checking for GNU ld... " >&6; }
12464 else
12465   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12466 $as_echo_n "checking for non-GNU ld... " >&6; }
12467 fi
12468 if test "${lt_cv_path_LD+set}" = set; then
12469   $as_echo_n "(cached) " >&6
12470 else
12471   if test -z "$LD"; then
12472   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12473   for ac_dir in $PATH; do
12474     IFS="$lt_save_ifs"
12475     test -z "$ac_dir" && ac_dir=.
12476     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12477       lt_cv_path_LD="$ac_dir/$ac_prog"
12478       # Check to see if the program is GNU ld.  I'd rather use --version,
12479       # but apparently some variants of GNU ld only accept -v.
12480       # Break only if it was the GNU/non-GNU ld that we prefer.
12481       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12482       *GNU* | *'with BFD'*)
12483         test "$with_gnu_ld" != no && break
12484         ;;
12485       *)
12486         test "$with_gnu_ld" != yes && break
12487         ;;
12488       esac
12489     fi
12490   done
12491   IFS="$lt_save_ifs"
12492 else
12493   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12494 fi
12495 fi
12496
12497 LD="$lt_cv_path_LD"
12498 if test -n "$LD"; then
12499   { $as_echo "$as_me:$LINENO: result: $LD" >&5
12500 $as_echo "$LD" >&6; }
12501 else
12502   { $as_echo "$as_me:$LINENO: result: no" >&5
12503 $as_echo "no" >&6; }
12504 fi
12505 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12506 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12507    { (exit 1); exit 1; }; }
12508 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12509 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12510 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12511   $as_echo_n "(cached) " >&6
12512 else
12513   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12514 case `$LD -v 2>&1 </dev/null` in
12515 *GNU* | *'with BFD'*)
12516   lt_cv_prog_gnu_ld=yes
12517   ;;
12518 *)
12519   lt_cv_prog_gnu_ld=no
12520   ;;
12521 esac
12522 fi
12523 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12524 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12525 with_gnu_ld=$lt_cv_prog_gnu_ld
12526
12527
12528
12529
12530
12531
12532
12533       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12534       # archiving commands below assume that GNU ld is being used.
12535       if test "$with_gnu_ld" = yes; then
12536         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12537         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'
12538
12539         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12540         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12541
12542         # If archive_cmds runs LD, not CC, wlarc should be empty
12543         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12544         #     investigate it a little bit more. (MM)
12545         wlarc='${wl}'
12546
12547         # ancient GNU ld didn't support --whole-archive et. al.
12548         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12549           $GREP 'no-whole-archive' > /dev/null; then
12550           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12551         else
12552           whole_archive_flag_spec_CXX=
12553         fi
12554       else
12555         with_gnu_ld=no
12556         wlarc=
12557
12558         # A generic and very simple default shared library creation
12559         # command for GNU C++ for the case where it uses the native
12560         # linker, instead of GNU ld.  If possible, this setting should
12561         # overridden to take advantage of the native linker features on
12562         # the platform it is being used on.
12563         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12564       fi
12565
12566       # Commands to make compiler produce verbose output that lists
12567       # what "hidden" libraries, object files and flags are used when
12568       # linking a shared library.
12569       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12570
12571     else
12572       GXX=no
12573       with_gnu_ld=no
12574       wlarc=
12575     fi
12576
12577     # PORTME: fill in a description of your system's C++ link characteristics
12578     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12579 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12580     ld_shlibs_CXX=yes
12581     case $host_os in
12582       aix3*)
12583         # FIXME: insert proper C++ library support
12584         ld_shlibs_CXX=no
12585         ;;
12586       aix[4-9]*)
12587         if test "$host_cpu" = ia64; then
12588           # On IA64, the linker does run time linking by default, so we don't
12589           # have to do anything special.
12590           aix_use_runtimelinking=no
12591           exp_sym_flag='-Bexport'
12592           no_entry_flag=""
12593         else
12594           aix_use_runtimelinking=no
12595
12596           # Test if we are trying to use run time linking or normal
12597           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12598           # need to do runtime linking.
12599           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12600             for ld_flag in $LDFLAGS; do
12601               case $ld_flag in
12602               *-brtl*)
12603                 aix_use_runtimelinking=yes
12604                 break
12605                 ;;
12606               esac
12607             done
12608             ;;
12609           esac
12610
12611           exp_sym_flag='-bexport'
12612           no_entry_flag='-bnoentry'
12613         fi
12614
12615         # When large executables or shared objects are built, AIX ld can
12616         # have problems creating the table of contents.  If linking a library
12617         # or program results in "error TOC overflow" add -mminimal-toc to
12618         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12619         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12620
12621         archive_cmds_CXX=''
12622         hardcode_direct_CXX=yes
12623         hardcode_direct_absolute_CXX=yes
12624         hardcode_libdir_separator_CXX=':'
12625         link_all_deplibs_CXX=yes
12626         file_list_spec_CXX='${wl}-f,'
12627
12628         if test "$GXX" = yes; then
12629           case $host_os in aix4.[012]|aix4.[012].*)
12630           # We only want to do this on AIX 4.2 and lower, the check
12631           # below for broken collect2 doesn't work under 4.3+
12632           collect2name=`${CC} -print-prog-name=collect2`
12633           if test -f "$collect2name" &&
12634              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12635           then
12636             # We have reworked collect2
12637             :
12638           else
12639             # We have old collect2
12640             hardcode_direct_CXX=unsupported
12641             # It fails to find uninstalled libraries when the uninstalled
12642             # path is not listed in the libpath.  Setting hardcode_minus_L
12643             # to unsupported forces relinking
12644             hardcode_minus_L_CXX=yes
12645             hardcode_libdir_flag_spec_CXX='-L$libdir'
12646             hardcode_libdir_separator_CXX=
12647           fi
12648           esac
12649           shared_flag='-shared'
12650           if test "$aix_use_runtimelinking" = yes; then
12651             shared_flag="$shared_flag "'${wl}-G'
12652           fi
12653         else
12654           # not using gcc
12655           if test "$host_cpu" = ia64; then
12656           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12657           # chokes on -Wl,-G. The following line is correct:
12658           shared_flag='-G'
12659           else
12660             if test "$aix_use_runtimelinking" = yes; then
12661               shared_flag='${wl}-G'
12662             else
12663               shared_flag='${wl}-bM:SRE'
12664             fi
12665           fi
12666         fi
12667
12668         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12669         # It seems that -bexpall does not export symbols beginning with
12670         # underscore (_), so it is better to generate a list of symbols to
12671         # export.
12672         always_export_symbols_CXX=yes
12673         if test "$aix_use_runtimelinking" = yes; then
12674           # Warning - without using the other runtime loading flags (-brtl),
12675           # -berok will link without error, but may produce a broken library.
12676           allow_undefined_flag_CXX='-berok'
12677           # Determine the default libpath from the value encoded in an empty
12678           # executable.
12679           cat >conftest.$ac_ext <<_ACEOF
12680 /* confdefs.h.  */
12681 _ACEOF
12682 cat confdefs.h >>conftest.$ac_ext
12683 cat >>conftest.$ac_ext <<_ACEOF
12684 /* end confdefs.h.  */
12685
12686 int
12687 main ()
12688 {
12689
12690   ;
12691   return 0;
12692 }
12693 _ACEOF
12694 rm -f conftest.$ac_objext conftest$ac_exeext
12695 if { (ac_try="$ac_link"
12696 case "(($ac_try" in
12697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12698   *) ac_try_echo=$ac_try;;
12699 esac
12700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12701 $as_echo "$ac_try_echo") >&5
12702   (eval "$ac_link") 2>conftest.er1
12703   ac_status=$?
12704   grep -v '^ *+' conftest.er1 >conftest.err
12705   rm -f conftest.er1
12706   cat conftest.err >&5
12707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); } && {
12709          test -z "$ac_cxx_werror_flag" ||
12710          test ! -s conftest.err
12711        } && test -s conftest$ac_exeext && {
12712          test "$cross_compiling" = yes ||
12713          $as_test_x conftest$ac_exeext
12714        }; then
12715
12716 lt_aix_libpath_sed='
12717     /Import File Strings/,/^$/ {
12718         /^0/ {
12719             s/^0  *\(.*\)$/\1/
12720             p
12721         }
12722     }'
12723 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12724 # Check for a 64-bit object if we didn't find anything.
12725 if test -z "$aix_libpath"; then
12726   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12727 fi
12728 else
12729   $as_echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12731
12732
12733 fi
12734
12735 rm -rf conftest.dSYM
12736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12737       conftest$ac_exeext conftest.$ac_ext
12738 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12739
12740           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12741
12742           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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12743         else
12744           if test "$host_cpu" = ia64; then
12745             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12746             allow_undefined_flag_CXX="-z nodefs"
12747             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"
12748           else
12749             # Determine the default libpath from the value encoded in an
12750             # empty executable.
12751             cat >conftest.$ac_ext <<_ACEOF
12752 /* confdefs.h.  */
12753 _ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h.  */
12757
12758 int
12759 main ()
12760 {
12761
12762   ;
12763   return 0;
12764 }
12765 _ACEOF
12766 rm -f conftest.$ac_objext conftest$ac_exeext
12767 if { (ac_try="$ac_link"
12768 case "(($ac_try" in
12769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12770   *) ac_try_echo=$ac_try;;
12771 esac
12772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12773 $as_echo "$ac_try_echo") >&5
12774   (eval "$ac_link") 2>conftest.er1
12775   ac_status=$?
12776   grep -v '^ *+' conftest.er1 >conftest.err
12777   rm -f conftest.er1
12778   cat conftest.err >&5
12779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780   (exit $ac_status); } && {
12781          test -z "$ac_cxx_werror_flag" ||
12782          test ! -s conftest.err
12783        } && test -s conftest$ac_exeext && {
12784          test "$cross_compiling" = yes ||
12785          $as_test_x conftest$ac_exeext
12786        }; then
12787
12788 lt_aix_libpath_sed='
12789     /Import File Strings/,/^$/ {
12790         /^0/ {
12791             s/^0  *\(.*\)$/\1/
12792             p
12793         }
12794     }'
12795 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12796 # Check for a 64-bit object if we didn't find anything.
12797 if test -z "$aix_libpath"; then
12798   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12799 fi
12800 else
12801   $as_echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.$ac_ext >&5
12803
12804
12805 fi
12806
12807 rm -rf conftest.dSYM
12808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12809       conftest$ac_exeext conftest.$ac_ext
12810 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12811
12812             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12813             # Warning - without using the other run time loading flags,
12814             # -berok will link without error, but may produce a broken library.
12815             no_undefined_flag_CXX=' ${wl}-bernotok'
12816             allow_undefined_flag_CXX=' ${wl}-berok'
12817             # Exported symbols can be pulled into shared objects from archives
12818             whole_archive_flag_spec_CXX='$convenience'
12819             archive_cmds_need_lc_CXX=yes
12820             # This is similar to how AIX traditionally builds its shared
12821             # libraries.
12822             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'
12823           fi
12824         fi
12825         ;;
12826
12827       beos*)
12828         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12829           allow_undefined_flag_CXX=unsupported
12830           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12831           # support --undefined.  This deserves some investigation.  FIXME
12832           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12833         else
12834           ld_shlibs_CXX=no
12835         fi
12836         ;;
12837
12838       chorus*)
12839         case $cc_basename in
12840           *)
12841           # FIXME: insert proper C++ library support
12842           ld_shlibs_CXX=no
12843           ;;
12844         esac
12845         ;;
12846
12847       cygwin* | mingw* | pw32* | cegcc*)
12848         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12849         # as there is no search path for DLLs.
12850         hardcode_libdir_flag_spec_CXX='-L$libdir'
12851         allow_undefined_flag_CXX=unsupported
12852         always_export_symbols_CXX=no
12853         enable_shared_with_static_runtimes_CXX=yes
12854
12855         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12856           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'
12857           # If the export-symbols file already is a .def file (1st line
12858           # is EXPORTS), use it as is; otherwise, prepend...
12859           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12860             cp $export_symbols $output_objdir/$soname.def;
12861           else
12862             echo EXPORTS > $output_objdir/$soname.def;
12863             cat $export_symbols >> $output_objdir/$soname.def;
12864           fi~
12865           $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'
12866         else
12867           ld_shlibs_CXX=no
12868         fi
12869         ;;
12870       darwin* | rhapsody*)
12871
12872
12873   archive_cmds_need_lc_CXX=no
12874   hardcode_direct_CXX=no
12875   hardcode_automatic_CXX=yes
12876   hardcode_shlibpath_var_CXX=unsupported
12877   whole_archive_flag_spec_CXX=''
12878   link_all_deplibs_CXX=yes
12879   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12880   case $cc_basename in
12881      ifort*) _lt_dar_can_shared=yes ;;
12882      *) _lt_dar_can_shared=$GCC ;;
12883   esac
12884   if test "$_lt_dar_can_shared" = "yes"; then
12885     output_verbose_link_cmd=echo
12886     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}"
12887     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12888     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}"
12889     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}"
12890        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12891       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}"
12892       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}"
12893     fi
12894
12895   else
12896   ld_shlibs_CXX=no
12897   fi
12898
12899         ;;
12900
12901       dgux*)
12902         case $cc_basename in
12903           ec++*)
12904             # FIXME: insert proper C++ library support
12905             ld_shlibs_CXX=no
12906             ;;
12907           ghcx*)
12908             # Green Hills C++ Compiler
12909             # FIXME: insert proper C++ library support
12910             ld_shlibs_CXX=no
12911             ;;
12912           *)
12913             # FIXME: insert proper C++ library support
12914             ld_shlibs_CXX=no
12915             ;;
12916         esac
12917         ;;
12918
12919       freebsd[12]*)
12920         # C++ shared libraries reported to be fairly broken before
12921         # switch to ELF
12922         ld_shlibs_CXX=no
12923         ;;
12924
12925       freebsd-elf*)
12926         archive_cmds_need_lc_CXX=no
12927         ;;
12928
12929       freebsd* | dragonfly*)
12930         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12931         # conventions
12932         ld_shlibs_CXX=yes
12933         ;;
12934
12935       gnu*)
12936         ;;
12937
12938       hpux9*)
12939         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12940         hardcode_libdir_separator_CXX=:
12941         export_dynamic_flag_spec_CXX='${wl}-E'
12942         hardcode_direct_CXX=yes
12943         hardcode_minus_L_CXX=yes # Not in the search PATH,
12944                                              # but as the default
12945                                              # location of the library.
12946
12947         case $cc_basename in
12948           CC*)
12949             # FIXME: insert proper C++ library support
12950             ld_shlibs_CXX=no
12951             ;;
12952           aCC*)
12953             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'
12954             # Commands to make compiler produce verbose output that lists
12955             # what "hidden" libraries, object files and flags are used when
12956             # linking a shared library.
12957             #
12958             # There doesn't appear to be a way to prevent this compiler from
12959             # explicitly linking system object files so we need to strip them
12960             # from the output so that they don't get included in the library
12961             # dependencies.
12962             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12963             ;;
12964           *)
12965             if test "$GXX" = yes; then
12966               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'
12967             else
12968               # FIXME: insert proper C++ library support
12969               ld_shlibs_CXX=no
12970             fi
12971             ;;
12972         esac
12973         ;;
12974
12975       hpux10*|hpux11*)
12976         if test $with_gnu_ld = no; then
12977           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12978           hardcode_libdir_separator_CXX=:
12979
12980           case $host_cpu in
12981             hppa*64*|ia64*)
12982               ;;
12983             *)
12984               export_dynamic_flag_spec_CXX='${wl}-E'
12985               ;;
12986           esac
12987         fi
12988         case $host_cpu in
12989           hppa*64*|ia64*)
12990             hardcode_direct_CXX=no
12991             hardcode_shlibpath_var_CXX=no
12992             ;;
12993           *)
12994             hardcode_direct_CXX=yes
12995             hardcode_direct_absolute_CXX=yes
12996             hardcode_minus_L_CXX=yes # Not in the search PATH,
12997                                                  # but as the default
12998                                                  # location of the library.
12999             ;;
13000         esac
13001
13002         case $cc_basename in
13003           CC*)
13004             # FIXME: insert proper C++ library support
13005             ld_shlibs_CXX=no
13006             ;;
13007           aCC*)
13008             case $host_cpu in
13009               hppa*64*)
13010                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13011                 ;;
13012               ia64*)
13013                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13014                 ;;
13015               *)
13016                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13017                 ;;
13018             esac
13019             # Commands to make compiler produce verbose output that lists
13020             # what "hidden" libraries, object files and flags are used when
13021             # linking a shared library.
13022             #
13023             # There doesn't appear to be a way to prevent this compiler from
13024             # explicitly linking system object files so we need to strip them
13025             # from the output so that they don't get included in the library
13026             # dependencies.
13027             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 "X$list" | $Xsed'
13028             ;;
13029           *)
13030             if test "$GXX" = yes; then
13031               if test $with_gnu_ld = no; then
13032                 case $host_cpu in
13033                   hppa*64*)
13034                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13035                     ;;
13036                   ia64*)
13037                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13038                     ;;
13039                   *)
13040                     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'
13041                     ;;
13042                 esac
13043               fi
13044             else
13045               # FIXME: insert proper C++ library support
13046               ld_shlibs_CXX=no
13047             fi
13048             ;;
13049         esac
13050         ;;
13051
13052       interix[3-9]*)
13053         hardcode_direct_CXX=no
13054         hardcode_shlibpath_var_CXX=no
13055         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13056         export_dynamic_flag_spec_CXX='${wl}-E'
13057         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13058         # Instead, shared libraries are loaded at an image base (0x10000000 by
13059         # default) and relocated if they conflict, which is a slow very memory
13060         # consuming and fragmenting process.  To avoid this, we pick a random,
13061         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13062         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13063         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'
13064         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'
13065         ;;
13066       irix5* | irix6*)
13067         case $cc_basename in
13068           CC*)
13069             # SGI C++
13070             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13071
13072             # Archives containing C++ object files must be created using
13073             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13074             # necessary to make sure instantiated templates are included
13075             # in the archive.
13076             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13077             ;;
13078           *)
13079             if test "$GXX" = yes; then
13080               if test "$with_gnu_ld" = no; then
13081                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13082               else
13083                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13084               fi
13085             fi
13086             link_all_deplibs_CXX=yes
13087             ;;
13088         esac
13089         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13090         hardcode_libdir_separator_CXX=:
13091         inherit_rpath_CXX=yes
13092         ;;
13093
13094       linux* | k*bsd*-gnu)
13095         case $cc_basename in
13096           KCC*)
13097             # Kuck and Associates, Inc. (KAI) C++ Compiler
13098
13099             # KCC will only create a shared library if the output file
13100             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13101             # to its proper name (with version) after linking.
13102             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'
13103             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'
13104             # Commands to make compiler produce verbose output that lists
13105             # what "hidden" libraries, object files and flags are used when
13106             # linking a shared library.
13107             #
13108             # There doesn't appear to be a way to prevent this compiler from
13109             # explicitly linking system object files so we need to strip them
13110             # from the output so that they don't get included in the library
13111             # dependencies.
13112             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 "X$list" | $Xsed'
13113
13114             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13115             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13116
13117             # Archives containing C++ object files must be created using
13118             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13119             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13120             ;;
13121           icpc* | ecpc* )
13122             # Intel C++
13123             with_gnu_ld=yes
13124             # version 8.0 and above of icpc choke on multiply defined symbols
13125             # if we add $predep_objects and $postdep_objects, however 7.1 and
13126             # earlier do not add the objects themselves.
13127             case `$CC -V 2>&1` in
13128               *"Version 7."*)
13129                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13130                 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'
13131                 ;;
13132               *)  # Version 8.0 or newer
13133                 tmp_idyn=
13134                 case $host_cpu in
13135                   ia64*) tmp_idyn=' -i_dynamic';;
13136                 esac
13137                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13138                 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'
13139                 ;;
13140             esac
13141             archive_cmds_need_lc_CXX=no
13142             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13143             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13144             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13145             ;;
13146           pgCC* | pgcpp*)
13147             # Portland Group C++ compiler
13148             case `$CC -V` in
13149             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13150               prelink_cmds_CXX='tpldir=Template.dir~
13151                 rm -rf $tpldir~
13152                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13153                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13154               old_archive_cmds_CXX='tpldir=Template.dir~
13155                 rm -rf $tpldir~
13156                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13157                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13158                 $RANLIB $oldlib'
13159               archive_cmds_CXX='tpldir=Template.dir~
13160                 rm -rf $tpldir~
13161                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13162                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13163               archive_expsym_cmds_CXX='tpldir=Template.dir~
13164                 rm -rf $tpldir~
13165                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13166                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13167               ;;
13168             *) # Version 6 will use weak symbols
13169               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13170               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'
13171               ;;
13172             esac
13173
13174             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13175             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13176             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'
13177             ;;
13178           cxx*)
13179             # Compaq C++
13180             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13181             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'
13182
13183             runpath_var=LD_RUN_PATH
13184             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13185             hardcode_libdir_separator_CXX=:
13186
13187             # Commands to make compiler produce verbose output that lists
13188             # what "hidden" libraries, object files and flags are used when
13189             # linking a shared library.
13190             #
13191             # There doesn't appear to be a way to prevent this compiler from
13192             # explicitly linking system object files so we need to strip them
13193             # from the output so that they don't get included in the library
13194             # dependencies.
13195             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13196             ;;
13197           xl*)
13198             # IBM XL 8.0 on PPC, with GNU ld
13199             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13200             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13201             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13202             if test "x$supports_anon_versioning" = xyes; then
13203               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13204                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13205                 echo "local: *; };" >> $output_objdir/$libname.ver~
13206                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13207             fi
13208             ;;
13209           *)
13210             case `$CC -V 2>&1 | sed 5q` in
13211             *Sun\ C*)
13212               # Sun C++ 5.9
13213               no_undefined_flag_CXX=' -zdefs'
13214               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13215               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'
13216               hardcode_libdir_flag_spec_CXX='-R$libdir'
13217               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'
13218               compiler_needs_object_CXX=yes
13219
13220               # Not sure whether something based on
13221               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13222               # would be better.
13223               output_verbose_link_cmd='echo'
13224
13225               # Archives containing C++ object files must be created using
13226               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13227               # necessary to make sure instantiated templates are included
13228               # in the archive.
13229               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13230               ;;
13231             esac
13232             ;;
13233         esac
13234         ;;
13235
13236       lynxos*)
13237         # FIXME: insert proper C++ library support
13238         ld_shlibs_CXX=no
13239         ;;
13240
13241       m88k*)
13242         # FIXME: insert proper C++ library support
13243         ld_shlibs_CXX=no
13244         ;;
13245
13246       mvs*)
13247         case $cc_basename in
13248           cxx*)
13249             # FIXME: insert proper C++ library support
13250             ld_shlibs_CXX=no
13251             ;;
13252           *)
13253             # FIXME: insert proper C++ library support
13254             ld_shlibs_CXX=no
13255             ;;
13256         esac
13257         ;;
13258
13259       netbsd*)
13260         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13261           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13262           wlarc=
13263           hardcode_libdir_flag_spec_CXX='-R$libdir'
13264           hardcode_direct_CXX=yes
13265           hardcode_shlibpath_var_CXX=no
13266         fi
13267         # Workaround some broken pre-1.5 toolchains
13268         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13269         ;;
13270
13271       *nto* | *qnx*)
13272         ld_shlibs_CXX=yes
13273         ;;
13274
13275       openbsd2*)
13276         # C++ shared libraries are fairly broken
13277         ld_shlibs_CXX=no
13278         ;;
13279
13280       openbsd*)
13281         if test -f /usr/libexec/ld.so; then
13282           hardcode_direct_CXX=yes
13283           hardcode_shlibpath_var_CXX=no
13284           hardcode_direct_absolute_CXX=yes
13285           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13286           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13287           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13288             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13289             export_dynamic_flag_spec_CXX='${wl}-E'
13290             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13291           fi
13292           output_verbose_link_cmd=echo
13293         else
13294           ld_shlibs_CXX=no
13295         fi
13296         ;;
13297
13298       osf3* | osf4* | osf5*)
13299         case $cc_basename in
13300           KCC*)
13301             # Kuck and Associates, Inc. (KAI) C++ Compiler
13302
13303             # KCC will only create a shared library if the output file
13304             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13305             # to its proper name (with version) after linking.
13306             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'
13307
13308             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13309             hardcode_libdir_separator_CXX=:
13310
13311             # Archives containing C++ object files must be created using
13312             # the KAI C++ compiler.
13313             case $host in
13314               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13315               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13316             esac
13317             ;;
13318           RCC*)
13319             # Rational C++ 2.4.1
13320             # FIXME: insert proper C++ library support
13321             ld_shlibs_CXX=no
13322             ;;
13323           cxx*)
13324             case $host in
13325               osf3*)
13326                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13327                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13328                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13329                 ;;
13330               *)
13331                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13332                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13333                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13334                   echo "-hidden">> $lib.exp~
13335                   $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13336                   $RM $lib.exp'
13337                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13338                 ;;
13339             esac
13340
13341             hardcode_libdir_separator_CXX=:
13342
13343             # Commands to make compiler produce verbose output that lists
13344             # what "hidden" libraries, object files and flags are used when
13345             # linking a shared library.
13346             #
13347             # There doesn't appear to be a way to prevent this compiler from
13348             # explicitly linking system object files so we need to strip them
13349             # from the output so that they don't get included in the library
13350             # dependencies.
13351             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13352             ;;
13353           *)
13354             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13355               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13356               case $host in
13357                 osf3*)
13358                   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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13359                   ;;
13360                 *)
13361                   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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13362                   ;;
13363               esac
13364
13365               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13366               hardcode_libdir_separator_CXX=:
13367
13368               # Commands to make compiler produce verbose output that lists
13369               # what "hidden" libraries, object files and flags are used when
13370               # linking a shared library.
13371               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13372
13373             else
13374               # FIXME: insert proper C++ library support
13375               ld_shlibs_CXX=no
13376             fi
13377             ;;
13378         esac
13379         ;;
13380
13381       psos*)
13382         # FIXME: insert proper C++ library support
13383         ld_shlibs_CXX=no
13384         ;;
13385
13386       sunos4*)
13387         case $cc_basename in
13388           CC*)
13389             # Sun C++ 4.x
13390             # FIXME: insert proper C++ library support
13391             ld_shlibs_CXX=no
13392             ;;
13393           lcc*)
13394             # Lucid
13395             # FIXME: insert proper C++ library support
13396             ld_shlibs_CXX=no
13397             ;;
13398           *)
13399             # FIXME: insert proper C++ library support
13400             ld_shlibs_CXX=no
13401             ;;
13402         esac
13403         ;;
13404
13405       solaris*)
13406         case $cc_basename in
13407           CC*)
13408             # Sun C++ 4.2, 5.x and Centerline C++
13409             archive_cmds_need_lc_CXX=yes
13410             no_undefined_flag_CXX=' -zdefs'
13411             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13412             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13413               $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'
13414
13415             hardcode_libdir_flag_spec_CXX='-R$libdir'
13416             hardcode_shlibpath_var_CXX=no
13417             case $host_os in
13418               solaris2.[0-5] | solaris2.[0-5].*) ;;
13419               *)
13420                 # The compiler driver will combine and reorder linker options,
13421                 # but understands `-z linker_flag'.
13422                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13423                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13424                 ;;
13425             esac
13426             link_all_deplibs_CXX=yes
13427
13428             output_verbose_link_cmd='echo'
13429
13430             # Archives containing C++ object files must be created using
13431             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13432             # necessary to make sure instantiated templates are included
13433             # in the archive.
13434             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13435             ;;
13436           gcx*)
13437             # Green Hills C++ Compiler
13438             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13439
13440             # The C++ compiler must be used to create the archive.
13441             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13442             ;;
13443           *)
13444             # GNU C++ compiler with Solaris linker
13445             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13446               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13447               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13448                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13449                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13450                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13451
13452                 # Commands to make compiler produce verbose output that lists
13453                 # what "hidden" libraries, object files and flags are used when
13454                 # linking a shared library.
13455                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13456               else
13457                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13458                 # platform.
13459                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13460                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13461                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13462
13463                 # Commands to make compiler produce verbose output that lists
13464                 # what "hidden" libraries, object files and flags are used when
13465                 # linking a shared library.
13466                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13467               fi
13468
13469               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13470               case $host_os in
13471                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13472                 *)
13473                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13474                   ;;
13475               esac
13476             fi
13477             ;;
13478         esac
13479         ;;
13480
13481     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13482       no_undefined_flag_CXX='${wl}-z,text'
13483       archive_cmds_need_lc_CXX=no
13484       hardcode_shlibpath_var_CXX=no
13485       runpath_var='LD_RUN_PATH'
13486
13487       case $cc_basename in
13488         CC*)
13489           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13490           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13491           ;;
13492         *)
13493           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13494           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13495           ;;
13496       esac
13497       ;;
13498
13499       sysv5* | sco3.2v5* | sco5v6*)
13500         # Note: We can NOT use -z defs as we might desire, because we do not
13501         # link with -lc, and that would cause any symbols used from libc to
13502         # always be unresolved, which means just about no library would
13503         # ever link correctly.  If we're not using GNU ld we use -z text
13504         # though, which does catch some bad symbols but isn't as heavy-handed
13505         # as -z defs.
13506         no_undefined_flag_CXX='${wl}-z,text'
13507         allow_undefined_flag_CXX='${wl}-z,nodefs'
13508         archive_cmds_need_lc_CXX=no
13509         hardcode_shlibpath_var_CXX=no
13510         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13511         hardcode_libdir_separator_CXX=':'
13512         link_all_deplibs_CXX=yes
13513         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13514         runpath_var='LD_RUN_PATH'
13515
13516         case $cc_basename in
13517           CC*)
13518             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13519             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13520             ;;
13521           *)
13522             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13523             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13524             ;;
13525         esac
13526       ;;
13527
13528       tandem*)
13529         case $cc_basename in
13530           NCC*)
13531             # NonStop-UX NCC 3.20
13532             # FIXME: insert proper C++ library support
13533             ld_shlibs_CXX=no
13534             ;;
13535           *)
13536             # FIXME: insert proper C++ library support
13537             ld_shlibs_CXX=no
13538             ;;
13539         esac
13540         ;;
13541
13542       vxworks*)
13543         # FIXME: insert proper C++ library support
13544         ld_shlibs_CXX=no
13545         ;;
13546
13547       *)
13548         # FIXME: insert proper C++ library support
13549         ld_shlibs_CXX=no
13550         ;;
13551     esac
13552
13553     { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13554 $as_echo "$ld_shlibs_CXX" >&6; }
13555     test "$ld_shlibs_CXX" = no && can_build_shared=no
13556
13557     GCC_CXX="$GXX"
13558     LD_CXX="$LD"
13559
13560     ## CAVEAT EMPTOR:
13561     ## There is no encapsulation within the following macros, do not change
13562     ## the running order or otherwise move them around unless you know exactly
13563     ## what you are doing...
13564     # Dependencies to place before and after the object being linked:
13565 predep_objects_CXX=
13566 postdep_objects_CXX=
13567 predeps_CXX=
13568 postdeps_CXX=
13569 compiler_lib_search_path_CXX=
13570
13571 cat > conftest.$ac_ext <<_LT_EOF
13572 class Foo
13573 {
13574 public:
13575   Foo (void) { a = 0; }
13576 private:
13577   int a;
13578 };
13579 _LT_EOF
13580
13581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13582   (eval $ac_compile) 2>&5
13583   ac_status=$?
13584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585   (exit $ac_status); }; then
13586   # Parse the compiler output and extract the necessary
13587   # objects, libraries and library flags.
13588
13589   # Sentinel used to keep track of whether or not we are before
13590   # the conftest object file.
13591   pre_test_object_deps_done=no
13592
13593   for p in `eval "$output_verbose_link_cmd"`; do
13594     case $p in
13595
13596     -L* | -R* | -l*)
13597        # Some compilers place space between "-{L,R}" and the path.
13598        # Remove the space.
13599        if test $p = "-L" ||
13600           test $p = "-R"; then
13601          prev=$p
13602          continue
13603        else
13604          prev=
13605        fi
13606
13607        if test "$pre_test_object_deps_done" = no; then
13608          case $p in
13609          -L* | -R*)
13610            # Internal compiler library paths should come after those
13611            # provided the user.  The postdeps already come after the
13612            # user supplied libs so there is no need to process them.
13613            if test -z "$compiler_lib_search_path_CXX"; then
13614              compiler_lib_search_path_CXX="${prev}${p}"
13615            else
13616              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13617            fi
13618            ;;
13619          # The "-l" case would never come before the object being
13620          # linked, so don't bother handling this case.
13621          esac
13622        else
13623          if test -z "$postdeps_CXX"; then
13624            postdeps_CXX="${prev}${p}"
13625          else
13626            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13627          fi
13628        fi
13629        ;;
13630
13631     *.$objext)
13632        # This assumes that the test object file only shows up
13633        # once in the compiler output.
13634        if test "$p" = "conftest.$objext"; then
13635          pre_test_object_deps_done=yes
13636          continue
13637        fi
13638
13639        if test "$pre_test_object_deps_done" = no; then
13640          if test -z "$predep_objects_CXX"; then
13641            predep_objects_CXX="$p"
13642          else
13643            predep_objects_CXX="$predep_objects_CXX $p"
13644          fi
13645        else
13646          if test -z "$postdep_objects_CXX"; then
13647            postdep_objects_CXX="$p"
13648          else
13649            postdep_objects_CXX="$postdep_objects_CXX $p"
13650          fi
13651        fi
13652        ;;
13653
13654     *) ;; # Ignore the rest.
13655
13656     esac
13657   done
13658
13659   # Clean up.
13660   rm -f a.out a.exe
13661 else
13662   echo "libtool.m4: error: problem compiling CXX test program"
13663 fi
13664
13665 $RM -f confest.$objext
13666
13667 # PORTME: override above test on systems where it is broken
13668 case $host_os in
13669 interix[3-9]*)
13670   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13671   # hack all around it, let's just trust "g++" to DTRT.
13672   predep_objects_CXX=
13673   postdep_objects_CXX=
13674   postdeps_CXX=
13675   ;;
13676
13677 linux*)
13678   case `$CC -V 2>&1 | sed 5q` in
13679   *Sun\ C*)
13680     # Sun C++ 5.9
13681
13682     # The more standards-conforming stlport4 library is
13683     # incompatible with the Cstd library. Avoid specifying
13684     # it if it's in CXXFLAGS. Ignore libCrun as
13685     # -library=stlport4 depends on it.
13686     case " $CXX $CXXFLAGS " in
13687     *" -library=stlport4 "*)
13688       solaris_use_stlport4=yes
13689       ;;
13690     esac
13691
13692     if test "$solaris_use_stlport4" != yes; then
13693       postdeps_CXX='-library=Cstd -library=Crun'
13694     fi
13695     ;;
13696   esac
13697   ;;
13698
13699 solaris*)
13700   case $cc_basename in
13701   CC*)
13702     # The more standards-conforming stlport4 library is
13703     # incompatible with the Cstd library. Avoid specifying
13704     # it if it's in CXXFLAGS. Ignore libCrun as
13705     # -library=stlport4 depends on it.
13706     case " $CXX $CXXFLAGS " in
13707     *" -library=stlport4 "*)
13708       solaris_use_stlport4=yes
13709       ;;
13710     esac
13711
13712     # Adding this requires a known-good setup of shared libraries for
13713     # Sun compiler versions before 5.6, else PIC objects from an old
13714     # archive will be linked into the output, leading to subtle bugs.
13715     if test "$solaris_use_stlport4" != yes; then
13716       postdeps_CXX='-library=Cstd -library=Crun'
13717     fi
13718     ;;
13719   esac
13720   ;;
13721 esac
13722
13723
13724 case " $postdeps_CXX " in
13725 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13726 esac
13727  compiler_lib_search_dirs_CXX=
13728 if test -n "${compiler_lib_search_path_CXX}"; then
13729  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13730 fi
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762     lt_prog_compiler_wl_CXX=
13763 lt_prog_compiler_pic_CXX=
13764 lt_prog_compiler_static_CXX=
13765
13766 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13767 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13768
13769   # C++ specific cases for pic, static, wl, etc.
13770   if test "$GXX" = yes; then
13771     lt_prog_compiler_wl_CXX='-Wl,'
13772     lt_prog_compiler_static_CXX='-static'
13773
13774     case $host_os in
13775     aix*)
13776       # All AIX code is PIC.
13777       if test "$host_cpu" = ia64; then
13778         # AIX 5 now supports IA64 processor
13779         lt_prog_compiler_static_CXX='-Bstatic'
13780       fi
13781       ;;
13782
13783     amigaos*)
13784       case $host_cpu in
13785       powerpc)
13786             # see comment about AmigaOS4 .so support
13787             lt_prog_compiler_pic_CXX='-fPIC'
13788         ;;
13789       m68k)
13790             # FIXME: we need at least 68020 code to build shared libraries, but
13791             # adding the `-m68020' flag to GCC prevents building anything better,
13792             # like `-m68040'.
13793             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13794         ;;
13795       esac
13796       ;;
13797
13798     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13799       # PIC is the default for these OSes.
13800       ;;
13801     mingw* | cygwin* | os2* | pw32* | cegcc*)
13802       # This hack is so that the source file can tell whether it is being
13803       # built for inclusion in a dll (and should export symbols for example).
13804       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13805       # (--disable-auto-import) libraries
13806       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13807       ;;
13808     darwin* | rhapsody*)
13809       # PIC is the default on this platform
13810       # Common symbols not allowed in MH_DYLIB files
13811       lt_prog_compiler_pic_CXX='-fno-common'
13812       ;;
13813     *djgpp*)
13814       # DJGPP does not support shared libraries at all
13815       lt_prog_compiler_pic_CXX=
13816       ;;
13817     interix[3-9]*)
13818       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13819       # Instead, we relocate shared libraries at runtime.
13820       ;;
13821     sysv4*MP*)
13822       if test -d /usr/nec; then
13823         lt_prog_compiler_pic_CXX=-Kconform_pic
13824       fi
13825       ;;
13826     hpux*)
13827       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13828       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13829       # sets the default TLS model and affects inlining.
13830       case $host_cpu in
13831       hppa*64*)
13832         ;;
13833       *)
13834         lt_prog_compiler_pic_CXX='-fPIC'
13835         ;;
13836       esac
13837       ;;
13838     *qnx* | *nto*)
13839       # QNX uses GNU C++, but need to define -shared option too, otherwise
13840       # it will coredump.
13841       lt_prog_compiler_pic_CXX='-fPIC -shared'
13842       ;;
13843     *)
13844       lt_prog_compiler_pic_CXX='-fPIC'
13845       ;;
13846     esac
13847   else
13848     case $host_os in
13849       aix[4-9]*)
13850         # All AIX code is PIC.
13851         if test "$host_cpu" = ia64; then
13852           # AIX 5 now supports IA64 processor
13853           lt_prog_compiler_static_CXX='-Bstatic'
13854         else
13855           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13856         fi
13857         ;;
13858       chorus*)
13859         case $cc_basename in
13860         cxch68*)
13861           # Green Hills C++ Compiler
13862           # _LT_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"
13863           ;;
13864         esac
13865         ;;
13866       dgux*)
13867         case $cc_basename in
13868           ec++*)
13869             lt_prog_compiler_pic_CXX='-KPIC'
13870             ;;
13871           ghcx*)
13872             # Green Hills C++ Compiler
13873             lt_prog_compiler_pic_CXX='-pic'
13874             ;;
13875           *)
13876             ;;
13877         esac
13878         ;;
13879       freebsd* | dragonfly*)
13880         # FreeBSD uses GNU C++
13881         ;;
13882       hpux9* | hpux10* | hpux11*)
13883         case $cc_basename in
13884           CC*)
13885             lt_prog_compiler_wl_CXX='-Wl,'
13886             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13887             if test "$host_cpu" != ia64; then
13888               lt_prog_compiler_pic_CXX='+Z'
13889             fi
13890             ;;
13891           aCC*)
13892             lt_prog_compiler_wl_CXX='-Wl,'
13893             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13894             case $host_cpu in
13895             hppa*64*|ia64*)
13896               # +Z the default
13897               ;;
13898             *)
13899               lt_prog_compiler_pic_CXX='+Z'
13900               ;;
13901             esac
13902             ;;
13903           *)
13904             ;;
13905         esac
13906         ;;
13907       interix*)
13908         # This is c89, which is MS Visual C++ (no shared libs)
13909         # Anyone wants to do a port?
13910         ;;
13911       irix5* | irix6* | nonstopux*)
13912         case $cc_basename in
13913           CC*)
13914             lt_prog_compiler_wl_CXX='-Wl,'
13915             lt_prog_compiler_static_CXX='-non_shared'
13916             # CC pic flag -KPIC is the default.
13917             ;;
13918           *)
13919             ;;
13920         esac
13921         ;;
13922       linux* | k*bsd*-gnu)
13923         case $cc_basename in
13924           KCC*)
13925             # KAI C++ Compiler
13926             lt_prog_compiler_wl_CXX='--backend -Wl,'
13927             lt_prog_compiler_pic_CXX='-fPIC'
13928             ;;
13929           ecpc* )
13930             # old Intel C++ for x86_64 which still supported -KPIC.
13931             lt_prog_compiler_wl_CXX='-Wl,'
13932             lt_prog_compiler_pic_CXX='-KPIC'
13933             lt_prog_compiler_static_CXX='-static'
13934             ;;
13935           icpc* )
13936             # Intel C++, used to be incompatible with GCC.
13937             # ICC 10 doesn't accept -KPIC any more.
13938             lt_prog_compiler_wl_CXX='-Wl,'
13939             lt_prog_compiler_pic_CXX='-fPIC'
13940             lt_prog_compiler_static_CXX='-static'
13941             ;;
13942           pgCC* | pgcpp*)
13943             # Portland Group C++ compiler
13944             lt_prog_compiler_wl_CXX='-Wl,'
13945             lt_prog_compiler_pic_CXX='-fpic'
13946             lt_prog_compiler_static_CXX='-Bstatic'
13947             ;;
13948           cxx*)
13949             # Compaq C++
13950             # Make sure the PIC flag is empty.  It appears that all Alpha
13951             # Linux and Compaq Tru64 Unix objects are PIC.
13952             lt_prog_compiler_pic_CXX=
13953             lt_prog_compiler_static_CXX='-non_shared'
13954             ;;
13955           xlc* | xlC*)
13956             # IBM XL 8.0 on PPC
13957             lt_prog_compiler_wl_CXX='-Wl,'
13958             lt_prog_compiler_pic_CXX='-qpic'
13959             lt_prog_compiler_static_CXX='-qstaticlink'
13960             ;;
13961           *)
13962             case `$CC -V 2>&1 | sed 5q` in
13963             *Sun\ C*)
13964               # Sun C++ 5.9
13965               lt_prog_compiler_pic_CXX='-KPIC'
13966               lt_prog_compiler_static_CXX='-Bstatic'
13967               lt_prog_compiler_wl_CXX='-Qoption ld '
13968               ;;
13969             esac
13970             ;;
13971         esac
13972         ;;
13973       lynxos*)
13974         ;;
13975       m88k*)
13976         ;;
13977       mvs*)
13978         case $cc_basename in
13979           cxx*)
13980             lt_prog_compiler_pic_CXX='-W c,exportall'
13981             ;;
13982           *)
13983             ;;
13984         esac
13985         ;;
13986       netbsd*)
13987         ;;
13988       *qnx* | *nto*)
13989         # QNX uses GNU C++, but need to define -shared option too, otherwise
13990         # it will coredump.
13991         lt_prog_compiler_pic_CXX='-fPIC -shared'
13992         ;;
13993       osf3* | osf4* | osf5*)
13994         case $cc_basename in
13995           KCC*)
13996             lt_prog_compiler_wl_CXX='--backend -Wl,'
13997             ;;
13998           RCC*)
13999             # Rational C++ 2.4.1
14000             lt_prog_compiler_pic_CXX='-pic'
14001             ;;
14002           cxx*)
14003             # Digital/Compaq C++
14004             lt_prog_compiler_wl_CXX='-Wl,'
14005             # Make sure the PIC flag is empty.  It appears that all Alpha
14006             # Linux and Compaq Tru64 Unix objects are PIC.
14007             lt_prog_compiler_pic_CXX=
14008             lt_prog_compiler_static_CXX='-non_shared'
14009             ;;
14010           *)
14011             ;;
14012         esac
14013         ;;
14014       psos*)
14015         ;;
14016       solaris*)
14017         case $cc_basename in
14018           CC*)
14019             # Sun C++ 4.2, 5.x and Centerline C++
14020             lt_prog_compiler_pic_CXX='-KPIC'
14021             lt_prog_compiler_static_CXX='-Bstatic'
14022             lt_prog_compiler_wl_CXX='-Qoption ld '
14023             ;;
14024           gcx*)
14025             # Green Hills C++ Compiler
14026             lt_prog_compiler_pic_CXX='-PIC'
14027             ;;
14028           *)
14029             ;;
14030         esac
14031         ;;
14032       sunos4*)
14033         case $cc_basename in
14034           CC*)
14035             # Sun C++ 4.x
14036             lt_prog_compiler_pic_CXX='-pic'
14037             lt_prog_compiler_static_CXX='-Bstatic'
14038             ;;
14039           lcc*)
14040             # Lucid
14041             lt_prog_compiler_pic_CXX='-pic'
14042             ;;
14043           *)
14044             ;;
14045         esac
14046         ;;
14047       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14048         case $cc_basename in
14049           CC*)
14050             lt_prog_compiler_wl_CXX='-Wl,'
14051             lt_prog_compiler_pic_CXX='-KPIC'
14052             lt_prog_compiler_static_CXX='-Bstatic'
14053             ;;
14054         esac
14055         ;;
14056       tandem*)
14057         case $cc_basename in
14058           NCC*)
14059             # NonStop-UX NCC 3.20
14060             lt_prog_compiler_pic_CXX='-KPIC'
14061             ;;
14062           *)
14063             ;;
14064         esac
14065         ;;
14066       vxworks*)
14067         ;;
14068       *)
14069         lt_prog_compiler_can_build_shared_CXX=no
14070         ;;
14071     esac
14072   fi
14073
14074 case $host_os in
14075   # For platforms which do not support PIC, -DPIC is meaningless:
14076   *djgpp*)
14077     lt_prog_compiler_pic_CXX=
14078     ;;
14079   *)
14080     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14081     ;;
14082 esac
14083 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14084 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14085
14086
14087
14088 #
14089 # Check to make sure the PIC flag actually works.
14090 #
14091 if test -n "$lt_prog_compiler_pic_CXX"; then
14092   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14093 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14094 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14095   $as_echo_n "(cached) " >&6
14096 else
14097   lt_cv_prog_compiler_pic_works_CXX=no
14098    ac_outfile=conftest.$ac_objext
14099    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14100    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14101    # Insert the option either (1) after the last *FLAGS variable, or
14102    # (2) before a word containing "conftest.", or (3) at the end.
14103    # Note that $ac_compile itself does not contain backslashes and begins
14104    # with a dollar sign (not a hyphen), so the echo should work correctly.
14105    # The option is referenced via a variable to avoid confusing sed.
14106    lt_compile=`echo "$ac_compile" | $SED \
14107    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14108    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14109    -e 's:$: $lt_compiler_flag:'`
14110    (eval echo "\"\$as_me:14110: $lt_compile\"" >&5)
14111    (eval "$lt_compile" 2>conftest.err)
14112    ac_status=$?
14113    cat conftest.err >&5
14114    echo "$as_me:14114: \$? = $ac_status" >&5
14115    if (exit $ac_status) && test -s "$ac_outfile"; then
14116      # The compiler can only warn and ignore the option if not recognized
14117      # So say no if there are warnings other than the usual output.
14118      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14119      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14120      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14121        lt_cv_prog_compiler_pic_works_CXX=yes
14122      fi
14123    fi
14124    $RM conftest*
14125
14126 fi
14127 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14128 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14129
14130 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14131     case $lt_prog_compiler_pic_CXX in
14132      "" | " "*) ;;
14133      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14134      esac
14135 else
14136     lt_prog_compiler_pic_CXX=
14137      lt_prog_compiler_can_build_shared_CXX=no
14138 fi
14139
14140 fi
14141
14142
14143
14144 #
14145 # Check to make sure the static flag actually works.
14146 #
14147 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14148 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14149 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14150 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14151   $as_echo_n "(cached) " >&6
14152 else
14153   lt_cv_prog_compiler_static_works_CXX=no
14154    save_LDFLAGS="$LDFLAGS"
14155    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14156    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14157    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14158      # The linker can only warn and ignore the option if not recognized
14159      # So say no if there are warnings
14160      if test -s conftest.err; then
14161        # Append any errors to the config.log.
14162        cat conftest.err 1>&5
14163        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14164        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14165        if diff conftest.exp conftest.er2 >/dev/null; then
14166          lt_cv_prog_compiler_static_works_CXX=yes
14167        fi
14168      else
14169        lt_cv_prog_compiler_static_works_CXX=yes
14170      fi
14171    fi
14172    $RM -r conftest*
14173    LDFLAGS="$save_LDFLAGS"
14174
14175 fi
14176 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14177 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14178
14179 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14180     :
14181 else
14182     lt_prog_compiler_static_CXX=
14183 fi
14184
14185
14186
14187
14188     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14189 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14190 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14191   $as_echo_n "(cached) " >&6
14192 else
14193   lt_cv_prog_compiler_c_o_CXX=no
14194    $RM -r conftest 2>/dev/null
14195    mkdir conftest
14196    cd conftest
14197    mkdir out
14198    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14199
14200    lt_compiler_flag="-o out/conftest2.$ac_objext"
14201    # Insert the option either (1) after the last *FLAGS variable, or
14202    # (2) before a word containing "conftest.", or (3) at the end.
14203    # Note that $ac_compile itself does not contain backslashes and begins
14204    # with a dollar sign (not a hyphen), so the echo should work correctly.
14205    lt_compile=`echo "$ac_compile" | $SED \
14206    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14207    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14208    -e 's:$: $lt_compiler_flag:'`
14209    (eval echo "\"\$as_me:14209: $lt_compile\"" >&5)
14210    (eval "$lt_compile" 2>out/conftest.err)
14211    ac_status=$?
14212    cat out/conftest.err >&5
14213    echo "$as_me:14213: \$? = $ac_status" >&5
14214    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14215    then
14216      # The compiler can only warn and ignore the option if not recognized
14217      # So say no if there are warnings
14218      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14219      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14220      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14221        lt_cv_prog_compiler_c_o_CXX=yes
14222      fi
14223    fi
14224    chmod u+w . 2>&5
14225    $RM conftest*
14226    # SGI C++ compiler will create directory out/ii_files/ for
14227    # template instantiation
14228    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14229    $RM out/* && rmdir out
14230    cd ..
14231    $RM -r conftest
14232    $RM conftest*
14233
14234 fi
14235 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14236 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14237
14238
14239
14240     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14241 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14242 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14243   $as_echo_n "(cached) " >&6
14244 else
14245   lt_cv_prog_compiler_c_o_CXX=no
14246    $RM -r conftest 2>/dev/null
14247    mkdir conftest
14248    cd conftest
14249    mkdir out
14250    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14251
14252    lt_compiler_flag="-o out/conftest2.$ac_objext"
14253    # Insert the option either (1) after the last *FLAGS variable, or
14254    # (2) before a word containing "conftest.", or (3) at the end.
14255    # Note that $ac_compile itself does not contain backslashes and begins
14256    # with a dollar sign (not a hyphen), so the echo should work correctly.
14257    lt_compile=`echo "$ac_compile" | $SED \
14258    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14259    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14260    -e 's:$: $lt_compiler_flag:'`
14261    (eval echo "\"\$as_me:14261: $lt_compile\"" >&5)
14262    (eval "$lt_compile" 2>out/conftest.err)
14263    ac_status=$?
14264    cat out/conftest.err >&5
14265    echo "$as_me:14265: \$? = $ac_status" >&5
14266    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14267    then
14268      # The compiler can only warn and ignore the option if not recognized
14269      # So say no if there are warnings
14270      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14271      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14272      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14273        lt_cv_prog_compiler_c_o_CXX=yes
14274      fi
14275    fi
14276    chmod u+w . 2>&5
14277    $RM conftest*
14278    # SGI C++ compiler will create directory out/ii_files/ for
14279    # template instantiation
14280    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14281    $RM out/* && rmdir out
14282    cd ..
14283    $RM -r conftest
14284    $RM conftest*
14285
14286 fi
14287 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14288 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14289
14290
14291
14292
14293 hard_links="nottested"
14294 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14295   # do not overwrite the value of need_locks provided by the user
14296   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14297 $as_echo_n "checking if we can lock with hard links... " >&6; }
14298   hard_links=yes
14299   $RM conftest*
14300   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14301   touch conftest.a
14302   ln conftest.a conftest.b 2>&5 || hard_links=no
14303   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14304   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14305 $as_echo "$hard_links" >&6; }
14306   if test "$hard_links" = no; then
14307     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14308 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14309     need_locks=warn
14310   fi
14311 else
14312   need_locks=no
14313 fi
14314
14315
14316
14317     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14318 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14319
14320   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14321   case $host_os in
14322   aix[4-9]*)
14323     # If we're using GNU nm, then we don't want the "-C" option.
14324     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14325     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14326       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'
14327     else
14328       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'
14329     fi
14330     ;;
14331   pw32*)
14332     export_symbols_cmds_CXX="$ltdll_cmds"
14333   ;;
14334   cygwin* | mingw* | cegcc*)
14335     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'
14336   ;;
14337   *)
14338     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14339   ;;
14340   esac
14341   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14342
14343 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14344 $as_echo "$ld_shlibs_CXX" >&6; }
14345 test "$ld_shlibs_CXX" = no && can_build_shared=no
14346
14347 with_gnu_ld_CXX=$with_gnu_ld
14348
14349
14350
14351
14352
14353
14354 #
14355 # Do we need to explicitly link libc?
14356 #
14357 case "x$archive_cmds_need_lc_CXX" in
14358 x|xyes)
14359   # Assume -lc should be added
14360   archive_cmds_need_lc_CXX=yes
14361
14362   if test "$enable_shared" = yes && test "$GCC" = yes; then
14363     case $archive_cmds_CXX in
14364     *'~'*)
14365       # FIXME: we may have to deal with multi-command sequences.
14366       ;;
14367     '$CC '*)
14368       # Test whether the compiler implicitly links with -lc since on some
14369       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14370       # to ld, don't add -lc before -lgcc.
14371       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14372 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14373       $RM conftest*
14374       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14375
14376       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14377   (eval $ac_compile) 2>&5
14378   ac_status=$?
14379   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380   (exit $ac_status); } 2>conftest.err; then
14381         soname=conftest
14382         lib=conftest
14383         libobjs=conftest.$ac_objext
14384         deplibs=
14385         wl=$lt_prog_compiler_wl_CXX
14386         pic_flag=$lt_prog_compiler_pic_CXX
14387         compiler_flags=-v
14388         linker_flags=-v
14389         verstring=
14390         output_objdir=.
14391         libname=conftest
14392         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14393         allow_undefined_flag_CXX=
14394         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14395   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14396   ac_status=$?
14397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398   (exit $ac_status); }
14399         then
14400           archive_cmds_need_lc_CXX=no
14401         else
14402           archive_cmds_need_lc_CXX=yes
14403         fi
14404         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14405       else
14406         cat conftest.err 1>&5
14407       fi
14408       $RM conftest*
14409       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14410 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14411       ;;
14412     esac
14413   fi
14414   ;;
14415 esac
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480     { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14481 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14482
14483 library_names_spec=
14484 libname_spec='lib$name'
14485 soname_spec=
14486 shrext_cmds=".so"
14487 postinstall_cmds=
14488 postuninstall_cmds=
14489 finish_cmds=
14490 finish_eval=
14491 shlibpath_var=
14492 shlibpath_overrides_runpath=unknown
14493 version_type=none
14494 dynamic_linker="$host_os ld.so"
14495 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14496 need_lib_prefix=unknown
14497 hardcode_into_libs=no
14498
14499 # when you set need_version to no, make sure it does not cause -set_version
14500 # flags to be left without arguments
14501 need_version=unknown
14502
14503 case $host_os in
14504 aix3*)
14505   version_type=linux
14506   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14507   shlibpath_var=LIBPATH
14508
14509   # AIX 3 has no versioning support, so we append a major version to the name.
14510   soname_spec='${libname}${release}${shared_ext}$major'
14511   ;;
14512
14513 aix[4-9]*)
14514   version_type=linux
14515   need_lib_prefix=no
14516   need_version=no
14517   hardcode_into_libs=yes
14518   if test "$host_cpu" = ia64; then
14519     # AIX 5 supports IA64
14520     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14521     shlibpath_var=LD_LIBRARY_PATH
14522   else
14523     # With GCC up to 2.95.x, collect2 would create an import file
14524     # for dependence libraries.  The import file would start with
14525     # the line `#! .'.  This would cause the generated library to
14526     # depend on `.', always an invalid library.  This was fixed in
14527     # development snapshots of GCC prior to 3.0.
14528     case $host_os in
14529       aix4 | aix4.[01] | aix4.[01].*)
14530       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14531            echo ' yes '
14532            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14533         :
14534       else
14535         can_build_shared=no
14536       fi
14537       ;;
14538     esac
14539     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14540     # soname into executable. Probably we can add versioning support to
14541     # collect2, so additional links can be useful in future.
14542     if test "$aix_use_runtimelinking" = yes; then
14543       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14544       # instead of lib<name>.a to let people know that these are not
14545       # typical AIX shared libraries.
14546       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14547     else
14548       # We preserve .a as extension for shared libraries through AIX4.2
14549       # and later when we are not doing run time linking.
14550       library_names_spec='${libname}${release}.a $libname.a'
14551       soname_spec='${libname}${release}${shared_ext}$major'
14552     fi
14553     shlibpath_var=LIBPATH
14554   fi
14555   ;;
14556
14557 amigaos*)
14558   case $host_cpu in
14559   powerpc)
14560     # Since July 2007 AmigaOS4 officially supports .so libraries.
14561     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14562     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14563     ;;
14564   m68k)
14565     library_names_spec='$libname.ixlibrary $libname.a'
14566     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14567     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'
14568     ;;
14569   esac
14570   ;;
14571
14572 beos*)
14573   library_names_spec='${libname}${shared_ext}'
14574   dynamic_linker="$host_os ld.so"
14575   shlibpath_var=LIBRARY_PATH
14576   ;;
14577
14578 bsdi[45]*)
14579   version_type=linux
14580   need_version=no
14581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14582   soname_spec='${libname}${release}${shared_ext}$major'
14583   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14584   shlibpath_var=LD_LIBRARY_PATH
14585   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14586   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14587   # the default ld.so.conf also contains /usr/contrib/lib and
14588   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14589   # libtool to hard-code these into programs
14590   ;;
14591
14592 cygwin* | mingw* | pw32* | cegcc*)
14593   version_type=windows
14594   shrext_cmds=".dll"
14595   need_version=no
14596   need_lib_prefix=no
14597
14598   case $GCC,$host_os in
14599   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14600     library_names_spec='$libname.dll.a'
14601     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14602     postinstall_cmds='base_file=`basename \${file}`~
14603       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14604       dldir=$destdir/`dirname \$dlpath`~
14605       test -d \$dldir || mkdir -p \$dldir~
14606       $install_prog $dir/$dlname \$dldir/$dlname~
14607       chmod a+x \$dldir/$dlname~
14608       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14609         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14610       fi'
14611     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14612       dlpath=$dir/\$dldll~
14613        $RM \$dlpath'
14614     shlibpath_overrides_runpath=yes
14615
14616     case $host_os in
14617     cygwin*)
14618       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14619       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14620       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14621       ;;
14622     mingw* | cegcc*)
14623       # MinGW DLLs use traditional 'lib' prefix
14624       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14625       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14626       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14627         # It is most probably a Windows format PATH printed by
14628         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14629         # path with ; separators, and with drive letters. We can handle the
14630         # drive letters (cygwin fileutils understands them), so leave them,
14631         # especially as we might pass files found there to a mingw objdump,
14632         # which wouldn't understand a cygwinified path. Ahh.
14633         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14634       else
14635         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14636       fi
14637       ;;
14638     pw32*)
14639       # pw32 DLLs use 'pw' prefix rather than 'lib'
14640       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14641       ;;
14642     esac
14643     ;;
14644
14645   *)
14646     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14647     ;;
14648   esac
14649   dynamic_linker='Win32 ld.exe'
14650   # FIXME: first we should search . and the directory the executable is in
14651   shlibpath_var=PATH
14652   ;;
14653
14654 darwin* | rhapsody*)
14655   dynamic_linker="$host_os dyld"
14656   version_type=darwin
14657   need_lib_prefix=no
14658   need_version=no
14659   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14660   soname_spec='${libname}${release}${major}$shared_ext'
14661   shlibpath_overrides_runpath=yes
14662   shlibpath_var=DYLD_LIBRARY_PATH
14663   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14664
14665   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14666   ;;
14667
14668 dgux*)
14669   version_type=linux
14670   need_lib_prefix=no
14671   need_version=no
14672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14673   soname_spec='${libname}${release}${shared_ext}$major'
14674   shlibpath_var=LD_LIBRARY_PATH
14675   ;;
14676
14677 freebsd1*)
14678   dynamic_linker=no
14679   ;;
14680
14681 freebsd* | dragonfly*)
14682   # DragonFly does not have aout.  When/if they implement a new
14683   # versioning mechanism, adjust this.
14684   if test -x /usr/bin/objformat; then
14685     objformat=`/usr/bin/objformat`
14686   else
14687     case $host_os in
14688     freebsd[123]*) objformat=aout ;;
14689     *) objformat=elf ;;
14690     esac
14691   fi
14692   version_type=freebsd-$objformat
14693   case $version_type in
14694     freebsd-elf*)
14695       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14696       need_version=no
14697       need_lib_prefix=no
14698       ;;
14699     freebsd-*)
14700       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14701       need_version=yes
14702       ;;
14703   esac
14704   shlibpath_var=LD_LIBRARY_PATH
14705   case $host_os in
14706   freebsd2*)
14707     shlibpath_overrides_runpath=yes
14708     ;;
14709   freebsd3.[01]* | freebsdelf3.[01]*)
14710     shlibpath_overrides_runpath=yes
14711     hardcode_into_libs=yes
14712     ;;
14713   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14714   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14715     shlibpath_overrides_runpath=no
14716     hardcode_into_libs=yes
14717     ;;
14718   *) # from 4.6 on, and DragonFly
14719     shlibpath_overrides_runpath=yes
14720     hardcode_into_libs=yes
14721     ;;
14722   esac
14723   ;;
14724
14725 gnu*)
14726   version_type=linux
14727   need_lib_prefix=no
14728   need_version=no
14729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14730   soname_spec='${libname}${release}${shared_ext}$major'
14731   shlibpath_var=LD_LIBRARY_PATH
14732   hardcode_into_libs=yes
14733   ;;
14734
14735 hpux9* | hpux10* | hpux11*)
14736   # Give a soname corresponding to the major version so that dld.sl refuses to
14737   # link against other versions.
14738   version_type=sunos
14739   need_lib_prefix=no
14740   need_version=no
14741   case $host_cpu in
14742   ia64*)
14743     shrext_cmds='.so'
14744     hardcode_into_libs=yes
14745     dynamic_linker="$host_os dld.so"
14746     shlibpath_var=LD_LIBRARY_PATH
14747     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14748     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14749     soname_spec='${libname}${release}${shared_ext}$major'
14750     if test "X$HPUX_IA64_MODE" = X32; then
14751       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14752     else
14753       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14754     fi
14755     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14756     ;;
14757   hppa*64*)
14758     shrext_cmds='.sl'
14759     hardcode_into_libs=yes
14760     dynamic_linker="$host_os dld.sl"
14761     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14762     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14763     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14764     soname_spec='${libname}${release}${shared_ext}$major'
14765     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14766     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14767     ;;
14768   *)
14769     shrext_cmds='.sl'
14770     dynamic_linker="$host_os dld.sl"
14771     shlibpath_var=SHLIB_PATH
14772     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14773     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14774     soname_spec='${libname}${release}${shared_ext}$major'
14775     ;;
14776   esac
14777   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14778   postinstall_cmds='chmod 555 $lib'
14779   ;;
14780
14781 interix[3-9]*)
14782   version_type=linux
14783   need_lib_prefix=no
14784   need_version=no
14785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14786   soname_spec='${libname}${release}${shared_ext}$major'
14787   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14788   shlibpath_var=LD_LIBRARY_PATH
14789   shlibpath_overrides_runpath=no
14790   hardcode_into_libs=yes
14791   ;;
14792
14793 irix5* | irix6* | nonstopux*)
14794   case $host_os in
14795     nonstopux*) version_type=nonstopux ;;
14796     *)
14797         if test "$lt_cv_prog_gnu_ld" = yes; then
14798                 version_type=linux
14799         else
14800                 version_type=irix
14801         fi ;;
14802   esac
14803   need_lib_prefix=no
14804   need_version=no
14805   soname_spec='${libname}${release}${shared_ext}$major'
14806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14807   case $host_os in
14808   irix5* | nonstopux*)
14809     libsuff= shlibsuff=
14810     ;;
14811   *)
14812     case $LD in # libtool.m4 will add one of these switches to LD
14813     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14814       libsuff= shlibsuff= libmagic=32-bit;;
14815     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14816       libsuff=32 shlibsuff=N32 libmagic=N32;;
14817     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14818       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14819     *) libsuff= shlibsuff= libmagic=never-match;;
14820     esac
14821     ;;
14822   esac
14823   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14824   shlibpath_overrides_runpath=no
14825   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14826   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14827   hardcode_into_libs=yes
14828   ;;
14829
14830 # No shared lib support for Linux oldld, aout, or coff.
14831 linux*oldld* | linux*aout* | linux*coff*)
14832   dynamic_linker=no
14833   ;;
14834
14835 # This must be Linux ELF.
14836 linux* | k*bsd*-gnu)
14837   version_type=linux
14838   need_lib_prefix=no
14839   need_version=no
14840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14841   soname_spec='${libname}${release}${shared_ext}$major'
14842   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14843   shlibpath_var=LD_LIBRARY_PATH
14844   shlibpath_overrides_runpath=no
14845   # Some binutils ld are patched to set DT_RUNPATH
14846   save_LDFLAGS=$LDFLAGS
14847   save_libdir=$libdir
14848   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14849        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14850   cat >conftest.$ac_ext <<_ACEOF
14851 /* confdefs.h.  */
14852 _ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h.  */
14856
14857 int
14858 main ()
14859 {
14860
14861   ;
14862   return 0;
14863 }
14864 _ACEOF
14865 rm -f conftest.$ac_objext conftest$ac_exeext
14866 if { (ac_try="$ac_link"
14867 case "(($ac_try" in
14868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869   *) ac_try_echo=$ac_try;;
14870 esac
14871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14872 $as_echo "$ac_try_echo") >&5
14873   (eval "$ac_link") 2>conftest.er1
14874   ac_status=$?
14875   grep -v '^ *+' conftest.er1 >conftest.err
14876   rm -f conftest.er1
14877   cat conftest.err >&5
14878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879   (exit $ac_status); } && {
14880          test -z "$ac_cxx_werror_flag" ||
14881          test ! -s conftest.err
14882        } && test -s conftest$ac_exeext && {
14883          test "$cross_compiling" = yes ||
14884          $as_test_x conftest$ac_exeext
14885        }; then
14886   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
14887   shlibpath_overrides_runpath=yes
14888 fi
14889
14890 else
14891   $as_echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14893
14894
14895 fi
14896
14897 rm -rf conftest.dSYM
14898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14899       conftest$ac_exeext conftest.$ac_ext
14900   LDFLAGS=$save_LDFLAGS
14901   libdir=$save_libdir
14902
14903   # This implies no fast_install, which is unacceptable.
14904   # Some rework will be needed to allow for fast_install
14905   # before this can be enabled.
14906   hardcode_into_libs=yes
14907
14908   # Add ABI-specific directories to the system library path.
14909   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14910
14911   # Append ld.so.conf contents to the search path
14912   if test -f /etc/ld.so.conf; then
14913     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' ' '`
14914     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14915   fi
14916
14917   # We used to test for /lib/ld.so.1 and disable shared libraries on
14918   # powerpc, because MkLinux only supported shared libraries with the
14919   # GNU dynamic linker.  Since this was broken with cross compilers,
14920   # most powerpc-linux boxes support dynamic linking these days and
14921   # people can always --disable-shared, the test was removed, and we
14922   # assume the GNU/Linux dynamic linker is in use.
14923   dynamic_linker='GNU/Linux ld.so'
14924   ;;
14925
14926 netbsd*)
14927   version_type=sunos
14928   need_lib_prefix=no
14929   need_version=no
14930   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14931     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14932     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14933     dynamic_linker='NetBSD (a.out) ld.so'
14934   else
14935     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14936     soname_spec='${libname}${release}${shared_ext}$major'
14937     dynamic_linker='NetBSD ld.elf_so'
14938   fi
14939   shlibpath_var=LD_LIBRARY_PATH
14940   shlibpath_overrides_runpath=yes
14941   hardcode_into_libs=yes
14942   ;;
14943
14944 newsos6)
14945   version_type=linux
14946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14947   shlibpath_var=LD_LIBRARY_PATH
14948   shlibpath_overrides_runpath=yes
14949   ;;
14950
14951 *nto* | *qnx*)
14952   version_type=qnx
14953   need_lib_prefix=no
14954   need_version=no
14955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14956   soname_spec='${libname}${release}${shared_ext}$major'
14957   shlibpath_var=LD_LIBRARY_PATH
14958   shlibpath_overrides_runpath=no
14959   hardcode_into_libs=yes
14960   dynamic_linker='ldqnx.so'
14961   ;;
14962
14963 openbsd*)
14964   version_type=sunos
14965   sys_lib_dlsearch_path_spec="/usr/lib"
14966   need_lib_prefix=no
14967   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14968   case $host_os in
14969     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14970     *)                          need_version=no  ;;
14971   esac
14972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14973   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14974   shlibpath_var=LD_LIBRARY_PATH
14975   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14976     case $host_os in
14977       openbsd2.[89] | openbsd2.[89].*)
14978         shlibpath_overrides_runpath=no
14979         ;;
14980       *)
14981         shlibpath_overrides_runpath=yes
14982         ;;
14983       esac
14984   else
14985     shlibpath_overrides_runpath=yes
14986   fi
14987   ;;
14988
14989 os2*)
14990   libname_spec='$name'
14991   shrext_cmds=".dll"
14992   need_lib_prefix=no
14993   library_names_spec='$libname${shared_ext} $libname.a'
14994   dynamic_linker='OS/2 ld.exe'
14995   shlibpath_var=LIBPATH
14996   ;;
14997
14998 osf3* | osf4* | osf5*)
14999   version_type=osf
15000   need_lib_prefix=no
15001   need_version=no
15002   soname_spec='${libname}${release}${shared_ext}$major'
15003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15004   shlibpath_var=LD_LIBRARY_PATH
15005   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15006   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15007   ;;
15008
15009 rdos*)
15010   dynamic_linker=no
15011   ;;
15012
15013 solaris*)
15014   version_type=linux
15015   need_lib_prefix=no
15016   need_version=no
15017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15018   soname_spec='${libname}${release}${shared_ext}$major'
15019   shlibpath_var=LD_LIBRARY_PATH
15020   shlibpath_overrides_runpath=yes
15021   hardcode_into_libs=yes
15022   # ldd complains unless libraries are executable
15023   postinstall_cmds='chmod +x $lib'
15024   ;;
15025
15026 sunos4*)
15027   version_type=sunos
15028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15029   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15030   shlibpath_var=LD_LIBRARY_PATH
15031   shlibpath_overrides_runpath=yes
15032   if test "$with_gnu_ld" = yes; then
15033     need_lib_prefix=no
15034   fi
15035   need_version=yes
15036   ;;
15037
15038 sysv4 | sysv4.3*)
15039   version_type=linux
15040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15041   soname_spec='${libname}${release}${shared_ext}$major'
15042   shlibpath_var=LD_LIBRARY_PATH
15043   case $host_vendor in
15044     sni)
15045       shlibpath_overrides_runpath=no
15046       need_lib_prefix=no
15047       runpath_var=LD_RUN_PATH
15048       ;;
15049     siemens)
15050       need_lib_prefix=no
15051       ;;
15052     motorola)
15053       need_lib_prefix=no
15054       need_version=no
15055       shlibpath_overrides_runpath=no
15056       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15057       ;;
15058   esac
15059   ;;
15060
15061 sysv4*MP*)
15062   if test -d /usr/nec ;then
15063     version_type=linux
15064     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15065     soname_spec='$libname${shared_ext}.$major'
15066     shlibpath_var=LD_LIBRARY_PATH
15067   fi
15068   ;;
15069
15070 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15071   version_type=freebsd-elf
15072   need_lib_prefix=no
15073   need_version=no
15074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15075   soname_spec='${libname}${release}${shared_ext}$major'
15076   shlibpath_var=LD_LIBRARY_PATH
15077   shlibpath_overrides_runpath=yes
15078   hardcode_into_libs=yes
15079   if test "$with_gnu_ld" = yes; then
15080     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15081   else
15082     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15083     case $host_os in
15084       sco3.2v5*)
15085         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15086         ;;
15087     esac
15088   fi
15089   sys_lib_dlsearch_path_spec='/usr/lib'
15090   ;;
15091
15092 tpf*)
15093   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15094   version_type=linux
15095   need_lib_prefix=no
15096   need_version=no
15097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15098   shlibpath_var=LD_LIBRARY_PATH
15099   shlibpath_overrides_runpath=no
15100   hardcode_into_libs=yes
15101   ;;
15102
15103 uts4*)
15104   version_type=linux
15105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15106   soname_spec='${libname}${release}${shared_ext}$major'
15107   shlibpath_var=LD_LIBRARY_PATH
15108   ;;
15109
15110 *)
15111   dynamic_linker=no
15112   ;;
15113 esac
15114 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15115 $as_echo "$dynamic_linker" >&6; }
15116 test "$dynamic_linker" = no && can_build_shared=no
15117
15118 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15119 if test "$GCC" = yes; then
15120   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15121 fi
15122
15123 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15124   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15125 fi
15126 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15127   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15128 fi
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165     { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15166 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15167 hardcode_action_CXX=
15168 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15169    test -n "$runpath_var_CXX" ||
15170    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15171
15172   # We can hardcode non-existent directories.
15173   if test "$hardcode_direct_CXX" != no &&
15174      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15175      # have to relink, otherwise we might link with an installed library
15176      # when we should be linking with a yet-to-be-installed one
15177      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15178      test "$hardcode_minus_L_CXX" != no; then
15179     # Linking always hardcodes the temporary library directory.
15180     hardcode_action_CXX=relink
15181   else
15182     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15183     hardcode_action_CXX=immediate
15184   fi
15185 else
15186   # We cannot hardcode anything, or else we can only hardcode existing
15187   # directories.
15188   hardcode_action_CXX=unsupported
15189 fi
15190 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15191 $as_echo "$hardcode_action_CXX" >&6; }
15192
15193 if test "$hardcode_action_CXX" = relink ||
15194    test "$inherit_rpath_CXX" = yes; then
15195   # Fast installation is not supported
15196   enable_fast_install=no
15197 elif test "$shlibpath_overrides_runpath" = yes ||
15198      test "$enable_shared" = no; then
15199   # Fast installation is not necessary
15200   enable_fast_install=needless
15201 fi
15202
15203
15204
15205
15206
15207
15208
15209   fi # test -n "$compiler"
15210
15211   CC=$lt_save_CC
15212   LDCXX=$LD
15213   LD=$lt_save_LD
15214   GCC=$lt_save_GCC
15215   with_gnu_ld=$lt_save_with_gnu_ld
15216   lt_cv_path_LDCXX=$lt_cv_path_LD
15217   lt_cv_path_LD=$lt_save_path_LD
15218   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15219   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15220 fi # test "$_lt_caught_CXX_error" != yes
15221
15222 ac_ext=c
15223 ac_cpp='$CPP $CPPFLAGS'
15224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240         ac_config_commands="$ac_config_commands libtool"
15241
15242
15243
15244
15245 # Only expand once:
15246
15247
15248 ac_ext=c
15249 ac_cpp='$CPP $CPPFLAGS'
15250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15253 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
15254 $as_echo_n "checking how to run the C preprocessor... " >&6; }
15255 # On Suns, sometimes $CPP names a directory.
15256 if test -n "$CPP" && test -d "$CPP"; then
15257   CPP=
15258 fi
15259 if test -z "$CPP"; then
15260   if test "${ac_cv_prog_CPP+set}" = set; then
15261   $as_echo_n "(cached) " >&6
15262 else
15263       # Double quotes because CPP needs to be expanded
15264     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
15265     do
15266       ac_preproc_ok=false
15267 for ac_c_preproc_warn_flag in '' yes
15268 do
15269   # Use a header file that comes with gcc, so configuring glibc
15270   # with a fresh cross-compiler works.
15271   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15272   # <limits.h> exists even on freestanding compilers.
15273   # On the NeXT, cc -E runs the code through the compiler's parser,
15274   # not just through cpp. "Syntax error" is here to catch this case.
15275   cat >conftest.$ac_ext <<_ACEOF
15276 /* confdefs.h.  */
15277 _ACEOF
15278 cat confdefs.h >>conftest.$ac_ext
15279 cat >>conftest.$ac_ext <<_ACEOF
15280 /* end confdefs.h.  */
15281 #ifdef __STDC__
15282 # include <limits.h>
15283 #else
15284 # include <assert.h>
15285 #endif
15286                      Syntax error
15287 _ACEOF
15288 if { (ac_try="$ac_cpp conftest.$ac_ext"
15289 case "(($ac_try" in
15290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291   *) ac_try_echo=$ac_try;;
15292 esac
15293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15294 $as_echo "$ac_try_echo") >&5
15295   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15296   ac_status=$?
15297   grep -v '^ *+' conftest.er1 >conftest.err
15298   rm -f conftest.er1
15299   cat conftest.err >&5
15300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301   (exit $ac_status); } >/dev/null && {
15302          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15303          test ! -s conftest.err
15304        }; then
15305   :
15306 else
15307   $as_echo "$as_me: failed program was:" >&5
15308 sed 's/^/| /' conftest.$ac_ext >&5
15309
15310   # Broken: fails on valid input.
15311 continue
15312 fi
15313
15314 rm -f conftest.err conftest.$ac_ext
15315
15316   # OK, works on sane cases.  Now check whether nonexistent headers
15317   # can be detected and how.
15318   cat >conftest.$ac_ext <<_ACEOF
15319 /* confdefs.h.  */
15320 _ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h.  */
15324 #include <ac_nonexistent.h>
15325 _ACEOF
15326 if { (ac_try="$ac_cpp conftest.$ac_ext"
15327 case "(($ac_try" in
15328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329   *) ac_try_echo=$ac_try;;
15330 esac
15331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15332 $as_echo "$ac_try_echo") >&5
15333   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15334   ac_status=$?
15335   grep -v '^ *+' conftest.er1 >conftest.err
15336   rm -f conftest.er1
15337   cat conftest.err >&5
15338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339   (exit $ac_status); } >/dev/null && {
15340          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15341          test ! -s conftest.err
15342        }; then
15343   # Broken: success on invalid input.
15344 continue
15345 else
15346   $as_echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15348
15349   # Passes both tests.
15350 ac_preproc_ok=:
15351 break
15352 fi
15353
15354 rm -f conftest.err conftest.$ac_ext
15355
15356 done
15357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15358 rm -f conftest.err conftest.$ac_ext
15359 if $ac_preproc_ok; then
15360   break
15361 fi
15362
15363     done
15364     ac_cv_prog_CPP=$CPP
15365
15366 fi
15367   CPP=$ac_cv_prog_CPP
15368 else
15369   ac_cv_prog_CPP=$CPP
15370 fi
15371 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
15372 $as_echo "$CPP" >&6; }
15373 ac_preproc_ok=false
15374 for ac_c_preproc_warn_flag in '' yes
15375 do
15376   # Use a header file that comes with gcc, so configuring glibc
15377   # with a fresh cross-compiler works.
15378   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15379   # <limits.h> exists even on freestanding compilers.
15380   # On the NeXT, cc -E runs the code through the compiler's parser,
15381   # not just through cpp. "Syntax error" is here to catch this case.
15382   cat >conftest.$ac_ext <<_ACEOF
15383 /* confdefs.h.  */
15384 _ACEOF
15385 cat confdefs.h >>conftest.$ac_ext
15386 cat >>conftest.$ac_ext <<_ACEOF
15387 /* end confdefs.h.  */
15388 #ifdef __STDC__
15389 # include <limits.h>
15390 #else
15391 # include <assert.h>
15392 #endif
15393                      Syntax error
15394 _ACEOF
15395 if { (ac_try="$ac_cpp conftest.$ac_ext"
15396 case "(($ac_try" in
15397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15398   *) ac_try_echo=$ac_try;;
15399 esac
15400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15401 $as_echo "$ac_try_echo") >&5
15402   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15403   ac_status=$?
15404   grep -v '^ *+' conftest.er1 >conftest.err
15405   rm -f conftest.er1
15406   cat conftest.err >&5
15407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408   (exit $ac_status); } >/dev/null && {
15409          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15410          test ! -s conftest.err
15411        }; then
15412   :
15413 else
15414   $as_echo "$as_me: failed program was:" >&5
15415 sed 's/^/| /' conftest.$ac_ext >&5
15416
15417   # Broken: fails on valid input.
15418 continue
15419 fi
15420
15421 rm -f conftest.err conftest.$ac_ext
15422
15423   # OK, works on sane cases.  Now check whether nonexistent headers
15424   # can be detected and how.
15425   cat >conftest.$ac_ext <<_ACEOF
15426 /* confdefs.h.  */
15427 _ACEOF
15428 cat confdefs.h >>conftest.$ac_ext
15429 cat >>conftest.$ac_ext <<_ACEOF
15430 /* end confdefs.h.  */
15431 #include <ac_nonexistent.h>
15432 _ACEOF
15433 if { (ac_try="$ac_cpp conftest.$ac_ext"
15434 case "(($ac_try" in
15435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436   *) ac_try_echo=$ac_try;;
15437 esac
15438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15439 $as_echo "$ac_try_echo") >&5
15440   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15441   ac_status=$?
15442   grep -v '^ *+' conftest.er1 >conftest.err
15443   rm -f conftest.er1
15444   cat conftest.err >&5
15445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446   (exit $ac_status); } >/dev/null && {
15447          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15448          test ! -s conftest.err
15449        }; then
15450   # Broken: success on invalid input.
15451 continue
15452 else
15453   $as_echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15455
15456   # Passes both tests.
15457 ac_preproc_ok=:
15458 break
15459 fi
15460
15461 rm -f conftest.err conftest.$ac_ext
15462
15463 done
15464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15465 rm -f conftest.err conftest.$ac_ext
15466 if $ac_preproc_ok; then
15467   :
15468 else
15469   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15471 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
15472 See \`config.log' for more details." >&5
15473 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
15474 See \`config.log' for more details." >&2;}
15475    { (exit 1); exit 1; }; }; }
15476 fi
15477
15478 ac_ext=c
15479 ac_cpp='$CPP $CPPFLAGS'
15480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15483
15484 # Find a good install program.  We prefer a C program (faster),
15485 # so one script is as good as another.  But avoid the broken or
15486 # incompatible versions:
15487 # SysV /etc/install, /usr/sbin/install
15488 # SunOS /usr/etc/install
15489 # IRIX /sbin/install
15490 # AIX /bin/install
15491 # AmigaOS /C/install, which installs bootblocks on floppy discs
15492 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15493 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15494 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15495 # OS/2's system install, which has a completely different semantic
15496 # ./install, which can be erroneously created by make from ./install.sh.
15497 # Reject install programs that cannot install multiple files.
15498 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
15499 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15500 if test -z "$INSTALL"; then
15501 if test "${ac_cv_path_install+set}" = set; then
15502   $as_echo_n "(cached) " >&6
15503 else
15504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15505 for as_dir in $PATH
15506 do
15507   IFS=$as_save_IFS
15508   test -z "$as_dir" && as_dir=.
15509   # Account for people who put trailing slashes in PATH elements.
15510 case $as_dir/ in
15511   ./ | .// | /cC/* | \
15512   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15513   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
15514   /usr/ucb/* ) ;;
15515   *)
15516     # OSF1 and SCO ODT 3.0 have their own names for install.
15517     # Don't use installbsd from OSF since it installs stuff as root
15518     # by default.
15519     for ac_prog in ginstall scoinst install; do
15520       for ac_exec_ext in '' $ac_executable_extensions; do
15521         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
15522           if test $ac_prog = install &&
15523             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15524             # AIX install.  It has an incompatible calling convention.
15525             :
15526           elif test $ac_prog = install &&
15527             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15528             # program-specific install script used by HP pwplus--don't use.
15529             :
15530           else
15531             rm -rf conftest.one conftest.two conftest.dir
15532             echo one > conftest.one
15533             echo two > conftest.two
15534             mkdir conftest.dir
15535             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15536               test -s conftest.one && test -s conftest.two &&
15537               test -s conftest.dir/conftest.one &&
15538               test -s conftest.dir/conftest.two
15539             then
15540               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15541               break 3
15542             fi
15543           fi
15544         fi
15545       done
15546     done
15547     ;;
15548 esac
15549
15550 done
15551 IFS=$as_save_IFS
15552
15553 rm -rf conftest.one conftest.two conftest.dir
15554
15555 fi
15556   if test "${ac_cv_path_install+set}" = set; then
15557     INSTALL=$ac_cv_path_install
15558   else
15559     # As a last resort, use the slow shell script.  Don't cache a
15560     # value for INSTALL within a source directory, because that will
15561     # break other packages using the cache if that directory is
15562     # removed, or if the value is a relative name.
15563     INSTALL=$ac_install_sh
15564   fi
15565 fi
15566 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
15567 $as_echo "$INSTALL" >&6; }
15568
15569 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15570 # It thinks the first close brace ends the variable substitution.
15571 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15572
15573 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15574
15575 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15576
15577 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
15578 $as_echo_n "checking whether ln -s works... " >&6; }
15579 LN_S=$as_ln_s
15580 if test "$LN_S" = "ln -s"; then
15581   { $as_echo "$as_me:$LINENO: result: yes" >&5
15582 $as_echo "yes" >&6; }
15583 else
15584   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15585 $as_echo "no, using $LN_S" >&6; }
15586 fi
15587
15588 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15589 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15590 set x ${MAKE-make}
15591 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15592 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
15593   $as_echo_n "(cached) " >&6
15594 else
15595   cat >conftest.make <<\_ACEOF
15596 SHELL = /bin/sh
15597 all:
15598         @echo '@@@%%%=$(MAKE)=@@@%%%'
15599 _ACEOF
15600 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15601 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15602   *@@@%%%=?*=@@@%%%*)
15603     eval ac_cv_prog_make_${ac_make}_set=yes;;
15604   *)
15605     eval ac_cv_prog_make_${ac_make}_set=no;;
15606 esac
15607 rm -f conftest.make
15608 fi
15609 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15610   { $as_echo "$as_me:$LINENO: result: yes" >&5
15611 $as_echo "yes" >&6; }
15612   SET_MAKE=
15613 else
15614   { $as_echo "$as_me:$LINENO: result: no" >&5
15615 $as_echo "no" >&6; }
15616   SET_MAKE="MAKE=${MAKE-make}"
15617 fi
15618
15619
15620 # Checks for libraries.
15621
15622 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15623 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15624 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15625   $as_echo_n "(cached) " >&6
15626 else
15627   ac_check_lib_save_LIBS=$LIBS
15628 LIBS="-ldl  $LIBS"
15629 cat >conftest.$ac_ext <<_ACEOF
15630 /* confdefs.h.  */
15631 _ACEOF
15632 cat confdefs.h >>conftest.$ac_ext
15633 cat >>conftest.$ac_ext <<_ACEOF
15634 /* end confdefs.h.  */
15635
15636 /* Override any GCC internal prototype to avoid an error.
15637    Use char because int might match the return type of a GCC
15638    builtin and then its argument prototype would still apply.  */
15639 #ifdef __cplusplus
15640 extern "C"
15641 #endif
15642 char dlopen ();
15643 int
15644 main ()
15645 {
15646 return dlopen ();
15647   ;
15648   return 0;
15649 }
15650 _ACEOF
15651 rm -f conftest.$ac_objext conftest$ac_exeext
15652 if { (ac_try="$ac_link"
15653 case "(($ac_try" in
15654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655   *) ac_try_echo=$ac_try;;
15656 esac
15657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15658 $as_echo "$ac_try_echo") >&5
15659   (eval "$ac_link") 2>conftest.er1
15660   ac_status=$?
15661   grep -v '^ *+' conftest.er1 >conftest.err
15662   rm -f conftest.er1
15663   cat conftest.err >&5
15664   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665   (exit $ac_status); } && {
15666          test -z "$ac_c_werror_flag" ||
15667          test ! -s conftest.err
15668        } && test -s conftest$ac_exeext && {
15669          test "$cross_compiling" = yes ||
15670          $as_test_x conftest$ac_exeext
15671        }; then
15672   ac_cv_lib_dl_dlopen=yes
15673 else
15674   $as_echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15676
15677         ac_cv_lib_dl_dlopen=no
15678 fi
15679
15680 rm -rf conftest.dSYM
15681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15682       conftest$ac_exeext conftest.$ac_ext
15683 LIBS=$ac_check_lib_save_LIBS
15684 fi
15685 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15686 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15687 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
15688   cat >>confdefs.h <<_ACEOF
15689 #define HAVE_LIBDL 1
15690 _ACEOF
15691
15692   LIBS="-ldl $LIBS"
15693
15694 fi
15695
15696 { $as_echo "$as_me:$LINENO: checking for main in -llog4cxx" >&5
15697 $as_echo_n "checking for main in -llog4cxx... " >&6; }
15698 if test "${ac_cv_lib_log4cxx_main+set}" = set; then
15699   $as_echo_n "(cached) " >&6
15700 else
15701   ac_check_lib_save_LIBS=$LIBS
15702 LIBS="-llog4cxx  $LIBS"
15703 cat >conftest.$ac_ext <<_ACEOF
15704 /* confdefs.h.  */
15705 _ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h.  */
15709
15710
15711 int
15712 main ()
15713 {
15714 return main ();
15715   ;
15716   return 0;
15717 }
15718 _ACEOF
15719 rm -f conftest.$ac_objext conftest$ac_exeext
15720 if { (ac_try="$ac_link"
15721 case "(($ac_try" in
15722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723   *) ac_try_echo=$ac_try;;
15724 esac
15725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15726 $as_echo "$ac_try_echo") >&5
15727   (eval "$ac_link") 2>conftest.er1
15728   ac_status=$?
15729   grep -v '^ *+' conftest.er1 >conftest.err
15730   rm -f conftest.er1
15731   cat conftest.err >&5
15732   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733   (exit $ac_status); } && {
15734          test -z "$ac_c_werror_flag" ||
15735          test ! -s conftest.err
15736        } && test -s conftest$ac_exeext && {
15737          test "$cross_compiling" = yes ||
15738          $as_test_x conftest$ac_exeext
15739        }; then
15740   ac_cv_lib_log4cxx_main=yes
15741 else
15742   $as_echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.$ac_ext >&5
15744
15745         ac_cv_lib_log4cxx_main=no
15746 fi
15747
15748 rm -rf conftest.dSYM
15749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15750       conftest$ac_exeext conftest.$ac_ext
15751 LIBS=$ac_check_lib_save_LIBS
15752 fi
15753 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_log4cxx_main" >&5
15754 $as_echo "$ac_cv_lib_log4cxx_main" >&6; }
15755 if test "x$ac_cv_lib_log4cxx_main" = x""yes; then
15756   :
15757 else
15758   { { $as_echo "$as_me:$LINENO: error: l7vsd require log4cxx library. " >&5
15759 $as_echo "$as_me: error: l7vsd require log4cxx library. " >&2;}
15760    { (exit 1); exit 1; }; }
15761 fi
15762
15763 { $as_echo "$as_me:$LINENO: checking for main in -lrt" >&5
15764 $as_echo_n "checking for main in -lrt... " >&6; }
15765 if test "${ac_cv_lib_rt_main+set}" = set; then
15766   $as_echo_n "(cached) " >&6
15767 else
15768   ac_check_lib_save_LIBS=$LIBS
15769 LIBS="-lrt  $LIBS"
15770 cat >conftest.$ac_ext <<_ACEOF
15771 /* confdefs.h.  */
15772 _ACEOF
15773 cat confdefs.h >>conftest.$ac_ext
15774 cat >>conftest.$ac_ext <<_ACEOF
15775 /* end confdefs.h.  */
15776
15777
15778 int
15779 main ()
15780 {
15781 return main ();
15782   ;
15783   return 0;
15784 }
15785 _ACEOF
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (ac_try="$ac_link"
15788 case "(($ac_try" in
15789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790   *) ac_try_echo=$ac_try;;
15791 esac
15792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15793 $as_echo "$ac_try_echo") >&5
15794   (eval "$ac_link") 2>conftest.er1
15795   ac_status=$?
15796   grep -v '^ *+' conftest.er1 >conftest.err
15797   rm -f conftest.er1
15798   cat conftest.err >&5
15799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800   (exit $ac_status); } && {
15801          test -z "$ac_c_werror_flag" ||
15802          test ! -s conftest.err
15803        } && test -s conftest$ac_exeext && {
15804          test "$cross_compiling" = yes ||
15805          $as_test_x conftest$ac_exeext
15806        }; then
15807   ac_cv_lib_rt_main=yes
15808 else
15809   $as_echo "$as_me: failed program was:" >&5
15810 sed 's/^/| /' conftest.$ac_ext >&5
15811
15812         ac_cv_lib_rt_main=no
15813 fi
15814
15815 rm -rf conftest.dSYM
15816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15817       conftest$ac_exeext conftest.$ac_ext
15818 LIBS=$ac_check_lib_save_LIBS
15819 fi
15820 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_main" >&5
15821 $as_echo "$ac_cv_lib_rt_main" >&6; }
15822 if test "x$ac_cv_lib_rt_main" = x""yes; then
15823   :
15824 else
15825   { { $as_echo "$as_me:$LINENO: error: l7vsd require rt library. " >&5
15826 $as_echo "$as_me: error: l7vsd require rt library. " >&2;}
15827    { (exit 1); exit 1; }; }
15828 fi
15829
15830 { $as_echo "$as_me:$LINENO: checking for main in -lboost_thread-mt" >&5
15831 $as_echo_n "checking for main in -lboost_thread-mt... " >&6; }
15832 if test "${ac_cv_lib_boost_thread_mt_main+set}" = set; then
15833   $as_echo_n "(cached) " >&6
15834 else
15835   ac_check_lib_save_LIBS=$LIBS
15836 LIBS="-lboost_thread-mt  $LIBS"
15837 cat >conftest.$ac_ext <<_ACEOF
15838 /* confdefs.h.  */
15839 _ACEOF
15840 cat confdefs.h >>conftest.$ac_ext
15841 cat >>conftest.$ac_ext <<_ACEOF
15842 /* end confdefs.h.  */
15843
15844
15845 int
15846 main ()
15847 {
15848 return main ();
15849   ;
15850   return 0;
15851 }
15852 _ACEOF
15853 rm -f conftest.$ac_objext conftest$ac_exeext
15854 if { (ac_try="$ac_link"
15855 case "(($ac_try" in
15856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15857   *) ac_try_echo=$ac_try;;
15858 esac
15859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15860 $as_echo "$ac_try_echo") >&5
15861   (eval "$ac_link") 2>conftest.er1
15862   ac_status=$?
15863   grep -v '^ *+' conftest.er1 >conftest.err
15864   rm -f conftest.er1
15865   cat conftest.err >&5
15866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867   (exit $ac_status); } && {
15868          test -z "$ac_c_werror_flag" ||
15869          test ! -s conftest.err
15870        } && test -s conftest$ac_exeext && {
15871          test "$cross_compiling" = yes ||
15872          $as_test_x conftest$ac_exeext
15873        }; then
15874   ac_cv_lib_boost_thread_mt_main=yes
15875 else
15876   $as_echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15878
15879         ac_cv_lib_boost_thread_mt_main=no
15880 fi
15881
15882 rm -rf conftest.dSYM
15883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15884       conftest$ac_exeext conftest.$ac_ext
15885 LIBS=$ac_check_lib_save_LIBS
15886 fi
15887 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_boost_thread_mt_main" >&5
15888 $as_echo "$ac_cv_lib_boost_thread_mt_main" >&6; }
15889 if test "x$ac_cv_lib_boost_thread_mt_main" = x""yes; then
15890   :
15891 else
15892   { { $as_echo "$as_me:$LINENO: error: l7vsd require boost library. " >&5
15893 $as_echo "$as_me: error: l7vsd require boost library. " >&2;}
15894    { (exit 1); exit 1; }; }
15895 fi
15896
15897 { $as_echo "$as_me:$LINENO: checking for main in -lboost_system-mt" >&5
15898 $as_echo_n "checking for main in -lboost_system-mt... " >&6; }
15899 if test "${ac_cv_lib_boost_system_mt_main+set}" = set; then
15900   $as_echo_n "(cached) " >&6
15901 else
15902   ac_check_lib_save_LIBS=$LIBS
15903 LIBS="-lboost_system-mt  $LIBS"
15904 cat >conftest.$ac_ext <<_ACEOF
15905 /* confdefs.h.  */
15906 _ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h.  */
15910
15911
15912 int
15913 main ()
15914 {
15915 return main ();
15916   ;
15917   return 0;
15918 }
15919 _ACEOF
15920 rm -f conftest.$ac_objext conftest$ac_exeext
15921 if { (ac_try="$ac_link"
15922 case "(($ac_try" in
15923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15924   *) ac_try_echo=$ac_try;;
15925 esac
15926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15927 $as_echo "$ac_try_echo") >&5
15928   (eval "$ac_link") 2>conftest.er1
15929   ac_status=$?
15930   grep -v '^ *+' conftest.er1 >conftest.err
15931   rm -f conftest.er1
15932   cat conftest.err >&5
15933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934   (exit $ac_status); } && {
15935          test -z "$ac_c_werror_flag" ||
15936          test ! -s conftest.err
15937        } && test -s conftest$ac_exeext && {
15938          test "$cross_compiling" = yes ||
15939          $as_test_x conftest$ac_exeext
15940        }; then
15941   ac_cv_lib_boost_system_mt_main=yes
15942 else
15943   $as_echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.$ac_ext >&5
15945
15946         ac_cv_lib_boost_system_mt_main=no
15947 fi
15948
15949 rm -rf conftest.dSYM
15950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15951       conftest$ac_exeext conftest.$ac_ext
15952 LIBS=$ac_check_lib_save_LIBS
15953 fi
15954 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_boost_system_mt_main" >&5
15955 $as_echo "$ac_cv_lib_boost_system_mt_main" >&6; }
15956 if test "x$ac_cv_lib_boost_system_mt_main" = x""yes; then
15957   :
15958 else
15959   { { $as_echo "$as_me:$LINENO: error: l7vsd require boost library. " >&5
15960 $as_echo "$as_me: error: l7vsd require boost library. " >&2;}
15961    { (exit 1); exit 1; }; }
15962 fi
15963
15964 { $as_echo "$as_me:$LINENO: checking for main in -lnetsnmp" >&5
15965 $as_echo_n "checking for main in -lnetsnmp... " >&6; }
15966 if test "${ac_cv_lib_netsnmp_main+set}" = set; then
15967   $as_echo_n "(cached) " >&6
15968 else
15969   ac_check_lib_save_LIBS=$LIBS
15970 LIBS="-lnetsnmp  $LIBS"
15971 cat >conftest.$ac_ext <<_ACEOF
15972 /* confdefs.h.  */
15973 _ACEOF
15974 cat confdefs.h >>conftest.$ac_ext
15975 cat >>conftest.$ac_ext <<_ACEOF
15976 /* end confdefs.h.  */
15977
15978
15979 int
15980 main ()
15981 {
15982 return main ();
15983   ;
15984   return 0;
15985 }
15986 _ACEOF
15987 rm -f conftest.$ac_objext conftest$ac_exeext
15988 if { (ac_try="$ac_link"
15989 case "(($ac_try" in
15990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15991   *) ac_try_echo=$ac_try;;
15992 esac
15993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15994 $as_echo "$ac_try_echo") >&5
15995   (eval "$ac_link") 2>conftest.er1
15996   ac_status=$?
15997   grep -v '^ *+' conftest.er1 >conftest.err
15998   rm -f conftest.er1
15999   cat conftest.err >&5
16000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001   (exit $ac_status); } && {
16002          test -z "$ac_c_werror_flag" ||
16003          test ! -s conftest.err
16004        } && test -s conftest$ac_exeext && {
16005          test "$cross_compiling" = yes ||
16006          $as_test_x conftest$ac_exeext
16007        }; then
16008   ac_cv_lib_netsnmp_main=yes
16009 else
16010   $as_echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16012
16013         ac_cv_lib_netsnmp_main=no
16014 fi
16015
16016 rm -rf conftest.dSYM
16017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16018       conftest$ac_exeext conftest.$ac_ext
16019 LIBS=$ac_check_lib_save_LIBS
16020 fi
16021 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_main" >&5
16022 $as_echo "$ac_cv_lib_netsnmp_main" >&6; }
16023 if test "x$ac_cv_lib_netsnmp_main" = x""yes; then
16024   :
16025 else
16026   { { $as_echo "$as_me:$LINENO: error: l7vsd require netsnmp library. " >&5
16027 $as_echo "$as_me: error: l7vsd require netsnmp library. " >&2;}
16028    { (exit 1); exit 1; }; }
16029 fi
16030
16031
16032 # Checks for header files.
16033
16034
16035 for ac_header in limits.h unistd.h
16036 do
16037 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16039   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16040 $as_echo_n "checking for $ac_header... " >&6; }
16041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16042   $as_echo_n "(cached) " >&6
16043 fi
16044 ac_res=`eval 'as_val=${'$as_ac_Header'}
16045                  $as_echo "$as_val"'`
16046                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16047 $as_echo "$ac_res" >&6; }
16048 else
16049   # Is the header compilable?
16050 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16051 $as_echo_n "checking $ac_header usability... " >&6; }
16052 cat >conftest.$ac_ext <<_ACEOF
16053 /* confdefs.h.  */
16054 _ACEOF
16055 cat confdefs.h >>conftest.$ac_ext
16056 cat >>conftest.$ac_ext <<_ACEOF
16057 /* end confdefs.h.  */
16058 $ac_includes_default
16059 #include <$ac_header>
16060 _ACEOF
16061 rm -f conftest.$ac_objext
16062 if { (ac_try="$ac_compile"
16063 case "(($ac_try" in
16064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065   *) ac_try_echo=$ac_try;;
16066 esac
16067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16068 $as_echo "$ac_try_echo") >&5
16069   (eval "$ac_compile") 2>conftest.er1
16070   ac_status=$?
16071   grep -v '^ *+' conftest.er1 >conftest.err
16072   rm -f conftest.er1
16073   cat conftest.err >&5
16074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075   (exit $ac_status); } && {
16076          test -z "$ac_c_werror_flag" ||
16077          test ! -s conftest.err
16078        } && test -s conftest.$ac_objext; then
16079   ac_header_compiler=yes
16080 else
16081   $as_echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16083
16084         ac_header_compiler=no
16085 fi
16086
16087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16088 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16089 $as_echo "$ac_header_compiler" >&6; }
16090
16091 # Is the header present?
16092 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16093 $as_echo_n "checking $ac_header presence... " >&6; }
16094 cat >conftest.$ac_ext <<_ACEOF
16095 /* confdefs.h.  */
16096 _ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h.  */
16100 #include <$ac_header>
16101 _ACEOF
16102 if { (ac_try="$ac_cpp conftest.$ac_ext"
16103 case "(($ac_try" in
16104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16105   *) ac_try_echo=$ac_try;;
16106 esac
16107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16108 $as_echo "$ac_try_echo") >&5
16109   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16110   ac_status=$?
16111   grep -v '^ *+' conftest.er1 >conftest.err
16112   rm -f conftest.er1
16113   cat conftest.err >&5
16114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115   (exit $ac_status); } >/dev/null && {
16116          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16117          test ! -s conftest.err
16118        }; then
16119   ac_header_preproc=yes
16120 else
16121   $as_echo "$as_me: failed program was:" >&5
16122 sed 's/^/| /' conftest.$ac_ext >&5
16123
16124   ac_header_preproc=no
16125 fi
16126
16127 rm -f conftest.err conftest.$ac_ext
16128 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16129 $as_echo "$ac_header_preproc" >&6; }
16130
16131 # So?  What about this header?
16132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16133   yes:no: )
16134     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16135 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16136     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16137 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16138     ac_header_preproc=yes
16139     ;;
16140   no:yes:* )
16141     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16142 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16143     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16144 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16145     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16146 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16147     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16148 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16149     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16150 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16151     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16152 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16153
16154     ;;
16155 esac
16156 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16157 $as_echo_n "checking for $ac_header... " >&6; }
16158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16159   $as_echo_n "(cached) " >&6
16160 else
16161   eval "$as_ac_Header=\$ac_header_preproc"
16162 fi
16163 ac_res=`eval 'as_val=${'$as_ac_Header'}
16164                  $as_echo "$as_val"'`
16165                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16166 $as_echo "$ac_res" >&6; }
16167
16168 fi
16169 as_val=`eval 'as_val=${'$as_ac_Header'}
16170                  $as_echo "$as_val"'`
16171    if test "x$as_val" = x""yes; then
16172   cat >>confdefs.h <<_ACEOF
16173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16174 _ACEOF
16175
16176 fi
16177
16178 done
16179
16180
16181 # Checks for declarations.
16182 { $as_echo "$as_me:$LINENO: checking whether IP_TRANSPARENT is declared" >&5
16183 $as_echo_n "checking whether IP_TRANSPARENT is declared... " >&6; }
16184 if test "${ac_cv_have_decl_IP_TRANSPARENT+set}" = set; then
16185   $as_echo_n "(cached) " >&6
16186 else
16187   cat >conftest.$ac_ext <<_ACEOF
16188 /* confdefs.h.  */
16189 _ACEOF
16190 cat confdefs.h >>conftest.$ac_ext
16191 cat >>conftest.$ac_ext <<_ACEOF
16192 /* end confdefs.h.  */
16193
16194         #include <sys/socket.h>
16195         #include <linux/in.h>
16196
16197
16198 int
16199 main ()
16200 {
16201 #ifndef IP_TRANSPARENT
16202   (void) IP_TRANSPARENT;
16203 #endif
16204
16205   ;
16206   return 0;
16207 }
16208 _ACEOF
16209 rm -f conftest.$ac_objext
16210 if { (ac_try="$ac_compile"
16211 case "(($ac_try" in
16212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213   *) ac_try_echo=$ac_try;;
16214 esac
16215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16216 $as_echo "$ac_try_echo") >&5
16217   (eval "$ac_compile") 2>conftest.er1
16218   ac_status=$?
16219   grep -v '^ *+' conftest.er1 >conftest.err
16220   rm -f conftest.er1
16221   cat conftest.err >&5
16222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); } && {
16224          test -z "$ac_c_werror_flag" ||
16225          test ! -s conftest.err
16226        } && test -s conftest.$ac_objext; then
16227   ac_cv_have_decl_IP_TRANSPARENT=yes
16228 else
16229   $as_echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.$ac_ext >&5
16231
16232         ac_cv_have_decl_IP_TRANSPARENT=no
16233 fi
16234
16235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16236 fi
16237 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_IP_TRANSPARENT" >&5
16238 $as_echo "$ac_cv_have_decl_IP_TRANSPARENT" >&6; }
16239 if test "x$ac_cv_have_decl_IP_TRANSPARENT" = x""yes; then
16240
16241 cat >>confdefs.h <<_ACEOF
16242 #define HAVE_DECL_IP_TRANSPARENT 1
16243 _ACEOF
16244
16245
16246 else
16247   cat >>confdefs.h <<_ACEOF
16248 #define HAVE_DECL_IP_TRANSPARENT 0
16249 _ACEOF
16250
16251
16252 fi
16253
16254
16255
16256 # Checks for typedefs, structures, and compiler characteristics.
16257 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
16258 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16259 if test "${ac_cv_header_stdbool_h+set}" = set; then
16260   $as_echo_n "(cached) " >&6
16261 else
16262   cat >conftest.$ac_ext <<_ACEOF
16263 /* confdefs.h.  */
16264 _ACEOF
16265 cat confdefs.h >>conftest.$ac_ext
16266 cat >>conftest.$ac_ext <<_ACEOF
16267 /* end confdefs.h.  */
16268
16269 #include <stdbool.h>
16270 #ifndef bool
16271  "error: bool is not defined"
16272 #endif
16273 #ifndef false
16274  "error: false is not defined"
16275 #endif
16276 #if false
16277  "error: false is not 0"
16278 #endif
16279 #ifndef true
16280  "error: true is not defined"
16281 #endif
16282 #if true != 1
16283  "error: true is not 1"
16284 #endif
16285 #ifndef __bool_true_false_are_defined
16286  "error: __bool_true_false_are_defined is not defined"
16287 #endif
16288
16289         struct s { _Bool s: 1; _Bool t; } s;
16290
16291         char a[true == 1 ? 1 : -1];
16292         char b[false == 0 ? 1 : -1];
16293         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16294         char d[(bool) 0.5 == true ? 1 : -1];
16295         bool e = &s;
16296         char f[(_Bool) 0.0 == false ? 1 : -1];
16297         char g[true];
16298         char h[sizeof (_Bool)];
16299         char i[sizeof s.t];
16300         enum { j = false, k = true, l = false * true, m = true * 256 };
16301         /* The following fails for
16302            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16303         _Bool n[m];
16304         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16305         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16306 #       if defined __xlc__ || defined __GNUC__
16307          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
16308             reported by James Lemley on 2005-10-05; see
16309             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
16310             This test is not quite right, since xlc is allowed to
16311             reject this program, as the initializer for xlcbug is
16312             not one of the forms that C requires support for.
16313             However, doing the test right would require a runtime
16314             test, and that would make cross-compilation harder.
16315             Let us hope that IBM fixes the xlc bug, and also adds
16316             support for this kind of constant expression.  In the
16317             meantime, this test will reject xlc, which is OK, since
16318             our stdbool.h substitute should suffice.  We also test
16319             this with GCC, where it should work, to detect more
16320             quickly whether someone messes up the test in the
16321             future.  */
16322          char digs[] = "0123456789";
16323          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
16324 #       endif
16325         /* Catch a bug in an HP-UX C compiler.  See
16326            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16327            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16328          */
16329         _Bool q = true;
16330         _Bool *pq = &q;
16331
16332 int
16333 main ()
16334 {
16335
16336         *pq |= q;
16337         *pq |= ! q;
16338         /* Refer to every declared value, to avoid compiler optimizations.  */
16339         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16340                 + !m + !n + !o + !p + !q + !pq);
16341
16342   ;
16343   return 0;
16344 }
16345 _ACEOF
16346 rm -f conftest.$ac_objext
16347 if { (ac_try="$ac_compile"
16348 case "(($ac_try" in
16349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16350   *) ac_try_echo=$ac_try;;
16351 esac
16352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16353 $as_echo "$ac_try_echo") >&5
16354   (eval "$ac_compile") 2>conftest.er1
16355   ac_status=$?
16356   grep -v '^ *+' conftest.er1 >conftest.err
16357   rm -f conftest.er1
16358   cat conftest.err >&5
16359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360   (exit $ac_status); } && {
16361          test -z "$ac_c_werror_flag" ||
16362          test ! -s conftest.err
16363        } && test -s conftest.$ac_objext; then
16364   ac_cv_header_stdbool_h=yes
16365 else
16366   $as_echo "$as_me: failed program was:" >&5
16367 sed 's/^/| /' conftest.$ac_ext >&5
16368
16369         ac_cv_header_stdbool_h=no
16370 fi
16371
16372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16373 fi
16374 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
16375 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16376 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
16377 $as_echo_n "checking for _Bool... " >&6; }
16378 if test "${ac_cv_type__Bool+set}" = set; then
16379   $as_echo_n "(cached) " >&6
16380 else
16381   ac_cv_type__Bool=no
16382 cat >conftest.$ac_ext <<_ACEOF
16383 /* confdefs.h.  */
16384 _ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h.  */
16388 $ac_includes_default
16389 int
16390 main ()
16391 {
16392 if (sizeof (_Bool))
16393        return 0;
16394   ;
16395   return 0;
16396 }
16397 _ACEOF
16398 rm -f conftest.$ac_objext
16399 if { (ac_try="$ac_compile"
16400 case "(($ac_try" in
16401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402   *) ac_try_echo=$ac_try;;
16403 esac
16404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16405 $as_echo "$ac_try_echo") >&5
16406   (eval "$ac_compile") 2>conftest.er1
16407   ac_status=$?
16408   grep -v '^ *+' conftest.er1 >conftest.err
16409   rm -f conftest.er1
16410   cat conftest.err >&5
16411   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412   (exit $ac_status); } && {
16413          test -z "$ac_c_werror_flag" ||
16414          test ! -s conftest.err
16415        } && test -s conftest.$ac_objext; then
16416   cat >conftest.$ac_ext <<_ACEOF
16417 /* confdefs.h.  */
16418 _ACEOF
16419 cat confdefs.h >>conftest.$ac_ext
16420 cat >>conftest.$ac_ext <<_ACEOF
16421 /* end confdefs.h.  */
16422 $ac_includes_default
16423 int
16424 main ()
16425 {
16426 if (sizeof ((_Bool)))
16427           return 0;
16428   ;
16429   return 0;
16430 }
16431 _ACEOF
16432 rm -f conftest.$ac_objext
16433 if { (ac_try="$ac_compile"
16434 case "(($ac_try" in
16435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436   *) ac_try_echo=$ac_try;;
16437 esac
16438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16439 $as_echo "$ac_try_echo") >&5
16440   (eval "$ac_compile") 2>conftest.er1
16441   ac_status=$?
16442   grep -v '^ *+' conftest.er1 >conftest.err
16443   rm -f conftest.er1
16444   cat conftest.err >&5
16445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446   (exit $ac_status); } && {
16447          test -z "$ac_c_werror_flag" ||
16448          test ! -s conftest.err
16449        } && test -s conftest.$ac_objext; then
16450   :
16451 else
16452   $as_echo "$as_me: failed program was:" >&5
16453 sed 's/^/| /' conftest.$ac_ext >&5
16454
16455         ac_cv_type__Bool=yes
16456 fi
16457
16458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16459 else
16460   $as_echo "$as_me: failed program was:" >&5
16461 sed 's/^/| /' conftest.$ac_ext >&5
16462
16463
16464 fi
16465
16466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16467 fi
16468 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
16469 $as_echo "$ac_cv_type__Bool" >&6; }
16470 if test "x$ac_cv_type__Bool" = x""yes; then
16471
16472 cat >>confdefs.h <<_ACEOF
16473 #define HAVE__BOOL 1
16474 _ACEOF
16475
16476
16477 fi
16478
16479 if test $ac_cv_header_stdbool_h = yes; then
16480
16481 cat >>confdefs.h <<\_ACEOF
16482 #define HAVE_STDBOOL_H 1
16483 _ACEOF
16484
16485 fi
16486
16487 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16488 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16489 if test "${ac_cv_c_const+set}" = set; then
16490   $as_echo_n "(cached) " >&6
16491 else
16492   cat >conftest.$ac_ext <<_ACEOF
16493 /* confdefs.h.  */
16494 _ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h.  */
16498
16499 int
16500 main ()
16501 {
16502 /* FIXME: Include the comments suggested by Paul. */
16503 #ifndef __cplusplus
16504   /* Ultrix mips cc rejects this.  */
16505   typedef int charset[2];
16506   const charset cs;
16507   /* SunOS 4.1.1 cc rejects this.  */
16508   char const *const *pcpcc;
16509   char **ppc;
16510   /* NEC SVR4.0.2 mips cc rejects this.  */
16511   struct point {int x, y;};
16512   static struct point const zero = {0,0};
16513   /* AIX XL C 1.02.0.0 rejects this.
16514      It does not let you subtract one const X* pointer from another in
16515      an arm of an if-expression whose if-part is not a constant
16516      expression */
16517   const char *g = "string";
16518   pcpcc = &g + (g ? g-g : 0);
16519   /* HPUX 7.0 cc rejects these. */
16520   ++pcpcc;
16521   ppc = (char**) pcpcc;
16522   pcpcc = (char const *const *) ppc;
16523   { /* SCO 3.2v4 cc rejects this.  */
16524     char *t;
16525     char const *s = 0 ? (char *) 0 : (char const *) 0;
16526
16527     *t++ = 0;
16528     if (s) return 0;
16529   }
16530   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16531     int x[] = {25, 17};
16532     const int *foo = &x[0];
16533     ++foo;
16534   }
16535   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16536     typedef const int *iptr;
16537     iptr p = 0;
16538     ++p;
16539   }
16540   { /* AIX XL C 1.02.0.0 rejects this saying
16541        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16542     struct s { int j; const int *ap[3]; };
16543     struct s *b; b->j = 5;
16544   }
16545   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16546     const int foo = 10;
16547     if (!foo) return 0;
16548   }
16549   return !cs[0] && !zero.x;
16550 #endif
16551
16552   ;
16553   return 0;
16554 }
16555 _ACEOF
16556 rm -f conftest.$ac_objext
16557 if { (ac_try="$ac_compile"
16558 case "(($ac_try" in
16559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16560   *) ac_try_echo=$ac_try;;
16561 esac
16562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16563 $as_echo "$ac_try_echo") >&5
16564   (eval "$ac_compile") 2>conftest.er1
16565   ac_status=$?
16566   grep -v '^ *+' conftest.er1 >conftest.err
16567   rm -f conftest.er1
16568   cat conftest.err >&5
16569   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570   (exit $ac_status); } && {
16571          test -z "$ac_c_werror_flag" ||
16572          test ! -s conftest.err
16573        } && test -s conftest.$ac_objext; then
16574   ac_cv_c_const=yes
16575 else
16576   $as_echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.$ac_ext >&5
16578
16579         ac_cv_c_const=no
16580 fi
16581
16582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16583 fi
16584 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16585 $as_echo "$ac_cv_c_const" >&6; }
16586 if test $ac_cv_c_const = no; then
16587
16588 cat >>confdefs.h <<\_ACEOF
16589 #define const /**/
16590 _ACEOF
16591
16592 fi
16593
16594 { $as_echo "$as_me:$LINENO: checking for inline" >&5
16595 $as_echo_n "checking for inline... " >&6; }
16596 if test "${ac_cv_c_inline+set}" = set; then
16597   $as_echo_n "(cached) " >&6
16598 else
16599   ac_cv_c_inline=no
16600 for ac_kw in inline __inline__ __inline; do
16601   cat >conftest.$ac_ext <<_ACEOF
16602 /* confdefs.h.  */
16603 _ACEOF
16604 cat confdefs.h >>conftest.$ac_ext
16605 cat >>conftest.$ac_ext <<_ACEOF
16606 /* end confdefs.h.  */
16607 #ifndef __cplusplus
16608 typedef int foo_t;
16609 static $ac_kw foo_t static_foo () {return 0; }
16610 $ac_kw foo_t foo () {return 0; }
16611 #endif
16612
16613 _ACEOF
16614 rm -f conftest.$ac_objext
16615 if { (ac_try="$ac_compile"
16616 case "(($ac_try" in
16617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618   *) ac_try_echo=$ac_try;;
16619 esac
16620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16621 $as_echo "$ac_try_echo") >&5
16622   (eval "$ac_compile") 2>conftest.er1
16623   ac_status=$?
16624   grep -v '^ *+' conftest.er1 >conftest.err
16625   rm -f conftest.er1
16626   cat conftest.err >&5
16627   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628   (exit $ac_status); } && {
16629          test -z "$ac_c_werror_flag" ||
16630          test ! -s conftest.err
16631        } && test -s conftest.$ac_objext; then
16632   ac_cv_c_inline=$ac_kw
16633 else
16634   $as_echo "$as_me: failed program was:" >&5
16635 sed 's/^/| /' conftest.$ac_ext >&5
16636
16637
16638 fi
16639
16640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16641   test "$ac_cv_c_inline" != no && break
16642 done
16643
16644 fi
16645 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16646 $as_echo "$ac_cv_c_inline" >&6; }
16647
16648
16649 case $ac_cv_c_inline in
16650   inline | yes) ;;
16651   *)
16652     case $ac_cv_c_inline in
16653       no) ac_val=;;
16654       *) ac_val=$ac_cv_c_inline;;
16655     esac
16656     cat >>confdefs.h <<_ACEOF
16657 #ifndef __cplusplus
16658 #define inline $ac_val
16659 #endif
16660 _ACEOF
16661     ;;
16662 esac
16663
16664 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
16665 $as_echo_n "checking for size_t... " >&6; }
16666 if test "${ac_cv_type_size_t+set}" = set; then
16667   $as_echo_n "(cached) " >&6
16668 else
16669   ac_cv_type_size_t=no
16670 cat >conftest.$ac_ext <<_ACEOF
16671 /* confdefs.h.  */
16672 _ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h.  */
16676 $ac_includes_default
16677 int
16678 main ()
16679 {
16680 if (sizeof (size_t))
16681        return 0;
16682   ;
16683   return 0;
16684 }
16685 _ACEOF
16686 rm -f conftest.$ac_objext
16687 if { (ac_try="$ac_compile"
16688 case "(($ac_try" in
16689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690   *) ac_try_echo=$ac_try;;
16691 esac
16692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16693 $as_echo "$ac_try_echo") >&5
16694   (eval "$ac_compile") 2>conftest.er1
16695   ac_status=$?
16696   grep -v '^ *+' conftest.er1 >conftest.err
16697   rm -f conftest.er1
16698   cat conftest.err >&5
16699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700   (exit $ac_status); } && {
16701          test -z "$ac_c_werror_flag" ||
16702          test ! -s conftest.err
16703        } && test -s conftest.$ac_objext; then
16704   cat >conftest.$ac_ext <<_ACEOF
16705 /* confdefs.h.  */
16706 _ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h.  */
16710 $ac_includes_default
16711 int
16712 main ()
16713 {
16714 if (sizeof ((size_t)))
16715           return 0;
16716   ;
16717   return 0;
16718 }
16719 _ACEOF
16720 rm -f conftest.$ac_objext
16721 if { (ac_try="$ac_compile"
16722 case "(($ac_try" in
16723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724   *) ac_try_echo=$ac_try;;
16725 esac
16726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16727 $as_echo "$ac_try_echo") >&5
16728   (eval "$ac_compile") 2>conftest.er1
16729   ac_status=$?
16730   grep -v '^ *+' conftest.er1 >conftest.err
16731   rm -f conftest.er1
16732   cat conftest.err >&5
16733   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734   (exit $ac_status); } && {
16735          test -z "$ac_c_werror_flag" ||
16736          test ! -s conftest.err
16737        } && test -s conftest.$ac_objext; then
16738   :
16739 else
16740   $as_echo "$as_me: failed program was:" >&5
16741 sed 's/^/| /' conftest.$ac_ext >&5
16742
16743         ac_cv_type_size_t=yes
16744 fi
16745
16746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16747 else
16748   $as_echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16750
16751
16752 fi
16753
16754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16755 fi
16756 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16757 $as_echo "$ac_cv_type_size_t" >&6; }
16758 if test "x$ac_cv_type_size_t" = x""yes; then
16759   :
16760 else
16761
16762 cat >>confdefs.h <<_ACEOF
16763 #define size_t unsigned int
16764 _ACEOF
16765
16766 fi
16767
16768 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16769 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16770 if test "${ac_cv_struct_tm+set}" = set; then
16771   $as_echo_n "(cached) " >&6
16772 else
16773   cat >conftest.$ac_ext <<_ACEOF
16774 /* confdefs.h.  */
16775 _ACEOF
16776 cat confdefs.h >>conftest.$ac_ext
16777 cat >>conftest.$ac_ext <<_ACEOF
16778 /* end confdefs.h.  */
16779 #include <sys/types.h>
16780 #include <time.h>
16781
16782 int
16783 main ()
16784 {
16785 struct tm tm;
16786                                      int *p = &tm.tm_sec;
16787                                      return !p;
16788   ;
16789   return 0;
16790 }
16791 _ACEOF
16792 rm -f conftest.$ac_objext
16793 if { (ac_try="$ac_compile"
16794 case "(($ac_try" in
16795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796   *) ac_try_echo=$ac_try;;
16797 esac
16798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16799 $as_echo "$ac_try_echo") >&5
16800   (eval "$ac_compile") 2>conftest.er1
16801   ac_status=$?
16802   grep -v '^ *+' conftest.er1 >conftest.err
16803   rm -f conftest.er1
16804   cat conftest.err >&5
16805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806   (exit $ac_status); } && {
16807          test -z "$ac_c_werror_flag" ||
16808          test ! -s conftest.err
16809        } && test -s conftest.$ac_objext; then
16810   ac_cv_struct_tm=time.h
16811 else
16812   $as_echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16814
16815         ac_cv_struct_tm=sys/time.h
16816 fi
16817
16818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16819 fi
16820 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16821 $as_echo "$ac_cv_struct_tm" >&6; }
16822 if test $ac_cv_struct_tm = sys/time.h; then
16823
16824 cat >>confdefs.h <<\_ACEOF
16825 #define TM_IN_SYS_TIME 1
16826 _ACEOF
16827
16828 fi
16829
16830
16831 # Checks for library functions.
16832 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16833 $as_echo_n "checking for ANSI C header files... " >&6; }
16834 if test "${ac_cv_header_stdc+set}" = set; then
16835   $as_echo_n "(cached) " >&6
16836 else
16837   cat >conftest.$ac_ext <<_ACEOF
16838 /* confdefs.h.  */
16839 _ACEOF
16840 cat confdefs.h >>conftest.$ac_ext
16841 cat >>conftest.$ac_ext <<_ACEOF
16842 /* end confdefs.h.  */
16843 #include <stdlib.h>
16844 #include <stdarg.h>
16845 #include <string.h>
16846 #include <float.h>
16847
16848 int
16849 main ()
16850 {
16851
16852   ;
16853   return 0;
16854 }
16855 _ACEOF
16856 rm -f conftest.$ac_objext
16857 if { (ac_try="$ac_compile"
16858 case "(($ac_try" in
16859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860   *) ac_try_echo=$ac_try;;
16861 esac
16862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16863 $as_echo "$ac_try_echo") >&5
16864   (eval "$ac_compile") 2>conftest.er1
16865   ac_status=$?
16866   grep -v '^ *+' conftest.er1 >conftest.err
16867   rm -f conftest.er1
16868   cat conftest.err >&5
16869   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870   (exit $ac_status); } && {
16871          test -z "$ac_c_werror_flag" ||
16872          test ! -s conftest.err
16873        } && test -s conftest.$ac_objext; then
16874   ac_cv_header_stdc=yes
16875 else
16876   $as_echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16878
16879         ac_cv_header_stdc=no
16880 fi
16881
16882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16883
16884 if test $ac_cv_header_stdc = yes; then
16885   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16886   cat >conftest.$ac_ext <<_ACEOF
16887 /* confdefs.h.  */
16888 _ACEOF
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h.  */
16892 #include <string.h>
16893
16894 _ACEOF
16895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16896   $EGREP "memchr" >/dev/null 2>&1; then
16897   :
16898 else
16899   ac_cv_header_stdc=no
16900 fi
16901 rm -f conftest*
16902
16903 fi
16904
16905 if test $ac_cv_header_stdc = yes; then
16906   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16907   cat >conftest.$ac_ext <<_ACEOF
16908 /* confdefs.h.  */
16909 _ACEOF
16910 cat confdefs.h >>conftest.$ac_ext
16911 cat >>conftest.$ac_ext <<_ACEOF
16912 /* end confdefs.h.  */
16913 #include <stdlib.h>
16914
16915 _ACEOF
16916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16917   $EGREP "free" >/dev/null 2>&1; then
16918   :
16919 else
16920   ac_cv_header_stdc=no
16921 fi
16922 rm -f conftest*
16923
16924 fi
16925
16926 if test $ac_cv_header_stdc = yes; then
16927   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16928   if test "$cross_compiling" = yes; then
16929   :
16930 else
16931   cat >conftest.$ac_ext <<_ACEOF
16932 /* confdefs.h.  */
16933 _ACEOF
16934 cat confdefs.h >>conftest.$ac_ext
16935 cat >>conftest.$ac_ext <<_ACEOF
16936 /* end confdefs.h.  */
16937 #include <ctype.h>
16938 #include <stdlib.h>
16939 #if ((' ' & 0x0FF) == 0x020)
16940 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16941 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16942 #else
16943 # define ISLOWER(c) \
16944                    (('a' <= (c) && (c) <= 'i') \
16945                      || ('j' <= (c) && (c) <= 'r') \
16946                      || ('s' <= (c) && (c) <= 'z'))
16947 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16948 #endif
16949
16950 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16951 int
16952 main ()
16953 {
16954   int i;
16955   for (i = 0; i < 256; i++)
16956     if (XOR (islower (i), ISLOWER (i))
16957         || toupper (i) != TOUPPER (i))
16958       return 2;
16959   return 0;
16960 }
16961 _ACEOF
16962 rm -f conftest$ac_exeext
16963 if { (ac_try="$ac_link"
16964 case "(($ac_try" in
16965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966   *) ac_try_echo=$ac_try;;
16967 esac
16968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16969 $as_echo "$ac_try_echo") >&5
16970   (eval "$ac_link") 2>&5
16971   ac_status=$?
16972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16974   { (case "(($ac_try" in
16975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16976   *) ac_try_echo=$ac_try;;
16977 esac
16978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16979 $as_echo "$ac_try_echo") >&5
16980   (eval "$ac_try") 2>&5
16981   ac_status=$?
16982   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983   (exit $ac_status); }; }; then
16984   :
16985 else
16986   $as_echo "$as_me: program exited with status $ac_status" >&5
16987 $as_echo "$as_me: failed program was:" >&5
16988 sed 's/^/| /' conftest.$ac_ext >&5
16989
16990 ( exit $ac_status )
16991 ac_cv_header_stdc=no
16992 fi
16993 rm -rf conftest.dSYM
16994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16995 fi
16996
16997
16998 fi
16999 fi
17000 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
17001 $as_echo "$ac_cv_header_stdc" >&6; }
17002 if test $ac_cv_header_stdc = yes; then
17003
17004 cat >>confdefs.h <<\_ACEOF
17005 #define STDC_HEADERS 1
17006 _ACEOF
17007
17008 fi
17009
17010 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17011 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17012 if test "${ac_cv_header_time+set}" = set; then
17013   $as_echo_n "(cached) " >&6
17014 else
17015   cat >conftest.$ac_ext <<_ACEOF
17016 /* confdefs.h.  */
17017 _ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h.  */
17021 #include <sys/types.h>
17022 #include <sys/time.h>
17023 #include <time.h>
17024
17025 int
17026 main ()
17027 {
17028 if ((struct tm *) 0)
17029 return 0;
17030   ;
17031   return 0;
17032 }
17033 _ACEOF
17034 rm -f conftest.$ac_objext
17035 if { (ac_try="$ac_compile"
17036 case "(($ac_try" in
17037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038   *) ac_try_echo=$ac_try;;
17039 esac
17040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17041 $as_echo "$ac_try_echo") >&5
17042   (eval "$ac_compile") 2>conftest.er1
17043   ac_status=$?
17044   grep -v '^ *+' conftest.er1 >conftest.err
17045   rm -f conftest.er1
17046   cat conftest.err >&5
17047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048   (exit $ac_status); } && {
17049          test -z "$ac_c_werror_flag" ||
17050          test ! -s conftest.err
17051        } && test -s conftest.$ac_objext; then
17052   ac_cv_header_time=yes
17053 else
17054   $as_echo "$as_me: failed program was:" >&5
17055 sed 's/^/| /' conftest.$ac_ext >&5
17056
17057         ac_cv_header_time=no
17058 fi
17059
17060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17061 fi
17062 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17063 $as_echo "$ac_cv_header_time" >&6; }
17064 if test $ac_cv_header_time = yes; then
17065
17066 cat >>confdefs.h <<\_ACEOF
17067 #define TIME_WITH_SYS_TIME 1
17068 _ACEOF
17069
17070 fi
17071
17072
17073
17074
17075
17076 for ac_header in $ac_header_list
17077 do
17078 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17080   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17081 $as_echo_n "checking for $ac_header... " >&6; }
17082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17083   $as_echo_n "(cached) " >&6
17084 fi
17085 ac_res=`eval 'as_val=${'$as_ac_Header'}
17086                  $as_echo "$as_val"'`
17087                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17088 $as_echo "$ac_res" >&6; }
17089 else
17090   # Is the header compilable?
17091 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17092 $as_echo_n "checking $ac_header usability... " >&6; }
17093 cat >conftest.$ac_ext <<_ACEOF
17094 /* confdefs.h.  */
17095 _ACEOF
17096 cat confdefs.h >>conftest.$ac_ext
17097 cat >>conftest.$ac_ext <<_ACEOF
17098 /* end confdefs.h.  */
17099 $ac_includes_default
17100 #include <$ac_header>
17101 _ACEOF
17102 rm -f conftest.$ac_objext
17103 if { (ac_try="$ac_compile"
17104 case "(($ac_try" in
17105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106   *) ac_try_echo=$ac_try;;
17107 esac
17108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17109 $as_echo "$ac_try_echo") >&5
17110   (eval "$ac_compile") 2>conftest.er1
17111   ac_status=$?
17112   grep -v '^ *+' conftest.er1 >conftest.err
17113   rm -f conftest.er1
17114   cat conftest.err >&5
17115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116   (exit $ac_status); } && {
17117          test -z "$ac_c_werror_flag" ||
17118          test ! -s conftest.err
17119        } && test -s conftest.$ac_objext; then
17120   ac_header_compiler=yes
17121 else
17122   $as_echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17124
17125         ac_header_compiler=no
17126 fi
17127
17128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17129 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17130 $as_echo "$ac_header_compiler" >&6; }
17131
17132 # Is the header present?
17133 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17134 $as_echo_n "checking $ac_header presence... " >&6; }
17135 cat >conftest.$ac_ext <<_ACEOF
17136 /* confdefs.h.  */
17137 _ACEOF
17138 cat confdefs.h >>conftest.$ac_ext
17139 cat >>conftest.$ac_ext <<_ACEOF
17140 /* end confdefs.h.  */
17141 #include <$ac_header>
17142 _ACEOF
17143 if { (ac_try="$ac_cpp conftest.$ac_ext"
17144 case "(($ac_try" in
17145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146   *) ac_try_echo=$ac_try;;
17147 esac
17148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17149 $as_echo "$ac_try_echo") >&5
17150   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17151   ac_status=$?
17152   grep -v '^ *+' conftest.er1 >conftest.err
17153   rm -f conftest.er1
17154   cat conftest.err >&5
17155   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156   (exit $ac_status); } >/dev/null && {
17157          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17158          test ! -s conftest.err
17159        }; then
17160   ac_header_preproc=yes
17161 else
17162   $as_echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17164
17165   ac_header_preproc=no
17166 fi
17167
17168 rm -f conftest.err conftest.$ac_ext
17169 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17170 $as_echo "$ac_header_preproc" >&6; }
17171
17172 # So?  What about this header?
17173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17174   yes:no: )
17175     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17176 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17177     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17178 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17179     ac_header_preproc=yes
17180     ;;
17181   no:yes:* )
17182     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17183 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17184     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17185 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17186     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17187 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17188     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17189 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17190     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17191 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17192     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17193 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17194
17195     ;;
17196 esac
17197 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17198 $as_echo_n "checking for $ac_header... " >&6; }
17199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17200   $as_echo_n "(cached) " >&6
17201 else
17202   eval "$as_ac_Header=\$ac_header_preproc"
17203 fi
17204 ac_res=`eval 'as_val=${'$as_ac_Header'}
17205                  $as_echo "$as_val"'`
17206                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17207 $as_echo "$ac_res" >&6; }
17208
17209 fi
17210 as_val=`eval 'as_val=${'$as_ac_Header'}
17211                  $as_echo "$as_val"'`
17212    if test "x$as_val" = x""yes; then
17213   cat >>confdefs.h <<_ACEOF
17214 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17215 _ACEOF
17216
17217 fi
17218
17219 done
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229 for ac_func in $ac_func_list
17230 do
17231 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17232 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17233 $as_echo_n "checking for $ac_func... " >&6; }
17234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17235   $as_echo_n "(cached) " >&6
17236 else
17237   cat >conftest.$ac_ext <<_ACEOF
17238 /* confdefs.h.  */
17239 _ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h.  */
17243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17244    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17245 #define $ac_func innocuous_$ac_func
17246
17247 /* System header to define __stub macros and hopefully few prototypes,
17248     which can conflict with char $ac_func (); below.
17249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17250     <limits.h> exists even on freestanding compilers.  */
17251
17252 #ifdef __STDC__
17253 # include <limits.h>
17254 #else
17255 # include <assert.h>
17256 #endif
17257
17258 #undef $ac_func
17259
17260 /* Override any GCC internal prototype to avoid an error.
17261    Use char because int might match the return type of a GCC
17262    builtin and then its argument prototype would still apply.  */
17263 #ifdef __cplusplus
17264 extern "C"
17265 #endif
17266 char $ac_func ();
17267 /* The GNU C library defines this for functions which it implements
17268     to always fail with ENOSYS.  Some functions are actually named
17269     something starting with __ and the normal name is an alias.  */
17270 #if defined __stub_$ac_func || defined __stub___$ac_func
17271 choke me
17272 #endif
17273
17274 int
17275 main ()
17276 {
17277 return $ac_func ();
17278   ;
17279   return 0;
17280 }
17281 _ACEOF
17282 rm -f conftest.$ac_objext conftest$ac_exeext
17283 if { (ac_try="$ac_link"
17284 case "(($ac_try" in
17285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286   *) ac_try_echo=$ac_try;;
17287 esac
17288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17289 $as_echo "$ac_try_echo") >&5
17290   (eval "$ac_link") 2>conftest.er1
17291   ac_status=$?
17292   grep -v '^ *+' conftest.er1 >conftest.err
17293   rm -f conftest.er1
17294   cat conftest.err >&5
17295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296   (exit $ac_status); } && {
17297          test -z "$ac_c_werror_flag" ||
17298          test ! -s conftest.err
17299        } && test -s conftest$ac_exeext && {
17300          test "$cross_compiling" = yes ||
17301          $as_test_x conftest$ac_exeext
17302        }; then
17303   eval "$as_ac_var=yes"
17304 else
17305   $as_echo "$as_me: failed program was:" >&5
17306 sed 's/^/| /' conftest.$ac_ext >&5
17307
17308         eval "$as_ac_var=no"
17309 fi
17310
17311 rm -rf conftest.dSYM
17312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17313       conftest$ac_exeext conftest.$ac_ext
17314 fi
17315 ac_res=`eval 'as_val=${'$as_ac_var'}
17316                  $as_echo "$as_val"'`
17317                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17318 $as_echo "$ac_res" >&6; }
17319 as_val=`eval 'as_val=${'$as_ac_var'}
17320                  $as_echo "$as_val"'`
17321    if test "x$as_val" = x""yes; then
17322   cat >>confdefs.h <<_ACEOF
17323 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17324 _ACEOF
17325
17326 fi
17327 done
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17346 $as_echo_n "checking for working mktime... " >&6; }
17347 if test "${ac_cv_func_working_mktime+set}" = set; then
17348   $as_echo_n "(cached) " >&6
17349 else
17350   if test "$cross_compiling" = yes; then
17351   ac_cv_func_working_mktime=no
17352 else
17353   cat >conftest.$ac_ext <<_ACEOF
17354 /* confdefs.h.  */
17355 _ACEOF
17356 cat confdefs.h >>conftest.$ac_ext
17357 cat >>conftest.$ac_ext <<_ACEOF
17358 /* end confdefs.h.  */
17359 /* Test program from Paul Eggert and Tony Leneis.  */
17360 #ifdef TIME_WITH_SYS_TIME
17361 # include <sys/time.h>
17362 # include <time.h>
17363 #else
17364 # ifdef HAVE_SYS_TIME_H
17365 #  include <sys/time.h>
17366 # else
17367 #  include <time.h>
17368 # endif
17369 #endif
17370
17371 #include <limits.h>
17372 #include <stdlib.h>
17373
17374 #ifdef HAVE_UNISTD_H
17375 # include <unistd.h>
17376 #endif
17377
17378 #ifndef HAVE_ALARM
17379 # define alarm(X) /* empty */
17380 #endif
17381
17382 /* Work around redefinition to rpl_putenv by other config tests.  */
17383 #undef putenv
17384
17385 static time_t time_t_max;
17386 static time_t time_t_min;
17387
17388 /* Values we'll use to set the TZ environment variable.  */
17389 static char *tz_strings[] = {
17390   (char *) 0, "TZ=GMT0", "TZ=JST-9",
17391   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17392 };
17393 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17394
17395 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17396    Based on a problem report from Andreas Jaeger.  */
17397 static int
17398 spring_forward_gap ()
17399 {
17400   /* glibc (up to about 1998-10-07) failed this test. */
17401   struct tm tm;
17402
17403   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17404      instead of "TZ=America/Vancouver" in order to detect the bug even
17405      on systems that don't support the Olson extension, or don't have the
17406      full zoneinfo tables installed.  */
17407   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17408
17409   tm.tm_year = 98;
17410   tm.tm_mon = 3;
17411   tm.tm_mday = 5;
17412   tm.tm_hour = 2;
17413   tm.tm_min = 0;
17414   tm.tm_sec = 0;
17415   tm.tm_isdst = -1;
17416   return mktime (&tm) != (time_t) -1;
17417 }
17418
17419 static int
17420 mktime_test1 (now)
17421      time_t now;
17422 {
17423   struct tm *lt;
17424   return ! (lt = localtime (&now)) || mktime (lt) == now;
17425 }
17426
17427 static int
17428 mktime_test (now)
17429      time_t now;
17430 {
17431   return (mktime_test1 (now)
17432           && mktime_test1 ((time_t) (time_t_max - now))
17433           && mktime_test1 ((time_t) (time_t_min + now)));
17434 }
17435
17436 static int
17437 irix_6_4_bug ()
17438 {
17439   /* Based on code from Ariel Faigon.  */
17440   struct tm tm;
17441   tm.tm_year = 96;
17442   tm.tm_mon = 3;
17443   tm.tm_mday = 0;
17444   tm.tm_hour = 0;
17445   tm.tm_min = 0;
17446   tm.tm_sec = 0;
17447   tm.tm_isdst = -1;
17448   mktime (&tm);
17449   return tm.tm_mon == 2 && tm.tm_mday == 31;
17450 }
17451
17452 static int
17453 bigtime_test (j)
17454      int j;
17455 {
17456   struct tm tm;
17457   time_t now;
17458   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17459   now = mktime (&tm);
17460   if (now != (time_t) -1)
17461     {
17462       struct tm *lt = localtime (&now);
17463       if (! (lt
17464              && lt->tm_year == tm.tm_year
17465              && lt->tm_mon == tm.tm_mon
17466              && lt->tm_mday == tm.tm_mday
17467              && lt->tm_hour == tm.tm_hour
17468              && lt->tm_min == tm.tm_min
17469              && lt->tm_sec == tm.tm_sec
17470              && lt->tm_yday == tm.tm_yday
17471              && lt->tm_wday == tm.tm_wday
17472              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17473                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17474         return 0;
17475     }
17476   return 1;
17477 }
17478
17479 static int
17480 year_2050_test ()
17481 {
17482   /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17483      ignoring leap seconds.  */
17484   unsigned long int answer = 2527315200UL;
17485
17486   struct tm tm;
17487   time_t t;
17488   tm.tm_year = 2050 - 1900;
17489   tm.tm_mon = 2 - 1;
17490   tm.tm_mday = 1;
17491   tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17492   tm.tm_isdst = -1;
17493
17494   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17495      instead of "TZ=America/Vancouver" in order to detect the bug even
17496      on systems that don't support the Olson extension, or don't have the
17497      full zoneinfo tables installed.  */
17498   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17499
17500   t = mktime (&tm);
17501
17502   /* Check that the result is either a failure, or close enough
17503      to the correct answer that we can assume the discrepancy is
17504      due to leap seconds.  */
17505   return (t == (time_t) -1
17506           || (0 < t && answer - 120 <= t && t <= answer + 120));
17507 }
17508
17509 int
17510 main ()
17511 {
17512   time_t t, delta;
17513   int i, j;
17514
17515   /* This test makes some buggy mktime implementations loop.
17516      Give up after 60 seconds; a mktime slower than that
17517      isn't worth using anyway.  */
17518   alarm (60);
17519
17520   for (;;)
17521     {
17522       t = (time_t_max << 1) + 1;
17523       if (t <= time_t_max)
17524         break;
17525       time_t_max = t;
17526     }
17527   time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17528
17529   delta = time_t_max / 997; /* a suitable prime number */
17530   for (i = 0; i < N_STRINGS; i++)
17531     {
17532       if (tz_strings[i])
17533         putenv (tz_strings[i]);
17534
17535       for (t = 0; t <= time_t_max - delta; t += delta)
17536         if (! mktime_test (t))
17537           return 1;
17538       if (! (mktime_test ((time_t) 1)
17539              && mktime_test ((time_t) (60 * 60))
17540              && mktime_test ((time_t) (60 * 60 * 24))))
17541         return 1;
17542
17543       for (j = 1; ; j <<= 1)
17544         if (! bigtime_test (j))
17545           return 1;
17546         else if (INT_MAX / 2 < j)
17547           break;
17548       if (! bigtime_test (INT_MAX))
17549         return 1;
17550     }
17551   return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17552 }
17553 _ACEOF
17554 rm -f conftest$ac_exeext
17555 if { (ac_try="$ac_link"
17556 case "(($ac_try" in
17557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17558   *) ac_try_echo=$ac_try;;
17559 esac
17560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17561 $as_echo "$ac_try_echo") >&5
17562   (eval "$ac_link") 2>&5
17563   ac_status=$?
17564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17566   { (case "(($ac_try" in
17567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568   *) ac_try_echo=$ac_try;;
17569 esac
17570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17571 $as_echo "$ac_try_echo") >&5
17572   (eval "$ac_try") 2>&5
17573   ac_status=$?
17574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); }; }; then
17576   ac_cv_func_working_mktime=yes
17577 else
17578   $as_echo "$as_me: program exited with status $ac_status" >&5
17579 $as_echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.$ac_ext >&5
17581
17582 ( exit $ac_status )
17583 ac_cv_func_working_mktime=no
17584 fi
17585 rm -rf conftest.dSYM
17586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17587 fi
17588
17589
17590 fi
17591 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17592 $as_echo "$ac_cv_func_working_mktime" >&6; }
17593 if test $ac_cv_func_working_mktime = no; then
17594   case " $LIBOBJS " in
17595   *" mktime.$ac_objext "* ) ;;
17596   *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17597  ;;
17598 esac
17599
17600 fi
17601
17602
17603 for ac_func in strftime
17604 do
17605 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17606 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17607 $as_echo_n "checking for $ac_func... " >&6; }
17608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17609   $as_echo_n "(cached) " >&6
17610 else
17611   cat >conftest.$ac_ext <<_ACEOF
17612 /* confdefs.h.  */
17613 _ACEOF
17614 cat confdefs.h >>conftest.$ac_ext
17615 cat >>conftest.$ac_ext <<_ACEOF
17616 /* end confdefs.h.  */
17617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17618    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17619 #define $ac_func innocuous_$ac_func
17620
17621 /* System header to define __stub macros and hopefully few prototypes,
17622     which can conflict with char $ac_func (); below.
17623     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17624     <limits.h> exists even on freestanding compilers.  */
17625
17626 #ifdef __STDC__
17627 # include <limits.h>
17628 #else
17629 # include <assert.h>
17630 #endif
17631
17632 #undef $ac_func
17633
17634 /* Override any GCC internal prototype to avoid an error.
17635    Use char because int might match the return type of a GCC
17636    builtin and then its argument prototype would still apply.  */
17637 #ifdef __cplusplus
17638 extern "C"
17639 #endif
17640 char $ac_func ();
17641 /* The GNU C library defines this for functions which it implements
17642     to always fail with ENOSYS.  Some functions are actually named
17643     something starting with __ and the normal name is an alias.  */
17644 #if defined __stub_$ac_func || defined __stub___$ac_func
17645 choke me
17646 #endif
17647
17648 int
17649 main ()
17650 {
17651 return $ac_func ();
17652   ;
17653   return 0;
17654 }
17655 _ACEOF
17656 rm -f conftest.$ac_objext conftest$ac_exeext
17657 if { (ac_try="$ac_link"
17658 case "(($ac_try" in
17659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660   *) ac_try_echo=$ac_try;;
17661 esac
17662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17663 $as_echo "$ac_try_echo") >&5
17664   (eval "$ac_link") 2>conftest.er1
17665   ac_status=$?
17666   grep -v '^ *+' conftest.er1 >conftest.err
17667   rm -f conftest.er1
17668   cat conftest.err >&5
17669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670   (exit $ac_status); } && {
17671          test -z "$ac_c_werror_flag" ||
17672          test ! -s conftest.err
17673        } && test -s conftest$ac_exeext && {
17674          test "$cross_compiling" = yes ||
17675          $as_test_x conftest$ac_exeext
17676        }; then
17677   eval "$as_ac_var=yes"
17678 else
17679   $as_echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17681
17682         eval "$as_ac_var=no"
17683 fi
17684
17685 rm -rf conftest.dSYM
17686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17687       conftest$ac_exeext conftest.$ac_ext
17688 fi
17689 ac_res=`eval 'as_val=${'$as_ac_var'}
17690                  $as_echo "$as_val"'`
17691                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17692 $as_echo "$ac_res" >&6; }
17693 as_val=`eval 'as_val=${'$as_ac_var'}
17694                  $as_echo "$as_val"'`
17695    if test "x$as_val" = x""yes; then
17696   cat >>confdefs.h <<_ACEOF
17697 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17698 _ACEOF
17699
17700 else
17701   # strftime is in -lintl on SCO UNIX.
17702 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17703 $as_echo_n "checking for strftime in -lintl... " >&6; }
17704 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17705   $as_echo_n "(cached) " >&6
17706 else
17707   ac_check_lib_save_LIBS=$LIBS
17708 LIBS="-lintl  $LIBS"
17709 cat >conftest.$ac_ext <<_ACEOF
17710 /* confdefs.h.  */
17711 _ACEOF
17712 cat confdefs.h >>conftest.$ac_ext
17713 cat >>conftest.$ac_ext <<_ACEOF
17714 /* end confdefs.h.  */
17715
17716 /* Override any GCC internal prototype to avoid an error.
17717    Use char because int might match the return type of a GCC
17718    builtin and then its argument prototype would still apply.  */
17719 #ifdef __cplusplus
17720 extern "C"
17721 #endif
17722 char strftime ();
17723 int
17724 main ()
17725 {
17726 return strftime ();
17727   ;
17728   return 0;
17729 }
17730 _ACEOF
17731 rm -f conftest.$ac_objext conftest$ac_exeext
17732 if { (ac_try="$ac_link"
17733 case "(($ac_try" in
17734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735   *) ac_try_echo=$ac_try;;
17736 esac
17737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17738 $as_echo "$ac_try_echo") >&5
17739   (eval "$ac_link") 2>conftest.er1
17740   ac_status=$?
17741   grep -v '^ *+' conftest.er1 >conftest.err
17742   rm -f conftest.er1
17743   cat conftest.err >&5
17744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745   (exit $ac_status); } && {
17746          test -z "$ac_c_werror_flag" ||
17747          test ! -s conftest.err
17748        } && test -s conftest$ac_exeext && {
17749          test "$cross_compiling" = yes ||
17750          $as_test_x conftest$ac_exeext
17751        }; then
17752   ac_cv_lib_intl_strftime=yes
17753 else
17754   $as_echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17756
17757         ac_cv_lib_intl_strftime=no
17758 fi
17759
17760 rm -rf conftest.dSYM
17761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17762       conftest$ac_exeext conftest.$ac_ext
17763 LIBS=$ac_check_lib_save_LIBS
17764 fi
17765 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17766 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
17767 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
17768   cat >>confdefs.h <<\_ACEOF
17769 #define HAVE_STRFTIME 1
17770 _ACEOF
17771
17772 LIBS="-lintl $LIBS"
17773 fi
17774
17775 fi
17776 done
17777
17778
17779
17780
17781 for ac_func in gethostname localtime_r memset
17782 do
17783 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17784 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17785 $as_echo_n "checking for $ac_func... " >&6; }
17786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17787   $as_echo_n "(cached) " >&6
17788 else
17789   cat >conftest.$ac_ext <<_ACEOF
17790 /* confdefs.h.  */
17791 _ACEOF
17792 cat confdefs.h >>conftest.$ac_ext
17793 cat >>conftest.$ac_ext <<_ACEOF
17794 /* end confdefs.h.  */
17795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17796    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17797 #define $ac_func innocuous_$ac_func
17798
17799 /* System header to define __stub macros and hopefully few prototypes,
17800     which can conflict with char $ac_func (); below.
17801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17802     <limits.h> exists even on freestanding compilers.  */
17803
17804 #ifdef __STDC__
17805 # include <limits.h>
17806 #else
17807 # include <assert.h>
17808 #endif
17809
17810 #undef $ac_func
17811
17812 /* Override any GCC internal prototype to avoid an error.
17813    Use char because int might match the return type of a GCC
17814    builtin and then its argument prototype would still apply.  */
17815 #ifdef __cplusplus
17816 extern "C"
17817 #endif
17818 char $ac_func ();
17819 /* The GNU C library defines this for functions which it implements
17820     to always fail with ENOSYS.  Some functions are actually named
17821     something starting with __ and the normal name is an alias.  */
17822 #if defined __stub_$ac_func || defined __stub___$ac_func
17823 choke me
17824 #endif
17825
17826 int
17827 main ()
17828 {
17829 return $ac_func ();
17830   ;
17831   return 0;
17832 }
17833 _ACEOF
17834 rm -f conftest.$ac_objext conftest$ac_exeext
17835 if { (ac_try="$ac_link"
17836 case "(($ac_try" in
17837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838   *) ac_try_echo=$ac_try;;
17839 esac
17840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17841 $as_echo "$ac_try_echo") >&5
17842   (eval "$ac_link") 2>conftest.er1
17843   ac_status=$?
17844   grep -v '^ *+' conftest.er1 >conftest.err
17845   rm -f conftest.er1
17846   cat conftest.err >&5
17847   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848   (exit $ac_status); } && {
17849          test -z "$ac_c_werror_flag" ||
17850          test ! -s conftest.err
17851        } && test -s conftest$ac_exeext && {
17852          test "$cross_compiling" = yes ||
17853          $as_test_x conftest$ac_exeext
17854        }; then
17855   eval "$as_ac_var=yes"
17856 else
17857   $as_echo "$as_me: failed program was:" >&5
17858 sed 's/^/| /' conftest.$ac_ext >&5
17859
17860         eval "$as_ac_var=no"
17861 fi
17862
17863 rm -rf conftest.dSYM
17864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17865       conftest$ac_exeext conftest.$ac_ext
17866 fi
17867 ac_res=`eval 'as_val=${'$as_ac_var'}
17868                  $as_echo "$as_val"'`
17869                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17870 $as_echo "$ac_res" >&6; }
17871 as_val=`eval 'as_val=${'$as_ac_var'}
17872                  $as_echo "$as_val"'`
17873    if test "x$as_val" = x""yes; then
17874   cat >>confdefs.h <<_ACEOF
17875 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17876 _ACEOF
17877
17878 fi
17879 done
17880
17881
17882 # application-specific option
17883 if test `uname -m` == "x86_64"; then
17884         libdir=/usr/lib64
17885
17886 else
17887         libdir=/usr/lib
17888
17889         CXXFLAGS=-march=i686
17890
17891 fi
17892
17893
17894 # Check whether --with-l7vs-moddir was given.
17895 if test "${with_l7vs_moddir+set}" = set; then
17896   withval=$with_l7vs_moddir;    l7vs_moddir="$withval"
17897 else
17898         l7vs_moddir="${libdir}/l7vs"
17899
17900 fi
17901
17902
17903
17904 # Check whether --with-l7vsadm-sockdir was given.
17905 if test "${with_l7vsadm_sockdir+set}" = set; then
17906   withval=$with_l7vsadm_sockdir;        l7vsadm_sockdir="$withval"
17907 else
17908         l7vsadm_sockdir="/var/run/l7vs"
17909
17910 fi
17911
17912
17913
17914 # Check whether --with-l7vs-buffer-size was given.
17915 if test "${with_l7vs_buffer_size+set}" = set; then
17916   withval=$with_l7vs_buffer_size;       l7vs_max_buffer_size="$withval"
17917 else
17918         l7vs_max_buffer_size=4096
17919
17920 fi
17921
17922
17923
17924 # Check whether --with-l7vs-config-dir was given.
17925 if test "${with_l7vs_config_dir+set}" = set; then
17926   withval=$with_l7vs_config_dir;        l7vs_config="$withval"
17927 else
17928         l7vs_config="/etc/l7vs/l7vs.cf"
17929
17930 fi
17931
17932
17933 CC=g++
17934
17935 exec_prefix=/usr
17936
17937
17938
17939
17940
17941
17942 external_agent_libs=`net-snmp-config --external-agent-libs`
17943
17944 ultramonkeyl7_version=ultramonkeyl7-$VERSION
17945
17946
17947 ac_config_files="$ac_config_files doc/Makefile doc/conf/Makefile doc/sslfiles/Makefile doc/heartbeat-ra/Makefile doc/mibs/Makefile l7directord/Makefile l7vsd/Makefile l7vsd/init.d/Makefile l7vsd/module/Makefile l7vsd/module/protocol/Makefile l7vsd/module/schedule/Makefile l7vsd/src/Makefile Makefile"
17948
17949
17950 ac_config_files="$ac_config_files l7vsd.spec"
17951
17952 cat >confcache <<\_ACEOF
17953 # This file is a shell script that caches the results of configure
17954 # tests run on this system so they can be shared between configure
17955 # scripts and configure runs, see configure's option --config-cache.
17956 # It is not useful on other systems.  If it contains results you don't
17957 # want to keep, you may remove or edit it.
17958 #
17959 # config.status only pays attention to the cache file if you give it
17960 # the --recheck option to rerun configure.
17961 #
17962 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17963 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17964 # following values.
17965
17966 _ACEOF
17967
17968 # The following way of writing the cache mishandles newlines in values,
17969 # but we know of no workaround that is simple, portable, and efficient.
17970 # So, we kill variables containing newlines.
17971 # Ultrix sh set writes to stderr and can't be redirected directly,
17972 # and sets the high bit in the cache file unless we assign to the vars.
17973 (
17974   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17975     eval ac_val=\$$ac_var
17976     case $ac_val in #(
17977     *${as_nl}*)
17978       case $ac_var in #(
17979       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17980 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17981       esac
17982       case $ac_var in #(
17983       _ | IFS | as_nl) ;; #(
17984       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17985       *) $as_unset $ac_var ;;
17986       esac ;;
17987     esac
17988   done
17989
17990   (set) 2>&1 |
17991     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17992     *${as_nl}ac_space=\ *)
17993       # `set' does not quote correctly, so add quotes (double-quote
17994       # substitution turns \\\\ into \\, and sed turns \\ into \).
17995       sed -n \
17996         "s/'/'\\\\''/g;
17997           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17998       ;; #(
17999     *)
18000       # `set' quotes correctly as required by POSIX, so do not add quotes.
18001       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18002       ;;
18003     esac |
18004     sort
18005 ) |
18006   sed '
18007      /^ac_cv_env_/b end
18008      t clear
18009      :clear
18010      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18011      t end
18012      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18013      :end' >>confcache
18014 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18015   if test -w "$cache_file"; then
18016     test "x$cache_file" != "x/dev/null" &&
18017       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18018 $as_echo "$as_me: updating cache $cache_file" >&6;}
18019     cat confcache >$cache_file
18020   else
18021     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18022 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18023   fi
18024 fi
18025 rm -f confcache
18026
18027 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18028 # Let make expand exec_prefix.
18029 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18030
18031 DEFS=-DHAVE_CONFIG_H
18032
18033 ac_libobjs=
18034 ac_ltlibobjs=
18035 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18036   # 1. Remove the extension, and $U if already installed.
18037   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18038   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18039   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18040   #    will be set to the directory where LIBOBJS objects are built.
18041   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18042   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18043 done
18044 LIBOBJS=$ac_libobjs
18045
18046 LTLIBOBJS=$ac_ltlibobjs
18047
18048
18049  if test -n "$EXEEXT"; then
18050   am__EXEEXT_TRUE=
18051   am__EXEEXT_FALSE='#'
18052 else
18053   am__EXEEXT_TRUE='#'
18054   am__EXEEXT_FALSE=
18055 fi
18056
18057 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18058   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18059 Usually this means the macro was only invoked conditionally." >&5
18060 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
18061 Usually this means the macro was only invoked conditionally." >&2;}
18062    { (exit 1); exit 1; }; }
18063 fi
18064 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18065   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
18066 Usually this means the macro was only invoked conditionally." >&5
18067 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
18068 Usually this means the macro was only invoked conditionally." >&2;}
18069    { (exit 1); exit 1; }; }
18070 fi
18071 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18072   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18073 Usually this means the macro was only invoked conditionally." >&5
18074 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18075 Usually this means the macro was only invoked conditionally." >&2;}
18076    { (exit 1); exit 1; }; }
18077 fi
18078 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18079   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
18080 Usually this means the macro was only invoked conditionally." >&5
18081 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
18082 Usually this means the macro was only invoked conditionally." >&2;}
18083    { (exit 1); exit 1; }; }
18084 fi
18085
18086 : ${CONFIG_STATUS=./config.status}
18087 ac_write_fail=0
18088 ac_clean_files_save=$ac_clean_files
18089 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18090 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18091 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18092 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18093 #! $SHELL
18094 # Generated by $as_me.
18095 # Run this file to recreate the current configuration.
18096 # Compiler output produced by configure, useful for debugging
18097 # configure, is in config.log if it exists.
18098
18099 debug=false
18100 ac_cs_recheck=false
18101 ac_cs_silent=false
18102 SHELL=\${CONFIG_SHELL-$SHELL}
18103 _ACEOF
18104
18105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18106 ## --------------------- ##
18107 ## M4sh Initialization.  ##
18108 ## --------------------- ##
18109
18110 # Be more Bourne compatible
18111 DUALCASE=1; export DUALCASE # for MKS sh
18112 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18113   emulate sh
18114   NULLCMD=:
18115   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18116   # is contrary to our usage.  Disable this feature.
18117   alias -g '${1+"$@"}'='"$@"'
18118   setopt NO_GLOB_SUBST
18119 else
18120   case `(set -o) 2>/dev/null` in
18121   *posix*) set -o posix ;;
18122 esac
18123
18124 fi
18125
18126
18127
18128
18129 # PATH needs CR
18130 # Avoid depending upon Character Ranges.
18131 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18132 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18133 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18134 as_cr_digits='0123456789'
18135 as_cr_alnum=$as_cr_Letters$as_cr_digits
18136
18137 as_nl='
18138 '
18139 export as_nl
18140 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18141 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18142 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18143 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18144 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18145   as_echo='printf %s\n'
18146   as_echo_n='printf %s'
18147 else
18148   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18149     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18150     as_echo_n='/usr/ucb/echo -n'
18151   else
18152     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18153     as_echo_n_body='eval
18154       arg=$1;
18155       case $arg in
18156       *"$as_nl"*)
18157         expr "X$arg" : "X\\(.*\\)$as_nl";
18158         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18159       esac;
18160       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18161     '
18162     export as_echo_n_body
18163     as_echo_n='sh -c $as_echo_n_body as_echo'
18164   fi
18165   export as_echo_body
18166   as_echo='sh -c $as_echo_body as_echo'
18167 fi
18168
18169 # The user is always right.
18170 if test "${PATH_SEPARATOR+set}" != set; then
18171   PATH_SEPARATOR=:
18172   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18173     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18174       PATH_SEPARATOR=';'
18175   }
18176 fi
18177
18178 # Support unset when possible.
18179 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18180   as_unset=unset
18181 else
18182   as_unset=false
18183 fi
18184
18185
18186 # IFS
18187 # We need space, tab and new line, in precisely that order.  Quoting is
18188 # there to prevent editors from complaining about space-tab.
18189 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18190 # splitting by setting IFS to empty value.)
18191 IFS=" ""        $as_nl"
18192
18193 # Find who we are.  Look in the path if we contain no directory separator.
18194 case $0 in
18195   *[\\/]* ) as_myself=$0 ;;
18196   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18197 for as_dir in $PATH
18198 do
18199   IFS=$as_save_IFS
18200   test -z "$as_dir" && as_dir=.
18201   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18202 done
18203 IFS=$as_save_IFS
18204
18205      ;;
18206 esac
18207 # We did not find ourselves, most probably we were run as `sh COMMAND'
18208 # in which case we are not to be found in the path.
18209 if test "x$as_myself" = x; then
18210   as_myself=$0
18211 fi
18212 if test ! -f "$as_myself"; then
18213   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18214   { (exit 1); exit 1; }
18215 fi
18216
18217 # Work around bugs in pre-3.0 UWIN ksh.
18218 for as_var in ENV MAIL MAILPATH
18219 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18220 done
18221 PS1='$ '
18222 PS2='> '
18223 PS4='+ '
18224
18225 # NLS nuisances.
18226 LC_ALL=C
18227 export LC_ALL
18228 LANGUAGE=C
18229 export LANGUAGE
18230
18231 # Required to use basename.
18232 if expr a : '\(a\)' >/dev/null 2>&1 &&
18233    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18234   as_expr=expr
18235 else
18236   as_expr=false
18237 fi
18238
18239 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18240   as_basename=basename
18241 else
18242   as_basename=false
18243 fi
18244
18245
18246 # Name of the executable.
18247 as_me=`$as_basename -- "$0" ||
18248 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18249          X"$0" : 'X\(//\)$' \| \
18250          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18251 $as_echo X/"$0" |
18252     sed '/^.*\/\([^/][^/]*\)\/*$/{
18253             s//\1/
18254             q
18255           }
18256           /^X\/\(\/\/\)$/{
18257             s//\1/
18258             q
18259           }
18260           /^X\/\(\/\).*/{
18261             s//\1/
18262             q
18263           }
18264           s/.*/./; q'`
18265
18266 # CDPATH.
18267 $as_unset CDPATH
18268
18269
18270
18271   as_lineno_1=$LINENO
18272   as_lineno_2=$LINENO
18273   test "x$as_lineno_1" != "x$as_lineno_2" &&
18274   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18275
18276   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18277   # uniformly replaced by the line number.  The first 'sed' inserts a
18278   # line-number line after each line using $LINENO; the second 'sed'
18279   # does the real work.  The second script uses 'N' to pair each
18280   # line-number line with the line containing $LINENO, and appends
18281   # trailing '-' during substitution so that $LINENO is not a special
18282   # case at line end.
18283   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18284   # scripts with optimization help from Paolo Bonzini.  Blame Lee
18285   # E. McMahon (1931-1989) for sed's syntax.  :-)
18286   sed -n '
18287     p
18288     /[$]LINENO/=
18289   ' <$as_myself |
18290     sed '
18291       s/[$]LINENO.*/&-/
18292       t lineno
18293       b
18294       :lineno
18295       N
18296       :loop
18297       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18298       t loop
18299       s/-\n.*//
18300     ' >$as_me.lineno &&
18301   chmod +x "$as_me.lineno" ||
18302     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18303    { (exit 1); exit 1; }; }
18304
18305   # Don't try to exec as it changes $[0], causing all sort of problems
18306   # (the dirname of $[0] is not the place where we might find the
18307   # original and so on.  Autoconf is especially sensitive to this).
18308   . "./$as_me.lineno"
18309   # Exit status is that of the last command.
18310   exit
18311 }
18312
18313
18314 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18315   as_dirname=dirname
18316 else
18317   as_dirname=false
18318 fi
18319
18320 ECHO_C= ECHO_N= ECHO_T=
18321 case `echo -n x` in
18322 -n*)
18323   case `echo 'x\c'` in
18324   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18325   *)   ECHO_C='\c';;
18326   esac;;
18327 *)
18328   ECHO_N='-n';;
18329 esac
18330 if expr a : '\(a\)' >/dev/null 2>&1 &&
18331    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18332   as_expr=expr
18333 else
18334   as_expr=false
18335 fi
18336
18337 rm -f conf$$ conf$$.exe conf$$.file
18338 if test -d conf$$.dir; then
18339   rm -f conf$$.dir/conf$$.file
18340 else
18341   rm -f conf$$.dir
18342   mkdir conf$$.dir 2>/dev/null
18343 fi
18344 if (echo >conf$$.file) 2>/dev/null; then
18345   if ln -s conf$$.file conf$$ 2>/dev/null; then
18346     as_ln_s='ln -s'
18347     # ... but there are two gotchas:
18348     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18349     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18350     # In both cases, we have to default to `cp -p'.
18351     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18352       as_ln_s='cp -p'
18353   elif ln conf$$.file conf$$ 2>/dev/null; then
18354     as_ln_s=ln
18355   else
18356     as_ln_s='cp -p'
18357   fi
18358 else
18359   as_ln_s='cp -p'
18360 fi
18361 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18362 rmdir conf$$.dir 2>/dev/null
18363
18364 if mkdir -p . 2>/dev/null; then
18365   as_mkdir_p=:
18366 else
18367   test -d ./-p && rmdir ./-p
18368   as_mkdir_p=false
18369 fi
18370
18371 if test -x / >/dev/null 2>&1; then
18372   as_test_x='test -x'
18373 else
18374   if ls -dL / >/dev/null 2>&1; then
18375     as_ls_L_option=L
18376   else
18377     as_ls_L_option=
18378   fi
18379   as_test_x='
18380     eval sh -c '\''
18381       if test -d "$1"; then
18382         test -d "$1/.";
18383       else
18384         case $1 in
18385         -*)set "./$1";;
18386         esac;
18387         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18388         ???[sx]*):;;*)false;;esac;fi
18389     '\'' sh
18390   '
18391 fi
18392 as_executable_p=$as_test_x
18393
18394 # Sed expression to map a string onto a valid CPP name.
18395 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18396
18397 # Sed expression to map a string onto a valid variable name.
18398 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18399
18400
18401 exec 6>&1
18402
18403 # Save the log message, to keep $[0] and so on meaningful, and to
18404 # report actual input values of CONFIG_FILES etc. instead of their
18405 # values after options handling.
18406 ac_log="
18407 This file was extended by $as_me, which was
18408 generated by GNU Autoconf 2.63.  Invocation command line was
18409
18410   CONFIG_FILES    = $CONFIG_FILES
18411   CONFIG_HEADERS  = $CONFIG_HEADERS
18412   CONFIG_LINKS    = $CONFIG_LINKS
18413   CONFIG_COMMANDS = $CONFIG_COMMANDS
18414   $ $0 $@
18415
18416 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18417 "
18418
18419 _ACEOF
18420
18421 case $ac_config_files in *"
18422 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18423 esac
18424
18425 case $ac_config_headers in *"
18426 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18427 esac
18428
18429
18430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18431 # Files that config.status was made for.
18432 config_files="$ac_config_files"
18433 config_headers="$ac_config_headers"
18434 config_commands="$ac_config_commands"
18435
18436 _ACEOF
18437
18438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18439 ac_cs_usage="\
18440 \`$as_me' instantiates files from templates according to the
18441 current configuration.
18442
18443 Usage: $0 [OPTION]... [FILE]...
18444
18445   -h, --help       print this help, then exit
18446   -V, --version    print version number and configuration settings, then exit
18447   -q, --quiet, --silent
18448                    do not print progress messages
18449   -d, --debug      don't remove temporary files
18450       --recheck    update $as_me by reconfiguring in the same conditions
18451       --file=FILE[:TEMPLATE]
18452                    instantiate the configuration file FILE
18453       --header=FILE[:TEMPLATE]
18454                    instantiate the configuration header FILE
18455
18456 Configuration files:
18457 $config_files
18458
18459 Configuration headers:
18460 $config_headers
18461
18462 Configuration commands:
18463 $config_commands
18464
18465 Report bugs to <bug-autoconf@gnu.org>."
18466
18467 _ACEOF
18468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18469 ac_cs_version="\\
18470 config.status
18471 configured by $0, generated by GNU Autoconf 2.63,
18472   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18473
18474 Copyright (C) 2008 Free Software Foundation, Inc.
18475 This config.status script is free software; the Free Software Foundation
18476 gives unlimited permission to copy, distribute and modify it."
18477
18478 ac_pwd='$ac_pwd'
18479 srcdir='$srcdir'
18480 INSTALL='$INSTALL'
18481 MKDIR_P='$MKDIR_P'
18482 AWK='$AWK'
18483 test -n "\$AWK" || AWK=awk
18484 _ACEOF
18485
18486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18487 # The default lists apply if the user does not specify any file.
18488 ac_need_defaults=:
18489 while test $# != 0
18490 do
18491   case $1 in
18492   --*=*)
18493     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18494     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18495     ac_shift=:
18496     ;;
18497   *)
18498     ac_option=$1
18499     ac_optarg=$2
18500     ac_shift=shift
18501     ;;
18502   esac
18503
18504   case $ac_option in
18505   # Handling of the options.
18506   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18507     ac_cs_recheck=: ;;
18508   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18509     $as_echo "$ac_cs_version"; exit ;;
18510   --debug | --debu | --deb | --de | --d | -d )
18511     debug=: ;;
18512   --file | --fil | --fi | --f )
18513     $ac_shift
18514     case $ac_optarg in
18515     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18516     esac
18517     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18518     ac_need_defaults=false;;
18519   --header | --heade | --head | --hea )
18520     $ac_shift
18521     case $ac_optarg in
18522     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18523     esac
18524     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18525     ac_need_defaults=false;;
18526   --he | --h)
18527     # Conflict between --help and --header
18528     { $as_echo "$as_me: error: ambiguous option: $1
18529 Try \`$0 --help' for more information." >&2
18530    { (exit 1); exit 1; }; };;
18531   --help | --hel | -h )
18532     $as_echo "$ac_cs_usage"; exit ;;
18533   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18534   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18535     ac_cs_silent=: ;;
18536
18537   # This is an error.
18538   -*) { $as_echo "$as_me: error: unrecognized option: $1
18539 Try \`$0 --help' for more information." >&2
18540    { (exit 1); exit 1; }; } ;;
18541
18542   *) ac_config_targets="$ac_config_targets $1"
18543      ac_need_defaults=false ;;
18544
18545   esac
18546   shift
18547 done
18548
18549 ac_configure_extra_args=
18550
18551 if $ac_cs_silent; then
18552   exec 6>/dev/null
18553   ac_configure_extra_args="$ac_configure_extra_args --silent"
18554 fi
18555
18556 _ACEOF
18557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18558 if \$ac_cs_recheck; then
18559   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18560   shift
18561   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18562   CONFIG_SHELL='$SHELL'
18563   export CONFIG_SHELL
18564   exec "\$@"
18565 fi
18566
18567 _ACEOF
18568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18569 exec 5>>config.log
18570 {
18571   echo
18572   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18573 ## Running $as_me. ##
18574 _ASBOX
18575   $as_echo "$ac_log"
18576 } >&5
18577
18578 _ACEOF
18579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18580 #
18581 # INIT-COMMANDS
18582 #
18583 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18584
18585
18586 # The HP-UX ksh and POSIX shell print the target directory to stdout
18587 # if CDPATH is set.
18588 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18589
18590 sed_quote_subst='$sed_quote_subst'
18591 double_quote_subst='$double_quote_subst'
18592 delay_variable_subst='$delay_variable_subst'
18593 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18594 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18595 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18596 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18597 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18598 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18599 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18600 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18601 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18602 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18603 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18604 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18605 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18606 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18607 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18608 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18609 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18610 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18611 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18612 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18613 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18614 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18615 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18616 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18617 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18618 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18619 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18620 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18621 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18622 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18623 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18624 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18625 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18626 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18627 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18628 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18629 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18630 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18631 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18632 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18633 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18634 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18635 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18636 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18637 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
18638 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18639 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18640 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18641 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18642 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18643 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18644 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18645 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18646 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18647 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18648 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18649 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18650 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18651 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18652 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18653 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18654 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18655 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18656 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18657 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18658 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18659 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18660 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18661 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18662 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18663 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18664 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18665 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18666 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18667 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18668 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18669 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18670 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18671 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18672 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18673 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18674 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18675 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18676 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18677 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18678 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18679 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18680 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18681 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18682 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18683 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18684 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18685 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18686 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18687 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18688 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18689 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18690 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18691 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18692 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18693 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18694 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18695 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18696 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18697 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18698 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18699 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18700 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18701 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18702 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18703 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18704 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18705 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18706 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18707 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18708 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18709 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18710 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18711 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
18712 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18713 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18714 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
18715 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
18716 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
18717 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18718 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18719 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18720 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18721 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18722 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18723 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18724 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18725 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18726 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18727 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18728 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18729 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18730 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18731 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18732 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18733 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18734 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18735 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18736 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18737 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18738 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18739 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18740 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18741 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18742 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18743 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18744 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18745 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18746 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18747 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18748 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18749 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18750 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18751 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18752 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18753 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18754 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18755 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18756 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18757 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18758 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18759 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18760 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18761 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18762 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18763 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18764
18765 LTCC='$LTCC'
18766 LTCFLAGS='$LTCFLAGS'
18767 compiler='$compiler_DEFAULT'
18768
18769 # Quote evaled strings.
18770 for var in SED \
18771 GREP \
18772 EGREP \
18773 FGREP \
18774 LD \
18775 NM \
18776 LN_S \
18777 lt_SP2NL \
18778 lt_NL2SP \
18779 reload_flag \
18780 OBJDUMP \
18781 deplibs_check_method \
18782 file_magic_cmd \
18783 AR \
18784 AR_FLAGS \
18785 STRIP \
18786 RANLIB \
18787 CC \
18788 CFLAGS \
18789 compiler \
18790 lt_cv_sys_global_symbol_pipe \
18791 lt_cv_sys_global_symbol_to_cdecl \
18792 lt_cv_sys_global_symbol_to_c_name_address \
18793 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18794 SHELL \
18795 ECHO \
18796 lt_prog_compiler_no_builtin_flag \
18797 lt_prog_compiler_wl \
18798 lt_prog_compiler_pic \
18799 lt_prog_compiler_static \
18800 lt_cv_prog_compiler_c_o \
18801 need_locks \
18802 DSYMUTIL \
18803 NMEDIT \
18804 LIPO \
18805 OTOOL \
18806 OTOOL64 \
18807 shrext_cmds \
18808 export_dynamic_flag_spec \
18809 whole_archive_flag_spec \
18810 compiler_needs_object \
18811 with_gnu_ld \
18812 allow_undefined_flag \
18813 no_undefined_flag \
18814 hardcode_libdir_flag_spec \
18815 hardcode_libdir_flag_spec_ld \
18816 hardcode_libdir_separator \
18817 fix_srcfile_path \
18818 exclude_expsyms \
18819 include_expsyms \
18820 file_list_spec \
18821 variables_saved_for_relink \
18822 libname_spec \
18823 library_names_spec \
18824 soname_spec \
18825 finish_eval \
18826 old_striplib \
18827 striplib \
18828 compiler_lib_search_dirs \
18829 predep_objects \
18830 postdep_objects \
18831 predeps \
18832 postdeps \
18833 compiler_lib_search_path \
18834 LD_CXX \
18835 compiler_CXX \
18836 lt_prog_compiler_no_builtin_flag_CXX \
18837 lt_prog_compiler_wl_CXX \
18838 lt_prog_compiler_pic_CXX \
18839 lt_prog_compiler_static_CXX \
18840 lt_cv_prog_compiler_c_o_CXX \
18841 export_dynamic_flag_spec_CXX \
18842 whole_archive_flag_spec_CXX \
18843 compiler_needs_object_CXX \
18844 with_gnu_ld_CXX \
18845 allow_undefined_flag_CXX \
18846 no_undefined_flag_CXX \
18847 hardcode_libdir_flag_spec_CXX \
18848 hardcode_libdir_flag_spec_ld_CXX \
18849 hardcode_libdir_separator_CXX \
18850 fix_srcfile_path_CXX \
18851 exclude_expsyms_CXX \
18852 include_expsyms_CXX \
18853 file_list_spec_CXX \
18854 compiler_lib_search_dirs_CXX \
18855 predep_objects_CXX \
18856 postdep_objects_CXX \
18857 predeps_CXX \
18858 postdeps_CXX \
18859 compiler_lib_search_path_CXX; do
18860     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18861     *[\\\\\\\`\\"\\\$]*)
18862       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18863       ;;
18864     *)
18865       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18866       ;;
18867     esac
18868 done
18869
18870 # Double-quote double-evaled strings.
18871 for var in reload_cmds \
18872 old_postinstall_cmds \
18873 old_postuninstall_cmds \
18874 old_archive_cmds \
18875 extract_expsyms_cmds \
18876 old_archive_from_new_cmds \
18877 old_archive_from_expsyms_cmds \
18878 archive_cmds \
18879 archive_expsym_cmds \
18880 module_cmds \
18881 module_expsym_cmds \
18882 export_symbols_cmds \
18883 prelink_cmds \
18884 postinstall_cmds \
18885 postuninstall_cmds \
18886 finish_cmds \
18887 sys_lib_search_path_spec \
18888 sys_lib_dlsearch_path_spec \
18889 old_archive_cmds_CXX \
18890 old_archive_from_new_cmds_CXX \
18891 old_archive_from_expsyms_cmds_CXX \
18892 archive_cmds_CXX \
18893 archive_expsym_cmds_CXX \
18894 module_cmds_CXX \
18895 module_expsym_cmds_CXX \
18896 export_symbols_cmds_CXX \
18897 prelink_cmds_CXX; do
18898     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18899     *[\\\\\\\`\\"\\\$]*)
18900       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18901       ;;
18902     *)
18903       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18904       ;;
18905     esac
18906 done
18907
18908 # Fix-up fallback echo if it was mangled by the above quoting rules.
18909 case \$lt_ECHO in
18910 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18911   ;;
18912 esac
18913
18914 ac_aux_dir='$ac_aux_dir'
18915 xsi_shell='$xsi_shell'
18916 lt_shell_append='$lt_shell_append'
18917
18918 # See if we are running on zsh, and set the options which allow our
18919 # commands through without removal of \ escapes INIT.
18920 if test -n "\${ZSH_VERSION+set}" ; then
18921    setopt NO_GLOB_SUBST
18922 fi
18923
18924
18925     PACKAGE='$PACKAGE'
18926     VERSION='$VERSION'
18927     TIMESTAMP='$TIMESTAMP'
18928     RM='$RM'
18929     ofile='$ofile'
18930
18931
18932
18933
18934
18935
18936 _ACEOF
18937
18938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18939
18940 # Handling of arguments.
18941 for ac_config_target in $ac_config_targets
18942 do
18943   case $ac_config_target in
18944     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18945     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18946     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18947     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18948     "doc/conf/Makefile") CONFIG_FILES="$CONFIG_FILES doc/conf/Makefile" ;;
18949     "doc/sslfiles/Makefile") CONFIG_FILES="$CONFIG_FILES doc/sslfiles/Makefile" ;;
18950     "doc/heartbeat-ra/Makefile") CONFIG_FILES="$CONFIG_FILES doc/heartbeat-ra/Makefile" ;;
18951     "doc/mibs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/mibs/Makefile" ;;
18952     "l7directord/Makefile") CONFIG_FILES="$CONFIG_FILES l7directord/Makefile" ;;
18953     "l7vsd/Makefile") CONFIG_FILES="$CONFIG_FILES l7vsd/Makefile" ;;
18954     "l7vsd/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES l7vsd/init.d/Makefile" ;;
18955     "l7vsd/module/Makefile") CONFIG_FILES="$CONFIG_FILES l7vsd/module/Makefile" ;;
18956     "l7vsd/module/protocol/Makefile") CONFIG_FILES="$CONFIG_FILES l7vsd/module/protocol/Makefile" ;;
18957     "l7vsd/module/schedule/Makefile") CONFIG_FILES="$CONFIG_FILES l7vsd/module/schedule/Makefile" ;;
18958     "l7vsd/src/Makefile") CONFIG_FILES="$CONFIG_FILES l7vsd/src/Makefile" ;;
18959     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18960     "l7vsd.spec") CONFIG_FILES="$CONFIG_FILES l7vsd.spec" ;;
18961
18962   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18963 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18964    { (exit 1); exit 1; }; };;
18965   esac
18966 done
18967
18968
18969 # If the user did not use the arguments to specify the items to instantiate,
18970 # then the envvar interface is used.  Set only those that are not.
18971 # We use the long form for the default assignment because of an extremely
18972 # bizarre bug on SunOS 4.1.3.
18973 if $ac_need_defaults; then
18974   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18975   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18976   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18977 fi
18978
18979 # Have a temporary directory for convenience.  Make it in the build tree
18980 # simply because there is no reason against having it here, and in addition,
18981 # creating and moving files from /tmp can sometimes cause problems.
18982 # Hook for its removal unless debugging.
18983 # Note that there is a small window in which the directory will not be cleaned:
18984 # after its creation but before its name has been assigned to `$tmp'.
18985 $debug ||
18986 {
18987   tmp=
18988   trap 'exit_status=$?
18989   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18990 ' 0
18991   trap '{ (exit 1); exit 1; }' 1 2 13 15
18992 }
18993 # Create a (secure) tmp directory for tmp files.
18994
18995 {
18996   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18997   test -n "$tmp" && test -d "$tmp"
18998 }  ||
18999 {
19000   tmp=./conf$$-$RANDOM
19001   (umask 077 && mkdir "$tmp")
19002 } ||
19003 {
19004    $as_echo "$as_me: cannot create a temporary directory in ." >&2
19005    { (exit 1); exit 1; }
19006 }
19007
19008 # Set up the scripts for CONFIG_FILES section.
19009 # No need to generate them if there are no CONFIG_FILES.
19010 # This happens for instance with `./config.status config.h'.
19011 if test -n "$CONFIG_FILES"; then
19012
19013
19014 ac_cr='\r'
19015 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19016 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19017   ac_cs_awk_cr='\\r'
19018 else
19019   ac_cs_awk_cr=$ac_cr
19020 fi
19021
19022 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19023 _ACEOF
19024
19025
19026 {
19027   echo "cat >conf$$subs.awk <<_ACEOF" &&
19028   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19029   echo "_ACEOF"
19030 } >conf$$subs.sh ||
19031   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19032 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19033    { (exit 1); exit 1; }; }
19034 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19035 ac_delim='%!_!# '
19036 for ac_last_try in false false false false false :; do
19037   . ./conf$$subs.sh ||
19038     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19039 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19040    { (exit 1); exit 1; }; }
19041
19042   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19043   if test $ac_delim_n = $ac_delim_num; then
19044     break
19045   elif $ac_last_try; then
19046     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19047 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19048    { (exit 1); exit 1; }; }
19049   else
19050     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19051   fi
19052 done
19053 rm -f conf$$subs.sh
19054
19055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19056 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19057 _ACEOF
19058 sed -n '
19059 h
19060 s/^/S["/; s/!.*/"]=/
19061 p
19062 g
19063 s/^[^!]*!//
19064 :repl
19065 t repl
19066 s/'"$ac_delim"'$//
19067 t delim
19068 :nl
19069 h
19070 s/\(.\{148\}\).*/\1/
19071 t more1
19072 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19073 p
19074 n
19075 b repl
19076 :more1
19077 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19078 p
19079 g
19080 s/.\{148\}//
19081 t nl
19082 :delim
19083 h
19084 s/\(.\{148\}\).*/\1/
19085 t more2
19086 s/["\\]/\\&/g; s/^/"/; s/$/"/
19087 p
19088 b
19089 :more2
19090 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19091 p
19092 g
19093 s/.\{148\}//
19094 t delim
19095 ' <conf$$subs.awk | sed '
19096 /^[^""]/{
19097   N
19098   s/\n//
19099 }
19100 ' >>$CONFIG_STATUS || ac_write_fail=1
19101 rm -f conf$$subs.awk
19102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19103 _ACAWK
19104 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19105   for (key in S) S_is_set[key] = 1
19106   FS = "\a"
19107
19108 }
19109 {
19110   line = $ 0
19111   nfields = split(line, field, "@")
19112   substed = 0
19113   len = length(field[1])
19114   for (i = 2; i < nfields; i++) {
19115     key = field[i]
19116     keylen = length(key)
19117     if (S_is_set[key]) {
19118       value = S[key]
19119       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19120       len += length(value) + length(field[++i])
19121       substed = 1
19122     } else
19123       len += 1 + keylen
19124   }
19125
19126   print line
19127 }
19128
19129 _ACAWK
19130 _ACEOF
19131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19132 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19133   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19134 else
19135   cat
19136 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19137   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19138 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
19139    { (exit 1); exit 1; }; }
19140 _ACEOF
19141
19142 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19143 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19144 # trailing colons and then remove the whole line if VPATH becomes empty
19145 # (actually we leave an empty line to preserve line numbers).
19146 if test "x$srcdir" = x.; then
19147   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19148 s/:*\$(srcdir):*/:/
19149 s/:*\${srcdir}:*/:/
19150 s/:*@srcdir@:*/:/
19151 s/^\([^=]*=[     ]*\):*/\1/
19152 s/:*$//
19153 s/^[^=]*=[       ]*$//
19154 }'
19155 fi
19156
19157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19158 fi # test -n "$CONFIG_FILES"
19159
19160 # Set up the scripts for CONFIG_HEADERS section.
19161 # No need to generate them if there are no CONFIG_HEADERS.
19162 # This happens for instance with `./config.status Makefile'.
19163 if test -n "$CONFIG_HEADERS"; then
19164 cat >"$tmp/defines.awk" <<\_ACAWK ||
19165 BEGIN {
19166 _ACEOF
19167
19168 # Transform confdefs.h into an awk script `defines.awk', embedded as
19169 # here-document in config.status, that substitutes the proper values into
19170 # config.h.in to produce config.h.
19171
19172 # Create a delimiter string that does not exist in confdefs.h, to ease
19173 # handling of long lines.
19174 ac_delim='%!_!# '
19175 for ac_last_try in false false :; do
19176   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19177   if test -z "$ac_t"; then
19178     break
19179   elif $ac_last_try; then
19180     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19181 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19182    { (exit 1); exit 1; }; }
19183   else
19184     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19185   fi
19186 done
19187
19188 # For the awk script, D is an array of macro values keyed by name,
19189 # likewise P contains macro parameters if any.  Preserve backslash
19190 # newline sequences.
19191
19192 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19193 sed -n '
19194 s/.\{148\}/&'"$ac_delim"'/g
19195 t rset
19196 :rset
19197 s/^[     ]*#[    ]*define[       ][      ]*/ /
19198 t def
19199 d
19200 :def
19201 s/\\$//
19202 t bsnl
19203 s/["\\]/\\&/g
19204 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19205 D["\1"]=" \3"/p
19206 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19207 d
19208 :bsnl
19209 s/["\\]/\\&/g
19210 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19211 D["\1"]=" \3\\\\\\n"\\/p
19212 t cont
19213 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19214 t cont
19215 d
19216 :cont
19217 n
19218 s/.\{148\}/&'"$ac_delim"'/g
19219 t clear
19220 :clear
19221 s/\\$//
19222 t bsnlc
19223 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19224 d
19225 :bsnlc
19226 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19227 b cont
19228 ' <confdefs.h | sed '
19229 s/'"$ac_delim"'/"\\\
19230 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19231
19232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19233   for (key in D) D_is_set[key] = 1
19234   FS = "\a"
19235 }
19236 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19237   line = \$ 0
19238   split(line, arg, " ")
19239   if (arg[1] == "#") {
19240     defundef = arg[2]
19241     mac1 = arg[3]
19242   } else {
19243     defundef = substr(arg[1], 2)
19244     mac1 = arg[2]
19245   }
19246   split(mac1, mac2, "(") #)
19247   macro = mac2[1]
19248   prefix = substr(line, 1, index(line, defundef) - 1)
19249   if (D_is_set[macro]) {
19250     # Preserve the white space surrounding the "#".
19251     print prefix "define", macro P[macro] D[macro]
19252     next
19253   } else {
19254     # Replace #undef with comments.  This is necessary, for example,
19255     # in the case of _POSIX_SOURCE, which is predefined and required
19256     # on some systems where configure will not decide to define it.
19257     if (defundef == "undef") {
19258       print "/*", prefix defundef, macro, "*/"
19259       next
19260     }
19261   }
19262 }
19263 { print }
19264 _ACAWK
19265 _ACEOF
19266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19267   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19268 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19269    { (exit 1); exit 1; }; }
19270 fi # test -n "$CONFIG_HEADERS"
19271
19272
19273 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19274 shift
19275 for ac_tag
19276 do
19277   case $ac_tag in
19278   :[FHLC]) ac_mode=$ac_tag; continue;;
19279   esac
19280   case $ac_mode$ac_tag in
19281   :[FHL]*:*);;
19282   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19283 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19284    { (exit 1); exit 1; }; };;
19285   :[FH]-) ac_tag=-:-;;
19286   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19287   esac
19288   ac_save_IFS=$IFS
19289   IFS=:
19290   set x $ac_tag
19291   IFS=$ac_save_IFS
19292   shift
19293   ac_file=$1
19294   shift
19295
19296   case $ac_mode in
19297   :L) ac_source=$1;;
19298   :[FH])
19299     ac_file_inputs=
19300     for ac_f
19301     do
19302       case $ac_f in
19303       -) ac_f="$tmp/stdin";;
19304       *) # Look for the file first in the build tree, then in the source tree
19305          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19306          # because $ac_f cannot contain `:'.
19307          test -f "$ac_f" ||
19308            case $ac_f in
19309            [\\/$]*) false;;
19310            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19311            esac ||
19312            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19313 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19314    { (exit 1); exit 1; }; };;
19315       esac
19316       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19317       ac_file_inputs="$ac_file_inputs '$ac_f'"
19318     done
19319
19320     # Let's still pretend it is `configure' which instantiates (i.e., don't
19321     # use $as_me), people would be surprised to read:
19322     #    /* config.h.  Generated by config.status.  */
19323     configure_input='Generated from '`
19324           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19325         `' by configure.'
19326     if test x"$ac_file" != x-; then
19327       configure_input="$ac_file.  $configure_input"
19328       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19329 $as_echo "$as_me: creating $ac_file" >&6;}
19330     fi
19331     # Neutralize special characters interpreted by sed in replacement strings.
19332     case $configure_input in #(
19333     *\&* | *\|* | *\\* )
19334        ac_sed_conf_input=`$as_echo "$configure_input" |
19335        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19336     *) ac_sed_conf_input=$configure_input;;
19337     esac
19338
19339     case $ac_tag in
19340     *:-:* | *:-) cat >"$tmp/stdin" \
19341       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19342 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19343    { (exit 1); exit 1; }; } ;;
19344     esac
19345     ;;
19346   esac
19347
19348   ac_dir=`$as_dirname -- "$ac_file" ||
19349 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19350          X"$ac_file" : 'X\(//\)[^/]' \| \
19351          X"$ac_file" : 'X\(//\)$' \| \
19352          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19353 $as_echo X"$ac_file" |
19354     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19355             s//\1/
19356             q
19357           }
19358           /^X\(\/\/\)[^/].*/{
19359             s//\1/
19360             q
19361           }
19362           /^X\(\/\/\)$/{
19363             s//\1/
19364             q
19365           }
19366           /^X\(\/\).*/{
19367             s//\1/
19368             q
19369           }
19370           s/.*/./; q'`
19371   { as_dir="$ac_dir"
19372   case $as_dir in #(
19373   -*) as_dir=./$as_dir;;
19374   esac
19375   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19376     as_dirs=
19377     while :; do
19378       case $as_dir in #(
19379       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19380       *) as_qdir=$as_dir;;
19381       esac
19382       as_dirs="'$as_qdir' $as_dirs"
19383       as_dir=`$as_dirname -- "$as_dir" ||
19384 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19385          X"$as_dir" : 'X\(//\)[^/]' \| \
19386          X"$as_dir" : 'X\(//\)$' \| \
19387          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19388 $as_echo X"$as_dir" |
19389     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19390             s//\1/
19391             q
19392           }
19393           /^X\(\/\/\)[^/].*/{
19394             s//\1/
19395             q
19396           }
19397           /^X\(\/\/\)$/{
19398             s//\1/
19399             q
19400           }
19401           /^X\(\/\).*/{
19402             s//\1/
19403             q
19404           }
19405           s/.*/./; q'`
19406       test -d "$as_dir" && break
19407     done
19408     test -z "$as_dirs" || eval "mkdir $as_dirs"
19409   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19410 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19411    { (exit 1); exit 1; }; }; }
19412   ac_builddir=.
19413
19414 case "$ac_dir" in
19415 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19416 *)
19417   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19418   # A ".." for each directory in $ac_dir_suffix.
19419   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19420   case $ac_top_builddir_sub in
19421   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19422   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19423   esac ;;
19424 esac
19425 ac_abs_top_builddir=$ac_pwd
19426 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19427 # for backward compatibility:
19428 ac_top_builddir=$ac_top_build_prefix
19429
19430 case $srcdir in
19431   .)  # We are building in place.
19432     ac_srcdir=.
19433     ac_top_srcdir=$ac_top_builddir_sub
19434     ac_abs_top_srcdir=$ac_pwd ;;
19435   [\\/]* | ?:[\\/]* )  # Absolute name.
19436     ac_srcdir=$srcdir$ac_dir_suffix;
19437     ac_top_srcdir=$srcdir
19438     ac_abs_top_srcdir=$srcdir ;;
19439   *) # Relative name.
19440     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19441     ac_top_srcdir=$ac_top_build_prefix$srcdir
19442     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19443 esac
19444 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19445
19446
19447   case $ac_mode in
19448   :F)
19449   #
19450   # CONFIG_FILE
19451   #
19452
19453   case $INSTALL in
19454   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19455   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19456   esac
19457   ac_MKDIR_P=$MKDIR_P
19458   case $MKDIR_P in
19459   [\\/$]* | ?:[\\/]* ) ;;
19460   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19461   esac
19462 _ACEOF
19463
19464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19465 # If the template does not know about datarootdir, expand it.
19466 # FIXME: This hack should be removed a few years after 2.60.
19467 ac_datarootdir_hack=; ac_datarootdir_seen=
19468
19469 ac_sed_dataroot='
19470 /datarootdir/ {
19471   p
19472   q
19473 }
19474 /@datadir@/p
19475 /@docdir@/p
19476 /@infodir@/p
19477 /@localedir@/p
19478 /@mandir@/p
19479 '
19480 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19481 *datarootdir*) ac_datarootdir_seen=yes;;
19482 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19483   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19484 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19485 _ACEOF
19486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19487   ac_datarootdir_hack='
19488   s&@datadir@&$datadir&g
19489   s&@docdir@&$docdir&g
19490   s&@infodir@&$infodir&g
19491   s&@localedir@&$localedir&g
19492   s&@mandir@&$mandir&g
19493     s&\\\${datarootdir}&$datarootdir&g' ;;
19494 esac
19495 _ACEOF
19496
19497 # Neutralize VPATH when `$srcdir' = `.'.
19498 # Shell code in configure.ac might set extrasub.
19499 # FIXME: do we really want to maintain this feature?
19500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19501 ac_sed_extra="$ac_vpsub
19502 $extrasub
19503 _ACEOF
19504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19505 :t
19506 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19507 s|@configure_input@|$ac_sed_conf_input|;t t
19508 s&@top_builddir@&$ac_top_builddir_sub&;t t
19509 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19510 s&@srcdir@&$ac_srcdir&;t t
19511 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19512 s&@top_srcdir@&$ac_top_srcdir&;t t
19513 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19514 s&@builddir@&$ac_builddir&;t t
19515 s&@abs_builddir@&$ac_abs_builddir&;t t
19516 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19517 s&@INSTALL@&$ac_INSTALL&;t t
19518 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19519 $ac_datarootdir_hack
19520 "
19521 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19522   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19523 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19524    { (exit 1); exit 1; }; }
19525
19526 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19527   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19528   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19529   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19530 which seems to be undefined.  Please make sure it is defined." >&5
19531 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19532 which seems to be undefined.  Please make sure it is defined." >&2;}
19533
19534   rm -f "$tmp/stdin"
19535   case $ac_file in
19536   -) cat "$tmp/out" && rm -f "$tmp/out";;
19537   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19538   esac \
19539   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19540 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19541    { (exit 1); exit 1; }; }
19542  ;;
19543   :H)
19544   #
19545   # CONFIG_HEADER
19546   #
19547   if test x"$ac_file" != x-; then
19548     {
19549       $as_echo "/* $configure_input  */" \
19550       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19551     } >"$tmp/config.h" \
19552       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19553 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19554    { (exit 1); exit 1; }; }
19555     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19556       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19557 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19558     else
19559       rm -f "$ac_file"
19560       mv "$tmp/config.h" "$ac_file" \
19561         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19562 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19563    { (exit 1); exit 1; }; }
19564     fi
19565   else
19566     $as_echo "/* $configure_input  */" \
19567       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19568       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19569 $as_echo "$as_me: error: could not create -" >&2;}
19570    { (exit 1); exit 1; }; }
19571   fi
19572 # Compute "$ac_file"'s index in $config_headers.
19573 _am_arg="$ac_file"
19574 _am_stamp_count=1
19575 for _am_header in $config_headers :; do
19576   case $_am_header in
19577     $_am_arg | $_am_arg:* )
19578       break ;;
19579     * )
19580       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19581   esac
19582 done
19583 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19584 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19585          X"$_am_arg" : 'X\(//\)[^/]' \| \
19586          X"$_am_arg" : 'X\(//\)$' \| \
19587          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19588 $as_echo X"$_am_arg" |
19589     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19590             s//\1/
19591             q
19592           }
19593           /^X\(\/\/\)[^/].*/{
19594             s//\1/
19595             q
19596           }
19597           /^X\(\/\/\)$/{
19598             s//\1/
19599             q
19600           }
19601           /^X\(\/\).*/{
19602             s//\1/
19603             q
19604           }
19605           s/.*/./; q'`/stamp-h$_am_stamp_count
19606  ;;
19607
19608   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
19609 $as_echo "$as_me: executing $ac_file commands" >&6;}
19610  ;;
19611   esac
19612
19613
19614   case $ac_file$ac_mode in
19615     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19616   # Autoconf 2.62 quotes --file arguments for eval, but not when files
19617   # are listed without --file.  Let's play safe and only enable the eval
19618   # if we detect the quoting.
19619   case $CONFIG_FILES in
19620   *\'*) eval set x "$CONFIG_FILES" ;;
19621   *)   set x $CONFIG_FILES ;;
19622   esac
19623   shift
19624   for mf
19625   do
19626     # Strip MF so we end up with the name of the file.
19627     mf=`echo "$mf" | sed -e 's/:.*$//'`
19628     # Check whether this is an Automake generated Makefile or not.
19629     # We used to match only the files named `Makefile.in', but
19630     # some people rename them; so instead we look at the file content.
19631     # Grep'ing the first line is not enough: some people post-process
19632     # each Makefile.in and add a new line on top of each file to say so.
19633     # Grep'ing the whole file is not good either: AIX grep has a line
19634     # limit of 2048, but all sed's we know have understand at least 4000.
19635     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19636       dirpart=`$as_dirname -- "$mf" ||
19637 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19638          X"$mf" : 'X\(//\)[^/]' \| \
19639          X"$mf" : 'X\(//\)$' \| \
19640          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19641 $as_echo X"$mf" |
19642     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19643             s//\1/
19644             q
19645           }
19646           /^X\(\/\/\)[^/].*/{
19647             s//\1/
19648             q
19649           }
19650           /^X\(\/\/\)$/{
19651             s//\1/
19652             q
19653           }
19654           /^X\(\/\).*/{
19655             s//\1/
19656             q
19657           }
19658           s/.*/./; q'`
19659     else
19660       continue
19661     fi
19662     # Extract the definition of DEPDIR, am__include, and am__quote
19663     # from the Makefile without running `make'.
19664     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19665     test -z "$DEPDIR" && continue
19666     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19667     test -z "am__include" && continue
19668     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19669     # When using ansi2knr, U may be empty or an underscore; expand it
19670     U=`sed -n 's/^U = //p' < "$mf"`
19671     # Find all dependency output files, they are included files with
19672     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19673     # simplest approach to changing $(DEPDIR) to its actual value in the
19674     # expansion.
19675     for file in `sed -n "
19676       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19677          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19678       # Make sure the directory exists.
19679       test -f "$dirpart/$file" && continue
19680       fdir=`$as_dirname -- "$file" ||
19681 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19682          X"$file" : 'X\(//\)[^/]' \| \
19683          X"$file" : 'X\(//\)$' \| \
19684          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19685 $as_echo X"$file" |
19686     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19687             s//\1/
19688             q
19689           }
19690           /^X\(\/\/\)[^/].*/{
19691             s//\1/
19692             q
19693           }
19694           /^X\(\/\/\)$/{
19695             s//\1/
19696             q
19697           }
19698           /^X\(\/\).*/{
19699             s//\1/
19700             q
19701           }
19702           s/.*/./; q'`
19703       { as_dir=$dirpart/$fdir
19704   case $as_dir in #(
19705   -*) as_dir=./$as_dir;;
19706   esac
19707   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19708     as_dirs=
19709     while :; do
19710       case $as_dir in #(
19711       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19712       *) as_qdir=$as_dir;;
19713       esac
19714       as_dirs="'$as_qdir' $as_dirs"
19715       as_dir=`$as_dirname -- "$as_dir" ||
19716 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19717          X"$as_dir" : 'X\(//\)[^/]' \| \
19718          X"$as_dir" : 'X\(//\)$' \| \
19719          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19720 $as_echo X"$as_dir" |
19721     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19722             s//\1/
19723             q
19724           }
19725           /^X\(\/\/\)[^/].*/{
19726             s//\1/
19727             q
19728           }
19729           /^X\(\/\/\)$/{
19730             s//\1/
19731             q
19732           }
19733           /^X\(\/\).*/{
19734             s//\1/
19735             q
19736           }
19737           s/.*/./; q'`
19738       test -d "$as_dir" && break
19739     done
19740     test -z "$as_dirs" || eval "mkdir $as_dirs"
19741   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19742 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19743    { (exit 1); exit 1; }; }; }
19744       # echo "creating $dirpart/$file"
19745       echo '# dummy' > "$dirpart/$file"
19746     done
19747   done
19748 }
19749  ;;
19750     "libtool":C)
19751
19752     # See if we are running on zsh, and set the options which allow our
19753     # commands through without removal of \ escapes.
19754     if test -n "${ZSH_VERSION+set}" ; then
19755       setopt NO_GLOB_SUBST
19756     fi
19757
19758     cfgfile="${ofile}T"
19759     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19760     $RM "$cfgfile"
19761
19762     cat <<_LT_EOF >> "$cfgfile"
19763 #! $SHELL
19764
19765 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19766 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19767 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19768 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19769 #
19770 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19771 #                 2006, 2007, 2008 Free Software Foundation, Inc.
19772 #   Written by Gordon Matzigkeit, 1996
19773 #
19774 #   This file is part of GNU Libtool.
19775 #
19776 # GNU Libtool is free software; you can redistribute it and/or
19777 # modify it under the terms of the GNU General Public License as
19778 # published by the Free Software Foundation; either version 2 of
19779 # the License, or (at your option) any later version.
19780 #
19781 # As a special exception to the GNU General Public License,
19782 # if you distribute this file as part of a program or library that
19783 # is built using GNU Libtool, you may include this file under the
19784 # same distribution terms that you use for the rest of that program.
19785 #
19786 # GNU Libtool is distributed in the hope that it will be useful,
19787 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19788 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19789 # GNU General Public License for more details.
19790 #
19791 # You should have received a copy of the GNU General Public License
19792 # along with GNU Libtool; see the file COPYING.  If not, a copy
19793 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19794 # obtained by writing to the Free Software Foundation, Inc.,
19795 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19796
19797
19798 # The names of the tagged configurations supported by this script.
19799 available_tags="CXX "
19800
19801 # ### BEGIN LIBTOOL CONFIG
19802
19803 # Which release of libtool.m4 was used?
19804 macro_version=$macro_version
19805 macro_revision=$macro_revision
19806
19807 # Whether or not to build shared libraries.
19808 build_libtool_libs=$enable_shared
19809
19810 # Whether or not to build static libraries.
19811 build_old_libs=$enable_static
19812
19813 # What type of objects to build.
19814 pic_mode=$pic_mode
19815
19816 # Whether or not to optimize for fast installation.
19817 fast_install=$enable_fast_install
19818
19819 # The host system.
19820 host_alias=$host_alias
19821 host=$host
19822 host_os=$host_os
19823
19824 # The build system.
19825 build_alias=$build_alias
19826 build=$build
19827 build_os=$build_os
19828
19829 # A sed program that does not truncate output.
19830 SED=$lt_SED
19831
19832 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19833 Xsed="\$SED -e 1s/^X//"
19834
19835 # A grep program that handles long lines.
19836 GREP=$lt_GREP
19837
19838 # An ERE matcher.
19839 EGREP=$lt_EGREP
19840
19841 # A literal string matcher.
19842 FGREP=$lt_FGREP
19843
19844 # A BSD- or MS-compatible name lister.
19845 NM=$lt_NM
19846
19847 # Whether we need soft or hard links.
19848 LN_S=$lt_LN_S
19849
19850 # What is the maximum length of a command?
19851 max_cmd_len=$max_cmd_len
19852
19853 # Object file suffix (normally "o").
19854 objext=$ac_objext
19855
19856 # Executable file suffix (normally "").
19857 exeext=$exeext
19858
19859 # whether the shell understands "unset".
19860 lt_unset=$lt_unset
19861
19862 # turn spaces into newlines.
19863 SP2NL=$lt_lt_SP2NL
19864
19865 # turn newlines into spaces.
19866 NL2SP=$lt_lt_NL2SP
19867
19868 # How to create reloadable object files.
19869 reload_flag=$lt_reload_flag
19870 reload_cmds=$lt_reload_cmds
19871
19872 # An object symbol dumper.
19873 OBJDUMP=$lt_OBJDUMP
19874
19875 # Method to check whether dependent libraries are shared objects.
19876 deplibs_check_method=$lt_deplibs_check_method
19877
19878 # Command to use when deplibs_check_method == "file_magic".
19879 file_magic_cmd=$lt_file_magic_cmd
19880
19881 # The archiver.
19882 AR=$lt_AR
19883 AR_FLAGS=$lt_AR_FLAGS
19884
19885 # A symbol stripping program.
19886 STRIP=$lt_STRIP
19887
19888 # Commands used to install an old-style archive.
19889 RANLIB=$lt_RANLIB
19890 old_postinstall_cmds=$lt_old_postinstall_cmds
19891 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19892
19893 # A C compiler.
19894 LTCC=$lt_CC
19895
19896 # LTCC compiler flags.
19897 LTCFLAGS=$lt_CFLAGS
19898
19899 # Take the output of nm and produce a listing of raw symbols and C names.
19900 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19901
19902 # Transform the output of nm in a proper C declaration.
19903 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19904
19905 # Transform the output of nm in a C name address pair.
19906 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19907
19908 # Transform the output of nm in a C name address pair when lib prefix is needed.
19909 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19910
19911 # The name of the directory that contains temporary libtool files.
19912 objdir=$objdir
19913
19914 # Shell to use when invoking shell scripts.
19915 SHELL=$lt_SHELL
19916
19917 # An echo program that does not interpret backslashes.
19918 ECHO=$lt_ECHO
19919
19920 # Used to examine libraries when file_magic_cmd begins with "file".
19921 MAGIC_CMD=$MAGIC_CMD
19922
19923 # Must we lock files when doing compilation?
19924 need_locks=$lt_need_locks
19925
19926 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19927 DSYMUTIL=$lt_DSYMUTIL
19928
19929 # Tool to change global to local symbols on Mac OS X.
19930 NMEDIT=$lt_NMEDIT
19931
19932 # Tool to manipulate fat objects and archives on Mac OS X.
19933 LIPO=$lt_LIPO
19934
19935 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19936 OTOOL=$lt_OTOOL
19937
19938 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19939 OTOOL64=$lt_OTOOL64
19940
19941 # Old archive suffix (normally "a").
19942 libext=$libext
19943
19944 # Shared library suffix (normally ".so").
19945 shrext_cmds=$lt_shrext_cmds
19946
19947 # The commands to extract the exported symbol list from a shared archive.
19948 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19949
19950 # Variables whose values should be saved in libtool wrapper scripts and
19951 # restored at link time.
19952 variables_saved_for_relink=$lt_variables_saved_for_relink
19953
19954 # Do we need the "lib" prefix for modules?
19955 need_lib_prefix=$need_lib_prefix
19956
19957 # Do we need a version for libraries?
19958 need_version=$need_version
19959
19960 # Library versioning type.
19961 version_type=$version_type
19962
19963 # Shared library runtime path variable.
19964 runpath_var=$runpath_var
19965
19966 # Shared library path variable.
19967 shlibpath_var=$shlibpath_var
19968
19969 # Is shlibpath searched before the hard-coded library search path?
19970 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19971
19972 # Format of library name prefix.
19973 libname_spec=$lt_libname_spec
19974
19975 # List of archive names.  First name is the real one, the rest are links.
19976 # The last name is the one that the linker finds with -lNAME
19977 library_names_spec=$lt_library_names_spec
19978
19979 # The coded name of the library, if different from the real name.
19980 soname_spec=$lt_soname_spec
19981
19982 # Command to use after installation of a shared archive.
19983 postinstall_cmds=$lt_postinstall_cmds
19984
19985 # Command to use after uninstallation of a shared archive.
19986 postuninstall_cmds=$lt_postuninstall_cmds
19987
19988 # Commands used to finish a libtool library installation in a directory.
19989 finish_cmds=$lt_finish_cmds
19990
19991 # As "finish_cmds", except a single script fragment to be evaled but
19992 # not shown.
19993 finish_eval=$lt_finish_eval
19994
19995 # Whether we should hardcode library paths into libraries.
19996 hardcode_into_libs=$hardcode_into_libs
19997
19998 # Compile-time system search path for libraries.
19999 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20000
20001 # Run-time system search path for libraries.
20002 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20003
20004 # Whether dlopen is supported.
20005 dlopen_support=$enable_dlopen
20006
20007 # Whether dlopen of programs is supported.
20008 dlopen_self=$enable_dlopen_self
20009
20010 # Whether dlopen of statically linked programs is supported.
20011 dlopen_self_static=$enable_dlopen_self_static
20012
20013 # Commands to strip libraries.
20014 old_striplib=$lt_old_striplib
20015 striplib=$lt_striplib
20016
20017
20018 # The linker used to build libraries.
20019 LD=$lt_LD
20020
20021 # Commands used to build an old-style archive.
20022 old_archive_cmds=$lt_old_archive_cmds
20023
20024 # A language specific compiler.
20025 CC=$lt_compiler
20026
20027 # Is the compiler the GNU compiler?
20028 with_gcc=$GCC
20029
20030 # Compiler flag to turn off builtin functions.
20031 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20032
20033 # How to pass a linker flag through the compiler.
20034 wl=$lt_lt_prog_compiler_wl
20035
20036 # Additional compiler flags for building library objects.
20037 pic_flag=$lt_lt_prog_compiler_pic
20038
20039 # Compiler flag to prevent dynamic linking.
20040 link_static_flag=$lt_lt_prog_compiler_static
20041
20042 # Does compiler simultaneously support -c and -o options?
20043 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20044
20045 # Whether or not to add -lc for building shared libraries.
20046 build_libtool_need_lc=$archive_cmds_need_lc
20047
20048 # Whether or not to disallow shared libs when runtime libs are static.
20049 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20050
20051 # Compiler flag to allow reflexive dlopens.
20052 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20053
20054 # Compiler flag to generate shared objects directly from archives.
20055 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20056
20057 # Whether the compiler copes with passing no objects directly.
20058 compiler_needs_object=$lt_compiler_needs_object
20059
20060 # Create an old-style archive from a shared archive.
20061 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20062
20063 # Create a temporary old-style archive to link instead of a shared archive.
20064 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20065
20066 # Commands used to build a shared archive.
20067 archive_cmds=$lt_archive_cmds
20068 archive_expsym_cmds=$lt_archive_expsym_cmds
20069
20070 # Commands used to build a loadable module if different from building
20071 # a shared archive.
20072 module_cmds=$lt_module_cmds
20073 module_expsym_cmds=$lt_module_expsym_cmds
20074
20075 # Whether we are building with GNU ld or not.
20076 with_gnu_ld=$lt_with_gnu_ld
20077
20078 # Flag that allows shared libraries with undefined symbols to be built.
20079 allow_undefined_flag=$lt_allow_undefined_flag
20080
20081 # Flag that enforces no undefined symbols.
20082 no_undefined_flag=$lt_no_undefined_flag
20083
20084 # Flag to hardcode \$libdir into a binary during linking.
20085 # This must work even if \$libdir does not exist
20086 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20087
20088 # If ld is used when linking, flag to hardcode \$libdir into a binary
20089 # during linking.  This must work even if \$libdir does not exist.
20090 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20091
20092 # Whether we need a single "-rpath" flag with a separated argument.
20093 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20094
20095 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20096 # DIR into the resulting binary.
20097 hardcode_direct=$hardcode_direct
20098
20099 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20100 # DIR into the resulting binary and the resulting library dependency is
20101 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20102 # library is relocated.
20103 hardcode_direct_absolute=$hardcode_direct_absolute
20104
20105 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20106 # into the resulting binary.
20107 hardcode_minus_L=$hardcode_minus_L
20108
20109 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20110 # into the resulting binary.
20111 hardcode_shlibpath_var=$hardcode_shlibpath_var
20112
20113 # Set to "yes" if building a shared library automatically hardcodes DIR
20114 # into the library and all subsequent libraries and executables linked
20115 # against it.
20116 hardcode_automatic=$hardcode_automatic
20117
20118 # Set to yes if linker adds runtime paths of dependent libraries
20119 # to runtime path list.
20120 inherit_rpath=$inherit_rpath
20121
20122 # Whether libtool must link a program against all its dependency libraries.
20123 link_all_deplibs=$link_all_deplibs
20124
20125 # Fix the shell variable \$srcfile for the compiler.
20126 fix_srcfile_path=$lt_fix_srcfile_path
20127
20128 # Set to "yes" if exported symbols are required.
20129 always_export_symbols=$always_export_symbols
20130
20131 # The commands to list exported symbols.
20132 export_symbols_cmds=$lt_export_symbols_cmds
20133
20134 # Symbols that should not be listed in the preloaded symbols.
20135 exclude_expsyms=$lt_exclude_expsyms
20136
20137 # Symbols that must always be exported.
20138 include_expsyms=$lt_include_expsyms
20139
20140 # Commands necessary for linking programs (against libraries) with templates.
20141 prelink_cmds=$lt_prelink_cmds
20142
20143 # Specify filename containing input files.
20144 file_list_spec=$lt_file_list_spec
20145
20146 # How to hardcode a shared library path into an executable.
20147 hardcode_action=$hardcode_action
20148
20149 # The directories searched by this compiler when creating a shared library.
20150 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20151
20152 # Dependencies to place before and after the objects being linked to
20153 # create a shared library.
20154 predep_objects=$lt_predep_objects
20155 postdep_objects=$lt_postdep_objects
20156 predeps=$lt_predeps
20157 postdeps=$lt_postdeps
20158
20159 # The library search path used internally by the compiler when linking
20160 # a shared library.
20161 compiler_lib_search_path=$lt_compiler_lib_search_path
20162
20163 # ### END LIBTOOL CONFIG
20164
20165 _LT_EOF
20166
20167   case $host_os in
20168   aix3*)
20169     cat <<\_LT_EOF >> "$cfgfile"
20170 # AIX sometimes has problems with the GCC collect2 program.  For some
20171 # reason, if we set the COLLECT_NAMES environment variable, the problems
20172 # vanish in a puff of smoke.
20173 if test "X${COLLECT_NAMES+set}" != Xset; then
20174   COLLECT_NAMES=
20175   export COLLECT_NAMES
20176 fi
20177 _LT_EOF
20178     ;;
20179   esac
20180
20181
20182 ltmain="$ac_aux_dir/ltmain.sh"
20183
20184
20185   # We use sed instead of cat because bash on DJGPP gets confused if
20186   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20187   # text mode, it properly converts lines to CR/LF.  This bash problem
20188   # is reportedly fixed, but why not run on old versions too?
20189   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20190     || (rm -f "$cfgfile"; exit 1)
20191
20192   case $xsi_shell in
20193   yes)
20194     cat << \_LT_EOF >> "$cfgfile"
20195
20196 # func_dirname file append nondir_replacement
20197 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20198 # otherwise set result to NONDIR_REPLACEMENT.
20199 func_dirname ()
20200 {
20201   case ${1} in
20202     */*) func_dirname_result="${1%/*}${2}" ;;
20203     *  ) func_dirname_result="${3}" ;;
20204   esac
20205 }
20206
20207 # func_basename file
20208 func_basename ()
20209 {
20210   func_basename_result="${1##*/}"
20211 }
20212
20213 # func_dirname_and_basename file append nondir_replacement
20214 # perform func_basename and func_dirname in a single function
20215 # call:
20216 #   dirname:  Compute the dirname of FILE.  If nonempty,
20217 #             add APPEND to the result, otherwise set result
20218 #             to NONDIR_REPLACEMENT.
20219 #             value returned in "$func_dirname_result"
20220 #   basename: Compute filename of FILE.
20221 #             value retuned in "$func_basename_result"
20222 # Implementation must be kept synchronized with func_dirname
20223 # and func_basename. For efficiency, we do not delegate to
20224 # those functions but instead duplicate the functionality here.
20225 func_dirname_and_basename ()
20226 {
20227   case ${1} in
20228     */*) func_dirname_result="${1%/*}${2}" ;;
20229     *  ) func_dirname_result="${3}" ;;
20230   esac
20231   func_basename_result="${1##*/}"
20232 }
20233
20234 # func_stripname prefix suffix name
20235 # strip PREFIX and SUFFIX off of NAME.
20236 # PREFIX and SUFFIX must not contain globbing or regex special
20237 # characters, hashes, percent signs, but SUFFIX may contain a leading
20238 # dot (in which case that matches only a dot).
20239 func_stripname ()
20240 {
20241   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20242   # positional parameters, so assign one to ordinary parameter first.
20243   func_stripname_result=${3}
20244   func_stripname_result=${func_stripname_result#"${1}"}
20245   func_stripname_result=${func_stripname_result%"${2}"}
20246 }
20247
20248 # func_opt_split
20249 func_opt_split ()
20250 {
20251   func_opt_split_opt=${1%%=*}
20252   func_opt_split_arg=${1#*=}
20253 }
20254
20255 # func_lo2o object
20256 func_lo2o ()
20257 {
20258   case ${1} in
20259     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20260     *)    func_lo2o_result=${1} ;;
20261   esac
20262 }
20263
20264 # func_xform libobj-or-source
20265 func_xform ()
20266 {
20267   func_xform_result=${1%.*}.lo
20268 }
20269
20270 # func_arith arithmetic-term...
20271 func_arith ()
20272 {
20273   func_arith_result=$(( $* ))
20274 }
20275
20276 # func_len string
20277 # STRING may not start with a hyphen.
20278 func_len ()
20279 {
20280   func_len_result=${#1}
20281 }
20282
20283 _LT_EOF
20284     ;;
20285   *) # Bourne compatible functions.
20286     cat << \_LT_EOF >> "$cfgfile"
20287
20288 # func_dirname file append nondir_replacement
20289 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20290 # otherwise set result to NONDIR_REPLACEMENT.
20291 func_dirname ()
20292 {
20293   # Extract subdirectory from the argument.
20294   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20295   if test "X$func_dirname_result" = "X${1}"; then
20296     func_dirname_result="${3}"
20297   else
20298     func_dirname_result="$func_dirname_result${2}"
20299   fi
20300 }
20301
20302 # func_basename file
20303 func_basename ()
20304 {
20305   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20306 }
20307
20308
20309 # func_stripname prefix suffix name
20310 # strip PREFIX and SUFFIX off of NAME.
20311 # PREFIX and SUFFIX must not contain globbing or regex special
20312 # characters, hashes, percent signs, but SUFFIX may contain a leading
20313 # dot (in which case that matches only a dot).
20314 # func_strip_suffix prefix name
20315 func_stripname ()
20316 {
20317   case ${2} in
20318     .*) func_stripname_result=`$ECHO "X${3}" \
20319            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20320     *)  func_stripname_result=`$ECHO "X${3}" \
20321            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20322   esac
20323 }
20324
20325 # sed scripts:
20326 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20327 my_sed_long_arg='1s/^-[^=]*=//'
20328
20329 # func_opt_split
20330 func_opt_split ()
20331 {
20332   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20333   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20334 }
20335
20336 # func_lo2o object
20337 func_lo2o ()
20338 {
20339   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20340 }
20341
20342 # func_xform libobj-or-source
20343 func_xform ()
20344 {
20345   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20346 }
20347
20348 # func_arith arithmetic-term...
20349 func_arith ()
20350 {
20351   func_arith_result=`expr "$@"`
20352 }
20353
20354 # func_len string
20355 # STRING may not start with a hyphen.
20356 func_len ()
20357 {
20358   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20359 }
20360
20361 _LT_EOF
20362 esac
20363
20364 case $lt_shell_append in
20365   yes)
20366     cat << \_LT_EOF >> "$cfgfile"
20367
20368 # func_append var value
20369 # Append VALUE to the end of shell variable VAR.
20370 func_append ()
20371 {
20372   eval "$1+=\$2"
20373 }
20374 _LT_EOF
20375     ;;
20376   *)
20377     cat << \_LT_EOF >> "$cfgfile"
20378
20379 # func_append var value
20380 # Append VALUE to the end of shell variable VAR.
20381 func_append ()
20382 {
20383   eval "$1=\$$1\$2"
20384 }
20385
20386 _LT_EOF
20387     ;;
20388   esac
20389
20390
20391   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20392     || (rm -f "$cfgfile"; exit 1)
20393
20394   mv -f "$cfgfile" "$ofile" ||
20395     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20396   chmod +x "$ofile"
20397
20398
20399     cat <<_LT_EOF >> "$ofile"
20400
20401 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20402
20403 # The linker used to build libraries.
20404 LD=$lt_LD_CXX
20405
20406 # Commands used to build an old-style archive.
20407 old_archive_cmds=$lt_old_archive_cmds_CXX
20408
20409 # A language specific compiler.
20410 CC=$lt_compiler_CXX
20411
20412 # Is the compiler the GNU compiler?
20413 with_gcc=$GCC_CXX
20414
20415 # Compiler flag to turn off builtin functions.
20416 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20417
20418 # How to pass a linker flag through the compiler.
20419 wl=$lt_lt_prog_compiler_wl_CXX
20420
20421 # Additional compiler flags for building library objects.
20422 pic_flag=$lt_lt_prog_compiler_pic_CXX
20423
20424 # Compiler flag to prevent dynamic linking.
20425 link_static_flag=$lt_lt_prog_compiler_static_CXX
20426
20427 # Does compiler simultaneously support -c and -o options?
20428 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20429
20430 # Whether or not to add -lc for building shared libraries.
20431 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20432
20433 # Whether or not to disallow shared libs when runtime libs are static.
20434 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20435
20436 # Compiler flag to allow reflexive dlopens.
20437 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20438
20439 # Compiler flag to generate shared objects directly from archives.
20440 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20441
20442 # Whether the compiler copes with passing no objects directly.
20443 compiler_needs_object=$lt_compiler_needs_object_CXX
20444
20445 # Create an old-style archive from a shared archive.
20446 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20447
20448 # Create a temporary old-style archive to link instead of a shared archive.
20449 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20450
20451 # Commands used to build a shared archive.
20452 archive_cmds=$lt_archive_cmds_CXX
20453 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20454
20455 # Commands used to build a loadable module if different from building
20456 # a shared archive.
20457 module_cmds=$lt_module_cmds_CXX
20458 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20459
20460 # Whether we are building with GNU ld or not.
20461 with_gnu_ld=$lt_with_gnu_ld_CXX
20462
20463 # Flag that allows shared libraries with undefined symbols to be built.
20464 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20465
20466 # Flag that enforces no undefined symbols.
20467 no_undefined_flag=$lt_no_undefined_flag_CXX
20468
20469 # Flag to hardcode \$libdir into a binary during linking.
20470 # This must work even if \$libdir does not exist
20471 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20472
20473 # If ld is used when linking, flag to hardcode \$libdir into a binary
20474 # during linking.  This must work even if \$libdir does not exist.
20475 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20476
20477 # Whether we need a single "-rpath" flag with a separated argument.
20478 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20479
20480 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20481 # DIR into the resulting binary.
20482 hardcode_direct=$hardcode_direct_CXX
20483
20484 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20485 # DIR into the resulting binary and the resulting library dependency is
20486 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20487 # library is relocated.
20488 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20489
20490 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20491 # into the resulting binary.
20492 hardcode_minus_L=$hardcode_minus_L_CXX
20493
20494 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20495 # into the resulting binary.
20496 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20497
20498 # Set to "yes" if building a shared library automatically hardcodes DIR
20499 # into the library and all subsequent libraries and executables linked
20500 # against it.
20501 hardcode_automatic=$hardcode_automatic_CXX
20502
20503 # Set to yes if linker adds runtime paths of dependent libraries
20504 # to runtime path list.
20505 inherit_rpath=$inherit_rpath_CXX
20506
20507 # Whether libtool must link a program against all its dependency libraries.
20508 link_all_deplibs=$link_all_deplibs_CXX
20509
20510 # Fix the shell variable \$srcfile for the compiler.
20511 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20512
20513 # Set to "yes" if exported symbols are required.
20514 always_export_symbols=$always_export_symbols_CXX
20515
20516 # The commands to list exported symbols.
20517 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20518
20519 # Symbols that should not be listed in the preloaded symbols.
20520 exclude_expsyms=$lt_exclude_expsyms_CXX
20521
20522 # Symbols that must always be exported.
20523 include_expsyms=$lt_include_expsyms_CXX
20524
20525 # Commands necessary for linking programs (against libraries) with templates.
20526 prelink_cmds=$lt_prelink_cmds_CXX
20527
20528 # Specify filename containing input files.
20529 file_list_spec=$lt_file_list_spec_CXX
20530
20531 # How to hardcode a shared library path into an executable.
20532 hardcode_action=$hardcode_action_CXX
20533
20534 # The directories searched by this compiler when creating a shared library.
20535 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20536
20537 # Dependencies to place before and after the objects being linked to
20538 # create a shared library.
20539 predep_objects=$lt_predep_objects_CXX
20540 postdep_objects=$lt_postdep_objects_CXX
20541 predeps=$lt_predeps_CXX
20542 postdeps=$lt_postdeps_CXX
20543
20544 # The library search path used internally by the compiler when linking
20545 # a shared library.
20546 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20547
20548 # ### END LIBTOOL TAG CONFIG: CXX
20549 _LT_EOF
20550
20551  ;;
20552
20553   esac
20554 done # for ac_tag
20555
20556
20557 { (exit 0); exit 0; }
20558 _ACEOF
20559 chmod +x $CONFIG_STATUS
20560 ac_clean_files=$ac_clean_files_save
20561
20562 test $ac_write_fail = 0 ||
20563   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20564 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20565    { (exit 1); exit 1; }; }
20566
20567
20568 # configure is writing to config.log, and then calls config.status.
20569 # config.status does its own redirection, appending to config.log.
20570 # Unfortunately, on DOS this fails, as config.log is still kept open
20571 # by configure, so config.status won't be able to write to it; its
20572 # output is simply discarded.  So we exec the FD to /dev/null,
20573 # effectively closing config.log, so it can be properly (re)opened and
20574 # appended to by config.status.  When coming back to configure, we
20575 # need to make the FD available again.
20576 if test "$no_create" != yes; then
20577   ac_cs_success=:
20578   ac_config_status_args=
20579   test "$silent" = yes &&
20580     ac_config_status_args="$ac_config_status_args --quiet"
20581   exec 5>/dev/null
20582   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20583   exec 5>>config.log
20584   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20585   # would make configure fail if this is the last instruction.
20586   $ac_cs_success || { (exit 1); exit 1; }
20587 fi
20588 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20589   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20590 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20591 fi
20592