Merge branch 'master' into debian
[moonshot-ui.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for Moonshot 0.0.1.
4 #
5 # Report bugs to <BUG-REPORT-ADDRESS>.
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 BUG-REPORT-ADDRESS
234 $0: about your system, including any error possibly output
235 $0: before this message. Then install a modern shell, or
236 $0: manually run the script under such a shell if you do
237 $0: have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$1; test $as_status -eq 0 && as_status=1
370   if test "$4"; then
371     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373   fi
374   $as_echo "$as_me: error: $2" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538   # Remove one level of quotation (which was required for Make).
539   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540   ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545   # Discard the --no-reexec flag, and continue.
546   shift
547 elif test "X$1" = X--fallback-echo; then
548   # Avoid inline document here, it may be left over
549   :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551   # Yippee, $ECHO works!
552   :
553 else
554   # Restart under the correct shell.
555   exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559   # used as fallback echo
560   shift
561   cat <<_LT_EOF
562 $*
563 _LT_EOF
564   exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571 if test -z "$lt_ECHO"; then
572   if test "X${echo_test_string+set}" != Xset; then
573     # find a string as large as possible, as long as the shell can cope with it
574     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578       then
579         break
580       fi
581     done
582   fi
583
584   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586      test "X$echo_testing_string" = "X$echo_test_string"; then
587     :
588   else
589     # The Solaris, AIX, and Digital Unix default echo programs unquote
590     # backslashes.  This makes it impossible to quote backslashes using
591     #   echo "$something" | sed 's/\\/\\\\/g'
592     #
593     # So, first we look for a working echo in the user's PATH.
594
595     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596     for dir in $PATH /usr/ucb; do
597       IFS="$lt_save_ifs"
598       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601          test "X$echo_testing_string" = "X$echo_test_string"; then
602         ECHO="$dir/echo"
603         break
604       fi
605     done
606     IFS="$lt_save_ifs"
607
608     if test "X$ECHO" = Xecho; then
609       # We didn't find a better echo, so look for alternatives.
610       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612          test "X$echo_testing_string" = "X$echo_test_string"; then
613         # This shell has a builtin print -r that does the trick.
614         ECHO='print -r'
615       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616            test "X$CONFIG_SHELL" != X/bin/ksh; then
617         # If we have ksh, try running configure again with it.
618         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619         export ORIGINAL_CONFIG_SHELL
620         CONFIG_SHELL=/bin/ksh
621         export CONFIG_SHELL
622         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623       else
624         # Try using printf.
625         ECHO='printf %s\n'
626         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628            test "X$echo_testing_string" = "X$echo_test_string"; then
629           # Cool, printf works
630           :
631         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632              test "X$echo_testing_string" = 'X\t' &&
633              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634              test "X$echo_testing_string" = "X$echo_test_string"; then
635           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636           export CONFIG_SHELL
637           SHELL="$CONFIG_SHELL"
638           export SHELL
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641              test "X$echo_testing_string" = 'X\t' &&
642              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643              test "X$echo_testing_string" = "X$echo_test_string"; then
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         else
646           # maybe with a smaller string...
647           prev=:
648
649           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651             then
652               break
653             fi
654             prev="$cmd"
655           done
656
657           if test "$prev" != 'sed 50q "$0"'; then
658             echo_test_string=`eval $prev`
659             export echo_test_string
660             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661           else
662             # Oops.  We lost completely, so just stick with echo.
663             ECHO=echo
664           fi
665         fi
666       fi
667     fi
668   fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680 as_awk_strverscmp='
681   # Use only awk features that work with 7th edition Unix awk (1978).
682   # My, what an old awk you have, Mr. Solaris!
683   END {
684     while (length(v1) && length(v2)) {
685       # Set d1 to be the next thing to compare from v1, and likewise for d2.
686       # Normally this is a single character, but if v1 and v2 contain digits,
687       # compare them as integers and fractions as strverscmp does.
688       if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
689         # Split v1 and v2 into their leading digit string components d1 and d2,
690         # and advance v1 and v2 past the leading digit strings.
691         for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
692         for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
693         d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
694         d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
695         if (d1 ~ /^0/) {
696           if (d2 ~ /^0/) {
697             # Compare two fractions.
698             while (d1 ~ /^0/ && d2 ~ /^0/) {
699               d1 = substr(d1, 2); len1--
700               d2 = substr(d2, 2); len2--
701             }
702             if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
703               # The two components differ in length, and the common prefix
704               # contains only leading zeros.  Consider the longer to be less.
705               d1 = -len1
706               d2 = -len2
707             } else {
708               # Otherwise, compare as strings.
709               d1 = "x" d1
710               d2 = "x" d2
711             }
712           } else {
713             # A fraction is less than an integer.
714             exit 1
715           }
716         } else {
717           if (d2 ~ /^0/) {
718             # An integer is greater than a fraction.
719             exit 2
720           } else {
721             # Compare two integers.
722             d1 += 0
723             d2 += 0
724           }
725         }
726       } else {
727         # The normal case, without worrying about digits.
728         d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
729         d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
730       }
731       if (d1 < d2) exit 1
732       if (d1 > d2) exit 2
733     }
734     # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
735     # which mishandles some comparisons of empty strings to integers.
736     if (length(v2)) exit 1
737     if (length(v1)) exit 2
738   }
739 '
740
741 test -n "$DJDIR" || exec 7<&0 </dev/null
742 exec 6>&1
743
744 # Name of the host.
745 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
746 # so uname gets run too.
747 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
748
749 #
750 # Initializations.
751 #
752 ac_default_prefix=/usr/local
753 ac_clean_files=
754 ac_config_libobj_dir=.
755 LIBOBJS=
756 cross_compiling=no
757 subdirs=
758 MFLAGS=
759 MAKEFLAGS=
760
761 # Identity of this package.
762 PACKAGE_NAME='Moonshot'
763 PACKAGE_TARNAME='moonshot'
764 PACKAGE_VERSION='0.0.1'
765 PACKAGE_STRING='Moonshot 0.0.1'
766 PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
767 PACKAGE_URL=''
768
769 ac_unique_file="configure.ac"
770 # Factoring default headers for most tests.
771 ac_includes_default="\
772 #include <stdio.h>
773 #ifdef HAVE_SYS_TYPES_H
774 # include <sys/types.h>
775 #endif
776 #ifdef HAVE_SYS_STAT_H
777 # include <sys/stat.h>
778 #endif
779 #ifdef STDC_HEADERS
780 # include <stdlib.h>
781 # include <stddef.h>
782 #else
783 # ifdef HAVE_STDLIB_H
784 #  include <stdlib.h>
785 # endif
786 #endif
787 #ifdef HAVE_STRING_H
788 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
789 #  include <memory.h>
790 # endif
791 # include <string.h>
792 #endif
793 #ifdef HAVE_STRINGS_H
794 # include <strings.h>
795 #endif
796 #ifdef HAVE_INTTYPES_H
797 # include <inttypes.h>
798 #endif
799 #ifdef HAVE_STDINT_H
800 # include <stdint.h>
801 #endif
802 #ifdef HAVE_UNISTD_H
803 # include <unistd.h>
804 #endif"
805
806 gt_needs=
807 ac_subst_vars='am__EXEEXT_FALSE
808 am__EXEEXT_TRUE
809 LTLIBOBJS
810 LIBOBJS
811 GETTEXT_PACKAGE
812 POSUB
813 LTLIBINTL
814 LIBINTL
815 INTLLIBS
816 LTLIBICONV
817 LIBICONV
818 INTL_MACOSX_LIBS
819 XGETTEXT_EXTRA_OPTIONS
820 MSGMERGE
821 XGETTEXT_015
822 XGETTEXT
823 GMSGFMT_015
824 MSGFMT_015
825 GMSGFMT
826 MSGFMT
827 GETTEXT_MACRO_VERSION
828 USE_NLS
829 libmoonshot_LIBS
830 libmoonshot_CFLAGS
831 moonshot_LIBS
832 moonshot_CFLAGS
833 MOONSHOT_WEBP
834 MOONSHOT_APP
835 UPDATE_DESKTOP_DATABASE
836 UPDATE_MIME_DATABASE
837 WIX_LIGHT
838 WIX_CANDLE
839 IMAGEMAGICK_CONVERT
840 MSVC_LIB
841 MIDL
842 MIDL_WRAPPER
843 MSRPC_LIBS
844 MSRPC_CFLAGS
845 VALAC
846 IPC_DBUS_FALSE
847 IPC_DBUS_TRUE
848 IPC_MSRPC_FALSE
849 IPC_MSRPC_TRUE
850 OS_WIN32_FALSE
851 OS_WIN32_TRUE
852 OS_LINUX_FALSE
853 OS_LINUX_TRUE
854 PKG_CONFIG_LIBDIR
855 PKG_CONFIG_PATH
856 PKG_CONFIG
857 CPP
858 OTOOL64
859 OTOOL
860 LIPO
861 NMEDIT
862 DSYMUTIL
863 lt_ECHO
864 RANLIB
865 AR
866 LN_S
867 NM
868 ac_ct_DUMPBIN
869 DUMPBIN
870 LD
871 FGREP
872 EGREP
873 GREP
874 SED
875 am__fastdepCC_FALSE
876 am__fastdepCC_TRUE
877 CCDEPMODE
878 AMDEPBACKSLASH
879 AMDEP_FALSE
880 AMDEP_TRUE
881 am__quote
882 am__include
883 DEPDIR
884 OBJEXT
885 EXEEXT
886 ac_ct_CC
887 CPPFLAGS
888 LDFLAGS
889 CFLAGS
890 CC
891 host_os
892 host_vendor
893 host_cpu
894 host
895 build_os
896 build_vendor
897 build_cpu
898 build
899 LIBTOOL
900 OBJDUMP
901 DLLTOOL
902 AS
903 MAINT
904 MAINTAINER_MODE_FALSE
905 MAINTAINER_MODE_TRUE
906 AM_BACKSLASH
907 AM_DEFAULT_VERBOSITY
908 am__untar
909 am__tar
910 AMTAR
911 am__leading_dot
912 SET_MAKE
913 AWK
914 mkdir_p
915 MKDIR_P
916 INSTALL_STRIP_PROGRAM
917 STRIP
918 install_sh
919 MAKEINFO
920 AUTOHEADER
921 AUTOMAKE
922 AUTOCONF
923 ACLOCAL
924 VERSION
925 PACKAGE
926 CYGPATH_W
927 am__isrc
928 INSTALL_DATA
929 INSTALL_SCRIPT
930 INSTALL_PROGRAM
931 target_alias
932 host_alias
933 build_alias
934 LIBS
935 ECHO_T
936 ECHO_N
937 ECHO_C
938 DEFS
939 mandir
940 localedir
941 libdir
942 psdir
943 pdfdir
944 dvidir
945 htmldir
946 infodir
947 docdir
948 oldincludedir
949 includedir
950 localstatedir
951 sharedstatedir
952 sysconfdir
953 datadir
954 datarootdir
955 libexecdir
956 sbindir
957 bindir
958 program_transform_name
959 prefix
960 exec_prefix
961 PACKAGE_URL
962 PACKAGE_BUGREPORT
963 PACKAGE_STRING
964 PACKAGE_VERSION
965 PACKAGE_TARNAME
966 PACKAGE_NAME
967 PATH_SEPARATOR
968 SHELL'
969 ac_subst_files=''
970 ac_user_opts='
971 enable_option_checking
972 enable_silent_rules
973 enable_maintainer_mode
974 enable_shared
975 enable_static
976 with_pic
977 enable_fast_install
978 enable_dependency_tracking
979 with_gnu_ld
980 enable_libtool_lock
981 enable_nls
982 enable_rpath
983 with_libiconv_prefix
984 with_libintl_prefix
985 '
986       ac_precious_vars='build_alias
987 host_alias
988 target_alias
989 CC
990 CFLAGS
991 LDFLAGS
992 LIBS
993 CPPFLAGS
994 CPP
995 PKG_CONFIG
996 PKG_CONFIG_PATH
997 PKG_CONFIG_LIBDIR
998 moonshot_CFLAGS
999 moonshot_LIBS
1000 libmoonshot_CFLAGS
1001 libmoonshot_LIBS'
1002
1003
1004 # Initialize some variables set by options.
1005 ac_init_help=
1006 ac_init_version=false
1007 ac_unrecognized_opts=
1008 ac_unrecognized_sep=
1009 # The variables have the same names as the options, with
1010 # dashes changed to underlines.
1011 cache_file=/dev/null
1012 exec_prefix=NONE
1013 no_create=
1014 no_recursion=
1015 prefix=NONE
1016 program_prefix=NONE
1017 program_suffix=NONE
1018 program_transform_name=s,x,x,
1019 silent=
1020 site=
1021 srcdir=
1022 verbose=
1023 x_includes=NONE
1024 x_libraries=NONE
1025
1026 # Installation directory options.
1027 # These are left unexpanded so users can "make install exec_prefix=/foo"
1028 # and all the variables that are supposed to be based on exec_prefix
1029 # by default will actually change.
1030 # Use braces instead of parens because sh, perl, etc. also accept them.
1031 # (The list follows the same order as the GNU Coding Standards.)
1032 bindir='${exec_prefix}/bin'
1033 sbindir='${exec_prefix}/sbin'
1034 libexecdir='${exec_prefix}/libexec'
1035 datarootdir='${prefix}/share'
1036 datadir='${datarootdir}'
1037 sysconfdir='${prefix}/etc'
1038 sharedstatedir='${prefix}/com'
1039 localstatedir='${prefix}/var'
1040 includedir='${prefix}/include'
1041 oldincludedir='/usr/include'
1042 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1043 infodir='${datarootdir}/info'
1044 htmldir='${docdir}'
1045 dvidir='${docdir}'
1046 pdfdir='${docdir}'
1047 psdir='${docdir}'
1048 libdir='${exec_prefix}/lib'
1049 localedir='${datarootdir}/locale'
1050 mandir='${datarootdir}/man'
1051
1052 ac_prev=
1053 ac_dashdash=
1054 for ac_option
1055 do
1056   # If the previous option needs an argument, assign it.
1057   if test -n "$ac_prev"; then
1058     eval $ac_prev=\$ac_option
1059     ac_prev=
1060     continue
1061   fi
1062
1063   case $ac_option in
1064   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1065   *=)   ac_optarg= ;;
1066   *)    ac_optarg=yes ;;
1067   esac
1068
1069   # Accept the important Cygnus configure options, so we can diagnose typos.
1070
1071   case $ac_dashdash$ac_option in
1072   --)
1073     ac_dashdash=yes ;;
1074
1075   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1076     ac_prev=bindir ;;
1077   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1078     bindir=$ac_optarg ;;
1079
1080   -build | --build | --buil | --bui | --bu)
1081     ac_prev=build_alias ;;
1082   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1083     build_alias=$ac_optarg ;;
1084
1085   -cache-file | --cache-file | --cache-fil | --cache-fi \
1086   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1087     ac_prev=cache_file ;;
1088   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1089   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1090     cache_file=$ac_optarg ;;
1091
1092   --config-cache | -C)
1093     cache_file=config.cache ;;
1094
1095   -datadir | --datadir | --datadi | --datad)
1096     ac_prev=datadir ;;
1097   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1098     datadir=$ac_optarg ;;
1099
1100   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1101   | --dataroo | --dataro | --datar)
1102     ac_prev=datarootdir ;;
1103   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1104   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1105     datarootdir=$ac_optarg ;;
1106
1107   -disable-* | --disable-*)
1108     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1109     # Reject names that are not valid shell variable names.
1110     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111       as_fn_error $? "invalid feature name: $ac_useropt"
1112     ac_useropt_orig=$ac_useropt
1113     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114     case $ac_user_opts in
1115       *"
1116 "enable_$ac_useropt"
1117 "*) ;;
1118       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1119          ac_unrecognized_sep=', ';;
1120     esac
1121     eval enable_$ac_useropt=no ;;
1122
1123   -docdir | --docdir | --docdi | --doc | --do)
1124     ac_prev=docdir ;;
1125   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1126     docdir=$ac_optarg ;;
1127
1128   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1129     ac_prev=dvidir ;;
1130   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1131     dvidir=$ac_optarg ;;
1132
1133   -enable-* | --enable-*)
1134     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1135     # Reject names that are not valid shell variable names.
1136     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137       as_fn_error $? "invalid feature name: $ac_useropt"
1138     ac_useropt_orig=$ac_useropt
1139     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140     case $ac_user_opts in
1141       *"
1142 "enable_$ac_useropt"
1143 "*) ;;
1144       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1145          ac_unrecognized_sep=', ';;
1146     esac
1147     eval enable_$ac_useropt=\$ac_optarg ;;
1148
1149   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1150   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1151   | --exec | --exe | --ex)
1152     ac_prev=exec_prefix ;;
1153   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1154   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1155   | --exec=* | --exe=* | --ex=*)
1156     exec_prefix=$ac_optarg ;;
1157
1158   -gas | --gas | --ga | --g)
1159     # Obsolete; use --with-gas.
1160     with_gas=yes ;;
1161
1162   -help | --help | --hel | --he | -h)
1163     ac_init_help=long ;;
1164   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1165     ac_init_help=recursive ;;
1166   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1167     ac_init_help=short ;;
1168
1169   -host | --host | --hos | --ho)
1170     ac_prev=host_alias ;;
1171   -host=* | --host=* | --hos=* | --ho=*)
1172     host_alias=$ac_optarg ;;
1173
1174   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1175     ac_prev=htmldir ;;
1176   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1177   | --ht=*)
1178     htmldir=$ac_optarg ;;
1179
1180   -includedir | --includedir | --includedi | --included | --include \
1181   | --includ | --inclu | --incl | --inc)
1182     ac_prev=includedir ;;
1183   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1184   | --includ=* | --inclu=* | --incl=* | --inc=*)
1185     includedir=$ac_optarg ;;
1186
1187   -infodir | --infodir | --infodi | --infod | --info | --inf)
1188     ac_prev=infodir ;;
1189   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1190     infodir=$ac_optarg ;;
1191
1192   -libdir | --libdir | --libdi | --libd)
1193     ac_prev=libdir ;;
1194   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1195     libdir=$ac_optarg ;;
1196
1197   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1198   | --libexe | --libex | --libe)
1199     ac_prev=libexecdir ;;
1200   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1201   | --libexe=* | --libex=* | --libe=*)
1202     libexecdir=$ac_optarg ;;
1203
1204   -localedir | --localedir | --localedi | --localed | --locale)
1205     ac_prev=localedir ;;
1206   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1207     localedir=$ac_optarg ;;
1208
1209   -localstatedir | --localstatedir | --localstatedi | --localstated \
1210   | --localstate | --localstat | --localsta | --localst | --locals)
1211     ac_prev=localstatedir ;;
1212   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1213   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1214     localstatedir=$ac_optarg ;;
1215
1216   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1217     ac_prev=mandir ;;
1218   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1219     mandir=$ac_optarg ;;
1220
1221   -nfp | --nfp | --nf)
1222     # Obsolete; use --without-fp.
1223     with_fp=no ;;
1224
1225   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1226   | --no-cr | --no-c | -n)
1227     no_create=yes ;;
1228
1229   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1230   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1231     no_recursion=yes ;;
1232
1233   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1234   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1235   | --oldin | --oldi | --old | --ol | --o)
1236     ac_prev=oldincludedir ;;
1237   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1238   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1239   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1240     oldincludedir=$ac_optarg ;;
1241
1242   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1243     ac_prev=prefix ;;
1244   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1245     prefix=$ac_optarg ;;
1246
1247   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1248   | --program-pre | --program-pr | --program-p)
1249     ac_prev=program_prefix ;;
1250   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1251   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1252     program_prefix=$ac_optarg ;;
1253
1254   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1255   | --program-suf | --program-su | --program-s)
1256     ac_prev=program_suffix ;;
1257   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1258   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1259     program_suffix=$ac_optarg ;;
1260
1261   -program-transform-name | --program-transform-name \
1262   | --program-transform-nam | --program-transform-na \
1263   | --program-transform-n | --program-transform- \
1264   | --program-transform | --program-transfor \
1265   | --program-transfo | --program-transf \
1266   | --program-trans | --program-tran \
1267   | --progr-tra | --program-tr | --program-t)
1268     ac_prev=program_transform_name ;;
1269   -program-transform-name=* | --program-transform-name=* \
1270   | --program-transform-nam=* | --program-transform-na=* \
1271   | --program-transform-n=* | --program-transform-=* \
1272   | --program-transform=* | --program-transfor=* \
1273   | --program-transfo=* | --program-transf=* \
1274   | --program-trans=* | --program-tran=* \
1275   | --progr-tra=* | --program-tr=* | --program-t=*)
1276     program_transform_name=$ac_optarg ;;
1277
1278   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1279     ac_prev=pdfdir ;;
1280   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1281     pdfdir=$ac_optarg ;;
1282
1283   -psdir | --psdir | --psdi | --psd | --ps)
1284     ac_prev=psdir ;;
1285   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1286     psdir=$ac_optarg ;;
1287
1288   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1289   | -silent | --silent | --silen | --sile | --sil)
1290     silent=yes ;;
1291
1292   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1293     ac_prev=sbindir ;;
1294   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1295   | --sbi=* | --sb=*)
1296     sbindir=$ac_optarg ;;
1297
1298   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1299   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1300   | --sharedst | --shareds | --shared | --share | --shar \
1301   | --sha | --sh)
1302     ac_prev=sharedstatedir ;;
1303   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1304   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1305   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1306   | --sha=* | --sh=*)
1307     sharedstatedir=$ac_optarg ;;
1308
1309   -site | --site | --sit)
1310     ac_prev=site ;;
1311   -site=* | --site=* | --sit=*)
1312     site=$ac_optarg ;;
1313
1314   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1315     ac_prev=srcdir ;;
1316   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1317     srcdir=$ac_optarg ;;
1318
1319   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1320   | --syscon | --sysco | --sysc | --sys | --sy)
1321     ac_prev=sysconfdir ;;
1322   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1323   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1324     sysconfdir=$ac_optarg ;;
1325
1326   -target | --target | --targe | --targ | --tar | --ta | --t)
1327     ac_prev=target_alias ;;
1328   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1329     target_alias=$ac_optarg ;;
1330
1331   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1332     verbose=yes ;;
1333
1334   -version | --version | --versio | --versi | --vers | -V)
1335     ac_init_version=: ;;
1336
1337   -with-* | --with-*)
1338     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1339     # Reject names that are not valid shell variable names.
1340     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1341       as_fn_error $? "invalid package name: $ac_useropt"
1342     ac_useropt_orig=$ac_useropt
1343     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1344     case $ac_user_opts in
1345       *"
1346 "with_$ac_useropt"
1347 "*) ;;
1348       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1349          ac_unrecognized_sep=', ';;
1350     esac
1351     eval with_$ac_useropt=\$ac_optarg ;;
1352
1353   -without-* | --without-*)
1354     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1355     # Reject names that are not valid shell variable names.
1356     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1357       as_fn_error $? "invalid package name: $ac_useropt"
1358     ac_useropt_orig=$ac_useropt
1359     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1360     case $ac_user_opts in
1361       *"
1362 "with_$ac_useropt"
1363 "*) ;;
1364       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1365          ac_unrecognized_sep=', ';;
1366     esac
1367     eval with_$ac_useropt=no ;;
1368
1369   --x)
1370     # Obsolete; use --with-x.
1371     with_x=yes ;;
1372
1373   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1374   | --x-incl | --x-inc | --x-in | --x-i)
1375     ac_prev=x_includes ;;
1376   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1377   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1378     x_includes=$ac_optarg ;;
1379
1380   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1381   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1382     ac_prev=x_libraries ;;
1383   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1384   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1385     x_libraries=$ac_optarg ;;
1386
1387   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1388 Try \`$0 --help' for more information"
1389     ;;
1390
1391   *=*)
1392     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1393     # Reject names that are not valid shell variable names.
1394     case $ac_envvar in #(
1395       '' | [0-9]* | *[!_$as_cr_alnum]* )
1396       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1397     esac
1398     eval $ac_envvar=\$ac_optarg
1399     export $ac_envvar ;;
1400
1401   *)
1402     # FIXME: should be removed in autoconf 3.0.
1403     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1404     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1405       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1406     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1407     ;;
1408
1409   esac
1410 done
1411
1412 if test -n "$ac_prev"; then
1413   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1414   as_fn_error $? "missing argument to $ac_option"
1415 fi
1416
1417 if test -n "$ac_unrecognized_opts"; then
1418   case $enable_option_checking in
1419     no) ;;
1420     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1421     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1422   esac
1423 fi
1424
1425 # Check all directory arguments for consistency.
1426 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1427                 datadir sysconfdir sharedstatedir localstatedir includedir \
1428                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1429                 libdir localedir mandir
1430 do
1431   eval ac_val=\$$ac_var
1432   # Remove trailing slashes.
1433   case $ac_val in
1434     */ )
1435       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1436       eval $ac_var=\$ac_val;;
1437   esac
1438   # Be sure to have absolute directory names.
1439   case $ac_val in
1440     [\\/$]* | ?:[\\/]* )  continue;;
1441     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1442   esac
1443   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1444 done
1445
1446 # There might be people who depend on the old broken behavior: `$host'
1447 # used to hold the argument of --host etc.
1448 # FIXME: To remove some day.
1449 build=$build_alias
1450 host=$host_alias
1451 target=$target_alias
1452
1453 # FIXME: To remove some day.
1454 if test "x$host_alias" != x; then
1455   if test "x$build_alias" = x; then
1456     cross_compiling=maybe
1457     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1458     If a cross compiler is detected then cross compile mode will be used" >&2
1459   elif test "x$build_alias" != "x$host_alias"; then
1460     cross_compiling=yes
1461   fi
1462 fi
1463
1464 ac_tool_prefix=
1465 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1466
1467 test "$silent" = yes && exec 6>/dev/null
1468
1469
1470 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1471 ac_ls_di=`ls -di .` &&
1472 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1473   as_fn_error $? "working directory cannot be determined"
1474 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1475   as_fn_error $? "pwd does not report name of working directory"
1476
1477
1478 # Find the source files, if location was not specified.
1479 if test -z "$srcdir"; then
1480   ac_srcdir_defaulted=yes
1481   # Try the directory containing this script, then the parent directory.
1482   ac_confdir=`$as_dirname -- "$as_myself" ||
1483 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1484          X"$as_myself" : 'X\(//\)[^/]' \| \
1485          X"$as_myself" : 'X\(//\)$' \| \
1486          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1487 $as_echo X"$as_myself" |
1488     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1489             s//\1/
1490             q
1491           }
1492           /^X\(\/\/\)[^/].*/{
1493             s//\1/
1494             q
1495           }
1496           /^X\(\/\/\)$/{
1497             s//\1/
1498             q
1499           }
1500           /^X\(\/\).*/{
1501             s//\1/
1502             q
1503           }
1504           s/.*/./; q'`
1505   srcdir=$ac_confdir
1506   if test ! -r "$srcdir/$ac_unique_file"; then
1507     srcdir=..
1508   fi
1509 else
1510   ac_srcdir_defaulted=no
1511 fi
1512 if test ! -r "$srcdir/$ac_unique_file"; then
1513   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1514   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1515 fi
1516 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1517 ac_abs_confdir=`(
1518         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1519         pwd)`
1520 # When building in place, set srcdir=.
1521 if test "$ac_abs_confdir" = "$ac_pwd"; then
1522   srcdir=.
1523 fi
1524 # Remove unnecessary trailing slashes from srcdir.
1525 # Double slashes in file names in object file debugging info
1526 # mess up M-x gdb in Emacs.
1527 case $srcdir in
1528 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1529 esac
1530 for ac_var in $ac_precious_vars; do
1531   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1532   eval ac_env_${ac_var}_value=\$${ac_var}
1533   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1534   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1535 done
1536
1537 #
1538 # Report the --help message.
1539 #
1540 if test "$ac_init_help" = "long"; then
1541   # Omit some internal or obsolete options to make the list less imposing.
1542   # This message is too long to be a string in the A/UX 3.1 sh.
1543   cat <<_ACEOF
1544 \`configure' configures Moonshot 0.0.1 to adapt to many kinds of systems.
1545
1546 Usage: $0 [OPTION]... [VAR=VALUE]...
1547
1548 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1549 VAR=VALUE.  See below for descriptions of some of the useful variables.
1550
1551 Defaults for the options are specified in brackets.
1552
1553 Configuration:
1554   -h, --help              display this help and exit
1555       --help=short        display options specific to this package
1556       --help=recursive    display the short help of all the included packages
1557   -V, --version           display version information and exit
1558   -q, --quiet, --silent   do not print \`checking ...' messages
1559       --cache-file=FILE   cache test results in FILE [disabled]
1560   -C, --config-cache      alias for \`--cache-file=config.cache'
1561   -n, --no-create         do not create output files
1562       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1563
1564 Installation directories:
1565   --prefix=PREFIX         install architecture-independent files in PREFIX
1566                           [$ac_default_prefix]
1567   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1568                           [PREFIX]
1569
1570 By default, \`make install' will install all the files in
1571 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1572 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1573 for instance \`--prefix=\$HOME'.
1574
1575 For better control, use the options below.
1576
1577 Fine tuning of the installation directories:
1578   --bindir=DIR            user executables [EPREFIX/bin]
1579   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1580   --libexecdir=DIR        program executables [EPREFIX/libexec]
1581   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1582   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1583   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1584   --libdir=DIR            object code libraries [EPREFIX/lib]
1585   --includedir=DIR        C header files [PREFIX/include]
1586   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1587   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1588   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1589   --infodir=DIR           info documentation [DATAROOTDIR/info]
1590   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1591   --mandir=DIR            man documentation [DATAROOTDIR/man]
1592   --docdir=DIR            documentation root [DATAROOTDIR/doc/moonshot]
1593   --htmldir=DIR           html documentation [DOCDIR]
1594   --dvidir=DIR            dvi documentation [DOCDIR]
1595   --pdfdir=DIR            pdf documentation [DOCDIR]
1596   --psdir=DIR             ps documentation [DOCDIR]
1597 _ACEOF
1598
1599   cat <<\_ACEOF
1600
1601 Program names:
1602   --program-prefix=PREFIX            prepend PREFIX to installed program names
1603   --program-suffix=SUFFIX            append SUFFIX to installed program names
1604   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1605
1606 System types:
1607   --build=BUILD     configure for building on BUILD [guessed]
1608   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1609 _ACEOF
1610 fi
1611
1612 if test -n "$ac_init_help"; then
1613   case $ac_init_help in
1614      short | recursive ) echo "Configuration of Moonshot 0.0.1:";;
1615    esac
1616   cat <<\_ACEOF
1617
1618 Optional Features:
1619   --disable-option-checking  ignore unrecognized --enable/--with options
1620   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1621   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1622   --enable-silent-rules          less verbose build output (undo: `make V=1')
1623   --disable-silent-rules         verbose build output (undo: `make V=0')
1624   --disable-maintainer-mode  disable make rules and dependencies not useful
1625                           (and sometimes confusing) to the casual installer
1626   --enable-shared[=PKGS]  build shared libraries [default=yes]
1627   --enable-static[=PKGS]  build static libraries [default=yes]
1628   --enable-fast-install[=PKGS]
1629                           optimize for fast installation [default=yes]
1630   --disable-dependency-tracking  speeds up one-time build
1631   --enable-dependency-tracking   do not reject slow dependency extractors
1632   --disable-libtool-lock  avoid locking (might break parallel builds)
1633   --disable-nls           do not use Native Language Support
1634   --disable-rpath         do not hardcode runtime library paths
1635
1636 Optional Packages:
1637   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1638   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1639   --with-pic              try to use only PIC/non-PIC objects [default=use
1640                           both]
1641   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1642   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1643   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1644   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1645   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1646   --without-libintl-prefix     don't search for libintl in includedir and libdir
1647
1648 Some influential environment variables:
1649   CC          C compiler command
1650   CFLAGS      C compiler flags
1651   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1652               nonstandard directory <lib dir>
1653   LIBS        libraries to pass to the linker, e.g. -l<library>
1654   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1655               you have headers in a nonstandard directory <include dir>
1656   CPP         C preprocessor
1657   PKG_CONFIG  path to pkg-config utility
1658   PKG_CONFIG_PATH
1659               directories to add to pkg-config's search path
1660   PKG_CONFIG_LIBDIR
1661               path overriding pkg-config's built-in search path
1662   moonshot_CFLAGS
1663               C compiler flags for moonshot, overriding pkg-config
1664   moonshot_LIBS
1665               linker flags for moonshot, overriding pkg-config
1666   libmoonshot_CFLAGS
1667               C compiler flags for libmoonshot, overriding pkg-config
1668   libmoonshot_LIBS
1669               linker flags for libmoonshot, overriding pkg-config
1670
1671 Use these variables to override the choices made by `configure' or to help
1672 it to find libraries and programs with nonstandard names/locations.
1673
1674 Report bugs to <BUG-REPORT-ADDRESS>.
1675 _ACEOF
1676 ac_status=$?
1677 fi
1678
1679 if test "$ac_init_help" = "recursive"; then
1680   # If there are subdirs, report their specific --help.
1681   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1682     test -d "$ac_dir" ||
1683       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1684       continue
1685     ac_builddir=.
1686
1687 case "$ac_dir" in
1688 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1689 *)
1690   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1691   # A ".." for each directory in $ac_dir_suffix.
1692   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1693   case $ac_top_builddir_sub in
1694   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1695   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1696   esac ;;
1697 esac
1698 ac_abs_top_builddir=$ac_pwd
1699 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1700 # for backward compatibility:
1701 ac_top_builddir=$ac_top_build_prefix
1702
1703 case $srcdir in
1704   .)  # We are building in place.
1705     ac_srcdir=.
1706     ac_top_srcdir=$ac_top_builddir_sub
1707     ac_abs_top_srcdir=$ac_pwd ;;
1708   [\\/]* | ?:[\\/]* )  # Absolute name.
1709     ac_srcdir=$srcdir$ac_dir_suffix;
1710     ac_top_srcdir=$srcdir
1711     ac_abs_top_srcdir=$srcdir ;;
1712   *) # Relative name.
1713     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1714     ac_top_srcdir=$ac_top_build_prefix$srcdir
1715     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1716 esac
1717 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1718
1719     cd "$ac_dir" || { ac_status=$?; continue; }
1720     # Check for guested configure.
1721     if test -f "$ac_srcdir/configure.gnu"; then
1722       echo &&
1723       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1724     elif test -f "$ac_srcdir/configure"; then
1725       echo &&
1726       $SHELL "$ac_srcdir/configure" --help=recursive
1727     else
1728       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1729     fi || ac_status=$?
1730     cd "$ac_pwd" || { ac_status=$?; break; }
1731   done
1732 fi
1733
1734 test -n "$ac_init_help" && exit $ac_status
1735 if $ac_init_version; then
1736   cat <<\_ACEOF
1737 Moonshot configure 0.0.1
1738 generated by GNU Autoconf 2.67
1739
1740 Copyright (C) 2010 Free Software Foundation, Inc.
1741 This configure script is free software; the Free Software Foundation
1742 gives unlimited permission to copy, distribute and modify it.
1743 _ACEOF
1744   exit
1745 fi
1746
1747 ## ------------------------ ##
1748 ## Autoconf initialization. ##
1749 ## ------------------------ ##
1750
1751 # ac_fn_c_try_compile LINENO
1752 # --------------------------
1753 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1754 ac_fn_c_try_compile ()
1755 {
1756   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757   rm -f conftest.$ac_objext
1758   if { { ac_try="$ac_compile"
1759 case "(($ac_try" in
1760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761   *) ac_try_echo=$ac_try;;
1762 esac
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765   (eval "$ac_compile") 2>conftest.err
1766   ac_status=$?
1767   if test -s conftest.err; then
1768     grep -v '^ *+' conftest.err >conftest.er1
1769     cat conftest.er1 >&5
1770     mv -f conftest.er1 conftest.err
1771   fi
1772   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773   test $ac_status = 0; } && {
1774          test -z "$ac_c_werror_flag" ||
1775          test ! -s conftest.err
1776        } && test -s conftest.$ac_objext; then :
1777   ac_retval=0
1778 else
1779   $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1781
1782         ac_retval=1
1783 fi
1784   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785   as_fn_set_status $ac_retval
1786
1787 } # ac_fn_c_try_compile
1788
1789 # ac_fn_c_try_link LINENO
1790 # -----------------------
1791 # Try to link conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_c_try_link ()
1793 {
1794   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795   rm -f conftest.$ac_objext conftest$ac_exeext
1796   if { { ac_try="$ac_link"
1797 case "(($ac_try" in
1798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799   *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803   (eval "$ac_link") 2>conftest.err
1804   ac_status=$?
1805   if test -s conftest.err; then
1806     grep -v '^ *+' conftest.err >conftest.er1
1807     cat conftest.er1 >&5
1808     mv -f conftest.er1 conftest.err
1809   fi
1810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811   test $ac_status = 0; } && {
1812          test -z "$ac_c_werror_flag" ||
1813          test ! -s conftest.err
1814        } && test -s conftest$ac_exeext && {
1815          test "$cross_compiling" = yes ||
1816          $as_test_x conftest$ac_exeext
1817        }; then :
1818   ac_retval=0
1819 else
1820   $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823         ac_retval=1
1824 fi
1825   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1826   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1827   # interfere with the next link command; also delete a directory that is
1828   # left behind by Apple's compiler.  We do this before executing the actions.
1829   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1830   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1831   as_fn_set_status $ac_retval
1832
1833 } # ac_fn_c_try_link
1834
1835 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1836 # -------------------------------------------------------
1837 # Tests whether HEADER exists and can be compiled using the include files in
1838 # INCLUDES, setting the cache variable VAR accordingly.
1839 ac_fn_c_check_header_compile ()
1840 {
1841   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if eval "test \"\${$3+set}\"" = set; then :
1845   $as_echo_n "(cached) " >&6
1846 else
1847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h.  */
1849 $4
1850 #include <$2>
1851 _ACEOF
1852 if ac_fn_c_try_compile "$LINENO"; then :
1853   eval "$3=yes"
1854 else
1855   eval "$3=no"
1856 fi
1857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1858 fi
1859 eval ac_res=\$$3
1860                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861 $as_echo "$ac_res" >&6; }
1862   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863
1864 } # ac_fn_c_check_header_compile
1865
1866 # ac_fn_c_try_cpp LINENO
1867 # ----------------------
1868 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1869 ac_fn_c_try_cpp ()
1870 {
1871   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872   if { { ac_try="$ac_cpp conftest.$ac_ext"
1873 case "(($ac_try" in
1874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875   *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1880   ac_status=$?
1881   if test -s conftest.err; then
1882     grep -v '^ *+' conftest.err >conftest.er1
1883     cat conftest.er1 >&5
1884     mv -f conftest.er1 conftest.err
1885   fi
1886   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887   test $ac_status = 0; } > conftest.i && {
1888          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1889          test ! -s conftest.err
1890        }; then :
1891   ac_retval=0
1892 else
1893   $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1895
1896     ac_retval=1
1897 fi
1898   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1899   as_fn_set_status $ac_retval
1900
1901 } # ac_fn_c_try_cpp
1902
1903 # ac_fn_c_try_run LINENO
1904 # ----------------------
1905 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1906 # that executables *can* be run.
1907 ac_fn_c_try_run ()
1908 {
1909   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910   if { { ac_try="$ac_link"
1911 case "(($ac_try" in
1912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913   *) ac_try_echo=$ac_try;;
1914 esac
1915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916 $as_echo "$ac_try_echo"; } >&5
1917   (eval "$ac_link") 2>&5
1918   ac_status=$?
1919   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1921   { { case "(($ac_try" in
1922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923   *) ac_try_echo=$ac_try;;
1924 esac
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 $as_echo "$ac_try_echo"; } >&5
1927   (eval "$ac_try") 2>&5
1928   ac_status=$?
1929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930   test $ac_status = 0; }; }; then :
1931   ac_retval=0
1932 else
1933   $as_echo "$as_me: program exited with status $ac_status" >&5
1934        $as_echo "$as_me: failed program was:" >&5
1935 sed 's/^/| /' conftest.$ac_ext >&5
1936
1937        ac_retval=$ac_status
1938 fi
1939   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1940   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1941   as_fn_set_status $ac_retval
1942
1943 } # ac_fn_c_try_run
1944
1945 # ac_fn_c_check_func LINENO FUNC VAR
1946 # ----------------------------------
1947 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1948 ac_fn_c_check_func ()
1949 {
1950   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval "test \"\${$3+set}\"" = set; then :
1954   $as_echo_n "(cached) " >&6
1955 else
1956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h.  */
1958 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1960 #define $2 innocuous_$2
1961
1962 /* System header to define __stub macros and hopefully few prototypes,
1963     which can conflict with char $2 (); below.
1964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1965     <limits.h> exists even on freestanding compilers.  */
1966
1967 #ifdef __STDC__
1968 # include <limits.h>
1969 #else
1970 # include <assert.h>
1971 #endif
1972
1973 #undef $2
1974
1975 /* Override any GCC internal prototype to avoid an error.
1976    Use char because int might match the return type of a GCC
1977    builtin and then its argument prototype would still apply.  */
1978 #ifdef __cplusplus
1979 extern "C"
1980 #endif
1981 char $2 ();
1982 /* The GNU C library defines this for functions which it implements
1983     to always fail with ENOSYS.  Some functions are actually named
1984     something starting with __ and the normal name is an alias.  */
1985 #if defined __stub_$2 || defined __stub___$2
1986 choke me
1987 #endif
1988
1989 int
1990 main ()
1991 {
1992 return $2 ();
1993   ;
1994   return 0;
1995 }
1996 _ACEOF
1997 if ac_fn_c_try_link "$LINENO"; then :
1998   eval "$3=yes"
1999 else
2000   eval "$3=no"
2001 fi
2002 rm -f core conftest.err conftest.$ac_objext \
2003     conftest$ac_exeext conftest.$ac_ext
2004 fi
2005 eval ac_res=\$$3
2006                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009
2010 } # ac_fn_c_check_func
2011 cat >config.log <<_ACEOF
2012 This file contains any messages produced by compilers while
2013 running configure, to aid debugging if configure makes a mistake.
2014
2015 It was created by Moonshot $as_me 0.0.1, which was
2016 generated by GNU Autoconf 2.67.  Invocation command line was
2017
2018   $ $0 $@
2019
2020 _ACEOF
2021 exec 5>>config.log
2022 {
2023 cat <<_ASUNAME
2024 ## --------- ##
2025 ## Platform. ##
2026 ## --------- ##
2027
2028 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2029 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2030 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2031 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2032 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2033
2034 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2035 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2036
2037 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2038 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2039 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2040 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2041 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2042 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2043 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2044
2045 _ASUNAME
2046
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2049 do
2050   IFS=$as_save_IFS
2051   test -z "$as_dir" && as_dir=.
2052     $as_echo "PATH: $as_dir"
2053   done
2054 IFS=$as_save_IFS
2055
2056 } >&5
2057
2058 cat >&5 <<_ACEOF
2059
2060
2061 ## ----------- ##
2062 ## Core tests. ##
2063 ## ----------- ##
2064
2065 _ACEOF
2066
2067
2068 # Keep a trace of the command line.
2069 # Strip out --no-create and --no-recursion so they do not pile up.
2070 # Strip out --silent because we don't want to record it for future runs.
2071 # Also quote any args containing shell meta-characters.
2072 # Make two passes to allow for proper duplicate-argument suppression.
2073 ac_configure_args=
2074 ac_configure_args0=
2075 ac_configure_args1=
2076 ac_must_keep_next=false
2077 for ac_pass in 1 2
2078 do
2079   for ac_arg
2080   do
2081     case $ac_arg in
2082     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2083     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2084     | -silent | --silent | --silen | --sile | --sil)
2085       continue ;;
2086     *\'*)
2087       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2088     esac
2089     case $ac_pass in
2090     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2091     2)
2092       as_fn_append ac_configure_args1 " '$ac_arg'"
2093       if test $ac_must_keep_next = true; then
2094         ac_must_keep_next=false # Got value, back to normal.
2095       else
2096         case $ac_arg in
2097           *=* | --config-cache | -C | -disable-* | --disable-* \
2098           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2099           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2100           | -with-* | --with-* | -without-* | --without-* | --x)
2101             case "$ac_configure_args0 " in
2102               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2103             esac
2104             ;;
2105           -* ) ac_must_keep_next=true ;;
2106         esac
2107       fi
2108       as_fn_append ac_configure_args " '$ac_arg'"
2109       ;;
2110     esac
2111   done
2112 done
2113 { ac_configure_args0=; unset ac_configure_args0;}
2114 { ac_configure_args1=; unset ac_configure_args1;}
2115
2116 # When interrupted or exit'd, cleanup temporary files, and complete
2117 # config.log.  We remove comments because anyway the quotes in there
2118 # would cause problems or look ugly.
2119 # WARNING: Use '\'' to represent an apostrophe within the trap.
2120 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2121 trap 'exit_status=$?
2122   # Save into config.log some information that might help in debugging.
2123   {
2124     echo
2125
2126     $as_echo "## ---------------- ##
2127 ## Cache variables. ##
2128 ## ---------------- ##"
2129     echo
2130     # The following way of writing the cache mishandles newlines in values,
2131 (
2132   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2133     eval ac_val=\$$ac_var
2134     case $ac_val in #(
2135     *${as_nl}*)
2136       case $ac_var in #(
2137       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2138 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2139       esac
2140       case $ac_var in #(
2141       _ | IFS | as_nl) ;; #(
2142       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2143       *) { eval $ac_var=; unset $ac_var;} ;;
2144       esac ;;
2145     esac
2146   done
2147   (set) 2>&1 |
2148     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2149     *${as_nl}ac_space=\ *)
2150       sed -n \
2151         "s/'\''/'\''\\\\'\'''\''/g;
2152           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2153       ;; #(
2154     *)
2155       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2156       ;;
2157     esac |
2158     sort
2159 )
2160     echo
2161
2162     $as_echo "## ----------------- ##
2163 ## Output variables. ##
2164 ## ----------------- ##"
2165     echo
2166     for ac_var in $ac_subst_vars
2167     do
2168       eval ac_val=\$$ac_var
2169       case $ac_val in
2170       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2171       esac
2172       $as_echo "$ac_var='\''$ac_val'\''"
2173     done | sort
2174     echo
2175
2176     if test -n "$ac_subst_files"; then
2177       $as_echo "## ------------------- ##
2178 ## File substitutions. ##
2179 ## ------------------- ##"
2180       echo
2181       for ac_var in $ac_subst_files
2182       do
2183         eval ac_val=\$$ac_var
2184         case $ac_val in
2185         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2186         esac
2187         $as_echo "$ac_var='\''$ac_val'\''"
2188       done | sort
2189       echo
2190     fi
2191
2192     if test -s confdefs.h; then
2193       $as_echo "## ----------- ##
2194 ## confdefs.h. ##
2195 ## ----------- ##"
2196       echo
2197       cat confdefs.h
2198       echo
2199     fi
2200     test "$ac_signal" != 0 &&
2201       $as_echo "$as_me: caught signal $ac_signal"
2202     $as_echo "$as_me: exit $exit_status"
2203   } >&5
2204   rm -f core *.core core.conftest.* &&
2205     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2206     exit $exit_status
2207 ' 0
2208 for ac_signal in 1 2 13 15; do
2209   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2210 done
2211 ac_signal=0
2212
2213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2214 rm -f -r conftest* confdefs.h
2215
2216 $as_echo "/* confdefs.h */" > confdefs.h
2217
2218 # Predefined preprocessor variables.
2219
2220 cat >>confdefs.h <<_ACEOF
2221 #define PACKAGE_NAME "$PACKAGE_NAME"
2222 _ACEOF
2223
2224 cat >>confdefs.h <<_ACEOF
2225 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2226 _ACEOF
2227
2228 cat >>confdefs.h <<_ACEOF
2229 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2230 _ACEOF
2231
2232 cat >>confdefs.h <<_ACEOF
2233 #define PACKAGE_STRING "$PACKAGE_STRING"
2234 _ACEOF
2235
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2238 _ACEOF
2239
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_URL "$PACKAGE_URL"
2242 _ACEOF
2243
2244
2245 # Let the site file select an alternate cache file if it wants to.
2246 # Prefer an explicitly selected file to automatically selected ones.
2247 ac_site_file1=NONE
2248 ac_site_file2=NONE
2249 if test -n "$CONFIG_SITE"; then
2250   # We do not want a PATH search for config.site.
2251   case $CONFIG_SITE in #((
2252     -*)  ac_site_file1=./$CONFIG_SITE;;
2253     */*) ac_site_file1=$CONFIG_SITE;;
2254     *)   ac_site_file1=./$CONFIG_SITE;;
2255   esac
2256 elif test "x$prefix" != xNONE; then
2257   ac_site_file1=$prefix/share/config.site
2258   ac_site_file2=$prefix/etc/config.site
2259 else
2260   ac_site_file1=$ac_default_prefix/share/config.site
2261   ac_site_file2=$ac_default_prefix/etc/config.site
2262 fi
2263 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2264 do
2265   test "x$ac_site_file" = xNONE && continue
2266   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2267     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2268 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2269     sed 's/^/| /' "$ac_site_file" >&5
2270     . "$ac_site_file" \
2271       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2273 as_fn_error $? "failed to load site script $ac_site_file
2274 See \`config.log' for more details" "$LINENO" 5 ; }
2275   fi
2276 done
2277
2278 if test -r "$cache_file"; then
2279   # Some versions of bash will fail to source /dev/null (special files
2280   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2281   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2282     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2283 $as_echo "$as_me: loading cache $cache_file" >&6;}
2284     case $cache_file in
2285       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2286       *)                      . "./$cache_file";;
2287     esac
2288   fi
2289 else
2290   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2291 $as_echo "$as_me: creating cache $cache_file" >&6;}
2292   >$cache_file
2293 fi
2294
2295 gt_needs="$gt_needs "
2296 # Check that the precious variables saved in the cache have kept the same
2297 # value.
2298 ac_cache_corrupted=false
2299 for ac_var in $ac_precious_vars; do
2300   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2301   eval ac_new_set=\$ac_env_${ac_var}_set
2302   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2303   eval ac_new_val=\$ac_env_${ac_var}_value
2304   case $ac_old_set,$ac_new_set in
2305     set,)
2306       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2307 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2308       ac_cache_corrupted=: ;;
2309     ,set)
2310       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2311 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2312       ac_cache_corrupted=: ;;
2313     ,);;
2314     *)
2315       if test "x$ac_old_val" != "x$ac_new_val"; then
2316         # differences in whitespace do not lead to failure.
2317         ac_old_val_w=`echo x $ac_old_val`
2318         ac_new_val_w=`echo x $ac_new_val`
2319         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2320           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2321 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2322           ac_cache_corrupted=:
2323         else
2324           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2325 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2326           eval $ac_var=\$ac_old_val
2327         fi
2328         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2329 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2330         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2331 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2332       fi;;
2333   esac
2334   # Pass precious variables to config.status.
2335   if test "$ac_new_set" = set; then
2336     case $ac_new_val in
2337     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2338     *) ac_arg=$ac_var=$ac_new_val ;;
2339     esac
2340     case " $ac_configure_args " in
2341       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2342       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2343     esac
2344   fi
2345 done
2346 if $ac_cache_corrupted; then
2347   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2349   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2350 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2351   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2352 fi
2353 ## -------------------- ##
2354 ## Main body of script. ##
2355 ## -------------------- ##
2356
2357 ac_ext=c
2358 ac_cpp='$CPP $CPPFLAGS'
2359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2362
2363
2364
2365 ac_config_headers="$ac_config_headers config.h"
2366
2367
2368
2369 ac_aux_dir=
2370 for ac_dir in build-aux "$srcdir"/build-aux; do
2371   if test -f "$ac_dir/install-sh"; then
2372     ac_aux_dir=$ac_dir
2373     ac_install_sh="$ac_aux_dir/install-sh -c"
2374     break
2375   elif test -f "$ac_dir/install.sh"; then
2376     ac_aux_dir=$ac_dir
2377     ac_install_sh="$ac_aux_dir/install.sh -c"
2378     break
2379   elif test -f "$ac_dir/shtool"; then
2380     ac_aux_dir=$ac_dir
2381     ac_install_sh="$ac_aux_dir/shtool install -c"
2382     break
2383   fi
2384 done
2385 if test -z "$ac_aux_dir"; then
2386   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2387 fi
2388
2389 # These three variables are undocumented and unsupported,
2390 # and are intended to be withdrawn in a future Autoconf release.
2391 # They can cause serious problems if a builder's source tree is in a directory
2392 # whose full name contains unusual characters.
2393 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2394 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2395 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2396
2397
2398
2399 am__api_version='1.11'
2400
2401 # Find a good install program.  We prefer a C program (faster),
2402 # so one script is as good as another.  But avoid the broken or
2403 # incompatible versions:
2404 # SysV /etc/install, /usr/sbin/install
2405 # SunOS /usr/etc/install
2406 # IRIX /sbin/install
2407 # AIX /bin/install
2408 # AmigaOS /C/install, which installs bootblocks on floppy discs
2409 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2410 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2411 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2412 # OS/2's system install, which has a completely different semantic
2413 # ./install, which can be erroneously created by make from ./install.sh.
2414 # Reject install programs that cannot install multiple files.
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2416 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2417 if test -z "$INSTALL"; then
2418 if test "${ac_cv_path_install+set}" = set; then :
2419   $as_echo_n "(cached) " >&6
2420 else
2421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 for as_dir in $PATH
2423 do
2424   IFS=$as_save_IFS
2425   test -z "$as_dir" && as_dir=.
2426     # Account for people who put trailing slashes in PATH elements.
2427 case $as_dir/ in #((
2428   ./ | .// | /[cC]/* | \
2429   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2430   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2431   /usr/ucb/* ) ;;
2432   *)
2433     # OSF1 and SCO ODT 3.0 have their own names for install.
2434     # Don't use installbsd from OSF since it installs stuff as root
2435     # by default.
2436     for ac_prog in ginstall scoinst install; do
2437       for ac_exec_ext in '' $ac_executable_extensions; do
2438         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2439           if test $ac_prog = install &&
2440             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2441             # AIX install.  It has an incompatible calling convention.
2442             :
2443           elif test $ac_prog = install &&
2444             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2445             # program-specific install script used by HP pwplus--don't use.
2446             :
2447           else
2448             rm -rf conftest.one conftest.two conftest.dir
2449             echo one > conftest.one
2450             echo two > conftest.two
2451             mkdir conftest.dir
2452             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2453               test -s conftest.one && test -s conftest.two &&
2454               test -s conftest.dir/conftest.one &&
2455               test -s conftest.dir/conftest.two
2456             then
2457               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2458               break 3
2459             fi
2460           fi
2461         fi
2462       done
2463     done
2464     ;;
2465 esac
2466
2467   done
2468 IFS=$as_save_IFS
2469
2470 rm -rf conftest.one conftest.two conftest.dir
2471
2472 fi
2473   if test "${ac_cv_path_install+set}" = set; then
2474     INSTALL=$ac_cv_path_install
2475   else
2476     # As a last resort, use the slow shell script.  Don't cache a
2477     # value for INSTALL within a source directory, because that will
2478     # break other packages using the cache if that directory is
2479     # removed, or if the value is a relative name.
2480     INSTALL=$ac_install_sh
2481   fi
2482 fi
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2484 $as_echo "$INSTALL" >&6; }
2485
2486 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2487 # It thinks the first close brace ends the variable substitution.
2488 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2489
2490 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2491
2492 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2493
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2495 $as_echo_n "checking whether build environment is sane... " >&6; }
2496 # Just in case
2497 sleep 1
2498 echo timestamp > conftest.file
2499 # Reject unsafe characters in $srcdir or the absolute working directory
2500 # name.  Accept space and tab only in the latter.
2501 am_lf='
2502 '
2503 case `pwd` in
2504   *[\\\"\#\$\&\'\`$am_lf]*)
2505     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2506 esac
2507 case $srcdir in
2508   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2509     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2510 esac
2511
2512 # Do `set' in a subshell so we don't clobber the current shell's
2513 # arguments.  Must try -L first in case configure is actually a
2514 # symlink; some systems play weird games with the mod time of symlinks
2515 # (eg FreeBSD returns the mod time of the symlink's containing
2516 # directory).
2517 if (
2518    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2519    if test "$*" = "X"; then
2520       # -L didn't work.
2521       set X `ls -t "$srcdir/configure" conftest.file`
2522    fi
2523    rm -f conftest.file
2524    if test "$*" != "X $srcdir/configure conftest.file" \
2525       && test "$*" != "X conftest.file $srcdir/configure"; then
2526
2527       # If neither matched, then we have a broken ls.  This can happen
2528       # if, for instance, CONFIG_SHELL is bash and it inherits a
2529       # broken ls alias from the environment.  This has actually
2530       # happened.  Such a system could not be considered "sane".
2531       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2532 alias in your environment" "$LINENO" 5
2533    fi
2534
2535    test "$2" = conftest.file
2536    )
2537 then
2538    # Ok.
2539    :
2540 else
2541    as_fn_error $? "newly created file is older than distributed files!
2542 Check your system clock" "$LINENO" 5
2543 fi
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2545 $as_echo "yes" >&6; }
2546 test "$program_prefix" != NONE &&
2547   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2548 # Use a double $ so make ignores it.
2549 test "$program_suffix" != NONE &&
2550   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2551 # Double any \ or $.
2552 # By default was `s,x,x', remove it if useless.
2553 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2554 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2555
2556 # expand $ac_aux_dir to an absolute path
2557 am_aux_dir=`cd $ac_aux_dir && pwd`
2558
2559 if test x"${MISSING+set}" != xset; then
2560   case $am_aux_dir in
2561   *\ * | *\     *)
2562     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2563   *)
2564     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2565   esac
2566 fi
2567 # Use eval to expand $SHELL
2568 if eval "$MISSING --run true"; then
2569   am_missing_run="$MISSING --run "
2570 else
2571   am_missing_run=
2572   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2573 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2574 fi
2575
2576 if test x"${install_sh}" != xset; then
2577   case $am_aux_dir in
2578   *\ * | *\     *)
2579     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2580   *)
2581     install_sh="\${SHELL} $am_aux_dir/install-sh"
2582   esac
2583 fi
2584
2585 # Installed binaries are usually stripped using `strip' when the user
2586 # run `make install-strip'.  However `strip' might not be the right
2587 # tool to use in cross-compilation environments, therefore Automake
2588 # will honor the `STRIP' environment variable to overrule this program.
2589 if test "$cross_compiling" != no; then
2590   if test -n "$ac_tool_prefix"; then
2591   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2592 set dummy ${ac_tool_prefix}strip; ac_word=$2
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2594 $as_echo_n "checking for $ac_word... " >&6; }
2595 if test "${ac_cv_prog_STRIP+set}" = set; then :
2596   $as_echo_n "(cached) " >&6
2597 else
2598   if test -n "$STRIP"; then
2599   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2600 else
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 for as_dir in $PATH
2603 do
2604   IFS=$as_save_IFS
2605   test -z "$as_dir" && as_dir=.
2606     for ac_exec_ext in '' $ac_executable_extensions; do
2607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2608     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2610     break 2
2611   fi
2612 done
2613   done
2614 IFS=$as_save_IFS
2615
2616 fi
2617 fi
2618 STRIP=$ac_cv_prog_STRIP
2619 if test -n "$STRIP"; then
2620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2621 $as_echo "$STRIP" >&6; }
2622 else
2623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2624 $as_echo "no" >&6; }
2625 fi
2626
2627
2628 fi
2629 if test -z "$ac_cv_prog_STRIP"; then
2630   ac_ct_STRIP=$STRIP
2631   # Extract the first word of "strip", so it can be a program name with args.
2632 set dummy strip; ac_word=$2
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634 $as_echo_n "checking for $ac_word... " >&6; }
2635 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2636   $as_echo_n "(cached) " >&6
2637 else
2638   if test -n "$ac_ct_STRIP"; then
2639   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2640 else
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2643 do
2644   IFS=$as_save_IFS
2645   test -z "$as_dir" && as_dir=.
2646     for ac_exec_ext in '' $ac_executable_extensions; do
2647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648     ac_cv_prog_ac_ct_STRIP="strip"
2649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2650     break 2
2651   fi
2652 done
2653   done
2654 IFS=$as_save_IFS
2655
2656 fi
2657 fi
2658 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2659 if test -n "$ac_ct_STRIP"; then
2660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2661 $as_echo "$ac_ct_STRIP" >&6; }
2662 else
2663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664 $as_echo "no" >&6; }
2665 fi
2666
2667   if test "x$ac_ct_STRIP" = x; then
2668     STRIP=":"
2669   else
2670     case $cross_compiling:$ac_tool_warned in
2671 yes:)
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2674 ac_tool_warned=yes ;;
2675 esac
2676     STRIP=$ac_ct_STRIP
2677   fi
2678 else
2679   STRIP="$ac_cv_prog_STRIP"
2680 fi
2681
2682 fi
2683 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2684
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2686 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2687 if test -z "$MKDIR_P"; then
2688   if test "${ac_cv_path_mkdir+set}" = set; then :
2689   $as_echo_n "(cached) " >&6
2690 else
2691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2693 do
2694   IFS=$as_save_IFS
2695   test -z "$as_dir" && as_dir=.
2696     for ac_prog in mkdir gmkdir; do
2697          for ac_exec_ext in '' $ac_executable_extensions; do
2698            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2699            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2700              'mkdir (GNU coreutils) '* | \
2701              'mkdir (coreutils) '* | \
2702              'mkdir (fileutils) '4.1*)
2703                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2704                break 3;;
2705            esac
2706          done
2707        done
2708   done
2709 IFS=$as_save_IFS
2710
2711 fi
2712
2713   test -d ./--version && rmdir ./--version
2714   if test "${ac_cv_path_mkdir+set}" = set; then
2715     MKDIR_P="$ac_cv_path_mkdir -p"
2716   else
2717     # As a last resort, use the slow shell script.  Don't cache a
2718     # value for MKDIR_P within a source directory, because that will
2719     # break other packages using the cache if that directory is
2720     # removed, or if the value is a relative name.
2721     MKDIR_P="$ac_install_sh -d"
2722   fi
2723 fi
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2725 $as_echo "$MKDIR_P" >&6; }
2726
2727 mkdir_p="$MKDIR_P"
2728 case $mkdir_p in
2729   [\\/$]* | ?:[\\/]*) ;;
2730   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2731 esac
2732
2733 for ac_prog in gawk mawk nawk awk
2734 do
2735   # Extract the first word of "$ac_prog", so it can be a program name with args.
2736 set dummy $ac_prog; ac_word=$2
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738 $as_echo_n "checking for $ac_word... " >&6; }
2739 if test "${ac_cv_prog_AWK+set}" = set; then :
2740   $as_echo_n "(cached) " >&6
2741 else
2742   if test -n "$AWK"; then
2743   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2744 else
2745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 for as_dir in $PATH
2747 do
2748   IFS=$as_save_IFS
2749   test -z "$as_dir" && as_dir=.
2750     for ac_exec_ext in '' $ac_executable_extensions; do
2751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2752     ac_cv_prog_AWK="$ac_prog"
2753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2754     break 2
2755   fi
2756 done
2757   done
2758 IFS=$as_save_IFS
2759
2760 fi
2761 fi
2762 AWK=$ac_cv_prog_AWK
2763 if test -n "$AWK"; then
2764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2765 $as_echo "$AWK" >&6; }
2766 else
2767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768 $as_echo "no" >&6; }
2769 fi
2770
2771
2772   test -n "$AWK" && break
2773 done
2774
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2776 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2777 set x ${MAKE-make}
2778 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2779 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2780   $as_echo_n "(cached) " >&6
2781 else
2782   cat >conftest.make <<\_ACEOF
2783 SHELL = /bin/sh
2784 all:
2785         @echo '@@@%%%=$(MAKE)=@@@%%%'
2786 _ACEOF
2787 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2788 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2789   *@@@%%%=?*=@@@%%%*)
2790     eval ac_cv_prog_make_${ac_make}_set=yes;;
2791   *)
2792     eval ac_cv_prog_make_${ac_make}_set=no;;
2793 esac
2794 rm -f conftest.make
2795 fi
2796 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2798 $as_echo "yes" >&6; }
2799   SET_MAKE=
2800 else
2801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2803   SET_MAKE="MAKE=${MAKE-make}"
2804 fi
2805
2806 rm -rf .tst 2>/dev/null
2807 mkdir .tst 2>/dev/null
2808 if test -d .tst; then
2809   am__leading_dot=.
2810 else
2811   am__leading_dot=_
2812 fi
2813 rmdir .tst 2>/dev/null
2814
2815 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2816   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2817   # is not polluted with repeated "-I."
2818   am__isrc=' -I$(srcdir)'
2819   # test to see if srcdir already configured
2820   if test -f $srcdir/config.status; then
2821     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2822   fi
2823 fi
2824
2825 # test whether we have cygpath
2826 if test -z "$CYGPATH_W"; then
2827   if (cygpath --version) >/dev/null 2>/dev/null; then
2828     CYGPATH_W='cygpath -w'
2829   else
2830     CYGPATH_W=echo
2831   fi
2832 fi
2833
2834
2835 # Define the identity of the package.
2836  PACKAGE='moonshot'
2837  VERSION='0.0.1'
2838
2839
2840 cat >>confdefs.h <<_ACEOF
2841 #define PACKAGE "$PACKAGE"
2842 _ACEOF
2843
2844
2845 cat >>confdefs.h <<_ACEOF
2846 #define VERSION "$VERSION"
2847 _ACEOF
2848
2849 # Some tools Automake needs.
2850
2851 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2852
2853
2854 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2855
2856
2857 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2858
2859
2860 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2861
2862
2863 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2864
2865 # We need awk for the "check" target.  The system "awk" is bad on
2866 # some platforms.
2867 # Always define AMTAR for backward compatibility.
2868
2869 AMTAR=${AMTAR-"${am_missing_run}tar"}
2870
2871
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2873 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2874 # Loop over all known methods to create a tar archive until one works.
2875 _am_tools='gnutar  pax cpio none'
2876 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2877 # Do not fold the above two line into one, because Tru64 sh and
2878 # Solaris sh will not grok spaces in the rhs of `-'.
2879 for _am_tool in $_am_tools
2880 do
2881   case $_am_tool in
2882   gnutar)
2883     for _am_tar in tar gnutar gtar;
2884     do
2885       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2886    ($_am_tar --version) >&5 2>&5
2887    ac_status=$?
2888    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889    (exit $ac_status); } && break
2890     done
2891     am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2892     am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2893     am__untar="$_am_tar -xf -"
2894     ;;
2895   plaintar)
2896     # Must skip GNU tar: if it does not support --format= it doesn't create
2897     # ustar tarball either.
2898     (tar --version) >/dev/null 2>&1 && continue
2899     am__tar='tar chf - "$$tardir"'
2900     am__tar_='tar chf - "$tardir"'
2901     am__untar='tar xf -'
2902     ;;
2903   pax)
2904     am__tar='pax -L -x pax -w "$$tardir"'
2905     am__tar_='pax -L -x pax -w "$tardir"'
2906     am__untar='pax -r'
2907     ;;
2908   cpio)
2909     am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2910     am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2911     am__untar='cpio -i -H pax -d'
2912     ;;
2913   none)
2914     am__tar=false
2915     am__tar_=false
2916     am__untar=false
2917     ;;
2918   esac
2919
2920   # If the value was cached, stop now.  We just wanted to have am__tar
2921   # and am__untar set.
2922   test -n "${am_cv_prog_tar_pax}" && break
2923
2924   # tar/untar a dummy directory, and stop if the command works
2925   rm -rf conftest.dir
2926   mkdir conftest.dir
2927   echo GrepMe > conftest.dir/file
2928   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2929    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2930    ac_status=$?
2931    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932    (exit $ac_status); }
2933   rm -rf conftest.dir
2934   if test -s conftest.tar; then
2935     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2936    ($am__untar <conftest.tar) >&5 2>&5
2937    ac_status=$?
2938    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939    (exit $ac_status); }
2940     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2941   fi
2942 done
2943 rm -rf conftest.dir
2944
2945 if test "${am_cv_prog_tar_pax+set}" = set; then :
2946   $as_echo_n "(cached) " >&6
2947 else
2948   am_cv_prog_tar_pax=$_am_tool
2949 fi
2950
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2952 $as_echo "$am_cv_prog_tar_pax" >&6; }
2953
2954
2955
2956
2957
2958 # Check whether --enable-silent-rules was given.
2959 if test "${enable_silent_rules+set}" = set; then :
2960   enableval=$enable_silent_rules;
2961 fi
2962
2963 case $enable_silent_rules in
2964 yes) AM_DEFAULT_VERBOSITY=0;;
2965 no)  AM_DEFAULT_VERBOSITY=1;;
2966 *)   AM_DEFAULT_VERBOSITY=0;;
2967 esac
2968 AM_BACKSLASH='\'
2969
2970
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable maintainer-specific portions of Makefiles" >&5
2972 $as_echo_n "checking whether to disable maintainer-specific portions of Makefiles... " >&6; }
2973     # Check whether --enable-maintainer-mode was given.
2974 if test "${enable_maintainer_mode+set}" = set; then :
2975   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2976 else
2977   USE_MAINTAINER_MODE=yes
2978 fi
2979
2980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2981 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2982    if test $USE_MAINTAINER_MODE = yes; then
2983   MAINTAINER_MODE_TRUE=
2984   MAINTAINER_MODE_FALSE='#'
2985 else
2986   MAINTAINER_MODE_TRUE='#'
2987   MAINTAINER_MODE_FALSE=
2988 fi
2989
2990   MAINT=$MAINTAINER_MODE_TRUE
2991
2992
2993
2994
2995 case `pwd` in
2996   *\ * | *\     *)
2997     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2998 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2999 esac
3000
3001
3002
3003 macro_version='2.2.6b'
3004 macro_revision='1.3017'
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018 ltmain="$ac_aux_dir/ltmain.sh"
3019
3020 # Make sure we can run config.sub.
3021 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3022   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3023
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3025 $as_echo_n "checking build system type... " >&6; }
3026 if test "${ac_cv_build+set}" = set; then :
3027   $as_echo_n "(cached) " >&6
3028 else
3029   ac_build_alias=$build_alias
3030 test "x$ac_build_alias" = x &&
3031   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3032 test "x$ac_build_alias" = x &&
3033   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3034 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3035   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3036
3037 fi
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3039 $as_echo "$ac_cv_build" >&6; }
3040 case $ac_cv_build in
3041 *-*-*) ;;
3042 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3043 esac
3044 build=$ac_cv_build
3045 ac_save_IFS=$IFS; IFS='-'
3046 set x $ac_cv_build
3047 shift
3048 build_cpu=$1
3049 build_vendor=$2
3050 shift; shift
3051 # Remember, the first character of IFS is used to create $*,
3052 # except with old shells:
3053 build_os=$*
3054 IFS=$ac_save_IFS
3055 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3056
3057
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3059 $as_echo_n "checking host system type... " >&6; }
3060 if test "${ac_cv_host+set}" = set; then :
3061   $as_echo_n "(cached) " >&6
3062 else
3063   if test "x$host_alias" = x; then
3064   ac_cv_host=$ac_cv_build
3065 else
3066   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3067     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3068 fi
3069
3070 fi
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3072 $as_echo "$ac_cv_host" >&6; }
3073 case $ac_cv_host in
3074 *-*-*) ;;
3075 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3076 esac
3077 host=$ac_cv_host
3078 ac_save_IFS=$IFS; IFS='-'
3079 set x $ac_cv_host
3080 shift
3081 host_cpu=$1
3082 host_vendor=$2
3083 shift; shift
3084 # Remember, the first character of IFS is used to create $*,
3085 # except with old shells:
3086 host_os=$*
3087 IFS=$ac_save_IFS
3088 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3089
3090
3091 DEPDIR="${am__leading_dot}deps"
3092
3093 ac_config_commands="$ac_config_commands depfiles"
3094
3095
3096 am_make=${MAKE-make}
3097 cat > confinc << 'END'
3098 am__doit:
3099         @echo this is the am__doit target
3100 .PHONY: am__doit
3101 END
3102 # If we don't find an include directive, just comment out the code.
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3104 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3105 am__include="#"
3106 am__quote=
3107 _am_result=none
3108 # First try GNU make style include.
3109 echo "include confinc" > confmf
3110 # Ignore all kinds of additional output from `make'.
3111 case `$am_make -s -f confmf 2> /dev/null` in #(
3112 *the\ am__doit\ target*)
3113   am__include=include
3114   am__quote=
3115   _am_result=GNU
3116   ;;
3117 esac
3118 # Now try BSD make style include.
3119 if test "$am__include" = "#"; then
3120    echo '.include "confinc"' > confmf
3121    case `$am_make -s -f confmf 2> /dev/null` in #(
3122    *the\ am__doit\ target*)
3123      am__include=.include
3124      am__quote="\""
3125      _am_result=BSD
3126      ;;
3127    esac
3128 fi
3129
3130
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3132 $as_echo "$_am_result" >&6; }
3133 rm -f confinc confmf
3134
3135 # Check whether --enable-dependency-tracking was given.
3136 if test "${enable_dependency_tracking+set}" = set; then :
3137   enableval=$enable_dependency_tracking;
3138 fi
3139
3140 if test "x$enable_dependency_tracking" != xno; then
3141   am_depcomp="$ac_aux_dir/depcomp"
3142   AMDEPBACKSLASH='\'
3143 fi
3144  if test "x$enable_dependency_tracking" != xno; then
3145   AMDEP_TRUE=
3146   AMDEP_FALSE='#'
3147 else
3148   AMDEP_TRUE='#'
3149   AMDEP_FALSE=
3150 fi
3151
3152
3153 ac_ext=c
3154 ac_cpp='$CPP $CPPFLAGS'
3155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158 if test -n "$ac_tool_prefix"; then
3159   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3160 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if test "${ac_cv_prog_CC+set}" = set; then :
3164   $as_echo_n "(cached) " >&6
3165 else
3166   if test -n "$CC"; then
3167   ac_cv_prog_CC="$CC" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3171 do
3172   IFS=$as_save_IFS
3173   test -z "$as_dir" && as_dir=.
3174     for ac_exec_ext in '' $ac_executable_extensions; do
3175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3176     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178     break 2
3179   fi
3180 done
3181   done
3182 IFS=$as_save_IFS
3183
3184 fi
3185 fi
3186 CC=$ac_cv_prog_CC
3187 if test -n "$CC"; then
3188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189 $as_echo "$CC" >&6; }
3190 else
3191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3193 fi
3194
3195
3196 fi
3197 if test -z "$ac_cv_prog_CC"; then
3198   ac_ct_CC=$CC
3199   # Extract the first word of "gcc", so it can be a program name with args.
3200 set dummy gcc; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3204   $as_echo_n "(cached) " >&6
3205 else
3206   if test -n "$ac_ct_CC"; then
3207   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212   IFS=$as_save_IFS
3213   test -z "$as_dir" && as_dir=.
3214     for ac_exec_ext in '' $ac_executable_extensions; do
3215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216     ac_cv_prog_ac_ct_CC="gcc"
3217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218     break 2
3219   fi
3220 done
3221   done
3222 IFS=$as_save_IFS
3223
3224 fi
3225 fi
3226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3227 if test -n "$ac_ct_CC"; then
3228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3229 $as_echo "$ac_ct_CC" >&6; }
3230 else
3231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3233 fi
3234
3235   if test "x$ac_ct_CC" = x; then
3236     CC=""
3237   else
3238     case $cross_compiling:$ac_tool_warned in
3239 yes:)
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3242 ac_tool_warned=yes ;;
3243 esac
3244     CC=$ac_ct_CC
3245   fi
3246 else
3247   CC="$ac_cv_prog_CC"
3248 fi
3249
3250 if test -z "$CC"; then
3251           if test -n "$ac_tool_prefix"; then
3252     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3253 set dummy ${ac_tool_prefix}cc; ac_word=$2
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255 $as_echo_n "checking for $ac_word... " >&6; }
3256 if test "${ac_cv_prog_CC+set}" = set; then :
3257   $as_echo_n "(cached) " >&6
3258 else
3259   if test -n "$CC"; then
3260   ac_cv_prog_CC="$CC" # Let the user override the test.
3261 else
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH
3264 do
3265   IFS=$as_save_IFS
3266   test -z "$as_dir" && as_dir=.
3267     for ac_exec_ext in '' $ac_executable_extensions; do
3268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3269     ac_cv_prog_CC="${ac_tool_prefix}cc"
3270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3271     break 2
3272   fi
3273 done
3274   done
3275 IFS=$as_save_IFS
3276
3277 fi
3278 fi
3279 CC=$ac_cv_prog_CC
3280 if test -n "$CC"; then
3281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3282 $as_echo "$CC" >&6; }
3283 else
3284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3286 fi
3287
3288
3289   fi
3290 fi
3291 if test -z "$CC"; then
3292   # Extract the first word of "cc", so it can be a program name with args.
3293 set dummy cc; ac_word=$2
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295 $as_echo_n "checking for $ac_word... " >&6; }
3296 if test "${ac_cv_prog_CC+set}" = set; then :
3297   $as_echo_n "(cached) " >&6
3298 else
3299   if test -n "$CC"; then
3300   ac_cv_prog_CC="$CC" # Let the user override the test.
3301 else
3302   ac_prog_rejected=no
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH
3305 do
3306   IFS=$as_save_IFS
3307   test -z "$as_dir" && as_dir=.
3308     for ac_exec_ext in '' $ac_executable_extensions; do
3309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3310     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3311        ac_prog_rejected=yes
3312        continue
3313      fi
3314     ac_cv_prog_CC="cc"
3315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316     break 2
3317   fi
3318 done
3319   done
3320 IFS=$as_save_IFS
3321
3322 if test $ac_prog_rejected = yes; then
3323   # We found a bogon in the path, so make sure we never use it.
3324   set dummy $ac_cv_prog_CC
3325   shift
3326   if test $# != 0; then
3327     # We chose a different compiler from the bogus one.
3328     # However, it has the same basename, so the bogon will be chosen
3329     # first if we set CC to just the basename; use the full file name.
3330     shift
3331     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3332   fi
3333 fi
3334 fi
3335 fi
3336 CC=$ac_cv_prog_CC
3337 if test -n "$CC"; then
3338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3339 $as_echo "$CC" >&6; }
3340 else
3341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 fi
3344
3345
3346 fi
3347 if test -z "$CC"; then
3348   if test -n "$ac_tool_prefix"; then
3349   for ac_prog in cl.exe
3350   do
3351     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3352 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if test "${ac_cv_prog_CC+set}" = set; then :
3356   $as_echo_n "(cached) " >&6
3357 else
3358   if test -n "$CC"; then
3359   ac_cv_prog_CC="$CC" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364   IFS=$as_save_IFS
3365   test -z "$as_dir" && as_dir=.
3366     for ac_exec_ext in '' $ac_executable_extensions; do
3367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3368     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370     break 2
3371   fi
3372 done
3373   done
3374 IFS=$as_save_IFS
3375
3376 fi
3377 fi
3378 CC=$ac_cv_prog_CC
3379 if test -n "$CC"; then
3380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3381 $as_echo "$CC" >&6; }
3382 else
3383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3385 fi
3386
3387
3388     test -n "$CC" && break
3389   done
3390 fi
3391 if test -z "$CC"; then
3392   ac_ct_CC=$CC
3393   for ac_prog in cl.exe
3394 do
3395   # Extract the first word of "$ac_prog", so it can be a program name with args.
3396 set dummy $ac_prog; ac_word=$2
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398 $as_echo_n "checking for $ac_word... " >&6; }
3399 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3400   $as_echo_n "(cached) " >&6
3401 else
3402   if test -n "$ac_ct_CC"; then
3403   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3404 else
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH
3407 do
3408   IFS=$as_save_IFS
3409   test -z "$as_dir" && as_dir=.
3410     for ac_exec_ext in '' $ac_executable_extensions; do
3411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3412     ac_cv_prog_ac_ct_CC="$ac_prog"
3413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414     break 2
3415   fi
3416 done
3417   done
3418 IFS=$as_save_IFS
3419
3420 fi
3421 fi
3422 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3423 if test -n "$ac_ct_CC"; then
3424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3425 $as_echo "$ac_ct_CC" >&6; }
3426 else
3427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3429 fi
3430
3431
3432   test -n "$ac_ct_CC" && break
3433 done
3434
3435   if test "x$ac_ct_CC" = x; then
3436     CC=""
3437   else
3438     case $cross_compiling:$ac_tool_warned in
3439 yes:)
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3442 ac_tool_warned=yes ;;
3443 esac
3444     CC=$ac_ct_CC
3445   fi
3446 fi
3447
3448 fi
3449
3450
3451 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error $? "no acceptable C compiler found in \$PATH
3454 See \`config.log' for more details" "$LINENO" 5 ; }
3455
3456 # Provide some information about the compiler.
3457 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3458 set X $ac_compile
3459 ac_compiler=$2
3460 for ac_option in --version -v -V -qversion; do
3461   { { ac_try="$ac_compiler $ac_option >&5"
3462 case "(($ac_try" in
3463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464   *) ac_try_echo=$ac_try;;
3465 esac
3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 $as_echo "$ac_try_echo"; } >&5
3468   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3469   ac_status=$?
3470   if test -s conftest.err; then
3471     sed '10a\
3472 ... rest of stderr output deleted ...
3473          10q' conftest.err >conftest.er1
3474     cat conftest.er1 >&5
3475   fi
3476   rm -f conftest.er1 conftest.err
3477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478   test $ac_status = 0; }
3479 done
3480
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h.  */
3483
3484 int
3485 main ()
3486 {
3487
3488   ;
3489   return 0;
3490 }
3491 _ACEOF
3492 ac_clean_files_save=$ac_clean_files
3493 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3494 # Try to create an executable without -o first, disregard a.out.
3495 # It will help us diagnose broken compilers, and finding out an intuition
3496 # of exeext.
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3498 $as_echo_n "checking whether the C compiler works... " >&6; }
3499 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3500
3501 # The possible output files:
3502 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3503
3504 ac_rmfiles=
3505 for ac_file in $ac_files
3506 do
3507   case $ac_file in
3508     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3509     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3510   esac
3511 done
3512 rm -f $ac_rmfiles
3513
3514 if { { ac_try="$ac_link_default"
3515 case "(($ac_try" in
3516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517   *) ac_try_echo=$ac_try;;
3518 esac
3519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520 $as_echo "$ac_try_echo"; } >&5
3521   (eval "$ac_link_default") 2>&5
3522   ac_status=$?
3523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524   test $ac_status = 0; }; then :
3525   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3526 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3527 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3528 # so that the user can short-circuit this test for compilers unknown to
3529 # Autoconf.
3530 for ac_file in $ac_files ''
3531 do
3532   test -f "$ac_file" || continue
3533   case $ac_file in
3534     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3535         ;;
3536     [ab].out )
3537         # We found the default executable, but exeext='' is most
3538         # certainly right.
3539         break;;
3540     *.* )
3541         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3542         then :; else
3543            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3544         fi
3545         # We set ac_cv_exeext here because the later test for it is not
3546         # safe: cross compilers may not add the suffix if given an `-o'
3547         # argument, so we may need to know it at that point already.
3548         # Even if this section looks crufty: it has the advantage of
3549         # actually working.
3550         break;;
3551     * )
3552         break;;
3553   esac
3554 done
3555 test "$ac_cv_exeext" = no && ac_cv_exeext=
3556
3557 else
3558   ac_file=''
3559 fi
3560 if test -z "$ac_file"; then :
3561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3563 $as_echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3565
3566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568 as_fn_error 77 "C compiler cannot create executables
3569 See \`config.log' for more details" "$LINENO" 5 ; }
3570 else
3571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3572 $as_echo "yes" >&6; }
3573 fi
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3575 $as_echo_n "checking for C compiler default output file name... " >&6; }
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3577 $as_echo "$ac_file" >&6; }
3578 ac_exeext=$ac_cv_exeext
3579
3580 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3581 ac_clean_files=$ac_clean_files_save
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3583 $as_echo_n "checking for suffix of executables... " >&6; }
3584 if { { ac_try="$ac_link"
3585 case "(($ac_try" in
3586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587   *) ac_try_echo=$ac_try;;
3588 esac
3589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590 $as_echo "$ac_try_echo"; } >&5
3591   (eval "$ac_link") 2>&5
3592   ac_status=$?
3593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594   test $ac_status = 0; }; then :
3595   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3596 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3597 # work properly (i.e., refer to `conftest.exe'), while it won't with
3598 # `rm'.
3599 for ac_file in conftest.exe conftest conftest.*; do
3600   test -f "$ac_file" || continue
3601   case $ac_file in
3602     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3603     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3604           break;;
3605     * ) break;;
3606   esac
3607 done
3608 else
3609   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3612 See \`config.log' for more details" "$LINENO" 5 ; }
3613 fi
3614 rm -f conftest conftest$ac_cv_exeext
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3616 $as_echo "$ac_cv_exeext" >&6; }
3617
3618 rm -f conftest.$ac_ext
3619 EXEEXT=$ac_cv_exeext
3620 ac_exeext=$EXEEXT
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h.  */
3623 #include <stdio.h>
3624 int
3625 main ()
3626 {
3627 FILE *f = fopen ("conftest.out", "w");
3628  return ferror (f) || fclose (f) != 0;
3629
3630   ;
3631   return 0;
3632 }
3633 _ACEOF
3634 ac_clean_files="$ac_clean_files conftest.out"
3635 # Check that the compiler produces executables we can run.  If not, either
3636 # the compiler is broken, or we cross compile.
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3638 $as_echo_n "checking whether we are cross compiling... " >&6; }
3639 if test "$cross_compiling" != yes; then
3640   { { ac_try="$ac_link"
3641 case "(($ac_try" in
3642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643   *) ac_try_echo=$ac_try;;
3644 esac
3645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3646 $as_echo "$ac_try_echo"; } >&5
3647   (eval "$ac_link") 2>&5
3648   ac_status=$?
3649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3650   test $ac_status = 0; }
3651   if { ac_try='./conftest$ac_cv_exeext'
3652   { { case "(($ac_try" in
3653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654   *) ac_try_echo=$ac_try;;
3655 esac
3656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3657 $as_echo "$ac_try_echo"; } >&5
3658   (eval "$ac_try") 2>&5
3659   ac_status=$?
3660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661   test $ac_status = 0; }; }; then
3662     cross_compiling=no
3663   else
3664     if test "$cross_compiling" = maybe; then
3665         cross_compiling=yes
3666     else
3667         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669 as_fn_error $? "cannot run C compiled programs.
3670 If you meant to cross compile, use \`--host'.
3671 See \`config.log' for more details" "$LINENO" 5 ; }
3672     fi
3673   fi
3674 fi
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3676 $as_echo "$cross_compiling" >&6; }
3677
3678 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3679 ac_clean_files=$ac_clean_files_save
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3681 $as_echo_n "checking for suffix of object files... " >&6; }
3682 if test "${ac_cv_objext+set}" = set; then :
3683   $as_echo_n "(cached) " >&6
3684 else
3685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h.  */
3687
3688 int
3689 main ()
3690 {
3691
3692   ;
3693   return 0;
3694 }
3695 _ACEOF
3696 rm -f conftest.o conftest.obj
3697 if { { ac_try="$ac_compile"
3698 case "(($ac_try" in
3699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700   *) ac_try_echo=$ac_try;;
3701 esac
3702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3703 $as_echo "$ac_try_echo"; } >&5
3704   (eval "$ac_compile") 2>&5
3705   ac_status=$?
3706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707   test $ac_status = 0; }; then :
3708   for ac_file in conftest.o conftest.obj conftest.*; do
3709   test -f "$ac_file" || continue;
3710   case $ac_file in
3711     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3712     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3713        break;;
3714   esac
3715 done
3716 else
3717   $as_echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3719
3720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3722 as_fn_error $? "cannot compute suffix of object files: cannot compile
3723 See \`config.log' for more details" "$LINENO" 5 ; }
3724 fi
3725 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3726 fi
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3728 $as_echo "$ac_cv_objext" >&6; }
3729 OBJEXT=$ac_cv_objext
3730 ac_objext=$OBJEXT
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3732 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3733 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3734   $as_echo_n "(cached) " >&6
3735 else
3736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h.  */
3738
3739 int
3740 main ()
3741 {
3742 #ifndef __GNUC__
3743        choke me
3744 #endif
3745
3746   ;
3747   return 0;
3748 }
3749 _ACEOF
3750 if ac_fn_c_try_compile "$LINENO"; then :
3751   ac_compiler_gnu=yes
3752 else
3753   ac_compiler_gnu=no
3754 fi
3755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3757
3758 fi
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3760 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3761 if test $ac_compiler_gnu = yes; then
3762   GCC=yes
3763 else
3764   GCC=
3765 fi
3766 ac_test_CFLAGS=${CFLAGS+set}
3767 ac_save_CFLAGS=$CFLAGS
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3769 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3770 if test "${ac_cv_prog_cc_g+set}" = set; then :
3771   $as_echo_n "(cached) " >&6
3772 else
3773   ac_save_c_werror_flag=$ac_c_werror_flag
3774    ac_c_werror_flag=yes
3775    ac_cv_prog_cc_g=no
3776    CFLAGS="-g"
3777    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h.  */
3779
3780 int
3781 main ()
3782 {
3783
3784   ;
3785   return 0;
3786 }
3787 _ACEOF
3788 if ac_fn_c_try_compile "$LINENO"; then :
3789   ac_cv_prog_cc_g=yes
3790 else
3791   CFLAGS=""
3792       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h.  */
3794
3795 int
3796 main ()
3797 {
3798
3799   ;
3800   return 0;
3801 }
3802 _ACEOF
3803 if ac_fn_c_try_compile "$LINENO"; then :
3804
3805 else
3806   ac_c_werror_flag=$ac_save_c_werror_flag
3807          CFLAGS="-g"
3808          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h.  */
3810
3811 int
3812 main ()
3813 {
3814
3815   ;
3816   return 0;
3817 }
3818 _ACEOF
3819 if ac_fn_c_try_compile "$LINENO"; then :
3820   ac_cv_prog_cc_g=yes
3821 fi
3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 fi
3824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 fi
3826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827    ac_c_werror_flag=$ac_save_c_werror_flag
3828 fi
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3830 $as_echo "$ac_cv_prog_cc_g" >&6; }
3831 if test "$ac_test_CFLAGS" = set; then
3832   CFLAGS=$ac_save_CFLAGS
3833 elif test $ac_cv_prog_cc_g = yes; then
3834   if test "$GCC" = yes; then
3835     CFLAGS="-g -O2"
3836   else
3837     CFLAGS="-g"
3838   fi
3839 else
3840   if test "$GCC" = yes; then
3841     CFLAGS="-O2"
3842   else
3843     CFLAGS=
3844   fi
3845 fi
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3847 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3848 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3849   $as_echo_n "(cached) " >&6
3850 else
3851   ac_cv_prog_cc_c89=no
3852 ac_save_CC=$CC
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h.  */
3855 #include <stdarg.h>
3856 #include <stdio.h>
3857 #include <sys/types.h>
3858 #include <sys/stat.h>
3859 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3860 struct buf { int x; };
3861 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3862 static char *e (p, i)
3863      char **p;
3864      int i;
3865 {
3866   return p[i];
3867 }
3868 static char *f (char * (*g) (char **, int), char **p, ...)
3869 {
3870   char *s;
3871   va_list v;
3872   va_start (v,p);
3873   s = g (p, va_arg (v,int));
3874   va_end (v);
3875   return s;
3876 }
3877
3878 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3879    function prototypes and stuff, but not '\xHH' hex character constants.
3880    These don't provoke an error unfortunately, instead are silently treated
3881    as 'x'.  The following induces an error, until -std is added to get
3882    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3883    array size at least.  It's necessary to write '\x00'==0 to get something
3884    that's true only with -std.  */
3885 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3886
3887 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3888    inside strings and character constants.  */
3889 #define FOO(x) 'x'
3890 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3891
3892 int test (int i, double x);
3893 struct s1 {int (*f) (int a);};
3894 struct s2 {int (*f) (double a);};
3895 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3896 int argc;
3897 char **argv;
3898 int
3899 main ()
3900 {
3901 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3902   ;
3903   return 0;
3904 }
3905 _ACEOF
3906 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3907         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3908 do
3909   CC="$ac_save_CC $ac_arg"
3910   if ac_fn_c_try_compile "$LINENO"; then :
3911   ac_cv_prog_cc_c89=$ac_arg
3912 fi
3913 rm -f core conftest.err conftest.$ac_objext
3914   test "x$ac_cv_prog_cc_c89" != "xno" && break
3915 done
3916 rm -f conftest.$ac_ext
3917 CC=$ac_save_CC
3918
3919 fi
3920 # AC_CACHE_VAL
3921 case "x$ac_cv_prog_cc_c89" in
3922   x)
3923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3924 $as_echo "none needed" >&6; } ;;
3925   xno)
3926     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3927 $as_echo "unsupported" >&6; } ;;
3928   *)
3929     CC="$CC $ac_cv_prog_cc_c89"
3930     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3931 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3932 esac
3933 if test "x$ac_cv_prog_cc_c89" != xno; then :
3934
3935 fi
3936
3937 ac_ext=c
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942
3943 depcc="$CC"   am_compiler_list=
3944
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3946 $as_echo_n "checking dependency style of $depcc... " >&6; }
3947 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3948   $as_echo_n "(cached) " >&6
3949 else
3950   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3951   # We make a subdir and do the tests there.  Otherwise we can end up
3952   # making bogus files that we don't know about and never remove.  For
3953   # instance it was reported that on HP-UX the gcc test will end up
3954   # making a dummy file named `D' -- because `-MD' means `put the output
3955   # in D'.
3956   mkdir conftest.dir
3957   # Copy depcomp to subdir because otherwise we won't find it if we're
3958   # using a relative directory.
3959   cp "$am_depcomp" conftest.dir
3960   cd conftest.dir
3961   # We will build objects and dependencies in a subdirectory because
3962   # it helps to detect inapplicable dependency modes.  For instance
3963   # both Tru64's cc and ICC support -MD to output dependencies as a
3964   # side effect of compilation, but ICC will put the dependencies in
3965   # the current directory while Tru64 will put them in the object
3966   # directory.
3967   mkdir sub
3968
3969   am_cv_CC_dependencies_compiler_type=none
3970   if test "$am_compiler_list" = ""; then
3971      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3972   fi
3973   am__universal=false
3974   case " $depcc " in #(
3975      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3976      esac
3977
3978   for depmode in $am_compiler_list; do
3979     # Setup a source with many dependencies, because some compilers
3980     # like to wrap large dependency lists on column 80 (with \), and
3981     # we should not choose a depcomp mode which is confused by this.
3982     #
3983     # We need to recreate these files for each test, as the compiler may
3984     # overwrite some of them when testing with obscure command lines.
3985     # This happens at least with the AIX C compiler.
3986     : > sub/conftest.c
3987     for i in 1 2 3 4 5 6; do
3988       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3989       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3990       # Solaris 8's {/usr,}/bin/sh.
3991       touch sub/conftst$i.h
3992     done
3993     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3994
3995     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3996     # mode.  It turns out that the SunPro C++ compiler does not properly
3997     # handle `-M -o', and we need to detect this.  Also, some Intel
3998     # versions had trouble with output in subdirs
3999     am__obj=sub/conftest.${OBJEXT-o}
4000     am__minus_obj="-o $am__obj"
4001     case $depmode in
4002     gcc)
4003       # This depmode causes a compiler race in universal mode.
4004       test "$am__universal" = false || continue
4005       ;;
4006     nosideeffect)
4007       # after this tag, mechanisms are not by side-effect, so they'll
4008       # only be used when explicitly requested
4009       if test "x$enable_dependency_tracking" = xyes; then
4010         continue
4011       else
4012         break
4013       fi
4014       ;;
4015     msvisualcpp | msvcmsys)
4016       # This compiler won't grok `-c -o', but also, the minuso test has
4017       # not run yet.  These depmodes are late enough in the game, and
4018       # so weak that their functioning should not be impacted.
4019       am__obj=conftest.${OBJEXT-o}
4020       am__minus_obj=
4021       ;;
4022     none) break ;;
4023     esac
4024     if depmode=$depmode \
4025        source=sub/conftest.c object=$am__obj \
4026        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4027        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4028          >/dev/null 2>conftest.err &&
4029        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4030        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4031        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4032        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4033       # icc doesn't choke on unknown options, it will just issue warnings
4034       # or remarks (even with -Werror).  So we grep stderr for any message
4035       # that says an option was ignored or not supported.
4036       # When given -MP, icc 7.0 and 7.1 complain thusly:
4037       #   icc: Command line warning: ignoring option '-M'; no argument required
4038       # The diagnosis changed in icc 8.0:
4039       #   icc: Command line remark: option '-MP' not supported
4040       if (grep 'ignoring option' conftest.err ||
4041           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4042         am_cv_CC_dependencies_compiler_type=$depmode
4043         break
4044       fi
4045     fi
4046   done
4047
4048   cd ..
4049   rm -rf conftest.dir
4050 else
4051   am_cv_CC_dependencies_compiler_type=none
4052 fi
4053
4054 fi
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4056 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4057 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4058
4059  if
4060   test "x$enable_dependency_tracking" != xno \
4061   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4062   am__fastdepCC_TRUE=
4063   am__fastdepCC_FALSE='#'
4064 else
4065   am__fastdepCC_TRUE='#'
4066   am__fastdepCC_FALSE=
4067 fi
4068
4069
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4071 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4072 if test "${ac_cv_path_SED+set}" = set; then :
4073   $as_echo_n "(cached) " >&6
4074 else
4075             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4076      for ac_i in 1 2 3 4 5 6 7; do
4077        ac_script="$ac_script$as_nl$ac_script"
4078      done
4079      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4080      { ac_script=; unset ac_script;}
4081      if test -z "$SED"; then
4082   ac_path_SED_found=false
4083   # Loop through the user's path and test for each of PROGNAME-LIST
4084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 for as_dir in $PATH
4086 do
4087   IFS=$as_save_IFS
4088   test -z "$as_dir" && as_dir=.
4089     for ac_prog in sed gsed; do
4090     for ac_exec_ext in '' $ac_executable_extensions; do
4091       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4092       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4093 # Check for GNU ac_path_SED and select it if it is found.
4094   # Check for GNU $ac_path_SED
4095 case `"$ac_path_SED" --version 2>&1` in
4096 *GNU*)
4097   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4098 *)
4099   ac_count=0
4100   $as_echo_n 0123456789 >"conftest.in"
4101   while :
4102   do
4103     cat "conftest.in" "conftest.in" >"conftest.tmp"
4104     mv "conftest.tmp" "conftest.in"
4105     cp "conftest.in" "conftest.nl"
4106     $as_echo '' >> "conftest.nl"
4107     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4108     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4109     as_fn_arith $ac_count + 1 && ac_count=$as_val
4110     if test $ac_count -gt ${ac_path_SED_max-0}; then
4111       # Best one so far, save it but keep looking for a better one
4112       ac_cv_path_SED="$ac_path_SED"
4113       ac_path_SED_max=$ac_count
4114     fi
4115     # 10*(2^10) chars as input seems more than enough
4116     test $ac_count -gt 10 && break
4117   done
4118   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4119 esac
4120
4121       $ac_path_SED_found && break 3
4122     done
4123   done
4124   done
4125 IFS=$as_save_IFS
4126   if test -z "$ac_cv_path_SED"; then
4127     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4128   fi
4129 else
4130   ac_cv_path_SED=$SED
4131 fi
4132
4133 fi
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4135 $as_echo "$ac_cv_path_SED" >&6; }
4136  SED="$ac_cv_path_SED"
4137   rm -f conftest.sed
4138
4139 test -z "$SED" && SED=sed
4140 Xsed="$SED -e 1s/^X//"
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4153 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4154 if test "${ac_cv_path_GREP+set}" = set; then :
4155   $as_echo_n "(cached) " >&6
4156 else
4157   if test -z "$GREP"; then
4158   ac_path_GREP_found=false
4159   # Loop through the user's path and test for each of PROGNAME-LIST
4160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4162 do
4163   IFS=$as_save_IFS
4164   test -z "$as_dir" && as_dir=.
4165     for ac_prog in grep ggrep; do
4166     for ac_exec_ext in '' $ac_executable_extensions; do
4167       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4168       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4169 # Check for GNU ac_path_GREP and select it if it is found.
4170   # Check for GNU $ac_path_GREP
4171 case `"$ac_path_GREP" --version 2>&1` in
4172 *GNU*)
4173   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4174 *)
4175   ac_count=0
4176   $as_echo_n 0123456789 >"conftest.in"
4177   while :
4178   do
4179     cat "conftest.in" "conftest.in" >"conftest.tmp"
4180     mv "conftest.tmp" "conftest.in"
4181     cp "conftest.in" "conftest.nl"
4182     $as_echo 'GREP' >> "conftest.nl"
4183     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4184     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4185     as_fn_arith $ac_count + 1 && ac_count=$as_val
4186     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4187       # Best one so far, save it but keep looking for a better one
4188       ac_cv_path_GREP="$ac_path_GREP"
4189       ac_path_GREP_max=$ac_count
4190     fi
4191     # 10*(2^10) chars as input seems more than enough
4192     test $ac_count -gt 10 && break
4193   done
4194   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4195 esac
4196
4197       $ac_path_GREP_found && break 3
4198     done
4199   done
4200   done
4201 IFS=$as_save_IFS
4202   if test -z "$ac_cv_path_GREP"; then
4203     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4204   fi
4205 else
4206   ac_cv_path_GREP=$GREP
4207 fi
4208
4209 fi
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4211 $as_echo "$ac_cv_path_GREP" >&6; }
4212  GREP="$ac_cv_path_GREP"
4213
4214
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4216 $as_echo_n "checking for egrep... " >&6; }
4217 if test "${ac_cv_path_EGREP+set}" = set; then :
4218   $as_echo_n "(cached) " >&6
4219 else
4220   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4221    then ac_cv_path_EGREP="$GREP -E"
4222    else
4223      if test -z "$EGREP"; then
4224   ac_path_EGREP_found=false
4225   # Loop through the user's path and test for each of PROGNAME-LIST
4226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4228 do
4229   IFS=$as_save_IFS
4230   test -z "$as_dir" && as_dir=.
4231     for ac_prog in egrep; do
4232     for ac_exec_ext in '' $ac_executable_extensions; do
4233       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4234       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4235 # Check for GNU ac_path_EGREP and select it if it is found.
4236   # Check for GNU $ac_path_EGREP
4237 case `"$ac_path_EGREP" --version 2>&1` in
4238 *GNU*)
4239   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4240 *)
4241   ac_count=0
4242   $as_echo_n 0123456789 >"conftest.in"
4243   while :
4244   do
4245     cat "conftest.in" "conftest.in" >"conftest.tmp"
4246     mv "conftest.tmp" "conftest.in"
4247     cp "conftest.in" "conftest.nl"
4248     $as_echo 'EGREP' >> "conftest.nl"
4249     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4250     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4251     as_fn_arith $ac_count + 1 && ac_count=$as_val
4252     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4253       # Best one so far, save it but keep looking for a better one
4254       ac_cv_path_EGREP="$ac_path_EGREP"
4255       ac_path_EGREP_max=$ac_count
4256     fi
4257     # 10*(2^10) chars as input seems more than enough
4258     test $ac_count -gt 10 && break
4259   done
4260   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4261 esac
4262
4263       $ac_path_EGREP_found && break 3
4264     done
4265   done
4266   done
4267 IFS=$as_save_IFS
4268   if test -z "$ac_cv_path_EGREP"; then
4269     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4270   fi
4271 else
4272   ac_cv_path_EGREP=$EGREP
4273 fi
4274
4275    fi
4276 fi
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4278 $as_echo "$ac_cv_path_EGREP" >&6; }
4279  EGREP="$ac_cv_path_EGREP"
4280
4281
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4283 $as_echo_n "checking for fgrep... " >&6; }
4284 if test "${ac_cv_path_FGREP+set}" = set; then :
4285   $as_echo_n "(cached) " >&6
4286 else
4287   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4288    then ac_cv_path_FGREP="$GREP -F"
4289    else
4290      if test -z "$FGREP"; then
4291   ac_path_FGREP_found=false
4292   # Loop through the user's path and test for each of PROGNAME-LIST
4293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4295 do
4296   IFS=$as_save_IFS
4297   test -z "$as_dir" && as_dir=.
4298     for ac_prog in fgrep; do
4299     for ac_exec_ext in '' $ac_executable_extensions; do
4300       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4301       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4302 # Check for GNU ac_path_FGREP and select it if it is found.
4303   # Check for GNU $ac_path_FGREP
4304 case `"$ac_path_FGREP" --version 2>&1` in
4305 *GNU*)
4306   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4307 *)
4308   ac_count=0
4309   $as_echo_n 0123456789 >"conftest.in"
4310   while :
4311   do
4312     cat "conftest.in" "conftest.in" >"conftest.tmp"
4313     mv "conftest.tmp" "conftest.in"
4314     cp "conftest.in" "conftest.nl"
4315     $as_echo 'FGREP' >> "conftest.nl"
4316     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4317     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4318     as_fn_arith $ac_count + 1 && ac_count=$as_val
4319     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4320       # Best one so far, save it but keep looking for a better one
4321       ac_cv_path_FGREP="$ac_path_FGREP"
4322       ac_path_FGREP_max=$ac_count
4323     fi
4324     # 10*(2^10) chars as input seems more than enough
4325     test $ac_count -gt 10 && break
4326   done
4327   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4328 esac
4329
4330       $ac_path_FGREP_found && break 3
4331     done
4332   done
4333   done
4334 IFS=$as_save_IFS
4335   if test -z "$ac_cv_path_FGREP"; then
4336     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4337   fi
4338 else
4339   ac_cv_path_FGREP=$FGREP
4340 fi
4341
4342    fi
4343 fi
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4345 $as_echo "$ac_cv_path_FGREP" >&6; }
4346  FGREP="$ac_cv_path_FGREP"
4347
4348
4349 test -z "$GREP" && GREP=grep
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369 # Check whether --with-gnu-ld was given.
4370 if test "${with_gnu_ld+set}" = set; then :
4371   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4372 else
4373   with_gnu_ld=no
4374 fi
4375
4376 ac_prog=ld
4377 if test "$GCC" = yes; then
4378   # Check if gcc -print-prog-name=ld gives a path.
4379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4380 $as_echo_n "checking for ld used by $CC... " >&6; }
4381   case $host in
4382   *-*-mingw*)
4383     # gcc leaves a trailing carriage return which upsets mingw
4384     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4385   *)
4386     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4387   esac
4388   case $ac_prog in
4389     # Accept absolute paths.
4390     [\\/]* | ?:[\\/]*)
4391       re_direlt='/[^/][^/]*/\.\./'
4392       # Canonicalize the pathname of ld
4393       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4394       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4395         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4396       done
4397       test -z "$LD" && LD="$ac_prog"
4398       ;;
4399   "")
4400     # If it fails, then pretend we aren't using GCC.
4401     ac_prog=ld
4402     ;;
4403   *)
4404     # If it is relative, then search for the first ld in PATH.
4405     with_gnu_ld=unknown
4406     ;;
4407   esac
4408 elif test "$with_gnu_ld" = yes; then
4409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4410 $as_echo_n "checking for GNU ld... " >&6; }
4411 else
4412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4413 $as_echo_n "checking for non-GNU ld... " >&6; }
4414 fi
4415 if test "${lt_cv_path_LD+set}" = set; then :
4416   $as_echo_n "(cached) " >&6
4417 else
4418   if test -z "$LD"; then
4419   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4420   for ac_dir in $PATH; do
4421     IFS="$lt_save_ifs"
4422     test -z "$ac_dir" && ac_dir=.
4423     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4424       lt_cv_path_LD="$ac_dir/$ac_prog"
4425       # Check to see if the program is GNU ld.  I'd rather use --version,
4426       # but apparently some variants of GNU ld only accept -v.
4427       # Break only if it was the GNU/non-GNU ld that we prefer.
4428       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4429       *GNU* | *'with BFD'*)
4430         test "$with_gnu_ld" != no && break
4431         ;;
4432       *)
4433         test "$with_gnu_ld" != yes && break
4434         ;;
4435       esac
4436     fi
4437   done
4438   IFS="$lt_save_ifs"
4439 else
4440   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4441 fi
4442 fi
4443
4444 LD="$lt_cv_path_LD"
4445 if test -n "$LD"; then
4446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4447 $as_echo "$LD" >&6; }
4448 else
4449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4450 $as_echo "no" >&6; }
4451 fi
4452 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4454 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4455 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4456   $as_echo_n "(cached) " >&6
4457 else
4458   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4459 case `$LD -v 2>&1 </dev/null` in
4460 *GNU* | *'with BFD'*)
4461   lt_cv_prog_gnu_ld=yes
4462   ;;
4463 *)
4464   lt_cv_prog_gnu_ld=no
4465   ;;
4466 esac
4467 fi
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4469 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4470 with_gnu_ld=$lt_cv_prog_gnu_ld
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4481 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4482 if test "${lt_cv_path_NM+set}" = set; then :
4483   $as_echo_n "(cached) " >&6
4484 else
4485   if test -n "$NM"; then
4486   # Let the user override the test.
4487   lt_cv_path_NM="$NM"
4488 else
4489   lt_nm_to_check="${ac_tool_prefix}nm"
4490   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4491     lt_nm_to_check="$lt_nm_to_check nm"
4492   fi
4493   for lt_tmp_nm in $lt_nm_to_check; do
4494     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4495     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4496       IFS="$lt_save_ifs"
4497       test -z "$ac_dir" && ac_dir=.
4498       tmp_nm="$ac_dir/$lt_tmp_nm"
4499       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4500         # Check to see if the nm accepts a BSD-compat flag.
4501         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4502         #   nm: unknown option "B" ignored
4503         # Tru64's nm complains that /dev/null is an invalid object file
4504         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4505         */dev/null* | *'Invalid file or object type'*)
4506           lt_cv_path_NM="$tmp_nm -B"
4507           break
4508           ;;
4509         *)
4510           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4511           */dev/null*)
4512             lt_cv_path_NM="$tmp_nm -p"
4513             break
4514             ;;
4515           *)
4516             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4517             continue # so that we can try to find one that supports BSD flags
4518             ;;
4519           esac
4520           ;;
4521         esac
4522       fi
4523     done
4524     IFS="$lt_save_ifs"
4525   done
4526   : ${lt_cv_path_NM=no}
4527 fi
4528 fi
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4530 $as_echo "$lt_cv_path_NM" >&6; }
4531 if test "$lt_cv_path_NM" != "no"; then
4532   NM="$lt_cv_path_NM"
4533 else
4534   # Didn't find any BSD compatible name lister, look for dumpbin.
4535   if test -n "$ac_tool_prefix"; then
4536   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4537   do
4538     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4539 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4543   $as_echo_n "(cached) " >&6
4544 else
4545   if test -n "$DUMPBIN"; then
4546   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4550 do
4551   IFS=$as_save_IFS
4552   test -z "$as_dir" && as_dir=.
4553     for ac_exec_ext in '' $ac_executable_extensions; do
4554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557     break 2
4558   fi
4559 done
4560   done
4561 IFS=$as_save_IFS
4562
4563 fi
4564 fi
4565 DUMPBIN=$ac_cv_prog_DUMPBIN
4566 if test -n "$DUMPBIN"; then
4567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4568 $as_echo "$DUMPBIN" >&6; }
4569 else
4570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4572 fi
4573
4574
4575     test -n "$DUMPBIN" && break
4576   done
4577 fi
4578 if test -z "$DUMPBIN"; then
4579   ac_ct_DUMPBIN=$DUMPBIN
4580   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4581 do
4582   # Extract the first word of "$ac_prog", so it can be a program name with args.
4583 set dummy $ac_prog; ac_word=$2
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4585 $as_echo_n "checking for $ac_word... " >&6; }
4586 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4587   $as_echo_n "(cached) " >&6
4588 else
4589   if test -n "$ac_ct_DUMPBIN"; then
4590   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4591 else
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH
4594 do
4595   IFS=$as_save_IFS
4596   test -z "$as_dir" && as_dir=.
4597     for ac_exec_ext in '' $ac_executable_extensions; do
4598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4599     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4601     break 2
4602   fi
4603 done
4604   done
4605 IFS=$as_save_IFS
4606
4607 fi
4608 fi
4609 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4610 if test -n "$ac_ct_DUMPBIN"; then
4611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4612 $as_echo "$ac_ct_DUMPBIN" >&6; }
4613 else
4614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615 $as_echo "no" >&6; }
4616 fi
4617
4618
4619   test -n "$ac_ct_DUMPBIN" && break
4620 done
4621
4622   if test "x$ac_ct_DUMPBIN" = x; then
4623     DUMPBIN=":"
4624   else
4625     case $cross_compiling:$ac_tool_warned in
4626 yes:)
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4629 ac_tool_warned=yes ;;
4630 esac
4631     DUMPBIN=$ac_ct_DUMPBIN
4632   fi
4633 fi
4634
4635
4636   if test "$DUMPBIN" != ":"; then
4637     NM="$DUMPBIN"
4638   fi
4639 fi
4640 test -z "$NM" && NM=nm
4641
4642
4643
4644
4645
4646
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4648 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4649 if test "${lt_cv_nm_interface+set}" = set; then :
4650   $as_echo_n "(cached) " >&6
4651 else
4652   lt_cv_nm_interface="BSD nm"
4653   echo "int some_variable = 0;" > conftest.$ac_ext
4654   (eval echo "\"\$as_me:4654: $ac_compile\"" >&5)
4655   (eval "$ac_compile" 2>conftest.err)
4656   cat conftest.err >&5
4657   (eval echo "\"\$as_me:4657: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4658   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4659   cat conftest.err >&5
4660   (eval echo "\"\$as_me:4660: output\"" >&5)
4661   cat conftest.out >&5
4662   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4663     lt_cv_nm_interface="MS dumpbin"
4664   fi
4665   rm -f conftest*
4666 fi
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4668 $as_echo "$lt_cv_nm_interface" >&6; }
4669
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4671 $as_echo_n "checking whether ln -s works... " >&6; }
4672 LN_S=$as_ln_s
4673 if test "$LN_S" = "ln -s"; then
4674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4675 $as_echo "yes" >&6; }
4676 else
4677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4678 $as_echo "no, using $LN_S" >&6; }
4679 fi
4680
4681 # find the maximum length of command line arguments
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4683 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4684 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4685   $as_echo_n "(cached) " >&6
4686 else
4687     i=0
4688   teststring="ABCD"
4689
4690   case $build_os in
4691   msdosdjgpp*)
4692     # On DJGPP, this test can blow up pretty badly due to problems in libc
4693     # (any single argument exceeding 2000 bytes causes a buffer overrun
4694     # during glob expansion).  Even if it were fixed, the result of this
4695     # check would be larger than it should be.
4696     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4697     ;;
4698
4699   gnu*)
4700     # Under GNU Hurd, this test is not required because there is
4701     # no limit to the length of command line arguments.
4702     # Libtool will interpret -1 as no limit whatsoever
4703     lt_cv_sys_max_cmd_len=-1;
4704     ;;
4705
4706   cygwin* | mingw* | cegcc*)
4707     # On Win9x/ME, this test blows up -- it succeeds, but takes
4708     # about 5 minutes as the teststring grows exponentially.
4709     # Worse, since 9x/ME are not pre-emptively multitasking,
4710     # you end up with a "frozen" computer, even though with patience
4711     # the test eventually succeeds (with a max line length of 256k).
4712     # Instead, let's just punt: use the minimum linelength reported by
4713     # all of the supported platforms: 8192 (on NT/2K/XP).
4714     lt_cv_sys_max_cmd_len=8192;
4715     ;;
4716
4717   amigaos*)
4718     # On AmigaOS with pdksh, this test takes hours, literally.
4719     # So we just punt and use a minimum line length of 8192.
4720     lt_cv_sys_max_cmd_len=8192;
4721     ;;
4722
4723   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4724     # This has been around since 386BSD, at least.  Likely further.
4725     if test -x /sbin/sysctl; then
4726       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4727     elif test -x /usr/sbin/sysctl; then
4728       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4729     else
4730       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4731     fi
4732     # And add a safety zone
4733     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4734     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4735     ;;
4736
4737   interix*)
4738     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4739     lt_cv_sys_max_cmd_len=196608
4740     ;;
4741
4742   osf*)
4743     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4744     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4745     # nice to cause kernel panics so lets avoid the loop below.
4746     # First set a reasonable default.
4747     lt_cv_sys_max_cmd_len=16384
4748     #
4749     if test -x /sbin/sysconfig; then
4750       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4751         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4752       esac
4753     fi
4754     ;;
4755   sco3.2v5*)
4756     lt_cv_sys_max_cmd_len=102400
4757     ;;
4758   sysv5* | sco5v6* | sysv4.2uw2*)
4759     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4760     if test -n "$kargmax"; then
4761       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4762     else
4763       lt_cv_sys_max_cmd_len=32768
4764     fi
4765     ;;
4766   *)
4767     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4768     if test -n "$lt_cv_sys_max_cmd_len"; then
4769       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4770       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4771     else
4772       # Make teststring a little bigger before we do anything with it.
4773       # a 1K string should be a reasonable start.
4774       for i in 1 2 3 4 5 6 7 8 ; do
4775         teststring=$teststring$teststring
4776       done
4777       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4778       # If test is not a shell built-in, we'll probably end up computing a
4779       # maximum length that is only half of the actual maximum length, but
4780       # we can't tell.
4781       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4782                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4783               test $i != 17 # 1/2 MB should be enough
4784       do
4785         i=`expr $i + 1`
4786         teststring=$teststring$teststring
4787       done
4788       # Only check the string length outside the loop.
4789       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4790       teststring=
4791       # Add a significant safety factor because C++ compilers can tack on
4792       # massive amounts of additional arguments before passing them to the
4793       # linker.  It appears as though 1/2 is a usable value.
4794       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4795     fi
4796     ;;
4797   esac
4798
4799 fi
4800
4801 if test -n $lt_cv_sys_max_cmd_len ; then
4802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4803 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4804 else
4805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4806 $as_echo "none" >&6; }
4807 fi
4808 max_cmd_len=$lt_cv_sys_max_cmd_len
4809
4810
4811
4812
4813
4814
4815 : ${CP="cp -f"}
4816 : ${MV="mv -f"}
4817 : ${RM="rm -f"}
4818
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4820 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4821 # Try some XSI features
4822 xsi_shell=no
4823 ( _lt_dummy="a/b/c"
4824   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4825       = c,a/b,, \
4826     && eval 'test $(( 1 + 1 )) -eq 2 \
4827     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4828   && xsi_shell=yes
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4830 $as_echo "$xsi_shell" >&6; }
4831
4832
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4834 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4835 lt_shell_append=no
4836 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4837     >/dev/null 2>&1 \
4838   && lt_shell_append=yes
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4840 $as_echo "$lt_shell_append" >&6; }
4841
4842
4843 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4844   lt_unset=unset
4845 else
4846   lt_unset=false
4847 fi
4848
4849
4850
4851
4852
4853 # test EBCDIC or ASCII
4854 case `echo X|tr X '\101'` in
4855  A) # ASCII based system
4856     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4857   lt_SP2NL='tr \040 \012'
4858   lt_NL2SP='tr \015\012 \040\040'
4859   ;;
4860  *) # EBCDIC based system
4861   lt_SP2NL='tr \100 \n'
4862   lt_NL2SP='tr \r\n \100\100'
4863   ;;
4864 esac
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4875 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4876 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4877   $as_echo_n "(cached) " >&6
4878 else
4879   lt_cv_ld_reload_flag='-r'
4880 fi
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4882 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4883 reload_flag=$lt_cv_ld_reload_flag
4884 case $reload_flag in
4885 "" | " "*) ;;
4886 *) reload_flag=" $reload_flag" ;;
4887 esac
4888 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4889 case $host_os in
4890   darwin*)
4891     if test "$GCC" = yes; then
4892       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4893     else
4894       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4895     fi
4896     ;;
4897 esac
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907 if test -n "$ac_tool_prefix"; then
4908   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4909 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911 $as_echo_n "checking for $ac_word... " >&6; }
4912 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4913   $as_echo_n "(cached) " >&6
4914 else
4915   if test -n "$OBJDUMP"; then
4916   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4917 else
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4920 do
4921   IFS=$as_save_IFS
4922   test -z "$as_dir" && as_dir=.
4923     for ac_exec_ext in '' $ac_executable_extensions; do
4924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927     break 2
4928   fi
4929 done
4930   done
4931 IFS=$as_save_IFS
4932
4933 fi
4934 fi
4935 OBJDUMP=$ac_cv_prog_OBJDUMP
4936 if test -n "$OBJDUMP"; then
4937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4938 $as_echo "$OBJDUMP" >&6; }
4939 else
4940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 $as_echo "no" >&6; }
4942 fi
4943
4944
4945 fi
4946 if test -z "$ac_cv_prog_OBJDUMP"; then
4947   ac_ct_OBJDUMP=$OBJDUMP
4948   # Extract the first word of "objdump", so it can be a program name with args.
4949 set dummy objdump; ac_word=$2
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4951 $as_echo_n "checking for $ac_word... " >&6; }
4952 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4953   $as_echo_n "(cached) " >&6
4954 else
4955   if test -n "$ac_ct_OBJDUMP"; then
4956   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4957 else
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4960 do
4961   IFS=$as_save_IFS
4962   test -z "$as_dir" && as_dir=.
4963     for ac_exec_ext in '' $ac_executable_extensions; do
4964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4965     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967     break 2
4968   fi
4969 done
4970   done
4971 IFS=$as_save_IFS
4972
4973 fi
4974 fi
4975 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4976 if test -n "$ac_ct_OBJDUMP"; then
4977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4978 $as_echo "$ac_ct_OBJDUMP" >&6; }
4979 else
4980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4981 $as_echo "no" >&6; }
4982 fi
4983
4984   if test "x$ac_ct_OBJDUMP" = x; then
4985     OBJDUMP="false"
4986   else
4987     case $cross_compiling:$ac_tool_warned in
4988 yes:)
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4991 ac_tool_warned=yes ;;
4992 esac
4993     OBJDUMP=$ac_ct_OBJDUMP
4994   fi
4995 else
4996   OBJDUMP="$ac_cv_prog_OBJDUMP"
4997 fi
4998
4999 test -z "$OBJDUMP" && OBJDUMP=objdump
5000
5001
5002
5003
5004
5005
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5007 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5008 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5009   $as_echo_n "(cached) " >&6
5010 else
5011   lt_cv_file_magic_cmd='$MAGIC_CMD'
5012 lt_cv_file_magic_test_file=
5013 lt_cv_deplibs_check_method='unknown'
5014 # Need to set the preceding variable on all platforms that support
5015 # interlibrary dependencies.
5016 # 'none' -- dependencies not supported.
5017 # `unknown' -- same as none, but documents that we really don't know.
5018 # 'pass_all' -- all dependencies passed with no checks.
5019 # 'test_compile' -- check by making test program.
5020 # 'file_magic [[regex]]' -- check by looking for files in library path
5021 # which responds to the $file_magic_cmd with a given extended regex.
5022 # If you have `file' or equivalent on your system and you're not sure
5023 # whether `pass_all' will *always* work, you probably want this one.
5024
5025 case $host_os in
5026 aix[4-9]*)
5027   lt_cv_deplibs_check_method=pass_all
5028   ;;
5029
5030 beos*)
5031   lt_cv_deplibs_check_method=pass_all
5032   ;;
5033
5034 bsdi[45]*)
5035   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5036   lt_cv_file_magic_cmd='/usr/bin/file -L'
5037   lt_cv_file_magic_test_file=/shlib/libc.so
5038   ;;
5039
5040 cygwin*)
5041   # func_win32_libid is a shell function defined in ltmain.sh
5042   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5043   lt_cv_file_magic_cmd='func_win32_libid'
5044   ;;
5045
5046 mingw* | pw32*)
5047   # Base MSYS/MinGW do not provide the 'file' command needed by
5048   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5049   # unless we find 'file', for example because we are cross-compiling.
5050   if ( file / ) >/dev/null 2>&1; then
5051     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5052     lt_cv_file_magic_cmd='func_win32_libid'
5053   else
5054     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5055     lt_cv_file_magic_cmd='$OBJDUMP -f'
5056   fi
5057   ;;
5058
5059 cegcc)
5060   # use the weaker test based on 'objdump'. See mingw*.
5061   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5062   lt_cv_file_magic_cmd='$OBJDUMP -f'
5063   ;;
5064
5065 darwin* | rhapsody*)
5066   lt_cv_deplibs_check_method=pass_all
5067   ;;
5068
5069 freebsd* | dragonfly*)
5070   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5071     case $host_cpu in
5072     i*86 )
5073       # Not sure whether the presence of OpenBSD here was a mistake.
5074       # Let's accept both of them until this is cleared up.
5075       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5076       lt_cv_file_magic_cmd=/usr/bin/file
5077       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5078       ;;
5079     esac
5080   else
5081     lt_cv_deplibs_check_method=pass_all
5082   fi
5083   ;;
5084
5085 gnu*)
5086   lt_cv_deplibs_check_method=pass_all
5087   ;;
5088
5089 hpux10.20* | hpux11*)
5090   lt_cv_file_magic_cmd=/usr/bin/file
5091   case $host_cpu in
5092   ia64*)
5093     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5094     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5095     ;;
5096   hppa*64*)
5097     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]'
5098     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5099     ;;
5100   *)
5101     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5102     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5103     ;;
5104   esac
5105   ;;
5106
5107 interix[3-9]*)
5108   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5109   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5110   ;;
5111
5112 irix5* | irix6* | nonstopux*)
5113   case $LD in
5114   *-32|*"-32 ") libmagic=32-bit;;
5115   *-n32|*"-n32 ") libmagic=N32;;
5116   *-64|*"-64 ") libmagic=64-bit;;
5117   *) libmagic=never-match;;
5118   esac
5119   lt_cv_deplibs_check_method=pass_all
5120   ;;
5121
5122 # This must be Linux ELF.
5123 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5124   lt_cv_deplibs_check_method=pass_all
5125   ;;
5126
5127 netbsd* | netbsdelf*-gnu)
5128   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5129     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5130   else
5131     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5132   fi
5133   ;;
5134
5135 newos6*)
5136   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5137   lt_cv_file_magic_cmd=/usr/bin/file
5138   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5139   ;;
5140
5141 *nto* | *qnx*)
5142   lt_cv_deplibs_check_method=pass_all
5143   ;;
5144
5145 openbsd*)
5146   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5147     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5148   else
5149     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5150   fi
5151   ;;
5152
5153 osf3* | osf4* | osf5*)
5154   lt_cv_deplibs_check_method=pass_all
5155   ;;
5156
5157 rdos*)
5158   lt_cv_deplibs_check_method=pass_all
5159   ;;
5160
5161 solaris*)
5162   lt_cv_deplibs_check_method=pass_all
5163   ;;
5164
5165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5166   lt_cv_deplibs_check_method=pass_all
5167   ;;
5168
5169 sysv4 | sysv4.3*)
5170   case $host_vendor in
5171   motorola)
5172     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]'
5173     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5174     ;;
5175   ncr)
5176     lt_cv_deplibs_check_method=pass_all
5177     ;;
5178   sequent)
5179     lt_cv_file_magic_cmd='/bin/file'
5180     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5181     ;;
5182   sni)
5183     lt_cv_file_magic_cmd='/bin/file'
5184     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5185     lt_cv_file_magic_test_file=/lib/libc.so
5186     ;;
5187   siemens)
5188     lt_cv_deplibs_check_method=pass_all
5189     ;;
5190   pc)
5191     lt_cv_deplibs_check_method=pass_all
5192     ;;
5193   esac
5194   ;;
5195
5196 tpf*)
5197   lt_cv_deplibs_check_method=pass_all
5198   ;;
5199 esac
5200
5201 fi
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5203 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5204 file_magic_cmd=$lt_cv_file_magic_cmd
5205 deplibs_check_method=$lt_cv_deplibs_check_method
5206 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219 if test -n "$ac_tool_prefix"; then
5220   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5221 set dummy ${ac_tool_prefix}ar; ac_word=$2
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5223 $as_echo_n "checking for $ac_word... " >&6; }
5224 if test "${ac_cv_prog_AR+set}" = set; then :
5225   $as_echo_n "(cached) " >&6
5226 else
5227   if test -n "$AR"; then
5228   ac_cv_prog_AR="$AR" # Let the user override the test.
5229 else
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5232 do
5233   IFS=$as_save_IFS
5234   test -z "$as_dir" && as_dir=.
5235     for ac_exec_ext in '' $ac_executable_extensions; do
5236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5237     ac_cv_prog_AR="${ac_tool_prefix}ar"
5238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5239     break 2
5240   fi
5241 done
5242   done
5243 IFS=$as_save_IFS
5244
5245 fi
5246 fi
5247 AR=$ac_cv_prog_AR
5248 if test -n "$AR"; then
5249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5250 $as_echo "$AR" >&6; }
5251 else
5252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253 $as_echo "no" >&6; }
5254 fi
5255
5256
5257 fi
5258 if test -z "$ac_cv_prog_AR"; then
5259   ac_ct_AR=$AR
5260   # Extract the first word of "ar", so it can be a program name with args.
5261 set dummy ar; ac_word=$2
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 $as_echo_n "checking for $ac_word... " >&6; }
5264 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5265   $as_echo_n "(cached) " >&6
5266 else
5267   if test -n "$ac_ct_AR"; then
5268   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5269 else
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5272 do
5273   IFS=$as_save_IFS
5274   test -z "$as_dir" && as_dir=.
5275     for ac_exec_ext in '' $ac_executable_extensions; do
5276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277     ac_cv_prog_ac_ct_AR="ar"
5278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279     break 2
5280   fi
5281 done
5282   done
5283 IFS=$as_save_IFS
5284
5285 fi
5286 fi
5287 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5288 if test -n "$ac_ct_AR"; then
5289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5290 $as_echo "$ac_ct_AR" >&6; }
5291 else
5292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293 $as_echo "no" >&6; }
5294 fi
5295
5296   if test "x$ac_ct_AR" = x; then
5297     AR="false"
5298   else
5299     case $cross_compiling:$ac_tool_warned in
5300 yes:)
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5303 ac_tool_warned=yes ;;
5304 esac
5305     AR=$ac_ct_AR
5306   fi
5307 else
5308   AR="$ac_cv_prog_AR"
5309 fi
5310
5311 test -z "$AR" && AR=ar
5312 test -z "$AR_FLAGS" && AR_FLAGS=cru
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324 if test -n "$ac_tool_prefix"; then
5325   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5326 set dummy ${ac_tool_prefix}strip; ac_word=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if test "${ac_cv_prog_STRIP+set}" = set; then :
5330   $as_echo_n "(cached) " >&6
5331 else
5332   if test -n "$STRIP"; then
5333   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5334 else
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5337 do
5338   IFS=$as_save_IFS
5339   test -z "$as_dir" && as_dir=.
5340     for ac_exec_ext in '' $ac_executable_extensions; do
5341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5342     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344     break 2
5345   fi
5346 done
5347   done
5348 IFS=$as_save_IFS
5349
5350 fi
5351 fi
5352 STRIP=$ac_cv_prog_STRIP
5353 if test -n "$STRIP"; then
5354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5355 $as_echo "$STRIP" >&6; }
5356 else
5357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5359 fi
5360
5361
5362 fi
5363 if test -z "$ac_cv_prog_STRIP"; then
5364   ac_ct_STRIP=$STRIP
5365   # Extract the first word of "strip", so it can be a program name with args.
5366 set dummy strip; ac_word=$2
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5370   $as_echo_n "(cached) " >&6
5371 else
5372   if test -n "$ac_ct_STRIP"; then
5373   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5374 else
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5377 do
5378   IFS=$as_save_IFS
5379   test -z "$as_dir" && as_dir=.
5380     for ac_exec_ext in '' $ac_executable_extensions; do
5381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5382     ac_cv_prog_ac_ct_STRIP="strip"
5383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384     break 2
5385   fi
5386 done
5387   done
5388 IFS=$as_save_IFS
5389
5390 fi
5391 fi
5392 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5393 if test -n "$ac_ct_STRIP"; then
5394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5395 $as_echo "$ac_ct_STRIP" >&6; }
5396 else
5397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5399 fi
5400
5401   if test "x$ac_ct_STRIP" = x; then
5402     STRIP=":"
5403   else
5404     case $cross_compiling:$ac_tool_warned in
5405 yes:)
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5408 ac_tool_warned=yes ;;
5409 esac
5410     STRIP=$ac_ct_STRIP
5411   fi
5412 else
5413   STRIP="$ac_cv_prog_STRIP"
5414 fi
5415
5416 test -z "$STRIP" && STRIP=:
5417
5418
5419
5420
5421
5422
5423 if test -n "$ac_tool_prefix"; then
5424   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5425 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5429   $as_echo_n "(cached) " >&6
5430 else
5431   if test -n "$RANLIB"; then
5432   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5433 else
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5436 do
5437   IFS=$as_save_IFS
5438   test -z "$as_dir" && as_dir=.
5439     for ac_exec_ext in '' $ac_executable_extensions; do
5440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5441     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443     break 2
5444   fi
5445 done
5446   done
5447 IFS=$as_save_IFS
5448
5449 fi
5450 fi
5451 RANLIB=$ac_cv_prog_RANLIB
5452 if test -n "$RANLIB"; then
5453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5454 $as_echo "$RANLIB" >&6; }
5455 else
5456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }
5458 fi
5459
5460
5461 fi
5462 if test -z "$ac_cv_prog_RANLIB"; then
5463   ac_ct_RANLIB=$RANLIB
5464   # Extract the first word of "ranlib", so it can be a program name with args.
5465 set dummy ranlib; ac_word=$2
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 $as_echo_n "checking for $ac_word... " >&6; }
5468 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5469   $as_echo_n "(cached) " >&6
5470 else
5471   if test -n "$ac_ct_RANLIB"; then
5472   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5473 else
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5476 do
5477   IFS=$as_save_IFS
5478   test -z "$as_dir" && as_dir=.
5479     for ac_exec_ext in '' $ac_executable_extensions; do
5480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5481     ac_cv_prog_ac_ct_RANLIB="ranlib"
5482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483     break 2
5484   fi
5485 done
5486   done
5487 IFS=$as_save_IFS
5488
5489 fi
5490 fi
5491 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5492 if test -n "$ac_ct_RANLIB"; then
5493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5494 $as_echo "$ac_ct_RANLIB" >&6; }
5495 else
5496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
5498 fi
5499
5500   if test "x$ac_ct_RANLIB" = x; then
5501     RANLIB=":"
5502   else
5503     case $cross_compiling:$ac_tool_warned in
5504 yes:)
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5507 ac_tool_warned=yes ;;
5508 esac
5509     RANLIB=$ac_ct_RANLIB
5510   fi
5511 else
5512   RANLIB="$ac_cv_prog_RANLIB"
5513 fi
5514
5515 test -z "$RANLIB" && RANLIB=:
5516
5517
5518
5519
5520
5521
5522 # Determine commands to create old-style static archives.
5523 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5524 old_postinstall_cmds='chmod 644 $oldlib'
5525 old_postuninstall_cmds=
5526
5527 if test -n "$RANLIB"; then
5528   case $host_os in
5529   openbsd*)
5530     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5531     ;;
5532   *)
5533     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5534     ;;
5535   esac
5536   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5537 fi
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572 # If no C compiler was specified, use CC.
5573 LTCC=${LTCC-"$CC"}
5574
5575 # If no C compiler flags were specified, use CFLAGS.
5576 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5577
5578 # Allow CC to be a program name with arguments.
5579 compiler=$CC
5580
5581
5582 # Check for command to grab the raw symbol name followed by C symbol from nm.
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5584 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5585 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5586   $as_echo_n "(cached) " >&6
5587 else
5588
5589 # These are sane defaults that work on at least a few old systems.
5590 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5591
5592 # Character class describing NM global symbol codes.
5593 symcode='[BCDEGRST]'
5594
5595 # Regexp to match symbols that can be accessed directly from C.
5596 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5597
5598 # Define system-specific variables.
5599 case $host_os in
5600 aix*)
5601   symcode='[BCDT]'
5602   ;;
5603 cygwin* | mingw* | pw32* | cegcc*)
5604   symcode='[ABCDGISTW]'
5605   ;;
5606 hpux*)
5607   if test "$host_cpu" = ia64; then
5608     symcode='[ABCDEGRST]'
5609   fi
5610   ;;
5611 irix* | nonstopux*)
5612   symcode='[BCDEGRST]'
5613   ;;
5614 osf*)
5615   symcode='[BCDEGQRST]'
5616   ;;
5617 solaris*)
5618   symcode='[BDRT]'
5619   ;;
5620 sco3.2v5*)
5621   symcode='[DT]'
5622   ;;
5623 sysv4.2uw2*)
5624   symcode='[DT]'
5625   ;;
5626 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5627   symcode='[ABDT]'
5628   ;;
5629 sysv4)
5630   symcode='[DFNSTU]'
5631   ;;
5632 esac
5633
5634 # If we're using GNU nm, then use its standard symbol codes.
5635 case `$NM -V 2>&1` in
5636 *GNU* | *'with BFD'*)
5637   symcode='[ABCDGIRSTW]' ;;
5638 esac
5639
5640 # Transform an extracted symbol line into a proper C declaration.
5641 # Some systems (esp. on ia64) link data and code symbols differently,
5642 # so use this general approach.
5643 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5644
5645 # Transform an extracted symbol line into symbol name and symbol address
5646 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5647 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'"
5648
5649 # Handle CRLF in mingw tool chain
5650 opt_cr=
5651 case $build_os in
5652 mingw*)
5653   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5654   ;;
5655 esac
5656
5657 # Try without a prefix underscore, then with it.
5658 for ac_symprfx in "" "_"; do
5659
5660   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5661   symxfrm="\\1 $ac_symprfx\\2 \\2"
5662
5663   # Write the raw and C identifiers.
5664   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5665     # Fake it for dumpbin and say T for any non-static function
5666     # and D for any global variable.
5667     # Also find C++ and __fastcall symbols from MSVC++,
5668     # which start with @ or ?.
5669     lt_cv_sys_global_symbol_pipe="$AWK '"\
5670 "     {last_section=section; section=\$ 3};"\
5671 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5672 "     \$ 0!~/External *\|/{next};"\
5673 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5674 "     {if(hide[section]) next};"\
5675 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5676 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5677 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5678 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5679 "     ' prfx=^$ac_symprfx"
5680   else
5681     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5682   fi
5683
5684   # Check to see that the pipe works correctly.
5685   pipe_works=no
5686
5687   rm -f conftest*
5688   cat > conftest.$ac_ext <<_LT_EOF
5689 #ifdef __cplusplus
5690 extern "C" {
5691 #endif
5692 char nm_test_var;
5693 void nm_test_func(void);
5694 void nm_test_func(void){}
5695 #ifdef __cplusplus
5696 }
5697 #endif
5698 int main(){nm_test_var='a';nm_test_func();return(0);}
5699 _LT_EOF
5700
5701   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5702   (eval $ac_compile) 2>&5
5703   ac_status=$?
5704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5705   test $ac_status = 0; }; then
5706     # Now try to grab the symbols.
5707     nlist=conftest.nm
5708     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5709   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5710   ac_status=$?
5711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5712   test $ac_status = 0; } && test -s "$nlist"; then
5713       # Try sorting and uniquifying the output.
5714       if sort "$nlist" | uniq > "$nlist"T; then
5715         mv -f "$nlist"T "$nlist"
5716       else
5717         rm -f "$nlist"T
5718       fi
5719
5720       # Make sure that we snagged all the symbols we need.
5721       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5722         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5723           cat <<_LT_EOF > conftest.$ac_ext
5724 #ifdef __cplusplus
5725 extern "C" {
5726 #endif
5727
5728 _LT_EOF
5729           # Now generate the symbol file.
5730           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5731
5732           cat <<_LT_EOF >> conftest.$ac_ext
5733
5734 /* The mapping between symbol names and symbols.  */
5735 const struct {
5736   const char *name;
5737   void       *address;
5738 }
5739 lt__PROGRAM__LTX_preloaded_symbols[] =
5740 {
5741   { "@PROGRAM@", (void *) 0 },
5742 _LT_EOF
5743           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5744           cat <<\_LT_EOF >> conftest.$ac_ext
5745   {0, (void *) 0}
5746 };
5747
5748 /* This works around a problem in FreeBSD linker */
5749 #ifdef FREEBSD_WORKAROUND
5750 static const void *lt_preloaded_setup() {
5751   return lt__PROGRAM__LTX_preloaded_symbols;
5752 }
5753 #endif
5754
5755 #ifdef __cplusplus
5756 }
5757 #endif
5758 _LT_EOF
5759           # Now try linking the two files.
5760           mv conftest.$ac_objext conftstm.$ac_objext
5761           lt_save_LIBS="$LIBS"
5762           lt_save_CFLAGS="$CFLAGS"
5763           LIBS="conftstm.$ac_objext"
5764           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5765           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5766   (eval $ac_link) 2>&5
5767   ac_status=$?
5768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5769   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5770             pipe_works=yes
5771           fi
5772           LIBS="$lt_save_LIBS"
5773           CFLAGS="$lt_save_CFLAGS"
5774         else
5775           echo "cannot find nm_test_func in $nlist" >&5
5776         fi
5777       else
5778         echo "cannot find nm_test_var in $nlist" >&5
5779       fi
5780     else
5781       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5782     fi
5783   else
5784     echo "$progname: failed program was:" >&5
5785     cat conftest.$ac_ext >&5
5786   fi
5787   rm -rf conftest* conftst*
5788
5789   # Do not use the global_symbol_pipe unless it works.
5790   if test "$pipe_works" = yes; then
5791     break
5792   else
5793     lt_cv_sys_global_symbol_pipe=
5794   fi
5795 done
5796
5797 fi
5798
5799 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5800   lt_cv_sys_global_symbol_to_cdecl=
5801 fi
5802 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5804 $as_echo "failed" >&6; }
5805 else
5806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5807 $as_echo "ok" >&6; }
5808 fi
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832 # Check whether --enable-libtool-lock was given.
5833 if test "${enable_libtool_lock+set}" = set; then :
5834   enableval=$enable_libtool_lock;
5835 fi
5836
5837 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5838
5839 # Some flags need to be propagated to the compiler or linker for good
5840 # libtool support.
5841 case $host in
5842 ia64-*-hpux*)
5843   # Find out which ABI we are using.
5844   echo 'int i;' > conftest.$ac_ext
5845   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5846   (eval $ac_compile) 2>&5
5847   ac_status=$?
5848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5849   test $ac_status = 0; }; then
5850     case `/usr/bin/file conftest.$ac_objext` in
5851       *ELF-32*)
5852         HPUX_IA64_MODE="32"
5853         ;;
5854       *ELF-64*)
5855         HPUX_IA64_MODE="64"
5856         ;;
5857     esac
5858   fi
5859   rm -rf conftest*
5860   ;;
5861 *-*-irix6*)
5862   # Find out which ABI we are using.
5863   echo '#line 5863 "configure"' > conftest.$ac_ext
5864   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5865   (eval $ac_compile) 2>&5
5866   ac_status=$?
5867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5868   test $ac_status = 0; }; then
5869     if test "$lt_cv_prog_gnu_ld" = yes; then
5870       case `/usr/bin/file conftest.$ac_objext` in
5871         *32-bit*)
5872           LD="${LD-ld} -melf32bsmip"
5873           ;;
5874         *N32*)
5875           LD="${LD-ld} -melf32bmipn32"
5876           ;;
5877         *64-bit*)
5878           LD="${LD-ld} -melf64bmip"
5879         ;;
5880       esac
5881     else
5882       case `/usr/bin/file conftest.$ac_objext` in
5883         *32-bit*)
5884           LD="${LD-ld} -32"
5885           ;;
5886         *N32*)
5887           LD="${LD-ld} -n32"
5888           ;;
5889         *64-bit*)
5890           LD="${LD-ld} -64"
5891           ;;
5892       esac
5893     fi
5894   fi
5895   rm -rf conftest*
5896   ;;
5897
5898 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5899 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5900   # Find out which ABI we are using.
5901   echo 'int i;' > conftest.$ac_ext
5902   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5903   (eval $ac_compile) 2>&5
5904   ac_status=$?
5905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5906   test $ac_status = 0; }; then
5907     case `/usr/bin/file conftest.o` in
5908       *32-bit*)
5909         case $host in
5910           x86_64-*kfreebsd*-gnu)
5911             LD="${LD-ld} -m elf_i386_fbsd"
5912             ;;
5913           x86_64-*linux*)
5914             LD="${LD-ld} -m elf_i386"
5915             ;;
5916           ppc64-*linux*|powerpc64-*linux*)
5917             LD="${LD-ld} -m elf32ppclinux"
5918             ;;
5919           s390x-*linux*)
5920             LD="${LD-ld} -m elf_s390"
5921             ;;
5922           sparc64-*linux*)
5923             LD="${LD-ld} -m elf32_sparc"
5924             ;;
5925         esac
5926         ;;
5927       *64-bit*)
5928         case $host in
5929           x86_64-*kfreebsd*-gnu)
5930             LD="${LD-ld} -m elf_x86_64_fbsd"
5931             ;;
5932           x86_64-*linux*)
5933             LD="${LD-ld} -m elf_x86_64"
5934             ;;
5935           ppc*-*linux*|powerpc*-*linux*)
5936             LD="${LD-ld} -m elf64ppc"
5937             ;;
5938           s390*-*linux*|s390*-*tpf*)
5939             LD="${LD-ld} -m elf64_s390"
5940             ;;
5941           sparc*-*linux*)
5942             LD="${LD-ld} -m elf64_sparc"
5943             ;;
5944         esac
5945         ;;
5946     esac
5947   fi
5948   rm -rf conftest*
5949   ;;
5950
5951 *-*-sco3.2v5*)
5952   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5953   SAVE_CFLAGS="$CFLAGS"
5954   CFLAGS="$CFLAGS -belf"
5955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5956 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5957 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5958   $as_echo_n "(cached) " >&6
5959 else
5960   ac_ext=c
5961 ac_cpp='$CPP $CPPFLAGS'
5962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5965
5966      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h.  */
5968
5969 int
5970 main ()
5971 {
5972
5973   ;
5974   return 0;
5975 }
5976 _ACEOF
5977 if ac_fn_c_try_link "$LINENO"; then :
5978   lt_cv_cc_needs_belf=yes
5979 else
5980   lt_cv_cc_needs_belf=no
5981 fi
5982 rm -f core conftest.err conftest.$ac_objext \
5983     conftest$ac_exeext conftest.$ac_ext
5984      ac_ext=c
5985 ac_cpp='$CPP $CPPFLAGS'
5986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5989
5990 fi
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5992 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5993   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5994     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5995     CFLAGS="$SAVE_CFLAGS"
5996   fi
5997   ;;
5998 sparc*-*solaris*)
5999   # Find out which ABI we are using.
6000   echo 'int i;' > conftest.$ac_ext
6001   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6002   (eval $ac_compile) 2>&5
6003   ac_status=$?
6004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6005   test $ac_status = 0; }; then
6006     case `/usr/bin/file conftest.o` in
6007     *64-bit*)
6008       case $lt_cv_prog_gnu_ld in
6009       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6010       *)
6011         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6012           LD="${LD-ld} -64"
6013         fi
6014         ;;
6015       esac
6016       ;;
6017     esac
6018   fi
6019   rm -rf conftest*
6020   ;;
6021 esac
6022
6023 need_locks="$enable_libtool_lock"
6024
6025
6026   case $host_os in
6027     rhapsody* | darwin*)
6028     if test -n "$ac_tool_prefix"; then
6029   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6030 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6034   $as_echo_n "(cached) " >&6
6035 else
6036   if test -n "$DSYMUTIL"; then
6037   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6041 do
6042   IFS=$as_save_IFS
6043   test -z "$as_dir" && as_dir=.
6044     for ac_exec_ext in '' $ac_executable_extensions; do
6045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048     break 2
6049   fi
6050 done
6051   done
6052 IFS=$as_save_IFS
6053
6054 fi
6055 fi
6056 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6057 if test -n "$DSYMUTIL"; then
6058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6059 $as_echo "$DSYMUTIL" >&6; }
6060 else
6061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6063 fi
6064
6065
6066 fi
6067 if test -z "$ac_cv_prog_DSYMUTIL"; then
6068   ac_ct_DSYMUTIL=$DSYMUTIL
6069   # Extract the first word of "dsymutil", so it can be a program name with args.
6070 set dummy dsymutil; ac_word=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6074   $as_echo_n "(cached) " >&6
6075 else
6076   if test -n "$ac_ct_DSYMUTIL"; then
6077   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6078 else
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6081 do
6082   IFS=$as_save_IFS
6083   test -z "$as_dir" && as_dir=.
6084     for ac_exec_ext in '' $ac_executable_extensions; do
6085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088     break 2
6089   fi
6090 done
6091   done
6092 IFS=$as_save_IFS
6093
6094 fi
6095 fi
6096 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6097 if test -n "$ac_ct_DSYMUTIL"; then
6098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6099 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6100 else
6101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6103 fi
6104
6105   if test "x$ac_ct_DSYMUTIL" = x; then
6106     DSYMUTIL=":"
6107   else
6108     case $cross_compiling:$ac_tool_warned in
6109 yes:)
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6112 ac_tool_warned=yes ;;
6113 esac
6114     DSYMUTIL=$ac_ct_DSYMUTIL
6115   fi
6116 else
6117   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6118 fi
6119
6120     if test -n "$ac_tool_prefix"; then
6121   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6122 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6124 $as_echo_n "checking for $ac_word... " >&6; }
6125 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6126   $as_echo_n "(cached) " >&6
6127 else
6128   if test -n "$NMEDIT"; then
6129   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6130 else
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH
6133 do
6134   IFS=$as_save_IFS
6135   test -z "$as_dir" && as_dir=.
6136     for ac_exec_ext in '' $ac_executable_extensions; do
6137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6138     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140     break 2
6141   fi
6142 done
6143   done
6144 IFS=$as_save_IFS
6145
6146 fi
6147 fi
6148 NMEDIT=$ac_cv_prog_NMEDIT
6149 if test -n "$NMEDIT"; then
6150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6151 $as_echo "$NMEDIT" >&6; }
6152 else
6153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }
6155 fi
6156
6157
6158 fi
6159 if test -z "$ac_cv_prog_NMEDIT"; then
6160   ac_ct_NMEDIT=$NMEDIT
6161   # Extract the first word of "nmedit", so it can be a program name with args.
6162 set dummy nmedit; ac_word=$2
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164 $as_echo_n "checking for $ac_word... " >&6; }
6165 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6166   $as_echo_n "(cached) " >&6
6167 else
6168   if test -n "$ac_ct_NMEDIT"; then
6169   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6170 else
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 for as_dir in $PATH
6173 do
6174   IFS=$as_save_IFS
6175   test -z "$as_dir" && as_dir=.
6176     for ac_exec_ext in '' $ac_executable_extensions; do
6177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6178     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6180     break 2
6181   fi
6182 done
6183   done
6184 IFS=$as_save_IFS
6185
6186 fi
6187 fi
6188 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6189 if test -n "$ac_ct_NMEDIT"; then
6190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6191 $as_echo "$ac_ct_NMEDIT" >&6; }
6192 else
6193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194 $as_echo "no" >&6; }
6195 fi
6196
6197   if test "x$ac_ct_NMEDIT" = x; then
6198     NMEDIT=":"
6199   else
6200     case $cross_compiling:$ac_tool_warned in
6201 yes:)
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6204 ac_tool_warned=yes ;;
6205 esac
6206     NMEDIT=$ac_ct_NMEDIT
6207   fi
6208 else
6209   NMEDIT="$ac_cv_prog_NMEDIT"
6210 fi
6211
6212     if test -n "$ac_tool_prefix"; then
6213   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6214 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if test "${ac_cv_prog_LIPO+set}" = set; then :
6218   $as_echo_n "(cached) " >&6
6219 else
6220   if test -n "$LIPO"; then
6221   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6222 else
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6225 do
6226   IFS=$as_save_IFS
6227   test -z "$as_dir" && as_dir=.
6228     for ac_exec_ext in '' $ac_executable_extensions; do
6229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6230     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232     break 2
6233   fi
6234 done
6235   done
6236 IFS=$as_save_IFS
6237
6238 fi
6239 fi
6240 LIPO=$ac_cv_prog_LIPO
6241 if test -n "$LIPO"; then
6242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6243 $as_echo "$LIPO" >&6; }
6244 else
6245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6247 fi
6248
6249
6250 fi
6251 if test -z "$ac_cv_prog_LIPO"; then
6252   ac_ct_LIPO=$LIPO
6253   # Extract the first word of "lipo", so it can be a program name with args.
6254 set dummy lipo; ac_word=$2
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6256 $as_echo_n "checking for $ac_word... " >&6; }
6257 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6258   $as_echo_n "(cached) " >&6
6259 else
6260   if test -n "$ac_ct_LIPO"; then
6261   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6265 do
6266   IFS=$as_save_IFS
6267   test -z "$as_dir" && as_dir=.
6268     for ac_exec_ext in '' $ac_executable_extensions; do
6269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6270     ac_cv_prog_ac_ct_LIPO="lipo"
6271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6272     break 2
6273   fi
6274 done
6275   done
6276 IFS=$as_save_IFS
6277
6278 fi
6279 fi
6280 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6281 if test -n "$ac_ct_LIPO"; then
6282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6283 $as_echo "$ac_ct_LIPO" >&6; }
6284 else
6285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6287 fi
6288
6289   if test "x$ac_ct_LIPO" = x; then
6290     LIPO=":"
6291   else
6292     case $cross_compiling:$ac_tool_warned in
6293 yes:)
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6296 ac_tool_warned=yes ;;
6297 esac
6298     LIPO=$ac_ct_LIPO
6299   fi
6300 else
6301   LIPO="$ac_cv_prog_LIPO"
6302 fi
6303
6304     if test -n "$ac_tool_prefix"; then
6305   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6306 set dummy ${ac_tool_prefix}otool; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6310   $as_echo_n "(cached) " >&6
6311 else
6312   if test -n "$OTOOL"; then
6313   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6317 do
6318   IFS=$as_save_IFS
6319   test -z "$as_dir" && as_dir=.
6320     for ac_exec_ext in '' $ac_executable_extensions; do
6321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6322     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324     break 2
6325   fi
6326 done
6327   done
6328 IFS=$as_save_IFS
6329
6330 fi
6331 fi
6332 OTOOL=$ac_cv_prog_OTOOL
6333 if test -n "$OTOOL"; then
6334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6335 $as_echo "$OTOOL" >&6; }
6336 else
6337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6339 fi
6340
6341
6342 fi
6343 if test -z "$ac_cv_prog_OTOOL"; then
6344   ac_ct_OTOOL=$OTOOL
6345   # Extract the first word of "otool", so it can be a program name with args.
6346 set dummy otool; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6350   $as_echo_n "(cached) " >&6
6351 else
6352   if test -n "$ac_ct_OTOOL"; then
6353   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6354 else
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358   IFS=$as_save_IFS
6359   test -z "$as_dir" && as_dir=.
6360     for ac_exec_ext in '' $ac_executable_extensions; do
6361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362     ac_cv_prog_ac_ct_OTOOL="otool"
6363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364     break 2
6365   fi
6366 done
6367   done
6368 IFS=$as_save_IFS
6369
6370 fi
6371 fi
6372 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6373 if test -n "$ac_ct_OTOOL"; then
6374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6375 $as_echo "$ac_ct_OTOOL" >&6; }
6376 else
6377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6379 fi
6380
6381   if test "x$ac_ct_OTOOL" = x; then
6382     OTOOL=":"
6383   else
6384     case $cross_compiling:$ac_tool_warned in
6385 yes:)
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388 ac_tool_warned=yes ;;
6389 esac
6390     OTOOL=$ac_ct_OTOOL
6391   fi
6392 else
6393   OTOOL="$ac_cv_prog_OTOOL"
6394 fi
6395
6396     if test -n "$ac_tool_prefix"; then
6397   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6398 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6402   $as_echo_n "(cached) " >&6
6403 else
6404   if test -n "$OTOOL64"; then
6405   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6406 else
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6409 do
6410   IFS=$as_save_IFS
6411   test -z "$as_dir" && as_dir=.
6412     for ac_exec_ext in '' $ac_executable_extensions; do
6413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416     break 2
6417   fi
6418 done
6419   done
6420 IFS=$as_save_IFS
6421
6422 fi
6423 fi
6424 OTOOL64=$ac_cv_prog_OTOOL64
6425 if test -n "$OTOOL64"; then
6426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6427 $as_echo "$OTOOL64" >&6; }
6428 else
6429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6431 fi
6432
6433
6434 fi
6435 if test -z "$ac_cv_prog_OTOOL64"; then
6436   ac_ct_OTOOL64=$OTOOL64
6437   # Extract the first word of "otool64", so it can be a program name with args.
6438 set dummy otool64; ac_word=$2
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6442   $as_echo_n "(cached) " >&6
6443 else
6444   if test -n "$ac_ct_OTOOL64"; then
6445   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6446 else
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 for as_dir in $PATH
6449 do
6450   IFS=$as_save_IFS
6451   test -z "$as_dir" && as_dir=.
6452     for ac_exec_ext in '' $ac_executable_extensions; do
6453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454     ac_cv_prog_ac_ct_OTOOL64="otool64"
6455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456     break 2
6457   fi
6458 done
6459   done
6460 IFS=$as_save_IFS
6461
6462 fi
6463 fi
6464 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6465 if test -n "$ac_ct_OTOOL64"; then
6466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6467 $as_echo "$ac_ct_OTOOL64" >&6; }
6468 else
6469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470 $as_echo "no" >&6; }
6471 fi
6472
6473   if test "x$ac_ct_OTOOL64" = x; then
6474     OTOOL64=":"
6475   else
6476     case $cross_compiling:$ac_tool_warned in
6477 yes:)
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6480 ac_tool_warned=yes ;;
6481 esac
6482     OTOOL64=$ac_ct_OTOOL64
6483   fi
6484 else
6485   OTOOL64="$ac_cv_prog_OTOOL64"
6486 fi
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6515 $as_echo_n "checking for -single_module linker flag... " >&6; }
6516 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6517   $as_echo_n "(cached) " >&6
6518 else
6519   lt_cv_apple_cc_single_mod=no
6520       if test -z "${LT_MULTI_MODULE}"; then
6521         # By default we will add the -single_module flag. You can override
6522         # by either setting the environment variable LT_MULTI_MODULE
6523         # non-empty at configure time, or by adding -multi_module to the
6524         # link flags.
6525         rm -rf libconftest.dylib*
6526         echo "int foo(void){return 1;}" > conftest.c
6527         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6528 -dynamiclib -Wl,-single_module conftest.c" >&5
6529         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6530           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6531         _lt_result=$?
6532         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6533           lt_cv_apple_cc_single_mod=yes
6534         else
6535           cat conftest.err >&5
6536         fi
6537         rm -rf libconftest.dylib*
6538         rm -f conftest.*
6539       fi
6540 fi
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6542 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6543     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6544 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6545 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6546   $as_echo_n "(cached) " >&6
6547 else
6548   lt_cv_ld_exported_symbols_list=no
6549       save_LDFLAGS=$LDFLAGS
6550       echo "_main" > conftest.sym
6551       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6552       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h.  */
6554
6555 int
6556 main ()
6557 {
6558
6559   ;
6560   return 0;
6561 }
6562 _ACEOF
6563 if ac_fn_c_try_link "$LINENO"; then :
6564   lt_cv_ld_exported_symbols_list=yes
6565 else
6566   lt_cv_ld_exported_symbols_list=no
6567 fi
6568 rm -f core conftest.err conftest.$ac_objext \
6569     conftest$ac_exeext conftest.$ac_ext
6570         LDFLAGS="$save_LDFLAGS"
6571
6572 fi
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6574 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6575     case $host_os in
6576     rhapsody* | darwin1.[012])
6577       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6578     darwin1.*)
6579       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6580     darwin*) # darwin 5.x on
6581       # if running on 10.5 or later, the deployment target defaults
6582       # to the OS version, if on x86, and 10.4, the deployment
6583       # target defaults to 10.4. Don't you love it?
6584       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6585         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6586           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6587         10.[012]*)
6588           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6589         10.*)
6590           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6591       esac
6592     ;;
6593   esac
6594     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6595       _lt_dar_single_mod='$single_module'
6596     fi
6597     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6598       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6599     else
6600       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6601     fi
6602     if test "$DSYMUTIL" != ":"; then
6603       _lt_dsymutil='~$DSYMUTIL $lib || :'
6604     else
6605       _lt_dsymutil=
6606     fi
6607     ;;
6608   esac
6609
6610 ac_ext=c
6611 ac_cpp='$CPP $CPPFLAGS'
6612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6616 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6617 # On Suns, sometimes $CPP names a directory.
6618 if test -n "$CPP" && test -d "$CPP"; then
6619   CPP=
6620 fi
6621 if test -z "$CPP"; then
6622   if test "${ac_cv_prog_CPP+set}" = set; then :
6623   $as_echo_n "(cached) " >&6
6624 else
6625       # Double quotes because CPP needs to be expanded
6626     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6627     do
6628       ac_preproc_ok=false
6629 for ac_c_preproc_warn_flag in '' yes
6630 do
6631   # Use a header file that comes with gcc, so configuring glibc
6632   # with a fresh cross-compiler works.
6633   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6634   # <limits.h> exists even on freestanding compilers.
6635   # On the NeXT, cc -E runs the code through the compiler's parser,
6636   # not just through cpp. "Syntax error" is here to catch this case.
6637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h.  */
6639 #ifdef __STDC__
6640 # include <limits.h>
6641 #else
6642 # include <assert.h>
6643 #endif
6644                      Syntax error
6645 _ACEOF
6646 if ac_fn_c_try_cpp "$LINENO"; then :
6647
6648 else
6649   # Broken: fails on valid input.
6650 continue
6651 fi
6652 rm -f conftest.err conftest.i conftest.$ac_ext
6653
6654   # OK, works on sane cases.  Now check whether nonexistent headers
6655   # can be detected and how.
6656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h.  */
6658 #include <ac_nonexistent.h>
6659 _ACEOF
6660 if ac_fn_c_try_cpp "$LINENO"; then :
6661   # Broken: success on invalid input.
6662 continue
6663 else
6664   # Passes both tests.
6665 ac_preproc_ok=:
6666 break
6667 fi
6668 rm -f conftest.err conftest.i conftest.$ac_ext
6669
6670 done
6671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6672 rm -f conftest.i conftest.err conftest.$ac_ext
6673 if $ac_preproc_ok; then :
6674   break
6675 fi
6676
6677     done
6678     ac_cv_prog_CPP=$CPP
6679
6680 fi
6681   CPP=$ac_cv_prog_CPP
6682 else
6683   ac_cv_prog_CPP=$CPP
6684 fi
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6686 $as_echo "$CPP" >&6; }
6687 ac_preproc_ok=false
6688 for ac_c_preproc_warn_flag in '' yes
6689 do
6690   # Use a header file that comes with gcc, so configuring glibc
6691   # with a fresh cross-compiler works.
6692   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6693   # <limits.h> exists even on freestanding compilers.
6694   # On the NeXT, cc -E runs the code through the compiler's parser,
6695   # not just through cpp. "Syntax error" is here to catch this case.
6696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h.  */
6698 #ifdef __STDC__
6699 # include <limits.h>
6700 #else
6701 # include <assert.h>
6702 #endif
6703                      Syntax error
6704 _ACEOF
6705 if ac_fn_c_try_cpp "$LINENO"; then :
6706
6707 else
6708   # Broken: fails on valid input.
6709 continue
6710 fi
6711 rm -f conftest.err conftest.i conftest.$ac_ext
6712
6713   # OK, works on sane cases.  Now check whether nonexistent headers
6714   # can be detected and how.
6715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h.  */
6717 #include <ac_nonexistent.h>
6718 _ACEOF
6719 if ac_fn_c_try_cpp "$LINENO"; then :
6720   # Broken: success on invalid input.
6721 continue
6722 else
6723   # Passes both tests.
6724 ac_preproc_ok=:
6725 break
6726 fi
6727 rm -f conftest.err conftest.i conftest.$ac_ext
6728
6729 done
6730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6731 rm -f conftest.i conftest.err conftest.$ac_ext
6732 if $ac_preproc_ok; then :
6733
6734 else
6735   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6737 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6738 See \`config.log' for more details" "$LINENO" 5 ; }
6739 fi
6740
6741 ac_ext=c
6742 ac_cpp='$CPP $CPPFLAGS'
6743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6746
6747
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6749 $as_echo_n "checking for ANSI C header files... " >&6; }
6750 if test "${ac_cv_header_stdc+set}" = set; then :
6751   $as_echo_n "(cached) " >&6
6752 else
6753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h.  */
6755 #include <stdlib.h>
6756 #include <stdarg.h>
6757 #include <string.h>
6758 #include <float.h>
6759
6760 int
6761 main ()
6762 {
6763
6764   ;
6765   return 0;
6766 }
6767 _ACEOF
6768 if ac_fn_c_try_compile "$LINENO"; then :
6769   ac_cv_header_stdc=yes
6770 else
6771   ac_cv_header_stdc=no
6772 fi
6773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6774
6775 if test $ac_cv_header_stdc = yes; then
6776   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h.  */
6779 #include <string.h>
6780
6781 _ACEOF
6782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6783   $EGREP "memchr" >/dev/null 2>&1; then :
6784
6785 else
6786   ac_cv_header_stdc=no
6787 fi
6788 rm -f conftest*
6789
6790 fi
6791
6792 if test $ac_cv_header_stdc = yes; then
6793   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795 /* end confdefs.h.  */
6796 #include <stdlib.h>
6797
6798 _ACEOF
6799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6800   $EGREP "free" >/dev/null 2>&1; then :
6801
6802 else
6803   ac_cv_header_stdc=no
6804 fi
6805 rm -f conftest*
6806
6807 fi
6808
6809 if test $ac_cv_header_stdc = yes; then
6810   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6811   if test "$cross_compiling" = yes; then :
6812   :
6813 else
6814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815 /* end confdefs.h.  */
6816 #include <ctype.h>
6817 #include <stdlib.h>
6818 #if ((' ' & 0x0FF) == 0x020)
6819 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6820 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6821 #else
6822 # define ISLOWER(c) \
6823                    (('a' <= (c) && (c) <= 'i') \
6824                      || ('j' <= (c) && (c) <= 'r') \
6825                      || ('s' <= (c) && (c) <= 'z'))
6826 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6827 #endif
6828
6829 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6830 int
6831 main ()
6832 {
6833   int i;
6834   for (i = 0; i < 256; i++)
6835     if (XOR (islower (i), ISLOWER (i))
6836         || toupper (i) != TOUPPER (i))
6837       return 2;
6838   return 0;
6839 }
6840 _ACEOF
6841 if ac_fn_c_try_run "$LINENO"; then :
6842
6843 else
6844   ac_cv_header_stdc=no
6845 fi
6846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6847   conftest.$ac_objext conftest.beam conftest.$ac_ext
6848 fi
6849
6850 fi
6851 fi
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6853 $as_echo "$ac_cv_header_stdc" >&6; }
6854 if test $ac_cv_header_stdc = yes; then
6855
6856 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6857
6858 fi
6859
6860 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6861 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6862                   inttypes.h stdint.h unistd.h
6863 do :
6864   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6865 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6866 "
6867 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6868   cat >>confdefs.h <<_ACEOF
6869 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6870 _ACEOF
6871
6872 fi
6873
6874 done
6875
6876
6877 for ac_header in dlfcn.h
6878 do :
6879   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6880 "
6881 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6882   cat >>confdefs.h <<_ACEOF
6883 #define HAVE_DLFCN_H 1
6884 _ACEOF
6885
6886 fi
6887
6888 done
6889
6890
6891
6892 # Set options
6893 enable_win32_dll=yes
6894
6895 case $host in
6896 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6897   if test -n "$ac_tool_prefix"; then
6898   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6899 set dummy ${ac_tool_prefix}as; ac_word=$2
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901 $as_echo_n "checking for $ac_word... " >&6; }
6902 if test "${ac_cv_prog_AS+set}" = set; then :
6903   $as_echo_n "(cached) " >&6
6904 else
6905   if test -n "$AS"; then
6906   ac_cv_prog_AS="$AS" # Let the user override the test.
6907 else
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 for as_dir in $PATH
6910 do
6911   IFS=$as_save_IFS
6912   test -z "$as_dir" && as_dir=.
6913     for ac_exec_ext in '' $ac_executable_extensions; do
6914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6915     ac_cv_prog_AS="${ac_tool_prefix}as"
6916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917     break 2
6918   fi
6919 done
6920   done
6921 IFS=$as_save_IFS
6922
6923 fi
6924 fi
6925 AS=$ac_cv_prog_AS
6926 if test -n "$AS"; then
6927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6928 $as_echo "$AS" >&6; }
6929 else
6930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931 $as_echo "no" >&6; }
6932 fi
6933
6934
6935 fi
6936 if test -z "$ac_cv_prog_AS"; then
6937   ac_ct_AS=$AS
6938   # Extract the first word of "as", so it can be a program name with args.
6939 set dummy as; ac_word=$2
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
6943   $as_echo_n "(cached) " >&6
6944 else
6945   if test -n "$ac_ct_AS"; then
6946   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951   IFS=$as_save_IFS
6952   test -z "$as_dir" && as_dir=.
6953     for ac_exec_ext in '' $ac_executable_extensions; do
6954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6955     ac_cv_prog_ac_ct_AS="as"
6956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957     break 2
6958   fi
6959 done
6960   done
6961 IFS=$as_save_IFS
6962
6963 fi
6964 fi
6965 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6966 if test -n "$ac_ct_AS"; then
6967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6968 $as_echo "$ac_ct_AS" >&6; }
6969 else
6970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6972 fi
6973
6974   if test "x$ac_ct_AS" = x; then
6975     AS="false"
6976   else
6977     case $cross_compiling:$ac_tool_warned in
6978 yes:)
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6981 ac_tool_warned=yes ;;
6982 esac
6983     AS=$ac_ct_AS
6984   fi
6985 else
6986   AS="$ac_cv_prog_AS"
6987 fi
6988
6989   if test -n "$ac_tool_prefix"; then
6990   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6991 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993 $as_echo_n "checking for $ac_word... " >&6; }
6994 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6995   $as_echo_n "(cached) " >&6
6996 else
6997   if test -n "$DLLTOOL"; then
6998   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6999 else
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7002 do
7003   IFS=$as_save_IFS
7004   test -z "$as_dir" && as_dir=.
7005     for ac_exec_ext in '' $ac_executable_extensions; do
7006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7007     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009     break 2
7010   fi
7011 done
7012   done
7013 IFS=$as_save_IFS
7014
7015 fi
7016 fi
7017 DLLTOOL=$ac_cv_prog_DLLTOOL
7018 if test -n "$DLLTOOL"; then
7019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7020 $as_echo "$DLLTOOL" >&6; }
7021 else
7022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7024 fi
7025
7026
7027 fi
7028 if test -z "$ac_cv_prog_DLLTOOL"; then
7029   ac_ct_DLLTOOL=$DLLTOOL
7030   # Extract the first word of "dlltool", so it can be a program name with args.
7031 set dummy dlltool; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7035   $as_echo_n "(cached) " >&6
7036 else
7037   if test -n "$ac_ct_DLLTOOL"; then
7038   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7039 else
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 for as_dir in $PATH
7042 do
7043   IFS=$as_save_IFS
7044   test -z "$as_dir" && as_dir=.
7045     for ac_exec_ext in '' $ac_executable_extensions; do
7046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7047     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049     break 2
7050   fi
7051 done
7052   done
7053 IFS=$as_save_IFS
7054
7055 fi
7056 fi
7057 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7058 if test -n "$ac_ct_DLLTOOL"; then
7059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7060 $as_echo "$ac_ct_DLLTOOL" >&6; }
7061 else
7062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7064 fi
7065
7066   if test "x$ac_ct_DLLTOOL" = x; then
7067     DLLTOOL="false"
7068   else
7069     case $cross_compiling:$ac_tool_warned in
7070 yes:)
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7073 ac_tool_warned=yes ;;
7074 esac
7075     DLLTOOL=$ac_ct_DLLTOOL
7076   fi
7077 else
7078   DLLTOOL="$ac_cv_prog_DLLTOOL"
7079 fi
7080
7081   if test -n "$ac_tool_prefix"; then
7082   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7083 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085 $as_echo_n "checking for $ac_word... " >&6; }
7086 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7087   $as_echo_n "(cached) " >&6
7088 else
7089   if test -n "$OBJDUMP"; then
7090   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7091 else
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7094 do
7095   IFS=$as_save_IFS
7096   test -z "$as_dir" && as_dir=.
7097     for ac_exec_ext in '' $ac_executable_extensions; do
7098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7099     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101     break 2
7102   fi
7103 done
7104   done
7105 IFS=$as_save_IFS
7106
7107 fi
7108 fi
7109 OBJDUMP=$ac_cv_prog_OBJDUMP
7110 if test -n "$OBJDUMP"; then
7111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7112 $as_echo "$OBJDUMP" >&6; }
7113 else
7114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115 $as_echo "no" >&6; }
7116 fi
7117
7118
7119 fi
7120 if test -z "$ac_cv_prog_OBJDUMP"; then
7121   ac_ct_OBJDUMP=$OBJDUMP
7122   # Extract the first word of "objdump", so it can be a program name with args.
7123 set dummy objdump; ac_word=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7127   $as_echo_n "(cached) " >&6
7128 else
7129   if test -n "$ac_ct_OBJDUMP"; then
7130   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7131 else
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7134 do
7135   IFS=$as_save_IFS
7136   test -z "$as_dir" && as_dir=.
7137     for ac_exec_ext in '' $ac_executable_extensions; do
7138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7139     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141     break 2
7142   fi
7143 done
7144   done
7145 IFS=$as_save_IFS
7146
7147 fi
7148 fi
7149 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7150 if test -n "$ac_ct_OBJDUMP"; then
7151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7152 $as_echo "$ac_ct_OBJDUMP" >&6; }
7153 else
7154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 $as_echo "no" >&6; }
7156 fi
7157
7158   if test "x$ac_ct_OBJDUMP" = x; then
7159     OBJDUMP="false"
7160   else
7161     case $cross_compiling:$ac_tool_warned in
7162 yes:)
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7165 ac_tool_warned=yes ;;
7166 esac
7167     OBJDUMP=$ac_ct_OBJDUMP
7168   fi
7169 else
7170   OBJDUMP="$ac_cv_prog_OBJDUMP"
7171 fi
7172
7173   ;;
7174 esac
7175
7176 test -z "$AS" && AS=as
7177
7178
7179
7180
7181
7182 test -z "$DLLTOOL" && DLLTOOL=dlltool
7183
7184
7185
7186
7187
7188 test -z "$OBJDUMP" && OBJDUMP=objdump
7189
7190
7191
7192
7193
7194
7195
7196         enable_dlopen=no
7197
7198
7199
7200             # Check whether --enable-shared was given.
7201 if test "${enable_shared+set}" = set; then :
7202   enableval=$enable_shared; p=${PACKAGE-default}
7203     case $enableval in
7204     yes) enable_shared=yes ;;
7205     no) enable_shared=no ;;
7206     *)
7207       enable_shared=no
7208       # Look at the argument we got.  We use all the common list separators.
7209       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7210       for pkg in $enableval; do
7211         IFS="$lt_save_ifs"
7212         if test "X$pkg" = "X$p"; then
7213           enable_shared=yes
7214         fi
7215       done
7216       IFS="$lt_save_ifs"
7217       ;;
7218     esac
7219 else
7220   enable_shared=yes
7221 fi
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231   # Check whether --enable-static was given.
7232 if test "${enable_static+set}" = set; then :
7233   enableval=$enable_static; p=${PACKAGE-default}
7234     case $enableval in
7235     yes) enable_static=yes ;;
7236     no) enable_static=no ;;
7237     *)
7238      enable_static=no
7239       # Look at the argument we got.  We use all the common list separators.
7240       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7241       for pkg in $enableval; do
7242         IFS="$lt_save_ifs"
7243         if test "X$pkg" = "X$p"; then
7244           enable_static=yes
7245         fi
7246       done
7247       IFS="$lt_save_ifs"
7248       ;;
7249     esac
7250 else
7251   enable_static=yes
7252 fi
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263 # Check whether --with-pic was given.
7264 if test "${with_pic+set}" = set; then :
7265   withval=$with_pic; pic_mode="$withval"
7266 else
7267   pic_mode=default
7268 fi
7269
7270
7271 test -z "$pic_mode" && pic_mode=default
7272
7273
7274
7275
7276
7277
7278
7279   # Check whether --enable-fast-install was given.
7280 if test "${enable_fast_install+set}" = set; then :
7281   enableval=$enable_fast_install; p=${PACKAGE-default}
7282     case $enableval in
7283     yes) enable_fast_install=yes ;;
7284     no) enable_fast_install=no ;;
7285     *)
7286       enable_fast_install=no
7287       # Look at the argument we got.  We use all the common list separators.
7288       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7289       for pkg in $enableval; do
7290         IFS="$lt_save_ifs"
7291         if test "X$pkg" = "X$p"; then
7292           enable_fast_install=yes
7293         fi
7294       done
7295       IFS="$lt_save_ifs"
7296       ;;
7297     esac
7298 else
7299   enable_fast_install=yes
7300 fi
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312 # This can be used to rebuild libtool when needed
7313 LIBTOOL_DEPS="$ltmain"
7314
7315 # Always use our own libtool.
7316 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342 test -z "$LN_S" && LN_S="ln -s"
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357 if test -n "${ZSH_VERSION+set}" ; then
7358    setopt NO_GLOB_SUBST
7359 fi
7360
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7362 $as_echo_n "checking for objdir... " >&6; }
7363 if test "${lt_cv_objdir+set}" = set; then :
7364   $as_echo_n "(cached) " >&6
7365 else
7366   rm -f .libs 2>/dev/null
7367 mkdir .libs 2>/dev/null
7368 if test -d .libs; then
7369   lt_cv_objdir=.libs
7370 else
7371   # MS-DOS does not allow filenames that begin with a dot.
7372   lt_cv_objdir=_libs
7373 fi
7374 rmdir .libs 2>/dev/null
7375 fi
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7377 $as_echo "$lt_cv_objdir" >&6; }
7378 objdir=$lt_cv_objdir
7379
7380
7381
7382
7383
7384 cat >>confdefs.h <<_ACEOF
7385 #define LT_OBJDIR "$lt_cv_objdir/"
7386 _ACEOF
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404 case $host_os in
7405 aix3*)
7406   # AIX sometimes has problems with the GCC collect2 program.  For some
7407   # reason, if we set the COLLECT_NAMES environment variable, the problems
7408   # vanish in a puff of smoke.
7409   if test "X${COLLECT_NAMES+set}" != Xset; then
7410     COLLECT_NAMES=
7411     export COLLECT_NAMES
7412   fi
7413   ;;
7414 esac
7415
7416 # Sed substitution that helps us do robust quoting.  It backslashifies
7417 # metacharacters that are still active within double-quoted strings.
7418 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7419
7420 # Same as above, but do not quote variable references.
7421 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7422
7423 # Sed substitution to delay expansion of an escaped shell variable in a
7424 # double_quote_subst'ed string.
7425 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7426
7427 # Sed substitution to delay expansion of an escaped single quote.
7428 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7429
7430 # Sed substitution to avoid accidental globbing in evaled expressions
7431 no_glob_subst='s/\*/\\\*/g'
7432
7433 # Global variables:
7434 ofile=libtool
7435 can_build_shared=yes
7436
7437 # All known linkers require a `.a' archive for static linking (except MSVC,
7438 # which needs '.lib').
7439 libext=a
7440
7441 with_gnu_ld="$lt_cv_prog_gnu_ld"
7442
7443 old_CC="$CC"
7444 old_CFLAGS="$CFLAGS"
7445
7446 # Set sane defaults for various variables
7447 test -z "$CC" && CC=cc
7448 test -z "$LTCC" && LTCC=$CC
7449 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7450 test -z "$LD" && LD=ld
7451 test -z "$ac_objext" && ac_objext=o
7452
7453 for cc_temp in $compiler""; do
7454   case $cc_temp in
7455     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7456     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7457     \-*) ;;
7458     *) break;;
7459   esac
7460 done
7461 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7462
7463
7464 # Only perform the check for file, if the check method requires it
7465 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7466 case $deplibs_check_method in
7467 file_magic*)
7468   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7469     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7470 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7471 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7472   $as_echo_n "(cached) " >&6
7473 else
7474   case $MAGIC_CMD in
7475 [\\/*] |  ?:[\\/]*)
7476   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7477   ;;
7478 *)
7479   lt_save_MAGIC_CMD="$MAGIC_CMD"
7480   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7481   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7482   for ac_dir in $ac_dummy; do
7483     IFS="$lt_save_ifs"
7484     test -z "$ac_dir" && ac_dir=.
7485     if test -f $ac_dir/${ac_tool_prefix}file; then
7486       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7487       if test -n "$file_magic_test_file"; then
7488         case $deplibs_check_method in
7489         "file_magic "*)
7490           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7491           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7492           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7493             $EGREP "$file_magic_regex" > /dev/null; then
7494             :
7495           else
7496             cat <<_LT_EOF 1>&2
7497
7498 *** Warning: the command libtool uses to detect shared libraries,
7499 *** $file_magic_cmd, produces output that libtool cannot recognize.
7500 *** The result is that libtool may fail to recognize shared libraries
7501 *** as such.  This will affect the creation of libtool libraries that
7502 *** depend on shared libraries, but programs linked with such libtool
7503 *** libraries will work regardless of this problem.  Nevertheless, you
7504 *** may want to report the problem to your system manager and/or to
7505 *** bug-libtool@gnu.org
7506
7507 _LT_EOF
7508           fi ;;
7509         esac
7510       fi
7511       break
7512     fi
7513   done
7514   IFS="$lt_save_ifs"
7515   MAGIC_CMD="$lt_save_MAGIC_CMD"
7516   ;;
7517 esac
7518 fi
7519
7520 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7521 if test -n "$MAGIC_CMD"; then
7522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7523 $as_echo "$MAGIC_CMD" >&6; }
7524 else
7525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7527 fi
7528
7529
7530
7531
7532
7533 if test -z "$lt_cv_path_MAGIC_CMD"; then
7534   if test -n "$ac_tool_prefix"; then
7535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7536 $as_echo_n "checking for file... " >&6; }
7537 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7538   $as_echo_n "(cached) " >&6
7539 else
7540   case $MAGIC_CMD in
7541 [\\/*] |  ?:[\\/]*)
7542   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7543   ;;
7544 *)
7545   lt_save_MAGIC_CMD="$MAGIC_CMD"
7546   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7547   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7548   for ac_dir in $ac_dummy; do
7549     IFS="$lt_save_ifs"
7550     test -z "$ac_dir" && ac_dir=.
7551     if test -f $ac_dir/file; then
7552       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7553       if test -n "$file_magic_test_file"; then
7554         case $deplibs_check_method in
7555         "file_magic "*)
7556           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7557           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7558           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7559             $EGREP "$file_magic_regex" > /dev/null; then
7560             :
7561           else
7562             cat <<_LT_EOF 1>&2
7563
7564 *** Warning: the command libtool uses to detect shared libraries,
7565 *** $file_magic_cmd, produces output that libtool cannot recognize.
7566 *** The result is that libtool may fail to recognize shared libraries
7567 *** as such.  This will affect the creation of libtool libraries that
7568 *** depend on shared libraries, but programs linked with such libtool
7569 *** libraries will work regardless of this problem.  Nevertheless, you
7570 *** may want to report the problem to your system manager and/or to
7571 *** bug-libtool@gnu.org
7572
7573 _LT_EOF
7574           fi ;;
7575         esac
7576       fi
7577       break
7578     fi
7579   done
7580   IFS="$lt_save_ifs"
7581   MAGIC_CMD="$lt_save_MAGIC_CMD"
7582   ;;
7583 esac
7584 fi
7585
7586 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7587 if test -n "$MAGIC_CMD"; then
7588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7589 $as_echo "$MAGIC_CMD" >&6; }
7590 else
7591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592 $as_echo "no" >&6; }
7593 fi
7594
7595
7596   else
7597     MAGIC_CMD=:
7598   fi
7599 fi
7600
7601   fi
7602   ;;
7603 esac
7604
7605 # Use C for the default configuration in the libtool script
7606
7607 lt_save_CC="$CC"
7608 ac_ext=c
7609 ac_cpp='$CPP $CPPFLAGS'
7610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7613
7614
7615 # Source file extension for C test sources.
7616 ac_ext=c
7617
7618 # Object file extension for compiled C test sources.
7619 objext=o
7620 objext=$objext
7621
7622 # Code to be used in simple compile tests
7623 lt_simple_compile_test_code="int some_variable = 0;"
7624
7625 # Code to be used in simple link tests
7626 lt_simple_link_test_code='int main(){return(0);}'
7627
7628
7629
7630
7631
7632
7633
7634 # If no C compiler was specified, use CC.
7635 LTCC=${LTCC-"$CC"}
7636
7637 # If no C compiler flags were specified, use CFLAGS.
7638 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7639
7640 # Allow CC to be a program name with arguments.
7641 compiler=$CC
7642
7643 # Save the default compiler, since it gets overwritten when the other
7644 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7645 compiler_DEFAULT=$CC
7646
7647 # save warnings/boilerplate of simple test code
7648 ac_outfile=conftest.$ac_objext
7649 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7650 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7651 _lt_compiler_boilerplate=`cat conftest.err`
7652 $RM conftest*
7653
7654 ac_outfile=conftest.$ac_objext
7655 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7656 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7657 _lt_linker_boilerplate=`cat conftest.err`
7658 $RM -r conftest*
7659
7660
7661 ## CAVEAT EMPTOR:
7662 ## There is no encapsulation within the following macros, do not change
7663 ## the running order or otherwise move them around unless you know exactly
7664 ## what you are doing...
7665 if test -n "$compiler"; then
7666
7667 lt_prog_compiler_no_builtin_flag=
7668
7669 if test "$GCC" = yes; then
7670   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7671
7672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7673 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7674 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7675   $as_echo_n "(cached) " >&6
7676 else
7677   lt_cv_prog_compiler_rtti_exceptions=no
7678    ac_outfile=conftest.$ac_objext
7679    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7680    lt_compiler_flag="-fno-rtti -fno-exceptions"
7681    # Insert the option either (1) after the last *FLAGS variable, or
7682    # (2) before a word containing "conftest.", or (3) at the end.
7683    # Note that $ac_compile itself does not contain backslashes and begins
7684    # with a dollar sign (not a hyphen), so the echo should work correctly.
7685    # The option is referenced via a variable to avoid confusing sed.
7686    lt_compile=`echo "$ac_compile" | $SED \
7687    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7688    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7689    -e 's:$: $lt_compiler_flag:'`
7690    (eval echo "\"\$as_me:7690: $lt_compile\"" >&5)
7691    (eval "$lt_compile" 2>conftest.err)
7692    ac_status=$?
7693    cat conftest.err >&5
7694    echo "$as_me:7694: \$? = $ac_status" >&5
7695    if (exit $ac_status) && test -s "$ac_outfile"; then
7696      # The compiler can only warn and ignore the option if not recognized
7697      # So say no if there are warnings other than the usual output.
7698      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7699      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7700      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7701        lt_cv_prog_compiler_rtti_exceptions=yes
7702      fi
7703    fi
7704    $RM conftest*
7705
7706 fi
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7708 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7709
7710 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7711     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7712 else
7713     :
7714 fi
7715
7716 fi
7717
7718
7719
7720
7721
7722
7723   lt_prog_compiler_wl=
7724 lt_prog_compiler_pic=
7725 lt_prog_compiler_static=
7726
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7728 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7729
7730   if test "$GCC" = yes; then
7731     lt_prog_compiler_wl='-Wl,'
7732     lt_prog_compiler_static='-static'
7733
7734     case $host_os in
7735       aix*)
7736       # All AIX code is PIC.
7737       if test "$host_cpu" = ia64; then
7738         # AIX 5 now supports IA64 processor
7739         lt_prog_compiler_static='-Bstatic'
7740       fi
7741       ;;
7742
7743     amigaos*)
7744       case $host_cpu in
7745       powerpc)
7746             # see comment about AmigaOS4 .so support
7747             lt_prog_compiler_pic='-fPIC'
7748         ;;
7749       m68k)
7750             # FIXME: we need at least 68020 code to build shared libraries, but
7751             # adding the `-m68020' flag to GCC prevents building anything better,
7752             # like `-m68040'.
7753             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7754         ;;
7755       esac
7756       ;;
7757
7758     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7759       # PIC is the default for these OSes.
7760       ;;
7761
7762     mingw* | cygwin* | pw32* | os2* | cegcc*)
7763       # This hack is so that the source file can tell whether it is being
7764       # built for inclusion in a dll (and should export symbols for example).
7765       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7766       # (--disable-auto-import) libraries
7767       lt_prog_compiler_pic='-DDLL_EXPORT'
7768       ;;
7769
7770     darwin* | rhapsody*)
7771       # PIC is the default on this platform
7772       # Common symbols not allowed in MH_DYLIB files
7773       lt_prog_compiler_pic='-fno-common'
7774       ;;
7775
7776     hpux*)
7777       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7778       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7779       # sets the default TLS model and affects inlining.
7780       case $host_cpu in
7781       hppa*64*)
7782         # +Z the default
7783         ;;
7784       *)
7785         lt_prog_compiler_pic='-fPIC'
7786         ;;
7787       esac
7788       ;;
7789
7790     interix[3-9]*)
7791       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7792       # Instead, we relocate shared libraries at runtime.
7793       ;;
7794
7795     msdosdjgpp*)
7796       # Just because we use GCC doesn't mean we suddenly get shared libraries
7797       # on systems that don't support them.
7798       lt_prog_compiler_can_build_shared=no
7799       enable_shared=no
7800       ;;
7801
7802     *nto* | *qnx*)
7803       # QNX uses GNU C++, but need to define -shared option too, otherwise
7804       # it will coredump.
7805       lt_prog_compiler_pic='-fPIC -shared'
7806       ;;
7807
7808     sysv4*MP*)
7809       if test -d /usr/nec; then
7810         lt_prog_compiler_pic=-Kconform_pic
7811       fi
7812       ;;
7813
7814     *)
7815       lt_prog_compiler_pic='-fPIC'
7816       ;;
7817     esac
7818   else
7819     # PORTME Check for flag to pass linker flags through the system compiler.
7820     case $host_os in
7821     aix*)
7822       lt_prog_compiler_wl='-Wl,'
7823       if test "$host_cpu" = ia64; then
7824         # AIX 5 now supports IA64 processor
7825         lt_prog_compiler_static='-Bstatic'
7826       else
7827         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7828       fi
7829       ;;
7830
7831     mingw* | cygwin* | pw32* | os2* | cegcc*)
7832       # This hack is so that the source file can tell whether it is being
7833       # built for inclusion in a dll (and should export symbols for example).
7834       lt_prog_compiler_pic='-DDLL_EXPORT'
7835       ;;
7836
7837     hpux9* | hpux10* | hpux11*)
7838       lt_prog_compiler_wl='-Wl,'
7839       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7840       # not for PA HP-UX.
7841       case $host_cpu in
7842       hppa*64*|ia64*)
7843         # +Z the default
7844         ;;
7845       *)
7846         lt_prog_compiler_pic='+Z'
7847         ;;
7848       esac
7849       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7850       lt_prog_compiler_static='${wl}-a ${wl}archive'
7851       ;;
7852
7853     irix5* | irix6* | nonstopux*)
7854       lt_prog_compiler_wl='-Wl,'
7855       # PIC (with -KPIC) is the default.
7856       lt_prog_compiler_static='-non_shared'
7857       ;;
7858
7859     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7860       case $cc_basename in
7861       # old Intel for x86_64 which still supported -KPIC.
7862       ecc*)
7863         lt_prog_compiler_wl='-Wl,'
7864         lt_prog_compiler_pic='-KPIC'
7865         lt_prog_compiler_static='-static'
7866         ;;
7867       # icc used to be incompatible with GCC.
7868       # ICC 10 doesn't accept -KPIC any more.
7869       icc* | ifort*)
7870         lt_prog_compiler_wl='-Wl,'
7871         lt_prog_compiler_pic='-fPIC'
7872         lt_prog_compiler_static='-static'
7873         ;;
7874       # Lahey Fortran 8.1.
7875       lf95*)
7876         lt_prog_compiler_wl='-Wl,'
7877         lt_prog_compiler_pic='--shared'
7878         lt_prog_compiler_static='--static'
7879         ;;
7880       pgcc* | pgf77* | pgf90* | pgf95*)
7881         # Portland Group compilers (*not* the Pentium gcc compiler,
7882         # which looks to be a dead project)
7883         lt_prog_compiler_wl='-Wl,'
7884         lt_prog_compiler_pic='-fpic'
7885         lt_prog_compiler_static='-Bstatic'
7886         ;;
7887       ccc*)
7888         lt_prog_compiler_wl='-Wl,'
7889         # All Alpha code is PIC.
7890         lt_prog_compiler_static='-non_shared'
7891         ;;
7892       xl*)
7893         # IBM XL C 8.0/Fortran 10.1 on PPC
7894         lt_prog_compiler_wl='-Wl,'
7895         lt_prog_compiler_pic='-qpic'
7896         lt_prog_compiler_static='-qstaticlink'
7897         ;;
7898       *)
7899         case `$CC -V 2>&1 | sed 5q` in
7900         *Sun\ C*)
7901           # Sun C 5.9
7902           lt_prog_compiler_pic='-KPIC'
7903           lt_prog_compiler_static='-Bstatic'
7904           lt_prog_compiler_wl='-Wl,'
7905           ;;
7906         *Sun\ F*)
7907           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7908           lt_prog_compiler_pic='-KPIC'
7909           lt_prog_compiler_static='-Bstatic'
7910           lt_prog_compiler_wl=''
7911           ;;
7912         esac
7913         ;;
7914       esac
7915       ;;
7916
7917     newsos6)
7918       lt_prog_compiler_pic='-KPIC'
7919       lt_prog_compiler_static='-Bstatic'
7920       ;;
7921
7922     *nto* | *qnx*)
7923       # QNX uses GNU C++, but need to define -shared option too, otherwise
7924       # it will coredump.
7925       lt_prog_compiler_pic='-fPIC -shared'
7926       ;;
7927
7928     osf3* | osf4* | osf5*)
7929       lt_prog_compiler_wl='-Wl,'
7930       # All OSF/1 code is PIC.
7931       lt_prog_compiler_static='-non_shared'
7932       ;;
7933
7934     rdos*)
7935       lt_prog_compiler_static='-non_shared'
7936       ;;
7937
7938     solaris*)
7939       lt_prog_compiler_pic='-KPIC'
7940       lt_prog_compiler_static='-Bstatic'
7941       case $cc_basename in
7942       f77* | f90* | f95*)
7943         lt_prog_compiler_wl='-Qoption ld ';;
7944       *)
7945         lt_prog_compiler_wl='-Wl,';;
7946       esac
7947       ;;
7948
7949     sunos4*)
7950       lt_prog_compiler_wl='-Qoption ld '
7951       lt_prog_compiler_pic='-PIC'
7952       lt_prog_compiler_static='-Bstatic'
7953       ;;
7954
7955     sysv4 | sysv4.2uw2* | sysv4.3*)
7956       lt_prog_compiler_wl='-Wl,'
7957       lt_prog_compiler_pic='-KPIC'
7958       lt_prog_compiler_static='-Bstatic'
7959       ;;
7960
7961     sysv4*MP*)
7962       if test -d /usr/nec ;then
7963         lt_prog_compiler_pic='-Kconform_pic'
7964         lt_prog_compiler_static='-Bstatic'
7965       fi
7966       ;;
7967
7968     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7969       lt_prog_compiler_wl='-Wl,'
7970       lt_prog_compiler_pic='-KPIC'
7971       lt_prog_compiler_static='-Bstatic'
7972       ;;
7973
7974     unicos*)
7975       lt_prog_compiler_wl='-Wl,'
7976       lt_prog_compiler_can_build_shared=no
7977       ;;
7978
7979     uts4*)
7980       lt_prog_compiler_pic='-pic'
7981       lt_prog_compiler_static='-Bstatic'
7982       ;;
7983
7984     *)
7985       lt_prog_compiler_can_build_shared=no
7986       ;;
7987     esac
7988   fi
7989
7990 case $host_os in
7991   # For platforms which do not support PIC, -DPIC is meaningless:
7992   *djgpp*)
7993     lt_prog_compiler_pic=
7994     ;;
7995   *)
7996     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7997     ;;
7998 esac
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8000 $as_echo "$lt_prog_compiler_pic" >&6; }
8001
8002
8003
8004
8005
8006
8007 #
8008 # Check to make sure the PIC flag actually works.
8009 #
8010 if test -n "$lt_prog_compiler_pic"; then
8011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8012 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8013 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8014   $as_echo_n "(cached) " >&6
8015 else
8016   lt_cv_prog_compiler_pic_works=no
8017    ac_outfile=conftest.$ac_objext
8018    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8019    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8020    # Insert the option either (1) after the last *FLAGS variable, or
8021    # (2) before a word containing "conftest.", or (3) at the end.
8022    # Note that $ac_compile itself does not contain backslashes and begins
8023    # with a dollar sign (not a hyphen), so the echo should work correctly.
8024    # The option is referenced via a variable to avoid confusing sed.
8025    lt_compile=`echo "$ac_compile" | $SED \
8026    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8027    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8028    -e 's:$: $lt_compiler_flag:'`
8029    (eval echo "\"\$as_me:8029: $lt_compile\"" >&5)
8030    (eval "$lt_compile" 2>conftest.err)
8031    ac_status=$?
8032    cat conftest.err >&5
8033    echo "$as_me:8033: \$? = $ac_status" >&5
8034    if (exit $ac_status) && test -s "$ac_outfile"; then
8035      # The compiler can only warn and ignore the option if not recognized
8036      # So say no if there are warnings other than the usual output.
8037      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8038      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8039      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8040        lt_cv_prog_compiler_pic_works=yes
8041      fi
8042    fi
8043    $RM conftest*
8044
8045 fi
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8047 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8048
8049 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8050     case $lt_prog_compiler_pic in
8051      "" | " "*) ;;
8052      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8053      esac
8054 else
8055     lt_prog_compiler_pic=
8056      lt_prog_compiler_can_build_shared=no
8057 fi
8058
8059 fi
8060
8061
8062
8063
8064
8065
8066 #
8067 # Check to make sure the static flag actually works.
8068 #
8069 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8071 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8072 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8073   $as_echo_n "(cached) " >&6
8074 else
8075   lt_cv_prog_compiler_static_works=no
8076    save_LDFLAGS="$LDFLAGS"
8077    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8078    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8079    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8080      # The linker can only warn and ignore the option if not recognized
8081      # So say no if there are warnings
8082      if test -s conftest.err; then
8083        # Append any errors to the config.log.
8084        cat conftest.err 1>&5
8085        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8086        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8087        if diff conftest.exp conftest.er2 >/dev/null; then
8088          lt_cv_prog_compiler_static_works=yes
8089        fi
8090      else
8091        lt_cv_prog_compiler_static_works=yes
8092      fi
8093    fi
8094    $RM -r conftest*
8095    LDFLAGS="$save_LDFLAGS"
8096
8097 fi
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8099 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8100
8101 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8102     :
8103 else
8104     lt_prog_compiler_static=
8105 fi
8106
8107
8108
8109
8110
8111
8112
8113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8114 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8115 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8116   $as_echo_n "(cached) " >&6
8117 else
8118   lt_cv_prog_compiler_c_o=no
8119    $RM -r conftest 2>/dev/null
8120    mkdir conftest
8121    cd conftest
8122    mkdir out
8123    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8124
8125    lt_compiler_flag="-o out/conftest2.$ac_objext"
8126    # Insert the option either (1) after the last *FLAGS variable, or
8127    # (2) before a word containing "conftest.", or (3) at the end.
8128    # Note that $ac_compile itself does not contain backslashes and begins
8129    # with a dollar sign (not a hyphen), so the echo should work correctly.
8130    lt_compile=`echo "$ac_compile" | $SED \
8131    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8132    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8133    -e 's:$: $lt_compiler_flag:'`
8134    (eval echo "\"\$as_me:8134: $lt_compile\"" >&5)
8135    (eval "$lt_compile" 2>out/conftest.err)
8136    ac_status=$?
8137    cat out/conftest.err >&5
8138    echo "$as_me:8138: \$? = $ac_status" >&5
8139    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8140    then
8141      # The compiler can only warn and ignore the option if not recognized
8142      # So say no if there are warnings
8143      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8144      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8145      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8146        lt_cv_prog_compiler_c_o=yes
8147      fi
8148    fi
8149    chmod u+w . 2>&5
8150    $RM conftest*
8151    # SGI C++ compiler will create directory out/ii_files/ for
8152    # template instantiation
8153    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8154    $RM out/* && rmdir out
8155    cd ..
8156    $RM -r conftest
8157    $RM conftest*
8158
8159 fi
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8161 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8162
8163
8164
8165
8166
8167
8168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8169 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8170 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8171   $as_echo_n "(cached) " >&6
8172 else
8173   lt_cv_prog_compiler_c_o=no
8174    $RM -r conftest 2>/dev/null
8175    mkdir conftest
8176    cd conftest
8177    mkdir out
8178    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8179
8180    lt_compiler_flag="-o out/conftest2.$ac_objext"
8181    # Insert the option either (1) after the last *FLAGS variable, or
8182    # (2) before a word containing "conftest.", or (3) at the end.
8183    # Note that $ac_compile itself does not contain backslashes and begins
8184    # with a dollar sign (not a hyphen), so the echo should work correctly.
8185    lt_compile=`echo "$ac_compile" | $SED \
8186    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8187    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8188    -e 's:$: $lt_compiler_flag:'`
8189    (eval echo "\"\$as_me:8189: $lt_compile\"" >&5)
8190    (eval "$lt_compile" 2>out/conftest.err)
8191    ac_status=$?
8192    cat out/conftest.err >&5
8193    echo "$as_me:8193: \$? = $ac_status" >&5
8194    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8195    then
8196      # The compiler can only warn and ignore the option if not recognized
8197      # So say no if there are warnings
8198      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8199      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8200      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8201        lt_cv_prog_compiler_c_o=yes
8202      fi
8203    fi
8204    chmod u+w . 2>&5
8205    $RM conftest*
8206    # SGI C++ compiler will create directory out/ii_files/ for
8207    # template instantiation
8208    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8209    $RM out/* && rmdir out
8210    cd ..
8211    $RM -r conftest
8212    $RM conftest*
8213
8214 fi
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8216 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8217
8218
8219
8220
8221 hard_links="nottested"
8222 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8223   # do not overwrite the value of need_locks provided by the user
8224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8225 $as_echo_n "checking if we can lock with hard links... " >&6; }
8226   hard_links=yes
8227   $RM conftest*
8228   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8229   touch conftest.a
8230   ln conftest.a conftest.b 2>&5 || hard_links=no
8231   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8233 $as_echo "$hard_links" >&6; }
8234   if test "$hard_links" = no; then
8235     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8236 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8237     need_locks=warn
8238   fi
8239 else
8240   need_locks=no
8241 fi
8242
8243
8244
8245
8246
8247
8248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8249 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8250
8251   runpath_var=
8252   allow_undefined_flag=
8253   always_export_symbols=no
8254   archive_cmds=
8255   archive_expsym_cmds=
8256   compiler_needs_object=no
8257   enable_shared_with_static_runtimes=no
8258   export_dynamic_flag_spec=
8259   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8260   hardcode_automatic=no
8261   hardcode_direct=no
8262   hardcode_direct_absolute=no
8263   hardcode_libdir_flag_spec=
8264   hardcode_libdir_flag_spec_ld=
8265   hardcode_libdir_separator=
8266   hardcode_minus_L=no
8267   hardcode_shlibpath_var=unsupported
8268   inherit_rpath=no
8269   link_all_deplibs=unknown
8270   module_cmds=
8271   module_expsym_cmds=
8272   old_archive_from_new_cmds=
8273   old_archive_from_expsyms_cmds=
8274   thread_safe_flag_spec=
8275   whole_archive_flag_spec=
8276   # include_expsyms should be a list of space-separated symbols to be *always*
8277   # included in the symbol list
8278   include_expsyms=
8279   # exclude_expsyms can be an extended regexp of symbols to exclude
8280   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8281   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8282   # as well as any symbol that contains `d'.
8283   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8284   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8285   # platforms (ab)use it in PIC code, but their linkers get confused if
8286   # the symbol is explicitly referenced.  Since portable code cannot
8287   # rely on this symbol name, it's probably fine to never include it in
8288   # preloaded symbol tables.
8289   # Exclude shared library initialization/finalization symbols.
8290   extract_expsyms_cmds=
8291
8292   case $host_os in
8293   cygwin* | mingw* | pw32* | cegcc*)
8294     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8295     # When not using gcc, we currently assume that we are using
8296     # Microsoft Visual C++.
8297     if test "$GCC" != yes; then
8298       with_gnu_ld=no
8299     fi
8300     ;;
8301   interix*)
8302     # we just hope/assume this is gcc and not c89 (= MSVC++)
8303     with_gnu_ld=yes
8304     ;;
8305   openbsd*)
8306     with_gnu_ld=no
8307     ;;
8308   linux* | k*bsd*-gnu)
8309     link_all_deplibs=no
8310     ;;
8311   esac
8312
8313   ld_shlibs=yes
8314   if test "$with_gnu_ld" = yes; then
8315     # If archive_cmds runs LD, not CC, wlarc should be empty
8316     wlarc='${wl}'
8317
8318     # Set some defaults for GNU ld with shared library support. These
8319     # are reset later if shared libraries are not supported. Putting them
8320     # here allows them to be overridden if necessary.
8321     runpath_var=LD_RUN_PATH
8322     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8323     export_dynamic_flag_spec='${wl}--export-dynamic'
8324     # ancient GNU ld didn't support --whole-archive et. al.
8325     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8326       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8327     else
8328       whole_archive_flag_spec=
8329     fi
8330     supports_anon_versioning=no
8331     case `$LD -v 2>&1` in
8332       *GNU\ gold*) supports_anon_versioning=yes ;;
8333       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8334       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8335       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8336       *\ 2.11.*) ;; # other 2.11 versions
8337       *) supports_anon_versioning=yes ;;
8338     esac
8339
8340     # See if GNU ld supports shared libraries.
8341     case $host_os in
8342     aix[3-9]*)
8343       # On AIX/PPC, the GNU linker is very broken
8344       if test "$host_cpu" != ia64; then
8345         ld_shlibs=no
8346         cat <<_LT_EOF 1>&2
8347
8348 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8349 *** to be unable to reliably create shared libraries on AIX.
8350 *** Therefore, libtool is disabling shared libraries support.  If you
8351 *** really care for shared libraries, you may want to modify your PATH
8352 *** so that a non-GNU linker is found, and then restart.
8353
8354 _LT_EOF
8355       fi
8356       ;;
8357
8358     amigaos*)
8359       case $host_cpu in
8360       powerpc)
8361             # see comment about AmigaOS4 .so support
8362             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8363             archive_expsym_cmds=''
8364         ;;
8365       m68k)
8366             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)'
8367             hardcode_libdir_flag_spec='-L$libdir'
8368             hardcode_minus_L=yes
8369         ;;
8370       esac
8371       ;;
8372
8373     beos*)
8374       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8375         allow_undefined_flag=unsupported
8376         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8377         # support --undefined.  This deserves some investigation.  FIXME
8378         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8379       else
8380         ld_shlibs=no
8381       fi
8382       ;;
8383
8384     cygwin* | mingw* | pw32* | cegcc*)
8385       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8386       # as there is no search path for DLLs.
8387       hardcode_libdir_flag_spec='-L$libdir'
8388       allow_undefined_flag=unsupported
8389       always_export_symbols=no
8390       enable_shared_with_static_runtimes=yes
8391       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8392
8393       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8394         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8395         # If the export-symbols file already is a .def file (1st line
8396         # is EXPORTS), use it as is; otherwise, prepend...
8397         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8398           cp $export_symbols $output_objdir/$soname.def;
8399         else
8400           echo EXPORTS > $output_objdir/$soname.def;
8401           cat $export_symbols >> $output_objdir/$soname.def;
8402         fi~
8403         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8404       else
8405         ld_shlibs=no
8406       fi
8407       ;;
8408
8409     interix[3-9]*)
8410       hardcode_direct=no
8411       hardcode_shlibpath_var=no
8412       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8413       export_dynamic_flag_spec='${wl}-E'
8414       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8415       # Instead, shared libraries are loaded at an image base (0x10000000 by
8416       # default) and relocated if they conflict, which is a slow very memory
8417       # consuming and fragmenting process.  To avoid this, we pick a random,
8418       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8419       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8420       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8421       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'
8422       ;;
8423
8424     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8425       tmp_diet=no
8426       if test "$host_os" = linux-dietlibc; then
8427         case $cc_basename in
8428           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8429         esac
8430       fi
8431       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8432          && test "$tmp_diet" = no
8433       then
8434         tmp_addflag=
8435         tmp_sharedflag='-shared'
8436         case $cc_basename,$host_cpu in
8437         pgcc*)                          # Portland Group C compiler
8438           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'
8439           tmp_addflag=' $pic_flag'
8440           ;;
8441         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8442           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'
8443           tmp_addflag=' $pic_flag -Mnomain' ;;
8444         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8445           tmp_addflag=' -i_dynamic' ;;
8446         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8447           tmp_addflag=' -i_dynamic -nofor_main' ;;
8448         ifc* | ifort*)                  # Intel Fortran compiler
8449           tmp_addflag=' -nofor_main' ;;
8450         lf95*)                          # Lahey Fortran 8.1
8451           whole_archive_flag_spec=
8452           tmp_sharedflag='--shared' ;;
8453         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8454           tmp_sharedflag='-qmkshrobj'
8455           tmp_addflag= ;;
8456         esac
8457         case `$CC -V 2>&1 | sed 5q` in
8458         *Sun\ C*)                       # Sun C 5.9
8459           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'
8460           compiler_needs_object=yes
8461           tmp_sharedflag='-G' ;;
8462         *Sun\ F*)                       # Sun Fortran 8.3
8463           tmp_sharedflag='-G' ;;
8464         esac
8465         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8466
8467         if test "x$supports_anon_versioning" = xyes; then
8468           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8469             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8470             echo "local: *; };" >> $output_objdir/$libname.ver~
8471             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8472         fi
8473
8474         case $cc_basename in
8475         xlf*)
8476           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8477           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8478           hardcode_libdir_flag_spec=
8479           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8480           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8481           if test "x$supports_anon_versioning" = xyes; then
8482             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8483               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8484               echo "local: *; };" >> $output_objdir/$libname.ver~
8485               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8486           fi
8487           ;;
8488         esac
8489       else
8490         ld_shlibs=no
8491       fi
8492       ;;
8493
8494     netbsd* | netbsdelf*-gnu)
8495       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8496         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8497         wlarc=
8498       else
8499         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8500         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8501       fi
8502       ;;
8503
8504     solaris*)
8505       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8506         ld_shlibs=no
8507         cat <<_LT_EOF 1>&2
8508
8509 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8510 *** create shared libraries on Solaris systems.  Therefore, libtool
8511 *** is disabling shared libraries support.  We urge you to upgrade GNU
8512 *** binutils to release 2.9.1 or newer.  Another option is to modify
8513 *** your PATH or compiler configuration so that the native linker is
8514 *** used, and then restart.
8515
8516 _LT_EOF
8517       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8518         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8519         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8520       else
8521         ld_shlibs=no
8522       fi
8523       ;;
8524
8525     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8526       case `$LD -v 2>&1` in
8527         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8528         ld_shlibs=no
8529         cat <<_LT_EOF 1>&2
8530
8531 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8532 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8533 *** is disabling shared libraries support.  We urge you to upgrade GNU
8534 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8535 *** your PATH or compiler configuration so that the native linker is
8536 *** used, and then restart.
8537
8538 _LT_EOF
8539         ;;
8540         *)
8541           # For security reasons, it is highly recommended that you always
8542           # use absolute paths for naming shared libraries, and exclude the
8543           # DT_RUNPATH tag from executables and libraries.  But doing so
8544           # requires that you compile everything twice, which is a pain.
8545           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8546             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8547             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8548             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8549           else
8550             ld_shlibs=no
8551           fi
8552         ;;
8553       esac
8554       ;;
8555
8556     sunos4*)
8557       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8558       wlarc=
8559       hardcode_direct=yes
8560       hardcode_shlibpath_var=no
8561       ;;
8562
8563     *)
8564       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8565         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8566         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8567       else
8568         ld_shlibs=no
8569       fi
8570       ;;
8571     esac
8572
8573     if test "$ld_shlibs" = no; then
8574       runpath_var=
8575       hardcode_libdir_flag_spec=
8576       export_dynamic_flag_spec=
8577       whole_archive_flag_spec=
8578     fi
8579   else
8580     # PORTME fill in a description of your system's linker (not GNU ld)
8581     case $host_os in
8582     aix3*)
8583       allow_undefined_flag=unsupported
8584       always_export_symbols=yes
8585       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'
8586       # Note: this linker hardcodes the directories in LIBPATH if there
8587       # are no directories specified by -L.
8588       hardcode_minus_L=yes
8589       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8590         # Neither direct hardcoding nor static linking is supported with a
8591         # broken collect2.
8592         hardcode_direct=unsupported
8593       fi
8594       ;;
8595
8596     aix[4-9]*)
8597       if test "$host_cpu" = ia64; then
8598         # On IA64, the linker does run time linking by default, so we don't
8599         # have to do anything special.
8600         aix_use_runtimelinking=no
8601         exp_sym_flag='-Bexport'
8602         no_entry_flag=""
8603       else
8604         # If we're using GNU nm, then we don't want the "-C" option.
8605         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8606         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8607           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'
8608         else
8609           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'
8610         fi
8611         aix_use_runtimelinking=no
8612
8613         # Test if we are trying to use run time linking or normal
8614         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8615         # need to do runtime linking.
8616         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8617           for ld_flag in $LDFLAGS; do
8618           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8619             aix_use_runtimelinking=yes
8620             break
8621           fi
8622           done
8623           ;;
8624         esac
8625
8626         exp_sym_flag='-bexport'
8627         no_entry_flag='-bnoentry'
8628       fi
8629
8630       # When large executables or shared objects are built, AIX ld can
8631       # have problems creating the table of contents.  If linking a library
8632       # or program results in "error TOC overflow" add -mminimal-toc to
8633       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8634       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8635
8636       archive_cmds=''
8637       hardcode_direct=yes
8638       hardcode_direct_absolute=yes
8639       hardcode_libdir_separator=':'
8640       link_all_deplibs=yes
8641       file_list_spec='${wl}-f,'
8642
8643       if test "$GCC" = yes; then
8644         case $host_os in aix4.[012]|aix4.[012].*)
8645         # We only want to do this on AIX 4.2 and lower, the check
8646         # below for broken collect2 doesn't work under 4.3+
8647           collect2name=`${CC} -print-prog-name=collect2`
8648           if test -f "$collect2name" &&
8649            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8650           then
8651           # We have reworked collect2
8652           :
8653           else
8654           # We have old collect2
8655           hardcode_direct=unsupported
8656           # It fails to find uninstalled libraries when the uninstalled
8657           # path is not listed in the libpath.  Setting hardcode_minus_L
8658           # to unsupported forces relinking
8659           hardcode_minus_L=yes
8660           hardcode_libdir_flag_spec='-L$libdir'
8661           hardcode_libdir_separator=
8662           fi
8663           ;;
8664         esac
8665         shared_flag='-shared'
8666         if test "$aix_use_runtimelinking" = yes; then
8667           shared_flag="$shared_flag "'${wl}-G'
8668         fi
8669         link_all_deplibs=no
8670       else
8671         # not using gcc
8672         if test "$host_cpu" = ia64; then
8673         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8674         # chokes on -Wl,-G. The following line is correct:
8675           shared_flag='-G'
8676         else
8677           if test "$aix_use_runtimelinking" = yes; then
8678             shared_flag='${wl}-G'
8679           else
8680             shared_flag='${wl}-bM:SRE'
8681           fi
8682         fi
8683       fi
8684
8685       export_dynamic_flag_spec='${wl}-bexpall'
8686       # It seems that -bexpall does not export symbols beginning with
8687       # underscore (_), so it is better to generate a list of symbols to export.
8688       always_export_symbols=yes
8689       if test "$aix_use_runtimelinking" = yes; then
8690         # Warning - without using the other runtime loading flags (-brtl),
8691         # -berok will link without error, but may produce a broken library.
8692         allow_undefined_flag='-berok'
8693         # Determine the default libpath from the value encoded in an
8694         # empty executable.
8695         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h.  */
8697
8698 int
8699 main ()
8700 {
8701
8702   ;
8703   return 0;
8704 }
8705 _ACEOF
8706 if ac_fn_c_try_link "$LINENO"; then :
8707
8708 lt_aix_libpath_sed='
8709     /Import File Strings/,/^$/ {
8710         /^0/ {
8711             s/^0  *\(.*\)$/\1/
8712             p
8713         }
8714     }'
8715 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8716 # Check for a 64-bit object if we didn't find anything.
8717 if test -z "$aix_libpath"; then
8718   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8719 fi
8720 fi
8721 rm -f core conftest.err conftest.$ac_objext \
8722     conftest$ac_exeext conftest.$ac_ext
8723 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8724
8725         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8726         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"
8727       else
8728         if test "$host_cpu" = ia64; then
8729           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8730           allow_undefined_flag="-z nodefs"
8731           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"
8732         else
8733          # Determine the default libpath from the value encoded in an
8734          # empty executable.
8735          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h.  */
8737
8738 int
8739 main ()
8740 {
8741
8742   ;
8743   return 0;
8744 }
8745 _ACEOF
8746 if ac_fn_c_try_link "$LINENO"; then :
8747
8748 lt_aix_libpath_sed='
8749     /Import File Strings/,/^$/ {
8750         /^0/ {
8751             s/^0  *\(.*\)$/\1/
8752             p
8753         }
8754     }'
8755 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8756 # Check for a 64-bit object if we didn't find anything.
8757 if test -z "$aix_libpath"; then
8758   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8759 fi
8760 fi
8761 rm -f core conftest.err conftest.$ac_objext \
8762     conftest$ac_exeext conftest.$ac_ext
8763 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8764
8765          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8766           # Warning - without using the other run time loading flags,
8767           # -berok will link without error, but may produce a broken library.
8768           no_undefined_flag=' ${wl}-bernotok'
8769           allow_undefined_flag=' ${wl}-berok'
8770           # Exported symbols can be pulled into shared objects from archives
8771           whole_archive_flag_spec='$convenience'
8772           archive_cmds_need_lc=yes
8773           # This is similar to how AIX traditionally builds its shared libraries.
8774           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'
8775         fi
8776       fi
8777       ;;
8778
8779     amigaos*)
8780       case $host_cpu in
8781       powerpc)
8782             # see comment about AmigaOS4 .so support
8783             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8784             archive_expsym_cmds=''
8785         ;;
8786       m68k)
8787             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)'
8788             hardcode_libdir_flag_spec='-L$libdir'
8789             hardcode_minus_L=yes
8790         ;;
8791       esac
8792       ;;
8793
8794     bsdi[45]*)
8795       export_dynamic_flag_spec=-rdynamic
8796       ;;
8797
8798     cygwin* | mingw* | pw32* | cegcc*)
8799       # When not using gcc, we currently assume that we are using
8800       # Microsoft Visual C++.
8801       # hardcode_libdir_flag_spec is actually meaningless, as there is
8802       # no search path for DLLs.
8803       hardcode_libdir_flag_spec=' '
8804       allow_undefined_flag=unsupported
8805       # Tell ltmain to make .lib files, not .a files.
8806       libext=lib
8807       # Tell ltmain to make .dll files, not .so files.
8808       shrext_cmds=".dll"
8809       # FIXME: Setting linknames here is a bad hack.
8810       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8811       # The linker will automatically build a .lib file if we build a DLL.
8812       old_archive_from_new_cmds='true'
8813       # FIXME: Should let the user specify the lib program.
8814       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8815       fix_srcfile_path='`cygpath -w "$srcfile"`'
8816       enable_shared_with_static_runtimes=yes
8817       ;;
8818
8819     darwin* | rhapsody*)
8820
8821
8822   archive_cmds_need_lc=no
8823   hardcode_direct=no
8824   hardcode_automatic=yes
8825   hardcode_shlibpath_var=unsupported
8826   whole_archive_flag_spec=''
8827   link_all_deplibs=yes
8828   allow_undefined_flag="$_lt_dar_allow_undefined"
8829   case $cc_basename in
8830      ifort*) _lt_dar_can_shared=yes ;;
8831      *) _lt_dar_can_shared=$GCC ;;
8832   esac
8833   if test "$_lt_dar_can_shared" = "yes"; then
8834     output_verbose_link_cmd=echo
8835     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8836     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8837     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}"
8838     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}"
8839
8840   else
8841   ld_shlibs=no
8842   fi
8843
8844       ;;
8845
8846     dgux*)
8847       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8848       hardcode_libdir_flag_spec='-L$libdir'
8849       hardcode_shlibpath_var=no
8850       ;;
8851
8852     freebsd1*)
8853       ld_shlibs=no
8854       ;;
8855
8856     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8857     # support.  Future versions do this automatically, but an explicit c++rt0.o
8858     # does not break anything, and helps significantly (at the cost of a little
8859     # extra space).
8860     freebsd2.2*)
8861       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8862       hardcode_libdir_flag_spec='-R$libdir'
8863       hardcode_direct=yes
8864       hardcode_shlibpath_var=no
8865       ;;
8866
8867     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8868     freebsd2*)
8869       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8870       hardcode_direct=yes
8871       hardcode_minus_L=yes
8872       hardcode_shlibpath_var=no
8873       ;;
8874
8875     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8876     freebsd* | dragonfly*)
8877       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8878       hardcode_libdir_flag_spec='-R$libdir'
8879       hardcode_direct=yes
8880       hardcode_shlibpath_var=no
8881       ;;
8882
8883     hpux9*)
8884       if test "$GCC" = yes; then
8885         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'
8886       else
8887         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'
8888       fi
8889       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8890       hardcode_libdir_separator=:
8891       hardcode_direct=yes
8892
8893       # hardcode_minus_L: Not really in the search PATH,
8894       # but as the default location of the library.
8895       hardcode_minus_L=yes
8896       export_dynamic_flag_spec='${wl}-E'
8897       ;;
8898
8899     hpux10*)
8900       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8901         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8902       else
8903         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8904       fi
8905       if test "$with_gnu_ld" = no; then
8906         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8907         hardcode_libdir_flag_spec_ld='+b $libdir'
8908         hardcode_libdir_separator=:
8909         hardcode_direct=yes
8910         hardcode_direct_absolute=yes
8911         export_dynamic_flag_spec='${wl}-E'
8912         # hardcode_minus_L: Not really in the search PATH,
8913         # but as the default location of the library.
8914         hardcode_minus_L=yes
8915       fi
8916       ;;
8917
8918     hpux11*)
8919       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8920         case $host_cpu in
8921         hppa*64*)
8922           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8923           ;;
8924         ia64*)
8925           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8926           ;;
8927         *)
8928           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8929           ;;
8930         esac
8931       else
8932         case $host_cpu in
8933         hppa*64*)
8934           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8935           ;;
8936         ia64*)
8937           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8938           ;;
8939         *)
8940           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8941           ;;
8942         esac
8943       fi
8944       if test "$with_gnu_ld" = no; then
8945         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8946         hardcode_libdir_separator=:
8947
8948         case $host_cpu in
8949         hppa*64*|ia64*)
8950           hardcode_direct=no
8951           hardcode_shlibpath_var=no
8952           ;;
8953         *)
8954           hardcode_direct=yes
8955           hardcode_direct_absolute=yes
8956           export_dynamic_flag_spec='${wl}-E'
8957
8958           # hardcode_minus_L: Not really in the search PATH,
8959           # but as the default location of the library.
8960           hardcode_minus_L=yes
8961           ;;
8962         esac
8963       fi
8964       ;;
8965
8966     irix5* | irix6* | nonstopux*)
8967       if test "$GCC" = yes; then
8968         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'
8969         # Try to use the -exported_symbol ld option, if it does not
8970         # work, assume that -exports_file does not work either and
8971         # implicitly export all symbols.
8972         save_LDFLAGS="$LDFLAGS"
8973         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8974         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h.  */
8976 int foo(void) {}
8977 _ACEOF
8978 if ac_fn_c_try_link "$LINENO"; then :
8979   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'
8980
8981 fi
8982 rm -f core conftest.err conftest.$ac_objext \
8983     conftest$ac_exeext conftest.$ac_ext
8984         LDFLAGS="$save_LDFLAGS"
8985       else
8986         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'
8987         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'
8988       fi
8989       archive_cmds_need_lc='no'
8990       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8991       hardcode_libdir_separator=:
8992       inherit_rpath=yes
8993       link_all_deplibs=yes
8994       ;;
8995
8996     netbsd* | netbsdelf*-gnu)
8997       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8998         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8999       else
9000         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9001       fi
9002       hardcode_libdir_flag_spec='-R$libdir'
9003       hardcode_direct=yes
9004       hardcode_shlibpath_var=no
9005       ;;
9006
9007     newsos6)
9008       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9009       hardcode_direct=yes
9010       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9011       hardcode_libdir_separator=:
9012       hardcode_shlibpath_var=no
9013       ;;
9014
9015     *nto* | *qnx*)
9016       ;;
9017
9018     openbsd*)
9019       if test -f /usr/libexec/ld.so; then
9020         hardcode_direct=yes
9021         hardcode_shlibpath_var=no
9022         hardcode_direct_absolute=yes
9023         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9024           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9025           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9026           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9027           export_dynamic_flag_spec='${wl}-E'
9028         else
9029           case $host_os in
9030            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9031              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9032              hardcode_libdir_flag_spec='-R$libdir'
9033              ;;
9034            *)
9035              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9036              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9037              ;;
9038           esac
9039         fi
9040       else
9041         ld_shlibs=no
9042       fi
9043       ;;
9044
9045     os2*)
9046       hardcode_libdir_flag_spec='-L$libdir'
9047       hardcode_minus_L=yes
9048       allow_undefined_flag=unsupported
9049       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'
9050       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9051       ;;
9052
9053     osf3*)
9054       if test "$GCC" = yes; then
9055         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9056         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'
9057       else
9058         allow_undefined_flag=' -expect_unresolved \*'
9059         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'
9060       fi
9061       archive_cmds_need_lc='no'
9062       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9063       hardcode_libdir_separator=:
9064       ;;
9065
9066     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9067       if test "$GCC" = yes; then
9068         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9069         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'
9070         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9071       else
9072         allow_undefined_flag=' -expect_unresolved \*'
9073         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'
9074         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~
9075         $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'
9076
9077         # Both c and cxx compiler support -rpath directly
9078         hardcode_libdir_flag_spec='-rpath $libdir'
9079       fi
9080       archive_cmds_need_lc='no'
9081       hardcode_libdir_separator=:
9082       ;;
9083
9084     solaris*)
9085       no_undefined_flag=' -z defs'
9086       if test "$GCC" = yes; then
9087         wlarc='${wl}'
9088         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9089         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9090           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9091       else
9092         case `$CC -V 2>&1` in
9093         *"Compilers 5.0"*)
9094           wlarc=''
9095           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9096           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9097           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9098           ;;
9099         *)
9100           wlarc='${wl}'
9101           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9102           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9103           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9104           ;;
9105         esac
9106       fi
9107       hardcode_libdir_flag_spec='-R$libdir'
9108       hardcode_shlibpath_var=no
9109       case $host_os in
9110       solaris2.[0-5] | solaris2.[0-5].*) ;;
9111       *)
9112         # The compiler driver will combine and reorder linker options,
9113         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9114         # but is careful enough not to reorder.
9115         # Supported since Solaris 2.6 (maybe 2.5.1?)
9116         if test "$GCC" = yes; then
9117           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9118         else
9119           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9120         fi
9121         ;;
9122       esac
9123       link_all_deplibs=yes
9124       ;;
9125
9126     sunos4*)
9127       if test "x$host_vendor" = xsequent; then
9128         # Use $CC to link under sequent, because it throws in some extra .o
9129         # files that make .init and .fini sections work.
9130         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9131       else
9132         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9133       fi
9134       hardcode_libdir_flag_spec='-L$libdir'
9135       hardcode_direct=yes
9136       hardcode_minus_L=yes
9137       hardcode_shlibpath_var=no
9138       ;;
9139
9140     sysv4)
9141       case $host_vendor in
9142         sni)
9143           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9144           hardcode_direct=yes # is this really true???
9145         ;;
9146         siemens)
9147           ## LD is ld it makes a PLAMLIB
9148           ## CC just makes a GrossModule.
9149           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9150           reload_cmds='$CC -r -o $output$reload_objs'
9151           hardcode_direct=no
9152         ;;
9153         motorola)
9154           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9155           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9156         ;;
9157       esac
9158       runpath_var='LD_RUN_PATH'
9159       hardcode_shlibpath_var=no
9160       ;;
9161
9162     sysv4.3*)
9163       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9164       hardcode_shlibpath_var=no
9165       export_dynamic_flag_spec='-Bexport'
9166       ;;
9167
9168     sysv4*MP*)
9169       if test -d /usr/nec; then
9170         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9171         hardcode_shlibpath_var=no
9172         runpath_var=LD_RUN_PATH
9173         hardcode_runpath_var=yes
9174         ld_shlibs=yes
9175       fi
9176       ;;
9177
9178     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9179       no_undefined_flag='${wl}-z,text'
9180       archive_cmds_need_lc=no
9181       hardcode_shlibpath_var=no
9182       runpath_var='LD_RUN_PATH'
9183
9184       if test "$GCC" = yes; then
9185         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9186         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9187       else
9188         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9189         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9190       fi
9191       ;;
9192
9193     sysv5* | sco3.2v5* | sco5v6*)
9194       # Note: We can NOT use -z defs as we might desire, because we do not
9195       # link with -lc, and that would cause any symbols used from libc to
9196       # always be unresolved, which means just about no library would
9197       # ever link correctly.  If we're not using GNU ld we use -z text
9198       # though, which does catch some bad symbols but isn't as heavy-handed
9199       # as -z defs.
9200       no_undefined_flag='${wl}-z,text'
9201       allow_undefined_flag='${wl}-z,nodefs'
9202       archive_cmds_need_lc=no
9203       hardcode_shlibpath_var=no
9204       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9205       hardcode_libdir_separator=':'
9206       link_all_deplibs=yes
9207       export_dynamic_flag_spec='${wl}-Bexport'
9208       runpath_var='LD_RUN_PATH'
9209
9210       if test "$GCC" = yes; then
9211         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9212         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9213       else
9214         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9215         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9216       fi
9217       ;;
9218
9219     uts4*)
9220       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9221       hardcode_libdir_flag_spec='-L$libdir'
9222       hardcode_shlibpath_var=no
9223       ;;
9224
9225     *)
9226       ld_shlibs=no
9227       ;;
9228     esac
9229
9230     if test x$host_vendor = xsni; then
9231       case $host in
9232       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9233         export_dynamic_flag_spec='${wl}-Blargedynsym'
9234         ;;
9235       esac
9236     fi
9237   fi
9238
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9240 $as_echo "$ld_shlibs" >&6; }
9241 test "$ld_shlibs" = no && can_build_shared=no
9242
9243 with_gnu_ld=$with_gnu_ld
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259 #
9260 # Do we need to explicitly link libc?
9261 #
9262 case "x$archive_cmds_need_lc" in
9263 x|xyes)
9264   # Assume -lc should be added
9265   archive_cmds_need_lc=yes
9266
9267   if test "$enable_shared" = yes && test "$GCC" = yes; then
9268     case $archive_cmds in
9269     *'~'*)
9270       # FIXME: we may have to deal with multi-command sequences.
9271       ;;
9272     '$CC '*)
9273       # Test whether the compiler implicitly links with -lc since on some
9274       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9275       # to ld, don't add -lc before -lgcc.
9276       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9277 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9278       $RM conftest*
9279       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9280
9281       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9282   (eval $ac_compile) 2>&5
9283   ac_status=$?
9284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9285   test $ac_status = 0; } 2>conftest.err; then
9286         soname=conftest
9287         lib=conftest
9288         libobjs=conftest.$ac_objext
9289         deplibs=
9290         wl=$lt_prog_compiler_wl
9291         pic_flag=$lt_prog_compiler_pic
9292         compiler_flags=-v
9293         linker_flags=-v
9294         verstring=
9295         output_objdir=.
9296         libname=conftest
9297         lt_save_allow_undefined_flag=$allow_undefined_flag
9298         allow_undefined_flag=
9299         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9300   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9301   ac_status=$?
9302   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9303   test $ac_status = 0; }
9304         then
9305           archive_cmds_need_lc=no
9306         else
9307           archive_cmds_need_lc=yes
9308         fi
9309         allow_undefined_flag=$lt_save_allow_undefined_flag
9310       else
9311         cat conftest.err 1>&5
9312       fi
9313       $RM conftest*
9314       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9315 $as_echo "$archive_cmds_need_lc" >&6; }
9316       ;;
9317     esac
9318   fi
9319   ;;
9320 esac
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9479 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9480
9481 if test "$GCC" = yes; then
9482   case $host_os in
9483     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9484     *) lt_awk_arg="/^libraries:/" ;;
9485   esac
9486   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9487   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9488     # if the path contains ";" then we assume it to be the separator
9489     # otherwise default to the standard path separator (i.e. ":") - it is
9490     # assumed that no part of a normal pathname contains ";" but that should
9491     # okay in the real world where ";" in dirpaths is itself problematic.
9492     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9493   else
9494     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9495   fi
9496   # Ok, now we have the path, separated by spaces, we can step through it
9497   # and add multilib dir if necessary.
9498   lt_tmp_lt_search_path_spec=
9499   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9500   for lt_sys_path in $lt_search_path_spec; do
9501     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9502       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9503     else
9504       test -d "$lt_sys_path" && \
9505         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9506     fi
9507   done
9508   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9509 BEGIN {RS=" "; FS="/|\n";} {
9510   lt_foo="";
9511   lt_count=0;
9512   for (lt_i = NF; lt_i > 0; lt_i--) {
9513     if ($lt_i != "" && $lt_i != ".") {
9514       if ($lt_i == "..") {
9515         lt_count++;
9516       } else {
9517         if (lt_count == 0) {
9518           lt_foo="/" $lt_i lt_foo;
9519         } else {
9520           lt_count--;
9521         }
9522       }
9523     }
9524   }
9525   if (lt_foo != "") { lt_freq[lt_foo]++; }
9526   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9527 }'`
9528   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9529 else
9530   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9531 fi
9532 library_names_spec=
9533 libname_spec='lib$name'
9534 soname_spec=
9535 shrext_cmds=".so"
9536 postinstall_cmds=
9537 postuninstall_cmds=
9538 finish_cmds=
9539 finish_eval=
9540 shlibpath_var=
9541 shlibpath_overrides_runpath=unknown
9542 version_type=none
9543 dynamic_linker="$host_os ld.so"
9544 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9545 need_lib_prefix=unknown
9546 hardcode_into_libs=no
9547
9548 # when you set need_version to no, make sure it does not cause -set_version
9549 # flags to be left without arguments
9550 need_version=unknown
9551
9552 case $host_os in
9553 aix3*)
9554   version_type=linux
9555   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9556   shlibpath_var=LIBPATH
9557
9558   # AIX 3 has no versioning support, so we append a major version to the name.
9559   soname_spec='${libname}${release}${shared_ext}$major'
9560   ;;
9561
9562 aix[4-9]*)
9563   version_type=linux
9564   need_lib_prefix=no
9565   need_version=no
9566   hardcode_into_libs=yes
9567   if test "$host_cpu" = ia64; then
9568     # AIX 5 supports IA64
9569     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9570     shlibpath_var=LD_LIBRARY_PATH
9571   else
9572     # With GCC up to 2.95.x, collect2 would create an import file
9573     # for dependence libraries.  The import file would start with
9574     # the line `#! .'.  This would cause the generated library to
9575     # depend on `.', always an invalid library.  This was fixed in
9576     # development snapshots of GCC prior to 3.0.
9577     case $host_os in
9578       aix4 | aix4.[01] | aix4.[01].*)
9579       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9580            echo ' yes '
9581            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9582         :
9583       else
9584         can_build_shared=no
9585       fi
9586       ;;
9587     esac
9588     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9589     # soname into executable. Probably we can add versioning support to
9590     # collect2, so additional links can be useful in future.
9591     if test "$aix_use_runtimelinking" = yes; then
9592       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9593       # instead of lib<name>.a to let people know that these are not
9594       # typical AIX shared libraries.
9595       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9596     else
9597       # We preserve .a as extension for shared libraries through AIX4.2
9598       # and later when we are not doing run time linking.
9599       library_names_spec='${libname}${release}.a $libname.a'
9600       soname_spec='${libname}${release}${shared_ext}$major'
9601     fi
9602     shlibpath_var=LIBPATH
9603   fi
9604   ;;
9605
9606 amigaos*)
9607   case $host_cpu in
9608   powerpc)
9609     # Since July 2007 AmigaOS4 officially supports .so libraries.
9610     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9611     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612     ;;
9613   m68k)
9614     library_names_spec='$libname.ixlibrary $libname.a'
9615     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9616     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'
9617     ;;
9618   esac
9619   ;;
9620
9621 beos*)
9622   library_names_spec='${libname}${shared_ext}'
9623   dynamic_linker="$host_os ld.so"
9624   shlibpath_var=LIBRARY_PATH
9625   ;;
9626
9627 bsdi[45]*)
9628   version_type=linux
9629   need_version=no
9630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9631   soname_spec='${libname}${release}${shared_ext}$major'
9632   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9633   shlibpath_var=LD_LIBRARY_PATH
9634   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9635   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9636   # the default ld.so.conf also contains /usr/contrib/lib and
9637   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9638   # libtool to hard-code these into programs
9639   ;;
9640
9641 cygwin* | mingw* | pw32* | cegcc*)
9642   version_type=windows
9643   shrext_cmds=".dll"
9644   need_version=no
9645   need_lib_prefix=no
9646
9647   case $GCC,$host_os in
9648   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9649     library_names_spec='$libname.dll.a'
9650     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9651     postinstall_cmds='base_file=`basename \${file}`~
9652       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9653       dldir=$destdir/`dirname \$dlpath`~
9654       test -d \$dldir || mkdir -p \$dldir~
9655       $install_prog $dir/$dlname \$dldir/$dlname~
9656       chmod a+x \$dldir/$dlname~
9657       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9658         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9659       fi'
9660     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9661       dlpath=$dir/\$dldll~
9662        $RM \$dlpath'
9663     shlibpath_overrides_runpath=yes
9664
9665     case $host_os in
9666     cygwin*)
9667       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9668       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9669       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9670       ;;
9671     mingw* | cegcc*)
9672       # MinGW DLLs use traditional 'lib' prefix
9673       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9674       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9675       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9676         # It is most probably a Windows format PATH printed by
9677         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9678         # path with ; separators, and with drive letters. We can handle the
9679         # drive letters (cygwin fileutils understands them), so leave them,
9680         # especially as we might pass files found there to a mingw objdump,
9681         # which wouldn't understand a cygwinified path. Ahh.
9682         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9683       else
9684         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9685       fi
9686       ;;
9687     pw32*)
9688       # pw32 DLLs use 'pw' prefix rather than 'lib'
9689       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9690       ;;
9691     esac
9692     ;;
9693
9694   *)
9695     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9696     ;;
9697   esac
9698   dynamic_linker='Win32 ld.exe'
9699   # FIXME: first we should search . and the directory the executable is in
9700   shlibpath_var=PATH
9701   ;;
9702
9703 darwin* | rhapsody*)
9704   dynamic_linker="$host_os dyld"
9705   version_type=darwin
9706   need_lib_prefix=no
9707   need_version=no
9708   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9709   soname_spec='${libname}${release}${major}$shared_ext'
9710   shlibpath_overrides_runpath=yes
9711   shlibpath_var=DYLD_LIBRARY_PATH
9712   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9713
9714   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9715   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9716   ;;
9717
9718 dgux*)
9719   version_type=linux
9720   need_lib_prefix=no
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   shlibpath_var=LD_LIBRARY_PATH
9725   ;;
9726
9727 freebsd1*)
9728   dynamic_linker=no
9729   ;;
9730
9731 freebsd* | dragonfly*)
9732   # DragonFly does not have aout.  When/if they implement a new
9733   # versioning mechanism, adjust this.
9734   if test -x /usr/bin/objformat; then
9735     objformat=`/usr/bin/objformat`
9736   else
9737     case $host_os in
9738     freebsd[123]*) objformat=aout ;;
9739     *) objformat=elf ;;
9740     esac
9741   fi
9742   version_type=freebsd-$objformat
9743   case $version_type in
9744     freebsd-elf*)
9745       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9746       need_version=no
9747       need_lib_prefix=no
9748       ;;
9749     freebsd-*)
9750       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9751       need_version=yes
9752       ;;
9753   esac
9754   shlibpath_var=LD_LIBRARY_PATH
9755   case $host_os in
9756   freebsd2*)
9757     shlibpath_overrides_runpath=yes
9758     ;;
9759   freebsd3.[01]* | freebsdelf3.[01]*)
9760     shlibpath_overrides_runpath=yes
9761     hardcode_into_libs=yes
9762     ;;
9763   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9764   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9765     shlibpath_overrides_runpath=no
9766     hardcode_into_libs=yes
9767     ;;
9768   *) # from 4.6 on, and DragonFly
9769     shlibpath_overrides_runpath=yes
9770     hardcode_into_libs=yes
9771     ;;
9772   esac
9773   ;;
9774
9775 gnu*)
9776   version_type=linux
9777   need_lib_prefix=no
9778   need_version=no
9779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9780   soname_spec='${libname}${release}${shared_ext}$major'
9781   shlibpath_var=LD_LIBRARY_PATH
9782   hardcode_into_libs=yes
9783   ;;
9784
9785 hpux9* | hpux10* | hpux11*)
9786   # Give a soname corresponding to the major version so that dld.sl refuses to
9787   # link against other versions.
9788   version_type=sunos
9789   need_lib_prefix=no
9790   need_version=no
9791   case $host_cpu in
9792   ia64*)
9793     shrext_cmds='.so'
9794     hardcode_into_libs=yes
9795     dynamic_linker="$host_os dld.so"
9796     shlibpath_var=LD_LIBRARY_PATH
9797     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9798     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9799     soname_spec='${libname}${release}${shared_ext}$major'
9800     if test "X$HPUX_IA64_MODE" = X32; then
9801       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9802     else
9803       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9804     fi
9805     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9806     ;;
9807   hppa*64*)
9808     shrext_cmds='.sl'
9809     hardcode_into_libs=yes
9810     dynamic_linker="$host_os dld.sl"
9811     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9812     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9813     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9814     soname_spec='${libname}${release}${shared_ext}$major'
9815     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9816     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9817     ;;
9818   *)
9819     shrext_cmds='.sl'
9820     dynamic_linker="$host_os dld.sl"
9821     shlibpath_var=SHLIB_PATH
9822     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9823     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9824     soname_spec='${libname}${release}${shared_ext}$major'
9825     ;;
9826   esac
9827   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9828   postinstall_cmds='chmod 555 $lib'
9829   ;;
9830
9831 interix[3-9]*)
9832   version_type=linux
9833   need_lib_prefix=no
9834   need_version=no
9835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9836   soname_spec='${libname}${release}${shared_ext}$major'
9837   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9838   shlibpath_var=LD_LIBRARY_PATH
9839   shlibpath_overrides_runpath=no
9840   hardcode_into_libs=yes
9841   ;;
9842
9843 irix5* | irix6* | nonstopux*)
9844   case $host_os in
9845     nonstopux*) version_type=nonstopux ;;
9846     *)
9847         if test "$lt_cv_prog_gnu_ld" = yes; then
9848                 version_type=linux
9849         else
9850                 version_type=irix
9851         fi ;;
9852   esac
9853   need_lib_prefix=no
9854   need_version=no
9855   soname_spec='${libname}${release}${shared_ext}$major'
9856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9857   case $host_os in
9858   irix5* | nonstopux*)
9859     libsuff= shlibsuff=
9860     ;;
9861   *)
9862     case $LD in # libtool.m4 will add one of these switches to LD
9863     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9864       libsuff= shlibsuff= libmagic=32-bit;;
9865     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9866       libsuff=32 shlibsuff=N32 libmagic=N32;;
9867     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9868       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9869     *) libsuff= shlibsuff= libmagic=never-match;;
9870     esac
9871     ;;
9872   esac
9873   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9874   shlibpath_overrides_runpath=no
9875   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9876   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9877   hardcode_into_libs=yes
9878   ;;
9879
9880 # No shared lib support for Linux oldld, aout, or coff.
9881 linux*oldld* | linux*aout* | linux*coff*)
9882   dynamic_linker=no
9883   ;;
9884
9885 # This must be Linux ELF.
9886 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9887   version_type=linux
9888   need_lib_prefix=no
9889   need_version=no
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   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9893   shlibpath_var=LD_LIBRARY_PATH
9894   shlibpath_overrides_runpath=no
9895   # Some binutils ld are patched to set DT_RUNPATH
9896   save_LDFLAGS=$LDFLAGS
9897   save_libdir=$libdir
9898   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9899        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h.  */
9902
9903 int
9904 main ()
9905 {
9906
9907   ;
9908   return 0;
9909 }
9910 _ACEOF
9911 if ac_fn_c_try_link "$LINENO"; then :
9912   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9913   shlibpath_overrides_runpath=yes
9914 fi
9915 fi
9916 rm -f core conftest.err conftest.$ac_objext \
9917     conftest$ac_exeext conftest.$ac_ext
9918   LDFLAGS=$save_LDFLAGS
9919   libdir=$save_libdir
9920
9921   # This implies no fast_install, which is unacceptable.
9922   # Some rework will be needed to allow for fast_install
9923   # before this can be enabled.
9924   hardcode_into_libs=yes
9925
9926   # Append ld.so.conf contents to the search path
9927   if test -f /etc/ld.so.conf; then
9928     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' ' '`
9929     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9930   fi
9931
9932   # We used to test for /lib/ld.so.1 and disable shared libraries on
9933   # powerpc, because MkLinux only supported shared libraries with the
9934   # GNU dynamic linker.  Since this was broken with cross compilers,
9935   # most powerpc-linux boxes support dynamic linking these days and
9936   # people can always --disable-shared, the test was removed, and we
9937   # assume the GNU/Linux dynamic linker is in use.
9938   dynamic_linker='GNU/Linux ld.so'
9939   ;;
9940
9941 netbsdelf*-gnu)
9942   version_type=linux
9943   need_lib_prefix=no
9944   need_version=no
9945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9946   soname_spec='${libname}${release}${shared_ext}$major'
9947   shlibpath_var=LD_LIBRARY_PATH
9948   shlibpath_overrides_runpath=no
9949   hardcode_into_libs=yes
9950   dynamic_linker='NetBSD ld.elf_so'
9951   ;;
9952
9953 netbsd*)
9954   version_type=sunos
9955   need_lib_prefix=no
9956   need_version=no
9957   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9958     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9959     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9960     dynamic_linker='NetBSD (a.out) ld.so'
9961   else
9962     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9963     soname_spec='${libname}${release}${shared_ext}$major'
9964     dynamic_linker='NetBSD ld.elf_so'
9965   fi
9966   shlibpath_var=LD_LIBRARY_PATH
9967   shlibpath_overrides_runpath=yes
9968   hardcode_into_libs=yes
9969   ;;
9970
9971 newsos6)
9972   version_type=linux
9973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9974   shlibpath_var=LD_LIBRARY_PATH
9975   shlibpath_overrides_runpath=yes
9976   ;;
9977
9978 *nto* | *qnx*)
9979   version_type=qnx
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   shlibpath_var=LD_LIBRARY_PATH
9985   shlibpath_overrides_runpath=no
9986   hardcode_into_libs=yes
9987   dynamic_linker='ldqnx.so'
9988   ;;
9989
9990 openbsd*)
9991   version_type=sunos
9992   sys_lib_dlsearch_path_spec="/usr/lib"
9993   need_lib_prefix=no
9994   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9995   case $host_os in
9996     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9997     *)                          need_version=no  ;;
9998   esac
9999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10000   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10001   shlibpath_var=LD_LIBRARY_PATH
10002   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10003     case $host_os in
10004       openbsd2.[89] | openbsd2.[89].*)
10005         shlibpath_overrides_runpath=no
10006         ;;
10007       *)
10008         shlibpath_overrides_runpath=yes
10009         ;;
10010       esac
10011   else
10012     shlibpath_overrides_runpath=yes
10013   fi
10014   ;;
10015
10016 os2*)
10017   libname_spec='$name'
10018   shrext_cmds=".dll"
10019   need_lib_prefix=no
10020   library_names_spec='$libname${shared_ext} $libname.a'
10021   dynamic_linker='OS/2 ld.exe'
10022   shlibpath_var=LIBPATH
10023   ;;
10024
10025 osf3* | osf4* | osf5*)
10026   version_type=osf
10027   need_lib_prefix=no
10028   need_version=no
10029   soname_spec='${libname}${release}${shared_ext}$major'
10030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10031   shlibpath_var=LD_LIBRARY_PATH
10032   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10033   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10034   ;;
10035
10036 rdos*)
10037   dynamic_linker=no
10038   ;;
10039
10040 solaris*)
10041   version_type=linux
10042   need_lib_prefix=no
10043   need_version=no
10044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10045   soname_spec='${libname}${release}${shared_ext}$major'
10046   shlibpath_var=LD_LIBRARY_PATH
10047   shlibpath_overrides_runpath=yes
10048   hardcode_into_libs=yes
10049   # ldd complains unless libraries are executable
10050   postinstall_cmds='chmod +x $lib'
10051   ;;
10052
10053 sunos4*)
10054   version_type=sunos
10055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10056   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10057   shlibpath_var=LD_LIBRARY_PATH
10058   shlibpath_overrides_runpath=yes
10059   if test "$with_gnu_ld" = yes; then
10060     need_lib_prefix=no
10061   fi
10062   need_version=yes
10063   ;;
10064
10065 sysv4 | sysv4.3*)
10066   version_type=linux
10067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068   soname_spec='${libname}${release}${shared_ext}$major'
10069   shlibpath_var=LD_LIBRARY_PATH
10070   case $host_vendor in
10071     sni)
10072       shlibpath_overrides_runpath=no
10073       need_lib_prefix=no
10074       runpath_var=LD_RUN_PATH
10075       ;;
10076     siemens)
10077       need_lib_prefix=no
10078       ;;
10079     motorola)
10080       need_lib_prefix=no
10081       need_version=no
10082       shlibpath_overrides_runpath=no
10083       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10084       ;;
10085   esac
10086   ;;
10087
10088 sysv4*MP*)
10089   if test -d /usr/nec ;then
10090     version_type=linux
10091     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10092     soname_spec='$libname${shared_ext}.$major'
10093     shlibpath_var=LD_LIBRARY_PATH
10094   fi
10095   ;;
10096
10097 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10098   version_type=freebsd-elf
10099   need_lib_prefix=no
10100   need_version=no
10101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10102   soname_spec='${libname}${release}${shared_ext}$major'
10103   shlibpath_var=LD_LIBRARY_PATH
10104   shlibpath_overrides_runpath=yes
10105   hardcode_into_libs=yes
10106   if test "$with_gnu_ld" = yes; then
10107     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10108   else
10109     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10110     case $host_os in
10111       sco3.2v5*)
10112         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10113         ;;
10114     esac
10115   fi
10116   sys_lib_dlsearch_path_spec='/usr/lib'
10117   ;;
10118
10119 tpf*)
10120   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10121   version_type=linux
10122   need_lib_prefix=no
10123   need_version=no
10124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125   shlibpath_var=LD_LIBRARY_PATH
10126   shlibpath_overrides_runpath=no
10127   hardcode_into_libs=yes
10128   ;;
10129
10130 uts4*)
10131   version_type=linux
10132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10133   soname_spec='${libname}${release}${shared_ext}$major'
10134   shlibpath_var=LD_LIBRARY_PATH
10135   ;;
10136
10137 *)
10138   dynamic_linker=no
10139   ;;
10140 esac
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10142 $as_echo "$dynamic_linker" >&6; }
10143 test "$dynamic_linker" = no && can_build_shared=no
10144
10145 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10146 if test "$GCC" = yes; then
10147   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10148 fi
10149
10150 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10151   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10152 fi
10153 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10154   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10155 fi
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10244 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10245 hardcode_action=
10246 if test -n "$hardcode_libdir_flag_spec" ||
10247    test -n "$runpath_var" ||
10248    test "X$hardcode_automatic" = "Xyes" ; then
10249
10250   # We can hardcode non-existent directories.
10251   if test "$hardcode_direct" != no &&
10252      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10253      # have to relink, otherwise we might link with an installed library
10254      # when we should be linking with a yet-to-be-installed one
10255      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10256      test "$hardcode_minus_L" != no; then
10257     # Linking always hardcodes the temporary library directory.
10258     hardcode_action=relink
10259   else
10260     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10261     hardcode_action=immediate
10262   fi
10263 else
10264   # We cannot hardcode anything, or else we can only hardcode existing
10265   # directories.
10266   hardcode_action=unsupported
10267 fi
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10269 $as_echo "$hardcode_action" >&6; }
10270
10271 if test "$hardcode_action" = relink ||
10272    test "$inherit_rpath" = yes; then
10273   # Fast installation is not supported
10274   enable_fast_install=no
10275 elif test "$shlibpath_overrides_runpath" = yes ||
10276      test "$enable_shared" = no; then
10277   # Fast installation is not necessary
10278   enable_fast_install=needless
10279 fi
10280
10281
10282
10283
10284
10285
10286   if test "x$enable_dlopen" != xyes; then
10287   enable_dlopen=unknown
10288   enable_dlopen_self=unknown
10289   enable_dlopen_self_static=unknown
10290 else
10291   lt_cv_dlopen=no
10292   lt_cv_dlopen_libs=
10293
10294   case $host_os in
10295   beos*)
10296     lt_cv_dlopen="load_add_on"
10297     lt_cv_dlopen_libs=
10298     lt_cv_dlopen_self=yes
10299     ;;
10300
10301   mingw* | pw32* | cegcc*)
10302     lt_cv_dlopen="LoadLibrary"
10303     lt_cv_dlopen_libs=
10304     ;;
10305
10306   cygwin*)
10307     lt_cv_dlopen="dlopen"
10308     lt_cv_dlopen_libs=
10309     ;;
10310
10311   darwin*)
10312   # if libdl is installed we need to link against it
10313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10314 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10315 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10316   $as_echo_n "(cached) " >&6
10317 else
10318   ac_check_lib_save_LIBS=$LIBS
10319 LIBS="-ldl  $LIBS"
10320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10321 /* end confdefs.h.  */
10322
10323 /* Override any GCC internal prototype to avoid an error.
10324    Use char because int might match the return type of a GCC
10325    builtin and then its argument prototype would still apply.  */
10326 #ifdef __cplusplus
10327 extern "C"
10328 #endif
10329 char dlopen ();
10330 int
10331 main ()
10332 {
10333 return dlopen ();
10334   ;
10335   return 0;
10336 }
10337 _ACEOF
10338 if ac_fn_c_try_link "$LINENO"; then :
10339   ac_cv_lib_dl_dlopen=yes
10340 else
10341   ac_cv_lib_dl_dlopen=no
10342 fi
10343 rm -f core conftest.err conftest.$ac_objext \
10344     conftest$ac_exeext conftest.$ac_ext
10345 LIBS=$ac_check_lib_save_LIBS
10346 fi
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10348 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10349 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10350   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10351 else
10352
10353     lt_cv_dlopen="dyld"
10354     lt_cv_dlopen_libs=
10355     lt_cv_dlopen_self=yes
10356
10357 fi
10358
10359     ;;
10360
10361   *)
10362     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10363 if test "x$ac_cv_func_shl_load" = x""yes; then :
10364   lt_cv_dlopen="shl_load"
10365 else
10366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10367 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10368 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10369   $as_echo_n "(cached) " >&6
10370 else
10371   ac_check_lib_save_LIBS=$LIBS
10372 LIBS="-ldld  $LIBS"
10373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10374 /* end confdefs.h.  */
10375
10376 /* Override any GCC internal prototype to avoid an error.
10377    Use char because int might match the return type of a GCC
10378    builtin and then its argument prototype would still apply.  */
10379 #ifdef __cplusplus
10380 extern "C"
10381 #endif
10382 char shl_load ();
10383 int
10384 main ()
10385 {
10386 return shl_load ();
10387   ;
10388   return 0;
10389 }
10390 _ACEOF
10391 if ac_fn_c_try_link "$LINENO"; then :
10392   ac_cv_lib_dld_shl_load=yes
10393 else
10394   ac_cv_lib_dld_shl_load=no
10395 fi
10396 rm -f core conftest.err conftest.$ac_objext \
10397     conftest$ac_exeext conftest.$ac_ext
10398 LIBS=$ac_check_lib_save_LIBS
10399 fi
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10401 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10402 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10403   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10404 else
10405   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10406 if test "x$ac_cv_func_dlopen" = x""yes; then :
10407   lt_cv_dlopen="dlopen"
10408 else
10409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10410 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10411 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10412   $as_echo_n "(cached) " >&6
10413 else
10414   ac_check_lib_save_LIBS=$LIBS
10415 LIBS="-ldl  $LIBS"
10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h.  */
10418
10419 /* Override any GCC internal prototype to avoid an error.
10420    Use char because int might match the return type of a GCC
10421    builtin and then its argument prototype would still apply.  */
10422 #ifdef __cplusplus
10423 extern "C"
10424 #endif
10425 char dlopen ();
10426 int
10427 main ()
10428 {
10429 return dlopen ();
10430   ;
10431   return 0;
10432 }
10433 _ACEOF
10434 if ac_fn_c_try_link "$LINENO"; then :
10435   ac_cv_lib_dl_dlopen=yes
10436 else
10437   ac_cv_lib_dl_dlopen=no
10438 fi
10439 rm -f core conftest.err conftest.$ac_objext \
10440     conftest$ac_exeext conftest.$ac_ext
10441 LIBS=$ac_check_lib_save_LIBS
10442 fi
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10444 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10445 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10446   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10447 else
10448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10449 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10450 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10451   $as_echo_n "(cached) " >&6
10452 else
10453   ac_check_lib_save_LIBS=$LIBS
10454 LIBS="-lsvld  $LIBS"
10455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10456 /* end confdefs.h.  */
10457
10458 /* Override any GCC internal prototype to avoid an error.
10459    Use char because int might match the return type of a GCC
10460    builtin and then its argument prototype would still apply.  */
10461 #ifdef __cplusplus
10462 extern "C"
10463 #endif
10464 char dlopen ();
10465 int
10466 main ()
10467 {
10468 return dlopen ();
10469   ;
10470   return 0;
10471 }
10472 _ACEOF
10473 if ac_fn_c_try_link "$LINENO"; then :
10474   ac_cv_lib_svld_dlopen=yes
10475 else
10476   ac_cv_lib_svld_dlopen=no
10477 fi
10478 rm -f core conftest.err conftest.$ac_objext \
10479     conftest$ac_exeext conftest.$ac_ext
10480 LIBS=$ac_check_lib_save_LIBS
10481 fi
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10483 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10484 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10485   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10486 else
10487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10488 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10489 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10490   $as_echo_n "(cached) " >&6
10491 else
10492   ac_check_lib_save_LIBS=$LIBS
10493 LIBS="-ldld  $LIBS"
10494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495 /* end confdefs.h.  */
10496
10497 /* Override any GCC internal prototype to avoid an error.
10498    Use char because int might match the return type of a GCC
10499    builtin and then its argument prototype would still apply.  */
10500 #ifdef __cplusplus
10501 extern "C"
10502 #endif
10503 char dld_link ();
10504 int
10505 main ()
10506 {
10507 return dld_link ();
10508   ;
10509   return 0;
10510 }
10511 _ACEOF
10512 if ac_fn_c_try_link "$LINENO"; then :
10513   ac_cv_lib_dld_dld_link=yes
10514 else
10515   ac_cv_lib_dld_dld_link=no
10516 fi
10517 rm -f core conftest.err conftest.$ac_objext \
10518     conftest$ac_exeext conftest.$ac_ext
10519 LIBS=$ac_check_lib_save_LIBS
10520 fi
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10522 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10523 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10524   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10525 fi
10526
10527
10528 fi
10529
10530
10531 fi
10532
10533
10534 fi
10535
10536
10537 fi
10538
10539
10540 fi
10541
10542     ;;
10543   esac
10544
10545   if test "x$lt_cv_dlopen" != xno; then
10546     enable_dlopen=yes
10547   else
10548     enable_dlopen=no
10549   fi
10550
10551   case $lt_cv_dlopen in
10552   dlopen)
10553     save_CPPFLAGS="$CPPFLAGS"
10554     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10555
10556     save_LDFLAGS="$LDFLAGS"
10557     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10558
10559     save_LIBS="$LIBS"
10560     LIBS="$lt_cv_dlopen_libs $LIBS"
10561
10562     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10563 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10564 if test "${lt_cv_dlopen_self+set}" = set; then :
10565   $as_echo_n "(cached) " >&6
10566 else
10567           if test "$cross_compiling" = yes; then :
10568   lt_cv_dlopen_self=cross
10569 else
10570   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10571   lt_status=$lt_dlunknown
10572   cat > conftest.$ac_ext <<_LT_EOF
10573 #line 10573 "configure"
10574 #include "confdefs.h"
10575
10576 #if HAVE_DLFCN_H
10577 #include <dlfcn.h>
10578 #endif
10579
10580 #include <stdio.h>
10581
10582 #ifdef RTLD_GLOBAL
10583 #  define LT_DLGLOBAL           RTLD_GLOBAL
10584 #else
10585 #  ifdef DL_GLOBAL
10586 #    define LT_DLGLOBAL         DL_GLOBAL
10587 #  else
10588 #    define LT_DLGLOBAL         0
10589 #  endif
10590 #endif
10591
10592 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10593    find out it does not work in some platform. */
10594 #ifndef LT_DLLAZY_OR_NOW
10595 #  ifdef RTLD_LAZY
10596 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10597 #  else
10598 #    ifdef DL_LAZY
10599 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10600 #    else
10601 #      ifdef RTLD_NOW
10602 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10603 #      else
10604 #        ifdef DL_NOW
10605 #          define LT_DLLAZY_OR_NOW      DL_NOW
10606 #        else
10607 #          define LT_DLLAZY_OR_NOW      0
10608 #        endif
10609 #      endif
10610 #    endif
10611 #  endif
10612 #endif
10613
10614 void fnord() { int i=42;}
10615 int main ()
10616 {
10617   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10618   int status = $lt_dlunknown;
10619
10620   if (self)
10621     {
10622       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10623       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10624       /* dlclose (self); */
10625     }
10626   else
10627     puts (dlerror ());
10628
10629   return status;
10630 }
10631 _LT_EOF
10632   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10633   (eval $ac_link) 2>&5
10634   ac_status=$?
10635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10636   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10637     (./conftest; exit; ) >&5 2>/dev/null
10638     lt_status=$?
10639     case x$lt_status in
10640       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10641       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10642       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10643     esac
10644   else :
10645     # compilation failed
10646     lt_cv_dlopen_self=no
10647   fi
10648 fi
10649 rm -fr conftest*
10650
10651
10652 fi
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10654 $as_echo "$lt_cv_dlopen_self" >&6; }
10655
10656     if test "x$lt_cv_dlopen_self" = xyes; then
10657       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10658       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10659 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10660 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10661   $as_echo_n "(cached) " >&6
10662 else
10663           if test "$cross_compiling" = yes; then :
10664   lt_cv_dlopen_self_static=cross
10665 else
10666   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10667   lt_status=$lt_dlunknown
10668   cat > conftest.$ac_ext <<_LT_EOF
10669 #line 10669 "configure"
10670 #include "confdefs.h"
10671
10672 #if HAVE_DLFCN_H
10673 #include <dlfcn.h>
10674 #endif
10675
10676 #include <stdio.h>
10677
10678 #ifdef RTLD_GLOBAL
10679 #  define LT_DLGLOBAL           RTLD_GLOBAL
10680 #else
10681 #  ifdef DL_GLOBAL
10682 #    define LT_DLGLOBAL         DL_GLOBAL
10683 #  else
10684 #    define LT_DLGLOBAL         0
10685 #  endif
10686 #endif
10687
10688 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10689    find out it does not work in some platform. */
10690 #ifndef LT_DLLAZY_OR_NOW
10691 #  ifdef RTLD_LAZY
10692 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10693 #  else
10694 #    ifdef DL_LAZY
10695 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10696 #    else
10697 #      ifdef RTLD_NOW
10698 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10699 #      else
10700 #        ifdef DL_NOW
10701 #          define LT_DLLAZY_OR_NOW      DL_NOW
10702 #        else
10703 #          define LT_DLLAZY_OR_NOW      0
10704 #        endif
10705 #      endif
10706 #    endif
10707 #  endif
10708 #endif
10709
10710 void fnord() { int i=42;}
10711 int main ()
10712 {
10713   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10714   int status = $lt_dlunknown;
10715
10716   if (self)
10717     {
10718       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10719       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10720       /* dlclose (self); */
10721     }
10722   else
10723     puts (dlerror ());
10724
10725   return status;
10726 }
10727 _LT_EOF
10728   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10729   (eval $ac_link) 2>&5
10730   ac_status=$?
10731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10732   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10733     (./conftest; exit; ) >&5 2>/dev/null
10734     lt_status=$?
10735     case x$lt_status in
10736       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10737       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10738       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10739     esac
10740   else :
10741     # compilation failed
10742     lt_cv_dlopen_self_static=no
10743   fi
10744 fi
10745 rm -fr conftest*
10746
10747
10748 fi
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10750 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10751     fi
10752
10753     CPPFLAGS="$save_CPPFLAGS"
10754     LDFLAGS="$save_LDFLAGS"
10755     LIBS="$save_LIBS"
10756     ;;
10757   esac
10758
10759   case $lt_cv_dlopen_self in
10760   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10761   *) enable_dlopen_self=unknown ;;
10762   esac
10763
10764   case $lt_cv_dlopen_self_static in
10765   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10766   *) enable_dlopen_self_static=unknown ;;
10767   esac
10768 fi
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786 striplib=
10787 old_striplib=
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10789 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10790 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10791   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10792   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10794 $as_echo "yes" >&6; }
10795 else
10796 # FIXME - insert some real tests, host_os isn't really good enough
10797   case $host_os in
10798   darwin*)
10799     if test -n "$STRIP" ; then
10800       striplib="$STRIP -x"
10801       old_striplib="$STRIP -S"
10802       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10803 $as_echo "yes" >&6; }
10804     else
10805       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10806 $as_echo "no" >&6; }
10807     fi
10808     ;;
10809   *)
10810     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811 $as_echo "no" >&6; }
10812     ;;
10813   esac
10814 fi
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827   # Report which library types will actually be built
10828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10829 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10831 $as_echo "$can_build_shared" >&6; }
10832
10833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10834 $as_echo_n "checking whether to build shared libraries... " >&6; }
10835   test "$can_build_shared" = "no" && enable_shared=no
10836
10837   # On AIX, shared libraries and static libraries use the same namespace, and
10838   # are all built from PIC.
10839   case $host_os in
10840   aix3*)
10841     test "$enable_shared" = yes && enable_static=no
10842     if test -n "$RANLIB"; then
10843       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10844       postinstall_cmds='$RANLIB $lib'
10845     fi
10846     ;;
10847
10848   aix[4-9]*)
10849     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10850       test "$enable_shared" = yes && enable_static=no
10851     fi
10852     ;;
10853   esac
10854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10855 $as_echo "$enable_shared" >&6; }
10856
10857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10858 $as_echo_n "checking whether to build static libraries... " >&6; }
10859   # Make sure either enable_shared or enable_static is yes.
10860   test "$enable_shared" = yes || enable_static=yes
10861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10862 $as_echo "$enable_static" >&6; }
10863
10864
10865
10866
10867 fi
10868 ac_ext=c
10869 ac_cpp='$CPP $CPPFLAGS'
10870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10873
10874 CC="$lt_save_CC"
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888         ac_config_commands="$ac_config_commands libtool"
10889
10890
10891
10892
10893 # Only expand once:
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10905         if test -n "$ac_tool_prefix"; then
10906   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10907 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10909 $as_echo_n "checking for $ac_word... " >&6; }
10910 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
10911   $as_echo_n "(cached) " >&6
10912 else
10913   case $PKG_CONFIG in
10914   [\\/]* | ?:[\\/]*)
10915   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10916   ;;
10917   *)
10918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919 for as_dir in $PATH
10920 do
10921   IFS=$as_save_IFS
10922   test -z "$as_dir" && as_dir=.
10923     for ac_exec_ext in '' $ac_executable_extensions; do
10924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10925     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10927     break 2
10928   fi
10929 done
10930   done
10931 IFS=$as_save_IFS
10932
10933   ;;
10934 esac
10935 fi
10936 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10937 if test -n "$PKG_CONFIG"; then
10938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10939 $as_echo "$PKG_CONFIG" >&6; }
10940 else
10941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10942 $as_echo "no" >&6; }
10943 fi
10944
10945
10946 fi
10947 if test -z "$ac_cv_path_PKG_CONFIG"; then
10948   ac_pt_PKG_CONFIG=$PKG_CONFIG
10949   # Extract the first word of "pkg-config", so it can be a program name with args.
10950 set dummy pkg-config; ac_word=$2
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10952 $as_echo_n "checking for $ac_word... " >&6; }
10953 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
10954   $as_echo_n "(cached) " >&6
10955 else
10956   case $ac_pt_PKG_CONFIG in
10957   [\\/]* | ?:[\\/]*)
10958   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10959   ;;
10960   *)
10961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10962 for as_dir in $PATH
10963 do
10964   IFS=$as_save_IFS
10965   test -z "$as_dir" && as_dir=.
10966     for ac_exec_ext in '' $ac_executable_extensions; do
10967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10968     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10970     break 2
10971   fi
10972 done
10973   done
10974 IFS=$as_save_IFS
10975
10976   ;;
10977 esac
10978 fi
10979 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10980 if test -n "$ac_pt_PKG_CONFIG"; then
10981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10982 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10983 else
10984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10985 $as_echo "no" >&6; }
10986 fi
10987
10988   if test "x$ac_pt_PKG_CONFIG" = x; then
10989     PKG_CONFIG=""
10990   else
10991     case $cross_compiling:$ac_tool_warned in
10992 yes:)
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10995 ac_tool_warned=yes ;;
10996 esac
10997     PKG_CONFIG=$ac_pt_PKG_CONFIG
10998   fi
10999 else
11000   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11001 fi
11002
11003 fi
11004 if test -n "$PKG_CONFIG"; then
11005         _pkg_min_version=0.24
11006         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11007 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11008         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11009                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11010 $as_echo "yes" >&6; }
11011         else
11012                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11013 $as_echo "no" >&6; }
11014                 PKG_CONFIG=""
11015         fi
11016 fi
11017
11018 # Platform checks
11019
11020
11021 case "$host" in
11022   *-*-mingw*)
11023     win32=yes
11024     SERVER_IPC_MODULE="msrpc-glib2-1.0"
11025     CLIENT_IPC_MODULE="msrpc-mingw-1.0"
11026     ;;
11027   *)
11028     win32=no
11029     SERVER_IPC_MODULE="dbus-glib-1"
11030     CLIENT_IPC_MODULE="dbus-glib-1"
11031     ;;
11032 esac
11033
11034  if test "$win32" != "yes"; then
11035   OS_LINUX_TRUE=
11036   OS_LINUX_FALSE='#'
11037 else
11038   OS_LINUX_TRUE='#'
11039   OS_LINUX_FALSE=
11040 fi
11041
11042  if test "$win32" = "yes"; then
11043   OS_WIN32_TRUE=
11044   OS_WIN32_FALSE='#'
11045 else
11046   OS_WIN32_TRUE='#'
11047   OS_WIN32_FALSE=
11048 fi
11049
11050  if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
11051   IPC_MSRPC_TRUE=
11052   IPC_MSRPC_FALSE='#'
11053 else
11054   IPC_MSRPC_TRUE='#'
11055   IPC_MSRPC_FALSE=
11056 fi
11057
11058  if test "$SERVER_IPC_MODULE" = "dbus-glib-1"; then
11059   IPC_DBUS_TRUE=
11060   IPC_DBUS_FALSE='#'
11061 else
11062   IPC_DBUS_TRUE='#'
11063   IPC_DBUS_FALSE=
11064 fi
11065
11066
11067 # Checks for programs.
11068 ac_ext=c
11069 ac_cpp='$CPP $CPPFLAGS'
11070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11073 if test -n "$ac_tool_prefix"; then
11074   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11075 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11077 $as_echo_n "checking for $ac_word... " >&6; }
11078 if test "${ac_cv_prog_CC+set}" = set; then :
11079   $as_echo_n "(cached) " >&6
11080 else
11081   if test -n "$CC"; then
11082   ac_cv_prog_CC="$CC" # Let the user override the test.
11083 else
11084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11085 for as_dir in $PATH
11086 do
11087   IFS=$as_save_IFS
11088   test -z "$as_dir" && as_dir=.
11089     for ac_exec_ext in '' $ac_executable_extensions; do
11090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11091     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11093     break 2
11094   fi
11095 done
11096   done
11097 IFS=$as_save_IFS
11098
11099 fi
11100 fi
11101 CC=$ac_cv_prog_CC
11102 if test -n "$CC"; then
11103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11104 $as_echo "$CC" >&6; }
11105 else
11106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11107 $as_echo "no" >&6; }
11108 fi
11109
11110
11111 fi
11112 if test -z "$ac_cv_prog_CC"; then
11113   ac_ct_CC=$CC
11114   # Extract the first word of "gcc", so it can be a program name with args.
11115 set dummy gcc; ac_word=$2
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11117 $as_echo_n "checking for $ac_word... " >&6; }
11118 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11119   $as_echo_n "(cached) " >&6
11120 else
11121   if test -n "$ac_ct_CC"; then
11122   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11123 else
11124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11125 for as_dir in $PATH
11126 do
11127   IFS=$as_save_IFS
11128   test -z "$as_dir" && as_dir=.
11129     for ac_exec_ext in '' $ac_executable_extensions; do
11130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11131     ac_cv_prog_ac_ct_CC="gcc"
11132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11133     break 2
11134   fi
11135 done
11136   done
11137 IFS=$as_save_IFS
11138
11139 fi
11140 fi
11141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11142 if test -n "$ac_ct_CC"; then
11143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11144 $as_echo "$ac_ct_CC" >&6; }
11145 else
11146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147 $as_echo "no" >&6; }
11148 fi
11149
11150   if test "x$ac_ct_CC" = x; then
11151     CC=""
11152   else
11153     case $cross_compiling:$ac_tool_warned in
11154 yes:)
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11157 ac_tool_warned=yes ;;
11158 esac
11159     CC=$ac_ct_CC
11160   fi
11161 else
11162   CC="$ac_cv_prog_CC"
11163 fi
11164
11165 if test -z "$CC"; then
11166           if test -n "$ac_tool_prefix"; then
11167     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11168 set dummy ${ac_tool_prefix}cc; ac_word=$2
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11170 $as_echo_n "checking for $ac_word... " >&6; }
11171 if test "${ac_cv_prog_CC+set}" = set; then :
11172   $as_echo_n "(cached) " >&6
11173 else
11174   if test -n "$CC"; then
11175   ac_cv_prog_CC="$CC" # Let the user override the test.
11176 else
11177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178 for as_dir in $PATH
11179 do
11180   IFS=$as_save_IFS
11181   test -z "$as_dir" && as_dir=.
11182     for ac_exec_ext in '' $ac_executable_extensions; do
11183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11184     ac_cv_prog_CC="${ac_tool_prefix}cc"
11185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11186     break 2
11187   fi
11188 done
11189   done
11190 IFS=$as_save_IFS
11191
11192 fi
11193 fi
11194 CC=$ac_cv_prog_CC
11195 if test -n "$CC"; then
11196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11197 $as_echo "$CC" >&6; }
11198 else
11199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200 $as_echo "no" >&6; }
11201 fi
11202
11203
11204   fi
11205 fi
11206 if test -z "$CC"; then
11207   # Extract the first word of "cc", so it can be a program name with args.
11208 set dummy cc; ac_word=$2
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11210 $as_echo_n "checking for $ac_word... " >&6; }
11211 if test "${ac_cv_prog_CC+set}" = set; then :
11212   $as_echo_n "(cached) " >&6
11213 else
11214   if test -n "$CC"; then
11215   ac_cv_prog_CC="$CC" # Let the user override the test.
11216 else
11217   ac_prog_rejected=no
11218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11219 for as_dir in $PATH
11220 do
11221   IFS=$as_save_IFS
11222   test -z "$as_dir" && as_dir=.
11223     for ac_exec_ext in '' $ac_executable_extensions; do
11224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11225     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11226        ac_prog_rejected=yes
11227        continue
11228      fi
11229     ac_cv_prog_CC="cc"
11230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11231     break 2
11232   fi
11233 done
11234   done
11235 IFS=$as_save_IFS
11236
11237 if test $ac_prog_rejected = yes; then
11238   # We found a bogon in the path, so make sure we never use it.
11239   set dummy $ac_cv_prog_CC
11240   shift
11241   if test $# != 0; then
11242     # We chose a different compiler from the bogus one.
11243     # However, it has the same basename, so the bogon will be chosen
11244     # first if we set CC to just the basename; use the full file name.
11245     shift
11246     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11247   fi
11248 fi
11249 fi
11250 fi
11251 CC=$ac_cv_prog_CC
11252 if test -n "$CC"; then
11253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11254 $as_echo "$CC" >&6; }
11255 else
11256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257 $as_echo "no" >&6; }
11258 fi
11259
11260
11261 fi
11262 if test -z "$CC"; then
11263   if test -n "$ac_tool_prefix"; then
11264   for ac_prog in cl.exe
11265   do
11266     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11269 $as_echo_n "checking for $ac_word... " >&6; }
11270 if test "${ac_cv_prog_CC+set}" = set; then :
11271   $as_echo_n "(cached) " >&6
11272 else
11273   if test -n "$CC"; then
11274   ac_cv_prog_CC="$CC" # Let the user override the test.
11275 else
11276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11277 for as_dir in $PATH
11278 do
11279   IFS=$as_save_IFS
11280   test -z "$as_dir" && as_dir=.
11281     for ac_exec_ext in '' $ac_executable_extensions; do
11282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11283     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11285     break 2
11286   fi
11287 done
11288   done
11289 IFS=$as_save_IFS
11290
11291 fi
11292 fi
11293 CC=$ac_cv_prog_CC
11294 if test -n "$CC"; then
11295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11296 $as_echo "$CC" >&6; }
11297 else
11298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11299 $as_echo "no" >&6; }
11300 fi
11301
11302
11303     test -n "$CC" && break
11304   done
11305 fi
11306 if test -z "$CC"; then
11307   ac_ct_CC=$CC
11308   for ac_prog in cl.exe
11309 do
11310   # Extract the first word of "$ac_prog", so it can be a program name with args.
11311 set dummy $ac_prog; ac_word=$2
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11313 $as_echo_n "checking for $ac_word... " >&6; }
11314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
11315   $as_echo_n "(cached) " >&6
11316 else
11317   if test -n "$ac_ct_CC"; then
11318   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11319 else
11320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11321 for as_dir in $PATH
11322 do
11323   IFS=$as_save_IFS
11324   test -z "$as_dir" && as_dir=.
11325     for ac_exec_ext in '' $ac_executable_extensions; do
11326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11327     ac_cv_prog_ac_ct_CC="$ac_prog"
11328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11329     break 2
11330   fi
11331 done
11332   done
11333 IFS=$as_save_IFS
11334
11335 fi
11336 fi
11337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11338 if test -n "$ac_ct_CC"; then
11339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11340 $as_echo "$ac_ct_CC" >&6; }
11341 else
11342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343 $as_echo "no" >&6; }
11344 fi
11345
11346
11347   test -n "$ac_ct_CC" && break
11348 done
11349
11350   if test "x$ac_ct_CC" = x; then
11351     CC=""
11352   else
11353     case $cross_compiling:$ac_tool_warned in
11354 yes:)
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11357 ac_tool_warned=yes ;;
11358 esac
11359     CC=$ac_ct_CC
11360   fi
11361 fi
11362
11363 fi
11364
11365
11366 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11368 as_fn_error $? "no acceptable C compiler found in \$PATH
11369 See \`config.log' for more details" "$LINENO" 5 ; }
11370
11371 # Provide some information about the compiler.
11372 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11373 set X $ac_compile
11374 ac_compiler=$2
11375 for ac_option in --version -v -V -qversion; do
11376   { { ac_try="$ac_compiler $ac_option >&5"
11377 case "(($ac_try" in
11378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379   *) ac_try_echo=$ac_try;;
11380 esac
11381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11382 $as_echo "$ac_try_echo"; } >&5
11383   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11384   ac_status=$?
11385   if test -s conftest.err; then
11386     sed '10a\
11387 ... rest of stderr output deleted ...
11388          10q' conftest.err >conftest.er1
11389     cat conftest.er1 >&5
11390   fi
11391   rm -f conftest.er1 conftest.err
11392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11393   test $ac_status = 0; }
11394 done
11395
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11397 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11398 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
11399   $as_echo_n "(cached) " >&6
11400 else
11401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11402 /* end confdefs.h.  */
11403
11404 int
11405 main ()
11406 {
11407 #ifndef __GNUC__
11408        choke me
11409 #endif
11410
11411   ;
11412   return 0;
11413 }
11414 _ACEOF
11415 if ac_fn_c_try_compile "$LINENO"; then :
11416   ac_compiler_gnu=yes
11417 else
11418   ac_compiler_gnu=no
11419 fi
11420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11421 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11422
11423 fi
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11425 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11426 if test $ac_compiler_gnu = yes; then
11427   GCC=yes
11428 else
11429   GCC=
11430 fi
11431 ac_test_CFLAGS=${CFLAGS+set}
11432 ac_save_CFLAGS=$CFLAGS
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11434 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11435 if test "${ac_cv_prog_cc_g+set}" = set; then :
11436   $as_echo_n "(cached) " >&6
11437 else
11438   ac_save_c_werror_flag=$ac_c_werror_flag
11439    ac_c_werror_flag=yes
11440    ac_cv_prog_cc_g=no
11441    CFLAGS="-g"
11442    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h.  */
11444
11445 int
11446 main ()
11447 {
11448
11449   ;
11450   return 0;
11451 }
11452 _ACEOF
11453 if ac_fn_c_try_compile "$LINENO"; then :
11454   ac_cv_prog_cc_g=yes
11455 else
11456   CFLAGS=""
11457       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h.  */
11459
11460 int
11461 main ()
11462 {
11463
11464   ;
11465   return 0;
11466 }
11467 _ACEOF
11468 if ac_fn_c_try_compile "$LINENO"; then :
11469
11470 else
11471   ac_c_werror_flag=$ac_save_c_werror_flag
11472          CFLAGS="-g"
11473          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11474 /* end confdefs.h.  */
11475
11476 int
11477 main ()
11478 {
11479
11480   ;
11481   return 0;
11482 }
11483 _ACEOF
11484 if ac_fn_c_try_compile "$LINENO"; then :
11485   ac_cv_prog_cc_g=yes
11486 fi
11487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11488 fi
11489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11490 fi
11491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11492    ac_c_werror_flag=$ac_save_c_werror_flag
11493 fi
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11495 $as_echo "$ac_cv_prog_cc_g" >&6; }
11496 if test "$ac_test_CFLAGS" = set; then
11497   CFLAGS=$ac_save_CFLAGS
11498 elif test $ac_cv_prog_cc_g = yes; then
11499   if test "$GCC" = yes; then
11500     CFLAGS="-g -O2"
11501   else
11502     CFLAGS="-g"
11503   fi
11504 else
11505   if test "$GCC" = yes; then
11506     CFLAGS="-O2"
11507   else
11508     CFLAGS=
11509   fi
11510 fi
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11512 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11513 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11514   $as_echo_n "(cached) " >&6
11515 else
11516   ac_cv_prog_cc_c89=no
11517 ac_save_CC=$CC
11518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h.  */
11520 #include <stdarg.h>
11521 #include <stdio.h>
11522 #include <sys/types.h>
11523 #include <sys/stat.h>
11524 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11525 struct buf { int x; };
11526 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11527 static char *e (p, i)
11528      char **p;
11529      int i;
11530 {
11531   return p[i];
11532 }
11533 static char *f (char * (*g) (char **, int), char **p, ...)
11534 {
11535   char *s;
11536   va_list v;
11537   va_start (v,p);
11538   s = g (p, va_arg (v,int));
11539   va_end (v);
11540   return s;
11541 }
11542
11543 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11544    function prototypes and stuff, but not '\xHH' hex character constants.
11545    These don't provoke an error unfortunately, instead are silently treated
11546    as 'x'.  The following induces an error, until -std is added to get
11547    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11548    array size at least.  It's necessary to write '\x00'==0 to get something
11549    that's true only with -std.  */
11550 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11551
11552 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11553    inside strings and character constants.  */
11554 #define FOO(x) 'x'
11555 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11556
11557 int test (int i, double x);
11558 struct s1 {int (*f) (int a);};
11559 struct s2 {int (*f) (double a);};
11560 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11561 int argc;
11562 char **argv;
11563 int
11564 main ()
11565 {
11566 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11567   ;
11568   return 0;
11569 }
11570 _ACEOF
11571 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11572         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11573 do
11574   CC="$ac_save_CC $ac_arg"
11575   if ac_fn_c_try_compile "$LINENO"; then :
11576   ac_cv_prog_cc_c89=$ac_arg
11577 fi
11578 rm -f core conftest.err conftest.$ac_objext
11579   test "x$ac_cv_prog_cc_c89" != "xno" && break
11580 done
11581 rm -f conftest.$ac_ext
11582 CC=$ac_save_CC
11583
11584 fi
11585 # AC_CACHE_VAL
11586 case "x$ac_cv_prog_cc_c89" in
11587   x)
11588     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11589 $as_echo "none needed" >&6; } ;;
11590   xno)
11591     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11592 $as_echo "unsupported" >&6; } ;;
11593   *)
11594     CC="$CC $ac_cv_prog_cc_c89"
11595     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11596 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11597 esac
11598 if test "x$ac_cv_prog_cc_c89" != xno; then :
11599
11600 fi
11601
11602 ac_ext=c
11603 ac_cpp='$CPP $CPPFLAGS'
11604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11607
11608 depcc="$CC"   am_compiler_list=
11609
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11611 $as_echo_n "checking dependency style of $depcc... " >&6; }
11612 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11613   $as_echo_n "(cached) " >&6
11614 else
11615   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11616   # We make a subdir and do the tests there.  Otherwise we can end up
11617   # making bogus files that we don't know about and never remove.  For
11618   # instance it was reported that on HP-UX the gcc test will end up
11619   # making a dummy file named `D' -- because `-MD' means `put the output
11620   # in D'.
11621   mkdir conftest.dir
11622   # Copy depcomp to subdir because otherwise we won't find it if we're
11623   # using a relative directory.
11624   cp "$am_depcomp" conftest.dir
11625   cd conftest.dir
11626   # We will build objects and dependencies in a subdirectory because
11627   # it helps to detect inapplicable dependency modes.  For instance
11628   # both Tru64's cc and ICC support -MD to output dependencies as a
11629   # side effect of compilation, but ICC will put the dependencies in
11630   # the current directory while Tru64 will put them in the object
11631   # directory.
11632   mkdir sub
11633
11634   am_cv_CC_dependencies_compiler_type=none
11635   if test "$am_compiler_list" = ""; then
11636      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11637   fi
11638   am__universal=false
11639   case " $depcc " in #(
11640      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11641      esac
11642
11643   for depmode in $am_compiler_list; do
11644     # Setup a source with many dependencies, because some compilers
11645     # like to wrap large dependency lists on column 80 (with \), and
11646     # we should not choose a depcomp mode which is confused by this.
11647     #
11648     # We need to recreate these files for each test, as the compiler may
11649     # overwrite some of them when testing with obscure command lines.
11650     # This happens at least with the AIX C compiler.
11651     : > sub/conftest.c
11652     for i in 1 2 3 4 5 6; do
11653       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11654       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11655       # Solaris 8's {/usr,}/bin/sh.
11656       touch sub/conftst$i.h
11657     done
11658     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11659
11660     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11661     # mode.  It turns out that the SunPro C++ compiler does not properly
11662     # handle `-M -o', and we need to detect this.  Also, some Intel
11663     # versions had trouble with output in subdirs
11664     am__obj=sub/conftest.${OBJEXT-o}
11665     am__minus_obj="-o $am__obj"
11666     case $depmode in
11667     gcc)
11668       # This depmode causes a compiler race in universal mode.
11669       test "$am__universal" = false || continue
11670       ;;
11671     nosideeffect)
11672       # after this tag, mechanisms are not by side-effect, so they'll
11673       # only be used when explicitly requested
11674       if test "x$enable_dependency_tracking" = xyes; then
11675         continue
11676       else
11677         break
11678       fi
11679       ;;
11680     msvisualcpp | msvcmsys)
11681       # This compiler won't grok `-c -o', but also, the minuso test has
11682       # not run yet.  These depmodes are late enough in the game, and
11683       # so weak that their functioning should not be impacted.
11684       am__obj=conftest.${OBJEXT-o}
11685       am__minus_obj=
11686       ;;
11687     none) break ;;
11688     esac
11689     if depmode=$depmode \
11690        source=sub/conftest.c object=$am__obj \
11691        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11692        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11693          >/dev/null 2>conftest.err &&
11694        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11695        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11696        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11697        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11698       # icc doesn't choke on unknown options, it will just issue warnings
11699       # or remarks (even with -Werror).  So we grep stderr for any message
11700       # that says an option was ignored or not supported.
11701       # When given -MP, icc 7.0 and 7.1 complain thusly:
11702       #   icc: Command line warning: ignoring option '-M'; no argument required
11703       # The diagnosis changed in icc 8.0:
11704       #   icc: Command line remark: option '-MP' not supported
11705       if (grep 'ignoring option' conftest.err ||
11706           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11707         am_cv_CC_dependencies_compiler_type=$depmode
11708         break
11709       fi
11710     fi
11711   done
11712
11713   cd ..
11714   rm -rf conftest.dir
11715 else
11716   am_cv_CC_dependencies_compiler_type=none
11717 fi
11718
11719 fi
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11721 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11722 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11723
11724  if
11725   test "x$enable_dependency_tracking" != xno \
11726   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11727   am__fastdepCC_TRUE=
11728   am__fastdepCC_FALSE='#'
11729 else
11730   am__fastdepCC_TRUE='#'
11731   am__fastdepCC_FALSE=
11732 fi
11733
11734
11735 if test "x$CC" != xcc; then
11736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11737 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11738 else
11739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11740 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11741 fi
11742 set dummy $CC; ac_cc=`$as_echo "$2" |
11743                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11744 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
11745   $as_echo_n "(cached) " >&6
11746 else
11747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748 /* end confdefs.h.  */
11749
11750 int
11751 main ()
11752 {
11753
11754   ;
11755   return 0;
11756 }
11757 _ACEOF
11758 # Make sure it works both with $CC and with simple cc.
11759 # We do the test twice because some compilers refuse to overwrite an
11760 # existing .o file with -o, though they will create one.
11761 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11762 rm -f conftest2.*
11763 if { { case "(($ac_try" in
11764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765   *) ac_try_echo=$ac_try;;
11766 esac
11767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11768 $as_echo "$ac_try_echo"; } >&5
11769   (eval "$ac_try") 2>&5
11770   ac_status=$?
11771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11772   test $ac_status = 0; } &&
11773    test -f conftest2.$ac_objext && { { case "(($ac_try" in
11774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775   *) ac_try_echo=$ac_try;;
11776 esac
11777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11778 $as_echo "$ac_try_echo"; } >&5
11779   (eval "$ac_try") 2>&5
11780   ac_status=$?
11781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11782   test $ac_status = 0; };
11783 then
11784   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11785   if test "x$CC" != xcc; then
11786     # Test first that cc exists at all.
11787     if { ac_try='cc -c conftest.$ac_ext >&5'
11788   { { case "(($ac_try" in
11789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11790   *) ac_try_echo=$ac_try;;
11791 esac
11792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11793 $as_echo "$ac_try_echo"; } >&5
11794   (eval "$ac_try") 2>&5
11795   ac_status=$?
11796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11797   test $ac_status = 0; }; }; then
11798       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11799       rm -f conftest2.*
11800       if { { case "(($ac_try" in
11801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802   *) ac_try_echo=$ac_try;;
11803 esac
11804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11805 $as_echo "$ac_try_echo"; } >&5
11806   (eval "$ac_try") 2>&5
11807   ac_status=$?
11808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11809   test $ac_status = 0; } &&
11810          test -f conftest2.$ac_objext && { { case "(($ac_try" in
11811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812   *) ac_try_echo=$ac_try;;
11813 esac
11814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11815 $as_echo "$ac_try_echo"; } >&5
11816   (eval "$ac_try") 2>&5
11817   ac_status=$?
11818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11819   test $ac_status = 0; };
11820       then
11821         # cc works too.
11822         :
11823       else
11824         # cc exists but doesn't like -o.
11825         eval ac_cv_prog_cc_${ac_cc}_c_o=no
11826       fi
11827     fi
11828   fi
11829 else
11830   eval ac_cv_prog_cc_${ac_cc}_c_o=no
11831 fi
11832 rm -f core conftest*
11833
11834 fi
11835 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11837 $as_echo "yes" >&6; }
11838 else
11839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 $as_echo "no" >&6; }
11841
11842 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11843
11844 fi
11845
11846 # FIXME: we rely on the cache variable name because
11847 # there is no other way.
11848 set dummy $CC
11849 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11850 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11851 if test "$am_t" != yes; then
11852    # Losing compiler, so override with the script.
11853    # FIXME: It is wrong to rewrite CC.
11854    # But if we don't then we get into trouble of one sort or another.
11855    # A longer-term fix would be to have automake use am__CC in this case,
11856    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11857    CC="$am_aux_dir/compile $CC"
11858 fi
11859
11860
11861 # Extract the first word of "valac", so it can be a program name with args.
11862 set dummy valac; ac_word=$2
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11864 $as_echo_n "checking for $ac_word... " >&6; }
11865 if test "${ac_cv_path_VALAC+set}" = set; then :
11866   $as_echo_n "(cached) " >&6
11867 else
11868   case $VALAC in
11869   [\\/]* | ?:[\\/]*)
11870   ac_cv_path_VALAC="$VALAC" # Let the user override the test with a path.
11871   ;;
11872   *)
11873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874 for as_dir in $PATH
11875 do
11876   IFS=$as_save_IFS
11877   test -z "$as_dir" && as_dir=.
11878     for ac_exec_ext in '' $ac_executable_extensions; do
11879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11880     ac_cv_path_VALAC="$as_dir/$ac_word$ac_exec_ext"
11881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11882     break 2
11883   fi
11884 done
11885   done
11886 IFS=$as_save_IFS
11887
11888   ;;
11889 esac
11890 fi
11891 VALAC=$ac_cv_path_VALAC
11892 if test -n "$VALAC"; then
11893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALAC" >&5
11894 $as_echo "$VALAC" >&6; }
11895 else
11896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897 $as_echo "no" >&6; }
11898 fi
11899
11900
11901  if test -z "$VALAC"; then :
11902   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Vala compiler found.  You will not be able to compile .vala source files." >&5
11903 $as_echo "$as_me: WARNING: No Vala compiler found.  You will not be able to compile .vala source files." >&2;}
11904 else
11905   if test -n "0.9"; then :
11906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VALAC is at least version 0.9" >&5
11907 $as_echo_n "checking $VALAC is at least version 0.9... " >&6; }
11908        am__vala_version=`$VALAC --version | sed 's/Vala  *//'`
11909        as_arg_v1=0.9
11910 as_arg_v2="$am__vala_version"
11911 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11912 case $? in #(
11913   1) :
11914     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11915 $as_echo "yes" >&6; } ;; #(
11916   0) :
11917     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11918 $as_echo "yes" >&6; } ;; #(
11919   2) :
11920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921 $as_echo "no" >&6; }
11922           as_fn_error $? "Vala 0.9 not found." "$LINENO" 5  ;; #(
11923   *) :
11924      ;;
11925 esac
11926 fi
11927 fi
11928
11929
11930 if test "$SERVER_IPC_MODULE" = "msrpc-glib2-1.0"; then
11931   # MS RPC utilities
11932
11933   pkg_config_args="msrpc-mingw-1.0"
11934
11935
11936
11937
11938
11939
11940
11941
11942 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11943         if test -n "$ac_tool_prefix"; then
11944   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11945 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11947 $as_echo_n "checking for $ac_word... " >&6; }
11948 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11949   $as_echo_n "(cached) " >&6
11950 else
11951   case $PKG_CONFIG in
11952   [\\/]* | ?:[\\/]*)
11953   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11954   ;;
11955   *)
11956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957 for as_dir in $PATH
11958 do
11959   IFS=$as_save_IFS
11960   test -z "$as_dir" && as_dir=.
11961     for ac_exec_ext in '' $ac_executable_extensions; do
11962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11963     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11965     break 2
11966   fi
11967 done
11968   done
11969 IFS=$as_save_IFS
11970
11971   ;;
11972 esac
11973 fi
11974 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11975 if test -n "$PKG_CONFIG"; then
11976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11977 $as_echo "$PKG_CONFIG" >&6; }
11978 else
11979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980 $as_echo "no" >&6; }
11981 fi
11982
11983
11984 fi
11985 if test -z "$ac_cv_path_PKG_CONFIG"; then
11986   ac_pt_PKG_CONFIG=$PKG_CONFIG
11987   # Extract the first word of "pkg-config", so it can be a program name with args.
11988 set dummy pkg-config; ac_word=$2
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11990 $as_echo_n "checking for $ac_word... " >&6; }
11991 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
11992   $as_echo_n "(cached) " >&6
11993 else
11994   case $ac_pt_PKG_CONFIG in
11995   [\\/]* | ?:[\\/]*)
11996   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11997   ;;
11998   *)
11999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12001 do
12002   IFS=$as_save_IFS
12003   test -z "$as_dir" && as_dir=.
12004     for ac_exec_ext in '' $ac_executable_extensions; do
12005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12006     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12008     break 2
12009   fi
12010 done
12011   done
12012 IFS=$as_save_IFS
12013
12014   ;;
12015 esac
12016 fi
12017 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12018 if test -n "$ac_pt_PKG_CONFIG"; then
12019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12020 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12021 else
12022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12023 $as_echo "no" >&6; }
12024 fi
12025
12026   if test "x$ac_pt_PKG_CONFIG" = x; then
12027     PKG_CONFIG=""
12028   else
12029     case $cross_compiling:$ac_tool_warned in
12030 yes:)
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12033 ac_tool_warned=yes ;;
12034 esac
12035     PKG_CONFIG=$ac_pt_PKG_CONFIG
12036   fi
12037 else
12038   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12039 fi
12040
12041 fi
12042 if test -n "$PKG_CONFIG"; then
12043         _pkg_min_version=0.16
12044         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12045 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12046         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12047                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12048 $as_echo "yes" >&6; }
12049         else
12050                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12051 $as_echo "no" >&6; }
12052                 PKG_CONFIG=""
12053         fi
12054 fi
12055
12056   no_msrpc=""
12057
12058   if test "x$PKG_CONFIG" = x ; then
12059     no_msrpc=yes
12060     PKG_CONFIG=no
12061   fi
12062
12063   min_msrpc_mingw_version=0.1.0
12064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msrpc-mingw - version >= $min_msrpc_version" >&5
12065 $as_echo_n "checking for msrpc-mingw - version >= $min_msrpc_version... " >&6; }
12066
12067   if test x$PKG_CONFIG != xno ; then
12068     if $PKG_CONFIG --uninstalled $pkg_config_args; then
12069       echo "Will use uninstalled version of msrpc-mingw found in PKG_CONFIG_PATH"
12070     fi
12071
12072     if $PKG_CONFIG --atleast-version $min_msrpc_mingw_version $pkg_config_args; then
12073       :
12074     else
12075       no_msrpc=yes
12076     fi
12077   fi
12078
12079   if test x"$no_msrpc" = x ; then
12080     MIDL_WRAPPER=`$PKG_CONFIG --variable=midl_wrapper msrpc-mingw-1.0`
12081     MSRPC_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
12082     MSRPC_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
12083   fi
12084
12085   if test "x$no_msrpc" = x ; then
12086      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12087 $as_echo "yes" >&6; }
12088      :
12089   else
12090      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091 $as_echo "no" >&6; }
12092      if test "$PKG_CONFIG" = "no" ; then
12093        echo "*** A new enough version of pkg-config was not found."
12094        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
12095      else
12096        echo "not found"
12097      fi
12098      MSRPC_CFLAGS=""
12099      MSRPC_LIBS=""
12100      MIDL_WRAPPER=""
12101      as_fn_error $? "
12102 *** msrpc-mingw 0.1.0 or better is required." "$LINENO" 5
12103   fi
12104
12105
12106
12107
12108
12109   # Extract the first word of "midl", so it can be a program name with args.
12110 set dummy midl; ac_word=$2
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12112 $as_echo_n "checking for $ac_word... " >&6; }
12113 if test "${ac_cv_path_MIDL+set}" = set; then :
12114   $as_echo_n "(cached) " >&6
12115 else
12116   case $MIDL in
12117   [\\/]* | ?:[\\/]*)
12118   ac_cv_path_MIDL="$MIDL" # Let the user override the test with a path.
12119   ;;
12120   *)
12121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122 for as_dir in /c/Program\ Files/Microsoft\ SDKs/Windows/v7.0/Bin$PATH_SEPARATOR$PATH
12123 do
12124   IFS=$as_save_IFS
12125   test -z "$as_dir" && as_dir=.
12126     for ac_exec_ext in '' $ac_executable_extensions; do
12127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12128     ac_cv_path_MIDL="$as_dir/$ac_word$ac_exec_ext"
12129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12130     break 2
12131   fi
12132 done
12133   done
12134 IFS=$as_save_IFS
12135
12136   test -z "$ac_cv_path_MIDL" && ac_cv_path_MIDL="no"
12137   ;;
12138 esac
12139 fi
12140 MIDL=$ac_cv_path_MIDL
12141 if test -n "$MIDL"; then
12142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIDL" >&5
12143 $as_echo "$MIDL" >&6; }
12144 else
12145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12146 $as_echo "no" >&6; }
12147 fi
12148
12149
12150   if test "$MIDL" = "no"; then
12151      as_fn_error $? "
12152 *** Could not find the Microsoft interface compiler MIDL.EXE.
12153 *** This program is available as part of the MS Windows SDK, in
12154 *** the Win32 Development Tools package. If it is not in the PATH
12155 *** or its default location you may set the 'MIDL' environment
12156 *** variable to point to its location and rerun configure." "$LINENO" 5
12157   fi
12158 fi
12159
12160 if test "$win32" = "yes"; then
12161   # Other Windows-specific tools
12162
12163   # LIB.EXE from MSVC to build an MSVC-compatible import library.
12164   # Extract the first word of "lib", so it can be a program name with args.
12165 set dummy lib; ac_word=$2
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12167 $as_echo_n "checking for $ac_word... " >&6; }
12168 if test "${ac_cv_path_MSVC_LIB+set}" = set; then :
12169   $as_echo_n "(cached) " >&6
12170 else
12171   case $MSVC_LIB in
12172   [\\/]* | ?:[\\/]*)
12173   ac_cv_path_MSVC_LIB="$MSVC_LIB" # Let the user override the test with a path.
12174   ;;
12175   *)
12176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12177 for as_dir in /c/Program\ Files/Microsoft\ Visual\ Studio\ 9.0/VC/bin$PATH_SEPARATOR$PATH
12178 do
12179   IFS=$as_save_IFS
12180   test -z "$as_dir" && as_dir=.
12181     for ac_exec_ext in '' $ac_executable_extensions; do
12182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12183     ac_cv_path_MSVC_LIB="$as_dir/$ac_word$ac_exec_ext"
12184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12185     break 2
12186   fi
12187 done
12188   done
12189 IFS=$as_save_IFS
12190
12191   test -z "$ac_cv_path_MSVC_LIB" && ac_cv_path_MSVC_LIB="no"
12192   ;;
12193 esac
12194 fi
12195 MSVC_LIB=$ac_cv_path_MSVC_LIB
12196 if test -n "$MSVC_LIB"; then
12197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_LIB" >&5
12198 $as_echo "$MSVC_LIB" >&6; }
12199 else
12200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; }
12202 fi
12203
12204
12205
12206   if test "$MSVC_LIB" = "no"; then
12207      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12208 *** Could not find the Microsoft 'LIB.EXE' program. This is required
12209 *** to build the Visual C import library for libmoonshot. Use the
12210 *** MSVC_LIB environment variable to pass its location if this is
12211 *** outside the PATH." >&5
12212 $as_echo "$as_me: WARNING:
12213 *** Could not find the Microsoft 'LIB.EXE' program. This is required
12214 *** to build the Visual C import library for libmoonshot. Use the
12215 *** MSVC_LIB environment variable to pass its location if this is
12216 *** outside the PATH." >&2;}
12217   fi
12218
12219
12220   # ImageMagick for the 'make icons' target. Watch that it doesn't pick up
12221   # c:/windows/system32/convert.exe, which is nothing to do with ImageMagick
12222   # Extract the first word of "convert", so it can be a program name with args.
12223 set dummy convert; ac_word=$2
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12225 $as_echo_n "checking for $ac_word... " >&6; }
12226 if test "${ac_cv_path_IMAGEMAGICK_CONVERT+set}" = set; then :
12227   $as_echo_n "(cached) " >&6
12228 else
12229   case $IMAGEMAGICK_CONVERT in
12230   [\\/]* | ?:[\\/]*)
12231   ac_cv_path_IMAGEMAGICK_CONVERT="$IMAGEMAGICK_CONVERT" # Let the user override the test with a path.
12232   ;;
12233   *)
12234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12235 for as_dir in /c/Program\ Files/ImageMagick$PATH_SEPARATOR$PATH
12236 do
12237   IFS=$as_save_IFS
12238   test -z "$as_dir" && as_dir=.
12239     for ac_exec_ext in '' $ac_executable_extensions; do
12240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12241     ac_cv_path_IMAGEMAGICK_CONVERT="$as_dir/$ac_word$ac_exec_ext"
12242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12243     break 2
12244   fi
12245 done
12246   done
12247 IFS=$as_save_IFS
12248
12249   test -z "$ac_cv_path_IMAGEMAGICK_CONVERT" && ac_cv_path_IMAGEMAGICK_CONVERT="no"
12250   ;;
12251 esac
12252 fi
12253 IMAGEMAGICK_CONVERT=$ac_cv_path_IMAGEMAGICK_CONVERT
12254 if test -n "$IMAGEMAGICK_CONVERT"; then
12255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CONVERT" >&5
12256 $as_echo "$IMAGEMAGICK_CONVERT" >&6; }
12257 else
12258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259 $as_echo "no" >&6; }
12260 fi
12261
12262
12263
12264   if test "$IMAGEMAGICK_CONVERT" = "no"; then
12265      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12266 *** Could not find ImageMagick convert.exe. This is required for the
12267 *** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
12268 *** variable to pass its location if this is outside the PATH." >&5
12269 $as_echo "$as_me: WARNING:
12270 *** Could not find ImageMagick convert.exe. This is required for the
12271 *** 'make icons' target. Use the IMAGEMAGICK_CONVERT environment
12272 *** variable to pass its location if this is outside the PATH." >&2;}
12273   fi
12274
12275
12276   # Windows Installer XML tools
12277   # Extract the first word of "candle", so it can be a program name with args.
12278 set dummy candle; ac_word=$2
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12280 $as_echo_n "checking for $ac_word... " >&6; }
12281 if test "${ac_cv_path_WIX_CANDLE+set}" = set; then :
12282   $as_echo_n "(cached) " >&6
12283 else
12284   case $WIX_CANDLE in
12285   [\\/]* | ?:[\\/]*)
12286   ac_cv_path_WIX_CANDLE="$WIX_CANDLE" # Let the user override the test with a path.
12287   ;;
12288   *)
12289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12290 for as_dir in /c/Program\ Files/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR$PATH
12291 do
12292   IFS=$as_save_IFS
12293   test -z "$as_dir" && as_dir=.
12294     for ac_exec_ext in '' $ac_executable_extensions; do
12295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12296     ac_cv_path_WIX_CANDLE="$as_dir/$ac_word$ac_exec_ext"
12297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12298     break 2
12299   fi
12300 done
12301   done
12302 IFS=$as_save_IFS
12303
12304   test -z "$ac_cv_path_WIX_CANDLE" && ac_cv_path_WIX_CANDLE="no"
12305   ;;
12306 esac
12307 fi
12308 WIX_CANDLE=$ac_cv_path_WIX_CANDLE
12309 if test -n "$WIX_CANDLE"; then
12310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIX_CANDLE" >&5
12311 $as_echo "$WIX_CANDLE" >&6; }
12312 else
12313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12314 $as_echo "no" >&6; }
12315 fi
12316
12317
12318   # Extract the first word of "light", so it can be a program name with args.
12319 set dummy light; ac_word=$2
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321 $as_echo_n "checking for $ac_word... " >&6; }
12322 if test "${ac_cv_path_WIX_LIGHT+set}" = set; then :
12323   $as_echo_n "(cached) " >&6
12324 else
12325   case $WIX_LIGHT in
12326   [\\/]* | ?:[\\/]*)
12327   ac_cv_path_WIX_LIGHT="$WIX_LIGHT" # Let the user override the test with a path.
12328   ;;
12329   *)
12330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12331 for as_dir in /c/Program\ Files/Windows\ Installer\ XML\ v3.5/bin$PATH_SEPARATOR$PATH
12332 do
12333   IFS=$as_save_IFS
12334   test -z "$as_dir" && as_dir=.
12335     for ac_exec_ext in '' $ac_executable_extensions; do
12336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12337     ac_cv_path_WIX_LIGHT="$as_dir/$ac_word$ac_exec_ext"
12338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12339     break 2
12340   fi
12341 done
12342   done
12343 IFS=$as_save_IFS
12344
12345   test -z "$ac_cv_path_WIX_LIGHT" && ac_cv_path_WIX_LIGHT="no"
12346   ;;
12347 esac
12348 fi
12349 WIX_LIGHT=$ac_cv_path_WIX_LIGHT
12350 if test -n "$WIX_LIGHT"; then
12351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIX_LIGHT" >&5
12352 $as_echo "$WIX_LIGHT" >&6; }
12353 else
12354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12355 $as_echo "no" >&6; }
12356 fi
12357
12358
12359
12360   if test "$WIX_CANDLE" = "no" || test "$WIX_LIGHT" = "no"; then
12361      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12362 *** Could not find the Windows Installer XML tools. These are required
12363 *** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
12364 *** environment variables to pass their locations if they are outside
12365 *** the PATH." >&5
12366 $as_echo "$as_me: WARNING:
12367 *** Could not find the Windows Installer XML tools. These are required
12368 *** for the 'make installer' target. Use the WIX_CANDLE and WIX_LIGHT
12369 *** environment variables to pass their locations if they are outside
12370 *** the PATH." >&2;}
12371   fi
12372 fi
12373
12374 if test "$win32" != "yes"; then
12375   # Extract the first word of "update-mime-database", so it can be a program name with args.
12376 set dummy update-mime-database; ac_word=$2
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12378 $as_echo_n "checking for $ac_word... " >&6; }
12379 if test "${ac_cv_path_UPDATE_MIME_DATABASE+set}" = set; then :
12380   $as_echo_n "(cached) " >&6
12381 else
12382   case $UPDATE_MIME_DATABASE in
12383   [\\/]* | ?:[\\/]*)
12384   ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path.
12385   ;;
12386   *)
12387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12388 for as_dir in $PATH
12389 do
12390   IFS=$as_save_IFS
12391   test -z "$as_dir" && as_dir=.
12392     for ac_exec_ext in '' $ac_executable_extensions; do
12393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12394     ac_cv_path_UPDATE_MIME_DATABASE="$as_dir/$ac_word$ac_exec_ext"
12395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12396     break 2
12397   fi
12398 done
12399   done
12400 IFS=$as_save_IFS
12401
12402   test -z "$ac_cv_path_UPDATE_MIME_DATABASE" && ac_cv_path_UPDATE_MIME_DATABASE="no"
12403   ;;
12404 esac
12405 fi
12406 UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE
12407 if test -n "$UPDATE_MIME_DATABASE"; then
12408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_MIME_DATABASE" >&5
12409 $as_echo "$UPDATE_MIME_DATABASE" >&6; }
12410 else
12411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12412 $as_echo "no" >&6; }
12413 fi
12414
12415
12416   if test "$UPDATE_MIME_DATABASE" = "no"; then
12417     as_fn_error $? "
12418 *** Could not find the Freedesktop.org  mime database update tool.
12419 *** Web provisioning files could not be automatically installed." "$LINENO" 5
12420   fi
12421   # Extract the first word of "update-desktop-database", so it can be a program name with args.
12422 set dummy update-desktop-database; ac_word=$2
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12424 $as_echo_n "checking for $ac_word... " >&6; }
12425 if test "${ac_cv_path_UPDATE_DESKTOP_DATABASE+set}" = set; then :
12426   $as_echo_n "(cached) " >&6
12427 else
12428   case $UPDATE_DESKTOP_DATABASE in
12429   [\\/]* | ?:[\\/]*)
12430   ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path.
12431   ;;
12432   *)
12433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12434 for as_dir in $PATH
12435 do
12436   IFS=$as_save_IFS
12437   test -z "$as_dir" && as_dir=.
12438     for ac_exec_ext in '' $ac_executable_extensions; do
12439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12440     ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext"
12441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12442     break 2
12443   fi
12444 done
12445   done
12446 IFS=$as_save_IFS
12447
12448   test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no"
12449   ;;
12450 esac
12451 fi
12452 UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE
12453 if test -n "$UPDATE_DESKTOP_DATABASE"; then
12454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5
12455 $as_echo "$UPDATE_DESKTOP_DATABASE" >&6; }
12456 else
12457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12458 $as_echo "no" >&6; }
12459 fi
12460
12461
12462   if test "$UPDATE_DESKTOP_DATABASE" = "no"; then
12463     as_fn_error $? "
12464 *** Could not find the Freedesktop.org desktop entry database update
12465 *** tool. Web provisioning files could not be automatically installed." "$LINENO" 5
12466   fi
12467 fi
12468
12469 MOONSHOT_APP="$bindir/moonshot"
12470 MOONSHOT_WEBP="$bindir/moonshot-webp"
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482 # Dependencies
12483
12484 pkg_failed=no
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moonshot" >&5
12486 $as_echo_n "checking for moonshot... " >&6; }
12487
12488 if test -n "$moonshot_CFLAGS"; then
12489     pkg_cv_moonshot_CFLAGS="$moonshot_CFLAGS"
12490  elif test -n "$PKG_CONFIG"; then
12491     if test -n "$PKG_CONFIG" && \
12492     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
12493         atk >= 1.20
12494         glib-2.0 >= 2.24
12495         gobject-2.0 >= 2.24
12496         gtk+-2.0 >= 2.20
12497         \$SERVER_IPC_MODULE
12498 \""; } >&5
12499   ($PKG_CONFIG --exists --print-errors "
12500         atk >= 1.20
12501         glib-2.0 >= 2.24
12502         gobject-2.0 >= 2.24
12503         gtk+-2.0 >= 2.20
12504         $SERVER_IPC_MODULE
12505 ") 2>&5
12506   ac_status=$?
12507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12508   test $ac_status = 0; }; then
12509   pkg_cv_moonshot_CFLAGS=`$PKG_CONFIG --cflags "
12510         atk >= 1.20
12511         glib-2.0 >= 2.24
12512         gobject-2.0 >= 2.24
12513         gtk+-2.0 >= 2.20
12514         $SERVER_IPC_MODULE
12515 " 2>/dev/null`
12516                       test "x$?" != "x0" && pkg_failed=yes
12517 else
12518   pkg_failed=yes
12519 fi
12520  else
12521     pkg_failed=untried
12522 fi
12523 if test -n "$moonshot_LIBS"; then
12524     pkg_cv_moonshot_LIBS="$moonshot_LIBS"
12525  elif test -n "$PKG_CONFIG"; then
12526     if test -n "$PKG_CONFIG" && \
12527     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
12528         atk >= 1.20
12529         glib-2.0 >= 2.24
12530         gobject-2.0 >= 2.24
12531         gtk+-2.0 >= 2.20
12532         \$SERVER_IPC_MODULE
12533 \""; } >&5
12534   ($PKG_CONFIG --exists --print-errors "
12535         atk >= 1.20
12536         glib-2.0 >= 2.24
12537         gobject-2.0 >= 2.24
12538         gtk+-2.0 >= 2.20
12539         $SERVER_IPC_MODULE
12540 ") 2>&5
12541   ac_status=$?
12542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12543   test $ac_status = 0; }; then
12544   pkg_cv_moonshot_LIBS=`$PKG_CONFIG --libs "
12545         atk >= 1.20
12546         glib-2.0 >= 2.24
12547         gobject-2.0 >= 2.24
12548         gtk+-2.0 >= 2.20
12549         $SERVER_IPC_MODULE
12550 " 2>/dev/null`
12551                       test "x$?" != "x0" && pkg_failed=yes
12552 else
12553   pkg_failed=yes
12554 fi
12555  else
12556     pkg_failed=untried
12557 fi
12558
12559
12560
12561 if test $pkg_failed = yes; then
12562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563 $as_echo "no" >&6; }
12564
12565 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12566         _pkg_short_errors_supported=yes
12567 else
12568         _pkg_short_errors_supported=no
12569 fi
12570         if test $_pkg_short_errors_supported = yes; then
12571                 moonshot_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
12572         atk >= 1.20
12573         glib-2.0 >= 2.24
12574         gobject-2.0 >= 2.24
12575         gtk+-2.0 >= 2.20
12576         $SERVER_IPC_MODULE
12577 " 2>&1`
12578         else
12579                 moonshot_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
12580         atk >= 1.20
12581         glib-2.0 >= 2.24
12582         gobject-2.0 >= 2.24
12583         gtk+-2.0 >= 2.20
12584         $SERVER_IPC_MODULE
12585 " 2>&1`
12586         fi
12587         # Put the nasty error message in config.log where it belongs
12588         echo "$moonshot_PKG_ERRORS" >&5
12589
12590         as_fn_error $? "Package requirements (
12591         atk >= 1.20
12592         glib-2.0 >= 2.24
12593         gobject-2.0 >= 2.24
12594         gtk+-2.0 >= 2.20
12595         $SERVER_IPC_MODULE
12596 ) were not met:
12597
12598 $moonshot_PKG_ERRORS
12599
12600 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12601 installed software in a non-standard prefix.
12602
12603 Alternatively, you may set the environment variables moonshot_CFLAGS
12604 and moonshot_LIBS to avoid the need to call pkg-config.
12605 See the pkg-config man page for more details." "$LINENO" 5
12606 elif test $pkg_failed = untried; then
12607         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 $as_echo "no" >&6; }
12609         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12611 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12612 is in your PATH or set the PKG_CONFIG environment variable to the full
12613 path to pkg-config.
12614
12615 Alternatively, you may set the environment variables moonshot_CFLAGS
12616 and moonshot_LIBS to avoid the need to call pkg-config.
12617 See the pkg-config man page for more details.
12618
12619 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12620 See \`config.log' for more details" "$LINENO" 5 ; }
12621 else
12622         moonshot_CFLAGS=$pkg_cv_moonshot_CFLAGS
12623         moonshot_LIBS=$pkg_cv_moonshot_LIBS
12624         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12625 $as_echo "yes" >&6; }
12626
12627 fi
12628
12629
12630 pkg_failed=no
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmoonshot" >&5
12632 $as_echo_n "checking for libmoonshot... " >&6; }
12633
12634 if test -n "$libmoonshot_CFLAGS"; then
12635     pkg_cv_libmoonshot_CFLAGS="$libmoonshot_CFLAGS"
12636  elif test -n "$PKG_CONFIG"; then
12637     if test -n "$PKG_CONFIG" && \
12638     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
12639         \$CLIENT_IPC_MODULE
12640 \""; } >&5
12641   ($PKG_CONFIG --exists --print-errors "
12642         $CLIENT_IPC_MODULE
12643 ") 2>&5
12644   ac_status=$?
12645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12646   test $ac_status = 0; }; then
12647   pkg_cv_libmoonshot_CFLAGS=`$PKG_CONFIG --cflags "
12648         $CLIENT_IPC_MODULE
12649 " 2>/dev/null`
12650                       test "x$?" != "x0" && pkg_failed=yes
12651 else
12652   pkg_failed=yes
12653 fi
12654  else
12655     pkg_failed=untried
12656 fi
12657 if test -n "$libmoonshot_LIBS"; then
12658     pkg_cv_libmoonshot_LIBS="$libmoonshot_LIBS"
12659  elif test -n "$PKG_CONFIG"; then
12660     if test -n "$PKG_CONFIG" && \
12661     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
12662         \$CLIENT_IPC_MODULE
12663 \""; } >&5
12664   ($PKG_CONFIG --exists --print-errors "
12665         $CLIENT_IPC_MODULE
12666 ") 2>&5
12667   ac_status=$?
12668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12669   test $ac_status = 0; }; then
12670   pkg_cv_libmoonshot_LIBS=`$PKG_CONFIG --libs "
12671         $CLIENT_IPC_MODULE
12672 " 2>/dev/null`
12673                       test "x$?" != "x0" && pkg_failed=yes
12674 else
12675   pkg_failed=yes
12676 fi
12677  else
12678     pkg_failed=untried
12679 fi
12680
12681
12682
12683 if test $pkg_failed = yes; then
12684         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685 $as_echo "no" >&6; }
12686
12687 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12688         _pkg_short_errors_supported=yes
12689 else
12690         _pkg_short_errors_supported=no
12691 fi
12692         if test $_pkg_short_errors_supported = yes; then
12693                 libmoonshot_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
12694         $CLIENT_IPC_MODULE
12695 " 2>&1`
12696         else
12697                 libmoonshot_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
12698         $CLIENT_IPC_MODULE
12699 " 2>&1`
12700         fi
12701         # Put the nasty error message in config.log where it belongs
12702         echo "$libmoonshot_PKG_ERRORS" >&5
12703
12704         as_fn_error $? "Package requirements (
12705         $CLIENT_IPC_MODULE
12706 ) were not met:
12707
12708 $libmoonshot_PKG_ERRORS
12709
12710 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12711 installed software in a non-standard prefix.
12712
12713 Alternatively, you may set the environment variables libmoonshot_CFLAGS
12714 and libmoonshot_LIBS to avoid the need to call pkg-config.
12715 See the pkg-config man page for more details." "$LINENO" 5
12716 elif test $pkg_failed = untried; then
12717         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12719         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12721 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12722 is in your PATH or set the PKG_CONFIG environment variable to the full
12723 path to pkg-config.
12724
12725 Alternatively, you may set the environment variables libmoonshot_CFLAGS
12726 and libmoonshot_LIBS to avoid the need to call pkg-config.
12727 See the pkg-config man page for more details.
12728
12729 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12730 See \`config.log' for more details" "$LINENO" 5 ; }
12731 else
12732         libmoonshot_CFLAGS=$pkg_cv_libmoonshot_CFLAGS
12733         libmoonshot_LIBS=$pkg_cv_libmoonshot_LIBS
12734         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12735 $as_echo "yes" >&6; }
12736
12737 fi
12738
12739 # i18n stuff
12740
12741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12742 $as_echo_n "checking whether NLS is requested... " >&6; }
12743     # Check whether --enable-nls was given.
12744 if test "${enable_nls+set}" = set; then :
12745   enableval=$enable_nls; USE_NLS=$enableval
12746 else
12747   USE_NLS=yes
12748 fi
12749
12750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12751 $as_echo "$USE_NLS" >&6; }
12752
12753
12754
12755
12756       GETTEXT_MACRO_VERSION=0.18
12757
12758
12759
12760
12761 # Prepare PATH_SEPARATOR.
12762 # The user is always right.
12763 if test "${PATH_SEPARATOR+set}" != set; then
12764   echo "#! /bin/sh" >conf$$.sh
12765   echo  "exit 0"   >>conf$$.sh
12766   chmod +x conf$$.sh
12767   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12768     PATH_SEPARATOR=';'
12769   else
12770     PATH_SEPARATOR=:
12771   fi
12772   rm -f conf$$.sh
12773 fi
12774
12775 # Find out how to test for executable files. Don't use a zero-byte file,
12776 # as systems may use methods other than mode bits to determine executability.
12777 cat >conf$$.file <<_ASEOF
12778 #! /bin/sh
12779 exit 0
12780 _ASEOF
12781 chmod +x conf$$.file
12782 if test -x conf$$.file >/dev/null 2>&1; then
12783   ac_executable_p="test -x"
12784 else
12785   ac_executable_p="test -f"
12786 fi
12787 rm -f conf$$.file
12788
12789 # Extract the first word of "msgfmt", so it can be a program name with args.
12790 set dummy msgfmt; ac_word=$2
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12792 $as_echo_n "checking for $ac_word... " >&6; }
12793 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12794   $as_echo_n "(cached) " >&6
12795 else
12796   case "$MSGFMT" in
12797   [\\/]* | ?:[\\/]*)
12798     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12799     ;;
12800   *)
12801     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12802     for ac_dir in $PATH; do
12803       IFS="$ac_save_IFS"
12804       test -z "$ac_dir" && ac_dir=.
12805       for ac_exec_ext in '' $ac_executable_extensions; do
12806         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12807           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12808           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12809      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12810             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12811             break 2
12812           fi
12813         fi
12814       done
12815     done
12816     IFS="$ac_save_IFS"
12817   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12818     ;;
12819 esac
12820 fi
12821 MSGFMT="$ac_cv_path_MSGFMT"
12822 if test "$MSGFMT" != ":"; then
12823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12824 $as_echo "$MSGFMT" >&6; }
12825 else
12826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827 $as_echo "no" >&6; }
12828 fi
12829
12830   # Extract the first word of "gmsgfmt", so it can be a program name with args.
12831 set dummy gmsgfmt; ac_word=$2
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12833 $as_echo_n "checking for $ac_word... " >&6; }
12834 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12835   $as_echo_n "(cached) " >&6
12836 else
12837   case $GMSGFMT in
12838   [\\/]* | ?:[\\/]*)
12839   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12840   ;;
12841   *)
12842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843 for as_dir in $PATH
12844 do
12845   IFS=$as_save_IFS
12846   test -z "$as_dir" && as_dir=.
12847     for ac_exec_ext in '' $ac_executable_extensions; do
12848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12849     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12851     break 2
12852   fi
12853 done
12854   done
12855 IFS=$as_save_IFS
12856
12857   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12858   ;;
12859 esac
12860 fi
12861 GMSGFMT=$ac_cv_path_GMSGFMT
12862 if test -n "$GMSGFMT"; then
12863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12864 $as_echo "$GMSGFMT" >&6; }
12865 else
12866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867 $as_echo "no" >&6; }
12868 fi
12869
12870
12871
12872     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12873     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12874     *) MSGFMT_015=$MSGFMT ;;
12875   esac
12876
12877   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12878     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12879     *) GMSGFMT_015=$GMSGFMT ;;
12880   esac
12881
12882
12883
12884 # Prepare PATH_SEPARATOR.
12885 # The user is always right.
12886 if test "${PATH_SEPARATOR+set}" != set; then
12887   echo "#! /bin/sh" >conf$$.sh
12888   echo  "exit 0"   >>conf$$.sh
12889   chmod +x conf$$.sh
12890   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12891     PATH_SEPARATOR=';'
12892   else
12893     PATH_SEPARATOR=:
12894   fi
12895   rm -f conf$$.sh
12896 fi
12897
12898 # Find out how to test for executable files. Don't use a zero-byte file,
12899 # as systems may use methods other than mode bits to determine executability.
12900 cat >conf$$.file <<_ASEOF
12901 #! /bin/sh
12902 exit 0
12903 _ASEOF
12904 chmod +x conf$$.file
12905 if test -x conf$$.file >/dev/null 2>&1; then
12906   ac_executable_p="test -x"
12907 else
12908   ac_executable_p="test -f"
12909 fi
12910 rm -f conf$$.file
12911
12912 # Extract the first word of "xgettext", so it can be a program name with args.
12913 set dummy xgettext; ac_word=$2
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12915 $as_echo_n "checking for $ac_word... " >&6; }
12916 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12917   $as_echo_n "(cached) " >&6
12918 else
12919   case "$XGETTEXT" in
12920   [\\/]* | ?:[\\/]*)
12921     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12922     ;;
12923   *)
12924     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12925     for ac_dir in $PATH; do
12926       IFS="$ac_save_IFS"
12927       test -z "$ac_dir" && ac_dir=.
12928       for ac_exec_ext in '' $ac_executable_extensions; do
12929         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12930           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12931           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12932      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12933             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12934             break 2
12935           fi
12936         fi
12937       done
12938     done
12939     IFS="$ac_save_IFS"
12940   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12941     ;;
12942 esac
12943 fi
12944 XGETTEXT="$ac_cv_path_XGETTEXT"
12945 if test "$XGETTEXT" != ":"; then
12946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12947 $as_echo "$XGETTEXT" >&6; }
12948 else
12949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12950 $as_echo "no" >&6; }
12951 fi
12952
12953     rm -f messages.po
12954
12955     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12956     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12957     *) XGETTEXT_015=$XGETTEXT ;;
12958   esac
12959
12960
12961
12962 # Prepare PATH_SEPARATOR.
12963 # The user is always right.
12964 if test "${PATH_SEPARATOR+set}" != set; then
12965   echo "#! /bin/sh" >conf$$.sh
12966   echo  "exit 0"   >>conf$$.sh
12967   chmod +x conf$$.sh
12968   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12969     PATH_SEPARATOR=';'
12970   else
12971     PATH_SEPARATOR=:
12972   fi
12973   rm -f conf$$.sh
12974 fi
12975
12976 # Find out how to test for executable files. Don't use a zero-byte file,
12977 # as systems may use methods other than mode bits to determine executability.
12978 cat >conf$$.file <<_ASEOF
12979 #! /bin/sh
12980 exit 0
12981 _ASEOF
12982 chmod +x conf$$.file
12983 if test -x conf$$.file >/dev/null 2>&1; then
12984   ac_executable_p="test -x"
12985 else
12986   ac_executable_p="test -f"
12987 fi
12988 rm -f conf$$.file
12989
12990 # Extract the first word of "msgmerge", so it can be a program name with args.
12991 set dummy msgmerge; ac_word=$2
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12993 $as_echo_n "checking for $ac_word... " >&6; }
12994 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12995   $as_echo_n "(cached) " >&6
12996 else
12997   case "$MSGMERGE" in
12998   [\\/]* | ?:[\\/]*)
12999     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13000     ;;
13001   *)
13002     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13003     for ac_dir in $PATH; do
13004       IFS="$ac_save_IFS"
13005       test -z "$ac_dir" && ac_dir=.
13006       for ac_exec_ext in '' $ac_executable_extensions; do
13007         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13008           echo "$as_me: trying $ac_dir/$ac_word..." >&5
13009           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13010             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13011             break 2
13012           fi
13013         fi
13014       done
13015     done
13016     IFS="$ac_save_IFS"
13017   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13018     ;;
13019 esac
13020 fi
13021 MSGMERGE="$ac_cv_path_MSGMERGE"
13022 if test "$MSGMERGE" != ":"; then
13023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13024 $as_echo "$MSGMERGE" >&6; }
13025 else
13026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027 $as_echo "no" >&6; }
13028 fi
13029
13030
13031         test -n "$localedir" || localedir='${datadir}/locale'
13032
13033
13034     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
13035
13036
13037   ac_config_commands="$ac_config_commands po-directories"
13038
13039
13040
13041       if test "X$prefix" = "XNONE"; then
13042     acl_final_prefix="$ac_default_prefix"
13043   else
13044     acl_final_prefix="$prefix"
13045   fi
13046   if test "X$exec_prefix" = "XNONE"; then
13047     acl_final_exec_prefix='${prefix}'
13048   else
13049     acl_final_exec_prefix="$exec_prefix"
13050   fi
13051   acl_save_prefix="$prefix"
13052   prefix="$acl_final_prefix"
13053   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13054   prefix="$acl_save_prefix"
13055
13056
13057 # Check whether --with-gnu-ld was given.
13058 if test "${with_gnu_ld+set}" = set; then :
13059   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13060 else
13061   with_gnu_ld=no
13062 fi
13063
13064 # Prepare PATH_SEPARATOR.
13065 # The user is always right.
13066 if test "${PATH_SEPARATOR+set}" != set; then
13067   echo "#! /bin/sh" >conf$$.sh
13068   echo  "exit 0"   >>conf$$.sh
13069   chmod +x conf$$.sh
13070   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13071     PATH_SEPARATOR=';'
13072   else
13073     PATH_SEPARATOR=:
13074   fi
13075   rm -f conf$$.sh
13076 fi
13077 ac_prog=ld
13078 if test "$GCC" = yes; then
13079   # Check if gcc -print-prog-name=ld gives a path.
13080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13081 $as_echo_n "checking for ld used by GCC... " >&6; }
13082   case $host in
13083   *-*-mingw*)
13084     # gcc leaves a trailing carriage return which upsets mingw
13085     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13086   *)
13087     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13088   esac
13089   case $ac_prog in
13090     # Accept absolute paths.
13091     [\\/]* | [A-Za-z]:[\\/]*)
13092       re_direlt='/[^/][^/]*/\.\./'
13093       # Canonicalize the path of ld
13094       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13095       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13096         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13097       done
13098       test -z "$LD" && LD="$ac_prog"
13099       ;;
13100   "")
13101     # If it fails, then pretend we aren't using GCC.
13102     ac_prog=ld
13103     ;;
13104   *)
13105     # If it is relative, then search for the first ld in PATH.
13106     with_gnu_ld=unknown
13107     ;;
13108   esac
13109 elif test "$with_gnu_ld" = yes; then
13110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13111 $as_echo_n "checking for GNU ld... " >&6; }
13112 else
13113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13114 $as_echo_n "checking for non-GNU ld... " >&6; }
13115 fi
13116 if test "${acl_cv_path_LD+set}" = set; then :
13117   $as_echo_n "(cached) " >&6
13118 else
13119   if test -z "$LD"; then
13120   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13121   for ac_dir in $PATH; do
13122     test -z "$ac_dir" && ac_dir=.
13123     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13124       acl_cv_path_LD="$ac_dir/$ac_prog"
13125       # Check to see if the program is GNU ld.  I'd rather use --version,
13126       # but apparently some GNU ld's only accept -v.
13127       # Break only if it was the GNU/non-GNU ld that we prefer.
13128       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13129       *GNU* | *'with BFD'*)
13130         test "$with_gnu_ld" != no && break ;;
13131       *)
13132         test "$with_gnu_ld" != yes && break ;;
13133       esac
13134     fi
13135   done
13136   IFS="$ac_save_ifs"
13137 else
13138   acl_cv_path_LD="$LD" # Let the user override the test with a path.
13139 fi
13140 fi
13141
13142 LD="$acl_cv_path_LD"
13143 if test -n "$LD"; then
13144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13145 $as_echo "$LD" >&6; }
13146 else
13147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148 $as_echo "no" >&6; }
13149 fi
13150 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13152 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13153 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
13154   $as_echo_n "(cached) " >&6
13155 else
13156   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13157 case `$LD -v 2>&1 </dev/null` in
13158 *GNU* | *'with BFD'*)
13159   acl_cv_prog_gnu_ld=yes ;;
13160 *)
13161   acl_cv_prog_gnu_ld=no ;;
13162 esac
13163 fi
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13165 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13166 with_gnu_ld=$acl_cv_prog_gnu_ld
13167
13168
13169
13170
13171                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13172 $as_echo_n "checking for shared library run path origin... " >&6; }
13173 if test "${acl_cv_rpath+set}" = set; then :
13174   $as_echo_n "(cached) " >&6
13175 else
13176
13177     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13178     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13179     . ./conftest.sh
13180     rm -f ./conftest.sh
13181     acl_cv_rpath=done
13182
13183 fi
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13185 $as_echo "$acl_cv_rpath" >&6; }
13186   wl="$acl_cv_wl"
13187   acl_libext="$acl_cv_libext"
13188   acl_shlibext="$acl_cv_shlibext"
13189   acl_libname_spec="$acl_cv_libname_spec"
13190   acl_library_names_spec="$acl_cv_library_names_spec"
13191   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13192   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13193   acl_hardcode_direct="$acl_cv_hardcode_direct"
13194   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13195     # Check whether --enable-rpath was given.
13196 if test "${enable_rpath+set}" = set; then :
13197   enableval=$enable_rpath; :
13198 else
13199   enable_rpath=yes
13200 fi
13201
13202
13203
13204
13205   acl_libdirstem=lib
13206   acl_libdirstem2=
13207   case "$host_os" in
13208     solaris*)
13209                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13210 $as_echo_n "checking for 64-bit host... " >&6; }
13211 if test "${gl_cv_solaris_64bit+set}" = set; then :
13212   $as_echo_n "(cached) " >&6
13213 else
13214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215 /* end confdefs.h.  */
13216
13217 #ifdef _LP64
13218 sixtyfour bits
13219 #endif
13220
13221 _ACEOF
13222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13223   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
13224   gl_cv_solaris_64bit=yes
13225 else
13226   gl_cv_solaris_64bit=no
13227 fi
13228 rm -f conftest*
13229
13230
13231 fi
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
13233 $as_echo "$gl_cv_solaris_64bit" >&6; }
13234       if test $gl_cv_solaris_64bit = yes; then
13235         acl_libdirstem=lib/64
13236         case "$host_cpu" in
13237           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
13238           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13239         esac
13240       fi
13241       ;;
13242     *)
13243       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13244       if test -n "$searchpath"; then
13245         acl_save_IFS="${IFS=    }"; IFS=":"
13246         for searchdir in $searchpath; do
13247           if test -d "$searchdir"; then
13248             case "$searchdir" in
13249               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13250               */../ | */.. )
13251                 # Better ignore directories of this form. They are misleading.
13252                 ;;
13253               *) searchdir=`cd "$searchdir" && pwd`
13254                  case "$searchdir" in
13255                    */lib64 ) acl_libdirstem=lib64 ;;
13256                  esac ;;
13257             esac
13258           fi
13259         done
13260         IFS="$acl_save_IFS"
13261       fi
13262       ;;
13263   esac
13264   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277     use_additional=yes
13278
13279   acl_save_prefix="$prefix"
13280   prefix="$acl_final_prefix"
13281   acl_save_exec_prefix="$exec_prefix"
13282   exec_prefix="$acl_final_exec_prefix"
13283
13284     eval additional_includedir=\"$includedir\"
13285     eval additional_libdir=\"$libdir\"
13286
13287   exec_prefix="$acl_save_exec_prefix"
13288   prefix="$acl_save_prefix"
13289
13290
13291 # Check whether --with-libiconv-prefix was given.
13292 if test "${with_libiconv_prefix+set}" = set; then :
13293   withval=$with_libiconv_prefix;
13294     if test "X$withval" = "Xno"; then
13295       use_additional=no
13296     else
13297       if test "X$withval" = "X"; then
13298
13299   acl_save_prefix="$prefix"
13300   prefix="$acl_final_prefix"
13301   acl_save_exec_prefix="$exec_prefix"
13302   exec_prefix="$acl_final_exec_prefix"
13303
13304           eval additional_includedir=\"$includedir\"
13305           eval additional_libdir=\"$libdir\"
13306
13307   exec_prefix="$acl_save_exec_prefix"
13308   prefix="$acl_save_prefix"
13309
13310       else
13311         additional_includedir="$withval/include"
13312         additional_libdir="$withval/$acl_libdirstem"
13313         if test "$acl_libdirstem2" != "$acl_libdirstem" \
13314            && ! test -d "$withval/$acl_libdirstem"; then
13315           additional_libdir="$withval/$acl_libdirstem2"
13316         fi
13317       fi
13318     fi
13319
13320 fi
13321
13322       LIBICONV=
13323   LTLIBICONV=
13324   INCICONV=
13325   LIBICONV_PREFIX=
13326       HAVE_LIBICONV=
13327   rpathdirs=
13328   ltrpathdirs=
13329   names_already_handled=
13330   names_next_round='iconv '
13331   while test -n "$names_next_round"; do
13332     names_this_round="$names_next_round"
13333     names_next_round=
13334     for name in $names_this_round; do
13335       already_handled=
13336       for n in $names_already_handled; do
13337         if test "$n" = "$name"; then
13338           already_handled=yes
13339           break
13340         fi
13341       done
13342       if test -z "$already_handled"; then
13343         names_already_handled="$names_already_handled $name"
13344                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13345         eval value=\"\$HAVE_LIB$uppername\"
13346         if test -n "$value"; then
13347           if test "$value" = yes; then
13348             eval value=\"\$LIB$uppername\"
13349             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13350             eval value=\"\$LTLIB$uppername\"
13351             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13352           else
13353                                     :
13354           fi
13355         else
13356                               found_dir=
13357           found_la=
13358           found_so=
13359           found_a=
13360           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
13361           if test -n "$acl_shlibext"; then
13362             shrext=".$acl_shlibext"             # typically: shrext=.so
13363           else
13364             shrext=
13365           fi
13366           if test $use_additional = yes; then
13367             dir="$additional_libdir"
13368                                     if test -n "$acl_shlibext"; then
13369               if test -f "$dir/$libname$shrext"; then
13370                 found_dir="$dir"
13371                 found_so="$dir/$libname$shrext"
13372               else
13373                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13374                   ver=`(cd "$dir" && \
13375                         for f in "$libname$shrext".*; do echo "$f"; done \
13376                         | sed -e "s,^$libname$shrext\\\\.,," \
13377                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13378                         | sed 1q ) 2>/dev/null`
13379                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13380                     found_dir="$dir"
13381                     found_so="$dir/$libname$shrext.$ver"
13382                   fi
13383                 else
13384                   eval library_names=\"$acl_library_names_spec\"
13385                   for f in $library_names; do
13386                     if test -f "$dir/$f"; then
13387                       found_dir="$dir"
13388                       found_so="$dir/$f"
13389                       break
13390                     fi
13391                   done
13392                 fi
13393               fi
13394             fi
13395                         if test "X$found_dir" = "X"; then
13396               if test -f "$dir/$libname.$acl_libext"; then
13397                 found_dir="$dir"
13398                 found_a="$dir/$libname.$acl_libext"
13399               fi
13400             fi
13401             if test "X$found_dir" != "X"; then
13402               if test -f "$dir/$libname.la"; then
13403                 found_la="$dir/$libname.la"
13404               fi
13405             fi
13406           fi
13407           if test "X$found_dir" = "X"; then
13408             for x in $LDFLAGS $LTLIBICONV; do
13409
13410   acl_save_prefix="$prefix"
13411   prefix="$acl_final_prefix"
13412   acl_save_exec_prefix="$exec_prefix"
13413   exec_prefix="$acl_final_exec_prefix"
13414   eval x=\"$x\"
13415   exec_prefix="$acl_save_exec_prefix"
13416   prefix="$acl_save_prefix"
13417
13418               case "$x" in
13419                 -L*)
13420                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13421                                     if test -n "$acl_shlibext"; then
13422                     if test -f "$dir/$libname$shrext"; then
13423                       found_dir="$dir"
13424                       found_so="$dir/$libname$shrext"
13425                     else
13426                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13427                         ver=`(cd "$dir" && \
13428                               for f in "$libname$shrext".*; do echo "$f"; done \
13429                               | sed -e "s,^$libname$shrext\\\\.,," \
13430                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13431                               | sed 1q ) 2>/dev/null`
13432                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13433                           found_dir="$dir"
13434                           found_so="$dir/$libname$shrext.$ver"
13435                         fi
13436                       else
13437                         eval library_names=\"$acl_library_names_spec\"
13438                         for f in $library_names; do
13439                           if test -f "$dir/$f"; then
13440                             found_dir="$dir"
13441                             found_so="$dir/$f"
13442                             break
13443                           fi
13444                         done
13445                       fi
13446                     fi
13447                   fi
13448                                     if test "X$found_dir" = "X"; then
13449                     if test -f "$dir/$libname.$acl_libext"; then
13450                       found_dir="$dir"
13451                       found_a="$dir/$libname.$acl_libext"
13452                     fi
13453                   fi
13454                   if test "X$found_dir" != "X"; then
13455                     if test -f "$dir/$libname.la"; then
13456                       found_la="$dir/$libname.la"
13457                     fi
13458                   fi
13459                   ;;
13460               esac
13461               if test "X$found_dir" != "X"; then
13462                 break
13463               fi
13464             done
13465           fi
13466           if test "X$found_dir" != "X"; then
13467                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13468             if test "X$found_so" != "X"; then
13469                                                         if test "$enable_rpath" = no \
13470                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13471                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13472                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13473               else
13474                                                                                 haveit=
13475                 for x in $ltrpathdirs; do
13476                   if test "X$x" = "X$found_dir"; then
13477                     haveit=yes
13478                     break
13479                   fi
13480                 done
13481                 if test -z "$haveit"; then
13482                   ltrpathdirs="$ltrpathdirs $found_dir"
13483                 fi
13484                                 if test "$acl_hardcode_direct" = yes; then
13485                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13486                 else
13487                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13488                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13489                                                             haveit=
13490                     for x in $rpathdirs; do
13491                       if test "X$x" = "X$found_dir"; then
13492                         haveit=yes
13493                         break
13494                       fi
13495                     done
13496                     if test -z "$haveit"; then
13497                       rpathdirs="$rpathdirs $found_dir"
13498                     fi
13499                   else
13500                                                                                 haveit=
13501                     for x in $LDFLAGS $LIBICONV; do
13502
13503   acl_save_prefix="$prefix"
13504   prefix="$acl_final_prefix"
13505   acl_save_exec_prefix="$exec_prefix"
13506   exec_prefix="$acl_final_exec_prefix"
13507   eval x=\"$x\"
13508   exec_prefix="$acl_save_exec_prefix"
13509   prefix="$acl_save_prefix"
13510
13511                       if test "X$x" = "X-L$found_dir"; then
13512                         haveit=yes
13513                         break
13514                       fi
13515                     done
13516                     if test -z "$haveit"; then
13517                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13518                     fi
13519                     if test "$acl_hardcode_minus_L" != no; then
13520                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13521                     else
13522                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13523                     fi
13524                   fi
13525                 fi
13526               fi
13527             else
13528               if test "X$found_a" != "X"; then
13529                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13530               else
13531                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13532               fi
13533             fi
13534                         additional_includedir=
13535             case "$found_dir" in
13536               */$acl_libdirstem | */$acl_libdirstem/)
13537                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13538                 if test "$name" = 'iconv'; then
13539                   LIBICONV_PREFIX="$basedir"
13540                 fi
13541                 additional_includedir="$basedir/include"
13542                 ;;
13543               */$acl_libdirstem2 | */$acl_libdirstem2/)
13544                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13545                 if test "$name" = 'iconv'; then
13546                   LIBICONV_PREFIX="$basedir"
13547                 fi
13548                 additional_includedir="$basedir/include"
13549                 ;;
13550             esac
13551             if test "X$additional_includedir" != "X"; then
13552                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
13553                 haveit=
13554                 if test "X$additional_includedir" = "X/usr/local/include"; then
13555                   if test -n "$GCC"; then
13556                     case $host_os in
13557                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13558                     esac
13559                   fi
13560                 fi
13561                 if test -z "$haveit"; then
13562                   for x in $CPPFLAGS $INCICONV; do
13563
13564   acl_save_prefix="$prefix"
13565   prefix="$acl_final_prefix"
13566   acl_save_exec_prefix="$exec_prefix"
13567   exec_prefix="$acl_final_exec_prefix"
13568   eval x=\"$x\"
13569   exec_prefix="$acl_save_exec_prefix"
13570   prefix="$acl_save_prefix"
13571
13572                     if test "X$x" = "X-I$additional_includedir"; then
13573                       haveit=yes
13574                       break
13575                     fi
13576                   done
13577                   if test -z "$haveit"; then
13578                     if test -d "$additional_includedir"; then
13579                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13580                     fi
13581                   fi
13582                 fi
13583               fi
13584             fi
13585                         if test -n "$found_la"; then
13586                                                         save_libdir="$libdir"
13587               case "$found_la" in
13588                 */* | *\\*) . "$found_la" ;;
13589                 *) . "./$found_la" ;;
13590               esac
13591               libdir="$save_libdir"
13592                             for dep in $dependency_libs; do
13593                 case "$dep" in
13594                   -L*)
13595                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13596                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13597                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13598                       haveit=
13599                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13600                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13601                         if test -n "$GCC"; then
13602                           case $host_os in
13603                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13604                           esac
13605                         fi
13606                       fi
13607                       if test -z "$haveit"; then
13608                         haveit=
13609                         for x in $LDFLAGS $LIBICONV; do
13610
13611   acl_save_prefix="$prefix"
13612   prefix="$acl_final_prefix"
13613   acl_save_exec_prefix="$exec_prefix"
13614   exec_prefix="$acl_final_exec_prefix"
13615   eval x=\"$x\"
13616   exec_prefix="$acl_save_exec_prefix"
13617   prefix="$acl_save_prefix"
13618
13619                           if test "X$x" = "X-L$additional_libdir"; then
13620                             haveit=yes
13621                             break
13622                           fi
13623                         done
13624                         if test -z "$haveit"; then
13625                           if test -d "$additional_libdir"; then
13626                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13627                           fi
13628                         fi
13629                         haveit=
13630                         for x in $LDFLAGS $LTLIBICONV; do
13631
13632   acl_save_prefix="$prefix"
13633   prefix="$acl_final_prefix"
13634   acl_save_exec_prefix="$exec_prefix"
13635   exec_prefix="$acl_final_exec_prefix"
13636   eval x=\"$x\"
13637   exec_prefix="$acl_save_exec_prefix"
13638   prefix="$acl_save_prefix"
13639
13640                           if test "X$x" = "X-L$additional_libdir"; then
13641                             haveit=yes
13642                             break
13643                           fi
13644                         done
13645                         if test -z "$haveit"; then
13646                           if test -d "$additional_libdir"; then
13647                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13648                           fi
13649                         fi
13650                       fi
13651                     fi
13652                     ;;
13653                   -R*)
13654                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13655                     if test "$enable_rpath" != no; then
13656                                                                   haveit=
13657                       for x in $rpathdirs; do
13658                         if test "X$x" = "X$dir"; then
13659                           haveit=yes
13660                           break
13661                         fi
13662                       done
13663                       if test -z "$haveit"; then
13664                         rpathdirs="$rpathdirs $dir"
13665                       fi
13666                                                                   haveit=
13667                       for x in $ltrpathdirs; do
13668                         if test "X$x" = "X$dir"; then
13669                           haveit=yes
13670                           break
13671                         fi
13672                       done
13673                       if test -z "$haveit"; then
13674                         ltrpathdirs="$ltrpathdirs $dir"
13675                       fi
13676                     fi
13677                     ;;
13678                   -l*)
13679                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13680                     ;;
13681                   *.la)
13682                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13683                     ;;
13684                   *)
13685                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13686                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13687                     ;;
13688                 esac
13689               done
13690             fi
13691           else
13692                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13693             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13694           fi
13695         fi
13696       fi
13697     done
13698   done
13699   if test "X$rpathdirs" != "X"; then
13700     if test -n "$acl_hardcode_libdir_separator"; then
13701                         alldirs=
13702       for found_dir in $rpathdirs; do
13703         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13704       done
13705             acl_save_libdir="$libdir"
13706       libdir="$alldirs"
13707       eval flag=\"$acl_hardcode_libdir_flag_spec\"
13708       libdir="$acl_save_libdir"
13709       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13710     else
13711             for found_dir in $rpathdirs; do
13712         acl_save_libdir="$libdir"
13713         libdir="$found_dir"
13714         eval flag=\"$acl_hardcode_libdir_flag_spec\"
13715         libdir="$acl_save_libdir"
13716         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13717       done
13718     fi
13719   fi
13720   if test "X$ltrpathdirs" != "X"; then
13721             for found_dir in $ltrpathdirs; do
13722       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13723     done
13724   fi
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13757 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13758 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
13759   $as_echo_n "(cached) " >&6
13760 else
13761   gt_save_LIBS="$LIBS"
13762      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13763      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764 /* end confdefs.h.  */
13765 #include <CoreFoundation/CFPreferences.h>
13766 int
13767 main ()
13768 {
13769 CFPreferencesCopyAppValue(NULL, NULL)
13770   ;
13771   return 0;
13772 }
13773 _ACEOF
13774 if ac_fn_c_try_link "$LINENO"; then :
13775   gt_cv_func_CFPreferencesCopyAppValue=yes
13776 else
13777   gt_cv_func_CFPreferencesCopyAppValue=no
13778 fi
13779 rm -f core conftest.err conftest.$ac_objext \
13780     conftest$ac_exeext conftest.$ac_ext
13781      LIBS="$gt_save_LIBS"
13782 fi
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13784 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13785   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13786
13787 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13788
13789   fi
13790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
13791 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
13792 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
13793   $as_echo_n "(cached) " >&6
13794 else
13795   gt_save_LIBS="$LIBS"
13796      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13797      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h.  */
13799 #include <CoreFoundation/CFLocale.h>
13800 int
13801 main ()
13802 {
13803 CFLocaleCopyCurrent();
13804   ;
13805   return 0;
13806 }
13807 _ACEOF
13808 if ac_fn_c_try_link "$LINENO"; then :
13809   gt_cv_func_CFLocaleCopyCurrent=yes
13810 else
13811   gt_cv_func_CFLocaleCopyCurrent=no
13812 fi
13813 rm -f core conftest.err conftest.$ac_objext \
13814     conftest$ac_exeext conftest.$ac_ext
13815      LIBS="$gt_save_LIBS"
13816 fi
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13818 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13819   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13820
13821 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
13822
13823   fi
13824   INTL_MACOSX_LIBS=
13825   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13826     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13827   fi
13828
13829
13830
13831
13832
13833
13834   LIBINTL=
13835   LTLIBINTL=
13836   POSUB=
13837
13838     case " $gt_needs " in
13839     *" need-formatstring-macros "*) gt_api_version=3 ;;
13840     *" need-ngettext "*) gt_api_version=2 ;;
13841     *) gt_api_version=1 ;;
13842   esac
13843   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13844   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13845
13846     if test "$USE_NLS" = "yes"; then
13847     gt_use_preinstalled_gnugettext=no
13848
13849
13850         if test $gt_api_version -ge 3; then
13851           gt_revision_test_code='
13852 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13853 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13854 #endif
13855 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13856 '
13857         else
13858           gt_revision_test_code=
13859         fi
13860         if test $gt_api_version -ge 2; then
13861           gt_expression_test_code=' + * ngettext ("", "", 0)'
13862         else
13863           gt_expression_test_code=
13864         fi
13865
13866         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13867 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13868 if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
13869   $as_echo_n "(cached) " >&6
13870 else
13871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h.  */
13873 #include <libintl.h>
13874 $gt_revision_test_code
13875 extern int _nl_msg_cat_cntr;
13876 extern int *_nl_domain_bindings;
13877 int
13878 main ()
13879 {
13880 bindtextdomain ("", "");
13881 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
13882   ;
13883   return 0;
13884 }
13885 _ACEOF
13886 if ac_fn_c_try_link "$LINENO"; then :
13887   eval "$gt_func_gnugettext_libc=yes"
13888 else
13889   eval "$gt_func_gnugettext_libc=no"
13890 fi
13891 rm -f core conftest.err conftest.$ac_objext \
13892     conftest$ac_exeext conftest.$ac_ext
13893 fi
13894 eval ac_res=\$$gt_func_gnugettext_libc
13895                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13896 $as_echo "$ac_res" >&6; }
13897
13898         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13899
13900
13901
13902
13903
13904           am_save_CPPFLAGS="$CPPFLAGS"
13905
13906   for element in $INCICONV; do
13907     haveit=
13908     for x in $CPPFLAGS; do
13909
13910   acl_save_prefix="$prefix"
13911   prefix="$acl_final_prefix"
13912   acl_save_exec_prefix="$exec_prefix"
13913   exec_prefix="$acl_final_exec_prefix"
13914   eval x=\"$x\"
13915   exec_prefix="$acl_save_exec_prefix"
13916   prefix="$acl_save_prefix"
13917
13918       if test "X$x" = "X$element"; then
13919         haveit=yes
13920         break
13921       fi
13922     done
13923     if test -z "$haveit"; then
13924       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13925     fi
13926   done
13927
13928
13929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13930 $as_echo_n "checking for iconv... " >&6; }
13931 if test "${am_cv_func_iconv+set}" = set; then :
13932   $as_echo_n "(cached) " >&6
13933 else
13934
13935     am_cv_func_iconv="no, consider installing GNU libiconv"
13936     am_cv_lib_iconv=no
13937     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13938 /* end confdefs.h.  */
13939 #include <stdlib.h>
13940 #include <iconv.h>
13941 int
13942 main ()
13943 {
13944 iconv_t cd = iconv_open("","");
13945        iconv(cd,NULL,NULL,NULL,NULL);
13946        iconv_close(cd);
13947   ;
13948   return 0;
13949 }
13950 _ACEOF
13951 if ac_fn_c_try_link "$LINENO"; then :
13952   am_cv_func_iconv=yes
13953 fi
13954 rm -f core conftest.err conftest.$ac_objext \
13955     conftest$ac_exeext conftest.$ac_ext
13956     if test "$am_cv_func_iconv" != yes; then
13957       am_save_LIBS="$LIBS"
13958       LIBS="$LIBS $LIBICONV"
13959       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960 /* end confdefs.h.  */
13961 #include <stdlib.h>
13962 #include <iconv.h>
13963 int
13964 main ()
13965 {
13966 iconv_t cd = iconv_open("","");
13967          iconv(cd,NULL,NULL,NULL,NULL);
13968          iconv_close(cd);
13969   ;
13970   return 0;
13971 }
13972 _ACEOF
13973 if ac_fn_c_try_link "$LINENO"; then :
13974   am_cv_lib_iconv=yes
13975         am_cv_func_iconv=yes
13976 fi
13977 rm -f core conftest.err conftest.$ac_objext \
13978     conftest$ac_exeext conftest.$ac_ext
13979       LIBS="$am_save_LIBS"
13980     fi
13981
13982 fi
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13984 $as_echo "$am_cv_func_iconv" >&6; }
13985   if test "$am_cv_func_iconv" = yes; then
13986     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13987 $as_echo_n "checking for working iconv... " >&6; }
13988 if test "${am_cv_func_iconv_works+set}" = set; then :
13989   $as_echo_n "(cached) " >&6
13990 else
13991
13992             am_save_LIBS="$LIBS"
13993       if test $am_cv_lib_iconv = yes; then
13994         LIBS="$LIBS $LIBICONV"
13995       fi
13996       if test "$cross_compiling" = yes; then :
13997   case "$host_os" in
13998            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13999            *)            am_cv_func_iconv_works="guessing yes" ;;
14000          esac
14001 else
14002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14003 /* end confdefs.h.  */
14004
14005 #include <iconv.h>
14006 #include <string.h>
14007 int main ()
14008 {
14009   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14010      returns.  */
14011   {
14012     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14013     if (cd_utf8_to_88591 != (iconv_t)(-1))
14014       {
14015         static const char input[] = "\342\202\254"; /* EURO SIGN */
14016         char buf[10];
14017         const char *inptr = input;
14018         size_t inbytesleft = strlen (input);
14019         char *outptr = buf;
14020         size_t outbytesleft = sizeof (buf);
14021         size_t res = iconv (cd_utf8_to_88591,
14022                             (char **) &inptr, &inbytesleft,
14023                             &outptr, &outbytesleft);
14024         if (res == 0)
14025           return 1;
14026       }
14027   }
14028   /* Test against Solaris 10 bug: Failures are not distinguishable from
14029      successful returns.  */
14030   {
14031     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14032     if (cd_ascii_to_88591 != (iconv_t)(-1))
14033       {
14034         static const char input[] = "\263";
14035         char buf[10];
14036         const char *inptr = input;
14037         size_t inbytesleft = strlen (input);
14038         char *outptr = buf;
14039         size_t outbytesleft = sizeof (buf);
14040         size_t res = iconv (cd_ascii_to_88591,
14041                             (char **) &inptr, &inbytesleft,
14042                             &outptr, &outbytesleft);
14043         if (res == 0)
14044           return 1;
14045       }
14046   }
14047 #if 0 /* This bug could be worked around by the caller.  */
14048   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
14049   {
14050     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14051     if (cd_88591_to_utf8 != (iconv_t)(-1))
14052       {
14053         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14054         char buf[50];
14055         const char *inptr = input;
14056         size_t inbytesleft = strlen (input);
14057         char *outptr = buf;
14058         size_t outbytesleft = sizeof (buf);
14059         size_t res = iconv (cd_88591_to_utf8,
14060                             (char **) &inptr, &inbytesleft,
14061                             &outptr, &outbytesleft);
14062         if ((int)res > 0)
14063           return 1;
14064       }
14065   }
14066 #endif
14067   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14068      provided.  */
14069   if (/* Try standardized names.  */
14070       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14071       /* Try IRIX, OSF/1 names.  */
14072       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14073       /* Try AIX names.  */
14074       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14075       /* Try HP-UX names.  */
14076       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14077     return 1;
14078   return 0;
14079 }
14080 _ACEOF
14081 if ac_fn_c_try_run "$LINENO"; then :
14082   am_cv_func_iconv_works=yes
14083 else
14084   am_cv_func_iconv_works=no
14085 fi
14086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14087   conftest.$ac_objext conftest.beam conftest.$ac_ext
14088 fi
14089
14090       LIBS="$am_save_LIBS"
14091
14092 fi
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14094 $as_echo "$am_cv_func_iconv_works" >&6; }
14095     case "$am_cv_func_iconv_works" in
14096       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14097       *)   am_func_iconv=yes ;;
14098     esac
14099   else
14100     am_func_iconv=no am_cv_lib_iconv=no
14101   fi
14102   if test "$am_func_iconv" = yes; then
14103
14104 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14105
14106   fi
14107   if test "$am_cv_lib_iconv" = yes; then
14108     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14109 $as_echo_n "checking how to link with libiconv... " >&6; }
14110     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14111 $as_echo "$LIBICONV" >&6; }
14112   else
14113             CPPFLAGS="$am_save_CPPFLAGS"
14114     LIBICONV=
14115     LTLIBICONV=
14116   fi
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128     use_additional=yes
14129
14130   acl_save_prefix="$prefix"
14131   prefix="$acl_final_prefix"
14132   acl_save_exec_prefix="$exec_prefix"
14133   exec_prefix="$acl_final_exec_prefix"
14134
14135     eval additional_includedir=\"$includedir\"
14136     eval additional_libdir=\"$libdir\"
14137
14138   exec_prefix="$acl_save_exec_prefix"
14139   prefix="$acl_save_prefix"
14140
14141
14142 # Check whether --with-libintl-prefix was given.
14143 if test "${with_libintl_prefix+set}" = set; then :
14144   withval=$with_libintl_prefix;
14145     if test "X$withval" = "Xno"; then
14146       use_additional=no
14147     else
14148       if test "X$withval" = "X"; then
14149
14150   acl_save_prefix="$prefix"
14151   prefix="$acl_final_prefix"
14152   acl_save_exec_prefix="$exec_prefix"
14153   exec_prefix="$acl_final_exec_prefix"
14154
14155           eval additional_includedir=\"$includedir\"
14156           eval additional_libdir=\"$libdir\"
14157
14158   exec_prefix="$acl_save_exec_prefix"
14159   prefix="$acl_save_prefix"
14160
14161       else
14162         additional_includedir="$withval/include"
14163         additional_libdir="$withval/$acl_libdirstem"
14164         if test "$acl_libdirstem2" != "$acl_libdirstem" \
14165            && ! test -d "$withval/$acl_libdirstem"; then
14166           additional_libdir="$withval/$acl_libdirstem2"
14167         fi
14168       fi
14169     fi
14170
14171 fi
14172
14173       LIBINTL=
14174   LTLIBINTL=
14175   INCINTL=
14176   LIBINTL_PREFIX=
14177       HAVE_LIBINTL=
14178   rpathdirs=
14179   ltrpathdirs=
14180   names_already_handled=
14181   names_next_round='intl '
14182   while test -n "$names_next_round"; do
14183     names_this_round="$names_next_round"
14184     names_next_round=
14185     for name in $names_this_round; do
14186       already_handled=
14187       for n in $names_already_handled; do
14188         if test "$n" = "$name"; then
14189           already_handled=yes
14190           break
14191         fi
14192       done
14193       if test -z "$already_handled"; then
14194         names_already_handled="$names_already_handled $name"
14195                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14196         eval value=\"\$HAVE_LIB$uppername\"
14197         if test -n "$value"; then
14198           if test "$value" = yes; then
14199             eval value=\"\$LIB$uppername\"
14200             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14201             eval value=\"\$LTLIB$uppername\"
14202             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14203           else
14204                                     :
14205           fi
14206         else
14207                               found_dir=
14208           found_la=
14209           found_so=
14210           found_a=
14211           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
14212           if test -n "$acl_shlibext"; then
14213             shrext=".$acl_shlibext"             # typically: shrext=.so
14214           else
14215             shrext=
14216           fi
14217           if test $use_additional = yes; then
14218             dir="$additional_libdir"
14219                                     if test -n "$acl_shlibext"; then
14220               if test -f "$dir/$libname$shrext"; then
14221                 found_dir="$dir"
14222                 found_so="$dir/$libname$shrext"
14223               else
14224                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14225                   ver=`(cd "$dir" && \
14226                         for f in "$libname$shrext".*; do echo "$f"; done \
14227                         | sed -e "s,^$libname$shrext\\\\.,," \
14228                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14229                         | sed 1q ) 2>/dev/null`
14230                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14231                     found_dir="$dir"
14232                     found_so="$dir/$libname$shrext.$ver"
14233                   fi
14234                 else
14235                   eval library_names=\"$acl_library_names_spec\"
14236                   for f in $library_names; do
14237                     if test -f "$dir/$f"; then
14238                       found_dir="$dir"
14239                       found_so="$dir/$f"
14240                       break
14241                     fi
14242                   done
14243                 fi
14244               fi
14245             fi
14246                         if test "X$found_dir" = "X"; then
14247               if test -f "$dir/$libname.$acl_libext"; then
14248                 found_dir="$dir"
14249                 found_a="$dir/$libname.$acl_libext"
14250               fi
14251             fi
14252             if test "X$found_dir" != "X"; then
14253               if test -f "$dir/$libname.la"; then
14254                 found_la="$dir/$libname.la"
14255               fi
14256             fi
14257           fi
14258           if test "X$found_dir" = "X"; then
14259             for x in $LDFLAGS $LTLIBINTL; do
14260
14261   acl_save_prefix="$prefix"
14262   prefix="$acl_final_prefix"
14263   acl_save_exec_prefix="$exec_prefix"
14264   exec_prefix="$acl_final_exec_prefix"
14265   eval x=\"$x\"
14266   exec_prefix="$acl_save_exec_prefix"
14267   prefix="$acl_save_prefix"
14268
14269               case "$x" in
14270                 -L*)
14271                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14272                                     if test -n "$acl_shlibext"; then
14273                     if test -f "$dir/$libname$shrext"; then
14274                       found_dir="$dir"
14275                       found_so="$dir/$libname$shrext"
14276                     else
14277                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14278                         ver=`(cd "$dir" && \
14279                               for f in "$libname$shrext".*; do echo "$f"; done \
14280                               | sed -e "s,^$libname$shrext\\\\.,," \
14281                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14282                               | sed 1q ) 2>/dev/null`
14283                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14284                           found_dir="$dir"
14285                           found_so="$dir/$libname$shrext.$ver"
14286                         fi
14287                       else
14288                         eval library_names=\"$acl_library_names_spec\"
14289                         for f in $library_names; do
14290                           if test -f "$dir/$f"; then
14291                             found_dir="$dir"
14292                             found_so="$dir/$f"
14293                             break
14294                           fi
14295                         done
14296                       fi
14297                     fi
14298                   fi
14299                                     if test "X$found_dir" = "X"; then
14300                     if test -f "$dir/$libname.$acl_libext"; then
14301                       found_dir="$dir"
14302                       found_a="$dir/$libname.$acl_libext"
14303                     fi
14304                   fi
14305                   if test "X$found_dir" != "X"; then
14306                     if test -f "$dir/$libname.la"; then
14307                       found_la="$dir/$libname.la"
14308                     fi
14309                   fi
14310                   ;;
14311               esac
14312               if test "X$found_dir" != "X"; then
14313                 break
14314               fi
14315             done
14316           fi
14317           if test "X$found_dir" != "X"; then
14318                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14319             if test "X$found_so" != "X"; then
14320                                                         if test "$enable_rpath" = no \
14321                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14322                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14323                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14324               else
14325                                                                                 haveit=
14326                 for x in $ltrpathdirs; do
14327                   if test "X$x" = "X$found_dir"; then
14328                     haveit=yes
14329                     break
14330                   fi
14331                 done
14332                 if test -z "$haveit"; then
14333                   ltrpathdirs="$ltrpathdirs $found_dir"
14334                 fi
14335                                 if test "$acl_hardcode_direct" = yes; then
14336                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14337                 else
14338                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14339                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14340                                                             haveit=
14341                     for x in $rpathdirs; do
14342                       if test "X$x" = "X$found_dir"; then
14343                         haveit=yes
14344                         break
14345                       fi
14346                     done
14347                     if test -z "$haveit"; then
14348                       rpathdirs="$rpathdirs $found_dir"
14349                     fi
14350                   else
14351                                                                                 haveit=
14352                     for x in $LDFLAGS $LIBINTL; do
14353
14354   acl_save_prefix="$prefix"
14355   prefix="$acl_final_prefix"
14356   acl_save_exec_prefix="$exec_prefix"
14357   exec_prefix="$acl_final_exec_prefix"
14358   eval x=\"$x\"
14359   exec_prefix="$acl_save_exec_prefix"
14360   prefix="$acl_save_prefix"
14361
14362                       if test "X$x" = "X-L$found_dir"; then
14363                         haveit=yes
14364                         break
14365                       fi
14366                     done
14367                     if test -z "$haveit"; then
14368                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14369                     fi
14370                     if test "$acl_hardcode_minus_L" != no; then
14371                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14372                     else
14373                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14374                     fi
14375                   fi
14376                 fi
14377               fi
14378             else
14379               if test "X$found_a" != "X"; then
14380                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14381               else
14382                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14383               fi
14384             fi
14385                         additional_includedir=
14386             case "$found_dir" in
14387               */$acl_libdirstem | */$acl_libdirstem/)
14388                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14389                 if test "$name" = 'intl'; then
14390                   LIBINTL_PREFIX="$basedir"
14391                 fi
14392                 additional_includedir="$basedir/include"
14393                 ;;
14394               */$acl_libdirstem2 | */$acl_libdirstem2/)
14395                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14396                 if test "$name" = 'intl'; then
14397                   LIBINTL_PREFIX="$basedir"
14398                 fi
14399                 additional_includedir="$basedir/include"
14400                 ;;
14401             esac
14402             if test "X$additional_includedir" != "X"; then
14403                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14404                 haveit=
14405                 if test "X$additional_includedir" = "X/usr/local/include"; then
14406                   if test -n "$GCC"; then
14407                     case $host_os in
14408                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14409                     esac
14410                   fi
14411                 fi
14412                 if test -z "$haveit"; then
14413                   for x in $CPPFLAGS $INCINTL; do
14414
14415   acl_save_prefix="$prefix"
14416   prefix="$acl_final_prefix"
14417   acl_save_exec_prefix="$exec_prefix"
14418   exec_prefix="$acl_final_exec_prefix"
14419   eval x=\"$x\"
14420   exec_prefix="$acl_save_exec_prefix"
14421   prefix="$acl_save_prefix"
14422
14423                     if test "X$x" = "X-I$additional_includedir"; then
14424                       haveit=yes
14425                       break
14426                     fi
14427                   done
14428                   if test -z "$haveit"; then
14429                     if test -d "$additional_includedir"; then
14430                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14431                     fi
14432                   fi
14433                 fi
14434               fi
14435             fi
14436                         if test -n "$found_la"; then
14437                                                         save_libdir="$libdir"
14438               case "$found_la" in
14439                 */* | *\\*) . "$found_la" ;;
14440                 *) . "./$found_la" ;;
14441               esac
14442               libdir="$save_libdir"
14443                             for dep in $dependency_libs; do
14444                 case "$dep" in
14445                   -L*)
14446                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14447                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14448                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14449                       haveit=
14450                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14451                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14452                         if test -n "$GCC"; then
14453                           case $host_os in
14454                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14455                           esac
14456                         fi
14457                       fi
14458                       if test -z "$haveit"; then
14459                         haveit=
14460                         for x in $LDFLAGS $LIBINTL; do
14461
14462   acl_save_prefix="$prefix"
14463   prefix="$acl_final_prefix"
14464   acl_save_exec_prefix="$exec_prefix"
14465   exec_prefix="$acl_final_exec_prefix"
14466   eval x=\"$x\"
14467   exec_prefix="$acl_save_exec_prefix"
14468   prefix="$acl_save_prefix"
14469
14470                           if test "X$x" = "X-L$additional_libdir"; then
14471                             haveit=yes
14472                             break
14473                           fi
14474                         done
14475                         if test -z "$haveit"; then
14476                           if test -d "$additional_libdir"; then
14477                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14478                           fi
14479                         fi
14480                         haveit=
14481                         for x in $LDFLAGS $LTLIBINTL; do
14482
14483   acl_save_prefix="$prefix"
14484   prefix="$acl_final_prefix"
14485   acl_save_exec_prefix="$exec_prefix"
14486   exec_prefix="$acl_final_exec_prefix"
14487   eval x=\"$x\"
14488   exec_prefix="$acl_save_exec_prefix"
14489   prefix="$acl_save_prefix"
14490
14491                           if test "X$x" = "X-L$additional_libdir"; then
14492                             haveit=yes
14493                             break
14494                           fi
14495                         done
14496                         if test -z "$haveit"; then
14497                           if test -d "$additional_libdir"; then
14498                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14499                           fi
14500                         fi
14501                       fi
14502                     fi
14503                     ;;
14504                   -R*)
14505                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14506                     if test "$enable_rpath" != no; then
14507                                                                   haveit=
14508                       for x in $rpathdirs; do
14509                         if test "X$x" = "X$dir"; then
14510                           haveit=yes
14511                           break
14512                         fi
14513                       done
14514                       if test -z "$haveit"; then
14515                         rpathdirs="$rpathdirs $dir"
14516                       fi
14517                                                                   haveit=
14518                       for x in $ltrpathdirs; do
14519                         if test "X$x" = "X$dir"; then
14520                           haveit=yes
14521                           break
14522                         fi
14523                       done
14524                       if test -z "$haveit"; then
14525                         ltrpathdirs="$ltrpathdirs $dir"
14526                       fi
14527                     fi
14528                     ;;
14529                   -l*)
14530                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14531                     ;;
14532                   *.la)
14533                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14534                     ;;
14535                   *)
14536                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14537                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14538                     ;;
14539                 esac
14540               done
14541             fi
14542           else
14543                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14544             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14545           fi
14546         fi
14547       fi
14548     done
14549   done
14550   if test "X$rpathdirs" != "X"; then
14551     if test -n "$acl_hardcode_libdir_separator"; then
14552                         alldirs=
14553       for found_dir in $rpathdirs; do
14554         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14555       done
14556             acl_save_libdir="$libdir"
14557       libdir="$alldirs"
14558       eval flag=\"$acl_hardcode_libdir_flag_spec\"
14559       libdir="$acl_save_libdir"
14560       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14561     else
14562             for found_dir in $rpathdirs; do
14563         acl_save_libdir="$libdir"
14564         libdir="$found_dir"
14565         eval flag=\"$acl_hardcode_libdir_flag_spec\"
14566         libdir="$acl_save_libdir"
14567         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14568       done
14569     fi
14570   fi
14571   if test "X$ltrpathdirs" != "X"; then
14572             for found_dir in $ltrpathdirs; do
14573       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14574     done
14575   fi
14576
14577
14578
14579
14580
14581
14582           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14583 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14584 if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
14585   $as_echo_n "(cached) " >&6
14586 else
14587   gt_save_CPPFLAGS="$CPPFLAGS"
14588             CPPFLAGS="$CPPFLAGS $INCINTL"
14589             gt_save_LIBS="$LIBS"
14590             LIBS="$LIBS $LIBINTL"
14591                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14592 /* end confdefs.h.  */
14593 #include <libintl.h>
14594 $gt_revision_test_code
14595 extern int _nl_msg_cat_cntr;
14596 extern
14597 #ifdef __cplusplus
14598 "C"
14599 #endif
14600 const char *_nl_expand_alias (const char *);
14601 int
14602 main ()
14603 {
14604 bindtextdomain ("", "");
14605 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14606   ;
14607   return 0;
14608 }
14609 _ACEOF
14610 if ac_fn_c_try_link "$LINENO"; then :
14611   eval "$gt_func_gnugettext_libintl=yes"
14612 else
14613   eval "$gt_func_gnugettext_libintl=no"
14614 fi
14615 rm -f core conftest.err conftest.$ac_objext \
14616     conftest$ac_exeext conftest.$ac_ext
14617                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14618               LIBS="$LIBS $LIBICONV"
14619               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14620 /* end confdefs.h.  */
14621 #include <libintl.h>
14622 $gt_revision_test_code
14623 extern int _nl_msg_cat_cntr;
14624 extern
14625 #ifdef __cplusplus
14626 "C"
14627 #endif
14628 const char *_nl_expand_alias (const char *);
14629 int
14630 main ()
14631 {
14632 bindtextdomain ("", "");
14633 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14634   ;
14635   return 0;
14636 }
14637 _ACEOF
14638 if ac_fn_c_try_link "$LINENO"; then :
14639   LIBINTL="$LIBINTL $LIBICONV"
14640                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14641                 eval "$gt_func_gnugettext_libintl=yes"
14642
14643 fi
14644 rm -f core conftest.err conftest.$ac_objext \
14645     conftest$ac_exeext conftest.$ac_ext
14646             fi
14647             CPPFLAGS="$gt_save_CPPFLAGS"
14648             LIBS="$gt_save_LIBS"
14649 fi
14650 eval ac_res=\$$gt_func_gnugettext_libintl
14651                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14652 $as_echo "$ac_res" >&6; }
14653         fi
14654
14655                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14656            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14657                 && test "$PACKAGE" != gettext-runtime \
14658                 && test "$PACKAGE" != gettext-tools; }; then
14659           gt_use_preinstalled_gnugettext=yes
14660         else
14661                     LIBINTL=
14662           LTLIBINTL=
14663           INCINTL=
14664         fi
14665
14666
14667
14668     if test -n "$INTL_MACOSX_LIBS"; then
14669       if test "$gt_use_preinstalled_gnugettext" = "yes" \
14670          || test "$nls_cv_use_gnu_gettext" = "yes"; then
14671                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14672         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14673       fi
14674     fi
14675
14676     if test "$gt_use_preinstalled_gnugettext" = "yes" \
14677        || test "$nls_cv_use_gnu_gettext" = "yes"; then
14678
14679 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14680
14681     else
14682       USE_NLS=no
14683     fi
14684   fi
14685
14686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14687 $as_echo_n "checking whether to use NLS... " >&6; }
14688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14689 $as_echo "$USE_NLS" >&6; }
14690   if test "$USE_NLS" = "yes"; then
14691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14692 $as_echo_n "checking where the gettext function comes from... " >&6; }
14693     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14694       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14695         gt_source="external libintl"
14696       else
14697         gt_source="libc"
14698       fi
14699     else
14700       gt_source="included intl directory"
14701     fi
14702     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14703 $as_echo "$gt_source" >&6; }
14704   fi
14705
14706   if test "$USE_NLS" = "yes"; then
14707
14708     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14709       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14710         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14711 $as_echo_n "checking how to link with libintl... " >&6; }
14712         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14713 $as_echo "$LIBINTL" >&6; }
14714
14715   for element in $INCINTL; do
14716     haveit=
14717     for x in $CPPFLAGS; do
14718
14719   acl_save_prefix="$prefix"
14720   prefix="$acl_final_prefix"
14721   acl_save_exec_prefix="$exec_prefix"
14722   exec_prefix="$acl_final_exec_prefix"
14723   eval x=\"$x\"
14724   exec_prefix="$acl_save_exec_prefix"
14725   prefix="$acl_save_prefix"
14726
14727       if test "X$x" = "X$element"; then
14728         haveit=yes
14729         break
14730       fi
14731     done
14732     if test -z "$haveit"; then
14733       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14734     fi
14735   done
14736
14737       fi
14738
14739
14740 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14741
14742
14743 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14744
14745     fi
14746
14747         POSUB=po
14748   fi
14749
14750
14751
14752     INTLLIBS="$LIBINTL"
14753
14754
14755
14756
14757
14758
14759
14760
14761 GETTEXT_PACKAGE=PACKAGE_TARNAME
14762
14763
14764 $as_echo "#define GETTEXT_PACKAGE PACKAGE_TARNAME" >>confdefs.h
14765
14766
14767 ac_config_files="$ac_config_files Makefile po/Makefile.in moonshot.desktop moonshot-webp.desktop"
14768
14769
14770 cat >confcache <<\_ACEOF
14771 # This file is a shell script that caches the results of configure
14772 # tests run on this system so they can be shared between configure
14773 # scripts and configure runs, see configure's option --config-cache.
14774 # It is not useful on other systems.  If it contains results you don't
14775 # want to keep, you may remove or edit it.
14776 #
14777 # config.status only pays attention to the cache file if you give it
14778 # the --recheck option to rerun configure.
14779 #
14780 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14781 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14782 # following values.
14783
14784 _ACEOF
14785
14786 # The following way of writing the cache mishandles newlines in values,
14787 # but we know of no workaround that is simple, portable, and efficient.
14788 # So, we kill variables containing newlines.
14789 # Ultrix sh set writes to stderr and can't be redirected directly,
14790 # and sets the high bit in the cache file unless we assign to the vars.
14791 (
14792   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14793     eval ac_val=\$$ac_var
14794     case $ac_val in #(
14795     *${as_nl}*)
14796       case $ac_var in #(
14797       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14798 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14799       esac
14800       case $ac_var in #(
14801       _ | IFS | as_nl) ;; #(
14802       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14803       *) { eval $ac_var=; unset $ac_var;} ;;
14804       esac ;;
14805     esac
14806   done
14807
14808   (set) 2>&1 |
14809     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14810     *${as_nl}ac_space=\ *)
14811       # `set' does not quote correctly, so add quotes: double-quote
14812       # substitution turns \\\\ into \\, and sed turns \\ into \.
14813       sed -n \
14814         "s/'/'\\\\''/g;
14815           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14816       ;; #(
14817     *)
14818       # `set' quotes correctly as required by POSIX, so do not add quotes.
14819       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14820       ;;
14821     esac |
14822     sort
14823 ) |
14824   sed '
14825      /^ac_cv_env_/b end
14826      t clear
14827      :clear
14828      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14829      t end
14830      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14831      :end' >>confcache
14832 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14833   if test -w "$cache_file"; then
14834     test "x$cache_file" != "x/dev/null" &&
14835       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14836 $as_echo "$as_me: updating cache $cache_file" >&6;}
14837     cat confcache >$cache_file
14838   else
14839     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14840 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14841   fi
14842 fi
14843 rm -f confcache
14844
14845 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14846 # Let make expand exec_prefix.
14847 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14848
14849 DEFS=-DHAVE_CONFIG_H
14850
14851 ac_libobjs=
14852 ac_ltlibobjs=
14853 U=
14854 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14855   # 1. Remove the extension, and $U if already installed.
14856   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14857   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14858   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14859   #    will be set to the directory where LIBOBJS objects are built.
14860   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14861   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14862 done
14863 LIBOBJS=$ac_libobjs
14864
14865 LTLIBOBJS=$ac_ltlibobjs
14866
14867
14868  if test -n "$EXEEXT"; then
14869   am__EXEEXT_TRUE=
14870   am__EXEEXT_FALSE='#'
14871 else
14872   am__EXEEXT_TRUE='#'
14873   am__EXEEXT_FALSE=
14874 fi
14875
14876 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14877   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14879 fi
14880 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14881   as_fn_error $? "conditional \"AMDEP\" was never defined.
14882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14883 fi
14884 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14885   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14887 fi
14888 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
14889   as_fn_error $? "conditional \"OS_LINUX\" was never defined.
14890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14891 fi
14892 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
14893   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
14894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14895 fi
14896 if test -z "${IPC_MSRPC_TRUE}" && test -z "${IPC_MSRPC_FALSE}"; then
14897   as_fn_error $? "conditional \"IPC_MSRPC\" was never defined.
14898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14899 fi
14900 if test -z "${IPC_DBUS_TRUE}" && test -z "${IPC_DBUS_FALSE}"; then
14901   as_fn_error $? "conditional \"IPC_DBUS\" was never defined.
14902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14903 fi
14904 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14905   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14907 fi
14908
14909 : ${CONFIG_STATUS=./config.status}
14910 ac_write_fail=0
14911 ac_clean_files_save=$ac_clean_files
14912 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14914 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14915 as_write_fail=0
14916 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14917 #! $SHELL
14918 # Generated by $as_me.
14919 # Run this file to recreate the current configuration.
14920 # Compiler output produced by configure, useful for debugging
14921 # configure, is in config.log if it exists.
14922
14923 debug=false
14924 ac_cs_recheck=false
14925 ac_cs_silent=false
14926
14927 SHELL=\${CONFIG_SHELL-$SHELL}
14928 export SHELL
14929 _ASEOF
14930 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14931 ## -------------------- ##
14932 ## M4sh Initialization. ##
14933 ## -------------------- ##
14934
14935 # Be more Bourne compatible
14936 DUALCASE=1; export DUALCASE # for MKS sh
14937 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14938   emulate sh
14939   NULLCMD=:
14940   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14941   # is contrary to our usage.  Disable this feature.
14942   alias -g '${1+"$@"}'='"$@"'
14943   setopt NO_GLOB_SUBST
14944 else
14945   case `(set -o) 2>/dev/null` in #(
14946   *posix*) :
14947     set -o posix ;; #(
14948   *) :
14949      ;;
14950 esac
14951 fi
14952
14953
14954 as_nl='
14955 '
14956 export as_nl
14957 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14958 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14959 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14960 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14961 # Prefer a ksh shell builtin over an external printf program on Solaris,
14962 # but without wasting forks for bash or zsh.
14963 if test -z "$BASH_VERSION$ZSH_VERSION" \
14964     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14965   as_echo='print -r --'
14966   as_echo_n='print -rn --'
14967 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14968   as_echo='printf %s\n'
14969   as_echo_n='printf %s'
14970 else
14971   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14972     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14973     as_echo_n='/usr/ucb/echo -n'
14974   else
14975     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14976     as_echo_n_body='eval
14977       arg=$1;
14978       case $arg in #(
14979       *"$as_nl"*)
14980         expr "X$arg" : "X\\(.*\\)$as_nl";
14981         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14982       esac;
14983       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14984     '
14985     export as_echo_n_body
14986     as_echo_n='sh -c $as_echo_n_body as_echo'
14987   fi
14988   export as_echo_body
14989   as_echo='sh -c $as_echo_body as_echo'
14990 fi
14991
14992 # The user is always right.
14993 if test "${PATH_SEPARATOR+set}" != set; then
14994   PATH_SEPARATOR=:
14995   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14996     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14997       PATH_SEPARATOR=';'
14998   }
14999 fi
15000
15001
15002 # IFS
15003 # We need space, tab and new line, in precisely that order.  Quoting is
15004 # there to prevent editors from complaining about space-tab.
15005 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15006 # splitting by setting IFS to empty value.)
15007 IFS=" ""        $as_nl"
15008
15009 # Find who we are.  Look in the path if we contain no directory separator.
15010 case $0 in #((
15011   *[\\/]* ) as_myself=$0 ;;
15012   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15013 for as_dir in $PATH
15014 do
15015   IFS=$as_save_IFS
15016   test -z "$as_dir" && as_dir=.
15017     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15018   done
15019 IFS=$as_save_IFS
15020
15021      ;;
15022 esac
15023 # We did not find ourselves, most probably we were run as `sh COMMAND'
15024 # in which case we are not to be found in the path.
15025 if test "x$as_myself" = x; then
15026   as_myself=$0
15027 fi
15028 if test ! -f "$as_myself"; then
15029   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15030   exit 1
15031 fi
15032
15033 # Unset variables that we do not need and which cause bugs (e.g. in
15034 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15035 # suppresses any "Segmentation fault" message there.  '((' could
15036 # trigger a bug in pdksh 5.2.14.
15037 for as_var in BASH_ENV ENV MAIL MAILPATH
15038 do eval test x\${$as_var+set} = xset \
15039   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15040 done
15041 PS1='$ '
15042 PS2='> '
15043 PS4='+ '
15044
15045 # NLS nuisances.
15046 LC_ALL=C
15047 export LC_ALL
15048 LANGUAGE=C
15049 export LANGUAGE
15050
15051 # CDPATH.
15052 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15053
15054
15055 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15056 # ----------------------------------------
15057 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15058 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15059 # script with STATUS, using 1 if that was 0.
15060 as_fn_error ()
15061 {
15062   as_status=$1; test $as_status -eq 0 && as_status=1
15063   if test "$4"; then
15064     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15065     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15066   fi
15067   $as_echo "$as_me: error: $2" >&2
15068   as_fn_exit $as_status
15069 } # as_fn_error
15070
15071
15072 # as_fn_set_status STATUS
15073 # -----------------------
15074 # Set $? to STATUS, without forking.
15075 as_fn_set_status ()
15076 {
15077   return $1
15078 } # as_fn_set_status
15079
15080 # as_fn_exit STATUS
15081 # -----------------
15082 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15083 as_fn_exit ()
15084 {
15085   set +e
15086   as_fn_set_status $1
15087   exit $1
15088 } # as_fn_exit
15089
15090 # as_fn_unset VAR
15091 # ---------------
15092 # Portably unset VAR.
15093 as_fn_unset ()
15094 {
15095   { eval $1=; unset $1;}
15096 }
15097 as_unset=as_fn_unset
15098 # as_fn_append VAR VALUE
15099 # ----------------------
15100 # Append the text in VALUE to the end of the definition contained in VAR. Take
15101 # advantage of any shell optimizations that allow amortized linear growth over
15102 # repeated appends, instead of the typical quadratic growth present in naive
15103 # implementations.
15104 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15105   eval 'as_fn_append ()
15106   {
15107     eval $1+=\$2
15108   }'
15109 else
15110   as_fn_append ()
15111   {
15112     eval $1=\$$1\$2
15113   }
15114 fi # as_fn_append
15115
15116 # as_fn_arith ARG...
15117 # ------------------
15118 # Perform arithmetic evaluation on the ARGs, and store the result in the
15119 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15120 # must be portable across $(()) and expr.
15121 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15122   eval 'as_fn_arith ()
15123   {
15124     as_val=$(( $* ))
15125   }'
15126 else
15127   as_fn_arith ()
15128   {
15129     as_val=`expr "$@" || test $? -eq 1`
15130   }
15131 fi # as_fn_arith
15132
15133
15134 if expr a : '\(a\)' >/dev/null 2>&1 &&
15135    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15136   as_expr=expr
15137 else
15138   as_expr=false
15139 fi
15140
15141 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15142   as_basename=basename
15143 else
15144   as_basename=false
15145 fi
15146
15147 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15148   as_dirname=dirname
15149 else
15150   as_dirname=false
15151 fi
15152
15153 as_me=`$as_basename -- "$0" ||
15154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15155          X"$0" : 'X\(//\)$' \| \
15156          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15157 $as_echo X/"$0" |
15158     sed '/^.*\/\([^/][^/]*\)\/*$/{
15159             s//\1/
15160             q
15161           }
15162           /^X\/\(\/\/\)$/{
15163             s//\1/
15164             q
15165           }
15166           /^X\/\(\/\).*/{
15167             s//\1/
15168             q
15169           }
15170           s/.*/./; q'`
15171
15172 # Avoid depending upon Character Ranges.
15173 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15174 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15175 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15176 as_cr_digits='0123456789'
15177 as_cr_alnum=$as_cr_Letters$as_cr_digits
15178
15179 ECHO_C= ECHO_N= ECHO_T=
15180 case `echo -n x` in #(((((
15181 -n*)
15182   case `echo 'xy\c'` in
15183   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15184   xy)  ECHO_C='\c';;
15185   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15186        ECHO_T=' ';;
15187   esac;;
15188 *)
15189   ECHO_N='-n';;
15190 esac
15191
15192 rm -f conf$$ conf$$.exe conf$$.file
15193 if test -d conf$$.dir; then
15194   rm -f conf$$.dir/conf$$.file
15195 else
15196   rm -f conf$$.dir
15197   mkdir conf$$.dir 2>/dev/null
15198 fi
15199 if (echo >conf$$.file) 2>/dev/null; then
15200   if ln -s conf$$.file conf$$ 2>/dev/null; then
15201     as_ln_s='ln -s'
15202     # ... but there are two gotchas:
15203     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15204     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15205     # In both cases, we have to default to `cp -p'.
15206     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15207       as_ln_s='cp -p'
15208   elif ln conf$$.file conf$$ 2>/dev/null; then
15209     as_ln_s=ln
15210   else
15211     as_ln_s='cp -p'
15212   fi
15213 else
15214   as_ln_s='cp -p'
15215 fi
15216 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15217 rmdir conf$$.dir 2>/dev/null
15218
15219
15220 # as_fn_mkdir_p
15221 # -------------
15222 # Create "$as_dir" as a directory, including parents if necessary.
15223 as_fn_mkdir_p ()
15224 {
15225
15226   case $as_dir in #(
15227   -*) as_dir=./$as_dir;;
15228   esac
15229   test -d "$as_dir" || eval $as_mkdir_p || {
15230     as_dirs=
15231     while :; do
15232       case $as_dir in #(
15233       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15234       *) as_qdir=$as_dir;;
15235       esac
15236       as_dirs="'$as_qdir' $as_dirs"
15237       as_dir=`$as_dirname -- "$as_dir" ||
15238 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15239          X"$as_dir" : 'X\(//\)[^/]' \| \
15240          X"$as_dir" : 'X\(//\)$' \| \
15241          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15242 $as_echo X"$as_dir" |
15243     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15244             s//\1/
15245             q
15246           }
15247           /^X\(\/\/\)[^/].*/{
15248             s//\1/
15249             q
15250           }
15251           /^X\(\/\/\)$/{
15252             s//\1/
15253             q
15254           }
15255           /^X\(\/\).*/{
15256             s//\1/
15257             q
15258           }
15259           s/.*/./; q'`
15260       test -d "$as_dir" && break
15261     done
15262     test -z "$as_dirs" || eval "mkdir $as_dirs"
15263   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15264
15265
15266 } # as_fn_mkdir_p
15267 if mkdir -p . 2>/dev/null; then
15268   as_mkdir_p='mkdir -p "$as_dir"'
15269 else
15270   test -d ./-p && rmdir ./-p
15271   as_mkdir_p=false
15272 fi
15273
15274 if test -x / >/dev/null 2>&1; then
15275   as_test_x='test -x'
15276 else
15277   if ls -dL / >/dev/null 2>&1; then
15278     as_ls_L_option=L
15279   else
15280     as_ls_L_option=
15281   fi
15282   as_test_x='
15283     eval sh -c '\''
15284       if test -d "$1"; then
15285         test -d "$1/.";
15286       else
15287         case $1 in #(
15288         -*)set "./$1";;
15289         esac;
15290         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15291         ???[sx]*):;;*)false;;esac;fi
15292     '\'' sh
15293   '
15294 fi
15295 as_executable_p=$as_test_x
15296
15297 # Sed expression to map a string onto a valid CPP name.
15298 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15299
15300 # Sed expression to map a string onto a valid variable name.
15301 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15302
15303
15304 exec 6>&1
15305 ## ----------------------------------- ##
15306 ## Main body of $CONFIG_STATUS script. ##
15307 ## ----------------------------------- ##
15308 _ASEOF
15309 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15310
15311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15312 # Save the log message, to keep $0 and so on meaningful, and to
15313 # report actual input values of CONFIG_FILES etc. instead of their
15314 # values after options handling.
15315 ac_log="
15316 This file was extended by Moonshot $as_me 0.0.1, which was
15317 generated by GNU Autoconf 2.67.  Invocation command line was
15318
15319   CONFIG_FILES    = $CONFIG_FILES
15320   CONFIG_HEADERS  = $CONFIG_HEADERS
15321   CONFIG_LINKS    = $CONFIG_LINKS
15322   CONFIG_COMMANDS = $CONFIG_COMMANDS
15323   $ $0 $@
15324
15325 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15326 "
15327
15328 _ACEOF
15329
15330 case $ac_config_files in *"
15331 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15332 esac
15333
15334 case $ac_config_headers in *"
15335 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15336 esac
15337
15338
15339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15340 # Files that config.status was made for.
15341 config_files="$ac_config_files"
15342 config_headers="$ac_config_headers"
15343 config_commands="$ac_config_commands"
15344
15345 _ACEOF
15346
15347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15348 ac_cs_usage="\
15349 \`$as_me' instantiates files and other configuration actions
15350 from templates according to the current configuration.  Unless the files
15351 and actions are specified as TAGs, all are instantiated by default.
15352
15353 Usage: $0 [OPTION]... [TAG]...
15354
15355   -h, --help       print this help, then exit
15356   -V, --version    print version number and configuration settings, then exit
15357       --config     print configuration, then exit
15358   -q, --quiet, --silent
15359                    do not print progress messages
15360   -d, --debug      don't remove temporary files
15361       --recheck    update $as_me by reconfiguring in the same conditions
15362       --file=FILE[:TEMPLATE]
15363                    instantiate the configuration file FILE
15364       --header=FILE[:TEMPLATE]
15365                    instantiate the configuration header FILE
15366
15367 Configuration files:
15368 $config_files
15369
15370 Configuration headers:
15371 $config_headers
15372
15373 Configuration commands:
15374 $config_commands
15375
15376 Report bugs to <BUG-REPORT-ADDRESS>."
15377
15378 _ACEOF
15379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15380 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15381 ac_cs_version="\\
15382 Moonshot config.status 0.0.1
15383 configured by $0, generated by GNU Autoconf 2.67,
15384   with options \\"\$ac_cs_config\\"
15385
15386 Copyright (C) 2010 Free Software Foundation, Inc.
15387 This config.status script is free software; the Free Software Foundation
15388 gives unlimited permission to copy, distribute and modify it."
15389
15390 ac_pwd='$ac_pwd'
15391 srcdir='$srcdir'
15392 INSTALL='$INSTALL'
15393 MKDIR_P='$MKDIR_P'
15394 AWK='$AWK'
15395 test -n "\$AWK" || AWK=awk
15396 _ACEOF
15397
15398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15399 # The default lists apply if the user does not specify any file.
15400 ac_need_defaults=:
15401 while test $# != 0
15402 do
15403   case $1 in
15404   --*=?*)
15405     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15406     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15407     ac_shift=:
15408     ;;
15409   --*=)
15410     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15411     ac_optarg=
15412     ac_shift=:
15413     ;;
15414   *)
15415     ac_option=$1
15416     ac_optarg=$2
15417     ac_shift=shift
15418     ;;
15419   esac
15420
15421   case $ac_option in
15422   # Handling of the options.
15423   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15424     ac_cs_recheck=: ;;
15425   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15426     $as_echo "$ac_cs_version"; exit ;;
15427   --config | --confi | --conf | --con | --co | --c )
15428     $as_echo "$ac_cs_config"; exit ;;
15429   --debug | --debu | --deb | --de | --d | -d )
15430     debug=: ;;
15431   --file | --fil | --fi | --f )
15432     $ac_shift
15433     case $ac_optarg in
15434     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15435     '') as_fn_error $? "missing file argument" ;;
15436     esac
15437     as_fn_append CONFIG_FILES " '$ac_optarg'"
15438     ac_need_defaults=false;;
15439   --header | --heade | --head | --hea )
15440     $ac_shift
15441     case $ac_optarg in
15442     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15443     esac
15444     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15445     ac_need_defaults=false;;
15446   --he | --h)
15447     # Conflict between --help and --header
15448     as_fn_error $? "ambiguous option: \`$1'
15449 Try \`$0 --help' for more information.";;
15450   --help | --hel | -h )
15451     $as_echo "$ac_cs_usage"; exit ;;
15452   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15453   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15454     ac_cs_silent=: ;;
15455
15456   # This is an error.
15457   -*) as_fn_error $? "unrecognized option: \`$1'
15458 Try \`$0 --help' for more information." ;;
15459
15460   *) as_fn_append ac_config_targets " $1"
15461      ac_need_defaults=false ;;
15462
15463   esac
15464   shift
15465 done
15466
15467 ac_configure_extra_args=
15468
15469 if $ac_cs_silent; then
15470   exec 6>/dev/null
15471   ac_configure_extra_args="$ac_configure_extra_args --silent"
15472 fi
15473
15474 _ACEOF
15475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15476 if \$ac_cs_recheck; then
15477   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15478   shift
15479   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15480   CONFIG_SHELL='$SHELL'
15481   export CONFIG_SHELL
15482   exec "\$@"
15483 fi
15484
15485 _ACEOF
15486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15487 exec 5>>config.log
15488 {
15489   echo
15490   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15491 ## Running $as_me. ##
15492 _ASBOX
15493   $as_echo "$ac_log"
15494 } >&5
15495
15496 _ACEOF
15497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15498 #
15499 # INIT-COMMANDS
15500 #
15501 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15502
15503
15504 # The HP-UX ksh and POSIX shell print the target directory to stdout
15505 # if CDPATH is set.
15506 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15507
15508 sed_quote_subst='$sed_quote_subst'
15509 double_quote_subst='$double_quote_subst'
15510 delay_variable_subst='$delay_variable_subst'
15511 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15512 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15513 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
15514 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15515 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15516 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15517 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15518 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15519 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15520 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15521 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15522 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15523 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15524 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15525 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15526 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15527 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15528 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15529 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15530 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15531 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15532 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15533 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15534 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15535 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15536 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15537 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15538 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15539 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15540 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15541 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15542 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15543 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15544 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15545 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15546 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15547 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15548 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15549 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15550 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15551 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15552 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15553 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15554 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15555 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15556 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15557 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"`'
15558 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"`'
15559 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15560 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15561 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15562 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15563 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15564 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15565 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15566 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15567 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15568 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15569 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15570 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15571 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15572 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15573 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15574 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15575 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15576 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15577 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15578 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15579 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15580 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15581 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15582 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15583 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15584 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15585 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15586 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15587 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15588 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15589 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15590 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15591 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15592 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15593 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15594 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15595 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15596 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15597 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15598 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15599 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15600 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15601 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15602 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15603 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15604 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15605 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15606 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15607 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15608 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15609 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15610 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15611 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15612 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15613 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15614 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15615 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15616 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15617 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15618 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15619 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15620 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15621 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15622 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15623 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15624 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15625 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15626 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15627 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15628 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15629 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15630 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15631
15632 LTCC='$LTCC'
15633 LTCFLAGS='$LTCFLAGS'
15634 compiler='$compiler_DEFAULT'
15635
15636 # Quote evaled strings.
15637 for var in SED \
15638 GREP \
15639 EGREP \
15640 FGREP \
15641 LD \
15642 NM \
15643 LN_S \
15644 lt_SP2NL \
15645 lt_NL2SP \
15646 reload_flag \
15647 deplibs_check_method \
15648 file_magic_cmd \
15649 AR \
15650 AR_FLAGS \
15651 STRIP \
15652 RANLIB \
15653 CC \
15654 CFLAGS \
15655 compiler \
15656 lt_cv_sys_global_symbol_pipe \
15657 lt_cv_sys_global_symbol_to_cdecl \
15658 lt_cv_sys_global_symbol_to_c_name_address \
15659 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15660 SHELL \
15661 ECHO \
15662 lt_prog_compiler_no_builtin_flag \
15663 lt_prog_compiler_wl \
15664 lt_prog_compiler_pic \
15665 lt_prog_compiler_static \
15666 lt_cv_prog_compiler_c_o \
15667 need_locks \
15668 DSYMUTIL \
15669 NMEDIT \
15670 LIPO \
15671 OTOOL \
15672 OTOOL64 \
15673 shrext_cmds \
15674 export_dynamic_flag_spec \
15675 whole_archive_flag_spec \
15676 compiler_needs_object \
15677 with_gnu_ld \
15678 allow_undefined_flag \
15679 no_undefined_flag \
15680 hardcode_libdir_flag_spec \
15681 hardcode_libdir_flag_spec_ld \
15682 hardcode_libdir_separator \
15683 fix_srcfile_path \
15684 exclude_expsyms \
15685 include_expsyms \
15686 file_list_spec \
15687 variables_saved_for_relink \
15688 libname_spec \
15689 library_names_spec \
15690 soname_spec \
15691 finish_eval \
15692 old_striplib \
15693 striplib; do
15694     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15695     *[\\\\\\\`\\"\\\$]*)
15696       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15697       ;;
15698     *)
15699       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15700       ;;
15701     esac
15702 done
15703
15704 # Double-quote double-evaled strings.
15705 for var in reload_cmds \
15706 old_postinstall_cmds \
15707 old_postuninstall_cmds \
15708 old_archive_cmds \
15709 extract_expsyms_cmds \
15710 old_archive_from_new_cmds \
15711 old_archive_from_expsyms_cmds \
15712 archive_cmds \
15713 archive_expsym_cmds \
15714 module_cmds \
15715 module_expsym_cmds \
15716 export_symbols_cmds \
15717 prelink_cmds \
15718 postinstall_cmds \
15719 postuninstall_cmds \
15720 finish_cmds \
15721 sys_lib_search_path_spec \
15722 sys_lib_dlsearch_path_spec; do
15723     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15724     *[\\\\\\\`\\"\\\$]*)
15725       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15726       ;;
15727     *)
15728       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15729       ;;
15730     esac
15731 done
15732
15733 # Fix-up fallback echo if it was mangled by the above quoting rules.
15734 case \$lt_ECHO in
15735 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15736   ;;
15737 esac
15738
15739 ac_aux_dir='$ac_aux_dir'
15740 xsi_shell='$xsi_shell'
15741 lt_shell_append='$lt_shell_append'
15742
15743 # See if we are running on zsh, and set the options which allow our
15744 # commands through without removal of \ escapes INIT.
15745 if test -n "\${ZSH_VERSION+set}" ; then
15746    setopt NO_GLOB_SUBST
15747 fi
15748
15749
15750     PACKAGE='$PACKAGE'
15751     VERSION='$VERSION'
15752     TIMESTAMP='$TIMESTAMP'
15753     RM='$RM'
15754     ofile='$ofile'
15755
15756
15757
15758 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15759     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15760     # from automake < 1.5.
15761     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15762     # Capture the value of LINGUAS because we need it to compute CATALOGS.
15763     LINGUAS="${LINGUAS-%UNSET%}"
15764
15765
15766 _ACEOF
15767
15768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15769
15770 # Handling of arguments.
15771 for ac_config_target in $ac_config_targets
15772 do
15773   case $ac_config_target in
15774     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15775     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15776     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15777     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15778     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15779     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15780     "moonshot.desktop") CONFIG_FILES="$CONFIG_FILES moonshot.desktop" ;;
15781     "moonshot-webp.desktop") CONFIG_FILES="$CONFIG_FILES moonshot-webp.desktop" ;;
15782
15783   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
15784   esac
15785 done
15786
15787
15788 # If the user did not use the arguments to specify the items to instantiate,
15789 # then the envvar interface is used.  Set only those that are not.
15790 # We use the long form for the default assignment because of an extremely
15791 # bizarre bug on SunOS 4.1.3.
15792 if $ac_need_defaults; then
15793   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15794   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15795   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15796 fi
15797
15798 # Have a temporary directory for convenience.  Make it in the build tree
15799 # simply because there is no reason against having it here, and in addition,
15800 # creating and moving files from /tmp can sometimes cause problems.
15801 # Hook for its removal unless debugging.
15802 # Note that there is a small window in which the directory will not be cleaned:
15803 # after its creation but before its name has been assigned to `$tmp'.
15804 $debug ||
15805 {
15806   tmp=
15807   trap 'exit_status=$?
15808   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15809 ' 0
15810   trap 'as_fn_exit 1' 1 2 13 15
15811 }
15812 # Create a (secure) tmp directory for tmp files.
15813
15814 {
15815   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15816   test -n "$tmp" && test -d "$tmp"
15817 }  ||
15818 {
15819   tmp=./conf$$-$RANDOM
15820   (umask 077 && mkdir "$tmp")
15821 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15822
15823 # Set up the scripts for CONFIG_FILES section.
15824 # No need to generate them if there are no CONFIG_FILES.
15825 # This happens for instance with `./config.status config.h'.
15826 if test -n "$CONFIG_FILES"; then
15827
15828
15829 ac_cr=`echo X | tr X '\015'`
15830 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15831 # But we know of no other shell where ac_cr would be empty at this
15832 # point, so we can use a bashism as a fallback.
15833 if test "x$ac_cr" = x; then
15834   eval ac_cr=\$\'\\r\'
15835 fi
15836 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15837 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15838   ac_cs_awk_cr='\\r'
15839 else
15840   ac_cs_awk_cr=$ac_cr
15841 fi
15842
15843 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15844 _ACEOF
15845
15846
15847 {
15848   echo "cat >conf$$subs.awk <<_ACEOF" &&
15849   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15850   echo "_ACEOF"
15851 } >conf$$subs.sh ||
15852   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15853 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15854 ac_delim='%!_!# '
15855 for ac_last_try in false false false false false :; do
15856   . ./conf$$subs.sh ||
15857     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15858
15859   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15860   if test $ac_delim_n = $ac_delim_num; then
15861     break
15862   elif $ac_last_try; then
15863     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15864   else
15865     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15866   fi
15867 done
15868 rm -f conf$$subs.sh
15869
15870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15871 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15872 _ACEOF
15873 sed -n '
15874 h
15875 s/^/S["/; s/!.*/"]=/
15876 p
15877 g
15878 s/^[^!]*!//
15879 :repl
15880 t repl
15881 s/'"$ac_delim"'$//
15882 t delim
15883 :nl
15884 h
15885 s/\(.\{148\}\)..*/\1/
15886 t more1
15887 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15888 p
15889 n
15890 b repl
15891 :more1
15892 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15893 p
15894 g
15895 s/.\{148\}//
15896 t nl
15897 :delim
15898 h
15899 s/\(.\{148\}\)..*/\1/
15900 t more2
15901 s/["\\]/\\&/g; s/^/"/; s/$/"/
15902 p
15903 b
15904 :more2
15905 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15906 p
15907 g
15908 s/.\{148\}//
15909 t delim
15910 ' <conf$$subs.awk | sed '
15911 /^[^""]/{
15912   N
15913   s/\n//
15914 }
15915 ' >>$CONFIG_STATUS || ac_write_fail=1
15916 rm -f conf$$subs.awk
15917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15918 _ACAWK
15919 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15920   for (key in S) S_is_set[key] = 1
15921   FS = "\a"
15922
15923 }
15924 {
15925   line = $ 0
15926   nfields = split(line, field, "@")
15927   substed = 0
15928   len = length(field[1])
15929   for (i = 2; i < nfields; i++) {
15930     key = field[i]
15931     keylen = length(key)
15932     if (S_is_set[key]) {
15933       value = S[key]
15934       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15935       len += length(value) + length(field[++i])
15936       substed = 1
15937     } else
15938       len += 1 + keylen
15939   }
15940
15941   print line
15942 }
15943
15944 _ACAWK
15945 _ACEOF
15946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15947 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15948   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15949 else
15950   cat
15951 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15952   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15953 _ACEOF
15954
15955 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15956 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15957 # trailing colons and then remove the whole line if VPATH becomes empty
15958 # (actually we leave an empty line to preserve line numbers).
15959 if test "x$srcdir" = x.; then
15960   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15961 h
15962 s///
15963 s/^/:/
15964 s/[      ]*$/:/
15965 s/:\$(srcdir):/:/g
15966 s/:\${srcdir}:/:/g
15967 s/:@srcdir@:/:/g
15968 s/^:*//
15969 s/:*$//
15970 x
15971 s/\(=[   ]*\).*/\1/
15972 G
15973 s/\n//
15974 s/^[^=]*=[       ]*$//
15975 }'
15976 fi
15977
15978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15979 fi # test -n "$CONFIG_FILES"
15980
15981 # Set up the scripts for CONFIG_HEADERS section.
15982 # No need to generate them if there are no CONFIG_HEADERS.
15983 # This happens for instance with `./config.status Makefile'.
15984 if test -n "$CONFIG_HEADERS"; then
15985 cat >"$tmp/defines.awk" <<\_ACAWK ||
15986 BEGIN {
15987 _ACEOF
15988
15989 # Transform confdefs.h into an awk script `defines.awk', embedded as
15990 # here-document in config.status, that substitutes the proper values into
15991 # config.h.in to produce config.h.
15992
15993 # Create a delimiter string that does not exist in confdefs.h, to ease
15994 # handling of long lines.
15995 ac_delim='%!_!# '
15996 for ac_last_try in false false :; do
15997   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15998   if test -z "$ac_t"; then
15999     break
16000   elif $ac_last_try; then
16001     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16002   else
16003     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16004   fi
16005 done
16006
16007 # For the awk script, D is an array of macro values keyed by name,
16008 # likewise P contains macro parameters if any.  Preserve backslash
16009 # newline sequences.
16010
16011 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16012 sed -n '
16013 s/.\{148\}/&'"$ac_delim"'/g
16014 t rset
16015 :rset
16016 s/^[     ]*#[    ]*define[       ][      ]*/ /
16017 t def
16018 d
16019 :def
16020 s/\\$//
16021 t bsnl
16022 s/["\\]/\\&/g
16023 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16024 D["\1"]=" \3"/p
16025 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16026 d
16027 :bsnl
16028 s/["\\]/\\&/g
16029 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16030 D["\1"]=" \3\\\\\\n"\\/p
16031 t cont
16032 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16033 t cont
16034 d
16035 :cont
16036 n
16037 s/.\{148\}/&'"$ac_delim"'/g
16038 t clear
16039 :clear
16040 s/\\$//
16041 t bsnlc
16042 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16043 d
16044 :bsnlc
16045 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16046 b cont
16047 ' <confdefs.h | sed '
16048 s/'"$ac_delim"'/"\\\
16049 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16050
16051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16052   for (key in D) D_is_set[key] = 1
16053   FS = "\a"
16054 }
16055 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16056   line = \$ 0
16057   split(line, arg, " ")
16058   if (arg[1] == "#") {
16059     defundef = arg[2]
16060     mac1 = arg[3]
16061   } else {
16062     defundef = substr(arg[1], 2)
16063     mac1 = arg[2]
16064   }
16065   split(mac1, mac2, "(") #)
16066   macro = mac2[1]
16067   prefix = substr(line, 1, index(line, defundef) - 1)
16068   if (D_is_set[macro]) {
16069     # Preserve the white space surrounding the "#".
16070     print prefix "define", macro P[macro] D[macro]
16071     next
16072   } else {
16073     # Replace #undef with comments.  This is necessary, for example,
16074     # in the case of _POSIX_SOURCE, which is predefined and required
16075     # on some systems where configure will not decide to define it.
16076     if (defundef == "undef") {
16077       print "/*", prefix defundef, macro, "*/"
16078       next
16079     }
16080   }
16081 }
16082 { print }
16083 _ACAWK
16084 _ACEOF
16085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16086   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16087 fi # test -n "$CONFIG_HEADERS"
16088
16089
16090 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16091 shift
16092 for ac_tag
16093 do
16094   case $ac_tag in
16095   :[FHLC]) ac_mode=$ac_tag; continue;;
16096   esac
16097   case $ac_mode$ac_tag in
16098   :[FHL]*:*);;
16099   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
16100   :[FH]-) ac_tag=-:-;;
16101   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16102   esac
16103   ac_save_IFS=$IFS
16104   IFS=:
16105   set x $ac_tag
16106   IFS=$ac_save_IFS
16107   shift
16108   ac_file=$1
16109   shift
16110
16111   case $ac_mode in
16112   :L) ac_source=$1;;
16113   :[FH])
16114     ac_file_inputs=
16115     for ac_f
16116     do
16117       case $ac_f in
16118       -) ac_f="$tmp/stdin";;
16119       *) # Look for the file first in the build tree, then in the source tree
16120          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16121          # because $ac_f cannot contain `:'.
16122          test -f "$ac_f" ||
16123            case $ac_f in
16124            [\\/$]*) false;;
16125            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16126            esac ||
16127            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
16128       esac
16129       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16130       as_fn_append ac_file_inputs " '$ac_f'"
16131     done
16132
16133     # Let's still pretend it is `configure' which instantiates (i.e., don't
16134     # use $as_me), people would be surprised to read:
16135     #    /* config.h.  Generated by config.status.  */
16136     configure_input='Generated from '`
16137           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16138         `' by configure.'
16139     if test x"$ac_file" != x-; then
16140       configure_input="$ac_file.  $configure_input"
16141       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16142 $as_echo "$as_me: creating $ac_file" >&6;}
16143     fi
16144     # Neutralize special characters interpreted by sed in replacement strings.
16145     case $configure_input in #(
16146     *\&* | *\|* | *\\* )
16147        ac_sed_conf_input=`$as_echo "$configure_input" |
16148        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16149     *) ac_sed_conf_input=$configure_input;;
16150     esac
16151
16152     case $ac_tag in
16153     *:-:* | *:-) cat >"$tmp/stdin" \
16154       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
16155     esac
16156     ;;
16157   esac
16158
16159   ac_dir=`$as_dirname -- "$ac_file" ||
16160 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16161          X"$ac_file" : 'X\(//\)[^/]' \| \
16162          X"$ac_file" : 'X\(//\)$' \| \
16163          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16164 $as_echo X"$ac_file" |
16165     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16166             s//\1/
16167             q
16168           }
16169           /^X\(\/\/\)[^/].*/{
16170             s//\1/
16171             q
16172           }
16173           /^X\(\/\/\)$/{
16174             s//\1/
16175             q
16176           }
16177           /^X\(\/\).*/{
16178             s//\1/
16179             q
16180           }
16181           s/.*/./; q'`
16182   as_dir="$ac_dir"; as_fn_mkdir_p
16183   ac_builddir=.
16184
16185 case "$ac_dir" in
16186 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16187 *)
16188   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16189   # A ".." for each directory in $ac_dir_suffix.
16190   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16191   case $ac_top_builddir_sub in
16192   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16193   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16194   esac ;;
16195 esac
16196 ac_abs_top_builddir=$ac_pwd
16197 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16198 # for backward compatibility:
16199 ac_top_builddir=$ac_top_build_prefix
16200
16201 case $srcdir in
16202   .)  # We are building in place.
16203     ac_srcdir=.
16204     ac_top_srcdir=$ac_top_builddir_sub
16205     ac_abs_top_srcdir=$ac_pwd ;;
16206   [\\/]* | ?:[\\/]* )  # Absolute name.
16207     ac_srcdir=$srcdir$ac_dir_suffix;
16208     ac_top_srcdir=$srcdir
16209     ac_abs_top_srcdir=$srcdir ;;
16210   *) # Relative name.
16211     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16212     ac_top_srcdir=$ac_top_build_prefix$srcdir
16213     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16214 esac
16215 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16216
16217
16218   case $ac_mode in
16219   :F)
16220   #
16221   # CONFIG_FILE
16222   #
16223
16224   case $INSTALL in
16225   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16226   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16227   esac
16228   ac_MKDIR_P=$MKDIR_P
16229   case $MKDIR_P in
16230   [\\/$]* | ?:[\\/]* ) ;;
16231   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16232   esac
16233 _ACEOF
16234
16235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16236 # If the template does not know about datarootdir, expand it.
16237 # FIXME: This hack should be removed a few years after 2.60.
16238 ac_datarootdir_hack=; ac_datarootdir_seen=
16239 ac_sed_dataroot='
16240 /datarootdir/ {
16241   p
16242   q
16243 }
16244 /@datadir@/p
16245 /@docdir@/p
16246 /@infodir@/p
16247 /@localedir@/p
16248 /@mandir@/p'
16249 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16250 *datarootdir*) ac_datarootdir_seen=yes;;
16251 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16252   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16253 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16254 _ACEOF
16255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16256   ac_datarootdir_hack='
16257   s&@datadir@&$datadir&g
16258   s&@docdir@&$docdir&g
16259   s&@infodir@&$infodir&g
16260   s&@localedir@&$localedir&g
16261   s&@mandir@&$mandir&g
16262   s&\\\${datarootdir}&$datarootdir&g' ;;
16263 esac
16264 _ACEOF
16265
16266 # Neutralize VPATH when `$srcdir' = `.'.
16267 # Shell code in configure.ac might set extrasub.
16268 # FIXME: do we really want to maintain this feature?
16269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16270 ac_sed_extra="$ac_vpsub
16271 $extrasub
16272 _ACEOF
16273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16274 :t
16275 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16276 s|@configure_input@|$ac_sed_conf_input|;t t
16277 s&@top_builddir@&$ac_top_builddir_sub&;t t
16278 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16279 s&@srcdir@&$ac_srcdir&;t t
16280 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16281 s&@top_srcdir@&$ac_top_srcdir&;t t
16282 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16283 s&@builddir@&$ac_builddir&;t t
16284 s&@abs_builddir@&$ac_abs_builddir&;t t
16285 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16286 s&@INSTALL@&$ac_INSTALL&;t t
16287 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16288 $ac_datarootdir_hack
16289 "
16290 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16291   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16292
16293 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16294   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16295   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16296   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16297 which seems to be undefined.  Please make sure it is defined" >&5
16298 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16299 which seems to be undefined.  Please make sure it is defined" >&2;}
16300
16301   rm -f "$tmp/stdin"
16302   case $ac_file in
16303   -) cat "$tmp/out" && rm -f "$tmp/out";;
16304   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16305   esac \
16306   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16307  ;;
16308   :H)
16309   #
16310   # CONFIG_HEADER
16311   #
16312   if test x"$ac_file" != x-; then
16313     {
16314       $as_echo "/* $configure_input  */" \
16315       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16316     } >"$tmp/config.h" \
16317       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16318     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16319       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16320 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16321     else
16322       rm -f "$ac_file"
16323       mv "$tmp/config.h" "$ac_file" \
16324         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16325     fi
16326   else
16327     $as_echo "/* $configure_input  */" \
16328       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16329       || as_fn_error $? "could not create -" "$LINENO" 5
16330   fi
16331 # Compute "$ac_file"'s index in $config_headers.
16332 _am_arg="$ac_file"
16333 _am_stamp_count=1
16334 for _am_header in $config_headers :; do
16335   case $_am_header in
16336     $_am_arg | $_am_arg:* )
16337       break ;;
16338     * )
16339       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16340   esac
16341 done
16342 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16343 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16344          X"$_am_arg" : 'X\(//\)[^/]' \| \
16345          X"$_am_arg" : 'X\(//\)$' \| \
16346          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16347 $as_echo X"$_am_arg" |
16348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16349             s//\1/
16350             q
16351           }
16352           /^X\(\/\/\)[^/].*/{
16353             s//\1/
16354             q
16355           }
16356           /^X\(\/\/\)$/{
16357             s//\1/
16358             q
16359           }
16360           /^X\(\/\).*/{
16361             s//\1/
16362             q
16363           }
16364           s/.*/./; q'`/stamp-h$_am_stamp_count
16365  ;;
16366
16367   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16368 $as_echo "$as_me: executing $ac_file commands" >&6;}
16369  ;;
16370   esac
16371
16372
16373   case $ac_file$ac_mode in
16374     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16375   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16376   # are listed without --file.  Let's play safe and only enable the eval
16377   # if we detect the quoting.
16378   case $CONFIG_FILES in
16379   *\'*) eval set x "$CONFIG_FILES" ;;
16380   *)   set x $CONFIG_FILES ;;
16381   esac
16382   shift
16383   for mf
16384   do
16385     # Strip MF so we end up with the name of the file.
16386     mf=`echo "$mf" | sed -e 's/:.*$//'`
16387     # Check whether this is an Automake generated Makefile or not.
16388     # We used to match only the files named `Makefile.in', but
16389     # some people rename them; so instead we look at the file content.
16390     # Grep'ing the first line is not enough: some people post-process
16391     # each Makefile.in and add a new line on top of each file to say so.
16392     # Grep'ing the whole file is not good either: AIX grep has a line
16393     # limit of 2048, but all sed's we know have understand at least 4000.
16394     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16395       dirpart=`$as_dirname -- "$mf" ||
16396 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16397          X"$mf" : 'X\(//\)[^/]' \| \
16398          X"$mf" : 'X\(//\)$' \| \
16399          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16400 $as_echo X"$mf" |
16401     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16402             s//\1/
16403             q
16404           }
16405           /^X\(\/\/\)[^/].*/{
16406             s//\1/
16407             q
16408           }
16409           /^X\(\/\/\)$/{
16410             s//\1/
16411             q
16412           }
16413           /^X\(\/\).*/{
16414             s//\1/
16415             q
16416           }
16417           s/.*/./; q'`
16418     else
16419       continue
16420     fi
16421     # Extract the definition of DEPDIR, am__include, and am__quote
16422     # from the Makefile without running `make'.
16423     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16424     test -z "$DEPDIR" && continue
16425     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16426     test -z "am__include" && continue
16427     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16428     # When using ansi2knr, U may be empty or an underscore; expand it
16429     U=`sed -n 's/^U = //p' < "$mf"`
16430     # Find all dependency output files, they are included files with
16431     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16432     # simplest approach to changing $(DEPDIR) to its actual value in the
16433     # expansion.
16434     for file in `sed -n "
16435       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16436          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16437       # Make sure the directory exists.
16438       test -f "$dirpart/$file" && continue
16439       fdir=`$as_dirname -- "$file" ||
16440 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16441          X"$file" : 'X\(//\)[^/]' \| \
16442          X"$file" : 'X\(//\)$' \| \
16443          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16444 $as_echo X"$file" |
16445     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16446             s//\1/
16447             q
16448           }
16449           /^X\(\/\/\)[^/].*/{
16450             s//\1/
16451             q
16452           }
16453           /^X\(\/\/\)$/{
16454             s//\1/
16455             q
16456           }
16457           /^X\(\/\).*/{
16458             s//\1/
16459             q
16460           }
16461           s/.*/./; q'`
16462       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16463       # echo "creating $dirpart/$file"
16464       echo '# dummy' > "$dirpart/$file"
16465     done
16466   done
16467 }
16468  ;;
16469     "libtool":C)
16470
16471     # See if we are running on zsh, and set the options which allow our
16472     # commands through without removal of \ escapes.
16473     if test -n "${ZSH_VERSION+set}" ; then
16474       setopt NO_GLOB_SUBST
16475     fi
16476
16477     cfgfile="${ofile}T"
16478     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16479     $RM "$cfgfile"
16480
16481     cat <<_LT_EOF >> "$cfgfile"
16482 #! $SHELL
16483
16484 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16485 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16486 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16487 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16488 #
16489 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16490 #                 2006, 2007, 2008 Free Software Foundation, Inc.
16491 #   Written by Gordon Matzigkeit, 1996
16492 #
16493 #   This file is part of GNU Libtool.
16494 #
16495 # GNU Libtool is free software; you can redistribute it and/or
16496 # modify it under the terms of the GNU General Public License as
16497 # published by the Free Software Foundation; either version 2 of
16498 # the License, or (at your option) any later version.
16499 #
16500 # As a special exception to the GNU General Public License,
16501 # if you distribute this file as part of a program or library that
16502 # is built using GNU Libtool, you may include this file under the
16503 # same distribution terms that you use for the rest of that program.
16504 #
16505 # GNU Libtool is distributed in the hope that it will be useful,
16506 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16507 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16508 # GNU General Public License for more details.
16509 #
16510 # You should have received a copy of the GNU General Public License
16511 # along with GNU Libtool; see the file COPYING.  If not, a copy
16512 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16513 # obtained by writing to the Free Software Foundation, Inc.,
16514 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16515
16516
16517 # The names of the tagged configurations supported by this script.
16518 available_tags=""
16519
16520 # ### BEGIN LIBTOOL CONFIG
16521
16522 # Which release of libtool.m4 was used?
16523 macro_version=$macro_version
16524 macro_revision=$macro_revision
16525
16526 # Assembler program.
16527 AS=$AS
16528
16529 # DLL creation program.
16530 DLLTOOL=$DLLTOOL
16531
16532 # Object dumper program.
16533 OBJDUMP=$OBJDUMP
16534
16535 # Whether or not to build shared libraries.
16536 build_libtool_libs=$enable_shared
16537
16538 # Whether or not to build static libraries.
16539 build_old_libs=$enable_static
16540
16541 # What type of objects to build.
16542 pic_mode=$pic_mode
16543
16544 # Whether or not to optimize for fast installation.
16545 fast_install=$enable_fast_install
16546
16547 # The host system.
16548 host_alias=$host_alias
16549 host=$host
16550 host_os=$host_os
16551
16552 # The build system.
16553 build_alias=$build_alias
16554 build=$build
16555 build_os=$build_os
16556
16557 # A sed program that does not truncate output.
16558 SED=$lt_SED
16559
16560 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16561 Xsed="\$SED -e 1s/^X//"
16562
16563 # A grep program that handles long lines.
16564 GREP=$lt_GREP
16565
16566 # An ERE matcher.
16567 EGREP=$lt_EGREP
16568
16569 # A literal string matcher.
16570 FGREP=$lt_FGREP
16571
16572 # A BSD- or MS-compatible name lister.
16573 NM=$lt_NM
16574
16575 # Whether we need soft or hard links.
16576 LN_S=$lt_LN_S
16577
16578 # What is the maximum length of a command?
16579 max_cmd_len=$max_cmd_len
16580
16581 # Object file suffix (normally "o").
16582 objext=$ac_objext
16583
16584 # Executable file suffix (normally "").
16585 exeext=$exeext
16586
16587 # whether the shell understands "unset".
16588 lt_unset=$lt_unset
16589
16590 # turn spaces into newlines.
16591 SP2NL=$lt_lt_SP2NL
16592
16593 # turn newlines into spaces.
16594 NL2SP=$lt_lt_NL2SP
16595
16596 # How to create reloadable object files.
16597 reload_flag=$lt_reload_flag
16598 reload_cmds=$lt_reload_cmds
16599
16600 # Method to check whether dependent libraries are shared objects.
16601 deplibs_check_method=$lt_deplibs_check_method
16602
16603 # Command to use when deplibs_check_method == "file_magic".
16604 file_magic_cmd=$lt_file_magic_cmd
16605
16606 # The archiver.
16607 AR=$lt_AR
16608 AR_FLAGS=$lt_AR_FLAGS
16609
16610 # A symbol stripping program.
16611 STRIP=$lt_STRIP
16612
16613 # Commands used to install an old-style archive.
16614 RANLIB=$lt_RANLIB
16615 old_postinstall_cmds=$lt_old_postinstall_cmds
16616 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16617
16618 # A C compiler.
16619 LTCC=$lt_CC
16620
16621 # LTCC compiler flags.
16622 LTCFLAGS=$lt_CFLAGS
16623
16624 # Take the output of nm and produce a listing of raw symbols and C names.
16625 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16626
16627 # Transform the output of nm in a proper C declaration.
16628 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16629
16630 # Transform the output of nm in a C name address pair.
16631 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16632
16633 # Transform the output of nm in a C name address pair when lib prefix is needed.
16634 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16635
16636 # The name of the directory that contains temporary libtool files.
16637 objdir=$objdir
16638
16639 # Shell to use when invoking shell scripts.
16640 SHELL=$lt_SHELL
16641
16642 # An echo program that does not interpret backslashes.
16643 ECHO=$lt_ECHO
16644
16645 # Used to examine libraries when file_magic_cmd begins with "file".
16646 MAGIC_CMD=$MAGIC_CMD
16647
16648 # Must we lock files when doing compilation?
16649 need_locks=$lt_need_locks
16650
16651 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16652 DSYMUTIL=$lt_DSYMUTIL
16653
16654 # Tool to change global to local symbols on Mac OS X.
16655 NMEDIT=$lt_NMEDIT
16656
16657 # Tool to manipulate fat objects and archives on Mac OS X.
16658 LIPO=$lt_LIPO
16659
16660 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16661 OTOOL=$lt_OTOOL
16662
16663 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16664 OTOOL64=$lt_OTOOL64
16665
16666 # Old archive suffix (normally "a").
16667 libext=$libext
16668
16669 # Shared library suffix (normally ".so").
16670 shrext_cmds=$lt_shrext_cmds
16671
16672 # The commands to extract the exported symbol list from a shared archive.
16673 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16674
16675 # Variables whose values should be saved in libtool wrapper scripts and
16676 # restored at link time.
16677 variables_saved_for_relink=$lt_variables_saved_for_relink
16678
16679 # Do we need the "lib" prefix for modules?
16680 need_lib_prefix=$need_lib_prefix
16681
16682 # Do we need a version for libraries?
16683 need_version=$need_version
16684
16685 # Library versioning type.
16686 version_type=$version_type
16687
16688 # Shared library runtime path variable.
16689 runpath_var=$runpath_var
16690
16691 # Shared library path variable.
16692 shlibpath_var=$shlibpath_var
16693
16694 # Is shlibpath searched before the hard-coded library search path?
16695 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16696
16697 # Format of library name prefix.
16698 libname_spec=$lt_libname_spec
16699
16700 # List of archive names.  First name is the real one, the rest are links.
16701 # The last name is the one that the linker finds with -lNAME
16702 library_names_spec=$lt_library_names_spec
16703
16704 # The coded name of the library, if different from the real name.
16705 soname_spec=$lt_soname_spec
16706
16707 # Command to use after installation of a shared archive.
16708 postinstall_cmds=$lt_postinstall_cmds
16709
16710 # Command to use after uninstallation of a shared archive.
16711 postuninstall_cmds=$lt_postuninstall_cmds
16712
16713 # Commands used to finish a libtool library installation in a directory.
16714 finish_cmds=$lt_finish_cmds
16715
16716 # As "finish_cmds", except a single script fragment to be evaled but
16717 # not shown.
16718 finish_eval=$lt_finish_eval
16719
16720 # Whether we should hardcode library paths into libraries.
16721 hardcode_into_libs=$hardcode_into_libs
16722
16723 # Compile-time system search path for libraries.
16724 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16725
16726 # Run-time system search path for libraries.
16727 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16728
16729 # Whether dlopen is supported.
16730 dlopen_support=$enable_dlopen
16731
16732 # Whether dlopen of programs is supported.
16733 dlopen_self=$enable_dlopen_self
16734
16735 # Whether dlopen of statically linked programs is supported.
16736 dlopen_self_static=$enable_dlopen_self_static
16737
16738 # Commands to strip libraries.
16739 old_striplib=$lt_old_striplib
16740 striplib=$lt_striplib
16741
16742
16743 # The linker used to build libraries.
16744 LD=$lt_LD
16745
16746 # Commands used to build an old-style archive.
16747 old_archive_cmds=$lt_old_archive_cmds
16748
16749 # A language specific compiler.
16750 CC=$lt_compiler
16751
16752 # Is the compiler the GNU compiler?
16753 with_gcc=$GCC
16754
16755 # Compiler flag to turn off builtin functions.
16756 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16757
16758 # How to pass a linker flag through the compiler.
16759 wl=$lt_lt_prog_compiler_wl
16760
16761 # Additional compiler flags for building library objects.
16762 pic_flag=$lt_lt_prog_compiler_pic
16763
16764 # Compiler flag to prevent dynamic linking.
16765 link_static_flag=$lt_lt_prog_compiler_static
16766
16767 # Does compiler simultaneously support -c and -o options?
16768 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16769
16770 # Whether or not to add -lc for building shared libraries.
16771 build_libtool_need_lc=$archive_cmds_need_lc
16772
16773 # Whether or not to disallow shared libs when runtime libs are static.
16774 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16775
16776 # Compiler flag to allow reflexive dlopens.
16777 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16778
16779 # Compiler flag to generate shared objects directly from archives.
16780 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16781
16782 # Whether the compiler copes with passing no objects directly.
16783 compiler_needs_object=$lt_compiler_needs_object
16784
16785 # Create an old-style archive from a shared archive.
16786 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16787
16788 # Create a temporary old-style archive to link instead of a shared archive.
16789 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16790
16791 # Commands used to build a shared archive.
16792 archive_cmds=$lt_archive_cmds
16793 archive_expsym_cmds=$lt_archive_expsym_cmds
16794
16795 # Commands used to build a loadable module if different from building
16796 # a shared archive.
16797 module_cmds=$lt_module_cmds
16798 module_expsym_cmds=$lt_module_expsym_cmds
16799
16800 # Whether we are building with GNU ld or not.
16801 with_gnu_ld=$lt_with_gnu_ld
16802
16803 # Flag that allows shared libraries with undefined symbols to be built.
16804 allow_undefined_flag=$lt_allow_undefined_flag
16805
16806 # Flag that enforces no undefined symbols.
16807 no_undefined_flag=$lt_no_undefined_flag
16808
16809 # Flag to hardcode \$libdir into a binary during linking.
16810 # This must work even if \$libdir does not exist
16811 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16812
16813 # If ld is used when linking, flag to hardcode \$libdir into a binary
16814 # during linking.  This must work even if \$libdir does not exist.
16815 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16816
16817 # Whether we need a single "-rpath" flag with a separated argument.
16818 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16819
16820 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16821 # DIR into the resulting binary.
16822 hardcode_direct=$hardcode_direct
16823
16824 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16825 # DIR into the resulting binary and the resulting library dependency is
16826 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16827 # library is relocated.
16828 hardcode_direct_absolute=$hardcode_direct_absolute
16829
16830 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16831 # into the resulting binary.
16832 hardcode_minus_L=$hardcode_minus_L
16833
16834 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16835 # into the resulting binary.
16836 hardcode_shlibpath_var=$hardcode_shlibpath_var
16837
16838 # Set to "yes" if building a shared library automatically hardcodes DIR
16839 # into the library and all subsequent libraries and executables linked
16840 # against it.
16841 hardcode_automatic=$hardcode_automatic
16842
16843 # Set to yes if linker adds runtime paths of dependent libraries
16844 # to runtime path list.
16845 inherit_rpath=$inherit_rpath
16846
16847 # Whether libtool must link a program against all its dependency libraries.
16848 link_all_deplibs=$link_all_deplibs
16849
16850 # Fix the shell variable \$srcfile for the compiler.
16851 fix_srcfile_path=$lt_fix_srcfile_path
16852
16853 # Set to "yes" if exported symbols are required.
16854 always_export_symbols=$always_export_symbols
16855
16856 # The commands to list exported symbols.
16857 export_symbols_cmds=$lt_export_symbols_cmds
16858
16859 # Symbols that should not be listed in the preloaded symbols.
16860 exclude_expsyms=$lt_exclude_expsyms
16861
16862 # Symbols that must always be exported.
16863 include_expsyms=$lt_include_expsyms
16864
16865 # Commands necessary for linking programs (against libraries) with templates.
16866 prelink_cmds=$lt_prelink_cmds
16867
16868 # Specify filename containing input files.
16869 file_list_spec=$lt_file_list_spec
16870
16871 # How to hardcode a shared library path into an executable.
16872 hardcode_action=$hardcode_action
16873
16874 # ### END LIBTOOL CONFIG
16875
16876 _LT_EOF
16877
16878   case $host_os in
16879   aix3*)
16880     cat <<\_LT_EOF >> "$cfgfile"
16881 # AIX sometimes has problems with the GCC collect2 program.  For some
16882 # reason, if we set the COLLECT_NAMES environment variable, the problems
16883 # vanish in a puff of smoke.
16884 if test "X${COLLECT_NAMES+set}" != Xset; then
16885   COLLECT_NAMES=
16886   export COLLECT_NAMES
16887 fi
16888 _LT_EOF
16889     ;;
16890   esac
16891
16892
16893 ltmain="$ac_aux_dir/ltmain.sh"
16894
16895
16896   # We use sed instead of cat because bash on DJGPP gets confused if
16897   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16898   # text mode, it properly converts lines to CR/LF.  This bash problem
16899   # is reportedly fixed, but why not run on old versions too?
16900   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16901     || (rm -f "$cfgfile"; exit 1)
16902
16903   case $xsi_shell in
16904   yes)
16905     cat << \_LT_EOF >> "$cfgfile"
16906
16907 # func_dirname file append nondir_replacement
16908 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16909 # otherwise set result to NONDIR_REPLACEMENT.
16910 func_dirname ()
16911 {
16912   case ${1} in
16913     */*) func_dirname_result="${1%/*}${2}" ;;
16914     *  ) func_dirname_result="${3}" ;;
16915   esac
16916 }
16917
16918 # func_basename file
16919 func_basename ()
16920 {
16921   func_basename_result="${1##*/}"
16922 }
16923
16924 # func_dirname_and_basename file append nondir_replacement
16925 # perform func_basename and func_dirname in a single function
16926 # call:
16927 #   dirname:  Compute the dirname of FILE.  If nonempty,
16928 #             add APPEND to the result, otherwise set result
16929 #             to NONDIR_REPLACEMENT.
16930 #             value returned in "$func_dirname_result"
16931 #   basename: Compute filename of FILE.
16932 #             value retuned in "$func_basename_result"
16933 # Implementation must be kept synchronized with func_dirname
16934 # and func_basename. For efficiency, we do not delegate to
16935 # those functions but instead duplicate the functionality here.
16936 func_dirname_and_basename ()
16937 {
16938   case ${1} in
16939     */*) func_dirname_result="${1%/*}${2}" ;;
16940     *  ) func_dirname_result="${3}" ;;
16941   esac
16942   func_basename_result="${1##*/}"
16943 }
16944
16945 # func_stripname prefix suffix name
16946 # strip PREFIX and SUFFIX off of NAME.
16947 # PREFIX and SUFFIX must not contain globbing or regex special
16948 # characters, hashes, percent signs, but SUFFIX may contain a leading
16949 # dot (in which case that matches only a dot).
16950 func_stripname ()
16951 {
16952   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16953   # positional parameters, so assign one to ordinary parameter first.
16954   func_stripname_result=${3}
16955   func_stripname_result=${func_stripname_result#"${1}"}
16956   func_stripname_result=${func_stripname_result%"${2}"}
16957 }
16958
16959 # func_opt_split
16960 func_opt_split ()
16961 {
16962   func_opt_split_opt=${1%%=*}
16963   func_opt_split_arg=${1#*=}
16964 }
16965
16966 # func_lo2o object
16967 func_lo2o ()
16968 {
16969   case ${1} in
16970     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16971     *)    func_lo2o_result=${1} ;;
16972   esac
16973 }
16974
16975 # func_xform libobj-or-source
16976 func_xform ()
16977 {
16978   func_xform_result=${1%.*}.lo
16979 }
16980
16981 # func_arith arithmetic-term...
16982 func_arith ()
16983 {
16984   func_arith_result=$(( $* ))
16985 }
16986
16987 # func_len string
16988 # STRING may not start with a hyphen.
16989 func_len ()
16990 {
16991   func_len_result=${#1}
16992 }
16993
16994 _LT_EOF
16995     ;;
16996   *) # Bourne compatible functions.
16997     cat << \_LT_EOF >> "$cfgfile"
16998
16999 # func_dirname file append nondir_replacement
17000 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17001 # otherwise set result to NONDIR_REPLACEMENT.
17002 func_dirname ()
17003 {
17004   # Extract subdirectory from the argument.
17005   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17006   if test "X$func_dirname_result" = "X${1}"; then
17007     func_dirname_result="${3}"
17008   else
17009     func_dirname_result="$func_dirname_result${2}"
17010   fi
17011 }
17012
17013 # func_basename file
17014 func_basename ()
17015 {
17016   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17017 }
17018
17019
17020 # func_stripname prefix suffix name
17021 # strip PREFIX and SUFFIX off of NAME.
17022 # PREFIX and SUFFIX must not contain globbing or regex special
17023 # characters, hashes, percent signs, but SUFFIX may contain a leading
17024 # dot (in which case that matches only a dot).
17025 # func_strip_suffix prefix name
17026 func_stripname ()
17027 {
17028   case ${2} in
17029     .*) func_stripname_result=`$ECHO "X${3}" \
17030            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17031     *)  func_stripname_result=`$ECHO "X${3}" \
17032            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17033   esac
17034 }
17035
17036 # sed scripts:
17037 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17038 my_sed_long_arg='1s/^-[^=]*=//'
17039
17040 # func_opt_split
17041 func_opt_split ()
17042 {
17043   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17044   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17045 }
17046
17047 # func_lo2o object
17048 func_lo2o ()
17049 {
17050   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17051 }
17052
17053 # func_xform libobj-or-source
17054 func_xform ()
17055 {
17056   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17057 }
17058
17059 # func_arith arithmetic-term...
17060 func_arith ()
17061 {
17062   func_arith_result=`expr "$@"`
17063 }
17064
17065 # func_len string
17066 # STRING may not start with a hyphen.
17067 func_len ()
17068 {
17069   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17070 }
17071
17072 _LT_EOF
17073 esac
17074
17075 case $lt_shell_append in
17076   yes)
17077     cat << \_LT_EOF >> "$cfgfile"
17078
17079 # func_append var value
17080 # Append VALUE to the end of shell variable VAR.
17081 func_append ()
17082 {
17083   eval "$1+=\$2"
17084 }
17085 _LT_EOF
17086     ;;
17087   *)
17088     cat << \_LT_EOF >> "$cfgfile"
17089
17090 # func_append var value
17091 # Append VALUE to the end of shell variable VAR.
17092 func_append ()
17093 {
17094   eval "$1=\$$1\$2"
17095 }
17096
17097 _LT_EOF
17098     ;;
17099   esac
17100
17101
17102   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17103     || (rm -f "$cfgfile"; exit 1)
17104
17105   mv -f "$cfgfile" "$ofile" ||
17106     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17107   chmod +x "$ofile"
17108
17109  ;;
17110     "po-directories":C)
17111     for ac_file in $CONFIG_FILES; do
17112       # Support "outfile[:infile[:infile...]]"
17113       case "$ac_file" in
17114         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17115       esac
17116       # PO directories have a Makefile.in generated from Makefile.in.in.
17117       case "$ac_file" in */Makefile.in)
17118         # Adjust a relative srcdir.
17119         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17120         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17121         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17122         # In autoconf-2.13 it is called $ac_given_srcdir.
17123         # In autoconf-2.50 it is called $srcdir.
17124         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17125         case "$ac_given_srcdir" in
17126           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17127           /*) top_srcdir="$ac_given_srcdir" ;;
17128           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17129         esac
17130         # Treat a directory as a PO directory if and only if it has a
17131         # POTFILES.in file. This allows packages to have multiple PO
17132         # directories under different names or in different locations.
17133         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17134           rm -f "$ac_dir/POTFILES"
17135           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17136           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17137           POMAKEFILEDEPS="POTFILES.in"
17138           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17139           # on $ac_dir but don't depend on user-specified configuration
17140           # parameters.
17141           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17142             # The LINGUAS file contains the set of available languages.
17143             if test -n "$OBSOLETE_ALL_LINGUAS"; then
17144               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17145             fi
17146             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17147             # Hide the ALL_LINGUAS assigment from automake < 1.5.
17148             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17149             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17150           else
17151             # The set of available languages was given in configure.in.
17152             # Hide the ALL_LINGUAS assigment from automake < 1.5.
17153             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17154           fi
17155           # Compute POFILES
17156           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17157           # Compute UPDATEPOFILES
17158           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17159           # Compute DUMMYPOFILES
17160           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17161           # Compute GMOFILES
17162           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17163           case "$ac_given_srcdir" in
17164             .) srcdirpre= ;;
17165             *) srcdirpre='$(srcdir)/' ;;
17166           esac
17167           POFILES=
17168           UPDATEPOFILES=
17169           DUMMYPOFILES=
17170           GMOFILES=
17171           for lang in $ALL_LINGUAS; do
17172             POFILES="$POFILES $srcdirpre$lang.po"
17173             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17174             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17175             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17176           done
17177           # CATALOGS depends on both $ac_dir and the user's LINGUAS
17178           # environment variable.
17179           INST_LINGUAS=
17180           if test -n "$ALL_LINGUAS"; then
17181             for presentlang in $ALL_LINGUAS; do
17182               useit=no
17183               if test "%UNSET%" != "$LINGUAS"; then
17184                 desiredlanguages="$LINGUAS"
17185               else
17186                 desiredlanguages="$ALL_LINGUAS"
17187               fi
17188               for desiredlang in $desiredlanguages; do
17189                 # Use the presentlang catalog if desiredlang is
17190                 #   a. equal to presentlang, or
17191                 #   b. a variant of presentlang (because in this case,
17192                 #      presentlang can be used as a fallback for messages
17193                 #      which are not translated in the desiredlang catalog).
17194                 case "$desiredlang" in
17195                   "$presentlang"*) useit=yes;;
17196                 esac
17197               done
17198               if test $useit = yes; then
17199                 INST_LINGUAS="$INST_LINGUAS $presentlang"
17200               fi
17201             done
17202           fi
17203           CATALOGS=
17204           if test -n "$INST_LINGUAS"; then
17205             for lang in $INST_LINGUAS; do
17206               CATALOGS="$CATALOGS $lang.gmo"
17207             done
17208           fi
17209           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17210           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17211           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17212             if test -f "$f"; then
17213               case "$f" in
17214                 *.orig | *.bak | *~) ;;
17215                 *) cat "$f" >> "$ac_dir/Makefile" ;;
17216               esac
17217             fi
17218           done
17219         fi
17220         ;;
17221       esac
17222     done ;;
17223
17224   esac
17225 done # for ac_tag
17226
17227
17228 as_fn_exit 0
17229 _ACEOF
17230 ac_clean_files=$ac_clean_files_save
17231
17232 test $ac_write_fail = 0 ||
17233   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17234
17235
17236 # configure is writing to config.log, and then calls config.status.
17237 # config.status does its own redirection, appending to config.log.
17238 # Unfortunately, on DOS this fails, as config.log is still kept open
17239 # by configure, so config.status won't be able to write to it; its
17240 # output is simply discarded.  So we exec the FD to /dev/null,
17241 # effectively closing config.log, so it can be properly (re)opened and
17242 # appended to by config.status.  When coming back to configure, we
17243 # need to make the FD available again.
17244 if test "$no_create" != yes; then
17245   ac_cs_success=:
17246   ac_config_status_args=
17247   test "$silent" = yes &&
17248     ac_config_status_args="$ac_config_status_args --quiet"
17249   exec 5>/dev/null
17250   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17251   exec 5>>config.log
17252   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17253   # would make configure fail if this is the last instruction.
17254   $ac_cs_success || as_fn_exit 1
17255 fi
17256 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17257   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17258 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17259 fi
17260