• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/json-c/configure

  1 #! /bin/sh
  2 # Guess values for system-dependent variables and create Makefiles.
  3 # Generated by GNU Autoconf 2.68 for json-c 0.11.
  4 #
  5 # Report bugs to <json-c@googlegroups.com>.
  6 #
  7 #
  8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
 10 # Foundation, Inc.
 11 #
 12 #
 13 # This configure script is free software; the Free Software Foundation
 14 # gives unlimited permission to copy, distribute and modify it.
 15 ## -------------------- ##
 16 ## M4sh Initialization. ##
 17 ## -------------------- ##
 18 
 19 # Be more Bourne compatible
 20 DUALCASE=1; export DUALCASE # for MKS sh
 21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 22   emulate sh
 23   NULLCMD=:
 24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 25   # is contrary to our usage.  Disable this feature.
 26   alias -g '${1+"$@"}'='"$@"'
 27   setopt NO_GLOB_SUBST
 28 else
 29   case `(set -o) 2>/dev/null` in #(
 30   *posix*) :
 31     set -o posix ;; #(
 32   *) :
 33      ;;
 34 esac
 35 fi
 36 
 37 
 38 as_nl='
 39 '
 40 export as_nl
 41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
 42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 45 # Prefer a ksh shell builtin over an external printf program on Solaris,
 46 # but without wasting forks for bash or zsh.
 47 if test -z "$BASH_VERSION$ZSH_VERSION" \
 48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 49   as_echo='print -r --'
 50   as_echo_n='print -rn --'
 51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 52   as_echo='printf %s\n'
 53   as_echo_n='printf %s'
 54 else
 55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 57     as_echo_n='/usr/ucb/echo -n'
 58   else
 59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 60     as_echo_n_body='eval
 61       arg=$1;
 62       case $arg in #(
 63       *"$as_nl"*)
 64         expr "X$arg" : "X\\(.*\\)$as_nl";
 65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 66       esac;
 67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 68     '
 69     export as_echo_n_body
 70     as_echo_n='sh -c $as_echo_n_body as_echo'
 71   fi
 72   export as_echo_body
 73   as_echo='sh -c $as_echo_body as_echo'
 74 fi
 75 
 76 # The user is always right.
 77 if test "${PATH_SEPARATOR+set}" != set; then
 78   PATH_SEPARATOR=:
 79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 81       PATH_SEPARATOR=';'
 82   }
 83 fi
 84 
 85 
 86 # IFS
 87 # We need space, tab and new line, in precisely that order.  Quoting is
 88 # there to prevent editors from complaining about space-tab.
 89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
 90 # splitting by setting IFS to empty value.)
 91 IFS=" ""        $as_nl"
 92 
 93 # Find who we are.  Look in the path if we contain no directory separator.
 94 as_myself=
 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         # Preserve -v and -x to the replacement shell.
