Tizen 2.1 base
[platform/upstream/gcd.git] / dispatch-1.0 / configure
1 #! /bin/sh
2 # From configure.ac .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 for libdispatch 1.0.
5 #
6 # Report bugs to <libdispatch@macosforge.org>.
7 #
8 #
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # Inc.
12 #
13 #
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
19
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23   emulate sh
24   NULLCMD=:
25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26   # is contrary to our usage.  Disable this feature.
27   alias -g '${1+"$@"}'='"$@"'
28   setopt NO_GLOB_SUBST
29 else
30   case `(set -o) 2>/dev/null` in #(
31   *posix*) :
32     set -o posix ;; #(
33   *) :
34      ;;
35 esac
36 fi
37
38
39 as_nl='
40 '
41 export as_nl
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='print -r --'
51   as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53   as_echo='printf %s\n'
54   as_echo_n='printf %s'
55 else
56   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58     as_echo_n='/usr/ucb/echo -n'
59   else
60     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61     as_echo_n_body='eval
62       arg=$1;
63       case $arg in #(
64       *"$as_nl"*)
65         expr "X$arg" : "X\\(.*\\)$as_nl";
66         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67       esac;
68       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69     '
70     export as_echo_n_body
71     as_echo_n='sh -c $as_echo_n_body as_echo'
72   fi
73   export as_echo_body
74   as_echo='sh -c $as_echo_body as_echo'
75 fi
76
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
84 fi
85
86
87 # IFS
88 # We need space, tab and new line, in precisely that order.  Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
92 IFS=" ""        $as_nl"
93
94 # Find who we are.  Look in the path if we contain no directory separator.
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190   IFS=$as_save_IFS
191   test -z "$as_dir" && as_dir=.
192   as_found=:
193   case $as_dir in #(
194          /*)
195            for as_base in sh bash ksh sh5; do
196              # Try only shells that exist, to save several forks.
197              as_shell=$as_dir/$as_base
198              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   CONFIG_SHELL=$as_shell as_have_required=yes
201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202   break 2
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211   CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216       if test "x$CONFIG_SHELL" != x; then :
217   # We cannot yet assume a decent shell, so we have to provide a
218         # neutralization value for shells without unset; and this also
219         # works around shells that cannot unset nonexistent variables.
220         BASH_ENV=/dev/null
221         ENV=/dev/null
222         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223         export CONFIG_SHELL
224         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225 fi
226
227     if test x$as_have_required = xno; then :
228   $as_echo "$0: This script requires a shell more modern than all"
229   $as_echo "$0: the shells that I found on your system."
230   if test x${ZSH_VERSION+set} = xset ; then
231     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233   else
234     $as_echo "$0: Please tell bug-autoconf@gnu.org and
235 $0: libdispatch@macosforge.org about your system, including
236 $0: any error possibly output before this message. Then
237 $0: install a modern shell, or manually run the script
238 $0: under such a shell if you do have one."
239   fi
240   exit 1
241 fi
242 fi
243 fi
244 SHELL=${CONFIG_SHELL-/bin/sh}
245 export SHELL
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
249
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
253 # as_fn_unset VAR
254 # ---------------
255 # Portably unset VAR.
256 as_fn_unset ()
257 {
258   { eval $1=; unset $1;}
259 }
260 as_unset=as_fn_unset
261
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
265 as_fn_set_status ()
266 {
267   return $1
268 } # as_fn_set_status
269
270 # as_fn_exit STATUS
271 # -----------------
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273 as_fn_exit ()
274 {
275   set +e
276   as_fn_set_status $1
277   exit $1
278 } # as_fn_exit
279
280 # as_fn_mkdir_p
281 # -------------
282 # Create "$as_dir" as a directory, including parents if necessary.
283 as_fn_mkdir_p ()
284 {
285
286   case $as_dir in #(
287   -*) as_dir=./$as_dir;;
288   esac
289   test -d "$as_dir" || eval $as_mkdir_p || {
290     as_dirs=
291     while :; do
292       case $as_dir in #(
293       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294       *) as_qdir=$as_dir;;
295       esac
296       as_dirs="'$as_qdir' $as_dirs"
297       as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299          X"$as_dir" : 'X\(//\)[^/]' \| \
300          X"$as_dir" : 'X\(//\)$' \| \
301          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)[^/].*/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)$/{
312             s//\1/
313             q
314           }
315           /^X\(\/\).*/{
316             s//\1/
317             q
318           }
319           s/.*/./; q'`
320       test -d "$as_dir" && break
321     done
322     test -z "$as_dirs" || eval "mkdir $as_dirs"
323   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326 } # as_fn_mkdir_p
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
332 # implementations.
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334   eval 'as_fn_append ()
335   {
336     eval $1+=\$2
337   }'
338 else
339   as_fn_append ()
340   {
341     eval $1=\$$1\$2
342   }
343 fi # as_fn_append
344
345 # as_fn_arith ARG...
346 # ------------------
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351   eval 'as_fn_arith ()
352   {
353     as_val=$(( $* ))
354   }'
355 else
356   as_fn_arith ()
357   {
358     as_val=`expr "$@" || test $? -eq 1`
359   }
360 fi # as_fn_arith
361
362
363 # as_fn_error ERROR [LINENO LOG_FD]
364 # ---------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with status $?, using 1 if that was 0.
368 as_fn_error ()
369 {
370   as_status=$?; test $as_status -eq 0 && as_status=1
371   if test "$3"; then
372     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374   fi
375   $as_echo "$as_me: error: $1" >&2
376   as_fn_exit $as_status
377 } # as_fn_error
378
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380    test "X`expr 00001 : '.*\(...\)'`" = X001; then
381   as_expr=expr
382 else
383   as_expr=false
384 fi
385
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387   as_basename=basename
388 else
389   as_basename=false
390 fi
391
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393   as_dirname=dirname
394 else
395   as_dirname=false
396 fi
397
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400          X"$0" : 'X\(//\)$' \| \
401          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 $as_echo X/"$0" |
403     sed '/^.*\/\([^/][^/]*\)\/*$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\/\)$/{
408             s//\1/
409             q
410           }
411           /^X\/\(\/\).*/{
412             s//\1/
413             q
414           }
415           s/.*/./; q'`
416
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425   as_lineno_1=$LINENO as_lineno_1a=$LINENO
426   as_lineno_2=$LINENO as_lineno_2a=$LINENO
427   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430   sed -n '
431     p
432     /[$]LINENO/=
433   ' <$as_myself |
434     sed '
435       s/[$]LINENO.*/&-/
436       t lineno
437       b
438       :lineno
439       N
440       :loop
441       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442       t loop
443       s/-\n.*//
444     ' >$as_me.lineno &&
445   chmod +x "$as_me.lineno" ||
446     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448   # Don't try to exec as it changes $[0], causing all sort of problems
449   # (the dirname of $[0] is not the place where we might find the
450   # original and so on.  Autoconf is especially sensitive to this).
451   . "./$as_me.lineno"
452   # Exit status is that of the last command.
453   exit
454 }
455
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
458 -n*)
459   case `echo 'xy\c'` in
460   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
461   xy)  ECHO_C='\c';;
462   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463        ECHO_T=' ';;
464   esac;;
465 *)
466   ECHO_N='-n';;
467 esac
468
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471   rm -f conf$$.dir/conf$$.file
472 else
473   rm -f conf$$.dir
474   mkdir conf$$.dir 2>/dev/null
475 fi
476 if (echo >conf$$.file) 2>/dev/null; then
477   if ln -s conf$$.file conf$$ 2>/dev/null; then
478     as_ln_s='ln -s'
479     # ... but there are two gotchas:
480     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482     # In both cases, we have to default to `cp -p'.
483     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484       as_ln_s='cp -p'
485   elif ln conf$$.file conf$$ 2>/dev/null; then
486     as_ln_s=ln
487   else
488     as_ln_s='cp -p'
489   fi
490 else
491   as_ln_s='cp -p'
492 fi
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
495
496 if mkdir -p . 2>/dev/null; then
497   as_mkdir_p='mkdir -p "$as_dir"'
498 else
499   test -d ./-p && rmdir ./-p
500   as_mkdir_p=false
501 fi
502
503 if test -x / >/dev/null 2>&1; then
504   as_test_x='test -x'
505 else
506   if ls -dL / >/dev/null 2>&1; then
507     as_ls_L_option=L
508   else
509     as_ls_L_option=
510   fi
511   as_test_x='
512     eval sh -c '\''
513       if test -d "$1"; then
514         test -d "$1/.";
515       else
516         case $1 in #(
517         -*)set "./$1";;
518         esac;
519         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520         ???[sx]*):;;*)false;;esac;fi
521     '\'' sh
522   '
523 fi
524 as_executable_p=$as_test_x
525
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534 # Check that we are running under the correct shell.
535 SHELL=${CONFIG_SHELL-/bin/sh}
536
537 case X$lt_ECHO in
538 X*--fallback-echo)
539   # Remove one level of quotation (which was required for Make).
540   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541   ;;
542 esac
543
544 ECHO=${lt_ECHO-echo}
545 if test "X$1" = X--no-reexec; then
546   # Discard the --no-reexec flag, and continue.
547   shift
548 elif test "X$1" = X--fallback-echo; then
549   # Avoid inline document here, it may be left over
550   :
551 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552   # Yippee, $ECHO works!
553   :
554 else
555   # Restart under the correct shell.
556   exec $SHELL "$0" --no-reexec ${1+"$@"}
557 fi
558
559 if test "X$1" = X--fallback-echo; then
560   # used as fallback echo
561   shift
562   cat <<_LT_EOF
563 $*
564 _LT_EOF
565   exit 0
566 fi
567
568 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 # if CDPATH is set.
570 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572 if test -z "$lt_ECHO"; then
573   if test "X${echo_test_string+set}" != Xset; then
574     # find a string as large as possible, as long as the shell can cope with it
575     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579       then
580         break
581       fi
582     done
583   fi
584
585   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587      test "X$echo_testing_string" = "X$echo_test_string"; then
588     :
589   else
590     # The Solaris, AIX, and Digital Unix default echo programs unquote
591     # backslashes.  This makes it impossible to quote backslashes using
592     #   echo "$something" | sed 's/\\/\\\\/g'
593     #
594     # So, first we look for a working echo in the user's PATH.
595
596     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597     for dir in $PATH /usr/ucb; do
598       IFS="$lt_save_ifs"
599       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602          test "X$echo_testing_string" = "X$echo_test_string"; then
603         ECHO="$dir/echo"
604         break
605       fi
606     done
607     IFS="$lt_save_ifs"
608
609     if test "X$ECHO" = Xecho; then
610       # We didn't find a better echo, so look for alternatives.
611       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613          test "X$echo_testing_string" = "X$echo_test_string"; then
614         # This shell has a builtin print -r that does the trick.
615         ECHO='print -r'
616       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617            test "X$CONFIG_SHELL" != X/bin/ksh; then
618         # If we have ksh, try running configure again with it.
619         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620         export ORIGINAL_CONFIG_SHELL
621         CONFIG_SHELL=/bin/ksh
622         export CONFIG_SHELL
623         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624       else
625         # Try using printf.
626         ECHO='printf %s\n'
627         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629            test "X$echo_testing_string" = "X$echo_test_string"; then
630           # Cool, printf works
631           :
632         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633              test "X$echo_testing_string" = 'X\t' &&
634              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635              test "X$echo_testing_string" = "X$echo_test_string"; then
636           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637           export CONFIG_SHELL
638           SHELL="$CONFIG_SHELL"
639           export SHELL
640           ECHO="$CONFIG_SHELL $0 --fallback-echo"
641         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642              test "X$echo_testing_string" = 'X\t' &&
643              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644              test "X$echo_testing_string" = "X$echo_test_string"; then
645           ECHO="$CONFIG_SHELL $0 --fallback-echo"
646         else
647           # maybe with a smaller string...
648           prev=:
649
650           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652             then
653               break
654             fi
655             prev="$cmd"
656           done
657
658           if test "$prev" != 'sed 50q "$0"'; then
659             echo_test_string=`eval $prev`
660             export echo_test_string
661             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662           else
663             # Oops.  We lost completely, so just stick with echo.
664             ECHO=echo
665           fi
666         fi
667       fi
668     fi
669   fi
670 fi
671
672 # Copy echo and quote the copy suitably for passing to libtool from
673 # the Makefile, instead of quoting the original, which is used later.
674 lt_ECHO=$ECHO
675 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677 fi
678
679
680
681
682 test -n "$DJDIR" || exec 7<&0 </dev/null
683 exec 6>&1
684
685 # Name of the host.
686 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
687 # so uname gets run too.
688 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690 #
691 # Initializations.
692 #
693 ac_default_prefix=/usr/local
694 ac_clean_files=
695 ac_config_libobj_dir=.
696 LIBOBJS=
697 cross_compiling=no
698 subdirs=
699 MFLAGS=
700 MAKEFLAGS=
701
702 # Identity of this package.
703 PACKAGE_NAME='libdispatch'
704 PACKAGE_TARNAME='libdispatch'
705 PACKAGE_VERSION='1.0'
706 PACKAGE_STRING='libdispatch 1.0'
707 PACKAGE_BUGREPORT='libdispatch@macosforge.org'
708 PACKAGE_URL=''
709
710 # Factoring default headers for most tests.
711 ac_includes_default="\
712 #include <stdio.h>
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
715 #endif
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
718 #endif
719 #ifdef STDC_HEADERS
720 # include <stdlib.h>
721 # include <stddef.h>
722 #else
723 # ifdef HAVE_STDLIB_H
724 #  include <stdlib.h>
725 # endif
726 #endif
727 #ifdef HAVE_STRING_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729 #  include <memory.h>
730 # endif
731 # include <string.h>
732 #endif
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
735 #endif
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
738 #endif
739 #ifdef HAVE_STDINT_H
740 # include <stdint.h>
741 #endif
742 #ifdef HAVE_UNISTD_H
743 # include <unistd.h>
744 #endif"
745
746 ac_subst_vars='am__EXEEXT_FALSE
747 am__EXEEXT_TRUE
748 LTLIBOBJS
749 LIBOBJS
750 CXXBLOCKS_FLAGS
751 HAVE_CXXBLOCKS_FALSE
752 HAVE_CXXBLOCKS_TRUE
753 CBLOCKS_FLAGS
754 HAVE_CBLOCKS_FALSE
755 HAVE_CBLOCKS_TRUE
756 HAVE_POSIX_SPAWN_START_SUSPENDED_FALSE
757 HAVE_POSIX_SPAWN_START_SUSPENDED_TRUE
758 USE_MIG_FALSE
759 USE_MIG_TRUE
760 HAVE_CORESERVICES_FALSE
761 HAVE_CORESERVICES_TRUE
762 KQUEUE_LIBS
763 KQUEUE_CFLAGS
764 PKG_CONFIG
765 MARCH_FLAGS
766 am__fastdepCXX_FALSE
767 am__fastdepCXX_TRUE
768 CXXDEPMODE
769 am__fastdepCC_FALSE
770 am__fastdepCC_TRUE
771 CCDEPMODE
772 AMDEPBACKSLASH
773 AMDEP_FALSE
774 AMDEP_TRUE
775 am__quote
776 am__include
777 DEPDIR
778 am__untar
779 am__tar
780 AMTAR
781 am__leading_dot
782 SET_MAKE
783 AWK
784 mkdir_p
785 MKDIR_P
786 INSTALL_STRIP_PROGRAM
787 install_sh
788 MAKEINFO
789 AUTOHEADER
790 AUTOMAKE
791 AUTOCONF
792 ACLOCAL
793 VERSION
794 PACKAGE
795 CYGPATH_W
796 am__isrc
797 LEAKS
798 MIG
799 CXXCPP
800 OTOOL64
801 OTOOL
802 LIPO
803 NMEDIT
804 DSYMUTIL
805 lt_ECHO
806 RANLIB
807 STRIP
808 AR
809 OBJDUMP
810 LN_S
811 NM
812 ac_ct_DUMPBIN
813 DUMPBIN
814 LD
815 FGREP
816 SED
817 host_os
818 host_vendor
819 host_cpu
820 host
821 build_os
822 build_vendor
823 build_cpu
824 build
825 LIBTOOL
826 INSTALL_DATA
827 INSTALL_SCRIPT
828 INSTALL_PROGRAM
829 ac_ct_CXX
830 CXXFLAGS
831 CXX
832 EGREP
833 GREP
834 CPP
835 OBJEXT
836 EXEEXT
837 ac_ct_CC
838 CPPFLAGS
839 LDFLAGS
840 CFLAGS
841 CC
842 USE_LEGACY_API_FALSE
843 USE_LEGACY_API_TRUE
844 APPLE_XNU_SOURCE_PATH
845 APPLE_LIBC_SOURCE_PATH
846 MAINT
847 MAINTAINER_MODE_FALSE
848 MAINTAINER_MODE_TRUE
849 target_alias
850 host_alias
851 build_alias
852 LIBS
853 ECHO_T
854 ECHO_N
855 ECHO_C
856 DEFS
857 mandir
858 localedir
859 libdir
860 psdir
861 pdfdir
862 dvidir
863 htmldir
864 infodir
865 docdir
866 oldincludedir
867 includedir
868 localstatedir
869 sharedstatedir
870 sysconfdir
871 datadir
872 datarootdir
873 libexecdir
874 sbindir
875 bindir
876 program_transform_name
877 prefix
878 exec_prefix
879 PACKAGE_URL
880 PACKAGE_BUGREPORT
881 PACKAGE_STRING
882 PACKAGE_VERSION
883 PACKAGE_TARNAME
884 PACKAGE_NAME
885 PATH_SEPARATOR
886 SHELL'
887 ac_subst_files=''
888 ac_user_opts='
889 enable_option_checking
890 enable_maintainer_mode
891 with_apple_libc_source
892 with_apple_xnu_source
893 enable_legacy_api
894 enable_libdispatch_init_constructor
895 enable_apple_crashreporter_info
896 enable_apple_tsd_optimizations
897 enable_apple_semaphore_optimizations
898 enable_shared
899 enable_static
900 with_pic
901 enable_fast_install
902 with_gnu_ld
903 enable_libtool_lock
904 enable_dependency_tracking
905 with_blocks_runtime
906 '
907       ac_precious_vars='build_alias
908 host_alias
909 target_alias
910 CC
911 CFLAGS
912 LDFLAGS
913 LIBS
914 CPPFLAGS
915 CPP
916 CXX
917 CXXFLAGS
918 CCC
919 CXXCPP
920 PKG_CONFIG
921 KQUEUE_CFLAGS
922 KQUEUE_LIBS'
923
924
925 # Initialize some variables set by options.
926 ac_init_help=
927 ac_init_version=false
928 ac_unrecognized_opts=
929 ac_unrecognized_sep=
930 # The variables have the same names as the options, with
931 # dashes changed to underlines.
932 cache_file=/dev/null
933 exec_prefix=NONE
934 no_create=
935 no_recursion=
936 prefix=NONE
937 program_prefix=NONE
938 program_suffix=NONE
939 program_transform_name=s,x,x,
940 silent=
941 site=
942 srcdir=
943 verbose=
944 x_includes=NONE
945 x_libraries=NONE
946
947 # Installation directory options.
948 # These are left unexpanded so users can "make install exec_prefix=/foo"
949 # and all the variables that are supposed to be based on exec_prefix
950 # by default will actually change.
951 # Use braces instead of parens because sh, perl, etc. also accept them.
952 # (The list follows the same order as the GNU Coding Standards.)
953 bindir='${exec_prefix}/bin'
954 sbindir='${exec_prefix}/sbin'
955 libexecdir='${exec_prefix}/libexec'
956 datarootdir='${prefix}/share'
957 datadir='${datarootdir}'
958 sysconfdir='${prefix}/etc'
959 sharedstatedir='${prefix}/com'
960 localstatedir='${prefix}/var'
961 includedir='${prefix}/include'
962 oldincludedir='/usr/include'
963 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
964 infodir='${datarootdir}/info'
965 htmldir='${docdir}'
966 dvidir='${docdir}'
967 pdfdir='${docdir}'
968 psdir='${docdir}'
969 libdir='${exec_prefix}/lib'
970 localedir='${datarootdir}/locale'
971 mandir='${datarootdir}/man'
972
973 ac_prev=
974 ac_dashdash=
975 for ac_option
976 do
977   # If the previous option needs an argument, assign it.
978   if test -n "$ac_prev"; then
979     eval $ac_prev=\$ac_option
980     ac_prev=
981     continue
982   fi
983
984   case $ac_option in
985   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
986   *)    ac_optarg=yes ;;
987   esac
988
989   # Accept the important Cygnus configure options, so we can diagnose typos.
990
991   case $ac_dashdash$ac_option in
992   --)
993     ac_dashdash=yes ;;
994
995   -bindir | --bindir | --bindi | --bind | --bin | --bi)
996     ac_prev=bindir ;;
997   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
998     bindir=$ac_optarg ;;
999
1000   -build | --build | --buil | --bui | --bu)
1001     ac_prev=build_alias ;;
1002   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1003     build_alias=$ac_optarg ;;
1004
1005   -cache-file | --cache-file | --cache-fil | --cache-fi \
1006   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1007     ac_prev=cache_file ;;
1008   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1009   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1010     cache_file=$ac_optarg ;;
1011
1012   --config-cache | -C)
1013     cache_file=config.cache ;;
1014
1015   -datadir | --datadir | --datadi | --datad)
1016     ac_prev=datadir ;;
1017   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1018     datadir=$ac_optarg ;;
1019
1020   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1021   | --dataroo | --dataro | --datar)
1022     ac_prev=datarootdir ;;
1023   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1024   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1025     datarootdir=$ac_optarg ;;
1026
1027   -disable-* | --disable-*)
1028     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1029     # Reject names that are not valid shell variable names.
1030     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031       as_fn_error "invalid feature name: $ac_useropt"
1032     ac_useropt_orig=$ac_useropt
1033     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034     case $ac_user_opts in
1035       *"
1036 "enable_$ac_useropt"
1037 "*) ;;
1038       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1039          ac_unrecognized_sep=', ';;
1040     esac
1041     eval enable_$ac_useropt=no ;;
1042
1043   -docdir | --docdir | --docdi | --doc | --do)
1044     ac_prev=docdir ;;
1045   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1046     docdir=$ac_optarg ;;
1047
1048   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1049     ac_prev=dvidir ;;
1050   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1051     dvidir=$ac_optarg ;;
1052
1053   -enable-* | --enable-*)
1054     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055     # Reject names that are not valid shell variable names.
1056     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057       as_fn_error "invalid feature name: $ac_useropt"
1058     ac_useropt_orig=$ac_useropt
1059     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060     case $ac_user_opts in
1061       *"
1062 "enable_$ac_useropt"
1063 "*) ;;
1064       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1065          ac_unrecognized_sep=', ';;
1066     esac
1067     eval enable_$ac_useropt=\$ac_optarg ;;
1068
1069   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1070   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1071   | --exec | --exe | --ex)
1072     ac_prev=exec_prefix ;;
1073   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1074   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1075   | --exec=* | --exe=* | --ex=*)
1076     exec_prefix=$ac_optarg ;;
1077
1078   -gas | --gas | --ga | --g)
1079     # Obsolete; use --with-gas.
1080     with_gas=yes ;;
1081
1082   -help | --help | --hel | --he | -h)
1083     ac_init_help=long ;;
1084   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1085     ac_init_help=recursive ;;
1086   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1087     ac_init_help=short ;;
1088
1089   -host | --host | --hos | --ho)
1090     ac_prev=host_alias ;;
1091   -host=* | --host=* | --hos=* | --ho=*)
1092     host_alias=$ac_optarg ;;
1093
1094   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1095     ac_prev=htmldir ;;
1096   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1097   | --ht=*)
1098     htmldir=$ac_optarg ;;
1099
1100   -includedir | --includedir | --includedi | --included | --include \
1101   | --includ | --inclu | --incl | --inc)
1102     ac_prev=includedir ;;
1103   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1104   | --includ=* | --inclu=* | --incl=* | --inc=*)
1105     includedir=$ac_optarg ;;
1106
1107   -infodir | --infodir | --infodi | --infod | --info | --inf)
1108     ac_prev=infodir ;;
1109   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1110     infodir=$ac_optarg ;;
1111
1112   -libdir | --libdir | --libdi | --libd)
1113     ac_prev=libdir ;;
1114   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1115     libdir=$ac_optarg ;;
1116
1117   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1118   | --libexe | --libex | --libe)
1119     ac_prev=libexecdir ;;
1120   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1121   | --libexe=* | --libex=* | --libe=*)
1122     libexecdir=$ac_optarg ;;
1123
1124   -localedir | --localedir | --localedi | --localed | --locale)
1125     ac_prev=localedir ;;
1126   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1127     localedir=$ac_optarg ;;
1128
1129   -localstatedir | --localstatedir | --localstatedi | --localstated \
1130   | --localstate | --localstat | --localsta | --localst | --locals)
1131     ac_prev=localstatedir ;;
1132   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1133   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1134     localstatedir=$ac_optarg ;;
1135
1136   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1137     ac_prev=mandir ;;
1138   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1139     mandir=$ac_optarg ;;
1140
1141   -nfp | --nfp | --nf)
1142     # Obsolete; use --without-fp.
1143     with_fp=no ;;
1144
1145   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1146   | --no-cr | --no-c | -n)
1147     no_create=yes ;;
1148
1149   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1150   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1151     no_recursion=yes ;;
1152
1153   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1154   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1155   | --oldin | --oldi | --old | --ol | --o)
1156     ac_prev=oldincludedir ;;
1157   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1158   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1159   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1160     oldincludedir=$ac_optarg ;;
1161
1162   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1163     ac_prev=prefix ;;
1164   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1165     prefix=$ac_optarg ;;
1166
1167   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1168   | --program-pre | --program-pr | --program-p)
1169     ac_prev=program_prefix ;;
1170   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1171   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1172     program_prefix=$ac_optarg ;;
1173
1174   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1175   | --program-suf | --program-su | --program-s)
1176     ac_prev=program_suffix ;;
1177   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1178   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1179     program_suffix=$ac_optarg ;;
1180
1181   -program-transform-name | --program-transform-name \
1182   | --program-transform-nam | --program-transform-na \
1183   | --program-transform-n | --program-transform- \
1184   | --program-transform | --program-transfor \
1185   | --program-transfo | --program-transf \
1186   | --program-trans | --program-tran \
1187   | --progr-tra | --program-tr | --program-t)
1188     ac_prev=program_transform_name ;;
1189   -program-transform-name=* | --program-transform-name=* \
1190   | --program-transform-nam=* | --program-transform-na=* \
1191   | --program-transform-n=* | --program-transform-=* \
1192   | --program-transform=* | --program-transfor=* \
1193   | --program-transfo=* | --program-transf=* \
1194   | --program-trans=* | --program-tran=* \
1195   | --progr-tra=* | --program-tr=* | --program-t=*)
1196     program_transform_name=$ac_optarg ;;
1197
1198   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1199     ac_prev=pdfdir ;;
1200   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1201     pdfdir=$ac_optarg ;;
1202
1203   -psdir | --psdir | --psdi | --psd | --ps)
1204     ac_prev=psdir ;;
1205   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1206     psdir=$ac_optarg ;;
1207
1208   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209   | -silent | --silent | --silen | --sile | --sil)
1210     silent=yes ;;
1211
1212   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1213     ac_prev=sbindir ;;
1214   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1215   | --sbi=* | --sb=*)
1216     sbindir=$ac_optarg ;;
1217
1218   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1219   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1220   | --sharedst | --shareds | --shared | --share | --shar \
1221   | --sha | --sh)
1222     ac_prev=sharedstatedir ;;
1223   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1224   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1225   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1226   | --sha=* | --sh=*)
1227     sharedstatedir=$ac_optarg ;;
1228
1229   -site | --site | --sit)
1230     ac_prev=site ;;
1231   -site=* | --site=* | --sit=*)
1232     site=$ac_optarg ;;
1233
1234   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1235     ac_prev=srcdir ;;
1236   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1237     srcdir=$ac_optarg ;;
1238
1239   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1240   | --syscon | --sysco | --sysc | --sys | --sy)
1241     ac_prev=sysconfdir ;;
1242   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1243   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1244     sysconfdir=$ac_optarg ;;
1245
1246   -target | --target | --targe | --targ | --tar | --ta | --t)
1247     ac_prev=target_alias ;;
1248   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1249     target_alias=$ac_optarg ;;
1250
1251   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1252     verbose=yes ;;
1253
1254   -version | --version | --versio | --versi | --vers | -V)
1255     ac_init_version=: ;;
1256
1257   -with-* | --with-*)
1258     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1259     # Reject names that are not valid shell variable names.
1260     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261       as_fn_error "invalid package name: $ac_useropt"
1262     ac_useropt_orig=$ac_useropt
1263     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264     case $ac_user_opts in
1265       *"
1266 "with_$ac_useropt"
1267 "*) ;;
1268       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1269          ac_unrecognized_sep=', ';;
1270     esac
1271     eval with_$ac_useropt=\$ac_optarg ;;
1272
1273   -without-* | --without-*)
1274     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275     # Reject names that are not valid shell variable names.
1276     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277       as_fn_error "invalid package name: $ac_useropt"
1278     ac_useropt_orig=$ac_useropt
1279     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280     case $ac_user_opts in
1281       *"
1282 "with_$ac_useropt"
1283 "*) ;;
1284       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1285          ac_unrecognized_sep=', ';;
1286     esac
1287     eval with_$ac_useropt=no ;;
1288
1289   --x)
1290     # Obsolete; use --with-x.
1291     with_x=yes ;;
1292
1293   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1294   | --x-incl | --x-inc | --x-in | --x-i)
1295     ac_prev=x_includes ;;
1296   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1297   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1298     x_includes=$ac_optarg ;;
1299
1300   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1301   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1302     ac_prev=x_libraries ;;
1303   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1304   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1305     x_libraries=$ac_optarg ;;
1306
1307   -*) as_fn_error "unrecognized option: \`$ac_option'
1308 Try \`$0 --help' for more information."
1309     ;;
1310
1311   *=*)
1312     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1313     # Reject names that are not valid shell variable names.
1314     case $ac_envvar in #(
1315       '' | [0-9]* | *[!_$as_cr_alnum]* )
1316       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1317     esac
1318     eval $ac_envvar=\$ac_optarg
1319     export $ac_envvar ;;
1320
1321   *)
1322     # FIXME: should be removed in autoconf 3.0.
1323     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1324     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1325       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1326     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1327     ;;
1328
1329   esac
1330 done
1331
1332 if test -n "$ac_prev"; then
1333   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1334   as_fn_error "missing argument to $ac_option"
1335 fi
1336
1337 if test -n "$ac_unrecognized_opts"; then
1338   case $enable_option_checking in
1339     no) ;;
1340     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1341     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1342   esac
1343 fi
1344
1345 # Check all directory arguments for consistency.
1346 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347                 datadir sysconfdir sharedstatedir localstatedir includedir \
1348                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349                 libdir localedir mandir
1350 do
1351   eval ac_val=\$$ac_var
1352   # Remove trailing slashes.
1353   case $ac_val in
1354     */ )
1355       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1356       eval $ac_var=\$ac_val;;
1357   esac
1358   # Be sure to have absolute directory names.
1359   case $ac_val in
1360     [\\/$]* | ?:[\\/]* )  continue;;
1361     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1362   esac
1363   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1364 done
1365
1366 # There might be people who depend on the old broken behavior: `$host'
1367 # used to hold the argument of --host etc.
1368 # FIXME: To remove some day.
1369 build=$build_alias
1370 host=$host_alias
1371 target=$target_alias
1372
1373 # FIXME: To remove some day.
1374 if test "x$host_alias" != x; then
1375   if test "x$build_alias" = x; then
1376     cross_compiling=maybe
1377     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1378     If a cross compiler is detected then cross compile mode will be used." >&2
1379   elif test "x$build_alias" != "x$host_alias"; then
1380     cross_compiling=yes
1381   fi
1382 fi
1383
1384 ac_tool_prefix=
1385 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1386
1387 test "$silent" = yes && exec 6>/dev/null
1388
1389
1390 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1391 ac_ls_di=`ls -di .` &&
1392 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1393   as_fn_error "working directory cannot be determined"
1394 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1395   as_fn_error "pwd does not report name of working directory"
1396
1397
1398 # Find the source files, if location was not specified.
1399 if test -z "$srcdir"; then
1400   ac_srcdir_defaulted=yes
1401   # Try the directory containing this script, then the parent directory.
1402   ac_confdir=`$as_dirname -- "$as_myself" ||
1403 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1404          X"$as_myself" : 'X\(//\)[^/]' \| \
1405          X"$as_myself" : 'X\(//\)$' \| \
1406          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1407 $as_echo X"$as_myself" |
1408     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409             s//\1/
1410             q
1411           }
1412           /^X\(\/\/\)[^/].*/{
1413             s//\1/
1414             q
1415           }
1416           /^X\(\/\/\)$/{
1417             s//\1/
1418             q
1419           }
1420           /^X\(\/\).*/{
1421             s//\1/
1422             q
1423           }
1424           s/.*/./; q'`
1425   srcdir=$ac_confdir
1426   if test ! -r "$srcdir/$ac_unique_file"; then
1427     srcdir=..
1428   fi
1429 else
1430   ac_srcdir_defaulted=no
1431 fi
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1434   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1435 fi
1436 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1437 ac_abs_confdir=`(
1438         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1439         pwd)`
1440 # When building in place, set srcdir=.
1441 if test "$ac_abs_confdir" = "$ac_pwd"; then
1442   srcdir=.
1443 fi
1444 # Remove unnecessary trailing slashes from srcdir.
1445 # Double slashes in file names in object file debugging info
1446 # mess up M-x gdb in Emacs.
1447 case $srcdir in
1448 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449 esac
1450 for ac_var in $ac_precious_vars; do
1451   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1452   eval ac_env_${ac_var}_value=\$${ac_var}
1453   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1454   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455 done
1456
1457 #
1458 # Report the --help message.
1459 #
1460 if test "$ac_init_help" = "long"; then
1461   # Omit some internal or obsolete options to make the list less imposing.
1462   # This message is too long to be a string in the A/UX 3.1 sh.
1463   cat <<_ACEOF
1464 \`configure' configures libdispatch 1.0 to adapt to many kinds of systems.
1465
1466 Usage: $0 [OPTION]... [VAR=VALUE]...
1467
1468 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1469 VAR=VALUE.  See below for descriptions of some of the useful variables.
1470
1471 Defaults for the options are specified in brackets.
1472
1473 Configuration:
1474   -h, --help              display this help and exit
1475       --help=short        display options specific to this package
1476       --help=recursive    display the short help of all the included packages
1477   -V, --version           display version information and exit
1478   -q, --quiet, --silent   do not print \`checking...' messages
1479       --cache-file=FILE   cache test results in FILE [disabled]
1480   -C, --config-cache      alias for \`--cache-file=config.cache'
1481   -n, --no-create         do not create output files
1482       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1483
1484 Installation directories:
1485   --prefix=PREFIX         install architecture-independent files in PREFIX
1486                           [$ac_default_prefix]
1487   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1488                           [PREFIX]
1489
1490 By default, \`make install' will install all the files in
1491 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1492 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1493 for instance \`--prefix=\$HOME'.
1494
1495 For better control, use the options below.
1496
1497 Fine tuning of the installation directories:
1498   --bindir=DIR            user executables [EPREFIX/bin]
1499   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1500   --libexecdir=DIR        program executables [EPREFIX/libexec]
1501   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1502   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1503   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1504   --libdir=DIR            object code libraries [EPREFIX/lib]
1505   --includedir=DIR        C header files [PREFIX/include]
1506   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1507   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1508   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1509   --infodir=DIR           info documentation [DATAROOTDIR/info]
1510   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1511   --mandir=DIR            man documentation [DATAROOTDIR/man]
1512   --docdir=DIR            documentation root [DATAROOTDIR/doc/libdispatch]
1513   --htmldir=DIR           html documentation [DOCDIR]
1514   --dvidir=DIR            dvi documentation [DOCDIR]
1515   --pdfdir=DIR            pdf documentation [DOCDIR]
1516   --psdir=DIR             ps documentation [DOCDIR]
1517 _ACEOF
1518
1519   cat <<\_ACEOF
1520
1521 Program names:
1522   --program-prefix=PREFIX            prepend PREFIX to installed program names
1523   --program-suffix=SUFFIX            append SUFFIX to installed program names
1524   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1525
1526 System types:
1527   --build=BUILD     configure for building on BUILD [guessed]
1528   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1529 _ACEOF
1530 fi
1531
1532 if test -n "$ac_init_help"; then
1533   case $ac_init_help in
1534      short | recursive ) echo "Configuration of libdispatch 1.0:";;
1535    esac
1536   cat <<\_ACEOF
1537
1538 Optional Features:
1539   --disable-option-checking  ignore unrecognized --enable/--with options
1540   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1541   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1542   --enable-maintainer-mode  enable make rules and dependencies not useful
1543                           (and sometimes confusing) to the casual installer
1544   --enable-legacy-api     Enable legacy (deprecated) API.
1545
1546   --disable-libdispatch-init-constructor
1547                           Disable libdispatch_init as a constructor
1548
1549   --enable-apple-crashreporter-info
1550                           Use Mac OS X crashreporter info
1551
1552   --enable-apple-tsd-optimizations
1553                           Use non-portable pthread TSD optimizations for Mac
1554                           OS X.
1555
1556   --enable-apple-semaphore-optimizations
1557                           Use non-portable semaphore optimizations for Mac OS
1558                           X.
1559
1560   --enable-shared[=PKGS]  build shared libraries [default=yes]
1561   --enable-static[=PKGS]  build static libraries [default=yes]
1562   --enable-fast-install[=PKGS]
1563                           optimize for fast installation [default=yes]
1564   --disable-libtool-lock  avoid locking (might break parallel builds)
1565   --disable-dependency-tracking  speeds up one-time build
1566   --enable-dependency-tracking   do not reject slow dependency extractors
1567
1568 Optional Packages:
1569   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1570   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1571   --with-apple-libc-source
1572                           Specify path to Apple Libc source
1573   --with-apple-xnu-source Specify path to Apple XNU source
1574   --with-pic              try to use only PIC/non-PIC objects [default=use
1575                           both]
1576   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1577   --with-blocks-runtime   Specify path to the blocks runtime
1578
1579 Some influential environment variables:
1580   CC          C compiler command
1581   CFLAGS      C compiler flags
1582   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1583               nonstandard directory <lib dir>
1584   LIBS        libraries to pass to the linker, e.g. -l<library>
1585   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1586               you have headers in a nonstandard directory <include dir>
1587   CPP         C preprocessor
1588   CXX         C++ compiler command
1589   CXXFLAGS    C++ compiler flags
1590   CXXCPP      C++ preprocessor
1591   PKG_CONFIG  path to pkg-config utility
1592   KQUEUE_CFLAGS
1593               C compiler flags for KQUEUE, overriding pkg-config
1594   KQUEUE_LIBS linker flags for KQUEUE, overriding pkg-config
1595
1596 Use these variables to override the choices made by `configure' or to help
1597 it to find libraries and programs with nonstandard names/locations.
1598
1599 Report bugs to <libdispatch@macosforge.org>.
1600 _ACEOF
1601 ac_status=$?
1602 fi
1603
1604 if test "$ac_init_help" = "recursive"; then
1605   # If there are subdirs, report their specific --help.
1606   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1607     test -d "$ac_dir" ||
1608       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1609       continue
1610     ac_builddir=.
1611
1612 case "$ac_dir" in
1613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614 *)
1615   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1616   # A ".." for each directory in $ac_dir_suffix.
1617   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1618   case $ac_top_builddir_sub in
1619   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621   esac ;;
1622 esac
1623 ac_abs_top_builddir=$ac_pwd
1624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625 # for backward compatibility:
1626 ac_top_builddir=$ac_top_build_prefix
1627
1628 case $srcdir in
1629   .)  # We are building in place.
1630     ac_srcdir=.
1631     ac_top_srcdir=$ac_top_builddir_sub
1632     ac_abs_top_srcdir=$ac_pwd ;;
1633   [\\/]* | ?:[\\/]* )  # Absolute name.
1634     ac_srcdir=$srcdir$ac_dir_suffix;
1635     ac_top_srcdir=$srcdir
1636     ac_abs_top_srcdir=$srcdir ;;
1637   *) # Relative name.
1638     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639     ac_top_srcdir=$ac_top_build_prefix$srcdir
1640     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1641 esac
1642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1643
1644     cd "$ac_dir" || { ac_status=$?; continue; }
1645     # Check for guested configure.
1646     if test -f "$ac_srcdir/configure.gnu"; then
1647       echo &&
1648       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649     elif test -f "$ac_srcdir/configure"; then
1650       echo &&
1651       $SHELL "$ac_srcdir/configure" --help=recursive
1652     else
1653       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1654     fi || ac_status=$?
1655     cd "$ac_pwd" || { ac_status=$?; break; }
1656   done
1657 fi
1658
1659 test -n "$ac_init_help" && exit $ac_status
1660 if $ac_init_version; then
1661   cat <<\_ACEOF
1662 libdispatch configure 1.0
1663 generated by GNU Autoconf 2.65
1664
1665 Copyright (C) 2009 Free Software Foundation, Inc.
1666 This configure script is free software; the Free Software Foundation
1667 gives unlimited permission to copy, distribute and modify it.
1668 _ACEOF
1669   exit
1670 fi
1671
1672 ## ------------------------ ##
1673 ## Autoconf initialization. ##
1674 ## ------------------------ ##
1675
1676 # ac_fn_c_try_compile LINENO
1677 # --------------------------
1678 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_compile ()
1680 {
1681   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682   rm -f conftest.$ac_objext
1683   if { { ac_try="$ac_compile"
1684 case "(($ac_try" in
1685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686   *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690   (eval "$ac_compile") 2>conftest.err
1691   ac_status=$?
1692   if test -s conftest.err; then
1693     grep -v '^ *+' conftest.err >conftest.er1
1694     cat conftest.er1 >&5
1695     mv -f conftest.er1 conftest.err
1696   fi
1697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698   test $ac_status = 0; } && {
1699          test -z "$ac_c_werror_flag" ||
1700          test ! -s conftest.err
1701        } && test -s conftest.$ac_objext; then :
1702   ac_retval=0
1703 else
1704   $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1706
1707         ac_retval=1
1708 fi
1709   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1710   as_fn_set_status $ac_retval
1711
1712 } # ac_fn_c_try_compile
1713
1714 # ac_fn_c_try_cpp LINENO
1715 # ----------------------
1716 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1717 ac_fn_c_try_cpp ()
1718 {
1719   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720   if { { ac_try="$ac_cpp conftest.$ac_ext"
1721 case "(($ac_try" in
1722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723   *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1728   ac_status=$?
1729   if test -s conftest.err; then
1730     grep -v '^ *+' conftest.err >conftest.er1
1731     cat conftest.er1 >&5
1732     mv -f conftest.er1 conftest.err
1733   fi
1734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735   test $ac_status = 0; } >/dev/null && {
1736          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1737          test ! -s conftest.err
1738        }; then :
1739   ac_retval=0
1740 else
1741   $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1743
1744     ac_retval=1
1745 fi
1746   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747   as_fn_set_status $ac_retval
1748
1749 } # ac_fn_c_try_cpp
1750
1751 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1752 # -------------------------------------------------------
1753 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1754 # the include files in INCLUDES and setting the cache variable VAR
1755 # accordingly.
1756 ac_fn_c_check_header_mongrel ()
1757 {
1758   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761 $as_echo_n "checking for $2... " >&6; }
1762 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1763   $as_echo_n "(cached) " >&6
1764 fi
1765 eval ac_res=\$$3
1766                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 $as_echo "$ac_res" >&6; }
1768 else
1769   # Is the header compilable?
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1771 $as_echo_n "checking $2 usability... " >&6; }
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h.  */
1774 $4
1775 #include <$2>
1776 _ACEOF
1777 if ac_fn_c_try_compile "$LINENO"; then :
1778   ac_header_compiler=yes
1779 else
1780   ac_header_compiler=no
1781 fi
1782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1784 $as_echo "$ac_header_compiler" >&6; }
1785
1786 # Is the header present?
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1788 $as_echo_n "checking $2 presence... " >&6; }
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h.  */
1791 #include <$2>
1792 _ACEOF
1793 if ac_fn_c_try_cpp "$LINENO"; then :
1794   ac_header_preproc=yes
1795 else
1796   ac_header_preproc=no
1797 fi
1798 rm -f conftest.err conftest.$ac_ext
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1800 $as_echo "$ac_header_preproc" >&6; }
1801
1802 # So?  What about this header?
1803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1804   yes:no: )
1805     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1806 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1807     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1808 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1809     ;;
1810   no:yes:* )
1811     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1812 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1813     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1814 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1815     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1816 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1817     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1818 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1819     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1820 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1821 ( cat <<\_ASBOX
1822 ## ----------------------------------------- ##
1823 ## Report this to libdispatch@macosforge.org ##
1824 ## ----------------------------------------- ##
1825 _ASBOX
1826      ) | sed "s/^/$as_me: WARNING:     /" >&2
1827     ;;
1828 esac
1829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830 $as_echo_n "checking for $2... " >&6; }
1831 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1832   $as_echo_n "(cached) " >&6
1833 else
1834   eval "$3=\$ac_header_compiler"
1835 fi
1836 eval ac_res=\$$3
1837                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 $as_echo "$ac_res" >&6; }
1839 fi
1840   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1841
1842 } # ac_fn_c_check_header_mongrel
1843
1844 # ac_fn_c_try_run LINENO
1845 # ----------------------
1846 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1847 # that executables *can* be run.
1848 ac_fn_c_try_run ()
1849 {
1850   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851   if { { ac_try="$ac_link"
1852 case "(($ac_try" in
1853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854   *) ac_try_echo=$ac_try;;
1855 esac
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858   (eval "$ac_link") 2>&5
1859   ac_status=$?
1860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1862   { { case "(($ac_try" in
1863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864   *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868   (eval "$ac_try") 2>&5
1869   ac_status=$?
1870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871   test $ac_status = 0; }; }; then :
1872   ac_retval=0
1873 else
1874   $as_echo "$as_me: program exited with status $ac_status" >&5
1875        $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1877
1878        ac_retval=$ac_status
1879 fi
1880   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1881   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882   as_fn_set_status $ac_retval
1883
1884 } # ac_fn_c_try_run
1885
1886 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists and can be compiled using the include files in
1889 # INCLUDES, setting the cache variable VAR accordingly.
1890 ac_fn_c_check_header_compile ()
1891 {
1892   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894 $as_echo_n "checking for $2... " >&6; }
1895 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1896   $as_echo_n "(cached) " >&6
1897 else
1898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h.  */
1900 $4
1901 #include <$2>
1902 _ACEOF
1903 if ac_fn_c_try_compile "$LINENO"; then :
1904   eval "$3=yes"
1905 else
1906   eval "$3=no"
1907 fi
1908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 fi
1910 eval ac_res=\$$3
1911                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1913   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914
1915 } # ac_fn_c_check_header_compile
1916
1917 # ac_fn_cxx_try_compile LINENO
1918 # ----------------------------
1919 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_cxx_try_compile ()
1921 {
1922   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923   rm -f conftest.$ac_objext
1924   if { { ac_try="$ac_compile"
1925 case "(($ac_try" in
1926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927   *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931   (eval "$ac_compile") 2>conftest.err
1932   ac_status=$?
1933   if test -s conftest.err; then
1934     grep -v '^ *+' conftest.err >conftest.er1
1935     cat conftest.er1 >&5
1936     mv -f conftest.er1 conftest.err
1937   fi
1938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939   test $ac_status = 0; } && {
1940          test -z "$ac_cxx_werror_flag" ||
1941          test ! -s conftest.err
1942        } && test -s conftest.$ac_objext; then :
1943   ac_retval=0
1944 else
1945   $as_echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1947
1948         ac_retval=1
1949 fi
1950   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951   as_fn_set_status $ac_retval
1952
1953 } # ac_fn_cxx_try_compile
1954
1955 # ac_fn_c_try_link LINENO
1956 # -----------------------
1957 # Try to link conftest.$ac_ext, and return whether this succeeded.
1958 ac_fn_c_try_link ()
1959 {
1960   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961   rm -f conftest.$ac_objext conftest$ac_exeext
1962   if { { ac_try="$ac_link"
1963 case "(($ac_try" in
1964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965   *) ac_try_echo=$ac_try;;
1966 esac
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969   (eval "$ac_link") 2>conftest.err
1970   ac_status=$?
1971   if test -s conftest.err; then
1972     grep -v '^ *+' conftest.err >conftest.er1
1973     cat conftest.er1 >&5
1974     mv -f conftest.er1 conftest.err
1975   fi
1976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977   test $ac_status = 0; } && {
1978          test -z "$ac_c_werror_flag" ||
1979          test ! -s conftest.err
1980        } && test -s conftest$ac_exeext && {
1981          test "$cross_compiling" = yes ||
1982          $as_test_x conftest$ac_exeext
1983        }; then :
1984   ac_retval=0
1985 else
1986   $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1988
1989         ac_retval=1
1990 fi
1991   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1992   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1993   # interfere with the next link command; also delete a directory that is
1994   # left behind by Apple's compiler.  We do this before executing the actions.
1995   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1996   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997   as_fn_set_status $ac_retval
1998
1999 } # ac_fn_c_try_link
2000
2001 # ac_fn_c_check_func LINENO FUNC VAR
2002 # ----------------------------------
2003 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2004 ac_fn_c_check_func ()
2005 {
2006   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008 $as_echo_n "checking for $2... " >&6; }
2009 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2010   $as_echo_n "(cached) " >&6
2011 else
2012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h.  */
2014 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2015    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2016 #define $2 innocuous_$2
2017
2018 /* System header to define __stub macros and hopefully few prototypes,
2019     which can conflict with char $2 (); below.
2020     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2021     <limits.h> exists even on freestanding compilers.  */
2022
2023 #ifdef __STDC__
2024 # include <limits.h>
2025 #else
2026 # include <assert.h>
2027 #endif
2028
2029 #undef $2
2030
2031 /* Override any GCC internal prototype to avoid an error.
2032    Use char because int might match the return type of a GCC
2033    builtin and then its argument prototype would still apply.  */
2034 #ifdef __cplusplus
2035 extern "C"
2036 #endif
2037 char $2 ();
2038 /* The GNU C library defines this for functions which it implements
2039     to always fail with ENOSYS.  Some functions are actually named
2040     something starting with __ and the normal name is an alias.  */
2041 #if defined __stub_$2 || defined __stub___$2
2042 choke me
2043 #endif
2044
2045 int
2046 main ()
2047 {
2048 return $2 ();
2049   ;
2050   return 0;
2051 }
2052 _ACEOF
2053 if ac_fn_c_try_link "$LINENO"; then :
2054   eval "$3=yes"
2055 else
2056   eval "$3=no"
2057 fi
2058 rm -f core conftest.err conftest.$ac_objext \
2059     conftest$ac_exeext conftest.$ac_ext
2060 fi
2061 eval ac_res=\$$3
2062                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063 $as_echo "$ac_res" >&6; }
2064   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2065
2066 } # ac_fn_c_check_func
2067
2068 # ac_fn_cxx_try_cpp LINENO
2069 # ------------------------
2070 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2071 ac_fn_cxx_try_cpp ()
2072 {
2073   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074   if { { ac_try="$ac_cpp conftest.$ac_ext"
2075 case "(($ac_try" in
2076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2077   *) ac_try_echo=$ac_try;;
2078 esac
2079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2080 $as_echo "$ac_try_echo"; } >&5
2081   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2082   ac_status=$?
2083   if test -s conftest.err; then
2084     grep -v '^ *+' conftest.err >conftest.er1
2085     cat conftest.er1 >&5
2086     mv -f conftest.er1 conftest.err
2087   fi
2088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089   test $ac_status = 0; } >/dev/null && {
2090          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2091          test ! -s conftest.err
2092        }; then :
2093   ac_retval=0
2094 else
2095   $as_echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2097
2098     ac_retval=1
2099 fi
2100   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2101   as_fn_set_status $ac_retval
2102
2103 } # ac_fn_cxx_try_cpp
2104
2105 # ac_fn_cxx_try_link LINENO
2106 # -------------------------
2107 # Try to link conftest.$ac_ext, and return whether this succeeded.
2108 ac_fn_cxx_try_link ()
2109 {
2110   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111   rm -f conftest.$ac_objext conftest$ac_exeext
2112   if { { ac_try="$ac_link"
2113 case "(($ac_try" in
2114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115   *) ac_try_echo=$ac_try;;
2116 esac
2117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2118 $as_echo "$ac_try_echo"; } >&5
2119   (eval "$ac_link") 2>conftest.err
2120   ac_status=$?
2121   if test -s conftest.err; then
2122     grep -v '^ *+' conftest.err >conftest.er1
2123     cat conftest.er1 >&5
2124     mv -f conftest.er1 conftest.err
2125   fi
2126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127   test $ac_status = 0; } && {
2128          test -z "$ac_cxx_werror_flag" ||
2129          test ! -s conftest.err
2130        } && test -s conftest$ac_exeext && {
2131          test "$cross_compiling" = yes ||
2132          $as_test_x conftest$ac_exeext
2133        }; then :
2134   ac_retval=0
2135 else
2136   $as_echo "$as_me: failed program was:" >&5
2137 sed 's/^/| /' conftest.$ac_ext >&5
2138
2139         ac_retval=1
2140 fi
2141   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2142   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2143   # interfere with the next link command; also delete a directory that is
2144   # left behind by Apple's compiler.  We do this before executing the actions.
2145   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2146   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2147   as_fn_set_status $ac_retval
2148
2149 } # ac_fn_cxx_try_link
2150
2151 # ac_fn_c_check_decl LINENO SYMBOL VAR
2152 # ------------------------------------
2153 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2154 ac_fn_c_check_decl ()
2155 {
2156   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2158 $as_echo_n "checking whether $2 is declared... " >&6; }
2159 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2160   $as_echo_n "(cached) " >&6
2161 else
2162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h.  */
2164 $4
2165 int
2166 main ()
2167 {
2168 #ifndef $2
2169   (void) $2;
2170 #endif
2171
2172   ;
2173   return 0;
2174 }
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177   eval "$3=yes"
2178 else
2179   eval "$3=no"
2180 fi
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 fi
2183 eval ac_res=\$$3
2184                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185 $as_echo "$ac_res" >&6; }
2186   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2187
2188 } # ac_fn_c_check_decl
2189 cat >config.log <<_ACEOF
2190 This file contains any messages produced by compilers while
2191 running configure, to aid debugging if configure makes a mistake.
2192
2193 It was created by libdispatch $as_me 1.0, which was
2194 generated by GNU Autoconf 2.65.  Invocation command line was
2195
2196   $ $0 $@
2197
2198 _ACEOF
2199 exec 5>>config.log
2200 {
2201 cat <<_ASUNAME
2202 ## --------- ##
2203 ## Platform. ##
2204 ## --------- ##
2205
2206 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2207 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2208 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2209 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2210 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2211
2212 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2213 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2214
2215 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2216 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2217 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2218 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2219 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2220 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2221 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2222
2223 _ASUNAME
2224
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 for as_dir in $PATH
2227 do
2228   IFS=$as_save_IFS
2229   test -z "$as_dir" && as_dir=.
2230     $as_echo "PATH: $as_dir"
2231   done
2232 IFS=$as_save_IFS
2233
2234 } >&5
2235
2236 cat >&5 <<_ACEOF
2237
2238
2239 ## ----------- ##
2240 ## Core tests. ##
2241 ## ----------- ##
2242
2243 _ACEOF
2244
2245
2246 # Keep a trace of the command line.
2247 # Strip out --no-create and --no-recursion so they do not pile up.
2248 # Strip out --silent because we don't want to record it for future runs.
2249 # Also quote any args containing shell meta-characters.
2250 # Make two passes to allow for proper duplicate-argument suppression.
2251 ac_configure_args=
2252 ac_configure_args0=
2253 ac_configure_args1=
2254 ac_must_keep_next=false
2255 for ac_pass in 1 2
2256 do
2257   for ac_arg
2258   do
2259     case $ac_arg in
2260     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2261     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2262     | -silent | --silent | --silen | --sile | --sil)
2263       continue ;;
2264     *\'*)
2265       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2266     esac
2267     case $ac_pass in
2268     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2269     2)
2270       as_fn_append ac_configure_args1 " '$ac_arg'"
2271       if test $ac_must_keep_next = true; then
2272         ac_must_keep_next=false # Got value, back to normal.
2273       else
2274         case $ac_arg in
2275           *=* | --config-cache | -C | -disable-* | --disable-* \
2276           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2277           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2278           | -with-* | --with-* | -without-* | --without-* | --x)
2279             case "$ac_configure_args0 " in
2280               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2281             esac
2282             ;;
2283           -* ) ac_must_keep_next=true ;;
2284         esac
2285       fi
2286       as_fn_append ac_configure_args " '$ac_arg'"
2287       ;;
2288     esac
2289   done
2290 done
2291 { ac_configure_args0=; unset ac_configure_args0;}
2292 { ac_configure_args1=; unset ac_configure_args1;}
2293
2294 # When interrupted or exit'd, cleanup temporary files, and complete
2295 # config.log.  We remove comments because anyway the quotes in there
2296 # would cause problems or look ugly.
2297 # WARNING: Use '\'' to represent an apostrophe within the trap.
2298 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2299 trap 'exit_status=$?
2300   # Save into config.log some information that might help in debugging.
2301   {
2302     echo
2303
2304     cat <<\_ASBOX
2305 ## ---------------- ##
2306 ## Cache variables. ##
2307 ## ---------------- ##
2308 _ASBOX
2309     echo
2310     # The following way of writing the cache mishandles newlines in values,
2311 (
2312   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2313     eval ac_val=\$$ac_var
2314     case $ac_val in #(
2315     *${as_nl}*)
2316       case $ac_var in #(
2317       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2318 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2319       esac
2320       case $ac_var in #(
2321       _ | IFS | as_nl) ;; #(
2322       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2323       *) { eval $ac_var=; unset $ac_var;} ;;
2324       esac ;;
2325     esac
2326   done
2327   (set) 2>&1 |
2328     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2329     *${as_nl}ac_space=\ *)
2330       sed -n \
2331         "s/'\''/'\''\\\\'\'''\''/g;
2332           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2333       ;; #(
2334     *)
2335       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2336       ;;
2337     esac |
2338     sort
2339 )
2340     echo
2341
2342     cat <<\_ASBOX
2343 ## ----------------- ##
2344 ## Output variables. ##
2345 ## ----------------- ##
2346 _ASBOX
2347     echo
2348     for ac_var in $ac_subst_vars
2349     do
2350       eval ac_val=\$$ac_var
2351       case $ac_val in
2352       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2353       esac
2354       $as_echo "$ac_var='\''$ac_val'\''"
2355     done | sort
2356     echo
2357
2358     if test -n "$ac_subst_files"; then
2359       cat <<\_ASBOX
2360 ## ------------------- ##
2361 ## File substitutions. ##
2362 ## ------------------- ##
2363 _ASBOX
2364       echo
2365       for ac_var in $ac_subst_files
2366       do
2367         eval ac_val=\$$ac_var
2368         case $ac_val in
2369         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2370         esac
2371         $as_echo "$ac_var='\''$ac_val'\''"
2372       done | sort
2373       echo
2374     fi
2375
2376     if test -s confdefs.h; then
2377       cat <<\_ASBOX
2378 ## ----------- ##
2379 ## confdefs.h. ##
2380 ## ----------- ##
2381 _ASBOX
2382       echo
2383       cat confdefs.h
2384       echo
2385     fi
2386     test "$ac_signal" != 0 &&
2387       $as_echo "$as_me: caught signal $ac_signal"
2388     $as_echo "$as_me: exit $exit_status"
2389   } >&5
2390   rm -f core *.core core.conftest.* &&
2391     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2392     exit $exit_status
2393 ' 0
2394 for ac_signal in 1 2 13 15; do
2395   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2396 done
2397 ac_signal=0
2398
2399 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2400 rm -f -r conftest* confdefs.h
2401
2402 $as_echo "/* confdefs.h */" > confdefs.h
2403
2404 # Predefined preprocessor variables.
2405
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_NAME "$PACKAGE_NAME"
2408 _ACEOF
2409
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2412 _ACEOF
2413
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2416 _ACEOF
2417
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_STRING "$PACKAGE_STRING"
2420 _ACEOF
2421
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2424 _ACEOF
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_URL "$PACKAGE_URL"
2428 _ACEOF
2429
2430
2431 # Let the site file select an alternate cache file if it wants to.
2432 # Prefer an explicitly selected file to automatically selected ones.
2433 ac_site_file1=NONE
2434 ac_site_file2=NONE
2435 if test -n "$CONFIG_SITE"; then
2436   ac_site_file1=$CONFIG_SITE
2437 elif test "x$prefix" != xNONE; then
2438   ac_site_file1=$prefix/share/config.site
2439   ac_site_file2=$prefix/etc/config.site
2440 else
2441   ac_site_file1=$ac_default_prefix/share/config.site
2442   ac_site_file2=$ac_default_prefix/etc/config.site
2443 fi
2444 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2445 do
2446   test "x$ac_site_file" = xNONE && continue
2447   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2448     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2449 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2450     sed 's/^/| /' "$ac_site_file" >&5
2451     . "$ac_site_file"
2452   fi
2453 done
2454
2455 if test -r "$cache_file"; then
2456   # Some versions of bash will fail to source /dev/null (special files
2457   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2458   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2459     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2460 $as_echo "$as_me: loading cache $cache_file" >&6;}
2461     case $cache_file in
2462       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2463       *)                      . "./$cache_file";;
2464     esac
2465   fi
2466 else
2467   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2468 $as_echo "$as_me: creating cache $cache_file" >&6;}
2469   >$cache_file
2470 fi
2471
2472 # Check that the precious variables saved in the cache have kept the same
2473 # value.
2474 ac_cache_corrupted=false
2475 for ac_var in $ac_precious_vars; do
2476   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2477   eval ac_new_set=\$ac_env_${ac_var}_set
2478   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2479   eval ac_new_val=\$ac_env_${ac_var}_value
2480   case $ac_old_set,$ac_new_set in
2481     set,)
2482       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2483 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2484       ac_cache_corrupted=: ;;
2485     ,set)
2486       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2487 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2488       ac_cache_corrupted=: ;;
2489     ,);;
2490     *)
2491       if test "x$ac_old_val" != "x$ac_new_val"; then
2492         # differences in whitespace do not lead to failure.
2493         ac_old_val_w=`echo x $ac_old_val`
2494         ac_new_val_w=`echo x $ac_new_val`
2495         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2496           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2497 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2498           ac_cache_corrupted=:
2499         else
2500           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2501 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2502           eval $ac_var=\$ac_old_val
2503         fi
2504         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2505 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2506         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2507 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2508       fi;;
2509   esac
2510   # Pass precious variables to config.status.
2511   if test "$ac_new_set" = set; then
2512     case $ac_new_val in
2513     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2514     *) ac_arg=$ac_var=$ac_new_val ;;
2515     esac
2516     case " $ac_configure_args " in
2517       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2518       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2519     esac
2520   fi
2521 done
2522 if $ac_cache_corrupted; then
2523   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2526 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2527   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2528 fi
2529 ## -------------------- ##
2530 ## Main body of script. ##
2531 ## -------------------- ##
2532
2533 ac_ext=c
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539
2540
2541 ac_aux_dir=
2542 for ac_dir in config "$srcdir"/config; do
2543   for ac_t in install-sh install.sh shtool; do
2544     if test -f "$ac_dir/$ac_t"; then
2545       ac_aux_dir=$ac_dir
2546       ac_install_sh="$ac_aux_dir/$ac_t -c"
2547       break 2
2548     fi
2549   done
2550 done
2551 if test -z "$ac_aux_dir"; then
2552   as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2553 fi
2554
2555 # These three variables are undocumented and unsupported,
2556 # and are intended to be withdrawn in a future Autoconf release.
2557 # They can cause serious problems if a builder's source tree is in a directory
2558 # whose full name contains unusual characters.
2559 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2560 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2561 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2562
2563
2564 ac_config_headers="$ac_config_headers config/config.h"
2565
2566
2567
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2569 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2570     # Check whether --enable-maintainer-mode was given.
2571 if test "${enable_maintainer_mode+set}" = set; then :
2572   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2573 else
2574   USE_MAINTAINER_MODE=no
2575 fi
2576
2577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2578 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2579    if test $USE_MAINTAINER_MODE = yes; then
2580   MAINTAINER_MODE_TRUE=
2581   MAINTAINER_MODE_FALSE='#'
2582 else
2583   MAINTAINER_MODE_TRUE='#'
2584   MAINTAINER_MODE_FALSE=
2585 fi
2586
2587   MAINT=$MAINTAINER_MODE_TRUE
2588
2589
2590
2591 #
2592 # On Mac OS X, some required header files come from other source packages;
2593 # allow specifying where those are.
2594 #
2595
2596 # Check whether --with-apple-libc-source was given.
2597 if test "${with_apple_libc_source+set}" = set; then :
2598   withval=$with_apple_libc_source; apple_libc_source_path=${withval}/pthreads
2599     APPLE_LIBC_SOURCE_PATH=-I$apple_libc_source_path
2600     CPPFLAGS="$CPPFLAGS -I$apple_libc_source_path"
2601 else
2602   APPLE_LIBC_SOURCE_PATH=
2603
2604 fi
2605
2606
2607
2608
2609 # Check whether --with-apple-xnu-source was given.
2610 if test "${with_apple_xnu_source+set}" = set; then :
2611   withval=$with_apple_xnu_source; apple_xnu_source_path=${withval}/libkern
2612     APPLE_XNU_SOURCE_PATH=-I$apple_xnu_source_path
2613     CPPFLAGS="$CPPFLAGS -I$apple_xnu_source_path"
2614 else
2615   APPLE_XNU_SOURCE_PATH=
2616
2617 fi
2618
2619
2620
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for System.framework/PrivateHeaders" >&5
2622 $as_echo_n "checking for System.framework/PrivateHeaders... " >&6; }
2623 if test "${dispatch_cv_system_privateheaders+set}" = set; then :
2624   $as_echo_n "(cached) " >&6
2625 else
2626   if test -d /System/Library/Frameworks/System.framework/PrivateHeaders; then :
2627   dispatch_cv_system_privateheaders=yes
2628 else
2629   dispatch_cv_system_privateheaders=no
2630 fi
2631
2632 fi
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dispatch_cv_system_privateheaders" >&5
2634 $as_echo "$dispatch_cv_system_privateheaders" >&6; }
2635 if test "x$dispatch_cv_system_privateheaders" != "xno"; then :
2636   CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/System.framework/PrivateHeaders"
2637
2638 fi
2639
2640 #
2641 # Try to build the legacy API only if specifically requested.
2642 #
2643 # Check whether --enable-legacy-api was given.
2644 if test "${enable_legacy_api+set}" = set; then :
2645   enableval=$enable_legacy_api;
2646 fi
2647
2648
2649 if test "x$enable_legacy_api" != "xyes"; then :
2650   use_legacy_api=false
2651
2652 $as_echo "#define DISPATCH_NO_LEGACY 1" >>confdefs.h
2653
2654 else
2655   use_legacy_api=true
2656
2657 fi
2658  if $use_legacy_api; then
2659   USE_LEGACY_API_TRUE=
2660   USE_LEGACY_API_FALSE='#'
2661 else
2662   USE_LEGACY_API_TRUE='#'
2663   USE_LEGACY_API_FALSE=
2664 fi
2665
2666
2667 #
2668 # On Mac OS X Snow Leopard, libpispatch_init is automatically invoked during
2669 # libsyscall process setup.  On other systems, it is tagged as a library
2670 # constructor to be run by automatically by the runtime linker.
2671 #
2672 # Check whether --enable-libdispatch-init-constructor was given.
2673 if test "${enable_libdispatch_init_constructor+set}" = set; then :
2674   enableval=$enable_libdispatch_init_constructor;
2675 fi
2676
2677
2678 if test "x$enable_libdispatch_init_constructor" != "xno"; then :
2679
2680 $as_echo "#define USE_LIBDISPATCH_INIT_CONSTRUCTOR 1" >>confdefs.h
2681
2682
2683 fi
2684
2685 #
2686 # Whether or not to include/reference a crashreporter symbol.
2687 #
2688 # Check whether --enable-apple-crashreporter-info was given.
2689 if test "${enable_apple_crashreporter_info+set}" = set; then :
2690   enableval=$enable_apple_crashreporter_info;
2691 fi
2692
2693
2694 if test "x$enable_apple_crashreporter_info" = "xyes"; then :
2695
2696 $as_echo "#define USE_APPLE_CRASHREPORTER_INFO 1" >>confdefs.h
2697
2698
2699 fi
2700
2701 #
2702 # libdispatch has micro-optimized and deeply personal knowledge of Mac OS
2703 # implementation details.  Only enable this if explicitly requested, as it
2704 # will lead to data corruption if applied on systems violating its
2705 # expectations.
2706 #
2707 # Check whether --enable-apple-tsd-optimizations was given.
2708 if test "${enable_apple_tsd_optimizations+set}" = set; then :
2709   enableval=$enable_apple_tsd_optimizations;
2710 fi
2711
2712
2713 if test "x$enable_apple_tsd_optimizations" = "xyes"; then :
2714
2715 $as_echo "#define USE_APPLE_TSD_OPTIMIZATIONS 1" >>confdefs.h
2716
2717
2718 fi
2719
2720 # Check whether --enable-apple-semaphore-optimizations was given.
2721 if test "${enable_apple_semaphore_optimizations+set}" = set; then :
2722   enableval=$enable_apple_semaphore_optimizations;
2723 fi
2724
2725
2726 if test "x$enable_apple_semaphore_optimizations" = "xyes"; then :
2727
2728 $as_echo "#define USE_APPLE_SEMAPHORE_OPTIMIZATIONS 1" >>confdefs.h
2729
2730
2731 fi
2732
2733 ac_ext=c
2734 ac_cpp='$CPP $CPPFLAGS'
2735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738 if test -n "$ac_tool_prefix"; then
2739   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2740 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if test "${ac_cv_prog_CC+set}" = set; then :
2744   $as_echo_n "(cached) " >&6
2745 else
2746   if test -n "$CC"; then
2747   ac_cv_prog_CC="$CC" # Let the user override the test.
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2751 do
2752   IFS=$as_save_IFS
2753   test -z "$as_dir" && as_dir=.
2754     for ac_exec_ext in '' $ac_executable_extensions; do
2755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758     break 2
2759   fi
2760 done
2761   done
2762 IFS=$as_save_IFS
2763
2764 fi
2765 fi
2766 CC=$ac_cv_prog_CC
2767 if test -n "$CC"; then
2768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2769 $as_echo "$CC" >&6; }
2770 else
2771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772 $as_echo "no" >&6; }
2773 fi
2774
2775
2776 fi
2777 if test -z "$ac_cv_prog_CC"; then
2778   ac_ct_CC=$CC
2779   # Extract the first word of "gcc", so it can be a program name with args.
2780 set dummy gcc; ac_word=$2
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782 $as_echo_n "checking for $ac_word... " >&6; }
2783 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2784   $as_echo_n "(cached) " >&6
2785 else
2786   if test -n "$ac_ct_CC"; then
2787   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792   IFS=$as_save_IFS
2793   test -z "$as_dir" && as_dir=.
2794     for ac_exec_ext in '' $ac_executable_extensions; do
2795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796     ac_cv_prog_ac_ct_CC="gcc"
2797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798     break 2
2799   fi
2800 done
2801   done
2802 IFS=$as_save_IFS
2803
2804 fi
2805 fi
2806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2807 if test -n "$ac_ct_CC"; then
2808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2809 $as_echo "$ac_ct_CC" >&6; }
2810 else
2811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812 $as_echo "no" >&6; }
2813 fi
2814
2815   if test "x$ac_ct_CC" = x; then
2816     CC=""
2817   else
2818     case $cross_compiling:$ac_tool_warned in
2819 yes:)
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2822 ac_tool_warned=yes ;;
2823 esac
2824     CC=$ac_ct_CC
2825   fi
2826 else
2827   CC="$ac_cv_prog_CC"
2828 fi
2829
2830 if test -z "$CC"; then
2831           if test -n "$ac_tool_prefix"; then
2832     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2833 set dummy ${ac_tool_prefix}cc; ac_word=$2
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835 $as_echo_n "checking for $ac_word... " >&6; }
2836 if test "${ac_cv_prog_CC+set}" = set; then :
2837   $as_echo_n "(cached) " >&6
2838 else
2839   if test -n "$CC"; then
2840   ac_cv_prog_CC="$CC" # Let the user override the test.
2841 else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2844 do
2845   IFS=$as_save_IFS
2846   test -z "$as_dir" && as_dir=.
2847     for ac_exec_ext in '' $ac_executable_extensions; do
2848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849     ac_cv_prog_CC="${ac_tool_prefix}cc"
2850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2851     break 2
2852   fi
2853 done
2854   done
2855 IFS=$as_save_IFS
2856
2857 fi
2858 fi
2859 CC=$ac_cv_prog_CC
2860 if test -n "$CC"; then
2861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2862 $as_echo "$CC" >&6; }
2863 else
2864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 $as_echo "no" >&6; }
2866 fi
2867
2868
2869   fi
2870 fi
2871 if test -z "$CC"; then
2872   # Extract the first word of "cc", so it can be a program name with args.
2873 set dummy cc; ac_word=$2
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875 $as_echo_n "checking for $ac_word... " >&6; }
2876 if test "${ac_cv_prog_CC+set}" = set; then :
2877   $as_echo_n "(cached) " >&6
2878 else
2879   if test -n "$CC"; then
2880   ac_cv_prog_CC="$CC" # Let the user override the test.
2881 else
2882   ac_prog_rejected=no
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886   IFS=$as_save_IFS
2887   test -z "$as_dir" && as_dir=.
2888     for ac_exec_ext in '' $ac_executable_extensions; do
2889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2890     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2891        ac_prog_rejected=yes
2892        continue
2893      fi
2894     ac_cv_prog_CC="cc"
2895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896     break 2
2897   fi
2898 done
2899   done
2900 IFS=$as_save_IFS
2901
2902 if test $ac_prog_rejected = yes; then
2903   # We found a bogon in the path, so make sure we never use it.
2904   set dummy $ac_cv_prog_CC
2905   shift
2906   if test $# != 0; then
2907     # We chose a different compiler from the bogus one.
2908     # However, it has the same basename, so the bogon will be chosen
2909     # first if we set CC to just the basename; use the full file name.
2910     shift
2911     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2912   fi
2913 fi
2914 fi
2915 fi
2916 CC=$ac_cv_prog_CC
2917 if test -n "$CC"; then
2918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2919 $as_echo "$CC" >&6; }
2920 else
2921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2923 fi
2924
2925
2926 fi
2927 if test -z "$CC"; then
2928   if test -n "$ac_tool_prefix"; then
2929   for ac_prog in cl.exe
2930   do
2931     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2932 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if test "${ac_cv_prog_CC+set}" = set; then :
2936   $as_echo_n "(cached) " >&6
2937 else
2938   if test -n "$CC"; then
2939   ac_cv_prog_CC="$CC" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2943 do
2944   IFS=$as_save_IFS
2945   test -z "$as_dir" && as_dir=.
2946     for ac_exec_ext in '' $ac_executable_extensions; do
2947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950     break 2
2951   fi
2952 done
2953   done
2954 IFS=$as_save_IFS
2955
2956 fi
2957 fi
2958 CC=$ac_cv_prog_CC
2959 if test -n "$CC"; then
2960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2961 $as_echo "$CC" >&6; }
2962 else
2963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2965 fi
2966
2967
2968     test -n "$CC" && break
2969   done
2970 fi
2971 if test -z "$CC"; then
2972   ac_ct_CC=$CC
2973   for ac_prog in cl.exe
2974 do
2975   # Extract the first word of "$ac_prog", so it can be a program name with args.
2976 set dummy $ac_prog; ac_word=$2
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2980   $as_echo_n "(cached) " >&6
2981 else
2982   if test -n "$ac_ct_CC"; then
2983   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2987 do
2988   IFS=$as_save_IFS
2989   test -z "$as_dir" && as_dir=.
2990     for ac_exec_ext in '' $ac_executable_extensions; do
2991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992     ac_cv_prog_ac_ct_CC="$ac_prog"
2993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994     break 2
2995   fi
2996 done
2997   done
2998 IFS=$as_save_IFS
2999
3000 fi
3001 fi
3002 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3003 if test -n "$ac_ct_CC"; then
3004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3005 $as_echo "$ac_ct_CC" >&6; }
3006 else
3007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008 $as_echo "no" >&6; }
3009 fi
3010
3011
3012   test -n "$ac_ct_CC" && break
3013 done
3014
3015   if test "x$ac_ct_CC" = x; then
3016     CC=""
3017   else
3018     case $cross_compiling:$ac_tool_warned in
3019 yes:)
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3022 ac_tool_warned=yes ;;
3023 esac
3024     CC=$ac_ct_CC
3025   fi
3026 fi
3027
3028 fi
3029
3030
3031 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3033 as_fn_error "no acceptable C compiler found in \$PATH
3034 See \`config.log' for more details." "$LINENO" 5; }
3035
3036 # Provide some information about the compiler.
3037 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3038 set X $ac_compile
3039 ac_compiler=$2
3040 for ac_option in --version -v -V -qversion; do
3041   { { ac_try="$ac_compiler $ac_option >&5"
3042 case "(($ac_try" in
3043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044   *) ac_try_echo=$ac_try;;
3045 esac
3046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3047 $as_echo "$ac_try_echo"; } >&5
3048   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3049   ac_status=$?
3050   if test -s conftest.err; then
3051     sed '10a\
3052 ... rest of stderr output deleted ...
3053          10q' conftest.err >conftest.er1
3054     cat conftest.er1 >&5
3055   fi
3056   rm -f conftest.er1 conftest.err
3057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058   test $ac_status = 0; }
3059 done
3060
3061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3062 /* end confdefs.h.  */
3063
3064 int
3065 main ()
3066 {
3067
3068   ;
3069   return 0;
3070 }
3071 _ACEOF
3072 ac_clean_files_save=$ac_clean_files
3073 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3074 # Try to create an executable without -o first, disregard a.out.
3075 # It will help us diagnose broken compilers, and finding out an intuition
3076 # of exeext.
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3078 $as_echo_n "checking whether the C compiler works... " >&6; }
3079 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3080
3081 # The possible output files:
3082 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3083
3084 ac_rmfiles=
3085 for ac_file in $ac_files
3086 do
3087   case $ac_file in
3088     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3089     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3090   esac
3091 done
3092 rm -f $ac_rmfiles
3093
3094 if { { ac_try="$ac_link_default"
3095 case "(($ac_try" in
3096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097   *) ac_try_echo=$ac_try;;
3098 esac
3099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3100 $as_echo "$ac_try_echo"; } >&5
3101   (eval "$ac_link_default") 2>&5
3102   ac_status=$?
3103   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3104   test $ac_status = 0; }; then :
3105   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3106 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3107 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3108 # so that the user can short-circuit this test for compilers unknown to
3109 # Autoconf.
3110 for ac_file in $ac_files ''
3111 do
3112   test -f "$ac_file" || continue
3113   case $ac_file in
3114     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3115         ;;
3116     [ab].out )
3117         # We found the default executable, but exeext='' is most
3118         # certainly right.
3119         break;;
3120     *.* )
3121         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3122         then :; else
3123            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3124         fi
3125         # We set ac_cv_exeext here because the later test for it is not
3126         # safe: cross compilers may not add the suffix if given an `-o'
3127         # argument, so we may need to know it at that point already.
3128         # Even if this section looks crufty: it has the advantage of
3129         # actually working.
3130         break;;
3131     * )
3132         break;;
3133   esac
3134 done
3135 test "$ac_cv_exeext" = no && ac_cv_exeext=
3136
3137 else
3138   ac_file=''
3139 fi
3140 if test -z "$ac_file"; then :
3141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3143 $as_echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3145
3146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148 { as_fn_set_status 77
3149 as_fn_error "C compiler cannot create executables
3150 See \`config.log' for more details." "$LINENO" 5; }; }
3151 else
3152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3153 $as_echo "yes" >&6; }
3154 fi
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3156 $as_echo_n "checking for C compiler default output file name... " >&6; }
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3158 $as_echo "$ac_file" >&6; }
3159 ac_exeext=$ac_cv_exeext
3160
3161 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3162 ac_clean_files=$ac_clean_files_save
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3164 $as_echo_n "checking for suffix of executables... " >&6; }
3165 if { { ac_try="$ac_link"
3166 case "(($ac_try" in
3167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168   *) ac_try_echo=$ac_try;;
3169 esac
3170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171 $as_echo "$ac_try_echo"; } >&5
3172   (eval "$ac_link") 2>&5
3173   ac_status=$?
3174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3175   test $ac_status = 0; }; then :
3176   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3177 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3178 # work properly (i.e., refer to `conftest.exe'), while it won't with
3179 # `rm'.
3180 for ac_file in conftest.exe conftest conftest.*; do
3181   test -f "$ac_file" || continue
3182   case $ac_file in
3183     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3184     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3185           break;;
3186     * ) break;;
3187   esac
3188 done
3189 else
3190   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 as_fn_error "cannot compute suffix of executables: cannot compile and link
3193 See \`config.log' for more details." "$LINENO" 5; }
3194 fi
3195 rm -f conftest conftest$ac_cv_exeext
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3197 $as_echo "$ac_cv_exeext" >&6; }
3198
3199 rm -f conftest.$ac_ext
3200 EXEEXT=$ac_cv_exeext
3201 ac_exeext=$EXEEXT
3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203 /* end confdefs.h.  */
3204 #include <stdio.h>
3205 int
3206 main ()
3207 {
3208 FILE *f = fopen ("conftest.out", "w");
3209  return ferror (f) || fclose (f) != 0;
3210
3211   ;
3212   return 0;
3213 }
3214 _ACEOF
3215 ac_clean_files="$ac_clean_files conftest.out"
3216 # Check that the compiler produces executables we can run.  If not, either
3217 # the compiler is broken, or we cross compile.
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3219 $as_echo_n "checking whether we are cross compiling... " >&6; }
3220 if test "$cross_compiling" != yes; then
3221   { { ac_try="$ac_link"
3222 case "(($ac_try" in
3223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224   *) ac_try_echo=$ac_try;;
3225 esac
3226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3227 $as_echo "$ac_try_echo"; } >&5
3228   (eval "$ac_link") 2>&5
3229   ac_status=$?
3230   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3231   test $ac_status = 0; }
3232   if { ac_try='./conftest$ac_cv_exeext'
3233   { { case "(($ac_try" in
3234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235   *) ac_try_echo=$ac_try;;
3236 esac
3237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3238 $as_echo "$ac_try_echo"; } >&5
3239   (eval "$ac_try") 2>&5
3240   ac_status=$?
3241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3242   test $ac_status = 0; }; }; then
3243     cross_compiling=no
3244   else
3245     if test "$cross_compiling" = maybe; then
3246         cross_compiling=yes
3247     else
3248         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250 as_fn_error "cannot run C compiled programs.
3251 If you meant to cross compile, use \`--host'.
3252 See \`config.log' for more details." "$LINENO" 5; }
3253     fi
3254   fi
3255 fi
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3257 $as_echo "$cross_compiling" >&6; }
3258
3259 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3260 ac_clean_files=$ac_clean_files_save
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3262 $as_echo_n "checking for suffix of object files... " >&6; }
3263 if test "${ac_cv_objext+set}" = set; then :
3264   $as_echo_n "(cached) " >&6
3265 else
3266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3267 /* end confdefs.h.  */
3268
3269 int
3270 main ()
3271 {
3272
3273   ;
3274   return 0;
3275 }
3276 _ACEOF
3277 rm -f conftest.o conftest.obj
3278 if { { ac_try="$ac_compile"
3279 case "(($ac_try" in
3280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281   *) ac_try_echo=$ac_try;;
3282 esac
3283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3284 $as_echo "$ac_try_echo"; } >&5
3285   (eval "$ac_compile") 2>&5
3286   ac_status=$?
3287   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3288   test $ac_status = 0; }; then :
3289   for ac_file in conftest.o conftest.obj conftest.*; do
3290   test -f "$ac_file" || continue;
3291   case $ac_file in
3292     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3293     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3294        break;;
3295   esac
3296 done
3297 else
3298   $as_echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3300
3301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303 as_fn_error "cannot compute suffix of object files: cannot compile
3304 See \`config.log' for more details." "$LINENO" 5; }
3305 fi
3306 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3307 fi
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3309 $as_echo "$ac_cv_objext" >&6; }
3310 OBJEXT=$ac_cv_objext
3311 ac_objext=$OBJEXT
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3313 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3314 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3315   $as_echo_n "(cached) " >&6
3316 else
3317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h.  */
3319
3320 int
3321 main ()
3322 {
3323 #ifndef __GNUC__
3324        choke me
3325 #endif
3326
3327   ;
3328   return 0;
3329 }
3330 _ACEOF
3331 if ac_fn_c_try_compile "$LINENO"; then :
3332   ac_compiler_gnu=yes
3333 else
3334   ac_compiler_gnu=no
3335 fi
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3338
3339 fi
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3341 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3342 if test $ac_compiler_gnu = yes; then
3343   GCC=yes
3344 else
3345   GCC=
3346 fi
3347 ac_test_CFLAGS=${CFLAGS+set}
3348 ac_save_CFLAGS=$CFLAGS
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3350 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3351 if test "${ac_cv_prog_cc_g+set}" = set; then :
3352   $as_echo_n "(cached) " >&6
3353 else
3354   ac_save_c_werror_flag=$ac_c_werror_flag
3355    ac_c_werror_flag=yes
3356    ac_cv_prog_cc_g=no
3357    CFLAGS="-g"
3358    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h.  */
3360
3361 int
3362 main ()
3363 {
3364
3365   ;
3366   return 0;
3367 }
3368 _ACEOF
3369 if ac_fn_c_try_compile "$LINENO"; then :
3370   ac_cv_prog_cc_g=yes
3371 else
3372   CFLAGS=""
3373       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h.  */
3375
3376 int
3377 main ()
3378 {
3379
3380   ;
3381   return 0;
3382 }
3383 _ACEOF
3384 if ac_fn_c_try_compile "$LINENO"; then :
3385
3386 else
3387   ac_c_werror_flag=$ac_save_c_werror_flag
3388          CFLAGS="-g"
3389          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h.  */
3391
3392 int
3393 main ()
3394 {
3395
3396   ;
3397   return 0;
3398 }
3399 _ACEOF
3400 if ac_fn_c_try_compile "$LINENO"; then :
3401   ac_cv_prog_cc_g=yes
3402 fi
3403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3404 fi
3405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3406 fi
3407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3408    ac_c_werror_flag=$ac_save_c_werror_flag
3409 fi
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3411 $as_echo "$ac_cv_prog_cc_g" >&6; }
3412 if test "$ac_test_CFLAGS" = set; then
3413   CFLAGS=$ac_save_CFLAGS
3414 elif test $ac_cv_prog_cc_g = yes; then
3415   if test "$GCC" = yes; then
3416     CFLAGS="-g -O2"
3417   else
3418     CFLAGS="-g"
3419   fi
3420 else
3421   if test "$GCC" = yes; then
3422     CFLAGS="-O2"
3423   else
3424     CFLAGS=
3425   fi
3426 fi
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3428 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3429 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3430   $as_echo_n "(cached) " >&6
3431 else
3432   ac_cv_prog_cc_c89=no
3433 ac_save_CC=$CC
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h.  */
3436 #include <stdarg.h>
3437 #include <stdio.h>
3438 #include <sys/types.h>
3439 #include <sys/stat.h>
3440 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3441 struct buf { int x; };
3442 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3443 static char *e (p, i)
3444      char **p;
3445      int i;
3446 {
3447   return p[i];
3448 }
3449 static char *f (char * (*g) (char **, int), char **p, ...)
3450 {
3451   char *s;
3452   va_list v;
3453   va_start (v,p);
3454   s = g (p, va_arg (v,int));
3455   va_end (v);
3456   return s;
3457 }
3458
3459 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3460    function prototypes and stuff, but not '\xHH' hex character constants.
3461    These don't provoke an error unfortunately, instead are silently treated
3462    as 'x'.  The following induces an error, until -std is added to get
3463    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3464    array size at least.  It's necessary to write '\x00'==0 to get something
3465    that's true only with -std.  */
3466 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3467
3468 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3469    inside strings and character constants.  */
3470 #define FOO(x) 'x'
3471 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3472
3473 int test (int i, double x);
3474 struct s1 {int (*f) (int a);};
3475 struct s2 {int (*f) (double a);};
3476 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3477 int argc;
3478 char **argv;
3479 int
3480 main ()
3481 {
3482 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3483   ;
3484   return 0;
3485 }
3486 _ACEOF
3487 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3488         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3489 do
3490   CC="$ac_save_CC $ac_arg"
3491   if ac_fn_c_try_compile "$LINENO"; then :
3492   ac_cv_prog_cc_c89=$ac_arg
3493 fi
3494 rm -f core conftest.err conftest.$ac_objext
3495   test "x$ac_cv_prog_cc_c89" != "xno" && break
3496 done
3497 rm -f conftest.$ac_ext
3498 CC=$ac_save_CC
3499
3500 fi
3501 # AC_CACHE_VAL
3502 case "x$ac_cv_prog_cc_c89" in
3503   x)
3504     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3505 $as_echo "none needed" >&6; } ;;
3506   xno)
3507     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3508 $as_echo "unsupported" >&6; } ;;
3509   *)
3510     CC="$CC $ac_cv_prog_cc_c89"
3511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3512 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3513 esac
3514 if test "x$ac_cv_prog_cc_c89" != xno; then :
3515
3516 fi
3517
3518 ac_ext=c
3519 ac_cpp='$CPP $CPPFLAGS'
3520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523
3524
3525 ac_ext=c
3526 ac_cpp='$CPP $CPPFLAGS'
3527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3531 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3532 # On Suns, sometimes $CPP names a directory.
3533 if test -n "$CPP" && test -d "$CPP"; then
3534   CPP=
3535 fi
3536 if test -z "$CPP"; then
3537   if test "${ac_cv_prog_CPP+set}" = set; then :
3538   $as_echo_n "(cached) " >&6
3539 else
3540       # Double quotes because CPP needs to be expanded
3541     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3542     do
3543       ac_preproc_ok=false
3544 for ac_c_preproc_warn_flag in '' yes
3545 do
3546   # Use a header file that comes with gcc, so configuring glibc
3547   # with a fresh cross-compiler works.
3548   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549   # <limits.h> exists even on freestanding compilers.
3550   # On the NeXT, cc -E runs the code through the compiler's parser,
3551   # not just through cpp. "Syntax error" is here to catch this case.
3552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h.  */
3554 #ifdef __STDC__
3555 # include <limits.h>
3556 #else
3557 # include <assert.h>
3558 #endif
3559                      Syntax error
3560 _ACEOF
3561 if ac_fn_c_try_cpp "$LINENO"; then :
3562
3563 else
3564   # Broken: fails on valid input.
3565 continue
3566 fi
3567 rm -f conftest.err conftest.$ac_ext
3568
3569   # OK, works on sane cases.  Now check whether nonexistent headers
3570   # can be detected and how.
3571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h.  */
3573 #include <ac_nonexistent.h>
3574 _ACEOF
3575 if ac_fn_c_try_cpp "$LINENO"; then :
3576   # Broken: success on invalid input.
3577 continue
3578 else
3579   # Passes both tests.
3580 ac_preproc_ok=:
3581 break
3582 fi
3583 rm -f conftest.err conftest.$ac_ext
3584
3585 done
3586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3587 rm -f conftest.err conftest.$ac_ext
3588 if $ac_preproc_ok; then :
3589   break
3590 fi
3591
3592     done
3593     ac_cv_prog_CPP=$CPP
3594
3595 fi
3596   CPP=$ac_cv_prog_CPP
3597 else
3598   ac_cv_prog_CPP=$CPP
3599 fi
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3601 $as_echo "$CPP" >&6; }
3602 ac_preproc_ok=false
3603 for ac_c_preproc_warn_flag in '' yes
3604 do
3605   # Use a header file that comes with gcc, so configuring glibc
3606   # with a fresh cross-compiler works.
3607   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3608   # <limits.h> exists even on freestanding compilers.
3609   # On the NeXT, cc -E runs the code through the compiler's parser,
3610   # not just through cpp. "Syntax error" is here to catch this case.
3611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h.  */
3613 #ifdef __STDC__
3614 # include <limits.h>
3615 #else
3616 # include <assert.h>
3617 #endif
3618                      Syntax error
3619 _ACEOF
3620 if ac_fn_c_try_cpp "$LINENO"; then :
3621
3622 else
3623   # Broken: fails on valid input.
3624 continue
3625 fi
3626 rm -f conftest.err conftest.$ac_ext
3627
3628   # OK, works on sane cases.  Now check whether nonexistent headers
3629   # can be detected and how.
3630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631 /* end confdefs.h.  */
3632 #include <ac_nonexistent.h>
3633 _ACEOF
3634 if ac_fn_c_try_cpp "$LINENO"; then :
3635   # Broken: success on invalid input.
3636 continue
3637 else
3638   # Passes both tests.
3639 ac_preproc_ok=:
3640 break
3641 fi
3642 rm -f conftest.err conftest.$ac_ext
3643
3644 done
3645 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3646 rm -f conftest.err conftest.$ac_ext
3647 if $ac_preproc_ok; then :
3648
3649 else
3650   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3652 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3653 See \`config.log' for more details." "$LINENO" 5; }
3654 fi
3655
3656 ac_ext=c
3657 ac_cpp='$CPP $CPPFLAGS'
3658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3661
3662
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3664 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3665 if test "${ac_cv_path_GREP+set}" = set; then :
3666   $as_echo_n "(cached) " >&6
3667 else
3668   if test -z "$GREP"; then
3669   ac_path_GREP_found=false
3670   # Loop through the user's path and test for each of PROGNAME-LIST
3671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3673 do
3674   IFS=$as_save_IFS
3675   test -z "$as_dir" && as_dir=.
3676     for ac_prog in grep ggrep; do
3677     for ac_exec_ext in '' $ac_executable_extensions; do
3678       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3679       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3680 # Check for GNU ac_path_GREP and select it if it is found.
3681   # Check for GNU $ac_path_GREP
3682 case `"$ac_path_GREP" --version 2>&1` in
3683 *GNU*)
3684   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3685 *)
3686   ac_count=0
3687   $as_echo_n 0123456789 >"conftest.in"
3688   while :
3689   do
3690     cat "conftest.in" "conftest.in" >"conftest.tmp"
3691     mv "conftest.tmp" "conftest.in"
3692     cp "conftest.in" "conftest.nl"
3693     $as_echo 'GREP' >> "conftest.nl"
3694     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3695     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3696     as_fn_arith $ac_count + 1 && ac_count=$as_val
3697     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3698       # Best one so far, save it but keep looking for a better one
3699       ac_cv_path_GREP="$ac_path_GREP"
3700       ac_path_GREP_max=$ac_count
3701     fi
3702     # 10*(2^10) chars as input seems more than enough
3703     test $ac_count -gt 10 && break
3704   done
3705   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3706 esac
3707
3708       $ac_path_GREP_found && break 3
3709     done
3710   done
3711   done
3712 IFS=$as_save_IFS
3713   if test -z "$ac_cv_path_GREP"; then
3714     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3715   fi
3716 else
3717   ac_cv_path_GREP=$GREP
3718 fi
3719
3720 fi
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3722 $as_echo "$ac_cv_path_GREP" >&6; }
3723  GREP="$ac_cv_path_GREP"
3724
3725
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3727 $as_echo_n "checking for egrep... " >&6; }
3728 if test "${ac_cv_path_EGREP+set}" = set; then :
3729   $as_echo_n "(cached) " >&6
3730 else
3731   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3732    then ac_cv_path_EGREP="$GREP -E"
3733    else
3734      if test -z "$EGREP"; then
3735   ac_path_EGREP_found=false
3736   # Loop through the user's path and test for each of PROGNAME-LIST
3737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3739 do
3740   IFS=$as_save_IFS
3741   test -z "$as_dir" && as_dir=.
3742     for ac_prog in egrep; do
3743     for ac_exec_ext in '' $ac_executable_extensions; do
3744       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3745       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3746 # Check for GNU ac_path_EGREP and select it if it is found.
3747   # Check for GNU $ac_path_EGREP
3748 case `"$ac_path_EGREP" --version 2>&1` in
3749 *GNU*)
3750   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3751 *)
3752   ac_count=0
3753   $as_echo_n 0123456789 >"conftest.in"
3754   while :
3755   do
3756     cat "conftest.in" "conftest.in" >"conftest.tmp"
3757     mv "conftest.tmp" "conftest.in"
3758     cp "conftest.in" "conftest.nl"
3759     $as_echo 'EGREP' >> "conftest.nl"
3760     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3761     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3762     as_fn_arith $ac_count + 1 && ac_count=$as_val
3763     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3764       # Best one so far, save it but keep looking for a better one
3765       ac_cv_path_EGREP="$ac_path_EGREP"
3766       ac_path_EGREP_max=$ac_count
3767     fi
3768     # 10*(2^10) chars as input seems more than enough
3769     test $ac_count -gt 10 && break
3770   done
3771   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3772 esac
3773
3774       $ac_path_EGREP_found && break 3
3775     done
3776   done
3777   done
3778 IFS=$as_save_IFS
3779   if test -z "$ac_cv_path_EGREP"; then
3780     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3781   fi
3782 else
3783   ac_cv_path_EGREP=$EGREP
3784 fi
3785
3786    fi
3787 fi
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3789 $as_echo "$ac_cv_path_EGREP" >&6; }
3790  EGREP="$ac_cv_path_EGREP"
3791
3792
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3794 $as_echo_n "checking for ANSI C header files... " >&6; }
3795 if test "${ac_cv_header_stdc+set}" = set; then :
3796   $as_echo_n "(cached) " >&6
3797 else
3798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h.  */
3800 #include <stdlib.h>
3801 #include <stdarg.h>
3802 #include <string.h>
3803 #include <float.h>
3804
3805 int
3806 main ()
3807 {
3808
3809   ;
3810   return 0;
3811 }
3812 _ACEOF
3813 if ac_fn_c_try_compile "$LINENO"; then :
3814   ac_cv_header_stdc=yes
3815 else
3816   ac_cv_header_stdc=no
3817 fi
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819
3820 if test $ac_cv_header_stdc = yes; then
3821   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h.  */
3824 #include <string.h>
3825
3826 _ACEOF
3827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3828   $EGREP "memchr" >/dev/null 2>&1; then :
3829
3830 else
3831   ac_cv_header_stdc=no
3832 fi
3833 rm -f conftest*
3834
3835 fi
3836
3837 if test $ac_cv_header_stdc = yes; then
3838   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h.  */
3841 #include <stdlib.h>
3842
3843 _ACEOF
3844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3845   $EGREP "free" >/dev/null 2>&1; then :
3846
3847 else
3848   ac_cv_header_stdc=no
3849 fi
3850 rm -f conftest*
3851
3852 fi
3853
3854 if test $ac_cv_header_stdc = yes; then
3855   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3856   if test "$cross_compiling" = yes; then :
3857   :
3858 else
3859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h.  */
3861 #include <ctype.h>
3862 #include <stdlib.h>
3863 #if ((' ' & 0x0FF) == 0x020)
3864 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3865 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3866 #else
3867 # define ISLOWER(c) \
3868                    (('a' <= (c) && (c) <= 'i') \
3869                      || ('j' <= (c) && (c) <= 'r') \
3870                      || ('s' <= (c) && (c) <= 'z'))
3871 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3872 #endif
3873
3874 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3875 int
3876 main ()
3877 {
3878   int i;
3879   for (i = 0; i < 256; i++)
3880     if (XOR (islower (i), ISLOWER (i))
3881         || toupper (i) != TOUPPER (i))
3882       return 2;
3883   return 0;
3884 }
3885 _ACEOF
3886 if ac_fn_c_try_run "$LINENO"; then :
3887
3888 else
3889   ac_cv_header_stdc=no
3890 fi
3891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3892   conftest.$ac_objext conftest.beam conftest.$ac_ext
3893 fi
3894
3895 fi
3896 fi
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3898 $as_echo "$ac_cv_header_stdc" >&6; }
3899 if test $ac_cv_header_stdc = yes; then
3900
3901 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3902
3903 fi
3904
3905 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3906 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3907                   inttypes.h stdint.h unistd.h
3908 do :
3909   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3910 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3911 "
3912 eval as_val=\$$as_ac_Header
3913    if test "x$as_val" = x""yes; then :
3914   cat >>confdefs.h <<_ACEOF
3915 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3916 _ACEOF
3917
3918 fi
3919
3920 done
3921
3922
3923
3924   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3925 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3926   MINIX=yes
3927 else
3928   MINIX=
3929 fi
3930
3931
3932   if test "$MINIX" = yes; then
3933
3934 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3935
3936
3937 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3938
3939
3940 $as_echo "#define _MINIX 1" >>confdefs.h
3941
3942   fi
3943
3944
3945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3946 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3947 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3948   $as_echo_n "(cached) " >&6
3949 else
3950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h.  */
3952
3953 #         define __EXTENSIONS__ 1
3954           $ac_includes_default
3955 int
3956 main ()
3957 {
3958
3959   ;
3960   return 0;
3961 }
3962 _ACEOF
3963 if ac_fn_c_try_compile "$LINENO"; then :
3964   ac_cv_safe_to_define___extensions__=yes
3965 else
3966   ac_cv_safe_to_define___extensions__=no
3967 fi
3968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 fi
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3971 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3972   test $ac_cv_safe_to_define___extensions__ = yes &&
3973     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3974
3975   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3976
3977   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3978
3979   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3980
3981   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3982
3983
3984 ac_ext=c
3985 ac_cpp='$CPP $CPPFLAGS'
3986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989 if test -n "$ac_tool_prefix"; then
3990   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3991 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3993 $as_echo_n "checking for $ac_word... " >&6; }
3994 if test "${ac_cv_prog_CC+set}" = set; then :
3995   $as_echo_n "(cached) " >&6
3996 else
3997   if test -n "$CC"; then
3998   ac_cv_prog_CC="$CC" # Let the user override the test.
3999 else
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4002 do
4003   IFS=$as_save_IFS
4004   test -z "$as_dir" && as_dir=.
4005     for ac_exec_ext in '' $ac_executable_extensions; do
4006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009     break 2
4010   fi
4011 done
4012   done
4013 IFS=$as_save_IFS
4014
4015 fi
4016 fi
4017 CC=$ac_cv_prog_CC
4018 if test -n "$CC"; then
4019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4020 $as_echo "$CC" >&6; }
4021 else
4022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4024 fi
4025
4026
4027 fi
4028 if test -z "$ac_cv_prog_CC"; then
4029   ac_ct_CC=$CC
4030   # Extract the first word of "gcc", so it can be a program name with args.
4031 set dummy gcc; ac_word=$2
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4033 $as_echo_n "checking for $ac_word... " >&6; }
4034 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4035   $as_echo_n "(cached) " >&6
4036 else
4037   if test -n "$ac_ct_CC"; then
4038   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4039 else
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH
4042 do
4043   IFS=$as_save_IFS
4044   test -z "$as_dir" && as_dir=.
4045     for ac_exec_ext in '' $ac_executable_extensions; do
4046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4047     ac_cv_prog_ac_ct_CC="gcc"
4048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4049     break 2
4050   fi
4051 done
4052   done
4053 IFS=$as_save_IFS
4054
4055 fi
4056 fi
4057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4058 if test -n "$ac_ct_CC"; then
4059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4060 $as_echo "$ac_ct_CC" >&6; }
4061 else
4062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063 $as_echo "no" >&6; }
4064 fi
4065
4066   if test "x$ac_ct_CC" = x; then
4067     CC=""
4068   else
4069     case $cross_compiling:$ac_tool_warned in
4070 yes:)
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4073 ac_tool_warned=yes ;;
4074 esac
4075     CC=$ac_ct_CC
4076   fi
4077 else
4078   CC="$ac_cv_prog_CC"
4079 fi
4080
4081 if test -z "$CC"; then
4082           if test -n "$ac_tool_prefix"; then
4083     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4084 set dummy ${ac_tool_prefix}cc; ac_word=$2
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086 $as_echo_n "checking for $ac_word... " >&6; }
4087 if test "${ac_cv_prog_CC+set}" = set; then :
4088   $as_echo_n "(cached) " >&6
4089 else
4090   if test -n "$CC"; then
4091   ac_cv_prog_CC="$CC" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4095 do
4096   IFS=$as_save_IFS
4097   test -z "$as_dir" && as_dir=.
4098     for ac_exec_ext in '' $ac_executable_extensions; do
4099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4100     ac_cv_prog_CC="${ac_tool_prefix}cc"
4101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4102     break 2
4103   fi
4104 done
4105   done
4106 IFS=$as_save_IFS
4107
4108 fi
4109 fi
4110 CC=$ac_cv_prog_CC
4111 if test -n "$CC"; then
4112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4113 $as_echo "$CC" >&6; }
4114 else
4115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 $as_echo "no" >&6; }
4117 fi
4118
4119
4120   fi
4121 fi
4122 if test -z "$CC"; then
4123   # Extract the first word of "cc", so it can be a program name with args.
4124 set dummy cc; ac_word=$2
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4126 $as_echo_n "checking for $ac_word... " >&6; }
4127 if test "${ac_cv_prog_CC+set}" = set; then :
4128   $as_echo_n "(cached) " >&6
4129 else
4130   if test -n "$CC"; then
4131   ac_cv_prog_CC="$CC" # Let the user override the test.
4132 else
4133   ac_prog_rejected=no
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4136 do
4137   IFS=$as_save_IFS
4138   test -z "$as_dir" && as_dir=.
4139     for ac_exec_ext in '' $ac_executable_extensions; do
4140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4141     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4142        ac_prog_rejected=yes
4143        continue
4144      fi
4145     ac_cv_prog_CC="cc"
4146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147     break 2
4148   fi
4149 done
4150   done
4151 IFS=$as_save_IFS
4152
4153 if test $ac_prog_rejected = yes; then
4154   # We found a bogon in the path, so make sure we never use it.
4155   set dummy $ac_cv_prog_CC
4156   shift
4157   if test $# != 0; then
4158     # We chose a different compiler from the bogus one.
4159     # However, it has the same basename, so the bogon will be chosen
4160     # first if we set CC to just the basename; use the full file name.
4161     shift
4162     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4163   fi
4164 fi
4165 fi
4166 fi
4167 CC=$ac_cv_prog_CC
4168 if test -n "$CC"; then
4169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4170 $as_echo "$CC" >&6; }
4171 else
4172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4174 fi
4175
4176
4177 fi
4178 if test -z "$CC"; then
4179   if test -n "$ac_tool_prefix"; then
4180   for ac_prog in cl.exe
4181   do
4182     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4185 $as_echo_n "checking for $ac_word... " >&6; }
4186 if test "${ac_cv_prog_CC+set}" = set; then :
4187   $as_echo_n "(cached) " >&6
4188 else
4189   if test -n "$CC"; then
4190   ac_cv_prog_CC="$CC" # Let the user override the test.
4191 else
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH
4194 do
4195   IFS=$as_save_IFS
4196   test -z "$as_dir" && as_dir=.
4197     for ac_exec_ext in '' $ac_executable_extensions; do
4198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4199     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4201     break 2
4202   fi
4203 done
4204   done
4205 IFS=$as_save_IFS
4206
4207 fi
4208 fi
4209 CC=$ac_cv_prog_CC
4210 if test -n "$CC"; then
4211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4212 $as_echo "$CC" >&6; }
4213 else
4214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4216 fi
4217
4218
4219     test -n "$CC" && break
4220   done
4221 fi
4222 if test -z "$CC"; then
4223   ac_ct_CC=$CC
4224   for ac_prog in cl.exe
4225 do
4226   # Extract the first word of "$ac_prog", so it can be a program name with args.
4227 set dummy $ac_prog; ac_word=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4231   $as_echo_n "(cached) " >&6
4232 else
4233   if test -n "$ac_ct_CC"; then
4234   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4235 else
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4238 do
4239   IFS=$as_save_IFS
4240   test -z "$as_dir" && as_dir=.
4241     for ac_exec_ext in '' $ac_executable_extensions; do
4242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4243     ac_cv_prog_ac_ct_CC="$ac_prog"
4244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4245     break 2
4246   fi
4247 done
4248   done
4249 IFS=$as_save_IFS
4250
4251 fi
4252 fi
4253 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4254 if test -n "$ac_ct_CC"; then
4255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4256 $as_echo "$ac_ct_CC" >&6; }
4257 else
4258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4260 fi
4261
4262
4263   test -n "$ac_ct_CC" && break
4264 done
4265
4266   if test "x$ac_ct_CC" = x; then
4267     CC=""
4268   else
4269     case $cross_compiling:$ac_tool_warned in
4270 yes:)
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4273 ac_tool_warned=yes ;;
4274 esac
4275     CC=$ac_ct_CC
4276   fi
4277 fi
4278
4279 fi
4280
4281
4282 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4284 as_fn_error "no acceptable C compiler found in \$PATH
4285 See \`config.log' for more details." "$LINENO" 5; }
4286
4287 # Provide some information about the compiler.
4288 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4289 set X $ac_compile
4290 ac_compiler=$2
4291 for ac_option in --version -v -V -qversion; do
4292   { { ac_try="$ac_compiler $ac_option >&5"
4293 case "(($ac_try" in
4294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295   *) ac_try_echo=$ac_try;;
4296 esac
4297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 $as_echo "$ac_try_echo"; } >&5
4299   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4300   ac_status=$?
4301   if test -s conftest.err; then
4302     sed '10a\
4303 ... rest of stderr output deleted ...
4304          10q' conftest.err >conftest.er1
4305     cat conftest.er1 >&5
4306   fi
4307   rm -f conftest.er1 conftest.err
4308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4309   test $ac_status = 0; }
4310 done
4311
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4313 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4314 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4315   $as_echo_n "(cached) " >&6
4316 else
4317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h.  */
4319
4320 int
4321 main ()
4322 {
4323 #ifndef __GNUC__
4324        choke me
4325 #endif
4326
4327   ;
4328   return 0;
4329 }
4330 _ACEOF
4331 if ac_fn_c_try_compile "$LINENO"; then :
4332   ac_compiler_gnu=yes
4333 else
4334   ac_compiler_gnu=no
4335 fi
4336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4338
4339 fi
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4341 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4342 if test $ac_compiler_gnu = yes; then
4343   GCC=yes
4344 else
4345   GCC=
4346 fi
4347 ac_test_CFLAGS=${CFLAGS+set}
4348 ac_save_CFLAGS=$CFLAGS
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4350 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4351 if test "${ac_cv_prog_cc_g+set}" = set; then :
4352   $as_echo_n "(cached) " >&6
4353 else
4354   ac_save_c_werror_flag=$ac_c_werror_flag
4355    ac_c_werror_flag=yes
4356    ac_cv_prog_cc_g=no
4357    CFLAGS="-g"
4358    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h.  */
4360
4361 int
4362 main ()
4363 {
4364
4365   ;
4366   return 0;
4367 }
4368 _ACEOF
4369 if ac_fn_c_try_compile "$LINENO"; then :
4370   ac_cv_prog_cc_g=yes
4371 else
4372   CFLAGS=""
4373       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h.  */
4375
4376 int
4377 main ()
4378 {
4379
4380   ;
4381   return 0;
4382 }
4383 _ACEOF
4384 if ac_fn_c_try_compile "$LINENO"; then :
4385
4386 else
4387   ac_c_werror_flag=$ac_save_c_werror_flag
4388          CFLAGS="-g"
4389          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h.  */
4391
4392 int
4393 main ()
4394 {
4395
4396   ;
4397   return 0;
4398 }
4399 _ACEOF
4400 if ac_fn_c_try_compile "$LINENO"; then :
4401   ac_cv_prog_cc_g=yes
4402 fi
4403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404 fi
4405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406 fi
4407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408    ac_c_werror_flag=$ac_save_c_werror_flag
4409 fi
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4411 $as_echo "$ac_cv_prog_cc_g" >&6; }
4412 if test "$ac_test_CFLAGS" = set; then
4413   CFLAGS=$ac_save_CFLAGS
4414 elif test $ac_cv_prog_cc_g = yes; then
4415   if test "$GCC" = yes; then
4416     CFLAGS="-g -O2"
4417   else
4418     CFLAGS="-g"
4419   fi
4420 else
4421   if test "$GCC" = yes; then
4422     CFLAGS="-O2"
4423   else
4424     CFLAGS=
4425   fi
4426 fi
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4428 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4429 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4430   $as_echo_n "(cached) " >&6
4431 else
4432   ac_cv_prog_cc_c89=no
4433 ac_save_CC=$CC
4434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h.  */
4436 #include <stdarg.h>
4437 #include <stdio.h>
4438 #include <sys/types.h>
4439 #include <sys/stat.h>
4440 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4441 struct buf { int x; };
4442 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4443 static char *e (p, i)
4444      char **p;
4445      int i;
4446 {
4447   return p[i];
4448 }
4449 static char *f (char * (*g) (char **, int), char **p, ...)
4450 {
4451   char *s;
4452   va_list v;
4453   va_start (v,p);
4454   s = g (p, va_arg (v,int));
4455   va_end (v);
4456   return s;
4457 }
4458
4459 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4460    function prototypes and stuff, but not '\xHH' hex character constants.
4461    These don't provoke an error unfortunately, instead are silently treated
4462    as 'x'.  The following induces an error, until -std is added to get
4463    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4464    array size at least.  It's necessary to write '\x00'==0 to get something
4465    that's true only with -std.  */
4466 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4467
4468 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4469    inside strings and character constants.  */
4470 #define FOO(x) 'x'
4471 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4472
4473 int test (int i, double x);
4474 struct s1 {int (*f) (int a);};
4475 struct s2 {int (*f) (double a);};
4476 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4477 int argc;
4478 char **argv;
4479 int
4480 main ()
4481 {
4482 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4483   ;
4484   return 0;
4485 }
4486 _ACEOF
4487 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4488         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4489 do
4490   CC="$ac_save_CC $ac_arg"
4491   if ac_fn_c_try_compile "$LINENO"; then :
4492   ac_cv_prog_cc_c89=$ac_arg
4493 fi
4494 rm -f core conftest.err conftest.$ac_objext
4495   test "x$ac_cv_prog_cc_c89" != "xno" && break
4496 done
4497 rm -f conftest.$ac_ext
4498 CC=$ac_save_CC
4499
4500 fi
4501 # AC_CACHE_VAL
4502 case "x$ac_cv_prog_cc_c89" in
4503   x)
4504     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4505 $as_echo "none needed" >&6; } ;;
4506   xno)
4507     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4508 $as_echo "unsupported" >&6; } ;;
4509   *)
4510     CC="$CC $ac_cv_prog_cc_c89"
4511     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4512 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4513 esac
4514 if test "x$ac_cv_prog_cc_c89" != xno; then :
4515
4516 fi
4517
4518 ac_ext=c
4519 ac_cpp='$CPP $CPPFLAGS'
4520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4523
4524 ac_ext=cpp
4525 ac_cpp='$CXXCPP $CPPFLAGS'
4526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4529 if test -z "$CXX"; then
4530   if test -n "$CCC"; then
4531     CXX=$CCC
4532   else
4533     if test -n "$ac_tool_prefix"; then
4534   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4535   do
4536     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539 $as_echo_n "checking for $ac_word... " >&6; }
4540 if test "${ac_cv_prog_CXX+set}" = set; then :
4541   $as_echo_n "(cached) " >&6
4542 else
4543   if test -n "$CXX"; then
4544   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4545 else
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 for as_dir in $PATH
4548 do
4549   IFS=$as_save_IFS
4550   test -z "$as_dir" && as_dir=.
4551     for ac_exec_ext in '' $ac_executable_extensions; do
4552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4553     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4555     break 2
4556   fi
4557 done
4558   done
4559 IFS=$as_save_IFS
4560
4561 fi
4562 fi
4563 CXX=$ac_cv_prog_CXX
4564 if test -n "$CXX"; then
4565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4566 $as_echo "$CXX" >&6; }
4567 else
4568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569 $as_echo "no" >&6; }
4570 fi
4571
4572
4573     test -n "$CXX" && break
4574   done
4575 fi
4576 if test -z "$CXX"; then
4577   ac_ct_CXX=$CXX
4578   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4579 do
4580   # Extract the first word of "$ac_prog", so it can be a program name with args.
4581 set dummy $ac_prog; ac_word=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4585   $as_echo_n "(cached) " >&6
4586 else
4587   if test -n "$ac_ct_CXX"; then
4588   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4592 do
4593   IFS=$as_save_IFS
4594   test -z "$as_dir" && as_dir=.
4595     for ac_exec_ext in '' $ac_executable_extensions; do
4596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597     ac_cv_prog_ac_ct_CXX="$ac_prog"
4598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599     break 2
4600   fi
4601 done
4602   done
4603 IFS=$as_save_IFS
4604
4605 fi
4606 fi
4607 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4608 if test -n "$ac_ct_CXX"; then
4609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4610 $as_echo "$ac_ct_CXX" >&6; }
4611 else
4612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4614 fi
4615
4616
4617   test -n "$ac_ct_CXX" && break
4618 done
4619
4620   if test "x$ac_ct_CXX" = x; then
4621     CXX="g++"
4622   else
4623     case $cross_compiling:$ac_tool_warned in
4624 yes:)
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4627 ac_tool_warned=yes ;;
4628 esac
4629     CXX=$ac_ct_CXX
4630   fi
4631 fi
4632
4633   fi
4634 fi
4635 # Provide some information about the compiler.
4636 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4637 set X $ac_compile
4638 ac_compiler=$2
4639 for ac_option in --version -v -V -qversion; do
4640   { { ac_try="$ac_compiler $ac_option >&5"
4641 case "(($ac_try" in
4642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643   *) ac_try_echo=$ac_try;;
4644 esac
4645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4646 $as_echo "$ac_try_echo"; } >&5
4647   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4648   ac_status=$?
4649   if test -s conftest.err; then
4650     sed '10a\
4651 ... rest of stderr output deleted ...
4652          10q' conftest.err >conftest.er1
4653     cat conftest.er1 >&5
4654   fi
4655   rm -f conftest.er1 conftest.err
4656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4657   test $ac_status = 0; }
4658 done
4659
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4661 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4662 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4663   $as_echo_n "(cached) " >&6
4664 else
4665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h.  */
4667
4668 int
4669 main ()
4670 {
4671 #ifndef __GNUC__
4672        choke me
4673 #endif
4674
4675   ;
4676   return 0;
4677 }
4678 _ACEOF
4679 if ac_fn_cxx_try_compile "$LINENO"; then :
4680   ac_compiler_gnu=yes
4681 else
4682   ac_compiler_gnu=no
4683 fi
4684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4685 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4686
4687 fi
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4689 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4690 if test $ac_compiler_gnu = yes; then
4691   GXX=yes
4692 else
4693   GXX=
4694 fi
4695 ac_test_CXXFLAGS=${CXXFLAGS+set}
4696 ac_save_CXXFLAGS=$CXXFLAGS
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4698 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4699 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4700   $as_echo_n "(cached) " >&6
4701 else
4702   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4703    ac_cxx_werror_flag=yes
4704    ac_cv_prog_cxx_g=no
4705    CXXFLAGS="-g"
4706    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h.  */
4708
4709 int
4710 main ()
4711 {
4712
4713   ;
4714   return 0;
4715 }
4716 _ACEOF
4717 if ac_fn_cxx_try_compile "$LINENO"; then :
4718   ac_cv_prog_cxx_g=yes
4719 else
4720   CXXFLAGS=""
4721       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h.  */
4723
4724 int
4725 main ()
4726 {
4727
4728   ;
4729   return 0;
4730 }
4731 _ACEOF
4732 if ac_fn_cxx_try_compile "$LINENO"; then :
4733
4734 else
4735   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4736          CXXFLAGS="-g"
4737          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h.  */
4739
4740 int
4741 main ()
4742 {
4743
4744   ;
4745   return 0;
4746 }
4747 _ACEOF
4748 if ac_fn_cxx_try_compile "$LINENO"; then :
4749   ac_cv_prog_cxx_g=yes
4750 fi
4751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752 fi
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754 fi
4755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4757 fi
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4759 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4760 if test "$ac_test_CXXFLAGS" = set; then
4761   CXXFLAGS=$ac_save_CXXFLAGS
4762 elif test $ac_cv_prog_cxx_g = yes; then
4763   if test "$GXX" = yes; then
4764     CXXFLAGS="-g -O2"
4765   else
4766     CXXFLAGS="-g"
4767   fi
4768 else
4769   if test "$GXX" = yes; then
4770     CXXFLAGS="-O2"
4771   else
4772     CXXFLAGS=
4773   fi
4774 fi
4775 ac_ext=c
4776 ac_cpp='$CPP $CPPFLAGS'
4777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4780
4781 # Find a good install program.  We prefer a C program (faster),
4782 # so one script is as good as another.  But avoid the broken or
4783 # incompatible versions:
4784 # SysV /etc/install, /usr/sbin/install
4785 # SunOS /usr/etc/install
4786 # IRIX /sbin/install
4787 # AIX /bin/install
4788 # AmigaOS /C/install, which installs bootblocks on floppy discs
4789 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4790 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4791 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4792 # OS/2's system install, which has a completely different semantic
4793 # ./install, which can be erroneously created by make from ./install.sh.
4794 # Reject install programs that cannot install multiple files.
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4796 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4797 if test -z "$INSTALL"; then
4798 if test "${ac_cv_path_install+set}" = set; then :
4799   $as_echo_n "(cached) " >&6
4800 else
4801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4803 do
4804   IFS=$as_save_IFS
4805   test -z "$as_dir" && as_dir=.
4806     # Account for people who put trailing slashes in PATH elements.
4807 case $as_dir/ in #((
4808   ./ | .// | /[cC]/* | \
4809   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4810   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4811   /usr/ucb/* ) ;;
4812   *)
4813     # OSF1 and SCO ODT 3.0 have their own names for install.
4814     # Don't use installbsd from OSF since it installs stuff as root
4815     # by default.
4816     for ac_prog in ginstall scoinst install; do
4817       for ac_exec_ext in '' $ac_executable_extensions; do
4818         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4819           if test $ac_prog = install &&
4820             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4821             # AIX install.  It has an incompatible calling convention.
4822             :
4823           elif test $ac_prog = install &&
4824             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4825             # program-specific install script used by HP pwplus--don't use.
4826             :
4827           else
4828             rm -rf conftest.one conftest.two conftest.dir
4829             echo one > conftest.one
4830             echo two > conftest.two
4831             mkdir conftest.dir
4832             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4833               test -s conftest.one && test -s conftest.two &&
4834               test -s conftest.dir/conftest.one &&
4835               test -s conftest.dir/conftest.two
4836             then
4837               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4838               break 3
4839             fi
4840           fi
4841         fi
4842       done
4843     done
4844     ;;
4845 esac
4846
4847   done
4848 IFS=$as_save_IFS
4849
4850 rm -rf conftest.one conftest.two conftest.dir
4851
4852 fi
4853   if test "${ac_cv_path_install+set}" = set; then
4854     INSTALL=$ac_cv_path_install
4855   else
4856     # As a last resort, use the slow shell script.  Don't cache a
4857     # value for INSTALL within a source directory, because that will
4858     # break other packages using the cache if that directory is
4859     # removed, or if the value is a relative name.
4860     INSTALL=$ac_install_sh
4861   fi
4862 fi
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4864 $as_echo "$INSTALL" >&6; }
4865
4866 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4867 # It thinks the first close brace ends the variable substitution.
4868 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4869
4870 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4871
4872 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4873
4874 case `pwd` in
4875   *\ * | *\     *)
4876     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4877 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4878 esac
4879
4880
4881
4882 macro_version='2.2.6b'
4883 macro_revision='1.3017'
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897 ltmain="$ac_aux_dir/ltmain.sh"
4898
4899 # Make sure we can run config.sub.
4900 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4901   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4902
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4904 $as_echo_n "checking build system type... " >&6; }
4905 if test "${ac_cv_build+set}" = set; then :
4906   $as_echo_n "(cached) " >&6
4907 else
4908   ac_build_alias=$build_alias
4909 test "x$ac_build_alias" = x &&
4910   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4911 test "x$ac_build_alias" = x &&
4912   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4913 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4914   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4915
4916 fi
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4918 $as_echo "$ac_cv_build" >&6; }
4919 case $ac_cv_build in
4920 *-*-*) ;;
4921 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4922 esac
4923 build=$ac_cv_build
4924 ac_save_IFS=$IFS; IFS='-'
4925 set x $ac_cv_build
4926 shift
4927 build_cpu=$1
4928 build_vendor=$2
4929 shift; shift
4930 # Remember, the first character of IFS is used to create $*,
4931 # except with old shells:
4932 build_os=$*
4933 IFS=$ac_save_IFS
4934 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4935
4936
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4938 $as_echo_n "checking host system type... " >&6; }
4939 if test "${ac_cv_host+set}" = set; then :
4940   $as_echo_n "(cached) " >&6
4941 else
4942   if test "x$host_alias" = x; then
4943   ac_cv_host=$ac_cv_build
4944 else
4945   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4946     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4947 fi
4948
4949 fi
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4951 $as_echo "$ac_cv_host" >&6; }
4952 case $ac_cv_host in
4953 *-*-*) ;;
4954 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4955 esac
4956 host=$ac_cv_host
4957 ac_save_IFS=$IFS; IFS='-'
4958 set x $ac_cv_host
4959 shift
4960 host_cpu=$1
4961 host_vendor=$2
4962 shift; shift
4963 # Remember, the first character of IFS is used to create $*,
4964 # except with old shells:
4965 host_os=$*
4966 IFS=$ac_save_IFS
4967 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4968
4969
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4971 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4972 if test "${ac_cv_path_SED+set}" = set; then :
4973   $as_echo_n "(cached) " >&6
4974 else
4975             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4976      for ac_i in 1 2 3 4 5 6 7; do
4977        ac_script="$ac_script$as_nl$ac_script"
4978      done
4979      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4980      { ac_script=; unset ac_script;}
4981      if test -z "$SED"; then
4982   ac_path_SED_found=false
4983   # Loop through the user's path and test for each of PROGNAME-LIST
4984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4986 do
4987   IFS=$as_save_IFS
4988   test -z "$as_dir" && as_dir=.
4989     for ac_prog in sed gsed; do
4990     for ac_exec_ext in '' $ac_executable_extensions; do
4991       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4992       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4993 # Check for GNU ac_path_SED and select it if it is found.
4994   # Check for GNU $ac_path_SED
4995 case `"$ac_path_SED" --version 2>&1` in
4996 *GNU*)
4997   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4998 *)
4999   ac_count=0
5000   $as_echo_n 0123456789 >"conftest.in"
5001   while :
5002   do
5003     cat "conftest.in" "conftest.in" >"conftest.tmp"
5004     mv "conftest.tmp" "conftest.in"
5005     cp "conftest.in" "conftest.nl"
5006     $as_echo '' >> "conftest.nl"
5007     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5008     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5009     as_fn_arith $ac_count + 1 && ac_count=$as_val
5010     if test $ac_count -gt ${ac_path_SED_max-0}; then
5011       # Best one so far, save it but keep looking for a better one
5012       ac_cv_path_SED="$ac_path_SED"
5013       ac_path_SED_max=$ac_count
5014     fi
5015     # 10*(2^10) chars as input seems more than enough
5016     test $ac_count -gt 10 && break
5017   done
5018   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5019 esac
5020
5021       $ac_path_SED_found && break 3
5022     done
5023   done
5024   done
5025 IFS=$as_save_IFS
5026   if test -z "$ac_cv_path_SED"; then
5027     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5028   fi
5029 else
5030   ac_cv_path_SED=$SED
5031 fi
5032
5033 fi
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5035 $as_echo "$ac_cv_path_SED" >&6; }
5036  SED="$ac_cv_path_SED"
5037   rm -f conftest.sed
5038
5039 test -z "$SED" && SED=sed
5040 Xsed="$SED -e 1s/^X//"
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5053 $as_echo_n "checking for fgrep... " >&6; }
5054 if test "${ac_cv_path_FGREP+set}" = set; then :
5055   $as_echo_n "(cached) " >&6
5056 else
5057   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5058    then ac_cv_path_FGREP="$GREP -F"
5059    else
5060      if test -z "$FGREP"; then
5061   ac_path_FGREP_found=false
5062   # Loop through the user's path and test for each of PROGNAME-LIST
5063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5065 do
5066   IFS=$as_save_IFS
5067   test -z "$as_dir" && as_dir=.
5068     for ac_prog in fgrep; do
5069     for ac_exec_ext in '' $ac_executable_extensions; do
5070       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5071       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5072 # Check for GNU ac_path_FGREP and select it if it is found.
5073   # Check for GNU $ac_path_FGREP
5074 case `"$ac_path_FGREP" --version 2>&1` in
5075 *GNU*)
5076   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5077 *)
5078   ac_count=0
5079   $as_echo_n 0123456789 >"conftest.in"
5080   while :
5081   do
5082     cat "conftest.in" "conftest.in" >"conftest.tmp"
5083     mv "conftest.tmp" "conftest.in"
5084     cp "conftest.in" "conftest.nl"
5085     $as_echo 'FGREP' >> "conftest.nl"
5086     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5087     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5088     as_fn_arith $ac_count + 1 && ac_count=$as_val
5089     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5090       # Best one so far, save it but keep looking for a better one
5091       ac_cv_path_FGREP="$ac_path_FGREP"
5092       ac_path_FGREP_max=$ac_count
5093     fi
5094     # 10*(2^10) chars as input seems more than enough
5095     test $ac_count -gt 10 && break
5096   done
5097   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5098 esac
5099
5100       $ac_path_FGREP_found && break 3
5101     done
5102   done
5103   done
5104 IFS=$as_save_IFS
5105   if test -z "$ac_cv_path_FGREP"; then
5106     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5107   fi
5108 else
5109   ac_cv_path_FGREP=$FGREP
5110 fi
5111
5112    fi
5113 fi
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5115 $as_echo "$ac_cv_path_FGREP" >&6; }
5116  FGREP="$ac_cv_path_FGREP"
5117
5118
5119 test -z "$GREP" && GREP=grep
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139 # Check whether --with-gnu-ld was given.
5140 if test "${with_gnu_ld+set}" = set; then :
5141   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5142 else
5143   with_gnu_ld=no
5144 fi
5145
5146 ac_prog=ld
5147 if test "$GCC" = yes; then
5148   # Check if gcc -print-prog-name=ld gives a path.
5149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5150 $as_echo_n "checking for ld used by $CC... " >&6; }
5151   case $host in
5152   *-*-mingw*)
5153     # gcc leaves a trailing carriage return which upsets mingw
5154     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5155   *)
5156     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5157   esac
5158   case $ac_prog in
5159     # Accept absolute paths.
5160     [\\/]* | ?:[\\/]*)
5161       re_direlt='/[^/][^/]*/\.\./'
5162       # Canonicalize the pathname of ld
5163       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5164       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5165         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5166       done
5167       test -z "$LD" && LD="$ac_prog"
5168       ;;
5169   "")
5170     # If it fails, then pretend we aren't using GCC.
5171     ac_prog=ld
5172     ;;
5173   *)
5174     # If it is relative, then search for the first ld in PATH.
5175     with_gnu_ld=unknown
5176     ;;
5177   esac
5178 elif test "$with_gnu_ld" = yes; then
5179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5180 $as_echo_n "checking for GNU ld... " >&6; }
5181 else
5182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5183 $as_echo_n "checking for non-GNU ld... " >&6; }
5184 fi
5185 if test "${lt_cv_path_LD+set}" = set; then :
5186   $as_echo_n "(cached) " >&6
5187 else
5188   if test -z "$LD"; then
5189   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5190   for ac_dir in $PATH; do
5191     IFS="$lt_save_ifs"
5192     test -z "$ac_dir" && ac_dir=.
5193     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5194       lt_cv_path_LD="$ac_dir/$ac_prog"
5195       # Check to see if the program is GNU ld.  I'd rather use --version,
5196       # but apparently some variants of GNU ld only accept -v.
5197       # Break only if it was the GNU/non-GNU ld that we prefer.
5198       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5199       *GNU* | *'with BFD'*)
5200         test "$with_gnu_ld" != no && break
5201         ;;
5202       *)
5203         test "$with_gnu_ld" != yes && break
5204         ;;
5205       esac
5206     fi
5207   done
5208   IFS="$lt_save_ifs"
5209 else
5210   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5211 fi
5212 fi
5213
5214 LD="$lt_cv_path_LD"
5215 if test -n "$LD"; then
5216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5217 $as_echo "$LD" >&6; }
5218 else
5219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5221 fi
5222 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5224 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5225 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5226   $as_echo_n "(cached) " >&6
5227 else
5228   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5229 case `$LD -v 2>&1 </dev/null` in
5230 *GNU* | *'with BFD'*)
5231   lt_cv_prog_gnu_ld=yes
5232   ;;
5233 *)
5234   lt_cv_prog_gnu_ld=no
5235   ;;
5236 esac
5237 fi
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5239 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5240 with_gnu_ld=$lt_cv_prog_gnu_ld
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5251 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5252 if test "${lt_cv_path_NM+set}" = set; then :
5253   $as_echo_n "(cached) " >&6
5254 else
5255   if test -n "$NM"; then
5256   # Let the user override the test.
5257   lt_cv_path_NM="$NM"
5258 else
5259   lt_nm_to_check="${ac_tool_prefix}nm"
5260   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5261     lt_nm_to_check="$lt_nm_to_check nm"
5262   fi
5263   for lt_tmp_nm in $lt_nm_to_check; do
5264     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5265     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5266       IFS="$lt_save_ifs"
5267       test -z "$ac_dir" && ac_dir=.
5268       tmp_nm="$ac_dir/$lt_tmp_nm"
5269       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5270         # Check to see if the nm accepts a BSD-compat flag.
5271         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5272         #   nm: unknown option "B" ignored
5273         # Tru64's nm complains that /dev/null is an invalid object file
5274         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5275         */dev/null* | *'Invalid file or object type'*)
5276           lt_cv_path_NM="$tmp_nm -B"
5277           break
5278           ;;
5279         *)
5280           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5281           */dev/null*)
5282             lt_cv_path_NM="$tmp_nm -p"
5283             break
5284             ;;
5285           *)
5286             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5287             continue # so that we can try to find one that supports BSD flags
5288             ;;
5289           esac
5290           ;;
5291         esac
5292       fi
5293     done
5294     IFS="$lt_save_ifs"
5295   done
5296   : ${lt_cv_path_NM=no}
5297 fi
5298 fi
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5300 $as_echo "$lt_cv_path_NM" >&6; }
5301 if test "$lt_cv_path_NM" != "no"; then
5302   NM="$lt_cv_path_NM"
5303 else
5304   # Didn't find any BSD compatible name lister, look for dumpbin.
5305   if test -n "$ac_tool_prefix"; then
5306   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5307   do
5308     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5309 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5313   $as_echo_n "(cached) " >&6
5314 else
5315   if test -n "$DUMPBIN"; then
5316   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5317 else
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5320 do
5321   IFS=$as_save_IFS
5322   test -z "$as_dir" && as_dir=.
5323     for ac_exec_ext in '' $ac_executable_extensions; do
5324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327     break 2
5328   fi
5329 done
5330   done
5331 IFS=$as_save_IFS
5332
5333 fi
5334 fi
5335 DUMPBIN=$ac_cv_prog_DUMPBIN
5336 if test -n "$DUMPBIN"; then
5337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5338 $as_echo "$DUMPBIN" >&6; }
5339 else
5340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5342 fi
5343
5344
5345     test -n "$DUMPBIN" && break
5346   done
5347 fi
5348 if test -z "$DUMPBIN"; then
5349   ac_ct_DUMPBIN=$DUMPBIN
5350   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5351 do
5352   # Extract the first word of "$ac_prog", so it can be a program name with args.
5353 set dummy $ac_prog; ac_word=$2
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5355 $as_echo_n "checking for $ac_word... " >&6; }
5356 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5357   $as_echo_n "(cached) " >&6
5358 else
5359   if test -n "$ac_ct_DUMPBIN"; then
5360   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5361 else
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363 for as_dir in $PATH
5364 do
5365   IFS=$as_save_IFS
5366   test -z "$as_dir" && as_dir=.
5367     for ac_exec_ext in '' $ac_executable_extensions; do
5368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5369     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5371     break 2
5372   fi
5373 done
5374   done
5375 IFS=$as_save_IFS
5376
5377 fi
5378 fi
5379 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5380 if test -n "$ac_ct_DUMPBIN"; then
5381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5382 $as_echo "$ac_ct_DUMPBIN" >&6; }
5383 else
5384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 $as_echo "no" >&6; }
5386 fi
5387
5388
5389   test -n "$ac_ct_DUMPBIN" && break
5390 done
5391
5392   if test "x$ac_ct_DUMPBIN" = x; then
5393     DUMPBIN=":"
5394   else
5395     case $cross_compiling:$ac_tool_warned in
5396 yes:)
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5399 ac_tool_warned=yes ;;
5400 esac
5401     DUMPBIN=$ac_ct_DUMPBIN
5402   fi
5403 fi
5404
5405
5406   if test "$DUMPBIN" != ":"; then
5407     NM="$DUMPBIN"
5408   fi
5409 fi
5410 test -z "$NM" && NM=nm
5411
5412
5413
5414
5415
5416
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5418 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5419 if test "${lt_cv_nm_interface+set}" = set; then :
5420   $as_echo_n "(cached) " >&6
5421 else
5422   lt_cv_nm_interface="BSD nm"
5423   echo "int some_variable = 0;" > conftest.$ac_ext
5424   (eval echo "\"\$as_me:5424: $ac_compile\"" >&5)
5425   (eval "$ac_compile" 2>conftest.err)
5426   cat conftest.err >&5
5427   (eval echo "\"\$as_me:5427: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5428   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5429   cat conftest.err >&5
5430   (eval echo "\"\$as_me:5430: output\"" >&5)
5431   cat conftest.out >&5
5432   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5433     lt_cv_nm_interface="MS dumpbin"
5434   fi
5435   rm -f conftest*
5436 fi
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5438 $as_echo "$lt_cv_nm_interface" >&6; }
5439
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5441 $as_echo_n "checking whether ln -s works... " >&6; }
5442 LN_S=$as_ln_s
5443 if test "$LN_S" = "ln -s"; then
5444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5445 $as_echo "yes" >&6; }
5446 else
5447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5448 $as_echo "no, using $LN_S" >&6; }
5449 fi
5450
5451 # find the maximum length of command line arguments
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5453 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5454 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5455   $as_echo_n "(cached) " >&6
5456 else
5457     i=0
5458   teststring="ABCD"
5459
5460   case $build_os in
5461   msdosdjgpp*)
5462     # On DJGPP, this test can blow up pretty badly due to problems in libc
5463     # (any single argument exceeding 2000 bytes causes a buffer overrun
5464     # during glob expansion).  Even if it were fixed, the result of this
5465     # check would be larger than it should be.
5466     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5467     ;;
5468
5469   gnu*)
5470     # Under GNU Hurd, this test is not required because there is
5471     # no limit to the length of command line arguments.
5472     # Libtool will interpret -1 as no limit whatsoever
5473     lt_cv_sys_max_cmd_len=-1;
5474     ;;
5475
5476   cygwin* | mingw* | cegcc*)
5477     # On Win9x/ME, this test blows up -- it succeeds, but takes
5478     # about 5 minutes as the teststring grows exponentially.
5479     # Worse, since 9x/ME are not pre-emptively multitasking,
5480     # you end up with a "frozen" computer, even though with patience
5481     # the test eventually succeeds (with a max line length of 256k).
5482     # Instead, let's just punt: use the minimum linelength reported by
5483     # all of the supported platforms: 8192 (on NT/2K/XP).
5484     lt_cv_sys_max_cmd_len=8192;
5485     ;;
5486
5487   amigaos*)
5488     # On AmigaOS with pdksh, this test takes hours, literally.
5489     # So we just punt and use a minimum line length of 8192.
5490     lt_cv_sys_max_cmd_len=8192;
5491     ;;
5492
5493   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5494     # This has been around since 386BSD, at least.  Likely further.
5495     if test -x /sbin/sysctl; then
5496       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5497     elif test -x /usr/sbin/sysctl; then
5498       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5499     else
5500       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5501     fi
5502     # And add a safety zone
5503     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5504     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5505     ;;
5506
5507   interix*)
5508     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5509     lt_cv_sys_max_cmd_len=196608
5510     ;;
5511
5512   osf*)
5513     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5514     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5515     # nice to cause kernel panics so lets avoid the loop below.
5516     # First set a reasonable default.
5517     lt_cv_sys_max_cmd_len=16384
5518     #
5519     if test -x /sbin/sysconfig; then
5520       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5521         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5522       esac
5523     fi
5524     ;;
5525   sco3.2v5*)
5526     lt_cv_sys_max_cmd_len=102400
5527     ;;
5528   sysv5* | sco5v6* | sysv4.2uw2*)
5529     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5530     if test -n "$kargmax"; then
5531       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5532     else
5533       lt_cv_sys_max_cmd_len=32768
5534     fi
5535     ;;
5536   *)
5537     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5538     if test -n "$lt_cv_sys_max_cmd_len"; then
5539       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5540       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5541     else
5542       # Make teststring a little bigger before we do anything with it.
5543       # a 1K string should be a reasonable start.
5544       for i in 1 2 3 4 5 6 7 8 ; do
5545         teststring=$teststring$teststring
5546       done
5547       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5548       # If test is not a shell built-in, we'll probably end up computing a
5549       # maximum length that is only half of the actual maximum length, but
5550       # we can't tell.
5551       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5552                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5553               test $i != 17 # 1/2 MB should be enough
5554       do
5555         i=`expr $i + 1`
5556         teststring=$teststring$teststring
5557       done
5558       # Only check the string length outside the loop.
5559       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5560       teststring=
5561       # Add a significant safety factor because C++ compilers can tack on
5562       # massive amounts of additional arguments before passing them to the
5563       # linker.  It appears as though 1/2 is a usable value.
5564       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5565     fi
5566     ;;
5567   esac
5568
5569 fi
5570
5571 if test -n $lt_cv_sys_max_cmd_len ; then
5572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5573 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5574 else
5575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5576 $as_echo "none" >&6; }
5577 fi
5578 max_cmd_len=$lt_cv_sys_max_cmd_len
5579
5580
5581
5582
5583
5584
5585 : ${CP="cp -f"}
5586 : ${MV="mv -f"}
5587 : ${RM="rm -f"}
5588
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5590 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5591 # Try some XSI features
5592 xsi_shell=no
5593 ( _lt_dummy="a/b/c"
5594   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5595       = c,a/b,, \
5596     && eval 'test $(( 1 + 1 )) -eq 2 \
5597     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5598   && xsi_shell=yes
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5600 $as_echo "$xsi_shell" >&6; }
5601
5602
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5604 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5605 lt_shell_append=no
5606 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5607     >/dev/null 2>&1 \
5608   && lt_shell_append=yes
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5610 $as_echo "$lt_shell_append" >&6; }
5611
5612
5613 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5614   lt_unset=unset
5615 else
5616   lt_unset=false
5617 fi
5618
5619
5620
5621
5622
5623 # test EBCDIC or ASCII
5624 case `echo X|tr X '\101'` in
5625  A) # ASCII based system
5626     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5627   lt_SP2NL='tr \040 \012'
5628   lt_NL2SP='tr \015\012 \040\040'
5629   ;;
5630  *) # EBCDIC based system
5631   lt_SP2NL='tr \100 \n'
5632   lt_NL2SP='tr \r\n \100\100'
5633   ;;
5634 esac
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5645 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5646 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5647   $as_echo_n "(cached) " >&6
5648 else
5649   lt_cv_ld_reload_flag='-r'
5650 fi
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5652 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5653 reload_flag=$lt_cv_ld_reload_flag
5654 case $reload_flag in
5655 "" | " "*) ;;
5656 *) reload_flag=" $reload_flag" ;;
5657 esac
5658 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5659 case $host_os in
5660   darwin*)
5661     if test "$GCC" = yes; then
5662       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5663     else
5664       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5665     fi
5666     ;;
5667 esac
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677 if test -n "$ac_tool_prefix"; then
5678   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5679 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 $as_echo_n "checking for $ac_word... " >&6; }
5682 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5683   $as_echo_n "(cached) " >&6
5684 else
5685   if test -n "$OBJDUMP"; then
5686   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5687 else
5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 for as_dir in $PATH
5690 do
5691   IFS=$as_save_IFS
5692   test -z "$as_dir" && as_dir=.
5693     for ac_exec_ext in '' $ac_executable_extensions; do
5694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5695     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697     break 2
5698   fi
5699 done
5700   done
5701 IFS=$as_save_IFS
5702
5703 fi
5704 fi
5705 OBJDUMP=$ac_cv_prog_OBJDUMP
5706 if test -n "$OBJDUMP"; then
5707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5708 $as_echo "$OBJDUMP" >&6; }
5709 else
5710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711 $as_echo "no" >&6; }
5712 fi
5713
5714
5715 fi
5716 if test -z "$ac_cv_prog_OBJDUMP"; then
5717   ac_ct_OBJDUMP=$OBJDUMP
5718   # Extract the first word of "objdump", so it can be a program name with args.
5719 set dummy objdump; ac_word=$2
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721 $as_echo_n "checking for $ac_word... " >&6; }
5722 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5723   $as_echo_n "(cached) " >&6
5724 else
5725   if test -n "$ac_ct_OBJDUMP"; then
5726   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5727 else
5728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729 for as_dir in $PATH
5730 do
5731   IFS=$as_save_IFS
5732   test -z "$as_dir" && as_dir=.
5733     for ac_exec_ext in '' $ac_executable_extensions; do
5734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5735     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5737     break 2
5738   fi
5739 done
5740   done
5741 IFS=$as_save_IFS
5742
5743 fi
5744 fi
5745 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5746 if test -n "$ac_ct_OBJDUMP"; then
5747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5748 $as_echo "$ac_ct_OBJDUMP" >&6; }
5749 else
5750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751 $as_echo "no" >&6; }
5752 fi
5753
5754   if test "x$ac_ct_OBJDUMP" = x; then
5755     OBJDUMP="false"
5756   else
5757     case $cross_compiling:$ac_tool_warned in
5758 yes:)
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5761 ac_tool_warned=yes ;;
5762 esac
5763     OBJDUMP=$ac_ct_OBJDUMP
5764   fi
5765 else
5766   OBJDUMP="$ac_cv_prog_OBJDUMP"
5767 fi
5768
5769 test -z "$OBJDUMP" && OBJDUMP=objdump
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5780 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5781 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5782   $as_echo_n "(cached) " >&6
5783 else
5784   lt_cv_file_magic_cmd='$MAGIC_CMD'
5785 lt_cv_file_magic_test_file=
5786 lt_cv_deplibs_check_method='unknown'
5787 # Need to set the preceding variable on all platforms that support
5788 # interlibrary dependencies.
5789 # 'none' -- dependencies not supported.
5790 # `unknown' -- same as none, but documents that we really don't know.
5791 # 'pass_all' -- all dependencies passed with no checks.
5792 # 'test_compile' -- check by making test program.
5793 # 'file_magic [[regex]]' -- check by looking for files in library path
5794 # which responds to the $file_magic_cmd with a given extended regex.
5795 # If you have `file' or equivalent on your system and you're not sure
5796 # whether `pass_all' will *always* work, you probably want this one.
5797
5798 case $host_os in
5799 aix[4-9]*)
5800   lt_cv_deplibs_check_method=pass_all
5801   ;;
5802
5803 beos*)
5804   lt_cv_deplibs_check_method=pass_all
5805   ;;
5806
5807 bsdi[45]*)
5808   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5809   lt_cv_file_magic_cmd='/usr/bin/file -L'
5810   lt_cv_file_magic_test_file=/shlib/libc.so
5811   ;;
5812
5813 cygwin*)
5814   # func_win32_libid is a shell function defined in ltmain.sh
5815   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5816   lt_cv_file_magic_cmd='func_win32_libid'
5817   ;;
5818
5819 mingw* | pw32*)
5820   # Base MSYS/MinGW do not provide the 'file' command needed by
5821   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5822   # unless we find 'file', for example because we are cross-compiling.
5823   if ( file / ) >/dev/null 2>&1; then
5824     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5825     lt_cv_file_magic_cmd='func_win32_libid'
5826   else
5827     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5828     lt_cv_file_magic_cmd='$OBJDUMP -f'
5829   fi
5830   ;;
5831
5832 cegcc)
5833   # use the weaker test based on 'objdump'. See mingw*.
5834   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5835   lt_cv_file_magic_cmd='$OBJDUMP -f'
5836   ;;
5837
5838 darwin* | rhapsody*)
5839   lt_cv_deplibs_check_method=pass_all
5840   ;;
5841
5842 freebsd* | dragonfly*)
5843   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5844     case $host_cpu in
5845     i*86 )
5846       # Not sure whether the presence of OpenBSD here was a mistake.
5847       # Let's accept both of them until this is cleared up.
5848       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5849       lt_cv_file_magic_cmd=/usr/bin/file
5850       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5851       ;;
5852     esac
5853   else
5854     lt_cv_deplibs_check_method=pass_all
5855   fi
5856   ;;
5857
5858 gnu*)
5859   lt_cv_deplibs_check_method=pass_all
5860   ;;
5861
5862 hpux10.20* | hpux11*)
5863   lt_cv_file_magic_cmd=/usr/bin/file
5864   case $host_cpu in
5865   ia64*)
5866     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5867     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5868     ;;
5869   hppa*64*)
5870     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]'
5871     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5872     ;;
5873   *)
5874     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5875     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5876     ;;
5877   esac
5878   ;;
5879
5880 interix[3-9]*)
5881   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5882   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5883   ;;
5884
5885 irix5* | irix6* | nonstopux*)
5886   case $LD in
5887   *-32|*"-32 ") libmagic=32-bit;;
5888   *-n32|*"-n32 ") libmagic=N32;;
5889   *-64|*"-64 ") libmagic=64-bit;;
5890   *) libmagic=never-match;;
5891   esac
5892   lt_cv_deplibs_check_method=pass_all
5893   ;;
5894
5895 # This must be Linux ELF.
5896 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5897   lt_cv_deplibs_check_method=pass_all
5898   ;;
5899
5900 netbsd* | netbsdelf*-gnu)
5901   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5902     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5903   else
5904     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5905   fi
5906   ;;
5907
5908 newos6*)
5909   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5910   lt_cv_file_magic_cmd=/usr/bin/file
5911   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5912   ;;
5913
5914 *nto* | *qnx*)
5915   lt_cv_deplibs_check_method=pass_all
5916   ;;
5917
5918 openbsd*)
5919   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5920     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5921   else
5922     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5923   fi
5924   ;;
5925
5926 osf3* | osf4* | osf5*)
5927   lt_cv_deplibs_check_method=pass_all
5928   ;;
5929
5930 rdos*)
5931   lt_cv_deplibs_check_method=pass_all
5932   ;;
5933
5934 solaris*)
5935   lt_cv_deplibs_check_method=pass_all
5936   ;;
5937
5938 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5939   lt_cv_deplibs_check_method=pass_all
5940   ;;
5941
5942 sysv4 | sysv4.3*)
5943   case $host_vendor in
5944   motorola)
5945     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]'
5946     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5947     ;;
5948   ncr)
5949     lt_cv_deplibs_check_method=pass_all
5950     ;;
5951   sequent)
5952     lt_cv_file_magic_cmd='/bin/file'
5953     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5954     ;;
5955   sni)
5956     lt_cv_file_magic_cmd='/bin/file'
5957     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5958     lt_cv_file_magic_test_file=/lib/libc.so
5959     ;;
5960   siemens)
5961     lt_cv_deplibs_check_method=pass_all
5962     ;;
5963   pc)
5964     lt_cv_deplibs_check_method=pass_all
5965     ;;
5966   esac
5967   ;;
5968
5969 tpf*)
5970   lt_cv_deplibs_check_method=pass_all
5971   ;;
5972 esac
5973
5974 fi
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5976 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5977 file_magic_cmd=$lt_cv_file_magic_cmd
5978 deplibs_check_method=$lt_cv_deplibs_check_method
5979 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992 if test -n "$ac_tool_prefix"; then
5993   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5994 set dummy ${ac_tool_prefix}ar; ac_word=$2
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996 $as_echo_n "checking for $ac_word... " >&6; }
5997 if test "${ac_cv_prog_AR+set}" = set; then :
5998   $as_echo_n "(cached) " >&6
5999 else
6000   if test -n "$AR"; then
6001   ac_cv_prog_AR="$AR" # Let the user override the test.
6002 else
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 for as_dir in $PATH
6005 do
6006   IFS=$as_save_IFS
6007   test -z "$as_dir" && as_dir=.
6008     for ac_exec_ext in '' $ac_executable_extensions; do
6009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6010     ac_cv_prog_AR="${ac_tool_prefix}ar"
6011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6012     break 2
6013   fi
6014 done
6015   done
6016 IFS=$as_save_IFS
6017
6018 fi
6019 fi
6020 AR=$ac_cv_prog_AR
6021 if test -n "$AR"; then
6022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6023 $as_echo "$AR" >&6; }
6024 else
6025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6026 $as_echo "no" >&6; }
6027 fi
6028
6029
6030 fi
6031 if test -z "$ac_cv_prog_AR"; then
6032   ac_ct_AR=$AR
6033   # Extract the first word of "ar", so it can be a program name with args.
6034 set dummy ar; ac_word=$2
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6036 $as_echo_n "checking for $ac_word... " >&6; }
6037 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6038   $as_echo_n "(cached) " >&6
6039 else
6040   if test -n "$ac_ct_AR"; then
6041   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6042 else
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6045 do
6046   IFS=$as_save_IFS
6047   test -z "$as_dir" && as_dir=.
6048     for ac_exec_ext in '' $ac_executable_extensions; do
6049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6050     ac_cv_prog_ac_ct_AR="ar"
6051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6052     break 2
6053   fi
6054 done
6055   done
6056 IFS=$as_save_IFS
6057
6058 fi
6059 fi
6060 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6061 if test -n "$ac_ct_AR"; then
6062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6063 $as_echo "$ac_ct_AR" >&6; }
6064 else
6065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066 $as_echo "no" >&6; }
6067 fi
6068
6069   if test "x$ac_ct_AR" = x; then
6070     AR="false"
6071   else
6072     case $cross_compiling:$ac_tool_warned in
6073 yes:)
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6076 ac_tool_warned=yes ;;
6077 esac
6078     AR=$ac_ct_AR
6079   fi
6080 else
6081   AR="$ac_cv_prog_AR"
6082 fi
6083
6084 test -z "$AR" && AR=ar
6085 test -z "$AR_FLAGS" && AR_FLAGS=cru
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097 if test -n "$ac_tool_prefix"; then
6098   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6099 set dummy ${ac_tool_prefix}strip; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if test "${ac_cv_prog_STRIP+set}" = set; then :
6103   $as_echo_n "(cached) " >&6
6104 else
6105   if test -n "$STRIP"; then
6106   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6107 else
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6110 do
6111   IFS=$as_save_IFS
6112   test -z "$as_dir" && as_dir=.
6113     for ac_exec_ext in '' $ac_executable_extensions; do
6114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6115     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117     break 2
6118   fi
6119 done
6120   done
6121 IFS=$as_save_IFS
6122
6123 fi
6124 fi
6125 STRIP=$ac_cv_prog_STRIP
6126 if test -n "$STRIP"; then
6127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6128 $as_echo "$STRIP" >&6; }
6129 else
6130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6132 fi
6133
6134
6135 fi
6136 if test -z "$ac_cv_prog_STRIP"; then
6137   ac_ct_STRIP=$STRIP
6138   # Extract the first word of "strip", so it can be a program name with args.
6139 set dummy strip; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6143   $as_echo_n "(cached) " >&6
6144 else
6145   if test -n "$ac_ct_STRIP"; then
6146   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6150 do
6151   IFS=$as_save_IFS
6152   test -z "$as_dir" && as_dir=.
6153     for ac_exec_ext in '' $ac_executable_extensions; do
6154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155     ac_cv_prog_ac_ct_STRIP="strip"
6156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157     break 2
6158   fi
6159 done
6160   done
6161 IFS=$as_save_IFS
6162
6163 fi
6164 fi
6165 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6166 if test -n "$ac_ct_STRIP"; then
6167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6168 $as_echo "$ac_ct_STRIP" >&6; }
6169 else
6170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6172 fi
6173
6174   if test "x$ac_ct_STRIP" = x; then
6175     STRIP=":"
6176   else
6177     case $cross_compiling:$ac_tool_warned in
6178 yes:)
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181 ac_tool_warned=yes ;;
6182 esac
6183     STRIP=$ac_ct_STRIP
6184   fi
6185 else
6186   STRIP="$ac_cv_prog_STRIP"
6187 fi
6188
6189 test -z "$STRIP" && STRIP=:
6190
6191
6192
6193
6194
6195
6196 if test -n "$ac_tool_prefix"; then
6197   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6198 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6200 $as_echo_n "checking for $ac_word... " >&6; }
6201 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6202   $as_echo_n "(cached) " >&6
6203 else
6204   if test -n "$RANLIB"; then
6205   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6206 else
6207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208 for as_dir in $PATH
6209 do
6210   IFS=$as_save_IFS
6211   test -z "$as_dir" && as_dir=.
6212     for ac_exec_ext in '' $ac_executable_extensions; do
6213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6214     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6216     break 2
6217   fi
6218 done
6219   done
6220 IFS=$as_save_IFS
6221
6222 fi
6223 fi
6224 RANLIB=$ac_cv_prog_RANLIB
6225 if test -n "$RANLIB"; then
6226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6227 $as_echo "$RANLIB" >&6; }
6228 else
6229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6230 $as_echo "no" >&6; }
6231 fi
6232
6233
6234 fi
6235 if test -z "$ac_cv_prog_RANLIB"; then
6236   ac_ct_RANLIB=$RANLIB
6237   # Extract the first word of "ranlib", so it can be a program name with args.
6238 set dummy ranlib; ac_word=$2
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240 $as_echo_n "checking for $ac_word... " >&6; }
6241 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6242   $as_echo_n "(cached) " >&6
6243 else
6244   if test -n "$ac_ct_RANLIB"; then
6245   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6246 else
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH
6249 do
6250   IFS=$as_save_IFS
6251   test -z "$as_dir" && as_dir=.
6252     for ac_exec_ext in '' $ac_executable_extensions; do
6253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6254     ac_cv_prog_ac_ct_RANLIB="ranlib"
6255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256     break 2
6257   fi
6258 done
6259   done
6260 IFS=$as_save_IFS
6261
6262 fi
6263 fi
6264 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6265 if test -n "$ac_ct_RANLIB"; then
6266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6267 $as_echo "$ac_ct_RANLIB" >&6; }
6268 else
6269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 $as_echo "no" >&6; }
6271 fi
6272
6273   if test "x$ac_ct_RANLIB" = x; then
6274     RANLIB=":"
6275   else
6276     case $cross_compiling:$ac_tool_warned in
6277 yes:)
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6280 ac_tool_warned=yes ;;
6281 esac
6282     RANLIB=$ac_ct_RANLIB
6283   fi
6284 else
6285   RANLIB="$ac_cv_prog_RANLIB"
6286 fi
6287
6288 test -z "$RANLIB" && RANLIB=:
6289
6290
6291
6292
6293
6294
6295 # Determine commands to create old-style static archives.
6296 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6297 old_postinstall_cmds='chmod 644 $oldlib'
6298 old_postuninstall_cmds=
6299
6300 if test -n "$RANLIB"; then
6301   case $host_os in
6302   openbsd*)
6303     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6304     ;;
6305   *)
6306     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6307     ;;
6308   esac
6309   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6310 fi
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345 # If no C compiler was specified, use CC.
6346 LTCC=${LTCC-"$CC"}
6347
6348 # If no C compiler flags were specified, use CFLAGS.
6349 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6350
6351 # Allow CC to be a program name with arguments.
6352 compiler=$CC
6353
6354
6355 # Check for command to grab the raw symbol name followed by C symbol from nm.
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6357 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6358 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6359   $as_echo_n "(cached) " >&6
6360 else
6361
6362 # These are sane defaults that work on at least a few old systems.
6363 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6364
6365 # Character class describing NM global symbol codes.
6366 symcode='[BCDEGRST]'
6367
6368 # Regexp to match symbols that can be accessed directly from C.
6369 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6370
6371 # Define system-specific variables.
6372 case $host_os in
6373 aix*)
6374   symcode='[BCDT]'
6375   ;;
6376 cygwin* | mingw* | pw32* | cegcc*)
6377   symcode='[ABCDGISTW]'
6378   ;;
6379 hpux*)
6380   if test "$host_cpu" = ia64; then
6381     symcode='[ABCDEGRST]'
6382   fi
6383   ;;
6384 irix* | nonstopux*)
6385   symcode='[BCDEGRST]'
6386   ;;
6387 osf*)
6388   symcode='[BCDEGQRST]'
6389   ;;
6390 solaris*)
6391   symcode='[BDRT]'
6392   ;;
6393 sco3.2v5*)
6394   symcode='[DT]'
6395   ;;
6396 sysv4.2uw2*)
6397   symcode='[DT]'
6398   ;;
6399 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6400   symcode='[ABDT]'
6401   ;;
6402 sysv4)
6403   symcode='[DFNSTU]'
6404   ;;
6405 esac
6406
6407 # If we're using GNU nm, then use its standard symbol codes.
6408 case `$NM -V 2>&1` in
6409 *GNU* | *'with BFD'*)
6410   symcode='[ABCDGIRSTW]' ;;
6411 esac
6412
6413 # Transform an extracted symbol line into a proper C declaration.
6414 # Some systems (esp. on ia64) link data and code symbols differently,
6415 # so use this general approach.
6416 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6417
6418 # Transform an extracted symbol line into symbol name and symbol address
6419 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6420 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'"
6421
6422 # Handle CRLF in mingw tool chain
6423 opt_cr=
6424 case $build_os in
6425 mingw*)
6426   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6427   ;;
6428 esac
6429
6430 # Try without a prefix underscore, then with it.
6431 for ac_symprfx in "" "_"; do
6432
6433   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6434   symxfrm="\\1 $ac_symprfx\\2 \\2"
6435
6436   # Write the raw and C identifiers.
6437   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6438     # Fake it for dumpbin and say T for any non-static function
6439     # and D for any global variable.
6440     # Also find C++ and __fastcall symbols from MSVC++,
6441     # which start with @ or ?.
6442     lt_cv_sys_global_symbol_pipe="$AWK '"\
6443 "     {last_section=section; section=\$ 3};"\
6444 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6445 "     \$ 0!~/External *\|/{next};"\
6446 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6447 "     {if(hide[section]) next};"\
6448 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6449 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6450 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6451 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6452 "     ' prfx=^$ac_symprfx"
6453   else
6454     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6455   fi
6456
6457   # Check to see that the pipe works correctly.
6458   pipe_works=no
6459
6460   rm -f conftest*
6461   cat > conftest.$ac_ext <<_LT_EOF
6462 #ifdef __cplusplus
6463 extern "C" {
6464 #endif
6465 char nm_test_var;
6466 void nm_test_func(void);
6467 void nm_test_func(void){}
6468 #ifdef __cplusplus
6469 }
6470 #endif
6471 int main(){nm_test_var='a';nm_test_func();return(0);}
6472 _LT_EOF
6473
6474   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6475   (eval $ac_compile) 2>&5
6476   ac_status=$?
6477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6478   test $ac_status = 0; }; then
6479     # Now try to grab the symbols.
6480     nlist=conftest.nm
6481     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6482   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6483   ac_status=$?
6484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6485   test $ac_status = 0; } && test -s "$nlist"; then
6486       # Try sorting and uniquifying the output.
6487       if sort "$nlist" | uniq > "$nlist"T; then
6488         mv -f "$nlist"T "$nlist"
6489       else
6490         rm -f "$nlist"T
6491       fi
6492
6493       # Make sure that we snagged all the symbols we need.
6494       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6495         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6496           cat <<_LT_EOF > conftest.$ac_ext
6497 #ifdef __cplusplus
6498 extern "C" {
6499 #endif
6500
6501 _LT_EOF
6502           # Now generate the symbol file.
6503           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6504
6505           cat <<_LT_EOF >> conftest.$ac_ext
6506
6507 /* The mapping between symbol names and symbols.  */
6508 const struct {
6509   const char *name;
6510   void       *address;
6511 }
6512 lt__PROGRAM__LTX_preloaded_symbols[] =
6513 {
6514   { "@PROGRAM@", (void *) 0 },
6515 _LT_EOF
6516           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6517           cat <<\_LT_EOF >> conftest.$ac_ext
6518   {0, (void *) 0}
6519 };
6520
6521 /* This works around a problem in FreeBSD linker */
6522 #ifdef FREEBSD_WORKAROUND
6523 static const void *lt_preloaded_setup() {
6524   return lt__PROGRAM__LTX_preloaded_symbols;
6525 }
6526 #endif
6527
6528 #ifdef __cplusplus
6529 }
6530 #endif
6531 _LT_EOF
6532           # Now try linking the two files.
6533           mv conftest.$ac_objext conftstm.$ac_objext
6534           lt_save_LIBS="$LIBS"
6535           lt_save_CFLAGS="$CFLAGS"
6536           LIBS="conftstm.$ac_objext"
6537           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6538           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6539   (eval $ac_link) 2>&5
6540   ac_status=$?
6541   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6542   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6543             pipe_works=yes
6544           fi
6545           LIBS="$lt_save_LIBS"
6546           CFLAGS="$lt_save_CFLAGS"
6547         else
6548           echo "cannot find nm_test_func in $nlist" >&5
6549         fi
6550       else
6551         echo "cannot find nm_test_var in $nlist" >&5
6552       fi
6553     else
6554       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6555     fi
6556   else
6557     echo "$progname: failed program was:" >&5
6558     cat conftest.$ac_ext >&5
6559   fi
6560   rm -rf conftest* conftst*
6561
6562   # Do not use the global_symbol_pipe unless it works.
6563   if test "$pipe_works" = yes; then
6564     break
6565   else
6566     lt_cv_sys_global_symbol_pipe=
6567   fi
6568 done
6569
6570 fi
6571
6572 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6573   lt_cv_sys_global_symbol_to_cdecl=
6574 fi
6575 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6577 $as_echo "failed" >&6; }
6578 else
6579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6580 $as_echo "ok" >&6; }
6581 fi
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604 # Check whether --enable-libtool-lock was given.
6605 if test "${enable_libtool_lock+set}" = set; then :
6606   enableval=$enable_libtool_lock;
6607 fi
6608
6609 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6610
6611 # Some flags need to be propagated to the compiler or linker for good
6612 # libtool support.
6613 case $host in
6614 ia64-*-hpux*)
6615   # Find out which ABI we are using.
6616   echo 'int i;' > conftest.$ac_ext
6617   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6618   (eval $ac_compile) 2>&5
6619   ac_status=$?
6620   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6621   test $ac_status = 0; }; then
6622     case `/usr/bin/file conftest.$ac_objext` in
6623       *ELF-32*)
6624         HPUX_IA64_MODE="32"
6625         ;;
6626       *ELF-64*)
6627         HPUX_IA64_MODE="64"
6628         ;;
6629     esac
6630   fi
6631   rm -rf conftest*
6632   ;;
6633 *-*-irix6*)
6634   # Find out which ABI we are using.
6635   echo '#line 6635 "configure"' > conftest.$ac_ext
6636   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6637   (eval $ac_compile) 2>&5
6638   ac_status=$?
6639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6640   test $ac_status = 0; }; then
6641     if test "$lt_cv_prog_gnu_ld" = yes; then
6642       case `/usr/bin/file conftest.$ac_objext` in
6643         *32-bit*)
6644           LD="${LD-ld} -melf32bsmip"
6645           ;;
6646         *N32*)
6647           LD="${LD-ld} -melf32bmipn32"
6648           ;;
6649         *64-bit*)
6650           LD="${LD-ld} -melf64bmip"
6651         ;;
6652       esac
6653     else
6654       case `/usr/bin/file conftest.$ac_objext` in
6655         *32-bit*)
6656           LD="${LD-ld} -32"
6657           ;;
6658         *N32*)
6659           LD="${LD-ld} -n32"
6660           ;;
6661         *64-bit*)
6662           LD="${LD-ld} -64"
6663           ;;
6664       esac
6665     fi
6666   fi
6667   rm -rf conftest*
6668   ;;
6669
6670 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6671 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6672   # Find out which ABI we are using.
6673   echo 'int i;' > conftest.$ac_ext
6674   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6675   (eval $ac_compile) 2>&5
6676   ac_status=$?
6677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6678   test $ac_status = 0; }; then
6679     case `/usr/bin/file conftest.o` in
6680       *32-bit*)
6681         case $host in
6682           x86_64-*kfreebsd*-gnu)
6683             LD="${LD-ld} -m elf_i386_fbsd"
6684             ;;
6685           x86_64-*linux*)
6686             LD="${LD-ld} -m elf_i386"
6687             ;;
6688           ppc64-*linux*|powerpc64-*linux*)
6689             LD="${LD-ld} -m elf32ppclinux"
6690             ;;
6691           s390x-*linux*)
6692             LD="${LD-ld} -m elf_s390"
6693             ;;
6694           sparc64-*linux*)
6695             LD="${LD-ld} -m elf32_sparc"
6696             ;;
6697         esac
6698         ;;
6699       *64-bit*)
6700         case $host in
6701           x86_64-*kfreebsd*-gnu)
6702             LD="${LD-ld} -m elf_x86_64_fbsd"
6703             ;;
6704           x86_64-*linux*)
6705             LD="${LD-ld} -m elf_x86_64"
6706             ;;
6707           ppc*-*linux*|powerpc*-*linux*)
6708             LD="${LD-ld} -m elf64ppc"
6709             ;;
6710           s390*-*linux*|s390*-*tpf*)
6711             LD="${LD-ld} -m elf64_s390"
6712             ;;
6713           sparc*-*linux*)
6714             LD="${LD-ld} -m elf64_sparc"
6715             ;;
6716         esac
6717         ;;
6718     esac
6719   fi
6720   rm -rf conftest*
6721   ;;
6722
6723 *-*-sco3.2v5*)
6724   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6725   SAVE_CFLAGS="$CFLAGS"
6726   CFLAGS="$CFLAGS -belf"
6727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6728 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6729 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6730   $as_echo_n "(cached) " >&6
6731 else
6732   ac_ext=c
6733 ac_cpp='$CPP $CPPFLAGS'
6734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6737
6738      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h.  */
6740
6741 int
6742 main ()
6743 {
6744
6745   ;
6746   return 0;
6747 }
6748 _ACEOF
6749 if ac_fn_c_try_link "$LINENO"; then :
6750   lt_cv_cc_needs_belf=yes
6751 else
6752   lt_cv_cc_needs_belf=no
6753 fi
6754 rm -f core conftest.err conftest.$ac_objext \
6755     conftest$ac_exeext conftest.$ac_ext
6756      ac_ext=c
6757 ac_cpp='$CPP $CPPFLAGS'
6758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6761
6762 fi
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6764 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6765   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6766     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6767     CFLAGS="$SAVE_CFLAGS"
6768   fi
6769   ;;
6770 sparc*-*solaris*)
6771   # Find out which ABI we are using.
6772   echo 'int i;' > conftest.$ac_ext
6773   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6774   (eval $ac_compile) 2>&5
6775   ac_status=$?
6776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6777   test $ac_status = 0; }; then
6778     case `/usr/bin/file conftest.o` in
6779     *64-bit*)
6780       case $lt_cv_prog_gnu_ld in
6781       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6782       *)
6783         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6784           LD="${LD-ld} -64"
6785         fi
6786         ;;
6787       esac
6788       ;;
6789     esac
6790   fi
6791   rm -rf conftest*
6792   ;;
6793 esac
6794
6795 need_locks="$enable_libtool_lock"
6796
6797
6798   case $host_os in
6799     rhapsody* | darwin*)
6800     if test -n "$ac_tool_prefix"; then
6801   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6802 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804 $as_echo_n "checking for $ac_word... " >&6; }
6805 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6806   $as_echo_n "(cached) " >&6
6807 else
6808   if test -n "$DSYMUTIL"; then
6809   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6810 else
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 for as_dir in $PATH
6813 do
6814   IFS=$as_save_IFS
6815   test -z "$as_dir" && as_dir=.
6816     for ac_exec_ext in '' $ac_executable_extensions; do
6817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6818     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820     break 2
6821   fi
6822 done
6823   done
6824 IFS=$as_save_IFS
6825
6826 fi
6827 fi
6828 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6829 if test -n "$DSYMUTIL"; then
6830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6831 $as_echo "$DSYMUTIL" >&6; }
6832 else
6833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6835 fi
6836
6837
6838 fi
6839 if test -z "$ac_cv_prog_DSYMUTIL"; then
6840   ac_ct_DSYMUTIL=$DSYMUTIL
6841   # Extract the first word of "dsymutil", so it can be a program name with args.
6842 set dummy dsymutil; ac_word=$2
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844 $as_echo_n "checking for $ac_word... " >&6; }
6845 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6846   $as_echo_n "(cached) " >&6
6847 else
6848   if test -n "$ac_ct_DSYMUTIL"; then
6849   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6850 else
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 for as_dir in $PATH
6853 do
6854   IFS=$as_save_IFS
6855   test -z "$as_dir" && as_dir=.
6856     for ac_exec_ext in '' $ac_executable_extensions; do
6857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6858     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860     break 2
6861   fi
6862 done
6863   done
6864 IFS=$as_save_IFS
6865
6866 fi
6867 fi
6868 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6869 if test -n "$ac_ct_DSYMUTIL"; then
6870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6871 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6872 else
6873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874 $as_echo "no" >&6; }
6875 fi
6876
6877   if test "x$ac_ct_DSYMUTIL" = x; then
6878     DSYMUTIL=":"
6879   else
6880     case $cross_compiling:$ac_tool_warned in
6881 yes:)
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6884 ac_tool_warned=yes ;;
6885 esac
6886     DSYMUTIL=$ac_ct_DSYMUTIL
6887   fi
6888 else
6889   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6890 fi
6891
6892     if test -n "$ac_tool_prefix"; then
6893   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6894 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896 $as_echo_n "checking for $ac_word... " >&6; }
6897 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6898   $as_echo_n "(cached) " >&6
6899 else
6900   if test -n "$NMEDIT"; then
6901   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6902 else
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 for as_dir in $PATH
6905 do
6906   IFS=$as_save_IFS
6907   test -z "$as_dir" && as_dir=.
6908     for ac_exec_ext in '' $ac_executable_extensions; do
6909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6910     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912     break 2
6913   fi
6914 done
6915   done
6916 IFS=$as_save_IFS
6917
6918 fi
6919 fi
6920 NMEDIT=$ac_cv_prog_NMEDIT
6921 if test -n "$NMEDIT"; then
6922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6923 $as_echo "$NMEDIT" >&6; }
6924 else
6925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6927 fi
6928
6929
6930 fi
6931 if test -z "$ac_cv_prog_NMEDIT"; then
6932   ac_ct_NMEDIT=$NMEDIT
6933   # Extract the first word of "nmedit", so it can be a program name with args.
6934 set dummy nmedit; ac_word=$2
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936 $as_echo_n "checking for $ac_word... " >&6; }
6937 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6938   $as_echo_n "(cached) " >&6
6939 else
6940   if test -n "$ac_ct_NMEDIT"; then
6941   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6942 else
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $PATH
6945 do
6946   IFS=$as_save_IFS
6947   test -z "$as_dir" && as_dir=.
6948     for ac_exec_ext in '' $ac_executable_extensions; do
6949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6950     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952     break 2
6953   fi
6954 done
6955   done
6956 IFS=$as_save_IFS
6957
6958 fi
6959 fi
6960 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6961 if test -n "$ac_ct_NMEDIT"; then
6962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6963 $as_echo "$ac_ct_NMEDIT" >&6; }
6964 else
6965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6967 fi
6968
6969   if test "x$ac_ct_NMEDIT" = x; then
6970     NMEDIT=":"
6971   else
6972     case $cross_compiling:$ac_tool_warned in
6973 yes:)
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6976 ac_tool_warned=yes ;;
6977 esac
6978     NMEDIT=$ac_ct_NMEDIT
6979   fi
6980 else
6981   NMEDIT="$ac_cv_prog_NMEDIT"
6982 fi
6983
6984     if test -n "$ac_tool_prefix"; then
6985   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6986 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6988 $as_echo_n "checking for $ac_word... " >&6; }
6989 if test "${ac_cv_prog_LIPO+set}" = set; then :
6990   $as_echo_n "(cached) " >&6
6991 else
6992   if test -n "$LIPO"; then
6993   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6994 else
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998   IFS=$as_save_IFS
6999   test -z "$as_dir" && as_dir=.
7000     for ac_exec_ext in '' $ac_executable_extensions; do
7001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7002     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004     break 2
7005   fi
7006 done
7007   done
7008 IFS=$as_save_IFS
7009
7010 fi
7011 fi
7012 LIPO=$ac_cv_prog_LIPO
7013 if test -n "$LIPO"; then
7014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7015 $as_echo "$LIPO" >&6; }
7016 else
7017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018 $as_echo "no" >&6; }
7019 fi
7020
7021
7022 fi
7023 if test -z "$ac_cv_prog_LIPO"; then
7024   ac_ct_LIPO=$LIPO
7025   # Extract the first word of "lipo", so it can be a program name with args.
7026 set dummy lipo; ac_word=$2
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028 $as_echo_n "checking for $ac_word... " >&6; }
7029 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7030   $as_echo_n "(cached) " >&6
7031 else
7032   if test -n "$ac_ct_LIPO"; then
7033   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7034 else
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 for as_dir in $PATH
7037 do
7038   IFS=$as_save_IFS
7039   test -z "$as_dir" && as_dir=.
7040     for ac_exec_ext in '' $ac_executable_extensions; do
7041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7042     ac_cv_prog_ac_ct_LIPO="lipo"
7043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7044     break 2
7045   fi
7046 done
7047   done
7048 IFS=$as_save_IFS
7049
7050 fi
7051 fi
7052 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7053 if test -n "$ac_ct_LIPO"; then
7054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7055 $as_echo "$ac_ct_LIPO" >&6; }
7056 else
7057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058 $as_echo "no" >&6; }
7059 fi
7060
7061   if test "x$ac_ct_LIPO" = x; then
7062     LIPO=":"
7063   else
7064     case $cross_compiling:$ac_tool_warned in
7065 yes:)
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7068 ac_tool_warned=yes ;;
7069 esac
7070     LIPO=$ac_ct_LIPO
7071   fi
7072 else
7073   LIPO="$ac_cv_prog_LIPO"
7074 fi
7075
7076     if test -n "$ac_tool_prefix"; then
7077   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7078 set dummy ${ac_tool_prefix}otool; ac_word=$2
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080 $as_echo_n "checking for $ac_word... " >&6; }
7081 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7082   $as_echo_n "(cached) " >&6
7083 else
7084   if test -n "$OTOOL"; then
7085   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7086 else
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7089 do
7090   IFS=$as_save_IFS
7091   test -z "$as_dir" && as_dir=.
7092     for ac_exec_ext in '' $ac_executable_extensions; do
7093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7094     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096     break 2
7097   fi
7098 done
7099   done
7100 IFS=$as_save_IFS
7101
7102 fi
7103 fi
7104 OTOOL=$ac_cv_prog_OTOOL
7105 if test -n "$OTOOL"; then
7106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7107 $as_echo "$OTOOL" >&6; }
7108 else
7109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7111 fi
7112
7113
7114 fi
7115 if test -z "$ac_cv_prog_OTOOL"; then
7116   ac_ct_OTOOL=$OTOOL
7117   # Extract the first word of "otool", so it can be a program name with args.
7118 set dummy otool; ac_word=$2
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7122   $as_echo_n "(cached) " >&6
7123 else
7124   if test -n "$ac_ct_OTOOL"; then
7125   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7129 do
7130   IFS=$as_save_IFS
7131   test -z "$as_dir" && as_dir=.
7132     for ac_exec_ext in '' $ac_executable_extensions; do
7133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134     ac_cv_prog_ac_ct_OTOOL="otool"
7135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136     break 2
7137   fi
7138 done
7139   done
7140 IFS=$as_save_IFS
7141
7142 fi
7143 fi
7144 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7145 if test -n "$ac_ct_OTOOL"; then
7146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7147 $as_echo "$ac_ct_OTOOL" >&6; }
7148 else
7149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7151 fi
7152
7153   if test "x$ac_ct_OTOOL" = x; then
7154     OTOOL=":"
7155   else
7156     case $cross_compiling:$ac_tool_warned in
7157 yes:)
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7160 ac_tool_warned=yes ;;
7161 esac
7162     OTOOL=$ac_ct_OTOOL
7163   fi
7164 else
7165   OTOOL="$ac_cv_prog_OTOOL"
7166 fi
7167
7168     if test -n "$ac_tool_prefix"; then
7169   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7170 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172 $as_echo_n "checking for $ac_word... " >&6; }
7173 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7174   $as_echo_n "(cached) " >&6
7175 else
7176   if test -n "$OTOOL64"; then
7177   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7178 else
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7181 do
7182   IFS=$as_save_IFS
7183   test -z "$as_dir" && as_dir=.
7184     for ac_exec_ext in '' $ac_executable_extensions; do
7185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7186     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188     break 2
7189   fi
7190 done
7191   done
7192 IFS=$as_save_IFS
7193
7194 fi
7195 fi
7196 OTOOL64=$ac_cv_prog_OTOOL64
7197 if test -n "$OTOOL64"; then
7198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7199 $as_echo "$OTOOL64" >&6; }
7200 else
7201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7203 fi
7204
7205
7206 fi
7207 if test -z "$ac_cv_prog_OTOOL64"; then
7208   ac_ct_OTOOL64=$OTOOL64
7209   # Extract the first word of "otool64", so it can be a program name with args.
7210 set dummy otool64; ac_word=$2
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212 $as_echo_n "checking for $ac_word... " >&6; }
7213 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7214   $as_echo_n "(cached) " >&6
7215 else
7216   if test -n "$ac_ct_OTOOL64"; then
7217   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7218 else
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 for as_dir in $PATH
7221 do
7222   IFS=$as_save_IFS
7223   test -z "$as_dir" && as_dir=.
7224     for ac_exec_ext in '' $ac_executable_extensions; do
7225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7226     ac_cv_prog_ac_ct_OTOOL64="otool64"
7227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7228     break 2
7229   fi
7230 done
7231   done
7232 IFS=$as_save_IFS
7233
7234 fi
7235 fi
7236 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7237 if test -n "$ac_ct_OTOOL64"; then
7238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7239 $as_echo "$ac_ct_OTOOL64" >&6; }
7240 else
7241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242 $as_echo "no" >&6; }
7243 fi
7244
7245   if test "x$ac_ct_OTOOL64" = x; then
7246     OTOOL64=":"
7247   else
7248     case $cross_compiling:$ac_tool_warned in
7249 yes:)
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7252 ac_tool_warned=yes ;;
7253 esac
7254     OTOOL64=$ac_ct_OTOOL64
7255   fi
7256 else
7257   OTOOL64="$ac_cv_prog_OTOOL64"
7258 fi
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7287 $as_echo_n "checking for -single_module linker flag... " >&6; }
7288 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7289   $as_echo_n "(cached) " >&6
7290 else
7291   lt_cv_apple_cc_single_mod=no
7292       if test -z "${LT_MULTI_MODULE}"; then
7293         # By default we will add the -single_module flag. You can override
7294         # by either setting the environment variable LT_MULTI_MODULE
7295         # non-empty at configure time, or by adding -multi_module to the
7296         # link flags.
7297         rm -rf libconftest.dylib*
7298         echo "int foo(void){return 1;}" > conftest.c
7299         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7300 -dynamiclib -Wl,-single_module conftest.c" >&5
7301         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7302           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7303         _lt_result=$?
7304         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7305           lt_cv_apple_cc_single_mod=yes
7306         else
7307           cat conftest.err >&5
7308         fi
7309         rm -rf libconftest.dylib*
7310         rm -f conftest.*
7311       fi
7312 fi
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7314 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7315     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7316 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7317 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7318   $as_echo_n "(cached) " >&6
7319 else
7320   lt_cv_ld_exported_symbols_list=no
7321       save_LDFLAGS=$LDFLAGS
7322       echo "_main" > conftest.sym
7323       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7324       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h.  */
7326
7327 int
7328 main ()
7329 {
7330
7331   ;
7332   return 0;
7333 }
7334 _ACEOF
7335 if ac_fn_c_try_link "$LINENO"; then :
7336   lt_cv_ld_exported_symbols_list=yes
7337 else
7338   lt_cv_ld_exported_symbols_list=no
7339 fi
7340 rm -f core conftest.err conftest.$ac_objext \
7341     conftest$ac_exeext conftest.$ac_ext
7342         LDFLAGS="$save_LDFLAGS"
7343
7344 fi
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7346 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7347     case $host_os in
7348     rhapsody* | darwin1.[012])
7349       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7350     darwin1.*)
7351       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7352     darwin*) # darwin 5.x on
7353       # if running on 10.5 or later, the deployment target defaults
7354       # to the OS version, if on x86, and 10.4, the deployment
7355       # target defaults to 10.4. Don't you love it?
7356       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7357         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7358           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7359         10.[012]*)
7360           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7361         10.*)
7362           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7363       esac
7364     ;;
7365   esac
7366     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7367       _lt_dar_single_mod='$single_module'
7368     fi
7369     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7370       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7371     else
7372       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7373     fi
7374     if test "$DSYMUTIL" != ":"; then
7375       _lt_dsymutil='~$DSYMUTIL $lib || :'
7376     else
7377       _lt_dsymutil=
7378     fi
7379     ;;
7380   esac
7381
7382 for ac_header in dlfcn.h
7383 do :
7384   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7385 "
7386 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7387   cat >>confdefs.h <<_ACEOF
7388 #define HAVE_DLFCN_H 1
7389 _ACEOF
7390
7391 fi
7392
7393 done
7394
7395
7396
7397 ac_ext=cpp
7398 ac_cpp='$CXXCPP $CPPFLAGS'
7399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7402 if test -z "$CXX"; then
7403   if test -n "$CCC"; then
7404     CXX=$CCC
7405   else
7406     if test -n "$ac_tool_prefix"; then
7407   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7408   do
7409     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if test "${ac_cv_prog_CXX+set}" = set; then :
7414   $as_echo_n "(cached) " >&6
7415 else
7416   if test -n "$CXX"; then
7417   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7418 else
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 for as_dir in $PATH
7421 do
7422   IFS=$as_save_IFS
7423   test -z "$as_dir" && as_dir=.
7424     for ac_exec_ext in '' $ac_executable_extensions; do
7425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7426     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428     break 2
7429   fi
7430 done
7431   done
7432 IFS=$as_save_IFS
7433
7434 fi
7435 fi
7436 CXX=$ac_cv_prog_CXX
7437 if test -n "$CXX"; then
7438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7439 $as_echo "$CXX" >&6; }
7440 else
7441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442 $as_echo "no" >&6; }
7443 fi
7444
7445
7446     test -n "$CXX" && break
7447   done
7448 fi
7449 if test -z "$CXX"; then
7450   ac_ct_CXX=$CXX
7451   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7452 do
7453   # Extract the first word of "$ac_prog", so it can be a program name with args.
7454 set dummy $ac_prog; ac_word=$2
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456 $as_echo_n "checking for $ac_word... " >&6; }
7457 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7458   $as_echo_n "(cached) " >&6
7459 else
7460   if test -n "$ac_ct_CXX"; then
7461   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7462 else
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7465 do
7466   IFS=$as_save_IFS
7467   test -z "$as_dir" && as_dir=.
7468     for ac_exec_ext in '' $ac_executable_extensions; do
7469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7470     ac_cv_prog_ac_ct_CXX="$ac_prog"
7471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7472     break 2
7473   fi
7474 done
7475   done
7476 IFS=$as_save_IFS
7477
7478 fi
7479 fi
7480 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7481 if test -n "$ac_ct_CXX"; then
7482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7483 $as_echo "$ac_ct_CXX" >&6; }
7484 else
7485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7487 fi
7488
7489
7490   test -n "$ac_ct_CXX" && break
7491 done
7492
7493   if test "x$ac_ct_CXX" = x; then
7494     CXX="g++"
7495   else
7496     case $cross_compiling:$ac_tool_warned in
7497 yes:)
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7500 ac_tool_warned=yes ;;
7501 esac
7502     CXX=$ac_ct_CXX
7503   fi
7504 fi
7505
7506   fi
7507 fi
7508 # Provide some information about the compiler.
7509 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7510 set X $ac_compile
7511 ac_compiler=$2
7512 for ac_option in --version -v -V -qversion; do
7513   { { ac_try="$ac_compiler $ac_option >&5"
7514 case "(($ac_try" in
7515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516   *) ac_try_echo=$ac_try;;
7517 esac
7518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7519 $as_echo "$ac_try_echo"; } >&5
7520   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7521   ac_status=$?
7522   if test -s conftest.err; then
7523     sed '10a\
7524 ... rest of stderr output deleted ...
7525          10q' conftest.err >conftest.er1
7526     cat conftest.er1 >&5
7527   fi
7528   rm -f conftest.er1 conftest.err
7529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7530   test $ac_status = 0; }
7531 done
7532
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7534 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7535 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7536   $as_echo_n "(cached) " >&6
7537 else
7538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h.  */
7540
7541 int
7542 main ()
7543 {
7544 #ifndef __GNUC__
7545        choke me
7546 #endif
7547
7548   ;
7549   return 0;
7550 }
7551 _ACEOF
7552 if ac_fn_cxx_try_compile "$LINENO"; then :
7553   ac_compiler_gnu=yes
7554 else
7555   ac_compiler_gnu=no
7556 fi
7557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7559
7560 fi
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7562 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7563 if test $ac_compiler_gnu = yes; then
7564   GXX=yes
7565 else
7566   GXX=
7567 fi
7568 ac_test_CXXFLAGS=${CXXFLAGS+set}
7569 ac_save_CXXFLAGS=$CXXFLAGS
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7571 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7572 if test "${ac_cv_prog_cxx_g+set}" = set; then :
7573   $as_echo_n "(cached) " >&6
7574 else
7575   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7576    ac_cxx_werror_flag=yes
7577    ac_cv_prog_cxx_g=no
7578    CXXFLAGS="-g"
7579    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h.  */
7581
7582 int
7583 main ()
7584 {
7585
7586   ;
7587   return 0;
7588 }
7589 _ACEOF
7590 if ac_fn_cxx_try_compile "$LINENO"; then :
7591   ac_cv_prog_cxx_g=yes
7592 else
7593   CXXFLAGS=""
7594       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h.  */
7596
7597 int
7598 main ()
7599 {
7600
7601   ;
7602   return 0;
7603 }
7604 _ACEOF
7605 if ac_fn_cxx_try_compile "$LINENO"; then :
7606
7607 else
7608   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7609          CXXFLAGS="-g"
7610          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h.  */
7612
7613 int
7614 main ()
7615 {
7616
7617   ;
7618   return 0;
7619 }
7620 _ACEOF
7621 if ac_fn_cxx_try_compile "$LINENO"; then :
7622   ac_cv_prog_cxx_g=yes
7623 fi
7624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625 fi
7626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627 fi
7628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7629    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7630 fi
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7632 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7633 if test "$ac_test_CXXFLAGS" = set; then
7634   CXXFLAGS=$ac_save_CXXFLAGS
7635 elif test $ac_cv_prog_cxx_g = yes; then
7636   if test "$GXX" = yes; then
7637     CXXFLAGS="-g -O2"
7638   else
7639     CXXFLAGS="-g"
7640   fi
7641 else
7642   if test "$GXX" = yes; then
7643     CXXFLAGS="-O2"
7644   else
7645     CXXFLAGS=
7646   fi
7647 fi
7648 ac_ext=c
7649 ac_cpp='$CPP $CPPFLAGS'
7650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7653
7654 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7655     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7656     (test "X$CXX" != "Xg++"))) ; then
7657   ac_ext=cpp
7658 ac_cpp='$CXXCPP $CPPFLAGS'
7659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7663 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7664 if test -z "$CXXCPP"; then
7665   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7666   $as_echo_n "(cached) " >&6
7667 else
7668       # Double quotes because CXXCPP needs to be expanded
7669     for CXXCPP in "$CXX -E" "/lib/cpp"
7670     do
7671       ac_preproc_ok=false
7672 for ac_cxx_preproc_warn_flag in '' yes
7673 do
7674   # Use a header file that comes with gcc, so configuring glibc
7675   # with a fresh cross-compiler works.
7676   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7677   # <limits.h> exists even on freestanding compilers.
7678   # On the NeXT, cc -E runs the code through the compiler's parser,
7679   # not just through cpp. "Syntax error" is here to catch this case.
7680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h.  */
7682 #ifdef __STDC__
7683 # include <limits.h>
7684 #else
7685 # include <assert.h>
7686 #endif
7687                      Syntax error
7688 _ACEOF
7689 if ac_fn_cxx_try_cpp "$LINENO"; then :
7690
7691 else
7692   # Broken: fails on valid input.
7693 continue
7694 fi
7695 rm -f conftest.err conftest.$ac_ext
7696
7697   # OK, works on sane cases.  Now check whether nonexistent headers
7698   # can be detected and how.
7699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h.  */
7701 #include <ac_nonexistent.h>
7702 _ACEOF
7703 if ac_fn_cxx_try_cpp "$LINENO"; then :
7704   # Broken: success on invalid input.
7705 continue
7706 else
7707   # Passes both tests.
7708 ac_preproc_ok=:
7709 break
7710 fi
7711 rm -f conftest.err conftest.$ac_ext
7712
7713 done
7714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7715 rm -f conftest.err conftest.$ac_ext
7716 if $ac_preproc_ok; then :
7717   break
7718 fi
7719
7720     done
7721     ac_cv_prog_CXXCPP=$CXXCPP
7722
7723 fi
7724   CXXCPP=$ac_cv_prog_CXXCPP
7725 else
7726   ac_cv_prog_CXXCPP=$CXXCPP
7727 fi
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7729 $as_echo "$CXXCPP" >&6; }
7730 ac_preproc_ok=false
7731 for ac_cxx_preproc_warn_flag in '' yes
7732 do
7733   # Use a header file that comes with gcc, so configuring glibc
7734   # with a fresh cross-compiler works.
7735   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7736   # <limits.h> exists even on freestanding compilers.
7737   # On the NeXT, cc -E runs the code through the compiler's parser,
7738   # not just through cpp. "Syntax error" is here to catch this case.
7739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740 /* end confdefs.h.  */
7741 #ifdef __STDC__
7742 # include <limits.h>
7743 #else
7744 # include <assert.h>
7745 #endif
7746                      Syntax error
7747 _ACEOF
7748 if ac_fn_cxx_try_cpp "$LINENO"; then :
7749
7750 else
7751   # Broken: fails on valid input.
7752 continue
7753 fi
7754 rm -f conftest.err conftest.$ac_ext
7755
7756   # OK, works on sane cases.  Now check whether nonexistent headers
7757   # can be detected and how.
7758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h.  */
7760 #include <ac_nonexistent.h>
7761 _ACEOF
7762 if ac_fn_cxx_try_cpp "$LINENO"; then :
7763   # Broken: success on invalid input.
7764 continue
7765 else
7766   # Passes both tests.
7767 ac_preproc_ok=:
7768 break
7769 fi
7770 rm -f conftest.err conftest.$ac_ext
7771
7772 done
7773 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7774 rm -f conftest.err conftest.$ac_ext
7775 if $ac_preproc_ok; then :
7776
7777 else
7778   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7780 _lt_caught_CXX_error=yes; }
7781 fi
7782
7783 ac_ext=c
7784 ac_cpp='$CPP $CPPFLAGS'
7785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7788
7789 else
7790   _lt_caught_CXX_error=yes
7791 fi
7792
7793
7794
7795
7796
7797 # Set options
7798
7799
7800
7801         enable_dlopen=no
7802
7803
7804   enable_win32_dll=no
7805
7806
7807             # Check whether --enable-shared was given.
7808 if test "${enable_shared+set}" = set; then :
7809   enableval=$enable_shared; p=${PACKAGE-default}
7810     case $enableval in
7811     yes) enable_shared=yes ;;
7812     no) enable_shared=no ;;
7813     *)
7814       enable_shared=no
7815       # Look at the argument we got.  We use all the common list separators.
7816       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7817       for pkg in $enableval; do
7818         IFS="$lt_save_ifs"
7819         if test "X$pkg" = "X$p"; then
7820           enable_shared=yes
7821         fi
7822       done
7823       IFS="$lt_save_ifs"
7824       ;;
7825     esac
7826 else
7827   enable_shared=yes
7828 fi
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838   # Check whether --enable-static was given.
7839 if test "${enable_static+set}" = set; then :
7840   enableval=$enable_static; p=${PACKAGE-default}
7841     case $enableval in
7842     yes) enable_static=yes ;;
7843     no) enable_static=no ;;
7844     *)
7845      enable_static=no
7846       # Look at the argument we got.  We use all the common list separators.
7847       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7848       for pkg in $enableval; do
7849         IFS="$lt_save_ifs"
7850         if test "X$pkg" = "X$p"; then
7851           enable_static=yes
7852         fi
7853       done
7854       IFS="$lt_save_ifs"
7855       ;;
7856     esac
7857 else
7858   enable_static=yes
7859 fi
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870 # Check whether --with-pic was given.
7871 if test "${with_pic+set}" = set; then :
7872   withval=$with_pic; pic_mode="$withval"
7873 else
7874   pic_mode=default
7875 fi
7876
7877
7878 test -z "$pic_mode" && pic_mode=default
7879
7880
7881
7882
7883
7884
7885
7886   # Check whether --enable-fast-install was given.
7887 if test "${enable_fast_install+set}" = set; then :
7888   enableval=$enable_fast_install; p=${PACKAGE-default}
7889     case $enableval in
7890     yes) enable_fast_install=yes ;;
7891     no) enable_fast_install=no ;;
7892     *)
7893       enable_fast_install=no
7894       # Look at the argument we got.  We use all the common list separators.
7895       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7896       for pkg in $enableval; do
7897         IFS="$lt_save_ifs"
7898         if test "X$pkg" = "X$p"; then
7899           enable_fast_install=yes
7900         fi
7901       done
7902       IFS="$lt_save_ifs"
7903       ;;
7904     esac
7905 else
7906   enable_fast_install=yes
7907 fi
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919 # This can be used to rebuild libtool when needed
7920 LIBTOOL_DEPS="$ltmain"
7921
7922 # Always use our own libtool.
7923 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949 test -z "$LN_S" && LN_S="ln -s"
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964 if test -n "${ZSH_VERSION+set}" ; then
7965    setopt NO_GLOB_SUBST
7966 fi
7967
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7969 $as_echo_n "checking for objdir... " >&6; }
7970 if test "${lt_cv_objdir+set}" = set; then :
7971   $as_echo_n "(cached) " >&6
7972 else
7973   rm -f .libs 2>/dev/null
7974 mkdir .libs 2>/dev/null
7975 if test -d .libs; then
7976   lt_cv_objdir=.libs
7977 else
7978   # MS-DOS does not allow filenames that begin with a dot.
7979   lt_cv_objdir=_libs
7980 fi
7981 rmdir .libs 2>/dev/null
7982 fi
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7984 $as_echo "$lt_cv_objdir" >&6; }
7985 objdir=$lt_cv_objdir
7986
7987
7988
7989
7990
7991 cat >>confdefs.h <<_ACEOF
7992 #define LT_OBJDIR "$lt_cv_objdir/"
7993 _ACEOF
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011 case $host_os in
8012 aix3*)
8013   # AIX sometimes has problems with the GCC collect2 program.  For some
8014   # reason, if we set the COLLECT_NAMES environment variable, the problems
8015   # vanish in a puff of smoke.
8016   if test "X${COLLECT_NAMES+set}" != Xset; then
8017     COLLECT_NAMES=
8018     export COLLECT_NAMES
8019   fi
8020   ;;
8021 esac
8022
8023 # Sed substitution that helps us do robust quoting.  It backslashifies
8024 # metacharacters that are still active within double-quoted strings.
8025 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8026
8027 # Same as above, but do not quote variable references.
8028 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8029
8030 # Sed substitution to delay expansion of an escaped shell variable in a
8031 # double_quote_subst'ed string.
8032 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8033
8034 # Sed substitution to delay expansion of an escaped single quote.
8035 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8036
8037 # Sed substitution to avoid accidental globbing in evaled expressions
8038 no_glob_subst='s/\*/\\\*/g'
8039
8040 # Global variables:
8041 ofile=libtool
8042 can_build_shared=yes
8043
8044 # All known linkers require a `.a' archive for static linking (except MSVC,
8045 # which needs '.lib').
8046 libext=a
8047
8048 with_gnu_ld="$lt_cv_prog_gnu_ld"
8049
8050 old_CC="$CC"
8051 old_CFLAGS="$CFLAGS"
8052
8053 # Set sane defaults for various variables
8054 test -z "$CC" && CC=cc
8055 test -z "$LTCC" && LTCC=$CC
8056 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8057 test -z "$LD" && LD=ld
8058 test -z "$ac_objext" && ac_objext=o
8059
8060 for cc_temp in $compiler""; do
8061   case $cc_temp in
8062     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8063     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8064     \-*) ;;
8065     *) break;;
8066   esac
8067 done
8068 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8069
8070
8071 # Only perform the check for file, if the check method requires it
8072 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8073 case $deplibs_check_method in
8074 file_magic*)
8075   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8076     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8077 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8078 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8079   $as_echo_n "(cached) " >&6
8080 else
8081   case $MAGIC_CMD in
8082 [\\/*] |  ?:[\\/]*)
8083   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8084   ;;
8085 *)
8086   lt_save_MAGIC_CMD="$MAGIC_CMD"
8087   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8088   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8089   for ac_dir in $ac_dummy; do
8090     IFS="$lt_save_ifs"
8091     test -z "$ac_dir" && ac_dir=.
8092     if test -f $ac_dir/${ac_tool_prefix}file; then
8093       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8094       if test -n "$file_magic_test_file"; then
8095         case $deplibs_check_method in
8096         "file_magic "*)
8097           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8098           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8099           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8100             $EGREP "$file_magic_regex" > /dev/null; then
8101             :
8102           else
8103             cat <<_LT_EOF 1>&2
8104
8105 *** Warning: the command libtool uses to detect shared libraries,
8106 *** $file_magic_cmd, produces output that libtool cannot recognize.
8107 *** The result is that libtool may fail to recognize shared libraries
8108 *** as such.  This will affect the creation of libtool libraries that
8109 *** depend on shared libraries, but programs linked with such libtool
8110 *** libraries will work regardless of this problem.  Nevertheless, you
8111 *** may want to report the problem to your system manager and/or to
8112 *** bug-libtool@gnu.org
8113
8114 _LT_EOF
8115           fi ;;
8116         esac
8117       fi
8118       break
8119     fi
8120   done
8121   IFS="$lt_save_ifs"
8122   MAGIC_CMD="$lt_save_MAGIC_CMD"
8123   ;;
8124 esac
8125 fi
8126
8127 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8128 if test -n "$MAGIC_CMD"; then
8129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8130 $as_echo "$MAGIC_CMD" >&6; }
8131 else
8132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8134 fi
8135
8136
8137
8138
8139
8140 if test -z "$lt_cv_path_MAGIC_CMD"; then
8141   if test -n "$ac_tool_prefix"; then
8142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8143 $as_echo_n "checking for file... " >&6; }
8144 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8145   $as_echo_n "(cached) " >&6
8146 else
8147   case $MAGIC_CMD in
8148 [\\/*] |  ?:[\\/]*)
8149   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8150   ;;
8151 *)
8152   lt_save_MAGIC_CMD="$MAGIC_CMD"
8153   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8154   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8155   for ac_dir in $ac_dummy; do
8156     IFS="$lt_save_ifs"
8157     test -z "$ac_dir" && ac_dir=.
8158     if test -f $ac_dir/file; then
8159       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8160       if test -n "$file_magic_test_file"; then
8161         case $deplibs_check_method in
8162         "file_magic "*)
8163           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8164           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8165           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8166             $EGREP "$file_magic_regex" > /dev/null; then
8167             :
8168           else
8169             cat <<_LT_EOF 1>&2
8170
8171 *** Warning: the command libtool uses to detect shared libraries,
8172 *** $file_magic_cmd, produces output that libtool cannot recognize.
8173 *** The result is that libtool may fail to recognize shared libraries
8174 *** as such.  This will affect the creation of libtool libraries that
8175 *** depend on shared libraries, but programs linked with such libtool
8176 *** libraries will work regardless of this problem.  Nevertheless, you
8177 *** may want to report the problem to your system manager and/or to
8178 *** bug-libtool@gnu.org
8179
8180 _LT_EOF
8181           fi ;;
8182         esac
8183       fi
8184       break
8185     fi
8186   done
8187   IFS="$lt_save_ifs"
8188   MAGIC_CMD="$lt_save_MAGIC_CMD"
8189   ;;
8190 esac
8191 fi
8192
8193 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8194 if test -n "$MAGIC_CMD"; then
8195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8196 $as_echo "$MAGIC_CMD" >&6; }
8197 else
8198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 $as_echo "no" >&6; }
8200 fi
8201
8202
8203   else
8204     MAGIC_CMD=:
8205   fi
8206 fi
8207
8208   fi
8209   ;;
8210 esac
8211
8212 # Use C for the default configuration in the libtool script
8213
8214 lt_save_CC="$CC"
8215 ac_ext=c
8216 ac_cpp='$CPP $CPPFLAGS'
8217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8220
8221
8222 # Source file extension for C test sources.
8223 ac_ext=c
8224
8225 # Object file extension for compiled C test sources.
8226 objext=o
8227 objext=$objext
8228
8229 # Code to be used in simple compile tests
8230 lt_simple_compile_test_code="int some_variable = 0;"
8231
8232 # Code to be used in simple link tests
8233 lt_simple_link_test_code='int main(){return(0);}'
8234
8235
8236
8237
8238
8239
8240
8241 # If no C compiler was specified, use CC.
8242 LTCC=${LTCC-"$CC"}
8243
8244 # If no C compiler flags were specified, use CFLAGS.
8245 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8246
8247 # Allow CC to be a program name with arguments.
8248 compiler=$CC
8249
8250 # Save the default compiler, since it gets overwritten when the other
8251 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8252 compiler_DEFAULT=$CC
8253
8254 # save warnings/boilerplate of simple test code
8255 ac_outfile=conftest.$ac_objext
8256 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8257 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8258 _lt_compiler_boilerplate=`cat conftest.err`
8259 $RM conftest*
8260
8261 ac_outfile=conftest.$ac_objext
8262 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8263 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8264 _lt_linker_boilerplate=`cat conftest.err`
8265 $RM -r conftest*
8266
8267
8268 ## CAVEAT EMPTOR:
8269 ## There is no encapsulation within the following macros, do not change
8270 ## the running order or otherwise move them around unless you know exactly
8271 ## what you are doing...
8272 if test -n "$compiler"; then
8273
8274 lt_prog_compiler_no_builtin_flag=
8275
8276 if test "$GCC" = yes; then
8277   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8278
8279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8280 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8281 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8282   $as_echo_n "(cached) " >&6
8283 else
8284   lt_cv_prog_compiler_rtti_exceptions=no
8285    ac_outfile=conftest.$ac_objext
8286    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8287    lt_compiler_flag="-fno-rtti -fno-exceptions"
8288    # Insert the option either (1) after the last *FLAGS variable, or
8289    # (2) before a word containing "conftest.", or (3) at the end.
8290    # Note that $ac_compile itself does not contain backslashes and begins
8291    # with a dollar sign (not a hyphen), so the echo should work correctly.
8292    # The option is referenced via a variable to avoid confusing sed.
8293    lt_compile=`echo "$ac_compile" | $SED \
8294    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8295    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8296    -e 's:$: $lt_compiler_flag:'`
8297    (eval echo "\"\$as_me:8297: $lt_compile\"" >&5)
8298    (eval "$lt_compile" 2>conftest.err)
8299    ac_status=$?
8300    cat conftest.err >&5
8301    echo "$as_me:8301: \$? = $ac_status" >&5
8302    if (exit $ac_status) && test -s "$ac_outfile"; then
8303      # The compiler can only warn and ignore the option if not recognized
8304      # So say no if there are warnings other than the usual output.
8305      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8306      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8307      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8308        lt_cv_prog_compiler_rtti_exceptions=yes
8309      fi
8310    fi
8311    $RM conftest*
8312
8313 fi
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8315 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8316
8317 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8318     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8319 else
8320     :
8321 fi
8322
8323 fi
8324
8325
8326
8327
8328
8329
8330   lt_prog_compiler_wl=
8331 lt_prog_compiler_pic=
8332 lt_prog_compiler_static=
8333
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8335 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8336
8337   if test "$GCC" = yes; then
8338     lt_prog_compiler_wl='-Wl,'
8339     lt_prog_compiler_static='-static'
8340
8341     case $host_os in
8342       aix*)
8343       # All AIX code is PIC.
8344       if test "$host_cpu" = ia64; then
8345         # AIX 5 now supports IA64 processor
8346         lt_prog_compiler_static='-Bstatic'
8347       fi
8348       ;;
8349
8350     amigaos*)
8351       case $host_cpu in
8352       powerpc)
8353             # see comment about AmigaOS4 .so support
8354             lt_prog_compiler_pic='-fPIC'
8355         ;;
8356       m68k)
8357             # FIXME: we need at least 68020 code to build shared libraries, but
8358             # adding the `-m68020' flag to GCC prevents building anything better,
8359             # like `-m68040'.
8360             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8361         ;;
8362       esac
8363       ;;
8364
8365     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8366       # PIC is the default for these OSes.
8367       ;;
8368
8369     mingw* | cygwin* | pw32* | os2* | cegcc*)
8370       # This hack is so that the source file can tell whether it is being
8371       # built for inclusion in a dll (and should export symbols for example).
8372       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8373       # (--disable-auto-import) libraries
8374       lt_prog_compiler_pic='-DDLL_EXPORT'
8375       ;;
8376
8377     darwin* | rhapsody*)
8378       # PIC is the default on this platform
8379       # Common symbols not allowed in MH_DYLIB files
8380       lt_prog_compiler_pic='-fno-common'
8381       ;;
8382
8383     hpux*)
8384       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8385       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8386       # sets the default TLS model and affects inlining.
8387       case $host_cpu in
8388       hppa*64*)
8389         # +Z the default
8390         ;;
8391       *)
8392         lt_prog_compiler_pic='-fPIC'
8393         ;;
8394       esac
8395       ;;
8396
8397     interix[3-9]*)
8398       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8399       # Instead, we relocate shared libraries at runtime.
8400       ;;
8401
8402     msdosdjgpp*)
8403       # Just because we use GCC doesn't mean we suddenly get shared libraries
8404       # on systems that don't support them.
8405       lt_prog_compiler_can_build_shared=no
8406       enable_shared=no
8407       ;;
8408
8409     *nto* | *qnx*)
8410       # QNX uses GNU C++, but need to define -shared option too, otherwise
8411       # it will coredump.
8412       lt_prog_compiler_pic='-fPIC -shared'
8413       ;;
8414
8415     sysv4*MP*)
8416       if test -d /usr/nec; then
8417         lt_prog_compiler_pic=-Kconform_pic
8418       fi
8419       ;;
8420
8421     *)
8422       lt_prog_compiler_pic='-fPIC'
8423       ;;
8424     esac
8425   else
8426     # PORTME Check for flag to pass linker flags through the system compiler.
8427     case $host_os in
8428     aix*)
8429       lt_prog_compiler_wl='-Wl,'
8430       if test "$host_cpu" = ia64; then
8431         # AIX 5 now supports IA64 processor
8432         lt_prog_compiler_static='-Bstatic'
8433       else
8434         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8435       fi
8436       ;;
8437
8438     mingw* | cygwin* | pw32* | os2* | cegcc*)
8439       # This hack is so that the source file can tell whether it is being
8440       # built for inclusion in a dll (and should export symbols for example).
8441       lt_prog_compiler_pic='-DDLL_EXPORT'
8442       ;;
8443
8444     hpux9* | hpux10* | hpux11*)
8445       lt_prog_compiler_wl='-Wl,'
8446       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8447       # not for PA HP-UX.
8448       case $host_cpu in
8449       hppa*64*|ia64*)
8450         # +Z the default
8451         ;;
8452       *)
8453         lt_prog_compiler_pic='+Z'
8454         ;;
8455       esac
8456       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8457       lt_prog_compiler_static='${wl}-a ${wl}archive'
8458       ;;
8459
8460     irix5* | irix6* | nonstopux*)
8461       lt_prog_compiler_wl='-Wl,'
8462       # PIC (with -KPIC) is the default.
8463       lt_prog_compiler_static='-non_shared'
8464       ;;
8465
8466     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8467       case $cc_basename in
8468       # old Intel for x86_64 which still supported -KPIC.
8469       ecc*)
8470         lt_prog_compiler_wl='-Wl,'
8471         lt_prog_compiler_pic='-KPIC'
8472         lt_prog_compiler_static='-static'
8473         ;;
8474       # icc used to be incompatible with GCC.
8475       # ICC 10 doesn't accept -KPIC any more.
8476       icc* | ifort*)
8477         lt_prog_compiler_wl='-Wl,'
8478         lt_prog_compiler_pic='-fPIC'
8479         lt_prog_compiler_static='-static'
8480         ;;
8481       # Lahey Fortran 8.1.
8482       lf95*)
8483         lt_prog_compiler_wl='-Wl,'
8484         lt_prog_compiler_pic='--shared'
8485         lt_prog_compiler_static='--static'
8486         ;;
8487       pgcc* | pgf77* | pgf90* | pgf95*)
8488         # Portland Group compilers (*not* the Pentium gcc compiler,
8489         # which looks to be a dead project)
8490         lt_prog_compiler_wl='-Wl,'
8491         lt_prog_compiler_pic='-fpic'
8492         lt_prog_compiler_static='-Bstatic'
8493         ;;
8494       ccc*)
8495         lt_prog_compiler_wl='-Wl,'
8496         # All Alpha code is PIC.
8497         lt_prog_compiler_static='-non_shared'
8498         ;;
8499       xl*)
8500         # IBM XL C 8.0/Fortran 10.1 on PPC
8501         lt_prog_compiler_wl='-Wl,'
8502         lt_prog_compiler_pic='-qpic'
8503         lt_prog_compiler_static='-qstaticlink'
8504         ;;
8505       *)
8506         case `$CC -V 2>&1 | sed 5q` in
8507         *Sun\ C*)
8508           # Sun C 5.9
8509           lt_prog_compiler_pic='-KPIC'
8510           lt_prog_compiler_static='-Bstatic'
8511           lt_prog_compiler_wl='-Wl,'
8512           ;;
8513         *Sun\ F*)
8514           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8515           lt_prog_compiler_pic='-KPIC'
8516           lt_prog_compiler_static='-Bstatic'
8517           lt_prog_compiler_wl=''
8518           ;;
8519         esac
8520         ;;
8521       esac
8522       ;;
8523
8524     newsos6)
8525       lt_prog_compiler_pic='-KPIC'
8526       lt_prog_compiler_static='-Bstatic'
8527       ;;
8528
8529     *nto* | *qnx*)
8530       # QNX uses GNU C++, but need to define -shared option too, otherwise
8531       # it will coredump.
8532       lt_prog_compiler_pic='-fPIC -shared'
8533       ;;
8534
8535     osf3* | osf4* | osf5*)
8536       lt_prog_compiler_wl='-Wl,'
8537       # All OSF/1 code is PIC.
8538       lt_prog_compiler_static='-non_shared'
8539       ;;
8540
8541     rdos*)
8542       lt_prog_compiler_static='-non_shared'
8543       ;;
8544
8545     solaris*)
8546       lt_prog_compiler_pic='-KPIC'
8547       lt_prog_compiler_static='-Bstatic'
8548       case $cc_basename in
8549       f77* | f90* | f95*)
8550         lt_prog_compiler_wl='-Qoption ld ';;
8551       *)
8552         lt_prog_compiler_wl='-Wl,';;
8553       esac
8554       ;;
8555
8556     sunos4*)
8557       lt_prog_compiler_wl='-Qoption ld '
8558       lt_prog_compiler_pic='-PIC'
8559       lt_prog_compiler_static='-Bstatic'
8560       ;;
8561
8562     sysv4 | sysv4.2uw2* | sysv4.3*)
8563       lt_prog_compiler_wl='-Wl,'
8564       lt_prog_compiler_pic='-KPIC'
8565       lt_prog_compiler_static='-Bstatic'
8566       ;;
8567
8568     sysv4*MP*)
8569       if test -d /usr/nec ;then
8570         lt_prog_compiler_pic='-Kconform_pic'
8571         lt_prog_compiler_static='-Bstatic'
8572       fi
8573       ;;
8574
8575     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8576       lt_prog_compiler_wl='-Wl,'
8577       lt_prog_compiler_pic='-KPIC'
8578       lt_prog_compiler_static='-Bstatic'
8579       ;;
8580
8581     unicos*)
8582       lt_prog_compiler_wl='-Wl,'
8583       lt_prog_compiler_can_build_shared=no
8584       ;;
8585
8586     uts4*)
8587       lt_prog_compiler_pic='-pic'
8588       lt_prog_compiler_static='-Bstatic'
8589       ;;
8590
8591     *)
8592       lt_prog_compiler_can_build_shared=no
8593       ;;
8594     esac
8595   fi
8596
8597 case $host_os in
8598   # For platforms which do not support PIC, -DPIC is meaningless:
8599   *djgpp*)
8600     lt_prog_compiler_pic=
8601     ;;
8602   *)
8603     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8604     ;;
8605 esac
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8607 $as_echo "$lt_prog_compiler_pic" >&6; }
8608
8609
8610
8611
8612
8613
8614 #
8615 # Check to make sure the PIC flag actually works.
8616 #
8617 if test -n "$lt_prog_compiler_pic"; then
8618   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8619 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8620 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8621   $as_echo_n "(cached) " >&6
8622 else
8623   lt_cv_prog_compiler_pic_works=no
8624    ac_outfile=conftest.$ac_objext
8625    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8626    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8627    # Insert the option either (1) after the last *FLAGS variable, or
8628    # (2) before a word containing "conftest.", or (3) at the end.
8629    # Note that $ac_compile itself does not contain backslashes and begins
8630    # with a dollar sign (not a hyphen), so the echo should work correctly.
8631    # The option is referenced via a variable to avoid confusing sed.
8632    lt_compile=`echo "$ac_compile" | $SED \
8633    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8634    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8635    -e 's:$: $lt_compiler_flag:'`
8636    (eval echo "\"\$as_me:8636: $lt_compile\"" >&5)
8637    (eval "$lt_compile" 2>conftest.err)
8638    ac_status=$?
8639    cat conftest.err >&5
8640    echo "$as_me:8640: \$? = $ac_status" >&5
8641    if (exit $ac_status) && test -s "$ac_outfile"; then
8642      # The compiler can only warn and ignore the option if not recognized
8643      # So say no if there are warnings other than the usual output.
8644      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8645      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8646      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8647        lt_cv_prog_compiler_pic_works=yes
8648      fi
8649    fi
8650    $RM conftest*
8651
8652 fi
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8654 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8655
8656 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8657     case $lt_prog_compiler_pic in
8658      "" | " "*) ;;
8659      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8660      esac
8661 else
8662     lt_prog_compiler_pic=
8663      lt_prog_compiler_can_build_shared=no
8664 fi
8665
8666 fi
8667
8668
8669
8670
8671
8672
8673 #
8674 # Check to make sure the static flag actually works.
8675 #
8676 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8678 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8679 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8680   $as_echo_n "(cached) " >&6
8681 else
8682   lt_cv_prog_compiler_static_works=no
8683    save_LDFLAGS="$LDFLAGS"
8684    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8685    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8686    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8687      # The linker can only warn and ignore the option if not recognized
8688      # So say no if there are warnings
8689      if test -s conftest.err; then
8690        # Append any errors to the config.log.
8691        cat conftest.err 1>&5
8692        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8693        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8694        if diff conftest.exp conftest.er2 >/dev/null; then
8695          lt_cv_prog_compiler_static_works=yes
8696        fi
8697      else
8698        lt_cv_prog_compiler_static_works=yes
8699      fi
8700    fi
8701    $RM -r conftest*
8702    LDFLAGS="$save_LDFLAGS"
8703
8704 fi
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8706 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8707
8708 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8709     :
8710 else
8711     lt_prog_compiler_static=
8712 fi
8713
8714
8715
8716
8717
8718
8719
8720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8721 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8722 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8723   $as_echo_n "(cached) " >&6
8724 else
8725   lt_cv_prog_compiler_c_o=no
8726    $RM -r conftest 2>/dev/null
8727    mkdir conftest
8728    cd conftest
8729    mkdir out
8730    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8731
8732    lt_compiler_flag="-o out/conftest2.$ac_objext"
8733    # Insert the option either (1) after the last *FLAGS variable, or
8734    # (2) before a word containing "conftest.", or (3) at the end.
8735    # Note that $ac_compile itself does not contain backslashes and begins
8736    # with a dollar sign (not a hyphen), so the echo should work correctly.
8737    lt_compile=`echo "$ac_compile" | $SED \
8738    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8739    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8740    -e 's:$: $lt_compiler_flag:'`
8741    (eval echo "\"\$as_me:8741: $lt_compile\"" >&5)
8742    (eval "$lt_compile" 2>out/conftest.err)
8743    ac_status=$?
8744    cat out/conftest.err >&5
8745    echo "$as_me:8745: \$? = $ac_status" >&5
8746    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8747    then
8748      # The compiler can only warn and ignore the option if not recognized
8749      # So say no if there are warnings
8750      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8751      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8752      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8753        lt_cv_prog_compiler_c_o=yes
8754      fi
8755    fi
8756    chmod u+w . 2>&5
8757    $RM conftest*
8758    # SGI C++ compiler will create directory out/ii_files/ for
8759    # template instantiation
8760    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8761    $RM out/* && rmdir out
8762    cd ..
8763    $RM -r conftest
8764    $RM conftest*
8765
8766 fi
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8768 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8769
8770
8771
8772
8773
8774
8775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8776 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8777 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8778   $as_echo_n "(cached) " >&6
8779 else
8780   lt_cv_prog_compiler_c_o=no
8781    $RM -r conftest 2>/dev/null
8782    mkdir conftest
8783    cd conftest
8784    mkdir out
8785    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8786
8787    lt_compiler_flag="-o out/conftest2.$ac_objext"
8788    # Insert the option either (1) after the last *FLAGS variable, or
8789    # (2) before a word containing "conftest.", or (3) at the end.
8790    # Note that $ac_compile itself does not contain backslashes and begins
8791    # with a dollar sign (not a hyphen), so the echo should work correctly.
8792    lt_compile=`echo "$ac_compile" | $SED \
8793    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8794    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8795    -e 's:$: $lt_compiler_flag:'`
8796    (eval echo "\"\$as_me:8796: $lt_compile\"" >&5)
8797    (eval "$lt_compile" 2>out/conftest.err)
8798    ac_status=$?
8799    cat out/conftest.err >&5
8800    echo "$as_me:8800: \$? = $ac_status" >&5
8801    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8802    then
8803      # The compiler can only warn and ignore the option if not recognized
8804      # So say no if there are warnings
8805      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8806      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8807      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8808        lt_cv_prog_compiler_c_o=yes
8809      fi
8810    fi
8811    chmod u+w . 2>&5
8812    $RM conftest*
8813    # SGI C++ compiler will create directory out/ii_files/ for
8814    # template instantiation
8815    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8816    $RM out/* && rmdir out
8817    cd ..
8818    $RM -r conftest
8819    $RM conftest*
8820
8821 fi
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8823 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8824
8825
8826
8827
8828 hard_links="nottested"
8829 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8830   # do not overwrite the value of need_locks provided by the user
8831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8832 $as_echo_n "checking if we can lock with hard links... " >&6; }
8833   hard_links=yes
8834   $RM conftest*
8835   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8836   touch conftest.a
8837   ln conftest.a conftest.b 2>&5 || hard_links=no
8838   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8840 $as_echo "$hard_links" >&6; }
8841   if test "$hard_links" = no; then
8842     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8843 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8844     need_locks=warn
8845   fi
8846 else
8847   need_locks=no
8848 fi
8849
8850
8851
8852
8853
8854
8855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8856 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8857
8858   runpath_var=
8859   allow_undefined_flag=
8860   always_export_symbols=no
8861   archive_cmds=
8862   archive_expsym_cmds=
8863   compiler_needs_object=no
8864   enable_shared_with_static_runtimes=no
8865   export_dynamic_flag_spec=
8866   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8867   hardcode_automatic=no
8868   hardcode_direct=no
8869   hardcode_direct_absolute=no
8870   hardcode_libdir_flag_spec=
8871   hardcode_libdir_flag_spec_ld=
8872   hardcode_libdir_separator=
8873   hardcode_minus_L=no
8874   hardcode_shlibpath_var=unsupported
8875   inherit_rpath=no
8876   link_all_deplibs=unknown
8877   module_cmds=
8878   module_expsym_cmds=
8879   old_archive_from_new_cmds=
8880   old_archive_from_expsyms_cmds=
8881   thread_safe_flag_spec=
8882   whole_archive_flag_spec=
8883   # include_expsyms should be a list of space-separated symbols to be *always*
8884   # included in the symbol list
8885   include_expsyms=
8886   # exclude_expsyms can be an extended regexp of symbols to exclude
8887   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8888   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8889   # as well as any symbol that contains `d'.
8890   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8891   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8892   # platforms (ab)use it in PIC code, but their linkers get confused if
8893   # the symbol is explicitly referenced.  Since portable code cannot
8894   # rely on this symbol name, it's probably fine to never include it in
8895   # preloaded symbol tables.
8896   # Exclude shared library initialization/finalization symbols.
8897   extract_expsyms_cmds=
8898
8899   case $host_os in
8900   cygwin* | mingw* | pw32* | cegcc*)
8901     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8902     # When not using gcc, we currently assume that we are using
8903     # Microsoft Visual C++.
8904     if test "$GCC" != yes; then
8905       with_gnu_ld=no
8906     fi
8907     ;;
8908   interix*)
8909     # we just hope/assume this is gcc and not c89 (= MSVC++)
8910     with_gnu_ld=yes
8911     ;;
8912   openbsd*)
8913     with_gnu_ld=no
8914     ;;
8915   linux* | k*bsd*-gnu)
8916     link_all_deplibs=no
8917     ;;
8918   esac
8919
8920   ld_shlibs=yes
8921   if test "$with_gnu_ld" = yes; then
8922     # If archive_cmds runs LD, not CC, wlarc should be empty
8923     wlarc='${wl}'
8924
8925     # Set some defaults for GNU ld with shared library support. These
8926     # are reset later if shared libraries are not supported. Putting them
8927     # here allows them to be overridden if necessary.
8928     runpath_var=LD_RUN_PATH
8929     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8930     export_dynamic_flag_spec='${wl}--export-dynamic'
8931     # ancient GNU ld didn't support --whole-archive et. al.
8932     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8933       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8934     else
8935       whole_archive_flag_spec=
8936     fi
8937     supports_anon_versioning=no
8938     case `$LD -v 2>&1` in
8939       *GNU\ gold*) supports_anon_versioning=yes ;;
8940       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8941       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8942       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8943       *\ 2.11.*) ;; # other 2.11 versions
8944       *) supports_anon_versioning=yes ;;
8945     esac
8946
8947     # See if GNU ld supports shared libraries.
8948     case $host_os in
8949     aix[3-9]*)
8950       # On AIX/PPC, the GNU linker is very broken
8951       if test "$host_cpu" != ia64; then
8952         ld_shlibs=no
8953         cat <<_LT_EOF 1>&2
8954
8955 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8956 *** to be unable to reliably create shared libraries on AIX.
8957 *** Therefore, libtool is disabling shared libraries support.  If you
8958 *** really care for shared libraries, you may want to modify your PATH
8959 *** so that a non-GNU linker is found, and then restart.
8960
8961 _LT_EOF
8962       fi
8963       ;;
8964
8965     amigaos*)
8966       case $host_cpu in
8967       powerpc)
8968             # see comment about AmigaOS4 .so support
8969             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8970             archive_expsym_cmds=''
8971         ;;
8972       m68k)
8973             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)'
8974             hardcode_libdir_flag_spec='-L$libdir'
8975             hardcode_minus_L=yes
8976         ;;
8977       esac
8978       ;;
8979
8980     beos*)
8981       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8982         allow_undefined_flag=unsupported
8983         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8984         # support --undefined.  This deserves some investigation.  FIXME
8985         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986       else
8987         ld_shlibs=no
8988       fi
8989       ;;
8990
8991     cygwin* | mingw* | pw32* | cegcc*)
8992       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8993       # as there is no search path for DLLs.
8994       hardcode_libdir_flag_spec='-L$libdir'
8995       allow_undefined_flag=unsupported
8996       always_export_symbols=no
8997       enable_shared_with_static_runtimes=yes
8998       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8999
9000       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9001         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9002         # If the export-symbols file already is a .def file (1st line
9003         # is EXPORTS), use it as is; otherwise, prepend...
9004         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9005           cp $export_symbols $output_objdir/$soname.def;
9006         else
9007           echo EXPORTS > $output_objdir/$soname.def;
9008           cat $export_symbols >> $output_objdir/$soname.def;
9009         fi~
9010         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9011       else
9012         ld_shlibs=no
9013       fi
9014       ;;
9015
9016     interix[3-9]*)
9017       hardcode_direct=no
9018       hardcode_shlibpath_var=no
9019       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9020       export_dynamic_flag_spec='${wl}-E'
9021       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9022       # Instead, shared libraries are loaded at an image base (0x10000000 by
9023       # default) and relocated if they conflict, which is a slow very memory
9024       # consuming and fragmenting process.  To avoid this, we pick a random,
9025       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9026       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9027       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9028       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'
9029       ;;
9030
9031     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9032       tmp_diet=no
9033       if test "$host_os" = linux-dietlibc; then
9034         case $cc_basename in
9035           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9036         esac
9037       fi
9038       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9039          && test "$tmp_diet" = no
9040       then
9041         tmp_addflag=
9042         tmp_sharedflag='-shared'
9043         case $cc_basename,$host_cpu in
9044         pgcc*)                          # Portland Group C compiler
9045           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'
9046           tmp_addflag=' $pic_flag'
9047           ;;
9048         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9049           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'
9050           tmp_addflag=' $pic_flag -Mnomain' ;;
9051         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9052           tmp_addflag=' -i_dynamic' ;;
9053         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9054           tmp_addflag=' -i_dynamic -nofor_main' ;;
9055         ifc* | ifort*)                  # Intel Fortran compiler
9056           tmp_addflag=' -nofor_main' ;;
9057         lf95*)                          # Lahey Fortran 8.1
9058           whole_archive_flag_spec=
9059           tmp_sharedflag='--shared' ;;
9060         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9061           tmp_sharedflag='-qmkshrobj'
9062           tmp_addflag= ;;
9063         esac
9064         case `$CC -V 2>&1 | sed 5q` in
9065         *Sun\ C*)                       # Sun C 5.9
9066           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'
9067           compiler_needs_object=yes
9068           tmp_sharedflag='-G' ;;
9069         *Sun\ F*)                       # Sun Fortran 8.3
9070           tmp_sharedflag='-G' ;;
9071         esac
9072         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9073
9074         if test "x$supports_anon_versioning" = xyes; then
9075           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9076             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9077             echo "local: *; };" >> $output_objdir/$libname.ver~
9078             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9079         fi
9080
9081         case $cc_basename in
9082         xlf*)
9083           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9084           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9085           hardcode_libdir_flag_spec=
9086           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9087           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9088           if test "x$supports_anon_versioning" = xyes; then
9089             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9090               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9091               echo "local: *; };" >> $output_objdir/$libname.ver~
9092               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9093           fi
9094           ;;
9095         esac
9096       else
9097         ld_shlibs=no
9098       fi
9099       ;;
9100
9101     netbsd* | netbsdelf*-gnu)
9102       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9103         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9104         wlarc=
9105       else
9106         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9107         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9108       fi
9109       ;;
9110
9111     solaris*)
9112       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9113         ld_shlibs=no
9114         cat <<_LT_EOF 1>&2
9115
9116 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9117 *** create shared libraries on Solaris systems.  Therefore, libtool
9118 *** is disabling shared libraries support.  We urge you to upgrade GNU
9119 *** binutils to release 2.9.1 or newer.  Another option is to modify
9120 *** your PATH or compiler configuration so that the native linker is
9121 *** used, and then restart.
9122
9123 _LT_EOF
9124       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9125         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9126         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9127       else
9128         ld_shlibs=no
9129       fi
9130       ;;
9131
9132     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9133       case `$LD -v 2>&1` in
9134         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9135         ld_shlibs=no
9136         cat <<_LT_EOF 1>&2
9137
9138 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9139 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9140 *** is disabling shared libraries support.  We urge you to upgrade GNU
9141 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9142 *** your PATH or compiler configuration so that the native linker is
9143 *** used, and then restart.
9144
9145 _LT_EOF
9146         ;;
9147         *)
9148           # For security reasons, it is highly recommended that you always
9149           # use absolute paths for naming shared libraries, and exclude the
9150           # DT_RUNPATH tag from executables and libraries.  But doing so
9151           # requires that you compile everything twice, which is a pain.
9152           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9153             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9154             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9155             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9156           else
9157             ld_shlibs=no
9158           fi
9159         ;;
9160       esac
9161       ;;
9162
9163     sunos4*)
9164       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9165       wlarc=
9166       hardcode_direct=yes
9167       hardcode_shlibpath_var=no
9168       ;;
9169
9170     *)
9171       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9172         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9173         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9174       else
9175         ld_shlibs=no
9176       fi
9177       ;;
9178     esac
9179
9180     if test "$ld_shlibs" = no; then
9181       runpath_var=
9182       hardcode_libdir_flag_spec=
9183       export_dynamic_flag_spec=
9184       whole_archive_flag_spec=
9185     fi
9186   else
9187     # PORTME fill in a description of your system's linker (not GNU ld)
9188     case $host_os in
9189     aix3*)
9190       allow_undefined_flag=unsupported
9191       always_export_symbols=yes
9192       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'
9193       # Note: this linker hardcodes the directories in LIBPATH if there
9194       # are no directories specified by -L.
9195       hardcode_minus_L=yes
9196       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9197         # Neither direct hardcoding nor static linking is supported with a
9198         # broken collect2.
9199         hardcode_direct=unsupported
9200       fi
9201       ;;
9202
9203     aix[4-9]*)
9204       if test "$host_cpu" = ia64; then
9205         # On IA64, the linker does run time linking by default, so we don't
9206         # have to do anything special.
9207         aix_use_runtimelinking=no
9208         exp_sym_flag='-Bexport'
9209         no_entry_flag=""
9210       else
9211         # If we're using GNU nm, then we don't want the "-C" option.
9212         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9213         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9214           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'
9215         else
9216           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'
9217         fi
9218         aix_use_runtimelinking=no
9219
9220         # Test if we are trying to use run time linking or normal
9221         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9222         # need to do runtime linking.
9223         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9224           for ld_flag in $LDFLAGS; do
9225           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9226             aix_use_runtimelinking=yes
9227             break
9228           fi
9229           done
9230           ;;
9231         esac
9232
9233         exp_sym_flag='-bexport'
9234         no_entry_flag='-bnoentry'
9235       fi
9236
9237       # When large executables or shared objects are built, AIX ld can
9238       # have problems creating the table of contents.  If linking a library
9239       # or program results in "error TOC overflow" add -mminimal-toc to
9240       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9241       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9242
9243       archive_cmds=''
9244       hardcode_direct=yes
9245       hardcode_direct_absolute=yes
9246       hardcode_libdir_separator=':'
9247       link_all_deplibs=yes
9248       file_list_spec='${wl}-f,'
9249
9250       if test "$GCC" = yes; then
9251         case $host_os in aix4.[012]|aix4.[012].*)
9252         # We only want to do this on AIX 4.2 and lower, the check
9253         # below for broken collect2 doesn't work under 4.3+
9254           collect2name=`${CC} -print-prog-name=collect2`
9255           if test -f "$collect2name" &&
9256            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9257           then
9258           # We have reworked collect2
9259           :
9260           else
9261           # We have old collect2
9262           hardcode_direct=unsupported
9263           # It fails to find uninstalled libraries when the uninstalled
9264           # path is not listed in the libpath.  Setting hardcode_minus_L
9265           # to unsupported forces relinking
9266           hardcode_minus_L=yes
9267           hardcode_libdir_flag_spec='-L$libdir'
9268           hardcode_libdir_separator=
9269           fi
9270           ;;
9271         esac
9272         shared_flag='-shared'
9273         if test "$aix_use_runtimelinking" = yes; then
9274           shared_flag="$shared_flag "'${wl}-G'
9275         fi
9276         link_all_deplibs=no
9277       else
9278         # not using gcc
9279         if test "$host_cpu" = ia64; then
9280         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9281         # chokes on -Wl,-G. The following line is correct:
9282           shared_flag='-G'
9283         else
9284           if test "$aix_use_runtimelinking" = yes; then
9285             shared_flag='${wl}-G'
9286           else
9287             shared_flag='${wl}-bM:SRE'
9288           fi
9289         fi
9290       fi
9291
9292       export_dynamic_flag_spec='${wl}-bexpall'
9293       # It seems that -bexpall does not export symbols beginning with
9294       # underscore (_), so it is better to generate a list of symbols to export.
9295       always_export_symbols=yes
9296       if test "$aix_use_runtimelinking" = yes; then
9297         # Warning - without using the other runtime loading flags (-brtl),
9298         # -berok will link without error, but may produce a broken library.
9299         allow_undefined_flag='-berok'
9300         # Determine the default libpath from the value encoded in an
9301         # empty executable.
9302         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h.  */
9304
9305 int
9306 main ()
9307 {
9308
9309   ;
9310   return 0;
9311 }
9312 _ACEOF
9313 if ac_fn_c_try_link "$LINENO"; then :
9314
9315 lt_aix_libpath_sed='
9316     /Import File Strings/,/^$/ {
9317         /^0/ {
9318             s/^0  *\(.*\)$/\1/
9319             p
9320         }
9321     }'
9322 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9323 # Check for a 64-bit object if we didn't find anything.
9324 if test -z "$aix_libpath"; then
9325   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9326 fi
9327 fi
9328 rm -f core conftest.err conftest.$ac_objext \
9329     conftest$ac_exeext conftest.$ac_ext
9330 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9331
9332         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9333         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"
9334       else
9335         if test "$host_cpu" = ia64; then
9336           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9337           allow_undefined_flag="-z nodefs"
9338           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"
9339         else
9340          # Determine the default libpath from the value encoded in an
9341          # empty executable.
9342          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9343 /* end confdefs.h.  */
9344
9345 int
9346 main ()
9347 {
9348
9349   ;
9350   return 0;
9351 }
9352 _ACEOF
9353 if ac_fn_c_try_link "$LINENO"; then :
9354
9355 lt_aix_libpath_sed='
9356     /Import File Strings/,/^$/ {
9357         /^0/ {
9358             s/^0  *\(.*\)$/\1/
9359             p
9360         }
9361     }'
9362 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9363 # Check for a 64-bit object if we didn't find anything.
9364 if test -z "$aix_libpath"; then
9365   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9366 fi
9367 fi
9368 rm -f core conftest.err conftest.$ac_objext \
9369     conftest$ac_exeext conftest.$ac_ext
9370 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9371
9372          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9373           # Warning - without using the other run time loading flags,
9374           # -berok will link without error, but may produce a broken library.
9375           no_undefined_flag=' ${wl}-bernotok'
9376           allow_undefined_flag=' ${wl}-berok'
9377           # Exported symbols can be pulled into shared objects from archives
9378           whole_archive_flag_spec='$convenience'
9379           archive_cmds_need_lc=yes
9380           # This is similar to how AIX traditionally builds its shared libraries.
9381           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'
9382         fi
9383       fi
9384       ;;
9385
9386     amigaos*)
9387       case $host_cpu in
9388       powerpc)
9389             # see comment about AmigaOS4 .so support
9390             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9391             archive_expsym_cmds=''
9392         ;;
9393       m68k)
9394             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)'
9395             hardcode_libdir_flag_spec='-L$libdir'
9396             hardcode_minus_L=yes
9397         ;;
9398       esac
9399       ;;
9400
9401     bsdi[45]*)
9402       export_dynamic_flag_spec=-rdynamic
9403       ;;
9404
9405     cygwin* | mingw* | pw32* | cegcc*)
9406       # When not using gcc, we currently assume that we are using
9407       # Microsoft Visual C++.
9408       # hardcode_libdir_flag_spec is actually meaningless, as there is
9409       # no search path for DLLs.
9410       hardcode_libdir_flag_spec=' '
9411       allow_undefined_flag=unsupported
9412       # Tell ltmain to make .lib files, not .a files.
9413       libext=lib
9414       # Tell ltmain to make .dll files, not .so files.
9415       shrext_cmds=".dll"
9416       # FIXME: Setting linknames here is a bad hack.
9417       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9418       # The linker will automatically build a .lib file if we build a DLL.
9419       old_archive_from_new_cmds='true'
9420       # FIXME: Should let the user specify the lib program.
9421       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9422       fix_srcfile_path='`cygpath -w "$srcfile"`'
9423       enable_shared_with_static_runtimes=yes
9424       ;;
9425
9426     darwin* | rhapsody*)
9427
9428
9429   archive_cmds_need_lc=no
9430   hardcode_direct=no
9431   hardcode_automatic=yes
9432   hardcode_shlibpath_var=unsupported
9433   whole_archive_flag_spec=''
9434   link_all_deplibs=yes
9435   allow_undefined_flag="$_lt_dar_allow_undefined"
9436   case $cc_basename in
9437      ifort*) _lt_dar_can_shared=yes ;;
9438      *) _lt_dar_can_shared=$GCC ;;
9439   esac
9440   if test "$_lt_dar_can_shared" = "yes"; then
9441     output_verbose_link_cmd=echo
9442     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9443     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9444     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}"
9445     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}"
9446
9447   else
9448   ld_shlibs=no
9449   fi
9450
9451       ;;
9452
9453     dgux*)
9454       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9455       hardcode_libdir_flag_spec='-L$libdir'
9456       hardcode_shlibpath_var=no
9457       ;;
9458
9459     freebsd1*)
9460       ld_shlibs=no
9461       ;;
9462
9463     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9464     # support.  Future versions do this automatically, but an explicit c++rt0.o
9465     # does not break anything, and helps significantly (at the cost of a little
9466     # extra space).
9467     freebsd2.2*)
9468       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9469       hardcode_libdir_flag_spec='-R$libdir'
9470       hardcode_direct=yes
9471       hardcode_shlibpath_var=no
9472       ;;
9473
9474     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9475     freebsd2*)
9476       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9477       hardcode_direct=yes
9478       hardcode_minus_L=yes
9479       hardcode_shlibpath_var=no
9480       ;;
9481
9482     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9483     freebsd* | dragonfly*)
9484       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9485       hardcode_libdir_flag_spec='-R$libdir'
9486       hardcode_direct=yes
9487       hardcode_shlibpath_var=no
9488       ;;
9489
9490     hpux9*)
9491       if test "$GCC" = yes; then
9492         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'
9493       else
9494         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'
9495       fi
9496       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9497       hardcode_libdir_separator=:
9498       hardcode_direct=yes
9499
9500       # hardcode_minus_L: Not really in the search PATH,
9501       # but as the default location of the library.
9502       hardcode_minus_L=yes
9503       export_dynamic_flag_spec='${wl}-E'
9504       ;;
9505
9506     hpux10*)
9507       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9508         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9509       else
9510         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9511       fi
9512       if test "$with_gnu_ld" = no; then
9513         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9514         hardcode_libdir_flag_spec_ld='+b $libdir'
9515         hardcode_libdir_separator=:
9516         hardcode_direct=yes
9517         hardcode_direct_absolute=yes
9518         export_dynamic_flag_spec='${wl}-E'
9519         # hardcode_minus_L: Not really in the search PATH,
9520         # but as the default location of the library.
9521         hardcode_minus_L=yes
9522       fi
9523       ;;
9524
9525     hpux11*)
9526       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9527         case $host_cpu in
9528         hppa*64*)
9529           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9530           ;;
9531         ia64*)
9532           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9533           ;;
9534         *)
9535           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9536           ;;
9537         esac
9538       else
9539         case $host_cpu in
9540         hppa*64*)
9541           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9542           ;;
9543         ia64*)
9544           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9545           ;;
9546         *)
9547           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9548           ;;
9549         esac
9550       fi
9551       if test "$with_gnu_ld" = no; then
9552         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9553         hardcode_libdir_separator=:
9554
9555         case $host_cpu in
9556         hppa*64*|ia64*)
9557           hardcode_direct=no
9558           hardcode_shlibpath_var=no
9559           ;;
9560         *)
9561           hardcode_direct=yes
9562           hardcode_direct_absolute=yes
9563           export_dynamic_flag_spec='${wl}-E'
9564
9565           # hardcode_minus_L: Not really in the search PATH,
9566           # but as the default location of the library.
9567           hardcode_minus_L=yes
9568           ;;
9569         esac
9570       fi
9571       ;;
9572
9573     irix5* | irix6* | nonstopux*)
9574       if test "$GCC" = yes; then
9575         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'
9576         # Try to use the -exported_symbol ld option, if it does not
9577         # work, assume that -exports_file does not work either and
9578         # implicitly export all symbols.
9579         save_LDFLAGS="$LDFLAGS"
9580         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9581         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582 /* end confdefs.h.  */
9583 int foo(void) {}
9584 _ACEOF
9585 if ac_fn_c_try_link "$LINENO"; then :
9586   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'
9587
9588 fi
9589 rm -f core conftest.err conftest.$ac_objext \
9590     conftest$ac_exeext conftest.$ac_ext
9591         LDFLAGS="$save_LDFLAGS"
9592       else
9593         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'
9594         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'
9595       fi
9596       archive_cmds_need_lc='no'
9597       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9598       hardcode_libdir_separator=:
9599       inherit_rpath=yes
9600       link_all_deplibs=yes
9601       ;;
9602
9603     netbsd* | netbsdelf*-gnu)
9604       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9605         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9606       else
9607         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9608       fi
9609       hardcode_libdir_flag_spec='-R$libdir'
9610       hardcode_direct=yes
9611       hardcode_shlibpath_var=no
9612       ;;
9613
9614     newsos6)
9615       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9616       hardcode_direct=yes
9617       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9618       hardcode_libdir_separator=:
9619       hardcode_shlibpath_var=no
9620       ;;
9621
9622     *nto* | *qnx*)
9623       ;;
9624
9625     openbsd*)
9626       if test -f /usr/libexec/ld.so; then
9627         hardcode_direct=yes
9628         hardcode_shlibpath_var=no
9629         hardcode_direct_absolute=yes
9630         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9631           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9632           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9633           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9634           export_dynamic_flag_spec='${wl}-E'
9635         else
9636           case $host_os in
9637            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9638              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9639              hardcode_libdir_flag_spec='-R$libdir'
9640              ;;
9641            *)
9642              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9643              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9644              ;;
9645           esac
9646         fi
9647       else
9648         ld_shlibs=no
9649       fi
9650       ;;
9651
9652     os2*)
9653       hardcode_libdir_flag_spec='-L$libdir'
9654       hardcode_minus_L=yes
9655       allow_undefined_flag=unsupported
9656       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'
9657       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9658       ;;
9659
9660     osf3*)
9661       if test "$GCC" = yes; then
9662         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9663         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'
9664       else
9665         allow_undefined_flag=' -expect_unresolved \*'
9666         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'
9667       fi
9668       archive_cmds_need_lc='no'
9669       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9670       hardcode_libdir_separator=:
9671       ;;
9672
9673     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9674       if test "$GCC" = yes; then
9675         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9676         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'
9677         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9678       else
9679         allow_undefined_flag=' -expect_unresolved \*'
9680         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'
9681         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~
9682         $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'
9683
9684         # Both c and cxx compiler support -rpath directly
9685         hardcode_libdir_flag_spec='-rpath $libdir'
9686       fi
9687       archive_cmds_need_lc='no'
9688       hardcode_libdir_separator=:
9689       ;;
9690
9691     solaris*)
9692       no_undefined_flag=' -z defs'
9693       if test "$GCC" = yes; then
9694         wlarc='${wl}'
9695         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9696         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9697           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9698       else
9699         case `$CC -V 2>&1` in
9700         *"Compilers 5.0"*)
9701           wlarc=''
9702           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9704           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9705           ;;
9706         *)
9707           wlarc='${wl}'
9708           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9709           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9710           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9711           ;;
9712         esac
9713       fi
9714       hardcode_libdir_flag_spec='-R$libdir'
9715       hardcode_shlibpath_var=no
9716       case $host_os in
9717       solaris2.[0-5] | solaris2.[0-5].*) ;;
9718       *)
9719         # The compiler driver will combine and reorder linker options,
9720         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9721         # but is careful enough not to reorder.
9722         # Supported since Solaris 2.6 (maybe 2.5.1?)
9723         if test "$GCC" = yes; then
9724           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9725         else
9726           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9727         fi
9728         ;;
9729       esac
9730       link_all_deplibs=yes
9731       ;;
9732
9733     sunos4*)
9734       if test "x$host_vendor" = xsequent; then
9735         # Use $CC to link under sequent, because it throws in some extra .o
9736         # files that make .init and .fini sections work.
9737         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9738       else
9739         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9740       fi
9741       hardcode_libdir_flag_spec='-L$libdir'
9742       hardcode_direct=yes
9743       hardcode_minus_L=yes
9744       hardcode_shlibpath_var=no
9745       ;;
9746
9747     sysv4)
9748       case $host_vendor in
9749         sni)
9750           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9751           hardcode_direct=yes # is this really true???
9752         ;;
9753         siemens)
9754           ## LD is ld it makes a PLAMLIB
9755           ## CC just makes a GrossModule.
9756           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9757           reload_cmds='$CC -r -o $output$reload_objs'
9758           hardcode_direct=no
9759         ;;
9760         motorola)
9761           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9762           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9763         ;;
9764       esac
9765       runpath_var='LD_RUN_PATH'
9766       hardcode_shlibpath_var=no
9767       ;;
9768
9769     sysv4.3*)
9770       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9771       hardcode_shlibpath_var=no
9772       export_dynamic_flag_spec='-Bexport'
9773       ;;
9774
9775     sysv4*MP*)
9776       if test -d /usr/nec; then
9777         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9778         hardcode_shlibpath_var=no
9779         runpath_var=LD_RUN_PATH
9780         hardcode_runpath_var=yes
9781         ld_shlibs=yes
9782       fi
9783       ;;
9784
9785     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9786       no_undefined_flag='${wl}-z,text'
9787       archive_cmds_need_lc=no
9788       hardcode_shlibpath_var=no
9789       runpath_var='LD_RUN_PATH'
9790
9791       if test "$GCC" = yes; then
9792         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9793         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9794       else
9795         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9796         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9797       fi
9798       ;;
9799
9800     sysv5* | sco3.2v5* | sco5v6*)
9801       # Note: We can NOT use -z defs as we might desire, because we do not
9802       # link with -lc, and that would cause any symbols used from libc to
9803       # always be unresolved, which means just about no library would
9804       # ever link correctly.  If we're not using GNU ld we use -z text
9805       # though, which does catch some bad symbols but isn't as heavy-handed
9806       # as -z defs.
9807       no_undefined_flag='${wl}-z,text'
9808       allow_undefined_flag='${wl}-z,nodefs'
9809       archive_cmds_need_lc=no
9810       hardcode_shlibpath_var=no
9811       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9812       hardcode_libdir_separator=':'
9813       link_all_deplibs=yes
9814       export_dynamic_flag_spec='${wl}-Bexport'
9815       runpath_var='LD_RUN_PATH'
9816
9817       if test "$GCC" = yes; then
9818         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9819         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9820       else
9821         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9822         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9823       fi
9824       ;;
9825
9826     uts4*)
9827       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9828       hardcode_libdir_flag_spec='-L$libdir'
9829       hardcode_shlibpath_var=no
9830       ;;
9831
9832     *)
9833       ld_shlibs=no
9834       ;;
9835     esac
9836
9837     if test x$host_vendor = xsni; then
9838       case $host in
9839       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9840         export_dynamic_flag_spec='${wl}-Blargedynsym'
9841         ;;
9842       esac
9843     fi
9844   fi
9845
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9847 $as_echo "$ld_shlibs" >&6; }
9848 test "$ld_shlibs" = no && can_build_shared=no
9849
9850 with_gnu_ld=$with_gnu_ld
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866 #
9867 # Do we need to explicitly link libc?
9868 #
9869 case "x$archive_cmds_need_lc" in
9870 x|xyes)
9871   # Assume -lc should be added
9872   archive_cmds_need_lc=yes
9873
9874   if test "$enable_shared" = yes && test "$GCC" = yes; then
9875     case $archive_cmds in
9876     *'~'*)
9877       # FIXME: we may have to deal with multi-command sequences.
9878       ;;
9879     '$CC '*)
9880       # Test whether the compiler implicitly links with -lc since on some
9881       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9882       # to ld, don't add -lc before -lgcc.
9883       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9884 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9885       $RM conftest*
9886       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9887
9888       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9889   (eval $ac_compile) 2>&5
9890   ac_status=$?
9891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9892   test $ac_status = 0; } 2>conftest.err; then
9893         soname=conftest
9894         lib=conftest
9895         libobjs=conftest.$ac_objext
9896         deplibs=
9897         wl=$lt_prog_compiler_wl
9898         pic_flag=$lt_prog_compiler_pic
9899         compiler_flags=-v
9900         linker_flags=-v
9901         verstring=
9902         output_objdir=.
9903         libname=conftest
9904         lt_save_allow_undefined_flag=$allow_undefined_flag
9905         allow_undefined_flag=
9906         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9907   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9908   ac_status=$?
9909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9910   test $ac_status = 0; }
9911         then
9912           archive_cmds_need_lc=no
9913         else
9914           archive_cmds_need_lc=yes
9915         fi
9916         allow_undefined_flag=$lt_save_allow_undefined_flag
9917       else
9918         cat conftest.err 1>&5
9919       fi
9920       $RM conftest*
9921       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9922 $as_echo "$archive_cmds_need_lc" >&6; }
9923       ;;
9924     esac
9925   fi
9926   ;;
9927 esac
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10086 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10087
10088 if test "$GCC" = yes; then
10089   case $host_os in
10090     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10091     *) lt_awk_arg="/^libraries:/" ;;
10092   esac
10093   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10094   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10095     # if the path contains ";" then we assume it to be the separator
10096     # otherwise default to the standard path separator (i.e. ":") - it is
10097     # assumed that no part of a normal pathname contains ";" but that should
10098     # okay in the real world where ";" in dirpaths is itself problematic.
10099     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10100   else
10101     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10102   fi
10103   # Ok, now we have the path, separated by spaces, we can step through it
10104   # and add multilib dir if necessary.
10105   lt_tmp_lt_search_path_spec=
10106   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10107   for lt_sys_path in $lt_search_path_spec; do
10108     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10109       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10110     else
10111       test -d "$lt_sys_path" && \
10112         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10113     fi
10114   done
10115   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10116 BEGIN {RS=" "; FS="/|\n";} {
10117   lt_foo="";
10118   lt_count=0;
10119   for (lt_i = NF; lt_i > 0; lt_i--) {
10120     if ($lt_i != "" && $lt_i != ".") {
10121       if ($lt_i == "..") {
10122         lt_count++;
10123       } else {
10124         if (lt_count == 0) {
10125           lt_foo="/" $lt_i lt_foo;
10126         } else {
10127           lt_count--;
10128         }
10129       }
10130     }
10131   }
10132   if (lt_foo != "") { lt_freq[lt_foo]++; }
10133   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10134 }'`
10135   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10136 else
10137   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10138 fi
10139 library_names_spec=
10140 libname_spec='lib$name'
10141 soname_spec=
10142 shrext_cmds=".so"
10143 postinstall_cmds=
10144 postuninstall_cmds=
10145 finish_cmds=
10146 finish_eval=
10147 shlibpath_var=
10148 shlibpath_overrides_runpath=unknown
10149 version_type=none
10150 dynamic_linker="$host_os ld.so"
10151 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10152 need_lib_prefix=unknown
10153 hardcode_into_libs=no
10154
10155 # when you set need_version to no, make sure it does not cause -set_version
10156 # flags to be left without arguments
10157 need_version=unknown
10158
10159 case $host_os in
10160 aix3*)
10161   version_type=linux
10162   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10163   shlibpath_var=LIBPATH
10164
10165   # AIX 3 has no versioning support, so we append a major version to the name.
10166   soname_spec='${libname}${release}${shared_ext}$major'
10167   ;;
10168
10169 aix[4-9]*)
10170   version_type=linux
10171   need_lib_prefix=no
10172   need_version=no
10173   hardcode_into_libs=yes
10174   if test "$host_cpu" = ia64; then
10175     # AIX 5 supports IA64
10176     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10177     shlibpath_var=LD_LIBRARY_PATH
10178   else
10179     # With GCC up to 2.95.x, collect2 would create an import file
10180     # for dependence libraries.  The import file would start with
10181     # the line `#! .'.  This would cause the generated library to
10182     # depend on `.', always an invalid library.  This was fixed in
10183     # development snapshots of GCC prior to 3.0.
10184     case $host_os in
10185       aix4 | aix4.[01] | aix4.[01].*)
10186       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10187            echo ' yes '
10188            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10189         :
10190       else
10191         can_build_shared=no
10192       fi
10193       ;;
10194     esac
10195     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10196     # soname into executable. Probably we can add versioning support to
10197     # collect2, so additional links can be useful in future.
10198     if test "$aix_use_runtimelinking" = yes; then
10199       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10200       # instead of lib<name>.a to let people know that these are not
10201       # typical AIX shared libraries.
10202       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203     else
10204       # We preserve .a as extension for shared libraries through AIX4.2
10205       # and later when we are not doing run time linking.
10206       library_names_spec='${libname}${release}.a $libname.a'
10207       soname_spec='${libname}${release}${shared_ext}$major'
10208     fi
10209     shlibpath_var=LIBPATH
10210   fi
10211   ;;
10212
10213 amigaos*)
10214   case $host_cpu in
10215   powerpc)
10216     # Since July 2007 AmigaOS4 officially supports .so libraries.
10217     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10218     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219     ;;
10220   m68k)
10221     library_names_spec='$libname.ixlibrary $libname.a'
10222     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10223     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'
10224     ;;
10225   esac
10226   ;;
10227
10228 beos*)
10229   library_names_spec='${libname}${shared_ext}'
10230   dynamic_linker="$host_os ld.so"
10231   shlibpath_var=LIBRARY_PATH
10232   ;;
10233
10234 bsdi[45]*)
10235   version_type=linux
10236   need_version=no
10237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238   soname_spec='${libname}${release}${shared_ext}$major'
10239   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10240   shlibpath_var=LD_LIBRARY_PATH
10241   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10242   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10243   # the default ld.so.conf also contains /usr/contrib/lib and
10244   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10245   # libtool to hard-code these into programs
10246   ;;
10247
10248 cygwin* | mingw* | pw32* | cegcc*)
10249   version_type=windows
10250   shrext_cmds=".dll"
10251   need_version=no
10252   need_lib_prefix=no
10253
10254   case $GCC,$host_os in
10255   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10256     library_names_spec='$libname.dll.a'
10257     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10258     postinstall_cmds='base_file=`basename \${file}`~
10259       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10260       dldir=$destdir/`dirname \$dlpath`~
10261       test -d \$dldir || mkdir -p \$dldir~
10262       $install_prog $dir/$dlname \$dldir/$dlname~
10263       chmod a+x \$dldir/$dlname~
10264       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10265         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10266       fi'
10267     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10268       dlpath=$dir/\$dldll~
10269        $RM \$dlpath'
10270     shlibpath_overrides_runpath=yes
10271
10272     case $host_os in
10273     cygwin*)
10274       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10275       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10276       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10277       ;;
10278     mingw* | cegcc*)
10279       # MinGW DLLs use traditional 'lib' prefix
10280       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10281       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10282       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10283         # It is most probably a Windows format PATH printed by
10284         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10285         # path with ; separators, and with drive letters. We can handle the
10286         # drive letters (cygwin fileutils understands them), so leave them,
10287         # especially as we might pass files found there to a mingw objdump,
10288         # which wouldn't understand a cygwinified path. Ahh.
10289         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10290       else
10291         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10292       fi
10293       ;;
10294     pw32*)
10295       # pw32 DLLs use 'pw' prefix rather than 'lib'
10296       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10297       ;;
10298     esac
10299     ;;
10300
10301   *)
10302     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10303     ;;
10304   esac
10305   dynamic_linker='Win32 ld.exe'
10306   # FIXME: first we should search . and the directory the executable is in
10307   shlibpath_var=PATH
10308   ;;
10309
10310 darwin* | rhapsody*)
10311   dynamic_linker="$host_os dyld"
10312   version_type=darwin
10313   need_lib_prefix=no
10314   need_version=no
10315   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10316   soname_spec='${libname}${release}${major}$shared_ext'
10317   shlibpath_overrides_runpath=yes
10318   shlibpath_var=DYLD_LIBRARY_PATH
10319   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10320
10321   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10322   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10323   ;;
10324
10325 dgux*)
10326   version_type=linux
10327   need_lib_prefix=no
10328   need_version=no
10329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10330   soname_spec='${libname}${release}${shared_ext}$major'
10331   shlibpath_var=LD_LIBRARY_PATH
10332   ;;
10333
10334 freebsd1*)
10335   dynamic_linker=no
10336   ;;
10337
10338 freebsd* | dragonfly*)
10339   # DragonFly does not have aout.  When/if they implement a new
10340   # versioning mechanism, adjust this.
10341   if test -x /usr/bin/objformat; then
10342     objformat=`/usr/bin/objformat`
10343   else
10344     case $host_os in
10345     freebsd[123]*) objformat=aout ;;
10346     *) objformat=elf ;;
10347     esac
10348   fi
10349   version_type=freebsd-$objformat
10350   case $version_type in
10351     freebsd-elf*)
10352       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10353       need_version=no
10354       need_lib_prefix=no
10355       ;;
10356     freebsd-*)
10357       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10358       need_version=yes
10359       ;;
10360   esac
10361   shlibpath_var=LD_LIBRARY_PATH
10362   case $host_os in
10363   freebsd2*)
10364     shlibpath_overrides_runpath=yes
10365     ;;
10366   freebsd3.[01]* | freebsdelf3.[01]*)
10367     shlibpath_overrides_runpath=yes
10368     hardcode_into_libs=yes
10369     ;;
10370   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10371   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10372     shlibpath_overrides_runpath=no
10373     hardcode_into_libs=yes
10374     ;;
10375   *) # from 4.6 on, and DragonFly
10376     shlibpath_overrides_runpath=yes
10377     hardcode_into_libs=yes
10378     ;;
10379   esac
10380   ;;
10381
10382 gnu*)
10383   version_type=linux
10384   need_lib_prefix=no
10385   need_version=no
10386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10387   soname_spec='${libname}${release}${shared_ext}$major'
10388   shlibpath_var=LD_LIBRARY_PATH
10389   hardcode_into_libs=yes
10390   ;;
10391
10392 hpux9* | hpux10* | hpux11*)
10393   # Give a soname corresponding to the major version so that dld.sl refuses to
10394   # link against other versions.
10395   version_type=sunos
10396   need_lib_prefix=no
10397   need_version=no
10398   case $host_cpu in
10399   ia64*)
10400     shrext_cmds='.so'
10401     hardcode_into_libs=yes
10402     dynamic_linker="$host_os dld.so"
10403     shlibpath_var=LD_LIBRARY_PATH
10404     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10405     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10406     soname_spec='${libname}${release}${shared_ext}$major'
10407     if test "X$HPUX_IA64_MODE" = X32; then
10408       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10409     else
10410       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10411     fi
10412     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10413     ;;
10414   hppa*64*)
10415     shrext_cmds='.sl'
10416     hardcode_into_libs=yes
10417     dynamic_linker="$host_os dld.sl"
10418     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10419     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10420     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421     soname_spec='${libname}${release}${shared_ext}$major'
10422     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10423     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10424     ;;
10425   *)
10426     shrext_cmds='.sl'
10427     dynamic_linker="$host_os dld.sl"
10428     shlibpath_var=SHLIB_PATH
10429     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10430     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10431     soname_spec='${libname}${release}${shared_ext}$major'
10432     ;;
10433   esac
10434   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10435   postinstall_cmds='chmod 555 $lib'
10436   ;;
10437
10438 interix[3-9]*)
10439   version_type=linux
10440   need_lib_prefix=no
10441   need_version=no
10442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10443   soname_spec='${libname}${release}${shared_ext}$major'
10444   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10445   shlibpath_var=LD_LIBRARY_PATH
10446   shlibpath_overrides_runpath=no
10447   hardcode_into_libs=yes
10448   ;;
10449
10450 irix5* | irix6* | nonstopux*)
10451   case $host_os in
10452     nonstopux*) version_type=nonstopux ;;
10453     *)
10454         if test "$lt_cv_prog_gnu_ld" = yes; then
10455                 version_type=linux
10456         else
10457                 version_type=irix
10458         fi ;;
10459   esac
10460   need_lib_prefix=no
10461   need_version=no
10462   soname_spec='${libname}${release}${shared_ext}$major'
10463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10464   case $host_os in
10465   irix5* | nonstopux*)
10466     libsuff= shlibsuff=
10467     ;;
10468   *)
10469     case $LD in # libtool.m4 will add one of these switches to LD
10470     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10471       libsuff= shlibsuff= libmagic=32-bit;;
10472     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10473       libsuff=32 shlibsuff=N32 libmagic=N32;;
10474     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10475       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10476     *) libsuff= shlibsuff= libmagic=never-match;;
10477     esac
10478     ;;
10479   esac
10480   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10481   shlibpath_overrides_runpath=no
10482   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10483   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10484   hardcode_into_libs=yes
10485   ;;
10486
10487 # No shared lib support for Linux oldld, aout, or coff.
10488 linux*oldld* | linux*aout* | linux*coff*)
10489   dynamic_linker=no
10490   ;;
10491
10492 # This must be Linux ELF.
10493 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10494   version_type=linux
10495   need_lib_prefix=no
10496   need_version=no
10497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10498   soname_spec='${libname}${release}${shared_ext}$major'
10499   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10500   shlibpath_var=LD_LIBRARY_PATH
10501   shlibpath_overrides_runpath=no
10502   # Some binutils ld are patched to set DT_RUNPATH
10503   save_LDFLAGS=$LDFLAGS
10504   save_libdir=$libdir
10505   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10506        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h.  */
10509
10510 int
10511 main ()
10512 {
10513
10514   ;
10515   return 0;
10516 }
10517 _ACEOF
10518 if ac_fn_c_try_link "$LINENO"; then :
10519   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10520   shlibpath_overrides_runpath=yes
10521 fi
10522 fi
10523 rm -f core conftest.err conftest.$ac_objext \
10524     conftest$ac_exeext conftest.$ac_ext
10525   LDFLAGS=$save_LDFLAGS
10526   libdir=$save_libdir
10527
10528   # This implies no fast_install, which is unacceptable.
10529   # Some rework will be needed to allow for fast_install
10530   # before this can be enabled.
10531   hardcode_into_libs=yes
10532
10533   # Append ld.so.conf contents to the search path
10534   if test -f /etc/ld.so.conf; then
10535     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' ' '`
10536     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10537   fi
10538
10539   # We used to test for /lib/ld.so.1 and disable shared libraries on
10540   # powerpc, because MkLinux only supported shared libraries with the
10541   # GNU dynamic linker.  Since this was broken with cross compilers,
10542   # most powerpc-linux boxes support dynamic linking these days and
10543   # people can always --disable-shared, the test was removed, and we
10544   # assume the GNU/Linux dynamic linker is in use.
10545   dynamic_linker='GNU/Linux ld.so'
10546   ;;
10547
10548 netbsdelf*-gnu)
10549   version_type=linux
10550   need_lib_prefix=no
10551   need_version=no
10552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10553   soname_spec='${libname}${release}${shared_ext}$major'
10554   shlibpath_var=LD_LIBRARY_PATH
10555   shlibpath_overrides_runpath=no
10556   hardcode_into_libs=yes
10557   dynamic_linker='NetBSD ld.elf_so'
10558   ;;
10559
10560 netbsd*)
10561   version_type=sunos
10562   need_lib_prefix=no
10563   need_version=no
10564   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10565     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10566     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10567     dynamic_linker='NetBSD (a.out) ld.so'
10568   else
10569     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10570     soname_spec='${libname}${release}${shared_ext}$major'
10571     dynamic_linker='NetBSD ld.elf_so'
10572   fi
10573   shlibpath_var=LD_LIBRARY_PATH
10574   shlibpath_overrides_runpath=yes
10575   hardcode_into_libs=yes
10576   ;;
10577
10578 newsos6)
10579   version_type=linux
10580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10581   shlibpath_var=LD_LIBRARY_PATH
10582   shlibpath_overrides_runpath=yes
10583   ;;
10584
10585 *nto* | *qnx*)
10586   version_type=qnx
10587   need_lib_prefix=no
10588   need_version=no
10589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10590   soname_spec='${libname}${release}${shared_ext}$major'
10591   shlibpath_var=LD_LIBRARY_PATH
10592   shlibpath_overrides_runpath=no
10593   hardcode_into_libs=yes
10594   dynamic_linker='ldqnx.so'
10595   ;;
10596
10597 openbsd*)
10598   version_type=sunos
10599   sys_lib_dlsearch_path_spec="/usr/lib"
10600   need_lib_prefix=no
10601   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10602   case $host_os in
10603     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10604     *)                          need_version=no  ;;
10605   esac
10606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10607   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10608   shlibpath_var=LD_LIBRARY_PATH
10609   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10610     case $host_os in
10611       openbsd2.[89] | openbsd2.[89].*)
10612         shlibpath_overrides_runpath=no
10613         ;;
10614       *)
10615         shlibpath_overrides_runpath=yes
10616         ;;
10617       esac
10618   else
10619     shlibpath_overrides_runpath=yes
10620   fi
10621   ;;
10622
10623 os2*)
10624   libname_spec='$name'
10625   shrext_cmds=".dll"
10626   need_lib_prefix=no
10627   library_names_spec='$libname${shared_ext} $libname.a'
10628   dynamic_linker='OS/2 ld.exe'
10629   shlibpath_var=LIBPATH
10630   ;;
10631
10632 osf3* | osf4* | osf5*)
10633   version_type=osf
10634   need_lib_prefix=no
10635   need_version=no
10636   soname_spec='${libname}${release}${shared_ext}$major'
10637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10638   shlibpath_var=LD_LIBRARY_PATH
10639   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10640   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10641   ;;
10642
10643 rdos*)
10644   dynamic_linker=no
10645   ;;
10646
10647 solaris*)
10648   version_type=linux
10649   need_lib_prefix=no
10650   need_version=no
10651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652   soname_spec='${libname}${release}${shared_ext}$major'
10653   shlibpath_var=LD_LIBRARY_PATH
10654   shlibpath_overrides_runpath=yes
10655   hardcode_into_libs=yes
10656   # ldd complains unless libraries are executable
10657   postinstall_cmds='chmod +x $lib'
10658   ;;
10659
10660 sunos4*)
10661   version_type=sunos
10662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10663   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10664   shlibpath_var=LD_LIBRARY_PATH
10665   shlibpath_overrides_runpath=yes
10666   if test "$with_gnu_ld" = yes; then
10667     need_lib_prefix=no
10668   fi
10669   need_version=yes
10670   ;;
10671
10672 sysv4 | sysv4.3*)
10673   version_type=linux
10674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10675   soname_spec='${libname}${release}${shared_ext}$major'
10676   shlibpath_var=LD_LIBRARY_PATH
10677   case $host_vendor in
10678     sni)
10679       shlibpath_overrides_runpath=no
10680       need_lib_prefix=no
10681       runpath_var=LD_RUN_PATH
10682       ;;
10683     siemens)
10684       need_lib_prefix=no
10685       ;;
10686     motorola)
10687       need_lib_prefix=no
10688       need_version=no
10689       shlibpath_overrides_runpath=no
10690       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10691       ;;
10692   esac
10693   ;;
10694
10695 sysv4*MP*)
10696   if test -d /usr/nec ;then
10697     version_type=linux
10698     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10699     soname_spec='$libname${shared_ext}.$major'
10700     shlibpath_var=LD_LIBRARY_PATH
10701   fi
10702   ;;
10703
10704 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10705   version_type=freebsd-elf
10706   need_lib_prefix=no
10707   need_version=no
10708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10709   soname_spec='${libname}${release}${shared_ext}$major'
10710   shlibpath_var=LD_LIBRARY_PATH
10711   shlibpath_overrides_runpath=yes
10712   hardcode_into_libs=yes
10713   if test "$with_gnu_ld" = yes; then
10714     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10715   else
10716     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10717     case $host_os in
10718       sco3.2v5*)
10719         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10720         ;;
10721     esac
10722   fi
10723   sys_lib_dlsearch_path_spec='/usr/lib'
10724   ;;
10725
10726 tpf*)
10727   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10728   version_type=linux
10729   need_lib_prefix=no
10730   need_version=no
10731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10732   shlibpath_var=LD_LIBRARY_PATH
10733   shlibpath_overrides_runpath=no
10734   hardcode_into_libs=yes
10735   ;;
10736
10737 uts4*)
10738   version_type=linux
10739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10740   soname_spec='${libname}${release}${shared_ext}$major'
10741   shlibpath_var=LD_LIBRARY_PATH
10742   ;;
10743
10744 *)
10745   dynamic_linker=no
10746   ;;
10747 esac
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10749 $as_echo "$dynamic_linker" >&6; }
10750 test "$dynamic_linker" = no && can_build_shared=no
10751
10752 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10753 if test "$GCC" = yes; then
10754   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10755 fi
10756
10757 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10758   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10759 fi
10760 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10761   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10762 fi
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10851 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10852 hardcode_action=
10853 if test -n "$hardcode_libdir_flag_spec" ||
10854    test -n "$runpath_var" ||
10855    test "X$hardcode_automatic" = "Xyes" ; then
10856
10857   # We can hardcode non-existent directories.
10858   if test "$hardcode_direct" != no &&
10859      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10860      # have to relink, otherwise we might link with an installed library
10861      # when we should be linking with a yet-to-be-installed one
10862      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10863      test "$hardcode_minus_L" != no; then
10864     # Linking always hardcodes the temporary library directory.
10865     hardcode_action=relink
10866   else
10867     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10868     hardcode_action=immediate
10869   fi
10870 else
10871   # We cannot hardcode anything, or else we can only hardcode existing
10872   # directories.
10873   hardcode_action=unsupported
10874 fi
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10876 $as_echo "$hardcode_action" >&6; }
10877
10878 if test "$hardcode_action" = relink ||
10879    test "$inherit_rpath" = yes; then
10880   # Fast installation is not supported
10881   enable_fast_install=no
10882 elif test "$shlibpath_overrides_runpath" = yes ||
10883      test "$enable_shared" = no; then
10884   # Fast installation is not necessary
10885   enable_fast_install=needless
10886 fi
10887
10888
10889
10890
10891
10892
10893   if test "x$enable_dlopen" != xyes; then
10894   enable_dlopen=unknown
10895   enable_dlopen_self=unknown
10896   enable_dlopen_self_static=unknown
10897 else
10898   lt_cv_dlopen=no
10899   lt_cv_dlopen_libs=
10900
10901   case $host_os in
10902   beos*)
10903     lt_cv_dlopen="load_add_on"
10904     lt_cv_dlopen_libs=
10905     lt_cv_dlopen_self=yes
10906     ;;
10907
10908   mingw* | pw32* | cegcc*)
10909     lt_cv_dlopen="LoadLibrary"
10910     lt_cv_dlopen_libs=
10911     ;;
10912
10913   cygwin*)
10914     lt_cv_dlopen="dlopen"
10915     lt_cv_dlopen_libs=
10916     ;;
10917
10918   darwin*)
10919   # if libdl is installed we need to link against it
10920     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10921 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10922 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10923   $as_echo_n "(cached) " >&6
10924 else
10925   ac_check_lib_save_LIBS=$LIBS
10926 LIBS="-ldl  $LIBS"
10927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h.  */
10929
10930 /* Override any GCC internal prototype to avoid an error.
10931    Use char because int might match the return type of a GCC
10932    builtin and then its argument prototype would still apply.  */
10933 #ifdef __cplusplus
10934 extern "C"
10935 #endif
10936 char dlopen ();
10937 int
10938 main ()
10939 {
10940 return dlopen ();
10941   ;
10942   return 0;
10943 }
10944 _ACEOF
10945 if ac_fn_c_try_link "$LINENO"; then :
10946   ac_cv_lib_dl_dlopen=yes
10947 else
10948   ac_cv_lib_dl_dlopen=no
10949 fi
10950 rm -f core conftest.err conftest.$ac_objext \
10951     conftest$ac_exeext conftest.$ac_ext
10952 LIBS=$ac_check_lib_save_LIBS
10953 fi
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10955 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10956 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10957   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10958 else
10959
10960     lt_cv_dlopen="dyld"
10961     lt_cv_dlopen_libs=
10962     lt_cv_dlopen_self=yes
10963
10964 fi
10965
10966     ;;
10967
10968   *)
10969     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10970 if test "x$ac_cv_func_shl_load" = x""yes; then :
10971   lt_cv_dlopen="shl_load"
10972 else
10973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10974 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10975 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10976   $as_echo_n "(cached) " >&6
10977 else
10978   ac_check_lib_save_LIBS=$LIBS
10979 LIBS="-ldld  $LIBS"
10980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10981 /* end confdefs.h.  */
10982
10983 /* Override any GCC internal prototype to avoid an error.
10984    Use char because int might match the return type of a GCC
10985    builtin and then its argument prototype would still apply.  */
10986 #ifdef __cplusplus
10987 extern "C"
10988 #endif
10989 char shl_load ();
10990 int
10991 main ()
10992 {
10993 return shl_load ();
10994   ;
10995   return 0;
10996 }
10997 _ACEOF
10998 if ac_fn_c_try_link "$LINENO"; then :
10999   ac_cv_lib_dld_shl_load=yes
11000 else
11001   ac_cv_lib_dld_shl_load=no
11002 fi
11003 rm -f core conftest.err conftest.$ac_objext \
11004     conftest$ac_exeext conftest.$ac_ext
11005 LIBS=$ac_check_lib_save_LIBS
11006 fi
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11008 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11009 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11010   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11011 else
11012   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11013 if test "x$ac_cv_func_dlopen" = x""yes; then :
11014   lt_cv_dlopen="dlopen"
11015 else
11016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11017 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11018 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11019   $as_echo_n "(cached) " >&6
11020 else
11021   ac_check_lib_save_LIBS=$LIBS
11022 LIBS="-ldl  $LIBS"
11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h.  */
11025
11026 /* Override any GCC internal prototype to avoid an error.
11027    Use char because int might match the return type of a GCC
11028    builtin and then its argument prototype would still apply.  */
11029 #ifdef __cplusplus
11030 extern "C"
11031 #endif
11032 char dlopen ();
11033 int
11034 main ()
11035 {
11036 return dlopen ();
11037   ;
11038   return 0;
11039 }
11040 _ACEOF
11041 if ac_fn_c_try_link "$LINENO"; then :
11042   ac_cv_lib_dl_dlopen=yes
11043 else
11044   ac_cv_lib_dl_dlopen=no
11045 fi
11046 rm -f core conftest.err conftest.$ac_objext \
11047     conftest$ac_exeext conftest.$ac_ext
11048 LIBS=$ac_check_lib_save_LIBS
11049 fi
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11051 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11052 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11053   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11054 else
11055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11056 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11057 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11058   $as_echo_n "(cached) " >&6
11059 else
11060   ac_check_lib_save_LIBS=$LIBS
11061 LIBS="-lsvld  $LIBS"
11062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11063 /* end confdefs.h.  */
11064
11065 /* Override any GCC internal prototype to avoid an error.
11066    Use char because int might match the return type of a GCC
11067    builtin and then its argument prototype would still apply.  */
11068 #ifdef __cplusplus
11069 extern "C"
11070 #endif
11071 char dlopen ();
11072 int
11073 main ()
11074 {
11075 return dlopen ();
11076   ;
11077   return 0;
11078 }
11079 _ACEOF
11080 if ac_fn_c_try_link "$LINENO"; then :
11081   ac_cv_lib_svld_dlopen=yes
11082 else
11083   ac_cv_lib_svld_dlopen=no
11084 fi
11085 rm -f core conftest.err conftest.$ac_objext \
11086     conftest$ac_exeext conftest.$ac_ext
11087 LIBS=$ac_check_lib_save_LIBS
11088 fi
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11090 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11091 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11092   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11093 else
11094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11095 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11096 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11097   $as_echo_n "(cached) " >&6
11098 else
11099   ac_check_lib_save_LIBS=$LIBS
11100 LIBS="-ldld  $LIBS"
11101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11102 /* end confdefs.h.  */
11103
11104 /* Override any GCC internal prototype to avoid an error.
11105    Use char because int might match the return type of a GCC
11106    builtin and then its argument prototype would still apply.  */
11107 #ifdef __cplusplus
11108 extern "C"
11109 #endif
11110 char dld_link ();
11111 int
11112 main ()
11113 {
11114 return dld_link ();
11115   ;
11116   return 0;
11117 }
11118 _ACEOF
11119 if ac_fn_c_try_link "$LINENO"; then :
11120   ac_cv_lib_dld_dld_link=yes
11121 else
11122   ac_cv_lib_dld_dld_link=no
11123 fi
11124 rm -f core conftest.err conftest.$ac_objext \
11125     conftest$ac_exeext conftest.$ac_ext
11126 LIBS=$ac_check_lib_save_LIBS
11127 fi
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11129 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11130 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11131   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11132 fi
11133
11134
11135 fi
11136
11137
11138 fi
11139
11140
11141 fi
11142
11143
11144 fi
11145
11146
11147 fi
11148
11149     ;;
11150   esac
11151
11152   if test "x$lt_cv_dlopen" != xno; then
11153     enable_dlopen=yes
11154   else
11155     enable_dlopen=no
11156   fi
11157
11158   case $lt_cv_dlopen in
11159   dlopen)
11160     save_CPPFLAGS="$CPPFLAGS"
11161     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11162
11163     save_LDFLAGS="$LDFLAGS"
11164     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11165
11166     save_LIBS="$LIBS"
11167     LIBS="$lt_cv_dlopen_libs $LIBS"
11168
11169     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11170 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11171 if test "${lt_cv_dlopen_self+set}" = set; then :
11172   $as_echo_n "(cached) " >&6
11173 else
11174           if test "$cross_compiling" = yes; then :
11175   lt_cv_dlopen_self=cross
11176 else
11177   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11178   lt_status=$lt_dlunknown
11179   cat > conftest.$ac_ext <<_LT_EOF
11180 #line 11180 "configure"
11181 #include "confdefs.h"
11182
11183 #if HAVE_DLFCN_H
11184 #include <dlfcn.h>
11185 #endif
11186
11187 #include <stdio.h>
11188
11189 #ifdef RTLD_GLOBAL
11190 #  define LT_DLGLOBAL           RTLD_GLOBAL
11191 #else
11192 #  ifdef DL_GLOBAL
11193 #    define LT_DLGLOBAL         DL_GLOBAL
11194 #  else
11195 #    define LT_DLGLOBAL         0
11196 #  endif
11197 #endif
11198
11199 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11200    find out it does not work in some platform. */
11201 #ifndef LT_DLLAZY_OR_NOW
11202 #  ifdef RTLD_LAZY
11203 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11204 #  else
11205 #    ifdef DL_LAZY
11206 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11207 #    else
11208 #      ifdef RTLD_NOW
11209 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11210 #      else
11211 #        ifdef DL_NOW
11212 #          define LT_DLLAZY_OR_NOW      DL_NOW
11213 #        else
11214 #          define LT_DLLAZY_OR_NOW      0
11215 #        endif
11216 #      endif
11217 #    endif
11218 #  endif
11219 #endif
11220
11221 void fnord() { int i=42;}
11222 int main ()
11223 {
11224   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11225   int status = $lt_dlunknown;
11226
11227   if (self)
11228     {
11229       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11230       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11231       /* dlclose (self); */
11232     }
11233   else
11234     puts (dlerror ());
11235
11236   return status;
11237 }
11238 _LT_EOF
11239   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11240   (eval $ac_link) 2>&5
11241   ac_status=$?
11242   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11243   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11244     (./conftest; exit; ) >&5 2>/dev/null
11245     lt_status=$?
11246     case x$lt_status in
11247       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11248       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11249       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11250     esac
11251   else :
11252     # compilation failed
11253     lt_cv_dlopen_self=no
11254   fi
11255 fi
11256 rm -fr conftest*
11257
11258
11259 fi
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11261 $as_echo "$lt_cv_dlopen_self" >&6; }
11262
11263     if test "x$lt_cv_dlopen_self" = xyes; then
11264       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11265       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11266 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11267 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11268   $as_echo_n "(cached) " >&6
11269 else
11270           if test "$cross_compiling" = yes; then :
11271   lt_cv_dlopen_self_static=cross
11272 else
11273   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11274   lt_status=$lt_dlunknown
11275   cat > conftest.$ac_ext <<_LT_EOF
11276 #line 11276 "configure"
11277 #include "confdefs.h"
11278
11279 #if HAVE_DLFCN_H
11280 #include <dlfcn.h>
11281 #endif
11282
11283 #include <stdio.h>
11284
11285 #ifdef RTLD_GLOBAL
11286 #  define LT_DLGLOBAL           RTLD_GLOBAL
11287 #else
11288 #  ifdef DL_GLOBAL
11289 #    define LT_DLGLOBAL         DL_GLOBAL
11290 #  else
11291 #    define LT_DLGLOBAL         0
11292 #  endif
11293 #endif
11294
11295 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11296    find out it does not work in some platform. */
11297 #ifndef LT_DLLAZY_OR_NOW
11298 #  ifdef RTLD_LAZY
11299 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11300 #  else
11301 #    ifdef DL_LAZY
11302 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11303 #    else
11304 #      ifdef RTLD_NOW
11305 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11306 #      else
11307 #        ifdef DL_NOW
11308 #          define LT_DLLAZY_OR_NOW      DL_NOW
11309 #        else
11310 #          define LT_DLLAZY_OR_NOW      0
11311 #        endif
11312 #      endif
11313 #    endif
11314 #  endif
11315 #endif
11316
11317 void fnord() { int i=42;}
11318 int main ()
11319 {
11320   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11321   int status = $lt_dlunknown;
11322
11323   if (self)
11324     {
11325       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11326       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11327       /* dlclose (self); */
11328     }
11329   else
11330     puts (dlerror ());
11331
11332   return status;
11333 }
11334 _LT_EOF
11335   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11336   (eval $ac_link) 2>&5
11337   ac_status=$?
11338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11339   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11340     (./conftest; exit; ) >&5 2>/dev/null
11341     lt_status=$?
11342     case x$lt_status in
11343       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11344       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11345       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11346     esac
11347   else :
11348     # compilation failed
11349     lt_cv_dlopen_self_static=no
11350   fi
11351 fi
11352 rm -fr conftest*
11353
11354
11355 fi
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11357 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11358     fi
11359
11360     CPPFLAGS="$save_CPPFLAGS"
11361     LDFLAGS="$save_LDFLAGS"
11362     LIBS="$save_LIBS"
11363     ;;
11364   esac
11365
11366   case $lt_cv_dlopen_self in
11367   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11368   *) enable_dlopen_self=unknown ;;
11369   esac
11370
11371   case $lt_cv_dlopen_self_static in
11372   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11373   *) enable_dlopen_self_static=unknown ;;
11374   esac
11375 fi
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393 striplib=
11394 old_striplib=
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11396 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11397 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11398   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11399   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11401 $as_echo "yes" >&6; }
11402 else
11403 # FIXME - insert some real tests, host_os isn't really good enough
11404   case $host_os in
11405   darwin*)
11406     if test -n "$STRIP" ; then
11407       striplib="$STRIP -x"
11408       old_striplib="$STRIP -S"
11409       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11410 $as_echo "yes" >&6; }
11411     else
11412       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413 $as_echo "no" >&6; }
11414     fi
11415     ;;
11416   *)
11417     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418 $as_echo "no" >&6; }
11419     ;;
11420   esac
11421 fi
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434   # Report which library types will actually be built
11435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11436 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11438 $as_echo "$can_build_shared" >&6; }
11439
11440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11441 $as_echo_n "checking whether to build shared libraries... " >&6; }
11442   test "$can_build_shared" = "no" && enable_shared=no
11443
11444   # On AIX, shared libraries and static libraries use the same namespace, and
11445   # are all built from PIC.
11446   case $host_os in
11447   aix3*)
11448     test "$enable_shared" = yes && enable_static=no
11449     if test -n "$RANLIB"; then
11450       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11451       postinstall_cmds='$RANLIB $lib'
11452     fi
11453     ;;
11454
11455   aix[4-9]*)
11456     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11457       test "$enable_shared" = yes && enable_static=no
11458     fi
11459     ;;
11460   esac
11461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11462 $as_echo "$enable_shared" >&6; }
11463
11464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11465 $as_echo_n "checking whether to build static libraries... " >&6; }
11466   # Make sure either enable_shared or enable_static is yes.
11467   test "$enable_shared" = yes || enable_static=yes
11468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11469 $as_echo "$enable_static" >&6; }
11470
11471
11472
11473
11474 fi
11475 ac_ext=c
11476 ac_cpp='$CPP $CPPFLAGS'
11477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11480
11481 CC="$lt_save_CC"
11482
11483
11484 ac_ext=cpp
11485 ac_cpp='$CXXCPP $CPPFLAGS'
11486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11489
11490 archive_cmds_need_lc_CXX=no
11491 allow_undefined_flag_CXX=
11492 always_export_symbols_CXX=no
11493 archive_expsym_cmds_CXX=
11494 compiler_needs_object_CXX=no
11495 export_dynamic_flag_spec_CXX=
11496 hardcode_direct_CXX=no
11497 hardcode_direct_absolute_CXX=no
11498 hardcode_libdir_flag_spec_CXX=
11499 hardcode_libdir_flag_spec_ld_CXX=
11500 hardcode_libdir_separator_CXX=
11501 hardcode_minus_L_CXX=no
11502 hardcode_shlibpath_var_CXX=unsupported
11503 hardcode_automatic_CXX=no
11504 inherit_rpath_CXX=no
11505 module_cmds_CXX=
11506 module_expsym_cmds_CXX=
11507 link_all_deplibs_CXX=unknown
11508 old_archive_cmds_CXX=$old_archive_cmds
11509 no_undefined_flag_CXX=
11510 whole_archive_flag_spec_CXX=
11511 enable_shared_with_static_runtimes_CXX=no
11512
11513 # Source file extension for C++ test sources.
11514 ac_ext=cpp
11515
11516 # Object file extension for compiled C++ test sources.
11517 objext=o
11518 objext_CXX=$objext
11519
11520 # No sense in running all these tests if we already determined that
11521 # the CXX compiler isn't working.  Some variables (like enable_shared)
11522 # are currently assumed to apply to all compilers on this platform,
11523 # and will be corrupted by setting them based on a non-working compiler.
11524 if test "$_lt_caught_CXX_error" != yes; then
11525   # Code to be used in simple compile tests
11526   lt_simple_compile_test_code="int some_variable = 0;"
11527
11528   # Code to be used in simple link tests
11529   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11530
11531   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11532
11533
11534
11535
11536
11537
11538 # If no C compiler was specified, use CC.
11539 LTCC=${LTCC-"$CC"}
11540
11541 # If no C compiler flags were specified, use CFLAGS.
11542 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11543
11544 # Allow CC to be a program name with arguments.
11545 compiler=$CC
11546
11547
11548   # save warnings/boilerplate of simple test code
11549   ac_outfile=conftest.$ac_objext
11550 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11551 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11552 _lt_compiler_boilerplate=`cat conftest.err`
11553 $RM conftest*
11554
11555   ac_outfile=conftest.$ac_objext
11556 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11557 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11558 _lt_linker_boilerplate=`cat conftest.err`
11559 $RM -r conftest*
11560
11561
11562   # Allow CC to be a program name with arguments.
11563   lt_save_CC=$CC
11564   lt_save_LD=$LD
11565   lt_save_GCC=$GCC
11566   GCC=$GXX
11567   lt_save_with_gnu_ld=$with_gnu_ld
11568   lt_save_path_LD=$lt_cv_path_LD
11569   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11570     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11571   else
11572     $as_unset lt_cv_prog_gnu_ld
11573   fi
11574   if test -n "${lt_cv_path_LDCXX+set}"; then
11575     lt_cv_path_LD=$lt_cv_path_LDCXX
11576   else
11577     $as_unset lt_cv_path_LD
11578   fi
11579   test -z "${LDCXX+set}" || LD=$LDCXX
11580   CC=${CXX-"c++"}
11581   compiler=$CC
11582   compiler_CXX=$CC
11583   for cc_temp in $compiler""; do
11584   case $cc_temp in
11585     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11586     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11587     \-*) ;;
11588     *) break;;
11589   esac
11590 done
11591 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11592
11593
11594   if test -n "$compiler"; then
11595     # We don't want -fno-exception when compiling C++ code, so set the
11596     # no_builtin_flag separately
11597     if test "$GXX" = yes; then
11598       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11599     else
11600       lt_prog_compiler_no_builtin_flag_CXX=
11601     fi
11602
11603     if test "$GXX" = yes; then
11604       # Set up default GNU C++ configuration
11605
11606
11607
11608 # Check whether --with-gnu-ld was given.
11609 if test "${with_gnu_ld+set}" = set; then :
11610   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11611 else
11612   with_gnu_ld=no
11613 fi
11614
11615 ac_prog=ld
11616 if test "$GCC" = yes; then
11617   # Check if gcc -print-prog-name=ld gives a path.
11618   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11619 $as_echo_n "checking for ld used by $CC... " >&6; }
11620   case $host in
11621   *-*-mingw*)
11622     # gcc leaves a trailing carriage return which upsets mingw
11623     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11624   *)
11625     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11626   esac
11627   case $ac_prog in
11628     # Accept absolute paths.
11629     [\\/]* | ?:[\\/]*)
11630       re_direlt='/[^/][^/]*/\.\./'
11631       # Canonicalize the pathname of ld
11632       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11633       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11634         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11635       done
11636       test -z "$LD" && LD="$ac_prog"
11637       ;;
11638   "")
11639     # If it fails, then pretend we aren't using GCC.
11640     ac_prog=ld
11641     ;;
11642   *)
11643     # If it is relative, then search for the first ld in PATH.
11644     with_gnu_ld=unknown
11645     ;;
11646   esac
11647 elif test "$with_gnu_ld" = yes; then
11648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11649 $as_echo_n "checking for GNU ld... " >&6; }
11650 else
11651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11652 $as_echo_n "checking for non-GNU ld... " >&6; }
11653 fi
11654 if test "${lt_cv_path_LD+set}" = set; then :
11655   $as_echo_n "(cached) " >&6
11656 else
11657   if test -z "$LD"; then
11658   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11659   for ac_dir in $PATH; do
11660     IFS="$lt_save_ifs"
11661     test -z "$ac_dir" && ac_dir=.
11662     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11663       lt_cv_path_LD="$ac_dir/$ac_prog"
11664       # Check to see if the program is GNU ld.  I'd rather use --version,
11665       # but apparently some variants of GNU ld only accept -v.
11666       # Break only if it was the GNU/non-GNU ld that we prefer.
11667       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11668       *GNU* | *'with BFD'*)
11669         test "$with_gnu_ld" != no && break
11670         ;;
11671       *)
11672         test "$with_gnu_ld" != yes && break
11673         ;;
11674       esac
11675     fi
11676   done
11677   IFS="$lt_save_ifs"
11678 else
11679   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11680 fi
11681 fi
11682
11683 LD="$lt_cv_path_LD"
11684 if test -n "$LD"; then
11685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11686 $as_echo "$LD" >&6; }
11687 else
11688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11689 $as_echo "no" >&6; }
11690 fi
11691 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11693 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11694 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11695   $as_echo_n "(cached) " >&6
11696 else
11697   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11698 case `$LD -v 2>&1 </dev/null` in
11699 *GNU* | *'with BFD'*)
11700   lt_cv_prog_gnu_ld=yes
11701   ;;
11702 *)
11703   lt_cv_prog_gnu_ld=no
11704   ;;
11705 esac
11706 fi
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11708 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11709 with_gnu_ld=$lt_cv_prog_gnu_ld
11710
11711
11712
11713
11714
11715
11716
11717       # Check if GNU C++ uses GNU ld as the underlying linker, since the
11718       # archiving commands below assume that GNU ld is being used.
11719       if test "$with_gnu_ld" = yes; then
11720         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11721         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'
11722
11723         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11724         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11725
11726         # If archive_cmds runs LD, not CC, wlarc should be empty
11727         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11728         #     investigate it a little bit more. (MM)
11729         wlarc='${wl}'
11730
11731         # ancient GNU ld didn't support --whole-archive et. al.
11732         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11733           $GREP 'no-whole-archive' > /dev/null; then
11734           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11735         else
11736           whole_archive_flag_spec_CXX=
11737         fi
11738       else
11739         with_gnu_ld=no
11740         wlarc=
11741
11742         # A generic and very simple default shared library creation
11743         # command for GNU C++ for the case where it uses the native
11744         # linker, instead of GNU ld.  If possible, this setting should
11745         # overridden to take advantage of the native linker features on
11746         # the platform it is being used on.
11747         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11748       fi
11749
11750       # Commands to make compiler produce verbose output that lists
11751       # what "hidden" libraries, object files and flags are used when
11752       # linking a shared library.
11753       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11754
11755     else
11756       GXX=no
11757       with_gnu_ld=no
11758       wlarc=
11759     fi
11760
11761     # PORTME: fill in a description of your system's C++ link characteristics
11762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11763 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11764     ld_shlibs_CXX=yes
11765     case $host_os in
11766       aix3*)
11767         # FIXME: insert proper C++ library support
11768         ld_shlibs_CXX=no
11769         ;;
11770       aix[4-9]*)
11771         if test "$host_cpu" = ia64; then
11772           # On IA64, the linker does run time linking by default, so we don't
11773           # have to do anything special.
11774           aix_use_runtimelinking=no
11775           exp_sym_flag='-Bexport'
11776           no_entry_flag=""
11777         else
11778           aix_use_runtimelinking=no
11779
11780           # Test if we are trying to use run time linking or normal
11781           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11782           # need to do runtime linking.
11783           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11784             for ld_flag in $LDFLAGS; do
11785               case $ld_flag in
11786               *-brtl*)
11787                 aix_use_runtimelinking=yes
11788                 break
11789                 ;;
11790               esac
11791             done
11792             ;;
11793           esac
11794
11795           exp_sym_flag='-bexport'
11796           no_entry_flag='-bnoentry'
11797         fi
11798
11799         # When large executables or shared objects are built, AIX ld can
11800         # have problems creating the table of contents.  If linking a library
11801         # or program results in "error TOC overflow" add -mminimal-toc to
11802         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11803         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11804
11805         archive_cmds_CXX=''
11806         hardcode_direct_CXX=yes
11807         hardcode_direct_absolute_CXX=yes
11808         hardcode_libdir_separator_CXX=':'
11809         link_all_deplibs_CXX=yes
11810         file_list_spec_CXX='${wl}-f,'
11811
11812         if test "$GXX" = yes; then
11813           case $host_os in aix4.[012]|aix4.[012].*)
11814           # We only want to do this on AIX 4.2 and lower, the check
11815           # below for broken collect2 doesn't work under 4.3+
11816           collect2name=`${CC} -print-prog-name=collect2`
11817           if test -f "$collect2name" &&
11818              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11819           then
11820             # We have reworked collect2
11821             :
11822           else
11823             # We have old collect2
11824             hardcode_direct_CXX=unsupported
11825             # It fails to find uninstalled libraries when the uninstalled
11826             # path is not listed in the libpath.  Setting hardcode_minus_L
11827             # to unsupported forces relinking
11828             hardcode_minus_L_CXX=yes
11829             hardcode_libdir_flag_spec_CXX='-L$libdir'
11830             hardcode_libdir_separator_CXX=
11831           fi
11832           esac
11833           shared_flag='-shared'
11834           if test "$aix_use_runtimelinking" = yes; then
11835             shared_flag="$shared_flag "'${wl}-G'
11836           fi
11837         else
11838           # not using gcc
11839           if test "$host_cpu" = ia64; then
11840           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11841           # chokes on -Wl,-G. The following line is correct:
11842           shared_flag='-G'
11843           else
11844             if test "$aix_use_runtimelinking" = yes; then
11845               shared_flag='${wl}-G'
11846             else
11847               shared_flag='${wl}-bM:SRE'
11848             fi
11849           fi
11850         fi
11851
11852         export_dynamic_flag_spec_CXX='${wl}-bexpall'
11853         # It seems that -bexpall does not export symbols beginning with
11854         # underscore (_), so it is better to generate a list of symbols to
11855         # export.
11856         always_export_symbols_CXX=yes
11857         if test "$aix_use_runtimelinking" = yes; then
11858           # Warning - without using the other runtime loading flags (-brtl),
11859           # -berok will link without error, but may produce a broken library.
11860           allow_undefined_flag_CXX='-berok'
11861           # Determine the default libpath from the value encoded in an empty
11862           # executable.
11863           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h.  */
11865
11866 int
11867 main ()
11868 {
11869
11870   ;
11871   return 0;
11872 }
11873 _ACEOF
11874 if ac_fn_cxx_try_link "$LINENO"; then :
11875
11876 lt_aix_libpath_sed='
11877     /Import File Strings/,/^$/ {
11878         /^0/ {
11879             s/^0  *\(.*\)$/\1/
11880             p
11881         }
11882     }'
11883 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11884 # Check for a 64-bit object if we didn't find anything.
11885 if test -z "$aix_libpath"; then
11886   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11887 fi
11888 fi
11889 rm -f core conftest.err conftest.$ac_objext \
11890     conftest$ac_exeext conftest.$ac_ext
11891 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11892
11893           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11894
11895           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"
11896         else
11897           if test "$host_cpu" = ia64; then
11898             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11899             allow_undefined_flag_CXX="-z nodefs"
11900             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"
11901           else
11902             # Determine the default libpath from the value encoded in an
11903             # empty executable.
11904             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905 /* end confdefs.h.  */
11906
11907 int
11908 main ()
11909 {
11910
11911   ;
11912   return 0;
11913 }
11914 _ACEOF
11915 if ac_fn_cxx_try_link "$LINENO"; then :
11916
11917 lt_aix_libpath_sed='
11918     /Import File Strings/,/^$/ {
11919         /^0/ {
11920             s/^0  *\(.*\)$/\1/
11921             p
11922         }
11923     }'
11924 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11925 # Check for a 64-bit object if we didn't find anything.
11926 if test -z "$aix_libpath"; then
11927   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11928 fi
11929 fi
11930 rm -f core conftest.err conftest.$ac_objext \
11931     conftest$ac_exeext conftest.$ac_ext
11932 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11933
11934             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11935             # Warning - without using the other run time loading flags,
11936             # -berok will link without error, but may produce a broken library.
11937             no_undefined_flag_CXX=' ${wl}-bernotok'
11938             allow_undefined_flag_CXX=' ${wl}-berok'
11939             # Exported symbols can be pulled into shared objects from archives
11940             whole_archive_flag_spec_CXX='$convenience'
11941             archive_cmds_need_lc_CXX=yes
11942             # This is similar to how AIX traditionally builds its shared
11943             # libraries.
11944             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'
11945           fi
11946         fi
11947         ;;
11948
11949       beos*)
11950         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11951           allow_undefined_flag_CXX=unsupported
11952           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11953           # support --undefined.  This deserves some investigation.  FIXME
11954           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11955         else
11956           ld_shlibs_CXX=no
11957         fi
11958         ;;
11959
11960       chorus*)
11961         case $cc_basename in
11962           *)
11963           # FIXME: insert proper C++ library support
11964           ld_shlibs_CXX=no
11965           ;;
11966         esac
11967         ;;
11968
11969       cygwin* | mingw* | pw32* | cegcc*)
11970         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11971         # as there is no search path for DLLs.
11972         hardcode_libdir_flag_spec_CXX='-L$libdir'
11973         allow_undefined_flag_CXX=unsupported
11974         always_export_symbols_CXX=no
11975         enable_shared_with_static_runtimes_CXX=yes
11976
11977         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11978           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'
11979           # If the export-symbols file already is a .def file (1st line
11980           # is EXPORTS), use it as is; otherwise, prepend...
11981           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11982             cp $export_symbols $output_objdir/$soname.def;
11983           else
11984             echo EXPORTS > $output_objdir/$soname.def;
11985             cat $export_symbols >> $output_objdir/$soname.def;
11986           fi~
11987           $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'
11988         else
11989           ld_shlibs_CXX=no
11990         fi
11991         ;;
11992       darwin* | rhapsody*)
11993
11994
11995   archive_cmds_need_lc_CXX=no
11996   hardcode_direct_CXX=no
11997   hardcode_automatic_CXX=yes
11998   hardcode_shlibpath_var_CXX=unsupported
11999   whole_archive_flag_spec_CXX=''
12000   link_all_deplibs_CXX=yes
12001   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12002   case $cc_basename in
12003      ifort*) _lt_dar_can_shared=yes ;;
12004      *) _lt_dar_can_shared=$GCC ;;
12005   esac
12006   if test "$_lt_dar_can_shared" = "yes"; then
12007     output_verbose_link_cmd=echo
12008     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}"
12009     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12010     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}"
12011     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}"
12012        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12013       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}"
12014       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}"
12015     fi
12016
12017   else
12018   ld_shlibs_CXX=no
12019   fi
12020
12021         ;;
12022
12023       dgux*)
12024         case $cc_basename in
12025           ec++*)
12026             # FIXME: insert proper C++ library support
12027             ld_shlibs_CXX=no
12028             ;;
12029           ghcx*)
12030             # Green Hills C++ Compiler
12031             # FIXME: insert proper C++ library support
12032             ld_shlibs_CXX=no
12033             ;;
12034           *)
12035             # FIXME: insert proper C++ library support
12036             ld_shlibs_CXX=no
12037             ;;
12038         esac
12039         ;;
12040
12041       freebsd[12]*)
12042         # C++ shared libraries reported to be fairly broken before
12043         # switch to ELF
12044         ld_shlibs_CXX=no
12045         ;;
12046
12047       freebsd-elf*)
12048         archive_cmds_need_lc_CXX=no
12049         ;;
12050
12051       freebsd* | dragonfly*)
12052         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12053         # conventions
12054         ld_shlibs_CXX=yes
12055         ;;
12056
12057       gnu*)
12058         ;;
12059
12060       hpux9*)
12061         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12062         hardcode_libdir_separator_CXX=:
12063         export_dynamic_flag_spec_CXX='${wl}-E'
12064         hardcode_direct_CXX=yes
12065         hardcode_minus_L_CXX=yes # Not in the search PATH,
12066                                              # but as the default
12067                                              # location of the library.
12068
12069         case $cc_basename in
12070           CC*)
12071             # FIXME: insert proper C++ library support
12072             ld_shlibs_CXX=no
12073             ;;
12074           aCC*)
12075             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'
12076             # Commands to make compiler produce verbose output that lists
12077             # what "hidden" libraries, object files and flags are used when
12078             # linking a shared library.
12079             #
12080             # There doesn't appear to be a way to prevent this compiler from
12081             # explicitly linking system object files so we need to strip them
12082             # from the output so that they don't get included in the library
12083             # dependencies.
12084             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'
12085             ;;
12086           *)
12087             if test "$GXX" = yes; then
12088               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'
12089             else
12090               # FIXME: insert proper C++ library support
12091               ld_shlibs_CXX=no
12092             fi
12093             ;;
12094         esac
12095         ;;
12096
12097       hpux10*|hpux11*)
12098         if test $with_gnu_ld = no; then
12099           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12100           hardcode_libdir_separator_CXX=:
12101
12102           case $host_cpu in
12103             hppa*64*|ia64*)
12104               ;;
12105             *)
12106               export_dynamic_flag_spec_CXX='${wl}-E'
12107               ;;
12108           esac
12109         fi
12110         case $host_cpu in
12111           hppa*64*|ia64*)
12112             hardcode_direct_CXX=no
12113             hardcode_shlibpath_var_CXX=no
12114             ;;
12115           *)
12116             hardcode_direct_CXX=yes
12117             hardcode_direct_absolute_CXX=yes
12118             hardcode_minus_L_CXX=yes # Not in the search PATH,
12119                                                  # but as the default
12120                                                  # location of the library.
12121             ;;
12122         esac
12123
12124         case $cc_basename in
12125           CC*)
12126             # FIXME: insert proper C++ library support
12127             ld_shlibs_CXX=no
12128             ;;
12129           aCC*)
12130             case $host_cpu in
12131               hppa*64*)
12132                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12133                 ;;
12134               ia64*)
12135                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12136                 ;;
12137               *)
12138                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12139                 ;;
12140             esac
12141             # Commands to make compiler produce verbose output that lists
12142             # what "hidden" libraries, object files and flags are used when
12143             # linking a shared library.
12144             #
12145             # There doesn't appear to be a way to prevent this compiler from
12146             # explicitly linking system object files so we need to strip them
12147             # from the output so that they don't get included in the library
12148             # dependencies.
12149             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'
12150             ;;
12151           *)
12152             if test "$GXX" = yes; then
12153               if test $with_gnu_ld = no; then
12154                 case $host_cpu in
12155                   hppa*64*)
12156                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12157                     ;;
12158                   ia64*)
12159                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12160                     ;;
12161                   *)
12162                     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'
12163                     ;;
12164                 esac
12165               fi
12166             else
12167               # FIXME: insert proper C++ library support
12168               ld_shlibs_CXX=no
12169             fi
12170             ;;
12171         esac
12172         ;;
12173
12174       interix[3-9]*)
12175         hardcode_direct_CXX=no
12176         hardcode_shlibpath_var_CXX=no
12177         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12178         export_dynamic_flag_spec_CXX='${wl}-E'
12179         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12180         # Instead, shared libraries are loaded at an image base (0x10000000 by
12181         # default) and relocated if they conflict, which is a slow very memory
12182         # consuming and fragmenting process.  To avoid this, we pick a random,
12183         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12184         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12185         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'
12186         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'
12187         ;;
12188       irix5* | irix6*)
12189         case $cc_basename in
12190           CC*)
12191             # SGI C++
12192             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'
12193
12194             # Archives containing C++ object files must be created using
12195             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12196             # necessary to make sure instantiated templates are included
12197             # in the archive.
12198             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12199             ;;
12200           *)
12201             if test "$GXX" = yes; then
12202               if test "$with_gnu_ld" = no; then
12203                 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'
12204               else
12205                 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'
12206               fi
12207             fi
12208             link_all_deplibs_CXX=yes
12209             ;;
12210         esac
12211         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12212         hardcode_libdir_separator_CXX=:
12213         inherit_rpath_CXX=yes
12214         ;;
12215
12216       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12217         case $cc_basename in
12218           KCC*)
12219             # Kuck and Associates, Inc. (KAI) C++ Compiler
12220
12221             # KCC will only create a shared library if the output file
12222             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12223             # to its proper name (with version) after linking.
12224             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'
12225             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'
12226             # Commands to make compiler produce verbose output that lists
12227             # what "hidden" libraries, object files and flags are used when
12228             # linking a shared library.
12229             #
12230             # There doesn't appear to be a way to prevent this compiler from
12231             # explicitly linking system object files so we need to strip them
12232             # from the output so that they don't get included in the library
12233             # dependencies.
12234             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'
12235
12236             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12237             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12238
12239             # Archives containing C++ object files must be created using
12240             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12241             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12242             ;;
12243           icpc* | ecpc* )
12244             # Intel C++
12245             with_gnu_ld=yes
12246             # version 8.0 and above of icpc choke on multiply defined symbols
12247             # if we add $predep_objects and $postdep_objects, however 7.1 and
12248             # earlier do not add the objects themselves.
12249             case `$CC -V 2>&1` in
12250               *"Version 7."*)
12251                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12252                 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'
12253                 ;;
12254               *)  # Version 8.0 or newer
12255                 tmp_idyn=
12256                 case $host_cpu in
12257                   ia64*) tmp_idyn=' -i_dynamic';;
12258                 esac
12259                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12260                 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'
12261                 ;;
12262             esac
12263             archive_cmds_need_lc_CXX=no
12264             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12265             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12266             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12267             ;;
12268           pgCC* | pgcpp*)
12269             # Portland Group C++ compiler
12270             case `$CC -V` in
12271             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12272               prelink_cmds_CXX='tpldir=Template.dir~
12273                 rm -rf $tpldir~
12274                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12275                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12276               old_archive_cmds_CXX='tpldir=Template.dir~
12277                 rm -rf $tpldir~
12278                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12279                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12280                 $RANLIB $oldlib'
12281               archive_cmds_CXX='tpldir=Template.dir~
12282                 rm -rf $tpldir~
12283                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12284                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12285               archive_expsym_cmds_CXX='tpldir=Template.dir~
12286                 rm -rf $tpldir~
12287                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12288                 $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'
12289               ;;
12290             *) # Version 6 will use weak symbols
12291               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12292               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'
12293               ;;
12294             esac
12295
12296             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12297             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12298             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'
12299             ;;
12300           cxx*)
12301             # Compaq C++
12302             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12303             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'
12304
12305             runpath_var=LD_RUN_PATH
12306             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12307             hardcode_libdir_separator_CXX=:
12308
12309             # Commands to make compiler produce verbose output that lists
12310             # what "hidden" libraries, object files and flags are used when
12311             # linking a shared library.
12312             #
12313             # There doesn't appear to be a way to prevent this compiler from
12314             # explicitly linking system object files so we need to strip them
12315             # from the output so that they don't get included in the library
12316             # dependencies.
12317             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'
12318             ;;
12319           xl*)
12320             # IBM XL 8.0 on PPC, with GNU ld
12321             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12322             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12323             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12324             if test "x$supports_anon_versioning" = xyes; then
12325               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12326                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12327                 echo "local: *; };" >> $output_objdir/$libname.ver~
12328                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12329             fi
12330             ;;
12331           *)
12332             case `$CC -V 2>&1 | sed 5q` in
12333             *Sun\ C*)
12334               # Sun C++ 5.9
12335               no_undefined_flag_CXX=' -zdefs'
12336               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12337               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'
12338               hardcode_libdir_flag_spec_CXX='-R$libdir'
12339               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'
12340               compiler_needs_object_CXX=yes
12341
12342               # Not sure whether something based on
12343               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12344               # would be better.
12345               output_verbose_link_cmd='echo'
12346
12347               # Archives containing C++ object files must be created using
12348               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12349               # necessary to make sure instantiated templates are included
12350               # in the archive.
12351               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12352               ;;
12353             esac
12354             ;;
12355         esac
12356         ;;
12357
12358       lynxos*)
12359         # FIXME: insert proper C++ library support
12360         ld_shlibs_CXX=no
12361         ;;
12362
12363       m88k*)
12364         # FIXME: insert proper C++ library support
12365         ld_shlibs_CXX=no
12366         ;;
12367
12368       mvs*)
12369         case $cc_basename in
12370           cxx*)
12371             # FIXME: insert proper C++ library support
12372             ld_shlibs_CXX=no
12373             ;;
12374           *)
12375             # FIXME: insert proper C++ library support
12376             ld_shlibs_CXX=no
12377             ;;
12378         esac
12379         ;;
12380
12381       netbsd*)
12382         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12383           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12384           wlarc=
12385           hardcode_libdir_flag_spec_CXX='-R$libdir'
12386           hardcode_direct_CXX=yes
12387           hardcode_shlibpath_var_CXX=no
12388         fi
12389         # Workaround some broken pre-1.5 toolchains
12390         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12391         ;;
12392
12393       *nto* | *qnx*)
12394         ld_shlibs_CXX=yes
12395         ;;
12396
12397       openbsd2*)
12398         # C++ shared libraries are fairly broken
12399         ld_shlibs_CXX=no
12400         ;;
12401
12402       openbsd*)
12403         if test -f /usr/libexec/ld.so; then
12404           hardcode_direct_CXX=yes
12405           hardcode_shlibpath_var_CXX=no
12406           hardcode_direct_absolute_CXX=yes
12407           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12408           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12409           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12410             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12411             export_dynamic_flag_spec_CXX='${wl}-E'
12412             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12413           fi
12414           output_verbose_link_cmd=echo
12415         else
12416           ld_shlibs_CXX=no
12417         fi
12418         ;;
12419
12420       osf3* | osf4* | osf5*)
12421         case $cc_basename in
12422           KCC*)
12423             # Kuck and Associates, Inc. (KAI) C++ Compiler
12424
12425             # KCC will only create a shared library if the output file
12426             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12427             # to its proper name (with version) after linking.
12428             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'
12429
12430             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12431             hardcode_libdir_separator_CXX=:
12432
12433             # Archives containing C++ object files must be created using
12434             # the KAI C++ compiler.
12435             case $host in
12436               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12437               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12438             esac
12439             ;;
12440           RCC*)
12441             # Rational C++ 2.4.1
12442             # FIXME: insert proper C++ library support
12443             ld_shlibs_CXX=no
12444             ;;
12445           cxx*)
12446             case $host in
12447               osf3*)
12448                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12449                 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'
12450                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12451                 ;;
12452               *)
12453                 allow_undefined_flag_CXX=' -expect_unresolved \*'
12454                 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'
12455                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12456                   echo "-hidden">> $lib.exp~
12457                   $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~
12458                   $RM $lib.exp'
12459                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12460                 ;;
12461             esac
12462
12463             hardcode_libdir_separator_CXX=:
12464
12465             # Commands to make compiler produce verbose output that lists
12466             # what "hidden" libraries, object files and flags are used when
12467             # linking a shared library.
12468             #
12469             # There doesn't appear to be a way to prevent this compiler from
12470             # explicitly linking system object files so we need to strip them
12471             # from the output so that they don't get included in the library
12472             # dependencies.
12473             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'
12474             ;;
12475           *)
12476             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12477               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12478               case $host in
12479                 osf3*)
12480                   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'
12481                   ;;
12482                 *)
12483                   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'
12484                   ;;
12485               esac
12486
12487               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12488               hardcode_libdir_separator_CXX=:
12489
12490               # Commands to make compiler produce verbose output that lists
12491               # what "hidden" libraries, object files and flags are used when
12492               # linking a shared library.
12493               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12494
12495             else
12496               # FIXME: insert proper C++ library support
12497               ld_shlibs_CXX=no
12498             fi
12499             ;;
12500         esac
12501         ;;
12502
12503       psos*)
12504         # FIXME: insert proper C++ library support
12505         ld_shlibs_CXX=no
12506         ;;
12507
12508       sunos4*)
12509         case $cc_basename in
12510           CC*)
12511             # Sun C++ 4.x
12512             # FIXME: insert proper C++ library support
12513             ld_shlibs_CXX=no
12514             ;;
12515           lcc*)
12516             # Lucid
12517             # FIXME: insert proper C++ library support
12518             ld_shlibs_CXX=no
12519             ;;
12520           *)
12521             # FIXME: insert proper C++ library support
12522             ld_shlibs_CXX=no
12523             ;;
12524         esac
12525         ;;
12526
12527       solaris*)
12528         case $cc_basename in
12529           CC*)
12530             # Sun C++ 4.2, 5.x and Centerline C++
12531             archive_cmds_need_lc_CXX=yes
12532             no_undefined_flag_CXX=' -zdefs'
12533             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12534             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12535               $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'
12536
12537             hardcode_libdir_flag_spec_CXX='-R$libdir'
12538             hardcode_shlibpath_var_CXX=no
12539             case $host_os in
12540               solaris2.[0-5] | solaris2.[0-5].*) ;;
12541               *)
12542                 # The compiler driver will combine and reorder linker options,
12543                 # but understands `-z linker_flag'.
12544                 # Supported since Solaris 2.6 (maybe 2.5.1?)
12545                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12546                 ;;
12547             esac
12548             link_all_deplibs_CXX=yes
12549
12550             output_verbose_link_cmd='echo'
12551
12552             # Archives containing C++ object files must be created using
12553             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12554             # necessary to make sure instantiated templates are included
12555             # in the archive.
12556             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12557             ;;
12558           gcx*)
12559             # Green Hills C++ Compiler
12560             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12561
12562             # The C++ compiler must be used to create the archive.
12563             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12564             ;;
12565           *)
12566             # GNU C++ compiler with Solaris linker
12567             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12568               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12569               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12570                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12571                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12572                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12573
12574                 # Commands to make compiler produce verbose output that lists
12575                 # what "hidden" libraries, object files and flags are used when
12576                 # linking a shared library.
12577                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12578               else
12579                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12580                 # platform.
12581                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12582                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12583                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12584
12585                 # Commands to make compiler produce verbose output that lists
12586                 # what "hidden" libraries, object files and flags are used when
12587                 # linking a shared library.
12588                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12589               fi
12590
12591               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12592               case $host_os in
12593                 solaris2.[0-5] | solaris2.[0-5].*) ;;
12594                 *)
12595                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12596                   ;;
12597               esac
12598             fi
12599             ;;
12600         esac
12601         ;;
12602
12603     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12604       no_undefined_flag_CXX='${wl}-z,text'
12605       archive_cmds_need_lc_CXX=no
12606       hardcode_shlibpath_var_CXX=no
12607       runpath_var='LD_RUN_PATH'
12608
12609       case $cc_basename in
12610         CC*)
12611           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12612           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12613           ;;
12614         *)
12615           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12616           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12617           ;;
12618       esac
12619       ;;
12620
12621       sysv5* | sco3.2v5* | sco5v6*)
12622         # Note: We can NOT use -z defs as we might desire, because we do not
12623         # link with -lc, and that would cause any symbols used from libc to
12624         # always be unresolved, which means just about no library would
12625         # ever link correctly.  If we're not using GNU ld we use -z text
12626         # though, which does catch some bad symbols but isn't as heavy-handed
12627         # as -z defs.
12628         no_undefined_flag_CXX='${wl}-z,text'
12629         allow_undefined_flag_CXX='${wl}-z,nodefs'
12630         archive_cmds_need_lc_CXX=no
12631         hardcode_shlibpath_var_CXX=no
12632         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12633         hardcode_libdir_separator_CXX=':'
12634         link_all_deplibs_CXX=yes
12635         export_dynamic_flag_spec_CXX='${wl}-Bexport'
12636         runpath_var='LD_RUN_PATH'
12637
12638         case $cc_basename in
12639           CC*)
12640             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12641             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12642             ;;
12643           *)
12644             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12645             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12646             ;;
12647         esac
12648       ;;
12649
12650       tandem*)
12651         case $cc_basename in
12652           NCC*)
12653             # NonStop-UX NCC 3.20
12654             # FIXME: insert proper C++ library support
12655             ld_shlibs_CXX=no
12656             ;;
12657           *)
12658             # FIXME: insert proper C++ library support
12659             ld_shlibs_CXX=no
12660             ;;
12661         esac
12662         ;;
12663
12664       vxworks*)
12665         # FIXME: insert proper C++ library support
12666         ld_shlibs_CXX=no
12667         ;;
12668
12669       *)
12670         # FIXME: insert proper C++ library support
12671         ld_shlibs_CXX=no
12672         ;;
12673     esac
12674
12675     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12676 $as_echo "$ld_shlibs_CXX" >&6; }
12677     test "$ld_shlibs_CXX" = no && can_build_shared=no
12678
12679     GCC_CXX="$GXX"
12680     LD_CXX="$LD"
12681
12682     ## CAVEAT EMPTOR:
12683     ## There is no encapsulation within the following macros, do not change
12684     ## the running order or otherwise move them around unless you know exactly
12685     ## what you are doing...
12686     # Dependencies to place before and after the object being linked:
12687 predep_objects_CXX=
12688 postdep_objects_CXX=
12689 predeps_CXX=
12690 postdeps_CXX=
12691 compiler_lib_search_path_CXX=
12692
12693 cat > conftest.$ac_ext <<_LT_EOF
12694 class Foo
12695 {
12696 public:
12697   Foo (void) { a = 0; }
12698 private:
12699   int a;
12700 };
12701 _LT_EOF
12702
12703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12704   (eval $ac_compile) 2>&5
12705   ac_status=$?
12706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12707   test $ac_status = 0; }; then
12708   # Parse the compiler output and extract the necessary
12709   # objects, libraries and library flags.
12710
12711   # Sentinel used to keep track of whether or not we are before
12712   # the conftest object file.
12713   pre_test_object_deps_done=no
12714
12715   for p in `eval "$output_verbose_link_cmd"`; do
12716     case $p in
12717
12718     -L* | -R* | -l*)
12719        # Some compilers place space between "-{L,R}" and the path.
12720        # Remove the space.
12721        if test $p = "-L" ||
12722           test $p = "-R"; then
12723          prev=$p
12724          continue
12725        else
12726          prev=
12727        fi
12728
12729        if test "$pre_test_object_deps_done" = no; then
12730          case $p in
12731          -L* | -R*)
12732            # Internal compiler library paths should come after those
12733            # provided the user.  The postdeps already come after the
12734            # user supplied libs so there is no need to process them.
12735            if test -z "$compiler_lib_search_path_CXX"; then
12736              compiler_lib_search_path_CXX="${prev}${p}"
12737            else
12738              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12739            fi
12740            ;;
12741          # The "-l" case would never come before the object being
12742          # linked, so don't bother handling this case.
12743          esac
12744        else
12745          if test -z "$postdeps_CXX"; then
12746            postdeps_CXX="${prev}${p}"
12747          else
12748            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12749          fi
12750        fi
12751        ;;
12752
12753     *.$objext)
12754        # This assumes that the test object file only shows up
12755        # once in the compiler output.
12756        if test "$p" = "conftest.$objext"; then
12757          pre_test_object_deps_done=yes
12758          continue
12759        fi
12760
12761        if test "$pre_test_object_deps_done" = no; then
12762          if test -z "$predep_objects_CXX"; then
12763            predep_objects_CXX="$p"
12764          else
12765            predep_objects_CXX="$predep_objects_CXX $p"
12766          fi
12767        else
12768          if test -z "$postdep_objects_CXX"; then
12769            postdep_objects_CXX="$p"
12770          else
12771            postdep_objects_CXX="$postdep_objects_CXX $p"
12772          fi
12773        fi
12774        ;;
12775
12776     *) ;; # Ignore the rest.
12777
12778     esac
12779   done
12780
12781   # Clean up.
12782   rm -f a.out a.exe
12783 else
12784   echo "libtool.m4: error: problem compiling CXX test program"
12785 fi
12786
12787 $RM -f confest.$objext
12788
12789 # PORTME: override above test on systems where it is broken
12790 case $host_os in
12791 interix[3-9]*)
12792   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12793   # hack all around it, let's just trust "g++" to DTRT.
12794   predep_objects_CXX=
12795   postdep_objects_CXX=
12796   postdeps_CXX=
12797   ;;
12798
12799 linux*)
12800   case `$CC -V 2>&1 | sed 5q` in
12801   *Sun\ C*)
12802     # Sun C++ 5.9
12803
12804     # The more standards-conforming stlport4 library is
12805     # incompatible with the Cstd library. Avoid specifying
12806     # it if it's in CXXFLAGS. Ignore libCrun as
12807     # -library=stlport4 depends on it.
12808     case " $CXX $CXXFLAGS " in
12809     *" -library=stlport4 "*)
12810       solaris_use_stlport4=yes
12811       ;;
12812     esac
12813
12814     if test "$solaris_use_stlport4" != yes; then
12815       postdeps_CXX='-library=Cstd -library=Crun'
12816     fi
12817     ;;
12818   esac
12819   ;;
12820
12821 solaris*)
12822   case $cc_basename in
12823   CC*)
12824     # The more standards-conforming stlport4 library is
12825     # incompatible with the Cstd library. Avoid specifying
12826     # it if it's in CXXFLAGS. Ignore libCrun as
12827     # -library=stlport4 depends on it.
12828     case " $CXX $CXXFLAGS " in
12829     *" -library=stlport4 "*)
12830       solaris_use_stlport4=yes
12831       ;;
12832     esac
12833
12834     # Adding this requires a known-good setup of shared libraries for
12835     # Sun compiler versions before 5.6, else PIC objects from an old
12836     # archive will be linked into the output, leading to subtle bugs.
12837     if test "$solaris_use_stlport4" != yes; then
12838       postdeps_CXX='-library=Cstd -library=Crun'
12839     fi
12840     ;;
12841   esac
12842   ;;
12843 esac
12844
12845
12846 case " $postdeps_CXX " in
12847 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12848 esac
12849  compiler_lib_search_dirs_CXX=
12850 if test -n "${compiler_lib_search_path_CXX}"; then
12851  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12852 fi
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884     lt_prog_compiler_wl_CXX=
12885 lt_prog_compiler_pic_CXX=
12886 lt_prog_compiler_static_CXX=
12887
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12889 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12890
12891   # C++ specific cases for pic, static, wl, etc.
12892   if test "$GXX" = yes; then
12893     lt_prog_compiler_wl_CXX='-Wl,'
12894     lt_prog_compiler_static_CXX='-static'
12895
12896     case $host_os in
12897     aix*)
12898       # All AIX code is PIC.
12899       if test "$host_cpu" = ia64; then
12900         # AIX 5 now supports IA64 processor
12901         lt_prog_compiler_static_CXX='-Bstatic'
12902       fi
12903       ;;
12904
12905     amigaos*)
12906       case $host_cpu in
12907       powerpc)
12908             # see comment about AmigaOS4 .so support
12909             lt_prog_compiler_pic_CXX='-fPIC'
12910         ;;
12911       m68k)
12912             # FIXME: we need at least 68020 code to build shared libraries, but
12913             # adding the `-m68020' flag to GCC prevents building anything better,
12914             # like `-m68040'.
12915             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12916         ;;
12917       esac
12918       ;;
12919
12920     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12921       # PIC is the default for these OSes.
12922       ;;
12923     mingw* | cygwin* | os2* | pw32* | cegcc*)
12924       # This hack is so that the source file can tell whether it is being
12925       # built for inclusion in a dll (and should export symbols for example).
12926       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12927       # (--disable-auto-import) libraries
12928       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12929       ;;
12930     darwin* | rhapsody*)
12931       # PIC is the default on this platform
12932       # Common symbols not allowed in MH_DYLIB files
12933       lt_prog_compiler_pic_CXX='-fno-common'
12934       ;;
12935     *djgpp*)
12936       # DJGPP does not support shared libraries at all
12937       lt_prog_compiler_pic_CXX=
12938       ;;
12939     interix[3-9]*)
12940       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12941       # Instead, we relocate shared libraries at runtime.
12942       ;;
12943     sysv4*MP*)
12944       if test -d /usr/nec; then
12945         lt_prog_compiler_pic_CXX=-Kconform_pic
12946       fi
12947       ;;
12948     hpux*)
12949       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12950       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12951       # sets the default TLS model and affects inlining.
12952       case $host_cpu in
12953       hppa*64*)
12954         ;;
12955       *)
12956         lt_prog_compiler_pic_CXX='-fPIC'
12957         ;;
12958       esac
12959       ;;
12960     *qnx* | *nto*)
12961       # QNX uses GNU C++, but need to define -shared option too, otherwise
12962       # it will coredump.
12963       lt_prog_compiler_pic_CXX='-fPIC -shared'
12964       ;;
12965     *)
12966       lt_prog_compiler_pic_CXX='-fPIC'
12967       ;;
12968     esac
12969   else
12970     case $host_os in
12971       aix[4-9]*)
12972         # All AIX code is PIC.
12973         if test "$host_cpu" = ia64; then
12974           # AIX 5 now supports IA64 processor
12975           lt_prog_compiler_static_CXX='-Bstatic'
12976         else
12977           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12978         fi
12979         ;;
12980       chorus*)
12981         case $cc_basename in
12982         cxch68*)
12983           # Green Hills C++ Compiler
12984           # _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"
12985           ;;
12986         esac
12987         ;;
12988       dgux*)
12989         case $cc_basename in
12990           ec++*)
12991             lt_prog_compiler_pic_CXX='-KPIC'
12992             ;;
12993           ghcx*)
12994             # Green Hills C++ Compiler
12995             lt_prog_compiler_pic_CXX='-pic'
12996             ;;
12997           *)
12998             ;;
12999         esac
13000         ;;
13001       freebsd* | dragonfly*)
13002         # FreeBSD uses GNU C++
13003         ;;
13004       hpux9* | hpux10* | hpux11*)
13005         case $cc_basename in
13006           CC*)
13007             lt_prog_compiler_wl_CXX='-Wl,'
13008             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13009             if test "$host_cpu" != ia64; then
13010               lt_prog_compiler_pic_CXX='+Z'
13011             fi
13012             ;;
13013           aCC*)
13014             lt_prog_compiler_wl_CXX='-Wl,'
13015             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13016             case $host_cpu in
13017             hppa*64*|ia64*)
13018               # +Z the default
13019               ;;
13020             *)
13021               lt_prog_compiler_pic_CXX='+Z'
13022               ;;
13023             esac
13024             ;;
13025           *)
13026             ;;
13027         esac
13028         ;;
13029       interix*)
13030         # This is c89, which is MS Visual C++ (no shared libs)
13031         # Anyone wants to do a port?
13032         ;;
13033       irix5* | irix6* | nonstopux*)
13034         case $cc_basename in
13035           CC*)
13036             lt_prog_compiler_wl_CXX='-Wl,'
13037             lt_prog_compiler_static_CXX='-non_shared'
13038             # CC pic flag -KPIC is the default.
13039             ;;
13040           *)
13041             ;;
13042         esac
13043         ;;
13044       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13045         case $cc_basename in
13046           KCC*)
13047             # KAI C++ Compiler
13048             lt_prog_compiler_wl_CXX='--backend -Wl,'
13049             lt_prog_compiler_pic_CXX='-fPIC'
13050             ;;
13051           ecpc* )
13052             # old Intel C++ for x86_64 which still supported -KPIC.
13053             lt_prog_compiler_wl_CXX='-Wl,'
13054             lt_prog_compiler_pic_CXX='-KPIC'
13055             lt_prog_compiler_static_CXX='-static'
13056             ;;
13057           icpc* )
13058             # Intel C++, used to be incompatible with GCC.
13059             # ICC 10 doesn't accept -KPIC any more.
13060             lt_prog_compiler_wl_CXX='-Wl,'
13061             lt_prog_compiler_pic_CXX='-fPIC'
13062             lt_prog_compiler_static_CXX='-static'
13063             ;;
13064           pgCC* | pgcpp*)
13065             # Portland Group C++ compiler
13066             lt_prog_compiler_wl_CXX='-Wl,'
13067             lt_prog_compiler_pic_CXX='-fpic'
13068             lt_prog_compiler_static_CXX='-Bstatic'
13069             ;;
13070           cxx*)
13071             # Compaq C++
13072             # Make sure the PIC flag is empty.  It appears that all Alpha
13073             # Linux and Compaq Tru64 Unix objects are PIC.
13074             lt_prog_compiler_pic_CXX=
13075             lt_prog_compiler_static_CXX='-non_shared'
13076             ;;
13077           xlc* | xlC*)
13078             # IBM XL 8.0 on PPC
13079             lt_prog_compiler_wl_CXX='-Wl,'
13080             lt_prog_compiler_pic_CXX='-qpic'
13081             lt_prog_compiler_static_CXX='-qstaticlink'
13082             ;;
13083           *)
13084             case `$CC -V 2>&1 | sed 5q` in
13085             *Sun\ C*)
13086               # Sun C++ 5.9
13087               lt_prog_compiler_pic_CXX='-KPIC'
13088               lt_prog_compiler_static_CXX='-Bstatic'
13089               lt_prog_compiler_wl_CXX='-Qoption ld '
13090               ;;
13091             esac
13092             ;;
13093         esac
13094         ;;
13095       lynxos*)
13096         ;;
13097       m88k*)
13098         ;;
13099       mvs*)
13100         case $cc_basename in
13101           cxx*)
13102             lt_prog_compiler_pic_CXX='-W c,exportall'
13103             ;;
13104           *)
13105             ;;
13106         esac
13107         ;;
13108       netbsd* | netbsdelf*-gnu)
13109         ;;
13110       *qnx* | *nto*)
13111         # QNX uses GNU C++, but need to define -shared option too, otherwise
13112         # it will coredump.
13113         lt_prog_compiler_pic_CXX='-fPIC -shared'
13114         ;;
13115       osf3* | osf4* | osf5*)
13116         case $cc_basename in
13117           KCC*)
13118             lt_prog_compiler_wl_CXX='--backend -Wl,'
13119             ;;
13120           RCC*)
13121             # Rational C++ 2.4.1
13122             lt_prog_compiler_pic_CXX='-pic'
13123             ;;
13124           cxx*)
13125             # Digital/Compaq C++
13126             lt_prog_compiler_wl_CXX='-Wl,'
13127             # Make sure the PIC flag is empty.  It appears that all Alpha
13128             # Linux and Compaq Tru64 Unix objects are PIC.
13129             lt_prog_compiler_pic_CXX=
13130             lt_prog_compiler_static_CXX='-non_shared'
13131             ;;
13132           *)
13133             ;;
13134         esac
13135         ;;
13136       psos*)
13137         ;;
13138       solaris*)
13139         case $cc_basename in
13140           CC*)
13141             # Sun C++ 4.2, 5.x and Centerline C++
13142             lt_prog_compiler_pic_CXX='-KPIC'
13143             lt_prog_compiler_static_CXX='-Bstatic'
13144             lt_prog_compiler_wl_CXX='-Qoption ld '
13145             ;;
13146           gcx*)
13147             # Green Hills C++ Compiler
13148             lt_prog_compiler_pic_CXX='-PIC'
13149             ;;
13150           *)
13151             ;;
13152         esac
13153         ;;
13154       sunos4*)
13155         case $cc_basename in
13156           CC*)
13157             # Sun C++ 4.x
13158             lt_prog_compiler_pic_CXX='-pic'
13159             lt_prog_compiler_static_CXX='-Bstatic'
13160             ;;
13161           lcc*)
13162             # Lucid
13163             lt_prog_compiler_pic_CXX='-pic'
13164             ;;
13165           *)
13166             ;;
13167         esac
13168         ;;
13169       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13170         case $cc_basename in
13171           CC*)
13172             lt_prog_compiler_wl_CXX='-Wl,'
13173             lt_prog_compiler_pic_CXX='-KPIC'
13174             lt_prog_compiler_static_CXX='-Bstatic'
13175             ;;
13176         esac
13177         ;;
13178       tandem*)
13179         case $cc_basename in
13180           NCC*)
13181             # NonStop-UX NCC 3.20
13182             lt_prog_compiler_pic_CXX='-KPIC'
13183             ;;
13184           *)
13185             ;;
13186         esac
13187         ;;
13188       vxworks*)
13189         ;;
13190       *)
13191         lt_prog_compiler_can_build_shared_CXX=no
13192         ;;
13193     esac
13194   fi
13195
13196 case $host_os in
13197   # For platforms which do not support PIC, -DPIC is meaningless:
13198   *djgpp*)
13199     lt_prog_compiler_pic_CXX=
13200     ;;
13201   *)
13202     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13203     ;;
13204 esac
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13206 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13207
13208
13209
13210 #
13211 # Check to make sure the PIC flag actually works.
13212 #
13213 if test -n "$lt_prog_compiler_pic_CXX"; then
13214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13215 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13216 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13217   $as_echo_n "(cached) " >&6
13218 else
13219   lt_cv_prog_compiler_pic_works_CXX=no
13220    ac_outfile=conftest.$ac_objext
13221    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13222    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13223    # Insert the option either (1) after the last *FLAGS variable, or
13224    # (2) before a word containing "conftest.", or (3) at the end.
13225    # Note that $ac_compile itself does not contain backslashes and begins
13226    # with a dollar sign (not a hyphen), so the echo should work correctly.
13227    # The option is referenced via a variable to avoid confusing sed.
13228    lt_compile=`echo "$ac_compile" | $SED \
13229    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13230    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13231    -e 's:$: $lt_compiler_flag:'`
13232    (eval echo "\"\$as_me:13232: $lt_compile\"" >&5)
13233    (eval "$lt_compile" 2>conftest.err)
13234    ac_status=$?
13235    cat conftest.err >&5
13236    echo "$as_me:13236: \$? = $ac_status" >&5
13237    if (exit $ac_status) && test -s "$ac_outfile"; then
13238      # The compiler can only warn and ignore the option if not recognized
13239      # So say no if there are warnings other than the usual output.
13240      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13241      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13242      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13243        lt_cv_prog_compiler_pic_works_CXX=yes
13244      fi
13245    fi
13246    $RM conftest*
13247
13248 fi
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13250 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13251
13252 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13253     case $lt_prog_compiler_pic_CXX in
13254      "" | " "*) ;;
13255      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13256      esac
13257 else
13258     lt_prog_compiler_pic_CXX=
13259      lt_prog_compiler_can_build_shared_CXX=no
13260 fi
13261
13262 fi
13263
13264
13265
13266 #
13267 # Check to make sure the static flag actually works.
13268 #
13269 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13271 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13272 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13273   $as_echo_n "(cached) " >&6
13274 else
13275   lt_cv_prog_compiler_static_works_CXX=no
13276    save_LDFLAGS="$LDFLAGS"
13277    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13278    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13279    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13280      # The linker can only warn and ignore the option if not recognized
13281      # So say no if there are warnings
13282      if test -s conftest.err; then
13283        # Append any errors to the config.log.
13284        cat conftest.err 1>&5
13285        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13286        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13287        if diff conftest.exp conftest.er2 >/dev/null; then
13288          lt_cv_prog_compiler_static_works_CXX=yes
13289        fi
13290      else
13291        lt_cv_prog_compiler_static_works_CXX=yes
13292      fi
13293    fi
13294    $RM -r conftest*
13295    LDFLAGS="$save_LDFLAGS"
13296
13297 fi
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13299 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13300
13301 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13302     :
13303 else
13304     lt_prog_compiler_static_CXX=
13305 fi
13306
13307
13308
13309
13310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13311 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13312 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13313   $as_echo_n "(cached) " >&6
13314 else
13315   lt_cv_prog_compiler_c_o_CXX=no
13316    $RM -r conftest 2>/dev/null
13317    mkdir conftest
13318    cd conftest
13319    mkdir out
13320    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13321
13322    lt_compiler_flag="-o out/conftest2.$ac_objext"
13323    # Insert the option either (1) after the last *FLAGS variable, or
13324    # (2) before a word containing "conftest.", or (3) at the end.
13325    # Note that $ac_compile itself does not contain backslashes and begins
13326    # with a dollar sign (not a hyphen), so the echo should work correctly.
13327    lt_compile=`echo "$ac_compile" | $SED \
13328    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13329    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13330    -e 's:$: $lt_compiler_flag:'`
13331    (eval echo "\"\$as_me:13331: $lt_compile\"" >&5)
13332    (eval "$lt_compile" 2>out/conftest.err)
13333    ac_status=$?
13334    cat out/conftest.err >&5
13335    echo "$as_me:13335: \$? = $ac_status" >&5
13336    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13337    then
13338      # The compiler can only warn and ignore the option if not recognized
13339      # So say no if there are warnings
13340      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13341      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13342      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13343        lt_cv_prog_compiler_c_o_CXX=yes
13344      fi
13345    fi
13346    chmod u+w . 2>&5
13347    $RM conftest*
13348    # SGI C++ compiler will create directory out/ii_files/ for
13349    # template instantiation
13350    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13351    $RM out/* && rmdir out
13352    cd ..
13353    $RM -r conftest
13354    $RM conftest*
13355
13356 fi
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13358 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13359
13360
13361
13362     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13363 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13364 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13365   $as_echo_n "(cached) " >&6
13366 else
13367   lt_cv_prog_compiler_c_o_CXX=no
13368    $RM -r conftest 2>/dev/null
13369    mkdir conftest
13370    cd conftest
13371    mkdir out
13372    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13373
13374    lt_compiler_flag="-o out/conftest2.$ac_objext"
13375    # Insert the option either (1) after the last *FLAGS variable, or
13376    # (2) before a word containing "conftest.", or (3) at the end.
13377    # Note that $ac_compile itself does not contain backslashes and begins
13378    # with a dollar sign (not a hyphen), so the echo should work correctly.
13379    lt_compile=`echo "$ac_compile" | $SED \
13380    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13381    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13382    -e 's:$: $lt_compiler_flag:'`
13383    (eval echo "\"\$as_me:13383: $lt_compile\"" >&5)
13384    (eval "$lt_compile" 2>out/conftest.err)
13385    ac_status=$?
13386    cat out/conftest.err >&5
13387    echo "$as_me:13387: \$? = $ac_status" >&5
13388    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13389    then
13390      # The compiler can only warn and ignore the option if not recognized
13391      # So say no if there are warnings
13392      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13393      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13394      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13395        lt_cv_prog_compiler_c_o_CXX=yes
13396      fi
13397    fi
13398    chmod u+w . 2>&5
13399    $RM conftest*
13400    # SGI C++ compiler will create directory out/ii_files/ for
13401    # template instantiation
13402    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13403    $RM out/* && rmdir out
13404    cd ..
13405    $RM -r conftest
13406    $RM conftest*
13407
13408 fi
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13410 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13411
13412
13413
13414
13415 hard_links="nottested"
13416 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13417   # do not overwrite the value of need_locks provided by the user
13418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13419 $as_echo_n "checking if we can lock with hard links... " >&6; }
13420   hard_links=yes
13421   $RM conftest*
13422   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13423   touch conftest.a
13424   ln conftest.a conftest.b 2>&5 || hard_links=no
13425   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13427 $as_echo "$hard_links" >&6; }
13428   if test "$hard_links" = no; then
13429     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13430 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13431     need_locks=warn
13432   fi
13433 else
13434   need_locks=no
13435 fi
13436
13437
13438
13439     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13440 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13441
13442   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13443   case $host_os in
13444   aix[4-9]*)
13445     # If we're using GNU nm, then we don't want the "-C" option.
13446     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13447     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13448       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'
13449     else
13450       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'
13451     fi
13452     ;;
13453   pw32*)
13454     export_symbols_cmds_CXX="$ltdll_cmds"
13455   ;;
13456   cygwin* | mingw* | cegcc*)
13457     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'
13458   ;;
13459   linux* | k*bsd*-gnu)
13460     link_all_deplibs_CXX=no
13461   ;;
13462   *)
13463     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13464   ;;
13465   esac
13466   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13467
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13469 $as_echo "$ld_shlibs_CXX" >&6; }
13470 test "$ld_shlibs_CXX" = no && can_build_shared=no
13471
13472 with_gnu_ld_CXX=$with_gnu_ld
13473
13474
13475
13476
13477
13478
13479 #
13480 # Do we need to explicitly link libc?
13481 #
13482 case "x$archive_cmds_need_lc_CXX" in
13483 x|xyes)
13484   # Assume -lc should be added
13485   archive_cmds_need_lc_CXX=yes
13486
13487   if test "$enable_shared" = yes && test "$GCC" = yes; then
13488     case $archive_cmds_CXX in
13489     *'~'*)
13490       # FIXME: we may have to deal with multi-command sequences.
13491       ;;
13492     '$CC '*)
13493       # Test whether the compiler implicitly links with -lc since on some
13494       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13495       # to ld, don't add -lc before -lgcc.
13496       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13497 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13498       $RM conftest*
13499       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13500
13501       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13502   (eval $ac_compile) 2>&5
13503   ac_status=$?
13504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13505   test $ac_status = 0; } 2>conftest.err; then
13506         soname=conftest
13507         lib=conftest
13508         libobjs=conftest.$ac_objext
13509         deplibs=
13510         wl=$lt_prog_compiler_wl_CXX
13511         pic_flag=$lt_prog_compiler_pic_CXX
13512         compiler_flags=-v
13513         linker_flags=-v
13514         verstring=
13515         output_objdir=.
13516         libname=conftest
13517         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13518         allow_undefined_flag_CXX=
13519         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13520   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13521   ac_status=$?
13522   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13523   test $ac_status = 0; }
13524         then
13525           archive_cmds_need_lc_CXX=no
13526         else
13527           archive_cmds_need_lc_CXX=yes
13528         fi
13529         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13530       else
13531         cat conftest.err 1>&5
13532       fi
13533       $RM conftest*
13534       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13535 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13536       ;;
13537     esac
13538   fi
13539   ;;
13540 esac
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13606 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13607
13608 library_names_spec=
13609 libname_spec='lib$name'
13610 soname_spec=
13611 shrext_cmds=".so"
13612 postinstall_cmds=
13613 postuninstall_cmds=
13614 finish_cmds=
13615 finish_eval=
13616 shlibpath_var=
13617 shlibpath_overrides_runpath=unknown
13618 version_type=none
13619 dynamic_linker="$host_os ld.so"
13620 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13621 need_lib_prefix=unknown
13622 hardcode_into_libs=no
13623
13624 # when you set need_version to no, make sure it does not cause -set_version
13625 # flags to be left without arguments
13626 need_version=unknown
13627
13628 case $host_os in
13629 aix3*)
13630   version_type=linux
13631   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13632   shlibpath_var=LIBPATH
13633
13634   # AIX 3 has no versioning support, so we append a major version to the name.
13635   soname_spec='${libname}${release}${shared_ext}$major'
13636   ;;
13637
13638 aix[4-9]*)
13639   version_type=linux
13640   need_lib_prefix=no
13641   need_version=no
13642   hardcode_into_libs=yes
13643   if test "$host_cpu" = ia64; then
13644     # AIX 5 supports IA64
13645     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13646     shlibpath_var=LD_LIBRARY_PATH
13647   else
13648     # With GCC up to 2.95.x, collect2 would create an import file
13649     # for dependence libraries.  The import file would start with
13650     # the line `#! .'.  This would cause the generated library to
13651     # depend on `.', always an invalid library.  This was fixed in
13652     # development snapshots of GCC prior to 3.0.
13653     case $host_os in
13654       aix4 | aix4.[01] | aix4.[01].*)
13655       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13656            echo ' yes '
13657            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13658         :
13659       else
13660         can_build_shared=no
13661       fi
13662       ;;
13663     esac
13664     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13665     # soname into executable. Probably we can add versioning support to
13666     # collect2, so additional links can be useful in future.
13667     if test "$aix_use_runtimelinking" = yes; then
13668       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13669       # instead of lib<name>.a to let people know that these are not
13670       # typical AIX shared libraries.
13671       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13672     else
13673       # We preserve .a as extension for shared libraries through AIX4.2
13674       # and later when we are not doing run time linking.
13675       library_names_spec='${libname}${release}.a $libname.a'
13676       soname_spec='${libname}${release}${shared_ext}$major'
13677     fi
13678     shlibpath_var=LIBPATH
13679   fi
13680   ;;
13681
13682 amigaos*)
13683   case $host_cpu in
13684   powerpc)
13685     # Since July 2007 AmigaOS4 officially supports .so libraries.
13686     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13687     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13688     ;;
13689   m68k)
13690     library_names_spec='$libname.ixlibrary $libname.a'
13691     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13692     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'
13693     ;;
13694   esac
13695   ;;
13696
13697 beos*)
13698   library_names_spec='${libname}${shared_ext}'
13699   dynamic_linker="$host_os ld.so"
13700   shlibpath_var=LIBRARY_PATH
13701   ;;
13702
13703 bsdi[45]*)
13704   version_type=linux
13705   need_version=no
13706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13707   soname_spec='${libname}${release}${shared_ext}$major'
13708   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13709   shlibpath_var=LD_LIBRARY_PATH
13710   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13711   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13712   # the default ld.so.conf also contains /usr/contrib/lib and
13713   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13714   # libtool to hard-code these into programs
13715   ;;
13716
13717 cygwin* | mingw* | pw32* | cegcc*)
13718   version_type=windows
13719   shrext_cmds=".dll"
13720   need_version=no
13721   need_lib_prefix=no
13722
13723   case $GCC,$host_os in
13724   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13725     library_names_spec='$libname.dll.a'
13726     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13727     postinstall_cmds='base_file=`basename \${file}`~
13728       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13729       dldir=$destdir/`dirname \$dlpath`~
13730       test -d \$dldir || mkdir -p \$dldir~
13731       $install_prog $dir/$dlname \$dldir/$dlname~
13732       chmod a+x \$dldir/$dlname~
13733       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13734         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13735       fi'
13736     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13737       dlpath=$dir/\$dldll~
13738        $RM \$dlpath'
13739     shlibpath_overrides_runpath=yes
13740
13741     case $host_os in
13742     cygwin*)
13743       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13744       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13745       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13746       ;;
13747     mingw* | cegcc*)
13748       # MinGW DLLs use traditional 'lib' prefix
13749       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13750       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13751       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13752         # It is most probably a Windows format PATH printed by
13753         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13754         # path with ; separators, and with drive letters. We can handle the
13755         # drive letters (cygwin fileutils understands them), so leave them,
13756         # especially as we might pass files found there to a mingw objdump,
13757         # which wouldn't understand a cygwinified path. Ahh.
13758         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13759       else
13760         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13761       fi
13762       ;;
13763     pw32*)
13764       # pw32 DLLs use 'pw' prefix rather than 'lib'
13765       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13766       ;;
13767     esac
13768     ;;
13769
13770   *)
13771     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13772     ;;
13773   esac
13774   dynamic_linker='Win32 ld.exe'
13775   # FIXME: first we should search . and the directory the executable is in
13776   shlibpath_var=PATH
13777   ;;
13778
13779 darwin* | rhapsody*)
13780   dynamic_linker="$host_os dyld"
13781   version_type=darwin
13782   need_lib_prefix=no
13783   need_version=no
13784   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13785   soname_spec='${libname}${release}${major}$shared_ext'
13786   shlibpath_overrides_runpath=yes
13787   shlibpath_var=DYLD_LIBRARY_PATH
13788   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13789
13790   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13791   ;;
13792
13793 dgux*)
13794   version_type=linux
13795   need_lib_prefix=no
13796   need_version=no
13797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13798   soname_spec='${libname}${release}${shared_ext}$major'
13799   shlibpath_var=LD_LIBRARY_PATH
13800   ;;
13801
13802 freebsd1*)
13803   dynamic_linker=no
13804   ;;
13805
13806 freebsd* | dragonfly*)
13807   # DragonFly does not have aout.  When/if they implement a new
13808   # versioning mechanism, adjust this.
13809   if test -x /usr/bin/objformat; then
13810     objformat=`/usr/bin/objformat`
13811   else
13812     case $host_os in
13813     freebsd[123]*) objformat=aout ;;
13814     *) objformat=elf ;;
13815     esac
13816   fi
13817   version_type=freebsd-$objformat
13818   case $version_type in
13819     freebsd-elf*)
13820       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13821       need_version=no
13822       need_lib_prefix=no
13823       ;;
13824     freebsd-*)
13825       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13826       need_version=yes
13827       ;;
13828   esac
13829   shlibpath_var=LD_LIBRARY_PATH
13830   case $host_os in
13831   freebsd2*)
13832     shlibpath_overrides_runpath=yes
13833     ;;
13834   freebsd3.[01]* | freebsdelf3.[01]*)
13835     shlibpath_overrides_runpath=yes
13836     hardcode_into_libs=yes
13837     ;;
13838   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13839   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13840     shlibpath_overrides_runpath=no
13841     hardcode_into_libs=yes
13842     ;;
13843   *) # from 4.6 on, and DragonFly
13844     shlibpath_overrides_runpath=yes
13845     hardcode_into_libs=yes
13846     ;;
13847   esac
13848   ;;
13849
13850 gnu*)
13851   version_type=linux
13852   need_lib_prefix=no
13853   need_version=no
13854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13855   soname_spec='${libname}${release}${shared_ext}$major'
13856   shlibpath_var=LD_LIBRARY_PATH
13857   hardcode_into_libs=yes
13858   ;;
13859
13860 hpux9* | hpux10* | hpux11*)
13861   # Give a soname corresponding to the major version so that dld.sl refuses to
13862   # link against other versions.
13863   version_type=sunos
13864   need_lib_prefix=no
13865   need_version=no
13866   case $host_cpu in
13867   ia64*)
13868     shrext_cmds='.so'
13869     hardcode_into_libs=yes
13870     dynamic_linker="$host_os dld.so"
13871     shlibpath_var=LD_LIBRARY_PATH
13872     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13873     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13874     soname_spec='${libname}${release}${shared_ext}$major'
13875     if test "X$HPUX_IA64_MODE" = X32; then
13876       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13877     else
13878       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13879     fi
13880     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13881     ;;
13882   hppa*64*)
13883     shrext_cmds='.sl'
13884     hardcode_into_libs=yes
13885     dynamic_linker="$host_os dld.sl"
13886     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13887     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13888     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13889     soname_spec='${libname}${release}${shared_ext}$major'
13890     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13891     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13892     ;;
13893   *)
13894     shrext_cmds='.sl'
13895     dynamic_linker="$host_os dld.sl"
13896     shlibpath_var=SHLIB_PATH
13897     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13898     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13899     soname_spec='${libname}${release}${shared_ext}$major'
13900     ;;
13901   esac
13902   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13903   postinstall_cmds='chmod 555 $lib'
13904   ;;
13905
13906 interix[3-9]*)
13907   version_type=linux
13908   need_lib_prefix=no
13909   need_version=no
13910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13911   soname_spec='${libname}${release}${shared_ext}$major'
13912   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13913   shlibpath_var=LD_LIBRARY_PATH
13914   shlibpath_overrides_runpath=no
13915   hardcode_into_libs=yes
13916   ;;
13917
13918 irix5* | irix6* | nonstopux*)
13919   case $host_os in
13920     nonstopux*) version_type=nonstopux ;;
13921     *)
13922         if test "$lt_cv_prog_gnu_ld" = yes; then
13923                 version_type=linux
13924         else
13925                 version_type=irix
13926         fi ;;
13927   esac
13928   need_lib_prefix=no
13929   need_version=no
13930   soname_spec='${libname}${release}${shared_ext}$major'
13931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13932   case $host_os in
13933   irix5* | nonstopux*)
13934     libsuff= shlibsuff=
13935     ;;
13936   *)
13937     case $LD in # libtool.m4 will add one of these switches to LD
13938     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13939       libsuff= shlibsuff= libmagic=32-bit;;
13940     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13941       libsuff=32 shlibsuff=N32 libmagic=N32;;
13942     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13943       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13944     *) libsuff= shlibsuff= libmagic=never-match;;
13945     esac
13946     ;;
13947   esac
13948   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13949   shlibpath_overrides_runpath=no
13950   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13951   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13952   hardcode_into_libs=yes
13953   ;;
13954
13955 # No shared lib support for Linux oldld, aout, or coff.
13956 linux*oldld* | linux*aout* | linux*coff*)
13957   dynamic_linker=no
13958   ;;
13959
13960 # This must be Linux ELF.
13961 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13962   version_type=linux
13963   need_lib_prefix=no
13964   need_version=no
13965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13966   soname_spec='${libname}${release}${shared_ext}$major'
13967   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13968   shlibpath_var=LD_LIBRARY_PATH
13969   shlibpath_overrides_runpath=no
13970   # Some binutils ld are patched to set DT_RUNPATH
13971   save_LDFLAGS=$LDFLAGS
13972   save_libdir=$libdir
13973   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13974        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13976 /* end confdefs.h.  */
13977
13978 int
13979 main ()
13980 {
13981
13982   ;
13983   return 0;
13984 }
13985 _ACEOF
13986 if ac_fn_cxx_try_link "$LINENO"; then :
13987   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13988   shlibpath_overrides_runpath=yes
13989 fi
13990 fi
13991 rm -f core conftest.err conftest.$ac_objext \
13992     conftest$ac_exeext conftest.$ac_ext
13993   LDFLAGS=$save_LDFLAGS
13994   libdir=$save_libdir
13995
13996   # This implies no fast_install, which is unacceptable.
13997   # Some rework will be needed to allow for fast_install
13998   # before this can be enabled.
13999   hardcode_into_libs=yes
14000
14001   # Append ld.so.conf contents to the search path
14002   if test -f /etc/ld.so.conf; then
14003     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' ' '`
14004     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14005   fi
14006
14007   # We used to test for /lib/ld.so.1 and disable shared libraries on
14008   # powerpc, because MkLinux only supported shared libraries with the
14009   # GNU dynamic linker.  Since this was broken with cross compilers,
14010   # most powerpc-linux boxes support dynamic linking these days and
14011   # people can always --disable-shared, the test was removed, and we
14012   # assume the GNU/Linux dynamic linker is in use.
14013   dynamic_linker='GNU/Linux ld.so'
14014   ;;
14015
14016 netbsdelf*-gnu)
14017   version_type=linux
14018   need_lib_prefix=no
14019   need_version=no
14020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14021   soname_spec='${libname}${release}${shared_ext}$major'
14022   shlibpath_var=LD_LIBRARY_PATH
14023   shlibpath_overrides_runpath=no
14024   hardcode_into_libs=yes
14025   dynamic_linker='NetBSD ld.elf_so'
14026   ;;
14027
14028 netbsd*)
14029   version_type=sunos
14030   need_lib_prefix=no
14031   need_version=no
14032   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14033     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14034     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14035     dynamic_linker='NetBSD (a.out) ld.so'
14036   else
14037     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14038     soname_spec='${libname}${release}${shared_ext}$major'
14039     dynamic_linker='NetBSD ld.elf_so'
14040   fi
14041   shlibpath_var=LD_LIBRARY_PATH
14042   shlibpath_overrides_runpath=yes
14043   hardcode_into_libs=yes
14044   ;;
14045
14046 newsos6)
14047   version_type=linux
14048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14049   shlibpath_var=LD_LIBRARY_PATH
14050   shlibpath_overrides_runpath=yes
14051   ;;
14052
14053 *nto* | *qnx*)
14054   version_type=qnx
14055   need_lib_prefix=no
14056   need_version=no
14057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14058   soname_spec='${libname}${release}${shared_ext}$major'
14059   shlibpath_var=LD_LIBRARY_PATH
14060   shlibpath_overrides_runpath=no
14061   hardcode_into_libs=yes
14062   dynamic_linker='ldqnx.so'
14063   ;;
14064
14065 openbsd*)
14066   version_type=sunos
14067   sys_lib_dlsearch_path_spec="/usr/lib"
14068   need_lib_prefix=no
14069   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14070   case $host_os in
14071     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14072     *)                          need_version=no  ;;
14073   esac
14074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14075   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14076   shlibpath_var=LD_LIBRARY_PATH
14077   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14078     case $host_os in
14079       openbsd2.[89] | openbsd2.[89].*)
14080         shlibpath_overrides_runpath=no
14081         ;;
14082       *)
14083         shlibpath_overrides_runpath=yes
14084         ;;
14085       esac
14086   else
14087     shlibpath_overrides_runpath=yes
14088   fi
14089   ;;
14090
14091 os2*)
14092   libname_spec='$name'
14093   shrext_cmds=".dll"
14094   need_lib_prefix=no
14095   library_names_spec='$libname${shared_ext} $libname.a'
14096   dynamic_linker='OS/2 ld.exe'
14097   shlibpath_var=LIBPATH
14098   ;;
14099
14100 osf3* | osf4* | osf5*)
14101   version_type=osf
14102   need_lib_prefix=no
14103   need_version=no
14104   soname_spec='${libname}${release}${shared_ext}$major'
14105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14106   shlibpath_var=LD_LIBRARY_PATH
14107   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14108   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14109   ;;
14110
14111 rdos*)
14112   dynamic_linker=no
14113   ;;
14114
14115 solaris*)
14116   version_type=linux
14117   need_lib_prefix=no
14118   need_version=no
14119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14120   soname_spec='${libname}${release}${shared_ext}$major'
14121   shlibpath_var=LD_LIBRARY_PATH
14122   shlibpath_overrides_runpath=yes
14123   hardcode_into_libs=yes
14124   # ldd complains unless libraries are executable
14125   postinstall_cmds='chmod +x $lib'
14126   ;;
14127
14128 sunos4*)
14129   version_type=sunos
14130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14131   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14132   shlibpath_var=LD_LIBRARY_PATH
14133   shlibpath_overrides_runpath=yes
14134   if test "$with_gnu_ld" = yes; then
14135     need_lib_prefix=no
14136   fi
14137   need_version=yes
14138   ;;
14139
14140 sysv4 | sysv4.3*)
14141   version_type=linux
14142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14143   soname_spec='${libname}${release}${shared_ext}$major'
14144   shlibpath_var=LD_LIBRARY_PATH
14145   case $host_vendor in
14146     sni)
14147       shlibpath_overrides_runpath=no
14148       need_lib_prefix=no
14149       runpath_var=LD_RUN_PATH
14150       ;;
14151     siemens)
14152       need_lib_prefix=no
14153       ;;
14154     motorola)
14155       need_lib_prefix=no
14156       need_version=no
14157       shlibpath_overrides_runpath=no
14158       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14159       ;;
14160   esac
14161   ;;
14162
14163 sysv4*MP*)
14164   if test -d /usr/nec ;then
14165     version_type=linux
14166     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14167     soname_spec='$libname${shared_ext}.$major'
14168     shlibpath_var=LD_LIBRARY_PATH
14169   fi
14170   ;;
14171
14172 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14173   version_type=freebsd-elf
14174   need_lib_prefix=no
14175   need_version=no
14176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14177   soname_spec='${libname}${release}${shared_ext}$major'
14178   shlibpath_var=LD_LIBRARY_PATH
14179   shlibpath_overrides_runpath=yes
14180   hardcode_into_libs=yes
14181   if test "$with_gnu_ld" = yes; then
14182     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14183   else
14184     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14185     case $host_os in
14186       sco3.2v5*)
14187         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14188         ;;
14189     esac
14190   fi
14191   sys_lib_dlsearch_path_spec='/usr/lib'
14192   ;;
14193
14194 tpf*)
14195   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14196   version_type=linux
14197   need_lib_prefix=no
14198   need_version=no
14199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14200   shlibpath_var=LD_LIBRARY_PATH
14201   shlibpath_overrides_runpath=no
14202   hardcode_into_libs=yes
14203   ;;
14204
14205 uts4*)
14206   version_type=linux
14207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14208   soname_spec='${libname}${release}${shared_ext}$major'
14209   shlibpath_var=LD_LIBRARY_PATH
14210   ;;
14211
14212 *)
14213   dynamic_linker=no
14214   ;;
14215 esac
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14217 $as_echo "$dynamic_linker" >&6; }
14218 test "$dynamic_linker" = no && can_build_shared=no
14219
14220 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14221 if test "$GCC" = yes; then
14222   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14223 fi
14224
14225 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14226   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14227 fi
14228 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14229   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14230 fi
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14268 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14269 hardcode_action_CXX=
14270 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14271    test -n "$runpath_var_CXX" ||
14272    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14273
14274   # We can hardcode non-existent directories.
14275   if test "$hardcode_direct_CXX" != no &&
14276      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14277      # have to relink, otherwise we might link with an installed library
14278      # when we should be linking with a yet-to-be-installed one
14279      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14280      test "$hardcode_minus_L_CXX" != no; then
14281     # Linking always hardcodes the temporary library directory.
14282     hardcode_action_CXX=relink
14283   else
14284     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14285     hardcode_action_CXX=immediate
14286   fi
14287 else
14288   # We cannot hardcode anything, or else we can only hardcode existing
14289   # directories.
14290   hardcode_action_CXX=unsupported
14291 fi
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14293 $as_echo "$hardcode_action_CXX" >&6; }
14294
14295 if test "$hardcode_action_CXX" = relink ||
14296    test "$inherit_rpath_CXX" = yes; then
14297   # Fast installation is not supported
14298   enable_fast_install=no
14299 elif test "$shlibpath_overrides_runpath" = yes ||
14300      test "$enable_shared" = no; then
14301   # Fast installation is not necessary
14302   enable_fast_install=needless
14303 fi
14304
14305
14306
14307
14308
14309
14310
14311   fi # test -n "$compiler"
14312
14313   CC=$lt_save_CC
14314   LDCXX=$LD
14315   LD=$lt_save_LD
14316   GCC=$lt_save_GCC
14317   with_gnu_ld=$lt_save_with_gnu_ld
14318   lt_cv_path_LDCXX=$lt_cv_path_LD
14319   lt_cv_path_LD=$lt_save_path_LD
14320   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14321   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14322 fi # test "$_lt_caught_CXX_error" != yes
14323
14324 ac_ext=c
14325 ac_cpp='$CPP $CPPFLAGS'
14326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342         ac_config_commands="$ac_config_commands libtool"
14343
14344
14345
14346
14347 # Only expand once:
14348
14349
14350 for ac_prog in mig
14351 do
14352   # Extract the first word of "$ac_prog", so it can be a program name with args.
14353 set dummy $ac_prog; ac_word=$2
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14355 $as_echo_n "checking for $ac_word... " >&6; }
14356 if test "${ac_cv_path_MIG+set}" = set; then :
14357   $as_echo_n "(cached) " >&6
14358 else
14359   case $MIG in
14360   [\\/]* | ?:[\\/]*)
14361   ac_cv_path_MIG="$MIG" # Let the user override the test with a path.
14362   ;;
14363   *)
14364   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14365 for as_dir in $PATH
14366 do
14367   IFS=$as_save_IFS
14368   test -z "$as_dir" && as_dir=.
14369     for ac_exec_ext in '' $ac_executable_extensions; do
14370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14371     ac_cv_path_MIG="$as_dir/$ac_word$ac_exec_ext"
14372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14373     break 2
14374   fi
14375 done
14376   done
14377 IFS=$as_save_IFS
14378
14379   ;;
14380 esac
14381 fi
14382 MIG=$ac_cv_path_MIG
14383 if test -n "$MIG"; then
14384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
14385 $as_echo "$MIG" >&6; }
14386 else
14387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14388 $as_echo "no" >&6; }
14389 fi
14390
14391
14392   test -n "$MIG" && break
14393 done
14394
14395
14396 # Extract the first word of "leaks", so it can be a program name with args.
14397 set dummy leaks; ac_word=$2
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14399 $as_echo_n "checking for $ac_word... " >&6; }
14400 if test "${ac_cv_path_LEAKS+set}" = set; then :
14401   $as_echo_n "(cached) " >&6
14402 else
14403   case $LEAKS in
14404   [\\/]* | ?:[\\/]*)
14405   ac_cv_path_LEAKS="$LEAKS" # Let the user override the test with a path.
14406   ;;
14407   *)
14408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14409 for as_dir in $PATH
14410 do
14411   IFS=$as_save_IFS
14412   test -z "$as_dir" && as_dir=.
14413     for ac_exec_ext in '' $ac_executable_extensions; do
14414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14415     ac_cv_path_LEAKS="$as_dir/$ac_word$ac_exec_ext"
14416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14417     break 2
14418   fi
14419 done
14420   done
14421 IFS=$as_save_IFS
14422
14423   ;;
14424 esac
14425 fi
14426 LEAKS=$ac_cv_path_LEAKS
14427 if test -n "$LEAKS"; then
14428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEAKS" >&5
14429 $as_echo "$LEAKS" >&6; }
14430 else
14431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14432 $as_echo "no" >&6; }
14433 fi
14434
14435
14436 if test "x$LEAKS" != "x"; then :
14437
14438 $as_echo "#define HAVE_LEAKS 1" >>confdefs.h
14439
14440
14441 fi
14442
14443 am__api_version='1.11'
14444
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
14446 $as_echo_n "checking whether build environment is sane... " >&6; }
14447 # Just in case
14448 sleep 1
14449 echo timestamp > conftest.file
14450 # Reject unsafe characters in $srcdir or the absolute working directory
14451 # name.  Accept space and tab only in the latter.
14452 am_lf='
14453 '
14454 case `pwd` in
14455   *[\\\"\#\$\&\'\`$am_lf]*)
14456     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
14457 esac
14458 case $srcdir in
14459   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
14460     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
14461 esac
14462
14463 # Do `set' in a subshell so we don't clobber the current shell's
14464 # arguments.  Must try -L first in case configure is actually a
14465 # symlink; some systems play weird games with the mod time of symlinks
14466 # (eg FreeBSD returns the mod time of the symlink's containing
14467 # directory).
14468 if (
14469    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
14470    if test "$*" = "X"; then
14471       # -L didn't work.
14472       set X `ls -t "$srcdir/configure" conftest.file`
14473    fi
14474    rm -f conftest.file
14475    if test "$*" != "X $srcdir/configure conftest.file" \
14476       && test "$*" != "X conftest.file $srcdir/configure"; then
14477
14478       # If neither matched, then we have a broken ls.  This can happen
14479       # if, for instance, CONFIG_SHELL is bash and it inherits a
14480       # broken ls alias from the environment.  This has actually
14481       # happened.  Such a system could not be considered "sane".
14482       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
14483 alias in your environment" "$LINENO" 5
14484    fi
14485
14486    test "$2" = conftest.file
14487    )
14488 then
14489    # Ok.
14490    :
14491 else
14492    as_fn_error "newly created file is older than distributed files!
14493 Check your system clock" "$LINENO" 5
14494 fi
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14496 $as_echo "yes" >&6; }
14497 test "$program_prefix" != NONE &&
14498   program_transform_name="s&^&$program_prefix&;$program_transform_name"
14499 # Use a double $ so make ignores it.
14500 test "$program_suffix" != NONE &&
14501   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
14502 # Double any \ or $.
14503 # By default was `s,x,x', remove it if useless.
14504 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
14505 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
14506
14507 # expand $ac_aux_dir to an absolute path
14508 am_aux_dir=`cd $ac_aux_dir && pwd`
14509
14510 if test x"${MISSING+set}" != xset; then
14511   case $am_aux_dir in
14512   *\ * | *\     *)
14513     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
14514   *)
14515     MISSING="\${SHELL} $am_aux_dir/missing" ;;
14516   esac
14517 fi
14518 # Use eval to expand $SHELL
14519 if eval "$MISSING --run true"; then
14520   am_missing_run="$MISSING --run "
14521 else
14522   am_missing_run=
14523   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
14524 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
14525 fi
14526
14527 if test x"${install_sh}" != xset; then
14528   case $am_aux_dir in
14529   *\ * | *\     *)
14530     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
14531   *)
14532     install_sh="\${SHELL} $am_aux_dir/install-sh"
14533   esac
14534 fi
14535
14536 # Installed binaries are usually stripped using `strip' when the user
14537 # run `make install-strip'.  However `strip' might not be the right
14538 # tool to use in cross-compilation environments, therefore Automake
14539 # will honor the `STRIP' environment variable to overrule this program.
14540 if test "$cross_compiling" != no; then
14541   if test -n "$ac_tool_prefix"; then
14542   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14543 set dummy ${ac_tool_prefix}strip; ac_word=$2
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14545 $as_echo_n "checking for $ac_word... " >&6; }
14546 if test "${ac_cv_prog_STRIP+set}" = set; then :
14547   $as_echo_n "(cached) " >&6
14548 else
14549   if test -n "$STRIP"; then
14550   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14551 else
14552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14553 for as_dir in $PATH
14554 do
14555   IFS=$as_save_IFS
14556   test -z "$as_dir" && as_dir=.
14557     for ac_exec_ext in '' $ac_executable_extensions; do
14558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14559     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14561     break 2
14562   fi
14563 done
14564   done
14565 IFS=$as_save_IFS
14566
14567 fi
14568 fi
14569 STRIP=$ac_cv_prog_STRIP
14570 if test -n "$STRIP"; then
14571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14572 $as_echo "$STRIP" >&6; }
14573 else
14574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14575 $as_echo "no" >&6; }
14576 fi
14577
14578
14579 fi
14580 if test -z "$ac_cv_prog_STRIP"; then
14581   ac_ct_STRIP=$STRIP
14582   # Extract the first word of "strip", so it can be a program name with args.
14583 set dummy strip; ac_word=$2
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14585 $as_echo_n "checking for $ac_word... " >&6; }
14586 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
14587   $as_echo_n "(cached) " >&6
14588 else
14589   if test -n "$ac_ct_STRIP"; then
14590   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14591 else
14592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14593 for as_dir in $PATH
14594 do
14595   IFS=$as_save_IFS
14596   test -z "$as_dir" && as_dir=.
14597     for ac_exec_ext in '' $ac_executable_extensions; do
14598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14599     ac_cv_prog_ac_ct_STRIP="strip"
14600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14601     break 2
14602   fi
14603 done
14604   done
14605 IFS=$as_save_IFS
14606
14607 fi
14608 fi
14609 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14610 if test -n "$ac_ct_STRIP"; then
14611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14612 $as_echo "$ac_ct_STRIP" >&6; }
14613 else
14614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14615 $as_echo "no" >&6; }
14616 fi
14617
14618   if test "x$ac_ct_STRIP" = x; then
14619     STRIP=":"
14620   else
14621     case $cross_compiling:$ac_tool_warned in
14622 yes:)
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14625 ac_tool_warned=yes ;;
14626 esac
14627     STRIP=$ac_ct_STRIP
14628   fi
14629 else
14630   STRIP="$ac_cv_prog_STRIP"
14631 fi
14632
14633 fi
14634 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
14635
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
14637 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
14638 if test -z "$MKDIR_P"; then
14639   if test "${ac_cv_path_mkdir+set}" = set; then :
14640   $as_echo_n "(cached) " >&6
14641 else
14642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14643 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
14644 do
14645   IFS=$as_save_IFS
14646   test -z "$as_dir" && as_dir=.
14647     for ac_prog in mkdir gmkdir; do
14648          for ac_exec_ext in '' $ac_executable_extensions; do
14649            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
14650            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
14651              'mkdir (GNU coreutils) '* | \
14652              'mkdir (coreutils) '* | \
14653              'mkdir (fileutils) '4.1*)
14654                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
14655                break 3;;
14656            esac
14657          done
14658        done
14659   done
14660 IFS=$as_save_IFS
14661
14662 fi
14663
14664   test -d ./--version && rmdir ./--version
14665   if test "${ac_cv_path_mkdir+set}" = set; then
14666     MKDIR_P="$ac_cv_path_mkdir -p"
14667   else
14668     # As a last resort, use the slow shell script.  Don't cache a
14669     # value for MKDIR_P within a source directory, because that will
14670     # break other packages using the cache if that directory is
14671     # removed, or if the value is a relative name.
14672     MKDIR_P="$ac_install_sh -d"
14673   fi
14674 fi
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
14676 $as_echo "$MKDIR_P" >&6; }
14677
14678 mkdir_p="$MKDIR_P"
14679 case $mkdir_p in
14680   [\\/$]* | ?:[\\/]*) ;;
14681   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
14682 esac
14683
14684 for ac_prog in gawk mawk nawk awk
14685 do
14686   # Extract the first word of "$ac_prog", so it can be a program name with args.
14687 set dummy $ac_prog; ac_word=$2
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14689 $as_echo_n "checking for $ac_word... " >&6; }
14690 if test "${ac_cv_prog_AWK+set}" = set; then :
14691   $as_echo_n "(cached) " >&6
14692 else
14693   if test -n "$AWK"; then
14694   ac_cv_prog_AWK="$AWK" # Let the user override the test.
14695 else
14696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14697 for as_dir in $PATH
14698 do
14699   IFS=$as_save_IFS
14700   test -z "$as_dir" && as_dir=.
14701     for ac_exec_ext in '' $ac_executable_extensions; do
14702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14703     ac_cv_prog_AWK="$ac_prog"
14704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14705     break 2
14706   fi
14707 done
14708   done
14709 IFS=$as_save_IFS
14710
14711 fi
14712 fi
14713 AWK=$ac_cv_prog_AWK
14714 if test -n "$AWK"; then
14715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
14716 $as_echo "$AWK" >&6; }
14717 else
14718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14719 $as_echo "no" >&6; }
14720 fi
14721
14722
14723   test -n "$AWK" && break
14724 done
14725
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14727 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14728 set x ${MAKE-make}
14729 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14730 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
14731   $as_echo_n "(cached) " >&6
14732 else
14733   cat >conftest.make <<\_ACEOF
14734 SHELL = /bin/sh
14735 all:
14736         @echo '@@@%%%=$(MAKE)=@@@%%%'
14737 _ACEOF
14738 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14739 case `${MAKE-make} -f conftest.make 2>/dev/null` in
14740   *@@@%%%=?*=@@@%%%*)
14741     eval ac_cv_prog_make_${ac_make}_set=yes;;
14742   *)
14743     eval ac_cv_prog_make_${ac_make}_set=no;;
14744 esac
14745 rm -f conftest.make
14746 fi
14747 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14749 $as_echo "yes" >&6; }
14750   SET_MAKE=
14751 else
14752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14753 $as_echo "no" >&6; }
14754   SET_MAKE="MAKE=${MAKE-make}"
14755 fi
14756
14757 rm -rf .tst 2>/dev/null
14758 mkdir .tst 2>/dev/null
14759 if test -d .tst; then
14760   am__leading_dot=.
14761 else
14762   am__leading_dot=_
14763 fi
14764 rmdir .tst 2>/dev/null
14765
14766 DEPDIR="${am__leading_dot}deps"
14767
14768 ac_config_commands="$ac_config_commands depfiles"
14769
14770
14771 am_make=${MAKE-make}
14772 cat > confinc << 'END'
14773 am__doit:
14774         @echo this is the am__doit target
14775 .PHONY: am__doit
14776 END
14777 # If we don't find an include directive, just comment out the code.
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
14779 $as_echo_n "checking for style of include used by $am_make... " >&6; }
14780 am__include="#"
14781 am__quote=
14782 _am_result=none
14783 # First try GNU make style include.
14784 echo "include confinc" > confmf
14785 # Ignore all kinds of additional output from `make'.
14786 case `$am_make -s -f confmf 2> /dev/null` in #(
14787 *the\ am__doit\ target*)
14788   am__include=include
14789   am__quote=
14790   _am_result=GNU
14791   ;;
14792 esac
14793 # Now try BSD make style include.
14794 if test "$am__include" = "#"; then
14795    echo '.include "confinc"' > confmf
14796    case `$am_make -s -f confmf 2> /dev/null` in #(
14797    *the\ am__doit\ target*)
14798      am__include=.include
14799      am__quote="\""
14800      _am_result=BSD
14801      ;;
14802    esac
14803 fi
14804
14805
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
14807 $as_echo "$_am_result" >&6; }
14808 rm -f confinc confmf
14809
14810 # Check whether --enable-dependency-tracking was given.
14811 if test "${enable_dependency_tracking+set}" = set; then :
14812   enableval=$enable_dependency_tracking;
14813 fi
14814
14815 if test "x$enable_dependency_tracking" != xno; then
14816   am_depcomp="$ac_aux_dir/depcomp"
14817   AMDEPBACKSLASH='\'
14818 fi
14819  if test "x$enable_dependency_tracking" != xno; then
14820   AMDEP_TRUE=
14821   AMDEP_FALSE='#'
14822 else
14823   AMDEP_TRUE='#'
14824   AMDEP_FALSE=
14825 fi
14826
14827
14828 if test "`cd $srcdir && pwd`" != "`pwd`"; then
14829   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
14830   # is not polluted with repeated "-I."
14831   am__isrc=' -I$(srcdir)'
14832   # test to see if srcdir already configured
14833   if test -f $srcdir/config.status; then
14834     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
14835   fi
14836 fi
14837
14838 # test whether we have cygpath
14839 if test -z "$CYGPATH_W"; then
14840   if (cygpath --version) >/dev/null 2>/dev/null; then
14841     CYGPATH_W='cygpath -w'
14842   else
14843     CYGPATH_W=echo
14844   fi
14845 fi
14846
14847
14848 # Define the identity of the package.
14849  PACKAGE='libdispatch'
14850  VERSION='1.0'
14851
14852
14853 cat >>confdefs.h <<_ACEOF
14854 #define PACKAGE "$PACKAGE"
14855 _ACEOF
14856
14857
14858 cat >>confdefs.h <<_ACEOF
14859 #define VERSION "$VERSION"
14860 _ACEOF
14861
14862 # Some tools Automake needs.
14863
14864 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
14865
14866
14867 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
14868
14869
14870 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
14871
14872
14873 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
14874
14875
14876 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
14877
14878 # We need awk for the "check" target.  The system "awk" is bad on
14879 # some platforms.
14880 # Always define AMTAR for backward compatibility.
14881
14882 AMTAR=${AMTAR-"${am_missing_run}tar"}
14883
14884 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
14885
14886
14887
14888
14889 depcc="$CC"   am_compiler_list=
14890
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14892 $as_echo_n "checking dependency style of $depcc... " >&6; }
14893 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
14894   $as_echo_n "(cached) " >&6
14895 else
14896   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14897   # We make a subdir and do the tests there.  Otherwise we can end up
14898   # making bogus files that we don't know about and never remove.  For
14899   # instance it was reported that on HP-UX the gcc test will end up
14900   # making a dummy file named `D' -- because `-MD' means `put the output
14901   # in D'.
14902   mkdir conftest.dir
14903   # Copy depcomp to subdir because otherwise we won't find it if we're
14904   # using a relative directory.
14905   cp "$am_depcomp" conftest.dir
14906   cd conftest.dir
14907   # We will build objects and dependencies in a subdirectory because
14908   # it helps to detect inapplicable dependency modes.  For instance
14909   # both Tru64's cc and ICC support -MD to output dependencies as a
14910   # side effect of compilation, but ICC will put the dependencies in
14911   # the current directory while Tru64 will put them in the object
14912   # directory.
14913   mkdir sub
14914
14915   am_cv_CC_dependencies_compiler_type=none
14916   if test "$am_compiler_list" = ""; then
14917      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14918   fi
14919   am__universal=false
14920   case " $depcc " in #(
14921      *\ -arch\ *\ -arch\ *) am__universal=true ;;
14922      esac
14923
14924   for depmode in $am_compiler_list; do
14925     # Setup a source with many dependencies, because some compilers
14926     # like to wrap large dependency lists on column 80 (with \), and
14927     # we should not choose a depcomp mode which is confused by this.
14928     #
14929     # We need to recreate these files for each test, as the compiler may
14930     # overwrite some of them when testing with obscure command lines.
14931     # This happens at least with the AIX C compiler.
14932     : > sub/conftest.c
14933     for i in 1 2 3 4 5 6; do
14934       echo '#include "conftst'$i'.h"' >> sub/conftest.c
14935       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
14936       # Solaris 8's {/usr,}/bin/sh.
14937       touch sub/conftst$i.h
14938     done
14939     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14940
14941     # We check with `-c' and `-o' for the sake of the "dashmstdout"
14942     # mode.  It turns out that the SunPro C++ compiler does not properly
14943     # handle `-M -o', and we need to detect this.  Also, some Intel
14944     # versions had trouble with output in subdirs
14945     am__obj=sub/conftest.${OBJEXT-o}
14946     am__minus_obj="-o $am__obj"
14947     case $depmode in
14948     gcc)
14949       # This depmode causes a compiler race in universal mode.
14950       test "$am__universal" = false || continue
14951       ;;
14952     nosideeffect)
14953       # after this tag, mechanisms are not by side-effect, so they'll
14954       # only be used when explicitly requested
14955       if test "x$enable_dependency_tracking" = xyes; then
14956         continue
14957       else
14958         break
14959       fi
14960       ;;
14961     msvisualcpp | msvcmsys)
14962       # This compiler won't grok `-c -o', but also, the minuso test has
14963       # not run yet.  These depmodes are late enough in the game, and
14964       # so weak that their functioning should not be impacted.
14965       am__obj=conftest.${OBJEXT-o}
14966       am__minus_obj=
14967       ;;
14968     none) break ;;
14969     esac
14970     if depmode=$depmode \
14971        source=sub/conftest.c object=$am__obj \
14972        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14973        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14974          >/dev/null 2>conftest.err &&
14975        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14976        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14977        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14978        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14979       # icc doesn't choke on unknown options, it will just issue warnings
14980       # or remarks (even with -Werror).  So we grep stderr for any message
14981       # that says an option was ignored or not supported.
14982       # When given -MP, icc 7.0 and 7.1 complain thusly:
14983       #   icc: Command line warning: ignoring option '-M'; no argument required
14984       # The diagnosis changed in icc 8.0:
14985       #   icc: Command line remark: option '-MP' not supported
14986       if (grep 'ignoring option' conftest.err ||
14987           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14988         am_cv_CC_dependencies_compiler_type=$depmode
14989         break
14990       fi
14991     fi
14992   done
14993
14994   cd ..
14995   rm -rf conftest.dir
14996 else
14997   am_cv_CC_dependencies_compiler_type=none
14998 fi
14999
15000 fi
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15002 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
15003 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15004
15005  if
15006   test "x$enable_dependency_tracking" != xno \
15007   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15008   am__fastdepCC_TRUE=
15009   am__fastdepCC_FALSE='#'
15010 else
15011   am__fastdepCC_TRUE='#'
15012   am__fastdepCC_FALSE=
15013 fi
15014
15015
15016 depcc="$CXX"  am_compiler_list=
15017
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15019 $as_echo_n "checking dependency style of $depcc... " >&6; }
15020 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
15021   $as_echo_n "(cached) " >&6
15022 else
15023   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15024   # We make a subdir and do the tests there.  Otherwise we can end up
15025   # making bogus files that we don't know about and never remove.  For
15026   # instance it was reported that on HP-UX the gcc test will end up
15027   # making a dummy file named `D' -- because `-MD' means `put the output
15028   # in D'.
15029   mkdir conftest.dir
15030   # Copy depcomp to subdir because otherwise we won't find it if we're
15031   # using a relative directory.
15032   cp "$am_depcomp" conftest.dir
15033   cd conftest.dir
15034   # We will build objects and dependencies in a subdirectory because
15035   # it helps to detect inapplicable dependency modes.  For instance
15036   # both Tru64's cc and ICC support -MD to output dependencies as a
15037   # side effect of compilation, but ICC will put the dependencies in
15038   # the current directory while Tru64 will put them in the object
15039   # directory.
15040   mkdir sub
15041
15042   am_cv_CXX_dependencies_compiler_type=none
15043   if test "$am_compiler_list" = ""; then
15044      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15045   fi
15046   am__universal=false
15047   case " $depcc " in #(
15048      *\ -arch\ *\ -arch\ *) am__universal=true ;;
15049      esac
15050
15051   for depmode in $am_compiler_list; do
15052     # Setup a source with many dependencies, because some compilers
15053     # like to wrap large dependency lists on column 80 (with \), and
15054     # we should not choose a depcomp mode which is confused by this.
15055     #
15056     # We need to recreate these files for each test, as the compiler may
15057     # overwrite some of them when testing with obscure command lines.
15058     # This happens at least with the AIX C compiler.
15059     : > sub/conftest.c
15060     for i in 1 2 3 4 5 6; do
15061       echo '#include "conftst'$i'.h"' >> sub/conftest.c
15062       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15063       # Solaris 8's {/usr,}/bin/sh.
15064       touch sub/conftst$i.h
15065     done
15066     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15067
15068     # We check with `-c' and `-o' for the sake of the "dashmstdout"
15069     # mode.  It turns out that the SunPro C++ compiler does not properly
15070     # handle `-M -o', and we need to detect this.  Also, some Intel
15071     # versions had trouble with output in subdirs
15072     am__obj=sub/conftest.${OBJEXT-o}
15073     am__minus_obj="-o $am__obj"
15074     case $depmode in
15075     gcc)
15076       # This depmode causes a compiler race in universal mode.
15077       test "$am__universal" = false || continue
15078       ;;
15079     nosideeffect)
15080       # after this tag, mechanisms are not by side-effect, so they'll
15081       # only be used when explicitly requested
15082       if test "x$enable_dependency_tracking" = xyes; then
15083         continue
15084       else
15085         break
15086       fi
15087       ;;
15088     msvisualcpp | msvcmsys)
15089       # This compiler won't grok `-c -o', but also, the minuso test has
15090       # not run yet.  These depmodes are late enough in the game, and
15091       # so weak that their functioning should not be impacted.
15092       am__obj=conftest.${OBJEXT-o}
15093       am__minus_obj=
15094       ;;
15095     none) break ;;
15096     esac
15097     if depmode=$depmode \
15098        source=sub/conftest.c object=$am__obj \
15099        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15100        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15101          >/dev/null 2>conftest.err &&
15102        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15103        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15104        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15105        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15106       # icc doesn't choke on unknown options, it will just issue warnings
15107       # or remarks (even with -Werror).  So we grep stderr for any message
15108       # that says an option was ignored or not supported.
15109       # When given -MP, icc 7.0 and 7.1 complain thusly:
15110       #   icc: Command line warning: ignoring option '-M'; no argument required
15111       # The diagnosis changed in icc 8.0:
15112       #   icc: Command line remark: option '-MP' not supported
15113       if (grep 'ignoring option' conftest.err ||
15114           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15115         am_cv_CXX_dependencies_compiler_type=$depmode
15116         break
15117       fi
15118     fi
15119   done
15120
15121   cd ..
15122   rm -rf conftest.dir
15123 else
15124   am_cv_CXX_dependencies_compiler_type=none
15125 fi
15126
15127 fi
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
15129 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
15130 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15131
15132  if
15133   test "x$enable_dependency_tracking" != xno \
15134   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15135   am__fastdepCXX_TRUE=
15136   am__fastdepCXX_FALSE='#'
15137 else
15138   am__fastdepCXX_TRUE='#'
15139   am__fastdepCXX_FALSE=
15140 fi
15141
15142
15143
15144
15145
15146 #
15147 # This is a bit subtle: on i386 systems without at least -march=i486 defined,
15148 # certain built-in atomics fall back to depending on undefined symbols if
15149 # their return values are used.
15150 #
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc atomic builtins" >&5
15152 $as_echo_n "checking for gcc atomic builtins... " >&6; }
15153 if test "${dispatch_cv_atomic+set}" = set; then :
15154   $as_echo_n "(cached) " >&6
15155 else
15156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157 /* end confdefs.h.  */
15158
15159 int
15160 main ()
15161 {
15162
15163 int i, x =0;
15164 i = __sync_add_and_fetch(&x,1);
15165 return x;
15166   ;
15167   return 0;
15168 }
15169 _ACEOF
15170 if ac_fn_c_try_link "$LINENO"; then :
15171   dispatch_cv_atomic=yes
15172 else
15173   saveCFLAGS="$CFLAGS"
15174   CFLAGS="$CFLAGS -march=i486"
15175   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h.  */
15177
15178 int
15179 main ()
15180 {
15181
15182   int i, x =0;
15183   i = __sync_add_and_fetch(&x,1);
15184   return x;
15185   ;
15186   return 0;
15187 }
15188 _ACEOF
15189 if ac_fn_c_try_link "$LINENO"; then :
15190   CFLAGS="$saveCFLAGS"
15191 dispatch_cv_atomic="-march=i486"
15192
15193 fi
15194 rm -f core conftest.err conftest.$ac_objext \
15195     conftest$ac_exeext conftest.$ac_ext
15196 fi
15197 rm -f core conftest.err conftest.$ac_objext \
15198     conftest$ac_exeext conftest.$ac_ext
15199 fi
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dispatch_cv_atomic" >&5
15201 $as_echo "$dispatch_cv_atomic" >&6; }
15202
15203
15204
15205 case $dispatch_cv_atomic in
15206   yes) ;;
15207   -march*) MARCH_FLAGS="$dispatch_cv_atomic"
15208           ;;
15209   *) as_fn_error "No gcc builtin atomic operations available" "$LINENO" 5 ;;
15210 esac
15211
15212 #
15213 # Find libraries we will need
15214 #
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
15216 $as_echo_n "checking for library containing clock_gettime... " >&6; }
15217 if test "${ac_cv_search_clock_gettime+set}" = set; then :
15218   $as_echo_n "(cached) " >&6
15219 else
15220   ac_func_search_save_LIBS=$LIBS
15221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222 /* end confdefs.h.  */
15223
15224 /* Override any GCC internal prototype to avoid an error.
15225    Use char because int might match the return type of a GCC
15226    builtin and then its argument prototype would still apply.  */
15227 #ifdef __cplusplus
15228 extern "C"
15229 #endif
15230 char clock_gettime ();
15231 int
15232 main ()
15233 {
15234 return clock_gettime ();
15235   ;
15236   return 0;
15237 }
15238 _ACEOF
15239 for ac_lib in '' rt; do
15240   if test -z "$ac_lib"; then
15241     ac_res="none required"
15242   else
15243     ac_res=-l$ac_lib
15244     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15245   fi
15246   if ac_fn_c_try_link "$LINENO"; then :
15247   ac_cv_search_clock_gettime=$ac_res
15248 fi
15249 rm -f core conftest.err conftest.$ac_objext \
15250     conftest$ac_exeext
15251   if test "${ac_cv_search_clock_gettime+set}" = set; then :
15252   break
15253 fi
15254 done
15255 if test "${ac_cv_search_clock_gettime+set}" = set; then :
15256
15257 else
15258   ac_cv_search_clock_gettime=no
15259 fi
15260 rm conftest.$ac_ext
15261 LIBS=$ac_func_search_save_LIBS
15262 fi
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
15264 $as_echo "$ac_cv_search_clock_gettime" >&6; }
15265 ac_res=$ac_cv_search_clock_gettime
15266 if test "$ac_res" != no; then :
15267   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15268
15269 fi
15270
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
15272 $as_echo_n "checking for library containing pthread_create... " >&6; }
15273 if test "${ac_cv_search_pthread_create+set}" = set; then :
15274   $as_echo_n "(cached) " >&6
15275 else
15276   ac_func_search_save_LIBS=$LIBS
15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15278 /* end confdefs.h.  */
15279
15280 /* Override any GCC internal prototype to avoid an error.
15281    Use char because int might match the return type of a GCC
15282    builtin and then its argument prototype would still apply.  */
15283 #ifdef __cplusplus
15284 extern "C"
15285 #endif
15286 char pthread_create ();
15287 int
15288 main ()
15289 {
15290 return pthread_create ();
15291   ;
15292   return 0;
15293 }
15294 _ACEOF
15295 for ac_lib in '' pthread; do
15296   if test -z "$ac_lib"; then
15297     ac_res="none required"
15298   else
15299     ac_res=-l$ac_lib
15300     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15301   fi
15302   if ac_fn_c_try_link "$LINENO"; then :
15303   ac_cv_search_pthread_create=$ac_res
15304 fi
15305 rm -f core conftest.err conftest.$ac_objext \
15306     conftest$ac_exeext
15307   if test "${ac_cv_search_pthread_create+set}" = set; then :
15308   break
15309 fi
15310 done
15311 if test "${ac_cv_search_pthread_create+set}" = set; then :
15312
15313 else
15314   ac_cv_search_pthread_create=no
15315 fi
15316 rm conftest.$ac_ext
15317 LIBS=$ac_func_search_save_LIBS
15318 fi
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
15320 $as_echo "$ac_cv_search_pthread_create" >&6; }
15321 ac_res=$ac_cv_search_pthread_create
15322 if test "$ac_res" != no; then :
15323   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15324
15325 fi
15326
15327
15328 #
15329 # Prefer native kqueue(2); otherwise use libkqueue if present.
15330 #
15331
15332
15333 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15334         if test -n "$ac_tool_prefix"; then
15335   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15336 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15338 $as_echo_n "checking for $ac_word... " >&6; }
15339 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
15340   $as_echo_n "(cached) " >&6
15341 else
15342   case $PKG_CONFIG in
15343   [\\/]* | ?:[\\/]*)
15344   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15345   ;;
15346   *)
15347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15348 for as_dir in $PATH
15349 do
15350   IFS=$as_save_IFS
15351   test -z "$as_dir" && as_dir=.
15352     for ac_exec_ext in '' $ac_executable_extensions; do
15353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15354     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15356     break 2
15357   fi
15358 done
15359   done
15360 IFS=$as_save_IFS
15361
15362   ;;
15363 esac
15364 fi
15365 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15366 if test -n "$PKG_CONFIG"; then
15367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15368 $as_echo "$PKG_CONFIG" >&6; }
15369 else
15370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15371 $as_echo "no" >&6; }
15372 fi
15373
15374
15375 fi
15376 if test -z "$ac_cv_path_PKG_CONFIG"; then
15377   ac_pt_PKG_CONFIG=$PKG_CONFIG
15378   # Extract the first word of "pkg-config", so it can be a program name with args.
15379 set dummy pkg-config; ac_word=$2
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15381 $as_echo_n "checking for $ac_word... " >&6; }
15382 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
15383   $as_echo_n "(cached) " >&6
15384 else
15385   case $ac_pt_PKG_CONFIG in
15386   [\\/]* | ?:[\\/]*)
15387   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15388   ;;
15389   *)
15390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15391 for as_dir in $PATH
15392 do
15393   IFS=$as_save_IFS
15394   test -z "$as_dir" && as_dir=.
15395     for ac_exec_ext in '' $ac_executable_extensions; do
15396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15397     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15399     break 2
15400   fi
15401 done
15402   done
15403 IFS=$as_save_IFS
15404
15405   ;;
15406 esac
15407 fi
15408 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15409 if test -n "$ac_pt_PKG_CONFIG"; then
15410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15411 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15412 else
15413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15414 $as_echo "no" >&6; }
15415 fi
15416
15417   if test "x$ac_pt_PKG_CONFIG" = x; then
15418     PKG_CONFIG=""
15419   else
15420     case $cross_compiling:$ac_tool_warned in
15421 yes:)
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15424 ac_tool_warned=yes ;;
15425 esac
15426     PKG_CONFIG=$ac_pt_PKG_CONFIG
15427   fi
15428 else
15429   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15430 fi
15431
15432 fi
15433 if test -n "$PKG_CONFIG"; then
15434         _pkg_min_version=0.9.0
15435         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15436 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15437         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15438                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15439 $as_echo "yes" >&6; }
15440         else
15441                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15442 $as_echo "no" >&6; }
15443                 PKG_CONFIG=""
15444         fi
15445
15446 fi
15447 ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
15448 if test "x$ac_cv_header_sys_event_h" = x""yes; then :
15449
15450 else
15451
15452 pkg_failed=no
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KQUEUE" >&5
15454 $as_echo_n "checking for KQUEUE... " >&6; }
15455
15456 if test -n "$KQUEUE_CFLAGS"; then
15457     pkg_cv_KQUEUE_CFLAGS="$KQUEUE_CFLAGS"
15458  elif test -n "$PKG_CONFIG"; then
15459     if test -n "$PKG_CONFIG" && \
15460     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libkqueue\""; } >&5
15461   ($PKG_CONFIG --exists --print-errors "libkqueue") 2>&5
15462   ac_status=$?
15463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15464   test $ac_status = 0; }; then
15465   pkg_cv_KQUEUE_CFLAGS=`$PKG_CONFIG --cflags "libkqueue" 2>/dev/null`
15466 else
15467   pkg_failed=yes
15468 fi
15469  else
15470     pkg_failed=untried
15471 fi
15472 if test -n "$KQUEUE_LIBS"; then
15473     pkg_cv_KQUEUE_LIBS="$KQUEUE_LIBS"
15474  elif test -n "$PKG_CONFIG"; then
15475     if test -n "$PKG_CONFIG" && \
15476     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libkqueue\""; } >&5
15477   ($PKG_CONFIG --exists --print-errors "libkqueue") 2>&5
15478   ac_status=$?
15479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15480   test $ac_status = 0; }; then
15481   pkg_cv_KQUEUE_LIBS=`$PKG_CONFIG --libs "libkqueue" 2>/dev/null`
15482 else
15483   pkg_failed=yes
15484 fi
15485  else
15486     pkg_failed=untried
15487 fi
15488
15489
15490
15491 if test $pkg_failed = yes; then
15492
15493 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15494         _pkg_short_errors_supported=yes
15495 else
15496         _pkg_short_errors_supported=no
15497 fi
15498         if test $_pkg_short_errors_supported = yes; then
15499                 KQUEUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libkqueue" 2>&1`
15500         else
15501                 KQUEUE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libkqueue" 2>&1`
15502         fi
15503         # Put the nasty error message in config.log where it belongs
15504         echo "$KQUEUE_PKG_ERRORS" >&5
15505
15506         as_fn_error "Package requirements (libkqueue) were not met:
15507
15508 $KQUEUE_PKG_ERRORS
15509
15510 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15511 installed software in a non-standard prefix.
15512
15513 Alternatively, you may set the environment variables KQUEUE_CFLAGS
15514 and KQUEUE_LIBS to avoid the need to call pkg-config.
15515 See the pkg-config man page for more details.
15516 " "$LINENO" 5
15517 elif test $pkg_failed = untried; then
15518         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15520 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
15521 is in your PATH or set the PKG_CONFIG environment variable to the full
15522 path to pkg-config.
15523
15524 Alternatively, you may set the environment variables KQUEUE_CFLAGS
15525 and KQUEUE_LIBS to avoid the need to call pkg-config.
15526 See the pkg-config man page for more details.
15527
15528 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15529 See \`config.log' for more details." "$LINENO" 5; }
15530 else
15531         KQUEUE_CFLAGS=$pkg_cv_KQUEUE_CFLAGS
15532         KQUEUE_LIBS=$pkg_cv_KQUEUE_LIBS
15533         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15534 $as_echo "yes" >&6; }
15535         :
15536 fi
15537
15538 fi
15539
15540
15541
15542 #
15543 # Checks for header files.
15544 #
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15546 $as_echo_n "checking for ANSI C header files... " >&6; }
15547 if test "${ac_cv_header_stdc+set}" = set; then :
15548   $as_echo_n "(cached) " >&6
15549 else
15550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551 /* end confdefs.h.  */
15552 #include <stdlib.h>
15553 #include <stdarg.h>
15554 #include <string.h>
15555 #include <float.h>
15556
15557 int
15558 main ()
15559 {
15560
15561   ;
15562   return 0;
15563 }
15564 _ACEOF
15565 if ac_fn_c_try_compile "$LINENO"; then :
15566   ac_cv_header_stdc=yes
15567 else
15568   ac_cv_header_stdc=no
15569 fi
15570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15571
15572 if test $ac_cv_header_stdc = yes; then
15573   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15575 /* end confdefs.h.  */
15576 #include <string.h>
15577
15578 _ACEOF
15579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15580   $EGREP "memchr" >/dev/null 2>&1; then :
15581
15582 else
15583   ac_cv_header_stdc=no
15584 fi
15585 rm -f conftest*
15586
15587 fi
15588
15589 if test $ac_cv_header_stdc = yes; then
15590   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15592 /* end confdefs.h.  */
15593 #include <stdlib.h>
15594
15595 _ACEOF
15596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15597   $EGREP "free" >/dev/null 2>&1; then :
15598
15599 else
15600   ac_cv_header_stdc=no
15601 fi
15602 rm -f conftest*
15603
15604 fi
15605
15606 if test $ac_cv_header_stdc = yes; then
15607   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15608   if test "$cross_compiling" = yes; then :
15609   :
15610 else
15611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15612 /* end confdefs.h.  */
15613 #include <ctype.h>
15614 #include <stdlib.h>
15615 #if ((' ' & 0x0FF) == 0x020)
15616 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15617 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15618 #else
15619 # define ISLOWER(c) \
15620                    (('a' <= (c) && (c) <= 'i') \
15621                      || ('j' <= (c) && (c) <= 'r') \
15622                      || ('s' <= (c) && (c) <= 'z'))
15623 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15624 #endif
15625
15626 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15627 int
15628 main ()
15629 {
15630   int i;
15631   for (i = 0; i < 256; i++)
15632     if (XOR (islower (i), ISLOWER (i))
15633         || toupper (i) != TOUPPER (i))
15634       return 2;
15635   return 0;
15636 }
15637 _ACEOF
15638 if ac_fn_c_try_run "$LINENO"; then :
15639
15640 else
15641   ac_cv_header_stdc=no
15642 fi
15643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15644   conftest.$ac_objext conftest.beam conftest.$ac_ext
15645 fi
15646
15647 fi
15648 fi
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15650 $as_echo "$ac_cv_header_stdc" >&6; }
15651 if test $ac_cv_header_stdc = yes; then
15652
15653 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15654
15655 fi
15656
15657 for ac_header in TargetConditionals.h pthread_machdep.h pthread_np.h malloc/malloc.h libkern/OSCrossEndian.h libkern/OSAtomic.h sys/sysctl.h
15658 do :
15659   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15660 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15661 eval as_val=\$$as_ac_Header
15662    if test "x$as_val" = x""yes; then :
15663   cat >>confdefs.h <<_ACEOF
15664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15665 _ACEOF
15666
15667 fi
15668
15669 done
15670
15671
15672 #
15673 # Core Services is tested in one of the GCD regression tests, so test for its
15674 # presence using its header file.
15675 #
15676 ac_fn_c_check_header_mongrel "$LINENO" "CoreServices/CoreServices.h" "ac_cv_header_CoreServices_CoreServices_h" "$ac_includes_default"
15677 if test "x$ac_cv_header_CoreServices_CoreServices_h" = x""yes; then :
15678   have_coreservices=true
15679 else
15680   have_coreservices=false
15681
15682 fi
15683
15684
15685  if $have_coreservices; then
15686   HAVE_CORESERVICES_TRUE=
15687   HAVE_CORESERVICES_FALSE='#'
15688 else
15689   HAVE_CORESERVICES_TRUE='#'
15690   HAVE_CORESERVICES_FALSE=
15691 fi
15692
15693
15694 #
15695 # We use the availability of mach.h to decide whether to compile in all sorts
15696 # of Machisms, including using Mach ports as event sources, etc.
15697 #
15698 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15699 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
15700
15701 $as_echo "#define HAVE_MACH 1" >>confdefs.h
15702
15703     have_mach=true
15704 else
15705   have_mach=false
15706
15707 fi
15708
15709
15710  if $have_mach; then
15711   USE_MIG_TRUE=
15712   USE_MIG_FALSE='#'
15713 else
15714   USE_MIG_TRUE='#'
15715   USE_MIG_FALSE=
15716 fi
15717
15718
15719 #
15720 # We use the availability of pthread_workqueue.h to decide whether to compile
15721 # in support for pthread work queues.
15722 #
15723 ac_fn_c_check_header_mongrel "$LINENO" "pthread_workqueue.h" "ac_cv_header_pthread_workqueue_h" "$ac_includes_default"
15724 if test "x$ac_cv_header_pthread_workqueue_h" = x""yes; then :
15725
15726 $as_echo "#define HAVE_PTHREAD_WORKQUEUES 1" >>confdefs.h
15727
15728
15729 fi
15730
15731
15732
15733 #
15734 # Find functions and declarations we care about.
15735 #
15736 ac_fn_c_check_decl "$LINENO" "CLOCK_UPTIME" "ac_cv_have_decl_CLOCK_UPTIME" "#include <time.h>
15737 "
15738 if test "x$ac_cv_have_decl_CLOCK_UPTIME" = x""yes; then :
15739   ac_have_decl=1
15740 else
15741   ac_have_decl=0
15742 fi
15743
15744 cat >>confdefs.h <<_ACEOF
15745 #define HAVE_DECL_CLOCK_UPTIME $ac_have_decl
15746 _ACEOF
15747 ac_fn_c_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#include <time.h>
15748 "
15749 if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = x""yes; then :
15750   ac_have_decl=1
15751 else
15752   ac_have_decl=0
15753 fi
15754
15755 cat >>confdefs.h <<_ACEOF
15756 #define HAVE_DECL_CLOCK_MONOTONIC $ac_have_decl
15757 _ACEOF
15758 ac_fn_c_check_decl "$LINENO" "CLOCK_REALTIME" "ac_cv_have_decl_CLOCK_REALTIME" "#include <time.h>
15759 "
15760 if test "x$ac_cv_have_decl_CLOCK_REALTIME" = x""yes; then :
15761   ac_have_decl=1
15762 else
15763   ac_have_decl=0
15764 fi
15765
15766 cat >>confdefs.h <<_ACEOF
15767 #define HAVE_DECL_CLOCK_REALTIME $ac_have_decl
15768 _ACEOF
15769
15770 ac_fn_c_check_decl "$LINENO" "EVFILT_LIO" "ac_cv_have_decl_EVFILT_LIO" "#include <sys/types.h>
15771 #include <sys/event.h>
15772 "
15773 if test "x$ac_cv_have_decl_EVFILT_LIO" = x""yes; then :
15774   ac_have_decl=1
15775 else
15776   ac_have_decl=0
15777 fi
15778
15779 cat >>confdefs.h <<_ACEOF
15780 #define HAVE_DECL_EVFILT_LIO $ac_have_decl
15781 _ACEOF
15782 ac_fn_c_check_decl "$LINENO" "EVFILT_SESSION" "ac_cv_have_decl_EVFILT_SESSION" "#include <sys/types.h>
15783 #include <sys/event.h>
15784 "
15785 if test "x$ac_cv_have_decl_EVFILT_SESSION" = x""yes; then :
15786   ac_have_decl=1
15787 else
15788   ac_have_decl=0
15789 fi
15790
15791 cat >>confdefs.h <<_ACEOF
15792 #define HAVE_DECL_EVFILT_SESSION $ac_have_decl
15793 _ACEOF
15794 ac_fn_c_check_decl "$LINENO" "NOTE_NONE" "ac_cv_have_decl_NOTE_NONE" "#include <sys/types.h>
15795 #include <sys/event.h>
15796 "
15797 if test "x$ac_cv_have_decl_NOTE_NONE" = x""yes; then :
15798   ac_have_decl=1
15799 else
15800   ac_have_decl=0
15801 fi
15802
15803 cat >>confdefs.h <<_ACEOF
15804 #define HAVE_DECL_NOTE_NONE $ac_have_decl
15805 _ACEOF
15806 ac_fn_c_check_decl "$LINENO" "NOTE_REAP" "ac_cv_have_decl_NOTE_REAP" "#include <sys/types.h>
15807 #include <sys/event.h>
15808 "
15809 if test "x$ac_cv_have_decl_NOTE_REAP" = x""yes; then :
15810   ac_have_decl=1
15811 else
15812   ac_have_decl=0
15813 fi
15814
15815 cat >>confdefs.h <<_ACEOF
15816 #define HAVE_DECL_NOTE_REAP $ac_have_decl
15817 _ACEOF
15818 ac_fn_c_check_decl "$LINENO" "NOTE_REVOKE" "ac_cv_have_decl_NOTE_REVOKE" "#include <sys/types.h>
15819 #include <sys/event.h>
15820 "
15821 if test "x$ac_cv_have_decl_NOTE_REVOKE" = x""yes; then :
15822   ac_have_decl=1
15823 else
15824   ac_have_decl=0
15825 fi
15826
15827 cat >>confdefs.h <<_ACEOF
15828 #define HAVE_DECL_NOTE_REVOKE $ac_have_decl
15829 _ACEOF
15830 ac_fn_c_check_decl "$LINENO" "NOTE_SIGNAL" "ac_cv_have_decl_NOTE_SIGNAL" "#include <sys/types.h>
15831 #include <sys/event.h>
15832 "
15833 if test "x$ac_cv_have_decl_NOTE_SIGNAL" = x""yes; then :
15834   ac_have_decl=1
15835 else
15836   ac_have_decl=0
15837 fi
15838
15839 cat >>confdefs.h <<_ACEOF
15840 #define HAVE_DECL_NOTE_SIGNAL $ac_have_decl
15841 _ACEOF
15842
15843 ac_fn_c_check_decl "$LINENO" "FD_COPY" "ac_cv_have_decl_FD_COPY" "#include <sys/select.h>
15844 "
15845 if test "x$ac_cv_have_decl_FD_COPY" = x""yes; then :
15846   ac_have_decl=1
15847 else
15848   ac_have_decl=0
15849 fi
15850
15851 cat >>confdefs.h <<_ACEOF
15852 #define HAVE_DECL_FD_COPY $ac_have_decl
15853 _ACEOF
15854
15855 ac_fn_c_check_decl "$LINENO" "SIGEMT" "ac_cv_have_decl_SIGEMT" "#include <signal.h>
15856 "
15857 if test "x$ac_cv_have_decl_SIGEMT" = x""yes; then :
15858   ac_have_decl=1
15859 else
15860   ac_have_decl=0
15861 fi
15862
15863 cat >>confdefs.h <<_ACEOF
15864 #define HAVE_DECL_SIGEMT $ac_have_decl
15865 _ACEOF
15866
15867 ac_fn_c_check_decl "$LINENO" "VQ_UPDATE" "ac_cv_have_decl_VQ_UPDATE" "#include <sys/mount.h>
15868 "
15869 if test "x$ac_cv_have_decl_VQ_UPDATE" = x""yes; then :
15870   ac_have_decl=1
15871 else
15872   ac_have_decl=0
15873 fi
15874
15875 cat >>confdefs.h <<_ACEOF
15876 #define HAVE_DECL_VQ_UPDATE $ac_have_decl
15877 _ACEOF
15878 ac_fn_c_check_decl "$LINENO" "VQ_VERYLOWDISK" "ac_cv_have_decl_VQ_VERYLOWDISK" "#include <sys/mount.h>
15879 "
15880 if test "x$ac_cv_have_decl_VQ_VERYLOWDISK" = x""yes; then :
15881   ac_have_decl=1
15882 else
15883   ac_have_decl=0
15884 fi
15885
15886 cat >>confdefs.h <<_ACEOF
15887 #define HAVE_DECL_VQ_VERYLOWDISK $ac_have_decl
15888 _ACEOF
15889
15890 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
15891 "
15892 if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then :
15893   ac_have_decl=1
15894 else
15895   ac_have_decl=0
15896 fi
15897
15898 cat >>confdefs.h <<_ACEOF
15899 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
15900 _ACEOF
15901
15902 for ac_func in pthread_key_init_np pthread_main_np mach_absolute_time malloc_create_zone sysconf getprogname
15903 do :
15904   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15905 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15906 eval as_val=\$$as_ac_var
15907    if test "x$as_val" = x""yes; then :
15908   cat >>confdefs.h <<_ACEOF
15909 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15910 _ACEOF
15911
15912 fi
15913 done
15914
15915
15916 ac_fn_c_check_decl "$LINENO" "POSIX_SPAWN_START_SUSPENDED" "ac_cv_have_decl_POSIX_SPAWN_START_SUSPENDED" "#include <sys/spawn.h>
15917
15918 "
15919 if test "x$ac_cv_have_decl_POSIX_SPAWN_START_SUSPENDED" = x""yes; then :
15920   ac_have_decl=1
15921 else
15922   ac_have_decl=0
15923 fi
15924
15925 cat >>confdefs.h <<_ACEOF
15926 #define HAVE_DECL_POSIX_SPAWN_START_SUSPENDED $ac_have_decl
15927 _ACEOF
15928 if test $ac_have_decl = 1; then :
15929   have_posix_spawn_start_suspended=true
15930 else
15931   have_posix_spawn_start_suspended=false
15932 fi
15933
15934  if $have_posix_spawn_start_suspended; then
15935   HAVE_POSIX_SPAWN_START_SUSPENDED_TRUE=
15936   HAVE_POSIX_SPAWN_START_SUSPENDED_FALSE='#'
15937 else
15938   HAVE_POSIX_SPAWN_START_SUSPENDED_TRUE='#'
15939   HAVE_POSIX_SPAWN_START_SUSPENDED_FALSE=
15940 fi
15941
15942
15943 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
15944 if test "x$ac_cv_func_sem_init" = x""yes; then :
15945   have_sem_init=true
15946 else
15947   have_sem_init=false
15948
15949 fi
15950
15951
15952 #
15953 # We support both Mach semaphores and POSIX semaphores; if the former are
15954 # available, prefer them.
15955 #
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what semaphore type to use" >&5
15957 $as_echo_n "checking what semaphore type to use... " >&6; };
15958 if test "x$have_mach" = "xtrue"; then :
15959
15960 $as_echo "#define USE_MACH_SEM 1" >>confdefs.h
15961
15962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mach semaphores" >&5
15963 $as_echo "Mach semaphores" >&6; }
15964 elif test "x$have_sem_init" = "xtrue"; then :
15965
15966 $as_echo "#define USE_POSIX_SEM 1" >>confdefs.h
15967
15968     { $as_echo "$as_me:${as_lineno-$LINENO}: result: POSIX semaphores" >&5
15969 $as_echo "POSIX semaphores" >&6; }
15970 else
15971   as_fn_error "no supported semaphore type" "$LINENO" 5
15972
15973 fi
15974
15975 for ac_header in sys/cdefs.h
15976 do :
15977   ac_fn_c_check_header_compile "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "#ifdef HAVE_SYS_CDEFS_H
15978    #include <sys/cdefs.h>
15979    #endif
15980 "
15981 if test "x$ac_cv_header_sys_cdefs_h" = x""yes; then :
15982   cat >>confdefs.h <<_ACEOF
15983 #define HAVE_SYS_CDEFS_H 1
15984 _ACEOF
15985
15986 fi
15987
15988 done
15989
15990
15991
15992
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
15994 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
15995 if test "${dispatch_cv_hidden_visibility_attribute+set}" = set; then :
15996   $as_echo_n "(cached) " >&6
15997 else
15998
15999         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16000 /* end confdefs.h.  */
16001
16002 int
16003 main ()
16004 {
16005 extern __attribute__ ((visibility ("hidden"))) int foo;
16006   ;
16007   return 0;
16008 }
16009 _ACEOF
16010 if ac_fn_c_try_link "$LINENO"; then :
16011   dispatch_cv_hidden_visibility_attribute=yes
16012 else
16013   dispatch_cv_hidden_visibility_attribute=no
16014 fi
16015 rm -f core conftest.err conftest.$ac_objext \
16016     conftest$ac_exeext conftest.$ac_ext
16017 fi
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dispatch_cv_hidden_visibility_attribute" >&5
16019 $as_echo "$dispatch_cv_hidden_visibility_attribute" >&6; }
16020
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __private_extern__" >&5
16022 $as_echo_n "checking for __private_extern__... " >&6; }
16023 if test "${dispatch_cv_private_extern+set}" = set; then :
16024   $as_echo_n "(cached) " >&6
16025 else
16026
16027         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16028 /* end confdefs.h.  */
16029
16030 int
16031 main ()
16032 {
16033 __private_extern__ int foo;
16034   ;
16035   return 0;
16036 }
16037 _ACEOF
16038 if ac_fn_c_try_link "$LINENO"; then :
16039   dispatch_cv_private_extern=yes
16040 else
16041   dispatch_cv_private_extern=no
16042 fi
16043 rm -f core conftest.err conftest.$ac_objext \
16044     conftest$ac_exeext conftest.$ac_ext
16045 fi
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dispatch_cv_private_extern" >&5
16047 $as_echo "$dispatch_cv_private_extern" >&6; }
16048
16049 if test $dispatch_cv_private_extern = yes; then
16050
16051 $as_echo "#define HAVE_PRIVATE_EXTERN 1" >>confdefs.h
16052
16053 elif test $dispatch_cv_hidden_visibility_attribute = yes; then
16054
16055 $as_echo "#define HAVE_PRIVATE_EXTERN 1" >>confdefs.h
16056
16057
16058 $as_echo "#define __private_extern__ extern __attribute__ ((visibility (\"hidden\")))" >>confdefs.h
16059
16060 else
16061
16062 $as_echo "#define __private_extern__ extern" >>confdefs.h
16063
16064 fi
16065
16066
16067
16068 #
16069 # Allow configure to be passed a path to the directory where it should look
16070 # for the Blocks runtime library, if any.
16071 #
16072
16073 # Check whether --with-blocks-runtime was given.
16074 if test "${with_blocks_runtime+set}" = set; then :
16075   withval=$with_blocks_runtime; blocks_runtime=${withval}
16076     LIBS="$LIBS -L$blocks_runtime"
16077
16078 fi
16079
16080
16081 #
16082 # Detect compiler support for Blocks; perhaps someday -fblocks won't be
16083 # required, in which case we'll need to change this.
16084 #
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C Blocks support" >&5
16086 $as_echo_n "checking for C Blocks support... " >&6; }
16087 if test "${dispatch_cv_cblocks+set}" = set; then :
16088   $as_echo_n "(cached) " >&6
16089 else
16090
16091   saveCFLAGS="$CFLAGS"
16092   CFLAGS="$CFLAGS -fblocks"
16093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16094 /* end confdefs.h.  */
16095
16096 int
16097 main ()
16098 {
16099 (void)^{int i; i = 0; }();
16100   ;
16101   return 0;
16102 }
16103 _ACEOF
16104 if ac_fn_c_try_compile "$LINENO"; then :
16105
16106     CFLAGS="$saveCFLAGS"
16107     dispatch_cv_cblocks="-fblocks"
16108
16109 else
16110
16111     CFLAGS="$saveCFLAGS"
16112     dispatch_cv_cblocks="no"
16113
16114 fi
16115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16116
16117 fi
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dispatch_cv_cblocks" >&5
16119 $as_echo "$dispatch_cv_cblocks" >&6; }
16120
16121 if test "x$dispatch_cv_cblocks" != "xno"; then :
16122
16123     CBLOCKS_FLAGS="$dispatch_cv_cblocks"
16124
16125     #
16126     # It may be necessary to directly link the Blocks runtime on some
16127     # systems, so give it a try if we can't link a C program that uses
16128     # Blocks.  We will want to remove this at somepoint, as really -fblocks
16129     # should force that linkage already.
16130     #
16131     saveCFLAGS="$CFLAGS"
16132     CFLAGS="$CFLAGS -fblocks -O0"
16133     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether additional libraries are required for the Blocks runtime" >&5
16134 $as_echo_n "checking whether additional libraries are required for the Blocks runtime... " >&6; }
16135     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16136 /* end confdefs.h.  */
16137
16138 int
16139 main ()
16140 {
16141
16142         ^{ int j; j=0; }();
16143
16144   ;
16145   return 0;
16146 }
16147 _ACEOF
16148 if ac_fn_c_try_link "$LINENO"; then :
16149
16150         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16151 $as_echo "no" >&6; };
16152
16153 else
16154
16155       saveLIBS="$LIBS"
16156       LIBS="$LIBS -lBlocksRuntime"
16157       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16158 /* end confdefs.h.  */
16159
16160 int
16161 main ()
16162 {
16163
16164         ^{ int k; k=0; }();
16165
16166   ;
16167   return 0;
16168 }
16169 _ACEOF
16170 if ac_fn_c_try_link "$LINENO"; then :
16171
16172         { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lBlocksRuntime" >&5
16173 $as_echo "-lBlocksRuntime" >&6; }
16174
16175 else
16176
16177         as_fn_error "can't find Blocks runtime" "$LINENO" 5
16178
16179 fi
16180 rm -f core conftest.err conftest.$ac_objext \
16181     conftest$ac_exeext conftest.$ac_ext
16182
16183 fi
16184 rm -f core conftest.err conftest.$ac_objext \
16185     conftest$ac_exeext conftest.$ac_ext
16186     CFLAGS="$saveCFLAGS"
16187     have_cblocks=true
16188
16189 else
16190
16191     CBLOCKS_FLAGS=""
16192     have_cblocks=false
16193
16194 fi
16195  if $have_cblocks; then
16196   HAVE_CBLOCKS_TRUE=
16197   HAVE_CBLOCKS_FALSE='#'
16198 else
16199   HAVE_CBLOCKS_TRUE='#'
16200   HAVE_CBLOCKS_FALSE=
16201 fi
16202
16203
16204
16205 #
16206 # Because a different C++ compiler may be specified than C compiler, we have
16207 # to do it again for C++.
16208 #
16209 ac_ext=cpp
16210 ac_cpp='$CXXCPP $CPPFLAGS'
16211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16214
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ Blocks support" >&5
16216 $as_echo_n "checking for C++ Blocks support... " >&6; }
16217 if test "${dispatch_cv_cxxblocks+set}" = set; then :
16218   $as_echo_n "(cached) " >&6
16219 else
16220
16221   saveCXXFLAGS="$CXXFLAGS"
16222   CXXFLAGS="$CXXFLAGS -fblocks"
16223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16224 /* end confdefs.h.  */
16225
16226 int
16227 main ()
16228 {
16229 (void)^{int i; i = 0; }();
16230   ;
16231   return 0;
16232 }
16233 _ACEOF
16234 if ac_fn_cxx_try_compile "$LINENO"; then :
16235
16236     CXXFLAGS="$saveCXXFLAGS"
16237     dispatch_cv_cxxblocks="-fblocks"
16238
16239 else
16240
16241     CXXFLAGS="$saveCXXFLAGS"
16242     dispatch_cv_cxxblocks="no"
16243
16244 fi
16245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16246
16247 fi
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dispatch_cv_cxxblocks" >&5
16249 $as_echo "$dispatch_cv_cxxblocks" >&6; }
16250
16251 if test "x$dispatch_cv_cxxblocks" != "xno"; then :
16252
16253     CXXBLOCKS_FLAGS="$dispatch_cv_cxxblocks"
16254
16255     saveCXXFLAGS="$CXXFLAGS"
16256     CXXFLAGS="$CXXFLAGS -fblocks -O0"
16257     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether additional libraries are required for the Blocks runtime" >&5
16258 $as_echo_n "checking whether additional libraries are required for the Blocks runtime... " >&6; }
16259     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16260 /* end confdefs.h.  */
16261
16262 int
16263 main ()
16264 {
16265
16266         ^{ int j; j=0; }();
16267
16268   ;
16269   return 0;
16270 }
16271 _ACEOF
16272 if ac_fn_cxx_try_link "$LINENO"; then :
16273
16274         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16275 $as_echo "no" >&6; };
16276
16277 else
16278
16279       saveLIBS="$LIBS"
16280       LIBS="$LIBS -lBlocksRuntime"
16281       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h.  */
16283
16284 int
16285 main ()
16286 {
16287
16288         ^{ int k; k=0; }();
16289
16290   ;
16291   return 0;
16292 }
16293 _ACEOF
16294 if ac_fn_cxx_try_link "$LINENO"; then :
16295
16296         { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lBlocksRuntime" >&5
16297 $as_echo "-lBlocksRuntime" >&6; }
16298
16299 else
16300
16301         as_fn_error "can't find Blocks runtime" "$LINENO" 5
16302
16303 fi
16304 rm -f core conftest.err conftest.$ac_objext \
16305     conftest$ac_exeext conftest.$ac_ext
16306
16307 fi
16308 rm -f core conftest.err conftest.$ac_objext \
16309     conftest$ac_exeext conftest.$ac_ext
16310     CXXFLAGS="$saveCXXFLAGS"
16311     have_cxxblocks=true
16312
16313 else
16314
16315     CXXBLOCKS_FLAGS=""
16316     have_cxxblocks=false
16317
16318 fi
16319 ac_ext=c
16320 ac_cpp='$CPP $CPPFLAGS'
16321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16324
16325  if $have_cxxblocks; then
16326   HAVE_CXXBLOCKS_TRUE=
16327   HAVE_CXXBLOCKS_FALSE='#'
16328 else
16329   HAVE_CXXBLOCKS_TRUE='#'
16330   HAVE_CXXBLOCKS_FALSE=
16331 fi
16332
16333
16334
16335
16336 #
16337 # Temporary: some versions of clang do not mark __builtin_trap() as
16338 # __attribute__((__noreturn__)).  Detect and add if required.
16339 #
16340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16341 /* end confdefs.h.  */
16342
16343   void __attribute__((__noreturn__)) temp(void) { __builtin_trap(); }
16344 int
16345 main ()
16346 {
16347
16348   ;
16349   return 0;
16350 }
16351 _ACEOF
16352 if ac_fn_c_try_compile "$LINENO"; then :
16353
16354
16355 $as_echo "#define HAVE_NORETURN_BUILTIN_TRAP 1" >>confdefs.h
16356
16357
16358 fi
16359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16360
16361 #
16362 # Generate Makefiles.
16363 #
16364 ac_config_files="$ac_config_files Makefile dispatch/Makefile man/Makefile src/Makefile testing/Makefile"
16365
16366 cat >confcache <<\_ACEOF
16367 # This file is a shell script that caches the results of configure
16368 # tests run on this system so they can be shared between configure
16369 # scripts and configure runs, see configure's option --config-cache.
16370 # It is not useful on other systems.  If it contains results you don't
16371 # want to keep, you may remove or edit it.
16372 #
16373 # config.status only pays attention to the cache file if you give it
16374 # the --recheck option to rerun configure.
16375 #
16376 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16377 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16378 # following values.
16379
16380 _ACEOF
16381
16382 # The following way of writing the cache mishandles newlines in values,
16383 # but we know of no workaround that is simple, portable, and efficient.
16384 # So, we kill variables containing newlines.
16385 # Ultrix sh set writes to stderr and can't be redirected directly,
16386 # and sets the high bit in the cache file unless we assign to the vars.
16387 (
16388   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16389     eval ac_val=\$$ac_var
16390     case $ac_val in #(
16391     *${as_nl}*)
16392       case $ac_var in #(
16393       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16394 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16395       esac
16396       case $ac_var in #(
16397       _ | IFS | as_nl) ;; #(
16398       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16399       *) { eval $ac_var=; unset $ac_var;} ;;
16400       esac ;;
16401     esac
16402   done
16403
16404   (set) 2>&1 |
16405     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16406     *${as_nl}ac_space=\ *)
16407       # `set' does not quote correctly, so add quotes: double-quote
16408       # substitution turns \\\\ into \\, and sed turns \\ into \.
16409       sed -n \
16410         "s/'/'\\\\''/g;
16411           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16412       ;; #(
16413     *)
16414       # `set' quotes correctly as required by POSIX, so do not add quotes.
16415       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16416       ;;
16417     esac |
16418     sort
16419 ) |
16420   sed '
16421      /^ac_cv_env_/b end
16422      t clear
16423      :clear
16424      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16425      t end
16426      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16427      :end' >>confcache
16428 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16429   if test -w "$cache_file"; then
16430     test "x$cache_file" != "x/dev/null" &&
16431       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16432 $as_echo "$as_me: updating cache $cache_file" >&6;}
16433     cat confcache >$cache_file
16434   else
16435     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16436 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16437   fi
16438 fi
16439 rm -f confcache
16440
16441 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16442 # Let make expand exec_prefix.
16443 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16444
16445 DEFS=-DHAVE_CONFIG_H
16446
16447 ac_libobjs=
16448 ac_ltlibobjs=
16449 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16450   # 1. Remove the extension, and $U if already installed.
16451   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16452   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16453   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16454   #    will be set to the directory where LIBOBJS objects are built.
16455   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16456   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16457 done
16458 LIBOBJS=$ac_libobjs
16459
16460 LTLIBOBJS=$ac_ltlibobjs
16461
16462
16463 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16464   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16466 fi
16467 if test -z "${USE_LEGACY_API_TRUE}" && test -z "${USE_LEGACY_API_FALSE}"; then
16468   as_fn_error "conditional \"USE_LEGACY_API\" was never defined.
16469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16470 fi
16471 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16472   as_fn_error "conditional \"AMDEP\" was never defined.
16473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16474 fi
16475 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16476   as_fn_error "conditional \"am__fastdepCC\" was never defined.
16477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16478 fi
16479 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16480   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16482 fi
16483  if test -n "$EXEEXT"; then
16484   am__EXEEXT_TRUE=
16485   am__EXEEXT_FALSE='#'
16486 else
16487   am__EXEEXT_TRUE='#'
16488   am__EXEEXT_FALSE=
16489 fi
16490
16491 if test -z "${HAVE_CORESERVICES_TRUE}" && test -z "${HAVE_CORESERVICES_FALSE}"; then
16492   as_fn_error "conditional \"HAVE_CORESERVICES\" was never defined.
16493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16494 fi
16495 if test -z "${USE_MIG_TRUE}" && test -z "${USE_MIG_FALSE}"; then
16496   as_fn_error "conditional \"USE_MIG\" was never defined.
16497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16498 fi
16499 if test -z "${HAVE_POSIX_SPAWN_START_SUSPENDED_TRUE}" && test -z "${HAVE_POSIX_SPAWN_START_SUSPENDED_FALSE}"; then
16500   as_fn_error "conditional \"HAVE_POSIX_SPAWN_START_SUSPENDED\" was never defined.
16501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16502 fi
16503 if test -z "${HAVE_CBLOCKS_TRUE}" && test -z "${HAVE_CBLOCKS_FALSE}"; then
16504   as_fn_error "conditional \"HAVE_CBLOCKS\" was never defined.
16505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16506 fi
16507 if test -z "${HAVE_CXXBLOCKS_TRUE}" && test -z "${HAVE_CXXBLOCKS_FALSE}"; then
16508   as_fn_error "conditional \"HAVE_CXXBLOCKS\" was never defined.
16509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16510 fi
16511
16512 : ${CONFIG_STATUS=./config.status}
16513 ac_write_fail=0
16514 ac_clean_files_save=$ac_clean_files
16515 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16517 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16518 as_write_fail=0
16519 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16520 #! $SHELL
16521 # Generated by $as_me.
16522 # Run this file to recreate the current configuration.
16523 # Compiler output produced by configure, useful for debugging
16524 # configure, is in config.log if it exists.
16525
16526 debug=false
16527 ac_cs_recheck=false
16528 ac_cs_silent=false
16529
16530 SHELL=\${CONFIG_SHELL-$SHELL}
16531 export SHELL
16532 _ASEOF
16533 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16534 ## -------------------- ##
16535 ## M4sh Initialization. ##
16536 ## -------------------- ##
16537
16538 # Be more Bourne compatible
16539 DUALCASE=1; export DUALCASE # for MKS sh
16540 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16541   emulate sh
16542   NULLCMD=:
16543   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16544   # is contrary to our usage.  Disable this feature.
16545   alias -g '${1+"$@"}'='"$@"'
16546   setopt NO_GLOB_SUBST
16547 else
16548   case `(set -o) 2>/dev/null` in #(
16549   *posix*) :
16550     set -o posix ;; #(
16551   *) :
16552      ;;
16553 esac
16554 fi
16555
16556
16557 as_nl='
16558 '
16559 export as_nl
16560 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16561 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16562 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16563 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16564 # Prefer a ksh shell builtin over an external printf program on Solaris,
16565 # but without wasting forks for bash or zsh.
16566 if test -z "$BASH_VERSION$ZSH_VERSION" \
16567     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16568   as_echo='print -r --'
16569   as_echo_n='print -rn --'
16570 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16571   as_echo='printf %s\n'
16572   as_echo_n='printf %s'
16573 else
16574   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16575     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16576     as_echo_n='/usr/ucb/echo -n'
16577   else
16578     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16579     as_echo_n_body='eval
16580       arg=$1;
16581       case $arg in #(
16582       *"$as_nl"*)
16583         expr "X$arg" : "X\\(.*\\)$as_nl";
16584         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16585       esac;
16586       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16587     '
16588     export as_echo_n_body
16589     as_echo_n='sh -c $as_echo_n_body as_echo'
16590   fi
16591   export as_echo_body
16592   as_echo='sh -c $as_echo_body as_echo'
16593 fi
16594
16595 # The user is always right.
16596 if test "${PATH_SEPARATOR+set}" != set; then
16597   PATH_SEPARATOR=:
16598   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16599     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16600       PATH_SEPARATOR=';'
16601   }
16602 fi
16603
16604
16605 # IFS
16606 # We need space, tab and new line, in precisely that order.  Quoting is
16607 # there to prevent editors from complaining about space-tab.
16608 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16609 # splitting by setting IFS to empty value.)
16610 IFS=" ""        $as_nl"
16611
16612 # Find who we are.  Look in the path if we contain no directory separator.
16613 case $0 in #((
16614   *[\\/]* ) as_myself=$0 ;;
16615   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16616 for as_dir in $PATH
16617 do
16618   IFS=$as_save_IFS
16619   test -z "$as_dir" && as_dir=.
16620     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16621   done
16622 IFS=$as_save_IFS
16623
16624      ;;
16625 esac
16626 # We did not find ourselves, most probably we were run as `sh COMMAND'
16627 # in which case we are not to be found in the path.
16628 if test "x$as_myself" = x; then
16629   as_myself=$0
16630 fi
16631 if test ! -f "$as_myself"; then
16632   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16633   exit 1
16634 fi
16635
16636 # Unset variables that we do not need and which cause bugs (e.g. in
16637 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16638 # suppresses any "Segmentation fault" message there.  '((' could
16639 # trigger a bug in pdksh 5.2.14.
16640 for as_var in BASH_ENV ENV MAIL MAILPATH
16641 do eval test x\${$as_var+set} = xset \
16642   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16643 done
16644 PS1='$ '
16645 PS2='> '
16646 PS4='+ '
16647
16648 # NLS nuisances.
16649 LC_ALL=C
16650 export LC_ALL
16651 LANGUAGE=C
16652 export LANGUAGE
16653
16654 # CDPATH.
16655 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16656
16657
16658 # as_fn_error ERROR [LINENO LOG_FD]
16659 # ---------------------------------
16660 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16661 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16662 # script with status $?, using 1 if that was 0.
16663 as_fn_error ()
16664 {
16665   as_status=$?; test $as_status -eq 0 && as_status=1
16666   if test "$3"; then
16667     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16668     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16669   fi
16670   $as_echo "$as_me: error: $1" >&2
16671   as_fn_exit $as_status
16672 } # as_fn_error
16673
16674
16675 # as_fn_set_status STATUS
16676 # -----------------------
16677 # Set $? to STATUS, without forking.
16678 as_fn_set_status ()
16679 {
16680   return $1
16681 } # as_fn_set_status
16682
16683 # as_fn_exit STATUS
16684 # -----------------
16685 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16686 as_fn_exit ()
16687 {
16688   set +e
16689   as_fn_set_status $1
16690   exit $1
16691 } # as_fn_exit
16692
16693 # as_fn_unset VAR
16694 # ---------------
16695 # Portably unset VAR.
16696 as_fn_unset ()
16697 {
16698   { eval $1=; unset $1;}
16699 }
16700 as_unset=as_fn_unset
16701 # as_fn_append VAR VALUE
16702 # ----------------------
16703 # Append the text in VALUE to the end of the definition contained in VAR. Take
16704 # advantage of any shell optimizations that allow amortized linear growth over
16705 # repeated appends, instead of the typical quadratic growth present in naive
16706 # implementations.
16707 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16708   eval 'as_fn_append ()
16709   {
16710     eval $1+=\$2
16711   }'
16712 else
16713   as_fn_append ()
16714   {
16715     eval $1=\$$1\$2
16716   }
16717 fi # as_fn_append
16718
16719 # as_fn_arith ARG...
16720 # ------------------
16721 # Perform arithmetic evaluation on the ARGs, and store the result in the
16722 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16723 # must be portable across $(()) and expr.
16724 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16725   eval 'as_fn_arith ()
16726   {
16727     as_val=$(( $* ))
16728   }'
16729 else
16730   as_fn_arith ()
16731   {
16732     as_val=`expr "$@" || test $? -eq 1`
16733   }
16734 fi # as_fn_arith
16735
16736
16737 if expr a : '\(a\)' >/dev/null 2>&1 &&
16738    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16739   as_expr=expr
16740 else
16741   as_expr=false
16742 fi
16743
16744 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16745   as_basename=basename
16746 else
16747   as_basename=false
16748 fi
16749
16750 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16751   as_dirname=dirname
16752 else
16753   as_dirname=false
16754 fi
16755
16756 as_me=`$as_basename -- "$0" ||
16757 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16758          X"$0" : 'X\(//\)$' \| \
16759          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16760 $as_echo X/"$0" |
16761     sed '/^.*\/\([^/][^/]*\)\/*$/{
16762             s//\1/
16763             q
16764           }
16765           /^X\/\(\/\/\)$/{
16766             s//\1/
16767             q
16768           }
16769           /^X\/\(\/\).*/{
16770             s//\1/
16771             q
16772           }
16773           s/.*/./; q'`
16774
16775 # Avoid depending upon Character Ranges.
16776 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16777 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16778 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16779 as_cr_digits='0123456789'
16780 as_cr_alnum=$as_cr_Letters$as_cr_digits
16781
16782 ECHO_C= ECHO_N= ECHO_T=
16783 case `echo -n x` in #(((((
16784 -n*)
16785   case `echo 'xy\c'` in
16786   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16787   xy)  ECHO_C='\c';;
16788   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16789        ECHO_T=' ';;
16790   esac;;
16791 *)
16792   ECHO_N='-n';;
16793 esac
16794
16795 rm -f conf$$ conf$$.exe conf$$.file
16796 if test -d conf$$.dir; then
16797   rm -f conf$$.dir/conf$$.file
16798 else
16799   rm -f conf$$.dir
16800   mkdir conf$$.dir 2>/dev/null
16801 fi
16802 if (echo >conf$$.file) 2>/dev/null; then
16803   if ln -s conf$$.file conf$$ 2>/dev/null; then
16804     as_ln_s='ln -s'
16805     # ... but there are two gotchas:
16806     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16807     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16808     # In both cases, we have to default to `cp -p'.
16809     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16810       as_ln_s='cp -p'
16811   elif ln conf$$.file conf$$ 2>/dev/null; then
16812     as_ln_s=ln
16813   else
16814     as_ln_s='cp -p'
16815   fi
16816 else
16817   as_ln_s='cp -p'
16818 fi
16819 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16820 rmdir conf$$.dir 2>/dev/null
16821
16822
16823 # as_fn_mkdir_p
16824 # -------------
16825 # Create "$as_dir" as a directory, including parents if necessary.
16826 as_fn_mkdir_p ()
16827 {
16828
16829   case $as_dir in #(
16830   -*) as_dir=./$as_dir;;
16831   esac
16832   test -d "$as_dir" || eval $as_mkdir_p || {
16833     as_dirs=
16834     while :; do
16835       case $as_dir in #(
16836       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16837       *) as_qdir=$as_dir;;
16838       esac
16839       as_dirs="'$as_qdir' $as_dirs"
16840       as_dir=`$as_dirname -- "$as_dir" ||
16841 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16842          X"$as_dir" : 'X\(//\)[^/]' \| \
16843          X"$as_dir" : 'X\(//\)$' \| \
16844          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16845 $as_echo X"$as_dir" |
16846     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16847             s//\1/
16848             q
16849           }
16850           /^X\(\/\/\)[^/].*/{
16851             s//\1/
16852             q
16853           }
16854           /^X\(\/\/\)$/{
16855             s//\1/
16856             q
16857           }
16858           /^X\(\/\).*/{
16859             s//\1/
16860             q
16861           }
16862           s/.*/./; q'`
16863       test -d "$as_dir" && break
16864     done
16865     test -z "$as_dirs" || eval "mkdir $as_dirs"
16866   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16867
16868
16869 } # as_fn_mkdir_p
16870 if mkdir -p . 2>/dev/null; then
16871   as_mkdir_p='mkdir -p "$as_dir"'
16872 else
16873   test -d ./-p && rmdir ./-p
16874   as_mkdir_p=false
16875 fi
16876
16877 if test -x / >/dev/null 2>&1; then
16878   as_test_x='test -x'
16879 else
16880   if ls -dL / >/dev/null 2>&1; then
16881     as_ls_L_option=L
16882   else
16883     as_ls_L_option=
16884   fi
16885   as_test_x='
16886     eval sh -c '\''
16887       if test -d "$1"; then
16888         test -d "$1/.";
16889       else
16890         case $1 in #(
16891         -*)set "./$1";;
16892         esac;
16893         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16894         ???[sx]*):;;*)false;;esac;fi
16895     '\'' sh
16896   '
16897 fi
16898 as_executable_p=$as_test_x
16899
16900 # Sed expression to map a string onto a valid CPP name.
16901 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16902
16903 # Sed expression to map a string onto a valid variable name.
16904 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16905
16906
16907 exec 6>&1
16908 ## ----------------------------------- ##
16909 ## Main body of $CONFIG_STATUS script. ##
16910 ## ----------------------------------- ##
16911 _ASEOF
16912 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16913
16914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16915 # Save the log message, to keep $0 and so on meaningful, and to
16916 # report actual input values of CONFIG_FILES etc. instead of their
16917 # values after options handling.
16918 ac_log="
16919 This file was extended by libdispatch $as_me 1.0, which was
16920 generated by GNU Autoconf 2.65.  Invocation command line was
16921
16922   CONFIG_FILES    = $CONFIG_FILES
16923   CONFIG_HEADERS  = $CONFIG_HEADERS
16924   CONFIG_LINKS    = $CONFIG_LINKS
16925   CONFIG_COMMANDS = $CONFIG_COMMANDS
16926   $ $0 $@
16927
16928 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16929 "
16930
16931 _ACEOF
16932
16933 case $ac_config_files in *"
16934 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16935 esac
16936
16937 case $ac_config_headers in *"
16938 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16939 esac
16940
16941
16942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16943 # Files that config.status was made for.
16944 config_files="$ac_config_files"
16945 config_headers="$ac_config_headers"
16946 config_commands="$ac_config_commands"
16947
16948 _ACEOF
16949
16950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16951 ac_cs_usage="\
16952 \`$as_me' instantiates files and other configuration actions
16953 from templates according to the current configuration.  Unless the files
16954 and actions are specified as TAGs, all are instantiated by default.
16955
16956 Usage: $0 [OPTION]... [TAG]...
16957
16958   -h, --help       print this help, then exit
16959   -V, --version    print version number and configuration settings, then exit
16960       --config     print configuration, then exit
16961   -q, --quiet, --silent
16962                    do not print progress messages
16963   -d, --debug      don't remove temporary files
16964       --recheck    update $as_me by reconfiguring in the same conditions
16965       --file=FILE[:TEMPLATE]
16966                    instantiate the configuration file FILE
16967       --header=FILE[:TEMPLATE]
16968                    instantiate the configuration header FILE
16969
16970 Configuration files:
16971 $config_files
16972
16973 Configuration headers:
16974 $config_headers
16975
16976 Configuration commands:
16977 $config_commands
16978
16979 Report bugs to <libdispatch@macosforge.org>."
16980
16981 _ACEOF
16982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16983 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16984 ac_cs_version="\\
16985 libdispatch config.status 1.0
16986 configured by $0, generated by GNU Autoconf 2.65,
16987   with options \\"\$ac_cs_config\\"
16988
16989 Copyright (C) 2009 Free Software Foundation, Inc.
16990 This config.status script is free software; the Free Software Foundation
16991 gives unlimited permission to copy, distribute and modify it."
16992
16993 ac_pwd='$ac_pwd'
16994 srcdir='$srcdir'
16995 INSTALL='$INSTALL'
16996 MKDIR_P='$MKDIR_P'
16997 AWK='$AWK'
16998 test -n "\$AWK" || AWK=awk
16999 _ACEOF
17000
17001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17002 # The default lists apply if the user does not specify any file.
17003 ac_need_defaults=:
17004 while test $# != 0
17005 do
17006   case $1 in
17007   --*=*)
17008     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17009     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17010     ac_shift=:
17011     ;;
17012   *)
17013     ac_option=$1
17014     ac_optarg=$2
17015     ac_shift=shift
17016     ;;
17017   esac
17018
17019   case $ac_option in
17020   # Handling of the options.
17021   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17022     ac_cs_recheck=: ;;
17023   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17024     $as_echo "$ac_cs_version"; exit ;;
17025   --config | --confi | --conf | --con | --co | --c )
17026     $as_echo "$ac_cs_config"; exit ;;
17027   --debug | --debu | --deb | --de | --d | -d )
17028     debug=: ;;
17029   --file | --fil | --fi | --f )
17030     $ac_shift
17031     case $ac_optarg in
17032     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17033     esac
17034     as_fn_append CONFIG_FILES " '$ac_optarg'"
17035     ac_need_defaults=false;;
17036   --header | --heade | --head | --hea )
17037     $ac_shift
17038     case $ac_optarg in
17039     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17040     esac
17041     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17042     ac_need_defaults=false;;
17043   --he | --h)
17044     # Conflict between --help and --header
17045     as_fn_error "ambiguous option: \`$1'
17046 Try \`$0 --help' for more information.";;
17047   --help | --hel | -h )
17048     $as_echo "$ac_cs_usage"; exit ;;
17049   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17050   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17051     ac_cs_silent=: ;;
17052
17053   # This is an error.
17054   -*) as_fn_error "unrecognized option: \`$1'
17055 Try \`$0 --help' for more information." ;;
17056
17057   *) as_fn_append ac_config_targets " $1"
17058      ac_need_defaults=false ;;
17059
17060   esac
17061   shift
17062 done
17063
17064 ac_configure_extra_args=
17065
17066 if $ac_cs_silent; then
17067   exec 6>/dev/null
17068   ac_configure_extra_args="$ac_configure_extra_args --silent"
17069 fi
17070
17071 _ACEOF
17072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17073 if \$ac_cs_recheck; then
17074   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17075   shift
17076   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17077   CONFIG_SHELL='$SHELL'
17078   export CONFIG_SHELL
17079   exec "\$@"
17080 fi
17081
17082 _ACEOF
17083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17084 exec 5>>config.log
17085 {
17086   echo
17087   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17088 ## Running $as_me. ##
17089 _ASBOX
17090   $as_echo "$ac_log"
17091 } >&5
17092
17093 _ACEOF
17094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17095 #
17096 # INIT-COMMANDS
17097 #
17098
17099
17100 # The HP-UX ksh and POSIX shell print the target directory to stdout
17101 # if CDPATH is set.
17102 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17103
17104 sed_quote_subst='$sed_quote_subst'
17105 double_quote_subst='$double_quote_subst'
17106 delay_variable_subst='$delay_variable_subst'
17107 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17108 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17109 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17110 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17111 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17112 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17113 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17114 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17115 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17116 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17117 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17118 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17119 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17120 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17121 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17122 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17123 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17124 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17125 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17126 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17127 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17128 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17129 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17130 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17131 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17132 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17133 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17134 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17135 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17136 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17137 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17138 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17139 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17140 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17141 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17142 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17143 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17144 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17145 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17146 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17147 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17148 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17149 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17150 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17151 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"`'
17152 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"`'
17153 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17154 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17155 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17156 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17157 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17158 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17159 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17160 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17161 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17162 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17163 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17164 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17165 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17166 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17167 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17168 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17169 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17170 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17171 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17172 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17173 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17174 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17175 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17176 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17177 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17178 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17179 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17180 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17181 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17182 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17183 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17184 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17185 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17186 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17187 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17188 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17189 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17190 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17191 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17192 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17193 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17194 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17195 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17196 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17197 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17198 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17199 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17200 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17201 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17202 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17203 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17204 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17205 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17206 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17207 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17208 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17209 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17210 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17211 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17212 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17213 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17214 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17215 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17216 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17217 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17218 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17219 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17220 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17221 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17222 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17223 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17224 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17225 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17226 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17227 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17228 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17229 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17230 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17231 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17232 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17233 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17234 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17235 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17236 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17237 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17238 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17239 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17240 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17241 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17242 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17243 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17244 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17245 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17246 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17247 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17248 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17249 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17250 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17251 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17252 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17253 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17254 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17255 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17256 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17257 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17258 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17259 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17260 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17261 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17262 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17263 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17264 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17265 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17266 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17267 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17268 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17269 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17270 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17271 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17272 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17273 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17274 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17275 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17276 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17277 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17278
17279 LTCC='$LTCC'
17280 LTCFLAGS='$LTCFLAGS'
17281 compiler='$compiler_DEFAULT'
17282
17283 # Quote evaled strings.
17284 for var in SED \
17285 GREP \
17286 EGREP \
17287 FGREP \
17288 LD \
17289 NM \
17290 LN_S \
17291 lt_SP2NL \
17292 lt_NL2SP \
17293 reload_flag \
17294 OBJDUMP \
17295 deplibs_check_method \
17296 file_magic_cmd \
17297 AR \
17298 AR_FLAGS \
17299 STRIP \
17300 RANLIB \
17301 CC \
17302 CFLAGS \
17303 compiler \
17304 lt_cv_sys_global_symbol_pipe \
17305 lt_cv_sys_global_symbol_to_cdecl \
17306 lt_cv_sys_global_symbol_to_c_name_address \
17307 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17308 SHELL \
17309 ECHO \
17310 lt_prog_compiler_no_builtin_flag \
17311 lt_prog_compiler_wl \
17312 lt_prog_compiler_pic \
17313 lt_prog_compiler_static \
17314 lt_cv_prog_compiler_c_o \
17315 need_locks \
17316 DSYMUTIL \
17317 NMEDIT \
17318 LIPO \
17319 OTOOL \
17320 OTOOL64 \
17321 shrext_cmds \
17322 export_dynamic_flag_spec \
17323 whole_archive_flag_spec \
17324 compiler_needs_object \
17325 with_gnu_ld \
17326 allow_undefined_flag \
17327 no_undefined_flag \
17328 hardcode_libdir_flag_spec \
17329 hardcode_libdir_flag_spec_ld \
17330 hardcode_libdir_separator \
17331 fix_srcfile_path \
17332 exclude_expsyms \
17333 include_expsyms \
17334 file_list_spec \
17335 variables_saved_for_relink \
17336 libname_spec \
17337 library_names_spec \
17338 soname_spec \
17339 finish_eval \
17340 old_striplib \
17341 striplib \
17342 compiler_lib_search_dirs \
17343 predep_objects \
17344 postdep_objects \
17345 predeps \
17346 postdeps \
17347 compiler_lib_search_path \
17348 LD_CXX \
17349 compiler_CXX \
17350 lt_prog_compiler_no_builtin_flag_CXX \
17351 lt_prog_compiler_wl_CXX \
17352 lt_prog_compiler_pic_CXX \
17353 lt_prog_compiler_static_CXX \
17354 lt_cv_prog_compiler_c_o_CXX \
17355 export_dynamic_flag_spec_CXX \
17356 whole_archive_flag_spec_CXX \
17357 compiler_needs_object_CXX \
17358 with_gnu_ld_CXX \
17359 allow_undefined_flag_CXX \
17360 no_undefined_flag_CXX \
17361 hardcode_libdir_flag_spec_CXX \
17362 hardcode_libdir_flag_spec_ld_CXX \
17363 hardcode_libdir_separator_CXX \
17364 fix_srcfile_path_CXX \
17365 exclude_expsyms_CXX \
17366 include_expsyms_CXX \
17367 file_list_spec_CXX \
17368 compiler_lib_search_dirs_CXX \
17369 predep_objects_CXX \
17370 postdep_objects_CXX \
17371 predeps_CXX \
17372 postdeps_CXX \
17373 compiler_lib_search_path_CXX; do
17374     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17375     *[\\\\\\\`\\"\\\$]*)
17376       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17377       ;;
17378     *)
17379       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17380       ;;
17381     esac
17382 done
17383
17384 # Double-quote double-evaled strings.
17385 for var in reload_cmds \
17386 old_postinstall_cmds \
17387 old_postuninstall_cmds \
17388 old_archive_cmds \
17389 extract_expsyms_cmds \
17390 old_archive_from_new_cmds \
17391 old_archive_from_expsyms_cmds \
17392 archive_cmds \
17393 archive_expsym_cmds \
17394 module_cmds \
17395 module_expsym_cmds \
17396 export_symbols_cmds \
17397 prelink_cmds \
17398 postinstall_cmds \
17399 postuninstall_cmds \
17400 finish_cmds \
17401 sys_lib_search_path_spec \
17402 sys_lib_dlsearch_path_spec \
17403 old_archive_cmds_CXX \
17404 old_archive_from_new_cmds_CXX \
17405 old_archive_from_expsyms_cmds_CXX \
17406 archive_cmds_CXX \
17407 archive_expsym_cmds_CXX \
17408 module_cmds_CXX \
17409 module_expsym_cmds_CXX \
17410 export_symbols_cmds_CXX \
17411 prelink_cmds_CXX; do
17412     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17413     *[\\\\\\\`\\"\\\$]*)
17414       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17415       ;;
17416     *)
17417       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17418       ;;
17419     esac
17420 done
17421
17422 # Fix-up fallback echo if it was mangled by the above quoting rules.
17423 case \$lt_ECHO in
17424 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17425   ;;
17426 esac
17427
17428 ac_aux_dir='$ac_aux_dir'
17429 xsi_shell='$xsi_shell'
17430 lt_shell_append='$lt_shell_append'
17431
17432 # See if we are running on zsh, and set the options which allow our
17433 # commands through without removal of \ escapes INIT.
17434 if test -n "\${ZSH_VERSION+set}" ; then
17435    setopt NO_GLOB_SUBST
17436 fi
17437
17438
17439     PACKAGE='$PACKAGE'
17440     VERSION='$VERSION'
17441     TIMESTAMP='$TIMESTAMP'
17442     RM='$RM'
17443     ofile='$ofile'
17444
17445
17446
17447
17448
17449 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17450
17451 _ACEOF
17452
17453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17454
17455 # Handling of arguments.
17456 for ac_config_target in $ac_config_targets
17457 do
17458   case $ac_config_target in
17459     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
17460     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17461     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17462     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17463     "dispatch/Makefile") CONFIG_FILES="$CONFIG_FILES dispatch/Makefile" ;;
17464     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17465     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17466     "testing/Makefile") CONFIG_FILES="$CONFIG_FILES testing/Makefile" ;;
17467
17468   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17469   esac
17470 done
17471
17472
17473 # If the user did not use the arguments to specify the items to instantiate,
17474 # then the envvar interface is used.  Set only those that are not.
17475 # We use the long form for the default assignment because of an extremely
17476 # bizarre bug on SunOS 4.1.3.
17477 if $ac_need_defaults; then
17478   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17479   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17480   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17481 fi
17482
17483 # Have a temporary directory for convenience.  Make it in the build tree
17484 # simply because there is no reason against having it here, and in addition,
17485 # creating and moving files from /tmp can sometimes cause problems.
17486 # Hook for its removal unless debugging.
17487 # Note that there is a small window in which the directory will not be cleaned:
17488 # after its creation but before its name has been assigned to `$tmp'.
17489 $debug ||
17490 {
17491   tmp=
17492   trap 'exit_status=$?
17493   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17494 ' 0
17495   trap 'as_fn_exit 1' 1 2 13 15
17496 }
17497 # Create a (secure) tmp directory for tmp files.
17498
17499 {
17500   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17501   test -n "$tmp" && test -d "$tmp"
17502 }  ||
17503 {
17504   tmp=./conf$$-$RANDOM
17505   (umask 077 && mkdir "$tmp")
17506 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17507
17508 # Set up the scripts for CONFIG_FILES section.
17509 # No need to generate them if there are no CONFIG_FILES.
17510 # This happens for instance with `./config.status config.h'.
17511 if test -n "$CONFIG_FILES"; then
17512
17513
17514 ac_cr=`echo X | tr X '\015'`
17515 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17516 # But we know of no other shell where ac_cr would be empty at this
17517 # point, so we can use a bashism as a fallback.
17518 if test "x$ac_cr" = x; then
17519   eval ac_cr=\$\'\\r\'
17520 fi
17521 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17522 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17523   ac_cs_awk_cr='\r'
17524 else
17525   ac_cs_awk_cr=$ac_cr
17526 fi
17527
17528 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17529 _ACEOF
17530
17531
17532 {
17533   echo "cat >conf$$subs.awk <<_ACEOF" &&
17534   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17535   echo "_ACEOF"
17536 } >conf$$subs.sh ||
17537   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17538 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17539 ac_delim='%!_!# '
17540 for ac_last_try in false false false false false :; do
17541   . ./conf$$subs.sh ||
17542     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17543
17544   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17545   if test $ac_delim_n = $ac_delim_num; then
17546     break
17547   elif $ac_last_try; then
17548     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17549   else
17550     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17551   fi
17552 done
17553 rm -f conf$$subs.sh
17554
17555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17556 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17557 _ACEOF
17558 sed -n '
17559 h
17560 s/^/S["/; s/!.*/"]=/
17561 p
17562 g
17563 s/^[^!]*!//
17564 :repl
17565 t repl
17566 s/'"$ac_delim"'$//
17567 t delim
17568 :nl
17569 h
17570 s/\(.\{148\}\)..*/\1/
17571 t more1
17572 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17573 p
17574 n
17575 b repl
17576 :more1
17577 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17578 p
17579 g
17580 s/.\{148\}//
17581 t nl
17582 :delim
17583 h
17584 s/\(.\{148\}\)..*/\1/
17585 t more2
17586 s/["\\]/\\&/g; s/^/"/; s/$/"/
17587 p
17588 b
17589 :more2
17590 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17591 p
17592 g
17593 s/.\{148\}//
17594 t delim
17595 ' <conf$$subs.awk | sed '
17596 /^[^""]/{
17597   N
17598   s/\n//
17599 }
17600 ' >>$CONFIG_STATUS || ac_write_fail=1
17601 rm -f conf$$subs.awk
17602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17603 _ACAWK
17604 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17605   for (key in S) S_is_set[key] = 1
17606   FS = "\a"
17607
17608 }
17609 {
17610   line = $ 0
17611   nfields = split(line, field, "@")
17612   substed = 0
17613   len = length(field[1])
17614   for (i = 2; i < nfields; i++) {
17615     key = field[i]
17616     keylen = length(key)
17617     if (S_is_set[key]) {
17618       value = S[key]
17619       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17620       len += length(value) + length(field[++i])
17621       substed = 1
17622     } else
17623       len += 1 + keylen
17624   }
17625
17626   print line
17627 }
17628
17629 _ACAWK
17630 _ACEOF
17631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17632 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17633   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17634 else
17635   cat
17636 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17637   || as_fn_error "could not setup config files machinery" "$LINENO" 5
17638 _ACEOF
17639
17640 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17641 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17642 # trailing colons and then remove the whole line if VPATH becomes empty
17643 # (actually we leave an empty line to preserve line numbers).
17644 if test "x$srcdir" = x.; then
17645   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17646 s/:*\$(srcdir):*/:/
17647 s/:*\${srcdir}:*/:/
17648 s/:*@srcdir@:*/:/
17649 s/^\([^=]*=[     ]*\):*/\1/
17650 s/:*$//
17651 s/^[^=]*=[       ]*$//
17652 }'
17653 fi
17654
17655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17656 fi # test -n "$CONFIG_FILES"
17657
17658 # Set up the scripts for CONFIG_HEADERS section.
17659 # No need to generate them if there are no CONFIG_HEADERS.
17660 # This happens for instance with `./config.status Makefile'.
17661 if test -n "$CONFIG_HEADERS"; then
17662 cat >"$tmp/defines.awk" <<\_ACAWK ||
17663 BEGIN {
17664 _ACEOF
17665
17666 # Transform confdefs.h into an awk script `defines.awk', embedded as
17667 # here-document in config.status, that substitutes the proper values into
17668 # config.h.in to produce config.h.
17669
17670 # Create a delimiter string that does not exist in confdefs.h, to ease
17671 # handling of long lines.
17672 ac_delim='%!_!# '
17673 for ac_last_try in false false :; do
17674   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17675   if test -z "$ac_t"; then
17676     break
17677   elif $ac_last_try; then
17678     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17679   else
17680     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17681   fi
17682 done
17683
17684 # For the awk script, D is an array of macro values keyed by name,
17685 # likewise P contains macro parameters if any.  Preserve backslash
17686 # newline sequences.
17687
17688 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17689 sed -n '
17690 s/.\{148\}/&'"$ac_delim"'/g
17691 t rset
17692 :rset
17693 s/^[     ]*#[    ]*define[       ][      ]*/ /
17694 t def
17695 d
17696 :def
17697 s/\\$//
17698 t bsnl
17699 s/["\\]/\\&/g
17700 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17701 D["\1"]=" \3"/p
17702 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17703 d
17704 :bsnl
17705 s/["\\]/\\&/g
17706 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17707 D["\1"]=" \3\\\\\\n"\\/p
17708 t cont
17709 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17710 t cont
17711 d
17712 :cont
17713 n
17714 s/.\{148\}/&'"$ac_delim"'/g
17715 t clear
17716 :clear
17717 s/\\$//
17718 t bsnlc
17719 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17720 d
17721 :bsnlc
17722 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17723 b cont
17724 ' <confdefs.h | sed '
17725 s/'"$ac_delim"'/"\\\
17726 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17727
17728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17729   for (key in D) D_is_set[key] = 1
17730   FS = "\a"
17731 }
17732 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17733   line = \$ 0
17734   split(line, arg, " ")
17735   if (arg[1] == "#") {
17736     defundef = arg[2]
17737     mac1 = arg[3]
17738   } else {
17739     defundef = substr(arg[1], 2)
17740     mac1 = arg[2]
17741   }
17742   split(mac1, mac2, "(") #)
17743   macro = mac2[1]
17744   prefix = substr(line, 1, index(line, defundef) - 1)
17745   if (D_is_set[macro]) {
17746     # Preserve the white space surrounding the "#".
17747     print prefix "define", macro P[macro] D[macro]
17748     next
17749   } else {
17750     # Replace #undef with comments.  This is necessary, for example,
17751     # in the case of _POSIX_SOURCE, which is predefined and required
17752     # on some systems where configure will not decide to define it.
17753     if (defundef == "undef") {
17754       print "/*", prefix defundef, macro, "*/"
17755       next
17756     }
17757   }
17758 }
17759 { print }
17760 _ACAWK
17761 _ACEOF
17762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17763   as_fn_error "could not setup config headers machinery" "$LINENO" 5
17764 fi # test -n "$CONFIG_HEADERS"
17765
17766
17767 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17768 shift
17769 for ac_tag
17770 do
17771   case $ac_tag in
17772   :[FHLC]) ac_mode=$ac_tag; continue;;
17773   esac
17774   case $ac_mode$ac_tag in
17775   :[FHL]*:*);;
17776   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17777   :[FH]-) ac_tag=-:-;;
17778   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17779   esac
17780   ac_save_IFS=$IFS
17781   IFS=:
17782   set x $ac_tag
17783   IFS=$ac_save_IFS
17784   shift
17785   ac_file=$1
17786   shift
17787
17788   case $ac_mode in
17789   :L) ac_source=$1;;
17790   :[FH])
17791     ac_file_inputs=
17792     for ac_f
17793     do
17794       case $ac_f in
17795       -) ac_f="$tmp/stdin";;
17796       *) # Look for the file first in the build tree, then in the source tree
17797          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17798          # because $ac_f cannot contain `:'.
17799          test -f "$ac_f" ||
17800            case $ac_f in
17801            [\\/$]*) false;;
17802            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17803            esac ||
17804            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17805       esac
17806       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17807       as_fn_append ac_file_inputs " '$ac_f'"
17808     done
17809
17810     # Let's still pretend it is `configure' which instantiates (i.e., don't
17811     # use $as_me), people would be surprised to read:
17812     #    /* config.h.  Generated by config.status.  */
17813     configure_input='Generated from '`
17814           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17815         `' by configure.'
17816     if test x"$ac_file" != x-; then
17817       configure_input="$ac_file.  $configure_input"
17818       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17819 $as_echo "$as_me: creating $ac_file" >&6;}
17820     fi
17821     # Neutralize special characters interpreted by sed in replacement strings.
17822     case $configure_input in #(
17823     *\&* | *\|* | *\\* )
17824        ac_sed_conf_input=`$as_echo "$configure_input" |
17825        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17826     *) ac_sed_conf_input=$configure_input;;
17827     esac
17828
17829     case $ac_tag in
17830     *:-:* | *:-) cat >"$tmp/stdin" \
17831       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17832     esac
17833     ;;
17834   esac
17835
17836   ac_dir=`$as_dirname -- "$ac_file" ||
17837 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17838          X"$ac_file" : 'X\(//\)[^/]' \| \
17839          X"$ac_file" : 'X\(//\)$' \| \
17840          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17841 $as_echo X"$ac_file" |
17842     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17843             s//\1/
17844             q
17845           }
17846           /^X\(\/\/\)[^/].*/{
17847             s//\1/
17848             q
17849           }
17850           /^X\(\/\/\)$/{
17851             s//\1/
17852             q
17853           }
17854           /^X\(\/\).*/{
17855             s//\1/
17856             q
17857           }
17858           s/.*/./; q'`
17859   as_dir="$ac_dir"; as_fn_mkdir_p
17860   ac_builddir=.
17861
17862 case "$ac_dir" in
17863 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17864 *)
17865   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17866   # A ".." for each directory in $ac_dir_suffix.
17867   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17868   case $ac_top_builddir_sub in
17869   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17870   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17871   esac ;;
17872 esac
17873 ac_abs_top_builddir=$ac_pwd
17874 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17875 # for backward compatibility:
17876 ac_top_builddir=$ac_top_build_prefix
17877
17878 case $srcdir in
17879   .)  # We are building in place.
17880     ac_srcdir=.
17881     ac_top_srcdir=$ac_top_builddir_sub
17882     ac_abs_top_srcdir=$ac_pwd ;;
17883   [\\/]* | ?:[\\/]* )  # Absolute name.
17884     ac_srcdir=$srcdir$ac_dir_suffix;
17885     ac_top_srcdir=$srcdir
17886     ac_abs_top_srcdir=$srcdir ;;
17887   *) # Relative name.
17888     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17889     ac_top_srcdir=$ac_top_build_prefix$srcdir
17890     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17891 esac
17892 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17893
17894
17895   case $ac_mode in
17896   :F)
17897   #
17898   # CONFIG_FILE
17899   #
17900
17901   case $INSTALL in
17902   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17903   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17904   esac
17905   ac_MKDIR_P=$MKDIR_P
17906   case $MKDIR_P in
17907   [\\/$]* | ?:[\\/]* ) ;;
17908   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17909   esac
17910 _ACEOF
17911
17912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17913 # If the template does not know about datarootdir, expand it.
17914 # FIXME: This hack should be removed a few years after 2.60.
17915 ac_datarootdir_hack=; ac_datarootdir_seen=
17916 ac_sed_dataroot='
17917 /datarootdir/ {
17918   p
17919   q
17920 }
17921 /@datadir@/p
17922 /@docdir@/p
17923 /@infodir@/p
17924 /@localedir@/p
17925 /@mandir@/p'
17926 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17927 *datarootdir*) ac_datarootdir_seen=yes;;
17928 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17929   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17930 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17931 _ACEOF
17932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17933   ac_datarootdir_hack='
17934   s&@datadir@&$datadir&g
17935   s&@docdir@&$docdir&g
17936   s&@infodir@&$infodir&g
17937   s&@localedir@&$localedir&g
17938   s&@mandir@&$mandir&g
17939   s&\\\${datarootdir}&$datarootdir&g' ;;
17940 esac
17941 _ACEOF
17942
17943 # Neutralize VPATH when `$srcdir' = `.'.
17944 # Shell code in configure.ac might set extrasub.
17945 # FIXME: do we really want to maintain this feature?
17946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17947 ac_sed_extra="$ac_vpsub
17948 $extrasub
17949 _ACEOF
17950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17951 :t
17952 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17953 s|@configure_input@|$ac_sed_conf_input|;t t
17954 s&@top_builddir@&$ac_top_builddir_sub&;t t
17955 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17956 s&@srcdir@&$ac_srcdir&;t t
17957 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17958 s&@top_srcdir@&$ac_top_srcdir&;t t
17959 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17960 s&@builddir@&$ac_builddir&;t t
17961 s&@abs_builddir@&$ac_abs_builddir&;t t
17962 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17963 s&@INSTALL@&$ac_INSTALL&;t t
17964 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17965 $ac_datarootdir_hack
17966 "
17967 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17968   || as_fn_error "could not create $ac_file" "$LINENO" 5
17969
17970 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17971   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17972   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17973   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17974 which seems to be undefined.  Please make sure it is defined." >&5
17975 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17976 which seems to be undefined.  Please make sure it is defined." >&2;}
17977
17978   rm -f "$tmp/stdin"
17979   case $ac_file in
17980   -) cat "$tmp/out" && rm -f "$tmp/out";;
17981   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17982   esac \
17983   || as_fn_error "could not create $ac_file" "$LINENO" 5
17984  ;;
17985   :H)
17986   #
17987   # CONFIG_HEADER
17988   #
17989   if test x"$ac_file" != x-; then
17990     {
17991       $as_echo "/* $configure_input  */" \
17992       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17993     } >"$tmp/config.h" \
17994       || as_fn_error "could not create $ac_file" "$LINENO" 5
17995     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17996       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17997 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17998     else
17999       rm -f "$ac_file"
18000       mv "$tmp/config.h" "$ac_file" \
18001         || as_fn_error "could not create $ac_file" "$LINENO" 5
18002     fi
18003   else
18004     $as_echo "/* $configure_input  */" \
18005       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18006       || as_fn_error "could not create -" "$LINENO" 5
18007   fi
18008 # Compute "$ac_file"'s index in $config_headers.
18009 _am_arg="$ac_file"
18010 _am_stamp_count=1
18011 for _am_header in $config_headers :; do
18012   case $_am_header in
18013     $_am_arg | $_am_arg:* )
18014       break ;;
18015     * )
18016       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18017   esac
18018 done
18019 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18020 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18021          X"$_am_arg" : 'X\(//\)[^/]' \| \
18022          X"$_am_arg" : 'X\(//\)$' \| \
18023          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18024 $as_echo X"$_am_arg" |
18025     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18026             s//\1/
18027             q
18028           }
18029           /^X\(\/\/\)[^/].*/{
18030             s//\1/
18031             q
18032           }
18033           /^X\(\/\/\)$/{
18034             s//\1/
18035             q
18036           }
18037           /^X\(\/\).*/{
18038             s//\1/
18039             q
18040           }
18041           s/.*/./; q'`/stamp-h$_am_stamp_count
18042  ;;
18043
18044   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18045 $as_echo "$as_me: executing $ac_file commands" >&6;}
18046  ;;
18047   esac
18048
18049
18050   case $ac_file$ac_mode in
18051     "libtool":C)
18052
18053     # See if we are running on zsh, and set the options which allow our
18054     # commands through without removal of \ escapes.
18055     if test -n "${ZSH_VERSION+set}" ; then
18056       setopt NO_GLOB_SUBST
18057     fi
18058
18059     cfgfile="${ofile}T"
18060     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18061     $RM "$cfgfile"
18062
18063     cat <<_LT_EOF >> "$cfgfile"
18064 #! $SHELL
18065
18066 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18067 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18068 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18069 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18070 #
18071 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18072 #                 2006, 2007, 2008 Free Software Foundation, Inc.
18073 #   Written by Gordon Matzigkeit, 1996
18074 #
18075 #   This file is part of GNU Libtool.
18076 #
18077 # GNU Libtool is free software; you can redistribute it and/or
18078 # modify it under the terms of the GNU General Public License as
18079 # published by the Free Software Foundation; either version 2 of
18080 # the License, or (at your option) any later version.
18081 #
18082 # As a special exception to the GNU General Public License,
18083 # if you distribute this file as part of a program or library that
18084 # is built using GNU Libtool, you may include this file under the
18085 # same distribution terms that you use for the rest of that program.
18086 #
18087 # GNU Libtool is distributed in the hope that it will be useful,
18088 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18089 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18090 # GNU General Public License for more details.
18091 #
18092 # You should have received a copy of the GNU General Public License
18093 # along with GNU Libtool; see the file COPYING.  If not, a copy
18094 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18095 # obtained by writing to the Free Software Foundation, Inc.,
18096 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18097
18098
18099 # The names of the tagged configurations supported by this script.
18100 available_tags="CXX "
18101
18102 # ### BEGIN LIBTOOL CONFIG
18103
18104 # Which release of libtool.m4 was used?
18105 macro_version=$macro_version
18106 macro_revision=$macro_revision
18107
18108 # Whether or not to build shared libraries.
18109 build_libtool_libs=$enable_shared
18110
18111 # Whether or not to build static libraries.
18112 build_old_libs=$enable_static
18113
18114 # What type of objects to build.
18115 pic_mode=$pic_mode
18116
18117 # Whether or not to optimize for fast installation.
18118 fast_install=$enable_fast_install
18119
18120 # The host system.
18121 host_alias=$host_alias
18122 host=$host
18123 host_os=$host_os
18124
18125 # The build system.
18126 build_alias=$build_alias
18127 build=$build
18128 build_os=$build_os
18129
18130 # A sed program that does not truncate output.
18131 SED=$lt_SED
18132
18133 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18134 Xsed="\$SED -e 1s/^X//"
18135
18136 # A grep program that handles long lines.
18137 GREP=$lt_GREP
18138
18139 # An ERE matcher.
18140 EGREP=$lt_EGREP
18141
18142 # A literal string matcher.
18143 FGREP=$lt_FGREP
18144
18145 # A BSD- or MS-compatible name lister.
18146 NM=$lt_NM
18147
18148 # Whether we need soft or hard links.
18149 LN_S=$lt_LN_S
18150
18151 # What is the maximum length of a command?
18152 max_cmd_len=$max_cmd_len
18153
18154 # Object file suffix (normally "o").
18155 objext=$ac_objext
18156
18157 # Executable file suffix (normally "").
18158 exeext=$exeext
18159
18160 # whether the shell understands "unset".
18161 lt_unset=$lt_unset
18162
18163 # turn spaces into newlines.
18164 SP2NL=$lt_lt_SP2NL
18165
18166 # turn newlines into spaces.
18167 NL2SP=$lt_lt_NL2SP
18168
18169 # How to create reloadable object files.
18170 reload_flag=$lt_reload_flag
18171 reload_cmds=$lt_reload_cmds
18172
18173 # An object symbol dumper.
18174 OBJDUMP=$lt_OBJDUMP
18175
18176 # Method to check whether dependent libraries are shared objects.
18177 deplibs_check_method=$lt_deplibs_check_method
18178
18179 # Command to use when deplibs_check_method == "file_magic".
18180 file_magic_cmd=$lt_file_magic_cmd
18181
18182 # The archiver.
18183 AR=$lt_AR
18184 AR_FLAGS=$lt_AR_FLAGS
18185
18186 # A symbol stripping program.
18187 STRIP=$lt_STRIP
18188
18189 # Commands used to install an old-style archive.
18190 RANLIB=$lt_RANLIB
18191 old_postinstall_cmds=$lt_old_postinstall_cmds
18192 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18193
18194 # A C compiler.
18195 LTCC=$lt_CC
18196
18197 # LTCC compiler flags.
18198 LTCFLAGS=$lt_CFLAGS
18199
18200 # Take the output of nm and produce a listing of raw symbols and C names.
18201 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18202
18203 # Transform the output of nm in a proper C declaration.
18204 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18205
18206 # Transform the output of nm in a C name address pair.
18207 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18208
18209 # Transform the output of nm in a C name address pair when lib prefix is needed.
18210 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18211
18212 # The name of the directory that contains temporary libtool files.
18213 objdir=$objdir
18214
18215 # Shell to use when invoking shell scripts.
18216 SHELL=$lt_SHELL
18217
18218 # An echo program that does not interpret backslashes.
18219 ECHO=$lt_ECHO
18220
18221 # Used to examine libraries when file_magic_cmd begins with "file".
18222 MAGIC_CMD=$MAGIC_CMD
18223
18224 # Must we lock files when doing compilation?
18225 need_locks=$lt_need_locks
18226
18227 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18228 DSYMUTIL=$lt_DSYMUTIL
18229
18230 # Tool to change global to local symbols on Mac OS X.
18231 NMEDIT=$lt_NMEDIT
18232
18233 # Tool to manipulate fat objects and archives on Mac OS X.
18234 LIPO=$lt_LIPO
18235
18236 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18237 OTOOL=$lt_OTOOL
18238
18239 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18240 OTOOL64=$lt_OTOOL64
18241
18242 # Old archive suffix (normally "a").
18243 libext=$libext
18244
18245 # Shared library suffix (normally ".so").
18246 shrext_cmds=$lt_shrext_cmds
18247
18248 # The commands to extract the exported symbol list from a shared archive.
18249 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18250
18251 # Variables whose values should be saved in libtool wrapper scripts and
18252 # restored at link time.
18253 variables_saved_for_relink=$lt_variables_saved_for_relink
18254
18255 # Do we need the "lib" prefix for modules?
18256 need_lib_prefix=$need_lib_prefix
18257
18258 # Do we need a version for libraries?
18259 need_version=$need_version
18260
18261 # Library versioning type.
18262 version_type=$version_type
18263
18264 # Shared library runtime path variable.
18265 runpath_var=$runpath_var
18266
18267 # Shared library path variable.
18268 shlibpath_var=$shlibpath_var
18269
18270 # Is shlibpath searched before the hard-coded library search path?
18271 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18272
18273 # Format of library name prefix.
18274 libname_spec=$lt_libname_spec
18275
18276 # List of archive names.  First name is the real one, the rest are links.
18277 # The last name is the one that the linker finds with -lNAME
18278 library_names_spec=$lt_library_names_spec
18279
18280 # The coded name of the library, if different from the real name.
18281 soname_spec=$lt_soname_spec
18282
18283 # Command to use after installation of a shared archive.
18284 postinstall_cmds=$lt_postinstall_cmds
18285
18286 # Command to use after uninstallation of a shared archive.
18287 postuninstall_cmds=$lt_postuninstall_cmds
18288
18289 # Commands used to finish a libtool library installation in a directory.
18290 finish_cmds=$lt_finish_cmds
18291
18292 # As "finish_cmds", except a single script fragment to be evaled but
18293 # not shown.
18294 finish_eval=$lt_finish_eval
18295
18296 # Whether we should hardcode library paths into libraries.
18297 hardcode_into_libs=$hardcode_into_libs
18298
18299 # Compile-time system search path for libraries.
18300 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18301
18302 # Run-time system search path for libraries.
18303 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18304
18305 # Whether dlopen is supported.
18306 dlopen_support=$enable_dlopen
18307
18308 # Whether dlopen of programs is supported.
18309 dlopen_self=$enable_dlopen_self
18310
18311 # Whether dlopen of statically linked programs is supported.
18312 dlopen_self_static=$enable_dlopen_self_static
18313
18314 # Commands to strip libraries.
18315 old_striplib=$lt_old_striplib
18316 striplib=$lt_striplib
18317
18318
18319 # The linker used to build libraries.
18320 LD=$lt_LD
18321
18322 # Commands used to build an old-style archive.
18323 old_archive_cmds=$lt_old_archive_cmds
18324
18325 # A language specific compiler.
18326 CC=$lt_compiler
18327
18328 # Is the compiler the GNU compiler?
18329 with_gcc=$GCC
18330
18331 # Compiler flag to turn off builtin functions.
18332 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18333
18334 # How to pass a linker flag through the compiler.
18335 wl=$lt_lt_prog_compiler_wl
18336
18337 # Additional compiler flags for building library objects.
18338 pic_flag=$lt_lt_prog_compiler_pic
18339
18340 # Compiler flag to prevent dynamic linking.
18341 link_static_flag=$lt_lt_prog_compiler_static
18342
18343 # Does compiler simultaneously support -c and -o options?
18344 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18345
18346 # Whether or not to add -lc for building shared libraries.
18347 build_libtool_need_lc=$archive_cmds_need_lc
18348
18349 # Whether or not to disallow shared libs when runtime libs are static.
18350 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18351
18352 # Compiler flag to allow reflexive dlopens.
18353 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18354
18355 # Compiler flag to generate shared objects directly from archives.
18356 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18357
18358 # Whether the compiler copes with passing no objects directly.
18359 compiler_needs_object=$lt_compiler_needs_object
18360
18361 # Create an old-style archive from a shared archive.
18362 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18363
18364 # Create a temporary old-style archive to link instead of a shared archive.
18365 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18366
18367 # Commands used to build a shared archive.
18368 archive_cmds=$lt_archive_cmds
18369 archive_expsym_cmds=$lt_archive_expsym_cmds
18370
18371 # Commands used to build a loadable module if different from building
18372 # a shared archive.
18373 module_cmds=$lt_module_cmds
18374 module_expsym_cmds=$lt_module_expsym_cmds
18375
18376 # Whether we are building with GNU ld or not.
18377 with_gnu_ld=$lt_with_gnu_ld
18378
18379 # Flag that allows shared libraries with undefined symbols to be built.
18380 allow_undefined_flag=$lt_allow_undefined_flag
18381
18382 # Flag that enforces no undefined symbols.
18383 no_undefined_flag=$lt_no_undefined_flag
18384
18385 # Flag to hardcode \$libdir into a binary during linking.
18386 # This must work even if \$libdir does not exist
18387 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18388
18389 # If ld is used when linking, flag to hardcode \$libdir into a binary
18390 # during linking.  This must work even if \$libdir does not exist.
18391 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18392
18393 # Whether we need a single "-rpath" flag with a separated argument.
18394 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18395
18396 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18397 # DIR into the resulting binary.
18398 hardcode_direct=$hardcode_direct
18399
18400 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18401 # DIR into the resulting binary and the resulting library dependency is
18402 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18403 # library is relocated.
18404 hardcode_direct_absolute=$hardcode_direct_absolute
18405
18406 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18407 # into the resulting binary.
18408 hardcode_minus_L=$hardcode_minus_L
18409
18410 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18411 # into the resulting binary.
18412 hardcode_shlibpath_var=$hardcode_shlibpath_var
18413
18414 # Set to "yes" if building a shared library automatically hardcodes DIR
18415 # into the library and all subsequent libraries and executables linked
18416 # against it.
18417 hardcode_automatic=$hardcode_automatic
18418
18419 # Set to yes if linker adds runtime paths of dependent libraries
18420 # to runtime path list.
18421 inherit_rpath=$inherit_rpath
18422
18423 # Whether libtool must link a program against all its dependency libraries.
18424 link_all_deplibs=$link_all_deplibs
18425
18426 # Fix the shell variable \$srcfile for the compiler.
18427 fix_srcfile_path=$lt_fix_srcfile_path
18428
18429 # Set to "yes" if exported symbols are required.
18430 always_export_symbols=$always_export_symbols
18431
18432 # The commands to list exported symbols.
18433 export_symbols_cmds=$lt_export_symbols_cmds
18434
18435 # Symbols that should not be listed in the preloaded symbols.
18436 exclude_expsyms=$lt_exclude_expsyms
18437
18438 # Symbols that must always be exported.
18439 include_expsyms=$lt_include_expsyms
18440
18441 # Commands necessary for linking programs (against libraries) with templates.
18442 prelink_cmds=$lt_prelink_cmds
18443
18444 # Specify filename containing input files.
18445 file_list_spec=$lt_file_list_spec
18446
18447 # How to hardcode a shared library path into an executable.
18448 hardcode_action=$hardcode_action
18449
18450 # The directories searched by this compiler when creating a shared library.
18451 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18452
18453 # Dependencies to place before and after the objects being linked to
18454 # create a shared library.
18455 predep_objects=$lt_predep_objects
18456 postdep_objects=$lt_postdep_objects
18457 predeps=$lt_predeps
18458 postdeps=$lt_postdeps
18459
18460 # The library search path used internally by the compiler when linking
18461 # a shared library.
18462 compiler_lib_search_path=$lt_compiler_lib_search_path
18463
18464 # ### END LIBTOOL CONFIG
18465
18466 _LT_EOF
18467
18468   case $host_os in
18469   aix3*)
18470     cat <<\_LT_EOF >> "$cfgfile"
18471 # AIX sometimes has problems with the GCC collect2 program.  For some
18472 # reason, if we set the COLLECT_NAMES environment variable, the problems
18473 # vanish in a puff of smoke.
18474 if test "X${COLLECT_NAMES+set}" != Xset; then
18475   COLLECT_NAMES=
18476   export COLLECT_NAMES
18477 fi
18478 _LT_EOF
18479     ;;
18480   esac
18481
18482
18483 ltmain="$ac_aux_dir/ltmain.sh"
18484
18485
18486   # We use sed instead of cat because bash on DJGPP gets confused if
18487   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18488   # text mode, it properly converts lines to CR/LF.  This bash problem
18489   # is reportedly fixed, but why not run on old versions too?
18490   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18491     || (rm -f "$cfgfile"; exit 1)
18492
18493   case $xsi_shell in
18494   yes)
18495     cat << \_LT_EOF >> "$cfgfile"
18496
18497 # func_dirname file append nondir_replacement
18498 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18499 # otherwise set result to NONDIR_REPLACEMENT.
18500 func_dirname ()
18501 {
18502   case ${1} in
18503     */*) func_dirname_result="${1%/*}${2}" ;;
18504     *  ) func_dirname_result="${3}" ;;
18505   esac
18506 }
18507
18508 # func_basename file
18509 func_basename ()
18510 {
18511   func_basename_result="${1##*/}"
18512 }
18513
18514 # func_dirname_and_basename file append nondir_replacement
18515 # perform func_basename and func_dirname in a single function
18516 # call:
18517 #   dirname:  Compute the dirname of FILE.  If nonempty,
18518 #             add APPEND to the result, otherwise set result
18519 #             to NONDIR_REPLACEMENT.
18520 #             value returned in "$func_dirname_result"
18521 #   basename: Compute filename of FILE.
18522 #             value retuned in "$func_basename_result"
18523 # Implementation must be kept synchronized with func_dirname
18524 # and func_basename. For efficiency, we do not delegate to
18525 # those functions but instead duplicate the functionality here.
18526 func_dirname_and_basename ()
18527 {
18528   case ${1} in
18529     */*) func_dirname_result="${1%/*}${2}" ;;
18530     *  ) func_dirname_result="${3}" ;;
18531   esac
18532   func_basename_result="${1##*/}"
18533 }
18534
18535 # func_stripname prefix suffix name
18536 # strip PREFIX and SUFFIX off of NAME.
18537 # PREFIX and SUFFIX must not contain globbing or regex special
18538 # characters, hashes, percent signs, but SUFFIX may contain a leading
18539 # dot (in which case that matches only a dot).
18540 func_stripname ()
18541 {
18542   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18543   # positional parameters, so assign one to ordinary parameter first.
18544   func_stripname_result=${3}
18545   func_stripname_result=${func_stripname_result#"${1}"}
18546   func_stripname_result=${func_stripname_result%"${2}"}
18547 }
18548
18549 # func_opt_split
18550 func_opt_split ()
18551 {
18552   func_opt_split_opt=${1%%=*}
18553   func_opt_split_arg=${1#*=}
18554 }
18555
18556 # func_lo2o object
18557 func_lo2o ()
18558 {
18559   case ${1} in
18560     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18561     *)    func_lo2o_result=${1} ;;
18562   esac
18563 }
18564
18565 # func_xform libobj-or-source
18566 func_xform ()
18567 {
18568   func_xform_result=${1%.*}.lo
18569 }
18570
18571 # func_arith arithmetic-term...
18572 func_arith ()
18573 {
18574   func_arith_result=$(( $* ))
18575 }
18576
18577 # func_len string
18578 # STRING may not start with a hyphen.
18579 func_len ()
18580 {
18581   func_len_result=${#1}
18582 }
18583
18584 _LT_EOF
18585     ;;
18586   *) # Bourne compatible functions.
18587     cat << \_LT_EOF >> "$cfgfile"
18588
18589 # func_dirname file append nondir_replacement
18590 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18591 # otherwise set result to NONDIR_REPLACEMENT.
18592 func_dirname ()
18593 {
18594   # Extract subdirectory from the argument.
18595   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18596   if test "X$func_dirname_result" = "X${1}"; then
18597     func_dirname_result="${3}"
18598   else
18599     func_dirname_result="$func_dirname_result${2}"
18600   fi
18601 }
18602
18603 # func_basename file
18604 func_basename ()
18605 {
18606   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18607 }
18608
18609
18610 # func_stripname prefix suffix name
18611 # strip PREFIX and SUFFIX off of NAME.
18612 # PREFIX and SUFFIX must not contain globbing or regex special
18613 # characters, hashes, percent signs, but SUFFIX may contain a leading
18614 # dot (in which case that matches only a dot).
18615 # func_strip_suffix prefix name
18616 func_stripname ()
18617 {
18618   case ${2} in
18619     .*) func_stripname_result=`$ECHO "X${3}" \
18620            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18621     *)  func_stripname_result=`$ECHO "X${3}" \
18622            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18623   esac
18624 }
18625
18626 # sed scripts:
18627 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18628 my_sed_long_arg='1s/^-[^=]*=//'
18629
18630 # func_opt_split
18631 func_opt_split ()
18632 {
18633   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18634   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18635 }
18636
18637 # func_lo2o object
18638 func_lo2o ()
18639 {
18640   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18641 }
18642
18643 # func_xform libobj-or-source
18644 func_xform ()
18645 {
18646   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18647 }
18648
18649 # func_arith arithmetic-term...
18650 func_arith ()
18651 {
18652   func_arith_result=`expr "$@"`
18653 }
18654
18655 # func_len string
18656 # STRING may not start with a hyphen.
18657 func_len ()
18658 {
18659   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18660 }
18661
18662 _LT_EOF
18663 esac
18664
18665 case $lt_shell_append in
18666   yes)
18667     cat << \_LT_EOF >> "$cfgfile"
18668
18669 # func_append var value
18670 # Append VALUE to the end of shell variable VAR.
18671 func_append ()
18672 {
18673   eval "$1+=\$2"
18674 }
18675 _LT_EOF
18676     ;;
18677   *)
18678     cat << \_LT_EOF >> "$cfgfile"
18679
18680 # func_append var value
18681 # Append VALUE to the end of shell variable VAR.
18682 func_append ()
18683 {
18684   eval "$1=\$$1\$2"
18685 }
18686
18687 _LT_EOF
18688     ;;
18689   esac
18690
18691
18692   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18693     || (rm -f "$cfgfile"; exit 1)
18694
18695   mv -f "$cfgfile" "$ofile" ||
18696     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18697   chmod +x "$ofile"
18698
18699
18700     cat <<_LT_EOF >> "$ofile"
18701
18702 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18703
18704 # The linker used to build libraries.
18705 LD=$lt_LD_CXX
18706
18707 # Commands used to build an old-style archive.
18708 old_archive_cmds=$lt_old_archive_cmds_CXX
18709
18710 # A language specific compiler.
18711 CC=$lt_compiler_CXX
18712
18713 # Is the compiler the GNU compiler?
18714 with_gcc=$GCC_CXX
18715
18716 # Compiler flag to turn off builtin functions.
18717 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18718
18719 # How to pass a linker flag through the compiler.
18720 wl=$lt_lt_prog_compiler_wl_CXX
18721
18722 # Additional compiler flags for building library objects.
18723 pic_flag=$lt_lt_prog_compiler_pic_CXX
18724
18725 # Compiler flag to prevent dynamic linking.
18726 link_static_flag=$lt_lt_prog_compiler_static_CXX
18727
18728 # Does compiler simultaneously support -c and -o options?
18729 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18730
18731 # Whether or not to add -lc for building shared libraries.
18732 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18733
18734 # Whether or not to disallow shared libs when runtime libs are static.
18735 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18736
18737 # Compiler flag to allow reflexive dlopens.
18738 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18739
18740 # Compiler flag to generate shared objects directly from archives.
18741 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18742
18743 # Whether the compiler copes with passing no objects directly.
18744 compiler_needs_object=$lt_compiler_needs_object_CXX
18745
18746 # Create an old-style archive from a shared archive.
18747 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18748
18749 # Create a temporary old-style archive to link instead of a shared archive.
18750 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18751
18752 # Commands used to build a shared archive.
18753 archive_cmds=$lt_archive_cmds_CXX
18754 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18755
18756 # Commands used to build a loadable module if different from building
18757 # a shared archive.
18758 module_cmds=$lt_module_cmds_CXX
18759 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18760
18761 # Whether we are building with GNU ld or not.
18762 with_gnu_ld=$lt_with_gnu_ld_CXX
18763
18764 # Flag that allows shared libraries with undefined symbols to be built.
18765 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18766
18767 # Flag that enforces no undefined symbols.
18768 no_undefined_flag=$lt_no_undefined_flag_CXX
18769
18770 # Flag to hardcode \$libdir into a binary during linking.
18771 # This must work even if \$libdir does not exist
18772 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18773
18774 # If ld is used when linking, flag to hardcode \$libdir into a binary
18775 # during linking.  This must work even if \$libdir does not exist.
18776 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18777
18778 # Whether we need a single "-rpath" flag with a separated argument.
18779 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18780
18781 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18782 # DIR into the resulting binary.
18783 hardcode_direct=$hardcode_direct_CXX
18784
18785 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18786 # DIR into the resulting binary and the resulting library dependency is
18787 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18788 # library is relocated.
18789 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18790
18791 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18792 # into the resulting binary.
18793 hardcode_minus_L=$hardcode_minus_L_CXX
18794
18795 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18796 # into the resulting binary.
18797 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18798
18799 # Set to "yes" if building a shared library automatically hardcodes DIR
18800 # into the library and all subsequent libraries and executables linked
18801 # against it.
18802 hardcode_automatic=$hardcode_automatic_CXX
18803
18804 # Set to yes if linker adds runtime paths of dependent libraries
18805 # to runtime path list.
18806 inherit_rpath=$inherit_rpath_CXX
18807
18808 # Whether libtool must link a program against all its dependency libraries.
18809 link_all_deplibs=$link_all_deplibs_CXX
18810
18811 # Fix the shell variable \$srcfile for the compiler.
18812 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18813
18814 # Set to "yes" if exported symbols are required.
18815 always_export_symbols=$always_export_symbols_CXX
18816
18817 # The commands to list exported symbols.
18818 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18819
18820 # Symbols that should not be listed in the preloaded symbols.
18821 exclude_expsyms=$lt_exclude_expsyms_CXX
18822
18823 # Symbols that must always be exported.
18824 include_expsyms=$lt_include_expsyms_CXX
18825
18826 # Commands necessary for linking programs (against libraries) with templates.
18827 prelink_cmds=$lt_prelink_cmds_CXX
18828
18829 # Specify filename containing input files.
18830 file_list_spec=$lt_file_list_spec_CXX
18831
18832 # How to hardcode a shared library path into an executable.
18833 hardcode_action=$hardcode_action_CXX
18834
18835 # The directories searched by this compiler when creating a shared library.
18836 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18837
18838 # Dependencies to place before and after the objects being linked to
18839 # create a shared library.
18840 predep_objects=$lt_predep_objects_CXX
18841 postdep_objects=$lt_postdep_objects_CXX
18842 predeps=$lt_predeps_CXX
18843 postdeps=$lt_postdeps_CXX
18844
18845 # The library search path used internally by the compiler when linking
18846 # a shared library.
18847 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18848
18849 # ### END LIBTOOL TAG CONFIG: CXX
18850 _LT_EOF
18851
18852  ;;
18853     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18854   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18855   # are listed without --file.  Let's play safe and only enable the eval
18856   # if we detect the quoting.
18857   case $CONFIG_FILES in
18858   *\'*) eval set x "$CONFIG_FILES" ;;
18859   *)   set x $CONFIG_FILES ;;
18860   esac
18861   shift
18862   for mf
18863   do
18864     # Strip MF so we end up with the name of the file.
18865     mf=`echo "$mf" | sed -e 's/:.*$//'`
18866     # Check whether this is an Automake generated Makefile or not.
18867     # We used to match only the files named `Makefile.in', but
18868     # some people rename them; so instead we look at the file content.
18869     # Grep'ing the first line is not enough: some people post-process
18870     # each Makefile.in and add a new line on top of each file to say so.
18871     # Grep'ing the whole file is not good either: AIX grep has a line
18872     # limit of 2048, but all sed's we know have understand at least 4000.
18873     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18874       dirpart=`$as_dirname -- "$mf" ||
18875 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18876          X"$mf" : 'X\(//\)[^/]' \| \
18877          X"$mf" : 'X\(//\)$' \| \
18878          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18879 $as_echo X"$mf" |
18880     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18881             s//\1/
18882             q
18883           }
18884           /^X\(\/\/\)[^/].*/{
18885             s//\1/
18886             q
18887           }
18888           /^X\(\/\/\)$/{
18889             s//\1/
18890             q
18891           }
18892           /^X\(\/\).*/{
18893             s//\1/
18894             q
18895           }
18896           s/.*/./; q'`
18897     else
18898       continue
18899     fi
18900     # Extract the definition of DEPDIR, am__include, and am__quote
18901     # from the Makefile without running `make'.
18902     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18903     test -z "$DEPDIR" && continue
18904     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18905     test -z "am__include" && continue
18906     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18907     # When using ansi2knr, U may be empty or an underscore; expand it
18908     U=`sed -n 's/^U = //p' < "$mf"`
18909     # Find all dependency output files, they are included files with
18910     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18911     # simplest approach to changing $(DEPDIR) to its actual value in the
18912     # expansion.
18913     for file in `sed -n "
18914       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18915          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18916       # Make sure the directory exists.
18917       test -f "$dirpart/$file" && continue
18918       fdir=`$as_dirname -- "$file" ||
18919 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18920          X"$file" : 'X\(//\)[^/]' \| \
18921          X"$file" : 'X\(//\)$' \| \
18922          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18923 $as_echo X"$file" |
18924     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18925             s//\1/
18926             q
18927           }
18928           /^X\(\/\/\)[^/].*/{
18929             s//\1/
18930             q
18931           }
18932           /^X\(\/\/\)$/{
18933             s//\1/
18934             q
18935           }
18936           /^X\(\/\).*/{
18937             s//\1/
18938             q
18939           }
18940           s/.*/./; q'`
18941       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18942       # echo "creating $dirpart/$file"
18943       echo '# dummy' > "$dirpart/$file"
18944     done
18945   done
18946 }
18947  ;;
18948
18949   esac
18950 done # for ac_tag
18951
18952
18953 as_fn_exit 0
18954 _ACEOF
18955 ac_clean_files=$ac_clean_files_save
18956
18957 test $ac_write_fail = 0 ||
18958   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18959
18960
18961 # configure is writing to config.log, and then calls config.status.
18962 # config.status does its own redirection, appending to config.log.
18963 # Unfortunately, on DOS this fails, as config.log is still kept open
18964 # by configure, so config.status won't be able to write to it; its
18965 # output is simply discarded.  So we exec the FD to /dev/null,
18966 # effectively closing config.log, so it can be properly (re)opened and
18967 # appended to by config.status.  When coming back to configure, we
18968 # need to make the FD available again.
18969 if test "$no_create" != yes; then
18970   ac_cs_success=:
18971   ac_config_status_args=
18972   test "$silent" = yes &&
18973     ac_config_status_args="$ac_config_status_args --quiet"
18974   exec 5>/dev/null
18975   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18976   exec 5>>config.log
18977   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18978   # would make configure fail if this is the last instruction.
18979   $ac_cs_success || as_fn_exit $?
18980 fi
18981 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18982   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18983 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18984 fi
18985