ea06da0e4d2ba067d1a491d3c6cd612d0f1a0437
[external/libjson-glib.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for json-glib 0.10.4.
4 #
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib>.
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 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib
235 $0: about your system, including any error possibly output
236 $0: before this message. Then install a modern shell, or
237 $0: manually run the script under such a shell if you do
238 $0: have one."
239   fi
240   exit 1
241 fi
242 fi
243 fi
244 SHELL=${CONFIG_SHELL-/bin/sh}
245 export SHELL
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
249
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
253 # as_fn_unset VAR
254 # ---------------
255 # Portably unset VAR.
256 as_fn_unset ()
257 {
258   { eval $1=; unset $1;}
259 }
260 as_unset=as_fn_unset
261
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
265 as_fn_set_status ()
266 {
267   return $1
268 } # as_fn_set_status
269
270 # as_fn_exit STATUS
271 # -----------------
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273 as_fn_exit ()
274 {
275   set +e
276   as_fn_set_status $1
277   exit $1
278 } # as_fn_exit
279
280 # as_fn_mkdir_p
281 # -------------
282 # Create "$as_dir" as a directory, including parents if necessary.
283 as_fn_mkdir_p ()
284 {
285
286   case $as_dir in #(
287   -*) as_dir=./$as_dir;;
288   esac
289   test -d "$as_dir" || eval $as_mkdir_p || {
290     as_dirs=
291     while :; do
292       case $as_dir in #(
293       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294       *) as_qdir=$as_dir;;
295       esac
296       as_dirs="'$as_qdir' $as_dirs"
297       as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299          X"$as_dir" : 'X\(//\)[^/]' \| \
300          X"$as_dir" : 'X\(//\)$' \| \
301          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)[^/].*/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)$/{
312             s//\1/
313             q
314           }
315           /^X\(\/\).*/{
316             s//\1/
317             q
318           }
319           s/.*/./; q'`
320       test -d "$as_dir" && break
321     done
322     test -z "$as_dirs" || eval "mkdir $as_dirs"
323   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
324
325
326 } # as_fn_mkdir_p
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
332 # implementations.
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334   eval 'as_fn_append ()
335   {
336     eval $1+=\$2
337   }'
338 else
339   as_fn_append ()
340   {
341     eval $1=\$$1\$2
342   }
343 fi # as_fn_append
344
345 # as_fn_arith ARG...
346 # ------------------
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351   eval 'as_fn_arith ()
352   {
353     as_val=$(( $* ))
354   }'
355 else
356   as_fn_arith ()
357   {
358     as_val=`expr "$@" || test $? -eq 1`
359   }
360 fi # as_fn_arith
361
362
363 # as_fn_error STATUS ERROR [LINENO LOG_FD]
364 # ----------------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with STATUS, using 1 if that was 0.
368 as_fn_error ()
369 {
370   as_status=$1; test $as_status -eq 0 && as_status=1
371   if test "$4"; then
372     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374   fi
375   $as_echo "$as_me: error: $2" >&2
376   as_fn_exit $as_status
377 } # as_fn_error
378
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380    test "X`expr 00001 : '.*\(...\)'`" = X001; then
381   as_expr=expr
382 else
383   as_expr=false
384 fi
385
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387   as_basename=basename
388 else
389   as_basename=false
390 fi
391
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393   as_dirname=dirname
394 else
395   as_dirname=false
396 fi
397
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400          X"$0" : 'X\(//\)$' \| \
401          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 $as_echo X/"$0" |
403     sed '/^.*\/\([^/][^/]*\)\/*$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\/\)$/{
408             s//\1/
409             q
410           }
411           /^X\/\(\/\).*/{
412             s//\1/
413             q
414           }
415           s/.*/./; q'`
416
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425   as_lineno_1=$LINENO as_lineno_1a=$LINENO
426   as_lineno_2=$LINENO as_lineno_2a=$LINENO
427   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430   sed -n '
431     p
432     /[$]LINENO/=
433   ' <$as_myself |
434     sed '
435       s/[$]LINENO.*/&-/
436       t lineno
437       b
438       :lineno
439       N
440       :loop
441       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442       t loop
443       s/-\n.*//
444     ' >$as_me.lineno &&
445   chmod +x "$as_me.lineno" ||
446     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448   # Don't try to exec as it changes $[0], causing all sort of problems
449   # (the dirname of $[0] is not the place where we might find the
450   # original and so on.  Autoconf is especially sensitive to this).
451   . "./$as_me.lineno"
452   # Exit status is that of the last command.
453   exit
454 }
455
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
458 -n*)
459   case `echo 'xy\c'` in
460   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
461   xy)  ECHO_C='\c';;
462   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463        ECHO_T=' ';;
464   esac;;
465 *)
466   ECHO_N='-n';;
467 esac
468
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471   rm -f conf$$.dir/conf$$.file
472 else
473   rm -f conf$$.dir
474   mkdir conf$$.dir 2>/dev/null
475 fi
476 if (echo >conf$$.file) 2>/dev/null; then
477   if ln -s conf$$.file conf$$ 2>/dev/null; then
478     as_ln_s='ln -s'
479     # ... but there are two gotchas:
480     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482     # In both cases, we have to default to `cp -p'.
483     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484       as_ln_s='cp -p'
485   elif ln conf$$.file conf$$ 2>/dev/null; then
486     as_ln_s=ln
487   else
488     as_ln_s='cp -p'
489   fi
490 else
491   as_ln_s='cp -p'
492 fi
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
495
496 if mkdir -p . 2>/dev/null; then
497   as_mkdir_p='mkdir -p "$as_dir"'
498 else
499   test -d ./-p && rmdir ./-p
500   as_mkdir_p=false
501 fi
502
503 if test -x / >/dev/null 2>&1; then
504   as_test_x='test -x'
505 else
506   if ls -dL / >/dev/null 2>&1; then
507     as_ls_L_option=L
508   else
509     as_ls_L_option=
510   fi
511   as_test_x='
512     eval sh -c '\''
513       if test -d "$1"; then
514         test -d "$1/.";
515       else
516         case $1 in #(
517         -*)set "./$1";;
518         esac;
519         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520         ???[sx]*):;;*)false;;esac;fi
521     '\'' sh
522   '
523 fi
524 as_executable_p=$as_test_x
525
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534 # Check that we are running under the correct shell.
535 SHELL=${CONFIG_SHELL-/bin/sh}
536
537 case X$lt_ECHO in
538 X*--fallback-echo)
539   # Remove one level of quotation (which was required for Make).
540   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541   ;;
542 esac
543
544 ECHO=${lt_ECHO-echo}
545 if test "X$1" = X--no-reexec; then
546   # Discard the --no-reexec flag, and continue.
547   shift
548 elif test "X$1" = X--fallback-echo; then
549   # Avoid inline document here, it may be left over
550   :
551 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552   # Yippee, $ECHO works!
553   :
554 else
555   # Restart under the correct shell.
556   exec $SHELL "$0" --no-reexec ${1+"$@"}
557 fi
558
559 if test "X$1" = X--fallback-echo; then
560   # used as fallback echo
561   shift
562   cat <<_LT_EOF
563 $*
564 _LT_EOF
565   exit 0
566 fi
567
568 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 # if CDPATH is set.
570 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572 if test -z "$lt_ECHO"; then
573   if test "X${echo_test_string+set}" != Xset; then
574     # find a string as large as possible, as long as the shell can cope with it
575     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579       then
580         break
581       fi
582     done
583   fi
584
585   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587      test "X$echo_testing_string" = "X$echo_test_string"; then
588     :
589   else
590     # The Solaris, AIX, and Digital Unix default echo programs unquote
591     # backslashes.  This makes it impossible to quote backslashes using
592     #   echo "$something" | sed 's/\\/\\\\/g'
593     #
594     # So, first we look for a working echo in the user's PATH.
595
596     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597     for dir in $PATH /usr/ucb; do
598       IFS="$lt_save_ifs"
599       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602          test "X$echo_testing_string" = "X$echo_test_string"; then
603         ECHO="$dir/echo"
604         break
605       fi
606     done
607     IFS="$lt_save_ifs"
608
609     if test "X$ECHO" = Xecho; then
610       # We didn't find a better echo, so look for alternatives.
611       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613          test "X$echo_testing_string" = "X$echo_test_string"; then
614         # This shell has a builtin print -r that does the trick.
615         ECHO='print -r'
616       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617            test "X$CONFIG_SHELL" != X/bin/ksh; then
618         # If we have ksh, try running configure again with it.
619         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620         export ORIGINAL_CONFIG_SHELL
621         CONFIG_SHELL=/bin/ksh
622         export CONFIG_SHELL
623         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624       else
625         # Try using printf.
626         ECHO='printf %s\n'
627         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629            test "X$echo_testing_string" = "X$echo_test_string"; then
630           # Cool, printf works
631           :
632         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633              test "X$echo_testing_string" = 'X\t' &&
634              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635              test "X$echo_testing_string" = "X$echo_test_string"; then
636           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637           export CONFIG_SHELL
638           SHELL="$CONFIG_SHELL"
639           export SHELL
640           ECHO="$CONFIG_SHELL $0 --fallback-echo"
641         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642              test "X$echo_testing_string" = 'X\t' &&
643              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644              test "X$echo_testing_string" = "X$echo_test_string"; then
645           ECHO="$CONFIG_SHELL $0 --fallback-echo"
646         else
647           # maybe with a smaller string...
648           prev=:
649
650           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652             then
653               break
654             fi
655             prev="$cmd"
656           done
657
658           if test "$prev" != 'sed 50q "$0"'; then
659             echo_test_string=`eval $prev`
660             export echo_test_string
661             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662           else
663             # Oops.  We lost completely, so just stick with echo.
664             ECHO=echo
665           fi
666         fi
667       fi
668     fi
669   fi
670 fi
671
672 # Copy echo and quote the copy suitably for passing to libtool from
673 # the Makefile, instead of quoting the original, which is used later.
674 lt_ECHO=$ECHO
675 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677 fi
678
679
680
681
682 test -n "$DJDIR" || exec 7<&0 </dev/null
683 exec 6>&1
684
685 # Name of the host.
686 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
687 # so uname gets run too.
688 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690 #
691 # Initializations.
692 #
693 ac_default_prefix=/usr/local
694 ac_clean_files=
695 ac_config_libobj_dir=.
696 LIBOBJS=
697 cross_compiling=no
698 subdirs=
699 MFLAGS=
700 MAKEFLAGS=
701
702 # Identity of this package.
703 PACKAGE_NAME='json-glib'
704 PACKAGE_TARNAME='json-glib'
705 PACKAGE_VERSION='0.10.4'
706 PACKAGE_STRING='json-glib 0.10.4'
707 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib'
708 PACKAGE_URL=''
709
710 ac_unique_file="json-glib/json-glib.h"
711 # Factoring default headers for most tests.
712 ac_includes_default="\
713 #include <stdio.h>
714 #ifdef HAVE_SYS_TYPES_H
715 # include <sys/types.h>
716 #endif
717 #ifdef HAVE_SYS_STAT_H
718 # include <sys/stat.h>
719 #endif
720 #ifdef STDC_HEADERS
721 # include <stdlib.h>
722 # include <stddef.h>
723 #else
724 # ifdef HAVE_STDLIB_H
725 #  include <stdlib.h>
726 # endif
727 #endif
728 #ifdef HAVE_STRING_H
729 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730 #  include <memory.h>
731 # endif
732 # include <string.h>
733 #endif
734 #ifdef HAVE_STRINGS_H
735 # include <strings.h>
736 #endif
737 #ifdef HAVE_INTTYPES_H
738 # include <inttypes.h>
739 #endif
740 #ifdef HAVE_STDINT_H
741 # include <stdint.h>
742 #endif
743 #ifdef HAVE_UNISTD_H
744 # include <unistd.h>
745 #endif"
746
747 ac_header_list=
748 ac_subst_vars='am__EXEEXT_FALSE
749 am__EXEEXT_TRUE
750 LTLIBOBJS
751 USE_SHAVE_FALSE
752 USE_SHAVE_TRUE
753 AM_BACKSLASH
754 AM_DEFAULT_VERBOSITY
755 HAVE_INTROSPECTION_FALSE
756 HAVE_INTROSPECTION_TRUE
757 INTROSPECTION_TYPELIBDIR
758 INTROSPECTION_GIRDIR
759 INTROSPECTION_GENERATE
760 INTROSPECTION_COMPILER
761 INTROSPECTION_SCANNER
762 GTK_DOC_USE_REBASE_FALSE
763 GTK_DOC_USE_REBASE_TRUE
764 GTK_DOC_USE_LIBTOOL_FALSE
765 GTK_DOC_USE_LIBTOOL_TRUE
766 GTK_DOC_BUILD_PDF_FALSE
767 GTK_DOC_BUILD_PDF_TRUE
768 GTK_DOC_BUILD_HTML_FALSE
769 GTK_DOC_BUILD_HTML_TRUE
770 ENABLE_GTK_DOC_FALSE
771 ENABLE_GTK_DOC_TRUE
772 HTML_DIR
773 GTKDOC_MKPDF
774 GTKDOC_REBASE
775 GTKDOC_CHECK
776 MAINTAINER_CFLAGS
777 JSON_DEBUG_CFLAGS
778 ENABLE_GLIB_TEST_FALSE
779 ENABLE_GLIB_TEST_TRUE
780 JSON_LIBS
781 JSON_CFLAGS
782 GLIB_PREFIX
783 LIBOBJS
784 JSON_LT_LDFLAGS
785 JSON_RELEASE_STATUS
786 JSON_VERSION
787 JSON_MINOR_VERSION
788 JSON_MICRO_VERSION
789 JSON_MAJOR_VERSION
790 CPP
791 OTOOL64
792 OTOOL
793 LIPO
794 NMEDIT
795 DSYMUTIL
796 lt_ECHO
797 RANLIB
798 AR
799 OBJDUMP
800 LN_S
801 NM
802 ac_ct_DUMPBIN
803 DUMPBIN
804 LD
805 FGREP
806 EGREP
807 GREP
808 SED
809 host_os
810 host_vendor
811 host_cpu
812 host
813 build_os
814 build_vendor
815 build_cpu
816 build
817 LIBTOOL
818 GLIB_MKENUMS
819 GOBJECT_QUERY
820 GLIB_GENMARSHAL
821 GLIB_LIBS
822 GLIB_CFLAGS
823 am__fastdepCC_FALSE
824 am__fastdepCC_TRUE
825 CCDEPMODE
826 AMDEPBACKSLASH
827 AMDEP_FALSE
828 AMDEP_TRUE
829 am__quote
830 am__include
831 DEPDIR
832 OBJEXT
833 EXEEXT
834 ac_ct_CC
835 CPPFLAGS
836 LDFLAGS
837 CFLAGS
838 CC
839 PKG_CONFIG_LIBDIR
840 PKG_CONFIG_PATH
841 PKG_CONFIG
842 am__untar
843 am__tar
844 AMTAR
845 am__leading_dot
846 SET_MAKE
847 AWK
848 mkdir_p
849 MKDIR_P
850 INSTALL_STRIP_PROGRAM
851 STRIP
852 install_sh
853 MAKEINFO
854 AUTOHEADER
855 AUTOMAKE
856 AUTOCONF
857 ACLOCAL
858 VERSION
859 PACKAGE
860 CYGPATH_W
861 am__isrc
862 INSTALL_DATA
863 INSTALL_SCRIPT
864 INSTALL_PROGRAM
865 target_alias
866 host_alias
867 build_alias
868 LIBS
869 ECHO_T
870 ECHO_N
871 ECHO_C
872 DEFS
873 mandir
874 localedir
875 libdir
876 psdir
877 pdfdir
878 dvidir
879 htmldir
880 infodir
881 docdir
882 oldincludedir
883 includedir
884 localstatedir
885 sharedstatedir
886 sysconfdir
887 datadir
888 datarootdir
889 libexecdir
890 sbindir
891 bindir
892 program_transform_name
893 prefix
894 exec_prefix
895 PACKAGE_URL
896 PACKAGE_BUGREPORT
897 PACKAGE_STRING
898 PACKAGE_VERSION
899 PACKAGE_TARNAME
900 PACKAGE_NAME
901 PATH_SEPARATOR
902 SHELL'
903 ac_subst_files=''
904 ac_user_opts='
905 enable_option_checking
906 enable_static
907 enable_glibtest
908 enable_dependency_tracking
909 enable_shared
910 with_pic
911 enable_fast_install
912 with_gnu_ld
913 enable_libtool_lock
914 enable_debug
915 enable_maintainer_flags
916 with_html_dir
917 enable_gtk_doc
918 enable_gtk_doc_html
919 enable_gtk_doc_pdf
920 enable_introspection
921 enable_silent_rules
922 '
923       ac_precious_vars='build_alias
924 host_alias
925 target_alias
926 PKG_CONFIG
927 PKG_CONFIG_PATH
928 PKG_CONFIG_LIBDIR
929 CC
930 CFLAGS
931 LDFLAGS
932 LIBS
933 CPPFLAGS
934 CPP
935 JSON_CFLAGS
936 JSON_LIBS'
937
938
939 # Initialize some variables set by options.
940 ac_init_help=
941 ac_init_version=false
942 ac_unrecognized_opts=
943 ac_unrecognized_sep=
944 # The variables have the same names as the options, with
945 # dashes changed to underlines.
946 cache_file=/dev/null
947 exec_prefix=NONE
948 no_create=
949 no_recursion=
950 prefix=NONE
951 program_prefix=NONE
952 program_suffix=NONE
953 program_transform_name=s,x,x,
954 silent=
955 site=
956 srcdir=
957 verbose=
958 x_includes=NONE
959 x_libraries=NONE
960
961 # Installation directory options.
962 # These are left unexpanded so users can "make install exec_prefix=/foo"
963 # and all the variables that are supposed to be based on exec_prefix
964 # by default will actually change.
965 # Use braces instead of parens because sh, perl, etc. also accept them.
966 # (The list follows the same order as the GNU Coding Standards.)
967 bindir='${exec_prefix}/bin'
968 sbindir='${exec_prefix}/sbin'
969 libexecdir='${exec_prefix}/libexec'
970 datarootdir='${prefix}/share'
971 datadir='${datarootdir}'
972 sysconfdir='${prefix}/etc'
973 sharedstatedir='${prefix}/com'
974 localstatedir='${prefix}/var'
975 includedir='${prefix}/include'
976 oldincludedir='/usr/include'
977 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
978 infodir='${datarootdir}/info'
979 htmldir='${docdir}'
980 dvidir='${docdir}'
981 pdfdir='${docdir}'
982 psdir='${docdir}'
983 libdir='${exec_prefix}/lib'
984 localedir='${datarootdir}/locale'
985 mandir='${datarootdir}/man'
986
987 ac_prev=
988 ac_dashdash=
989 for ac_option
990 do
991   # If the previous option needs an argument, assign it.
992   if test -n "$ac_prev"; then
993     eval $ac_prev=\$ac_option
994     ac_prev=
995     continue
996   fi
997
998   case $ac_option in
999   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1000   *=)   ac_optarg= ;;
1001   *)    ac_optarg=yes ;;
1002   esac
1003
1004   # Accept the important Cygnus configure options, so we can diagnose typos.
1005
1006   case $ac_dashdash$ac_option in
1007   --)
1008     ac_dashdash=yes ;;
1009
1010   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1011     ac_prev=bindir ;;
1012   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1013     bindir=$ac_optarg ;;
1014
1015   -build | --build | --buil | --bui | --bu)
1016     ac_prev=build_alias ;;
1017   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1018     build_alias=$ac_optarg ;;
1019
1020   -cache-file | --cache-file | --cache-fil | --cache-fi \
1021   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1022     ac_prev=cache_file ;;
1023   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1024   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1025     cache_file=$ac_optarg ;;
1026
1027   --config-cache | -C)
1028     cache_file=config.cache ;;
1029
1030   -datadir | --datadir | --datadi | --datad)
1031     ac_prev=datadir ;;
1032   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1033     datadir=$ac_optarg ;;
1034
1035   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1036   | --dataroo | --dataro | --datar)
1037     ac_prev=datarootdir ;;
1038   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1039   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1040     datarootdir=$ac_optarg ;;
1041
1042   -disable-* | --disable-*)
1043     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1044     # Reject names that are not valid shell variable names.
1045     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046       as_fn_error $? "invalid feature name: $ac_useropt"
1047     ac_useropt_orig=$ac_useropt
1048     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049     case $ac_user_opts in
1050       *"
1051 "enable_$ac_useropt"
1052 "*) ;;
1053       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1054          ac_unrecognized_sep=', ';;
1055     esac
1056     eval enable_$ac_useropt=no ;;
1057
1058   -docdir | --docdir | --docdi | --doc | --do)
1059     ac_prev=docdir ;;
1060   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1061     docdir=$ac_optarg ;;
1062
1063   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1064     ac_prev=dvidir ;;
1065   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1066     dvidir=$ac_optarg ;;
1067
1068   -enable-* | --enable-*)
1069     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1070     # Reject names that are not valid shell variable names.
1071     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072       as_fn_error $? "invalid feature name: $ac_useropt"
1073     ac_useropt_orig=$ac_useropt
1074     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075     case $ac_user_opts in
1076       *"
1077 "enable_$ac_useropt"
1078 "*) ;;
1079       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080          ac_unrecognized_sep=', ';;
1081     esac
1082     eval enable_$ac_useropt=\$ac_optarg ;;
1083
1084   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086   | --exec | --exe | --ex)
1087     ac_prev=exec_prefix ;;
1088   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090   | --exec=* | --exe=* | --ex=*)
1091     exec_prefix=$ac_optarg ;;
1092
1093   -gas | --gas | --ga | --g)
1094     # Obsolete; use --with-gas.
1095     with_gas=yes ;;
1096
1097   -help | --help | --hel | --he | -h)
1098     ac_init_help=long ;;
1099   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100     ac_init_help=recursive ;;
1101   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102     ac_init_help=short ;;
1103
1104   -host | --host | --hos | --ho)
1105     ac_prev=host_alias ;;
1106   -host=* | --host=* | --hos=* | --ho=*)
1107     host_alias=$ac_optarg ;;
1108
1109   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110     ac_prev=htmldir ;;
1111   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112   | --ht=*)
1113     htmldir=$ac_optarg ;;
1114
1115   -includedir | --includedir | --includedi | --included | --include \
1116   | --includ | --inclu | --incl | --inc)
1117     ac_prev=includedir ;;
1118   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119   | --includ=* | --inclu=* | --incl=* | --inc=*)
1120     includedir=$ac_optarg ;;
1121
1122   -infodir | --infodir | --infodi | --infod | --info | --inf)
1123     ac_prev=infodir ;;
1124   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125     infodir=$ac_optarg ;;
1126
1127   -libdir | --libdir | --libdi | --libd)
1128     ac_prev=libdir ;;
1129   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130     libdir=$ac_optarg ;;
1131
1132   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133   | --libexe | --libex | --libe)
1134     ac_prev=libexecdir ;;
1135   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136   | --libexe=* | --libex=* | --libe=*)
1137     libexecdir=$ac_optarg ;;
1138
1139   -localedir | --localedir | --localedi | --localed | --locale)
1140     ac_prev=localedir ;;
1141   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142     localedir=$ac_optarg ;;
1143
1144   -localstatedir | --localstatedir | --localstatedi | --localstated \
1145   | --localstate | --localstat | --localsta | --localst | --locals)
1146     ac_prev=localstatedir ;;
1147   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149     localstatedir=$ac_optarg ;;
1150
1151   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152     ac_prev=mandir ;;
1153   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154     mandir=$ac_optarg ;;
1155
1156   -nfp | --nfp | --nf)
1157     # Obsolete; use --without-fp.
1158     with_fp=no ;;
1159
1160   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161   | --no-cr | --no-c | -n)
1162     no_create=yes ;;
1163
1164   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166     no_recursion=yes ;;
1167
1168   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170   | --oldin | --oldi | --old | --ol | --o)
1171     ac_prev=oldincludedir ;;
1172   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175     oldincludedir=$ac_optarg ;;
1176
1177   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178     ac_prev=prefix ;;
1179   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180     prefix=$ac_optarg ;;
1181
1182   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183   | --program-pre | --program-pr | --program-p)
1184     ac_prev=program_prefix ;;
1185   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187     program_prefix=$ac_optarg ;;
1188
1189   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190   | --program-suf | --program-su | --program-s)
1191     ac_prev=program_suffix ;;
1192   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194     program_suffix=$ac_optarg ;;
1195
1196   -program-transform-name | --program-transform-name \
1197   | --program-transform-nam | --program-transform-na \
1198   | --program-transform-n | --program-transform- \
1199   | --program-transform | --program-transfor \
1200   | --program-transfo | --program-transf \
1201   | --program-trans | --program-tran \
1202   | --progr-tra | --program-tr | --program-t)
1203     ac_prev=program_transform_name ;;
1204   -program-transform-name=* | --program-transform-name=* \
1205   | --program-transform-nam=* | --program-transform-na=* \
1206   | --program-transform-n=* | --program-transform-=* \
1207   | --program-transform=* | --program-transfor=* \
1208   | --program-transfo=* | --program-transf=* \
1209   | --program-trans=* | --program-tran=* \
1210   | --progr-tra=* | --program-tr=* | --program-t=*)
1211     program_transform_name=$ac_optarg ;;
1212
1213   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214     ac_prev=pdfdir ;;
1215   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216     pdfdir=$ac_optarg ;;
1217
1218   -psdir | --psdir | --psdi | --psd | --ps)
1219     ac_prev=psdir ;;
1220   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221     psdir=$ac_optarg ;;
1222
1223   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224   | -silent | --silent | --silen | --sile | --sil)
1225     silent=yes ;;
1226
1227   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228     ac_prev=sbindir ;;
1229   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230   | --sbi=* | --sb=*)
1231     sbindir=$ac_optarg ;;
1232
1233   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235   | --sharedst | --shareds | --shared | --share | --shar \
1236   | --sha | --sh)
1237     ac_prev=sharedstatedir ;;
1238   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241   | --sha=* | --sh=*)
1242     sharedstatedir=$ac_optarg ;;
1243
1244   -site | --site | --sit)
1245     ac_prev=site ;;
1246   -site=* | --site=* | --sit=*)
1247     site=$ac_optarg ;;
1248
1249   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250     ac_prev=srcdir ;;
1251   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252     srcdir=$ac_optarg ;;
1253
1254   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255   | --syscon | --sysco | --sysc | --sys | --sy)
1256     ac_prev=sysconfdir ;;
1257   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259     sysconfdir=$ac_optarg ;;
1260
1261   -target | --target | --targe | --targ | --tar | --ta | --t)
1262     ac_prev=target_alias ;;
1263   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264     target_alias=$ac_optarg ;;
1265
1266   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1267     verbose=yes ;;
1268
1269   -version | --version | --versio | --versi | --vers | -V)
1270     ac_init_version=: ;;
1271
1272   -with-* | --with-*)
1273     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274     # Reject names that are not valid shell variable names.
1275     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276       as_fn_error $? "invalid package name: $ac_useropt"
1277     ac_useropt_orig=$ac_useropt
1278     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279     case $ac_user_opts in
1280       *"
1281 "with_$ac_useropt"
1282 "*) ;;
1283       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284          ac_unrecognized_sep=', ';;
1285     esac
1286     eval with_$ac_useropt=\$ac_optarg ;;
1287
1288   -without-* | --without-*)
1289     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290     # Reject names that are not valid shell variable names.
1291     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292       as_fn_error $? "invalid package name: $ac_useropt"
1293     ac_useropt_orig=$ac_useropt
1294     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295     case $ac_user_opts in
1296       *"
1297 "with_$ac_useropt"
1298 "*) ;;
1299       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300          ac_unrecognized_sep=', ';;
1301     esac
1302     eval with_$ac_useropt=no ;;
1303
1304   --x)
1305     # Obsolete; use --with-x.
1306     with_x=yes ;;
1307
1308   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1309   | --x-incl | --x-inc | --x-in | --x-i)
1310     ac_prev=x_includes ;;
1311   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1312   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1313     x_includes=$ac_optarg ;;
1314
1315   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1316   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1317     ac_prev=x_libraries ;;
1318   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1319   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1320     x_libraries=$ac_optarg ;;
1321
1322   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1323 Try \`$0 --help' for more information"
1324     ;;
1325
1326   *=*)
1327     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1328     # Reject names that are not valid shell variable names.
1329     case $ac_envvar in #(
1330       '' | [0-9]* | *[!_$as_cr_alnum]* )
1331       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1332     esac
1333     eval $ac_envvar=\$ac_optarg
1334     export $ac_envvar ;;
1335
1336   *)
1337     # FIXME: should be removed in autoconf 3.0.
1338     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1340       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1342     ;;
1343
1344   esac
1345 done
1346
1347 if test -n "$ac_prev"; then
1348   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1349   as_fn_error $? "missing argument to $ac_option"
1350 fi
1351
1352 if test -n "$ac_unrecognized_opts"; then
1353   case $enable_option_checking in
1354     no) ;;
1355     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1356     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1357   esac
1358 fi
1359
1360 # Check all directory arguments for consistency.
1361 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362                 datadir sysconfdir sharedstatedir localstatedir includedir \
1363                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364                 libdir localedir mandir
1365 do
1366   eval ac_val=\$$ac_var
1367   # Remove trailing slashes.
1368   case $ac_val in
1369     */ )
1370       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1371       eval $ac_var=\$ac_val;;
1372   esac
1373   # Be sure to have absolute directory names.
1374   case $ac_val in
1375     [\\/$]* | ?:[\\/]* )  continue;;
1376     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1377   esac
1378   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1379 done
1380
1381 # There might be people who depend on the old broken behavior: `$host'
1382 # used to hold the argument of --host etc.
1383 # FIXME: To remove some day.
1384 build=$build_alias
1385 host=$host_alias
1386 target=$target_alias
1387
1388 # FIXME: To remove some day.
1389 if test "x$host_alias" != x; then
1390   if test "x$build_alias" = x; then
1391     cross_compiling=maybe
1392     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1393     If a cross compiler is detected then cross compile mode will be used" >&2
1394   elif test "x$build_alias" != "x$host_alias"; then
1395     cross_compiling=yes
1396   fi
1397 fi
1398
1399 ac_tool_prefix=
1400 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1401
1402 test "$silent" = yes && exec 6>/dev/null
1403
1404
1405 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1406 ac_ls_di=`ls -di .` &&
1407 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1408   as_fn_error $? "working directory cannot be determined"
1409 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410   as_fn_error $? "pwd does not report name of working directory"
1411
1412
1413 # Find the source files, if location was not specified.
1414 if test -z "$srcdir"; then
1415   ac_srcdir_defaulted=yes
1416   # Try the directory containing this script, then the parent directory.
1417   ac_confdir=`$as_dirname -- "$as_myself" ||
1418 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419          X"$as_myself" : 'X\(//\)[^/]' \| \
1420          X"$as_myself" : 'X\(//\)$' \| \
1421          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1422 $as_echo X"$as_myself" |
1423     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1424             s//\1/
1425             q
1426           }
1427           /^X\(\/\/\)[^/].*/{
1428             s//\1/
1429             q
1430           }
1431           /^X\(\/\/\)$/{
1432             s//\1/
1433             q
1434           }
1435           /^X\(\/\).*/{
1436             s//\1/
1437             q
1438           }
1439           s/.*/./; q'`
1440   srcdir=$ac_confdir
1441   if test ! -r "$srcdir/$ac_unique_file"; then
1442     srcdir=..
1443   fi
1444 else
1445   ac_srcdir_defaulted=no
1446 fi
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1449   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1450 fi
1451 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1452 ac_abs_confdir=`(
1453         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1454         pwd)`
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1457   srcdir=.
1458 fi
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1462 case $srcdir in
1463 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1464 esac
1465 for ac_var in $ac_precious_vars; do
1466   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467   eval ac_env_${ac_var}_value=\$${ac_var}
1468   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470 done
1471
1472 #
1473 # Report the --help message.
1474 #
1475 if test "$ac_init_help" = "long"; then
1476   # Omit some internal or obsolete options to make the list less imposing.
1477   # This message is too long to be a string in the A/UX 3.1 sh.
1478   cat <<_ACEOF
1479 \`configure' configures json-glib 0.10.4 to adapt to many kinds of systems.
1480
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1482
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE.  See below for descriptions of some of the useful variables.
1485
1486 Defaults for the options are specified in brackets.
1487
1488 Configuration:
1489   -h, --help              display this help and exit
1490       --help=short        display options specific to this package
1491       --help=recursive    display the short help of all the included packages
1492   -V, --version           display version information and exit
1493   -q, --quiet, --silent   do not print \`checking ...' messages
1494       --cache-file=FILE   cache test results in FILE [disabled]
1495   -C, --config-cache      alias for \`--cache-file=config.cache'
1496   -n, --no-create         do not create output files
1497       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1498
1499 Installation directories:
1500   --prefix=PREFIX         install architecture-independent files in PREFIX
1501                           [$ac_default_prefix]
1502   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1503                           [PREFIX]
1504
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1509
1510 For better control, use the options below.
1511
1512 Fine tuning of the installation directories:
1513   --bindir=DIR            user executables [EPREFIX/bin]
1514   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1515   --libexecdir=DIR        program executables [EPREFIX/libexec]
1516   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1517   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1518   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1519   --libdir=DIR            object code libraries [EPREFIX/lib]
1520   --includedir=DIR        C header files [PREFIX/include]
1521   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1522   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1523   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1524   --infodir=DIR           info documentation [DATAROOTDIR/info]
1525   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1526   --mandir=DIR            man documentation [DATAROOTDIR/man]
1527   --docdir=DIR            documentation root [DATAROOTDIR/doc/json-glib]
1528   --htmldir=DIR           html documentation [DOCDIR]
1529   --dvidir=DIR            dvi documentation [DOCDIR]
1530   --pdfdir=DIR            pdf documentation [DOCDIR]
1531   --psdir=DIR             ps documentation [DOCDIR]
1532 _ACEOF
1533
1534   cat <<\_ACEOF
1535
1536 Program names:
1537   --program-prefix=PREFIX            prepend PREFIX to installed program names
1538   --program-suffix=SUFFIX            append SUFFIX to installed program names
1539   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1540
1541 System types:
1542   --build=BUILD     configure for building on BUILD [guessed]
1543   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1544 _ACEOF
1545 fi
1546
1547 if test -n "$ac_init_help"; then
1548   case $ac_init_help in
1549      short | recursive ) echo "Configuration of json-glib 0.10.4:";;
1550    esac
1551   cat <<\_ACEOF
1552
1553 Optional Features:
1554   --disable-option-checking  ignore unrecognized --enable/--with options
1555   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1556   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1557   --enable-static[=PKGS]  build static libraries [default=no]
1558   --disable-glibtest      do not try to compile and run a test GLIB program
1559   --disable-dependency-tracking  speeds up one-time build
1560   --enable-dependency-tracking   do not reject slow dependency extractors
1561   --enable-shared[=PKGS]  build shared libraries [default=yes]
1562   --enable-fast-install[=PKGS]
1563                           optimize for fast installation [default=yes]
1564   --disable-libtool-lock  avoid locking (might break parallel builds)
1565   --enable-debug=[no/minimum/yes]
1566                           turn on debugging [default=debug_default]
1567   --enable-maintainer-flags=[no/yes]
1568                           Use strict compiler flags
1569                           [default=maintainer_flags_default]
1570   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1571   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1572   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1573   --enable-introspection=[no/auto/yes]
1574                           Enable introspection for this build
1575   --enable-silent-rules          less verbose build output (undo: `make V=1')
1576   --disable-silent-rules         verbose build output (undo: `make V=0')
1577
1578 Optional Packages:
1579   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1580   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1581   --with-pic              try to use only PIC/non-PIC objects [default=use
1582                           both]
1583   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1584   --with-html-dir=PATH    path to installed docs
1585
1586 Some influential environment variables:
1587   PKG_CONFIG  path to pkg-config utility
1588   PKG_CONFIG_PATH
1589               directories to add to pkg-config's search path
1590   PKG_CONFIG_LIBDIR
1591               path overriding pkg-config's built-in search path
1592   CC          C compiler command
1593   CFLAGS      C compiler flags
1594   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1595               nonstandard directory <lib dir>
1596   LIBS        libraries to pass to the linker, e.g. -l<library>
1597   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1598               you have headers in a nonstandard directory <include dir>
1599   CPP         C preprocessor
1600   JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1601   JSON_LIBS   linker flags for JSON, overriding pkg-config
1602
1603 Use these variables to override the choices made by `configure' or to help
1604 it to find libraries and programs with nonstandard names/locations.
1605
1606 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib>.
1607 _ACEOF
1608 ac_status=$?
1609 fi
1610
1611 if test "$ac_init_help" = "recursive"; then
1612   # If there are subdirs, report their specific --help.
1613   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1614     test -d "$ac_dir" ||
1615       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1616       continue
1617     ac_builddir=.
1618
1619 case "$ac_dir" in
1620 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *)
1622   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1623   # A ".." for each directory in $ac_dir_suffix.
1624   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1625   case $ac_top_builddir_sub in
1626   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1628   esac ;;
1629 esac
1630 ac_abs_top_builddir=$ac_pwd
1631 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1632 # for backward compatibility:
1633 ac_top_builddir=$ac_top_build_prefix
1634
1635 case $srcdir in
1636   .)  # We are building in place.
1637     ac_srcdir=.
1638     ac_top_srcdir=$ac_top_builddir_sub
1639     ac_abs_top_srcdir=$ac_pwd ;;
1640   [\\/]* | ?:[\\/]* )  # Absolute name.
1641     ac_srcdir=$srcdir$ac_dir_suffix;
1642     ac_top_srcdir=$srcdir
1643     ac_abs_top_srcdir=$srcdir ;;
1644   *) # Relative name.
1645     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1646     ac_top_srcdir=$ac_top_build_prefix$srcdir
1647     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1648 esac
1649 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1650
1651     cd "$ac_dir" || { ac_status=$?; continue; }
1652     # Check for guested configure.
1653     if test -f "$ac_srcdir/configure.gnu"; then
1654       echo &&
1655       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1656     elif test -f "$ac_srcdir/configure"; then
1657       echo &&
1658       $SHELL "$ac_srcdir/configure" --help=recursive
1659     else
1660       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1661     fi || ac_status=$?
1662     cd "$ac_pwd" || { ac_status=$?; break; }
1663   done
1664 fi
1665
1666 test -n "$ac_init_help" && exit $ac_status
1667 if $ac_init_version; then
1668   cat <<\_ACEOF
1669 json-glib configure 0.10.4
1670 generated by GNU Autoconf 2.67
1671
1672 Copyright (C) 2010 Free Software Foundation, Inc.
1673 This configure script is free software; the Free Software Foundation
1674 gives unlimited permission to copy, distribute and modify it.
1675 _ACEOF
1676   exit
1677 fi
1678
1679 ## ------------------------ ##
1680 ## Autoconf initialization. ##
1681 ## ------------------------ ##
1682
1683 # ac_fn_c_try_compile LINENO
1684 # --------------------------
1685 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1686 ac_fn_c_try_compile ()
1687 {
1688   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689   rm -f conftest.$ac_objext
1690   if { { ac_try="$ac_compile"
1691 case "(($ac_try" in
1692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693   *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697   (eval "$ac_compile") 2>conftest.err
1698   ac_status=$?
1699   if test -s conftest.err; then
1700     grep -v '^ *+' conftest.err >conftest.er1
1701     cat conftest.er1 >&5
1702     mv -f conftest.er1 conftest.err
1703   fi
1704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705   test $ac_status = 0; } && {
1706          test -z "$ac_c_werror_flag" ||
1707          test ! -s conftest.err
1708        } && test -s conftest.$ac_objext; then :
1709   ac_retval=0
1710 else
1711   $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714         ac_retval=1
1715 fi
1716   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717   as_fn_set_status $ac_retval
1718
1719 } # ac_fn_c_try_compile
1720
1721 # ac_fn_c_try_run LINENO
1722 # ----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724 # that executables *can* be run.
1725 ac_fn_c_try_run ()
1726 {
1727   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728   if { { ac_try="$ac_link"
1729 case "(($ac_try" in
1730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731   *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735   (eval "$ac_link") 2>&5
1736   ac_status=$?
1737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739   { { case "(($ac_try" in
1740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741   *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745   (eval "$ac_try") 2>&5
1746   ac_status=$?
1747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748   test $ac_status = 0; }; }; then :
1749   ac_retval=0
1750 else
1751   $as_echo "$as_me: program exited with status $ac_status" >&5
1752        $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755        ac_retval=$ac_status
1756 fi
1757   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759   as_fn_set_status $ac_retval
1760
1761 } # ac_fn_c_try_run
1762
1763 # ac_fn_c_try_link LINENO
1764 # -----------------------
1765 # Try to link conftest.$ac_ext, and return whether this succeeded.
1766 ac_fn_c_try_link ()
1767 {
1768   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769   rm -f conftest.$ac_objext conftest$ac_exeext
1770   if { { ac_try="$ac_link"
1771 case "(($ac_try" in
1772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773   *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777   (eval "$ac_link") 2>conftest.err
1778   ac_status=$?
1779   if test -s conftest.err; then
1780     grep -v '^ *+' conftest.err >conftest.er1
1781     cat conftest.er1 >&5
1782     mv -f conftest.er1 conftest.err
1783   fi
1784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785   test $ac_status = 0; } && {
1786          test -z "$ac_c_werror_flag" ||
1787          test ! -s conftest.err
1788        } && test -s conftest$ac_exeext && {
1789          test "$cross_compiling" = yes ||
1790          $as_test_x conftest$ac_exeext
1791        }; then :
1792   ac_retval=0
1793 else
1794   $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797         ac_retval=1
1798 fi
1799   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801   # interfere with the next link command; also delete a directory that is
1802   # left behind by Apple's compiler.  We do this before executing the actions.
1803   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805   as_fn_set_status $ac_retval
1806
1807 } # ac_fn_c_try_link
1808
1809 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1810 # -------------------------------------------------------
1811 # Tests whether HEADER exists and can be compiled using the include files in
1812 # INCLUDES, setting the cache variable VAR accordingly.
1813 ac_fn_c_check_header_compile ()
1814 {
1815   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if eval "test \"\${$3+set}\"" = set; then :
1819   $as_echo_n "(cached) " >&6
1820 else
1821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h.  */
1823 $4
1824 #include <$2>
1825 _ACEOF
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827   eval "$3=yes"
1828 else
1829   eval "$3=no"
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 fi
1833 eval ac_res=\$$3
1834                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1837
1838 } # ac_fn_c_check_header_compile
1839
1840 # ac_fn_c_try_cpp LINENO
1841 # ----------------------
1842 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_c_try_cpp ()
1844 {
1845   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846   if { { ac_try="$ac_cpp conftest.$ac_ext"
1847 case "(($ac_try" in
1848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849   *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1854   ac_status=$?
1855   if test -s conftest.err; then
1856     grep -v '^ *+' conftest.err >conftest.er1
1857     cat conftest.er1 >&5
1858     mv -f conftest.er1 conftest.err
1859   fi
1860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861   test $ac_status = 0; } > conftest.i && {
1862          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1863          test ! -s conftest.err
1864        }; then :
1865   ac_retval=0
1866 else
1867   $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1869
1870     ac_retval=1
1871 fi
1872   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1873   as_fn_set_status $ac_retval
1874
1875 } # ac_fn_c_try_cpp
1876
1877 # ac_fn_c_check_func LINENO FUNC VAR
1878 # ----------------------------------
1879 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1880 ac_fn_c_check_func ()
1881 {
1882   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval "test \"\${$3+set}\"" = set; then :
1886   $as_echo_n "(cached) " >&6
1887 else
1888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h.  */
1890 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1892 #define $2 innocuous_$2
1893
1894 /* System header to define __stub macros and hopefully few prototypes,
1895     which can conflict with char $2 (); below.
1896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1897     <limits.h> exists even on freestanding compilers.  */
1898
1899 #ifdef __STDC__
1900 # include <limits.h>
1901 #else
1902 # include <assert.h>
1903 #endif
1904
1905 #undef $2
1906
1907 /* Override any GCC internal prototype to avoid an error.
1908    Use char because int might match the return type of a GCC
1909    builtin and then its argument prototype would still apply.  */
1910 #ifdef __cplusplus
1911 extern "C"
1912 #endif
1913 char $2 ();
1914 /* The GNU C library defines this for functions which it implements
1915     to always fail with ENOSYS.  Some functions are actually named
1916     something starting with __ and the normal name is an alias.  */
1917 #if defined __stub_$2 || defined __stub___$2
1918 choke me
1919 #endif
1920
1921 int
1922 main ()
1923 {
1924 return $2 ();
1925   ;
1926   return 0;
1927 }
1928 _ACEOF
1929 if ac_fn_c_try_link "$LINENO"; then :
1930   eval "$3=yes"
1931 else
1932   eval "$3=no"
1933 fi
1934 rm -f core conftest.err conftest.$ac_objext \
1935     conftest$ac_exeext conftest.$ac_ext
1936 fi
1937 eval ac_res=\$$3
1938                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1941
1942 } # ac_fn_c_check_func
1943
1944 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1945 # -------------------------------------------------------
1946 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1947 # the include files in INCLUDES and setting the cache variable VAR
1948 # accordingly.
1949 ac_fn_c_check_header_mongrel ()
1950 {
1951   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952   if eval "test \"\${$3+set}\"" = set; then :
1953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if eval "test \"\${$3+set}\"" = set; then :
1956   $as_echo_n "(cached) " >&6
1957 fi
1958 eval ac_res=\$$3
1959                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1961 else
1962   # Is the header compilable?
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1964 $as_echo_n "checking $2 usability... " >&6; }
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h.  */
1967 $4
1968 #include <$2>
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971   ac_header_compiler=yes
1972 else
1973   ac_header_compiler=no
1974 fi
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1977 $as_echo "$ac_header_compiler" >&6; }
1978
1979 # Is the header present?
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1981 $as_echo_n "checking $2 presence... " >&6; }
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h.  */
1984 #include <$2>
1985 _ACEOF
1986 if ac_fn_c_try_cpp "$LINENO"; then :
1987   ac_header_preproc=yes
1988 else
1989   ac_header_preproc=no
1990 fi
1991 rm -f conftest.err conftest.i conftest.$ac_ext
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1993 $as_echo "$ac_header_preproc" >&6; }
1994
1995 # So?  What about this header?
1996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1997   yes:no: )
1998     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1999 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2000     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2001 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2002     ;;
2003   no:yes:* )
2004     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2005 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2006     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2007 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2008     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2009 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2010     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2011 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2012     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2013 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2014 ( $as_echo "## ------------------------------------------------------------------------ ##
2015 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib ##
2016 ## ------------------------------------------------------------------------ ##"
2017      ) | sed "s/^/$as_me: WARNING:     /" >&2
2018     ;;
2019 esac
2020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if eval "test \"\${$3+set}\"" = set; then :
2023   $as_echo_n "(cached) " >&6
2024 else
2025   eval "$3=\$ac_header_compiler"
2026 fi
2027 eval ac_res=\$$3
2028                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2029 $as_echo "$ac_res" >&6; }
2030 fi
2031   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2032
2033 } # ac_fn_c_check_header_mongrel
2034 cat >config.log <<_ACEOF
2035 This file contains any messages produced by compilers while
2036 running configure, to aid debugging if configure makes a mistake.
2037
2038 It was created by json-glib $as_me 0.10.4, which was
2039 generated by GNU Autoconf 2.67.  Invocation command line was
2040
2041   $ $0 $@
2042
2043 _ACEOF
2044 exec 5>>config.log
2045 {
2046 cat <<_ASUNAME
2047 ## --------- ##
2048 ## Platform. ##
2049 ## --------- ##
2050
2051 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2052 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2053 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2054 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2055 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2056
2057 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2058 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2059
2060 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2061 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2062 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2063 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2064 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2065 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2066 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2067
2068 _ASUNAME
2069
2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 for as_dir in $PATH
2072 do
2073   IFS=$as_save_IFS
2074   test -z "$as_dir" && as_dir=.
2075     $as_echo "PATH: $as_dir"
2076   done
2077 IFS=$as_save_IFS
2078
2079 } >&5
2080
2081 cat >&5 <<_ACEOF
2082
2083
2084 ## ----------- ##
2085 ## Core tests. ##
2086 ## ----------- ##
2087
2088 _ACEOF
2089
2090
2091 # Keep a trace of the command line.
2092 # Strip out --no-create and --no-recursion so they do not pile up.
2093 # Strip out --silent because we don't want to record it for future runs.
2094 # Also quote any args containing shell meta-characters.
2095 # Make two passes to allow for proper duplicate-argument suppression.
2096 ac_configure_args=
2097 ac_configure_args0=
2098 ac_configure_args1=
2099 ac_must_keep_next=false
2100 for ac_pass in 1 2
2101 do
2102   for ac_arg
2103   do
2104     case $ac_arg in
2105     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2106     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2107     | -silent | --silent | --silen | --sile | --sil)
2108       continue ;;
2109     *\'*)
2110       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2111     esac
2112     case $ac_pass in
2113     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2114     2)
2115       as_fn_append ac_configure_args1 " '$ac_arg'"
2116       if test $ac_must_keep_next = true; then
2117         ac_must_keep_next=false # Got value, back to normal.
2118       else
2119         case $ac_arg in
2120           *=* | --config-cache | -C | -disable-* | --disable-* \
2121           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2122           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2123           | -with-* | --with-* | -without-* | --without-* | --x)
2124             case "$ac_configure_args0 " in
2125               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2126             esac
2127             ;;
2128           -* ) ac_must_keep_next=true ;;
2129         esac
2130       fi
2131       as_fn_append ac_configure_args " '$ac_arg'"
2132       ;;
2133     esac
2134   done
2135 done
2136 { ac_configure_args0=; unset ac_configure_args0;}
2137 { ac_configure_args1=; unset ac_configure_args1;}
2138
2139 # When interrupted or exit'd, cleanup temporary files, and complete
2140 # config.log.  We remove comments because anyway the quotes in there
2141 # would cause problems or look ugly.
2142 # WARNING: Use '\'' to represent an apostrophe within the trap.
2143 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2144 trap 'exit_status=$?
2145   # Save into config.log some information that might help in debugging.
2146   {
2147     echo
2148
2149     $as_echo "## ---------------- ##
2150 ## Cache variables. ##
2151 ## ---------------- ##"
2152     echo
2153     # The following way of writing the cache mishandles newlines in values,
2154 (
2155   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2156     eval ac_val=\$$ac_var
2157     case $ac_val in #(
2158     *${as_nl}*)
2159       case $ac_var in #(
2160       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2161 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2162       esac
2163       case $ac_var in #(
2164       _ | IFS | as_nl) ;; #(
2165       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2166       *) { eval $ac_var=; unset $ac_var;} ;;
2167       esac ;;
2168     esac
2169   done
2170   (set) 2>&1 |
2171     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2172     *${as_nl}ac_space=\ *)
2173       sed -n \
2174         "s/'\''/'\''\\\\'\'''\''/g;
2175           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2176       ;; #(
2177     *)
2178       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2179       ;;
2180     esac |
2181     sort
2182 )
2183     echo
2184
2185     $as_echo "## ----------------- ##
2186 ## Output variables. ##
2187 ## ----------------- ##"
2188     echo
2189     for ac_var in $ac_subst_vars
2190     do
2191       eval ac_val=\$$ac_var
2192       case $ac_val in
2193       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2194       esac
2195       $as_echo "$ac_var='\''$ac_val'\''"
2196     done | sort
2197     echo
2198
2199     if test -n "$ac_subst_files"; then
2200       $as_echo "## ------------------- ##
2201 ## File substitutions. ##
2202 ## ------------------- ##"
2203       echo
2204       for ac_var in $ac_subst_files
2205       do
2206         eval ac_val=\$$ac_var
2207         case $ac_val in
2208         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2209         esac
2210         $as_echo "$ac_var='\''$ac_val'\''"
2211       done | sort
2212       echo
2213     fi
2214
2215     if test -s confdefs.h; then
2216       $as_echo "## ----------- ##
2217 ## confdefs.h. ##
2218 ## ----------- ##"
2219       echo
2220       cat confdefs.h
2221       echo
2222     fi
2223     test "$ac_signal" != 0 &&
2224       $as_echo "$as_me: caught signal $ac_signal"
2225     $as_echo "$as_me: exit $exit_status"
2226   } >&5
2227   rm -f core *.core core.conftest.* &&
2228     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2229     exit $exit_status
2230 ' 0
2231 for ac_signal in 1 2 13 15; do
2232   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2233 done
2234 ac_signal=0
2235
2236 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2237 rm -f -r conftest* confdefs.h
2238
2239 $as_echo "/* confdefs.h */" > confdefs.h
2240
2241 # Predefined preprocessor variables.
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_NAME "$PACKAGE_NAME"
2245 _ACEOF
2246
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2249 _ACEOF
2250
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2253 _ACEOF
2254
2255 cat >>confdefs.h <<_ACEOF
2256 #define PACKAGE_STRING "$PACKAGE_STRING"
2257 _ACEOF
2258
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2261 _ACEOF
2262
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_URL "$PACKAGE_URL"
2265 _ACEOF
2266
2267
2268 # Let the site file select an alternate cache file if it wants to.
2269 # Prefer an explicitly selected file to automatically selected ones.
2270 ac_site_file1=NONE
2271 ac_site_file2=NONE
2272 if test -n "$CONFIG_SITE"; then
2273   # We do not want a PATH search for config.site.
2274   case $CONFIG_SITE in #((
2275     -*)  ac_site_file1=./$CONFIG_SITE;;
2276     */*) ac_site_file1=$CONFIG_SITE;;
2277     *)   ac_site_file1=./$CONFIG_SITE;;
2278   esac
2279 elif test "x$prefix" != xNONE; then
2280   ac_site_file1=$prefix/share/config.site
2281   ac_site_file2=$prefix/etc/config.site
2282 else
2283   ac_site_file1=$ac_default_prefix/share/config.site
2284   ac_site_file2=$ac_default_prefix/etc/config.site
2285 fi
2286 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2287 do
2288   test "x$ac_site_file" = xNONE && continue
2289   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2290     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2291 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2292     sed 's/^/| /' "$ac_site_file" >&5
2293     . "$ac_site_file" \
2294       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2296 as_fn_error $? "failed to load site script $ac_site_file
2297 See \`config.log' for more details" "$LINENO" 5 ; }
2298   fi
2299 done
2300
2301 if test -r "$cache_file"; then
2302   # Some versions of bash will fail to source /dev/null (special files
2303   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2304   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2305     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2306 $as_echo "$as_me: loading cache $cache_file" >&6;}
2307     case $cache_file in
2308       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2309       *)                      . "./$cache_file";;
2310     esac
2311   fi
2312 else
2313   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2314 $as_echo "$as_me: creating cache $cache_file" >&6;}
2315   >$cache_file
2316 fi
2317
2318 as_fn_append ac_header_list " stdlib.h"
2319 as_fn_append ac_header_list " unistd.h"
2320 as_fn_append ac_header_list " sys/param.h"
2321 # Check that the precious variables saved in the cache have kept the same
2322 # value.
2323 ac_cache_corrupted=false
2324 for ac_var in $ac_precious_vars; do
2325   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2326   eval ac_new_set=\$ac_env_${ac_var}_set
2327   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2328   eval ac_new_val=\$ac_env_${ac_var}_value
2329   case $ac_old_set,$ac_new_set in
2330     set,)
2331       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2332 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2333       ac_cache_corrupted=: ;;
2334     ,set)
2335       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2336 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2337       ac_cache_corrupted=: ;;
2338     ,);;
2339     *)
2340       if test "x$ac_old_val" != "x$ac_new_val"; then
2341         # differences in whitespace do not lead to failure.
2342         ac_old_val_w=`echo x $ac_old_val`
2343         ac_new_val_w=`echo x $ac_new_val`
2344         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2345           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2346 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2347           ac_cache_corrupted=:
2348         else
2349           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2350 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2351           eval $ac_var=\$ac_old_val
2352         fi
2353         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2354 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2355         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2356 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2357       fi;;
2358   esac
2359   # Pass precious variables to config.status.
2360   if test "$ac_new_set" = set; then
2361     case $ac_new_val in
2362     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2363     *) ac_arg=$ac_var=$ac_new_val ;;
2364     esac
2365     case " $ac_configure_args " in
2366       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2367       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2368     esac
2369   fi
2370 done
2371 if $ac_cache_corrupted; then
2372   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2374   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2375 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2376   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2377 fi
2378 ## -------------------- ##
2379 ## Main body of script. ##
2380 ## -------------------- ##
2381
2382 ac_ext=c
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387
2388
2389
2390
2391
2392
2393 am__api_version='1.11'
2394
2395 ac_aux_dir=
2396 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2397   if test -f "$ac_dir/install-sh"; then
2398     ac_aux_dir=$ac_dir
2399     ac_install_sh="$ac_aux_dir/install-sh -c"
2400     break
2401   elif test -f "$ac_dir/install.sh"; then
2402     ac_aux_dir=$ac_dir
2403     ac_install_sh="$ac_aux_dir/install.sh -c"
2404     break
2405   elif test -f "$ac_dir/shtool"; then
2406     ac_aux_dir=$ac_dir
2407     ac_install_sh="$ac_aux_dir/shtool install -c"
2408     break
2409   fi
2410 done
2411 if test -z "$ac_aux_dir"; then
2412   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2413 fi
2414
2415 # These three variables are undocumented and unsupported,
2416 # and are intended to be withdrawn in a future Autoconf release.
2417 # They can cause serious problems if a builder's source tree is in a directory
2418 # whose full name contains unusual characters.
2419 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2420 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2421 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2422
2423
2424 # Find a good install program.  We prefer a C program (faster),
2425 # so one script is as good as another.  But avoid the broken or
2426 # incompatible versions:
2427 # SysV /etc/install, /usr/sbin/install
2428 # SunOS /usr/etc/install
2429 # IRIX /sbin/install
2430 # AIX /bin/install
2431 # AmigaOS /C/install, which installs bootblocks on floppy discs
2432 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2433 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2434 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2435 # OS/2's system install, which has a completely different semantic
2436 # ./install, which can be erroneously created by make from ./install.sh.
2437 # Reject install programs that cannot install multiple files.
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2439 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2440 if test -z "$INSTALL"; then
2441 if test "${ac_cv_path_install+set}" = set; then :
2442   $as_echo_n "(cached) " >&6
2443 else
2444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 for as_dir in $PATH
2446 do
2447   IFS=$as_save_IFS
2448   test -z "$as_dir" && as_dir=.
2449     # Account for people who put trailing slashes in PATH elements.
2450 case $as_dir/ in #((
2451   ./ | .// | /[cC]/* | \
2452   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2453   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2454   /usr/ucb/* ) ;;
2455   *)
2456     # OSF1 and SCO ODT 3.0 have their own names for install.
2457     # Don't use installbsd from OSF since it installs stuff as root
2458     # by default.
2459     for ac_prog in ginstall scoinst install; do
2460       for ac_exec_ext in '' $ac_executable_extensions; do
2461         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2462           if test $ac_prog = install &&
2463             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2464             # AIX install.  It has an incompatible calling convention.
2465             :
2466           elif test $ac_prog = install &&
2467             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2468             # program-specific install script used by HP pwplus--don't use.
2469             :
2470           else
2471             rm -rf conftest.one conftest.two conftest.dir
2472             echo one > conftest.one
2473             echo two > conftest.two
2474             mkdir conftest.dir
2475             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2476               test -s conftest.one && test -s conftest.two &&
2477               test -s conftest.dir/conftest.one &&
2478               test -s conftest.dir/conftest.two
2479             then
2480               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2481               break 3
2482             fi
2483           fi
2484         fi
2485       done
2486     done
2487     ;;
2488 esac
2489
2490   done
2491 IFS=$as_save_IFS
2492
2493 rm -rf conftest.one conftest.two conftest.dir
2494
2495 fi
2496   if test "${ac_cv_path_install+set}" = set; then
2497     INSTALL=$ac_cv_path_install
2498   else
2499     # As a last resort, use the slow shell script.  Don't cache a
2500     # value for INSTALL within a source directory, because that will
2501     # break other packages using the cache if that directory is
2502     # removed, or if the value is a relative name.
2503     INSTALL=$ac_install_sh
2504   fi
2505 fi
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2507 $as_echo "$INSTALL" >&6; }
2508
2509 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2510 # It thinks the first close brace ends the variable substitution.
2511 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2512
2513 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2514
2515 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2516
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2518 $as_echo_n "checking whether build environment is sane... " >&6; }
2519 # Just in case
2520 sleep 1
2521 echo timestamp > conftest.file
2522 # Reject unsafe characters in $srcdir or the absolute working directory
2523 # name.  Accept space and tab only in the latter.
2524 am_lf='
2525 '
2526 case `pwd` in
2527   *[\\\"\#\$\&\'\`$am_lf]*)
2528     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2529 esac
2530 case $srcdir in
2531   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2532     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2533 esac
2534
2535 # Do `set' in a subshell so we don't clobber the current shell's
2536 # arguments.  Must try -L first in case configure is actually a
2537 # symlink; some systems play weird games with the mod time of symlinks
2538 # (eg FreeBSD returns the mod time of the symlink's containing
2539 # directory).
2540 if (
2541    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2542    if test "$*" = "X"; then
2543       # -L didn't work.
2544       set X `ls -t "$srcdir/configure" conftest.file`
2545    fi
2546    rm -f conftest.file
2547    if test "$*" != "X $srcdir/configure conftest.file" \
2548       && test "$*" != "X conftest.file $srcdir/configure"; then
2549
2550       # If neither matched, then we have a broken ls.  This can happen
2551       # if, for instance, CONFIG_SHELL is bash and it inherits a
2552       # broken ls alias from the environment.  This has actually
2553       # happened.  Such a system could not be considered "sane".
2554       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2555 alias in your environment" "$LINENO" 5
2556    fi
2557
2558    test "$2" = conftest.file
2559    )
2560 then
2561    # Ok.
2562    :
2563 else
2564    as_fn_error $? "newly created file is older than distributed files!
2565 Check your system clock" "$LINENO" 5
2566 fi
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2568 $as_echo "yes" >&6; }
2569 test "$program_prefix" != NONE &&
2570   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2571 # Use a double $ so make ignores it.
2572 test "$program_suffix" != NONE &&
2573   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2574 # Double any \ or $.
2575 # By default was `s,x,x', remove it if useless.
2576 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2577 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2578
2579 # expand $ac_aux_dir to an absolute path
2580 am_aux_dir=`cd $ac_aux_dir && pwd`
2581
2582 if test x"${MISSING+set}" != xset; then
2583   case $am_aux_dir in
2584   *\ * | *\     *)
2585     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2586   *)
2587     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2588   esac
2589 fi
2590 # Use eval to expand $SHELL
2591 if eval "$MISSING --run true"; then
2592   am_missing_run="$MISSING --run "
2593 else
2594   am_missing_run=
2595   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2596 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2597 fi
2598
2599 if test x"${install_sh}" != xset; then
2600   case $am_aux_dir in
2601   *\ * | *\     *)
2602     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2603   *)
2604     install_sh="\${SHELL} $am_aux_dir/install-sh"
2605   esac
2606 fi
2607
2608 # Installed binaries are usually stripped using `strip' when the user
2609 # run `make install-strip'.  However `strip' might not be the right
2610 # tool to use in cross-compilation environments, therefore Automake
2611 # will honor the `STRIP' environment variable to overrule this program.
2612 if test "$cross_compiling" != no; then
2613   if test -n "$ac_tool_prefix"; then
2614   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2615 set dummy ${ac_tool_prefix}strip; ac_word=$2
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617 $as_echo_n "checking for $ac_word... " >&6; }
2618 if test "${ac_cv_prog_STRIP+set}" = set; then :
2619   $as_echo_n "(cached) " >&6
2620 else
2621   if test -n "$STRIP"; then
2622   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2623 else
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2626 do
2627   IFS=$as_save_IFS
2628   test -z "$as_dir" && as_dir=.
2629     for ac_exec_ext in '' $ac_executable_extensions; do
2630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2631     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2633     break 2
2634   fi
2635 done
2636   done
2637 IFS=$as_save_IFS
2638
2639 fi
2640 fi
2641 STRIP=$ac_cv_prog_STRIP
2642 if test -n "$STRIP"; then
2643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2644 $as_echo "$STRIP" >&6; }
2645 else
2646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647 $as_echo "no" >&6; }
2648 fi
2649
2650
2651 fi
2652 if test -z "$ac_cv_prog_STRIP"; then
2653   ac_ct_STRIP=$STRIP
2654   # Extract the first word of "strip", so it can be a program name with args.
2655 set dummy strip; ac_word=$2
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2657 $as_echo_n "checking for $ac_word... " >&6; }
2658 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2659   $as_echo_n "(cached) " >&6
2660 else
2661   if test -n "$ac_ct_STRIP"; then
2662   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667   IFS=$as_save_IFS
2668   test -z "$as_dir" && as_dir=.
2669     for ac_exec_ext in '' $ac_executable_extensions; do
2670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671     ac_cv_prog_ac_ct_STRIP="strip"
2672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2673     break 2
2674   fi
2675 done
2676   done
2677 IFS=$as_save_IFS
2678
2679 fi
2680 fi
2681 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2682 if test -n "$ac_ct_STRIP"; then
2683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2684 $as_echo "$ac_ct_STRIP" >&6; }
2685 else
2686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687 $as_echo "no" >&6; }
2688 fi
2689
2690   if test "x$ac_ct_STRIP" = x; then
2691     STRIP=":"
2692   else
2693     case $cross_compiling:$ac_tool_warned in
2694 yes:)
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2697 ac_tool_warned=yes ;;
2698 esac
2699     STRIP=$ac_ct_STRIP
2700   fi
2701 else
2702   STRIP="$ac_cv_prog_STRIP"
2703 fi
2704
2705 fi
2706 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2707
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2709 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2710 if test -z "$MKDIR_P"; then
2711   if test "${ac_cv_path_mkdir+set}" = set; then :
2712   $as_echo_n "(cached) " >&6
2713 else
2714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2716 do
2717   IFS=$as_save_IFS
2718   test -z "$as_dir" && as_dir=.
2719     for ac_prog in mkdir gmkdir; do
2720          for ac_exec_ext in '' $ac_executable_extensions; do
2721            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2722            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2723              'mkdir (GNU coreutils) '* | \
2724              'mkdir (coreutils) '* | \
2725              'mkdir (fileutils) '4.1*)
2726                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2727                break 3;;
2728            esac
2729          done
2730        done
2731   done
2732 IFS=$as_save_IFS
2733
2734 fi
2735
2736   test -d ./--version && rmdir ./--version
2737   if test "${ac_cv_path_mkdir+set}" = set; then
2738     MKDIR_P="$ac_cv_path_mkdir -p"
2739   else
2740     # As a last resort, use the slow shell script.  Don't cache a
2741     # value for MKDIR_P within a source directory, because that will
2742     # break other packages using the cache if that directory is
2743     # removed, or if the value is a relative name.
2744     MKDIR_P="$ac_install_sh -d"
2745   fi
2746 fi
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2748 $as_echo "$MKDIR_P" >&6; }
2749
2750 mkdir_p="$MKDIR_P"
2751 case $mkdir_p in
2752   [\\/$]* | ?:[\\/]*) ;;
2753   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2754 esac
2755
2756 for ac_prog in gawk mawk nawk awk
2757 do
2758   # Extract the first word of "$ac_prog", so it can be a program name with args.
2759 set dummy $ac_prog; ac_word=$2
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if test "${ac_cv_prog_AWK+set}" = set; then :
2763   $as_echo_n "(cached) " >&6
2764 else
2765   if test -n "$AWK"; then
2766   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2770 do
2771   IFS=$as_save_IFS
2772   test -z "$as_dir" && as_dir=.
2773     for ac_exec_ext in '' $ac_executable_extensions; do
2774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775     ac_cv_prog_AWK="$ac_prog"
2776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777     break 2
2778   fi
2779 done
2780   done
2781 IFS=$as_save_IFS
2782
2783 fi
2784 fi
2785 AWK=$ac_cv_prog_AWK
2786 if test -n "$AWK"; then
2787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2788 $as_echo "$AWK" >&6; }
2789 else
2790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2792 fi
2793
2794
2795   test -n "$AWK" && break
2796 done
2797
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2799 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2800 set x ${MAKE-make}
2801 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2802 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2803   $as_echo_n "(cached) " >&6
2804 else
2805   cat >conftest.make <<\_ACEOF
2806 SHELL = /bin/sh
2807 all:
2808         @echo '@@@%%%=$(MAKE)=@@@%%%'
2809 _ACEOF
2810 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2811 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2812   *@@@%%%=?*=@@@%%%*)
2813     eval ac_cv_prog_make_${ac_make}_set=yes;;
2814   *)
2815     eval ac_cv_prog_make_${ac_make}_set=no;;
2816 esac
2817 rm -f conftest.make
2818 fi
2819 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2821 $as_echo "yes" >&6; }
2822   SET_MAKE=
2823 else
2824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2826   SET_MAKE="MAKE=${MAKE-make}"
2827 fi
2828
2829 rm -rf .tst 2>/dev/null
2830 mkdir .tst 2>/dev/null
2831 if test -d .tst; then
2832   am__leading_dot=.
2833 else
2834   am__leading_dot=_
2835 fi
2836 rmdir .tst 2>/dev/null
2837
2838 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2839   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2840   # is not polluted with repeated "-I."
2841   am__isrc=' -I$(srcdir)'
2842   # test to see if srcdir already configured
2843   if test -f $srcdir/config.status; then
2844     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2845   fi
2846 fi
2847
2848 # test whether we have cygpath
2849 if test -z "$CYGPATH_W"; then
2850   if (cygpath --version) >/dev/null 2>/dev/null; then
2851     CYGPATH_W='cygpath -w'
2852   else
2853     CYGPATH_W=echo
2854   fi
2855 fi
2856
2857
2858 # Define the identity of the package.
2859  PACKAGE='json-glib'
2860  VERSION='0.10.4'
2861
2862
2863 cat >>confdefs.h <<_ACEOF
2864 #define PACKAGE "$PACKAGE"
2865 _ACEOF
2866
2867
2868 cat >>confdefs.h <<_ACEOF
2869 #define VERSION "$VERSION"
2870 _ACEOF
2871
2872 # Some tools Automake needs.
2873
2874 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2875
2876
2877 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2878
2879
2880 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2881
2882
2883 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2884
2885
2886 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2887
2888 # We need awk for the "check" target.  The system "awk" is bad on
2889 # some platforms.
2890 # Always define AMTAR for backward compatibility.
2891
2892 AMTAR=${AMTAR-"${am_missing_run}tar"}
2893
2894 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2895
2896
2897
2898
2899
2900 ac_config_headers="$ac_config_headers config.h"
2901
2902
2903 # Check whether --enable-static was given.
2904 if test "${enable_static+set}" = set; then :
2905   enableval=$enable_static; p=${PACKAGE-default}
2906     case $enableval in
2907     yes) enable_static=yes ;;
2908     no) enable_static=no ;;
2909     *)
2910      enable_static=no
2911       # Look at the argument we got.  We use all the common list separators.
2912       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2913       for pkg in $enableval; do
2914         IFS="$lt_save_ifs"
2915         if test "X$pkg" = "X$p"; then
2916           enable_static=yes
2917         fi
2918       done
2919       IFS="$lt_save_ifs"
2920       ;;
2921     esac
2922 else
2923   enable_static=no
2924 fi
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934 DEPDIR="${am__leading_dot}deps"
2935
2936 ac_config_commands="$ac_config_commands depfiles"
2937
2938
2939 am_make=${MAKE-make}
2940 cat > confinc << 'END'
2941 am__doit:
2942         @echo this is the am__doit target
2943 .PHONY: am__doit
2944 END
2945 # If we don't find an include directive, just comment out the code.
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2947 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2948 am__include="#"
2949 am__quote=
2950 _am_result=none
2951 # First try GNU make style include.
2952 echo "include confinc" > confmf
2953 # Ignore all kinds of additional output from `make'.
2954 case `$am_make -s -f confmf 2> /dev/null` in #(
2955 *the\ am__doit\ target*)
2956   am__include=include
2957   am__quote=
2958   _am_result=GNU
2959   ;;
2960 esac
2961 # Now try BSD make style include.
2962 if test "$am__include" = "#"; then
2963    echo '.include "confinc"' > confmf
2964    case `$am_make -s -f confmf 2> /dev/null` in #(
2965    *the\ am__doit\ target*)
2966      am__include=.include
2967      am__quote="\""
2968      _am_result=BSD
2969      ;;
2970    esac
2971 fi
2972
2973
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2975 $as_echo "$_am_result" >&6; }
2976 rm -f confinc confmf
2977
2978 # Check whether --enable-dependency-tracking was given.
2979 if test "${enable_dependency_tracking+set}" = set; then :
2980   enableval=$enable_dependency_tracking;
2981 fi
2982
2983 if test "x$enable_dependency_tracking" != xno; then
2984   am_depcomp="$ac_aux_dir/depcomp"
2985   AMDEPBACKSLASH='\'
2986 fi
2987  if test "x$enable_dependency_tracking" != xno; then
2988   AMDEP_TRUE=
2989   AMDEP_FALSE='#'
2990 else
2991   AMDEP_TRUE='#'
2992   AMDEP_FALSE=
2993 fi
2994
2995
2996 ac_ext=c
2997 ac_cpp='$CPP $CPPFLAGS'
2998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3001 if test -n "$ac_tool_prefix"; then
3002   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3003 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if test "${ac_cv_prog_CC+set}" = set; then :
3007   $as_echo_n "(cached) " >&6
3008 else
3009   if test -n "$CC"; then
3010   ac_cv_prog_CC="$CC" # Let the user override the test.
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3014 do
3015   IFS=$as_save_IFS
3016   test -z "$as_dir" && as_dir=.
3017     for ac_exec_ext in '' $ac_executable_extensions; do
3018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021     break 2
3022   fi
3023 done
3024   done
3025 IFS=$as_save_IFS
3026
3027 fi
3028 fi
3029 CC=$ac_cv_prog_CC
3030 if test -n "$CC"; then
3031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3032 $as_echo "$CC" >&6; }
3033 else
3034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3036 fi
3037
3038
3039 fi
3040 if test -z "$ac_cv_prog_CC"; then
3041   ac_ct_CC=$CC
3042   # Extract the first word of "gcc", so it can be a program name with args.
3043 set dummy gcc; ac_word=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3047   $as_echo_n "(cached) " >&6
3048 else
3049   if test -n "$ac_ct_CC"; then
3050   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3054 do
3055   IFS=$as_save_IFS
3056   test -z "$as_dir" && as_dir=.
3057     for ac_exec_ext in '' $ac_executable_extensions; do
3058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059     ac_cv_prog_ac_ct_CC="gcc"
3060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061     break 2
3062   fi
3063 done
3064   done
3065 IFS=$as_save_IFS
3066
3067 fi
3068 fi
3069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3070 if test -n "$ac_ct_CC"; then
3071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3072 $as_echo "$ac_ct_CC" >&6; }
3073 else
3074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3076 fi
3077
3078   if test "x$ac_ct_CC" = x; then
3079     CC=""
3080   else
3081     case $cross_compiling:$ac_tool_warned in
3082 yes:)
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3085 ac_tool_warned=yes ;;
3086 esac
3087     CC=$ac_ct_CC
3088   fi
3089 else
3090   CC="$ac_cv_prog_CC"
3091 fi
3092
3093 if test -z "$CC"; then
3094           if test -n "$ac_tool_prefix"; then
3095     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3096 set dummy ${ac_tool_prefix}cc; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if test "${ac_cv_prog_CC+set}" = set; then :
3100   $as_echo_n "(cached) " >&6
3101 else
3102   if test -n "$CC"; then
3103   ac_cv_prog_CC="$CC" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3107 do
3108   IFS=$as_save_IFS
3109   test -z "$as_dir" && as_dir=.
3110     for ac_exec_ext in '' $ac_executable_extensions; do
3111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112     ac_cv_prog_CC="${ac_tool_prefix}cc"
3113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114     break 2
3115   fi
3116 done
3117   done
3118 IFS=$as_save_IFS
3119
3120 fi
3121 fi
3122 CC=$ac_cv_prog_CC
3123 if test -n "$CC"; then
3124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3125 $as_echo "$CC" >&6; }
3126 else
3127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3129 fi
3130
3131
3132   fi
3133 fi
3134 if test -z "$CC"; then
3135   # Extract the first word of "cc", so it can be a program name with args.
3136 set dummy cc; ac_word=$2
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138 $as_echo_n "checking for $ac_word... " >&6; }
3139 if test "${ac_cv_prog_CC+set}" = set; then :
3140   $as_echo_n "(cached) " >&6
3141 else
3142   if test -n "$CC"; then
3143   ac_cv_prog_CC="$CC" # Let the user override the test.
3144 else
3145   ac_prog_rejected=no
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3148 do
3149   IFS=$as_save_IFS
3150   test -z "$as_dir" && as_dir=.
3151     for ac_exec_ext in '' $ac_executable_extensions; do
3152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3154        ac_prog_rejected=yes
3155        continue
3156      fi
3157     ac_cv_prog_CC="cc"
3158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159     break 2
3160   fi
3161 done
3162   done
3163 IFS=$as_save_IFS
3164
3165 if test $ac_prog_rejected = yes; then
3166   # We found a bogon in the path, so make sure we never use it.
3167   set dummy $ac_cv_prog_CC
3168   shift
3169   if test $# != 0; then
3170     # We chose a different compiler from the bogus one.
3171     # However, it has the same basename, so the bogon will be chosen
3172     # first if we set CC to just the basename; use the full file name.
3173     shift
3174     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3175   fi
3176 fi
3177 fi
3178 fi
3179 CC=$ac_cv_prog_CC
3180 if test -n "$CC"; then
3181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182 $as_echo "$CC" >&6; }
3183 else
3184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 fi
3187
3188
3189 fi
3190 if test -z "$CC"; then
3191   if test -n "$ac_tool_prefix"; then
3192   for ac_prog in cl.exe
3193   do
3194     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if test "${ac_cv_prog_CC+set}" = set; then :
3199   $as_echo_n "(cached) " >&6
3200 else
3201   if test -n "$CC"; then
3202   ac_cv_prog_CC="$CC" # Let the user override the test.
3203 else
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 for as_dir in $PATH
3206 do
3207   IFS=$as_save_IFS
3208   test -z "$as_dir" && as_dir=.
3209     for ac_exec_ext in '' $ac_executable_extensions; do
3210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3211     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213     break 2
3214   fi
3215 done
3216   done
3217 IFS=$as_save_IFS
3218
3219 fi
3220 fi
3221 CC=$ac_cv_prog_CC
3222 if test -n "$CC"; then
3223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3224 $as_echo "$CC" >&6; }
3225 else
3226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3228 fi
3229
3230
3231     test -n "$CC" && break
3232   done
3233 fi
3234 if test -z "$CC"; then
3235   ac_ct_CC=$CC
3236   for ac_prog in cl.exe
3237 do
3238   # Extract the first word of "$ac_prog", so it can be a program name with args.
3239 set dummy $ac_prog; ac_word=$2
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3241 $as_echo_n "checking for $ac_word... " >&6; }
3242 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3243   $as_echo_n "(cached) " >&6
3244 else
3245   if test -n "$ac_ct_CC"; then
3246   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3247 else
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH
3250 do
3251   IFS=$as_save_IFS
3252   test -z "$as_dir" && as_dir=.
3253     for ac_exec_ext in '' $ac_executable_extensions; do
3254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3255     ac_cv_prog_ac_ct_CC="$ac_prog"
3256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3257     break 2
3258   fi
3259 done
3260   done
3261 IFS=$as_save_IFS
3262
3263 fi
3264 fi
3265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3266 if test -n "$ac_ct_CC"; then
3267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3268 $as_echo "$ac_ct_CC" >&6; }
3269 else
3270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3272 fi
3273
3274
3275   test -n "$ac_ct_CC" && break
3276 done
3277
3278   if test "x$ac_ct_CC" = x; then
3279     CC=""
3280   else
3281     case $cross_compiling:$ac_tool_warned in
3282 yes:)
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3285 ac_tool_warned=yes ;;
3286 esac
3287     CC=$ac_ct_CC
3288   fi
3289 fi
3290
3291 fi
3292
3293
3294 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 as_fn_error $? "no acceptable C compiler found in \$PATH
3297 See \`config.log' for more details" "$LINENO" 5 ; }
3298
3299 # Provide some information about the compiler.
3300 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3301 set X $ac_compile
3302 ac_compiler=$2
3303 for ac_option in --version -v -V -qversion; do
3304   { { ac_try="$ac_compiler $ac_option >&5"
3305 case "(($ac_try" in
3306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307   *) ac_try_echo=$ac_try;;
3308 esac
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3312   ac_status=$?
3313   if test -s conftest.err; then
3314     sed '10a\
3315 ... rest of stderr output deleted ...
3316          10q' conftest.err >conftest.er1
3317     cat conftest.er1 >&5
3318   fi
3319   rm -f conftest.er1 conftest.err
3320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321   test $ac_status = 0; }
3322 done
3323
3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h.  */
3326
3327 int
3328 main ()
3329 {
3330
3331   ;
3332   return 0;
3333 }
3334 _ACEOF
3335 ac_clean_files_save=$ac_clean_files
3336 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3337 # Try to create an executable without -o first, disregard a.out.
3338 # It will help us diagnose broken compilers, and finding out an intuition
3339 # of exeext.
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3341 $as_echo_n "checking whether the C compiler works... " >&6; }
3342 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3343
3344 # The possible output files:
3345 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3346
3347 ac_rmfiles=
3348 for ac_file in $ac_files
3349 do
3350   case $ac_file in
3351     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3352     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3353   esac
3354 done
3355 rm -f $ac_rmfiles
3356
3357 if { { ac_try="$ac_link_default"
3358 case "(($ac_try" in
3359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360   *) ac_try_echo=$ac_try;;
3361 esac
3362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3363 $as_echo "$ac_try_echo"; } >&5
3364   (eval "$ac_link_default") 2>&5
3365   ac_status=$?
3366   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3367   test $ac_status = 0; }; then :
3368   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3369 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3370 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3371 # so that the user can short-circuit this test for compilers unknown to
3372 # Autoconf.
3373 for ac_file in $ac_files ''
3374 do
3375   test -f "$ac_file" || continue
3376   case $ac_file in
3377     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3378         ;;
3379     [ab].out )
3380         # We found the default executable, but exeext='' is most
3381         # certainly right.
3382         break;;
3383     *.* )
3384         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3385         then :; else
3386            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3387         fi
3388         # We set ac_cv_exeext here because the later test for it is not
3389         # safe: cross compilers may not add the suffix if given an `-o'
3390         # argument, so we may need to know it at that point already.
3391         # Even if this section looks crufty: it has the advantage of
3392         # actually working.
3393         break;;
3394     * )
3395         break;;
3396   esac
3397 done
3398 test "$ac_cv_exeext" = no && ac_cv_exeext=
3399
3400 else
3401   ac_file=''
3402 fi
3403 if test -z "$ac_file"; then :
3404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3406 $as_echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3408
3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411 as_fn_error 77 "C compiler cannot create executables
3412 See \`config.log' for more details" "$LINENO" 5 ; }
3413 else
3414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3415 $as_echo "yes" >&6; }
3416 fi
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3418 $as_echo_n "checking for C compiler default output file name... " >&6; }
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3420 $as_echo "$ac_file" >&6; }
3421 ac_exeext=$ac_cv_exeext
3422
3423 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3424 ac_clean_files=$ac_clean_files_save
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3426 $as_echo_n "checking for suffix of executables... " >&6; }
3427 if { { ac_try="$ac_link"
3428 case "(($ac_try" in
3429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430   *) ac_try_echo=$ac_try;;
3431 esac
3432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433 $as_echo "$ac_try_echo"; } >&5
3434   (eval "$ac_link") 2>&5
3435   ac_status=$?
3436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437   test $ac_status = 0; }; then :
3438   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3439 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3440 # work properly (i.e., refer to `conftest.exe'), while it won't with
3441 # `rm'.
3442 for ac_file in conftest.exe conftest conftest.*; do
3443   test -f "$ac_file" || continue
3444   case $ac_file in
3445     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3446     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3447           break;;
3448     * ) break;;
3449   esac
3450 done
3451 else
3452   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3455 See \`config.log' for more details" "$LINENO" 5 ; }
3456 fi
3457 rm -f conftest conftest$ac_cv_exeext
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3459 $as_echo "$ac_cv_exeext" >&6; }
3460
3461 rm -f conftest.$ac_ext
3462 EXEEXT=$ac_cv_exeext
3463 ac_exeext=$EXEEXT
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h.  */
3466 #include <stdio.h>
3467 int
3468 main ()
3469 {
3470 FILE *f = fopen ("conftest.out", "w");
3471  return ferror (f) || fclose (f) != 0;
3472
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 ac_clean_files="$ac_clean_files conftest.out"
3478 # Check that the compiler produces executables we can run.  If not, either
3479 # the compiler is broken, or we cross compile.
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3481 $as_echo_n "checking whether we are cross compiling... " >&6; }
3482 if test "$cross_compiling" != yes; then
3483   { { ac_try="$ac_link"
3484 case "(($ac_try" in
3485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486   *) ac_try_echo=$ac_try;;
3487 esac
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490   (eval "$ac_link") 2>&5
3491   ac_status=$?
3492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493   test $ac_status = 0; }
3494   if { ac_try='./conftest$ac_cv_exeext'
3495   { { case "(($ac_try" in
3496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497   *) ac_try_echo=$ac_try;;
3498 esac
3499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500 $as_echo "$ac_try_echo"; } >&5
3501   (eval "$ac_try") 2>&5
3502   ac_status=$?
3503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504   test $ac_status = 0; }; }; then
3505     cross_compiling=no
3506   else
3507     if test "$cross_compiling" = maybe; then
3508         cross_compiling=yes
3509     else
3510         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3512 as_fn_error $? "cannot run C compiled programs.
3513 If you meant to cross compile, use \`--host'.
3514 See \`config.log' for more details" "$LINENO" 5 ; }
3515     fi
3516   fi
3517 fi
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3519 $as_echo "$cross_compiling" >&6; }
3520
3521 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3522 ac_clean_files=$ac_clean_files_save
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3524 $as_echo_n "checking for suffix of object files... " >&6; }
3525 if test "${ac_cv_objext+set}" = set; then :
3526   $as_echo_n "(cached) " >&6
3527 else
3528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h.  */
3530
3531 int
3532 main ()
3533 {
3534
3535   ;
3536   return 0;
3537 }
3538 _ACEOF
3539 rm -f conftest.o conftest.obj
3540 if { { ac_try="$ac_compile"
3541 case "(($ac_try" in
3542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543   *) ac_try_echo=$ac_try;;
3544 esac
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547   (eval "$ac_compile") 2>&5
3548   ac_status=$?
3549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550   test $ac_status = 0; }; then :
3551   for ac_file in conftest.o conftest.obj conftest.*; do
3552   test -f "$ac_file" || continue;
3553   case $ac_file in
3554     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3555     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3556        break;;
3557   esac
3558 done
3559 else
3560   $as_echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565 as_fn_error $? "cannot compute suffix of object files: cannot compile
3566 See \`config.log' for more details" "$LINENO" 5 ; }
3567 fi
3568 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3569 fi
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3571 $as_echo "$ac_cv_objext" >&6; }
3572 OBJEXT=$ac_cv_objext
3573 ac_objext=$OBJEXT
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3575 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3576 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3577   $as_echo_n "(cached) " >&6
3578 else
3579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h.  */
3581
3582 int
3583 main ()
3584 {
3585 #ifndef __GNUC__
3586        choke me
3587 #endif
3588
3589   ;
3590   return 0;
3591 }
3592 _ACEOF
3593 if ac_fn_c_try_compile "$LINENO"; then :
3594   ac_compiler_gnu=yes
3595 else
3596   ac_compiler_gnu=no
3597 fi
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3600
3601 fi
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3603 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3604 if test $ac_compiler_gnu = yes; then
3605   GCC=yes
3606 else
3607   GCC=
3608 fi
3609 ac_test_CFLAGS=${CFLAGS+set}
3610 ac_save_CFLAGS=$CFLAGS
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3612 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3613 if test "${ac_cv_prog_cc_g+set}" = set; then :
3614   $as_echo_n "(cached) " >&6
3615 else
3616   ac_save_c_werror_flag=$ac_c_werror_flag
3617    ac_c_werror_flag=yes
3618    ac_cv_prog_cc_g=no
3619    CFLAGS="-g"
3620    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h.  */
3622
3623 int
3624 main ()
3625 {
3626
3627   ;
3628   return 0;
3629 }
3630 _ACEOF
3631 if ac_fn_c_try_compile "$LINENO"; then :
3632   ac_cv_prog_cc_g=yes
3633 else
3634   CFLAGS=""
3635       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h.  */
3637
3638 int
3639 main ()
3640 {
3641
3642   ;
3643   return 0;
3644 }
3645 _ACEOF
3646 if ac_fn_c_try_compile "$LINENO"; then :
3647
3648 else
3649   ac_c_werror_flag=$ac_save_c_werror_flag
3650          CFLAGS="-g"
3651          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h.  */
3653
3654 int
3655 main ()
3656 {
3657
3658   ;
3659   return 0;
3660 }
3661 _ACEOF
3662 if ac_fn_c_try_compile "$LINENO"; then :
3663   ac_cv_prog_cc_g=yes
3664 fi
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 fi
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 fi
3669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3670    ac_c_werror_flag=$ac_save_c_werror_flag
3671 fi
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3673 $as_echo "$ac_cv_prog_cc_g" >&6; }
3674 if test "$ac_test_CFLAGS" = set; then
3675   CFLAGS=$ac_save_CFLAGS
3676 elif test $ac_cv_prog_cc_g = yes; then
3677   if test "$GCC" = yes; then
3678     CFLAGS="-g -O2"
3679   else
3680     CFLAGS="-g"
3681   fi
3682 else
3683   if test "$GCC" = yes; then
3684     CFLAGS="-O2"
3685   else
3686     CFLAGS=
3687   fi
3688 fi
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3690 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3691 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3692   $as_echo_n "(cached) " >&6
3693 else
3694   ac_cv_prog_cc_c89=no
3695 ac_save_CC=$CC
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h.  */
3698 #include <stdarg.h>
3699 #include <stdio.h>
3700 #include <sys/types.h>
3701 #include <sys/stat.h>
3702 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3703 struct buf { int x; };
3704 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3705 static char *e (p, i)
3706      char **p;
3707      int i;
3708 {
3709   return p[i];
3710 }
3711 static char *f (char * (*g) (char **, int), char **p, ...)
3712 {
3713   char *s;
3714   va_list v;
3715   va_start (v,p);
3716   s = g (p, va_arg (v,int));
3717   va_end (v);
3718   return s;
3719 }
3720
3721 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3722    function prototypes and stuff, but not '\xHH' hex character constants.
3723    These don't provoke an error unfortunately, instead are silently treated
3724    as 'x'.  The following induces an error, until -std is added to get
3725    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3726    array size at least.  It's necessary to write '\x00'==0 to get something
3727    that's true only with -std.  */
3728 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3729
3730 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3731    inside strings and character constants.  */
3732 #define FOO(x) 'x'
3733 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3734
3735 int test (int i, double x);
3736 struct s1 {int (*f) (int a);};
3737 struct s2 {int (*f) (double a);};
3738 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3739 int argc;
3740 char **argv;
3741 int
3742 main ()
3743 {
3744 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3745   ;
3746   return 0;
3747 }
3748 _ACEOF
3749 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3750         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3751 do
3752   CC="$ac_save_CC $ac_arg"
3753   if ac_fn_c_try_compile "$LINENO"; then :
3754   ac_cv_prog_cc_c89=$ac_arg
3755 fi
3756 rm -f core conftest.err conftest.$ac_objext
3757   test "x$ac_cv_prog_cc_c89" != "xno" && break
3758 done
3759 rm -f conftest.$ac_ext
3760 CC=$ac_save_CC
3761
3762 fi
3763 # AC_CACHE_VAL
3764 case "x$ac_cv_prog_cc_c89" in
3765   x)
3766     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3767 $as_echo "none needed" >&6; } ;;
3768   xno)
3769     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3770 $as_echo "unsupported" >&6; } ;;
3771   *)
3772     CC="$CC $ac_cv_prog_cc_c89"
3773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3774 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3775 esac
3776 if test "x$ac_cv_prog_cc_c89" != xno; then :
3777
3778 fi
3779
3780 ac_ext=c
3781 ac_cpp='$CPP $CPPFLAGS'
3782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785
3786 depcc="$CC"   am_compiler_list=
3787
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3789 $as_echo_n "checking dependency style of $depcc... " >&6; }
3790 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3791   $as_echo_n "(cached) " >&6
3792 else
3793   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3794   # We make a subdir and do the tests there.  Otherwise we can end up
3795   # making bogus files that we don't know about and never remove.  For
3796   # instance it was reported that on HP-UX the gcc test will end up
3797   # making a dummy file named `D' -- because `-MD' means `put the output
3798   # in D'.
3799   mkdir conftest.dir
3800   # Copy depcomp to subdir because otherwise we won't find it if we're
3801   # using a relative directory.
3802   cp "$am_depcomp" conftest.dir
3803   cd conftest.dir
3804   # We will build objects and dependencies in a subdirectory because
3805   # it helps to detect inapplicable dependency modes.  For instance
3806   # both Tru64's cc and ICC support -MD to output dependencies as a
3807   # side effect of compilation, but ICC will put the dependencies in
3808   # the current directory while Tru64 will put them in the object
3809   # directory.
3810   mkdir sub
3811
3812   am_cv_CC_dependencies_compiler_type=none
3813   if test "$am_compiler_list" = ""; then
3814      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3815   fi
3816   am__universal=false
3817   case " $depcc " in #(
3818      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3819      esac
3820
3821   for depmode in $am_compiler_list; do
3822     # Setup a source with many dependencies, because some compilers
3823     # like to wrap large dependency lists on column 80 (with \), and
3824     # we should not choose a depcomp mode which is confused by this.
3825     #
3826     # We need to recreate these files for each test, as the compiler may
3827     # overwrite some of them when testing with obscure command lines.
3828     # This happens at least with the AIX C compiler.
3829     : > sub/conftest.c
3830     for i in 1 2 3 4 5 6; do
3831       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3832       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3833       # Solaris 8's {/usr,}/bin/sh.
3834       touch sub/conftst$i.h
3835     done
3836     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3837
3838     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3839     # mode.  It turns out that the SunPro C++ compiler does not properly
3840     # handle `-M -o', and we need to detect this.  Also, some Intel
3841     # versions had trouble with output in subdirs
3842     am__obj=sub/conftest.${OBJEXT-o}
3843     am__minus_obj="-o $am__obj"
3844     case $depmode in
3845     gcc)
3846       # This depmode causes a compiler race in universal mode.
3847       test "$am__universal" = false || continue
3848       ;;
3849     nosideeffect)
3850       # after this tag, mechanisms are not by side-effect, so they'll
3851       # only be used when explicitly requested
3852       if test "x$enable_dependency_tracking" = xyes; then
3853         continue
3854       else
3855         break
3856       fi
3857       ;;
3858     msvisualcpp | msvcmsys)
3859       # This compiler won't grok `-c -o', but also, the minuso test has
3860       # not run yet.  These depmodes are late enough in the game, and
3861       # so weak that their functioning should not be impacted.
3862       am__obj=conftest.${OBJEXT-o}
3863       am__minus_obj=
3864       ;;
3865     none) break ;;
3866     esac
3867     if depmode=$depmode \
3868        source=sub/conftest.c object=$am__obj \
3869        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3870        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3871          >/dev/null 2>conftest.err &&
3872        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3873        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3874        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3875        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3876       # icc doesn't choke on unknown options, it will just issue warnings
3877       # or remarks (even with -Werror).  So we grep stderr for any message
3878       # that says an option was ignored or not supported.
3879       # When given -MP, icc 7.0 and 7.1 complain thusly:
3880       #   icc: Command line warning: ignoring option '-M'; no argument required
3881       # The diagnosis changed in icc 8.0:
3882       #   icc: Command line remark: option '-MP' not supported
3883       if (grep 'ignoring option' conftest.err ||
3884           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3885         am_cv_CC_dependencies_compiler_type=$depmode
3886         break
3887       fi
3888     fi
3889   done
3890
3891   cd ..
3892   rm -rf conftest.dir
3893 else
3894   am_cv_CC_dependencies_compiler_type=none
3895 fi
3896
3897 fi
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3899 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3900 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3901
3902  if
3903   test "x$enable_dependency_tracking" != xno \
3904   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3905   am__fastdepCC_TRUE=
3906   am__fastdepCC_FALSE='#'
3907 else
3908   am__fastdepCC_TRUE='#'
3909   am__fastdepCC_FALSE=
3910 fi
3911
3912
3913
3914 # Check whether --enable-glibtest was given.
3915 if test "${enable_glibtest+set}" = set; then :
3916   enableval=$enable_glibtest;
3917 else
3918   enable_glibtest=yes
3919 fi
3920
3921
3922   pkg_config_args=glib-2.0
3923   for module in .
3924   do
3925       case "$module" in
3926          gmodule)
3927              pkg_config_args="$pkg_config_args gmodule-2.0"
3928          ;;
3929          gmodule-no-export)
3930              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
3931          ;;
3932          gobject)
3933              pkg_config_args="$pkg_config_args gobject-2.0"
3934          ;;
3935          gthread)
3936              pkg_config_args="$pkg_config_args gthread-2.0"
3937          ;;
3938          gio*)
3939              pkg_config_args="$pkg_config_args $module-2.0"
3940          ;;
3941       esac
3942   done
3943
3944
3945
3946
3947
3948
3949
3950 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3951         if test -n "$ac_tool_prefix"; then
3952   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3953 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955 $as_echo_n "checking for $ac_word... " >&6; }
3956 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
3957   $as_echo_n "(cached) " >&6
3958 else
3959   case $PKG_CONFIG in
3960   [\\/]* | ?:[\\/]*)
3961   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3962   ;;
3963   *)
3964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 for as_dir in $PATH
3966 do
3967   IFS=$as_save_IFS
3968   test -z "$as_dir" && as_dir=.
3969     for ac_exec_ext in '' $ac_executable_extensions; do
3970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3971     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3973     break 2
3974   fi
3975 done
3976   done
3977 IFS=$as_save_IFS
3978
3979   ;;
3980 esac
3981 fi
3982 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3983 if test -n "$PKG_CONFIG"; then
3984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3985 $as_echo "$PKG_CONFIG" >&6; }
3986 else
3987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988 $as_echo "no" >&6; }
3989 fi
3990
3991
3992 fi
3993 if test -z "$ac_cv_path_PKG_CONFIG"; then
3994   ac_pt_PKG_CONFIG=$PKG_CONFIG
3995   # Extract the first word of "pkg-config", so it can be a program name with args.
3996 set dummy pkg-config; ac_word=$2
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998 $as_echo_n "checking for $ac_word... " >&6; }
3999 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4000   $as_echo_n "(cached) " >&6
4001 else
4002   case $ac_pt_PKG_CONFIG in
4003   [\\/]* | ?:[\\/]*)
4004   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4005   ;;
4006   *)
4007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH
4009 do
4010   IFS=$as_save_IFS
4011   test -z "$as_dir" && as_dir=.
4012     for ac_exec_ext in '' $ac_executable_extensions; do
4013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4014     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016     break 2
4017   fi
4018 done
4019   done
4020 IFS=$as_save_IFS
4021
4022   ;;
4023 esac
4024 fi
4025 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4026 if test -n "$ac_pt_PKG_CONFIG"; then
4027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4028 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4029 else
4030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031 $as_echo "no" >&6; }
4032 fi
4033
4034   if test "x$ac_pt_PKG_CONFIG" = x; then
4035     PKG_CONFIG=""
4036   else
4037     case $cross_compiling:$ac_tool_warned in
4038 yes:)
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4041 ac_tool_warned=yes ;;
4042 esac
4043     PKG_CONFIG=$ac_pt_PKG_CONFIG
4044   fi
4045 else
4046   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4047 fi
4048
4049 fi
4050 if test -n "$PKG_CONFIG"; then
4051         _pkg_min_version=0.16
4052         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4053 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4054         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4055                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4056 $as_echo "yes" >&6; }
4057         else
4058                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 $as_echo "no" >&6; }
4060                 PKG_CONFIG=""
4061         fi
4062 fi
4063
4064   no_glib=""
4065
4066   if test "x$PKG_CONFIG" = x ; then
4067     no_glib=yes
4068     PKG_CONFIG=no
4069   fi
4070
4071   min_glib_version=2.0.0
4072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
4073 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
4074
4075   if test x$PKG_CONFIG != xno ; then
4076     ## don't try to run the test against uninstalled libtool libs
4077     if $PKG_CONFIG --uninstalled $pkg_config_args; then
4078           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
4079           enable_glibtest=no
4080     fi
4081
4082     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
4083           :
4084     else
4085           no_glib=yes
4086     fi
4087   fi
4088
4089   if test x"$no_glib" = x ; then
4090     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
4091     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
4092     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
4093
4094     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
4095     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
4096     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
4097            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4098     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
4099            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4100     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
4101            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4102     if test "x$enable_glibtest" = "xyes" ; then
4103       ac_save_CFLAGS="$CFLAGS"
4104       ac_save_LIBS="$LIBS"
4105       CFLAGS="$CFLAGS $GLIB_CFLAGS"
4106       LIBS="$GLIB_LIBS $LIBS"
4107       rm -f conf.glibtest
4108       if test "$cross_compiling" = yes; then :
4109   echo $ac_n "cross compiling; assumed OK... $ac_c"
4110 else
4111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h.  */
4113
4114 #include <glib.h>
4115 #include <stdio.h>
4116 #include <stdlib.h>
4117
4118 int
4119 main ()
4120 {
4121   unsigned int major, minor, micro;
4122   char *tmp_version;
4123
4124   fclose (fopen ("conf.glibtest", "w"));
4125
4126   /* HP/UX 9 (%@#!) writes to sscanf strings */
4127   tmp_version = g_strdup("$min_glib_version");
4128   if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, &micro) != 3) {
4129      printf("%s, bad version string\n", "$min_glib_version");
4130      exit(1);
4131    }
4132
4133   if ((glib_major_version != $glib_config_major_version) ||
4134       (glib_minor_version != $glib_config_minor_version) ||
4135       (glib_micro_version != $glib_config_micro_version))
4136     {
4137       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
4138              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
4139              glib_major_version, glib_minor_version, glib_micro_version);
4140       printf ("*** was found! If pkg-config was correct, then it is best\n");
4141       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
4142       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
4143       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
4144       printf("*** required on your system.\n");
4145       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
4146       printf("*** to point to the correct configuration files\n");
4147     }
4148   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
4149            (glib_minor_version != GLIB_MINOR_VERSION) ||
4150            (glib_micro_version != GLIB_MICRO_VERSION))
4151     {
4152       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
4153              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
4154       printf("*** library (version %d.%d.%d)\n",
4155              glib_major_version, glib_minor_version, glib_micro_version);
4156     }
4157   else
4158     {
4159       if ((glib_major_version > major) ||
4160         ((glib_major_version == major) && (glib_minor_version > minor)) ||
4161         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
4162       {
4163         return 0;
4164        }
4165      else
4166       {
4167         printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
4168                glib_major_version, glib_minor_version, glib_micro_version);
4169         printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
4170                major, minor, micro);
4171         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
4172         printf("***\n");
4173         printf("*** If you have already installed a sufficiently new version, this error\n");
4174         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
4175         printf("*** being found. The easiest way to fix this is to remove the old version\n");
4176         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
4177         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
4178         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
4179         printf("*** so that the correct libraries are found at run-time))\n");
4180       }
4181     }
4182   return 1;
4183 }
4184
4185 _ACEOF
4186 if ac_fn_c_try_run "$LINENO"; then :
4187
4188 else
4189   no_glib=yes
4190 fi
4191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4192   conftest.$ac_objext conftest.beam conftest.$ac_ext
4193 fi
4194
4195        CFLAGS="$ac_save_CFLAGS"
4196        LIBS="$ac_save_LIBS"
4197      fi
4198   fi
4199   if test "x$no_glib" = x ; then
4200      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
4201 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
4202      :
4203   else
4204      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4206      if test "$PKG_CONFIG" = "no" ; then
4207        echo "*** A new enough version of pkg-config was not found."
4208        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
4209      else
4210        if test -f conf.glibtest ; then
4211         :
4212        else
4213           echo "*** Could not run GLIB test program, checking why..."
4214           ac_save_CFLAGS="$CFLAGS"
4215           ac_save_LIBS="$LIBS"
4216           CFLAGS="$CFLAGS $GLIB_CFLAGS"
4217           LIBS="$LIBS $GLIB_LIBS"
4218           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h.  */
4220
4221 #include <glib.h>
4222 #include <stdio.h>
4223
4224 int
4225 main ()
4226 {
4227  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
4228   ;
4229   return 0;
4230 }
4231 _ACEOF
4232 if ac_fn_c_try_link "$LINENO"; then :
4233    echo "*** The test program compiled, but did not run. This usually means"
4234           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
4235           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
4236           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4237           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
4238           echo "*** is required on your system"
4239           echo "***"
4240           echo "*** If you have an old version installed, it is best to remove it, although"
4241           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4242 else
4243    echo "*** The test program failed to compile or link. See the file config.log for the"
4244           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
4245 fi
4246 rm -f core conftest.err conftest.$ac_objext \
4247     conftest$ac_exeext conftest.$ac_ext
4248           CFLAGS="$ac_save_CFLAGS"
4249           LIBS="$ac_save_LIBS"
4250        fi
4251      fi
4252      GLIB_CFLAGS=""
4253      GLIB_LIBS=""
4254      GLIB_GENMARSHAL=""
4255      GOBJECT_QUERY=""
4256      GLIB_MKENUMS=""
4257      :
4258   fi
4259
4260
4261
4262
4263
4264   rm -f conf.glibtest
4265
4266 if test "x$CC" != xcc; then
4267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4268 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4269 else
4270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4271 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4272 fi
4273 set dummy $CC; ac_cc=`$as_echo "$2" |
4274                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4275 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
4276   $as_echo_n "(cached) " >&6
4277 else
4278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h.  */
4280
4281 int
4282 main ()
4283 {
4284
4285   ;
4286   return 0;
4287 }
4288 _ACEOF
4289 # Make sure it works both with $CC and with simple cc.
4290 # We do the test twice because some compilers refuse to overwrite an
4291 # existing .o file with -o, though they will create one.
4292 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4293 rm -f conftest2.*
4294 if { { case "(($ac_try" in
4295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296   *) ac_try_echo=$ac_try;;
4297 esac
4298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299 $as_echo "$ac_try_echo"; } >&5
4300   (eval "$ac_try") 2>&5
4301   ac_status=$?
4302   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4303   test $ac_status = 0; } &&
4304    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306   *) ac_try_echo=$ac_try;;
4307 esac
4308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4309 $as_echo "$ac_try_echo"; } >&5
4310   (eval "$ac_try") 2>&5
4311   ac_status=$?
4312   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4313   test $ac_status = 0; };
4314 then
4315   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4316   if test "x$CC" != xcc; then
4317     # Test first that cc exists at all.
4318     if { ac_try='cc -c conftest.$ac_ext >&5'
4319   { { case "(($ac_try" in
4320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321   *) ac_try_echo=$ac_try;;
4322 esac
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 $as_echo "$ac_try_echo"; } >&5
4325   (eval "$ac_try") 2>&5
4326   ac_status=$?
4327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328   test $ac_status = 0; }; }; then
4329       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4330       rm -f conftest2.*
4331       if { { case "(($ac_try" in
4332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333   *) ac_try_echo=$ac_try;;
4334 esac
4335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4336 $as_echo "$ac_try_echo"; } >&5
4337   (eval "$ac_try") 2>&5
4338   ac_status=$?
4339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4340   test $ac_status = 0; } &&
4341          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343   *) ac_try_echo=$ac_try;;
4344 esac
4345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4346 $as_echo "$ac_try_echo"; } >&5
4347   (eval "$ac_try") 2>&5
4348   ac_status=$?
4349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4350   test $ac_status = 0; };
4351       then
4352         # cc works too.
4353         :
4354       else
4355         # cc exists but doesn't like -o.
4356         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4357       fi
4358     fi
4359   fi
4360 else
4361   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4362 fi
4363 rm -f core conftest*
4364
4365 fi
4366 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4368 $as_echo "yes" >&6; }
4369 else
4370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371 $as_echo "no" >&6; }
4372
4373 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4374
4375 fi
4376
4377 # FIXME: we rely on the cache variable name because
4378 # there is no other way.
4379 set dummy $CC
4380 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4381 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4382 if test "$am_t" != yes; then
4383    # Losing compiler, so override with the script.
4384    # FIXME: It is wrong to rewrite CC.
4385    # But if we don't then we get into trouble of one sort or another.
4386    # A longer-term fix would be to have automake use am__CC in this case,
4387    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4388    CC="$am_aux_dir/compile $CC"
4389 fi
4390
4391
4392 case `pwd` in
4393   *\ * | *\     *)
4394     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4395 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4396 esac
4397
4398
4399
4400 macro_version='2.2.6b'
4401 macro_revision='1.3017'
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415 ltmain="$ac_aux_dir/ltmain.sh"
4416
4417 # Make sure we can run config.sub.
4418 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4419   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4420
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4422 $as_echo_n "checking build system type... " >&6; }
4423 if test "${ac_cv_build+set}" = set; then :
4424   $as_echo_n "(cached) " >&6
4425 else
4426   ac_build_alias=$build_alias
4427 test "x$ac_build_alias" = x &&
4428   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4429 test "x$ac_build_alias" = x &&
4430   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4431 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4432   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4433
4434 fi
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4436 $as_echo "$ac_cv_build" >&6; }
4437 case $ac_cv_build in
4438 *-*-*) ;;
4439 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4440 esac
4441 build=$ac_cv_build
4442 ac_save_IFS=$IFS; IFS='-'
4443 set x $ac_cv_build
4444 shift
4445 build_cpu=$1
4446 build_vendor=$2
4447 shift; shift
4448 # Remember, the first character of IFS is used to create $*,
4449 # except with old shells:
4450 build_os=$*
4451 IFS=$ac_save_IFS
4452 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4453
4454
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4456 $as_echo_n "checking host system type... " >&6; }
4457 if test "${ac_cv_host+set}" = set; then :
4458   $as_echo_n "(cached) " >&6
4459 else
4460   if test "x$host_alias" = x; then
4461   ac_cv_host=$ac_cv_build
4462 else
4463   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4464     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4465 fi
4466
4467 fi
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4469 $as_echo "$ac_cv_host" >&6; }
4470 case $ac_cv_host in
4471 *-*-*) ;;
4472 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4473 esac
4474 host=$ac_cv_host
4475 ac_save_IFS=$IFS; IFS='-'
4476 set x $ac_cv_host
4477 shift
4478 host_cpu=$1
4479 host_vendor=$2
4480 shift; shift
4481 # Remember, the first character of IFS is used to create $*,
4482 # except with old shells:
4483 host_os=$*
4484 IFS=$ac_save_IFS
4485 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4486
4487
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4489 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4490 if test "${ac_cv_path_SED+set}" = set; then :
4491   $as_echo_n "(cached) " >&6
4492 else
4493             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4494      for ac_i in 1 2 3 4 5 6 7; do
4495        ac_script="$ac_script$as_nl$ac_script"
4496      done
4497      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4498      { ac_script=; unset ac_script;}
4499      if test -z "$SED"; then
4500   ac_path_SED_found=false
4501   # Loop through the user's path and test for each of PROGNAME-LIST
4502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH
4504 do
4505   IFS=$as_save_IFS
4506   test -z "$as_dir" && as_dir=.
4507     for ac_prog in sed gsed; do
4508     for ac_exec_ext in '' $ac_executable_extensions; do
4509       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4510       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4511 # Check for GNU ac_path_SED and select it if it is found.
4512   # Check for GNU $ac_path_SED
4513 case `"$ac_path_SED" --version 2>&1` in
4514 *GNU*)
4515   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4516 *)
4517   ac_count=0
4518   $as_echo_n 0123456789 >"conftest.in"
4519   while :
4520   do
4521     cat "conftest.in" "conftest.in" >"conftest.tmp"
4522     mv "conftest.tmp" "conftest.in"
4523     cp "conftest.in" "conftest.nl"
4524     $as_echo '' >> "conftest.nl"
4525     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4526     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4527     as_fn_arith $ac_count + 1 && ac_count=$as_val
4528     if test $ac_count -gt ${ac_path_SED_max-0}; then
4529       # Best one so far, save it but keep looking for a better one
4530       ac_cv_path_SED="$ac_path_SED"
4531       ac_path_SED_max=$ac_count
4532     fi
4533     # 10*(2^10) chars as input seems more than enough
4534     test $ac_count -gt 10 && break
4535   done
4536   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4537 esac
4538
4539       $ac_path_SED_found && break 3
4540     done
4541   done
4542   done
4543 IFS=$as_save_IFS
4544   if test -z "$ac_cv_path_SED"; then
4545     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4546   fi
4547 else
4548   ac_cv_path_SED=$SED
4549 fi
4550
4551 fi
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4553 $as_echo "$ac_cv_path_SED" >&6; }
4554  SED="$ac_cv_path_SED"
4555   rm -f conftest.sed
4556
4557 test -z "$SED" && SED=sed
4558 Xsed="$SED -e 1s/^X//"
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4571 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4572 if test "${ac_cv_path_GREP+set}" = set; then :
4573   $as_echo_n "(cached) " >&6
4574 else
4575   if test -z "$GREP"; then
4576   ac_path_GREP_found=false
4577   # Loop through the user's path and test for each of PROGNAME-LIST
4578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4580 do
4581   IFS=$as_save_IFS
4582   test -z "$as_dir" && as_dir=.
4583     for ac_prog in grep ggrep; do
4584     for ac_exec_ext in '' $ac_executable_extensions; do
4585       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4586       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4587 # Check for GNU ac_path_GREP and select it if it is found.
4588   # Check for GNU $ac_path_GREP
4589 case `"$ac_path_GREP" --version 2>&1` in
4590 *GNU*)
4591   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4592 *)
4593   ac_count=0
4594   $as_echo_n 0123456789 >"conftest.in"
4595   while :
4596   do
4597     cat "conftest.in" "conftest.in" >"conftest.tmp"
4598     mv "conftest.tmp" "conftest.in"
4599     cp "conftest.in" "conftest.nl"
4600     $as_echo 'GREP' >> "conftest.nl"
4601     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4602     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4603     as_fn_arith $ac_count + 1 && ac_count=$as_val
4604     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4605       # Best one so far, save it but keep looking for a better one
4606       ac_cv_path_GREP="$ac_path_GREP"
4607       ac_path_GREP_max=$ac_count
4608     fi
4609     # 10*(2^10) chars as input seems more than enough
4610     test $ac_count -gt 10 && break
4611   done
4612   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4613 esac
4614
4615       $ac_path_GREP_found && break 3
4616     done
4617   done
4618   done
4619 IFS=$as_save_IFS
4620   if test -z "$ac_cv_path_GREP"; then
4621     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4622   fi
4623 else
4624   ac_cv_path_GREP=$GREP
4625 fi
4626
4627 fi
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4629 $as_echo "$ac_cv_path_GREP" >&6; }
4630  GREP="$ac_cv_path_GREP"
4631
4632
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4634 $as_echo_n "checking for egrep... " >&6; }
4635 if test "${ac_cv_path_EGREP+set}" = set; then :
4636   $as_echo_n "(cached) " >&6
4637 else
4638   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4639    then ac_cv_path_EGREP="$GREP -E"
4640    else
4641      if test -z "$EGREP"; then
4642   ac_path_EGREP_found=false
4643   # Loop through the user's path and test for each of PROGNAME-LIST
4644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4646 do
4647   IFS=$as_save_IFS
4648   test -z "$as_dir" && as_dir=.
4649     for ac_prog in egrep; do
4650     for ac_exec_ext in '' $ac_executable_extensions; do
4651       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4652       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4653 # Check for GNU ac_path_EGREP and select it if it is found.
4654   # Check for GNU $ac_path_EGREP
4655 case `"$ac_path_EGREP" --version 2>&1` in
4656 *GNU*)
4657   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4658 *)
4659   ac_count=0
4660   $as_echo_n 0123456789 >"conftest.in"
4661   while :
4662   do
4663     cat "conftest.in" "conftest.in" >"conftest.tmp"
4664     mv "conftest.tmp" "conftest.in"
4665     cp "conftest.in" "conftest.nl"
4666     $as_echo 'EGREP' >> "conftest.nl"
4667     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4668     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4669     as_fn_arith $ac_count + 1 && ac_count=$as_val
4670     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4671       # Best one so far, save it but keep looking for a better one
4672       ac_cv_path_EGREP="$ac_path_EGREP"
4673       ac_path_EGREP_max=$ac_count
4674     fi
4675     # 10*(2^10) chars as input seems more than enough
4676     test $ac_count -gt 10 && break
4677   done
4678   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4679 esac
4680
4681       $ac_path_EGREP_found && break 3
4682     done
4683   done
4684   done
4685 IFS=$as_save_IFS
4686   if test -z "$ac_cv_path_EGREP"; then
4687     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4688   fi
4689 else
4690   ac_cv_path_EGREP=$EGREP
4691 fi
4692
4693    fi
4694 fi
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4696 $as_echo "$ac_cv_path_EGREP" >&6; }
4697  EGREP="$ac_cv_path_EGREP"
4698
4699
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4701 $as_echo_n "checking for fgrep... " >&6; }
4702 if test "${ac_cv_path_FGREP+set}" = set; then :
4703   $as_echo_n "(cached) " >&6
4704 else
4705   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4706    then ac_cv_path_FGREP="$GREP -F"
4707    else
4708      if test -z "$FGREP"; then
4709   ac_path_FGREP_found=false
4710   # Loop through the user's path and test for each of PROGNAME-LIST
4711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4713 do
4714   IFS=$as_save_IFS
4715   test -z "$as_dir" && as_dir=.
4716     for ac_prog in fgrep; do
4717     for ac_exec_ext in '' $ac_executable_extensions; do
4718       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4719       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4720 # Check for GNU ac_path_FGREP and select it if it is found.
4721   # Check for GNU $ac_path_FGREP
4722 case `"$ac_path_FGREP" --version 2>&1` in
4723 *GNU*)
4724   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4725 *)
4726   ac_count=0
4727   $as_echo_n 0123456789 >"conftest.in"
4728   while :
4729   do
4730     cat "conftest.in" "conftest.in" >"conftest.tmp"
4731     mv "conftest.tmp" "conftest.in"
4732     cp "conftest.in" "conftest.nl"
4733     $as_echo 'FGREP' >> "conftest.nl"
4734     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4735     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4736     as_fn_arith $ac_count + 1 && ac_count=$as_val
4737     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4738       # Best one so far, save it but keep looking for a better one
4739       ac_cv_path_FGREP="$ac_path_FGREP"
4740       ac_path_FGREP_max=$ac_count
4741     fi
4742     # 10*(2^10) chars as input seems more than enough
4743     test $ac_count -gt 10 && break
4744   done
4745   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4746 esac
4747
4748       $ac_path_FGREP_found && break 3
4749     done
4750   done
4751   done
4752 IFS=$as_save_IFS
4753   if test -z "$ac_cv_path_FGREP"; then
4754     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4755   fi
4756 else
4757   ac_cv_path_FGREP=$FGREP
4758 fi
4759
4760    fi
4761 fi
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4763 $as_echo "$ac_cv_path_FGREP" >&6; }
4764  FGREP="$ac_cv_path_FGREP"
4765
4766
4767 test -z "$GREP" && GREP=grep
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787 # Check whether --with-gnu-ld was given.
4788 if test "${with_gnu_ld+set}" = set; then :
4789   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4790 else
4791   with_gnu_ld=no
4792 fi
4793
4794 ac_prog=ld
4795 if test "$GCC" = yes; then
4796   # Check if gcc -print-prog-name=ld gives a path.
4797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4798 $as_echo_n "checking for ld used by $CC... " >&6; }
4799   case $host in
4800   *-*-mingw*)
4801     # gcc leaves a trailing carriage return which upsets mingw
4802     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4803   *)
4804     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4805   esac
4806   case $ac_prog in
4807     # Accept absolute paths.
4808     [\\/]* | ?:[\\/]*)
4809       re_direlt='/[^/][^/]*/\.\./'
4810       # Canonicalize the pathname of ld
4811       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4812       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4813         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4814       done
4815       test -z "$LD" && LD="$ac_prog"
4816       ;;
4817   "")
4818     # If it fails, then pretend we aren't using GCC.
4819     ac_prog=ld
4820     ;;
4821   *)
4822     # If it is relative, then search for the first ld in PATH.
4823     with_gnu_ld=unknown
4824     ;;
4825   esac
4826 elif test "$with_gnu_ld" = yes; then
4827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4828 $as_echo_n "checking for GNU ld... " >&6; }
4829 else
4830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4831 $as_echo_n "checking for non-GNU ld... " >&6; }
4832 fi
4833 if test "${lt_cv_path_LD+set}" = set; then :
4834   $as_echo_n "(cached) " >&6
4835 else
4836   if test -z "$LD"; then
4837   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4838   for ac_dir in $PATH; do
4839     IFS="$lt_save_ifs"
4840     test -z "$ac_dir" && ac_dir=.
4841     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4842       lt_cv_path_LD="$ac_dir/$ac_prog"
4843       # Check to see if the program is GNU ld.  I'd rather use --version,
4844       # but apparently some variants of GNU ld only accept -v.
4845       # Break only if it was the GNU/non-GNU ld that we prefer.
4846       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4847       *GNU* | *'with BFD'*)
4848         test "$with_gnu_ld" != no && break
4849         ;;
4850       *)
4851         test "$with_gnu_ld" != yes && break
4852         ;;
4853       esac
4854     fi
4855   done
4856   IFS="$lt_save_ifs"
4857 else
4858   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4859 fi
4860 fi
4861
4862 LD="$lt_cv_path_LD"
4863 if test -n "$LD"; then
4864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4865 $as_echo "$LD" >&6; }
4866 else
4867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868 $as_echo "no" >&6; }
4869 fi
4870 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4872 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4873 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4874   $as_echo_n "(cached) " >&6
4875 else
4876   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4877 case `$LD -v 2>&1 </dev/null` in
4878 *GNU* | *'with BFD'*)
4879   lt_cv_prog_gnu_ld=yes
4880   ;;
4881 *)
4882   lt_cv_prog_gnu_ld=no
4883   ;;
4884 esac
4885 fi
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4887 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4888 with_gnu_ld=$lt_cv_prog_gnu_ld
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4899 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4900 if test "${lt_cv_path_NM+set}" = set; then :
4901   $as_echo_n "(cached) " >&6
4902 else
4903   if test -n "$NM"; then
4904   # Let the user override the test.
4905   lt_cv_path_NM="$NM"
4906 else
4907   lt_nm_to_check="${ac_tool_prefix}nm"
4908   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4909     lt_nm_to_check="$lt_nm_to_check nm"
4910   fi
4911   for lt_tmp_nm in $lt_nm_to_check; do
4912     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4913     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4914       IFS="$lt_save_ifs"
4915       test -z "$ac_dir" && ac_dir=.
4916       tmp_nm="$ac_dir/$lt_tmp_nm"
4917       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4918         # Check to see if the nm accepts a BSD-compat flag.
4919         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4920         #   nm: unknown option "B" ignored
4921         # Tru64's nm complains that /dev/null is an invalid object file
4922         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4923         */dev/null* | *'Invalid file or object type'*)
4924           lt_cv_path_NM="$tmp_nm -B"
4925           break
4926           ;;
4927         *)
4928           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4929           */dev/null*)
4930             lt_cv_path_NM="$tmp_nm -p"
4931             break
4932             ;;
4933           *)
4934             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4935             continue # so that we can try to find one that supports BSD flags
4936             ;;
4937           esac
4938           ;;
4939         esac
4940       fi
4941     done
4942     IFS="$lt_save_ifs"
4943   done
4944   : ${lt_cv_path_NM=no}
4945 fi
4946 fi
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4948 $as_echo "$lt_cv_path_NM" >&6; }
4949 if test "$lt_cv_path_NM" != "no"; then
4950   NM="$lt_cv_path_NM"
4951 else
4952   # Didn't find any BSD compatible name lister, look for dumpbin.
4953   if test -n "$ac_tool_prefix"; then
4954   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4955   do
4956     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4961   $as_echo_n "(cached) " >&6
4962 else
4963   if test -n "$DUMPBIN"; then
4964   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969   IFS=$as_save_IFS
4970   test -z "$as_dir" && as_dir=.
4971     for ac_exec_ext in '' $ac_executable_extensions; do
4972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4973     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975     break 2
4976   fi
4977 done
4978   done
4979 IFS=$as_save_IFS
4980
4981 fi
4982 fi
4983 DUMPBIN=$ac_cv_prog_DUMPBIN
4984 if test -n "$DUMPBIN"; then
4985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4986 $as_echo "$DUMPBIN" >&6; }
4987 else
4988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4990 fi
4991
4992
4993     test -n "$DUMPBIN" && break
4994   done
4995 fi
4996 if test -z "$DUMPBIN"; then
4997   ac_ct_DUMPBIN=$DUMPBIN
4998   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4999 do
5000   # Extract the first word of "$ac_prog", so it can be a program name with args.
5001 set dummy $ac_prog; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5005   $as_echo_n "(cached) " >&6
5006 else
5007   if test -n "$ac_ct_DUMPBIN"; then
5008   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5012 do
5013   IFS=$as_save_IFS
5014   test -z "$as_dir" && as_dir=.
5015     for ac_exec_ext in '' $ac_executable_extensions; do
5016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019     break 2
5020   fi
5021 done
5022   done
5023 IFS=$as_save_IFS
5024
5025 fi
5026 fi
5027 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5028 if test -n "$ac_ct_DUMPBIN"; then
5029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5030 $as_echo "$ac_ct_DUMPBIN" >&6; }
5031 else
5032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5034 fi
5035
5036
5037   test -n "$ac_ct_DUMPBIN" && break
5038 done
5039
5040   if test "x$ac_ct_DUMPBIN" = x; then
5041     DUMPBIN=":"
5042   else
5043     case $cross_compiling:$ac_tool_warned in
5044 yes:)
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5047 ac_tool_warned=yes ;;
5048 esac
5049     DUMPBIN=$ac_ct_DUMPBIN
5050   fi
5051 fi
5052
5053
5054   if test "$DUMPBIN" != ":"; then
5055     NM="$DUMPBIN"
5056   fi
5057 fi
5058 test -z "$NM" && NM=nm
5059
5060
5061
5062
5063
5064
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5066 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5067 if test "${lt_cv_nm_interface+set}" = set; then :
5068   $as_echo_n "(cached) " >&6
5069 else
5070   lt_cv_nm_interface="BSD nm"
5071   echo "int some_variable = 0;" > conftest.$ac_ext
5072   (eval echo "\"\$as_me:5072: $ac_compile\"" >&5)
5073   (eval "$ac_compile" 2>conftest.err)
5074   cat conftest.err >&5
5075   (eval echo "\"\$as_me:5075: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5076   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5077   cat conftest.err >&5
5078   (eval echo "\"\$as_me:5078: output\"" >&5)
5079   cat conftest.out >&5
5080   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5081     lt_cv_nm_interface="MS dumpbin"
5082   fi
5083   rm -f conftest*
5084 fi
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5086 $as_echo "$lt_cv_nm_interface" >&6; }
5087
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5089 $as_echo_n "checking whether ln -s works... " >&6; }
5090 LN_S=$as_ln_s
5091 if test "$LN_S" = "ln -s"; then
5092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5093 $as_echo "yes" >&6; }
5094 else
5095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5096 $as_echo "no, using $LN_S" >&6; }
5097 fi
5098
5099 # find the maximum length of command line arguments
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5101 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5102 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5103   $as_echo_n "(cached) " >&6
5104 else
5105     i=0
5106   teststring="ABCD"
5107
5108   case $build_os in
5109   msdosdjgpp*)
5110     # On DJGPP, this test can blow up pretty badly due to problems in libc
5111     # (any single argument exceeding 2000 bytes causes a buffer overrun
5112     # during glob expansion).  Even if it were fixed, the result of this
5113     # check would be larger than it should be.
5114     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5115     ;;
5116
5117   gnu*)
5118     # Under GNU Hurd, this test is not required because there is
5119     # no limit to the length of command line arguments.
5120     # Libtool will interpret -1 as no limit whatsoever
5121     lt_cv_sys_max_cmd_len=-1;
5122     ;;
5123
5124   cygwin* | mingw* | cegcc*)
5125     # On Win9x/ME, this test blows up -- it succeeds, but takes
5126     # about 5 minutes as the teststring grows exponentially.
5127     # Worse, since 9x/ME are not pre-emptively multitasking,
5128     # you end up with a "frozen" computer, even though with patience
5129     # the test eventually succeeds (with a max line length of 256k).
5130     # Instead, let's just punt: use the minimum linelength reported by
5131     # all of the supported platforms: 8192 (on NT/2K/XP).
5132     lt_cv_sys_max_cmd_len=8192;
5133     ;;
5134
5135   amigaos*)
5136     # On AmigaOS with pdksh, this test takes hours, literally.
5137     # So we just punt and use a minimum line length of 8192.
5138     lt_cv_sys_max_cmd_len=8192;
5139     ;;
5140
5141   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5142     # This has been around since 386BSD, at least.  Likely further.
5143     if test -x /sbin/sysctl; then
5144       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5145     elif test -x /usr/sbin/sysctl; then
5146       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5147     else
5148       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5149     fi
5150     # And add a safety zone
5151     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5152     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5153     ;;
5154
5155   interix*)
5156     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5157     lt_cv_sys_max_cmd_len=196608
5158     ;;
5159
5160   osf*)
5161     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5162     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5163     # nice to cause kernel panics so lets avoid the loop below.
5164     # First set a reasonable default.
5165     lt_cv_sys_max_cmd_len=16384
5166     #
5167     if test -x /sbin/sysconfig; then
5168       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5169         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5170       esac
5171     fi
5172     ;;
5173   sco3.2v5*)
5174     lt_cv_sys_max_cmd_len=102400
5175     ;;
5176   sysv5* | sco5v6* | sysv4.2uw2*)
5177     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5178     if test -n "$kargmax"; then
5179       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5180     else
5181       lt_cv_sys_max_cmd_len=32768
5182     fi
5183     ;;
5184   *)
5185     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5186     if test -n "$lt_cv_sys_max_cmd_len"; then
5187       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5188       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5189     else
5190       # Make teststring a little bigger before we do anything with it.
5191       # a 1K string should be a reasonable start.
5192       for i in 1 2 3 4 5 6 7 8 ; do
5193         teststring=$teststring$teststring
5194       done
5195       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5196       # If test is not a shell built-in, we'll probably end up computing a
5197       # maximum length that is only half of the actual maximum length, but
5198       # we can't tell.
5199       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5200                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5201               test $i != 17 # 1/2 MB should be enough
5202       do
5203         i=`expr $i + 1`
5204         teststring=$teststring$teststring
5205       done
5206       # Only check the string length outside the loop.
5207       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5208       teststring=
5209       # Add a significant safety factor because C++ compilers can tack on
5210       # massive amounts of additional arguments before passing them to the
5211       # linker.  It appears as though 1/2 is a usable value.
5212       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5213     fi
5214     ;;
5215   esac
5216
5217 fi
5218
5219 if test -n $lt_cv_sys_max_cmd_len ; then
5220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5221 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5222 else
5223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5224 $as_echo "none" >&6; }
5225 fi
5226 max_cmd_len=$lt_cv_sys_max_cmd_len
5227
5228
5229
5230
5231
5232
5233 : ${CP="cp -f"}
5234 : ${MV="mv -f"}
5235 : ${RM="rm -f"}
5236
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5238 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5239 # Try some XSI features
5240 xsi_shell=no
5241 ( _lt_dummy="a/b/c"
5242   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5243       = c,a/b,, \
5244     && eval 'test $(( 1 + 1 )) -eq 2 \
5245     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5246   && xsi_shell=yes
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5248 $as_echo "$xsi_shell" >&6; }
5249
5250
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5252 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5253 lt_shell_append=no
5254 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5255     >/dev/null 2>&1 \
5256   && lt_shell_append=yes
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5258 $as_echo "$lt_shell_append" >&6; }
5259
5260
5261 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5262   lt_unset=unset
5263 else
5264   lt_unset=false
5265 fi
5266
5267
5268
5269
5270
5271 # test EBCDIC or ASCII
5272 case `echo X|tr X '\101'` in
5273  A) # ASCII based system
5274     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5275   lt_SP2NL='tr \040 \012'
5276   lt_NL2SP='tr \015\012 \040\040'
5277   ;;
5278  *) # EBCDIC based system
5279   lt_SP2NL='tr \100 \n'
5280   lt_NL2SP='tr \r\n \100\100'
5281   ;;
5282 esac
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5293 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5294 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5295   $as_echo_n "(cached) " >&6
5296 else
5297   lt_cv_ld_reload_flag='-r'
5298 fi
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5300 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5301 reload_flag=$lt_cv_ld_reload_flag
5302 case $reload_flag in
5303 "" | " "*) ;;
5304 *) reload_flag=" $reload_flag" ;;
5305 esac
5306 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5307 case $host_os in
5308   darwin*)
5309     if test "$GCC" = yes; then
5310       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5311     else
5312       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5313     fi
5314     ;;
5315 esac
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325 if test -n "$ac_tool_prefix"; then
5326   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5327 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5329 $as_echo_n "checking for $ac_word... " >&6; }
5330 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5331   $as_echo_n "(cached) " >&6
5332 else
5333   if test -n "$OBJDUMP"; then
5334   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5335 else
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in $PATH
5338 do
5339   IFS=$as_save_IFS
5340   test -z "$as_dir" && as_dir=.
5341     for ac_exec_ext in '' $ac_executable_extensions; do
5342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5343     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5345     break 2
5346   fi
5347 done
5348   done
5349 IFS=$as_save_IFS
5350
5351 fi
5352 fi
5353 OBJDUMP=$ac_cv_prog_OBJDUMP
5354 if test -n "$OBJDUMP"; then
5355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5356 $as_echo "$OBJDUMP" >&6; }
5357 else
5358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5360 fi
5361
5362
5363 fi
5364 if test -z "$ac_cv_prog_OBJDUMP"; then
5365   ac_ct_OBJDUMP=$OBJDUMP
5366   # Extract the first word of "objdump", so it can be a program name with args.
5367 set dummy objdump; ac_word=$2
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5369 $as_echo_n "checking for $ac_word... " >&6; }
5370 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5371   $as_echo_n "(cached) " >&6
5372 else
5373   if test -n "$ac_ct_OBJDUMP"; then
5374   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5375 else
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH
5378 do
5379   IFS=$as_save_IFS
5380   test -z "$as_dir" && as_dir=.
5381     for ac_exec_ext in '' $ac_executable_extensions; do
5382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5383     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5385     break 2
5386   fi
5387 done
5388   done
5389 IFS=$as_save_IFS
5390
5391 fi
5392 fi
5393 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5394 if test -n "$ac_ct_OBJDUMP"; then
5395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5396 $as_echo "$ac_ct_OBJDUMP" >&6; }
5397 else
5398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5400 fi
5401
5402   if test "x$ac_ct_OBJDUMP" = x; then
5403     OBJDUMP="false"
5404   else
5405     case $cross_compiling:$ac_tool_warned in
5406 yes:)
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5409 ac_tool_warned=yes ;;
5410 esac
5411     OBJDUMP=$ac_ct_OBJDUMP
5412   fi
5413 else
5414   OBJDUMP="$ac_cv_prog_OBJDUMP"
5415 fi
5416
5417 test -z "$OBJDUMP" && OBJDUMP=objdump
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5428 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5429 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5430   $as_echo_n "(cached) " >&6
5431 else
5432   lt_cv_file_magic_cmd='$MAGIC_CMD'
5433 lt_cv_file_magic_test_file=
5434 lt_cv_deplibs_check_method='unknown'
5435 # Need to set the preceding variable on all platforms that support
5436 # interlibrary dependencies.
5437 # 'none' -- dependencies not supported.
5438 # `unknown' -- same as none, but documents that we really don't know.
5439 # 'pass_all' -- all dependencies passed with no checks.
5440 # 'test_compile' -- check by making test program.
5441 # 'file_magic [[regex]]' -- check by looking for files in library path
5442 # which responds to the $file_magic_cmd with a given extended regex.
5443 # If you have `file' or equivalent on your system and you're not sure
5444 # whether `pass_all' will *always* work, you probably want this one.
5445
5446 case $host_os in
5447 aix[4-9]*)
5448   lt_cv_deplibs_check_method=pass_all
5449   ;;
5450
5451 beos*)
5452   lt_cv_deplibs_check_method=pass_all
5453   ;;
5454
5455 bsdi[45]*)
5456   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5457   lt_cv_file_magic_cmd='/usr/bin/file -L'
5458   lt_cv_file_magic_test_file=/shlib/libc.so
5459   ;;
5460
5461 cygwin*)
5462   # func_win32_libid is a shell function defined in ltmain.sh
5463   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5464   lt_cv_file_magic_cmd='func_win32_libid'
5465   ;;
5466
5467 mingw* | pw32*)
5468   # Base MSYS/MinGW do not provide the 'file' command needed by
5469   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5470   # unless we find 'file', for example because we are cross-compiling.
5471   if ( file / ) >/dev/null 2>&1; then
5472     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5473     lt_cv_file_magic_cmd='func_win32_libid'
5474   else
5475     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5476     lt_cv_file_magic_cmd='$OBJDUMP -f'
5477   fi
5478   ;;
5479
5480 cegcc)
5481   # use the weaker test based on 'objdump'. See mingw*.
5482   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5483   lt_cv_file_magic_cmd='$OBJDUMP -f'
5484   ;;
5485
5486 darwin* | rhapsody*)
5487   lt_cv_deplibs_check_method=pass_all
5488   ;;
5489
5490 freebsd* | dragonfly*)
5491   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5492     case $host_cpu in
5493     i*86 )
5494       # Not sure whether the presence of OpenBSD here was a mistake.
5495       # Let's accept both of them until this is cleared up.
5496       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5497       lt_cv_file_magic_cmd=/usr/bin/file
5498       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5499       ;;
5500     esac
5501   else
5502     lt_cv_deplibs_check_method=pass_all
5503   fi
5504   ;;
5505
5506 gnu*)
5507   lt_cv_deplibs_check_method=pass_all
5508   ;;
5509
5510 hpux10.20* | hpux11*)
5511   lt_cv_file_magic_cmd=/usr/bin/file
5512   case $host_cpu in
5513   ia64*)
5514     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5515     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5516     ;;
5517   hppa*64*)
5518     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]'
5519     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5520     ;;
5521   *)
5522     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5523     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5524     ;;
5525   esac
5526   ;;
5527
5528 interix[3-9]*)
5529   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5530   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5531   ;;
5532
5533 irix5* | irix6* | nonstopux*)
5534   case $LD in
5535   *-32|*"-32 ") libmagic=32-bit;;
5536   *-n32|*"-n32 ") libmagic=N32;;
5537   *-64|*"-64 ") libmagic=64-bit;;
5538   *) libmagic=never-match;;
5539   esac
5540   lt_cv_deplibs_check_method=pass_all
5541   ;;
5542
5543 # This must be Linux ELF.
5544 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5545   lt_cv_deplibs_check_method=pass_all
5546   ;;
5547
5548 netbsd* | netbsdelf*-gnu)
5549   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5550     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5551   else
5552     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5553   fi
5554   ;;
5555
5556 newos6*)
5557   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5558   lt_cv_file_magic_cmd=/usr/bin/file
5559   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5560   ;;
5561
5562 *nto* | *qnx*)
5563   lt_cv_deplibs_check_method=pass_all
5564   ;;
5565
5566 openbsd*)
5567   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5568     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5569   else
5570     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5571   fi
5572   ;;
5573
5574 osf3* | osf4* | osf5*)
5575   lt_cv_deplibs_check_method=pass_all
5576   ;;
5577
5578 rdos*)
5579   lt_cv_deplibs_check_method=pass_all
5580   ;;
5581
5582 solaris*)
5583   lt_cv_deplibs_check_method=pass_all
5584   ;;
5585
5586 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5587   lt_cv_deplibs_check_method=pass_all
5588   ;;
5589
5590 sysv4 | sysv4.3*)
5591   case $host_vendor in
5592   motorola)
5593     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]'
5594     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5595     ;;
5596   ncr)
5597     lt_cv_deplibs_check_method=pass_all
5598     ;;
5599   sequent)
5600     lt_cv_file_magic_cmd='/bin/file'
5601     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5602     ;;
5603   sni)
5604     lt_cv_file_magic_cmd='/bin/file'
5605     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5606     lt_cv_file_magic_test_file=/lib/libc.so
5607     ;;
5608   siemens)
5609     lt_cv_deplibs_check_method=pass_all
5610     ;;
5611   pc)
5612     lt_cv_deplibs_check_method=pass_all
5613     ;;
5614   esac
5615   ;;
5616
5617 tpf*)
5618   lt_cv_deplibs_check_method=pass_all
5619   ;;
5620 esac
5621
5622 fi
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5624 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5625 file_magic_cmd=$lt_cv_file_magic_cmd
5626 deplibs_check_method=$lt_cv_deplibs_check_method
5627 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640 if test -n "$ac_tool_prefix"; then
5641   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5642 set dummy ${ac_tool_prefix}ar; ac_word=$2
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644 $as_echo_n "checking for $ac_word... " >&6; }
5645 if test "${ac_cv_prog_AR+set}" = set; then :
5646   $as_echo_n "(cached) " >&6
5647 else
5648   if test -n "$AR"; then
5649   ac_cv_prog_AR="$AR" # Let the user override the test.
5650 else
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH
5653 do
5654   IFS=$as_save_IFS
5655   test -z "$as_dir" && as_dir=.
5656     for ac_exec_ext in '' $ac_executable_extensions; do
5657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5658     ac_cv_prog_AR="${ac_tool_prefix}ar"
5659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660     break 2
5661   fi
5662 done
5663   done
5664 IFS=$as_save_IFS
5665
5666 fi
5667 fi
5668 AR=$ac_cv_prog_AR
5669 if test -n "$AR"; then
5670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5671 $as_echo "$AR" >&6; }
5672 else
5673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674 $as_echo "no" >&6; }
5675 fi
5676
5677
5678 fi
5679 if test -z "$ac_cv_prog_AR"; then
5680   ac_ct_AR=$AR
5681   # Extract the first word of "ar", so it can be a program name with args.
5682 set dummy ar; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5686   $as_echo_n "(cached) " >&6
5687 else
5688   if test -n "$ac_ct_AR"; then
5689   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5690 else
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH
5693 do
5694   IFS=$as_save_IFS
5695   test -z "$as_dir" && as_dir=.
5696     for ac_exec_ext in '' $ac_executable_extensions; do
5697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5698     ac_cv_prog_ac_ct_AR="ar"
5699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5700     break 2
5701   fi
5702 done
5703   done
5704 IFS=$as_save_IFS
5705
5706 fi
5707 fi
5708 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5709 if test -n "$ac_ct_AR"; then
5710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5711 $as_echo "$ac_ct_AR" >&6; }
5712 else
5713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5715 fi
5716
5717   if test "x$ac_ct_AR" = x; then
5718     AR="false"
5719   else
5720     case $cross_compiling:$ac_tool_warned in
5721 yes:)
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5724 ac_tool_warned=yes ;;
5725 esac
5726     AR=$ac_ct_AR
5727   fi
5728 else
5729   AR="$ac_cv_prog_AR"
5730 fi
5731
5732 test -z "$AR" && AR=ar
5733 test -z "$AR_FLAGS" && AR_FLAGS=cru
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745 if test -n "$ac_tool_prefix"; then
5746   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5747 set dummy ${ac_tool_prefix}strip; ac_word=$2
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5749 $as_echo_n "checking for $ac_word... " >&6; }
5750 if test "${ac_cv_prog_STRIP+set}" = set; then :
5751   $as_echo_n "(cached) " >&6
5752 else
5753   if test -n "$STRIP"; then
5754   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5755 else
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH
5758 do
5759   IFS=$as_save_IFS
5760   test -z "$as_dir" && as_dir=.
5761     for ac_exec_ext in '' $ac_executable_extensions; do
5762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5763     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765     break 2
5766   fi
5767 done
5768   done
5769 IFS=$as_save_IFS
5770
5771 fi
5772 fi
5773 STRIP=$ac_cv_prog_STRIP
5774 if test -n "$STRIP"; then
5775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5776 $as_echo "$STRIP" >&6; }
5777 else
5778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779 $as_echo "no" >&6; }
5780 fi
5781
5782
5783 fi
5784 if test -z "$ac_cv_prog_STRIP"; then
5785   ac_ct_STRIP=$STRIP
5786   # Extract the first word of "strip", so it can be a program name with args.
5787 set dummy strip; ac_word=$2
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789 $as_echo_n "checking for $ac_word... " >&6; }
5790 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5791   $as_echo_n "(cached) " >&6
5792 else
5793   if test -n "$ac_ct_STRIP"; then
5794   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5795 else
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5798 do
5799   IFS=$as_save_IFS
5800   test -z "$as_dir" && as_dir=.
5801     for ac_exec_ext in '' $ac_executable_extensions; do
5802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5803     ac_cv_prog_ac_ct_STRIP="strip"
5804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805     break 2
5806   fi
5807 done
5808   done
5809 IFS=$as_save_IFS
5810
5811 fi
5812 fi
5813 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5814 if test -n "$ac_ct_STRIP"; then
5815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5816 $as_echo "$ac_ct_STRIP" >&6; }
5817 else
5818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5820 fi
5821
5822   if test "x$ac_ct_STRIP" = x; then
5823     STRIP=":"
5824   else
5825     case $cross_compiling:$ac_tool_warned in
5826 yes:)
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5829 ac_tool_warned=yes ;;
5830 esac
5831     STRIP=$ac_ct_STRIP
5832   fi
5833 else
5834   STRIP="$ac_cv_prog_STRIP"
5835 fi
5836
5837 test -z "$STRIP" && STRIP=:
5838
5839
5840
5841
5842
5843
5844 if test -n "$ac_tool_prefix"; then
5845   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5846 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5850   $as_echo_n "(cached) " >&6
5851 else
5852   if test -n "$RANLIB"; then
5853   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5854 else
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858   IFS=$as_save_IFS
5859   test -z "$as_dir" && as_dir=.
5860     for ac_exec_ext in '' $ac_executable_extensions; do
5861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5862     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864     break 2
5865   fi
5866 done
5867   done
5868 IFS=$as_save_IFS
5869
5870 fi
5871 fi
5872 RANLIB=$ac_cv_prog_RANLIB
5873 if test -n "$RANLIB"; then
5874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5875 $as_echo "$RANLIB" >&6; }
5876 else
5877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5879 fi
5880
5881
5882 fi
5883 if test -z "$ac_cv_prog_RANLIB"; then
5884   ac_ct_RANLIB=$RANLIB
5885   # Extract the first word of "ranlib", so it can be a program name with args.
5886 set dummy ranlib; ac_word=$2
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5890   $as_echo_n "(cached) " >&6
5891 else
5892   if test -n "$ac_ct_RANLIB"; then
5893   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898   IFS=$as_save_IFS
5899   test -z "$as_dir" && as_dir=.
5900     for ac_exec_ext in '' $ac_executable_extensions; do
5901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902     ac_cv_prog_ac_ct_RANLIB="ranlib"
5903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904     break 2
5905   fi
5906 done
5907   done
5908 IFS=$as_save_IFS
5909
5910 fi
5911 fi
5912 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5913 if test -n "$ac_ct_RANLIB"; then
5914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5915 $as_echo "$ac_ct_RANLIB" >&6; }
5916 else
5917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5919 fi
5920
5921   if test "x$ac_ct_RANLIB" = x; then
5922     RANLIB=":"
5923   else
5924     case $cross_compiling:$ac_tool_warned in
5925 yes:)
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5928 ac_tool_warned=yes ;;
5929 esac
5930     RANLIB=$ac_ct_RANLIB
5931   fi
5932 else
5933   RANLIB="$ac_cv_prog_RANLIB"
5934 fi
5935
5936 test -z "$RANLIB" && RANLIB=:
5937
5938
5939
5940
5941
5942
5943 # Determine commands to create old-style static archives.
5944 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5945 old_postinstall_cmds='chmod 644 $oldlib'
5946 old_postuninstall_cmds=
5947
5948 if test -n "$RANLIB"; then
5949   case $host_os in
5950   openbsd*)
5951     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5952     ;;
5953   *)
5954     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5955     ;;
5956   esac
5957   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5958 fi
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993 # If no C compiler was specified, use CC.
5994 LTCC=${LTCC-"$CC"}
5995
5996 # If no C compiler flags were specified, use CFLAGS.
5997 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5998
5999 # Allow CC to be a program name with arguments.
6000 compiler=$CC
6001
6002
6003 # Check for command to grab the raw symbol name followed by C symbol from nm.
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6005 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6006 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6007   $as_echo_n "(cached) " >&6
6008 else
6009
6010 # These are sane defaults that work on at least a few old systems.
6011 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6012
6013 # Character class describing NM global symbol codes.
6014 symcode='[BCDEGRST]'
6015
6016 # Regexp to match symbols that can be accessed directly from C.
6017 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6018
6019 # Define system-specific variables.
6020 case $host_os in
6021 aix*)
6022   symcode='[BCDT]'
6023   ;;
6024 cygwin* | mingw* | pw32* | cegcc*)
6025   symcode='[ABCDGISTW]'
6026   ;;
6027 hpux*)
6028   if test "$host_cpu" = ia64; then
6029     symcode='[ABCDEGRST]'
6030   fi
6031   ;;
6032 irix* | nonstopux*)
6033   symcode='[BCDEGRST]'
6034   ;;
6035 osf*)
6036   symcode='[BCDEGQRST]'
6037   ;;
6038 solaris*)
6039   symcode='[BDRT]'
6040   ;;
6041 sco3.2v5*)
6042   symcode='[DT]'
6043   ;;
6044 sysv4.2uw2*)
6045   symcode='[DT]'
6046   ;;
6047 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6048   symcode='[ABDT]'
6049   ;;
6050 sysv4)
6051   symcode='[DFNSTU]'
6052   ;;
6053 esac
6054
6055 # If we're using GNU nm, then use its standard symbol codes.
6056 case `$NM -V 2>&1` in
6057 *GNU* | *'with BFD'*)
6058   symcode='[ABCDGIRSTW]' ;;
6059 esac
6060
6061 # Transform an extracted symbol line into a proper C declaration.
6062 # Some systems (esp. on ia64) link data and code symbols differently,
6063 # so use this general approach.
6064 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6065
6066 # Transform an extracted symbol line into symbol name and symbol address
6067 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6068 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'"
6069
6070 # Handle CRLF in mingw tool chain
6071 opt_cr=
6072 case $build_os in
6073 mingw*)
6074   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6075   ;;
6076 esac
6077
6078 # Try without a prefix underscore, then with it.
6079 for ac_symprfx in "" "_"; do
6080
6081   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6082   symxfrm="\\1 $ac_symprfx\\2 \\2"
6083
6084   # Write the raw and C identifiers.
6085   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6086     # Fake it for dumpbin and say T for any non-static function
6087     # and D for any global variable.
6088     # Also find C++ and __fastcall symbols from MSVC++,
6089     # which start with @ or ?.
6090     lt_cv_sys_global_symbol_pipe="$AWK '"\
6091 "     {last_section=section; section=\$ 3};"\
6092 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6093 "     \$ 0!~/External *\|/{next};"\
6094 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6095 "     {if(hide[section]) next};"\
6096 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6097 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6098 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6099 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6100 "     ' prfx=^$ac_symprfx"
6101   else
6102     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6103   fi
6104
6105   # Check to see that the pipe works correctly.
6106   pipe_works=no
6107
6108   rm -f conftest*
6109   cat > conftest.$ac_ext <<_LT_EOF
6110 #ifdef __cplusplus
6111 extern "C" {
6112 #endif
6113 char nm_test_var;
6114 void nm_test_func(void);
6115 void nm_test_func(void){}
6116 #ifdef __cplusplus
6117 }
6118 #endif
6119 int main(){nm_test_var='a';nm_test_func();return(0);}
6120 _LT_EOF
6121
6122   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6123   (eval $ac_compile) 2>&5
6124   ac_status=$?
6125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6126   test $ac_status = 0; }; then
6127     # Now try to grab the symbols.
6128     nlist=conftest.nm
6129     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6130   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6131   ac_status=$?
6132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6133   test $ac_status = 0; } && test -s "$nlist"; then
6134       # Try sorting and uniquifying the output.
6135       if sort "$nlist" | uniq > "$nlist"T; then
6136         mv -f "$nlist"T "$nlist"
6137       else
6138         rm -f "$nlist"T
6139       fi
6140
6141       # Make sure that we snagged all the symbols we need.
6142       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6143         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6144           cat <<_LT_EOF > conftest.$ac_ext
6145 #ifdef __cplusplus
6146 extern "C" {
6147 #endif
6148
6149 _LT_EOF
6150           # Now generate the symbol file.
6151           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6152
6153           cat <<_LT_EOF >> conftest.$ac_ext
6154
6155 /* The mapping between symbol names and symbols.  */
6156 const struct {
6157   const char *name;
6158   void       *address;
6159 }
6160 lt__PROGRAM__LTX_preloaded_symbols[] =
6161 {
6162   { "@PROGRAM@", (void *) 0 },
6163 _LT_EOF
6164           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6165           cat <<\_LT_EOF >> conftest.$ac_ext
6166   {0, (void *) 0}
6167 };
6168
6169 /* This works around a problem in FreeBSD linker */
6170 #ifdef FREEBSD_WORKAROUND
6171 static const void *lt_preloaded_setup() {
6172   return lt__PROGRAM__LTX_preloaded_symbols;
6173 }
6174 #endif
6175
6176 #ifdef __cplusplus
6177 }
6178 #endif
6179 _LT_EOF
6180           # Now try linking the two files.
6181           mv conftest.$ac_objext conftstm.$ac_objext
6182           lt_save_LIBS="$LIBS"
6183           lt_save_CFLAGS="$CFLAGS"
6184           LIBS="conftstm.$ac_objext"
6185           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6186           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6187   (eval $ac_link) 2>&5
6188   ac_status=$?
6189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6190   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6191             pipe_works=yes
6192           fi
6193           LIBS="$lt_save_LIBS"
6194           CFLAGS="$lt_save_CFLAGS"
6195         else
6196           echo "cannot find nm_test_func in $nlist" >&5
6197         fi
6198       else
6199         echo "cannot find nm_test_var in $nlist" >&5
6200       fi
6201     else
6202       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6203     fi
6204   else
6205     echo "$progname: failed program was:" >&5
6206     cat conftest.$ac_ext >&5
6207   fi
6208   rm -rf conftest* conftst*
6209
6210   # Do not use the global_symbol_pipe unless it works.
6211   if test "$pipe_works" = yes; then
6212     break
6213   else
6214     lt_cv_sys_global_symbol_pipe=
6215   fi
6216 done
6217
6218 fi
6219
6220 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6221   lt_cv_sys_global_symbol_to_cdecl=
6222 fi
6223 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6225 $as_echo "failed" >&6; }
6226 else
6227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6228 $as_echo "ok" >&6; }
6229 fi
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252 # Check whether --enable-libtool-lock was given.
6253 if test "${enable_libtool_lock+set}" = set; then :
6254   enableval=$enable_libtool_lock;
6255 fi
6256
6257 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6258
6259 # Some flags need to be propagated to the compiler or linker for good
6260 # libtool support.
6261 case $host in
6262 ia64-*-hpux*)
6263   # Find out which ABI we are using.
6264   echo 'int i;' > conftest.$ac_ext
6265   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6266   (eval $ac_compile) 2>&5
6267   ac_status=$?
6268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6269   test $ac_status = 0; }; then
6270     case `/usr/bin/file conftest.$ac_objext` in
6271       *ELF-32*)
6272         HPUX_IA64_MODE="32"
6273         ;;
6274       *ELF-64*)
6275         HPUX_IA64_MODE="64"
6276         ;;
6277     esac
6278   fi
6279   rm -rf conftest*
6280   ;;
6281 *-*-irix6*)
6282   # Find out which ABI we are using.
6283   echo '#line 6283 "configure"' > conftest.$ac_ext
6284   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6285   (eval $ac_compile) 2>&5
6286   ac_status=$?
6287   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6288   test $ac_status = 0; }; then
6289     if test "$lt_cv_prog_gnu_ld" = yes; then
6290       case `/usr/bin/file conftest.$ac_objext` in
6291         *32-bit*)
6292           LD="${LD-ld} -melf32bsmip"
6293           ;;
6294         *N32*)
6295           LD="${LD-ld} -melf32bmipn32"
6296           ;;
6297         *64-bit*)
6298           LD="${LD-ld} -melf64bmip"
6299         ;;
6300       esac
6301     else
6302       case `/usr/bin/file conftest.$ac_objext` in
6303         *32-bit*)
6304           LD="${LD-ld} -32"
6305           ;;
6306         *N32*)
6307           LD="${LD-ld} -n32"
6308           ;;
6309         *64-bit*)
6310           LD="${LD-ld} -64"
6311           ;;
6312       esac
6313     fi
6314   fi
6315   rm -rf conftest*
6316   ;;
6317
6318 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6319 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6320   # Find out which ABI we are using.
6321   echo 'int i;' > conftest.$ac_ext
6322   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6323   (eval $ac_compile) 2>&5
6324   ac_status=$?
6325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6326   test $ac_status = 0; }; then
6327     case `/usr/bin/file conftest.o` in
6328       *32-bit*)
6329         case $host in
6330           x86_64-*kfreebsd*-gnu)
6331             LD="${LD-ld} -m elf_i386_fbsd"
6332             ;;
6333           x86_64-*linux*)
6334             LD="${LD-ld} -m elf_i386"
6335             ;;
6336           ppc64-*linux*|powerpc64-*linux*)
6337             LD="${LD-ld} -m elf32ppclinux"
6338             ;;
6339           s390x-*linux*)
6340             LD="${LD-ld} -m elf_s390"
6341             ;;
6342           sparc64-*linux*)
6343             LD="${LD-ld} -m elf32_sparc"
6344             ;;
6345         esac
6346         ;;
6347       *64-bit*)
6348         case $host in
6349           x86_64-*kfreebsd*-gnu)
6350             LD="${LD-ld} -m elf_x86_64_fbsd"
6351             ;;
6352           x86_64-*linux*)
6353             LD="${LD-ld} -m elf_x86_64"
6354             ;;
6355           ppc*-*linux*|powerpc*-*linux*)
6356             LD="${LD-ld} -m elf64ppc"
6357             ;;
6358           s390*-*linux*|s390*-*tpf*)
6359             LD="${LD-ld} -m elf64_s390"
6360             ;;
6361           sparc*-*linux*)
6362             LD="${LD-ld} -m elf64_sparc"
6363             ;;
6364         esac
6365         ;;
6366     esac
6367   fi
6368   rm -rf conftest*
6369   ;;
6370
6371 *-*-sco3.2v5*)
6372   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6373   SAVE_CFLAGS="$CFLAGS"
6374   CFLAGS="$CFLAGS -belf"
6375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6376 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6377 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6378   $as_echo_n "(cached) " >&6
6379 else
6380   ac_ext=c
6381 ac_cpp='$CPP $CPPFLAGS'
6382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6385
6386      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h.  */
6388
6389 int
6390 main ()
6391 {
6392
6393   ;
6394   return 0;
6395 }
6396 _ACEOF
6397 if ac_fn_c_try_link "$LINENO"; then :
6398   lt_cv_cc_needs_belf=yes
6399 else
6400   lt_cv_cc_needs_belf=no
6401 fi
6402 rm -f core conftest.err conftest.$ac_objext \
6403     conftest$ac_exeext conftest.$ac_ext
6404      ac_ext=c
6405 ac_cpp='$CPP $CPPFLAGS'
6406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6409
6410 fi
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6412 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6413   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6414     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6415     CFLAGS="$SAVE_CFLAGS"
6416   fi
6417   ;;
6418 sparc*-*solaris*)
6419   # Find out which ABI we are using.
6420   echo 'int i;' > conftest.$ac_ext
6421   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6422   (eval $ac_compile) 2>&5
6423   ac_status=$?
6424   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6425   test $ac_status = 0; }; then
6426     case `/usr/bin/file conftest.o` in
6427     *64-bit*)
6428       case $lt_cv_prog_gnu_ld in
6429       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6430       *)
6431         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6432           LD="${LD-ld} -64"
6433         fi
6434         ;;
6435       esac
6436       ;;
6437     esac
6438   fi
6439   rm -rf conftest*
6440   ;;
6441 esac
6442
6443 need_locks="$enable_libtool_lock"
6444
6445
6446   case $host_os in
6447     rhapsody* | darwin*)
6448     if test -n "$ac_tool_prefix"; then
6449   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6450 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 $as_echo_n "checking for $ac_word... " >&6; }
6453 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6454   $as_echo_n "(cached) " >&6
6455 else
6456   if test -n "$DSYMUTIL"; then
6457   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6458 else
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460 for as_dir in $PATH
6461 do
6462   IFS=$as_save_IFS
6463   test -z "$as_dir" && as_dir=.
6464     for ac_exec_ext in '' $ac_executable_extensions; do
6465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6466     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468     break 2
6469   fi
6470 done
6471   done
6472 IFS=$as_save_IFS
6473
6474 fi
6475 fi
6476 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6477 if test -n "$DSYMUTIL"; then
6478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6479 $as_echo "$DSYMUTIL" >&6; }
6480 else
6481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6483 fi
6484
6485
6486 fi
6487 if test -z "$ac_cv_prog_DSYMUTIL"; then
6488   ac_ct_DSYMUTIL=$DSYMUTIL
6489   # Extract the first word of "dsymutil", so it can be a program name with args.
6490 set dummy dsymutil; ac_word=$2
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6494   $as_echo_n "(cached) " >&6
6495 else
6496   if test -n "$ac_ct_DSYMUTIL"; then
6497   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6498 else
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500 for as_dir in $PATH
6501 do
6502   IFS=$as_save_IFS
6503   test -z "$as_dir" && as_dir=.
6504     for ac_exec_ext in '' $ac_executable_extensions; do
6505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6506     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508     break 2
6509   fi
6510 done
6511   done
6512 IFS=$as_save_IFS
6513
6514 fi
6515 fi
6516 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6517 if test -n "$ac_ct_DSYMUTIL"; then
6518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6519 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6520 else
6521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522 $as_echo "no" >&6; }
6523 fi
6524
6525   if test "x$ac_ct_DSYMUTIL" = x; then
6526     DSYMUTIL=":"
6527   else
6528     case $cross_compiling:$ac_tool_warned in
6529 yes:)
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6532 ac_tool_warned=yes ;;
6533 esac
6534     DSYMUTIL=$ac_ct_DSYMUTIL
6535   fi
6536 else
6537   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6538 fi
6539
6540     if test -n "$ac_tool_prefix"; then
6541   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6542 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6546   $as_echo_n "(cached) " >&6
6547 else
6548   if test -n "$NMEDIT"; then
6549   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6550 else
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH
6553 do
6554   IFS=$as_save_IFS
6555   test -z "$as_dir" && as_dir=.
6556     for ac_exec_ext in '' $ac_executable_extensions; do
6557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6558     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6560     break 2
6561   fi
6562 done
6563   done
6564 IFS=$as_save_IFS
6565
6566 fi
6567 fi
6568 NMEDIT=$ac_cv_prog_NMEDIT
6569 if test -n "$NMEDIT"; then
6570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6571 $as_echo "$NMEDIT" >&6; }
6572 else
6573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6575 fi
6576
6577
6578 fi
6579 if test -z "$ac_cv_prog_NMEDIT"; then
6580   ac_ct_NMEDIT=$NMEDIT
6581   # Extract the first word of "nmedit", so it can be a program name with args.
6582 set dummy nmedit; ac_word=$2
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6586   $as_echo_n "(cached) " >&6
6587 else
6588   if test -n "$ac_ct_NMEDIT"; then
6589   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6590 else
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6593 do
6594   IFS=$as_save_IFS
6595   test -z "$as_dir" && as_dir=.
6596     for ac_exec_ext in '' $ac_executable_extensions; do
6597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6598     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600     break 2
6601   fi
6602 done
6603   done
6604 IFS=$as_save_IFS
6605
6606 fi
6607 fi
6608 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6609 if test -n "$ac_ct_NMEDIT"; then
6610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6611 $as_echo "$ac_ct_NMEDIT" >&6; }
6612 else
6613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6615 fi
6616
6617   if test "x$ac_ct_NMEDIT" = x; then
6618     NMEDIT=":"
6619   else
6620     case $cross_compiling:$ac_tool_warned in
6621 yes:)
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6624 ac_tool_warned=yes ;;
6625 esac
6626     NMEDIT=$ac_ct_NMEDIT
6627   fi
6628 else
6629   NMEDIT="$ac_cv_prog_NMEDIT"
6630 fi
6631
6632     if test -n "$ac_tool_prefix"; then
6633   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6634 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if test "${ac_cv_prog_LIPO+set}" = set; then :
6638   $as_echo_n "(cached) " >&6
6639 else
6640   if test -n "$LIPO"; then
6641   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646   IFS=$as_save_IFS
6647   test -z "$as_dir" && as_dir=.
6648     for ac_exec_ext in '' $ac_executable_extensions; do
6649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6650     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652     break 2
6653   fi
6654 done
6655   done
6656 IFS=$as_save_IFS
6657
6658 fi
6659 fi
6660 LIPO=$ac_cv_prog_LIPO
6661 if test -n "$LIPO"; then
6662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6663 $as_echo "$LIPO" >&6; }
6664 else
6665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6667 fi
6668
6669
6670 fi
6671 if test -z "$ac_cv_prog_LIPO"; then
6672   ac_ct_LIPO=$LIPO
6673   # Extract the first word of "lipo", so it can be a program name with args.
6674 set dummy lipo; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6678   $as_echo_n "(cached) " >&6
6679 else
6680   if test -n "$ac_ct_LIPO"; then
6681   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686   IFS=$as_save_IFS
6687   test -z "$as_dir" && as_dir=.
6688     for ac_exec_ext in '' $ac_executable_extensions; do
6689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690     ac_cv_prog_ac_ct_LIPO="lipo"
6691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692     break 2
6693   fi
6694 done
6695   done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6701 if test -n "$ac_ct_LIPO"; then
6702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6703 $as_echo "$ac_ct_LIPO" >&6; }
6704 else
6705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6707 fi
6708
6709   if test "x$ac_ct_LIPO" = x; then
6710     LIPO=":"
6711   else
6712     case $cross_compiling:$ac_tool_warned in
6713 yes:)
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6716 ac_tool_warned=yes ;;
6717 esac
6718     LIPO=$ac_ct_LIPO
6719   fi
6720 else
6721   LIPO="$ac_cv_prog_LIPO"
6722 fi
6723
6724     if test -n "$ac_tool_prefix"; then
6725   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6726 set dummy ${ac_tool_prefix}otool; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6730   $as_echo_n "(cached) " >&6
6731 else
6732   if test -n "$OTOOL"; then
6733   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6734 else
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738   IFS=$as_save_IFS
6739   test -z "$as_dir" && as_dir=.
6740     for ac_exec_ext in '' $ac_executable_extensions; do
6741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744     break 2
6745   fi
6746 done
6747   done
6748 IFS=$as_save_IFS
6749
6750 fi
6751 fi
6752 OTOOL=$ac_cv_prog_OTOOL
6753 if test -n "$OTOOL"; then
6754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6755 $as_echo "$OTOOL" >&6; }
6756 else
6757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6759 fi
6760
6761
6762 fi
6763 if test -z "$ac_cv_prog_OTOOL"; then
6764   ac_ct_OTOOL=$OTOOL
6765   # Extract the first word of "otool", so it can be a program name with args.
6766 set dummy otool; ac_word=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6770   $as_echo_n "(cached) " >&6
6771 else
6772   if test -n "$ac_ct_OTOOL"; then
6773   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6774 else
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 for as_dir in $PATH
6777 do
6778   IFS=$as_save_IFS
6779   test -z "$as_dir" && as_dir=.
6780     for ac_exec_ext in '' $ac_executable_extensions; do
6781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6782     ac_cv_prog_ac_ct_OTOOL="otool"
6783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784     break 2
6785   fi
6786 done
6787   done
6788 IFS=$as_save_IFS
6789
6790 fi
6791 fi
6792 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6793 if test -n "$ac_ct_OTOOL"; then
6794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6795 $as_echo "$ac_ct_OTOOL" >&6; }
6796 else
6797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6799 fi
6800
6801   if test "x$ac_ct_OTOOL" = x; then
6802     OTOOL=":"
6803   else
6804     case $cross_compiling:$ac_tool_warned in
6805 yes:)
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6808 ac_tool_warned=yes ;;
6809 esac
6810     OTOOL=$ac_ct_OTOOL
6811   fi
6812 else
6813   OTOOL="$ac_cv_prog_OTOOL"
6814 fi
6815
6816     if test -n "$ac_tool_prefix"; then
6817   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6818 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6822   $as_echo_n "(cached) " >&6
6823 else
6824   if test -n "$OTOOL64"; then
6825   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830   IFS=$as_save_IFS
6831   test -z "$as_dir" && as_dir=.
6832     for ac_exec_ext in '' $ac_executable_extensions; do
6833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836     break 2
6837   fi
6838 done
6839   done
6840 IFS=$as_save_IFS
6841
6842 fi
6843 fi
6844 OTOOL64=$ac_cv_prog_OTOOL64
6845 if test -n "$OTOOL64"; then
6846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6847 $as_echo "$OTOOL64" >&6; }
6848 else
6849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6851 fi
6852
6853
6854 fi
6855 if test -z "$ac_cv_prog_OTOOL64"; then
6856   ac_ct_OTOOL64=$OTOOL64
6857   # Extract the first word of "otool64", so it can be a program name with args.
6858 set dummy otool64; ac_word=$2
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860 $as_echo_n "checking for $ac_word... " >&6; }
6861 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6862   $as_echo_n "(cached) " >&6
6863 else
6864   if test -n "$ac_ct_OTOOL64"; then
6865   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6866 else
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870   IFS=$as_save_IFS
6871   test -z "$as_dir" && as_dir=.
6872     for ac_exec_ext in '' $ac_executable_extensions; do
6873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6874     ac_cv_prog_ac_ct_OTOOL64="otool64"
6875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876     break 2
6877   fi
6878 done
6879   done
6880 IFS=$as_save_IFS
6881
6882 fi
6883 fi
6884 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6885 if test -n "$ac_ct_OTOOL64"; then
6886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6887 $as_echo "$ac_ct_OTOOL64" >&6; }
6888 else
6889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 $as_echo "no" >&6; }
6891 fi
6892
6893   if test "x$ac_ct_OTOOL64" = x; then
6894     OTOOL64=":"
6895   else
6896     case $cross_compiling:$ac_tool_warned in
6897 yes:)
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6900 ac_tool_warned=yes ;;
6901 esac
6902     OTOOL64=$ac_ct_OTOOL64
6903   fi
6904 else
6905   OTOOL64="$ac_cv_prog_OTOOL64"
6906 fi
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6935 $as_echo_n "checking for -single_module linker flag... " >&6; }
6936 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6937   $as_echo_n "(cached) " >&6
6938 else
6939   lt_cv_apple_cc_single_mod=no
6940       if test -z "${LT_MULTI_MODULE}"; then
6941         # By default we will add the -single_module flag. You can override
6942         # by either setting the environment variable LT_MULTI_MODULE
6943         # non-empty at configure time, or by adding -multi_module to the
6944         # link flags.
6945         rm -rf libconftest.dylib*
6946         echo "int foo(void){return 1;}" > conftest.c
6947         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6948 -dynamiclib -Wl,-single_module conftest.c" >&5
6949         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6950           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6951         _lt_result=$?
6952         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6953           lt_cv_apple_cc_single_mod=yes
6954         else
6955           cat conftest.err >&5
6956         fi
6957         rm -rf libconftest.dylib*
6958         rm -f conftest.*
6959       fi
6960 fi
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6962 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6964 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6965 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6966   $as_echo_n "(cached) " >&6
6967 else
6968   lt_cv_ld_exported_symbols_list=no
6969       save_LDFLAGS=$LDFLAGS
6970       echo "_main" > conftest.sym
6971       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6972       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h.  */
6974
6975 int
6976 main ()
6977 {
6978
6979   ;
6980   return 0;
6981 }
6982 _ACEOF
6983 if ac_fn_c_try_link "$LINENO"; then :
6984   lt_cv_ld_exported_symbols_list=yes
6985 else
6986   lt_cv_ld_exported_symbols_list=no
6987 fi
6988 rm -f core conftest.err conftest.$ac_objext \
6989     conftest$ac_exeext conftest.$ac_ext
6990         LDFLAGS="$save_LDFLAGS"
6991
6992 fi
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6994 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6995     case $host_os in
6996     rhapsody* | darwin1.[012])
6997       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6998     darwin1.*)
6999       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7000     darwin*) # darwin 5.x on
7001       # if running on 10.5 or later, the deployment target defaults
7002       # to the OS version, if on x86, and 10.4, the deployment
7003       # target defaults to 10.4. Don't you love it?
7004       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7005         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7006           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7007         10.[012]*)
7008           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7009         10.*)
7010           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7011       esac
7012     ;;
7013   esac
7014     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7015       _lt_dar_single_mod='$single_module'
7016     fi
7017     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7018       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7019     else
7020       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7021     fi
7022     if test "$DSYMUTIL" != ":"; then
7023       _lt_dsymutil='~$DSYMUTIL $lib || :'
7024     else
7025       _lt_dsymutil=
7026     fi
7027     ;;
7028   esac
7029
7030 ac_ext=c
7031 ac_cpp='$CPP $CPPFLAGS'
7032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7036 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7037 # On Suns, sometimes $CPP names a directory.
7038 if test -n "$CPP" && test -d "$CPP"; then
7039   CPP=
7040 fi
7041 if test -z "$CPP"; then
7042   if test "${ac_cv_prog_CPP+set}" = set; then :
7043   $as_echo_n "(cached) " >&6
7044 else
7045       # Double quotes because CPP needs to be expanded
7046     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7047     do
7048       ac_preproc_ok=false
7049 for ac_c_preproc_warn_flag in '' yes
7050 do
7051   # Use a header file that comes with gcc, so configuring glibc
7052   # with a fresh cross-compiler works.
7053   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7054   # <limits.h> exists even on freestanding compilers.
7055   # On the NeXT, cc -E runs the code through the compiler's parser,
7056   # not just through cpp. "Syntax error" is here to catch this case.
7057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058 /* end confdefs.h.  */
7059 #ifdef __STDC__
7060 # include <limits.h>
7061 #else
7062 # include <assert.h>
7063 #endif
7064                      Syntax error
7065 _ACEOF
7066 if ac_fn_c_try_cpp "$LINENO"; then :
7067
7068 else
7069   # Broken: fails on valid input.
7070 continue
7071 fi
7072 rm -f conftest.err conftest.i conftest.$ac_ext
7073
7074   # OK, works on sane cases.  Now check whether nonexistent headers
7075   # can be detected and how.
7076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h.  */
7078 #include <ac_nonexistent.h>
7079 _ACEOF
7080 if ac_fn_c_try_cpp "$LINENO"; then :
7081   # Broken: success on invalid input.
7082 continue
7083 else
7084   # Passes both tests.
7085 ac_preproc_ok=:
7086 break
7087 fi
7088 rm -f conftest.err conftest.i conftest.$ac_ext
7089
7090 done
7091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7092 rm -f conftest.i conftest.err conftest.$ac_ext
7093 if $ac_preproc_ok; then :
7094   break
7095 fi
7096
7097     done
7098     ac_cv_prog_CPP=$CPP
7099
7100 fi
7101   CPP=$ac_cv_prog_CPP
7102 else
7103   ac_cv_prog_CPP=$CPP
7104 fi
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7106 $as_echo "$CPP" >&6; }
7107 ac_preproc_ok=false
7108 for ac_c_preproc_warn_flag in '' yes
7109 do
7110   # Use a header file that comes with gcc, so configuring glibc
7111   # with a fresh cross-compiler works.
7112   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7113   # <limits.h> exists even on freestanding compilers.
7114   # On the NeXT, cc -E runs the code through the compiler's parser,
7115   # not just through cpp. "Syntax error" is here to catch this case.
7116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117 /* end confdefs.h.  */
7118 #ifdef __STDC__
7119 # include <limits.h>
7120 #else
7121 # include <assert.h>
7122 #endif
7123                      Syntax error
7124 _ACEOF
7125 if ac_fn_c_try_cpp "$LINENO"; then :
7126
7127 else
7128   # Broken: fails on valid input.
7129 continue
7130 fi
7131 rm -f conftest.err conftest.i conftest.$ac_ext
7132
7133   # OK, works on sane cases.  Now check whether nonexistent headers
7134   # can be detected and how.
7135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h.  */
7137 #include <ac_nonexistent.h>
7138 _ACEOF
7139 if ac_fn_c_try_cpp "$LINENO"; then :
7140   # Broken: success on invalid input.
7141 continue
7142 else
7143   # Passes both tests.
7144 ac_preproc_ok=:
7145 break
7146 fi
7147 rm -f conftest.err conftest.i conftest.$ac_ext
7148
7149 done
7150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7151 rm -f conftest.i conftest.err conftest.$ac_ext
7152 if $ac_preproc_ok; then :
7153
7154 else
7155   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7157 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7158 See \`config.log' for more details" "$LINENO" 5 ; }
7159 fi
7160
7161 ac_ext=c
7162 ac_cpp='$CPP $CPPFLAGS'
7163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7166
7167
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7169 $as_echo_n "checking for ANSI C header files... " >&6; }
7170 if test "${ac_cv_header_stdc+set}" = set; then :
7171   $as_echo_n "(cached) " >&6
7172 else
7173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h.  */
7175 #include <stdlib.h>
7176 #include <stdarg.h>
7177 #include <string.h>
7178 #include <float.h>
7179
7180 int
7181 main ()
7182 {
7183
7184   ;
7185   return 0;
7186 }
7187 _ACEOF
7188 if ac_fn_c_try_compile "$LINENO"; then :
7189   ac_cv_header_stdc=yes
7190 else
7191   ac_cv_header_stdc=no
7192 fi
7193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194
7195 if test $ac_cv_header_stdc = yes; then
7196   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h.  */
7199 #include <string.h>
7200
7201 _ACEOF
7202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7203   $EGREP "memchr" >/dev/null 2>&1; then :
7204
7205 else
7206   ac_cv_header_stdc=no
7207 fi
7208 rm -f conftest*
7209
7210 fi
7211
7212 if test $ac_cv_header_stdc = yes; then
7213   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h.  */
7216 #include <stdlib.h>
7217
7218 _ACEOF
7219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7220   $EGREP "free" >/dev/null 2>&1; then :
7221
7222 else
7223   ac_cv_header_stdc=no
7224 fi
7225 rm -f conftest*
7226
7227 fi
7228
7229 if test $ac_cv_header_stdc = yes; then
7230   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7231   if test "$cross_compiling" = yes; then :
7232   :
7233 else
7234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h.  */
7236 #include <ctype.h>
7237 #include <stdlib.h>
7238 #if ((' ' & 0x0FF) == 0x020)
7239 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7240 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7241 #else
7242 # define ISLOWER(c) \
7243                    (('a' <= (c) && (c) <= 'i') \
7244                      || ('j' <= (c) && (c) <= 'r') \
7245                      || ('s' <= (c) && (c) <= 'z'))
7246 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7247 #endif
7248
7249 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7250 int
7251 main ()
7252 {
7253   int i;
7254   for (i = 0; i < 256; i++)
7255     if (XOR (islower (i), ISLOWER (i))
7256         || toupper (i) != TOUPPER (i))
7257       return 2;
7258   return 0;
7259 }
7260 _ACEOF
7261 if ac_fn_c_try_run "$LINENO"; then :
7262
7263 else
7264   ac_cv_header_stdc=no
7265 fi
7266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7267   conftest.$ac_objext conftest.beam conftest.$ac_ext
7268 fi
7269
7270 fi
7271 fi
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7273 $as_echo "$ac_cv_header_stdc" >&6; }
7274 if test $ac_cv_header_stdc = yes; then
7275
7276 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7277
7278 fi
7279
7280 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7281 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7282                   inttypes.h stdint.h unistd.h
7283 do :
7284   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7285 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7286 "
7287 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7288   cat >>confdefs.h <<_ACEOF
7289 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7290 _ACEOF
7291
7292 fi
7293
7294 done
7295
7296
7297 for ac_header in dlfcn.h
7298 do :
7299   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7300 "
7301 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7302   cat >>confdefs.h <<_ACEOF
7303 #define HAVE_DLFCN_H 1
7304 _ACEOF
7305
7306 fi
7307
7308 done
7309
7310
7311
7312 # Set options
7313
7314
7315
7316         enable_dlopen=no
7317
7318
7319   enable_win32_dll=no
7320
7321
7322             # Check whether --enable-shared was given.
7323 if test "${enable_shared+set}" = set; then :
7324   enableval=$enable_shared; p=${PACKAGE-default}
7325     case $enableval in
7326     yes) enable_shared=yes ;;
7327     no) enable_shared=no ;;
7328     *)
7329       enable_shared=no
7330       # Look at the argument we got.  We use all the common list separators.
7331       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7332       for pkg in $enableval; do
7333         IFS="$lt_save_ifs"
7334         if test "X$pkg" = "X$p"; then
7335           enable_shared=yes
7336         fi
7337       done
7338       IFS="$lt_save_ifs"
7339       ;;
7340     esac
7341 else
7342   enable_shared=yes
7343 fi
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355 # Check whether --with-pic was given.
7356 if test "${with_pic+set}" = set; then :
7357   withval=$with_pic; pic_mode="$withval"
7358 else
7359   pic_mode=default
7360 fi
7361
7362
7363 test -z "$pic_mode" && pic_mode=default
7364
7365
7366
7367
7368
7369
7370
7371   # Check whether --enable-fast-install was given.
7372 if test "${enable_fast_install+set}" = set; then :
7373   enableval=$enable_fast_install; p=${PACKAGE-default}
7374     case $enableval in
7375     yes) enable_fast_install=yes ;;
7376     no) enable_fast_install=no ;;
7377     *)
7378       enable_fast_install=no
7379       # Look at the argument we got.  We use all the common list separators.
7380       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7381       for pkg in $enableval; do
7382         IFS="$lt_save_ifs"
7383         if test "X$pkg" = "X$p"; then
7384           enable_fast_install=yes
7385         fi
7386       done
7387       IFS="$lt_save_ifs"
7388       ;;
7389     esac
7390 else
7391   enable_fast_install=yes
7392 fi
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404 # This can be used to rebuild libtool when needed
7405 LIBTOOL_DEPS="$ltmain"
7406
7407 # Always use our own libtool.
7408 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434 test -z "$LN_S" && LN_S="ln -s"
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449 if test -n "${ZSH_VERSION+set}" ; then
7450    setopt NO_GLOB_SUBST
7451 fi
7452
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7454 $as_echo_n "checking for objdir... " >&6; }
7455 if test "${lt_cv_objdir+set}" = set; then :
7456   $as_echo_n "(cached) " >&6
7457 else
7458   rm -f .libs 2>/dev/null
7459 mkdir .libs 2>/dev/null
7460 if test -d .libs; then
7461   lt_cv_objdir=.libs
7462 else
7463   # MS-DOS does not allow filenames that begin with a dot.
7464   lt_cv_objdir=_libs
7465 fi
7466 rmdir .libs 2>/dev/null
7467 fi
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7469 $as_echo "$lt_cv_objdir" >&6; }
7470 objdir=$lt_cv_objdir
7471
7472
7473
7474
7475
7476 cat >>confdefs.h <<_ACEOF
7477 #define LT_OBJDIR "$lt_cv_objdir/"
7478 _ACEOF
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496 case $host_os in
7497 aix3*)
7498   # AIX sometimes has problems with the GCC collect2 program.  For some
7499   # reason, if we set the COLLECT_NAMES environment variable, the problems
7500   # vanish in a puff of smoke.
7501   if test "X${COLLECT_NAMES+set}" != Xset; then
7502     COLLECT_NAMES=
7503     export COLLECT_NAMES
7504   fi
7505   ;;
7506 esac
7507
7508 # Sed substitution that helps us do robust quoting.  It backslashifies
7509 # metacharacters that are still active within double-quoted strings.
7510 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7511
7512 # Same as above, but do not quote variable references.
7513 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7514
7515 # Sed substitution to delay expansion of an escaped shell variable in a
7516 # double_quote_subst'ed string.
7517 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7518
7519 # Sed substitution to delay expansion of an escaped single quote.
7520 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7521
7522 # Sed substitution to avoid accidental globbing in evaled expressions
7523 no_glob_subst='s/\*/\\\*/g'
7524
7525 # Global variables:
7526 ofile=libtool
7527 can_build_shared=yes
7528
7529 # All known linkers require a `.a' archive for static linking (except MSVC,
7530 # which needs '.lib').
7531 libext=a
7532
7533 with_gnu_ld="$lt_cv_prog_gnu_ld"
7534
7535 old_CC="$CC"
7536 old_CFLAGS="$CFLAGS"
7537
7538 # Set sane defaults for various variables
7539 test -z "$CC" && CC=cc
7540 test -z "$LTCC" && LTCC=$CC
7541 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7542 test -z "$LD" && LD=ld
7543 test -z "$ac_objext" && ac_objext=o
7544
7545 for cc_temp in $compiler""; do
7546   case $cc_temp in
7547     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7548     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7549     \-*) ;;
7550     *) break;;
7551   esac
7552 done
7553 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7554
7555
7556 # Only perform the check for file, if the check method requires it
7557 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7558 case $deplibs_check_method in
7559 file_magic*)
7560   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7561     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7562 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7563 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7564   $as_echo_n "(cached) " >&6
7565 else
7566   case $MAGIC_CMD in
7567 [\\/*] |  ?:[\\/]*)
7568   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7569   ;;
7570 *)
7571   lt_save_MAGIC_CMD="$MAGIC_CMD"
7572   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7573   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7574   for ac_dir in $ac_dummy; do
7575     IFS="$lt_save_ifs"
7576     test -z "$ac_dir" && ac_dir=.
7577     if test -f $ac_dir/${ac_tool_prefix}file; then
7578       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7579       if test -n "$file_magic_test_file"; then
7580         case $deplibs_check_method in
7581         "file_magic "*)
7582           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7583           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7584           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7585             $EGREP "$file_magic_regex" > /dev/null; then
7586             :
7587           else
7588             cat <<_LT_EOF 1>&2
7589
7590 *** Warning: the command libtool uses to detect shared libraries,
7591 *** $file_magic_cmd, produces output that libtool cannot recognize.
7592 *** The result is that libtool may fail to recognize shared libraries
7593 *** as such.  This will affect the creation of libtool libraries that
7594 *** depend on shared libraries, but programs linked with such libtool
7595 *** libraries will work regardless of this problem.  Nevertheless, you
7596 *** may want to report the problem to your system manager and/or to
7597 *** bug-libtool@gnu.org
7598
7599 _LT_EOF
7600           fi ;;
7601         esac
7602       fi
7603       break
7604     fi
7605   done
7606   IFS="$lt_save_ifs"
7607   MAGIC_CMD="$lt_save_MAGIC_CMD"
7608   ;;
7609 esac
7610 fi
7611
7612 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7613 if test -n "$MAGIC_CMD"; then
7614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7615 $as_echo "$MAGIC_CMD" >&6; }
7616 else
7617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 fi
7620
7621
7622
7623
7624
7625 if test -z "$lt_cv_path_MAGIC_CMD"; then
7626   if test -n "$ac_tool_prefix"; then
7627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7628 $as_echo_n "checking for file... " >&6; }
7629 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7630   $as_echo_n "(cached) " >&6
7631 else
7632   case $MAGIC_CMD in
7633 [\\/*] |  ?:[\\/]*)
7634   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7635   ;;
7636 *)
7637   lt_save_MAGIC_CMD="$MAGIC_CMD"
7638   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7639   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7640   for ac_dir in $ac_dummy; do
7641     IFS="$lt_save_ifs"
7642     test -z "$ac_dir" && ac_dir=.
7643     if test -f $ac_dir/file; then
7644       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7645       if test -n "$file_magic_test_file"; then
7646         case $deplibs_check_method in
7647         "file_magic "*)
7648           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7649           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7650           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7651             $EGREP "$file_magic_regex" > /dev/null; then
7652             :
7653           else
7654             cat <<_LT_EOF 1>&2
7655
7656 *** Warning: the command libtool uses to detect shared libraries,
7657 *** $file_magic_cmd, produces output that libtool cannot recognize.
7658 *** The result is that libtool may fail to recognize shared libraries
7659 *** as such.  This will affect the creation of libtool libraries that
7660 *** depend on shared libraries, but programs linked with such libtool
7661 *** libraries will work regardless of this problem.  Nevertheless, you
7662 *** may want to report the problem to your system manager and/or to
7663 *** bug-libtool@gnu.org
7664
7665 _LT_EOF
7666           fi ;;
7667         esac
7668       fi
7669       break
7670     fi
7671   done
7672   IFS="$lt_save_ifs"
7673   MAGIC_CMD="$lt_save_MAGIC_CMD"
7674   ;;
7675 esac
7676 fi
7677
7678 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7679 if test -n "$MAGIC_CMD"; then
7680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7681 $as_echo "$MAGIC_CMD" >&6; }
7682 else
7683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684 $as_echo "no" >&6; }
7685 fi
7686
7687
7688   else
7689     MAGIC_CMD=:
7690   fi
7691 fi
7692
7693   fi
7694   ;;
7695 esac
7696
7697 # Use C for the default configuration in the libtool script
7698
7699 lt_save_CC="$CC"
7700 ac_ext=c
7701 ac_cpp='$CPP $CPPFLAGS'
7702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7705
7706
7707 # Source file extension for C test sources.
7708 ac_ext=c
7709
7710 # Object file extension for compiled C test sources.
7711 objext=o
7712 objext=$objext
7713
7714 # Code to be used in simple compile tests
7715 lt_simple_compile_test_code="int some_variable = 0;"
7716
7717 # Code to be used in simple link tests
7718 lt_simple_link_test_code='int main(){return(0);}'
7719
7720
7721
7722
7723
7724
7725
7726 # If no C compiler was specified, use CC.
7727 LTCC=${LTCC-"$CC"}
7728
7729 # If no C compiler flags were specified, use CFLAGS.
7730 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7731
7732 # Allow CC to be a program name with arguments.
7733 compiler=$CC
7734
7735 # Save the default compiler, since it gets overwritten when the other
7736 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7737 compiler_DEFAULT=$CC
7738
7739 # save warnings/boilerplate of simple test code
7740 ac_outfile=conftest.$ac_objext
7741 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7742 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7743 _lt_compiler_boilerplate=`cat conftest.err`
7744 $RM conftest*
7745
7746 ac_outfile=conftest.$ac_objext
7747 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7748 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7749 _lt_linker_boilerplate=`cat conftest.err`
7750 $RM -r conftest*
7751
7752
7753 ## CAVEAT EMPTOR:
7754 ## There is no encapsulation within the following macros, do not change
7755 ## the running order or otherwise move them around unless you know exactly
7756 ## what you are doing...
7757 if test -n "$compiler"; then
7758
7759 lt_prog_compiler_no_builtin_flag=
7760
7761 if test "$GCC" = yes; then
7762   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7763
7764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7765 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7766 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7767   $as_echo_n "(cached) " >&6
7768 else
7769   lt_cv_prog_compiler_rtti_exceptions=no
7770    ac_outfile=conftest.$ac_objext
7771    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7772    lt_compiler_flag="-fno-rtti -fno-exceptions"
7773    # Insert the option either (1) after the last *FLAGS variable, or
7774    # (2) before a word containing "conftest.", or (3) at the end.
7775    # Note that $ac_compile itself does not contain backslashes and begins
7776    # with a dollar sign (not a hyphen), so the echo should work correctly.
7777    # The option is referenced via a variable to avoid confusing sed.
7778    lt_compile=`echo "$ac_compile" | $SED \
7779    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7780    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7781    -e 's:$: $lt_compiler_flag:'`
7782    (eval echo "\"\$as_me:7782: $lt_compile\"" >&5)
7783    (eval "$lt_compile" 2>conftest.err)
7784    ac_status=$?
7785    cat conftest.err >&5
7786    echo "$as_me:7786: \$? = $ac_status" >&5
7787    if (exit $ac_status) && test -s "$ac_outfile"; then
7788      # The compiler can only warn and ignore the option if not recognized
7789      # So say no if there are warnings other than the usual output.
7790      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7791      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7792      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7793        lt_cv_prog_compiler_rtti_exceptions=yes
7794      fi
7795    fi
7796    $RM conftest*
7797
7798 fi
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7800 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7801
7802 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7803     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7804 else
7805     :
7806 fi
7807
7808 fi
7809
7810
7811
7812
7813
7814
7815   lt_prog_compiler_wl=
7816 lt_prog_compiler_pic=
7817 lt_prog_compiler_static=
7818
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7820 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7821
7822   if test "$GCC" = yes; then
7823     lt_prog_compiler_wl='-Wl,'
7824     lt_prog_compiler_static='-static'
7825
7826     case $host_os in
7827       aix*)
7828       # All AIX code is PIC.
7829       if test "$host_cpu" = ia64; then
7830         # AIX 5 now supports IA64 processor
7831         lt_prog_compiler_static='-Bstatic'
7832       fi
7833       ;;
7834
7835     amigaos*)
7836       case $host_cpu in
7837       powerpc)
7838             # see comment about AmigaOS4 .so support
7839             lt_prog_compiler_pic='-fPIC'
7840         ;;
7841       m68k)
7842             # FIXME: we need at least 68020 code to build shared libraries, but
7843             # adding the `-m68020' flag to GCC prevents building anything better,
7844             # like `-m68040'.
7845             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7846         ;;
7847       esac
7848       ;;
7849
7850     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7851       # PIC is the default for these OSes.
7852       ;;
7853
7854     mingw* | cygwin* | pw32* | os2* | cegcc*)
7855       # This hack is so that the source file can tell whether it is being
7856       # built for inclusion in a dll (and should export symbols for example).
7857       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7858       # (--disable-auto-import) libraries
7859       lt_prog_compiler_pic='-DDLL_EXPORT'
7860       ;;
7861
7862     darwin* | rhapsody*)
7863       # PIC is the default on this platform
7864       # Common symbols not allowed in MH_DYLIB files
7865       lt_prog_compiler_pic='-fno-common'
7866       ;;
7867
7868     hpux*)
7869       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7870       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7871       # sets the default TLS model and affects inlining.
7872       case $host_cpu in
7873       hppa*64*)
7874         # +Z the default
7875         ;;
7876       *)
7877         lt_prog_compiler_pic='-fPIC'
7878         ;;
7879       esac
7880       ;;
7881
7882     interix[3-9]*)
7883       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7884       # Instead, we relocate shared libraries at runtime.
7885       ;;
7886
7887     msdosdjgpp*)
7888       # Just because we use GCC doesn't mean we suddenly get shared libraries
7889       # on systems that don't support them.
7890       lt_prog_compiler_can_build_shared=no
7891       enable_shared=no
7892       ;;
7893
7894     *nto* | *qnx*)
7895       # QNX uses GNU C++, but need to define -shared option too, otherwise
7896       # it will coredump.
7897       lt_prog_compiler_pic='-fPIC -shared'
7898       ;;
7899
7900     sysv4*MP*)
7901       if test -d /usr/nec; then
7902         lt_prog_compiler_pic=-Kconform_pic
7903       fi
7904       ;;
7905
7906     *)
7907       lt_prog_compiler_pic='-fPIC'
7908       ;;
7909     esac
7910   else
7911     # PORTME Check for flag to pass linker flags through the system compiler.
7912     case $host_os in
7913     aix*)
7914       lt_prog_compiler_wl='-Wl,'
7915       if test "$host_cpu" = ia64; then
7916         # AIX 5 now supports IA64 processor
7917         lt_prog_compiler_static='-Bstatic'
7918       else
7919         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7920       fi
7921       ;;
7922
7923     mingw* | cygwin* | pw32* | os2* | cegcc*)
7924       # This hack is so that the source file can tell whether it is being
7925       # built for inclusion in a dll (and should export symbols for example).
7926       lt_prog_compiler_pic='-DDLL_EXPORT'
7927       ;;
7928
7929     hpux9* | hpux10* | hpux11*)
7930       lt_prog_compiler_wl='-Wl,'
7931       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7932       # not for PA HP-UX.
7933       case $host_cpu in
7934       hppa*64*|ia64*)
7935         # +Z the default
7936         ;;
7937       *)
7938         lt_prog_compiler_pic='+Z'
7939         ;;
7940       esac
7941       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7942       lt_prog_compiler_static='${wl}-a ${wl}archive'
7943       ;;
7944
7945     irix5* | irix6* | nonstopux*)
7946       lt_prog_compiler_wl='-Wl,'
7947       # PIC (with -KPIC) is the default.
7948       lt_prog_compiler_static='-non_shared'
7949       ;;
7950
7951     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7952       case $cc_basename in
7953       # old Intel for x86_64 which still supported -KPIC.
7954       ecc*)
7955         lt_prog_compiler_wl='-Wl,'
7956         lt_prog_compiler_pic='-KPIC'
7957         lt_prog_compiler_static='-static'
7958         ;;
7959       # icc used to be incompatible with GCC.
7960       # ICC 10 doesn't accept -KPIC any more.
7961       icc* | ifort*)
7962         lt_prog_compiler_wl='-Wl,'
7963         lt_prog_compiler_pic='-fPIC'
7964         lt_prog_compiler_static='-static'
7965         ;;
7966       # Lahey Fortran 8.1.
7967       lf95*)
7968         lt_prog_compiler_wl='-Wl,'
7969         lt_prog_compiler_pic='--shared'
7970         lt_prog_compiler_static='--static'
7971         ;;
7972       pgcc* | pgf77* | pgf90* | pgf95*)
7973         # Portland Group compilers (*not* the Pentium gcc compiler,
7974         # which looks to be a dead project)
7975         lt_prog_compiler_wl='-Wl,'
7976         lt_prog_compiler_pic='-fpic'
7977         lt_prog_compiler_static='-Bstatic'
7978         ;;
7979       ccc*)
7980         lt_prog_compiler_wl='-Wl,'
7981         # All Alpha code is PIC.
7982         lt_prog_compiler_static='-non_shared'
7983         ;;
7984       xl*)
7985         # IBM XL C 8.0/Fortran 10.1 on PPC
7986         lt_prog_compiler_wl='-Wl,'
7987         lt_prog_compiler_pic='-qpic'
7988         lt_prog_compiler_static='-qstaticlink'
7989         ;;
7990       *)
7991         case `$CC -V 2>&1 | sed 5q` in
7992         *Sun\ C*)
7993           # Sun C 5.9
7994           lt_prog_compiler_pic='-KPIC'
7995           lt_prog_compiler_static='-Bstatic'
7996           lt_prog_compiler_wl='-Wl,'
7997           ;;
7998         *Sun\ F*)
7999           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8000           lt_prog_compiler_pic='-KPIC'
8001           lt_prog_compiler_static='-Bstatic'
8002           lt_prog_compiler_wl=''
8003           ;;
8004         esac
8005         ;;
8006       esac
8007       ;;
8008
8009     newsos6)
8010       lt_prog_compiler_pic='-KPIC'
8011       lt_prog_compiler_static='-Bstatic'
8012       ;;
8013
8014     *nto* | *qnx*)
8015       # QNX uses GNU C++, but need to define -shared option too, otherwise
8016       # it will coredump.
8017       lt_prog_compiler_pic='-fPIC -shared'
8018       ;;
8019
8020     osf3* | osf4* | osf5*)
8021       lt_prog_compiler_wl='-Wl,'
8022       # All OSF/1 code is PIC.
8023       lt_prog_compiler_static='-non_shared'
8024       ;;
8025
8026     rdos*)
8027       lt_prog_compiler_static='-non_shared'
8028       ;;
8029
8030     solaris*)
8031       lt_prog_compiler_pic='-KPIC'
8032       lt_prog_compiler_static='-Bstatic'
8033       case $cc_basename in
8034       f77* | f90* | f95*)
8035         lt_prog_compiler_wl='-Qoption ld ';;
8036       *)
8037         lt_prog_compiler_wl='-Wl,';;
8038       esac
8039       ;;
8040
8041     sunos4*)
8042       lt_prog_compiler_wl='-Qoption ld '
8043       lt_prog_compiler_pic='-PIC'
8044       lt_prog_compiler_static='-Bstatic'
8045       ;;
8046
8047     sysv4 | sysv4.2uw2* | sysv4.3*)
8048       lt_prog_compiler_wl='-Wl,'
8049       lt_prog_compiler_pic='-KPIC'
8050       lt_prog_compiler_static='-Bstatic'
8051       ;;
8052
8053     sysv4*MP*)
8054       if test -d /usr/nec ;then
8055         lt_prog_compiler_pic='-Kconform_pic'
8056         lt_prog_compiler_static='-Bstatic'
8057       fi
8058       ;;
8059
8060     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8061       lt_prog_compiler_wl='-Wl,'
8062       lt_prog_compiler_pic='-KPIC'
8063       lt_prog_compiler_static='-Bstatic'
8064       ;;
8065
8066     unicos*)
8067       lt_prog_compiler_wl='-Wl,'
8068       lt_prog_compiler_can_build_shared=no
8069       ;;
8070
8071     uts4*)
8072       lt_prog_compiler_pic='-pic'
8073       lt_prog_compiler_static='-Bstatic'
8074       ;;
8075
8076     *)
8077       lt_prog_compiler_can_build_shared=no
8078       ;;
8079     esac
8080   fi
8081
8082 case $host_os in
8083   # For platforms which do not support PIC, -DPIC is meaningless:
8084   *djgpp*)
8085     lt_prog_compiler_pic=
8086     ;;
8087   *)
8088     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8089     ;;
8090 esac
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8092 $as_echo "$lt_prog_compiler_pic" >&6; }
8093
8094
8095
8096
8097
8098
8099 #
8100 # Check to make sure the PIC flag actually works.
8101 #
8102 if test -n "$lt_prog_compiler_pic"; then
8103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8104 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8105 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8106   $as_echo_n "(cached) " >&6
8107 else
8108   lt_cv_prog_compiler_pic_works=no
8109    ac_outfile=conftest.$ac_objext
8110    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8111    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8112    # Insert the option either (1) after the last *FLAGS variable, or
8113    # (2) before a word containing "conftest.", or (3) at the end.
8114    # Note that $ac_compile itself does not contain backslashes and begins
8115    # with a dollar sign (not a hyphen), so the echo should work correctly.
8116    # The option is referenced via a variable to avoid confusing sed.
8117    lt_compile=`echo "$ac_compile" | $SED \
8118    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8119    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8120    -e 's:$: $lt_compiler_flag:'`
8121    (eval echo "\"\$as_me:8121: $lt_compile\"" >&5)
8122    (eval "$lt_compile" 2>conftest.err)
8123    ac_status=$?
8124    cat conftest.err >&5
8125    echo "$as_me:8125: \$? = $ac_status" >&5
8126    if (exit $ac_status) && test -s "$ac_outfile"; then
8127      # The compiler can only warn and ignore the option if not recognized
8128      # So say no if there are warnings other than the usual output.
8129      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8130      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8131      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8132        lt_cv_prog_compiler_pic_works=yes
8133      fi
8134    fi
8135    $RM conftest*
8136
8137 fi
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8139 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8140
8141 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8142     case $lt_prog_compiler_pic in
8143      "" | " "*) ;;
8144      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8145      esac
8146 else
8147     lt_prog_compiler_pic=
8148      lt_prog_compiler_can_build_shared=no
8149 fi
8150
8151 fi
8152
8153
8154
8155
8156
8157
8158 #
8159 # Check to make sure the static flag actually works.
8160 #
8161 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8163 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8164 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8165   $as_echo_n "(cached) " >&6
8166 else
8167   lt_cv_prog_compiler_static_works=no
8168    save_LDFLAGS="$LDFLAGS"
8169    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8170    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8171    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8172      # The linker can only warn and ignore the option if not recognized
8173      # So say no if there are warnings
8174      if test -s conftest.err; then
8175        # Append any errors to the config.log.
8176        cat conftest.err 1>&5
8177        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8178        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8179        if diff conftest.exp conftest.er2 >/dev/null; then
8180          lt_cv_prog_compiler_static_works=yes
8181        fi
8182      else
8183        lt_cv_prog_compiler_static_works=yes
8184      fi
8185    fi
8186    $RM -r conftest*
8187    LDFLAGS="$save_LDFLAGS"
8188
8189 fi
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8191 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8192
8193 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8194     :
8195 else
8196     lt_prog_compiler_static=
8197 fi
8198
8199
8200
8201
8202
8203
8204
8205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8206 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8207 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8208   $as_echo_n "(cached) " >&6
8209 else
8210   lt_cv_prog_compiler_c_o=no
8211    $RM -r conftest 2>/dev/null
8212    mkdir conftest
8213    cd conftest
8214    mkdir out
8215    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8216
8217    lt_compiler_flag="-o out/conftest2.$ac_objext"
8218    # Insert the option either (1) after the last *FLAGS variable, or
8219    # (2) before a word containing "conftest.", or (3) at the end.
8220    # Note that $ac_compile itself does not contain backslashes and begins
8221    # with a dollar sign (not a hyphen), so the echo should work correctly.
8222    lt_compile=`echo "$ac_compile" | $SED \
8223    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8224    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8225    -e 's:$: $lt_compiler_flag:'`
8226    (eval echo "\"\$as_me:8226: $lt_compile\"" >&5)
8227    (eval "$lt_compile" 2>out/conftest.err)
8228    ac_status=$?
8229    cat out/conftest.err >&5
8230    echo "$as_me:8230: \$? = $ac_status" >&5
8231    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8232    then
8233      # The compiler can only warn and ignore the option if not recognized
8234      # So say no if there are warnings
8235      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8236      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8237      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8238        lt_cv_prog_compiler_c_o=yes
8239      fi
8240    fi
8241    chmod u+w . 2>&5
8242    $RM conftest*
8243    # SGI C++ compiler will create directory out/ii_files/ for
8244    # template instantiation
8245    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8246    $RM out/* && rmdir out
8247    cd ..
8248    $RM -r conftest
8249    $RM conftest*
8250
8251 fi
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8253 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8254
8255
8256
8257
8258
8259
8260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8261 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8262 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8263   $as_echo_n "(cached) " >&6
8264 else
8265   lt_cv_prog_compiler_c_o=no
8266    $RM -r conftest 2>/dev/null
8267    mkdir conftest
8268    cd conftest
8269    mkdir out
8270    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8271
8272    lt_compiler_flag="-o out/conftest2.$ac_objext"
8273    # Insert the option either (1) after the last *FLAGS variable, or
8274    # (2) before a word containing "conftest.", or (3) at the end.
8275    # Note that $ac_compile itself does not contain backslashes and begins
8276    # with a dollar sign (not a hyphen), so the echo should work correctly.
8277    lt_compile=`echo "$ac_compile" | $SED \
8278    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8279    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8280    -e 's:$: $lt_compiler_flag:'`
8281    (eval echo "\"\$as_me:8281: $lt_compile\"" >&5)
8282    (eval "$lt_compile" 2>out/conftest.err)
8283    ac_status=$?
8284    cat out/conftest.err >&5
8285    echo "$as_me:8285: \$? = $ac_status" >&5
8286    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8287    then
8288      # The compiler can only warn and ignore the option if not recognized
8289      # So say no if there are warnings
8290      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8291      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8292      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8293        lt_cv_prog_compiler_c_o=yes
8294      fi
8295    fi
8296    chmod u+w . 2>&5
8297    $RM conftest*
8298    # SGI C++ compiler will create directory out/ii_files/ for
8299    # template instantiation
8300    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8301    $RM out/* && rmdir out
8302    cd ..
8303    $RM -r conftest
8304    $RM conftest*
8305
8306 fi
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8308 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8309
8310
8311
8312
8313 hard_links="nottested"
8314 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8315   # do not overwrite the value of need_locks provided by the user
8316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8317 $as_echo_n "checking if we can lock with hard links... " >&6; }
8318   hard_links=yes
8319   $RM conftest*
8320   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8321   touch conftest.a
8322   ln conftest.a conftest.b 2>&5 || hard_links=no
8323   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8325 $as_echo "$hard_links" >&6; }
8326   if test "$hard_links" = no; then
8327     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8328 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8329     need_locks=warn
8330   fi
8331 else
8332   need_locks=no
8333 fi
8334
8335
8336
8337
8338
8339
8340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8341 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8342
8343   runpath_var=
8344   allow_undefined_flag=
8345   always_export_symbols=no
8346   archive_cmds=
8347   archive_expsym_cmds=
8348   compiler_needs_object=no
8349   enable_shared_with_static_runtimes=no
8350   export_dynamic_flag_spec=
8351   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8352   hardcode_automatic=no
8353   hardcode_direct=no
8354   hardcode_direct_absolute=no
8355   hardcode_libdir_flag_spec=
8356   hardcode_libdir_flag_spec_ld=
8357   hardcode_libdir_separator=
8358   hardcode_minus_L=no
8359   hardcode_shlibpath_var=unsupported
8360   inherit_rpath=no
8361   link_all_deplibs=unknown
8362   module_cmds=
8363   module_expsym_cmds=
8364   old_archive_from_new_cmds=
8365   old_archive_from_expsyms_cmds=
8366   thread_safe_flag_spec=
8367   whole_archive_flag_spec=
8368   # include_expsyms should be a list of space-separated symbols to be *always*
8369   # included in the symbol list
8370   include_expsyms=
8371   # exclude_expsyms can be an extended regexp of symbols to exclude
8372   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8373   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8374   # as well as any symbol that contains `d'.
8375   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8376   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8377   # platforms (ab)use it in PIC code, but their linkers get confused if
8378   # the symbol is explicitly referenced.  Since portable code cannot
8379   # rely on this symbol name, it's probably fine to never include it in
8380   # preloaded symbol tables.
8381   # Exclude shared library initialization/finalization symbols.
8382   extract_expsyms_cmds=
8383
8384   case $host_os in
8385   cygwin* | mingw* | pw32* | cegcc*)
8386     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8387     # When not using gcc, we currently assume that we are using
8388     # Microsoft Visual C++.
8389     if test "$GCC" != yes; then
8390       with_gnu_ld=no
8391     fi
8392     ;;
8393   interix*)
8394     # we just hope/assume this is gcc and not c89 (= MSVC++)
8395     with_gnu_ld=yes
8396     ;;
8397   openbsd*)
8398     with_gnu_ld=no
8399     ;;
8400   linux* | k*bsd*-gnu)
8401     link_all_deplibs=no
8402     ;;
8403   esac
8404
8405   ld_shlibs=yes
8406   if test "$with_gnu_ld" = yes; then
8407     # If archive_cmds runs LD, not CC, wlarc should be empty
8408     wlarc='${wl}'
8409
8410     # Set some defaults for GNU ld with shared library support. These
8411     # are reset later if shared libraries are not supported. Putting them
8412     # here allows them to be overridden if necessary.
8413     runpath_var=LD_RUN_PATH
8414     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8415     export_dynamic_flag_spec='${wl}--export-dynamic'
8416     # ancient GNU ld didn't support --whole-archive et. al.
8417     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8418       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8419     else
8420       whole_archive_flag_spec=
8421     fi
8422     supports_anon_versioning=no
8423     case `$LD -v 2>&1` in
8424       *GNU\ gold*) supports_anon_versioning=yes ;;
8425       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8426       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8427       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8428       *\ 2.11.*) ;; # other 2.11 versions
8429       *) supports_anon_versioning=yes ;;
8430     esac
8431
8432     # See if GNU ld supports shared libraries.
8433     case $host_os in
8434     aix[3-9]*)
8435       # On AIX/PPC, the GNU linker is very broken
8436       if test "$host_cpu" != ia64; then
8437         ld_shlibs=no
8438         cat <<_LT_EOF 1>&2
8439
8440 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8441 *** to be unable to reliably create shared libraries on AIX.
8442 *** Therefore, libtool is disabling shared libraries support.  If you
8443 *** really care for shared libraries, you may want to modify your PATH
8444 *** so that a non-GNU linker is found, and then restart.
8445
8446 _LT_EOF
8447       fi
8448       ;;
8449
8450     amigaos*)
8451       case $host_cpu in
8452       powerpc)
8453             # see comment about AmigaOS4 .so support
8454             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8455             archive_expsym_cmds=''
8456         ;;
8457       m68k)
8458             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)'
8459             hardcode_libdir_flag_spec='-L$libdir'
8460             hardcode_minus_L=yes
8461         ;;
8462       esac
8463       ;;
8464
8465     beos*)
8466       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8467         allow_undefined_flag=unsupported
8468         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8469         # support --undefined.  This deserves some investigation.  FIXME
8470         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8471       else
8472         ld_shlibs=no
8473       fi
8474       ;;
8475
8476     cygwin* | mingw* | pw32* | cegcc*)
8477       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8478       # as there is no search path for DLLs.
8479       hardcode_libdir_flag_spec='-L$libdir'
8480       allow_undefined_flag=unsupported
8481       always_export_symbols=no
8482       enable_shared_with_static_runtimes=yes
8483       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8484
8485       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8486         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8487         # If the export-symbols file already is a .def file (1st line
8488         # is EXPORTS), use it as is; otherwise, prepend...
8489         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8490           cp $export_symbols $output_objdir/$soname.def;
8491         else
8492           echo EXPORTS > $output_objdir/$soname.def;
8493           cat $export_symbols >> $output_objdir/$soname.def;
8494         fi~
8495         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8496       else
8497         ld_shlibs=no
8498       fi
8499       ;;
8500
8501     interix[3-9]*)
8502       hardcode_direct=no
8503       hardcode_shlibpath_var=no
8504       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8505       export_dynamic_flag_spec='${wl}-E'
8506       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8507       # Instead, shared libraries are loaded at an image base (0x10000000 by
8508       # default) and relocated if they conflict, which is a slow very memory
8509       # consuming and fragmenting process.  To avoid this, we pick a random,
8510       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8511       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8512       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8513       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'
8514       ;;
8515
8516     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8517       tmp_diet=no
8518       if test "$host_os" = linux-dietlibc; then
8519         case $cc_basename in
8520           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8521         esac
8522       fi
8523       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8524          && test "$tmp_diet" = no
8525       then
8526         tmp_addflag=
8527         tmp_sharedflag='-shared'
8528         case $cc_basename,$host_cpu in
8529         pgcc*)                          # Portland Group C compiler
8530           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'
8531           tmp_addflag=' $pic_flag'
8532           ;;
8533         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8534           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'
8535           tmp_addflag=' $pic_flag -Mnomain' ;;
8536         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8537           tmp_addflag=' -i_dynamic' ;;
8538         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8539           tmp_addflag=' -i_dynamic -nofor_main' ;;
8540         ifc* | ifort*)                  # Intel Fortran compiler
8541           tmp_addflag=' -nofor_main' ;;
8542         lf95*)                          # Lahey Fortran 8.1
8543           whole_archive_flag_spec=
8544           tmp_sharedflag='--shared' ;;
8545         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8546           tmp_sharedflag='-qmkshrobj'
8547           tmp_addflag= ;;
8548         esac
8549         case `$CC -V 2>&1 | sed 5q` in
8550         *Sun\ C*)                       # Sun C 5.9
8551           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'
8552           compiler_needs_object=yes
8553           tmp_sharedflag='-G' ;;
8554         *Sun\ F*)                       # Sun Fortran 8.3
8555           tmp_sharedflag='-G' ;;
8556         esac
8557         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8558
8559         if test "x$supports_anon_versioning" = xyes; then
8560           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8561             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8562             echo "local: *; };" >> $output_objdir/$libname.ver~
8563             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8564         fi
8565
8566         case $cc_basename in
8567         xlf*)
8568           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8569           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8570           hardcode_libdir_flag_spec=
8571           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8572           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8573           if test "x$supports_anon_versioning" = xyes; then
8574             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8575               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8576               echo "local: *; };" >> $output_objdir/$libname.ver~
8577               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8578           fi
8579           ;;
8580         esac
8581       else
8582         ld_shlibs=no
8583       fi
8584       ;;
8585
8586     netbsd* | netbsdelf*-gnu)
8587       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8588         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8589         wlarc=
8590       else
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       fi
8594       ;;
8595
8596     solaris*)
8597       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8598         ld_shlibs=no
8599         cat <<_LT_EOF 1>&2
8600
8601 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8602 *** create shared libraries on Solaris systems.  Therefore, libtool
8603 *** is disabling shared libraries support.  We urge you to upgrade GNU
8604 *** binutils to release 2.9.1 or newer.  Another option is to modify
8605 *** your PATH or compiler configuration so that the native linker is
8606 *** used, and then restart.
8607
8608 _LT_EOF
8609       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8610         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8611         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8612       else
8613         ld_shlibs=no
8614       fi
8615       ;;
8616
8617     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8618       case `$LD -v 2>&1` in
8619         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8620         ld_shlibs=no
8621         cat <<_LT_EOF 1>&2
8622
8623 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8624 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8625 *** is disabling shared libraries support.  We urge you to upgrade GNU
8626 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8627 *** your PATH or compiler configuration so that the native linker is
8628 *** used, and then restart.
8629
8630 _LT_EOF
8631         ;;
8632         *)
8633           # For security reasons, it is highly recommended that you always
8634           # use absolute paths for naming shared libraries, and exclude the
8635           # DT_RUNPATH tag from executables and libraries.  But doing so
8636           # requires that you compile everything twice, which is a pain.
8637           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8638             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8639             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8640             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8641           else
8642             ld_shlibs=no
8643           fi
8644         ;;
8645       esac
8646       ;;
8647
8648     sunos4*)
8649       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8650       wlarc=
8651       hardcode_direct=yes
8652       hardcode_shlibpath_var=no
8653       ;;
8654
8655     *)
8656       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8657         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8658         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8659       else
8660         ld_shlibs=no
8661       fi
8662       ;;
8663     esac
8664
8665     if test "$ld_shlibs" = no; then
8666       runpath_var=
8667       hardcode_libdir_flag_spec=
8668       export_dynamic_flag_spec=
8669       whole_archive_flag_spec=
8670     fi
8671   else
8672     # PORTME fill in a description of your system's linker (not GNU ld)
8673     case $host_os in
8674     aix3*)
8675       allow_undefined_flag=unsupported
8676       always_export_symbols=yes
8677       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'
8678       # Note: this linker hardcodes the directories in LIBPATH if there
8679       # are no directories specified by -L.
8680       hardcode_minus_L=yes
8681       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8682         # Neither direct hardcoding nor static linking is supported with a
8683         # broken collect2.
8684         hardcode_direct=unsupported
8685       fi
8686       ;;
8687
8688     aix[4-9]*)
8689       if test "$host_cpu" = ia64; then
8690         # On IA64, the linker does run time linking by default, so we don't
8691         # have to do anything special.
8692         aix_use_runtimelinking=no
8693         exp_sym_flag='-Bexport'
8694         no_entry_flag=""
8695       else
8696         # If we're using GNU nm, then we don't want the "-C" option.
8697         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8698         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8699           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'
8700         else
8701           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'
8702         fi
8703         aix_use_runtimelinking=no
8704
8705         # Test if we are trying to use run time linking or normal
8706         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8707         # need to do runtime linking.
8708         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8709           for ld_flag in $LDFLAGS; do
8710           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8711             aix_use_runtimelinking=yes
8712             break
8713           fi
8714           done
8715           ;;
8716         esac
8717
8718         exp_sym_flag='-bexport'
8719         no_entry_flag='-bnoentry'
8720       fi
8721
8722       # When large executables or shared objects are built, AIX ld can
8723       # have problems creating the table of contents.  If linking a library
8724       # or program results in "error TOC overflow" add -mminimal-toc to
8725       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8726       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8727
8728       archive_cmds=''
8729       hardcode_direct=yes
8730       hardcode_direct_absolute=yes
8731       hardcode_libdir_separator=':'
8732       link_all_deplibs=yes
8733       file_list_spec='${wl}-f,'
8734
8735       if test "$GCC" = yes; then
8736         case $host_os in aix4.[012]|aix4.[012].*)
8737         # We only want to do this on AIX 4.2 and lower, the check
8738         # below for broken collect2 doesn't work under 4.3+
8739           collect2name=`${CC} -print-prog-name=collect2`
8740           if test -f "$collect2name" &&
8741            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8742           then
8743           # We have reworked collect2
8744           :
8745           else
8746           # We have old collect2
8747           hardcode_direct=unsupported
8748           # It fails to find uninstalled libraries when the uninstalled
8749           # path is not listed in the libpath.  Setting hardcode_minus_L
8750           # to unsupported forces relinking
8751           hardcode_minus_L=yes
8752           hardcode_libdir_flag_spec='-L$libdir'
8753           hardcode_libdir_separator=
8754           fi
8755           ;;
8756         esac
8757         shared_flag='-shared'
8758         if test "$aix_use_runtimelinking" = yes; then
8759           shared_flag="$shared_flag "'${wl}-G'
8760         fi
8761         link_all_deplibs=no
8762       else
8763         # not using gcc
8764         if test "$host_cpu" = ia64; then
8765         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8766         # chokes on -Wl,-G. The following line is correct:
8767           shared_flag='-G'
8768         else
8769           if test "$aix_use_runtimelinking" = yes; then
8770             shared_flag='${wl}-G'
8771           else
8772             shared_flag='${wl}-bM:SRE'
8773           fi
8774         fi
8775       fi
8776
8777       export_dynamic_flag_spec='${wl}-bexpall'
8778       # It seems that -bexpall does not export symbols beginning with
8779       # underscore (_), so it is better to generate a list of symbols to export.
8780       always_export_symbols=yes
8781       if test "$aix_use_runtimelinking" = yes; then
8782         # Warning - without using the other runtime loading flags (-brtl),
8783         # -berok will link without error, but may produce a broken library.
8784         allow_undefined_flag='-berok'
8785         # Determine the default libpath from the value encoded in an
8786         # empty executable.
8787         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h.  */
8789
8790 int
8791 main ()
8792 {
8793
8794   ;
8795   return 0;
8796 }
8797 _ACEOF
8798 if ac_fn_c_try_link "$LINENO"; then :
8799
8800 lt_aix_libpath_sed='
8801     /Import File Strings/,/^$/ {
8802         /^0/ {
8803             s/^0  *\(.*\)$/\1/
8804             p
8805         }
8806     }'
8807 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8808 # Check for a 64-bit object if we didn't find anything.
8809 if test -z "$aix_libpath"; then
8810   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8811 fi
8812 fi
8813 rm -f core conftest.err conftest.$ac_objext \
8814     conftest$ac_exeext conftest.$ac_ext
8815 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8816
8817         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8818         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"
8819       else
8820         if test "$host_cpu" = ia64; then
8821           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8822           allow_undefined_flag="-z nodefs"
8823           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"
8824         else
8825          # Determine the default libpath from the value encoded in an
8826          # empty executable.
8827          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828 /* end confdefs.h.  */
8829
8830 int
8831 main ()
8832 {
8833
8834   ;
8835   return 0;
8836 }
8837 _ACEOF
8838 if ac_fn_c_try_link "$LINENO"; then :
8839
8840 lt_aix_libpath_sed='
8841     /Import File Strings/,/^$/ {
8842         /^0/ {
8843             s/^0  *\(.*\)$/\1/
8844             p
8845         }
8846     }'
8847 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8848 # Check for a 64-bit object if we didn't find anything.
8849 if test -z "$aix_libpath"; then
8850   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8851 fi
8852 fi
8853 rm -f core conftest.err conftest.$ac_objext \
8854     conftest$ac_exeext conftest.$ac_ext
8855 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8856
8857          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8858           # Warning - without using the other run time loading flags,
8859           # -berok will link without error, but may produce a broken library.
8860           no_undefined_flag=' ${wl}-bernotok'
8861           allow_undefined_flag=' ${wl}-berok'
8862           # Exported symbols can be pulled into shared objects from archives
8863           whole_archive_flag_spec='$convenience'
8864           archive_cmds_need_lc=yes
8865           # This is similar to how AIX traditionally builds its shared libraries.
8866           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'
8867         fi
8868       fi
8869       ;;
8870
8871     amigaos*)
8872       case $host_cpu in
8873       powerpc)
8874             # see comment about AmigaOS4 .so support
8875             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8876             archive_expsym_cmds=''
8877         ;;
8878       m68k)
8879             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)'
8880             hardcode_libdir_flag_spec='-L$libdir'
8881             hardcode_minus_L=yes
8882         ;;
8883       esac
8884       ;;
8885
8886     bsdi[45]*)
8887       export_dynamic_flag_spec=-rdynamic
8888       ;;
8889
8890     cygwin* | mingw* | pw32* | cegcc*)
8891       # When not using gcc, we currently assume that we are using
8892       # Microsoft Visual C++.
8893       # hardcode_libdir_flag_spec is actually meaningless, as there is
8894       # no search path for DLLs.
8895       hardcode_libdir_flag_spec=' '
8896       allow_undefined_flag=unsupported
8897       # Tell ltmain to make .lib files, not .a files.
8898       libext=lib
8899       # Tell ltmain to make .dll files, not .so files.
8900       shrext_cmds=".dll"
8901       # FIXME: Setting linknames here is a bad hack.
8902       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8903       # The linker will automatically build a .lib file if we build a DLL.
8904       old_archive_from_new_cmds='true'
8905       # FIXME: Should let the user specify the lib program.
8906       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8907       fix_srcfile_path='`cygpath -w "$srcfile"`'
8908       enable_shared_with_static_runtimes=yes
8909       ;;
8910
8911     darwin* | rhapsody*)
8912
8913
8914   archive_cmds_need_lc=no
8915   hardcode_direct=no
8916   hardcode_automatic=yes
8917   hardcode_shlibpath_var=unsupported
8918   whole_archive_flag_spec=''
8919   link_all_deplibs=yes
8920   allow_undefined_flag="$_lt_dar_allow_undefined"
8921   case $cc_basename in
8922      ifort*) _lt_dar_can_shared=yes ;;
8923      *) _lt_dar_can_shared=$GCC ;;
8924   esac
8925   if test "$_lt_dar_can_shared" = "yes"; then
8926     output_verbose_link_cmd=echo
8927     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8928     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8929     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}"
8930     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}"
8931
8932   else
8933   ld_shlibs=no
8934   fi
8935
8936       ;;
8937
8938     dgux*)
8939       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8940       hardcode_libdir_flag_spec='-L$libdir'
8941       hardcode_shlibpath_var=no
8942       ;;
8943
8944     freebsd1*)
8945       ld_shlibs=no
8946       ;;
8947
8948     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8949     # support.  Future versions do this automatically, but an explicit c++rt0.o
8950     # does not break anything, and helps significantly (at the cost of a little
8951     # extra space).
8952     freebsd2.2*)
8953       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8954       hardcode_libdir_flag_spec='-R$libdir'
8955       hardcode_direct=yes
8956       hardcode_shlibpath_var=no
8957       ;;
8958
8959     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8960     freebsd2*)
8961       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8962       hardcode_direct=yes
8963       hardcode_minus_L=yes
8964       hardcode_shlibpath_var=no
8965       ;;
8966
8967     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8968     freebsd* | dragonfly*)
8969       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8970       hardcode_libdir_flag_spec='-R$libdir'
8971       hardcode_direct=yes
8972       hardcode_shlibpath_var=no
8973       ;;
8974
8975     hpux9*)
8976       if test "$GCC" = yes; then
8977         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'
8978       else
8979         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'
8980       fi
8981       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8982       hardcode_libdir_separator=:
8983       hardcode_direct=yes
8984
8985       # hardcode_minus_L: Not really in the search PATH,
8986       # but as the default location of the library.
8987       hardcode_minus_L=yes
8988       export_dynamic_flag_spec='${wl}-E'
8989       ;;
8990
8991     hpux10*)
8992       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8993         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8994       else
8995         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8996       fi
8997       if test "$with_gnu_ld" = no; then
8998         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8999         hardcode_libdir_flag_spec_ld='+b $libdir'
9000         hardcode_libdir_separator=:
9001         hardcode_direct=yes
9002         hardcode_direct_absolute=yes
9003         export_dynamic_flag_spec='${wl}-E'
9004         # hardcode_minus_L: Not really in the search PATH,
9005         # but as the default location of the library.
9006         hardcode_minus_L=yes
9007       fi
9008       ;;
9009
9010     hpux11*)
9011       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9012         case $host_cpu in
9013         hppa*64*)
9014           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9015           ;;
9016         ia64*)
9017           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9018           ;;
9019         *)
9020           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9021           ;;
9022         esac
9023       else
9024         case $host_cpu in
9025         hppa*64*)
9026           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9027           ;;
9028         ia64*)
9029           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9030           ;;
9031         *)
9032           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9033           ;;
9034         esac
9035       fi
9036       if test "$with_gnu_ld" = no; then
9037         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9038         hardcode_libdir_separator=:
9039
9040         case $host_cpu in
9041         hppa*64*|ia64*)
9042           hardcode_direct=no
9043           hardcode_shlibpath_var=no
9044           ;;
9045         *)
9046           hardcode_direct=yes
9047           hardcode_direct_absolute=yes
9048           export_dynamic_flag_spec='${wl}-E'
9049
9050           # hardcode_minus_L: Not really in the search PATH,
9051           # but as the default location of the library.
9052           hardcode_minus_L=yes
9053           ;;
9054         esac
9055       fi
9056       ;;
9057
9058     irix5* | irix6* | nonstopux*)
9059       if test "$GCC" = yes; then
9060         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'
9061         # Try to use the -exported_symbol ld option, if it does not
9062         # work, assume that -exports_file does not work either and
9063         # implicitly export all symbols.
9064         save_LDFLAGS="$LDFLAGS"
9065         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9066         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h.  */
9068 int foo(void) {}
9069 _ACEOF
9070 if ac_fn_c_try_link "$LINENO"; then :
9071   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'
9072
9073 fi
9074 rm -f core conftest.err conftest.$ac_objext \
9075     conftest$ac_exeext conftest.$ac_ext
9076         LDFLAGS="$save_LDFLAGS"
9077       else
9078         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'
9079         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'
9080       fi
9081       archive_cmds_need_lc='no'
9082       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9083       hardcode_libdir_separator=:
9084       inherit_rpath=yes
9085       link_all_deplibs=yes
9086       ;;
9087
9088     netbsd* | netbsdelf*-gnu)
9089       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9090         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9091       else
9092         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9093       fi
9094       hardcode_libdir_flag_spec='-R$libdir'
9095       hardcode_direct=yes
9096       hardcode_shlibpath_var=no
9097       ;;
9098
9099     newsos6)
9100       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9101       hardcode_direct=yes
9102       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9103       hardcode_libdir_separator=:
9104       hardcode_shlibpath_var=no
9105       ;;
9106
9107     *nto* | *qnx*)
9108       ;;
9109
9110     openbsd*)
9111       if test -f /usr/libexec/ld.so; then
9112         hardcode_direct=yes
9113         hardcode_shlibpath_var=no
9114         hardcode_direct_absolute=yes
9115         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9116           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9117           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9118           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9119           export_dynamic_flag_spec='${wl}-E'
9120         else
9121           case $host_os in
9122            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9123              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9124              hardcode_libdir_flag_spec='-R$libdir'
9125              ;;
9126            *)
9127              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9128              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9129              ;;
9130           esac
9131         fi
9132       else
9133         ld_shlibs=no
9134       fi
9135       ;;
9136
9137     os2*)
9138       hardcode_libdir_flag_spec='-L$libdir'
9139       hardcode_minus_L=yes
9140       allow_undefined_flag=unsupported
9141       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'
9142       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9143       ;;
9144
9145     osf3*)
9146       if test "$GCC" = yes; then
9147         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9148         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'
9149       else
9150         allow_undefined_flag=' -expect_unresolved \*'
9151         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'
9152       fi
9153       archive_cmds_need_lc='no'
9154       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9155       hardcode_libdir_separator=:
9156       ;;
9157
9158     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9159       if test "$GCC" = yes; then
9160         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9161         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'
9162         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9163       else
9164         allow_undefined_flag=' -expect_unresolved \*'
9165         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'
9166         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~
9167         $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'
9168
9169         # Both c and cxx compiler support -rpath directly
9170         hardcode_libdir_flag_spec='-rpath $libdir'
9171       fi
9172       archive_cmds_need_lc='no'
9173       hardcode_libdir_separator=:
9174       ;;
9175
9176     solaris*)
9177       no_undefined_flag=' -z defs'
9178       if test "$GCC" = yes; then
9179         wlarc='${wl}'
9180         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9181         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9182           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9183       else
9184         case `$CC -V 2>&1` in
9185         *"Compilers 5.0"*)
9186           wlarc=''
9187           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9188           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9189           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9190           ;;
9191         *)
9192           wlarc='${wl}'
9193           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9194           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9195           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9196           ;;
9197         esac
9198       fi
9199       hardcode_libdir_flag_spec='-R$libdir'
9200       hardcode_shlibpath_var=no
9201       case $host_os in
9202       solaris2.[0-5] | solaris2.[0-5].*) ;;
9203       *)
9204         # The compiler driver will combine and reorder linker options,
9205         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9206         # but is careful enough not to reorder.
9207         # Supported since Solaris 2.6 (maybe 2.5.1?)
9208         if test "$GCC" = yes; then
9209           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9210         else
9211           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9212         fi
9213         ;;
9214       esac
9215       link_all_deplibs=yes
9216       ;;
9217
9218     sunos4*)
9219       if test "x$host_vendor" = xsequent; then
9220         # Use $CC to link under sequent, because it throws in some extra .o
9221         # files that make .init and .fini sections work.
9222         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9223       else
9224         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9225       fi
9226       hardcode_libdir_flag_spec='-L$libdir'
9227       hardcode_direct=yes
9228       hardcode_minus_L=yes
9229       hardcode_shlibpath_var=no
9230       ;;
9231
9232     sysv4)
9233       case $host_vendor in
9234         sni)
9235           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9236           hardcode_direct=yes # is this really true???
9237         ;;
9238         siemens)
9239           ## LD is ld it makes a PLAMLIB
9240           ## CC just makes a GrossModule.
9241           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9242           reload_cmds='$CC -r -o $output$reload_objs'
9243           hardcode_direct=no
9244         ;;
9245         motorola)
9246           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9247           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9248         ;;
9249       esac
9250       runpath_var='LD_RUN_PATH'
9251       hardcode_shlibpath_var=no
9252       ;;
9253
9254     sysv4.3*)
9255       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9256       hardcode_shlibpath_var=no
9257       export_dynamic_flag_spec='-Bexport'
9258       ;;
9259
9260     sysv4*MP*)
9261       if test -d /usr/nec; then
9262         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9263         hardcode_shlibpath_var=no
9264         runpath_var=LD_RUN_PATH
9265         hardcode_runpath_var=yes
9266         ld_shlibs=yes
9267       fi
9268       ;;
9269
9270     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9271       no_undefined_flag='${wl}-z,text'
9272       archive_cmds_need_lc=no
9273       hardcode_shlibpath_var=no
9274       runpath_var='LD_RUN_PATH'
9275
9276       if test "$GCC" = yes; then
9277         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9278         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9279       else
9280         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9281         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9282       fi
9283       ;;
9284
9285     sysv5* | sco3.2v5* | sco5v6*)
9286       # Note: We can NOT use -z defs as we might desire, because we do not
9287       # link with -lc, and that would cause any symbols used from libc to
9288       # always be unresolved, which means just about no library would
9289       # ever link correctly.  If we're not using GNU ld we use -z text
9290       # though, which does catch some bad symbols but isn't as heavy-handed
9291       # as -z defs.
9292       no_undefined_flag='${wl}-z,text'
9293       allow_undefined_flag='${wl}-z,nodefs'
9294       archive_cmds_need_lc=no
9295       hardcode_shlibpath_var=no
9296       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9297       hardcode_libdir_separator=':'
9298       link_all_deplibs=yes
9299       export_dynamic_flag_spec='${wl}-Bexport'
9300       runpath_var='LD_RUN_PATH'
9301
9302       if test "$GCC" = yes; then
9303         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9304         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9305       else
9306         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9307         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9308       fi
9309       ;;
9310
9311     uts4*)
9312       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9313       hardcode_libdir_flag_spec='-L$libdir'
9314       hardcode_shlibpath_var=no
9315       ;;
9316
9317     *)
9318       ld_shlibs=no
9319       ;;
9320     esac
9321
9322     if test x$host_vendor = xsni; then
9323       case $host in
9324       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9325         export_dynamic_flag_spec='${wl}-Blargedynsym'
9326         ;;
9327       esac
9328     fi
9329   fi
9330
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9332 $as_echo "$ld_shlibs" >&6; }
9333 test "$ld_shlibs" = no && can_build_shared=no
9334
9335 with_gnu_ld=$with_gnu_ld
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351 #
9352 # Do we need to explicitly link libc?
9353 #
9354 case "x$archive_cmds_need_lc" in
9355 x|xyes)
9356   # Assume -lc should be added
9357   archive_cmds_need_lc=yes
9358
9359   if test "$enable_shared" = yes && test "$GCC" = yes; then
9360     case $archive_cmds in
9361     *'~'*)
9362       # FIXME: we may have to deal with multi-command sequences.
9363       ;;
9364     '$CC '*)
9365       # Test whether the compiler implicitly links with -lc since on some
9366       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9367       # to ld, don't add -lc before -lgcc.
9368       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9369 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9370       $RM conftest*
9371       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9372
9373       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9374   (eval $ac_compile) 2>&5
9375   ac_status=$?
9376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9377   test $ac_status = 0; } 2>conftest.err; then
9378         soname=conftest
9379         lib=conftest
9380         libobjs=conftest.$ac_objext
9381         deplibs=
9382         wl=$lt_prog_compiler_wl
9383         pic_flag=$lt_prog_compiler_pic
9384         compiler_flags=-v
9385         linker_flags=-v
9386         verstring=
9387         output_objdir=.
9388         libname=conftest
9389         lt_save_allow_undefined_flag=$allow_undefined_flag
9390         allow_undefined_flag=
9391         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9392   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9393   ac_status=$?
9394   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9395   test $ac_status = 0; }
9396         then
9397           archive_cmds_need_lc=no
9398         else
9399           archive_cmds_need_lc=yes
9400         fi
9401         allow_undefined_flag=$lt_save_allow_undefined_flag
9402       else
9403         cat conftest.err 1>&5
9404       fi
9405       $RM conftest*
9406       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9407 $as_echo "$archive_cmds_need_lc" >&6; }
9408       ;;
9409     esac
9410   fi
9411   ;;
9412 esac
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
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9571 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9572
9573 if test "$GCC" = yes; then
9574   case $host_os in
9575     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9576     *) lt_awk_arg="/^libraries:/" ;;
9577   esac
9578   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9579   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9580     # if the path contains ";" then we assume it to be the separator
9581     # otherwise default to the standard path separator (i.e. ":") - it is
9582     # assumed that no part of a normal pathname contains ";" but that should
9583     # okay in the real world where ";" in dirpaths is itself problematic.
9584     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9585   else
9586     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9587   fi
9588   # Ok, now we have the path, separated by spaces, we can step through it
9589   # and add multilib dir if necessary.
9590   lt_tmp_lt_search_path_spec=
9591   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9592   for lt_sys_path in $lt_search_path_spec; do
9593     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9594       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9595     else
9596       test -d "$lt_sys_path" && \
9597         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9598     fi
9599   done
9600   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9601 BEGIN {RS=" "; FS="/|\n";} {
9602   lt_foo="";
9603   lt_count=0;
9604   for (lt_i = NF; lt_i > 0; lt_i--) {
9605     if ($lt_i != "" && $lt_i != ".") {
9606       if ($lt_i == "..") {
9607         lt_count++;
9608       } else {
9609         if (lt_count == 0) {
9610           lt_foo="/" $lt_i lt_foo;
9611         } else {
9612           lt_count--;
9613         }
9614       }
9615     }
9616   }
9617   if (lt_foo != "") { lt_freq[lt_foo]++; }
9618   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9619 }'`
9620   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9621 else
9622   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9623 fi
9624 library_names_spec=
9625 libname_spec='lib$name'
9626 soname_spec=
9627 shrext_cmds=".so"
9628 postinstall_cmds=
9629 postuninstall_cmds=
9630 finish_cmds=
9631 finish_eval=
9632 shlibpath_var=
9633 shlibpath_overrides_runpath=unknown
9634 version_type=none
9635 dynamic_linker="$host_os ld.so"
9636 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9637 need_lib_prefix=unknown
9638 hardcode_into_libs=no
9639
9640 # when you set need_version to no, make sure it does not cause -set_version
9641 # flags to be left without arguments
9642 need_version=unknown
9643
9644 case $host_os in
9645 aix3*)
9646   version_type=linux
9647   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9648   shlibpath_var=LIBPATH
9649
9650   # AIX 3 has no versioning support, so we append a major version to the name.
9651   soname_spec='${libname}${release}${shared_ext}$major'
9652   ;;
9653
9654 aix[4-9]*)
9655   version_type=linux
9656   need_lib_prefix=no
9657   need_version=no
9658   hardcode_into_libs=yes
9659   if test "$host_cpu" = ia64; then
9660     # AIX 5 supports IA64
9661     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9662     shlibpath_var=LD_LIBRARY_PATH
9663   else
9664     # With GCC up to 2.95.x, collect2 would create an import file
9665     # for dependence libraries.  The import file would start with
9666     # the line `#! .'.  This would cause the generated library to
9667     # depend on `.', always an invalid library.  This was fixed in
9668     # development snapshots of GCC prior to 3.0.
9669     case $host_os in
9670       aix4 | aix4.[01] | aix4.[01].*)
9671       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9672            echo ' yes '
9673            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9674         :
9675       else
9676         can_build_shared=no
9677       fi
9678       ;;
9679     esac
9680     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9681     # soname into executable. Probably we can add versioning support to
9682     # collect2, so additional links can be useful in future.
9683     if test "$aix_use_runtimelinking" = yes; then
9684       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9685       # instead of lib<name>.a to let people know that these are not
9686       # typical AIX shared libraries.
9687       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9688     else
9689       # We preserve .a as extension for shared libraries through AIX4.2
9690       # and later when we are not doing run time linking.
9691       library_names_spec='${libname}${release}.a $libname.a'
9692       soname_spec='${libname}${release}${shared_ext}$major'
9693     fi
9694     shlibpath_var=LIBPATH
9695   fi
9696   ;;
9697
9698 amigaos*)
9699   case $host_cpu in
9700   powerpc)
9701     # Since July 2007 AmigaOS4 officially supports .so libraries.
9702     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9703     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9704     ;;
9705   m68k)
9706     library_names_spec='$libname.ixlibrary $libname.a'
9707     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9708     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'
9709     ;;
9710   esac
9711   ;;
9712
9713 beos*)
9714   library_names_spec='${libname}${shared_ext}'
9715   dynamic_linker="$host_os ld.so"
9716   shlibpath_var=LIBRARY_PATH
9717   ;;
9718
9719 bsdi[45]*)
9720   version_type=linux
9721   need_version=no
9722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723   soname_spec='${libname}${release}${shared_ext}$major'
9724   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9725   shlibpath_var=LD_LIBRARY_PATH
9726   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9727   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9728   # the default ld.so.conf also contains /usr/contrib/lib and
9729   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9730   # libtool to hard-code these into programs
9731   ;;
9732
9733 cygwin* | mingw* | pw32* | cegcc*)
9734   version_type=windows
9735   shrext_cmds=".dll"
9736   need_version=no
9737   need_lib_prefix=no
9738
9739   case $GCC,$host_os in
9740   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9741     library_names_spec='$libname.dll.a'
9742     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9743     postinstall_cmds='base_file=`basename \${file}`~
9744       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9745       dldir=$destdir/`dirname \$dlpath`~
9746       test -d \$dldir || mkdir -p \$dldir~
9747       $install_prog $dir/$dlname \$dldir/$dlname~
9748       chmod a+x \$dldir/$dlname~
9749       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9750         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9751       fi'
9752     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9753       dlpath=$dir/\$dldll~
9754        $RM \$dlpath'
9755     shlibpath_overrides_runpath=yes
9756
9757     case $host_os in
9758     cygwin*)
9759       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9760       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9761       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9762       ;;
9763     mingw* | cegcc*)
9764       # MinGW DLLs use traditional 'lib' prefix
9765       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9766       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9767       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9768         # It is most probably a Windows format PATH printed by
9769         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9770         # path with ; separators, and with drive letters. We can handle the
9771         # drive letters (cygwin fileutils understands them), so leave them,
9772         # especially as we might pass files found there to a mingw objdump,
9773         # which wouldn't understand a cygwinified path. Ahh.
9774         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9775       else
9776         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9777       fi
9778       ;;
9779     pw32*)
9780       # pw32 DLLs use 'pw' prefix rather than 'lib'
9781       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9782       ;;
9783     esac
9784     ;;
9785
9786   *)
9787     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9788     ;;
9789   esac
9790   dynamic_linker='Win32 ld.exe'
9791   # FIXME: first we should search . and the directory the executable is in
9792   shlibpath_var=PATH
9793   ;;
9794
9795 darwin* | rhapsody*)
9796   dynamic_linker="$host_os dyld"
9797   version_type=darwin
9798   need_lib_prefix=no
9799   need_version=no
9800   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9801   soname_spec='${libname}${release}${major}$shared_ext'
9802   shlibpath_overrides_runpath=yes
9803   shlibpath_var=DYLD_LIBRARY_PATH
9804   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9805
9806   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9807   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9808   ;;
9809
9810 dgux*)
9811   version_type=linux
9812   need_lib_prefix=no
9813   need_version=no
9814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9815   soname_spec='${libname}${release}${shared_ext}$major'
9816   shlibpath_var=LD_LIBRARY_PATH
9817   ;;
9818
9819 freebsd1*)
9820   dynamic_linker=no
9821   ;;
9822
9823 freebsd* | dragonfly*)
9824   # DragonFly does not have aout.  When/if they implement a new
9825   # versioning mechanism, adjust this.
9826   if test -x /usr/bin/objformat; then
9827     objformat=`/usr/bin/objformat`
9828   else
9829     case $host_os in
9830     freebsd[123]*) objformat=aout ;;
9831     *) objformat=elf ;;
9832     esac
9833   fi
9834   version_type=freebsd-$objformat
9835   case $version_type in
9836     freebsd-elf*)
9837       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9838       need_version=no
9839       need_lib_prefix=no
9840       ;;
9841     freebsd-*)
9842       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9843       need_version=yes
9844       ;;
9845   esac
9846   shlibpath_var=LD_LIBRARY_PATH
9847   case $host_os in
9848   freebsd2*)
9849     shlibpath_overrides_runpath=yes
9850     ;;
9851   freebsd3.[01]* | freebsdelf3.[01]*)
9852     shlibpath_overrides_runpath=yes
9853     hardcode_into_libs=yes
9854     ;;
9855   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9856   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9857     shlibpath_overrides_runpath=no
9858     hardcode_into_libs=yes
9859     ;;
9860   *) # from 4.6 on, and DragonFly
9861     shlibpath_overrides_runpath=yes
9862     hardcode_into_libs=yes
9863     ;;
9864   esac
9865   ;;
9866
9867 gnu*)
9868   version_type=linux
9869   need_lib_prefix=no
9870   need_version=no
9871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9872   soname_spec='${libname}${release}${shared_ext}$major'
9873   shlibpath_var=LD_LIBRARY_PATH
9874   hardcode_into_libs=yes
9875   ;;
9876
9877 hpux9* | hpux10* | hpux11*)
9878   # Give a soname corresponding to the major version so that dld.sl refuses to
9879   # link against other versions.
9880   version_type=sunos
9881   need_lib_prefix=no
9882   need_version=no
9883   case $host_cpu in
9884   ia64*)
9885     shrext_cmds='.so'
9886     hardcode_into_libs=yes
9887     dynamic_linker="$host_os dld.so"
9888     shlibpath_var=LD_LIBRARY_PATH
9889     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9890     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9891     soname_spec='${libname}${release}${shared_ext}$major'
9892     if test "X$HPUX_IA64_MODE" = X32; then
9893       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9894     else
9895       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9896     fi
9897     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9898     ;;
9899   hppa*64*)
9900     shrext_cmds='.sl'
9901     hardcode_into_libs=yes
9902     dynamic_linker="$host_os dld.sl"
9903     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9904     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9905     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9906     soname_spec='${libname}${release}${shared_ext}$major'
9907     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9908     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9909     ;;
9910   *)
9911     shrext_cmds='.sl'
9912     dynamic_linker="$host_os dld.sl"
9913     shlibpath_var=SHLIB_PATH
9914     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9915     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9916     soname_spec='${libname}${release}${shared_ext}$major'
9917     ;;
9918   esac
9919   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9920   postinstall_cmds='chmod 555 $lib'
9921   ;;
9922
9923 interix[3-9]*)
9924   version_type=linux
9925   need_lib_prefix=no
9926   need_version=no
9927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9928   soname_spec='${libname}${release}${shared_ext}$major'
9929   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9930   shlibpath_var=LD_LIBRARY_PATH
9931   shlibpath_overrides_runpath=no
9932   hardcode_into_libs=yes
9933   ;;
9934
9935 irix5* | irix6* | nonstopux*)
9936   case $host_os in
9937     nonstopux*) version_type=nonstopux ;;
9938     *)
9939         if test "$lt_cv_prog_gnu_ld" = yes; then
9940                 version_type=linux
9941         else
9942                 version_type=irix
9943         fi ;;
9944   esac
9945   need_lib_prefix=no
9946   need_version=no
9947   soname_spec='${libname}${release}${shared_ext}$major'
9948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9949   case $host_os in
9950   irix5* | nonstopux*)
9951     libsuff= shlibsuff=
9952     ;;
9953   *)
9954     case $LD in # libtool.m4 will add one of these switches to LD
9955     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9956       libsuff= shlibsuff= libmagic=32-bit;;
9957     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9958       libsuff=32 shlibsuff=N32 libmagic=N32;;
9959     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9960       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9961     *) libsuff= shlibsuff= libmagic=never-match;;
9962     esac
9963     ;;
9964   esac
9965   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9966   shlibpath_overrides_runpath=no
9967   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9968   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9969   hardcode_into_libs=yes
9970   ;;
9971
9972 # No shared lib support for Linux oldld, aout, or coff.
9973 linux*oldld* | linux*aout* | linux*coff*)
9974   dynamic_linker=no
9975   ;;
9976
9977 # This must be Linux ELF.
9978 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9979   version_type=linux
9980   need_lib_prefix=no
9981   need_version=no
9982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983   soname_spec='${libname}${release}${shared_ext}$major'
9984   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9985   shlibpath_var=LD_LIBRARY_PATH
9986   shlibpath_overrides_runpath=no
9987   # Some binutils ld are patched to set DT_RUNPATH
9988   save_LDFLAGS=$LDFLAGS
9989   save_libdir=$libdir
9990   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9991        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h.  */
9994
9995 int
9996 main ()
9997 {
9998
9999   ;
10000   return 0;
10001 }
10002 _ACEOF
10003 if ac_fn_c_try_link "$LINENO"; then :
10004   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10005   shlibpath_overrides_runpath=yes
10006 fi
10007 fi
10008 rm -f core conftest.err conftest.$ac_objext \
10009     conftest$ac_exeext conftest.$ac_ext
10010   LDFLAGS=$save_LDFLAGS
10011   libdir=$save_libdir
10012
10013   # This implies no fast_install, which is unacceptable.
10014   # Some rework will be needed to allow for fast_install
10015   # before this can be enabled.
10016   hardcode_into_libs=yes
10017
10018   # Append ld.so.conf contents to the search path
10019   if test -f /etc/ld.so.conf; then
10020     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' ' '`
10021     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10022   fi
10023
10024   # We used to test for /lib/ld.so.1 and disable shared libraries on
10025   # powerpc, because MkLinux only supported shared libraries with the
10026   # GNU dynamic linker.  Since this was broken with cross compilers,
10027   # most powerpc-linux boxes support dynamic linking these days and
10028   # people can always --disable-shared, the test was removed, and we
10029   # assume the GNU/Linux dynamic linker is in use.
10030   dynamic_linker='GNU/Linux ld.so'
10031   ;;
10032
10033 netbsdelf*-gnu)
10034   version_type=linux
10035   need_lib_prefix=no
10036   need_version=no
10037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10038   soname_spec='${libname}${release}${shared_ext}$major'
10039   shlibpath_var=LD_LIBRARY_PATH
10040   shlibpath_overrides_runpath=no
10041   hardcode_into_libs=yes
10042   dynamic_linker='NetBSD ld.elf_so'
10043   ;;
10044
10045 netbsd*)
10046   version_type=sunos
10047   need_lib_prefix=no
10048   need_version=no
10049   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10050     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10051     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10052     dynamic_linker='NetBSD (a.out) ld.so'
10053   else
10054     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10055     soname_spec='${libname}${release}${shared_ext}$major'
10056     dynamic_linker='NetBSD ld.elf_so'
10057   fi
10058   shlibpath_var=LD_LIBRARY_PATH
10059   shlibpath_overrides_runpath=yes
10060   hardcode_into_libs=yes
10061   ;;
10062
10063 newsos6)
10064   version_type=linux
10065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10066   shlibpath_var=LD_LIBRARY_PATH
10067   shlibpath_overrides_runpath=yes
10068   ;;
10069
10070 *nto* | *qnx*)
10071   version_type=qnx
10072   need_lib_prefix=no
10073   need_version=no
10074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075   soname_spec='${libname}${release}${shared_ext}$major'
10076   shlibpath_var=LD_LIBRARY_PATH
10077   shlibpath_overrides_runpath=no
10078   hardcode_into_libs=yes
10079   dynamic_linker='ldqnx.so'
10080   ;;
10081
10082 openbsd*)
10083   version_type=sunos
10084   sys_lib_dlsearch_path_spec="/usr/lib"
10085   need_lib_prefix=no
10086   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10087   case $host_os in
10088     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10089     *)                          need_version=no  ;;
10090   esac
10091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10092   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10093   shlibpath_var=LD_LIBRARY_PATH
10094   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10095     case $host_os in
10096       openbsd2.[89] | openbsd2.[89].*)
10097         shlibpath_overrides_runpath=no
10098         ;;
10099       *)
10100         shlibpath_overrides_runpath=yes
10101         ;;
10102       esac
10103   else
10104     shlibpath_overrides_runpath=yes
10105   fi
10106   ;;
10107
10108 os2*)
10109   libname_spec='$name'
10110   shrext_cmds=".dll"
10111   need_lib_prefix=no
10112   library_names_spec='$libname${shared_ext} $libname.a'
10113   dynamic_linker='OS/2 ld.exe'
10114   shlibpath_var=LIBPATH
10115   ;;
10116
10117 osf3* | osf4* | osf5*)
10118   version_type=osf
10119   need_lib_prefix=no
10120   need_version=no
10121   soname_spec='${libname}${release}${shared_ext}$major'
10122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10123   shlibpath_var=LD_LIBRARY_PATH
10124   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10125   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10126   ;;
10127
10128 rdos*)
10129   dynamic_linker=no
10130   ;;
10131
10132 solaris*)
10133   version_type=linux
10134   need_lib_prefix=no
10135   need_version=no
10136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137   soname_spec='${libname}${release}${shared_ext}$major'
10138   shlibpath_var=LD_LIBRARY_PATH
10139   shlibpath_overrides_runpath=yes
10140   hardcode_into_libs=yes
10141   # ldd complains unless libraries are executable
10142   postinstall_cmds='chmod +x $lib'
10143   ;;
10144
10145 sunos4*)
10146   version_type=sunos
10147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10148   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10149   shlibpath_var=LD_LIBRARY_PATH
10150   shlibpath_overrides_runpath=yes
10151   if test "$with_gnu_ld" = yes; then
10152     need_lib_prefix=no
10153   fi
10154   need_version=yes
10155   ;;
10156
10157 sysv4 | sysv4.3*)
10158   version_type=linux
10159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10160   soname_spec='${libname}${release}${shared_ext}$major'
10161   shlibpath_var=LD_LIBRARY_PATH
10162   case $host_vendor in
10163     sni)
10164       shlibpath_overrides_runpath=no
10165       need_lib_prefix=no
10166       runpath_var=LD_RUN_PATH
10167       ;;
10168     siemens)
10169       need_lib_prefix=no
10170       ;;
10171     motorola)
10172       need_lib_prefix=no
10173       need_version=no
10174       shlibpath_overrides_runpath=no
10175       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10176       ;;
10177   esac
10178   ;;
10179
10180 sysv4*MP*)
10181   if test -d /usr/nec ;then
10182     version_type=linux
10183     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10184     soname_spec='$libname${shared_ext}.$major'
10185     shlibpath_var=LD_LIBRARY_PATH
10186   fi
10187   ;;
10188
10189 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10190   version_type=freebsd-elf
10191   need_lib_prefix=no
10192   need_version=no
10193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10194   soname_spec='${libname}${release}${shared_ext}$major'
10195   shlibpath_var=LD_LIBRARY_PATH
10196   shlibpath_overrides_runpath=yes
10197   hardcode_into_libs=yes
10198   if test "$with_gnu_ld" = yes; then
10199     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10200   else
10201     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10202     case $host_os in
10203       sco3.2v5*)
10204         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10205         ;;
10206     esac
10207   fi
10208   sys_lib_dlsearch_path_spec='/usr/lib'
10209   ;;
10210
10211 tpf*)
10212   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10213   version_type=linux
10214   need_lib_prefix=no
10215   need_version=no
10216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217   shlibpath_var=LD_LIBRARY_PATH
10218   shlibpath_overrides_runpath=no
10219   hardcode_into_libs=yes
10220   ;;
10221
10222 uts4*)
10223   version_type=linux
10224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10225   soname_spec='${libname}${release}${shared_ext}$major'
10226   shlibpath_var=LD_LIBRARY_PATH
10227   ;;
10228
10229 *)
10230   dynamic_linker=no
10231   ;;
10232 esac
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10234 $as_echo "$dynamic_linker" >&6; }
10235 test "$dynamic_linker" = no && can_build_shared=no
10236
10237 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10238 if test "$GCC" = yes; then
10239   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10240 fi
10241
10242 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10243   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10244 fi
10245 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10246   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10247 fi
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10336 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10337 hardcode_action=
10338 if test -n "$hardcode_libdir_flag_spec" ||
10339    test -n "$runpath_var" ||
10340    test "X$hardcode_automatic" = "Xyes" ; then
10341
10342   # We can hardcode non-existent directories.
10343   if test "$hardcode_direct" != no &&
10344      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10345      # have to relink, otherwise we might link with an installed library
10346      # when we should be linking with a yet-to-be-installed one
10347      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10348      test "$hardcode_minus_L" != no; then
10349     # Linking always hardcodes the temporary library directory.
10350     hardcode_action=relink
10351   else
10352     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10353     hardcode_action=immediate
10354   fi
10355 else
10356   # We cannot hardcode anything, or else we can only hardcode existing
10357   # directories.
10358   hardcode_action=unsupported
10359 fi
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10361 $as_echo "$hardcode_action" >&6; }
10362
10363 if test "$hardcode_action" = relink ||
10364    test "$inherit_rpath" = yes; then
10365   # Fast installation is not supported
10366   enable_fast_install=no
10367 elif test "$shlibpath_overrides_runpath" = yes ||
10368      test "$enable_shared" = no; then
10369   # Fast installation is not necessary
10370   enable_fast_install=needless
10371 fi
10372
10373
10374
10375
10376
10377
10378   if test "x$enable_dlopen" != xyes; then
10379   enable_dlopen=unknown
10380   enable_dlopen_self=unknown
10381   enable_dlopen_self_static=unknown
10382 else
10383   lt_cv_dlopen=no
10384   lt_cv_dlopen_libs=
10385
10386   case $host_os in
10387   beos*)
10388     lt_cv_dlopen="load_add_on"
10389     lt_cv_dlopen_libs=
10390     lt_cv_dlopen_self=yes
10391     ;;
10392
10393   mingw* | pw32* | cegcc*)
10394     lt_cv_dlopen="LoadLibrary"
10395     lt_cv_dlopen_libs=
10396     ;;
10397
10398   cygwin*)
10399     lt_cv_dlopen="dlopen"
10400     lt_cv_dlopen_libs=
10401     ;;
10402
10403   darwin*)
10404   # if libdl is installed we need to link against it
10405     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10406 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10407 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10408   $as_echo_n "(cached) " >&6
10409 else
10410   ac_check_lib_save_LIBS=$LIBS
10411 LIBS="-ldl  $LIBS"
10412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10413 /* end confdefs.h.  */
10414
10415 /* Override any GCC internal prototype to avoid an error.
10416    Use char because int might match the return type of a GCC
10417    builtin and then its argument prototype would still apply.  */
10418 #ifdef __cplusplus
10419 extern "C"
10420 #endif
10421 char dlopen ();
10422 int
10423 main ()
10424 {
10425 return dlopen ();
10426   ;
10427   return 0;
10428 }
10429 _ACEOF
10430 if ac_fn_c_try_link "$LINENO"; then :
10431   ac_cv_lib_dl_dlopen=yes
10432 else
10433   ac_cv_lib_dl_dlopen=no
10434 fi
10435 rm -f core conftest.err conftest.$ac_objext \
10436     conftest$ac_exeext conftest.$ac_ext
10437 LIBS=$ac_check_lib_save_LIBS
10438 fi
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10440 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10441 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10442   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10443 else
10444
10445     lt_cv_dlopen="dyld"
10446     lt_cv_dlopen_libs=
10447     lt_cv_dlopen_self=yes
10448
10449 fi
10450
10451     ;;
10452
10453   *)
10454     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10455 if test "x$ac_cv_func_shl_load" = x""yes; then :
10456   lt_cv_dlopen="shl_load"
10457 else
10458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10459 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10460 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10461   $as_echo_n "(cached) " >&6
10462 else
10463   ac_check_lib_save_LIBS=$LIBS
10464 LIBS="-ldld  $LIBS"
10465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10466 /* end confdefs.h.  */
10467
10468 /* Override any GCC internal prototype to avoid an error.
10469    Use char because int might match the return type of a GCC
10470    builtin and then its argument prototype would still apply.  */
10471 #ifdef __cplusplus
10472 extern "C"
10473 #endif
10474 char shl_load ();
10475 int
10476 main ()
10477 {
10478 return shl_load ();
10479   ;
10480   return 0;
10481 }
10482 _ACEOF
10483 if ac_fn_c_try_link "$LINENO"; then :
10484   ac_cv_lib_dld_shl_load=yes
10485 else
10486   ac_cv_lib_dld_shl_load=no
10487 fi
10488 rm -f core conftest.err conftest.$ac_objext \
10489     conftest$ac_exeext conftest.$ac_ext
10490 LIBS=$ac_check_lib_save_LIBS
10491 fi
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10493 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10494 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10495   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10496 else
10497   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10498 if test "x$ac_cv_func_dlopen" = x""yes; then :
10499   lt_cv_dlopen="dlopen"
10500 else
10501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10502 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10503 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10504   $as_echo_n "(cached) " >&6
10505 else
10506   ac_check_lib_save_LIBS=$LIBS
10507 LIBS="-ldl  $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 dlopen ();
10518 int
10519 main ()
10520 {
10521 return dlopen ();
10522   ;
10523   return 0;
10524 }
10525 _ACEOF
10526 if ac_fn_c_try_link "$LINENO"; then :
10527   ac_cv_lib_dl_dlopen=yes
10528 else
10529   ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
10536 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10537 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10538   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10539 else
10540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10541 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10542 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10543   $as_echo_n "(cached) " >&6
10544 else
10545   ac_check_lib_save_LIBS=$LIBS
10546 LIBS="-lsvld  $LIBS"
10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h.  */
10549
10550 /* Override any GCC internal prototype to avoid an error.
10551    Use char because int might match the return type of a GCC
10552    builtin and then its argument prototype would still apply.  */
10553 #ifdef __cplusplus
10554 extern "C"
10555 #endif
10556 char dlopen ();
10557 int
10558 main ()
10559 {
10560 return dlopen ();
10561   ;
10562   return 0;
10563 }
10564 _ACEOF
10565 if ac_fn_c_try_link "$LINENO"; then :
10566   ac_cv_lib_svld_dlopen=yes
10567 else
10568   ac_cv_lib_svld_dlopen=no
10569 fi
10570 rm -f core conftest.err conftest.$ac_objext \
10571     conftest$ac_exeext conftest.$ac_ext
10572 LIBS=$ac_check_lib_save_LIBS
10573 fi
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10575 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10576 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10577   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10578 else
10579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10580 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10581 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10582   $as_echo_n "(cached) " >&6
10583 else
10584   ac_check_lib_save_LIBS=$LIBS
10585 LIBS="-ldld  $LIBS"
10586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587 /* end confdefs.h.  */
10588
10589 /* Override any GCC internal prototype to avoid an error.
10590    Use char because int might match the return type of a GCC
10591    builtin and then its argument prototype would still apply.  */
10592 #ifdef __cplusplus
10593 extern "C"
10594 #endif
10595 char dld_link ();
10596 int
10597 main ()
10598 {
10599 return dld_link ();
10600   ;
10601   return 0;
10602 }
10603 _ACEOF
10604 if ac_fn_c_try_link "$LINENO"; then :
10605   ac_cv_lib_dld_dld_link=yes
10606 else
10607   ac_cv_lib_dld_dld_link=no
10608 fi
10609 rm -f core conftest.err conftest.$ac_objext \
10610     conftest$ac_exeext conftest.$ac_ext
10611 LIBS=$ac_check_lib_save_LIBS
10612 fi
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10614 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10615 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10616   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10617 fi
10618
10619
10620 fi
10621
10622
10623 fi
10624
10625
10626 fi
10627
10628
10629 fi
10630
10631
10632 fi
10633
10634     ;;
10635   esac
10636
10637   if test "x$lt_cv_dlopen" != xno; then
10638     enable_dlopen=yes
10639   else
10640     enable_dlopen=no
10641   fi
10642
10643   case $lt_cv_dlopen in
10644   dlopen)
10645     save_CPPFLAGS="$CPPFLAGS"
10646     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10647
10648     save_LDFLAGS="$LDFLAGS"
10649     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10650
10651     save_LIBS="$LIBS"
10652     LIBS="$lt_cv_dlopen_libs $LIBS"
10653
10654     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10655 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10656 if test "${lt_cv_dlopen_self+set}" = set; then :
10657   $as_echo_n "(cached) " >&6
10658 else
10659           if test "$cross_compiling" = yes; then :
10660   lt_cv_dlopen_self=cross
10661 else
10662   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10663   lt_status=$lt_dlunknown
10664   cat > conftest.$ac_ext <<_LT_EOF
10665 #line 10665 "configure"
10666 #include "confdefs.h"
10667
10668 #if HAVE_DLFCN_H
10669 #include <dlfcn.h>
10670 #endif
10671
10672 #include <stdio.h>
10673
10674 #ifdef RTLD_GLOBAL
10675 #  define LT_DLGLOBAL           RTLD_GLOBAL
10676 #else
10677 #  ifdef DL_GLOBAL
10678 #    define LT_DLGLOBAL         DL_GLOBAL
10679 #  else
10680 #    define LT_DLGLOBAL         0
10681 #  endif
10682 #endif
10683
10684 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10685    find out it does not work in some platform. */
10686 #ifndef LT_DLLAZY_OR_NOW
10687 #  ifdef RTLD_LAZY
10688 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10689 #  else
10690 #    ifdef DL_LAZY
10691 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10692 #    else
10693 #      ifdef RTLD_NOW
10694 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10695 #      else
10696 #        ifdef DL_NOW
10697 #          define LT_DLLAZY_OR_NOW      DL_NOW
10698 #        else
10699 #          define LT_DLLAZY_OR_NOW      0
10700 #        endif
10701 #      endif
10702 #    endif
10703 #  endif
10704 #endif
10705
10706 void fnord() { int i=42;}
10707 int main ()
10708 {
10709   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10710   int status = $lt_dlunknown;
10711
10712   if (self)
10713     {
10714       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10715       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10716       /* dlclose (self); */
10717     }
10718   else
10719     puts (dlerror ());
10720
10721   return status;
10722 }
10723 _LT_EOF
10724   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10725   (eval $ac_link) 2>&5
10726   ac_status=$?
10727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10728   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10729     (./conftest; exit; ) >&5 2>/dev/null
10730     lt_status=$?
10731     case x$lt_status in
10732       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10733       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10734       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10735     esac
10736   else :
10737     # compilation failed
10738     lt_cv_dlopen_self=no
10739   fi
10740 fi
10741 rm -fr conftest*
10742
10743
10744 fi
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10746 $as_echo "$lt_cv_dlopen_self" >&6; }
10747
10748     if test "x$lt_cv_dlopen_self" = xyes; then
10749       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10750       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10751 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10752 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10753   $as_echo_n "(cached) " >&6
10754 else
10755           if test "$cross_compiling" = yes; then :
10756   lt_cv_dlopen_self_static=cross
10757 else
10758   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10759   lt_status=$lt_dlunknown
10760   cat > conftest.$ac_ext <<_LT_EOF
10761 #line 10761 "configure"
10762 #include "confdefs.h"
10763
10764 #if HAVE_DLFCN_H
10765 #include <dlfcn.h>
10766 #endif
10767
10768 #include <stdio.h>
10769
10770 #ifdef RTLD_GLOBAL
10771 #  define LT_DLGLOBAL           RTLD_GLOBAL
10772 #else
10773 #  ifdef DL_GLOBAL
10774 #    define LT_DLGLOBAL         DL_GLOBAL
10775 #  else
10776 #    define LT_DLGLOBAL         0
10777 #  endif
10778 #endif
10779
10780 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10781    find out it does not work in some platform. */
10782 #ifndef LT_DLLAZY_OR_NOW
10783 #  ifdef RTLD_LAZY
10784 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10785 #  else
10786 #    ifdef DL_LAZY
10787 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10788 #    else
10789 #      ifdef RTLD_NOW
10790 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10791 #      else
10792 #        ifdef DL_NOW
10793 #          define LT_DLLAZY_OR_NOW      DL_NOW
10794 #        else
10795 #          define LT_DLLAZY_OR_NOW      0
10796 #        endif
10797 #      endif
10798 #    endif
10799 #  endif
10800 #endif
10801
10802 void fnord() { int i=42;}
10803 int main ()
10804 {
10805   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10806   int status = $lt_dlunknown;
10807
10808   if (self)
10809     {
10810       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10811       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10812       /* dlclose (self); */
10813     }
10814   else
10815     puts (dlerror ());
10816
10817   return status;
10818 }
10819 _LT_EOF
10820   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10821   (eval $ac_link) 2>&5
10822   ac_status=$?
10823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10824   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10825     (./conftest; exit; ) >&5 2>/dev/null
10826     lt_status=$?
10827     case x$lt_status in
10828       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10829       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10830       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10831     esac
10832   else :
10833     # compilation failed
10834     lt_cv_dlopen_self_static=no
10835   fi
10836 fi
10837 rm -fr conftest*
10838
10839
10840 fi
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10842 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10843     fi
10844
10845     CPPFLAGS="$save_CPPFLAGS"
10846     LDFLAGS="$save_LDFLAGS"
10847     LIBS="$save_LIBS"
10848     ;;
10849   esac
10850
10851   case $lt_cv_dlopen_self in
10852   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10853   *) enable_dlopen_self=unknown ;;
10854   esac
10855
10856   case $lt_cv_dlopen_self_static in
10857   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10858   *) enable_dlopen_self_static=unknown ;;
10859   esac
10860 fi
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878 striplib=
10879 old_striplib=
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10881 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10882 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10883   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10884   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10886 $as_echo "yes" >&6; }
10887 else
10888 # FIXME - insert some real tests, host_os isn't really good enough
10889   case $host_os in
10890   darwin*)
10891     if test -n "$STRIP" ; then
10892       striplib="$STRIP -x"
10893       old_striplib="$STRIP -S"
10894       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10895 $as_echo "yes" >&6; }
10896     else
10897       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898 $as_echo "no" >&6; }
10899     fi
10900     ;;
10901   *)
10902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903 $as_echo "no" >&6; }
10904     ;;
10905   esac
10906 fi
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919   # Report which library types will actually be built
10920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10921 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10923 $as_echo "$can_build_shared" >&6; }
10924
10925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10926 $as_echo_n "checking whether to build shared libraries... " >&6; }
10927   test "$can_build_shared" = "no" && enable_shared=no
10928
10929   # On AIX, shared libraries and static libraries use the same namespace, and
10930   # are all built from PIC.
10931   case $host_os in
10932   aix3*)
10933     test "$enable_shared" = yes && enable_static=no
10934     if test -n "$RANLIB"; then
10935       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10936       postinstall_cmds='$RANLIB $lib'
10937     fi
10938     ;;
10939
10940   aix[4-9]*)
10941     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10942       test "$enable_shared" = yes && enable_static=no
10943     fi
10944     ;;
10945   esac
10946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10947 $as_echo "$enable_shared" >&6; }
10948
10949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10950 $as_echo_n "checking whether to build static libraries... " >&6; }
10951   # Make sure either enable_shared or enable_static is yes.
10952   test "$enable_shared" = yes || enable_static=yes
10953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10954 $as_echo "$enable_static" >&6; }
10955
10956
10957
10958
10959 fi
10960 ac_ext=c
10961 ac_cpp='$CPP $CPPFLAGS'
10962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10965
10966 CC="$lt_save_CC"
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980         ac_config_commands="$ac_config_commands libtool"
10981
10982
10983
10984
10985 # Only expand once:
10986
10987
10988
10989 # Honor aclocal flags
10990 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
10991
10992 JSON_MAJOR_VERSION=0
10993 JSON_MINOR_VERSION=10
10994 JSON_MICRO_VERSION=4
10995 JSON_VERSION=0.10.4
10996 JSON_RELEASE_STATUS=release
10997
10998
10999
11000
11001
11002
11003 JSON_LT_CURRENT=1001
11004 JSON_LT_REVISION=3
11005 JSON_LT_AGE=1001
11006 JSON_LT_VERSION="$JSON_LT_CURRENT:$JSON_LT_REVISION:$JSON_LT_AGE"
11007 JSON_LT_LDFLAGS="-version-info $JSON_LT_VERSION"
11008
11009
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11011 $as_echo_n "checking for ANSI C header files... " >&6; }
11012 if test "${ac_cv_header_stdc+set}" = set; then :
11013   $as_echo_n "(cached) " >&6
11014 else
11015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016 /* end confdefs.h.  */
11017 #include <stdlib.h>
11018 #include <stdarg.h>
11019 #include <string.h>
11020 #include <float.h>
11021
11022 int
11023 main ()
11024 {
11025
11026   ;
11027   return 0;
11028 }
11029 _ACEOF
11030 if ac_fn_c_try_compile "$LINENO"; then :
11031   ac_cv_header_stdc=yes
11032 else
11033   ac_cv_header_stdc=no
11034 fi
11035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11036
11037 if test $ac_cv_header_stdc = yes; then
11038   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h.  */
11041 #include <string.h>
11042
11043 _ACEOF
11044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11045   $EGREP "memchr" >/dev/null 2>&1; then :
11046
11047 else
11048   ac_cv_header_stdc=no
11049 fi
11050 rm -f conftest*
11051
11052 fi
11053
11054 if test $ac_cv_header_stdc = yes; then
11055   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h.  */
11058 #include <stdlib.h>
11059
11060 _ACEOF
11061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11062   $EGREP "free" >/dev/null 2>&1; then :
11063
11064 else
11065   ac_cv_header_stdc=no
11066 fi
11067 rm -f conftest*
11068
11069 fi
11070
11071 if test $ac_cv_header_stdc = yes; then
11072   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11073   if test "$cross_compiling" = yes; then :
11074   :
11075 else
11076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077 /* end confdefs.h.  */
11078 #include <ctype.h>
11079 #include <stdlib.h>
11080 #if ((' ' & 0x0FF) == 0x020)
11081 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11082 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11083 #else
11084 # define ISLOWER(c) \
11085                    (('a' <= (c) && (c) <= 'i') \
11086                      || ('j' <= (c) && (c) <= 'r') \
11087                      || ('s' <= (c) && (c) <= 'z'))
11088 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11089 #endif
11090
11091 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11092 int
11093 main ()
11094 {
11095   int i;
11096   for (i = 0; i < 256; i++)
11097     if (XOR (islower (i), ISLOWER (i))
11098         || toupper (i) != TOUPPER (i))
11099       return 2;
11100   return 0;
11101 }
11102 _ACEOF
11103 if ac_fn_c_try_run "$LINENO"; then :
11104
11105 else
11106   ac_cv_header_stdc=no
11107 fi
11108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11109   conftest.$ac_objext conftest.beam conftest.$ac_ext
11110 fi
11111
11112 fi
11113 fi
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11115 $as_echo "$ac_cv_header_stdc" >&6; }
11116 if test $ac_cv_header_stdc = yes; then
11117
11118 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11119
11120 fi
11121
11122 for ac_header in unistd.h
11123 do :
11124   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11125 if test "x$ac_cv_header_unistd_h" = x""yes; then :
11126   cat >>confdefs.h <<_ACEOF
11127 #define HAVE_UNISTD_H 1
11128 _ACEOF
11129
11130 fi
11131
11132 done
11133
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11135 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11136 if test "${ac_cv_c_const+set}" = set; then :
11137   $as_echo_n "(cached) " >&6
11138 else
11139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140 /* end confdefs.h.  */
11141
11142 int
11143 main ()
11144 {
11145 /* FIXME: Include the comments suggested by Paul. */
11146 #ifndef __cplusplus
11147   /* Ultrix mips cc rejects this.  */
11148   typedef int charset[2];
11149   const charset cs;
11150   /* SunOS 4.1.1 cc rejects this.  */
11151   char const *const *pcpcc;
11152   char **ppc;
11153   /* NEC SVR4.0.2 mips cc rejects this.  */
11154   struct point {int x, y;};
11155   static struct point const zero = {0,0};
11156   /* AIX XL C 1.02.0.0 rejects this.
11157      It does not let you subtract one const X* pointer from another in
11158      an arm of an if-expression whose if-part is not a constant
11159      expression */
11160   const char *g = "string";
11161   pcpcc = &g + (g ? g-g : 0);
11162   /* HPUX 7.0 cc rejects these. */
11163   ++pcpcc;
11164   ppc = (char**) pcpcc;
11165   pcpcc = (char const *const *) ppc;
11166   { /* SCO 3.2v4 cc rejects this.  */
11167     char *t;
11168     char const *s = 0 ? (char *) 0 : (char const *) 0;
11169
11170     *t++ = 0;
11171     if (s) return 0;
11172   }
11173   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11174     int x[] = {25, 17};
11175     const int *foo = &x[0];
11176     ++foo;
11177   }
11178   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11179     typedef const int *iptr;
11180     iptr p = 0;
11181     ++p;
11182   }
11183   { /* AIX XL C 1.02.0.0 rejects this saying
11184        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11185     struct s { int j; const int *ap[3]; };
11186     struct s *b; b->j = 5;
11187   }
11188   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11189     const int foo = 10;
11190     if (!foo) return 0;
11191   }
11192   return !cs[0] && !zero.x;
11193 #endif
11194
11195   ;
11196   return 0;
11197 }
11198 _ACEOF
11199 if ac_fn_c_try_compile "$LINENO"; then :
11200   ac_cv_c_const=yes
11201 else
11202   ac_cv_c_const=no
11203 fi
11204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11205 fi
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11207 $as_echo "$ac_cv_c_const" >&6; }
11208 if test $ac_cv_c_const = no; then
11209
11210 $as_echo "#define const /**/" >>confdefs.h
11211
11212 fi
11213
11214 for ac_header in stdlib.h
11215 do :
11216   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11217 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
11218   cat >>confdefs.h <<_ACEOF
11219 #define HAVE_STDLIB_H 1
11220 _ACEOF
11221
11222 fi
11223
11224 done
11225
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
11227 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
11228 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
11229   $as_echo_n "(cached) " >&6
11230 else
11231   if test "$cross_compiling" = yes; then :
11232   ac_cv_func_malloc_0_nonnull=no
11233 else
11234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11235 /* end confdefs.h.  */
11236 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11237 # include <stdlib.h>
11238 #else
11239 char *malloc ();
11240 #endif
11241
11242 int
11243 main ()
11244 {
11245 return ! malloc (0);
11246   ;
11247   return 0;
11248 }
11249 _ACEOF
11250 if ac_fn_c_try_run "$LINENO"; then :
11251   ac_cv_func_malloc_0_nonnull=yes
11252 else
11253   ac_cv_func_malloc_0_nonnull=no
11254 fi
11255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11256   conftest.$ac_objext conftest.beam conftest.$ac_ext
11257 fi
11258
11259 fi
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
11261 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
11262 if test $ac_cv_func_malloc_0_nonnull = yes; then :
11263
11264 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
11265
11266 else
11267   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
11268
11269    case " $LIBOBJS " in
11270   *" malloc.$ac_objext "* ) ;;
11271   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
11272  ;;
11273 esac
11274
11275
11276 $as_echo "#define malloc rpl_malloc" >>confdefs.h
11277
11278 fi
11279
11280
11281
11282
11283
11284   for ac_header in $ac_header_list
11285 do :
11286   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11287 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11288 "
11289 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11290   cat >>confdefs.h <<_ACEOF
11291 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11292 _ACEOF
11293
11294 fi
11295
11296 done
11297
11298
11299
11300
11301
11302
11303
11304
11305 for ac_func in getpagesize
11306 do :
11307   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11308 if test "x$ac_cv_func_getpagesize" = x""yes; then :
11309   cat >>confdefs.h <<_ACEOF
11310 #define HAVE_GETPAGESIZE 1
11311 _ACEOF
11312
11313 fi
11314 done
11315
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11317 $as_echo_n "checking for working mmap... " >&6; }
11318 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11319   $as_echo_n "(cached) " >&6
11320 else
11321   if test "$cross_compiling" = yes; then :
11322   ac_cv_func_mmap_fixed_mapped=no
11323 else
11324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11325 /* end confdefs.h.  */
11326 $ac_includes_default
11327 /* malloc might have been renamed as rpl_malloc. */
11328 #undef malloc
11329
11330 /* Thanks to Mike Haertel and Jim Avera for this test.
11331    Here is a matrix of mmap possibilities:
11332         mmap private not fixed
11333         mmap private fixed at somewhere currently unmapped
11334         mmap private fixed at somewhere already mapped
11335         mmap shared not fixed
11336         mmap shared fixed at somewhere currently unmapped
11337         mmap shared fixed at somewhere already mapped
11338    For private mappings, we should verify that changes cannot be read()
11339    back from the file, nor mmap's back from the file at a different
11340    address.  (There have been systems where private was not correctly
11341    implemented like the infamous i386 svr4.0, and systems where the
11342    VM page cache was not coherent with the file system buffer cache
11343    like early versions of FreeBSD and possibly contemporary NetBSD.)
11344    For shared mappings, we should conversely verify that changes get
11345    propagated back to all the places they're supposed to be.
11346
11347    Grep wants private fixed already mapped.
11348    The main things grep needs to know about mmap are:
11349    * does it exist and is it safe to write into the mmap'd area
11350    * how to use it (BSD variants)  */
11351
11352 #include <fcntl.h>
11353 #include <sys/mman.h>
11354
11355 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11356 char *malloc ();
11357 #endif
11358
11359 /* This mess was copied from the GNU getpagesize.h.  */
11360 #ifndef HAVE_GETPAGESIZE
11361 # ifdef _SC_PAGESIZE
11362 #  define getpagesize() sysconf(_SC_PAGESIZE)
11363 # else /* no _SC_PAGESIZE */
11364 #  ifdef HAVE_SYS_PARAM_H
11365 #   include <sys/param.h>
11366 #   ifdef EXEC_PAGESIZE
11367 #    define getpagesize() EXEC_PAGESIZE
11368 #   else /* no EXEC_PAGESIZE */
11369 #    ifdef NBPG
11370 #     define getpagesize() NBPG * CLSIZE
11371 #     ifndef CLSIZE
11372 #      define CLSIZE 1
11373 #     endif /* no CLSIZE */
11374 #    else /* no NBPG */
11375 #     ifdef NBPC
11376 #      define getpagesize() NBPC
11377 #     else /* no NBPC */
11378 #      ifdef PAGESIZE
11379 #       define getpagesize() PAGESIZE
11380 #      endif /* PAGESIZE */
11381 #     endif /* no NBPC */
11382 #    endif /* no NBPG */
11383 #   endif /* no EXEC_PAGESIZE */
11384 #  else /* no HAVE_SYS_PARAM_H */
11385 #   define getpagesize() 8192   /* punt totally */
11386 #  endif /* no HAVE_SYS_PARAM_H */
11387 # endif /* no _SC_PAGESIZE */
11388
11389 #endif /* no HAVE_GETPAGESIZE */
11390
11391 int
11392 main ()
11393 {
11394   char *data, *data2, *data3;
11395   const char *cdata2;
11396   int i, pagesize;
11397   int fd, fd2;
11398
11399   pagesize = getpagesize ();
11400
11401   /* First, make a file with some known garbage in it. */
11402   data = (char *) malloc (pagesize);
11403   if (!data)
11404     return 1;
11405   for (i = 0; i < pagesize; ++i)
11406     *(data + i) = rand ();
11407   umask (0);
11408   fd = creat ("conftest.mmap", 0600);
11409   if (fd < 0)
11410     return 2;
11411   if (write (fd, data, pagesize) != pagesize)
11412     return 3;
11413   close (fd);
11414
11415   /* Next, check that the tail of a page is zero-filled.  File must have
11416      non-zero length, otherwise we risk SIGBUS for entire page.  */
11417   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
11418   if (fd2 < 0)
11419     return 4;
11420   cdata2 = "";
11421   if (write (fd2, cdata2, 1) != 1)
11422     return 5;
11423   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
11424   if (data2 == MAP_FAILED)
11425     return 6;
11426   for (i = 0; i < pagesize; ++i)
11427     if (*(data2 + i))
11428       return 7;
11429   close (fd2);
11430   if (munmap (data2, pagesize))
11431     return 8;
11432
11433   /* Next, try to mmap the file at a fixed address which already has
11434      something else allocated at it.  If we can, also make sure that
11435      we see the same garbage.  */
11436   fd = open ("conftest.mmap", O_RDWR);
11437   if (fd < 0)
11438     return 9;
11439   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11440                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
11441     return 10;
11442   for (i = 0; i < pagesize; ++i)
11443     if (*(data + i) != *(data2 + i))
11444       return 11;
11445
11446   /* Finally, make sure that changes to the mapped area do not
11447      percolate back to the file as seen by read().  (This is a bug on
11448      some variants of i386 svr4.0.)  */
11449   for (i = 0; i < pagesize; ++i)
11450     *(data2 + i) = *(data2 + i) + 1;
11451   data3 = (char *) malloc (pagesize);
11452   if (!data3)
11453     return 12;
11454   if (read (fd, data3, pagesize) != pagesize)
11455     return 13;
11456   for (i = 0; i < pagesize; ++i)
11457     if (*(data + i) != *(data3 + i))
11458       return 14;
11459   close (fd);
11460   return 0;
11461 }
11462 _ACEOF
11463 if ac_fn_c_try_run "$LINENO"; then :
11464   ac_cv_func_mmap_fixed_mapped=yes
11465 else
11466   ac_cv_func_mmap_fixed_mapped=no
11467 fi
11468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11469   conftest.$ac_objext conftest.beam conftest.$ac_ext
11470 fi
11471
11472 fi
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11474 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11475 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11476
11477 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11478
11479 fi
11480 rm -f conftest.mmap conftest.txt
11481
11482
11483 GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`"
11484
11485
11486
11487 pkg_failed=no
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
11489 $as_echo_n "checking for JSON... " >&6; }
11490
11491 if test -n "$JSON_CFLAGS"; then
11492     pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
11493  elif test -n "$PKG_CONFIG"; then
11494     if test -n "$PKG_CONFIG" && \
11495     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 >= 2.15\""; } >&5
11496   ($PKG_CONFIG --exists --print-errors "gobject-2.0 >= 2.15") 2>&5
11497   ac_status=$?
11498   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11499   test $ac_status = 0; }; then
11500   pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.15" 2>/dev/null`
11501 else
11502   pkg_failed=yes
11503 fi
11504  else
11505     pkg_failed=untried
11506 fi
11507 if test -n "$JSON_LIBS"; then
11508     pkg_cv_JSON_LIBS="$JSON_LIBS"
11509  elif test -n "$PKG_CONFIG"; then
11510     if test -n "$PKG_CONFIG" && \
11511     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 >= 2.15\""; } >&5
11512   ($PKG_CONFIG --exists --print-errors "gobject-2.0 >= 2.15") 2>&5
11513   ac_status=$?
11514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11515   test $ac_status = 0; }; then
11516   pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "gobject-2.0 >= 2.15" 2>/dev/null`
11517 else
11518   pkg_failed=yes
11519 fi
11520  else
11521     pkg_failed=untried
11522 fi
11523
11524
11525
11526 if test $pkg_failed = yes; then
11527         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11528 $as_echo "no" >&6; }
11529
11530 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11531         _pkg_short_errors_supported=yes
11532 else
11533         _pkg_short_errors_supported=no
11534 fi
11535         if test $_pkg_short_errors_supported = yes; then
11536                 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gobject-2.0 >= 2.15" 2>&1`
11537         else
11538                 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors "gobject-2.0 >= 2.15" 2>&1`
11539         fi
11540         # Put the nasty error message in config.log where it belongs
11541         echo "$JSON_PKG_ERRORS" >&5
11542
11543         as_fn_error $? "Package requirements (gobject-2.0 >= 2.15) were not met:
11544
11545 $JSON_PKG_ERRORS
11546
11547 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11548 installed software in a non-standard prefix.
11549
11550 Alternatively, you may set the environment variables JSON_CFLAGS
11551 and JSON_LIBS to avoid the need to call pkg-config.
11552 See the pkg-config man page for more details." "$LINENO" 5
11553 elif test $pkg_failed = untried; then
11554         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555 $as_echo "no" >&6; }
11556         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11558 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11559 is in your PATH or set the PKG_CONFIG environment variable to the full
11560 path to pkg-config.
11561
11562 Alternatively, you may set the environment variables JSON_CFLAGS
11563 and JSON_LIBS to avoid the need to call pkg-config.
11564 See the pkg-config man page for more details.
11565
11566 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11567 See \`config.log' for more details" "$LINENO" 5 ; }
11568 else
11569         JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
11570         JSON_LIBS=$pkg_cv_JSON_LIBS
11571         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11572 $as_echo "yes" >&6; }
11573
11574 fi
11575
11576
11577
11578  if test "x$enable_glibtest" = "xyes"; then
11579   ENABLE_GLIB_TEST_TRUE=
11580   ENABLE_GLIB_TEST_FALSE='#'
11581 else
11582   ENABLE_GLIB_TEST_TRUE='#'
11583   ENABLE_GLIB_TEST_FALSE=
11584 fi
11585
11586
11587
11588
11589
11590 # Check whether --enable-debug was given.
11591 if test "${enable_debug+set}" = set; then :
11592   enableval=$enable_debug;
11593 else
11594   enable_debug=minimum
11595 fi
11596
11597
11598 case $enable_debug in #(
11599   yes) :
11600
11601           test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
11602           JSON_DEBUG_CFLAGS="-DJSON_ENABLE_DEBUG"
11603          ;; #(
11604   minimum) :
11605
11606           JSON_DEBUG_CFLAGS="-DJSON_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS"
11607          ;; #(
11608   no) :
11609
11610           JSON_DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS"
11611          ;; #(
11612   *) :
11613     as_fn_error $? "Unknown argument to --enable-debug" "$LINENO" 5
11614  ;;
11615 esac
11616
11617
11618
11619
11620 # use strict compiler flags only on development releases
11621
11622 # Check whether --enable-maintainer-flags was given.
11623 if test "${enable_maintainer_flags+set}" = set; then :
11624   enableval=$enable_maintainer_flags;
11625 else
11626   enable_maintainer_flags=no
11627 fi
11628
11629
11630 if test "x$enable_maintainer_flags" = "xyes" && test "x$GCC" = "xyes"; then :
11631
11632
11633   list="-Werror -Wall -Wshadow -Wcast-align
11634                             -Wno-uninitialized -Wformat-security
11635                             -Wno-strict-aliasing -Winit-self
11636                             -Wempty-body -Wdeclaration-after-statement
11637                             -Wno-strict-aliasing -Wno-strict-aliasing"
11638   flags_supported=""
11639   flags_unsupported=""
11640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported compiler flags" >&5
11641 $as_echo_n "checking for supported compiler flags... " >&6; }
11642   for each in $list
11643   do
11644     save_CFLAGS="$CFLAGS"
11645     CFLAGS="$CFLAGS $each"
11646     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647 /* end confdefs.h.  */
11648
11649 int
11650 main ()
11651 {
11652
11653   ;
11654   return 0;
11655 }
11656 _ACEOF
11657 if ac_fn_c_try_compile "$LINENO"; then :
11658   flag_ok=yes
11659 else
11660   flag_ok=no
11661 fi
11662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11663     CFLAGS="$save_CFLAGS"
11664
11665     if test "X$flag_ok" = Xyes ; then
11666       flags_supported="$flags_supported $each"
11667     else
11668       flags_unsupported="$flags_unsupported $each"
11669     fi
11670   done
11671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flags_supported" >&5
11672 $as_echo "$flags_supported" >&6; }
11673   if test "X$flags_unsupported" != X ; then
11674     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported compiler flags: $flags_unsupported" >&5
11675 $as_echo "$as_me: WARNING: unsupported compiler flags: $flags_unsupported" >&2;}
11676   fi
11677   MAINTAINER_CFLAGS="$MAINTAINER_CFLAGS $flags_supported"
11678
11679
11680
11681 fi
11682
11683
11684
11685
11686     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
11687 set dummy gtkdoc-check; ac_word=$2
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11689 $as_echo_n "checking for $ac_word... " >&6; }
11690 if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then :
11691   $as_echo_n "(cached) " >&6
11692 else
11693   case $GTKDOC_CHECK in
11694   [\\/]* | ?:[\\/]*)
11695   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
11696   ;;
11697   *)
11698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699 for as_dir in $PATH
11700 do
11701   IFS=$as_save_IFS
11702   test -z "$as_dir" && as_dir=.
11703     for ac_exec_ext in '' $ac_executable_extensions; do
11704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11705     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
11706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11707     break 2
11708   fi
11709 done
11710   done
11711 IFS=$as_save_IFS
11712
11713   ;;
11714 esac
11715 fi
11716 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
11717 if test -n "$GTKDOC_CHECK"; then
11718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
11719 $as_echo "$GTKDOC_CHECK" >&6; }
11720 else
11721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11722 $as_echo "no" >&6; }
11723 fi
11724
11725
11726   for ac_prog in gtkdoc-rebase
11727 do
11728   # Extract the first word of "$ac_prog", so it can be a program name with args.
11729 set dummy $ac_prog; ac_word=$2
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11731 $as_echo_n "checking for $ac_word... " >&6; }
11732 if test "${ac_cv_path_GTKDOC_REBASE+set}" = set; then :
11733   $as_echo_n "(cached) " >&6
11734 else
11735   case $GTKDOC_REBASE in
11736   [\\/]* | ?:[\\/]*)
11737   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
11738   ;;
11739   *)
11740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741 for as_dir in $PATH
11742 do
11743   IFS=$as_save_IFS
11744   test -z "$as_dir" && as_dir=.
11745     for ac_exec_ext in '' $ac_executable_extensions; do
11746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11747     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
11748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11749     break 2
11750   fi
11751 done
11752   done
11753 IFS=$as_save_IFS
11754
11755   ;;
11756 esac
11757 fi
11758 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
11759 if test -n "$GTKDOC_REBASE"; then
11760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
11761 $as_echo "$GTKDOC_REBASE" >&6; }
11762 else
11763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 $as_echo "no" >&6; }
11765 fi
11766
11767
11768   test -n "$GTKDOC_REBASE" && break
11769 done
11770 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
11771
11772   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
11773 set dummy gtkdoc-mkpdf; ac_word=$2
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11775 $as_echo_n "checking for $ac_word... " >&6; }
11776 if test "${ac_cv_path_GTKDOC_MKPDF+set}" = set; then :
11777   $as_echo_n "(cached) " >&6
11778 else
11779   case $GTKDOC_MKPDF in
11780   [\\/]* | ?:[\\/]*)
11781   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
11782   ;;
11783   *)
11784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785 for as_dir in $PATH
11786 do
11787   IFS=$as_save_IFS
11788   test -z "$as_dir" && as_dir=.
11789     for ac_exec_ext in '' $ac_executable_extensions; do
11790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11791     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
11792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11793     break 2
11794   fi
11795 done
11796   done
11797 IFS=$as_save_IFS
11798
11799   ;;
11800 esac
11801 fi
11802 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
11803 if test -n "$GTKDOC_MKPDF"; then
11804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
11805 $as_echo "$GTKDOC_MKPDF" >&6; }
11806 else
11807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11809 fi
11810
11811
11812
11813
11814 # Check whether --with-html-dir was given.
11815 if test "${with_html_dir+set}" = set; then :
11816   withval=$with_html_dir;
11817 else
11818   with_html_dir='${datadir}/gtk-doc/html'
11819 fi
11820
11821   HTML_DIR="$with_html_dir"
11822
11823
11824     # Check whether --enable-gtk-doc was given.
11825 if test "${enable_gtk_doc+set}" = set; then :
11826   enableval=$enable_gtk_doc;
11827 else
11828   enable_gtk_doc=no
11829 fi
11830
11831
11832   if test x$enable_gtk_doc = xyes; then
11833     if test -n "$PKG_CONFIG" && \
11834     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.11\""; } >&5
11835   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.11") 2>&5
11836   ac_status=$?
11837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11838   test $ac_status = 0; }; then
11839   :
11840 else
11841   as_fn_error $? "You need to have gtk-doc >= 1.11 installed to build $PACKAGE_NAME" "$LINENO" 5
11842 fi
11843   fi
11844
11845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
11846 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
11847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
11848 $as_echo "$enable_gtk_doc" >&6; }
11849
11850     # Check whether --enable-gtk-doc-html was given.
11851 if test "${enable_gtk_doc_html+set}" = set; then :
11852   enableval=$enable_gtk_doc_html;
11853 else
11854   enable_gtk_doc_html=yes
11855 fi
11856
11857     # Check whether --enable-gtk-doc-pdf was given.
11858 if test "${enable_gtk_doc_pdf+set}" = set; then :
11859   enableval=$enable_gtk_doc_pdf;
11860 else
11861   enable_gtk_doc_pdf=no
11862 fi
11863
11864
11865   if test -z "$GTKDOC_MKPDF"; then
11866     enable_gtk_doc_pdf=no
11867   fi
11868
11869
11870    if test x$enable_gtk_doc = xyes; then
11871   ENABLE_GTK_DOC_TRUE=
11872   ENABLE_GTK_DOC_FALSE='#'
11873 else
11874   ENABLE_GTK_DOC_TRUE='#'
11875   ENABLE_GTK_DOC_FALSE=
11876 fi
11877
11878    if test x$enable_gtk_doc_html = xyes; then
11879   GTK_DOC_BUILD_HTML_TRUE=
11880   GTK_DOC_BUILD_HTML_FALSE='#'
11881 else
11882   GTK_DOC_BUILD_HTML_TRUE='#'
11883   GTK_DOC_BUILD_HTML_FALSE=
11884 fi
11885
11886    if test x$enable_gtk_doc_pdf = xyes; then
11887   GTK_DOC_BUILD_PDF_TRUE=
11888   GTK_DOC_BUILD_PDF_FALSE='#'
11889 else
11890   GTK_DOC_BUILD_PDF_TRUE='#'
11891   GTK_DOC_BUILD_PDF_FALSE=
11892 fi
11893
11894    if test -n "$LIBTOOL"; then
11895   GTK_DOC_USE_LIBTOOL_TRUE=
11896   GTK_DOC_USE_LIBTOOL_FALSE='#'
11897 else
11898   GTK_DOC_USE_LIBTOOL_TRUE='#'
11899   GTK_DOC_USE_LIBTOOL_FALSE=
11900 fi
11901
11902    if test -n "$GTKDOC_REBASE"; then
11903   GTK_DOC_USE_REBASE_TRUE=
11904   GTK_DOC_USE_REBASE_FALSE='#'
11905 else
11906   GTK_DOC_USE_REBASE_TRUE='#'
11907   GTK_DOC_USE_REBASE_FALSE=
11908 fi
11909
11910
11911
11912
11913
11914
11915                 # Check whether --enable-introspection was given.
11916 if test "${enable_introspection+set}" = set; then :
11917   enableval=$enable_introspection;
11918 else
11919   enable_introspection=auto
11920 fi
11921
11922
11923     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
11924 $as_echo_n "checking for gobject-introspection... " >&6; }
11925
11926         case $enable_introspection in #(
11927   no) :
11928             found_introspection="no (disabled, use --enable-introspection to enable)"
11929      ;; #(
11930       yes) :
11931             if test -n "$PKG_CONFIG" && \
11932     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
11933   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
11934   ac_status=$?
11935   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11936   test $ac_status = 0; }; then
11937   :
11938 else
11939   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
11940 fi
11941         if test -n "$PKG_CONFIG" && \
11942     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
11943   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
11944   ac_status=$?
11945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11946   test $ac_status = 0; }; then
11947   found_introspection=yes
11948 else
11949   as_fn_error $? "You need to have gobject-introspection >= 0.6.4 installed to build json-glib" "$LINENO" 5
11950 fi
11951      ;; #(
11952       auto) :
11953             if test -n "$PKG_CONFIG" && \
11954     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
11955   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
11956   ac_status=$?
11957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11958   test $ac_status = 0; }; then
11959   found_introspection=yes
11960 else
11961   found_introspection=no
11962 fi
11963      ;; #(
11964   *) :
11965                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
11966      ;;
11967 esac
11968     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
11969 $as_echo "$found_introspection" >&6; }
11970
11971     INTROSPECTION_SCANNER=
11972     INTROSPECTION_COMPILER=
11973     INTROSPECTION_GENERATE=
11974     INTROSPECTION_GIRDIR=
11975     INTROSPECTION_TYPELIBDIR=
11976     if test "x$found_introspection" = "xyes"; then
11977        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
11978        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
11979        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
11980        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
11981        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
11982     fi
11983
11984
11985
11986
11987
11988
11989      if test "x$found_introspection" = "xyes"; then
11990   HAVE_INTROSPECTION_TRUE=
11991   HAVE_INTROSPECTION_FALSE='#'
11992 else
11993   HAVE_INTROSPECTION_TRUE='#'
11994   HAVE_INTROSPECTION_FALSE=
11995 fi
11996
11997
11998
11999
12000
12001            # Check whether --enable-silent-rules was given.
12002 if test "${enable_silent_rules+set}" = set; then :
12003   enableval=$enable_silent_rules;
12004 fi
12005
12006 case $enable_silent_rules in
12007 yes) AM_DEFAULT_VERBOSITY=0;;
12008 no)  AM_DEFAULT_VERBOSITY=1;;
12009 *)   AM_DEFAULT_VERBOSITY=0;;
12010 esac
12011 AM_BACKSLASH='\'
12012
12013            use_shave=no
12014
12015
12016  if test "x$use_shave" = "xyes"; then
12017   USE_SHAVE_TRUE=
12018   USE_SHAVE_FALSE='#'
12019 else
12020   USE_SHAVE_TRUE='#'
12021   USE_SHAVE_FALSE=
12022 fi
12023
12024
12025 ac_config_files="$ac_config_files Makefile build/Makefile build/autotools/Makefile json-glib/Makefile json-glib/json-version.h json-glib/tests/Makefile tests/Makefile doc/Makefile doc/reference/Makefile doc/reference/version.xml json-glib.pc"
12026
12027
12028 cat >confcache <<\_ACEOF
12029 # This file is a shell script that caches the results of configure
12030 # tests run on this system so they can be shared between configure
12031 # scripts and configure runs, see configure's option --config-cache.
12032 # It is not useful on other systems.  If it contains results you don't
12033 # want to keep, you may remove or edit it.
12034 #
12035 # config.status only pays attention to the cache file if you give it
12036 # the --recheck option to rerun configure.
12037 #
12038 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12039 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12040 # following values.
12041
12042 _ACEOF
12043
12044 # The following way of writing the cache mishandles newlines in values,
12045 # but we know of no workaround that is simple, portable, and efficient.
12046 # So, we kill variables containing newlines.
12047 # Ultrix sh set writes to stderr and can't be redirected directly,
12048 # and sets the high bit in the cache file unless we assign to the vars.
12049 (
12050   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12051     eval ac_val=\$$ac_var
12052     case $ac_val in #(
12053     *${as_nl}*)
12054       case $ac_var in #(
12055       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12056 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12057       esac
12058       case $ac_var in #(
12059       _ | IFS | as_nl) ;; #(
12060       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12061       *) { eval $ac_var=; unset $ac_var;} ;;
12062       esac ;;
12063     esac
12064   done
12065
12066   (set) 2>&1 |
12067     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12068     *${as_nl}ac_space=\ *)
12069       # `set' does not quote correctly, so add quotes: double-quote
12070       # substitution turns \\\\ into \\, and sed turns \\ into \.
12071       sed -n \
12072         "s/'/'\\\\''/g;
12073           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12074       ;; #(
12075     *)
12076       # `set' quotes correctly as required by POSIX, so do not add quotes.
12077       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12078       ;;
12079     esac |
12080     sort
12081 ) |
12082   sed '
12083      /^ac_cv_env_/b end
12084      t clear
12085      :clear
12086      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12087      t end
12088      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12089      :end' >>confcache
12090 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12091   if test -w "$cache_file"; then
12092     test "x$cache_file" != "x/dev/null" &&
12093       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12094 $as_echo "$as_me: updating cache $cache_file" >&6;}
12095     cat confcache >$cache_file
12096   else
12097     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12098 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12099   fi
12100 fi
12101 rm -f confcache
12102
12103 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12104 # Let make expand exec_prefix.
12105 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12106
12107 DEFS=-DHAVE_CONFIG_H
12108
12109 ac_libobjs=
12110 ac_ltlibobjs=
12111 U=
12112 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12113   # 1. Remove the extension, and $U if already installed.
12114   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12115   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12116   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12117   #    will be set to the directory where LIBOBJS objects are built.
12118   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12119   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12120 done
12121 LIBOBJS=$ac_libobjs
12122
12123 LTLIBOBJS=$ac_ltlibobjs
12124
12125
12126  if test -n "$EXEEXT"; then
12127   am__EXEEXT_TRUE=
12128   am__EXEEXT_FALSE='#'
12129 else
12130   am__EXEEXT_TRUE='#'
12131   am__EXEEXT_FALSE=
12132 fi
12133
12134 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12135   as_fn_error $? "conditional \"AMDEP\" was never defined.
12136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12137 fi
12138 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12139   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12141 fi
12142 if test -z "${ENABLE_GLIB_TEST_TRUE}" && test -z "${ENABLE_GLIB_TEST_FALSE}"; then
12143   as_fn_error $? "conditional \"ENABLE_GLIB_TEST\" was never defined.
12144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12145 fi
12146 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
12147   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
12148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12149 fi
12150 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
12151   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
12152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12153 fi
12154 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
12155   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
12156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12157 fi
12158 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
12159   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
12160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12161 fi
12162 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
12163   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
12164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12165 fi
12166 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
12167   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
12168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12169 fi
12170 if test -z "${USE_SHAVE_TRUE}" && test -z "${USE_SHAVE_FALSE}"; then
12171   as_fn_error $? "conditional \"USE_SHAVE\" was never defined.
12172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12173 fi
12174
12175 : ${CONFIG_STATUS=./config.status}
12176 ac_write_fail=0
12177 ac_clean_files_save=$ac_clean_files
12178 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12180 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12181 as_write_fail=0
12182 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12183 #! $SHELL
12184 # Generated by $as_me.
12185 # Run this file to recreate the current configuration.
12186 # Compiler output produced by configure, useful for debugging
12187 # configure, is in config.log if it exists.
12188
12189 debug=false
12190 ac_cs_recheck=false
12191 ac_cs_silent=false
12192
12193 SHELL=\${CONFIG_SHELL-$SHELL}
12194 export SHELL
12195 _ASEOF
12196 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12197 ## -------------------- ##
12198 ## M4sh Initialization. ##
12199 ## -------------------- ##
12200
12201 # Be more Bourne compatible
12202 DUALCASE=1; export DUALCASE # for MKS sh
12203 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12204   emulate sh
12205   NULLCMD=:
12206   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12207   # is contrary to our usage.  Disable this feature.
12208   alias -g '${1+"$@"}'='"$@"'
12209   setopt NO_GLOB_SUBST
12210 else
12211   case `(set -o) 2>/dev/null` in #(
12212   *posix*) :
12213     set -o posix ;; #(
12214   *) :
12215      ;;
12216 esac
12217 fi
12218
12219
12220 as_nl='
12221 '
12222 export as_nl
12223 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12224 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12225 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12226 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12227 # Prefer a ksh shell builtin over an external printf program on Solaris,
12228 # but without wasting forks for bash or zsh.
12229 if test -z "$BASH_VERSION$ZSH_VERSION" \
12230     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12231   as_echo='print -r --'
12232   as_echo_n='print -rn --'
12233 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12234   as_echo='printf %s\n'
12235   as_echo_n='printf %s'
12236 else
12237   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12238     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12239     as_echo_n='/usr/ucb/echo -n'
12240   else
12241     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12242     as_echo_n_body='eval
12243       arg=$1;
12244       case $arg in #(
12245       *"$as_nl"*)
12246         expr "X$arg" : "X\\(.*\\)$as_nl";
12247         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12248       esac;
12249       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12250     '
12251     export as_echo_n_body
12252     as_echo_n='sh -c $as_echo_n_body as_echo'
12253   fi
12254   export as_echo_body
12255   as_echo='sh -c $as_echo_body as_echo'
12256 fi
12257
12258 # The user is always right.
12259 if test "${PATH_SEPARATOR+set}" != set; then
12260   PATH_SEPARATOR=:
12261   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12262     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12263       PATH_SEPARATOR=';'
12264   }
12265 fi
12266
12267
12268 # IFS
12269 # We need space, tab and new line, in precisely that order.  Quoting is
12270 # there to prevent editors from complaining about space-tab.
12271 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12272 # splitting by setting IFS to empty value.)
12273 IFS=" ""        $as_nl"
12274
12275 # Find who we are.  Look in the path if we contain no directory separator.
12276 case $0 in #((
12277   *[\\/]* ) as_myself=$0 ;;
12278   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279 for as_dir in $PATH
12280 do
12281   IFS=$as_save_IFS
12282   test -z "$as_dir" && as_dir=.
12283     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12284   done
12285 IFS=$as_save_IFS
12286
12287      ;;
12288 esac
12289 # We did not find ourselves, most probably we were run as `sh COMMAND'
12290 # in which case we are not to be found in the path.
12291 if test "x$as_myself" = x; then
12292   as_myself=$0
12293 fi
12294 if test ! -f "$as_myself"; then
12295   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12296   exit 1
12297 fi
12298
12299 # Unset variables that we do not need and which cause bugs (e.g. in
12300 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12301 # suppresses any "Segmentation fault" message there.  '((' could
12302 # trigger a bug in pdksh 5.2.14.
12303 for as_var in BASH_ENV ENV MAIL MAILPATH
12304 do eval test x\${$as_var+set} = xset \
12305   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12306 done
12307 PS1='$ '
12308 PS2='> '
12309 PS4='+ '
12310
12311 # NLS nuisances.
12312 LC_ALL=C
12313 export LC_ALL
12314 LANGUAGE=C
12315 export LANGUAGE
12316
12317 # CDPATH.
12318 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12319
12320
12321 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12322 # ----------------------------------------
12323 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12324 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12325 # script with STATUS, using 1 if that was 0.
12326 as_fn_error ()
12327 {
12328   as_status=$1; test $as_status -eq 0 && as_status=1
12329   if test "$4"; then
12330     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12331     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12332   fi
12333   $as_echo "$as_me: error: $2" >&2
12334   as_fn_exit $as_status
12335 } # as_fn_error
12336
12337
12338 # as_fn_set_status STATUS
12339 # -----------------------
12340 # Set $? to STATUS, without forking.
12341 as_fn_set_status ()
12342 {
12343   return $1
12344 } # as_fn_set_status
12345
12346 # as_fn_exit STATUS
12347 # -----------------
12348 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12349 as_fn_exit ()
12350 {
12351   set +e
12352   as_fn_set_status $1
12353   exit $1
12354 } # as_fn_exit
12355
12356 # as_fn_unset VAR
12357 # ---------------
12358 # Portably unset VAR.
12359 as_fn_unset ()
12360 {
12361   { eval $1=; unset $1;}
12362 }
12363 as_unset=as_fn_unset
12364 # as_fn_append VAR VALUE
12365 # ----------------------
12366 # Append the text in VALUE to the end of the definition contained in VAR. Take
12367 # advantage of any shell optimizations that allow amortized linear growth over
12368 # repeated appends, instead of the typical quadratic growth present in naive
12369 # implementations.
12370 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12371   eval 'as_fn_append ()
12372   {
12373     eval $1+=\$2
12374   }'
12375 else
12376   as_fn_append ()
12377   {
12378     eval $1=\$$1\$2
12379   }
12380 fi # as_fn_append
12381
12382 # as_fn_arith ARG...
12383 # ------------------
12384 # Perform arithmetic evaluation on the ARGs, and store the result in the
12385 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12386 # must be portable across $(()) and expr.
12387 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12388   eval 'as_fn_arith ()
12389   {
12390     as_val=$(( $* ))
12391   }'
12392 else
12393   as_fn_arith ()
12394   {
12395     as_val=`expr "$@" || test $? -eq 1`
12396   }
12397 fi # as_fn_arith
12398
12399
12400 if expr a : '\(a\)' >/dev/null 2>&1 &&
12401    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12402   as_expr=expr
12403 else
12404   as_expr=false
12405 fi
12406
12407 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12408   as_basename=basename
12409 else
12410   as_basename=false
12411 fi
12412
12413 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12414   as_dirname=dirname
12415 else
12416   as_dirname=false
12417 fi
12418
12419 as_me=`$as_basename -- "$0" ||
12420 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12421          X"$0" : 'X\(//\)$' \| \
12422          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12423 $as_echo X/"$0" |
12424     sed '/^.*\/\([^/][^/]*\)\/*$/{
12425             s//\1/
12426             q
12427           }
12428           /^X\/\(\/\/\)$/{
12429             s//\1/
12430             q
12431           }
12432           /^X\/\(\/\).*/{
12433             s//\1/
12434             q
12435           }
12436           s/.*/./; q'`
12437
12438 # Avoid depending upon Character Ranges.
12439 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12440 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12441 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12442 as_cr_digits='0123456789'
12443 as_cr_alnum=$as_cr_Letters$as_cr_digits
12444
12445 ECHO_C= ECHO_N= ECHO_T=
12446 case `echo -n x` in #(((((
12447 -n*)
12448   case `echo 'xy\c'` in
12449   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12450   xy)  ECHO_C='\c';;
12451   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12452        ECHO_T=' ';;
12453   esac;;
12454 *)
12455   ECHO_N='-n';;
12456 esac
12457
12458 rm -f conf$$ conf$$.exe conf$$.file
12459 if test -d conf$$.dir; then
12460   rm -f conf$$.dir/conf$$.file
12461 else
12462   rm -f conf$$.dir
12463   mkdir conf$$.dir 2>/dev/null
12464 fi
12465 if (echo >conf$$.file) 2>/dev/null; then
12466   if ln -s conf$$.file conf$$ 2>/dev/null; then
12467     as_ln_s='ln -s'
12468     # ... but there are two gotchas:
12469     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12470     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12471     # In both cases, we have to default to `cp -p'.
12472     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12473       as_ln_s='cp -p'
12474   elif ln conf$$.file conf$$ 2>/dev/null; then
12475     as_ln_s=ln
12476   else
12477     as_ln_s='cp -p'
12478   fi
12479 else
12480   as_ln_s='cp -p'
12481 fi
12482 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12483 rmdir conf$$.dir 2>/dev/null
12484
12485
12486 # as_fn_mkdir_p
12487 # -------------
12488 # Create "$as_dir" as a directory, including parents if necessary.
12489 as_fn_mkdir_p ()
12490 {
12491
12492   case $as_dir in #(
12493   -*) as_dir=./$as_dir;;
12494   esac
12495   test -d "$as_dir" || eval $as_mkdir_p || {
12496     as_dirs=
12497     while :; do
12498       case $as_dir in #(
12499       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12500       *) as_qdir=$as_dir;;
12501       esac
12502       as_dirs="'$as_qdir' $as_dirs"
12503       as_dir=`$as_dirname -- "$as_dir" ||
12504 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12505          X"$as_dir" : 'X\(//\)[^/]' \| \
12506          X"$as_dir" : 'X\(//\)$' \| \
12507          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12508 $as_echo X"$as_dir" |
12509     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12510             s//\1/
12511             q
12512           }
12513           /^X\(\/\/\)[^/].*/{
12514             s//\1/
12515             q
12516           }
12517           /^X\(\/\/\)$/{
12518             s//\1/
12519             q
12520           }
12521           /^X\(\/\).*/{
12522             s//\1/
12523             q
12524           }
12525           s/.*/./; q'`
12526       test -d "$as_dir" && break
12527     done
12528     test -z "$as_dirs" || eval "mkdir $as_dirs"
12529   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12530
12531
12532 } # as_fn_mkdir_p
12533 if mkdir -p . 2>/dev/null; then
12534   as_mkdir_p='mkdir -p "$as_dir"'
12535 else
12536   test -d ./-p && rmdir ./-p
12537   as_mkdir_p=false
12538 fi
12539
12540 if test -x / >/dev/null 2>&1; then
12541   as_test_x='test -x'
12542 else
12543   if ls -dL / >/dev/null 2>&1; then
12544     as_ls_L_option=L
12545   else
12546     as_ls_L_option=
12547   fi
12548   as_test_x='
12549     eval sh -c '\''
12550       if test -d "$1"; then
12551         test -d "$1/.";
12552       else
12553         case $1 in #(
12554         -*)set "./$1";;
12555         esac;
12556         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12557         ???[sx]*):;;*)false;;esac;fi
12558     '\'' sh
12559   '
12560 fi
12561 as_executable_p=$as_test_x
12562
12563 # Sed expression to map a string onto a valid CPP name.
12564 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12565
12566 # Sed expression to map a string onto a valid variable name.
12567 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12568
12569
12570 exec 6>&1
12571 ## ----------------------------------- ##
12572 ## Main body of $CONFIG_STATUS script. ##
12573 ## ----------------------------------- ##
12574 _ASEOF
12575 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12576
12577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12578 # Save the log message, to keep $0 and so on meaningful, and to
12579 # report actual input values of CONFIG_FILES etc. instead of their
12580 # values after options handling.
12581 ac_log="
12582 This file was extended by json-glib $as_me 0.10.4, which was
12583 generated by GNU Autoconf 2.67.  Invocation command line was
12584
12585   CONFIG_FILES    = $CONFIG_FILES
12586   CONFIG_HEADERS  = $CONFIG_HEADERS
12587   CONFIG_LINKS    = $CONFIG_LINKS
12588   CONFIG_COMMANDS = $CONFIG_COMMANDS
12589   $ $0 $@
12590
12591 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12592 "
12593
12594 _ACEOF
12595
12596 case $ac_config_files in *"
12597 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12598 esac
12599
12600 case $ac_config_headers in *"
12601 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12602 esac
12603
12604
12605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12606 # Files that config.status was made for.
12607 config_files="$ac_config_files"
12608 config_headers="$ac_config_headers"
12609 config_commands="$ac_config_commands"
12610
12611 _ACEOF
12612
12613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12614 ac_cs_usage="\
12615 \`$as_me' instantiates files and other configuration actions
12616 from templates according to the current configuration.  Unless the files
12617 and actions are specified as TAGs, all are instantiated by default.
12618
12619 Usage: $0 [OPTION]... [TAG]...
12620
12621   -h, --help       print this help, then exit
12622   -V, --version    print version number and configuration settings, then exit
12623       --config     print configuration, then exit
12624   -q, --quiet, --silent
12625                    do not print progress messages
12626   -d, --debug      don't remove temporary files
12627       --recheck    update $as_me by reconfiguring in the same conditions
12628       --file=FILE[:TEMPLATE]
12629                    instantiate the configuration file FILE
12630       --header=FILE[:TEMPLATE]
12631                    instantiate the configuration header FILE
12632
12633 Configuration files:
12634 $config_files
12635
12636 Configuration headers:
12637 $config_headers
12638
12639 Configuration commands:
12640 $config_commands
12641
12642 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib>."
12643
12644 _ACEOF
12645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12646 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12647 ac_cs_version="\\
12648 json-glib config.status 0.10.4
12649 configured by $0, generated by GNU Autoconf 2.67,
12650   with options \\"\$ac_cs_config\\"
12651
12652 Copyright (C) 2010 Free Software Foundation, Inc.
12653 This config.status script is free software; the Free Software Foundation
12654 gives unlimited permission to copy, distribute and modify it."
12655
12656 ac_pwd='$ac_pwd'
12657 srcdir='$srcdir'
12658 INSTALL='$INSTALL'
12659 MKDIR_P='$MKDIR_P'
12660 AWK='$AWK'
12661 test -n "\$AWK" || AWK=awk
12662 _ACEOF
12663
12664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12665 # The default lists apply if the user does not specify any file.
12666 ac_need_defaults=:
12667 while test $# != 0
12668 do
12669   case $1 in
12670   --*=?*)
12671     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12672     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12673     ac_shift=:
12674     ;;
12675   --*=)
12676     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12677     ac_optarg=
12678     ac_shift=:
12679     ;;
12680   *)
12681     ac_option=$1
12682     ac_optarg=$2
12683     ac_shift=shift
12684     ;;
12685   esac
12686
12687   case $ac_option in
12688   # Handling of the options.
12689   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12690     ac_cs_recheck=: ;;
12691   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12692     $as_echo "$ac_cs_version"; exit ;;
12693   --config | --confi | --conf | --con | --co | --c )
12694     $as_echo "$ac_cs_config"; exit ;;
12695   --debug | --debu | --deb | --de | --d | -d )
12696     debug=: ;;
12697   --file | --fil | --fi | --f )
12698     $ac_shift
12699     case $ac_optarg in
12700     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12701     '') as_fn_error $? "missing file argument" ;;
12702     esac
12703     as_fn_append CONFIG_FILES " '$ac_optarg'"
12704     ac_need_defaults=false;;
12705   --header | --heade | --head | --hea )
12706     $ac_shift
12707     case $ac_optarg in
12708     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12709     esac
12710     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12711     ac_need_defaults=false;;
12712   --he | --h)
12713     # Conflict between --help and --header
12714     as_fn_error $? "ambiguous option: \`$1'
12715 Try \`$0 --help' for more information.";;
12716   --help | --hel | -h )
12717     $as_echo "$ac_cs_usage"; exit ;;
12718   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12719   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12720     ac_cs_silent=: ;;
12721
12722   # This is an error.
12723   -*) as_fn_error $? "unrecognized option: \`$1'
12724 Try \`$0 --help' for more information." ;;
12725
12726   *) as_fn_append ac_config_targets " $1"
12727      ac_need_defaults=false ;;
12728
12729   esac
12730   shift
12731 done
12732
12733 ac_configure_extra_args=
12734
12735 if $ac_cs_silent; then
12736   exec 6>/dev/null
12737   ac_configure_extra_args="$ac_configure_extra_args --silent"
12738 fi
12739
12740 _ACEOF
12741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12742 if \$ac_cs_recheck; then
12743   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12744   shift
12745   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12746   CONFIG_SHELL='$SHELL'
12747   export CONFIG_SHELL
12748   exec "\$@"
12749 fi
12750
12751 _ACEOF
12752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12753 exec 5>>config.log
12754 {
12755   echo
12756   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12757 ## Running $as_me. ##
12758 _ASBOX
12759   $as_echo "$ac_log"
12760 } >&5
12761
12762 _ACEOF
12763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12764 #
12765 # INIT-COMMANDS
12766 #
12767 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12768
12769
12770 # The HP-UX ksh and POSIX shell print the target directory to stdout
12771 # if CDPATH is set.
12772 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12773
12774 sed_quote_subst='$sed_quote_subst'
12775 double_quote_subst='$double_quote_subst'
12776 delay_variable_subst='$delay_variable_subst'
12777 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12778 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12779 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12780 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12781 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12782 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12783 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12784 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12785 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12786 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12787 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12788 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12789 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12790 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12791 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12792 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12793 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12794 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12795 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12796 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12797 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12798 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12799 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12800 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12801 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12802 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12803 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12804 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12805 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12806 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12807 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12808 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12809 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12810 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12811 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12812 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12813 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12814 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12815 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12816 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12817 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12818 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12819 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12820 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12821 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12822 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12823 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12824 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12825 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12826 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12827 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12828 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12829 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12830 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12831 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12832 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12833 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12834 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12835 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12836 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12837 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12838 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12839 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12840 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12841 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12842 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12843 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12844 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12845 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12846 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12847 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12848 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12849 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12850 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12851 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12852 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12853 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12854 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12855 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12856 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12857 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12858 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12859 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12860 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12861 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12862 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12863 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12864 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12865 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12866 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12867 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12868 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12869 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12870 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12871 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12872 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12873 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12874 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12875 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12876 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12877 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12878 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12879 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12880 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12881 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12882 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12883 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12884 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12885 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12886 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12887 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12888 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12889 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12890 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12891 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12892 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12893 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12894 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12895
12896 LTCC='$LTCC'
12897 LTCFLAGS='$LTCFLAGS'
12898 compiler='$compiler_DEFAULT'
12899
12900 # Quote evaled strings.
12901 for var in SED \
12902 GREP \
12903 EGREP \
12904 FGREP \
12905 LD \
12906 NM \
12907 LN_S \
12908 lt_SP2NL \
12909 lt_NL2SP \
12910 reload_flag \
12911 OBJDUMP \
12912 deplibs_check_method \
12913 file_magic_cmd \
12914 AR \
12915 AR_FLAGS \
12916 STRIP \
12917 RANLIB \
12918 CC \
12919 CFLAGS \
12920 compiler \
12921 lt_cv_sys_global_symbol_pipe \
12922 lt_cv_sys_global_symbol_to_cdecl \
12923 lt_cv_sys_global_symbol_to_c_name_address \
12924 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12925 SHELL \
12926 ECHO \
12927 lt_prog_compiler_no_builtin_flag \
12928 lt_prog_compiler_wl \
12929 lt_prog_compiler_pic \
12930 lt_prog_compiler_static \
12931 lt_cv_prog_compiler_c_o \
12932 need_locks \
12933 DSYMUTIL \
12934 NMEDIT \
12935 LIPO \
12936 OTOOL \
12937 OTOOL64 \
12938 shrext_cmds \
12939 export_dynamic_flag_spec \
12940 whole_archive_flag_spec \
12941 compiler_needs_object \
12942 with_gnu_ld \
12943 allow_undefined_flag \
12944 no_undefined_flag \
12945 hardcode_libdir_flag_spec \
12946 hardcode_libdir_flag_spec_ld \
12947 hardcode_libdir_separator \
12948 fix_srcfile_path \
12949 exclude_expsyms \
12950 include_expsyms \
12951 file_list_spec \
12952 variables_saved_for_relink \
12953 libname_spec \
12954 library_names_spec \
12955 soname_spec \
12956 finish_eval \
12957 old_striplib \
12958 striplib; do
12959     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12960     *[\\\\\\\`\\"\\\$]*)
12961       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12962       ;;
12963     *)
12964       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12965       ;;
12966     esac
12967 done
12968
12969 # Double-quote double-evaled strings.
12970 for var in reload_cmds \
12971 old_postinstall_cmds \
12972 old_postuninstall_cmds \
12973 old_archive_cmds \
12974 extract_expsyms_cmds \
12975 old_archive_from_new_cmds \
12976 old_archive_from_expsyms_cmds \
12977 archive_cmds \
12978 archive_expsym_cmds \
12979 module_cmds \
12980 module_expsym_cmds \
12981 export_symbols_cmds \
12982 prelink_cmds \
12983 postinstall_cmds \
12984 postuninstall_cmds \
12985 finish_cmds \
12986 sys_lib_search_path_spec \
12987 sys_lib_dlsearch_path_spec; do
12988     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12989     *[\\\\\\\`\\"\\\$]*)
12990       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12991       ;;
12992     *)
12993       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12994       ;;
12995     esac
12996 done
12997
12998 # Fix-up fallback echo if it was mangled by the above quoting rules.
12999 case \$lt_ECHO in
13000 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13001   ;;
13002 esac
13003
13004 ac_aux_dir='$ac_aux_dir'
13005 xsi_shell='$xsi_shell'
13006 lt_shell_append='$lt_shell_append'
13007
13008 # See if we are running on zsh, and set the options which allow our
13009 # commands through without removal of \ escapes INIT.
13010 if test -n "\${ZSH_VERSION+set}" ; then
13011    setopt NO_GLOB_SUBST
13012 fi
13013
13014
13015     PACKAGE='$PACKAGE'
13016     VERSION='$VERSION'
13017     TIMESTAMP='$TIMESTAMP'
13018     RM='$RM'
13019     ofile='$ofile'
13020
13021
13022
13023
13024 _ACEOF
13025
13026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13027
13028 # Handling of arguments.
13029 for ac_config_target in $ac_config_targets
13030 do
13031   case $ac_config_target in
13032     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13033     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13034     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13035     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13036     "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
13037     "build/autotools/Makefile") CONFIG_FILES="$CONFIG_FILES build/autotools/Makefile" ;;
13038     "json-glib/Makefile") CONFIG_FILES="$CONFIG_FILES json-glib/Makefile" ;;
13039     "json-glib/json-version.h") CONFIG_FILES="$CONFIG_FILES json-glib/json-version.h" ;;
13040     "json-glib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES json-glib/tests/Makefile" ;;
13041     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13042     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13043     "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
13044     "doc/reference/version.xml") CONFIG_FILES="$CONFIG_FILES doc/reference/version.xml" ;;
13045     "json-glib.pc") CONFIG_FILES="$CONFIG_FILES json-glib.pc" ;;
13046
13047   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
13048   esac
13049 done
13050
13051
13052 # If the user did not use the arguments to specify the items to instantiate,
13053 # then the envvar interface is used.  Set only those that are not.
13054 # We use the long form for the default assignment because of an extremely
13055 # bizarre bug on SunOS 4.1.3.
13056 if $ac_need_defaults; then
13057   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13058   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13059   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13060 fi
13061
13062 # Have a temporary directory for convenience.  Make it in the build tree
13063 # simply because there is no reason against having it here, and in addition,
13064 # creating and moving files from /tmp can sometimes cause problems.
13065 # Hook for its removal unless debugging.
13066 # Note that there is a small window in which the directory will not be cleaned:
13067 # after its creation but before its name has been assigned to `$tmp'.
13068 $debug ||
13069 {
13070   tmp=
13071   trap 'exit_status=$?
13072   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13073 ' 0
13074   trap 'as_fn_exit 1' 1 2 13 15
13075 }
13076 # Create a (secure) tmp directory for tmp files.
13077
13078 {
13079   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13080   test -n "$tmp" && test -d "$tmp"
13081 }  ||
13082 {
13083   tmp=./conf$$-$RANDOM
13084   (umask 077 && mkdir "$tmp")
13085 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13086
13087 # Set up the scripts for CONFIG_FILES section.
13088 # No need to generate them if there are no CONFIG_FILES.
13089 # This happens for instance with `./config.status config.h'.
13090 if test -n "$CONFIG_FILES"; then
13091
13092
13093 ac_cr=`echo X | tr X '\015'`
13094 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13095 # But we know of no other shell where ac_cr would be empty at this
13096 # point, so we can use a bashism as a fallback.
13097 if test "x$ac_cr" = x; then
13098   eval ac_cr=\$\'\\r\'
13099 fi
13100 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13101 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13102   ac_cs_awk_cr='\\r'
13103 else
13104   ac_cs_awk_cr=$ac_cr
13105 fi
13106
13107 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13108 _ACEOF
13109
13110
13111 {
13112   echo "cat >conf$$subs.awk <<_ACEOF" &&
13113   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13114   echo "_ACEOF"
13115 } >conf$$subs.sh ||
13116   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13117 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13118 ac_delim='%!_!# '
13119 for ac_last_try in false false false false false :; do
13120   . ./conf$$subs.sh ||
13121     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13122
13123   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13124   if test $ac_delim_n = $ac_delim_num; then
13125     break
13126   elif $ac_last_try; then
13127     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13128   else
13129     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13130   fi
13131 done
13132 rm -f conf$$subs.sh
13133
13134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13135 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13136 _ACEOF
13137 sed -n '
13138 h
13139 s/^/S["/; s/!.*/"]=/
13140 p
13141 g
13142 s/^[^!]*!//
13143 :repl
13144 t repl
13145 s/'"$ac_delim"'$//
13146 t delim
13147 :nl
13148 h
13149 s/\(.\{148\}\)..*/\1/
13150 t more1
13151 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13152 p
13153 n
13154 b repl
13155 :more1
13156 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13157 p
13158 g
13159 s/.\{148\}//
13160 t nl
13161 :delim
13162 h
13163 s/\(.\{148\}\)..*/\1/
13164 t more2
13165 s/["\\]/\\&/g; s/^/"/; s/$/"/
13166 p
13167 b
13168 :more2
13169 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13170 p
13171 g
13172 s/.\{148\}//
13173 t delim
13174 ' <conf$$subs.awk | sed '
13175 /^[^""]/{
13176   N
13177   s/\n//
13178 }
13179 ' >>$CONFIG_STATUS || ac_write_fail=1
13180 rm -f conf$$subs.awk
13181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13182 _ACAWK
13183 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13184   for (key in S) S_is_set[key] = 1
13185   FS = "\a"
13186
13187 }
13188 {
13189   line = $ 0
13190   nfields = split(line, field, "@")
13191   substed = 0
13192   len = length(field[1])
13193   for (i = 2; i < nfields; i++) {
13194     key = field[i]
13195     keylen = length(key)
13196     if (S_is_set[key]) {
13197       value = S[key]
13198       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13199       len += length(value) + length(field[++i])
13200       substed = 1
13201     } else
13202       len += 1 + keylen
13203   }
13204
13205   print line
13206 }
13207
13208 _ACAWK
13209 _ACEOF
13210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13211 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13212   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13213 else
13214   cat
13215 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13216   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13217 _ACEOF
13218
13219 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13220 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13221 # trailing colons and then remove the whole line if VPATH becomes empty
13222 # (actually we leave an empty line to preserve line numbers).
13223 if test "x$srcdir" = x.; then
13224   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13225 h
13226 s///
13227 s/^/:/
13228 s/[      ]*$/:/
13229 s/:\$(srcdir):/:/g
13230 s/:\${srcdir}:/:/g
13231 s/:@srcdir@:/:/g
13232 s/^:*//
13233 s/:*$//
13234 x
13235 s/\(=[   ]*\).*/\1/
13236 G
13237 s/\n//
13238 s/^[^=]*=[       ]*$//
13239 }'
13240 fi
13241
13242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13243 fi # test -n "$CONFIG_FILES"
13244
13245 # Set up the scripts for CONFIG_HEADERS section.
13246 # No need to generate them if there are no CONFIG_HEADERS.
13247 # This happens for instance with `./config.status Makefile'.
13248 if test -n "$CONFIG_HEADERS"; then
13249 cat >"$tmp/defines.awk" <<\_ACAWK ||
13250 BEGIN {
13251 _ACEOF
13252
13253 # Transform confdefs.h into an awk script `defines.awk', embedded as
13254 # here-document in config.status, that substitutes the proper values into
13255 # config.h.in to produce config.h.
13256
13257 # Create a delimiter string that does not exist in confdefs.h, to ease
13258 # handling of long lines.
13259 ac_delim='%!_!# '
13260 for ac_last_try in false false :; do
13261   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13262   if test -z "$ac_t"; then
13263     break
13264   elif $ac_last_try; then
13265     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13266   else
13267     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13268   fi
13269 done
13270
13271 # For the awk script, D is an array of macro values keyed by name,
13272 # likewise P contains macro parameters if any.  Preserve backslash
13273 # newline sequences.
13274
13275 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13276 sed -n '
13277 s/.\{148\}/&'"$ac_delim"'/g
13278 t rset
13279 :rset
13280 s/^[     ]*#[    ]*define[       ][      ]*/ /
13281 t def
13282 d
13283 :def
13284 s/\\$//
13285 t bsnl
13286 s/["\\]/\\&/g
13287 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13288 D["\1"]=" \3"/p
13289 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13290 d
13291 :bsnl
13292 s/["\\]/\\&/g
13293 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13294 D["\1"]=" \3\\\\\\n"\\/p
13295 t cont
13296 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13297 t cont
13298 d
13299 :cont
13300 n
13301 s/.\{148\}/&'"$ac_delim"'/g
13302 t clear
13303 :clear
13304 s/\\$//
13305 t bsnlc
13306 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13307 d
13308 :bsnlc
13309 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13310 b cont
13311 ' <confdefs.h | sed '
13312 s/'"$ac_delim"'/"\\\
13313 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13314
13315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13316   for (key in D) D_is_set[key] = 1
13317   FS = "\a"
13318 }
13319 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13320   line = \$ 0
13321   split(line, arg, " ")
13322   if (arg[1] == "#") {
13323     defundef = arg[2]
13324     mac1 = arg[3]
13325   } else {
13326     defundef = substr(arg[1], 2)
13327     mac1 = arg[2]
13328   }
13329   split(mac1, mac2, "(") #)
13330   macro = mac2[1]
13331   prefix = substr(line, 1, index(line, defundef) - 1)
13332   if (D_is_set[macro]) {
13333     # Preserve the white space surrounding the "#".
13334     print prefix "define", macro P[macro] D[macro]
13335     next
13336   } else {
13337     # Replace #undef with comments.  This is necessary, for example,
13338     # in the case of _POSIX_SOURCE, which is predefined and required
13339     # on some systems where configure will not decide to define it.
13340     if (defundef == "undef") {
13341       print "/*", prefix defundef, macro, "*/"
13342       next
13343     }
13344   }
13345 }
13346 { print }
13347 _ACAWK
13348 _ACEOF
13349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13350   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13351 fi # test -n "$CONFIG_HEADERS"
13352
13353
13354 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13355 shift
13356 for ac_tag
13357 do
13358   case $ac_tag in
13359   :[FHLC]) ac_mode=$ac_tag; continue;;
13360   esac
13361   case $ac_mode$ac_tag in
13362   :[FHL]*:*);;
13363   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
13364   :[FH]-) ac_tag=-:-;;
13365   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13366   esac
13367   ac_save_IFS=$IFS
13368   IFS=:
13369   set x $ac_tag
13370   IFS=$ac_save_IFS
13371   shift
13372   ac_file=$1
13373   shift
13374
13375   case $ac_mode in
13376   :L) ac_source=$1;;
13377   :[FH])
13378     ac_file_inputs=
13379     for ac_f
13380     do
13381       case $ac_f in
13382       -) ac_f="$tmp/stdin";;
13383       *) # Look for the file first in the build tree, then in the source tree
13384          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13385          # because $ac_f cannot contain `:'.
13386          test -f "$ac_f" ||
13387            case $ac_f in
13388            [\\/$]*) false;;
13389            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13390            esac ||
13391            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
13392       esac
13393       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13394       as_fn_append ac_file_inputs " '$ac_f'"
13395     done
13396
13397     # Let's still pretend it is `configure' which instantiates (i.e., don't
13398     # use $as_me), people would be surprised to read:
13399     #    /* config.h.  Generated by config.status.  */
13400     configure_input='Generated from '`
13401           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13402         `' by configure.'
13403     if test x"$ac_file" != x-; then
13404       configure_input="$ac_file.  $configure_input"
13405       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13406 $as_echo "$as_me: creating $ac_file" >&6;}
13407     fi
13408     # Neutralize special characters interpreted by sed in replacement strings.
13409     case $configure_input in #(
13410     *\&* | *\|* | *\\* )
13411        ac_sed_conf_input=`$as_echo "$configure_input" |
13412        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13413     *) ac_sed_conf_input=$configure_input;;
13414     esac
13415
13416     case $ac_tag in
13417     *:-:* | *:-) cat >"$tmp/stdin" \
13418       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
13419     esac
13420     ;;
13421   esac
13422
13423   ac_dir=`$as_dirname -- "$ac_file" ||
13424 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13425          X"$ac_file" : 'X\(//\)[^/]' \| \
13426          X"$ac_file" : 'X\(//\)$' \| \
13427          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13428 $as_echo X"$ac_file" |
13429     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13430             s//\1/
13431             q
13432           }
13433           /^X\(\/\/\)[^/].*/{
13434             s//\1/
13435             q
13436           }
13437           /^X\(\/\/\)$/{
13438             s//\1/
13439             q
13440           }
13441           /^X\(\/\).*/{
13442             s//\1/
13443             q
13444           }
13445           s/.*/./; q'`
13446   as_dir="$ac_dir"; as_fn_mkdir_p
13447   ac_builddir=.
13448
13449 case "$ac_dir" in
13450 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13451 *)
13452   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13453   # A ".." for each directory in $ac_dir_suffix.
13454   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13455   case $ac_top_builddir_sub in
13456   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13457   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13458   esac ;;
13459 esac
13460 ac_abs_top_builddir=$ac_pwd
13461 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13462 # for backward compatibility:
13463 ac_top_builddir=$ac_top_build_prefix
13464
13465 case $srcdir in
13466   .)  # We are building in place.
13467     ac_srcdir=.
13468     ac_top_srcdir=$ac_top_builddir_sub
13469     ac_abs_top_srcdir=$ac_pwd ;;
13470   [\\/]* | ?:[\\/]* )  # Absolute name.
13471     ac_srcdir=$srcdir$ac_dir_suffix;
13472     ac_top_srcdir=$srcdir
13473     ac_abs_top_srcdir=$srcdir ;;
13474   *) # Relative name.
13475     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13476     ac_top_srcdir=$ac_top_build_prefix$srcdir
13477     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13478 esac
13479 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13480
13481
13482   case $ac_mode in
13483   :F)
13484   #
13485   # CONFIG_FILE
13486   #
13487
13488   case $INSTALL in
13489   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13490   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13491   esac
13492   ac_MKDIR_P=$MKDIR_P
13493   case $MKDIR_P in
13494   [\\/$]* | ?:[\\/]* ) ;;
13495   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13496   esac
13497 _ACEOF
13498
13499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13500 # If the template does not know about datarootdir, expand it.
13501 # FIXME: This hack should be removed a few years after 2.60.
13502 ac_datarootdir_hack=; ac_datarootdir_seen=
13503 ac_sed_dataroot='
13504 /datarootdir/ {
13505   p
13506   q
13507 }
13508 /@datadir@/p
13509 /@docdir@/p
13510 /@infodir@/p
13511 /@localedir@/p
13512 /@mandir@/p'
13513 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13514 *datarootdir*) ac_datarootdir_seen=yes;;
13515 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13516   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13517 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13518 _ACEOF
13519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13520   ac_datarootdir_hack='
13521   s&@datadir@&$datadir&g
13522   s&@docdir@&$docdir&g
13523   s&@infodir@&$infodir&g
13524   s&@localedir@&$localedir&g
13525   s&@mandir@&$mandir&g
13526   s&\\\${datarootdir}&$datarootdir&g' ;;
13527 esac
13528 _ACEOF
13529
13530 # Neutralize VPATH when `$srcdir' = `.'.
13531 # Shell code in configure.ac might set extrasub.
13532 # FIXME: do we really want to maintain this feature?
13533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13534 ac_sed_extra="$ac_vpsub
13535 $extrasub
13536 _ACEOF
13537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13538 :t
13539 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13540 s|@configure_input@|$ac_sed_conf_input|;t t
13541 s&@top_builddir@&$ac_top_builddir_sub&;t t
13542 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13543 s&@srcdir@&$ac_srcdir&;t t
13544 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13545 s&@top_srcdir@&$ac_top_srcdir&;t t
13546 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13547 s&@builddir@&$ac_builddir&;t t
13548 s&@abs_builddir@&$ac_abs_builddir&;t t
13549 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13550 s&@INSTALL@&$ac_INSTALL&;t t
13551 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13552 $ac_datarootdir_hack
13553 "
13554 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13555   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13556
13557 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13558   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13559   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13560   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13561 which seems to be undefined.  Please make sure it is defined" >&5
13562 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13563 which seems to be undefined.  Please make sure it is defined" >&2;}
13564
13565   rm -f "$tmp/stdin"
13566   case $ac_file in
13567   -) cat "$tmp/out" && rm -f "$tmp/out";;
13568   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13569   esac \
13570   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13571  ;;
13572   :H)
13573   #
13574   # CONFIG_HEADER
13575   #
13576   if test x"$ac_file" != x-; then
13577     {
13578       $as_echo "/* $configure_input  */" \
13579       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13580     } >"$tmp/config.h" \
13581       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13582     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13583       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13584 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13585     else
13586       rm -f "$ac_file"
13587       mv "$tmp/config.h" "$ac_file" \
13588         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13589     fi
13590   else
13591     $as_echo "/* $configure_input  */" \
13592       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13593       || as_fn_error $? "could not create -" "$LINENO" 5
13594   fi
13595 # Compute "$ac_file"'s index in $config_headers.
13596 _am_arg="$ac_file"
13597 _am_stamp_count=1
13598 for _am_header in $config_headers :; do
13599   case $_am_header in
13600     $_am_arg | $_am_arg:* )
13601       break ;;
13602     * )
13603       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13604   esac
13605 done
13606 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13607 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13608          X"$_am_arg" : 'X\(//\)[^/]' \| \
13609          X"$_am_arg" : 'X\(//\)$' \| \
13610          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13611 $as_echo X"$_am_arg" |
13612     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13613             s//\1/
13614             q
13615           }
13616           /^X\(\/\/\)[^/].*/{
13617             s//\1/
13618             q
13619           }
13620           /^X\(\/\/\)$/{
13621             s//\1/
13622             q
13623           }
13624           /^X\(\/\).*/{
13625             s//\1/
13626             q
13627           }
13628           s/.*/./; q'`/stamp-h$_am_stamp_count
13629  ;;
13630
13631   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13632 $as_echo "$as_me: executing $ac_file commands" >&6;}
13633  ;;
13634   esac
13635
13636
13637   case $ac_file$ac_mode in
13638     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13639   # Autoconf 2.62 quotes --file arguments for eval, but not when files
13640   # are listed without --file.  Let's play safe and only enable the eval
13641   # if we detect the quoting.
13642   case $CONFIG_FILES in
13643   *\'*) eval set x "$CONFIG_FILES" ;;
13644   *)   set x $CONFIG_FILES ;;
13645   esac
13646   shift
13647   for mf
13648   do
13649     # Strip MF so we end up with the name of the file.
13650     mf=`echo "$mf" | sed -e 's/:.*$//'`
13651     # Check whether this is an Automake generated Makefile or not.
13652     # We used to match only the files named `Makefile.in', but
13653     # some people rename them; so instead we look at the file content.
13654     # Grep'ing the first line is not enough: some people post-process
13655     # each Makefile.in and add a new line on top of each file to say so.
13656     # Grep'ing the whole file is not good either: AIX grep has a line
13657     # limit of 2048, but all sed's we know have understand at least 4000.
13658     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13659       dirpart=`$as_dirname -- "$mf" ||
13660 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13661          X"$mf" : 'X\(//\)[^/]' \| \
13662          X"$mf" : 'X\(//\)$' \| \
13663          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13664 $as_echo X"$mf" |
13665     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13666             s//\1/
13667             q
13668           }
13669           /^X\(\/\/\)[^/].*/{
13670             s//\1/
13671             q
13672           }
13673           /^X\(\/\/\)$/{
13674             s//\1/
13675             q
13676           }
13677           /^X\(\/\).*/{
13678             s//\1/
13679             q
13680           }
13681           s/.*/./; q'`
13682     else
13683       continue
13684     fi
13685     # Extract the definition of DEPDIR, am__include, and am__quote
13686     # from the Makefile without running `make'.
13687     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13688     test -z "$DEPDIR" && continue
13689     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13690     test -z "am__include" && continue
13691     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13692     # When using ansi2knr, U may be empty or an underscore; expand it
13693     U=`sed -n 's/^U = //p' < "$mf"`
13694     # Find all dependency output files, they are included files with
13695     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13696     # simplest approach to changing $(DEPDIR) to its actual value in the
13697     # expansion.
13698     for file in `sed -n "
13699       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13700          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13701       # Make sure the directory exists.
13702       test -f "$dirpart/$file" && continue
13703       fdir=`$as_dirname -- "$file" ||
13704 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13705          X"$file" : 'X\(//\)[^/]' \| \
13706          X"$file" : 'X\(//\)$' \| \
13707          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13708 $as_echo X"$file" |
13709     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13710             s//\1/
13711             q
13712           }
13713           /^X\(\/\/\)[^/].*/{
13714             s//\1/
13715             q
13716           }
13717           /^X\(\/\/\)$/{
13718             s//\1/
13719             q
13720           }
13721           /^X\(\/\).*/{
13722             s//\1/
13723             q
13724           }
13725           s/.*/./; q'`
13726       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13727       # echo "creating $dirpart/$file"
13728       echo '# dummy' > "$dirpart/$file"
13729     done
13730   done
13731 }
13732  ;;
13733     "libtool":C)
13734
13735     # See if we are running on zsh, and set the options which allow our
13736     # commands through without removal of \ escapes.
13737     if test -n "${ZSH_VERSION+set}" ; then
13738       setopt NO_GLOB_SUBST
13739     fi
13740
13741     cfgfile="${ofile}T"
13742     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13743     $RM "$cfgfile"
13744
13745     cat <<_LT_EOF >> "$cfgfile"
13746 #! $SHELL
13747
13748 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13749 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13750 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13751 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13752 #
13753 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13754 #                 2006, 2007, 2008 Free Software Foundation, Inc.
13755 #   Written by Gordon Matzigkeit, 1996
13756 #
13757 #   This file is part of GNU Libtool.
13758 #
13759 # GNU Libtool is free software; you can redistribute it and/or
13760 # modify it under the terms of the GNU General Public License as
13761 # published by the Free Software Foundation; either version 2 of
13762 # the License, or (at your option) any later version.
13763 #
13764 # As a special exception to the GNU General Public License,
13765 # if you distribute this file as part of a program or library that
13766 # is built using GNU Libtool, you may include this file under the
13767 # same distribution terms that you use for the rest of that program.
13768 #
13769 # GNU Libtool is distributed in the hope that it will be useful,
13770 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13771 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13772 # GNU General Public License for more details.
13773 #
13774 # You should have received a copy of the GNU General Public License
13775 # along with GNU Libtool; see the file COPYING.  If not, a copy
13776 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13777 # obtained by writing to the Free Software Foundation, Inc.,
13778 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13779
13780
13781 # The names of the tagged configurations supported by this script.
13782 available_tags=""
13783
13784 # ### BEGIN LIBTOOL CONFIG
13785
13786 # Whether or not to build static libraries.
13787 build_old_libs=$enable_static
13788
13789 # Which release of libtool.m4 was used?
13790 macro_version=$macro_version
13791 macro_revision=$macro_revision
13792
13793 # Whether or not to build shared libraries.
13794 build_libtool_libs=$enable_shared
13795
13796 # What type of objects to build.
13797 pic_mode=$pic_mode
13798
13799 # Whether or not to optimize for fast installation.
13800 fast_install=$enable_fast_install
13801
13802 # The host system.
13803 host_alias=$host_alias
13804 host=$host
13805 host_os=$host_os
13806
13807 # The build system.
13808 build_alias=$build_alias
13809 build=$build
13810 build_os=$build_os
13811
13812 # A sed program that does not truncate output.
13813 SED=$lt_SED
13814
13815 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13816 Xsed="\$SED -e 1s/^X//"
13817
13818 # A grep program that handles long lines.
13819 GREP=$lt_GREP
13820
13821 # An ERE matcher.
13822 EGREP=$lt_EGREP
13823
13824 # A literal string matcher.
13825 FGREP=$lt_FGREP
13826
13827 # A BSD- or MS-compatible name lister.
13828 NM=$lt_NM
13829
13830 # Whether we need soft or hard links.
13831 LN_S=$lt_LN_S
13832
13833 # What is the maximum length of a command?
13834 max_cmd_len=$max_cmd_len
13835
13836 # Object file suffix (normally "o").
13837 objext=$ac_objext
13838
13839 # Executable file suffix (normally "").
13840 exeext=$exeext
13841
13842 # whether the shell understands "unset".
13843 lt_unset=$lt_unset
13844
13845 # turn spaces into newlines.
13846 SP2NL=$lt_lt_SP2NL
13847
13848 # turn newlines into spaces.
13849 NL2SP=$lt_lt_NL2SP
13850
13851 # How to create reloadable object files.
13852 reload_flag=$lt_reload_flag
13853 reload_cmds=$lt_reload_cmds
13854
13855 # An object symbol dumper.
13856 OBJDUMP=$lt_OBJDUMP
13857
13858 # Method to check whether dependent libraries are shared objects.
13859 deplibs_check_method=$lt_deplibs_check_method
13860
13861 # Command to use when deplibs_check_method == "file_magic".
13862 file_magic_cmd=$lt_file_magic_cmd
13863
13864 # The archiver.
13865 AR=$lt_AR
13866 AR_FLAGS=$lt_AR_FLAGS
13867
13868 # A symbol stripping program.
13869 STRIP=$lt_STRIP
13870
13871 # Commands used to install an old-style archive.
13872 RANLIB=$lt_RANLIB
13873 old_postinstall_cmds=$lt_old_postinstall_cmds
13874 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13875
13876 # A C compiler.
13877 LTCC=$lt_CC
13878
13879 # LTCC compiler flags.
13880 LTCFLAGS=$lt_CFLAGS
13881
13882 # Take the output of nm and produce a listing of raw symbols and C names.
13883 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13884
13885 # Transform the output of nm in a proper C declaration.
13886 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13887
13888 # Transform the output of nm in a C name address pair.
13889 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13890
13891 # Transform the output of nm in a C name address pair when lib prefix is needed.
13892 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13893
13894 # The name of the directory that contains temporary libtool files.
13895 objdir=$objdir
13896
13897 # Shell to use when invoking shell scripts.
13898 SHELL=$lt_SHELL
13899
13900 # An echo program that does not interpret backslashes.
13901 ECHO=$lt_ECHO
13902
13903 # Used to examine libraries when file_magic_cmd begins with "file".
13904 MAGIC_CMD=$MAGIC_CMD
13905
13906 # Must we lock files when doing compilation?
13907 need_locks=$lt_need_locks
13908
13909 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13910 DSYMUTIL=$lt_DSYMUTIL
13911
13912 # Tool to change global to local symbols on Mac OS X.
13913 NMEDIT=$lt_NMEDIT
13914
13915 # Tool to manipulate fat objects and archives on Mac OS X.
13916 LIPO=$lt_LIPO
13917
13918 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13919 OTOOL=$lt_OTOOL
13920
13921 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13922 OTOOL64=$lt_OTOOL64
13923
13924 # Old archive suffix (normally "a").
13925 libext=$libext
13926
13927 # Shared library suffix (normally ".so").
13928 shrext_cmds=$lt_shrext_cmds
13929
13930 # The commands to extract the exported symbol list from a shared archive.
13931 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13932
13933 # Variables whose values should be saved in libtool wrapper scripts and
13934 # restored at link time.
13935 variables_saved_for_relink=$lt_variables_saved_for_relink
13936
13937 # Do we need the "lib" prefix for modules?
13938 need_lib_prefix=$need_lib_prefix
13939
13940 # Do we need a version for libraries?
13941 need_version=$need_version
13942
13943 # Library versioning type.
13944 version_type=$version_type
13945
13946 # Shared library runtime path variable.
13947 runpath_var=$runpath_var
13948
13949 # Shared library path variable.
13950 shlibpath_var=$shlibpath_var
13951
13952 # Is shlibpath searched before the hard-coded library search path?
13953 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13954
13955 # Format of library name prefix.
13956 libname_spec=$lt_libname_spec
13957
13958 # List of archive names.  First name is the real one, the rest are links.
13959 # The last name is the one that the linker finds with -lNAME
13960 library_names_spec=$lt_library_names_spec
13961
13962 # The coded name of the library, if different from the real name.
13963 soname_spec=$lt_soname_spec
13964
13965 # Command to use after installation of a shared archive.
13966 postinstall_cmds=$lt_postinstall_cmds
13967
13968 # Command to use after uninstallation of a shared archive.
13969 postuninstall_cmds=$lt_postuninstall_cmds
13970
13971 # Commands used to finish a libtool library installation in a directory.
13972 finish_cmds=$lt_finish_cmds
13973
13974 # As "finish_cmds", except a single script fragment to be evaled but
13975 # not shown.
13976 finish_eval=$lt_finish_eval
13977
13978 # Whether we should hardcode library paths into libraries.
13979 hardcode_into_libs=$hardcode_into_libs
13980
13981 # Compile-time system search path for libraries.
13982 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13983
13984 # Run-time system search path for libraries.
13985 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13986
13987 # Whether dlopen is supported.
13988 dlopen_support=$enable_dlopen
13989
13990 # Whether dlopen of programs is supported.
13991 dlopen_self=$enable_dlopen_self
13992
13993 # Whether dlopen of statically linked programs is supported.
13994 dlopen_self_static=$enable_dlopen_self_static
13995
13996 # Commands to strip libraries.
13997 old_striplib=$lt_old_striplib
13998 striplib=$lt_striplib
13999
14000
14001 # The linker used to build libraries.
14002 LD=$lt_LD
14003
14004 # Commands used to build an old-style archive.
14005 old_archive_cmds=$lt_old_archive_cmds
14006
14007 # A language specific compiler.
14008 CC=$lt_compiler
14009
14010 # Is the compiler the GNU compiler?
14011 with_gcc=$GCC
14012
14013 # Compiler flag to turn off builtin functions.
14014 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14015
14016 # How to pass a linker flag through the compiler.
14017 wl=$lt_lt_prog_compiler_wl
14018
14019 # Additional compiler flags for building library objects.
14020 pic_flag=$lt_lt_prog_compiler_pic
14021
14022 # Compiler flag to prevent dynamic linking.
14023 link_static_flag=$lt_lt_prog_compiler_static
14024
14025 # Does compiler simultaneously support -c and -o options?
14026 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14027
14028 # Whether or not to add -lc for building shared libraries.
14029 build_libtool_need_lc=$archive_cmds_need_lc
14030
14031 # Whether or not to disallow shared libs when runtime libs are static.
14032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14033
14034 # Compiler flag to allow reflexive dlopens.
14035 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14036
14037 # Compiler flag to generate shared objects directly from archives.
14038 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14039
14040 # Whether the compiler copes with passing no objects directly.
14041 compiler_needs_object=$lt_compiler_needs_object
14042
14043 # Create an old-style archive from a shared archive.
14044 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14045
14046 # Create a temporary old-style archive to link instead of a shared archive.
14047 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14048
14049 # Commands used to build a shared archive.
14050 archive_cmds=$lt_archive_cmds
14051 archive_expsym_cmds=$lt_archive_expsym_cmds
14052
14053 # Commands used to build a loadable module if different from building
14054 # a shared archive.
14055 module_cmds=$lt_module_cmds
14056 module_expsym_cmds=$lt_module_expsym_cmds
14057
14058 # Whether we are building with GNU ld or not.
14059 with_gnu_ld=$lt_with_gnu_ld
14060
14061 # Flag that allows shared libraries with undefined symbols to be built.
14062 allow_undefined_flag=$lt_allow_undefined_flag
14063
14064 # Flag that enforces no undefined symbols.
14065 no_undefined_flag=$lt_no_undefined_flag
14066
14067 # Flag to hardcode \$libdir into a binary during linking.
14068 # This must work even if \$libdir does not exist
14069 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14070
14071 # If ld is used when linking, flag to hardcode \$libdir into a binary
14072 # during linking.  This must work even if \$libdir does not exist.
14073 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14074
14075 # Whether we need a single "-rpath" flag with a separated argument.
14076 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14077
14078 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14079 # DIR into the resulting binary.
14080 hardcode_direct=$hardcode_direct
14081
14082 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14083 # DIR into the resulting binary and the resulting library dependency is
14084 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14085 # library is relocated.
14086 hardcode_direct_absolute=$hardcode_direct_absolute
14087
14088 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14089 # into the resulting binary.
14090 hardcode_minus_L=$hardcode_minus_L
14091
14092 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14093 # into the resulting binary.
14094 hardcode_shlibpath_var=$hardcode_shlibpath_var
14095
14096 # Set to "yes" if building a shared library automatically hardcodes DIR
14097 # into the library and all subsequent libraries and executables linked
14098 # against it.
14099 hardcode_automatic=$hardcode_automatic
14100
14101 # Set to yes if linker adds runtime paths of dependent libraries
14102 # to runtime path list.
14103 inherit_rpath=$inherit_rpath
14104
14105 # Whether libtool must link a program against all its dependency libraries.
14106 link_all_deplibs=$link_all_deplibs
14107
14108 # Fix the shell variable \$srcfile for the compiler.
14109 fix_srcfile_path=$lt_fix_srcfile_path
14110
14111 # Set to "yes" if exported symbols are required.
14112 always_export_symbols=$always_export_symbols
14113
14114 # The commands to list exported symbols.
14115 export_symbols_cmds=$lt_export_symbols_cmds
14116
14117 # Symbols that should not be listed in the preloaded symbols.
14118 exclude_expsyms=$lt_exclude_expsyms
14119
14120 # Symbols that must always be exported.
14121 include_expsyms=$lt_include_expsyms
14122
14123 # Commands necessary for linking programs (against libraries) with templates.
14124 prelink_cmds=$lt_prelink_cmds
14125
14126 # Specify filename containing input files.
14127 file_list_spec=$lt_file_list_spec
14128
14129 # How to hardcode a shared library path into an executable.
14130 hardcode_action=$hardcode_action
14131
14132 # ### END LIBTOOL CONFIG
14133
14134 _LT_EOF
14135
14136   case $host_os in
14137   aix3*)
14138     cat <<\_LT_EOF >> "$cfgfile"
14139 # AIX sometimes has problems with the GCC collect2 program.  For some
14140 # reason, if we set the COLLECT_NAMES environment variable, the problems
14141 # vanish in a puff of smoke.
14142 if test "X${COLLECT_NAMES+set}" != Xset; then
14143   COLLECT_NAMES=
14144   export COLLECT_NAMES
14145 fi
14146 _LT_EOF
14147     ;;
14148   esac
14149
14150
14151 ltmain="$ac_aux_dir/ltmain.sh"
14152
14153
14154   # We use sed instead of cat because bash on DJGPP gets confused if
14155   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14156   # text mode, it properly converts lines to CR/LF.  This bash problem
14157   # is reportedly fixed, but why not run on old versions too?
14158   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14159     || (rm -f "$cfgfile"; exit 1)
14160
14161   case $xsi_shell in
14162   yes)
14163     cat << \_LT_EOF >> "$cfgfile"
14164
14165 # func_dirname file append nondir_replacement
14166 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14167 # otherwise set result to NONDIR_REPLACEMENT.
14168 func_dirname ()
14169 {
14170   case ${1} in
14171     */*) func_dirname_result="${1%/*}${2}" ;;
14172     *  ) func_dirname_result="${3}" ;;
14173   esac
14174 }
14175
14176 # func_basename file
14177 func_basename ()
14178 {
14179   func_basename_result="${1##*/}"
14180 }
14181
14182 # func_dirname_and_basename file append nondir_replacement
14183 # perform func_basename and func_dirname in a single function
14184 # call:
14185 #   dirname:  Compute the dirname of FILE.  If nonempty,
14186 #             add APPEND to the result, otherwise set result
14187 #             to NONDIR_REPLACEMENT.
14188 #             value returned in "$func_dirname_result"
14189 #   basename: Compute filename of FILE.
14190 #             value retuned in "$func_basename_result"
14191 # Implementation must be kept synchronized with func_dirname
14192 # and func_basename. For efficiency, we do not delegate to
14193 # those functions but instead duplicate the functionality here.
14194 func_dirname_and_basename ()
14195 {
14196   case ${1} in
14197     */*) func_dirname_result="${1%/*}${2}" ;;
14198     *  ) func_dirname_result="${3}" ;;
14199   esac
14200   func_basename_result="${1##*/}"
14201 }
14202
14203 # func_stripname prefix suffix name
14204 # strip PREFIX and SUFFIX off of NAME.
14205 # PREFIX and SUFFIX must not contain globbing or regex special
14206 # characters, hashes, percent signs, but SUFFIX may contain a leading
14207 # dot (in which case that matches only a dot).
14208 func_stripname ()
14209 {
14210   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14211   # positional parameters, so assign one to ordinary parameter first.
14212   func_stripname_result=${3}
14213   func_stripname_result=${func_stripname_result#"${1}"}
14214   func_stripname_result=${func_stripname_result%"${2}"}
14215 }
14216
14217 # func_opt_split
14218 func_opt_split ()
14219 {
14220   func_opt_split_opt=${1%%=*}
14221   func_opt_split_arg=${1#*=}
14222 }
14223
14224 # func_lo2o object
14225 func_lo2o ()
14226 {
14227   case ${1} in
14228     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14229     *)    func_lo2o_result=${1} ;;
14230   esac
14231 }
14232
14233 # func_xform libobj-or-source
14234 func_xform ()
14235 {
14236   func_xform_result=${1%.*}.lo
14237 }
14238
14239 # func_arith arithmetic-term...
14240 func_arith ()
14241 {
14242   func_arith_result=$(( $* ))
14243 }
14244
14245 # func_len string
14246 # STRING may not start with a hyphen.
14247 func_len ()
14248 {
14249   func_len_result=${#1}
14250 }
14251
14252 _LT_EOF
14253     ;;
14254   *) # Bourne compatible functions.
14255     cat << \_LT_EOF >> "$cfgfile"
14256
14257 # func_dirname file append nondir_replacement
14258 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14259 # otherwise set result to NONDIR_REPLACEMENT.
14260 func_dirname ()
14261 {
14262   # Extract subdirectory from the argument.
14263   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14264   if test "X$func_dirname_result" = "X${1}"; then
14265     func_dirname_result="${3}"
14266   else
14267     func_dirname_result="$func_dirname_result${2}"
14268   fi
14269 }
14270
14271 # func_basename file
14272 func_basename ()
14273 {
14274   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14275 }
14276
14277
14278 # func_stripname prefix suffix name
14279 # strip PREFIX and SUFFIX off of NAME.
14280 # PREFIX and SUFFIX must not contain globbing or regex special
14281 # characters, hashes, percent signs, but SUFFIX may contain a leading
14282 # dot (in which case that matches only a dot).
14283 # func_strip_suffix prefix name
14284 func_stripname ()
14285 {
14286   case ${2} in
14287     .*) func_stripname_result=`$ECHO "X${3}" \
14288            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14289     *)  func_stripname_result=`$ECHO "X${3}" \
14290            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14291   esac
14292 }
14293
14294 # sed scripts:
14295 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14296 my_sed_long_arg='1s/^-[^=]*=//'
14297
14298 # func_opt_split
14299 func_opt_split ()
14300 {
14301   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14302   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14303 }
14304
14305 # func_lo2o object
14306 func_lo2o ()
14307 {
14308   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14309 }
14310
14311 # func_xform libobj-or-source
14312 func_xform ()
14313 {
14314   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14315 }
14316
14317 # func_arith arithmetic-term...
14318 func_arith ()
14319 {
14320   func_arith_result=`expr "$@"`
14321 }
14322
14323 # func_len string
14324 # STRING may not start with a hyphen.
14325 func_len ()
14326 {
14327   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14328 }
14329
14330 _LT_EOF
14331 esac
14332
14333 case $lt_shell_append in
14334   yes)
14335     cat << \_LT_EOF >> "$cfgfile"
14336
14337 # func_append var value
14338 # Append VALUE to the end of shell variable VAR.
14339 func_append ()
14340 {
14341   eval "$1+=\$2"
14342 }
14343 _LT_EOF
14344     ;;
14345   *)
14346     cat << \_LT_EOF >> "$cfgfile"
14347
14348 # func_append var value
14349 # Append VALUE to the end of shell variable VAR.
14350 func_append ()
14351 {
14352   eval "$1=\$$1\$2"
14353 }
14354
14355 _LT_EOF
14356     ;;
14357   esac
14358
14359
14360   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14361     || (rm -f "$cfgfile"; exit 1)
14362
14363   mv -f "$cfgfile" "$ofile" ||
14364     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14365   chmod +x "$ofile"
14366
14367  ;;
14368
14369   esac
14370 done # for ac_tag
14371
14372
14373 as_fn_exit 0
14374 _ACEOF
14375 ac_clean_files=$ac_clean_files_save
14376
14377 test $ac_write_fail = 0 ||
14378   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14379
14380
14381 # configure is writing to config.log, and then calls config.status.
14382 # config.status does its own redirection, appending to config.log.
14383 # Unfortunately, on DOS this fails, as config.log is still kept open
14384 # by configure, so config.status won't be able to write to it; its
14385 # output is simply discarded.  So we exec the FD to /dev/null,
14386 # effectively closing config.log, so it can be properly (re)opened and
14387 # appended to by config.status.  When coming back to configure, we
14388 # need to make the FD available again.
14389 if test "$no_create" != yes; then
14390   ac_cs_success=:
14391   ac_config_status_args=
14392   test "$silent" = yes &&
14393     ac_config_status_args="$ac_config_status_args --quiet"
14394   exec 5>/dev/null
14395   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14396   exec 5>>config.log
14397   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14398   # would make configure fail if this is the last instruction.
14399   $ac_cs_success || as_fn_exit 1
14400 fi
14401 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14402   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14403 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14404 fi
14405
14406
14407
14408 echo ""
14409 echo " Json-GLib - $VERSION (${JSON_RELEASE_STATUS})"
14410 echo ""
14411 echo " • Prefix: ${prefix}"
14412 echo ""
14413 echo " • Debug level: ${enable_debug}"
14414 echo " • Compiler flags: ${MAINTAINER_CFLAGS}"
14415 echo " • Use shave: ${use_shave}"
14416 echo ""
14417 echo " • API reference: ${enable_gtk_doc}"
14418 echo ""
14419 echo " • Enable test suite: ${enable_glibtest}"
14420 echo " • Build introspection data: ${enable_introspection}"
14421 echo ""