221         BASH_ENV=/dev/null
222         ENV=/dev/null
223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224         export CONFIG_SHELL
225         case $- in # ((((
226           *v*x* | *x*v* ) as_opts=-vx ;;
227           *v* ) as_opts=-v ;;
228           *x* ) as_opts=-x ;;
229           * ) as_opts= ;;
230         esac
231         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233 
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: json-c@googlegroups.com about your system, including
243 $0: any error possibly output before this message. Then
244 $0: install a modern shell, or manually run the script
245 $0: under such a shell if you do have one."
246   fi
247   exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256 
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265   { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268 
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274   return $1
275 } # as_fn_set_status
276 
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282   set +e
283   as_fn_set_status $1
284   exit $1
285 } # as_fn_exit
286 
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292 
293   case $as_dir in #(
294   -*) as_dir=./$as_dir;;
295   esac
296   test -d "$as_dir" || eval $as_mkdir_p || {
297     as_dirs=
298     while :; do
299       case $as_dir in #(
300       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301       *) as_qdir=$as_dir;;
302       esac
303       as_dirs="'$as_qdir' $as_dirs"
304       as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306          X"$as_dir" : 'X\(//\)[^/]' \| \
307          X"$as_dir" : 'X\(//\)$' \| \
308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\/\)[^/].*/{
315             s//\1/
316             q
317           }
318           /^X\(\/\/\)$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\).*/{
323             s//\1/
324             q
325           }
326           s/.*/./; q'`
327       test -d "$as_dir" && break
328     done
329     test -z "$as_dirs" || eval "mkdir $as_dirs"
330   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331 
332 
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341   eval 'as_fn_append ()
342   {
343     eval $1+=\$2
344   }'
345 else
346   as_fn_append ()
347   {
348     eval $1=\$$1\$2
349   }
350 fi # as_fn_append
351 
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358   eval 'as_fn_arith ()
359   {
360     as_val=$(( $* ))
361   }'
362 else
363   as_fn_arith ()
364   {
365     as_val=`expr "$@" || test $? -eq 1`
366   }
367 fi # as_fn_arith
368 
369 
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377   as_status=$1; test $as_status -eq 0 && as_status=1
378   if test "$4"; then
379     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381   fi
382   $as_echo "$as_me: error: $2" >&2
383   as_fn_exit $as_status
384 } # as_fn_error
385 
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
388   as_expr=expr
389 else
390   as_expr=false
391 fi
392 
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394   as_basename=basename
395 else
396   as_basename=false
397 fi
398 
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400   as_dirname=dirname
401 else
402   as_dirname=false
403 fi
404 
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407          X"$0" : 'X\(//\)$' \| \
408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410     sed '/^.*\/\([^/][^/]*\)\/*$/{
411             s//\1/
412             q
413           }
414           /^X\/\(\/\/\)$/{
415             s//\1/
416             q
417           }
418           /^X\/\(\/\).*/{
419             s//\1/
420             q
421           }
422           s/.*/./; q'`
423 
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430 
431 
432   as_lineno_1=$LINENO as_lineno_1a=$LINENO
433   as_lineno_2=$LINENO as_lineno_2a=$LINENO
434   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437   sed -n '
438     p
439     /[$]LINENO/=
440   ' <$as_myself |
441     sed '
442       s/[$]LINENO.*/&-/
443       t lineno
444       b
445       :lineno
446       N
447       :loop
448       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449       t loop
450       s/-\n.*//
451     ' >$as_me.lineno &&
452   chmod +x "$as_me.lineno" ||
453     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454 
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462 
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466   case `echo 'xy\c'` in
467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468   xy)  ECHO_C='\c';;
469   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470        ECHO_T=' ';;
471   esac;;
472 *)
473   ECHO_N='-n';;
474 esac
475 
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478   rm -f conf$$.dir/conf$$.file
479 else
480   rm -f conf$$.dir
481   mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484   if ln -s conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s='ln -s'
486     # ... but there are two gotchas:
487     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489     # In both cases, we have to default to `cp -p'.
490     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491       as_ln_s='cp -p'
492   elif ln conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s=ln
494   else
495     as_ln_s='cp -p'
496   fi
497 else
498   as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502 
503 if mkdir -p . 2>/dev/null; then
504   as_mkdir_p='mkdir -p "$as_dir"'
505 else
506   test -d ./-p && rmdir ./-p
507   as_mkdir_p=false
508 fi
509 
510 if test -x / >/dev/null 2>&1; then
511   as_test_x='test -x'
512 else
513   if ls -dL / >/dev/null 2>&1; then
514     as_ls_L_option=L
515   else
516     as_ls_L_option=
517   fi
518   as_test_x='
519     eval sh -c '\''
520       if test -d "$1"; then
521         test -d "$1/.";
522       else
523         case $1 in #(
524         -*)set "./$1";;
525         esac;
526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527         ???[sx]*):;;*)false;;esac;fi
528     '\'' sh
529   '
530 fi
531 as_executable_p=$as_test_x
532 
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535 
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538 
539 
540 
541 # Check that we are running under the correct shell.
542 SHELL=${CONFIG_SHELL-/bin/sh}
543 
544 case X$lt_ECHO in
545 X*--fallback-echo)
546   # Remove one level of quotation (which was required for Make).
547   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
548   ;;
549 esac
550 
551 ECHO=${lt_ECHO-echo}
552 if test "X$1" = X--no-reexec; then
553   # Discard the --no-reexec flag, and continue.
554   shift
555 elif test "X$1" = X--fallback-echo; then
556   # Avoid inline document here, it may be left over
557   :
558 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
559   # Yippee, $ECHO works!
560   :
561 else
562   # Restart under the correct shell.
563   exec $SHELL "$0" --no-reexec ${1+"$@"}
564 fi
565 
566 if test "X$1" = X--fallback-echo; then
567   # used as fallback echo
568   shift
569   cat <<_LT_EOF
570 $*
571 _LT_EOF
572   exit 0
573 fi
574 
575 # The HP-UX ksh and POSIX shell print the target directory to stdout
576 # if CDPATH is set.
577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
578 
579 if test -z "$lt_ECHO"; then
580   if test "X${echo_test_string+set}" != Xset; then
581     # find a string as large as possible, as long as the shell can cope with it
582     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
583       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
584       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
585          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
586       then
587         break
588       fi
589     done
590   fi
591 
592   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
593      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
594      test "X$echo_testing_string" = "X$echo_test_string"; then
595     :
596   else
597     # The Solaris, AIX, and Digital Unix default echo programs unquote
598     # backslashes.  This makes it impossible to quote backslashes using
599     #   echo "$something" | sed 's/\\/\\\\/g'
600     #
601     # So, first we look for a working echo in the user's PATH.
602 
603     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604     for dir in $PATH /usr/ucb; do
605       IFS="$lt_save_ifs"
606       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609          test "X$echo_testing_string" = "X$echo_test_string"; then
610         ECHO="$dir/echo"
611         break
612       fi
613     done
614     IFS="$lt_save_ifs"
615 
616     if test "X$ECHO" = Xecho; then
617       # We didn't find a better echo, so look for alternatives.
618       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
619          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
620          test "X$echo_testing_string" = "X$echo_test_string"; then
621         # This shell has a builtin print -r that does the trick.
622         ECHO='print -r'
623       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
624            test "X$CONFIG_SHELL" != X/bin/ksh; then
625         # If we have ksh, try running configure again with it.
626         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627         export ORIGINAL_CONFIG_SHELL
628         CONFIG_SHELL=/bin/ksh
629         export CONFIG_SHELL
630         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631       else
632         # Try using printf.
633         ECHO='printf %s\n'
634         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
635            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
636            test "X$echo_testing_string" = "X$echo_test_string"; then
637           # Cool, printf works
638           :
639         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640              test "X$echo_testing_string" = 'X\t' &&
641              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642              test "X$echo_testing_string" = "X$echo_test_string"; then
643           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644           export CONFIG_SHELL
645           SHELL="$CONFIG_SHELL"
646           export SHELL
647           ECHO="$CONFIG_SHELL $0 --fallback-echo"
648         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649              test "X$echo_testing_string" = 'X\t' &&
650              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651              test "X$echo_testing_string" = "X$echo_test_string"; then
652           ECHO="$CONFIG_SHELL $0 --fallback-echo"
653         else
654           # maybe with a smaller string...
655           prev=:
656 
657           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
659             then
660               break
661             fi
662             prev="$cmd"
663           done
664 
665           if test "$prev" != 'sed 50q "$0"'; then
666             echo_test_string=`eval $prev`
667             export echo_test_string
668             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669           else
670             # Oops.  We lost completely, so just stick with echo.
671             ECHO=echo
672           fi
673         fi
674       fi
675     fi
676   fi
677 fi
678 
679 # Copy echo and quote the copy suitably for passing to libtool from
680 # the Makefile, instead of quoting the original, which is used later.
681 lt_ECHO=$ECHO
682 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684 fi
685 
686 
687 
688 
689 test -n "$DJDIR" || exec 7<&0 </dev/null
690 exec 6>&1
691 
692 # Name of the host.
693 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
694 # so uname gets run too.
695 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
696 
697 #
698 # Initializations.
699 #
700 ac_default_prefix=/usr/local
701 ac_clean_files=
702 ac_config_libobj_dir=.
703 LIBOBJS=
704 cross_compiling=no
705 subdirs=
706 MFLAGS=
707 MAKEFLAGS=
708 
709 # Identity of this package.
710 PACKAGE_NAME='json-c'
711 PACKAGE_TARNAME='json-c'
712 PACKAGE_VERSION='0.11'
713 PACKAGE_STRING='json-c 0.11'
714 PACKAGE_BUGREPORT='json-c@googlegroups.com'
715 PACKAGE_URL=''
716 
717 # Factoring default headers for most tests.
718 ac_includes_default="\
719 #include <stdio.h>
720 #ifdef HAVE_SYS_TYPES_H
721 # include <sys/types.h>
722 #endif
723 #ifdef HAVE_SYS_STAT_H
724 # include <sys/stat.h>
725 #endif
726 #ifdef STDC_HEADERS
727 # include <stdlib.h>
728 # include <stddef.h>
729 #else
730 # ifdef HAVE_STDLIB_H
731 #  include <stdlib.h>
732 # endif
733 #endif
734 #ifdef HAVE_STRING_H
735 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
736 #  include <memory.h>
737 # endif
738 # include <string.h>
739 #endif
740 #ifdef HAVE_STRINGS_H
741 # include <strings.h>
742 #endif
743 #ifdef HAVE_INTTYPES_H
744 # include <inttypes.h>
745 #endif
746 #ifdef HAVE_STDINT_H
747 # include <stdint.h>
748 #endif
749 #ifdef HAVE_UNISTD_H
750 # include <unistd.h>
751 #endif"
752 
753 ac_subst_vars='am__EXEEXT_FALSE
754 am__EXEEXT_TRUE
755 LTLIBOBJS
756 OTOOL64
757 OTOOL
758 LIPO
759 NMEDIT
760 DSYMUTIL
761 lt_ECHO
762 RANLIB
763 AR
764 OBJDUMP
765 LN_S
766 NM
767 ac_ct_DUMPBIN
768 DUMPBIN
769 LD
770 FGREP
771 SED
772 host_os
773 host_vendor
774 host_cpu
775 host
776 build_os
777 build_vendor
778 build_cpu
779 build
780 LIBTOOL
781 LIBOBJS
782 EGREP
783 GREP
784 CPP
785 am__fastdepCC_FALSE
786 am__fastdepCC_TRUE
787 CCDEPMODE
788 AMDEPBACKSLASH
789 AMDEP_FALSE
790 AMDEP_TRUE
791 am__quote
792 am__include
793 DEPDIR
794 OBJEXT
795 EXEEXT
796 ac_ct_CC
797 CPPFLAGS
798 LDFLAGS
799 CFLAGS
800 CC
801 ENABLE_OLDNAME_COMPAT_FALSE
802 ENABLE_OLDNAME_COMPAT_TRUE
803 am__untar
804 am__tar
805 AMTAR
806 am__leading_dot
807 SET_MAKE
808 AWK
809 mkdir_p
810 MKDIR_P
811 INSTALL_STRIP_PROGRAM
812 STRIP
813 install_sh
814 MAKEINFO
815 AUTOHEADER
816 AUTOMAKE
817 AUTOCONF
818 ACLOCAL
819 VERSION
820 PACKAGE
821 CYGPATH_W
822 am__isrc
823 INSTALL_DATA
824 INSTALL_SCRIPT
825 INSTALL_PROGRAM
826 target_alias
827 host_alias
828 build_alias
829 LIBS
830 ECHO_T
831 ECHO_N
832 ECHO_C
833 DEFS
834 mandir
835 localedir
836 libdir
837 psdir
838 pdfdir
839 dvidir
840 htmldir
841 infodir
842 docdir
843 oldincludedir
844 includedir
845 localstatedir
846 sharedstatedir
847 sysconfdir
848 datadir
849 datarootdir
850 libexecdir
851 sbindir
852 bindir
853 program_transform_name
854 prefix
855 exec_prefix
856 PACKAGE_URL
857 PACKAGE_BUGREPORT
858 PACKAGE_STRING
859 PACKAGE_VERSION
860 PACKAGE_TARNAME
861 PACKAGE_NAME
862 PATH_SEPARATOR
863 SHELL'
864 ac_subst_files=''
865 ac_user_opts='
866 enable_option_checking
867 enable_oldname_compat
868 enable_dependency_tracking
869 enable_shared
870 enable_static
871 with_pic
872 enable_fast_install
873 with_gnu_ld
874 enable_libtool_lock
875 '
876       ac_precious_vars='build_alias
877 host_alias
878 target_alias
879 CC
880 CFLAGS
881 LDFLAGS
882 LIBS
883 CPPFLAGS
884 CPP'
885 
886 
887 # Initialize some variables set by options.
888 ac_init_help=
889 ac_init_version=false
890 ac_unrecognized_opts=
891 ac_unrecognized_sep=
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
894 cache_file=/dev/null
895 exec_prefix=NONE
896 no_create=
897 no_recursion=
898 prefix=NONE
899 program_prefix=NONE
900 program_suffix=NONE
901 program_transform_name=s,x,x,
902 silent=
903 site=
904 srcdir=
905 verbose=
906 x_includes=NONE
907 x_libraries=NONE
908 
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir='${exec_prefix}/bin'
916 sbindir='${exec_prefix}/sbin'
917 libexecdir='${exec_prefix}/libexec'
918 datarootdir='${prefix}/share'
919 datadir='${datarootdir}'
920 sysconfdir='${prefix}/etc'
921 sharedstatedir='${prefix}/com'
922 localstatedir='${prefix}/var'
923 includedir='${prefix}/include'
924 oldincludedir='/usr/include'
925 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
926 infodir='${datarootdir}/info'
927 htmldir='${docdir}'
928 dvidir='${docdir}'
929 pdfdir='${docdir}'
930 psdir='${docdir}'
931 libdir='${exec_prefix}/lib'
932 localedir='${datarootdir}/locale'
933 mandir='${datarootdir}/man'
934 
935 ac_prev=
936 ac_dashdash=
937 for ac_option
938 do
939   # If the previous option needs an argument, assign it.
940   if test -n "$ac_prev"; then
941     eval $ac_prev=\$ac_option
942     ac_prev=
943     continue
944   fi
945 
946   case $ac_option in
947   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948   *=)   ac_optarg= ;;
949   *)    ac_optarg=yes ;;
950   esac
951 
952   # Accept the important Cygnus configure options, so we can diagnose typos.
953 
954   case $ac_dashdash$ac_option in
955   --)
956     ac_dashdash=yes ;;
957 
958   -bindir | --bindir | --bindi | --bind | --bin | --bi)
959     ac_prev=bindir ;;
960   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
961     bindir=$ac_optarg ;;
962 
963   -build | --build | --buil | --bui | --bu)
964     ac_prev=build_alias ;;
965   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
966     build_alias=$ac_optarg ;;
967 
968   -cache-file | --cache-file | --cache-fil | --cache-fi \
969   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970     ac_prev=cache_file ;;
971   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
973     cache_file=$ac_optarg ;;
974 
975   --config-cache | -C)
976     cache_file=config.cache ;;
977 
978   -datadir | --datadir | --datadi | --datad)
979     ac_prev=datadir ;;
980   -datadir=* | --datadir=* | --datadi=* | --datad=*)
981     datadir=$ac_optarg ;;
982 
983   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984   | --dataroo | --dataro | --datar)
985     ac_prev=datarootdir ;;
986   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988     datarootdir=$ac_optarg ;;
989 
990   -disable-* | --disable-*)
991     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
992     # Reject names that are not valid shell variable names.
993     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994       as_fn_error $? "invalid feature name: $ac_useropt"
995     ac_useropt_orig=$ac_useropt
996     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997     case $ac_user_opts in
998       *"
999 "enable_$ac_useropt"
1000 "*) ;;
1001       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1002          ac_unrecognized_sep=', ';;
1003     esac
1004     eval enable_$ac_useropt=no ;;
1005 
1006   -docdir | --docdir | --docdi | --doc | --do)
1007     ac_prev=docdir ;;
1008   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009     docdir=$ac_optarg ;;
1010 
1011   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012     ac_prev=dvidir ;;
1013   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014     dvidir=$ac_optarg ;;
1015 
1016   -enable-* | --enable-*)
1017     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018     # Reject names that are not valid shell variable names.
1019     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1020       as_fn_error $? "invalid feature name: $ac_useropt"
1021     ac_useropt_orig=$ac_useropt
1022     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023     case $ac_user_opts in
1024       *"
1025 "enable_$ac_useropt"
1026 "*) ;;
1027       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028          ac_unrecognized_sep=', ';;
1029     esac
1030     eval enable_$ac_useropt=\$ac_optarg ;;
1031 
1032   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034   | --exec | --exe | --ex)
1035     ac_prev=exec_prefix ;;
1036   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038   | --exec=* | --exe=* | --ex=*)
1039     exec_prefix=$ac_optarg ;;
1040 
1041   -gas | --gas | --ga | --g)
1042     # Obsolete; use --with-gas.
1043     with_gas=yes ;;
1044 
1045   -help | --help | --hel | --he | -h)
1046     ac_init_help=long ;;
1047   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048     ac_init_help=recursive ;;
1049   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050     ac_init_help=short ;;
1051 
1052   -host | --host | --hos | --ho)
1053     ac_prev=host_alias ;;
1054   -host=* | --host=* | --hos=* | --ho=*)
1055     host_alias=$ac_optarg ;;
1056 
1057   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058     ac_prev=htmldir ;;
1059   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060   | --ht=*)
1061     htmldir=$ac_optarg ;;
1062 
1063   -includedir | --includedir | --includedi | --included | --include \
1064   | --includ | --inclu | --incl | --inc)
1065     ac_prev=includedir ;;
1066   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067   | --includ=* | --inclu=* | --incl=* | --inc=*)
1068     includedir=$ac_optarg ;;
1069 
1070   -infodir | --infodir | --infodi | --infod | --info | --inf)
1071     ac_prev=infodir ;;
1072   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1073     infodir=$ac_optarg ;;
1074 
1075   -libdir | --libdir | --libdi | --libd)
1076     ac_prev=libdir ;;
1077   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1078     libdir=$ac_optarg ;;
1079 
1080   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081   | --libexe | --libex | --libe)
1082     ac_prev=libexecdir ;;
1083   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084   | --libexe=* | --libex=* | --libe=*)
1085     libexecdir=$ac_optarg ;;
1086 
1087   -localedir | --localedir | --localedi | --localed | --locale)
1088     ac_prev=localedir ;;
1089   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090     localedir=$ac_optarg ;;
1091 
1092   -localstatedir | --localstatedir | --localstatedi | --localstated \
1093   | --localstate | --localstat | --localsta | --localst | --locals)
1094     ac_prev=localstatedir ;;
1095   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1096   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1097     localstatedir=$ac_optarg ;;
1098 
1099   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100     ac_prev=mandir ;;
1101   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1102     mandir=$ac_optarg ;;
1103 
1104   -nfp | --nfp | --nf)
1105     # Obsolete; use --without-fp.
1106     with_fp=no ;;
1107 
1108   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1109   | --no-cr | --no-c | -n)
1110     no_create=yes ;;
1111 
1112   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114     no_recursion=yes ;;
1115 
1116   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118   | --oldin | --oldi | --old | --ol | --o)
1119     ac_prev=oldincludedir ;;
1120   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1123     oldincludedir=$ac_optarg ;;
1124 
1125   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126     ac_prev=prefix ;;
1127   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1128     prefix=$ac_optarg ;;
1129 
1130   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131   | --program-pre | --program-pr | --program-p)
1132     ac_prev=program_prefix ;;
1133   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1135     program_prefix=$ac_optarg ;;
1136 
1137   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138   | --program-suf | --program-su | --program-s)
1139     ac_prev=program_suffix ;;
1140   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1142     program_suffix=$ac_optarg ;;
1143 
1144   -program-transform-name | --program-transform-name \
1145   | --program-transform-nam | --program-transform-na \
1146   | --program-transform-n | --program-transform- \
1147   | --program-transform | --program-transfor \
1148   | --program-transfo | --program-transf \
1149   | --program-trans | --program-tran \
1150   | --progr-tra | --program-tr | --program-t)
1151     ac_prev=program_transform_name ;;
1152   -program-transform-name=* | --program-transform-name=* \
1153   | --program-transform-nam=* | --program-transform-na=* \
1154   | --program-transform-n=* | --program-transform-=* \
1155   | --program-transform=* | --program-transfor=* \
1156   | --program-transfo=* | --program-transf=* \
1157   | --program-trans=* | --program-tran=* \
1158   | --progr-tra=* | --program-tr=* | --program-t=*)
1159     program_transform_name=$ac_optarg ;;
1160 
1161   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162     ac_prev=pdfdir ;;
1163   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164     pdfdir=$ac_optarg ;;
1165 
1166   -psdir | --psdir | --psdi | --psd | --ps)
1167     ac_prev=psdir ;;
1168   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169     psdir=$ac_optarg ;;
1170 
1171   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172   | -silent | --silent | --silen | --sile | --sil)
1173     silent=yes ;;
1174 
1175   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176     ac_prev=sbindir ;;
1177   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178   | --sbi=* | --sb=*)
1179     sbindir=$ac_optarg ;;
1180 
1181   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183   | --sharedst | --shareds | --shared | --share | --shar \
1184   | --sha | --sh)
1185     ac_prev=sharedstatedir ;;
1186   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189   | --sha=* | --sh=*)
1190     sharedstatedir=$ac_optarg ;;
1191 
1192   -site | --site | --sit)
1193     ac_prev=site ;;
1194   -site=* | --site=* | --sit=*)
1195     site=$ac_optarg ;;
1196 
1197   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198     ac_prev=srcdir ;;
1199   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1200     srcdir=$ac_optarg ;;
1201 
1202   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203   | --syscon | --sysco | --sysc | --sys | --sy)
1204     ac_prev=sysconfdir ;;
1205   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1207     sysconfdir=$ac_optarg ;;
1208 
1209   -target | --target | --targe | --targ | --tar | --ta | --t)
1210     ac_prev=target_alias ;;
1211   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1212     target_alias=$ac_optarg ;;
1213 
1214   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215     verbose=yes ;;
1216 
1217   -version | --version | --versio | --versi | --vers | -V)
1218     ac_init_version=: ;;
1219 
1220   -with-* | --with-*)
1221     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222     # Reject names that are not valid shell variable names.
1223     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224       as_fn_error $? "invalid package name: $ac_useropt"
1225     ac_useropt_orig=$ac_useropt
1226     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227     case $ac_user_opts in
1228       *"
1229 "with_$ac_useropt"
1230 "*) ;;
1231       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1232          ac_unrecognized_sep=', ';;
1233     esac
1234     eval with_$ac_useropt=\$ac_optarg ;;
1235 
1236   -without-* | --without-*)
1237     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1238     # Reject names that are not valid shell variable names.
1239     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240       as_fn_error $? "invalid package name: $ac_useropt"
1241     ac_useropt_orig=$ac_useropt
1242     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243     case $ac_user_opts in
1244       *"
1245 "with_$ac_useropt"
1246 "*) ;;
1247       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1248          ac_unrecognized_sep=', ';;
1249     esac
1250     eval with_$ac_useropt=no ;;
1251 
1252   --x)
1253     # Obsolete; use --with-x.
1254     with_x=yes ;;
1255 
1256   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257   | --x-incl | --x-inc | --x-in | --x-i)
1258     ac_prev=x_includes ;;
1259   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1261     x_includes=$ac_optarg ;;
1262 
1263   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265     ac_prev=x_libraries ;;
1266   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1268     x_libraries=$ac_optarg ;;
1269 
1270   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1271 Try \`$0 --help' for more information"
1272     ;;
1273 
1274   *=*)
1275     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276     # Reject names that are not valid shell variable names.
1277     case $ac_envvar in #(
1278       '' | [0-9]* | *[!_$as_cr_alnum]* )
1279       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1280     esac
1281     eval $ac_envvar=\$ac_optarg
1282     export $ac_envvar ;;
1283 
1284   *)
1285     # FIXME: should be removed in autoconf 3.0.
1286     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1287     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1288       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1289     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1290     ;;
1291 
1292   esac
1293 done
1294 
1295 if test -n "$ac_prev"; then
1296   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1297   as_fn_error $? "missing argument to $ac_option"
1298 fi
1299 
1300 if test -n "$ac_unrecognized_opts"; then
1301   case $enable_option_checking in
1302     no) ;;
1303     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1304     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1305   esac
1306 fi
1307 
1308 # Check all directory arguments for consistency.
1309 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1310                 datadir sysconfdir sharedstatedir localstatedir includedir \
1311                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1312                 libdir localedir mandir
1313 do
1314   eval ac_val=\$$ac_var
1315   # Remove trailing slashes.
1316   case $ac_val in
1317     */ )
1318       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1319       eval $ac_var=\$ac_val;;
1320   esac
1321   # Be sure to have absolute directory names.
1322   case $ac_val in
1323     [\\/$]* | ?:[\\/]* )  continue;;
1324     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1325   esac
1326   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1327 done
1328 
1329 # There might be people who depend on the old broken behavior: `$host'
1330 # used to hold the argument of --host etc.
1331 # FIXME: To remove some day.
1332 build=$build_alias
1333 host=$host_alias
1334 target=$target_alias
1335 
1336 # FIXME: To remove some day.
1337 if test "x$host_alias" != x; then
1338   if test "x$build_alias" = x; then
1339     cross_compiling=maybe
1340     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1341     If a cross compiler is detected then cross compile mode will be used" >&2
1342   elif test "x$build_alias" != "x$host_alias"; then
1343     cross_compiling=yes
1344   fi
1345 fi
1346 
1347 ac_tool_prefix=
1348 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1349 
1350 test "$silent" = yes && exec 6>/dev/null
1351 
1352 
1353 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1354 ac_ls_di=`ls -di .` &&
1355 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1356   as_fn_error $? "working directory cannot be determined"
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358   as_fn_error $? "pwd does not report name of working directory"
1359 
1360 
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363   ac_srcdir_defaulted=yes
1364   # Try the directory containing this script, then the parent directory.
1365   ac_confdir=`$as_dirname -- "$as_myself" ||
1366 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367          X"$as_myself" : 'X\(//\)[^/]' \| \
1368          X"$as_myself" : 'X\(//\)$' \| \
1369          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1370 $as_echo X"$as_myself" |
1371     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372             s//\1/
1373             q
1374           }
1375           /^X\(\/\/\)[^/].*/{
1376             s//\1/
1377             q
1378           }
1379           /^X\(\/\/\)$/{
1380             s//\1/
1381             q
1382           }
1383           /^X\(\/\).*/{
1384             s//\1/
1385             q
1386           }
1387           s/.*/./; q'`
1388   srcdir=$ac_confdir
1389   if test ! -r "$srcdir/$ac_unique_file"; then
1390     srcdir=..
1391   fi
1392 else
1393   ac_srcdir_defaulted=no
1394 fi
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1398 fi
1399 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400 ac_abs_confdir=`(
1401         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1402         pwd)`
1403 # When building in place, set srcdir=.
1404 if test "$ac_abs_confdir" = "$ac_pwd"; then
1405   srcdir=.
1406 fi
1407 # Remove unnecessary trailing slashes from srcdir.
1408 # Double slashes in file names in object file debugging info
1409 # mess up M-x gdb in Emacs.
1410 case $srcdir in
1411 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412 esac
1413 for ac_var in $ac_precious_vars; do
1414   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1415   eval ac_env_${ac_var}_value=\$${ac_var}
1416   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1417   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418 done
1419 
1420 #
1421 # Report the --help message.
1422 #
1423 if test "$ac_init_help" = "long"; then
1424   # Omit some internal or obsolete options to make the list less imposing.
1425   # This message is too long to be a string in the A/UX 3.1 sh.
1426   cat <<_ACEOF
1427 \`configure' configures json-c 0.11 to adapt to many kinds of systems.
1428 
1429 Usage: $0 [OPTION]... [VAR=VALUE]...
1430 
1431 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432 VAR=VALUE.  See below for descriptions of some of the useful variables.
1433 
1434 Defaults for the options are specified in brackets.
1435 
1436 Configuration:
1437   -h, --help              display this help and exit
1438       --help=short        display options specific to this package
1439       --help=recursive    display the short help of all the included packages
1440   -V, --version           display version information and exit
1441   -q, --quiet, --silent   do not print \`checking ...' messages
1442       --cache-file=FILE   cache test results in FILE [disabled]
1443   -C, --config-cache      alias for \`--cache-file=config.cache'
1444   -n, --no-create         do not create output files
1445       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1446 
1447 Installation directories:
1448   --prefix=PREFIX         install architecture-independent files in PREFIX
1449                           [$ac_default_prefix]
1450   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1451                           [PREFIX]
1452 
1453 By default, \`make install' will install all the files in
1454 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1455 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456 for instance \`--prefix=\$HOME'.
1457 
1458 For better control, use the options below.
1459 
1460 Fine tuning of the installation directories:
1461   --bindir=DIR            user executables [EPREFIX/bin]
1462   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1463   --libexecdir=DIR        program executables [EPREFIX/libexec]
1464   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1465   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1466   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1467   --libdir=DIR            object code libraries [EPREFIX/lib]
1468   --includedir=DIR        C header files [PREFIX/include]
1469   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1470   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1471   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1472   --infodir=DIR           info documentation [DATAROOTDIR/info]
1473   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1474   --mandir=DIR            man documentation [DATAROOTDIR/man]
1475   --docdir=DIR            documentation root [DATAROOTDIR/doc/json-c]
1476   --htmldir=DIR           html documentation [DOCDIR]
1477   --dvidir=DIR            dvi documentation [DOCDIR]
1478   --pdfdir=DIR            pdf documentation [DOCDIR]
1479   --psdir=DIR             ps documentation [DOCDIR]
1480 _ACEOF
1481 
1482   cat <<\_ACEOF
1483 
1484 Program names:
1485   --program-prefix=PREFIX            prepend PREFIX to installed program names
1486   --program-suffix=SUFFIX            append SUFFIX to installed program names
1487   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1488 
1489 System types:
1490   --build=BUILD     configure for building on BUILD [guessed]
1491   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1492 _ACEOF
1493 fi
1494 
1495 if test -n "$ac_init_help"; then
1496   case $ac_init_help in
1497      short | recursive ) echo "Configuration of json-c 0.11:";;
1498    esac
1499   cat <<\_ACEOF
1500 
1501 Optional Features:
1502   --disable-option-checking  ignore unrecognized --enable/--with options
1503   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1504   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1505   --disable-oldname-compat
1506                           Don't include the old libjson.so library and
1507                           include/json directory.
1508   --disable-dependency-tracking  speeds up one-time build
1509   --enable-dependency-tracking   do not reject slow dependency extractors
1510   --enable-shared[=PKGS]  build shared libraries [default=yes]
1511   --enable-static[=PKGS]  build static libraries [default=yes]
1512   --enable-fast-install[=PKGS]
1513                           optimize for fast installation [default=yes]
1514   --disable-libtool-lock  avoid locking (might break parallel builds)
1515 
1516 Optional Packages:
1517   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1518   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1519   --with-pic              try to use only PIC/non-PIC objects [default=use
1520                           both]
1521   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1522 
1523 Some influential environment variables:
1524   CC          C compiler command
1525   CFLAGS      C compiler flags
1526   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1527               nonstandard directory <lib dir>
1528   LIBS        libraries to pass to the linker, e.g. -l<library>
1529   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1530               you have headers in a nonstandard directory <include dir>
1531   CPP         C preprocessor
1532 
1533 Use these variables to override the choices made by `configure' or to help
1534 it to find libraries and programs with nonstandard names/locations.
1535 
1536 Report bugs to <json-c@googlegroups.com>.
1537 _ACEOF
1538 ac_status=$?
1539 fi
1540 
1541 if test "$ac_init_help" = "recursive"; then
1542   # If there are subdirs, report their specific --help.
1543   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544     test -d "$ac_dir" ||
1545       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546       continue
1547     ac_builddir=.
1548 
1549 case "$ac_dir" in
1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *)
1552   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553   # A ".." for each directory in $ac_dir_suffix.
1554   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555   case $ac_top_builddir_sub in
1556   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558   esac ;;
1559 esac
1560 ac_abs_top_builddir=$ac_pwd
1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562 # for backward compatibility:
1563 ac_top_builddir=$ac_top_build_prefix
1564 
1565 case $srcdir in
1566   .)  # We are building in place.
1567     ac_srcdir=.
1568     ac_top_srcdir=$ac_top_builddir_sub
1569     ac_abs_top_srcdir=$ac_pwd ;;
1570   [\\/]* | ?:[\\/]* )  # Absolute name.
1571     ac_srcdir=$srcdir$ac_dir_suffix;
1572     ac_top_srcdir=$srcdir
1573     ac_abs_top_srcdir=$srcdir ;;
1574   *) # Relative name.
1575     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576     ac_top_srcdir=$ac_top_build_prefix$srcdir
1577     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 esac
1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580 
1581     cd "$ac_dir" || { ac_status=$?; continue; }
1582     # Check for guested configure.
1583     if test -f "$ac_srcdir/configure.gnu"; then
1584       echo &&
1585       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586     elif test -f "$ac_srcdir/configure"; then
1587       echo &&
1588       $SHELL "$ac_srcdir/configure" --help=recursive
1589     else
1590       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591     fi || ac_status=$?
1592     cd "$ac_pwd" || { ac_status=$?; break; }
1593   done
1594 fi
1595 
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1598   cat <<\_ACEOF
1599 json-c configure 0.11
1600 generated by GNU Autoconf 2.68
1601 
1602 Copyright (C) 2010 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1605 _ACEOF
1606   exit
1607 fi
1608 
1609 ## ------------------------ ##
1610 ## Autoconf initialization. ##
1611 ## ------------------------ ##
1612 
1613 # ac_fn_c_try_compile LINENO
1614 # --------------------------
1615 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_compile ()
1617 {
1618   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619   rm -f conftest.$ac_objext
1620   if { { ac_try="$ac_compile"
1621 case "(($ac_try" in
1622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623   *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627   (eval "$ac_compile") 2>conftest.err
1628   ac_status=$?
1629   if test -s conftest.err; then
1630     grep -v '^ *+' conftest.err >conftest.er1
1631     cat conftest.er1 >&5
1632     mv -f conftest.er1 conftest.err
1633   fi
1634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635   test $ac_status = 0; } && {
1636          test -z "$ac_c_werror_flag" ||
1637          test ! -s conftest.err
1638        } && test -s conftest.$ac_objext; then :
1639   ac_retval=0
1640 else
1641   $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1643 
1644         ac_retval=1
1645 fi
1646   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647   as_fn_set_status $ac_retval
1648 
1649 } # ac_fn_c_try_compile
1650 
1651 # ac_fn_c_try_cpp LINENO
1652 # ----------------------
1653 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_cpp ()
1655 {
1656   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657   if { { ac_try="$ac_cpp conftest.$ac_ext"
1658 case "(($ac_try" in
1659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660   *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1665   ac_status=$?
1666   if test -s conftest.err; then
1667     grep -v '^ *+' conftest.err >conftest.er1
1668     cat conftest.er1 >&5
1669     mv -f conftest.er1 conftest.err
1670   fi
1671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672   test $ac_status = 0; } > conftest.i && {
1673          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1674          test ! -s conftest.err
1675        }; then :
1676   ac_retval=0
1677 else
1678   $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680 
1681     ac_retval=1
1682 fi
1683   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684   as_fn_set_status $ac_retval
1685 
1686 } # ac_fn_c_try_cpp
1687 
1688 # ac_fn_c_try_run LINENO
1689 # ----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1691 # that executables *can* be run.
1692 ac_fn_c_try_run ()
1693 {
1694   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695   if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698   *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702   (eval "$ac_link") 2>&5
1703   ac_status=$?
1704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1706   { { case "(($ac_try" in
1707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708   *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712   (eval "$ac_try") 2>&5
1713   ac_status=$?
1714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715   test $ac_status = 0; }; }; then :
1716   ac_retval=0
1717 else
1718   $as_echo "$as_me: program exited with status $ac_status" >&5
1719        $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721 
1722        ac_retval=$ac_status
1723 fi
1724   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726   as_fn_set_status $ac_retval
1727 
1728 } # ac_fn_c_try_run
1729 
1730 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1731 # -------------------------------------------------------
1732 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1733 # the include files in INCLUDES and setting the cache variable VAR
1734 # accordingly.
1735 ac_fn_c_check_header_mongrel ()
1736 {
1737   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738   if eval \${$3+:} false; then :
1739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if eval \${$3+:} false; then :
1742   $as_echo_n "(cached) " >&6
1743 fi
1744 eval ac_res=\$$3
1745                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 $as_echo "$ac_res" >&6; }
1747 else
1748   # Is the header compilable?
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1750 $as_echo_n "checking $2 usability... " >&6; }
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h.  */
1753 $4
1754 #include <$2>
1755 _ACEOF
1756 if ac_fn_c_try_compile "$LINENO"; then :
1757   ac_header_compiler=yes
1758 else
1759   ac_header_compiler=no
1760 fi
1761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1763 $as_echo "$ac_header_compiler" >&6; }
1764 
1765 # Is the header present?
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1767 $as_echo_n "checking $2 presence... " >&6; }
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h.  */
1770 #include <$2>
1771 _ACEOF
1772 if ac_fn_c_try_cpp "$LINENO"; then :
1773   ac_header_preproc=yes
1774 else
1775   ac_header_preproc=no
1776 fi
1777 rm -f conftest.err conftest.i conftest.$ac_ext
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1779 $as_echo "$ac_header_preproc" >&6; }
1780 
1781 # So?  What about this header?
1782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1783   yes:no: )
1784     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1785 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1786     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1787 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1788     ;;
1789   no:yes:* )
1790     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1791 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1792     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1793 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1794     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1795 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1796     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1797 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1798     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1799 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1800 ( $as_echo "## -------------------------------------- ##
1801 ## Report this to json-c@googlegroups.com ##
1802 ## -------------------------------------- ##"
1803      ) | sed "s/^/$as_me: WARNING:     /" >&2
1804     ;;
1805 esac
1806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if eval \${$3+:} false; then :
1809   $as_echo_n "(cached) " >&6
1810 else
1811   eval "$3=\$ac_header_compiler"
1812 fi
1813 eval ac_res=\$$3
1814                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1816 fi
1817   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 
1819 } # ac_fn_c_check_header_mongrel
1820 
1821 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1822 # -------------------------------------------------------
1823 # Tests whether HEADER exists and can be compiled using the include files in
1824 # INCLUDES, setting the cache variable VAR accordingly.
1825 ac_fn_c_check_header_compile ()
1826 {
1827   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if eval \${$3+:} false; then :
1831   $as_echo_n "(cached) " >&6
1832 else
1833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h.  */
1835 $4
1836 #include <$2>
1837 _ACEOF
1838 if ac_fn_c_try_compile "$LINENO"; then :
1839   eval "$3=yes"
1840 else
1841   eval "$3=no"
1842 fi
1843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1844 fi
1845 eval ac_res=\$$3
1846                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1848   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 
1850 } # ac_fn_c_check_header_compile
1851 
1852 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1853 # -------------------------------------------
1854 # Tests whether TYPE exists after having included INCLUDES, setting cache
1855 # variable VAR accordingly.
1856 ac_fn_c_check_type ()
1857 {
1858   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if eval \${$3+:} false; then :
1862   $as_echo_n "(cached) " >&6
1863 else
1864   eval "$3=no"
1865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h.  */
1867 $4
1868 int
1869 main ()
1870 {
1871 if (sizeof ($2))
1872          return 0;
1873   ;
1874   return 0;
1875 }
1876 _ACEOF
1877 if ac_fn_c_try_compile "$LINENO"; then :
1878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h.  */
1880 $4
1881 int
1882 main ()
1883 {
1884 if (sizeof (($2)))
1885             return 0;
1886   ;
1887   return 0;
1888 }
1889 _ACEOF
1890 if ac_fn_c_try_compile "$LINENO"; then :
1891 
1892 else
1893   eval "$3=yes"
1894 fi
1895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896 fi
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 fi
1899 eval ac_res=\$$3
1900                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1902   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 
1904 } # ac_fn_c_check_type
1905 
1906 # ac_fn_c_try_link LINENO
1907 # -----------------------
1908 # Try to link conftest.$ac_ext, and return whether this succeeded.
1909 ac_fn_c_try_link ()
1910 {
1911   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912   rm -f conftest.$ac_objext conftest$ac_exeext
1913   if { { ac_try="$ac_link"
1914 case "(($ac_try" in
1915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916   *) ac_try_echo=$ac_try;;
1917 esac
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920   (eval "$ac_link") 2>conftest.err
1921   ac_status=$?
1922   if test -s conftest.err; then
1923     grep -v '^ *+' conftest.err >conftest.er1
1924     cat conftest.er1 >&5
1925     mv -f conftest.er1 conftest.err
1926   fi
1927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928   test $ac_status = 0; } && {
1929          test -z "$ac_c_werror_flag" ||
1930          test ! -s conftest.err
1931        } && test -s conftest$ac_exeext && {
1932          test "$cross_compiling" = yes ||
1933          $as_test_x conftest$ac_exeext
1934        }; then :
1935   ac_retval=0
1936 else
1937   $as_echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1939 
1940         ac_retval=1
1941 fi
1942   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1943   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1944   # interfere with the next link command; also delete a directory that is
1945   # left behind by Apple's compiler.  We do this before executing the actions.
1946   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1947   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948   as_fn_set_status $ac_retval
1949 
1950 } # ac_fn_c_try_link
1951 
1952 # ac_fn_c_check_func LINENO FUNC VAR
1953 # ----------------------------------
1954 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1955 ac_fn_c_check_func ()
1956 {
1957   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if eval \${$3+:} false; then :
1961   $as_echo_n "(cached) " >&6
1962 else
1963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h.  */
1965 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1966    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1967 #define $2 innocuous_$2
1968 
1969 /* System header to define __stub macros and hopefully few prototypes,
1970     which can conflict with char $2 (); below.
1971     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1972     <limits.h> exists even on freestanding compilers.  */
1973 
1974 #ifdef __STDC__
1975 # include <limits.h>
1976 #else
1977 # include <assert.h>
1978 #endif
1979 
1980 #undef $2
1981 
1982 /* Override any GCC internal prototype to avoid an error.
1983    Use char because int might match the return type of a GCC
1984    builtin and then its argument prototype would still apply.  */
1985 #ifdef __cplusplus
1986 extern "C"
1987 #endif
1988 char $2 ();
1989 /* The GNU C library defines this for functions which it implements
1990     to always fail with ENOSYS.  Some functions are actually named
1991     something starting with __ and the normal name is an alias.  */
1992 #if defined __stub_$2 || defined __stub___$2
1993 choke me
1994 #endif
1995 
1996 int
1997 main ()
1998 {
1999 return $2 ();
2000   ;
2001   return 0;
2002 }
2003 _ACEOF
2004 if ac_fn_c_try_link "$LINENO"; then :
2005   eval "$3=yes"
2006 else
2007   eval "$3=no"
2008 fi
2009 rm -f core conftest.err conftest.$ac_objext \
2010     conftest$ac_exeext conftest.$ac_ext
2011 fi
2012 eval ac_res=\$$3
2013                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014 $as_echo "$ac_res" >&6; }
2015   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016 
2017 } # ac_fn_c_check_func
2018 cat >config.log <<_ACEOF
2019 This file contains any messages produced by compilers while
2020 running configure, to aid debugging if configure makes a mistake.
2021 
2022 It was created by json-c $as_me 0.11, which was
2023 generated by GNU Autoconf 2.68.  Invocation command line was
2024 
2025   $ $0 $@
2026 
2027 _ACEOF
2028 exec 5>>config.log
2029 {
2030 cat <<_ASUNAME
2031 ## --------- ##
2032 ## Platform. ##
2033 ## --------- ##
2034 
2035 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2036 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2037 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2038 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2039 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2040 
2041 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2042 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2043 
2044 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2045 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2046 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2047 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2048 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2049 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2050 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2051 
2052 _ASUNAME
2053 
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2056 do
2057   IFS=$as_save_IFS
2058   test -z "$as_dir" && as_dir=.
2059     $as_echo "PATH: $as_dir"
2060   done
2061 IFS=$as_save_IFS
2062 
2063 } >&5
2064 
2065 cat >&5 <<_ACEOF
2066 
2067 
2068 ## ----------- ##
2069 ## Core tests. ##
2070 ## ----------- ##
2071 
2072 _ACEOF
2073 
2074 
2075 # Keep a trace of the command line.
2076 # Strip out --no-create and --no-recursion so they do not pile up.
2077 # Strip out --silent because we don't want to record it for future runs.
2078 # Also quote any args containing shell meta-characters.
2079 # Make two passes to allow for proper duplicate-argument suppression.
2080 ac_configure_args=
2081 ac_configure_args0=
2082 ac_configure_args1=
2083 ac_must_keep_next=false
2084 for ac_pass in 1 2
2085 do
2086   for ac_arg
2087   do
2088     case $ac_arg in
2089     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2090     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2091     | -silent | --silent | --silen | --sile | --sil)
2092       continue ;;
2093     *\'*)
2094       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2095     esac
2096     case $ac_pass in
2097     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2098     2)
2099       as_fn_append ac_configure_args1 " '$ac_arg'"
2100       if test $ac_must_keep_next = true; then
2101         ac_must_keep_next=false # Got value, back to normal.
2102       else
2103         case $ac_arg in
2104           *=* | --config-cache | -C | -disable-* | --disable-* \
2105           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2106           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2107           | -with-* | --with-* | -without-* | --without-* | --x)
2108             case "$ac_configure_args0 " in
2109               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2110             esac
2111             ;;
2112           -* ) ac_must_keep_next=true ;;
2113         esac
2114       fi
2115       as_fn_append ac_configure_args " '$ac_arg'"
2116       ;;
2117     esac
2118   done
2119 done
2120 { ac_configure_args0=; unset ac_configure_args0;}
2121 { ac_configure_args1=; unset ac_configure_args1;}
2122 
2123 # When interrupted or exit'd, cleanup temporary files, and complete
2124 # config.log.  We remove comments because anyway the quotes in there
2125 # would cause problems or look ugly.
2126 # WARNING: Use '\'' to represent an apostrophe within the trap.
2127 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2128 trap 'exit_status=$?
2129   # Save into config.log some information that might help in debugging.
2130   {
2131     echo
2132 
2133     $as_echo "## ---------------- ##
2134 ## Cache variables. ##
2135 ## ---------------- ##"
2136     echo
2137     # The following way of writing the cache mishandles newlines in values,
2138 (
2139   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2140     eval ac_val=\$$ac_var
2141     case $ac_val in #(
2142     *${as_nl}*)
2143       case $ac_var in #(
2144       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2145 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2146       esac
2147       case $ac_var in #(
2148       _ | IFS | as_nl) ;; #(
2149       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2150       *) { eval $ac_var=; unset $ac_var;} ;;
2151       esac ;;
2152     esac
2153   done
2154   (set) 2>&1 |
2155     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2156     *${as_nl}ac_space=\ *)
2157       sed -n \
2158         "s/'\''/'\''\\\\'\'''\''/g;
2159           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2160       ;; #(
2161     *)
2162       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2163       ;;
2164     esac |
2165     sort
2166 )
2167     echo
2168 
2169     $as_echo "## ----------------- ##
2170 ## Output variables. ##
2171 ## ----------------- ##"
2172     echo
2173     for ac_var in $ac_subst_vars
2174     do
2175       eval ac_val=\$$ac_var
2176       case $ac_val in
2177       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2178       esac
2179       $as_echo "$ac_var='\''$ac_val'\''"
2180     done | sort
2181     echo
2182 
2183     if test -n "$ac_subst_files"; then
2184       $as_echo "## ------------------- ##
2185 ## File substitutions. ##
2186 ## ------------------- ##"
2187       echo
2188       for ac_var in $ac_subst_files
2189       do
2190         eval ac_val=\$$ac_var
2191         case $ac_val in
2192         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193         esac
2194         $as_echo "$ac_var='\''$ac_val'\''"
2195       done | sort
2196       echo
2197     fi
2198 
2199     if test -s confdefs.h; then
2200       $as_echo "## ----------- ##
2201 ## confdefs.h. ##
2202 ## ----------- ##"
2203       echo
2204       cat confdefs.h
2205       echo
2206     fi
2207     test "$ac_signal" != 0 &&
2208       $as_echo "$as_me: caught signal $ac_signal"
2209     $as_echo "$as_me: exit $exit_status"
2210   } >&5
2211   rm -f core *.core core.conftest.* &&
2212     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2213     exit $exit_status
2214 ' 0
2215 for ac_signal in 1 2 13 15; do
2216   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2217 done
2218 ac_signal=0
2219 
2220 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2221 rm -f -r conftest* confdefs.h
2222 
2223 $as_echo "/* confdefs.h */" > confdefs.h
2224 
2225 # Predefined preprocessor variables.
2226 
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_NAME "$PACKAGE_NAME"
2229 _ACEOF
2230 
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2233 _ACEOF
2234 
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2237 _ACEOF
2238 
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_STRING "$PACKAGE_STRING"
2241 _ACEOF
2242 
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2245 _ACEOF
2246 
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_URL "$PACKAGE_URL"
2249 _ACEOF
2250 
2251 
2252 # Let the site file select an alternate cache file if it wants to.
2253 # Prefer an explicitly selected file to automatically selected ones.
2254 ac_site_file1=NONE
2255 ac_site_file2=NONE
2256 if test -n "$CONFIG_SITE"; then
2257   # We do not want a PATH search for config.site.
2258   case $CONFIG_SITE in #((
2259     -*)  ac_site_file1=./$CONFIG_SITE;;
2260     */*) ac_site_file1=$CONFIG_SITE;;
2261     *)   ac_site_file1=./$CONFIG_SITE;;
2262   esac
2263 elif test "x$prefix" != xNONE; then
2264   ac_site_file1=$prefix/share/config.site
2265   ac_site_file2=$prefix/etc/config.site
2266 else
2267   ac_site_file1=$ac_default_prefix/share/config.site
2268   ac_site_file2=$ac_default_prefix/etc/config.site
2269 fi
2270 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2271 do
2272   test "x$ac_site_file" = xNONE && continue
2273   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2274     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2275 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2276     sed 's/^/| /' "$ac_site_file" >&5
2277     . "$ac_site_file" \
2278       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2280 as_fn_error $? "failed to load site script $ac_site_file
2281 See \`config.log' for more details" "$LINENO" 5; }
2282   fi
2283 done
2284 
2285 if test -r "$cache_file"; then
2286   # Some versions of bash will fail to source /dev/null (special files
2287   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2288   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2289     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2290 $as_echo "$as_me: loading cache $cache_file" >&6;}
2291     case $cache_file in
2292       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2293       *)                      . "./$cache_file";;
2294     esac
2295   fi
2296 else
2297   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2298 $as_echo "$as_me: creating cache $cache_file" >&6;}
2299   >$cache_file
2300 fi
2301 
2302 # Check that the precious variables saved in the cache have kept the same
2303 # value.
2304 ac_cache_corrupted=false
2305 for ac_var in $ac_precious_vars; do
2306   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2307   eval ac_new_set=\$ac_env_${ac_var}_set
2308   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2309   eval ac_new_val=\$ac_env_${ac_var}_value
2310   case $ac_old_set,$ac_new_set in
2311     set,)
2312       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2313 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2314       ac_cache_corrupted=: ;;
2315     ,set)
2316       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2317 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2318       ac_cache_corrupted=: ;;
2319     ,);;
2320     *)
2321       if test "x$ac_old_val" != "x$ac_new_val"; then
2322         # differences in whitespace do not lead to failure.
2323         ac_old_val_w=`echo x $ac_old_val`
2324         ac_new_val_w=`echo x $ac_new_val`
2325         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2326           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2327 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2328           ac_cache_corrupted=:
2329         else
2330           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2331 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2332           eval $ac_var=\$ac_old_val
2333         fi
2334         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2335 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2336         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2337 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2338       fi;;
2339   esac
2340   # Pass precious variables to config.status.
2341   if test "$ac_new_set" = set; then
2342     case $ac_new_val in
2343     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2344     *) ac_arg=$ac_var=$ac_new_val ;;
2345     esac
2346     case " $ac_configure_args " in
2347       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2348       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2349     esac
2350   fi
2351 done
2352 if $ac_cache_corrupted; then
2353   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2355   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2356 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2357   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2358 fi
2359 ## -------------------- ##
2360 ## Main body of script. ##
2361 ## -------------------- ##
2362 
2363 ac_ext=c
2364 ac_cpp='$CPP $CPPFLAGS'
2365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2368 
2369 
2370 
2371 am__api_version='1.11'
2372 
2373 ac_aux_dir=
2374 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2375   if test -f "$ac_dir/install-sh"; then
2376     ac_aux_dir=$ac_dir
2377     ac_install_sh="$ac_aux_dir/install-sh -c"
2378     break
2379   elif test -f "$ac_dir/install.sh"; then
2380     ac_aux_dir=$ac_dir
2381     ac_install_sh="$ac_aux_dir/install.sh -c"
2382     break
2383   elif test -f "$ac_dir/shtool"; then
2384     ac_aux_dir=$ac_dir
2385     ac_install_sh="$ac_aux_dir/shtool install -c"
2386     break
2387   fi
2388 done
2389 if test -z "$ac_aux_dir"; then
2390   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2391 fi
2392 
2393 # These three variables are undocumented and unsupported,
2394 # and are intended to be withdrawn in a future Autoconf release.
2395 # They can cause serious problems if a builder's source tree is in a directory
2396 # whose full name contains unusual characters.
2397 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2398 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2399 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2400 
2401 
2402 # Find a good install program.  We prefer a C program (faster),
2403 # so one script is as good as another.  But avoid the broken or
2404 # incompatible versions:
2405 # SysV /etc/install, /usr/sbin/install
2406 # SunOS /usr/etc/install
2407 # IRIX /sbin/install
2408 # AIX /bin/install
2409 # AmigaOS /C/install, which installs bootblocks on floppy discs
2410 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2411 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2412 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2413 # OS/2's system install, which has a completely different semantic
2414 # ./install, which can be erroneously created by make from ./install.sh.
2415 # Reject install programs that cannot install multiple files.
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2417 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2418 if test -z "$INSTALL"; then
2419 if ${ac_cv_path_install+:} false; then :
2420   $as_echo_n "(cached) " >&6
2421 else
2422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 for as_dir in $PATH
2424 do
2425   IFS=$as_save_IFS
2426   test -z "$as_dir" && as_dir=.
2427     # Account for people who put trailing slashes in PATH elements.
2428 case $as_dir/ in #((
2429   ./ | .// | /[cC]/* | \
2430   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2431   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2432   /usr/ucb/* ) ;;
2433   *)
2434     # OSF1 and SCO ODT 3.0 have their own names for install.
2435     # Don't use installbsd from OSF since it installs stuff as root
2436     # by default.
2437     for ac_prog in ginstall scoinst install; do
2438       for ac_exec_ext in '' $ac_executable_extensions; do
2439         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2440           if test $ac_prog = install &&
2441             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2442             # AIX install.  It has an incompatible calling convention.
2443             :
2444           elif test $ac_prog = install &&
2445             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2446             # program-specific install script used by HP pwplus--don't use.
2447             :
2448           else
2449             rm -rf conftest.one conftest.two conftest.dir
2450             echo one > conftest.one
2451             echo two > conftest.two
2452             mkdir conftest.dir
2453             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2454               test -s conftest.one && test -s conftest.two &&
2455               test -s conftest.dir/conftest.one &&
2456               test -s conftest.dir/conftest.two
2457             then
2458               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2459               break 3
2460             fi
2461           fi
2462         fi
2463       done
2464     done
2465     ;;
2466 esac
2467 
2468   done
2469 IFS=$as_save_IFS
2470 
2471 rm -rf conftest.one conftest.two conftest.dir
2472 
2473 fi
2474   if test "${ac_cv_path_install+set}" = set; then
2475     INSTALL=$ac_cv_path_install
2476   else
2477     # As a last resort, use the slow shell script.  Don't cache a
2478     # value for INSTALL within a source directory, because that will
2479     # break other packages using the cache if that directory is
2480     # removed, or if the value is a relative name.
2481     INSTALL=$ac_install_sh
2482   fi
2483 fi
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2485 $as_echo "$INSTALL" >&6; }
2486 
2487 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2488 # It thinks the first close brace ends the variable substitution.
2489 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2490 
2491 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2492 
2493 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2494 
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2496 $as_echo_n "checking whether build environment is sane... " >&6; }
2497 # Just in case
2498 sleep 1
2499 echo timestamp > conftest.file
2500 # Reject unsafe characters in $srcdir or the absolute working directory
2501 # name.  Accept space and tab only in the latter.
2502 am_lf='
2503 '
2504 case `pwd` in
2505   *[\\\"\#\$\&\'\`$am_lf]*)
2506     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2507 esac
2508 case $srcdir in
2509   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2510     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2511 esac
2512 
2513 # Do `set' in a subshell so we don't clobber the current shell's
2514 # arguments.  Must try -L first in case configure is actually a
2515 # symlink; some systems play weird games with the mod time of symlinks
2516 # (eg FreeBSD returns the mod time of the symlink's containing
2517 # directory).
2518 if (
2519    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2520    if test "$*" = "X"; then
2521       # -L didn't work.
2522       set X `ls -t "$srcdir/configure" conftest.file`
2523    fi
2524    rm -f conftest.file
2525    if test "$*" != "X $srcdir/configure conftest.file" \
2526       && test "$*" != "X conftest.file $srcdir/configure"; then
2527 
2528       # If neither matched, then we have a broken ls.  This can happen
2529       # if, for instance, CONFIG_SHELL is bash and it inherits a
2530       # broken ls alias from the environment.  This has actually
2531       # happened.  Such a system could not be considered "sane".
2532       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2533 alias in your environment" "$LINENO" 5
2534    fi
2535 
2536    test "$2" = conftest.file
2537    )
2538 then
2539    # Ok.
2540    :
2541 else
2542    as_fn_error $? "newly created file is older than distributed files!
2543 Check your system clock" "$LINENO" 5
2544 fi
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2546 $as_echo "yes" >&6; }
2547 test "$program_prefix" != NONE &&
2548   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2549 # Use a double $ so make ignores it.
2550 test "$program_suffix" != NONE &&
2551   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2552 # Double any \ or $.
2553 # By default was `s,x,x', remove it if useless.
2554 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2555 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2556 
2557 # expand $ac_aux_dir to an absolute path
2558 am_aux_dir=`cd $ac_aux_dir && pwd`
2559 
2560 if test x"${MISSING+set}" != xset; then
2561   case $am_aux_dir in
2562   *\ * | *\     *)
2563     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2564   *)
2565     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2566   esac
2567 fi
2568 # Use eval to expand $SHELL
2569 if eval "$MISSING --run true"; then
2570   am_missing_run="$MISSING --run "
2571 else
2572   am_missing_run=
2573   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2574 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2575 fi
2576 
2577 if test x"${install_sh}" != xset; then
2578   case $am_aux_dir in
2579   *\ * | *\     *)
2580     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2581   *)
2582     install_sh="\${SHELL} $am_aux_dir/install-sh"
2583   esac
2584 fi
2585 
2586 # Installed binaries are usually stripped using `strip' when the user
2587 # run `make install-strip'.  However `strip' might not be the right
2588 # tool to use in cross-compilation environments, therefore Automake
2589 # will honor the `STRIP' environment variable to overrule this program.
2590 if test "$cross_compiling" != no; then
2591   if test -n "$ac_tool_prefix"; then
2592   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2593 set dummy ${ac_tool_prefix}strip; ac_word=$2
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595 $as_echo_n "checking for $ac_word... " >&6; }
2596 if ${ac_cv_prog_STRIP+:} false; then :
2597   $as_echo_n "(cached) " >&6
2598 else
2599   if test -n "$STRIP"; then
2600   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2601 else
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2604 do
2605   IFS=$as_save_IFS
2606   test -z "$as_dir" && as_dir=.
2607     for ac_exec_ext in '' $ac_executable_extensions; do
2608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611     break 2
2612   fi
2613 done
2614   done
2615 IFS=$as_save_IFS
2616 
2617 fi
2618 fi
2619 STRIP=$ac_cv_prog_STRIP
2620 if test -n "$STRIP"; then
2621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2622 $as_echo "$STRIP" >&6; }
2623 else
2624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625 $as_echo "no" >&6; }
2626 fi
2627 
2628 
2629 fi
2630 if test -z "$ac_cv_prog_STRIP"; then
2631   ac_ct_STRIP=$STRIP
2632   # Extract the first word of "strip", so it can be a program name with args.
2633 set dummy strip; ac_word=$2
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2635 $as_echo_n "checking for $ac_word... " >&6; }
2636 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2637   $as_echo_n "(cached) " >&6
2638 else
2639   if test -n "$ac_ct_STRIP"; then
2640   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645   IFS=$as_save_IFS
2646   test -z "$as_dir" && as_dir=.
2647     for ac_exec_ext in '' $ac_executable_extensions; do
2648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649     ac_cv_prog_ac_ct_STRIP="strip"
2650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651     break 2
2652   fi
2653 done
2654   done
2655 IFS=$as_save_IFS
2656 
2657 fi
2658 fi
2659 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2660 if test -n "$ac_ct_STRIP"; then
2661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2662 $as_echo "$ac_ct_STRIP" >&6; }
2663 else
2664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2666 fi
2667 
2668   if test "x$ac_ct_STRIP" = x; then
2669     STRIP=":"
2670   else
2671     case $cross_compiling:$ac_tool_warned in
2672 yes:)
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2675 ac_tool_warned=yes ;;
2676 esac
2677     STRIP=$ac_ct_STRIP
2678   fi
2679 else
2680   STRIP="$ac_cv_prog_STRIP"
2681 fi
2682 
2683 fi
2684 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2685 
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2687 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2688 if test -z "$MKDIR_P"; then
2689   if ${ac_cv_path_mkdir+:} false; then :
2690   $as_echo_n "(cached) " >&6
2691 else
2692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2694 do
2695   IFS=$as_save_IFS
2696   test -z "$as_dir" && as_dir=.
2697     for ac_prog in mkdir gmkdir; do
2698          for ac_exec_ext in '' $ac_executable_extensions; do
2699            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2700            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2701              'mkdir (GNU coreutils) '* | \
2702              'mkdir (coreutils) '* | \
2703              'mkdir (fileutils) '4.1*)
2704                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2705                break 3;;
2706            esac
2707          done
2708        done
2709   done
2710 IFS=$as_save_IFS
2711 
2712 fi
2713 
2714   test -d ./--version && rmdir ./--version
2715   if test "${ac_cv_path_mkdir+set}" = set; then
2716     MKDIR_P="$ac_cv_path_mkdir -p"
2717   else
2718     # As a last resort, use the slow shell script.  Don't cache a
2719     # value for MKDIR_P within a source directory, because that will
2720     # break other packages using the cache if that directory is
2721     # removed, or if the value is a relative name.
2722     MKDIR_P="$ac_install_sh -d"
2723   fi
2724 fi
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2726 $as_echo "$MKDIR_P" >&6; }
2727 
2728 mkdir_p="$MKDIR_P"
2729 case $mkdir_p in
2730   [\\/$]* | ?:[\\/]*) ;;
2731   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2732 esac
2733 
2734 for ac_prog in gawk mawk nawk awk
2735 do
2736   # Extract the first word of "$ac_prog", so it can be a program name with args.
2737 set dummy $ac_prog; ac_word=$2
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739 $as_echo_n "checking for $ac_word... " >&6; }
2740 if ${ac_cv_prog_AWK+:} false; then :
2741   $as_echo_n "(cached) " >&6
2742 else
2743   if test -n "$AWK"; then
2744   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2748 do
2749   IFS=$as_save_IFS
2750   test -z "$as_dir" && as_dir=.
2751     for ac_exec_ext in '' $ac_executable_extensions; do
2752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2753     ac_cv_prog_AWK="$ac_prog"
2754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2755     break 2
2756   fi
2757 done
2758   done
2759 IFS=$as_save_IFS
2760 
2761 fi
2762 fi
2763 AWK=$ac_cv_prog_AWK
2764 if test -n "$AWK"; then
2765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2766 $as_echo "$AWK" >&6; }
2767 else
2768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 $as_echo "no" >&6; }
2770 fi
2771 
2772 
2773   test -n "$AWK" && break
2774 done
2775 
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2777 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2778 set x ${MAKE-make}
2779 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2780 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2781   $as_echo_n "(cached) " >&6
2782 else
2783   cat >conftest.make <<\_ACEOF
2784 SHELL = /bin/sh
2785 all:
2786         @echo '@@@%%%=$(MAKE)=@@@%%%'
2787 _ACEOF
2788 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2789 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2790   *@@@%%%=?*=@@@%%%*)
2791     eval ac_cv_prog_make_${ac_make}_set=yes;;
2792   *)
2793     eval ac_cv_prog_make_${ac_make}_set=no;;
2794 esac
2795 rm -f conftest.make
2796 fi
2797 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2799 $as_echo "yes" >&6; }
2800   SET_MAKE=
2801 else
2802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 $as_echo "no" >&6; }
2804   SET_MAKE="MAKE=${MAKE-make}"
2805 fi
2806 
2807 rm -rf .tst 2>/dev/null
2808 mkdir .tst 2>/dev/null
2809 if test -d .tst; then
2810   am__leading_dot=.
2811 else
2812   am__leading_dot=_
2813 fi
2814 rmdir .tst 2>/dev/null
2815 
2816 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2817   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2818   # is not polluted with repeated "-I."
2819   am__isrc=' -I$(srcdir)'
2820   # test to see if srcdir already configured
2821   if test -f $srcdir/config.status; then
2822     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2823   fi
2824 fi
2825 
2826 # test whether we have cygpath
2827 if test -z "$CYGPATH_W"; then
2828   if (cygpath --version) >/dev/null 2>/dev/null; then
2829     CYGPATH_W='cygpath -w'
2830   else
2831     CYGPATH_W=echo
2832   fi
2833 fi
2834 
2835 
2836 # Define the identity of the package.
2837  PACKAGE=json-c
2838  VERSION=0.11
2839 
2840 
2841 cat >>confdefs.h <<_ACEOF
2842 #define PACKAGE "$PACKAGE"
2843 _ACEOF
2844 
2845 
2846 cat >>confdefs.h <<_ACEOF
2847 #define VERSION "$VERSION"
2848 _ACEOF
2849 
2850 # Some tools Automake needs.
2851 
2852 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2853 
2854 
2855 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2856 
2857 
2858 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2859 
2860 
2861 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2862 
2863 
2864 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2865 
2866 # We need awk for the "check" target.  The system "awk" is bad on
2867 # some platforms.
2868 # Always define AMTAR for backward compatibility.
2869 
2870 AMTAR=${AMTAR-"${am_missing_run}tar"}
2871 
2872 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2873 
2874 
2875 
2876 
2877 
2878 
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2880 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2881 set x ${MAKE-make}
2882 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2883 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2884   $as_echo_n "(cached) " >&6
2885 else
2886   cat >conftest.make <<\_ACEOF
2887 SHELL = /bin/sh
2888 all:
2889         @echo '@@@%%%=$(MAKE)=@@@%%%'
2890 _ACEOF
2891 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2892 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2893   *@@@%%%=?*=@@@%%%*)
2894     eval ac_cv_prog_make_${ac_make}_set=yes;;
2895   *)
2896     eval ac_cv_prog_make_${ac_make}_set=no;;
2897 esac
2898 rm -f conftest.make
2899 fi
2900 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2902 $as_echo "yes" >&6; }
2903   SET_MAKE=
2904 else
2905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 $as_echo "no" >&6; }
2907   SET_MAKE="MAKE=${MAKE-make}"
2908 fi
2909 
2910 
2911 # Check whether --enable-oldname-compat was given.
2912 if test "${enable_oldname_compat+set}" = set; then :
2913   enableval=$enable_oldname_compat;
2914 else
2915   enable_oldname_compat=yes
2916 
2917 fi
2918 
2919  if test "x${enable_oldname_compat}" != "xno"; then
2920   ENABLE_OLDNAME_COMPAT_TRUE=
2921   ENABLE_OLDNAME_COMPAT_FALSE='#'
2922 else
2923   ENABLE_OLDNAME_COMPAT_TRUE='#'
2924   ENABLE_OLDNAME_COMPAT_FALSE=
2925 fi
2926 
2927 
2928 # Checks for programs.
2929 
2930 # Checks for libraries.
2931 
2932 # Checks for header files.
2933 ac_config_headers="$ac_config_headers config.h"
2934 
2935 ac_config_headers="$ac_config_headers json_config.h"
2936 
2937 DEPDIR="${am__leading_dot}deps"
2938 
2939 ac_config_commands="$ac_config_commands depfiles"
2940 
2941 
2942 am_make=${MAKE-make}
2943 cat > confinc << 'END'
2944 am__doit:
2945         @echo this is the am__doit target
2946 .PHONY: am__doit
2947 END
2948 # If we don't find an include directive, just comment out the code.
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2950 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2951 am__include="#"
2952 am__quote=
2953 _am_result=none
2954 # First try GNU make style include.
2955 echo "include confinc" > confmf
2956 # Ignore all kinds of additional output from `make'.
2957 case `$am_make -s -f confmf 2> /dev/null` in #(
2958 *the\ am__doit\ target*)
2959   am__include=include
2960   am__quote=
2961   _am_result=GNU
2962   ;;
2963 esac
2964 # Now try BSD make style include.
2965 if test "$am__include" = "#"; then
2966    echo '.include "confinc"' > confmf
2967    case `$am_make -s -f confmf 2> /dev/null` in #(
2968    *the\ am__doit\ target*)
2969      am__include=.include
2970      am__quote="\""
2971      _am_result=BSD
2972      ;;
2973    esac
2974 fi
2975 
2976 
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2978 $as_echo "$_am_result" >&6; }
2979 rm -f confinc confmf
2980 
2981 # Check whether --enable-dependency-tracking was given.
2982 if test "${enable_dependency_tracking+set}" = set; then :
2983   enableval=$enable_dependency_tracking;
2984 fi
2985 
2986 if test "x$enable_dependency_tracking" != xno; then
2987   am_depcomp="$ac_aux_dir/depcomp"
2988   AMDEPBACKSLASH='\'
2989 fi
2990  if test "x$enable_dependency_tracking" != xno; then
2991   AMDEP_TRUE=
2992   AMDEP_FALSE='#'
2993 else
2994   AMDEP_TRUE='#'
2995   AMDEP_FALSE=
2996 fi
2997 
2998 
2999 ac_ext=c
3000 ac_cpp='$CPP $CPPFLAGS'
3001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3004 if test -n "$ac_tool_prefix"; then
3005   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3006 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if ${ac_cv_prog_CC+:} false; then :
3010   $as_echo_n "(cached) " >&6
3011 else
3012   if test -n "$CC"; then
3013   ac_cv_prog_CC="$CC" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3017 do
3018   IFS=$as_save_IFS
3019   test -z "$as_dir" && as_dir=.
3020     for ac_exec_ext in '' $ac_executable_extensions; do
3021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024     break 2
3025   fi
3026 done
3027   done
3028 IFS=$as_save_IFS
3029 
3030 fi
3031 fi
3032 CC=$ac_cv_prog_CC
3033 if test -n "$CC"; then
3034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035 $as_echo "$CC" >&6; }
3036 else
3037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 fi
3040 
3041 
3042 fi
3043 if test -z "$ac_cv_prog_CC"; then
3044   ac_ct_CC=$CC
3045   # Extract the first word of "gcc", so it can be a program name with args.
3046 set dummy gcc; ac_word=$2
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3050   $as_echo_n "(cached) " >&6
3051 else
3052   if test -n "$ac_ct_CC"; then
3053   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3057 do
3058   IFS=$as_save_IFS
3059   test -z "$as_dir" && as_dir=.
3060     for ac_exec_ext in '' $ac_executable_extensions; do
3061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062     ac_cv_prog_ac_ct_CC="gcc"
3063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064     break 2
3065   fi
3066 done
3067   done
3068 IFS=$as_save_IFS
3069 
3070 fi
3071 fi
3072 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3073 if test -n "$ac_ct_CC"; then
3074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3075 $as_echo "$ac_ct_CC" >&6; }
3076 else
3077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3079 fi
3080 
3081   if test "x$ac_ct_CC" = x; then
3082     CC=""
3083   else
3084     case $cross_compiling:$ac_tool_warned in
3085 yes:)
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3088 ac_tool_warned=yes ;;
3089 esac
3090     CC=$ac_ct_CC
3091   fi
3092 else
3093   CC="$ac_cv_prog_CC"
3094 fi
3095 
3096 if test -z "$CC"; then
3097           if test -n "$ac_tool_prefix"; then
3098     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3099 set dummy ${ac_tool_prefix}cc; ac_word=$2
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 $as_echo_n "checking for $ac_word... " >&6; }
3102 if ${ac_cv_prog_CC+:} false; then :
3103   $as_echo_n "(cached) " >&6
3104 else
3105   if test -n "$CC"; then
3106   ac_cv_prog_CC="$CC" # Let the user override the test.
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3110 do
3111   IFS=$as_save_IFS
3112   test -z "$as_dir" && as_dir=.
3113     for ac_exec_ext in '' $ac_executable_extensions; do
3114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3115     ac_cv_prog_CC="${ac_tool_prefix}cc"
3116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117     break 2
3118   fi
3119 done
3120   done
3121 IFS=$as_save_IFS
3122 
3123 fi
3124 fi
3125 CC=$ac_cv_prog_CC
3126 if test -n "$CC"; then
3127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3128 $as_echo "$CC" >&6; }
3129 else
3130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 $as_echo "no" >&6; }
3132 fi
3133 
3134 
3135   fi
3136 fi
3137 if test -z "$CC"; then
3138   # Extract the first word of "cc", so it can be a program name with args.
3139 set dummy cc; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_prog_CC+:} false; then :
3143   $as_echo_n "(cached) " >&6
3144 else
3145   if test -n "$CC"; then
3146   ac_cv_prog_CC="$CC" # Let the user override the test.
3147 else
3148   ac_prog_rejected=no
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3151 do
3152   IFS=$as_save_IFS
3153   test -z "$as_dir" && as_dir=.
3154     for ac_exec_ext in '' $ac_executable_extensions; do
3155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3156     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3157        ac_prog_rejected=yes
3158        continue
3159      fi
3160     ac_cv_prog_CC="cc"
3161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162     break 2
3163   fi
3164 done
3165   done
3166 IFS=$as_save_IFS
3167 
3168 if test $ac_prog_rejected = yes; then
3169   # We found a bogon in the path, so make sure we never use it.
3170   set dummy $ac_cv_prog_CC
3171   shift
3172   if test $# != 0; then
3173     # We chose a different compiler from the bogus one.
3174     # However, it has the same basename, so the bogon will be chosen
3175     # first if we set CC to just the basename; use the full file name.
3176     shift
3177     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3178   fi
3179 fi
3180 fi
3181 fi
3182 CC=$ac_cv_prog_CC
3183 if test -n "$CC"; then
3184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185 $as_echo "$CC" >&6; }
3186 else
3187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3189 fi
3190 
3191 
3192 fi
3193 if test -z "$CC"; then
3194   if test -n "$ac_tool_prefix"; then
3195   for ac_prog in cl.exe
3196   do
3197     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3198 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200 $as_echo_n "checking for $ac_word... " >&6; }
3201 if ${ac_cv_prog_CC+:} false; then :
3202   $as_echo_n "(cached) " >&6
3203 else
3204   if test -n "$CC"; then
3205   ac_cv_prog_CC="$CC" # Let the user override the test.
3206 else
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3209 do
3210   IFS=$as_save_IFS
3211   test -z "$as_dir" && as_dir=.
3212     for ac_exec_ext in '' $ac_executable_extensions; do
3213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216     break 2
3217   fi
3218 done
3219   done
3220 IFS=$as_save_IFS
3221 
3222 fi
3223 fi
3224 CC=$ac_cv_prog_CC
3225 if test -n "$CC"; then
3226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3227 $as_echo "$CC" >&6; }
3228 else
3229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3231 fi
3232 
3233 
3234     test -n "$CC" && break
3235   done
3236 fi
3237 if test -z "$CC"; then
3238   ac_ct_CC=$CC
3239   for ac_prog in cl.exe
3240 do
3241   # Extract the first word of "$ac_prog", so it can be a program name with args.
3242 set dummy $ac_prog; ac_word=$2
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3246   $as_echo_n "(cached) " >&6
3247 else
3248   if test -n "$ac_ct_CC"; then
3249   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3250 else
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254   IFS=$as_save_IFS
3255   test -z "$as_dir" && as_dir=.
3256     for ac_exec_ext in '' $ac_executable_extensions; do
3257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258     ac_cv_prog_ac_ct_CC="$ac_prog"
3259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260     break 2
3261   fi
3262 done
3263   done
3264 IFS=$as_save_IFS
3265 
3266 fi
3267 fi
3268 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3269 if test -n "$ac_ct_CC"; then
3270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3271 $as_echo "$ac_ct_CC" >&6; }
3272 else
3273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 fi
3276 
3277 
3278   test -n "$ac_ct_CC" && break
3279 done
3280 
3281   if test "x$ac_ct_CC" = x; then
3282     CC=""
3283   else
3284     case $cross_compiling:$ac_tool_warned in
3285 yes:)
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3288 ac_tool_warned=yes ;;
3289 esac
3290     CC=$ac_ct_CC
3291   fi
3292 fi
3293 
3294 fi
3295 
3296 
3297 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299 as_fn_error $? "no acceptable C compiler found in \$PATH
3300 See \`config.log' for more details" "$LINENO" 5; }
3301 
3302 # Provide some information about the compiler.
3303 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3304 set X $ac_compile
3305 ac_compiler=$2
3306 for ac_option in --version -v -V -qversion; do
3307   { { ac_try="$ac_compiler $ac_option >&5"
3308 case "(($ac_try" in
3309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310   *) ac_try_echo=$ac_try;;
3311 esac
3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313 $as_echo "$ac_try_echo"; } >&5
3314   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3315   ac_status=$?
3316   if test -s conftest.err; then
3317     sed '10a\
3318 ... rest of stderr output deleted ...
3319          10q' conftest.err >conftest.er1
3320     cat conftest.er1 >&5
3321   fi
3322   rm -f conftest.er1 conftest.err
3323   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324   test $ac_status = 0; }
3325 done
3326 
3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h.  */
3329 
3330 int
3331 main ()
3332 {
3333 
3334   ;
3335   return 0;
3336 }
3337 _ACEOF
3338 ac_clean_files_save=$ac_clean_files
3339 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3340 # Try to create an executable without -o first, disregard a.out.
3341 # It will help us diagnose broken compilers, and finding out an intuition
3342 # of exeext.
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3344 $as_echo_n "checking whether the C compiler works... " >&6; }
3345 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3346 
3347 # The possible output files:
3348 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3349 
3350 ac_rmfiles=
3351 for ac_file in $ac_files
3352 do
3353   case $ac_file in
3354     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3355     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3356   esac
3357 done
3358 rm -f $ac_rmfiles
3359 
3360 if { { ac_try="$ac_link_default"
3361 case "(($ac_try" in
3362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363   *) ac_try_echo=$ac_try;;
3364 esac
3365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3366 $as_echo "$ac_try_echo"; } >&5
3367   (eval "$ac_link_default") 2>&5
3368   ac_status=$?
3369   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3370   test $ac_status = 0; }; then :
3371   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3372 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3373 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3374 # so that the user can short-circuit this test for compilers unknown to
3375 # Autoconf.
3376 for ac_file in $ac_files ''
3377 do
3378   test -f "$ac_file" || continue
3379   case $ac_file in
3380     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3381         ;;
3382     [ab].out )
3383         # We found the default executable, but exeext='' is most
3384         # certainly right.
3385         break;;
3386     *.* )
3387         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3388         then :; else
3389            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3390         fi
3391         # We set ac_cv_exeext here because the later test for it is not
3392         # safe: cross compilers may not add the suffix if given an `-o'
3393         # argument, so we may need to know it at that point already.
3394         # Even if this section looks crufty: it has the advantage of
3395         # actually working.
3396         break;;
3397     * )
3398         break;;
3399   esac
3400 done
3401 test "$ac_cv_exeext" = no && ac_cv_exeext=
3402 
3403 else
3404   ac_file=''
3405 fi
3406 if test -z "$ac_file"; then :
3407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3409 $as_echo "$as_me: failed program was:" >&5
3410 sed 's/^/| /' conftest.$ac_ext >&5
3411 
3412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414 as_fn_error 77 "C compiler cannot create executables
3415 See \`config.log' for more details" "$LINENO" 5; }
3416 else
3417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3418 $as_echo "yes" >&6; }
3419 fi
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3421 $as_echo_n "checking for C compiler default output file name... " >&6; }
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3423 $as_echo "$ac_file" >&6; }
3424 ac_exeext=$ac_cv_exeext
3425 
3426 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3427 ac_clean_files=$ac_clean_files_save
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3429 $as_echo_n "checking for suffix of executables... " >&6; }
3430 if { { ac_try="$ac_link"
3431 case "(($ac_try" in
3432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433   *) ac_try_echo=$ac_try;;
3434 esac
3435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436 $as_echo "$ac_try_echo"; } >&5
3437   (eval "$ac_link") 2>&5
3438   ac_status=$?
3439   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440   test $ac_status = 0; }; then :
3441   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3442 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3443 # work properly (i.e., refer to `conftest.exe'), while it won't with
3444 # `rm'.
3445 for ac_file in conftest.exe conftest conftest.*; do
3446   test -f "$ac_file" || continue
3447   case $ac_file in
3448     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3449     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3450           break;;
3451     * ) break;;
3452   esac
3453 done
3454 else
3455   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3458 See \`config.log' for more details" "$LINENO" 5; }
3459 fi
3460 rm -f conftest conftest$ac_cv_exeext
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3462 $as_echo "$ac_cv_exeext" >&6; }
3463 
3464 rm -f conftest.$ac_ext
3465 EXEEXT=$ac_cv_exeext
3466 ac_exeext=$EXEEXT
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h.  */
3469 #include <stdio.h>
3470 int
3471 main ()
3472 {
3473 FILE *f = fopen ("conftest.out", "w");
3474  return ferror (f) || fclose (f) != 0;
3475 
3476   ;
3477   return 0;
3478 }
3479 _ACEOF
3480 ac_clean_files="$ac_clean_files conftest.out"
3481 # Check that the compiler produces executables we can run.  If not, either
3482 # the compiler is broken, or we cross compile.
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3484 $as_echo_n "checking whether we are cross compiling... " >&6; }
3485 if test "$cross_compiling" != yes; then
3486   { { ac_try="$ac_link"
3487 case "(($ac_try" in
3488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489   *) ac_try_echo=$ac_try;;
3490 esac
3491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492 $as_echo "$ac_try_echo"; } >&5
3493   (eval "$ac_link") 2>&5
3494   ac_status=$?
3495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3496   test $ac_status = 0; }
3497   if { ac_try='./conftest$ac_cv_exeext'
3498   { { case "(($ac_try" in
3499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500   *) ac_try_echo=$ac_try;;
3501 esac
3502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503 $as_echo "$ac_try_echo"; } >&5
3504   (eval "$ac_try") 2>&5
3505   ac_status=$?
3506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3507   test $ac_status = 0; }; }; then
3508     cross_compiling=no
3509   else
3510     if test "$cross_compiling" = maybe; then
3511         cross_compiling=yes
3512     else
3513         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515 as_fn_error $? "cannot run C compiled programs.
3516 If you meant to cross compile, use \`--host'.
3517 See \`config.log' for more details" "$LINENO" 5; }
3518     fi
3519   fi
3520 fi
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3522 $as_echo "$cross_compiling" >&6; }
3523 
3524 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3525 ac_clean_files=$ac_clean_files_save
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3527 $as_echo_n "checking for suffix of object files... " >&6; }
3528 if ${ac_cv_objext+:} false; then :
3529   $as_echo_n "(cached) " >&6
3530 else
3531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h.  */
3533 
3534 int
3535 main ()
3536 {
3537 
3538   ;
3539   return 0;
3540 }
3541 _ACEOF
3542 rm -f conftest.o conftest.obj
3543 if { { ac_try="$ac_compile"
3544 case "(($ac_try" in
3545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546   *) ac_try_echo=$ac_try;;
3547 esac
3548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3549 $as_echo "$ac_try_echo"; } >&5
3550   (eval "$ac_compile") 2>&5
3551   ac_status=$?
3552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3553   test $ac_status = 0; }; then :
3554   for ac_file in conftest.o conftest.obj conftest.*; do
3555   test -f "$ac_file" || continue;
3556   case $ac_file in
3557     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3558     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3559        break;;
3560   esac
3561 done
3562 else
3563   $as_echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3565 
3566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568 as_fn_error $? "cannot compute suffix of object files: cannot compile
3569 See \`config.log' for more details" "$LINENO" 5; }
3570 fi
3571 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3572 fi
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3574 $as_echo "$ac_cv_objext" >&6; }
3575 OBJEXT=$ac_cv_objext
3576 ac_objext=$OBJEXT
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3578 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3579 if ${ac_cv_c_compiler_gnu+:} false; then :
3580   $as_echo_n "(cached) " >&6
3581 else
3582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h.  */
3584 
3585 int
3586 main ()
3587 {
3588 #ifndef __GNUC__
3589        choke me
3590 #endif
3591 
3592   ;
3593   return 0;
3594 }
3595 _ACEOF
3596 if ac_fn_c_try_compile "$LINENO"; then :
3597   ac_compiler_gnu=yes
3598 else
3599   ac_compiler_gnu=no
3600 fi
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3603 
3604 fi
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3606 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3607 if test $ac_compiler_gnu = yes; then
3608   GCC=yes
3609 else
3610   GCC=
3611 fi
3612 ac_test_CFLAGS=${CFLAGS+set}
3613 ac_save_CFLAGS=$CFLAGS
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3615 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3616 if ${ac_cv_prog_cc_g+:} false; then :
3617   $as_echo_n "(cached) " >&6
3618 else
3619   ac_save_c_werror_flag=$ac_c_werror_flag
3620    ac_c_werror_flag=yes
3621    ac_cv_prog_cc_g=no
3622    CFLAGS="-g"
3623    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h.  */
3625 
3626 int
3627 main ()
3628 {
3629 
3630   ;
3631   return 0;
3632 }
3633 _ACEOF
3634 if ac_fn_c_try_compile "$LINENO"; then :
3635   ac_cv_prog_cc_g=yes
3636 else
3637   CFLAGS=""
3638       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h.  */
3640 
3641 int
3642 main ()
3643 {
3644 
3645   ;
3646   return 0;
3647 }
3648 _ACEOF
3649 if ac_fn_c_try_compile "$LINENO"; then :
3650 
3651 else
3652   ac_c_werror_flag=$ac_save_c_werror_flag
3653          CFLAGS="-g"
3654          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h.  */
3656 
3657 int
3658 main ()
3659 {
3660 
3661   ;
3662   return 0;
3663 }
3664 _ACEOF
3665 if ac_fn_c_try_compile "$LINENO"; then :
3666   ac_cv_prog_cc_g=yes
3667 fi
3668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669 fi
3670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671 fi
3672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673    ac_c_werror_flag=$ac_save_c_werror_flag
3674 fi
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3676 $as_echo "$ac_cv_prog_cc_g" >&6; }
3677 if test "$ac_test_CFLAGS" = set; then
3678   CFLAGS=$ac_save_CFLAGS
3679 elif test $ac_cv_prog_cc_g = yes; then
3680   if test "$GCC" = yes; then
3681     CFLAGS="-g -O2"
3682   else
3683     CFLAGS="-g"
3684   fi
3685 else
3686   if test "$GCC" = yes; then
3687     CFLAGS="-O2"
3688   else
3689     CFLAGS=
3690   fi
3691 fi
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3693 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3694 if ${ac_cv_prog_cc_c89+:} false; then :
3695   $as_echo_n "(cached) " >&6
3696 else
3697   ac_cv_prog_cc_c89=no
3698 ac_save_CC=$CC
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h.  */
3701 #include <stdarg.h>
3702 #include <stdio.h>
3703 #include <sys/types.h>
3704 #include <sys/stat.h>
3705 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3706 struct buf { int x; };
3707 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3708 static char *e (p, i)
3709      char **p;
3710      int i;
3711 {
3712   return p[i];
3713 }
3714 static char *f (char * (*g) (char **, int), char **p, ...)
3715 {
3716   char *s;
3717   va_list v;
3718   va_start (v,p);
3719   s = g (p, va_arg (v,int));
3720   va_end (v);
3721   return s;
3722 }
3723 
3724 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3725    function prototypes and stuff, but not '\xHH' hex character constants.
3726    These don't provoke an error unfortunately, instead are silently treated
3727    as 'x'.  The following induces an error, until -std is added to get
3728    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3729    array size at least.  It's necessary to write '\x00'==0 to get something
3730    that's true only with -std.  */
3731 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3732 
3733 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3734    inside strings and character constants.  */
3735 #define FOO(x) 'x'
3736 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3737 
3738 int test (int i, double x);
3739 struct s1 {int (*f) (int a);};
3740 struct s2 {int (*f) (double a);};
3741 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3742 int argc;
3743 char **argv;
3744 int
3745 main ()
3746 {
3747 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3748   ;
3749   return 0;
3750 }
3751 _ACEOF
3752 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3753         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3754 do
3755   CC="$ac_save_CC $ac_arg"
3756   if ac_fn_c_try_compile "$LINENO"; then :
3757   ac_cv_prog_cc_c89=$ac_arg
3758 fi
3759 rm -f core conftest.err conftest.$ac_objext
3760   test "x$ac_cv_prog_cc_c89" != "xno" && break
3761 done
3762 rm -f conftest.$ac_ext
3763 CC=$ac_save_CC
3764 
3765 fi
3766 # AC_CACHE_VAL
3767 case "x$ac_cv_prog_cc_c89" in
3768   x)
3769     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3770 $as_echo "none needed" >&6; } ;;
3771   xno)
3772     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3773 $as_echo "unsupported" >&6; } ;;
3774   *)
3775     CC="$CC $ac_cv_prog_cc_c89"
3776     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3777 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3778 esac
3779 if test "x$ac_cv_prog_cc_c89" != xno; then :
3780 
3781 fi
3782 
3783 ac_ext=c
3784 ac_cpp='$CPP $CPPFLAGS'
3785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3788 
3789 depcc="$CC"   am_compiler_list=
3790 
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3792 $as_echo_n "checking dependency style of $depcc... " >&6; }
3793 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3794   $as_echo_n "(cached) " >&6
3795 else
3796   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3797   # We make a subdir and do the tests there.  Otherwise we can end up
3798   # making bogus files that we don't know about and never remove.  For
3799   # instance it was reported that on HP-UX the gcc test will end up
3800   # making a dummy file named `D' -- because `-MD' means `put the output
3801   # in D'.
3802   mkdir conftest.dir
3803   # Copy depcomp to subdir because otherwise we won't find it if we're
3804   # using a relative directory.
3805   cp "$am_depcomp" conftest.dir
3806   cd conftest.dir
3807   # We will build objects and dependencies in a subdirectory because
3808   # it helps to detect inapplicable dependency modes.  For instance
3809   # both Tru64's cc and ICC support -MD to output dependencies as a
3810   # side effect of compilation, but ICC will put the dependencies in
3811   # the current directory while Tru64 will put them in the object
3812   # directory.
3813   mkdir sub
3814 
3815   am_cv_CC_dependencies_compiler_type=none
3816   if test "$am_compiler_list" = ""; then
3817      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3818   fi
3819   am__universal=false
3820   case " $depcc " in #(
3821      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3822      esac
3823 
3824   for depmode in $am_compiler_list; do
3825     # Setup a source with many dependencies, because some compilers
3826     # like to wrap large dependency lists on column 80 (with \), and
3827     # we should not choose a depcomp mode which is confused by this.
3828     #
3829     # We need to recreate these files for each test, as the compiler may
3830     # overwrite some of them when testing with obscure command lines.
3831     # This happens at least with the AIX C compiler.
3832     : > sub/conftest.c
3833     for i in 1 2 3 4 5 6; do
3834       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3835       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3836       # Solaris 8's {/usr,}/bin/sh.
3837       touch sub/conftst$i.h
3838     done
3839     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3840 
3841     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3842     # mode.  It turns out that the SunPro C++ compiler does not properly
3843     # handle `-M -o', and we need to detect this.  Also, some Intel
3844     # versions had trouble with output in subdirs
3845     am__obj=sub/conftest.${OBJEXT-o}
3846     am__minus_obj="-o $am__obj"
3847     case $depmode in
3848     gcc)
3849       # This depmode causes a compiler race in universal mode.
3850       test "$am__universal" = false || continue
3851       ;;
3852     nosideeffect)
3853       # after this tag, mechanisms are not by side-effect, so they'll
3854       # only be used when explicitly requested
3855       if test "x$enable_dependency_tracking" = xyes; then
3856         continue
3857       else
3858         break
3859       fi
3860       ;;
3861     msvisualcpp | msvcmsys)
3862       # This compiler won't grok `-c -o', but also, the minuso test has
3863       # not run yet.  These depmodes are late enough in the game, and
3864       # so weak that their functioning should not be impacted.
3865       am__obj=conftest.${OBJEXT-o}
3866       am__minus_obj=
3867       ;;
3868     none) break ;;
3869     esac
3870     if depmode=$depmode \
3871        source=sub/conftest.c object=$am__obj \
3872        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3873        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3874          >/dev/null 2>conftest.err &&
3875        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3876        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3877        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3878        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3879       # icc doesn't choke on unknown options, it will just issue warnings
3880       # or remarks (even with -Werror).  So we grep stderr for any message
3881       # that says an option was ignored or not supported.
3882       # When given -MP, icc 7.0 and 7.1 complain thusly:
3883       #   icc: Command line warning: ignoring option '-M'; no argument required
3884       # The diagnosis changed in icc 8.0:
3885       #   icc: Command line remark: option '-MP' not supported
3886       if (grep 'ignoring option' conftest.err ||
3887           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3888         am_cv_CC_dependencies_compiler_type=$depmode
3889         break
3890       fi
3891     fi
3892   done
3893 
3894   cd ..
3895   rm -rf conftest.dir
3896 else
3897   am_cv_CC_dependencies_compiler_type=none
3898 fi
3899 
3900 fi
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3902 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3903 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3904 
3905  if
3906   test "x$enable_dependency_tracking" != xno \
3907   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3908   am__fastdepCC_TRUE=
3909   am__fastdepCC_FALSE='#'
3910 else
3911   am__fastdepCC_TRUE='#'
3912   am__fastdepCC_FALSE=
3913 fi
3914 
3915 
3916 
3917 ac_ext=c
3918 ac_cpp='$CPP $CPPFLAGS'
3919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3923 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3924 # On Suns, sometimes $CPP names a directory.
3925 if test -n "$CPP" && test -d "$CPP"; then
3926   CPP=
3927 fi
3928 if test -z "$CPP"; then
3929   if ${ac_cv_prog_CPP+:} false; then :
3930   $as_echo_n "(cached) " >&6
3931 else
3932       # Double quotes because CPP needs to be expanded
3933     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3934     do
3935       ac_preproc_ok=false
3936 for ac_c_preproc_warn_flag in '' yes
3937 do
3938   # Use a header file that comes with gcc, so configuring glibc
3939   # with a fresh cross-compiler works.
3940   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3941   # <limits.h> exists even on freestanding compilers.
3942   # On the NeXT, cc -E runs the code through the compiler's parser,
3943   # not just through cpp. "Syntax error" is here to catch this case.
3944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h.  */
3946 #ifdef __STDC__
3947 # include <limits.h>
3948 #else
3949 # include <assert.h>
3950 #endif
3951                      Syntax error
3952 _ACEOF
3953 if ac_fn_c_try_cpp "$LINENO"; then :
3954 
3955 else
3956   # Broken: fails on valid input.
3957 continue
3958 fi
3959 rm -f conftest.err conftest.i conftest.$ac_ext
3960 
3961   # OK, works on sane cases.  Now check whether nonexistent headers
3962   # can be detected and how.
3963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h.  */
3965 #include <ac_nonexistent.h>
3966 _ACEOF
3967 if ac_fn_c_try_cpp "$LINENO"; then :
3968   # Broken: success on invalid input.
3969 continue
3970 else
3971   # Passes both tests.
3972 ac_preproc_ok=:
3973 break
3974 fi
3975 rm -f conftest.err conftest.i conftest.$ac_ext
3976 
3977 done
3978 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3979 rm -f conftest.i conftest.err conftest.$ac_ext
3980 if $ac_preproc_ok; then :
3981   break
3982 fi
3983 
3984     done
3985     ac_cv_prog_CPP=$CPP
3986 
3987 fi
3988   CPP=$ac_cv_prog_CPP
3989 else
3990   ac_cv_prog_CPP=$CPP
3991 fi
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3993 $as_echo "$CPP" >&6; }
3994 ac_preproc_ok=false
3995 for ac_c_preproc_warn_flag in '' yes
3996 do
3997   # Use a header file that comes with gcc, so configuring glibc
3998   # with a fresh cross-compiler works.
3999   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4000   # <limits.h> exists even on freestanding compilers.
4001   # On the NeXT, cc -E runs the code through the compiler's parser,
4002   # not just through cpp. "Syntax error" is here to catch this case.
4003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h.  */
4005 #ifdef __STDC__
4006 # include <limits.h>
4007 #else
4008 # include <assert.h>
4009 #endif
4010                      Syntax error
4011 _ACEOF
4012 if ac_fn_c_try_cpp "$LINENO"; then :
4013 
4014 else
4015   # Broken: fails on valid input.
4016 continue
4017 fi
4018 rm -f conftest.err conftest.i conftest.$ac_ext
4019 
4020   # OK, works on sane cases.  Now check whether nonexistent headers
4021   # can be detected and how.
4022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h.  */
4024 #include <ac_nonexistent.h>
4025 _ACEOF
4026 if ac_fn_c_try_cpp "$LINENO"; then :
4027   # Broken: success on invalid input.
4028 continue
4029 else
4030   # Passes both tests.
4031 ac_preproc_ok=:
4032 break
4033 fi
4034 rm -f conftest.err conftest.i conftest.$ac_ext
4035 
4036 done
4037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4038 rm -f conftest.i conftest.err conftest.$ac_ext
4039 if $ac_preproc_ok; then :
4040 
4041 else
4042   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4044 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4045 See \`config.log' for more details" "$LINENO" 5; }
4046 fi
4047 
4048 ac_ext=c
4049 ac_cpp='$CPP $CPPFLAGS'
4050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053 
4054 
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4056 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4057 if ${ac_cv_path_GREP+:} false; then :
4058   $as_echo_n "(cached) " >&6
4059 else
4060   if test -z "$GREP"; then
4061   ac_path_GREP_found=false
4062   # Loop through the user's path and test for each of PROGNAME-LIST
4063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4065 do
4066   IFS=$as_save_IFS
4067   test -z "$as_dir" && as_dir=.
4068     for ac_prog in grep ggrep; do
4069     for ac_exec_ext in '' $ac_executable_extensions; do
4070       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4071       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4072 # Check for GNU ac_path_GREP and select it if it is found.
4073   # Check for GNU $ac_path_GREP
4074 case `"$ac_path_GREP" --version 2>&1` in
4075 *GNU*)
4076   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4077 *)
4078   ac_count=0
4079   $as_echo_n 0123456789 >"conftest.in"
4080   while :
4081   do
4082     cat "conftest.in" "conftest.in" >"conftest.tmp"
4083     mv "conftest.tmp" "conftest.in"
4084     cp "conftest.in" "conftest.nl"
4085     $as_echo 'GREP' >> "conftest.nl"
4086     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4087     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4088     as_fn_arith $ac_count + 1 && ac_count=$as_val
4089     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4090       # Best one so far, save it but keep looking for a better one
4091       ac_cv_path_GREP="$ac_path_GREP"
4092       ac_path_GREP_max=$ac_count
4093     fi
4094     # 10*(2^10) chars as input seems more than enough
4095     test $ac_count -gt 10 && break
4096   done
4097   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4098 esac
4099 
4100       $ac_path_GREP_found && break 3
4101     done
4102   done
4103   done
4104 IFS=$as_save_IFS
4105   if test -z "$ac_cv_path_GREP"; then
4106     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4107   fi
4108 else
4109   ac_cv_path_GREP=$GREP
4110 fi
4111 
4112 fi
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4114 $as_echo "$ac_cv_path_GREP" >&6; }
4115  GREP="$ac_cv_path_GREP"
4116 
4117 
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4119 $as_echo_n "checking for egrep... " >&6; }
4120 if ${ac_cv_path_EGREP+:} false; then :
4121   $as_echo_n "(cached) " >&6
4122 else
4123   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4124    then ac_cv_path_EGREP="$GREP -E"
4125    else
4126      if test -z "$EGREP"; then
4127   ac_path_EGREP_found=false
4128   # Loop through the user's path and test for each of PROGNAME-LIST
4129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4131 do
4132   IFS=$as_save_IFS
4133   test -z "$as_dir" && as_dir=.
4134     for ac_prog in egrep; do
4135     for ac_exec_ext in '' $ac_executable_extensions; do
4136       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4137       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4138 # Check for GNU ac_path_EGREP and select it if it is found.
4139   # Check for GNU $ac_path_EGREP
4140 case `"$ac_path_EGREP" --version 2>&1` in
4141 *GNU*)
4142   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4143 *)
4144   ac_count=0
4145   $as_echo_n 0123456789 >"conftest.in"
4146   while :
4147   do
4148     cat "conftest.in" "conftest.in" >"conftest.tmp"
4149     mv "conftest.tmp" "conftest.in"
4150     cp "conftest.in" "conftest.nl"
4151     $as_echo 'EGREP' >> "conftest.nl"
4152     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4153     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4154     as_fn_arith $ac_count + 1 && ac_count=$as_val
4155     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4156       # Best one so far, save it but keep looking for a better one
4157       ac_cv_path_EGREP="$ac_path_EGREP"
4158       ac_path_EGREP_max=$ac_count
4159     fi
4160     # 10*(2^10) chars as input seems more than enough
4161     test $ac_count -gt 10 && break
4162   done
4163   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4164 esac
4165 
4166       $ac_path_EGREP_found && break 3
4167     done
4168   done
4169   done
4170 IFS=$as_save_IFS
4171   if test -z "$ac_cv_path_EGREP"; then
4172     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4173   fi
4174 else
4175   ac_cv_path_EGREP=$EGREP
4176 fi
4177 
4178    fi
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4181 $as_echo "$ac_cv_path_EGREP" >&6; }
4182  EGREP="$ac_cv_path_EGREP"
4183 
4184 
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4186 $as_echo_n "checking for ANSI C header files... " >&6; }
4187 if ${ac_cv_header_stdc+:} false; then :
4188   $as_echo_n "(cached) " >&6
4189 else
4190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h.  */
4192 #include <stdlib.h>
4193 #include <stdarg.h>
4194 #include <string.h>
4195 #include <float.h>
4196 
4197 int
4198 main ()
4199 {
4200 
4201   ;
4202   return 0;
4203 }
4204 _ACEOF
4205 if ac_fn_c_try_compile "$LINENO"; then :
4206   ac_cv_header_stdc=yes
4207 else
4208   ac_cv_header_stdc=no
4209 fi
4210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211 
4212 if test $ac_cv_header_stdc = yes; then
4213   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h.  */
4216 #include <string.h>
4217 
4218 _ACEOF
4219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4220   $EGREP "memchr" >/dev/null 2>&1; then :
4221 
4222 else
4223   ac_cv_header_stdc=no
4224 fi
4225 rm -f conftest*
4226 
4227 fi
4228 
4229 if test $ac_cv_header_stdc = yes; then
4230   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h.  */
4233 #include <stdlib.h>
4234 
4235 _ACEOF
4236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4237   $EGREP "free" >/dev/null 2>&1; then :
4238 
4239 else
4240   ac_cv_header_stdc=no
4241 fi
4242 rm -f conftest*
4243 
4244 fi
4245 
4246 if test $ac_cv_header_stdc = yes; then
4247   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4248   if test "$cross_compiling" = yes; then :
4249   :
4250 else
4251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h.  */
4253 #include <ctype.h>
4254 #include <stdlib.h>
4255 #if ((' ' & 0x0FF) == 0x020)
4256 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4257 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4258 #else
4259 # define ISLOWER(c) \
4260                    (('a' <= (c) && (c) <= 'i') \
4261                      || ('j' <= (c) && (c) <= 'r') \
4262                      || ('s' <= (c) && (c) <= 'z'))
4263 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4264 #endif
4265 
4266 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4267 int
4268 main ()
4269 {
4270   int i;
4271   for (i = 0; i < 256; i++)
4272     if (XOR (islower (i), ISLOWER (i))
4273         || toupper (i) != TOUPPER (i))
4274       return 2;
4275   return 0;
4276 }
4277 _ACEOF
4278 if ac_fn_c_try_run "$LINENO"; then :
4279 
4280 else
4281   ac_cv_header_stdc=no
4282 fi
4283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4284   conftest.$ac_objext conftest.beam conftest.$ac_ext
4285 fi
4286 
4287 fi
4288 fi
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4290 $as_echo "$ac_cv_header_stdc" >&6; }
4291 if test $ac_cv_header_stdc = yes; then
4292 
4293 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4294 
4295 fi
4296 
4297 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4298 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4299                   inttypes.h stdint.h unistd.h
4300 do :
4301   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4302 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4303 "
4304 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4305   cat >>confdefs.h <<_ACEOF
4306 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4307 _ACEOF
4308 
4309 fi
4310 
4311 done
4312 
4313 
4314 for ac_header in fcntl.h limits.h strings.h syslog.h unistd.h sys/cdefs.h sys/param.h stdarg.h locale.h
4315 do :
4316   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4317 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4318 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4319   cat >>confdefs.h <<_ACEOF
4320 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4321 _ACEOF
4322 
4323 fi
4324 
4325 done
4326 
4327 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
4328 if test "x$ac_cv_header_inttypes_h" = xyes; then :
4329 
4330 $as_echo "#define JSON_C_HAVE_INTTYPES_H 1" >>confdefs.h
4331 
4332 fi
4333 
4334 
4335 
4336 # Checks for typedefs, structures, and compiler characteristics.
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4338 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4339 if ${ac_cv_c_const+:} false; then :
4340   $as_echo_n "(cached) " >&6
4341 else
4342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h.  */
4344 
4345 int
4346 main ()
4347 {
4348 /* FIXME: Include the comments suggested by Paul. */
4349 #ifndef __cplusplus
4350   /* Ultrix mips cc rejects this.  */
4351   typedef int charset[2];
4352   const charset cs;
4353   /* SunOS 4.1.1 cc rejects this.  */
4354   char const *const *pcpcc;
4355   char **ppc;
4356   /* NEC SVR4.0.2 mips cc rejects this.  */
4357   struct point {int x, y;};
4358   static struct point const zero = {0,0};
4359   /* AIX XL C 1.02.0.0 rejects this.
4360      It does not let you subtract one const X* pointer from another in
4361      an arm of an if-expression whose if-part is not a constant
4362      expression */
4363   const char *g = "string";
4364   pcpcc = &g + (g ? g-g : 0);
4365   /* HPUX 7.0 cc rejects these. */
4366   ++pcpcc;
4367   ppc = (char**) pcpcc;
4368   pcpcc = (char const *const *) ppc;
4369   { /* SCO 3.2v4 cc rejects this.  */
4370     char *t;
4371     char const *s = 0 ? (char *) 0 : (char const *) 0;
4372 
4373     *t++ = 0;
4374     if (s) return 0;
4375   }
4376   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4377     int x[] = {25, 17};
4378     const int *foo = &x[0];
4379     ++foo;
4380   }
4381   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4382     typedef const int *iptr;
4383     iptr p = 0;
4384     ++p;
4385   }
4386   { /* AIX XL C 1.02.0.0 rejects this saying
4387        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4388     struct s { int j; const int *ap[3]; };
4389     struct s *b; b->j = 5;
4390   }
4391   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4392     const int foo = 10;
4393     if (!foo) return 0;
4394   }
4395   return !cs[0] && !zero.x;
4396 #endif
4397 
4398   ;
4399   return 0;
4400 }
4401 _ACEOF
4402 if ac_fn_c_try_compile "$LINENO"; then :
4403   ac_cv_c_const=yes
4404 else
4405   ac_cv_c_const=no
4406 fi
4407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408 fi
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4410 $as_echo "$ac_cv_c_const" >&6; }
4411 if test $ac_cv_c_const = no; then
4412 
4413 $as_echo "#define const /**/" >>confdefs.h
4414 
4415 fi
4416 
4417 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4418 if test "x$ac_cv_type_size_t" = xyes; then :
4419 
4420 else
4421 
4422 cat >>confdefs.h <<_ACEOF
4423 #define size_t unsigned int
4424 _ACEOF
4425 
4426 fi
4427 
4428 
4429 # Checks for library functions.
4430 for ac_func in vprintf
4431 do :
4432   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
4433 if test "x$ac_cv_func_vprintf" = xyes; then :
4434   cat >>confdefs.h <<_ACEOF
4435 #define HAVE_VPRINTF 1
4436 _ACEOF
4437 
4438 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
4439 if test "x$ac_cv_func__doprnt" = xyes; then :
4440 
4441 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
4442 
4443 fi
4444 
4445 fi
4446 done
4447 
4448 
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
4450 $as_echo_n "checking for working memcmp... " >&6; }
4451 if ${ac_cv_func_memcmp_working+:} false; then :
4452   $as_echo_n "(cached) " >&6
4453 else
4454   if test "$cross_compiling" = yes; then :
4455   ac_cv_func_memcmp_working=no
4456 else
4457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h.  */
4459 $ac_includes_default
4460 int
4461 main ()
4462 {
4463 
4464   /* Some versions of memcmp are not 8-bit clean.  */
4465   char c0 = '\100', c1 = '\200', c2 = '\201';
4466   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4467     return 1;
4468 
4469   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4470      or more and with at least one buffer not starting on a 4-byte boundary.
4471      William Lewis provided this test program.   */
4472   {
4473     char foo[21];
4474     char bar[21];
4475     int i;
4476     for (i = 0; i < 4; i++)
4477       {
4478         char *a = foo + i;
4479         char *b = bar + i;
4480         strcpy (a, "--------01111111");
4481         strcpy (b, "--------10000000");
4482         if (memcmp (a, b, 16) >= 0)
4483           return 1;
4484       }
4485     return 0;
4486   }
4487 
4488   ;
4489   return 0;
4490 }
4491 _ACEOF
4492 if ac_fn_c_try_run "$LINENO"; then :
4493   ac_cv_func_memcmp_working=yes
4494 else
4495   ac_cv_func_memcmp_working=no
4496 fi
4497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4498   conftest.$ac_objext conftest.beam conftest.$ac_ext
4499 fi
4500 
4501 fi
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
4503 $as_echo "$ac_cv_func_memcmp_working" >&6; }
4504 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
4505   *" memcmp.$ac_objext "* ) ;;
4506   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
4507  ;;
4508 esac
4509 
4510 
4511 for ac_header in stdlib.h
4512 do :
4513   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4514 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4515   cat >>confdefs.h <<_ACEOF
4516 #define HAVE_STDLIB_H 1
4517 _ACEOF
4518 
4519 fi
4520 
4521 done
4522 
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
4524 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4525 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
4526   $as_echo_n "(cached) " >&6
4527 else
4528   if test "$cross_compiling" = yes; then :
4529   ac_cv_func_malloc_0_nonnull=no
4530 else
4531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h.  */
4533 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4534 # include <stdlib.h>
4535 #else
4536 char *malloc ();
4537 #endif
4538 
4539 int
4540 main ()
4541 {
4542 return ! malloc (0);
4543   ;
4544   return 0;
4545 }
4546 _ACEOF
4547 if ac_fn_c_try_run "$LINENO"; then :
4548   ac_cv_func_malloc_0_nonnull=yes
4549 else
4550   ac_cv_func_malloc_0_nonnull=no
4551 fi
4552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4553   conftest.$ac_objext conftest.beam conftest.$ac_ext
4554 fi
4555 
4556 fi
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
4558 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
4559 if test $ac_cv_func_malloc_0_nonnull = yes; then :
4560 
4561 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
4562 
4563 else
4564   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
4565 
4566    case " $LIBOBJS " in
4567   *" malloc.$ac_objext "* ) ;;
4568   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
4569  ;;
4570 esac
4571 
4572 
4573 $as_echo "#define malloc rpl_malloc" >>confdefs.h
4574 
4575 fi
4576 
4577 
4578 for ac_header in stdlib.h
4579 do :
4580   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4581 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4582   cat >>confdefs.h <<_ACEOF
4583 #define HAVE_STDLIB_H 1
4584 _ACEOF
4585 
4586 fi
4587 
4588 done
4589 
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
4591 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
4592 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
4593   $as_echo_n "(cached) " >&6
4594 else
4595   if test "$cross_compiling" = yes; then :
4596   ac_cv_func_realloc_0_nonnull=no
4597 else
4598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h.  */
4600 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4601 # include <stdlib.h>
4602 #else
4603 char *realloc ();
4604 #endif
4605 
4606 int
4607 main ()
4608 {
4609 return ! realloc (0, 0);
4610   ;
4611   return 0;
4612 }
4613 _ACEOF
4614 if ac_fn_c_try_run "$LINENO"; then :
4615   ac_cv_func_realloc_0_nonnull=yes
4616 else
4617   ac_cv_func_realloc_0_nonnull=no
4618 fi
4619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4620   conftest.$ac_objext conftest.beam conftest.$ac_ext
4621 fi
4622 
4623 fi
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
4625 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
4626 if test $ac_cv_func_realloc_0_nonnull = yes; then :
4627 
4628 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
4629 
4630 else
4631   $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
4632 
4633    case " $LIBOBJS " in
4634   *" realloc.$ac_objext "* ) ;;
4635   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
4636  ;;
4637 esac
4638 
4639 
4640 $as_echo "#define realloc rpl_realloc" >>confdefs.h
4641 
4642 fi
4643 
4644 
4645 for ac_func in strcasecmp strdup strndup strerror snprintf vsnprintf vasprintf open vsyslog strncasecmp setlocale
4646 do :
4647   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4648 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4649 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4650   cat >>confdefs.h <<_ACEOF
4651 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4652 _ACEOF
4653 
4654 fi
4655 done
4656 
4657 
4658 #check if .section.gnu.warning accepts long strings (for __warn_references)
4659 ac_ext=c
4660 ac_cpp='$CPP $CPPFLAGS'
4661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4664 
4665 
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .gnu.warning accepts long strings" >&5
4667 $as_echo_n "checking if .gnu.warning accepts long strings... " >&6; }
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h.  */
4670 
4671 extern void json_object_get();
4672 __asm__(".section .gnu.json_object_get,\n\t.ascii \"Please link against libjson-c instead of libjson\"\n\t.text");
4673 
4674 int main(int c,char* v) {return 0;}
4675 
4676 _ACEOF
4677 if ac_fn_c_try_link "$LINENO"; then :
4678 
4679 
4680 $as_echo "#define HAS_GNU_WARNING_LONG 1" >>confdefs.h
4681 
4682     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4683 $as_echo "yes" >&6; }
4684 
4685 else
4686 
4687    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688 $as_echo "no" >&6; }
4689 
4690 fi
4691 rm -f core conftest.err conftest.$ac_objext \
4692     conftest$ac_exeext conftest.$ac_ext
4693 
4694 ac_ext=c
4695 ac_cpp='$CPP $CPPFLAGS'
4696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4699 
4700 
4701 case `pwd` in
4702   *\ * | *\     *)
4703     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4704 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4705 esac
4706 
4707 
4708 
4709 macro_version='2.2.6b'
4710 macro_revision='1.3017'
4711 
4712 
4713 
4714 
4715 
4716 
4717 
4718 
4719 
4720 
4721 
4722 
4723 
4724 ltmain="$ac_aux_dir/ltmain.sh"
4725 
4726 # Make sure we can run config.sub.
4727 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4728   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4729 
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4731 $as_echo_n "checking build system type... " >&6; }
4732 if ${ac_cv_build+:} false; then :
4733   $as_echo_n "(cached) " >&6
4734 else
4735   ac_build_alias=$build_alias
4736 test "x$ac_build_alias" = x &&
4737   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4738 test "x$ac_build_alias" = x &&
4739   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4740 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4741   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4742 
4743 fi
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4745 $as_echo "$ac_cv_build" >&6; }
4746 case $ac_cv_build in
4747 *-*-*) ;;
4748 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4749 esac
4750 build=$ac_cv_build
4751 ac_save_IFS=$IFS; IFS='-'
4752 set x $ac_cv_build
4753 shift
4754 build_cpu=$1
4755 build_vendor=$2
4756 shift; shift
4757 # Remember, the first character of IFS is used to create $*,
4758 # except with old shells:
4759 build_os=$*
4760 IFS=$ac_save_IFS
4761 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4762 
4763 
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4765 $as_echo_n "checking host system type... " >&6; }
4766 if ${ac_cv_host+:} false; then :
4767   $as_echo_n "(cached) " >&6
4768 else
4769   if test "x$host_alias" = x; then
4770   ac_cv_host=$ac_cv_build
4771 else
4772   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4773     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4774 fi
4775 
4776 fi
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4778 $as_echo "$ac_cv_host" >&6; }
4779 case $ac_cv_host in
4780 *-*-*) ;;
4781 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4782 esac
4783 host=$ac_cv_host
4784 ac_save_IFS=$IFS; IFS='-'
4785 set x $ac_cv_host
4786 shift
4787 host_cpu=$1
4788 host_vendor=$2
4789 shift; shift
4790 # Remember, the first character of IFS is used to create $*,
4791 # except with old shells:
4792 host_os=$*
4793 IFS=$ac_save_IFS
4794 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4795 
4796 
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4798 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4799 if ${ac_cv_path_SED+:} false; then :
4800   $as_echo_n "(cached) " >&6
4801 else
4802             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4803      for ac_i in 1 2 3 4 5 6 7; do
4804        ac_script="$ac_script$as_nl$ac_script"
4805      done
4806      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4807      { ac_script=; unset ac_script;}
4808      if test -z "$SED"; then
4809   ac_path_SED_found=false
4810   # Loop through the user's path and test for each of PROGNAME-LIST
4811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH
4813 do
4814   IFS=$as_save_IFS
4815   test -z "$as_dir" && as_dir=.
4816     for ac_prog in sed gsed; do
4817     for ac_exec_ext in '' $ac_executable_extensions; do
4818       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4819       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4820 # Check for GNU ac_path_SED and select it if it is found.
4821   # Check for GNU $ac_path_SED
4822 case `"$ac_path_SED" --version 2>&1` in
4823 *GNU*)
4824   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4825 *)
4826   ac_count=0
4827   $as_echo_n 0123456789 >"conftest.in"
4828   while :
4829   do
4830     cat "conftest.in" "conftest.in" >"conftest.tmp"
4831     mv "conftest.tmp" "conftest.in"
4832     cp "conftest.in" "conftest.nl"
4833     $as_echo '' >> "conftest.nl"
4834     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4835     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4836     as_fn_arith $ac_count + 1 && ac_count=$as_val
4837     if test $ac_count -gt ${ac_path_SED_max-0}; then
4838       # Best one so far, save it but keep looking for a better one
4839       ac_cv_path_SED="$ac_path_SED"
4840       ac_path_SED_max=$ac_count
4841     fi
4842     # 10*(2^10) chars as input seems more than enough
4843     test $ac_count -gt 10 && break
4844   done
4845   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4846 esac
4847 
4848       $ac_path_SED_found && break 3
4849     done
4850   done
4851   done
4852 IFS=$as_save_IFS
4853   if test -z "$ac_cv_path_SED"; then
4854     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4855   fi
4856 else
4857   ac_cv_path_SED=$SED
4858 fi
4859 
4860 fi
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4862 $as_echo "$ac_cv_path_SED" >&6; }
4863  SED="$ac_cv_path_SED"
4864   rm -f conftest.sed
4865 
4866 test -z "$SED" && SED=sed
4867 Xsed="$SED -e 1s/^X//"
4868 
4869 
4870 
4871 
4872 
4873 
4874 
4875 
4876 
4877 
4878 
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4880 $as_echo_n "checking for fgrep... " >&6; }
4881 if ${ac_cv_path_FGREP+:} false; then :
4882   $as_echo_n "(cached) " >&6
4883 else
4884   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4885    then ac_cv_path_FGREP="$GREP -F"
4886    else
4887      if test -z "$FGREP"; then
4888   ac_path_FGREP_found=false
4889   # Loop through the user's path and test for each of PROGNAME-LIST
4890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4892 do
4893   IFS=$as_save_IFS
4894   test -z "$as_dir" && as_dir=.
4895     for ac_prog in fgrep; do
4896     for ac_exec_ext in '' $ac_executable_extensions; do
4897       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4898       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4899 # Check for GNU ac_path_FGREP and select it if it is found.
4900   # Check for GNU $ac_path_FGREP
4901 case `"$ac_path_FGREP" --version 2>&1` in
4902 *GNU*)
4903   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4904 *)
4905   ac_count=0
4906   $as_echo_n 0123456789 >"conftest.in"
4907   while :
4908   do
4909     cat "conftest.in" "conftest.in" >"conftest.tmp"
4910     mv "conftest.tmp" "conftest.in"
4911     cp "conftest.in" "conftest.nl"
4912     $as_echo 'FGREP' >> "conftest.nl"
4913     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4914     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4915     as_fn_arith $ac_count + 1 && ac_count=$as_val
4916     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4917       # Best one so far, save it but keep looking for a better one
4918       ac_cv_path_FGREP="$ac_path_FGREP"
4919       ac_path_FGREP_max=$ac_count
4920     fi
4921     # 10*(2^10) chars as input seems more than enough
4922     test $ac_count -gt 10 && break
4923   done
4924   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4925 esac
4926 
4927       $ac_path_FGREP_found && break 3
4928     done
4929   done
4930   done
4931 IFS=$as_save_IFS
4932   if test -z "$ac_cv_path_FGREP"; then
4933     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4934   fi
4935 else
4936   ac_cv_path_FGREP=$FGREP
4937 fi
4938 
4939    fi
4940 fi
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4942 $as_echo "$ac_cv_path_FGREP" >&6; }
4943  FGREP="$ac_cv_path_FGREP"
4944 
4945 
4946 test -z "$GREP" && GREP=grep
4947 
4948 
4949 
4950 
4951 
4952 
4953 
4954 
4955 
4956 
4957 
4958 
4959 
4960 
4961 
4962 
4963 
4964 
4965 
4966 # Check whether --with-gnu-ld was given.
4967 if test "${with_gnu_ld+set}" = set; then :
4968   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4969 else
4970   with_gnu_ld=no
4971 fi
4972 
4973 ac_prog=ld
4974 if test "$GCC" = yes; then
4975   # Check if gcc -print-prog-name=ld gives a path.
4976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4977 $as_echo_n "checking for ld used by $CC... " >&6; }
4978   case $host in
4979   *-*-mingw*)
4980     # gcc leaves a trailing carriage return which upsets mingw
4981     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4982   *)
4983     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4984   esac
4985   case $ac_prog in
4986     # Accept absolute paths.
4987     [\\/]* | ?:[\\/]*)
4988       re_direlt='/[^/][^/]*/\.\./'
4989       # Canonicalize the pathname of ld
4990       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4991       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4992         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4993       done
4994       test -z "$LD" && LD="$ac_prog"
4995       ;;
4996   "")
4997     # If it fails, then pretend we aren't using GCC.
4998     ac_prog=ld
4999     ;;
5000   *)
5001     # If it is relative, then search for the first ld in PATH.
5002     with_gnu_ld=unknown
5003     ;;
5004   esac
5005 elif test "$with_gnu_ld" = yes; then
5006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5007 $as_echo_n "checking for GNU ld... " >&6; }
5008 else
5009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5010 $as_echo_n "checking for non-GNU ld... " >&6; }
5011 fi
5012 if ${lt_cv_path_LD+:} false; then :
5013   $as_echo_n "(cached) " >&6
5014 else
5015   if test -z "$LD"; then
5016   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5017   for ac_dir in $PATH; do
5018     IFS="$lt_save_ifs"
5019     test -z "$ac_dir" && ac_dir=.
5020     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5021       lt_cv_path_LD="$ac_dir/$ac_prog"
5022       # Check to see if the program is GNU ld.  I'd rather use --version,
5023       # but apparently some variants of GNU ld only accept -v.
5024       # Break only if it was the GNU/non-GNU ld that we prefer.
5025       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5026       *GNU* | *'with BFD'*)
5027         test "$with_gnu_ld" != no && break
5028         ;;
5029       *)
5030         test "$with_gnu_ld" != yes && break
5031         ;;
5032       esac
5033     fi
5034   done
5035   IFS="$lt_save_ifs"
5036 else
5037   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5038 fi
5039 fi
5040 
5041 LD="$lt_cv_path_LD"
5042 if test -n "$LD"; then
5043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5044 $as_echo "$LD" >&6; }
5045 else
5046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5047 $as_echo "no" >&6; }
5048 fi
5049 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5051 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5052 if ${lt_cv_prog_gnu_ld+:} false; then :
5053   $as_echo_n "(cached) " >&6
5054 else
5055   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5056 case `$LD -v 2>&1 </dev/null` in
5057 *GNU* | *'with BFD'*)
5058   lt_cv_prog_gnu_ld=yes
5059   ;;
5060 *)
5061   lt_cv_prog_gnu_ld=no
5062   ;;
5063 esac
5064 fi
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5066 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5067 with_gnu_ld=$lt_cv_prog_gnu_ld
5068 
5069 
5070 
5071 
5072 
5073 
5074 
5075 
5076 
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5078 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5079 if ${lt_cv_path_NM+:} false; then :
5080   $as_echo_n "(cached) " >&6
5081 else
5082   if test -n "$NM"; then
5083   # Let the user override the test.
5084   lt_cv_path_NM="$NM"
5085 else
5086   lt_nm_to_check="${ac_tool_prefix}nm"
5087   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5088     lt_nm_to_check="$lt_nm_to_check nm"
5089   fi
5090   for lt_tmp_nm in $lt_nm_to_check; do
5091     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5092     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5093       IFS="$lt_save_ifs"
5094       test -z "$ac_dir" && ac_dir=.
5095       tmp_nm="$ac_dir/$lt_tmp_nm"
5096       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5097         # Check to see if the nm accepts a BSD-compat flag.
5098         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5099         #   nm: unknown option "B" ignored
5100         # Tru64's nm complains that /dev/null is an invalid object file
5101         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5102         */dev/null* | *'Invalid file or object type'*)
5103           lt_cv_path_NM="$tmp_nm -B"
5104           break
5105           ;;
5106         *)
5107           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5108           */dev/null*)
5109             lt_cv_path_NM="$tmp_nm -p"
5110             break
5111             ;;
5112           *)
5113             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5114             continue # so that we can try to find one that supports BSD flags
5115             ;;
5116           esac
5117           ;;
5118         esac
5119       fi
5120     done
5121     IFS="$lt_save_ifs"
5122   done
5123   : ${lt_cv_path_NM=no}
5124 fi
5125 fi
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5127 $as_echo "$lt_cv_path_NM" >&6; }
5128 if test "$lt_cv_path_NM" != "no"; then
5129   NM="$lt_cv_path_NM"
5130 else
5131   # Didn't find any BSD compatible name lister, look for dumpbin.
5132   if test -n "$ac_tool_prefix"; then
5133   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5134   do
5135     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5136 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if ${ac_cv_prog_DUMPBIN+:} false; then :
5140   $as_echo_n "(cached) " >&6
5141 else
5142   if test -n "$DUMPBIN"; then
5143   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5144 else
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5147 do
5148   IFS=$as_save_IFS
5149   test -z "$as_dir" && as_dir=.
5150     for ac_exec_ext in '' $ac_executable_extensions; do
5151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154     break 2
5155   fi
5156 done
5157   done
5158 IFS=$as_save_IFS
5159 
5160 fi
5161 fi
5162 DUMPBIN=$ac_cv_prog_DUMPBIN
5163 if test -n "$DUMPBIN"; then
5164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5165 $as_echo "$DUMPBIN" >&6; }
5166 else
5167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5169 fi
5170 
5171 
5172     test -n "$DUMPBIN" && break
5173   done
5174 fi
5175 if test -z "$DUMPBIN"; then
5176   ac_ct_DUMPBIN=$DUMPBIN
5177   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5178 do
5179   # Extract the first word of "$ac_prog", so it can be a program name with args.
5180 set dummy $ac_prog; ac_word=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5184   $as_echo_n "(cached) " >&6
5185 else
5186   if test -n "$ac_ct_DUMPBIN"; then
5187   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5191 do
5192   IFS=$as_save_IFS
5193   test -z "$as_dir" && as_dir=.
5194     for ac_exec_ext in '' $ac_executable_extensions; do
5195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198     break 2
5199   fi
5200 done
5201   done
5202 IFS=$as_save_IFS
5203 
5204 fi
5205 fi
5206 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5207 if test -n "$ac_ct_DUMPBIN"; then
5208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5209 $as_echo "$ac_ct_DUMPBIN" >&6; }
5210 else
5211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5213 fi
5214 
5215 
5216   test -n "$ac_ct_DUMPBIN" && break
5217 done
5218 
5219   if test "x$ac_ct_DUMPBIN" = x; then
5220     DUMPBIN=":"
5221   else
5222     case $cross_compiling:$ac_tool_warned in
5223 yes:)
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5226 ac_tool_warned=yes ;;
5227 esac
5228     DUMPBIN=$ac_ct_DUMPBIN
5229   fi
5230 fi
5231 
5232 
5233   if test "$DUMPBIN" != ":"; then
5234     NM="$DUMPBIN"
5235   fi
5236 fi
5237 test -z "$NM" && NM=nm
5238 
5239 
5240 
5241 
5242 
5243 
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5245 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5246 if ${lt_cv_nm_interface+:} false; then :
5247   $as_echo_n "(cached) " >&6
5248 else
5249   lt_cv_nm_interface="BSD nm"
5250   echo "int some_variable = 0;" > conftest.$ac_ext
5251   (eval echo "\"\$as_me:5251: $ac_compile\"" >&5)
5252   (eval "$ac_compile" 2>conftest.err)
5253   cat conftest.err >&5
5254   (eval echo "\"\$as_me:5254: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5255   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5256   cat conftest.err >&5
5257   (eval echo "\"\$as_me:5257: output\"" >&5)
5258   cat conftest.out >&5
5259   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5260     lt_cv_nm_interface="MS dumpbin"
5261   fi
5262   rm -f conftest*
5263 fi
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5265 $as_echo "$lt_cv_nm_interface" >&6; }
5266 
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5268 $as_echo_n "checking whether ln -s works... " >&6; }
5269 LN_S=$as_ln_s
5270 if test "$LN_S" = "ln -s"; then
5271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5272 $as_echo "yes" >&6; }
5273 else
5274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5275 $as_echo "no, using $LN_S" >&6; }
5276 fi
5277 
5278 # find the maximum length of command line arguments
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5280 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5281 if ${lt_cv_sys_max_cmd_len+:} false; then :
5282   $as_echo_n "(cached) " >&6
5283 else
5284     i=0
5285   teststring="ABCD"
5286 
5287   case $build_os in
5288   msdosdjgpp*)
5289     # On DJGPP, this test can blow up pretty badly due to problems in libc
5290     # (any single argument exceeding 2000 bytes causes a buffer overrun
5291     # during glob expansion).  Even if it were fixed, the result of this
5292     # check would be larger than it should be.
5293     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5294     ;;
5295 
5296   gnu*)
5297     # Under GNU Hurd, this test is not required because there is
5298     # no limit to the length of command line arguments.
5299     # Libtool will interpret -1 as no limit whatsoever
5300     lt_cv_sys_max_cmd_len=-1;
5301     ;;
5302 
5303   cygwin* | mingw* | cegcc*)
5304     # On Win9x/ME, this test blows up -- it succeeds, but takes
5305     # about 5 minutes as the teststring grows exponentially.
5306     # Worse, since 9x/ME are not pre-emptively multitasking,
5307     # you end up with a "frozen" computer, even though with patience
5308     # the test eventually succeeds (with a max line length of 256k).
5309     # Instead, let's just punt: use the minimum linelength reported by
5310     # all of the supported platforms: 8192 (on NT/2K/XP).
5311     lt_cv_sys_max_cmd_len=8192;
5312     ;;
5313 
5314   amigaos*)
5315     # On AmigaOS with pdksh, this test takes hours, literally.
5316     # So we just punt and use a minimum line length of 8192.
5317     lt_cv_sys_max_cmd_len=8192;
5318     ;;
5319 
5320   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5321     # This has been around since 386BSD, at least.  Likely further.
5322     if test -x /sbin/sysctl; then
5323       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5324     elif test -x /usr/sbin/sysctl; then
5325       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5326     else
5327       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5328     fi
5329     # And add a safety zone
5330     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5331     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5332     ;;
5333 
5334   interix*)
5335     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5336     lt_cv_sys_max_cmd_len=196608
5337     ;;
5338 
5339   osf*)
5340     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5341     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5342     # nice to cause kernel panics so lets avoid the loop below.
5343     # First set a reasonable default.
5344     lt_cv_sys_max_cmd_len=16384
5345     #
5346     if test -x /sbin/sysconfig; then
5347       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5348         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5349       esac
5350     fi
5351     ;;
5352   sco3.2v5*)
5353     lt_cv_sys_max_cmd_len=102400
5354     ;;
5355   sysv5* | sco5v6* | sysv4.2uw2*)
5356     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5357     if test -n "$kargmax"; then
5358       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5359     else
5360       lt_cv_sys_max_cmd_len=32768
5361     fi
5362     ;;
5363   *)
5364     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5365     if test -n "$lt_cv_sys_max_cmd_len"; then
5366       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5367       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5368     else
5369       # Make teststring a little bigger before we do anything with it.
5370       # a 1K string should be a reasonable start.
5371       for i in 1 2 3 4 5 6 7 8 ; do
5372         teststring=$teststring$teststring
5373       done
5374       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5375       # If test is not a shell built-in, we'll probably end up computing a
5376       # maximum length that is only half of the actual maximum length, but
5377       # we can't tell.
5378       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5379                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5380               test $i != 17 # 1/2 MB should be enough
5381       do
5382         i=`expr $i + 1`
5383         teststring=$teststring$teststring
5384       done
5385       # Only check the string length outside the loop.
5386       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5387       teststring=
5388       # Add a significant safety factor because C++ compilers can tack on
5389       # massive amounts of additional arguments before passing them to the
5390       # linker.  It appears as though 1/2 is a usable value.
5391       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5392     fi
5393     ;;
5394   esac
5395 
5396 fi
5397 
5398 if test -n $lt_cv_sys_max_cmd_len ; then
5399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5400 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5401 else
5402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5403 $as_echo "none" >&6; }
5404 fi
5405 max_cmd_len=$lt_cv_sys_max_cmd_len
5406 
5407 
5408 
5409 
5410 
5411 
5412 : ${CP="cp -f"}
5413 : ${MV="mv -f"}
5414 : ${RM="rm -f"}
5415 
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5417 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5418 # Try some XSI features
5419 xsi_shell=no
5420 ( _lt_dummy="a/b/c"
5421   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5422       = c,a/b,, \
5423     && eval 'test $(( 1 + 1 )) -eq 2 \
5424     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5425   && xsi_shell=yes
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5427 $as_echo "$xsi_shell" >&6; }
5428 
5429 
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5431 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5432 lt_shell_append=no
5433 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5434     >/dev/null 2>&1 \
5435   && lt_shell_append=yes
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5437 $as_echo "$lt_shell_append" >&6; }
5438 
5439 
5440 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5441   lt_unset=unset
5442 else
5443   lt_unset=false
5444 fi
5445 
5446 
5447 
5448 
5449 
5450 # test EBCDIC or ASCII
5451 case `echo X|tr X '\101'` in
5452  A) # ASCII based system
5453     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5454   lt_SP2NL='tr \040 \012'
5455   lt_NL2SP='tr \015\012 \040\040'
5456   ;;
5457  *) # EBCDIC based system
5458   lt_SP2NL='tr \100 \n'
5459   lt_NL2SP='tr \r\n \100\100'
5460   ;;
5461 esac
5462 
5463 
5464 
5465 
5466 
5467 
5468 
5469 
5470 
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5472 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5473 if ${lt_cv_ld_reload_flag+:} false; then :
5474   $as_echo_n "(cached) " >&6
5475 else
5476   lt_cv_ld_reload_flag='-r'
5477 fi
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5479 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5480 reload_flag=$lt_cv_ld_reload_flag
5481 case $reload_flag in
5482 "" | " "*) ;;
5483 *) reload_flag=" $reload_flag" ;;
5484 esac
5485 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5486 case $host_os in
5487   darwin*)
5488     if test "$GCC" = yes; then
5489       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5490     else
5491       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5492     fi
5493     ;;
5494 esac
5495 
5496 
5497 
5498 
5499 
5500 
5501 
5502 
5503 
5504 if test -n "$ac_tool_prefix"; then
5505   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5506 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508 $as_echo_n "checking for $ac_word... " >&6; }
5509 if ${ac_cv_prog_OBJDUMP+:} false; then :
5510   $as_echo_n "(cached) " >&6
5511 else
5512   if test -n "$OBJDUMP"; then
5513   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5514 else
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5517 do
5518   IFS=$as_save_IFS
5519   test -z "$as_dir" && as_dir=.
5520     for ac_exec_ext in '' $ac_executable_extensions; do
5521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5522     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524     break 2
5525   fi
5526 done
5527   done
5528 IFS=$as_save_IFS
5529 
5530 fi
5531 fi
5532 OBJDUMP=$ac_cv_prog_OBJDUMP
5533 if test -n "$OBJDUMP"; then
5534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5535 $as_echo "$OBJDUMP" >&6; }
5536 else
5537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538 $as_echo "no" >&6; }
5539 fi
5540 
5541 
5542 fi
5543 if test -z "$ac_cv_prog_OBJDUMP"; then
5544   ac_ct_OBJDUMP=$OBJDUMP
5545   # Extract the first word of "objdump", so it can be a program name with args.
5546 set dummy objdump; ac_word=$2
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548 $as_echo_n "checking for $ac_word... " >&6; }
5549 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5550   $as_echo_n "(cached) " >&6
5551 else
5552   if test -n "$ac_ct_OBJDUMP"; then
5553   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5554 else
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5557 do
5558   IFS=$as_save_IFS
5559   test -z "$as_dir" && as_dir=.
5560     for ac_exec_ext in '' $ac_executable_extensions; do
5561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5562     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564     break 2
5565   fi
5566 done
5567   done
5568 IFS=$as_save_IFS
5569 
5570 fi
5571 fi
5572 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5573 if test -n "$ac_ct_OBJDUMP"; then
5574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5575 $as_echo "$ac_ct_OBJDUMP" >&6; }
5576 else
5577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5579 fi
5580 
5581   if test "x$ac_ct_OBJDUMP" = x; then
5582     OBJDUMP="false"
5583   else
5584     case $cross_compiling:$ac_tool_warned in
5585 yes:)
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5588 ac_tool_warned=yes ;;
5589 esac
5590     OBJDUMP=$ac_ct_OBJDUMP
5591   fi
5592 else
5593   OBJDUMP="$ac_cv_prog_OBJDUMP"
5594 fi
5595 
5596 test -z "$OBJDUMP" && OBJDUMP=objdump
5597 
5598 
5599 
5600 
5601 
5602 
5603 
5604 
5605 
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5607 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5608 if ${lt_cv_deplibs_check_method+:} false; then :
5609   $as_echo_n "(cached) " >&6
5610 else
5611   lt_cv_file_magic_cmd='$MAGIC_CMD'
5612 lt_cv_file_magic_test_file=
5613 lt_cv_deplibs_check_method='unknown'
5614 # Need to set the preceding variable on all platforms that support
5615 # interlibrary dependencies.
5616 # 'none' -- dependencies not supported.
5617 # `unknown' -- same as none, but documents that we really don't know.
5618 # 'pass_all' -- all dependencies passed with no checks.
5619 # 'test_compile' -- check by making test program.
5620 # 'file_magic [[regex]]' -- check by looking for files in library path
5621 # which responds to the $file_magic_cmd with a given extended regex.
5622 # If you have `file' or equivalent on your system and you're not sure
5623 # whether `pass_all' will *always* work, you probably want this one.
5624 
5625 case $host_os in
5626 aix[4-9]*)
5627   lt_cv_deplibs_check_method=pass_all
5628   ;;
5629 
5630 beos*)
5631   lt_cv_deplibs_check_method=pass_all
5632   ;;
5633 
5634 bsdi[45]*)
5635   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5636   lt_cv_file_magic_cmd='/usr/bin/file -L'
5637   lt_cv_file_magic_test_file=/shlib/libc.so
5638   ;;
5639 
5640 cygwin*)
5641   # func_win32_libid is a shell function defined in ltmain.sh
5642   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5643   lt_cv_file_magic_cmd='func_win32_libid'
5644   ;;
5645 
5646 mingw* | pw32*)
5647   # Base MSYS/MinGW do not provide the 'file' command needed by
5648   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5649   # unless we find 'file', for example because we are cross-compiling.
5650   if ( file / ) >/dev/null 2>&1; then
5651     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5652     lt_cv_file_magic_cmd='func_win32_libid'
5653   else
5654     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5655     lt_cv_file_magic_cmd='$OBJDUMP -f'
5656   fi
5657   ;;
5658 
5659 cegcc)
5660   # use the weaker test based on 'objdump'. See mingw*.
5661   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5662   lt_cv_file_magic_cmd='$OBJDUMP -f'
5663   ;;
5664 
5665 darwin* | rhapsody*)
5666   lt_cv_deplibs_check_method=pass_all
5667   ;;
5668 
5669 freebsd* | dragonfly*)
5670   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5671     case $host_cpu in
5672     i*86 )
5673       # Not sure whether the presence of OpenBSD here was a mistake.
5674       # Let's accept both of them until this is cleared up.
5675       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5676       lt_cv_file_magic_cmd=/usr/bin/file
5677       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5678       ;;
5679     esac
5680   else
5681     lt_cv_deplibs_check_method=pass_all
5682   fi
5683   ;;
5684 
5685 gnu*)
5686   lt_cv_deplibs_check_method=pass_all
5687   ;;
5688 
5689 hpux10.20* | hpux11*)
5690   lt_cv_file_magic_cmd=/usr/bin/file
5691   case $host_cpu in
5692   ia64*)
5693     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5694     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5695     ;;
5696   hppa*64*)
5697     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]'
5698     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5699     ;;
5700   *)
5701     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5702     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5703     ;;
5704   esac
5705   ;;
5706 
5707 interix[3-9]*)
5708   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5709   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5710   ;;
5711 
5712 irix5* | irix6* | nonstopux*)
5713   case $LD in
5714   *-32|*"-32 ") libmagic=32-bit;;
5715   *-n32|*"-n32 ") libmagic=N32;;
5716   *-64|*"-64 ") libmagic=64-bit;;
5717   *) libmagic=never-match;;
5718   esac
5719   lt_cv_deplibs_check_method=pass_all
5720   ;;
5721 
5722 # This must be Linux ELF.
5723 linux* | k*bsd*-gnu)
5724   lt_cv_deplibs_check_method=pass_all
5725   ;;
5726 
5727 netbsd*)
5728   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5729     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5730   else
5731     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5732   fi
5733   ;;
5734 
5735 newos6*)
5736   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5737   lt_cv_file_magic_cmd=/usr/bin/file
5738   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5739   ;;
5740 
5741 *nto* | *qnx*)
5742   lt_cv_deplibs_check_method=pass_all
5743   ;;
5744 
5745 openbsd*)
5746   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5747     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5748   else
5749     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5750   fi
5751   ;;
5752 
5753 osf3* | osf4* | osf5*)
5754   lt_cv_deplibs_check_method=pass_all
5755   ;;
5756 
5757 rdos*)
5758   lt_cv_deplibs_check_method=pass_all
5759   ;;
5760 
5761 solaris*)
5762   lt_cv_deplibs_check_method=pass_all
5763   ;;
5764 
5765 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5766   lt_cv_deplibs_check_method=pass_all
5767   ;;
5768 
5769 sysv4 | sysv4.3*)
5770   case $host_vendor in
5771   motorola)
5772     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]'
5773     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5774     ;;
5775   ncr)
5776     lt_cv_deplibs_check_method=pass_all
5777     ;;
5778   sequent)
5779     lt_cv_file_magic_cmd='/bin/file'
5780     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5781     ;;
5782   sni)
5783     lt_cv_file_magic_cmd='/bin/file'
5784     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5785     lt_cv_file_magic_test_file=/lib/libc.so
5786     ;;
5787   siemens)
5788     lt_cv_deplibs_check_method=pass_all
5789     ;;
5790   pc)
5791     lt_cv_deplibs_check_method=pass_all
5792     ;;
5793   esac
5794   ;;
5795 
5796 tpf*)
5797   lt_cv_deplibs_check_method=pass_all
5798   ;;
5799 esac
5800 
5801 fi
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5803 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5804 file_magic_cmd=$lt_cv_file_magic_cmd
5805 deplibs_check_method=$lt_cv_deplibs_check_method
5806 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5807 
5808 
5809 
5810 
5811 
5812 
5813 
5814 
5815 
5816 
5817 
5818 
5819 if test -n "$ac_tool_prefix"; then
5820   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5821 set dummy ${ac_tool_prefix}ar; ac_word=$2
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5823 $as_echo_n "checking for $ac_word... " >&6; }
5824 if ${ac_cv_prog_AR+:} false; then :
5825   $as_echo_n "(cached) " >&6
5826 else
5827   if test -n "$AR"; then
5828   ac_cv_prog_AR="$AR" # Let the user override the test.
5829 else
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831 for as_dir in $PATH
5832 do
5833   IFS=$as_save_IFS
5834   test -z "$as_dir" && as_dir=.
5835     for ac_exec_ext in '' $ac_executable_extensions; do
5836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5837     ac_cv_prog_AR="${ac_tool_prefix}ar"
5838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5839     break 2
5840   fi
5841 done
5842   done
5843 IFS=$as_save_IFS
5844 
5845 fi
5846 fi
5847 AR=$ac_cv_prog_AR
5848 if test -n "$AR"; then
5849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5850 $as_echo "$AR" >&6; }
5851 else
5852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853 $as_echo "no" >&6; }
5854 fi
5855 
5856 
5857 fi
5858 if test -z "$ac_cv_prog_AR"; then
5859   ac_ct_AR=$AR
5860   # Extract the first word of "ar", so it can be a program name with args.
5861 set dummy ar; ac_word=$2
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5863 $as_echo_n "checking for $ac_word... " >&6; }
5864 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5865   $as_echo_n "(cached) " >&6
5866 else
5867   if test -n "$ac_ct_AR"; then
5868   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5869 else
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873   IFS=$as_save_IFS
5874   test -z "$as_dir" && as_dir=.
5875     for ac_exec_ext in '' $ac_executable_extensions; do
5876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5877     ac_cv_prog_ac_ct_AR="ar"
5878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5879     break 2
5880   fi
5881 done
5882   done
5883 IFS=$as_save_IFS
5884 
5885 fi
5886 fi
5887 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5888 if test -n "$ac_ct_AR"; then
5889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5890 $as_echo "$ac_ct_AR" >&6; }
5891 else
5892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893 $as_echo "no" >&6; }
5894 fi
5895 
5896   if test "x$ac_ct_AR" = x; then
5897     AR="false"
5898   else
5899     case $cross_compiling:$ac_tool_warned in
5900 yes:)
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5903 ac_tool_warned=yes ;;
5904 esac
5905     AR=$ac_ct_AR
5906   fi
5907 else
5908   AR="$ac_cv_prog_AR"
5909 fi
5910 
5911 test -z "$AR" && AR=ar
5912 test -z "$AR_FLAGS" && AR_FLAGS=cru
5913 
5914 
5915 
5916 
5917 
5918 
5919 
5920 
5921 
5922 
5923 
5924 if test -n "$ac_tool_prefix"; then
5925   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5926 set dummy ${ac_tool_prefix}strip; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if ${ac_cv_prog_STRIP+:} false; then :
5930   $as_echo_n "(cached) " >&6
5931 else
5932   if test -n "$STRIP"; then
5933   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938   IFS=$as_save_IFS
5939   test -z "$as_dir" && as_dir=.
5940     for ac_exec_ext in '' $ac_executable_extensions; do
5941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944     break 2
5945   fi
5946 done
5947   done
5948 IFS=$as_save_IFS
5949 
5950 fi
5951 fi
5952 STRIP=$ac_cv_prog_STRIP
5953 if test -n "$STRIP"; then
5954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5955 $as_echo "$STRIP" >&6; }
5956 else
5957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5959 fi
5960 
5961 
5962 fi
5963 if test -z "$ac_cv_prog_STRIP"; then
5964   ac_ct_STRIP=$STRIP
5965   # Extract the first word of "strip", so it can be a program name with args.
5966 set dummy strip; ac_word=$2
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968 $as_echo_n "checking for $ac_word... " >&6; }
5969 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5970   $as_echo_n "(cached) " >&6
5971 else
5972   if test -n "$ac_ct_STRIP"; then
5973   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5974 else
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978   IFS=$as_save_IFS
5979   test -z "$as_dir" && as_dir=.
5980     for ac_exec_ext in '' $ac_executable_extensions; do
5981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5982     ac_cv_prog_ac_ct_STRIP="strip"
5983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5984     break 2
5985   fi
5986 done
5987   done
5988 IFS=$as_save_IFS
5989 
5990 fi
5991 fi
5992 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5993 if test -n "$ac_ct_STRIP"; then
5994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5995 $as_echo "$ac_ct_STRIP" >&6; }
5996 else
5997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998 $as_echo "no" >&6; }
5999 fi
6000 
6001   if test "x$ac_ct_STRIP" = x; then
6002     STRIP=":"
6003   else
6004     case $cross_compiling:$ac_tool_warned in
6005 yes:)
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6008 ac_tool_warned=yes ;;
6009 esac
6010     STRIP=$ac_ct_STRIP
6011   fi
6012 else
6013   STRIP="$ac_cv_prog_STRIP"
6014 fi
6015 
6016 test -z "$STRIP" && STRIP=:
6017 
6018 
6019 
6020 
6021 
6022 
6023 if test -n "$ac_tool_prefix"; then
6024   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6025 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027 $as_echo_n "checking for $ac_word... " >&6; }
6028 if ${ac_cv_prog_RANLIB+:} false; then :
6029   $as_echo_n "(cached) " >&6
6030 else
6031   if test -n "$RANLIB"; then
6032   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6033 else
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 for as_dir in $PATH
6036 do
6037   IFS=$as_save_IFS
6038   test -z "$as_dir" && as_dir=.
6039     for ac_exec_ext in '' $ac_executable_extensions; do
6040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6041     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043     break 2
6044   fi
6045 done
6046   done
6047 IFS=$as_save_IFS
6048 
6049 fi
6050 fi
6051 RANLIB=$ac_cv_prog_RANLIB
6052 if test -n "$RANLIB"; then
6053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6054 $as_echo "$RANLIB" >&6; }
6055 else
6056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057 $as_echo "no" >&6; }
6058 fi
6059 
6060 
6061 fi
6062 if test -z "$ac_cv_prog_RANLIB"; then
6063   ac_ct_RANLIB=$RANLIB
6064   # Extract the first word of "ranlib", so it can be a program name with args.
6065 set dummy ranlib; ac_word=$2
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067 $as_echo_n "checking for $ac_word... " >&6; }
6068 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6069   $as_echo_n "(cached) " >&6
6070 else
6071   if test -n "$ac_ct_RANLIB"; then
6072   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6073 else
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH
6076 do
6077   IFS=$as_save_IFS
6078   test -z "$as_dir" && as_dir=.
6079     for ac_exec_ext in '' $ac_executable_extensions; do
6080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6081     ac_cv_prog_ac_ct_RANLIB="ranlib"
6082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6083     break 2
6084   fi
6085 done
6086   done
6087 IFS=$as_save_IFS
6088 
6089 fi
6090 fi
6091 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6092 if test -n "$ac_ct_RANLIB"; then
6093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6094 $as_echo "$ac_ct_RANLIB" >&6; }
6095 else
6096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097 $as_echo "no" >&6; }
6098 fi
6099 
6100   if test "x$ac_ct_RANLIB" = x; then
6101     RANLIB=":"
6102   else
6103     case $cross_compiling:$ac_tool_warned in
6104 yes:)
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6107 ac_tool_warned=yes ;;
6108 esac
6109     RANLIB=$ac_ct_RANLIB
6110   fi
6111 else
6112   RANLIB="$ac_cv_prog_RANLIB"
6113 fi
6114 
6115 test -z "$RANLIB" && RANLIB=:
6116 
6117 
6118 
6119 
6120 
6121 
6122 # Determine commands to create old-style static archives.
6123 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6124 old_postinstall_cmds='chmod 644 $oldlib'
6125 old_postuninstall_cmds=
6126 
6127 if test -n "$RANLIB"; then
6128   case $host_os in
6129   openbsd*)
6130     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6131     ;;
6132   *)
6133     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6134     ;;
6135   esac
6136   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6137 fi
6138 
6139 
6140 
6141 
6142 
6143 
6144 
6145 
6146 
6147 
6148 
6149 
6150 
6151 
6152 
6153 
6154 
6155 
6156 
6157 
6158 
6159 
6160 
6161 
6162 
6163 
6164 
6165 
6166 
6167 
6168 
6169 
6170 
6171 
6172 # If no C compiler was specified, use CC.
6173 LTCC=${LTCC-"$CC"}
6174 
6175 # If no C compiler flags were specified, use CFLAGS.
6176 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6177 
6178 # Allow CC to be a program name with arguments.
6179 compiler=$CC
6180 
6181 
6182 # Check for command to grab the raw symbol name followed by C symbol from nm.
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6184 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6185 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6186   $as_echo_n "(cached) " >&6
6187 else
6188 
6189 # These are sane defaults that work on at least a few old systems.
6190 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6191 
6192 # Character class describing NM global symbol codes.
6193 symcode='[BCDEGRST]'
6194 
6195 # Regexp to match symbols that can be accessed directly from C.
6196 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6197 
6198 # Define system-specific variables.
6199 case $host_os in
6200 aix*)
6201   symcode='[BCDT]'
6202   ;;
6203 cygwin* | mingw* | pw32* | cegcc*)
6204   symcode='[ABCDGISTW]'
6205   ;;
6206 hpux*)
6207   if test "$host_cpu" = ia64; then
6208     symcode='[ABCDEGRST]'
6209   fi
6210   ;;
6211 irix* | nonstopux*)
6212   symcode='[BCDEGRST]'
6213   ;;
6214 osf*)
6215   symcode='[BCDEGQRST]'
6216   ;;
6217 solaris*)
6218   symcode='[BDRT]'
6219   ;;
6220 sco3.2v5*)
6221   symcode='[DT]'
6222   ;;
6223 sysv4.2uw2*)
6224   symcode='[DT]'
6225   ;;
6226 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6227   symcode='[ABDT]'
6228   ;;
6229 sysv4)
6230   symcode='[DFNSTU]'
6231   ;;
6232 esac
6233 
6234 # If we're using GNU nm, then use its standard symbol codes.
6235 case `$NM -V 2>&1` in
6236 *GNU* | *'with BFD'*)
6237   symcode='[ABCDGIRSTW]' ;;
6238 esac
6239 
6240 # Transform an extracted symbol line into a proper C declaration.
6241 # Some systems (esp. on ia64) link data and code symbols differently,
6242 # so use this general approach.
6243 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6244 
6245 # Transform an extracted symbol line into symbol name and symbol address
6246 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6247 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'"
6248 
6249 # Handle CRLF in mingw tool chain
6250 opt_cr=
6251 case $build_os in
6252 mingw*)
6253   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6254   ;;
6255 esac
6256 
6257 # Try without a prefix underscore, then with it.
6258 for ac_symprfx in "" "_"; do
6259 
6260   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6261   symxfrm="\\1 $ac_symprfx\\2 \\2"
6262 
6263   # Write the raw and C identifiers.
6264   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6265     # Fake it for dumpbin and say T for any non-static function
6266     # and D for any global variable.
6267     # Also find C++ and __fastcall symbols from MSVC++,
6268     # which start with @ or ?.
6269     lt_cv_sys_global_symbol_pipe="$AWK '"\
6270 "     {last_section=section; section=\$ 3};"\
6271 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6272 "     \$ 0!~/External *\|/{next};"\
6273 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6274 "     {if(hide[section]) next};"\
6275 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6276 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6277 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6278 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6279 "     ' prfx=^$ac_symprfx"
6280   else
6281     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6282   fi
6283 
6284   # Check to see that the pipe works correctly.
6285   pipe_works=no
6286 
6287   rm -f conftest*
6288   cat > conftest.$ac_ext <<_LT_EOF
6289 #ifdef __cplusplus
6290 extern "C" {
6291 #endif
6292 char nm_test_var;
6293 void nm_test_func(void);
6294 void nm_test_func(void){}
6295 #ifdef __cplusplus
6296 }
6297 #endif
6298 int main(){nm_test_var='a';nm_test_func();return(0);}
6299 _LT_EOF
6300 
6301   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6302   (eval $ac_compile) 2>&5
6303   ac_status=$?
6304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6305   test $ac_status = 0; }; then
6306     # Now try to grab the symbols.
6307     nlist=conftest.nm
6308     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6309   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6310   ac_status=$?
6311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6312   test $ac_status = 0; } && test -s "$nlist"; then
6313       # Try sorting and uniquifying the output.
6314       if sort "$nlist" | uniq > "$nlist"T; then
6315         mv -f "$nlist"T "$nlist"
6316       else
6317         rm -f "$nlist"T
6318       fi
6319 
6320       # Make sure that we snagged all the symbols we need.
6321       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6322         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6323           cat <<_LT_EOF > conftest.$ac_ext
6324 #ifdef __cplusplus
6325 extern "C" {
6326 #endif
6327 
6328 _LT_EOF
6329           # Now generate the symbol file.
6330           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6331 
6332           cat <<_LT_EOF >> conftest.$ac_ext
6333 
6334 /* The mapping between symbol names and symbols.  */
6335 const struct {
6336   const char *name;
6337   void       *address;
6338 }
6339 lt__PROGRAM__LTX_preloaded_symbols[] =
6340 {
6341   { "@PROGRAM@", (void *) 0 },
6342 _LT_EOF
6343           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6344           cat <<\_LT_EOF >> conftest.$ac_ext
6345   {0, (void *) 0}
6346 };
6347 
6348 /* This works around a problem in FreeBSD linker */
6349 #ifdef FREEBSD_WORKAROUND
6350 static const void *lt_preloaded_setup() {
6351   return lt__PROGRAM__LTX_preloaded_symbols;
6352 }
6353 #endif
6354 
6355 #ifdef __cplusplus
6356 }
6357 #endif
6358 _LT_EOF
6359           # Now try linking the two files.
6360           mv conftest.$ac_objext conftstm.$ac_objext
6361           lt_save_LIBS="$LIBS"
6362           lt_save_CFLAGS="$CFLAGS"
6363           LIBS="conftstm.$ac_objext"
6364           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6365           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6366   (eval $ac_link) 2>&5
6367   ac_status=$?
6368   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6369   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6370             pipe_works=yes
6371           fi
6372           LIBS="$lt_save_LIBS"
6373           CFLAGS="$lt_save_CFLAGS"
6374         else
6375           echo "cannot find nm_test_func in $nlist" >&5
6376         fi
6377       else
6378         echo "cannot find nm_test_var in $nlist" >&5
6379       fi
6380     else
6381       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6382     fi
6383   else
6384     echo "$progname: failed program was:" >&5
6385     cat conftest.$ac_ext >&5
6386   fi
6387   rm -rf conftest* conftst*
6388 
6389   # Do not use the global_symbol_pipe unless it works.
6390   if test "$pipe_works" = yes; then
6391     break
6392   else
6393     lt_cv_sys_global_symbol_pipe=
6394   fi
6395 done
6396 
6397 fi
6398 
6399 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6400   lt_cv_sys_global_symbol_to_cdecl=
6401 fi
6402 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6404 $as_echo "failed" >&6; }
6405 else
6406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6407 $as_echo "ok" >&6; }
6408 fi
6409 
6410 
6411 
6412 
6413 
6414 
6415 
6416 
6417 
6418 
6419 
6420 
6421 
6422 
6423 
6424 
6425 
6426 
6427 
6428 
6429 
6430 
6431 # Check whether --enable-libtool-lock was given.
6432 if test "${enable_libtool_lock+set}" = set; then :
6433   enableval=$enable_libtool_lock;
6434 fi
6435 
6436 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6437 
6438 # Some flags need to be propagated to the compiler or linker for good
6439 # libtool support.
6440 case $host in
6441 ia64-*-hpux*)
6442   # Find out which ABI we are using.
6443   echo 'int i;' > conftest.$ac_ext
6444   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6445   (eval $ac_compile) 2>&5
6446   ac_status=$?
6447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6448   test $ac_status = 0; }; then
6449     case `/usr/bin/file conftest.$ac_objext` in
6450       *ELF-32*)
6451         HPUX_IA64_MODE="32"
6452         ;;
6453       *ELF-64*)
6454         HPUX_IA64_MODE="64"
6455         ;;
6456     esac
6457   fi
6458   rm -rf conftest*
6459   ;;
6460 *-*-irix6*)
6461   # Find out which ABI we are using.
6462   echo '#line 6462 "configure"' > conftest.$ac_ext
6463   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6464   (eval $ac_compile) 2>&5
6465   ac_status=$?
6466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6467   test $ac_status = 0; }; then
6468     if test "$lt_cv_prog_gnu_ld" = yes; then
6469       case `/usr/bin/file conftest.$ac_objext` in
6470         *32-bit*)
6471           LD="${LD-ld} -melf32bsmip"
6472           ;;
6473         *N32*)
6474           LD="${LD-ld} -melf32bmipn32"
6475           ;;
6476         *64-bit*)
6477           LD="${LD-ld} -melf64bmip"
6478         ;;
6479       esac
6480     else
6481       case `/usr/bin/file conftest.$ac_objext` in
6482         *32-bit*)
6483           LD="${LD-ld} -32"
6484           ;;
6485         *N32*)
6486           LD="${LD-ld} -n32"
6487           ;;
6488         *64-bit*)
6489           LD="${LD-ld} -64"
6490           ;;
6491       esac
6492     fi
6493   fi
6494   rm -rf conftest*
6495   ;;
6496 
6497 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6498 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6499   # Find out which ABI we are using.
6500   echo 'int i;' > conftest.$ac_ext
6501   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6502   (eval $ac_compile) 2>&5
6503   ac_status=$?
6504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6505   test $ac_status = 0; }; then
6506     case `/usr/bin/file conftest.o` in
6507       *32-bit*)
6508         case $host in
6509           x86_64-*kfreebsd*-gnu)
6510             LD="${LD-ld} -m elf_i386_fbsd"
6511             ;;
6512           x86_64-*linux*)
6513             LD="${LD-ld} -m elf_i386"
6514             ;;
6515           ppc64-*linux*|powerpc64-*linux*)
6516             LD="${LD-ld} -m elf32ppclinux"
6517             ;;
6518           s390x-*linux*)
6519             LD="${LD-ld} -m elf_s390"
6520             ;;
6521           sparc64-*linux*)
6522             LD="${LD-ld} -m elf32_sparc"
6523             ;;
6524         esac
6525         ;;
6526       *64-bit*)
6527         case $host in
6528           x86_64-*kfreebsd*-gnu)
6529             LD="${LD-ld} -m elf_x86_64_fbsd"
6530             ;;
6531           x86_64-*linux*)
6532             LD="${LD-ld} -m elf_x86_64"
6533             ;;
6534           ppc*-*linux*|powerpc*-*linux*)
6535             LD="${LD-ld} -m elf64ppc"
6536             ;;
6537           s390*-*linux*|s390*-*tpf*)
6538             LD="${LD-ld} -m elf64_s390"
6539             ;;
6540           sparc*-*linux*)
6541             LD="${LD-ld} -m elf64_sparc"
6542             ;;
6543         esac
6544         ;;
6545     esac
6546   fi
6547   rm -rf conftest*
6548   ;;
6549 
6550 *-*-sco3.2v5*)
6551   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6552   SAVE_CFLAGS="$CFLAGS"
6553   CFLAGS="$CFLAGS -belf"
6554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6555 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6556 if ${lt_cv_cc_needs_belf+:} false; then :
6557   $as_echo_n "(cached) " >&6
6558 else
6559   ac_ext=c
6560 ac_cpp='$CPP $CPPFLAGS'
6561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6564 
6565      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h.  */
6567 
6568 int
6569 main ()
6570 {
6571 
6572   ;
6573   return 0;
6574 }
6575 _ACEOF
6576 if ac_fn_c_try_link "$LINENO"; then :
6577   lt_cv_cc_needs_belf=yes
6578 else
6579   lt_cv_cc_needs_belf=no
6580 fi
6581 rm -f core conftest.err conftest.$ac_objext \
6582     conftest$ac_exeext conftest.$ac_ext
6583      ac_ext=c
6584 ac_cpp='$CPP $CPPFLAGS'
6585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6588 
6589 fi
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6591 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6592   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6593     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6594     CFLAGS="$SAVE_CFLAGS"
6595   fi
6596   ;;
6597 sparc*-*solaris*)
6598   # Find out which ABI we are using.
6599   echo 'int i;' > conftest.$ac_ext
6600   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6601   (eval $ac_compile) 2>&5
6602   ac_status=$?
6603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6604   test $ac_status = 0; }; then
6605     case `/usr/bin/file conftest.o` in
6606     *64-bit*)
6607       case $lt_cv_prog_gnu_ld in
6608       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6609       *)
6610         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6611           LD="${LD-ld} -64"
6612         fi
6613         ;;
6614       esac
6615       ;;
6616     esac
6617   fi
6618   rm -rf conftest*
6619   ;;
6620 esac
6621 
6622 need_locks="$enable_libtool_lock"
6623 
6624 
6625   case $host_os in
6626     rhapsody* | darwin*)
6627     if test -n "$ac_tool_prefix"; then
6628   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6629 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6631 $as_echo_n "checking for $ac_word... " >&6; }
6632 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6633   $as_echo_n "(cached) " >&6
6634 else
6635   if test -n "$DSYMUTIL"; then
6636   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6637 else
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 for as_dir in $PATH
6640 do
6641   IFS=$as_save_IFS
6642   test -z "$as_dir" && as_dir=.
6643     for ac_exec_ext in '' $ac_executable_extensions; do
6644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6645     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6647     break 2
6648   fi
6649 done
6650   done
6651 IFS=$as_save_IFS
6652 
6653 fi
6654 fi
6655 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6656 if test -n "$DSYMUTIL"; then
6657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6658 $as_echo "$DSYMUTIL" >&6; }
6659 else
6660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6661 $as_echo "no" >&6; }
6662 fi
6663 
6664 
6665 fi
6666 if test -z "$ac_cv_prog_DSYMUTIL"; then
6667   ac_ct_DSYMUTIL=$DSYMUTIL
6668   # Extract the first word of "dsymutil", so it can be a program name with args.
6669 set dummy dsymutil; ac_word=$2
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6671 $as_echo_n "checking for $ac_word... " >&6; }
6672 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6673   $as_echo_n "(cached) " >&6
6674 else
6675   if test -n "$ac_ct_DSYMUTIL"; then
6676   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6677 else
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6680 do
6681   IFS=$as_save_IFS
6682   test -z "$as_dir" && as_dir=.
6683     for ac_exec_ext in '' $ac_executable_extensions; do
6684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6687     break 2
6688   fi
6689 done
6690   done
6691 IFS=$as_save_IFS
6692 
6693 fi
6694 fi
6695 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6696 if test -n "$ac_ct_DSYMUTIL"; then
6697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6698 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6699 else
6700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701 $as_echo "no" >&6; }
6702 fi
6703 
6704   if test "x$ac_ct_DSYMUTIL" = x; then
6705     DSYMUTIL=":"
6706   else
6707     case $cross_compiling:$ac_tool_warned in
6708 yes:)
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6711 ac_tool_warned=yes ;;
6712 esac
6713     DSYMUTIL=$ac_ct_DSYMUTIL
6714   fi
6715 else
6716   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6717 fi
6718 
6719     if test -n "$ac_tool_prefix"; then
6720   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6721 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723 $as_echo_n "checking for $ac_word... " >&6; }
6724 if ${ac_cv_prog_NMEDIT+:} false; then :
6725   $as_echo_n "(cached) " >&6
6726 else
6727   if test -n "$NMEDIT"; then
6728   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6729 else
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6732 do
6733   IFS=$as_save_IFS
6734   test -z "$as_dir" && as_dir=.
6735     for ac_exec_ext in '' $ac_executable_extensions; do
6736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739     break 2
6740   fi
6741 done
6742   done
6743 IFS=$as_save_IFS
6744 
6745 fi
6746 fi
6747 NMEDIT=$ac_cv_prog_NMEDIT
6748 if test -n "$NMEDIT"; then
6749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6750 $as_echo "$NMEDIT" >&6; }
6751 else
6752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 $as_echo "no" >&6; }
6754 fi
6755 
6756 
6757 fi
6758 if test -z "$ac_cv_prog_NMEDIT"; then
6759   ac_ct_NMEDIT=$NMEDIT
6760   # Extract the first word of "nmedit", so it can be a program name with args.
6761 set dummy nmedit; ac_word=$2
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763 $as_echo_n "checking for $ac_word... " >&6; }
6764 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6765   $as_echo_n "(cached) " >&6
6766 else
6767   if test -n "$ac_ct_NMEDIT"; then
6768   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6769 else
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 for as_dir in $PATH
6772 do
6773   IFS=$as_save_IFS
6774   test -z "$as_dir" && as_dir=.
6775     for ac_exec_ext in '' $ac_executable_extensions; do
6776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6779     break 2
6780   fi
6781 done
6782   done
6783 IFS=$as_save_IFS
6784 
6785 fi
6786 fi
6787 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6788 if test -n "$ac_ct_NMEDIT"; then
6789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6790 $as_echo "$ac_ct_NMEDIT" >&6; }
6791 else
6792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 $as_echo "no" >&6; }
6794 fi
6795 
6796   if test "x$ac_ct_NMEDIT" = x; then
6797     NMEDIT=":"
6798   else
6799     case $cross_compiling:$ac_tool_warned in
6800 yes:)
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6803 ac_tool_warned=yes ;;
6804 esac
6805     NMEDIT=$ac_ct_NMEDIT
6806   fi
6807 else
6808   NMEDIT="$ac_cv_prog_NMEDIT"
6809 fi
6810 
6811     if test -n "$ac_tool_prefix"; then
6812   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6813 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 $as_echo_n "checking for $ac_word... " >&6; }
6816 if ${ac_cv_prog_LIPO+:} false; then :
6817   $as_echo_n "(cached) " >&6
6818 else
6819   if test -n "$LIPO"; then
6820   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6821 else
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825   IFS=$as_save_IFS
6826   test -z "$as_dir" && as_dir=.
6827     for ac_exec_ext in '' $ac_executable_extensions; do
6828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6829     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831     break 2
6832   fi
6833 done
6834   done
6835 IFS=$as_save_IFS
6836 
6837 fi
6838 fi
6839 LIPO=$ac_cv_prog_LIPO
6840 if test -n "$LIPO"; then
6841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6842 $as_echo "$LIPO" >&6; }
6843 else
6844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6846 fi
6847 
6848 
6849 fi
6850 if test -z "$ac_cv_prog_LIPO"; then
6851   ac_ct_LIPO=$LIPO
6852   # Extract the first word of "lipo", so it can be a program name with args.
6853 set dummy lipo; ac_word=$2
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855 $as_echo_n "checking for $ac_word... " >&6; }
6856 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6857   $as_echo_n "(cached) " >&6
6858 else
6859   if test -n "$ac_ct_LIPO"; then
6860   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865   IFS=$as_save_IFS
6866   test -z "$as_dir" && as_dir=.
6867     for ac_exec_ext in '' $ac_executable_extensions; do
6868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6869     ac_cv_prog_ac_ct_LIPO="lipo"
6870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6871     break 2
6872   fi
6873 done
6874   done
6875 IFS=$as_save_IFS
6876 
6877 fi
6878 fi
6879 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6880 if test -n "$ac_ct_LIPO"; then
6881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6882 $as_echo "$ac_ct_LIPO" >&6; }
6883 else
6884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885 $as_echo "no" >&6; }
6886 fi
6887 
6888   if test "x$ac_ct_LIPO" = x; then
6889     LIPO=":"
6890   else
6891     case $cross_compiling:$ac_tool_warned in
6892 yes:)
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6895 ac_tool_warned=yes ;;
6896 esac
6897     LIPO=$ac_ct_LIPO
6898   fi
6899 else
6900   LIPO="$ac_cv_prog_LIPO"
6901 fi
6902 
6903     if test -n "$ac_tool_prefix"; then
6904   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6905 set dummy ${ac_tool_prefix}otool; ac_word=$2
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 $as_echo_n "checking for $ac_word... " >&6; }
6908 if ${ac_cv_prog_OTOOL+:} false; then :
6909   $as_echo_n "(cached) " >&6
6910 else
6911   if test -n "$OTOOL"; then
6912   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6913 else
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6916 do
6917   IFS=$as_save_IFS
6918   test -z "$as_dir" && as_dir=.
6919     for ac_exec_ext in '' $ac_executable_extensions; do
6920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6921     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923     break 2
6924   fi
6925 done
6926   done
6927 IFS=$as_save_IFS
6928 
6929 fi
6930 fi
6931 OTOOL=$ac_cv_prog_OTOOL
6932 if test -n "$OTOOL"; then
6933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6934 $as_echo "$OTOOL" >&6; }
6935 else
6936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6938 fi
6939 
6940 
6941 fi
6942 if test -z "$ac_cv_prog_OTOOL"; then
6943   ac_ct_OTOOL=$OTOOL
6944   # Extract the first word of "otool", so it can be a program name with args.
6945 set dummy otool; ac_word=$2
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947 $as_echo_n "checking for $ac_word... " >&6; }
6948 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6949   $as_echo_n "(cached) " >&6
6950 else
6951   if test -n "$ac_ct_OTOOL"; then
6952   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6953 else
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $PATH
6956 do
6957   IFS=$as_save_IFS
6958   test -z "$as_dir" && as_dir=.
6959     for ac_exec_ext in '' $ac_executable_extensions; do
6960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6961     ac_cv_prog_ac_ct_OTOOL="otool"
6962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6963     break 2
6964   fi
6965 done
6966   done
6967 IFS=$as_save_IFS
6968 
6969 fi
6970 fi
6971 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6972 if test -n "$ac_ct_OTOOL"; then
6973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6974 $as_echo "$ac_ct_OTOOL" >&6; }
6975 else
6976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977 $as_echo "no" >&6; }
6978 fi
6979 
6980   if test "x$ac_ct_OTOOL" = x; then
6981     OTOOL=":"
6982   else
6983     case $cross_compiling:$ac_tool_warned in
6984 yes:)
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6987 ac_tool_warned=yes ;;
6988 esac
6989     OTOOL=$ac_ct_OTOOL
6990   fi
6991 else
6992   OTOOL="$ac_cv_prog_OTOOL"
6993 fi
6994 
6995     if test -n "$ac_tool_prefix"; then
6996   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6997 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 $as_echo_n "checking for $ac_word... " >&6; }
7000 if ${ac_cv_prog_OTOOL64+:} false; then :
7001   $as_echo_n "(cached) " >&6
7002 else
7003   if test -n "$OTOOL64"; then
7004   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7005 else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7008 do
7009   IFS=$as_save_IFS
7010   test -z "$as_dir" && as_dir=.
7011     for ac_exec_ext in '' $ac_executable_extensions; do
7012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7013     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015     break 2
7016   fi
7017 done
7018   done
7019 IFS=$as_save_IFS
7020 
7021 fi
7022 fi
7023 OTOOL64=$ac_cv_prog_OTOOL64
7024 if test -n "$OTOOL64"; then
7025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7026 $as_echo "$OTOOL64" >&6; }
7027 else
7028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7030 fi
7031 
7032 
7033 fi
7034 if test -z "$ac_cv_prog_OTOOL64"; then
7035   ac_ct_OTOOL64=$OTOOL64
7036   # Extract the first word of "otool64", so it can be a program name with args.
7037 set dummy otool64; ac_word=$2
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039 $as_echo_n "checking for $ac_word... " >&6; }
7040 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7041   $as_echo_n "(cached) " >&6
7042 else
7043   if test -n "$ac_ct_OTOOL64"; then
7044   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7045 else
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049   IFS=$as_save_IFS
7050   test -z "$as_dir" && as_dir=.
7051     for ac_exec_ext in '' $ac_executable_extensions; do
7052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7053     ac_cv_prog_ac_ct_OTOOL64="otool64"
7054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055     break 2
7056   fi
7057 done
7058   done
7059 IFS=$as_save_IFS
7060 
7061 fi
7062 fi
7063 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7064 if test -n "$ac_ct_OTOOL64"; then
7065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7066 $as_echo "$ac_ct_OTOOL64" >&6; }
7067 else
7068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7070 fi
7071 
7072   if test "x$ac_ct_OTOOL64" = x; then
7073     OTOOL64=":"
7074   else
7075     case $cross_compiling:$ac_tool_warned in
7076 yes:)
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7079 ac_tool_warned=yes ;;
7080 esac
7081     OTOOL64=$ac_ct_OTOOL64
7082   fi
7083 else
7084   OTOOL64="$ac_cv_prog_OTOOL64"
7085 fi
7086 
7087 
7088 
7089 
7090 
7091 
7092 
7093 
7094 
7095 
7096 
7097 
7098 
7099 
7100 
7101 
7102 
7103 
7104 
7105 
7106 
7107 
7108 
7109 
7110 
7111 
7112 
7113     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7114 $as_echo_n "checking for -single_module linker flag... " >&6; }
7115 if ${lt_cv_apple_cc_single_mod+:} false; then :
7116   $as_echo_n "(cached) " >&6
7117 else
7118   lt_cv_apple_cc_single_mod=no
7119       if test -z "${LT_MULTI_MODULE}"; then
7120         # By default we will add the -single_module flag. You can override
7121         # by either setting the environment variable LT_MULTI_MODULE
7122         # non-empty at configure time, or by adding -multi_module to the
7123         # link flags.
7124         rm -rf libconftest.dylib*
7125         echo "int foo(void){return 1;}" > conftest.c
7126         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7127 -dynamiclib -Wl,-single_module conftest.c" >&5
7128         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7129           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7130         _lt_result=$?
7131         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7132           lt_cv_apple_cc_single_mod=yes
7133         else
7134           cat conftest.err >&5
7135         fi
7136         rm -rf libconftest.dylib*
7137         rm -f conftest.*
7138       fi
7139 fi
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7141 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7143 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7144 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7145   $as_echo_n "(cached) " >&6
7146 else
7147   lt_cv_ld_exported_symbols_list=no
7148       save_LDFLAGS=$LDFLAGS
7149       echo "_main" > conftest.sym
7150       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7151       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h.  */
7153 
7154 int
7155 main ()
7156 {
7157 
7158   ;
7159   return 0;
7160 }
7161 _ACEOF
7162 if ac_fn_c_try_link "$LINENO"; then :
7163   lt_cv_ld_exported_symbols_list=yes
7164 else
7165   lt_cv_ld_exported_symbols_list=no
7166 fi
7167 rm -f core conftest.err conftest.$ac_objext \
7168     conftest$ac_exeext conftest.$ac_ext
7169         LDFLAGS="$save_LDFLAGS"
7170 
7171 fi
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7173 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7174     case $host_os in
7175     rhapsody* | darwin1.[012])
7176       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7177     darwin1.*)
7178       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7179     darwin*) # darwin 5.x on
7180       # if running on 10.5 or later, the deployment target defaults
7181       # to the OS version, if on x86, and 10.4, the deployment
7182       # target defaults to 10.4. Don't you love it?
7183       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7184         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7185           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7186         10.[012]*)
7187           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7188         10.*)
7189           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7190       esac
7191     ;;
7192   esac
7193     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7194       _lt_dar_single_mod='$single_module'
7195     fi
7196     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7197       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7198     else
7199       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7200     fi
7201     if test "$DSYMUTIL" != ":"; then
7202       _lt_dsymutil='~$DSYMUTIL $lib || :'
7203     else
7204       _lt_dsymutil=
7205     fi
7206     ;;
7207   esac
7208 
7209 for ac_header in dlfcn.h
7210 do :
7211   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7212 "
7213 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7214   cat >>confdefs.h <<_ACEOF
7215 #define HAVE_DLFCN_H 1
7216 _ACEOF
7217 
7218 fi
7219 
7220 done
7221 
7222 
7223 
7224 # Set options
7225 
7226 
7227 
7228         enable_dlopen=no
7229 
7230 
7231   enable_win32_dll=no
7232 
7233 
7234             # Check whether --enable-shared was given.
7235 if test "${enable_shared+set}" = set; then :
7236   enableval=$enable_shared; p=${PACKAGE-default}
7237     case $enableval in
7238     yes) enable_shared=yes ;;
7239     no) enable_shared=no ;;
7240     *)
7241       enable_shared=no
7242       # Look at the argument we got.  We use all the common list separators.
7243       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7244       for pkg in $enableval; do
7245         IFS="$lt_save_ifs"
7246         if test "X$pkg" = "X$p"; then
7247           enable_shared=yes
7248         fi
7249       done
7250       IFS="$lt_save_ifs"
7251       ;;
7252     esac
7253 else
7254   enable_shared=yes
7255 fi
7256 
7257 
7258 
7259 
7260 
7261 
7262 
7263 
7264 
7265   # Check whether --enable-static was given.
7266 if test "${enable_static+set}" = set; then :
7267   enableval=$enable_static; p=${PACKAGE-default}
7268     case $enableval in
7269     yes) enable_static=yes ;;
7270     no) enable_static=no ;;
7271     *)
7272      enable_static=no
7273       # Look at the argument we got.  We use all the common list separators.
7274       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7275       for pkg in $enableval; do
7276         IFS="$lt_save_ifs"
7277         if test "X$pkg" = "X$p"; then
7278           enable_static=yes
7279         fi
7280       done
7281       IFS="$lt_save_ifs"
7282       ;;
7283     esac
7284 else
7285   enable_static=yes
7286 fi
7287 
7288 
7289 
7290 
7291 
7292 
7293 
7294 
7295 
7296 
7297 # Check whether --with-pic was given.
7298 if test "${with_pic+set}" = set; then :
7299   withval=$with_pic; pic_mode="$withval"
7300 else
7301   pic_mode=default
7302 fi
7303 
7304 
7305 test -z "$pic_mode" && pic_mode=default
7306 
7307 
7308 
7309 
7310 
7311 
7312 
7313   # Check whether --enable-fast-install was given.
7314 if test "${enable_fast_install+set}" = set; then :
7315   enableval=$enable_fast_install; p=${PACKAGE-default}
7316     case $enableval in
7317     yes) enable_fast_install=yes ;;
7318     no) enable_fast_install=no ;;
7319     *)
7320       enable_fast_install=no
7321       # Look at the argument we got.  We use all the common list separators.
7322       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7323       for pkg in $enableval; do
7324         IFS="$lt_save_ifs"
7325         if test "X$pkg" = "X$p"; then
7326           enable_fast_install=yes
7327         fi
7328       done
7329       IFS="$lt_save_ifs"
7330       ;;
7331     esac
7332 else
7333   enable_fast_install=yes
7334 fi
7335 
7336 
7337 
7338 
7339 
7340 
7341 
7342 
7343 
7344 
7345 
7346 # This can be used to rebuild libtool when needed
7347 LIBTOOL_DEPS="$ltmain"
7348 
7349 # Always use our own libtool.
7350 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7351 
7352 
7353 
7354 
7355 
7356 
7357 
7358 
7359 
7360 
7361 
7362 
7363 
7364 
7365 
7366 
7367 
7368 
7369 
7370 
7371 
7372 
7373 
7374 
7375 
7376 test -z "$LN_S" && LN_S="ln -s"
7377 
7378 
7379 
7380 
7381 
7382 
7383 
7384 
7385 
7386 
7387 
7388 
7389 
7390 
7391 if test -n "${ZSH_VERSION+set}" ; then
7392    setopt NO_GLOB_SUBST
7393 fi
7394 
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7396 $as_echo_n "checking for objdir... " >&6; }
7397 if ${lt_cv_objdir+:} false; then :
7398   $as_echo_n "(cached) " >&6
7399 else
7400   rm -f .libs 2>/dev/null
7401 mkdir .libs 2>/dev/null
7402 if test -d .libs; then
7403   lt_cv_objdir=.libs
7404 else
7405   # MS-DOS does not allow filenames that begin with a dot.
7406   lt_cv_objdir=_libs
7407 fi
7408 rmdir .libs 2>/dev/null
7409 fi
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7411 $as_echo "$lt_cv_objdir" >&6; }
7412 objdir=$lt_cv_objdir
7413 
7414 
7415 
7416 
7417 
7418 cat >>confdefs.h <<_ACEOF
7419 #define LT_OBJDIR "$lt_cv_objdir/"
7420 _ACEOF
7421 
7422 
7423 
7424 
7425 
7426 
7427 
7428 
7429 
7430 
7431 
7432 
7433 
7434 
7435 
7436 
7437 
7438 case $host_os in
7439 aix3*)
7440   # AIX sometimes has problems with the GCC collect2 program.  For some
7441   # reason, if we set the COLLECT_NAMES environment variable, the problems
7442   # vanish in a puff of smoke.
7443   if test "X${COLLECT_NAMES+set}" != Xset; then
7444     COLLECT_NAMES=
7445     export COLLECT_NAMES
7446   fi
7447   ;;
7448 esac
7449 
7450 # Sed substitution that helps us do robust quoting.  It backslashifies
7451 # metacharacters that are still active within double-quoted strings.
7452 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7453 
7454 # Same as above, but do not quote variable references.
7455 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7456 
7457 # Sed substitution to delay expansion of an escaped shell variable in a
7458 # double_quote_subst'ed string.
7459 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7460 
7461 # Sed substitution to delay expansion of an escaped single quote.
7462 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7463 
7464 # Sed substitution to avoid accidental globbing in evaled expressions
7465 no_glob_subst='s/\*/\\\*/g'
7466 
7467 # Global variables:
7468 ofile=libtool
7469 can_build_shared=yes
7470 
7471 # All known linkers require a `.a' archive for static linking (except MSVC,
7472 # which needs '.lib').
7473 libext=a
7474 
7475 with_gnu_ld="$lt_cv_prog_gnu_ld"
7476 
7477 old_CC="$CC"
7478 old_CFLAGS="$CFLAGS"
7479 
7480 # Set sane defaults for various variables
7481 test -z "$CC" && CC=cc
7482 test -z "$LTCC" && LTCC=$CC
7483 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7484 test -z "$LD" && LD=ld
7485 test -z "$ac_objext" && ac_objext=o
7486 
7487 for cc_temp in $compiler""; do
7488   case $cc_temp in
7489     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7490     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7491     \-*) ;;
7492     *) break;;
7493   esac
7494 done
7495 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7496 
7497 
7498 # Only perform the check for file, if the check method requires it
7499 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7500 case $deplibs_check_method in
7501 file_magic*)
7502   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7504 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7505 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7506   $as_echo_n "(cached) " >&6
7507 else
7508   case $MAGIC_CMD in
7509 [\\/*] |  ?:[\\/]*)
7510   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7511   ;;
7512 *)
7513   lt_save_MAGIC_CMD="$MAGIC_CMD"
7514   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7515   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7516   for ac_dir in $ac_dummy; do
7517     IFS="$lt_save_ifs"
7518     test -z "$ac_dir" && ac_dir=.
7519     if test -f $ac_dir/${ac_tool_prefix}file; then
7520       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7521       if test -n "$file_magic_test_file"; then
7522         case $deplibs_check_method in
7523         "file_magic "*)
7524           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7525           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7526           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7527             $EGREP "$file_magic_regex" > /dev/null; then
7528             :
7529           else
7530             cat <<_LT_EOF 1>&2
7531 
7532 *** Warning: the command libtool uses to detect shared libraries,
7533 *** $file_magic_cmd, produces output that libtool cannot recognize.
7534 *** The result is that libtool may fail to recognize shared libraries
7535 *** as such.  This will affect the creation of libtool libraries that
7536 *** depend on shared libraries, but programs linked with such libtool
7537 *** libraries will work regardless of this problem.  Nevertheless, you
7538 *** may want to report the problem to your system manager and/or to
7539 *** bug-libtool@gnu.org
7540 
7541 _LT_EOF
7542           fi ;;
7543         esac
7544       fi
7545       break
7546     fi
7547   done
7548   IFS="$lt_save_ifs"
7549   MAGIC_CMD="$lt_save_MAGIC_CMD"
7550   ;;
7551 esac
7552 fi
7553 
7554 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7555 if test -n "$MAGIC_CMD"; then
7556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7557 $as_echo "$MAGIC_CMD" >&6; }
7558 else
7559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 $as_echo "no" >&6; }
7561 fi
7562 
7563 
7564 
7565 
7566 
7567 if test -z "$lt_cv_path_MAGIC_CMD"; then
7568   if test -n "$ac_tool_prefix"; then
7569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7570 $as_echo_n "checking for file... " >&6; }
7571 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7572   $as_echo_n "(cached) " >&6
7573 else
7574   case $MAGIC_CMD in
7575 [\\/*] |  ?:[\\/]*)
7576   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7577   ;;
7578 *)
7579   lt_save_MAGIC_CMD="$MAGIC_CMD"
7580   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7581   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7582   for ac_dir in $ac_dummy; do
7583     IFS="$lt_save_ifs"
7584     test -z "$ac_dir" && ac_dir=.
7585     if test -f $ac_dir/file; then
7586       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7587       if test -n "$file_magic_test_file"; then
7588         case $deplibs_check_method in
7589         "file_magic "*)
7590           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7591           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7592           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7593             $EGREP "$file_magic_regex" > /dev/null; then
7594             :
7595           else
7596             cat <<_LT_EOF 1>&2
7597 
7598 *** Warning: the command libtool uses to detect shared libraries,
7599 *** $file_magic_cmd, produces output that libtool cannot recognize.
7600 *** The result is that libtool may fail to recognize shared libraries
7601 *** as such.  This will affect the creation of libtool libraries that
7602 *** depend on shared libraries, but programs linked with such libtool
7603 *** libraries will work regardless of this problem.  Nevertheless, you
7604 *** may want to report the problem to your system manager and/or to
7605 *** bug-libtool@gnu.org
7606 
7607 _LT_EOF
7608           fi ;;
7609         esac
7610       fi
7611       break
7612     fi
7613   done
7614   IFS="$lt_save_ifs"
7615   MAGIC_CMD="$lt_save_MAGIC_CMD"
7616   ;;
7617 esac
7618 fi
7619 
7620 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7621 if test -n "$MAGIC_CMD"; then
7622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7623 $as_echo "$MAGIC_CMD" >&6; }
7624 else
7625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7627 fi
7628 
7629 
7630   else
7631     MAGIC_CMD=:
7632   fi
7633 fi
7634 
7635   fi
7636   ;;
7637 esac
7638 
7639 # Use C for the default configuration in the libtool script
7640 
7641 lt_save_CC="$CC"
7642 ac_ext=c
7643 ac_cpp='$CPP $CPPFLAGS'
7644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7647 
7648 
7649 # Source file extension for C test sources.
7650 ac_ext=c
7651 
7652 # Object file extension for compiled C test sources.
7653 objext=o
7654 objext=$objext
7655 
7656 # Code to be used in simple compile tests
7657 lt_simple_compile_test_code="int some_variable = 0;"
7658 
7659 # Code to be used in simple link tests
7660 lt_simple_link_test_code='int main(){return(0);}'
7661 
7662 
7663 
7664 
7665 
7666 
7667 
7668 # If no C compiler was specified, use CC.
7669 LTCC=${LTCC-"$CC"}
7670 
7671 # If no C compiler flags were specified, use CFLAGS.
7672 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7673 
7674 # Allow CC to be a program name with arguments.
7675 compiler=$CC
7676 
7677 # Save the default compiler, since it gets overwritten when the other
7678 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7679 compiler_DEFAULT=$CC
7680 
7681 # save warnings/boilerplate of simple test code
7682 ac_outfile=conftest.$ac_objext
7683 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7684 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7685 _lt_compiler_boilerplate=`cat conftest.err`
7686 $RM conftest*
7687 
7688 ac_outfile=conftest.$ac_objext
7689 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7690 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7691 _lt_linker_boilerplate=`cat conftest.err`
7692 $RM -r conftest*
7693 
7694 
7695 if test -n "$compiler"; then
7696 
7697 lt_prog_compiler_no_builtin_flag=
7698 
7699 if test "$GCC" = yes; then
7700   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7701 
7702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7703 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7704 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7705   $as_echo_n "(cached) " >&6
7706 else
7707   lt_cv_prog_compiler_rtti_exceptions=no
7708    ac_outfile=conftest.$ac_objext
7709    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7710    lt_compiler_flag="-fno-rtti -fno-exceptions"
7711    # Insert the option either (1) after the last *FLAGS variable, or
7712    # (2) before a word containing "conftest.", or (3) at the end.
7713    # Note that $ac_compile itself does not contain backslashes and begins
7714    # with a dollar sign (not a hyphen), so the echo should work correctly.
7715    # The option is referenced via a variable to avoid confusing sed.
7716    lt_compile=`echo "$ac_compile" | $SED \
7717    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7718    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7719    -e 's:$: $lt_compiler_flag:'`
7720    (eval echo "\"\$as_me:7720: $lt_compile\"" >&5)
7721    (eval "$lt_compile" 2>conftest.err)
7722    ac_status=$?
7723    cat conftest.err >&5
7724    echo "$as_me:7724: \$? = $ac_status" >&5
7725    if (exit $ac_status) && test -s "$ac_outfile"; then
7726      # The compiler can only warn and ignore the option if not recognized
7727      # So say no if there are warnings other than the usual output.
7728      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7729      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7730      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7731        lt_cv_prog_compiler_rtti_exceptions=yes
7732      fi
7733    fi
7734    $RM conftest*
7735 
7736 fi
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7738 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7739 
7740 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7741     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7742 else
7743     :
7744 fi
7745 
7746 fi
7747 
7748 
7749 
7750 
7751 
7752 
7753   lt_prog_compiler_wl=
7754 lt_prog_compiler_pic=
7755 lt_prog_compiler_static=
7756 
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7758 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7759 
7760   if test "$GCC" = yes; then
7761     lt_prog_compiler_wl='-Wl,'
7762     lt_prog_compiler_static='-static'
7763 
7764     case $host_os in
7765       aix*)
7766       # All AIX code is PIC.
7767       if test "$host_cpu" = ia64; then
7768         # AIX 5 now supports IA64 processor
7769         lt_prog_compiler_static='-Bstatic'
7770       fi
7771       ;;
7772 
7773     amigaos*)
7774       case $host_cpu in
7775       powerpc)
7776             # see comment about AmigaOS4 .so support
7777             lt_prog_compiler_pic='-fPIC'
7778         ;;
7779       m68k)
7780             # FIXME: we need at least 68020 code to build shared libraries, but
7781             # adding the `-m68020' flag to GCC prevents building anything better,
7782             # like `-m68040'.
7783             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7784         ;;
7785       esac
7786       ;;
7787 
7788     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7789       # PIC is the default for these OSes.
7790       ;;
7791 
7792     mingw* | cygwin* | pw32* | os2* | cegcc*)
7793       # This hack is so that the source file can tell whether it is being
7794       # built for inclusion in a dll (and should export symbols for example).
7795       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7796       # (--disable-auto-import) libraries
7797       lt_prog_compiler_pic='-DDLL_EXPORT'
7798       ;;
7799 
7800     darwin* | rhapsody*)
7801       # PIC is the default on this platform
7802       # Common symbols not allowed in MH_DYLIB files
7803       lt_prog_compiler_pic='-fno-common'
7804       ;;
7805 
7806     hpux*)
7807       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7808       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7809       # sets the default TLS model and affects inlining.
7810       case $host_cpu in
7811       hppa*64*)
7812         # +Z the default
7813         ;;
7814       *)
7815         lt_prog_compiler_pic='-fPIC'
7816         ;;
7817       esac
7818       ;;
7819 
7820     interix[3-9]*)
7821       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7822       # Instead, we relocate shared libraries at runtime.
7823       ;;
7824 
7825     msdosdjgpp*)
7826       # Just because we use GCC doesn't mean we suddenly get shared libraries
7827       # on systems that don't support them.
7828       lt_prog_compiler_can_build_shared=no
7829       enable_shared=no
7830       ;;
7831 
7832     *nto* | *qnx*)
7833       # QNX uses GNU C++, but need to define -shared option too, otherwise
7834       # it will coredump.
7835       lt_prog_compiler_pic='-fPIC -shared'
7836       ;;
7837 
7838     sysv4*MP*)
7839       if test -d /usr/nec; then
7840         lt_prog_compiler_pic=-Kconform_pic
7841       fi
7842       ;;
7843 
7844     *)
7845       lt_prog_compiler_pic='-fPIC'
7846       ;;
7847     esac
7848   else
7849     # PORTME Check for flag to pass linker flags through the system compiler.
7850     case $host_os in
7851     aix*)
7852       lt_prog_compiler_wl='-Wl,'
7853       if test "$host_cpu" = ia64; then
7854         # AIX 5 now supports IA64 processor
7855         lt_prog_compiler_static='-Bstatic'
7856       else
7857         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7858       fi
7859       ;;
7860 
7861     mingw* | cygwin* | pw32* | os2* | cegcc*)
7862       # This hack is so that the source file can tell whether it is being
7863       # built for inclusion in a dll (and should export symbols for example).
7864       lt_prog_compiler_pic='-DDLL_EXPORT'
7865       ;;
7866 
7867     hpux9* | hpux10* | hpux11*)
7868       lt_prog_compiler_wl='-Wl,'
7869       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7870       # not for PA HP-UX.
7871       case $host_cpu in
7872       hppa*64*|ia64*)
7873         # +Z the default
7874         ;;
7875       *)
7876         lt_prog_compiler_pic='+Z'
7877         ;;
7878       esac
7879       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7880       lt_prog_compiler_static='${wl}-a ${wl}archive'
7881       ;;
7882 
7883     irix5* | irix6* | nonstopux*)
7884       lt_prog_compiler_wl='-Wl,'
7885       # PIC (with -KPIC) is the default.
7886       lt_prog_compiler_static='-non_shared'
7887       ;;
7888 
7889     linux* | k*bsd*-gnu)
7890       case $cc_basename in
7891       # old Intel for x86_64 which still supported -KPIC.
7892       ecc*)
7893         lt_prog_compiler_wl='-Wl,'
7894         lt_prog_compiler_pic='-KPIC'
7895         lt_prog_compiler_static='-static'
7896         ;;
7897       # icc used to be incompatible with GCC.
7898       # ICC 10 doesn't accept -KPIC any more.
7899       icc* | ifort*)
7900         lt_prog_compiler_wl='-Wl,'
7901         lt_prog_compiler_pic='-fPIC'
7902         lt_prog_compiler_static='-static'
7903         ;;
7904       # Lahey Fortran 8.1.
7905       lf95*)
7906         lt_prog_compiler_wl='-Wl,'
7907         lt_prog_compiler_pic='--shared'
7908         lt_prog_compiler_static='--static'
7909         ;;
7910       pgcc* | pgf77* | pgf90* | pgf95*)
7911         # Portland Group compilers (*not* the Pentium gcc compiler,
7912         # which looks to be a dead project)
7913         lt_prog_compiler_wl='-Wl,'
7914         lt_prog_compiler_pic='-fpic'
7915         lt_prog_compiler_static='-Bstatic'
7916         ;;
7917       ccc*)
7918         lt_prog_compiler_wl='-Wl,'
7919         # All Alpha code is PIC.
7920         lt_prog_compiler_static='-non_shared'
7921         ;;
7922       xl*)
7923         # IBM XL C 8.0/Fortran 10.1 on PPC
7924         lt_prog_compiler_wl='-Wl,'
7925         lt_prog_compiler_pic='-qpic'
7926         lt_prog_compiler_static='-qstaticlink'
7927         ;;
7928       *)
7929         case `$CC -V 2>&1 | sed 5q` in
7930         *Sun\ C*)
7931           # Sun C 5.9
7932           lt_prog_compiler_pic='-KPIC'
7933           lt_prog_compiler_static='-Bstatic'
7934           lt_prog_compiler_wl='-Wl,'
7935           ;;
7936         *Sun\ F*)
7937           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7938           lt_prog_compiler_pic='-KPIC'
7939           lt_prog_compiler_static='-Bstatic'
7940           lt_prog_compiler_wl=''
7941           ;;
7942         esac
7943         ;;
7944       esac
7945       ;;
7946 
7947     newsos6)
7948       lt_prog_compiler_pic='-KPIC'
7949       lt_prog_compiler_static='-Bstatic'
7950       ;;
7951 
7952     *nto* | *qnx*)
7953       # QNX uses GNU C++, but need to define -shared option too, otherwise
7954       # it will coredump.
7955       lt_prog_compiler_pic='-fPIC -shared'
7956       ;;
7957 
7958     osf3* | osf4* | osf5*)
7959       lt_prog_compiler_wl='-Wl,'
7960       # All OSF/1 code is PIC.
7961       lt_prog_compiler_static='-non_shared'
7962       ;;
7963 
7964     rdos*)
7965       lt_prog_compiler_static='-non_shared'
7966       ;;
7967 
7968     solaris*)
7969       lt_prog_compiler_pic='-KPIC'
7970       lt_prog_compiler_static='-Bstatic'
7971       case $cc_basename in
7972       f77* | f90* | f95*)
7973         lt_prog_compiler_wl='-Qoption ld ';;
7974       *)
7975         lt_prog_compiler_wl='-Wl,';;
7976       esac
7977       ;;
7978 
7979     sunos4*)
7980       lt_prog_compiler_wl='-Qoption ld '
7981       lt_prog_compiler_pic='-PIC'
7982       lt_prog_compiler_static='-Bstatic'
7983       ;;
7984 
7985     sysv4 | sysv4.2uw2* | sysv4.3*)
7986       lt_prog_compiler_wl='-Wl,'
7987       lt_prog_compiler_pic='-KPIC'
7988       lt_prog_compiler_static='-Bstatic'
7989       ;;
7990 
7991     sysv4*MP*)
7992       if test -d /usr/nec ;then
7993         lt_prog_compiler_pic='-Kconform_pic'
7994         lt_prog_compiler_static='-Bstatic'
7995       fi
7996       ;;
7997 
7998     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7999       lt_prog_compiler_wl='-Wl,'
8000       lt_prog_compiler_pic='-KPIC'
8001       lt_prog_compiler_static='-Bstatic'
8002       ;;
8003 
8004     unicos*)
8005       lt_prog_compiler_wl='-Wl,'
8006       lt_prog_compiler_can_build_shared=no
8007       ;;
8008 
8009     uts4*)
8010       lt_prog_compiler_pic='-pic'
8011       lt_prog_compiler_static='-Bstatic'
8012       ;;
8013 
8014     *)
8015       lt_prog_compiler_can_build_shared=no
8016       ;;
8017     esac
8018   fi
8019 
8020 case $host_os in
8021   # For platforms which do not support PIC, -DPIC is meaningless:
8022   *djgpp*)
8023     lt_prog_compiler_pic=
8024     ;;
8025   *)
8026     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8027     ;;
8028 esac
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8030 $as_echo "$lt_prog_compiler_pic" >&6; }
8031 
8032 
8033 
8034 
8035 
8036 
8037 #
8038 # Check to make sure the PIC flag actually works.
8039 #
8040 if test -n "$lt_prog_compiler_pic"; then
8041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8042 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8043 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8044   $as_echo_n "(cached) " >&6
8045 else
8046   lt_cv_prog_compiler_pic_works=no
8047    ac_outfile=conftest.$ac_objext
8048    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8049    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8050    # Insert the option either (1) after the last *FLAGS variable, or
8051    # (2) before a word containing "conftest.", or (3) at the end.
8052    # Note that $ac_compile itself does not contain backslashes and begins
8053    # with a dollar sign (not a hyphen), so the echo should work correctly.
8054    # The option is referenced via a variable to avoid confusing sed.
8055    lt_compile=`echo "$ac_compile" | $SED \
8056    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8057    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8058    -e 's:$: $lt_compiler_flag:'`
8059    (eval echo "\"\$as_me:8059: $lt_compile\"" >&5)
8060    (eval "$lt_compile" 2>conftest.err)
8061    ac_status=$?
8062    cat conftest.err >&5
8063    echo "$as_me:8063: \$? = $ac_status" >&5
8064    if (exit $ac_status) && test -s "$ac_outfile"; then
8065      # The compiler can only warn and ignore the option if not recognized
8066      # So say no if there are warnings other than the usual output.
8067      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8068      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8069      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8070        lt_cv_prog_compiler_pic_works=yes
8071      fi
8072    fi
8073    $RM conftest*
8074 
8075 fi
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8077 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8078 
8079 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8080     case $lt_prog_compiler_pic in
8081      "" | " "*) ;;
8082      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8083      esac
8084 else
8085     lt_prog_compiler_pic=
8086      lt_prog_compiler_can_build_shared=no
8087 fi
8088 
8089 fi
8090 
8091 
8092 
8093 
8094 
8095 
8096 #
8097 # Check to make sure the static flag actually works.
8098 #
8099 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8101 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8102 if ${lt_cv_prog_compiler_static_works+:} false; then :
8103   $as_echo_n "(cached) " >&6
8104 else
8105   lt_cv_prog_compiler_static_works=no
8106    save_LDFLAGS="$LDFLAGS"
8107    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8108    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8109    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8110      # The linker can only warn and ignore the option if not recognized
8111      # So say no if there are warnings
8112      if test -s conftest.err; then
8113        # Append any errors to the config.log.
8114        cat conftest.err 1>&5
8115        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8116        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8117        if diff conftest.exp conftest.er2 >/dev/null; then
8118          lt_cv_prog_compiler_static_works=yes
8119        fi
8120      else
8121        lt_cv_prog_compiler_static_works=yes
8122      fi
8123    fi
8124    $RM -r conftest*
8125    LDFLAGS="$save_LDFLAGS"
8126 
8127 fi
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8129 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8130 
8131 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8132     :
8133 else
8134     lt_prog_compiler_static=
8135 fi
8136 
8137 
8138 
8139 
8140 
8141 
8142 
8143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8144 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8145 if ${lt_cv_prog_compiler_c_o+:} false; then :
8146   $as_echo_n "(cached) " >&6
8147 else
8148   lt_cv_prog_compiler_c_o=no
8149    $RM -r conftest 2>/dev/null
8150    mkdir conftest
8151    cd conftest
8152    mkdir out
8153    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8154 
8155    lt_compiler_flag="-o out/conftest2.$ac_objext"
8156    # Insert the option either (1) after the last *FLAGS variable, or
8157    # (2) before a word containing "conftest.", or (3) at the end.
8158    # Note that $ac_compile itself does not contain backslashes and begins
8159    # with a dollar sign (not a hyphen), so the echo should work correctly.
8160    lt_compile=`echo "$ac_compile" | $SED \
8161    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8162    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8163    -e 's:$: $lt_compiler_flag:'`
8164    (eval echo "\"\$as_me:8164: $lt_compile\"" >&5)
8165    (eval "$lt_compile" 2>out/conftest.err)
8166    ac_status=$?
8167    cat out/conftest.err >&5
8168    echo "$as_me:8168: \$? = $ac_status" >&5
8169    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8170    then
8171      # The compiler can only warn and ignore the option if not recognized
8172      # So say no if there are warnings
8173      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8174      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8175      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8176        lt_cv_prog_compiler_c_o=yes
8177      fi
8178    fi
8179    chmod u+w . 2>&5
8180    $RM conftest*
8181    # SGI C++ compiler will create directory out/ii_files/ for
8182    # template instantiation
8183    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8184    $RM out/* && rmdir out
8185    cd ..
8186    $RM -r conftest
8187    $RM conftest*
8188 
8189 fi
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8191 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8192 
8193 
8194 
8195 
8196 
8197 
8198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8199 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8200 if ${lt_cv_prog_compiler_c_o+:} false; then :
8201   $as_echo_n "(cached) " >&6
8202 else
8203   lt_cv_prog_compiler_c_o=no
8204    $RM -r conftest 2>/dev/null
8205    mkdir conftest
8206    cd conftest
8207    mkdir out
8208    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8209 
8210    lt_compiler_flag="-o out/conftest2.$ac_objext"
8211    # Insert the option either (1) after the last *FLAGS variable, or
8212    # (2) before a word containing "conftest.", or (3) at the end.
8213    # Note that $ac_compile itself does not contain backslashes and begins
8214    # with a dollar sign (not a hyphen), so the echo should work correctly.
8215    lt_compile=`echo "$ac_compile" | $SED \
8216    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8217    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8218    -e 's:$: $lt_compiler_flag:'`
8219    (eval echo "\"\$as_me:8219: $lt_compile\"" >&5)
8220    (eval "$lt_compile" 2>out/conftest.err)
8221    ac_status=$?
8222    cat out/conftest.err >&5
8223    echo "$as_me:8223: \$? = $ac_status" >&5
8224    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8225    then
8226      # The compiler can only warn and ignore the option if not recognized
8227      # So say no if there are warnings
8228      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8229      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8230      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8231        lt_cv_prog_compiler_c_o=yes
8232      fi
8233    fi
8234    chmod u+w . 2>&5
8235    $RM conftest*
8236    # SGI C++ compiler will create directory out/ii_files/ for
8237    # template instantiation
8238    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8239    $RM out/* && rmdir out
8240    cd ..
8241    $RM -r conftest
8242    $RM conftest*
8243 
8244 fi
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8246 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8247 
8248 
8249 
8250 
8251 hard_links="nottested"
8252 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8253   # do not overwrite the value of need_locks provided by the user
8254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8255 $as_echo_n "checking if we can lock with hard links... " >&6; }
8256   hard_links=yes
8257   $RM conftest*
8258   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8259   touch conftest.a
8260   ln conftest.a conftest.b 2>&5 || hard_links=no
8261   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8263 $as_echo "$hard_links" >&6; }
8264   if test "$hard_links" = no; then
8265     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8266 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8267     need_locks=warn
8268   fi
8269 else
8270   need_locks=no
8271 fi
8272 
8273 
8274 
8275 
8276 
8277 
8278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8279 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8280 
8281   runpath_var=
8282   allow_undefined_flag=
8283   always_export_symbols=no
8284   archive_cmds=
8285   archive_expsym_cmds=
8286   compiler_needs_object=no
8287   enable_shared_with_static_runtimes=no
8288   export_dynamic_flag_spec=
8289   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8290   hardcode_automatic=no
8291   hardcode_direct=no
8292   hardcode_direct_absolute=no
8293   hardcode_libdir_flag_spec=
8294   hardcode_libdir_flag_spec_ld=
8295   hardcode_libdir_separator=
8296   hardcode_minus_L=no
8297   hardcode_shlibpath_var=unsupported
8298   inherit_rpath=no
8299   link_all_deplibs=unknown
8300   module_cmds=
8301   module_expsym_cmds=
8302   old_archive_from_new_cmds=
8303   old_archive_from_expsyms_cmds=
8304   thread_safe_flag_spec=
8305   whole_archive_flag_spec=
8306   # include_expsyms should be a list of space-separated symbols to be *always*
8307   # included in the symbol list
8308   include_expsyms=
8309   # exclude_expsyms can be an extended regexp of symbols to exclude
8310   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8311   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8312   # as well as any symbol that contains `d'.
8313   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8314   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8315   # platforms (ab)use it in PIC code, but their linkers get confused if
8316   # the symbol is explicitly referenced.  Since portable code cannot
8317   # rely on this symbol name, it's probably fine to never include it in
8318   # preloaded symbol tables.
8319   # Exclude shared library initialization/finalization symbols.
8320   extract_expsyms_cmds=
8321 
8322   case $host_os in
8323   cygwin* | mingw* | pw32* | cegcc*)
8324     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8325     # When not using gcc, we currently assume that we are using
8326     # Microsoft Visual C++.
8327     if test "$GCC" != yes; then
8328       with_gnu_ld=no
8329     fi
8330     ;;
8331   interix*)
8332     # we just hope/assume this is gcc and not c89 (= MSVC++)
8333     with_gnu_ld=yes
8334     ;;
8335   openbsd*)
8336     with_gnu_ld=no
8337     ;;
8338   esac
8339 
8340   ld_shlibs=yes
8341   if test "$with_gnu_ld" = yes; then
8342     # If archive_cmds runs LD, not CC, wlarc should be empty
8343     wlarc='${wl}'
8344 
8345     # Set some defaults for GNU ld with shared library support. These
8346     # are reset later if shared libraries are not supported. Putting them
8347     # here allows them to be overridden if necessary.
8348     runpath_var=LD_RUN_PATH
8349     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8350     export_dynamic_flag_spec='${wl}--export-dynamic'
8351     # ancient GNU ld didn't support --whole-archive et. al.
8352     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8353       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8354     else
8355       whole_archive_flag_spec=
8356     fi
8357     supports_anon_versioning=no
8358     case `$LD -v 2>&1` in
8359       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8360       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8361       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8362       *\ 2.11.*) ;; # other 2.11 versions
8363       *) supports_anon_versioning=yes ;;
8364     esac
8365 
8366     # See if GNU ld supports shared libraries.
8367     case $host_os in
8368     aix[3-9]*)
8369       # On AIX/PPC, the GNU linker is very broken
8370       if test "$host_cpu" != ia64; then
8371         ld_shlibs=no
8372         cat <<_LT_EOF 1>&2
8373 
8374 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8375 *** to be unable to reliably create shared libraries on AIX.
8376 *** Therefore, libtool is disabling shared libraries support.  If you
8377 *** really care for shared libraries, you may want to modify your PATH
8378 *** so that a non-GNU linker is found, and then restart.
8379 
8380 _LT_EOF
8381       fi
8382       ;;
8383 
8384     amigaos*)
8385       case $host_cpu in
8386       powerpc)
8387             # see comment about AmigaOS4 .so support
8388             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8389             archive_expsym_cmds=''
8390         ;;
8391       m68k)
8392             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)'
8393             hardcode_libdir_flag_spec='-L$libdir'
8394             hardcode_minus_L=yes
8395         ;;
8396       esac
8397       ;;
8398 
8399     beos*)
8400       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8401         allow_undefined_flag=unsupported
8402         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8403         # support --undefined.  This deserves some investigation.  FIXME
8404         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8405       else
8406         ld_shlibs=no
8407       fi
8408       ;;
8409 
8410     cygwin* | mingw* | pw32* | cegcc*)
8411       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8412       # as there is no search path for DLLs.
8413       hardcode_libdir_flag_spec='-L$libdir'
8414       allow_undefined_flag=unsupported
8415       always_export_symbols=no
8416       enable_shared_with_static_runtimes=yes
8417       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8418 
8419       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8420         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8421         # If the export-symbols file already is a .def file (1st line
8422         # is EXPORTS), use it as is; otherwise, prepend...
8423         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8424           cp $export_symbols $output_objdir/$soname.def;
8425         else
8426           echo EXPORTS > $output_objdir/$soname.def;
8427           cat $export_symbols >> $output_objdir/$soname.def;
8428         fi~
8429         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8430       else
8431         ld_shlibs=no
8432       fi
8433       ;;
8434 
8435     interix[3-9]*)
8436       hardcode_direct=no
8437       hardcode_shlibpath_var=no
8438       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8439       export_dynamic_flag_spec='${wl}-E'
8440       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8441       # Instead, shared libraries are loaded at an image base (0x10000000 by
8442       # default) and relocated if they conflict, which is a slow very memory
8443       # consuming and fragmenting process.  To avoid this, we pick a random,
8444       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8445       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8446       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8447       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'
8448       ;;
8449 
8450     gnu* | linux* | tpf* | k*bsd*-gnu)
8451       tmp_diet=no
8452       if test "$host_os" = linux-dietlibc; then
8453         case $cc_basename in
8454           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8455         esac
8456       fi
8457       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8458          && test "$tmp_diet" = no
8459       then
8460         tmp_addflag=
8461         tmp_sharedflag='-shared'
8462         case $cc_basename,$host_cpu in
8463         pgcc*)                          # Portland Group C compiler
8464           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'
8465           tmp_addflag=' $pic_flag'
8466           ;;
8467         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8468           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'
8469           tmp_addflag=' $pic_flag -Mnomain' ;;
8470         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8471           tmp_addflag=' -i_dynamic' ;;
8472         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8473           tmp_addflag=' -i_dynamic -nofor_main' ;;
8474         ifc* | ifort*)                  # Intel Fortran compiler
8475           tmp_addflag=' -nofor_main' ;;
8476         lf95*)                          # Lahey Fortran 8.1
8477           whole_archive_flag_spec=
8478           tmp_sharedflag='--shared' ;;
8479         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8480           tmp_sharedflag='-qmkshrobj'
8481           tmp_addflag= ;;
8482         esac
8483         case `$CC -V 2>&1 | sed 5q` in
8484         *Sun\ C*)                       # Sun C 5.9
8485           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'
8486           compiler_needs_object=yes
8487           tmp_sharedflag='-G' ;;
8488         *Sun\ F*)                       # Sun Fortran 8.3
8489           tmp_sharedflag='-G' ;;
8490         esac
8491         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8492 
8493         if test "x$supports_anon_versioning" = xyes; then
8494           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8495             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8496             echo "local: *; };" >> $output_objdir/$libname.ver~
8497             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8498         fi
8499 
8500         case $cc_basename in
8501         xlf*)
8502           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8503           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8504           hardcode_libdir_flag_spec=
8505           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8506           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8507           if test "x$supports_anon_versioning" = xyes; then
8508             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8509               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8510               echo "local: *; };" >> $output_objdir/$libname.ver~
8511               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8512           fi
8513           ;;
8514         esac
8515       else
8516         ld_shlibs=no
8517       fi
8518       ;;
8519 
8520     netbsd*)
8521       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8522         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8523         wlarc=
8524       else
8525         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8526         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8527       fi
8528       ;;
8529 
8530     solaris*)
8531       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8532         ld_shlibs=no
8533         cat <<_LT_EOF 1>&2
8534 
8535 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8536 *** create shared libraries on Solaris systems.  Therefore, libtool
8537 *** is disabling shared libraries support.  We urge you to upgrade GNU
8538 *** binutils to release 2.9.1 or newer.  Another option is to modify
8539 *** your PATH or compiler configuration so that the native linker is
8540 *** used, and then restart.
8541 
8542 _LT_EOF
8543       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8544         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8545         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8546       else
8547         ld_shlibs=no
8548       fi
8549       ;;
8550 
8551     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8552       case `$LD -v 2>&1` in
8553         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8554         ld_shlibs=no
8555         cat <<_LT_EOF 1>&2
8556 
8557 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8558 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8559 *** is disabling shared libraries support.  We urge you to upgrade GNU
8560 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8561 *** your PATH or compiler configuration so that the native linker is
8562 *** used, and then restart.
8563 
8564 _LT_EOF
8565         ;;
8566         *)
8567           # For security reasons, it is highly recommended that you always
8568           # use absolute paths for naming shared libraries, and exclude the
8569           # DT_RUNPATH tag from executables and libraries.  But doing so
8570           # requires that you compile everything twice, which is a pain.
8571           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8572             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8573             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8574             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8575           else
8576             ld_shlibs=no
8577           fi
8578         ;;
8579       esac
8580       ;;
8581 
8582     sunos4*)
8583       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8584       wlarc=
8585       hardcode_direct=yes
8586       hardcode_shlibpath_var=no
8587       ;;
8588 
8589     *)
8590       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8591         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8592         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8593       else
8594         ld_shlibs=no
8595       fi
8596       ;;
8597     esac
8598 
8599     if test "$ld_shlibs" = no; then
8600       runpath_var=
8601       hardcode_libdir_flag_spec=
8602       export_dynamic_flag_spec=
8603       whole_archive_flag_spec=
8604     fi
8605   else
8606     # PORTME fill in a description of your system's linker (not GNU ld)
8607     case $host_os in
8608     aix3*)
8609       allow_undefined_flag=unsupported
8610       always_export_symbols=yes
8611       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'
8612       # Note: this linker hardcodes the directories in LIBPATH if there
8613       # are no directories specified by -L.
8614       hardcode_minus_L=yes
8615       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8616         # Neither direct hardcoding nor static linking is supported with a
8617         # broken collect2.
8618         hardcode_direct=unsupported
8619       fi
8620       ;;
8621 
8622     aix[4-9]*)
8623       if test "$host_cpu" = ia64; then
8624         # On IA64, the linker does run time linking by default, so we don't
8625         # have to do anything special.
8626         aix_use_runtimelinking=no
8627         exp_sym_flag='-Bexport'
8628         no_entry_flag=""
8629       else
8630         # If we're using GNU nm, then we don't want the "-C" option.
8631         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8632         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8633           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'
8634         else
8635           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'
8636         fi
8637         aix_use_runtimelinking=no
8638 
8639         # Test if we are trying to use run time linking or normal
8640         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8641         # need to do runtime linking.
8642         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8643           for ld_flag in $LDFLAGS; do
8644           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8645             aix_use_runtimelinking=yes
8646             break
8647           fi
8648           done
8649           ;;
8650         esac
8651 
8652         exp_sym_flag='-bexport'
8653         no_entry_flag='-bnoentry'
8654       fi
8655 
8656       # When large executables or shared objects are built, AIX ld can
8657       # have problems creating the table of contents.  If linking a library
8658       # or program results in "error TOC overflow" add -mminimal-toc to
8659       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8660       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8661 
8662       archive_cmds=''
8663       hardcode_direct=yes
8664       hardcode_direct_absolute=yes
8665       hardcode_libdir_separator=':'
8666       link_all_deplibs=yes
8667       file_list_spec='${wl}-f,'
8668 
8669       if test "$GCC" = yes; then
8670         case $host_os in aix4.[012]|aix4.[012].*)
8671         # We only want to do this on AIX 4.2 and lower, the check
8672         # below for broken collect2 doesn't work under 4.3+
8673           collect2name=`${CC} -print-prog-name=collect2`
8674           if test -f "$collect2name" &&
8675            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8676           then
8677           # We have reworked collect2
8678           :
8679           else
8680           # We have old collect2
8681           hardcode_direct=unsupported
8682           # It fails to find uninstalled libraries when the uninstalled
8683           # path is not listed in the libpath.  Setting hardcode_minus_L
8684           # to unsupported forces relinking
8685           hardcode_minus_L=yes
8686           hardcode_libdir_flag_spec='-L$libdir'
8687           hardcode_libdir_separator=
8688           fi
8689           ;;
8690         esac
8691         shared_flag='-shared'
8692         if test "$aix_use_runtimelinking" = yes; then
8693           shared_flag="$shared_flag "'${wl}-G'
8694         fi
8695       else
8696         # not using gcc
8697         if test "$host_cpu" = ia64; then
8698         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8699         # chokes on -Wl,-G. The following line is correct:
8700           shared_flag='-G'
8701         else
8702           if test "$aix_use_runtimelinking" = yes; then
8703             shared_flag='${wl}-G'
8704           else
8705             shared_flag='${wl}-bM:SRE'
8706           fi
8707         fi
8708       fi
8709 
8710       export_dynamic_flag_spec='${wl}-bexpall'
8711       # It seems that -bexpall does not export symbols beginning with
8712       # underscore (_), so it is better to generate a list of symbols to export.
8713       always_export_symbols=yes
8714       if test "$aix_use_runtimelinking" = yes; then
8715         # Warning - without using the other runtime loading flags (-brtl),
8716         # -berok will link without error, but may produce a broken library.
8717         allow_undefined_flag='-berok'
8718         # Determine the default libpath from the value encoded in an
8719         # empty executable.
8720         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h.  */
8722 
8723 int
8724 main ()
8725 {
8726 
8727   ;
8728   return 0;
8729 }
8730 _ACEOF
8731 if ac_fn_c_try_link "$LINENO"; then :
8732 
8733 lt_aix_libpath_sed='
8734     /Import File Strings/,/^$/ {
8735         /^0/ {
8736             s/^0  *\(.*\)$/\1/
8737             p
8738         }
8739     }'
8740 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8741 # Check for a 64-bit object if we didn't find anything.
8742 if test -z "$aix_libpath"; then
8743   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8744 fi
8745 fi
8746 rm -f core conftest.err conftest.$ac_objext \
8747     conftest$ac_exeext conftest.$ac_ext
8748 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8749 
8750         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8751         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"
8752       else
8753         if test "$host_cpu" = ia64; then
8754           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8755           allow_undefined_flag="-z nodefs"
8756           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"
8757         else
8758          # Determine the default libpath from the value encoded in an
8759          # empty executable.
8760          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h.  */
8762 
8763 int
8764 main ()
8765 {
8766 
8767   ;
8768   return 0;
8769 }
8770 _ACEOF
8771 if ac_fn_c_try_link "$LINENO"; then :
8772 
8773 lt_aix_libpath_sed='
8774     /Import File Strings/,/^$/ {
8775         /^0/ {
8776             s/^0  *\(.*\)$/\1/
8777             p
8778         }
8779     }'
8780 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8781 # Check for a 64-bit object if we didn't find anything.
8782 if test -z "$aix_libpath"; then
8783   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8784 fi
8785 fi
8786 rm -f core conftest.err conftest.$ac_objext \
8787     conftest$ac_exeext conftest.$ac_ext
8788 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8789 
8790          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8791           # Warning - without using the other run time loading flags,
8792           # -berok will link without error, but may produce a broken library.
8793           no_undefined_flag=' ${wl}-bernotok'
8794           allow_undefined_flag=' ${wl}-berok'
8795           # Exported symbols can be pulled into shared objects from archives
8796           whole_archive_flag_spec='$convenience'
8797           archive_cmds_need_lc=yes
8798           # This is similar to how AIX traditionally builds its shared libraries.
8799           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'
8800         fi
8801       fi
8802       ;;
8803 
8804     amigaos*)
8805       case $host_cpu in
8806       powerpc)
8807             # see comment about AmigaOS4 .so support
8808             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8809             archive_expsym_cmds=''
8810         ;;
8811       m68k)
8812             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)'
8813             hardcode_libdir_flag_spec='-L$libdir'
8814             hardcode_minus_L=yes
8815         ;;
8816       esac
8817       ;;
8818 
8819     bsdi[45]*)
8820       export_dynamic_flag_spec=-rdynamic
8821       ;;
8822 
8823     cygwin* | mingw* | pw32* | cegcc*)
8824       # When not using gcc, we currently assume that we are using
8825       # Microsoft Visual C++.
8826       # hardcode_libdir_flag_spec is actually meaningless, as there is
8827       # no search path for DLLs.
8828       hardcode_libdir_flag_spec=' '
8829       allow_undefined_flag=unsupported
8830       # Tell ltmain to make .lib files, not .a files.
8831       libext=lib
8832       # Tell ltmain to make .dll files, not .so files.
8833       shrext_cmds=".dll"
8834       # FIXME: Setting linknames here is a bad hack.
8835       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8836       # The linker will automatically build a .lib file if we build a DLL.
8837       old_archive_from_new_cmds='true'
8838       # FIXME: Should let the user specify the lib program.
8839       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8840       fix_srcfile_path='`cygpath -w "$srcfile"`'
8841       enable_shared_with_static_runtimes=yes
8842       ;;
8843 
8844     darwin* | rhapsody*)
8845 
8846 
8847   archive_cmds_need_lc=no
8848   hardcode_direct=no
8849   hardcode_automatic=yes
8850   hardcode_shlibpath_var=unsupported
8851   whole_archive_flag_spec=''
8852   link_all_deplibs=yes
8853   allow_undefined_flag="$_lt_dar_allow_undefined"
8854   case $cc_basename in
8855      ifort*) _lt_dar_can_shared=yes ;;
8856      *) _lt_dar_can_shared=$GCC ;;
8857   esac
8858   if test "$_lt_dar_can_shared" = "yes"; then
8859     output_verbose_link_cmd=echo
8860     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8861     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8862     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}"
8863     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}"
8864 
8865   else
8866   ld_shlibs=no
8867   fi
8868 
8869       ;;
8870 
8871     dgux*)
8872       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873       hardcode_libdir_flag_spec='-L$libdir'
8874       hardcode_shlibpath_var=no
8875       ;;
8876 
8877     freebsd1*)
8878       ld_shlibs=no
8879       ;;
8880 
8881     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8882     # support.  Future versions do this automatically, but an explicit c++rt0.o
8883     # does not break anything, and helps significantly (at the cost of a little
8884     # extra space).
8885     freebsd2.2*)
8886       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8887       hardcode_libdir_flag_spec='-R$libdir'
8888       hardcode_direct=yes
8889       hardcode_shlibpath_var=no
8890       ;;
8891 
8892     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8893     freebsd2*)
8894       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8895       hardcode_direct=yes
8896       hardcode_minus_L=yes
8897       hardcode_shlibpath_var=no
8898       ;;
8899 
8900     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8901     freebsd* | dragonfly*)
8902       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8903       hardcode_libdir_flag_spec='-R$libdir'
8904       hardcode_direct=yes
8905       hardcode_shlibpath_var=no
8906       ;;
8907 
8908     hpux9*)
8909       if test "$GCC" = yes; then
8910         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'
8911       else
8912         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'
8913       fi
8914       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8915       hardcode_libdir_separator=:
8916       hardcode_direct=yes
8917 
8918       # hardcode_minus_L: Not really in the search PATH,
8919       # but as the default location of the library.
8920       hardcode_minus_L=yes
8921       export_dynamic_flag_spec='${wl}-E'
8922       ;;
8923 
8924     hpux10*)
8925       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8926         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8927       else
8928         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8929       fi
8930       if test "$with_gnu_ld" = no; then
8931         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8932         hardcode_libdir_flag_spec_ld='+b $libdir'
8933         hardcode_libdir_separator=:
8934         hardcode_direct=yes
8935         hardcode_direct_absolute=yes
8936         export_dynamic_flag_spec='${wl}-E'
8937         # hardcode_minus_L: Not really in the search PATH,
8938         # but as the default location of the library.
8939         hardcode_minus_L=yes
8940       fi
8941       ;;
8942 
8943     hpux11*)
8944       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8945         case $host_cpu in
8946         hppa*64*)
8947           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8948           ;;
8949         ia64*)
8950           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8951           ;;
8952         *)
8953           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8954           ;;
8955         esac
8956       else
8957         case $host_cpu in
8958         hppa*64*)
8959           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8960           ;;
8961         ia64*)
8962           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8963           ;;
8964         *)
8965           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8966           ;;
8967         esac
8968       fi
8969       if test "$with_gnu_ld" = no; then
8970         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8971         hardcode_libdir_separator=:
8972 
8973         case $host_cpu in
8974         hppa*64*|ia64*)
8975           hardcode_direct=no
8976           hardcode_shlibpath_var=no
8977           ;;
8978         *)
8979           hardcode_direct=yes
8980           hardcode_direct_absolute=yes
8981           export_dynamic_flag_spec='${wl}-E'
8982 
8983           # hardcode_minus_L: Not really in the search PATH,
8984           # but as the default location of the library.
8985           hardcode_minus_L=yes
8986           ;;
8987         esac
8988       fi
8989       ;;
8990 
8991     irix5* | irix6* | nonstopux*)
8992       if test "$GCC" = yes; then
8993         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'
8994         # Try to use the -exported_symbol ld option, if it does not
8995         # work, assume that -exports_file does not work either and
8996         # implicitly export all symbols.
8997         save_LDFLAGS="$LDFLAGS"
8998         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8999         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000 /* end confdefs.h.  */
9001 int foo (void) { return 0; }
9002 _ACEOF
9003 if ac_fn_c_try_link "$LINENO"; then :
9004 
9005           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'
9006 
9007 fi
9008 rm -f core conftest.err conftest.$ac_objext \
9009     conftest$ac_exeext conftest.$ac_ext
9010         LDFLAGS="$save_LDFLAGS"
9011       else
9012         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'
9013         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'
9014       fi
9015       archive_cmds_need_lc='no'
9016       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9017       hardcode_libdir_separator=:
9018       inherit_rpath=yes
9019       link_all_deplibs=yes
9020       ;;
9021 
9022     netbsd*)
9023       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9024         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9025       else
9026         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9027       fi
9028       hardcode_libdir_flag_spec='-R$libdir'
9029       hardcode_direct=yes
9030       hardcode_shlibpath_var=no
9031       ;;
9032 
9033     newsos6)
9034       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9035       hardcode_direct=yes
9036       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9037       hardcode_libdir_separator=:
9038       hardcode_shlibpath_var=no
9039       ;;
9040 
9041     *nto* | *qnx*)
9042       ;;
9043 
9044     openbsd*)
9045       if test -f /usr/libexec/ld.so; then
9046         hardcode_direct=yes
9047         hardcode_shlibpath_var=no
9048         hardcode_direct_absolute=yes
9049         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9050           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9051           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9052           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9053           export_dynamic_flag_spec='${wl}-E'
9054         else
9055           case $host_os in
9056            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9057              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9058              hardcode_libdir_flag_spec='-R$libdir'
9059              ;;
9060            *)
9061              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9062              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9063              ;;
9064           esac
9065         fi
9066       else
9067         ld_shlibs=no
9068       fi
9069       ;;
9070 
9071     os2*)
9072       hardcode_libdir_flag_spec='-L$libdir'
9073       hardcode_minus_L=yes
9074       allow_undefined_flag=unsupported
9075       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'
9076       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9077       ;;
9078 
9079     osf3*)
9080       if test "$GCC" = yes; then
9081         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9082         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'
9083       else
9084         allow_undefined_flag=' -expect_unresolved \*'
9085         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'
9086       fi
9087       archive_cmds_need_lc='no'
9088       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9089       hardcode_libdir_separator=:
9090       ;;
9091 
9092     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9093       if test "$GCC" = yes; then
9094         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9095         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'
9096         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9097       else
9098         allow_undefined_flag=' -expect_unresolved \*'
9099         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'
9100         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~
9101         $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'
9102 
9103         # Both c and cxx compiler support -rpath directly
9104         hardcode_libdir_flag_spec='-rpath $libdir'
9105       fi
9106       archive_cmds_need_lc='no'
9107       hardcode_libdir_separator=:
9108       ;;
9109 
9110     solaris*)
9111       no_undefined_flag=' -z defs'
9112       if test "$GCC" = yes; then
9113         wlarc='${wl}'
9114         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9115         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9116           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9117       else
9118         case `$CC -V 2>&1` in
9119         *"Compilers 5.0"*)
9120           wlarc=''
9121           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9122           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9123           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9124           ;;
9125         *)
9126           wlarc='${wl}'
9127           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9128           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9129           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9130           ;;
9131         esac
9132       fi
9133       hardcode_libdir_flag_spec='-R$libdir'
9134       hardcode_shlibpath_var=no
9135       case $host_os in
9136       solaris2.[0-5] | solaris2.[0-5].*) ;;
9137       *)
9138         # The compiler driver will combine and reorder linker options,
9139         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9140         # but is careful enough not to reorder.
9141         # Supported since Solaris 2.6 (maybe 2.5.1?)
9142         if test "$GCC" = yes; then
9143           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9144         else
9145           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9146         fi
9147         ;;
9148       esac
9149       link_all_deplibs=yes
9150       ;;
9151 
9152     sunos4*)
9153       if test "x$host_vendor" = xsequent; then
9154         # Use $CC to link under sequent, because it throws in some extra .o
9155         # files that make .init and .fini sections work.
9156         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9157       else
9158         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9159       fi
9160       hardcode_libdir_flag_spec='-L$libdir'
9161       hardcode_direct=yes
9162       hardcode_minus_L=yes
9163       hardcode_shlibpath_var=no
9164       ;;
9165 
9166     sysv4)
9167       case $host_vendor in
9168         sni)
9169           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9170           hardcode_direct=yes # is this really true???
9171         ;;
9172         siemens)
9173           ## LD is ld it makes a PLAMLIB
9174           ## CC just makes a GrossModule.
9175           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9176           reload_cmds='$CC -r -o $output$reload_objs'
9177           hardcode_direct=no
9178         ;;
9179         motorola)
9180           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9181           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9182         ;;
9183       esac
9184       runpath_var='LD_RUN_PATH'
9185       hardcode_shlibpath_var=no
9186       ;;
9187 
9188     sysv4.3*)
9189       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9190       hardcode_shlibpath_var=no
9191       export_dynamic_flag_spec='-Bexport'
9192       ;;
9193 
9194     sysv4*MP*)
9195       if test -d /usr/nec; then
9196         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9197         hardcode_shlibpath_var=no
9198         runpath_var=LD_RUN_PATH
9199         hardcode_runpath_var=yes
9200         ld_shlibs=yes
9201       fi
9202       ;;
9203 
9204     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9205       no_undefined_flag='${wl}-z,text'
9206       archive_cmds_need_lc=no
9207       hardcode_shlibpath_var=no
9208       runpath_var='LD_RUN_PATH'
9209 
9210       if test "$GCC" = yes; then
9211         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9212         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9213       else
9214         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9215         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9216       fi
9217       ;;
9218 
9219     sysv5* | sco3.2v5* | sco5v6*)
9220       # Note: We can NOT use -z defs as we might desire, because we do not
9221       # link with -lc, and that would cause any symbols used from libc to
9222       # always be unresolved, which means just about no library would
9223       # ever link correctly.  If we're not using GNU ld we use -z text
9224       # though, which does catch some bad symbols but isn't as heavy-handed
9225       # as -z defs.
9226       no_undefined_flag='${wl}-z,text'
9227       allow_undefined_flag='${wl}-z,nodefs'
9228       archive_cmds_need_lc=no
9229       hardcode_shlibpath_var=no
9230       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9231       hardcode_libdir_separator=':'
9232       link_all_deplibs=yes
9233       export_dynamic_flag_spec='${wl}-Bexport'
9234       runpath_var='LD_RUN_PATH'
9235 
9236       if test "$GCC" = yes; then
9237         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9238         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9239       else
9240         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9241         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9242       fi
9243       ;;
9244 
9245     uts4*)
9246       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9247       hardcode_libdir_flag_spec='-L$libdir'
9248       hardcode_shlibpath_var=no
9249       ;;
9250 
9251     *)
9252       ld_shlibs=no
9253       ;;
9254     esac
9255 
9256     if test x$host_vendor = xsni; then
9257       case $host in
9258       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9259         export_dynamic_flag_spec='${wl}-Blargedynsym'
9260         ;;
9261       esac
9262     fi
9263   fi
9264 
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9266 $as_echo "$ld_shlibs" >&6; }
9267 test "$ld_shlibs" = no && can_build_shared=no
9268 
9269 with_gnu_ld=$with_gnu_ld
9270 
9271 
9272 
9273 
9274 
9275 
9276 
9277 
9278 
9279 
9280 
9281 
9282 
9283 
9284 
9285 #
9286 # Do we need to explicitly link libc?
9287 #
9288 case "x$archive_cmds_need_lc" in
9289 x|xyes)
9290   # Assume -lc should be added
9291   archive_cmds_need_lc=yes
9292 
9293   if test "$enable_shared" = yes && test "$GCC" = yes; then
9294     case $archive_cmds in
9295     *'~'*)
9296       # FIXME: we may have to deal with multi-command sequences.
9297       ;;
9298     '$CC '*)
9299       # Test whether the compiler implicitly links with -lc since on some
9300       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9301       # to ld, don't add -lc before -lgcc.
9302       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9303 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9304       $RM conftest*
9305       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9306 
9307       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9308   (eval $ac_compile) 2>&5
9309   ac_status=$?
9310   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9311   test $ac_status = 0; } 2>conftest.err; then
9312         soname=conftest
9313         lib=conftest
9314         libobjs=conftest.$ac_objext
9315         deplibs=
9316         wl=$lt_prog_compiler_wl
9317         pic_flag=$lt_prog_compiler_pic
9318         compiler_flags=-v
9319         linker_flags=-v
9320         verstring=
9321         output_objdir=.
9322         libname=conftest
9323         lt_save_allow_undefined_flag=$allow_undefined_flag
9324         allow_undefined_flag=
9325         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9326   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9327   ac_status=$?
9328   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9329   test $ac_status = 0; }
9330         then
9331           archive_cmds_need_lc=no
9332         else
9333           archive_cmds_need_lc=yes
9334         fi
9335         allow_undefined_flag=$lt_save_allow_undefined_flag
9336       else
9337         cat conftest.err 1>&5
9338       fi
9339       $RM conftest*
9340       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9341 $as_echo "$archive_cmds_need_lc" >&6; }
9342       ;;
9343     esac
9344   fi
9345   ;;
9346 esac
9347 
9348 
9349 
9350 
9351 
9352 
9353 
9354 
9355 
9356 
9357 
9358 
9359 
9360 
9361 
9362 
9363 
9364 
9365 
9366 
9367 
9368 
9369 
9370 
9371 
9372 
9373 
9374 
9375 
9376 
9377 
9378 
9379 
9380 
9381 
9382 
9383 
9384 
9385 
9386 
9387 
9388 
9389 
9390 
9391 
9392 
9393 
9394 
9395 
9396 
9397 
9398 
9399 
9400 
9401 
9402 
9403 
9404 
9405 
9406 
9407 
9408 
9409 
9410 
9411 
9412 
9413 
9414 
9415 
9416 
9417 
9418 
9419 
9420 
9421 
9422 
9423 
9424 
9425 
9426 
9427 
9428 
9429 
9430 
9431 
9432 
9433 
9434 
9435 
9436 
9437 
9438 
9439 
9440 
9441 
9442 
9443 
9444 
9445 
9446 
9447 
9448 
9449 
9450 
9451 
9452 
9453 
9454 
9455 
9456 
9457 
9458 
9459 
9460 
9461 
9462 
9463 
9464 
9465 
9466 
9467 
9468 
9469 
9470 
9471 
9472 
9473 
9474 
9475 
9476 
9477 
9478 
9479 
9480 
9481 
9482 
9483 
9484 
9485 
9486 
9487 
9488 
9489 
9490 
9491 
9492 
9493 
9494 
9495 
9496 
9497 
9498 
9499 
9500 
9501 
9502 
9503 
9504   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9505 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9506 
9507 if test "$GCC" = yes; then
9508   case $host_os in
9509     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9510     *) lt_awk_arg="/^libraries:/" ;;
9511   esac
9512   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9513   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9514     # if the path contains ";" then we assume it to be the separator
9515     # otherwise default to the standard path separator (i.e. ":") - it is
9516     # assumed that no part of a normal pathname contains ";" but that should
9517     # okay in the real world where ";" in dirpaths is itself problematic.
9518     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9519   else
9520     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9521   fi
9522   # Ok, now we have the path, separated by spaces, we can step through it
9523   # and add multilib dir if necessary.
9524   lt_tmp_lt_search_path_spec=
9525   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9526   for lt_sys_path in $lt_search_path_spec; do
9527     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9528       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9529     else
9530       test -d "$lt_sys_path" && \
9531         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9532     fi
9533   done
9534   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9535 BEGIN {RS=" "; FS="/|\n";} {
9536   lt_foo="";
9537   lt_count=0;
9538   for (lt_i = NF; lt_i > 0; lt_i--) {
9539     if ($lt_i != "" && $lt_i != ".") {
9540       if ($lt_i == "..") {
9541         lt_count++;
9542       } else {
9543         if (lt_count == 0) {
9544           lt_foo="/" $lt_i lt_foo;
9545         } else {
9546           lt_count--;
9547         }
9548       }
9549     }
9550   }
9551   if (lt_foo != "") { lt_freq[lt_foo]++; }
9552   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9553 }'`
9554   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9555 else
9556   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9557 fi
9558 library_names_spec=
9559 libname_spec='lib$name'
9560 soname_spec=
9561 shrext_cmds=".so"
9562 postinstall_cmds=
9563 postuninstall_cmds=
9564 finish_cmds=
9565 finish_eval=
9566 shlibpath_var=
9567 shlibpath_overrides_runpath=unknown
9568 version_type=none
9569 dynamic_linker="$host_os ld.so"
9570 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9571 need_lib_prefix=unknown
9572 hardcode_into_libs=no
9573 
9574 # when you set need_version to no, make sure it does not cause -set_version
9575 # flags to be left without arguments
9576 need_version=unknown
9577 
9578 case $host_os in
9579 aix3*)
9580   version_type=linux
9581   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9582   shlibpath_var=LIBPATH
9583 
9584   # AIX 3 has no versioning support, so we append a major version to the name.
9585   soname_spec='${libname}${release}${shared_ext}$major'
9586   ;;
9587 
9588 aix[4-9]*)
9589   version_type=linux
9590   need_lib_prefix=no
9591   need_version=no
9592   hardcode_into_libs=yes
9593   if test "$host_cpu" = ia64; then
9594     # AIX 5 supports IA64
9595     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9596     shlibpath_var=LD_LIBRARY_PATH
9597   else
9598     # With GCC up to 2.95.x, collect2 would create an import file
9599     # for dependence libraries.  The import file would start with
9600     # the line `#! .'.  This would cause the generated library to
9601     # depend on `.', always an invalid library.  This was fixed in
9602     # development snapshots of GCC prior to 3.0.
9603     case $host_os in
9604       aix4 | aix4.[01] | aix4.[01].*)
9605       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9606            echo ' yes '
9607            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9608         :
9609       else
9610         can_build_shared=no
9611       fi
9612       ;;
9613     esac
9614     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9615     # soname into executable. Probably we can add versioning support to
9616     # collect2, so additional links can be useful in future.
9617     if test "$aix_use_runtimelinking" = yes; then
9618       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9619       # instead of lib<name>.a to let people know that these are not
9620       # typical AIX shared libraries.
9621       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622     else
9623       # We preserve .a as extension for shared libraries through AIX4.2
9624       # and later when we are not doing run time linking.
9625       library_names_spec='${libname}${release}.a $libname.a'
9626       soname_spec='${libname}${release}${shared_ext}$major'
9627     fi
9628     shlibpath_var=LIBPATH
9629   fi
9630   ;;
9631 
9632 amigaos*)
9633   case $host_cpu in
9634   powerpc)
9635     # Since July 2007 AmigaOS4 officially supports .so libraries.
9636     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9637     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638     ;;
9639   m68k)
9640     library_names_spec='$libname.ixlibrary $libname.a'
9641     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9642     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'
9643     ;;
9644   esac
9645   ;;
9646 
9647 beos*)
9648   library_names_spec='${libname}${shared_ext}'
9649   dynamic_linker="$host_os ld.so"
9650   shlibpath_var=LIBRARY_PATH
9651   ;;
9652 
9653 bsdi[45]*)
9654   version_type=linux
9655   need_version=no
9656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9657   soname_spec='${libname}${release}${shared_ext}$major'
9658   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9659   shlibpath_var=LD_LIBRARY_PATH
9660   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9661   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9662   # the default ld.so.conf also contains /usr/contrib/lib and
9663   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9664   # libtool to hard-code these into programs
9665   ;;
9666 
9667 cygwin* | mingw* | pw32* | cegcc*)
9668   version_type=windows
9669   shrext_cmds=".dll"
9670   need_version=no
9671   need_lib_prefix=no
9672 
9673   case $GCC,$host_os in
9674   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9675     library_names_spec='$libname.dll.a'
9676     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9677     postinstall_cmds='base_file=`basename \${file}`~
9678       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9679       dldir=$destdir/`dirname \$dlpath`~
9680       test -d \$dldir || mkdir -p \$dldir~
9681       $install_prog $dir/$dlname \$dldir/$dlname~
9682       chmod a+x \$dldir/$dlname~
9683       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9684         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9685       fi'
9686     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9687       dlpath=$dir/\$dldll~
9688        $RM \$dlpath'
9689     shlibpath_overrides_runpath=yes
9690 
9691     case $host_os in
9692     cygwin*)
9693       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9694       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9695       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9696       ;;
9697     mingw* | cegcc*)
9698       # MinGW DLLs use traditional 'lib' prefix
9699       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9700       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9701       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9702         # It is most probably a Windows format PATH printed by
9703         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9704         # path with ; separators, and with drive letters. We can handle the
9705         # drive letters (cygwin fileutils understands them), so leave them,
9706         # especially as we might pass files found there to a mingw objdump,
9707         # which wouldn't understand a cygwinified path. Ahh.
9708         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9709       else
9710         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9711       fi
9712       ;;
9713     pw32*)
9714       # pw32 DLLs use 'pw' prefix rather than 'lib'
9715       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9716       ;;
9717     esac
9718     ;;
9719 
9720   *)
9721     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9722     ;;
9723   esac
9724   dynamic_linker='Win32 ld.exe'
9725   # FIXME: first we should search . and the directory the executable is in
9726   shlibpath_var=PATH
9727   ;;
9728 
9729 darwin* | rhapsody*)
9730   dynamic_linker="$host_os dyld"
9731   version_type=darwin
9732   need_lib_prefix=no
9733   need_version=no
9734   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9735   soname_spec='${libname}${release}${major}$shared_ext'
9736   shlibpath_overrides_runpath=yes
9737   shlibpath_var=DYLD_LIBRARY_PATH
9738   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9739 
9740   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9741   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9742   ;;
9743 
9744 dgux*)
9745   version_type=linux
9746   need_lib_prefix=no
9747   need_version=no
9748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9749   soname_spec='${libname}${release}${shared_ext}$major'
9750   shlibpath_var=LD_LIBRARY_PATH
9751   ;;
9752 
9753 freebsd1*)
9754   dynamic_linker=no
9755   ;;
9756 
9757 freebsd* | dragonfly*)
9758   # DragonFly does not have aout.  When/if they implement a new
9759   # versioning mechanism, adjust this.
9760   if test -x /usr/bin/objformat; then
9761     objformat=`/usr/bin/objformat`
9762   else
9763     case $host_os in
9764     freebsd[123]*) objformat=aout ;;
9765     *) objformat=elf ;;
9766     esac
9767   fi
9768   version_type=freebsd-$objformat
9769   case $version_type in
9770     freebsd-elf*)
9771       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9772       need_version=no
9773       need_lib_prefix=no
9774       ;;
9775     freebsd-*)
9776       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9777       need_version=yes
9778       ;;
9779   esac
9780   shlibpath_var=LD_LIBRARY_PATH
9781   case $host_os in
9782   freebsd2*)
9783     shlibpath_overrides_runpath=yes
9784     ;;
9785   freebsd3.[01]* | freebsdelf3.[01]*)
9786     shlibpath_overrides_runpath=yes
9787     hardcode_into_libs=yes
9788     ;;
9789   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9790   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9791     shlibpath_overrides_runpath=no
9792     hardcode_into_libs=yes
9793     ;;
9794   *) # from 4.6 on, and DragonFly
9795     shlibpath_overrides_runpath=yes
9796     hardcode_into_libs=yes
9797     ;;
9798   esac
9799   ;;
9800 
9801 gnu*)
9802   version_type=linux
9803   need_lib_prefix=no
9804   need_version=no
9805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9806   soname_spec='${libname}${release}${shared_ext}$major'
9807   shlibpath_var=LD_LIBRARY_PATH
9808   hardcode_into_libs=yes
9809   ;;
9810 
9811 hpux9* | hpux10* | hpux11*)
9812   # Give a soname corresponding to the major version so that dld.sl refuses to
9813   # link against other versions.
9814   version_type=sunos
9815   need_lib_prefix=no
9816   need_version=no
9817   case $host_cpu in
9818   ia64*)
9819     shrext_cmds='.so'
9820     hardcode_into_libs=yes
9821     dynamic_linker="$host_os dld.so"
9822     shlibpath_var=LD_LIBRARY_PATH
9823     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9824     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9825     soname_spec='${libname}${release}${shared_ext}$major'
9826     if test "X$HPUX_IA64_MODE" = X32; then
9827       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9828     else
9829       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9830     fi
9831     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9832     ;;
9833   hppa*64*)
9834     shrext_cmds='.sl'
9835     hardcode_into_libs=yes
9836     dynamic_linker="$host_os dld.sl"
9837     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9838     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9839     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9840     soname_spec='${libname}${release}${shared_ext}$major'
9841     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9842     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9843     ;;
9844   *)
9845     shrext_cmds='.sl'
9846     dynamic_linker="$host_os dld.sl"
9847     shlibpath_var=SHLIB_PATH
9848     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9849     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9850     soname_spec='${libname}${release}${shared_ext}$major'
9851     ;;
9852   esac
9853   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9854   postinstall_cmds='chmod 555 $lib'
9855   ;;
9856 
9857 interix[3-9]*)
9858   version_type=linux
9859   need_lib_prefix=no
9860   need_version=no
9861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9862   soname_spec='${libname}${release}${shared_ext}$major'
9863   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9864   shlibpath_var=LD_LIBRARY_PATH
9865   shlibpath_overrides_runpath=no
9866   hardcode_into_libs=yes
9867   ;;
9868 
9869 irix5* | irix6* | nonstopux*)
9870   case $host_os in
9871     nonstopux*) version_type=nonstopux ;;
9872     *)
9873         if test "$lt_cv_prog_gnu_ld" = yes; then
9874                 version_type=linux
9875         else
9876                 version_type=irix
9877         fi ;;
9878   esac
9879   need_lib_prefix=no
9880   need_version=no
9881   soname_spec='${libname}${release}${shared_ext}$major'
9882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9883   case $host_os in
9884   irix5* | nonstopux*)
9885     libsuff= shlibsuff=
9886     ;;
9887   *)
9888     case $LD in # libtool.m4 will add one of these switches to LD
9889     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9890       libsuff= shlibsuff= libmagic=32-bit;;
9891     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9892       libsuff=32 shlibsuff=N32 libmagic=N32;;
9893     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9894       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9895     *) libsuff= shlibsuff= libmagic=never-match;;
9896     esac
9897     ;;
9898   esac
9899   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9900   shlibpath_overrides_runpath=no
9901   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9902   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9903   hardcode_into_libs=yes
9904   ;;
9905 
9906 # No shared lib support for Linux oldld, aout, or coff.
9907 linux*oldld* | linux*aout* | linux*coff*)
9908   dynamic_linker=no
9909   ;;
9910 
9911 # This must be Linux ELF.
9912 linux* | k*bsd*-gnu)
9913   version_type=linux
9914   need_lib_prefix=no
9915   need_version=no
9916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9917   soname_spec='${libname}${release}${shared_ext}$major'
9918   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9919   shlibpath_var=LD_LIBRARY_PATH
9920   shlibpath_overrides_runpath=no
9921   # Some binutils ld are patched to set DT_RUNPATH
9922   save_LDFLAGS=$LDFLAGS
9923   save_libdir=$libdir
9924   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9925        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h.  */
9928 
9929 int
9930 main ()
9931 {
9932 
9933   ;
9934   return 0;
9935 }
9936 _ACEOF
9937 if ac_fn_c_try_link "$LINENO"; then :
9938   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9939   shlibpath_overrides_runpath=yes
9940 fi
9941 fi
9942 rm -f core conftest.err conftest.$ac_objext \
9943     conftest$ac_exeext conftest.$ac_ext
9944   LDFLAGS=$save_LDFLAGS
9945   libdir=$save_libdir
9946 
9947   # This implies no fast_install, which is unacceptable.
9948   # Some rework will be needed to allow for fast_install
9949   # before this can be enabled.
9950   hardcode_into_libs=yes
9951 
9952   # Append ld.so.conf contents to the search path
9953   if test -f /etc/ld.so.conf; then
9954     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' ' '`
9955     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9956   fi
9957 
9958   # We used to test for /lib/ld.so.1 and disable shared libraries on
9959   # powerpc, because MkLinux only supported shared libraries with the
9960   # GNU dynamic linker.  Since this was broken with cross compilers,
9961   # most powerpc-linux boxes support dynamic linking these days and
9962   # people can always --disable-shared, the test was removed, and we
9963   # assume the GNU/Linux dynamic linker is in use.
9964   dynamic_linker='GNU/Linux ld.so'
9965   ;;
9966 
9967 netbsd*)
9968   version_type=sunos
9969   need_lib_prefix=no
9970   need_version=no
9971   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9972     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9973     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9974     dynamic_linker='NetBSD (a.out) ld.so'
9975   else
9976     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9977     soname_spec='${libname}${release}${shared_ext}$major'
9978     dynamic_linker='NetBSD ld.elf_so'
9979   fi
9980   shlibpath_var=LD_LIBRARY_PATH
9981   shlibpath_overrides_runpath=yes
9982   hardcode_into_libs=yes
9983   ;;
9984 
9985 newsos6)
9986   version_type=linux
9987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9988   shlibpath_var=LD_LIBRARY_PATH
9989   shlibpath_overrides_runpath=yes
9990   ;;
9991 
9992 *nto* | *qnx*)
9993   version_type=qnx
9994   need_lib_prefix=no
9995   need_version=no
9996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9997   soname_spec='${libname}${release}${shared_ext}$major'
9998   shlibpath_var=LD_LIBRARY_PATH
9999   shlibpath_overrides_runpath=no
10000   hardcode_into_libs=yes
10001   dynamic_linker='ldqnx.so'
10002   ;;
10003 
10004 openbsd*)
10005   version_type=sunos
10006   sys_lib_dlsearch_path_spec="/usr/lib"
10007   need_lib_prefix=no
10008   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10009   case $host_os in
10010     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10011     *)                          need_version=no  ;;
10012   esac
10013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10014   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10015   shlibpath_var=LD_LIBRARY_PATH
10016   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10017     case $host_os in
10018       openbsd2.[89] | openbsd2.[89].*)
10019         shlibpath_overrides_runpath=no
10020         ;;
10021       *)
10022         shlibpath_overrides_runpath=yes
10023         ;;
10024       esac
10025   else
10026     shlibpath_overrides_runpath=yes
10027   fi
10028   ;;
10029 
10030 os2*)
10031   libname_spec='$name'
10032   shrext_cmds=".dll"
10033   need_lib_prefix=no
10034   library_names_spec='$libname${shared_ext} $libname.a'
10035   dynamic_linker='OS/2 ld.exe'
10036   shlibpath_var=LIBPATH
10037   ;;
10038 
10039 osf3* | osf4* | osf5*)
10040   version_type=osf
10041   need_lib_prefix=no
10042   need_version=no
10043   soname_spec='${libname}${release}${shared_ext}$major'
10044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10045   shlibpath_var=LD_LIBRARY_PATH
10046   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10047   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10048   ;;
10049 
10050 rdos*)
10051   dynamic_linker=no
10052   ;;
10053 
10054 solaris*)
10055   version_type=linux
10056   need_lib_prefix=no
10057   need_version=no
10058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10059   soname_spec='${libname}${release}${shared_ext}$major'
10060   shlibpath_var=LD_LIBRARY_PATH
10061   shlibpath_overrides_runpath=yes
10062   hardcode_into_libs=yes
10063   # ldd complains unless libraries are executable
10064   postinstall_cmds='chmod +x $lib'
10065   ;;
10066 
10067 sunos4*)
10068   version_type=sunos
10069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10070   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10071   shlibpath_var=LD_LIBRARY_PATH
10072   shlibpath_overrides_runpath=yes
10073   if test "$with_gnu_ld" = yes; then
10074     need_lib_prefix=no
10075   fi
10076   need_version=yes
10077   ;;
10078 
10079 sysv4 | sysv4.3*)
10080   version_type=linux
10081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10082   soname_spec='${libname}${release}${shared_ext}$major'
10083   shlibpath_var=LD_LIBRARY_PATH
10084   case $host_vendor in
10085     sni)
10086       shlibpath_overrides_runpath=no
10087       need_lib_prefix=no
10088       runpath_var=LD_RUN_PATH
10089       ;;
10090     siemens)
10091       need_lib_prefix=no
10092       ;;
10093     motorola)
10094       need_lib_prefix=no
10095       need_version=no
10096       shlibpath_overrides_runpath=no
10097       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10098       ;;
10099   esac
10100   ;;
10101 
10102 sysv4*MP*)
10103   if test -d /usr/nec ;then
10104     version_type=linux
10105     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10106     soname_spec='$libname${shared_ext}.$major'
10107     shlibpath_var=LD_LIBRARY_PATH
10108   fi
10109   ;;
10110 
10111 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10112   version_type=freebsd-elf
10113   need_lib_prefix=no
10114   need_version=no
10115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10116   soname_spec='${libname}${release}${shared_ext}$major'
10117   shlibpath_var=LD_LIBRARY_PATH
10118   shlibpath_overrides_runpath=yes
10119   hardcode_into_libs=yes
10120   if test "$with_gnu_ld" = yes; then
10121     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10122   else
10123     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10124     case $host_os in
10125       sco3.2v5*)
10126         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10127         ;;
10128     esac
10129   fi
10130   sys_lib_dlsearch_path_spec='/usr/lib'
10131   ;;
10132 
10133 tpf*)
10134   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10135   version_type=linux
10136   need_lib_prefix=no
10137   need_version=no
10138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10139   shlibpath_var=LD_LIBRARY_PATH
10140   shlibpath_overrides_runpath=no
10141   hardcode_into_libs=yes
10142   ;;
10143 
10144 uts4*)
10145   version_type=linux
10146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147   soname_spec='${libname}${release}${shared_ext}$major'
10148   shlibpath_var=LD_LIBRARY_PATH
10149   ;;
10150 
10151 *)
10152   dynamic_linker=no
10153   ;;
10154 esac
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10156 $as_echo "$dynamic_linker" >&6; }
10157 test "$dynamic_linker" = no && can_build_shared=no
10158 
10159 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10160 if test "$GCC" = yes; then
10161   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10162 fi
10163 
10164 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10165   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10166 fi
10167 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10168   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10169 fi
10170 
10171 
10172 
10173 
10174 
10175 
10176 
10177 
10178 
10179 
10180 
10181 
10182 
10183 
10184 
10185 
10186 
10187 
10188 
10189 
10190 
10191 
10192 
10193 
10194 
10195 
10196 
10197 
10198 
10199 
10200 
10201 
10202 
10203 
10204 
10205 
10206 
10207 
10208 
10209 
10210 
10211 
10212 
10213 
10214 
10215 
10216 
10217 
10218 
10219 
10220 
10221 
10222 
10223 
10224 
10225 
10226 
10227 
10228 
10229 
10230 
10231 
10232 
10233 
10234 
10235 
10236 
10237 
10238 
10239 
10240 
10241 
10242 
10243 
10244 
10245 
10246 
10247 
10248 
10249 
10250 
10251 
10252 
10253 
10254 
10255 
10256 
10257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10258 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10259 hardcode_action=
10260 if test -n "$hardcode_libdir_flag_spec" ||
10261    test -n "$runpath_var" ||
10262    test "X$hardcode_automatic" = "Xyes" ; then
10263 
10264   # We can hardcode non-existent directories.
10265   if test "$hardcode_direct" != no &&
10266      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10267      # have to relink, otherwise we might link with an installed library
10268      # when we should be linking with a yet-to-be-installed one
10269      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10270      test "$hardcode_minus_L" != no; then
10271     # Linking always hardcodes the temporary library directory.
10272     hardcode_action=relink
10273   else
10274     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10275     hardcode_action=immediate
10276   fi
10277 else
10278   # We cannot hardcode anything, or else we can only hardcode existing
10279   # directories.
10280   hardcode_action=unsupported
10281 fi
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10283 $as_echo "$hardcode_action" >&6; }
10284 
10285 if test "$hardcode_action" = relink ||
10286    test "$inherit_rpath" = yes; then
10287   # Fast installation is not supported
10288   enable_fast_install=no
10289 elif test "$shlibpath_overrides_runpath" = yes ||
10290      test "$enable_shared" = no; then
10291   # Fast installation is not necessary
10292   enable_fast_install=needless
10293 fi
10294 
10295 
10296 
10297 
10298 
10299 
10300   if test "x$enable_dlopen" != xyes; then
10301   enable_dlopen=unknown
10302   enable_dlopen_self=unknown
10303   enable_dlopen_self_static=unknown
10304 else
10305   lt_cv_dlopen=no
10306   lt_cv_dlopen_libs=
10307 
10308   case $host_os in
10309   beos*)
10310     lt_cv_dlopen="load_add_on"
10311     lt_cv_dlopen_libs=
10312     lt_cv_dlopen_self=yes
10313     ;;
10314 
10315   mingw* | pw32* | cegcc*)
10316     lt_cv_dlopen="LoadLibrary"
10317     lt_cv_dlopen_libs=
10318     ;;
10319 
10320   cygwin*)
10321     lt_cv_dlopen="dlopen"
10322     lt_cv_dlopen_libs=
10323     ;;
10324 
10325   darwin*)
10326   # if libdl is installed we need to link against it
10327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10328 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10329 if ${ac_cv_lib_dl_dlopen+:} false; then :
10330   $as_echo_n "(cached) " >&6
10331 else
10332   ac_check_lib_save_LIBS=$LIBS
10333 LIBS="-ldl  $LIBS"
10334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10335 /* end confdefs.h.  */
10336 
10337 /* Override any GCC internal prototype to avoid an error.
10338    Use char because int might match the return type of a GCC
10339    builtin and then its argument prototype would still apply.  */
10340 #ifdef __cplusplus
10341 extern "C"
10342 #endif
10343 char dlopen ();
10344 int
10345 main ()
10346 {
10347 return dlopen ();
10348   ;
10349   return 0;
10350 }
10351 _ACEOF
10352 if ac_fn_c_try_link "$LINENO"; then :
10353   ac_cv_lib_dl_dlopen=yes
10354 else
10355   ac_cv_lib_dl_dlopen=no
10356 fi
10357 rm -f core conftest.err conftest.$ac_objext \
10358     conftest$ac_exeext conftest.$ac_ext
10359 LIBS=$ac_check_lib_save_LIBS
10360 fi
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10362 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10363 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10364   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10365 else
10366 
10367     lt_cv_dlopen="dyld"
10368     lt_cv_dlopen_libs=
10369     lt_cv_dlopen_self=yes
10370 
10371 fi
10372 
10373     ;;
10374 
10375   *)
10376     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10377 if test "x$ac_cv_func_shl_load" = xyes; then :
10378   lt_cv_dlopen="shl_load"
10379 else
10380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10381 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10382 if ${ac_cv_lib_dld_shl_load+:} false; then :
10383   $as_echo_n "(cached) " >&6
10384 else
10385   ac_check_lib_save_LIBS=$LIBS
10386 LIBS="-ldld  $LIBS"
10387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10388 /* end confdefs.h.  */
10389 
10390 /* Override any GCC internal prototype to avoid an error.
10391    Use char because int might match the return type of a GCC
10392    builtin and then its argument prototype would still apply.  */
10393 #ifdef __cplusplus
10394 extern "C"
10395 #endif
10396 char shl_load ();
10397 int
10398 main ()
10399 {
10400 return shl_load ();
10401   ;
10402   return 0;
10403 }
10404 _ACEOF
10405 if ac_fn_c_try_link "$LINENO"; then :
10406   ac_cv_lib_dld_shl_load=yes
10407 else
10408   ac_cv_lib_dld_shl_load=no
10409 fi
10410 rm -f core conftest.err conftest.$ac_objext \
10411     conftest$ac_exeext conftest.$ac_ext
10412 LIBS=$ac_check_lib_save_LIBS
10413 fi
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10415 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10416 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10417   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10418 else
10419   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10420 if test "x$ac_cv_func_dlopen" = xyes; then :
10421   lt_cv_dlopen="dlopen"
10422 else
10423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10424 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10425 if ${ac_cv_lib_dl_dlopen+:} false; then :
10426   $as_echo_n "(cached) " >&6
10427 else
10428   ac_check_lib_save_LIBS=$LIBS
10429 LIBS="-ldl  $LIBS"
10430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10431 /* end confdefs.h.  */
10432 
10433 /* Override any GCC internal prototype to avoid an error.
10434    Use char because int might match the return type of a GCC
10435    builtin and then its argument prototype would still apply.  */
10436 #ifdef __cplusplus
10437 extern "C"
10438 #endif
10439 char dlopen ();
10440 int
10441 main ()
10442 {
10443 return dlopen ();
10444   ;
10445   return 0;
10446 }
10447 _ACEOF
10448 if ac_fn_c_try_link "$LINENO"; then :
10449   ac_cv_lib_dl_dlopen=yes
10450 else
10451   ac_cv_lib_dl_dlopen=no
10452 fi
10453 rm -f core conftest.err conftest.$ac_objext \
10454     conftest$ac_exeext conftest.$ac_ext
10455 LIBS=$ac_check_lib_save_LIBS
10456 fi
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10458 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10459 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10460   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10461 else
10462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10463 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10464 if ${ac_cv_lib_svld_dlopen+:} false; then :
10465   $as_echo_n "(cached) " >&6
10466 else
10467   ac_check_lib_save_LIBS=$LIBS
10468 LIBS="-lsvld  $LIBS"
10469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470 /* end confdefs.h.  */
10471 
10472 /* Override any GCC internal prototype to avoid an error.
10473    Use char because int might match the return type of a GCC
10474    builtin and then its argument prototype would still apply.  */
10475 #ifdef __cplusplus
10476 extern "C"
10477 #endif
10478 char dlopen ();
10479 int
10480 main ()
10481 {
10482 return dlopen ();
10483   ;
10484   return 0;
10485 }
10486 _ACEOF
10487 if ac_fn_c_try_link "$LINENO"; then :
10488   ac_cv_lib_svld_dlopen=yes
10489 else
10490   ac_cv_lib_svld_dlopen=no
10491 fi
10492 rm -f core conftest.err conftest.$ac_objext \
10493     conftest$ac_exeext conftest.$ac_ext
10494 LIBS=$ac_check_lib_save_LIBS
10495 fi
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10497 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10498 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10499   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10500 else
10501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10502 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10503 if ${ac_cv_lib_dld_dld_link+:} false; then :
10504   $as_echo_n "(cached) " >&6
10505 else
10506   ac_check_lib_save_LIBS=$LIBS
10507 LIBS="-ldld  $LIBS"
10508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10509 /* end confdefs.h.  */
10510 
10511 /* Override any GCC internal prototype to avoid an error.
10512    Use char because int might match the return type of a GCC
10513    builtin and then its argument prototype would still apply.  */
10514 #ifdef __cplusplus
10515 extern "C"
10516 #endif
10517 char dld_link ();
10518 int
10519 main ()
10520 {
10521 return dld_link ();
10522   ;
10523   return 0;
10524 }
10525 _ACEOF
10526 if ac_fn_c_try_link "$LINENO"; then :
10527   ac_cv_lib_dld_dld_link=yes
10528 else
10529   ac_cv_lib_dld_dld_link=no
10530 fi
10531 rm -f core conftest.err conftest.$ac_objext \
10532     conftest$ac_exeext conftest.$ac_ext
10533 LIBS=$ac_check_lib_save_LIBS
10534 fi
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10536 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10537 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10538   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10539 fi
10540 
10541 
10542 fi
10543 
10544 
10545 fi
10546 
10547 
10548 fi
10549 
10550 
10551 fi
10552 
10553 
10554 fi
10555 
10556     ;;
10557   esac
10558 
10559   if test "x$lt_cv_dlopen" != xno; then
10560     enable_dlopen=yes
10561   else
10562     enable_dlopen=no
10563   fi
10564 
10565   case $lt_cv_dlopen in
10566   dlopen)
10567     save_CPPFLAGS="$CPPFLAGS"
10568     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10569 
10570     save_LDFLAGS="$LDFLAGS"
10571     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10572 
10573     save_LIBS="$LIBS"
10574     LIBS="$lt_cv_dlopen_libs $LIBS"
10575 
10576     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10577 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10578 if ${lt_cv_dlopen_self+:} false; then :
10579   $as_echo_n "(cached) " >&6
10580 else
10581           if test "$cross_compiling" = yes; then :
10582   lt_cv_dlopen_self=cross
10583 else
10584   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10585   lt_status=$lt_dlunknown
10586   cat > conftest.$ac_ext <<_LT_EOF
10587 #line 10587 "configure"
10588 #include "confdefs.h"
10589 
10590 #if HAVE_DLFCN_H
10591 #include <dlfcn.h>
10592 #endif
10593 
10594 #include <stdio.h>
10595 
10596 #ifdef RTLD_GLOBAL
10597 #  define LT_DLGLOBAL           RTLD_GLOBAL
10598 #else
10599 #  ifdef DL_GLOBAL
10600 #    define LT_DLGLOBAL         DL_GLOBAL
10601 #  else
10602 #    define LT_DLGLOBAL         0
10603 #  endif
10604 #endif
10605 
10606 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10607    find out it does not work in some platform. */
10608 #ifndef LT_DLLAZY_OR_NOW
10609 #  ifdef RTLD_LAZY
10610 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10611 #  else
10612 #    ifdef DL_LAZY
10613 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10614 #    else
10615 #      ifdef RTLD_NOW
10616 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10617 #      else
10618 #        ifdef DL_NOW
10619 #          define LT_DLLAZY_OR_NOW      DL_NOW
10620 #        else
10621 #          define LT_DLLAZY_OR_NOW      0
10622 #        endif
10623 #      endif
10624 #    endif
10625 #  endif
10626 #endif
10627 
10628 void fnord() { int i=42;}
10629 int main ()
10630 {
10631   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10632   int status = $lt_dlunknown;
10633 
10634   if (self)
10635     {
10636       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10637       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10638       /* dlclose (self); */
10639     }
10640   else
10641     puts (dlerror ());
10642 
10643   return status;
10644 }
10645 _LT_EOF
10646   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10647   (eval $ac_link) 2>&5
10648   ac_status=$?
10649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10650   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10651     (./conftest; exit; ) >&5 2>/dev/null
10652     lt_status=$?
10653     case x$lt_status in
10654       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10655       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10656       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10657     esac
10658   else :
10659     # compilation failed
10660     lt_cv_dlopen_self=no
10661   fi
10662 fi
10663 rm -fr conftest*
10664 
10665 
10666 fi
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10668 $as_echo "$lt_cv_dlopen_self" >&6; }
10669 
10670     if test "x$lt_cv_dlopen_self" = xyes; then
10671       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10672       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10673 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10674 if ${lt_cv_dlopen_self_static+:} false; then :
10675   $as_echo_n "(cached) " >&6
10676 else
10677           if test "$cross_compiling" = yes; then :
10678   lt_cv_dlopen_self_static=cross
10679 else
10680   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10681   lt_status=$lt_dlunknown
10682   cat > conftest.$ac_ext <<_LT_EOF
10683 #line 10683 "configure"
10684 #include "confdefs.h"
10685 
10686 #if HAVE_DLFCN_H
10687 #include <dlfcn.h>
10688 #endif
10689 
10690 #include <stdio.h>
10691 
10692 #ifdef RTLD_GLOBAL
10693 #  define LT_DLGLOBAL           RTLD_GLOBAL
10694 #else
10695 #  ifdef DL_GLOBAL
10696 #    define LT_DLGLOBAL         DL_GLOBAL
10697 #  else
10698 #    define LT_DLGLOBAL         0
10699 #  endif
10700 #endif
10701 
10702 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10703    find out it does not work in some platform. */
10704 #ifndef LT_DLLAZY_OR_NOW
10705 #  ifdef RTLD_LAZY
10706 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10707 #  else
10708 #    ifdef DL_LAZY
10709 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10710 #    else
10711 #      ifdef RTLD_NOW
10712 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10713 #      else
10714 #        ifdef DL_NOW
10715 #          define LT_DLLAZY_OR_NOW      DL_NOW
10716 #        else
10717 #          define LT_DLLAZY_OR_NOW      0
10718 #        endif
10719 #      endif
10720 #    endif
10721 #  endif
10722 #endif
10723 
10724 void fnord() { int i=42;}
10725 int main ()
10726 {
10727   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10728   int status = $lt_dlunknown;
10729 
10730   if (self)
10731     {
10732       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10733       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10734       /* dlclose (self); */
10735     }
10736   else
10737     puts (dlerror ());
10738 
10739   return status;
10740 }
10741 _LT_EOF
10742   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10743   (eval $ac_link) 2>&5
10744   ac_status=$?
10745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10746   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10747     (./conftest; exit; ) >&5 2>/dev/null
10748     lt_status=$?
10749     case x$lt_status in
10750       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10751       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10752       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10753     esac
10754   else :
10755     # compilation failed
10756     lt_cv_dlopen_self_static=no
10757   fi
10758 fi
10759 rm -fr conftest*
10760 
10761 
10762 fi
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10764 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10765     fi
10766 
10767     CPPFLAGS="$save_CPPFLAGS"
10768     LDFLAGS="$save_LDFLAGS"
10769     LIBS="$save_LIBS"
10770     ;;
10771   esac
10772 
10773   case $lt_cv_dlopen_self in
10774   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10775   *) enable_dlopen_self=unknown ;;
10776   esac
10777 
10778   case $lt_cv_dlopen_self_static in
10779   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10780   *) enable_dlopen_self_static=unknown ;;
10781   esac
10782 fi
10783 
10784 
10785 
10786 
10787 
10788 
10789 
10790 
10791 
10792 
10793 
10794 
10795 
10796 
10797 
10798 
10799 
10800 striplib=
10801 old_striplib=
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10803 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10804 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10805   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10806   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10808 $as_echo "yes" >&6; }
10809 else
10810 # FIXME - insert some real tests, host_os isn't really good enough
10811   case $host_os in
10812   darwin*)
10813     if test -n "$STRIP" ; then
10814       striplib="$STRIP -x"
10815       old_striplib="$STRIP -S"
10816       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10817 $as_echo "yes" >&6; }
10818     else
10819       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10820 $as_echo "no" >&6; }
10821     fi
10822     ;;
10823   *)
10824     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10825 $as_echo "no" >&6; }
10826     ;;
10827   esac
10828 fi
10829 
10830 
10831 
10832 
10833 
10834 
10835 
10836 
10837 
10838 
10839 
10840 
10841   # Report which library types will actually be built
10842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10843 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10845 $as_echo "$can_build_shared" >&6; }
10846 
10847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10848 $as_echo_n "checking whether to build shared libraries... " >&6; }
10849   test "$can_build_shared" = "no" && enable_shared=no
10850 
10851   # On AIX, shared libraries and static libraries use the same namespace, and
10852   # are all built from PIC.
10853   case $host_os in
10854   aix3*)
10855     test "$enable_shared" = yes && enable_static=no
10856     if test -n "$RANLIB"; then
10857       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10858       postinstall_cmds='$RANLIB $lib'
10859     fi
10860     ;;
10861 
10862   aix[4-9]*)
10863     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10864       test "$enable_shared" = yes && enable_static=no
10865     fi
10866     ;;
10867   esac
10868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10869 $as_echo "$enable_shared" >&6; }
10870 
10871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10872 $as_echo_n "checking whether to build static libraries... " >&6; }
10873   # Make sure either enable_shared or enable_static is yes.
10874   test "$enable_shared" = yes || enable_static=yes
10875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10876 $as_echo "$enable_static" >&6; }
10877 
10878 
10879 
10880 
10881 fi
10882 ac_ext=c
10883 ac_cpp='$CPP $CPPFLAGS'
10884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10887 
10888 CC="$lt_save_CC"
10889 
10890 
10891 
10892 
10893 
10894 
10895 
10896 
10897 
10898 
10899 
10900 
10901 
10902         ac_config_commands="$ac_config_commands libtool"
10903 
10904 
10905 
10906 
10907 # Only expand once:
10908 
10909 
10910 
10911 ac_config_files="$ac_config_files Makefile json.pc json-c.pc tests/Makefile json-c-uninstalled.pc"
10912 
10913 
10914 cat >confcache <<\_ACEOF
10915 # This file is a shell script that caches the results of configure
10916 # tests run on this system so they can be shared between configure
10917 # scripts and configure runs, see configure's option --config-cache.
10918 # It is not useful on other systems.  If it contains results you don't
10919 # want to keep, you may remove or edit it.
10920 #
10921 # config.status only pays attention to the cache file if you give it
10922 # the --recheck option to rerun configure.
10923 #
10924 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10925 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10926 # following values.
10927 
10928 _ACEOF
10929 
10930 # The following way of writing the cache mishandles newlines in values,
10931 # but we know of no workaround that is simple, portable, and efficient.
10932 # So, we kill variables containing newlines.
10933 # Ultrix sh set writes to stderr and can't be redirected directly,
10934 # and sets the high bit in the cache file unless we assign to the vars.
10935 (
10936   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10937     eval ac_val=\$$ac_var
10938     case $ac_val in #(
10939     *${as_nl}*)
10940       case $ac_var in #(
10941       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10942 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10943       esac
10944       case $ac_var in #(
10945       _ | IFS | as_nl) ;; #(
10946       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10947       *) { eval $ac_var=; unset $ac_var;} ;;
10948       esac ;;
10949     esac
10950   done
10951 
10952   (set) 2>&1 |
10953     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10954     *${as_nl}ac_space=\ *)
10955       # `set' does not quote correctly, so add quotes: double-quote
10956       # substitution turns \\\\ into \\, and sed turns \\ into \.
10957       sed -n \
10958         "s/'/'\\\\''/g;
10959           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10960       ;; #(
10961     *)
10962       # `set' quotes correctly as required by POSIX, so do not add quotes.
10963       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10964       ;;
10965     esac |
10966     sort
10967 ) |
10968   sed '
10969      /^ac_cv_env_/b end
10970      t clear
10971      :clear
10972      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10973      t end
10974      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10975      :end' >>confcache
10976 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10977   if test -w "$cache_file"; then
10978     if test "x$cache_file" != "x/dev/null"; then
10979       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10980 $as_echo "$as_me: updating cache $cache_file" >&6;}
10981       if test ! -f "$cache_file" || test -h "$cache_file"; then
10982         cat confcache >"$cache_file"
10983       else
10984         case $cache_file in #(
10985         */* | ?:*)
10986           mv -f confcache "$cache_file"$$ &&
10987           mv -f "$cache_file"$$ "$cache_file" ;; #(
10988         *)
10989           mv -f confcache "$cache_file" ;;
10990         esac
10991       fi
10992     fi
10993   else
10994     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10995 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10996   fi
10997 fi
10998 rm -f confcache
10999 
11000 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11001 # Let make expand exec_prefix.
11002 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11003 
11004 DEFS=-DHAVE_CONFIG_H
11005 
11006 ac_libobjs=
11007 ac_ltlibobjs=
11008 U=
11009 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11010   # 1. Remove the extension, and $U if already installed.
11011   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11012   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11013   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11014   #    will be set to the directory where LIBOBJS objects are built.
11015   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11016   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11017 done
11018 LIBOBJS=$ac_libobjs
11019 
11020 LTLIBOBJS=$ac_ltlibobjs
11021 
11022 
11023  if test -n "$EXEEXT"; then
11024   am__EXEEXT_TRUE=
11025   am__EXEEXT_FALSE='#'
11026 else
11027   am__EXEEXT_TRUE='#'
11028   am__EXEEXT_FALSE=
11029 fi
11030 
11031 if test -z "${ENABLE_OLDNAME_COMPAT_TRUE}" && test -z "${ENABLE_OLDNAME_COMPAT_FALSE}"; then
11032   as_fn_error $? "conditional \"ENABLE_OLDNAME_COMPAT\" was never defined.
11033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11034 fi
11035 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11036   as_fn_error $? "conditional \"AMDEP\" was never defined.
11037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11038 fi
11039 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11040   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11042 fi
11043 
11044 : "${CONFIG_STATUS=./config.status}"
11045 ac_write_fail=0
11046 ac_clean_files_save=$ac_clean_files
11047 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11049 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11050 as_write_fail=0
11051 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11052 #! $SHELL
11053 # Generated by $as_me.
11054 # Run this file to recreate the current configuration.
11055 # Compiler output produced by configure, useful for debugging
11056 # configure, is in config.log if it exists.
11057 
11058 debug=false
11059 ac_cs_recheck=false
11060 ac_cs_silent=false
11061 
11062 SHELL=\${CONFIG_SHELL-$SHELL}
11063 export SHELL
11064 _ASEOF
11065 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11066 ## -------------------- ##
11067 ## M4sh Initialization. ##
11068 ## -------------------- ##
11069 
11070 # Be more Bourne compatible
11071 DUALCASE=1; export DUALCASE # for MKS sh
11072 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11073   emulate sh
11074   NULLCMD=:
11075   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11076   # is contrary to our usage.  Disable this feature.
11077   alias -g '${1+"$@"}'='"$@"'
11078   setopt NO_GLOB_SUBST
11079 else
11080   case `(set -o) 2>/dev/null` in #(
11081   *posix*) :
11082     set -o posix ;; #(
11083   *) :
11084      ;;
11085 esac
11086 fi
11087 
11088 
11089 as_nl='
11090 '
11091 export as_nl
11092 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11093 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11094 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11095 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11096 # Prefer a ksh shell builtin over an external printf program on Solaris,
11097 # but without wasting forks for bash or zsh.
11098 if test -z "$BASH_VERSION$ZSH_VERSION" \
11099     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11100   as_echo='print -r --'
11101   as_echo_n='print -rn --'
11102 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11103   as_echo='printf %s\n'
11104   as_echo_n='printf %s'
11105 else
11106   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11107     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11108     as_echo_n='/usr/ucb/echo -n'
11109   else
11110     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11111     as_echo_n_body='eval
11112       arg=$1;
11113       case $arg in #(
11114       *"$as_nl"*)
11115         expr "X$arg" : "X\\(.*\\)$as_nl";
11116         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11117       esac;
11118       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11119     '
11120     export as_echo_n_body
11121     as_echo_n='sh -c $as_echo_n_body as_echo'
11122   fi
11123   export as_echo_body
11124   as_echo='sh -c $as_echo_body as_echo'
11125 fi
11126 
11127 # The user is always right.
11128 if test "${PATH_SEPARATOR+set}" != set; then
11129   PATH_SEPARATOR=:
11130   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11131     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11132       PATH_SEPARATOR=';'
11133   }
11134 fi
11135 
11136 
11137 # IFS
11138 # We need space, tab and new line, in precisely that order.  Quoting is
11139 # there to prevent editors from complaining about space-tab.
11140 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11141 # splitting by setting IFS to empty value.)
11142 IFS=" ""        $as_nl"
11143 
11144 # Find who we are.  Look in the path if we contain no directory separator.
11145 as_myself=
11146 case $0 in #((
11147   *[\\/]* ) as_myself=$0 ;;
11148   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11149 for as_dir in $PATH
11150 do
11151   IFS=$as_save_IFS
11152   test -z "$as_dir" && as_dir=.
11153     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11154   done
11155 IFS=$as_save_IFS
11156 
11157      ;;
11158 esac
11159 # We did not find ourselves, most probably we were run as `sh COMMAND'
11160 # in which case we are not to be found in the path.
11161 if test "x$as_myself" = x; then
11162   as_myself=$0
11163 fi
11164 if test ! -f "$as_myself"; then
11165   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11166   exit 1
11167 fi
11168 
11169 # Unset variables that we do not need and which cause bugs (e.g. in
11170 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11171 # suppresses any "Segmentation fault" message there.  '((' could
11172 # trigger a bug in pdksh 5.2.14.
11173 for as_var in BASH_ENV ENV MAIL MAILPATH
11174 do eval test x\${$as_var+set} = xset \
11175   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11176 done
11177 PS1='$ '
11178 PS2='> '
11179 PS4='+ '
11180 
11181 # NLS nuisances.
11182 LC_ALL=C
11183 export LC_ALL
11184 LANGUAGE=C
11185 export LANGUAGE
11186 
11187 # CDPATH.
11188 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11189 
11190 
11191 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11192 # ----------------------------------------
11193 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11194 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11195 # script with STATUS, using 1 if that was 0.
11196 as_fn_error ()
11197 {
11198   as_status=$1; test $as_status -eq 0 && as_status=1
11199   if test "$4"; then
11200     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11201     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11202   fi
11203   $as_echo "$as_me: error: $2" >&2
11204   as_fn_exit $as_status
11205 } # as_fn_error
11206 
11207 
11208 # as_fn_set_status STATUS
11209 # -----------------------
11210 # Set $? to STATUS, without forking.
11211 as_fn_set_status ()
11212 {
11213   return $1
11214 } # as_fn_set_status
11215 
11216 # as_fn_exit STATUS
11217 # -----------------
11218 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11219 as_fn_exit ()
11220 {
11221   set +e
11222   as_fn_set_status $1
11223   exit $1
11224 } # as_fn_exit
11225 
11226 # as_fn_unset VAR
11227 # ---------------
11228 # Portably unset VAR.
11229 as_fn_unset ()
11230 {
11231   { eval $1=; unset $1;}
11232 }
11233 as_unset=as_fn_unset
11234 # as_fn_append VAR VALUE
11235 # ----------------------
11236 # Append the text in VALUE to the end of the definition contained in VAR. Take
11237 # advantage of any shell optimizations that allow amortized linear growth over
11238 # repeated appends, instead of the typical quadratic growth present in naive
11239 # implementations.
11240 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11241   eval 'as_fn_append ()
11242   {
11243     eval $1+=\$2
11244   }'
11245 else
11246   as_fn_append ()
11247   {
11248     eval $1=\$$1\$2
11249   }
11250 fi # as_fn_append
11251 
11252 # as_fn_arith ARG...
11253 # ------------------
11254 # Perform arithmetic evaluation on the ARGs, and store the result in the
11255 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11256 # must be portable across $(()) and expr.
11257 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11258   eval 'as_fn_arith ()
11259   {
112