OSDN Git Service

Started the tracking of configure.
[ccunit/ccunit.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for CCUnit 2.1.
5 #
6 # Report bugs to <tsntsumi@users.sourceforge.jp>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21   emulate sh
22   NULLCMD=:
23   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24   # is contrary to our usage.  Disable this feature.
25   alias -g '${1+"$@"}'='"$@"'
26   setopt NO_GLOB_SUBST
27 else
28   case `(set -o) 2>/dev/null` in #(
29   *posix*) :
30     set -o posix ;; #(
31   *) :
32      ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='print -r --'
49   as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51   as_echo='printf %s\n'
52   as_echo_n='printf %s'
53 else
54   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56     as_echo_n='/usr/ucb/echo -n'
57   else
58     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59     as_echo_n_body='eval
60       arg=$1;
61       case $arg in #(
62       *"$as_nl"*)
63         expr "X$arg" : "X\\(.*\\)$as_nl";
64         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65       esac;
66       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67     '
68     export as_echo_n_body
69     as_echo_n='sh -c $as_echo_n_body as_echo'
70   fi
71   export as_echo_body
72   as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77   PATH_SEPARATOR=:
78   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80       PATH_SEPARATOR=';'
81   }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order.  Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" ""        $as_nl"
91
92 # Find who we are.  Look in the path if we contain no directory separator.
93 as_myself=
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 # Use a proper internal environment variable to ensure we don't fall
139   # into an infinite loop, continuously re-executing ourselves.
140   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141     _as_can_reexec=no; export _as_can_reexec;
142     # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150   *v*x* | *x*v* ) as_opts=-vx ;;
151   *v* ) as_opts=-v ;;
152   *x* ) as_opts=-x ;;
153   * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
160   fi
161   # We don't want this to propagate to other subprocesses.
162           { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165   emulate sh
166   NULLCMD=:
167   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168   # is contrary to our usage.  Disable this feature.
169   alias -g '\${1+\"\$@\"}'='\"\$@\"'
170   setopt NO_GLOB_SUBST
171 else
172   case \`(set -o) 2>/dev/null\` in #(
173   *posix*) :
174     set -o posix ;; #(
175   *) :
176      ;;
177 esac
178 fi
179 "
180   as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194   exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1
203
204   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208     PATH=/empty FPATH=/empty; export PATH FPATH
209     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
211   if (eval "$as_required") 2>/dev/null; then :
212   as_have_required=yes
213 else
214   as_have_required=no
215 fi
216   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218 else
219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223   IFS=$as_save_IFS
224   test -z "$as_dir" && as_dir=.
225   as_found=:
226   case $as_dir in #(
227          /*)
228            for as_base in sh bash ksh sh5; do
229              # Try only shells that exist, to save several forks.
230              as_shell=$as_dir/$as_base
231              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233   CONFIG_SHELL=$as_shell as_have_required=yes
234                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235   break 2
236 fi
237 fi
238            done;;
239        esac
240   as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244   CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
247
248
249       if test "x$CONFIG_SHELL" != x; then :
250   export CONFIG_SHELL
251              # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259   *v*x* | *x*v* ) as_opts=-vx ;;
260   *v* ) as_opts=-v ;;
261   *x* ) as_opts=-x ;;
262   * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271     if test x$as_have_required = xno; then :
272   $as_echo "$0: This script requires a shell more modern than all"
273   $as_echo "$0: the shells that I found on your system."
274   if test x${ZSH_VERSION+set} = xset ; then
275     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277   else
278     $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: tsntsumi@users.sourceforge.jp about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311   return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319   set +e
320   as_fn_set_status $1
321   exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330   case $as_dir in #(
331   -*) as_dir=./$as_dir;;
332   esac
333   test -d "$as_dir" || eval $as_mkdir_p || {
334     as_dirs=
335     while :; do
336       case $as_dir in #(
337       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338       *) as_qdir=$as_dir;;
339       esac
340       as_dirs="'$as_qdir' $as_dirs"
341       as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343          X"$as_dir" : 'X\(//\)[^/]' \| \
344          X"$as_dir" : 'X\(//\)$' \| \
345          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)[^/].*/{
352             s//\1/
353             q
354           }
355           /^X\(\/\/\)$/{
356             s//\1/
357             q
358           }
359           /^X\(\/\).*/{
360             s//\1/
361             q
362           }
363           s/.*/./; q'`
364       test -d "$as_dir" && break
365     done
366     test -z "$as_dirs" || eval "mkdir $as_dirs"
367   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377   test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386   eval 'as_fn_append ()
387   {
388     eval $1+=\$2
389   }'
390 else
391   as_fn_append ()
392   {
393     eval $1=\$$1\$2
394   }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403   eval 'as_fn_arith ()
404   {
405     as_val=$(( $* ))
406   }'
407 else
408   as_fn_arith ()
409   {
410     as_val=`expr "$@" || test $? -eq 1`
411   }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422   as_status=$1; test $as_status -eq 0 && as_status=1
423   if test "$4"; then
424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426   fi
427   $as_echo "$as_me: error: $2" >&2
428   as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432    test "X`expr 00001 : '.*\(...\)'`" = X001; then
433   as_expr=expr
434 else
435   as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439   as_basename=basename
440 else
441   as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445   as_dirname=dirname
446 else
447   as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452          X"$0" : 'X\(//\)$' \| \
453          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455     sed '/^.*\/\([^/][^/]*\)\/*$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\/\)$/{
460             s//\1/
461             q
462           }
463           /^X\/\(\/\).*/{
464             s//\1/
465             q
466           }
467           s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477   as_lineno_1=$LINENO as_lineno_1a=$LINENO
478   as_lineno_2=$LINENO as_lineno_2a=$LINENO
479   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482   sed -n '
483     p
484     /[$]LINENO/=
485   ' <$as_myself |
486     sed '
487       s/[$]LINENO.*/&-/
488       t lineno
489       b
490       :lineno
491       N
492       :loop
493       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494       t loop
495       s/-\n.*//
496     ' >$as_me.lineno &&
497   chmod +x "$as_me.lineno" ||
498     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501   # already done that, so ensure we don't try to do so again and fall
502   # in an infinite loop.  This has already happened in practice.
503   _as_can_reexec=no; export _as_can_reexec
504   # Don't try to exec as it changes $[0], causing all sort of problems
505   # (the dirname of $[0] is not the place where we might find the
506   # original and so on.  Autoconf is especially sensitive to this).
507   . "./$as_me.lineno"
508   # Exit status is that of the last command.
509   exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515   case `echo 'xy\c'` in
516   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
517   xy)  ECHO_C='\c';;
518   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519        ECHO_T=' ';;
520   esac;;
521 *)
522   ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527   rm -f conf$$.dir/conf$$.file
528 else
529   rm -f conf$$.dir
530   mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533   if ln -s conf$$.file conf$$ 2>/dev/null; then
534     as_ln_s='ln -s'
535     # ... but there are two gotchas:
536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538     # In both cases, we have to default to `cp -pR'.
539     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540       as_ln_s='cp -pR'
541   elif ln conf$$.file conf$$ 2>/dev/null; then
542     as_ln_s=ln
543   else
544     as_ln_s='cp -pR'
545   fi
546 else
547   as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553   as_mkdir_p='mkdir -p "$as_dir"'
554 else
555   test -d ./-p && rmdir ./-p
556   as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='CCUnit'
593 PACKAGE_TARNAME='ccunit'
594 PACKAGE_VERSION='2.1'
595 PACKAGE_STRING='CCUnit 2.1'
596 PACKAGE_BUGREPORT='tsntsumi@users.sourceforge.jp'
597 PACKAGE_URL='http://ccunit.sourceforge.jp'
598
599 ac_unique_file="configure.ac"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 #  include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #  include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 OTOOL64
641 OTOOL
642 LIPO
643 NMEDIT
644 DSYMUTIL
645 RANLIB
646 NM
647 ac_ct_DUMPBIN
648 DUMPBIN
649 LD
650 FGREP
651 SED
652 host_os
653 host_vendor
654 host_cpu
655 host
656 build_os
657 build_vendor
658 build_cpu
659 build
660 LIBTOOL
661 OBJDUMP
662 DLLTOOL
663 AS
664 ENABLE_JADOC_FALSE
665 ENABLE_JADOC_TRUE
666 COVERAGEFLAGS
667 enable_latex_docs
668 enable_html_docs
669 enable_dot
670 DOT_PATH
671 DOT
672 DOC_FALSE
673 DOC_TRUE
674 DOXYGEN
675 ac_ct_AR
676 AR
677 LN_S
678 EGREP
679 GREP
680 CPP
681 am__fastdepCC_FALSE
682 am__fastdepCC_TRUE
683 CCDEPMODE
684 am__nodep
685 AMDEPBACKSLASH
686 AMDEP_FALSE
687 AMDEP_TRUE
688 am__quote
689 am__include
690 DEPDIR
691 OBJEXT
692 EXEEXT
693 ac_ct_CC
694 CPPFLAGS
695 LDFLAGS
696 CFLAGS
697 CC
698 DISTDOCJADIR
699 DISTDOCDIR
700 am__untar
701 am__tar
702 AMTAR
703 am__leading_dot
704 SET_MAKE
705 AWK
706 mkdir_p
707 MKDIR_P
708 INSTALL_STRIP_PROGRAM
709 STRIP
710 install_sh
711 MAKEINFO
712 AUTOHEADER
713 AUTOMAKE
714 AUTOCONF
715 ACLOCAL
716 VERSION
717 PACKAGE
718 CYGPATH_W
719 am__isrc
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL'
761 ac_subst_files=''
762 ac_user_opts='
763 enable_option_checking
764 enable_dependency_tracking
765 with_dmalloc
766 with_doxygen
767 with_dot
768 enable_html_docs
769 enable_latex_docs
770 enable_coverage
771 enable_japanese_doc
772 enable_shared
773 enable_static
774 with_pic
775 enable_fast_install
776 with_gnu_ld
777 enable_libtool_lock
778 '
779       ac_precious_vars='build_alias
780 host_alias
781 target_alias
782 CC
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
787 CPP'
788
789
790 # Initialize some variables set by options.
791 ac_init_help=
792 ac_init_version=false
793 ac_unrecognized_opts=
794 ac_unrecognized_sep=
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
797 cache_file=/dev/null
798 exec_prefix=NONE
799 no_create=
800 no_recursion=
801 prefix=NONE
802 program_prefix=NONE
803 program_suffix=NONE
804 program_transform_name=s,x,x,
805 silent=
806 site=
807 srcdir=
808 verbose=
809 x_includes=NONE
810 x_libraries=NONE
811
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir='${datarootdir}/info'
830 htmldir='${docdir}'
831 dvidir='${docdir}'
832 pdfdir='${docdir}'
833 psdir='${docdir}'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
837
838 ac_prev=
839 ac_dashdash=
840 for ac_option
841 do
842   # If the previous option needs an argument, assign it.
843   if test -n "$ac_prev"; then
844     eval $ac_prev=\$ac_option
845     ac_prev=
846     continue
847   fi
848
849   case $ac_option in
850   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851   *=)   ac_optarg= ;;
852   *)    ac_optarg=yes ;;
853   esac
854
855   # Accept the important Cygnus configure options, so we can diagnose typos.
856
857   case $ac_dashdash$ac_option in
858   --)
859     ac_dashdash=yes ;;
860
861   -bindir | --bindir | --bindi | --bind | --bin | --bi)
862     ac_prev=bindir ;;
863   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864     bindir=$ac_optarg ;;
865
866   -build | --build | --buil | --bui | --bu)
867     ac_prev=build_alias ;;
868   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869     build_alias=$ac_optarg ;;
870
871   -cache-file | --cache-file | --cache-fil | --cache-fi \
872   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873     ac_prev=cache_file ;;
874   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876     cache_file=$ac_optarg ;;
877
878   --config-cache | -C)
879     cache_file=config.cache ;;
880
881   -datadir | --datadir | --datadi | --datad)
882     ac_prev=datadir ;;
883   -datadir=* | --datadir=* | --datadi=* | --datad=*)
884     datadir=$ac_optarg ;;
885
886   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887   | --dataroo | --dataro | --datar)
888     ac_prev=datarootdir ;;
889   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891     datarootdir=$ac_optarg ;;
892
893   -disable-* | --disable-*)
894     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895     # Reject names that are not valid shell variable names.
896     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897       as_fn_error $? "invalid feature name: $ac_useropt"
898     ac_useropt_orig=$ac_useropt
899     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900     case $ac_user_opts in
901       *"
902 "enable_$ac_useropt"
903 "*) ;;
904       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905          ac_unrecognized_sep=', ';;
906     esac
907     eval enable_$ac_useropt=no ;;
908
909   -docdir | --docdir | --docdi | --doc | --do)
910     ac_prev=docdir ;;
911   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912     docdir=$ac_optarg ;;
913
914   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915     ac_prev=dvidir ;;
916   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917     dvidir=$ac_optarg ;;
918
919   -enable-* | --enable-*)
920     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921     # Reject names that are not valid shell variable names.
922     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923       as_fn_error $? "invalid feature name: $ac_useropt"
924     ac_useropt_orig=$ac_useropt
925     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926     case $ac_user_opts in
927       *"
928 "enable_$ac_useropt"
929 "*) ;;
930       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931          ac_unrecognized_sep=', ';;
932     esac
933     eval enable_$ac_useropt=\$ac_optarg ;;
934
935   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937   | --exec | --exe | --ex)
938     ac_prev=exec_prefix ;;
939   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941   | --exec=* | --exe=* | --ex=*)
942     exec_prefix=$ac_optarg ;;
943
944   -gas | --gas | --ga | --g)
945     # Obsolete; use --with-gas.
946     with_gas=yes ;;
947
948   -help | --help | --hel | --he | -h)
949     ac_init_help=long ;;
950   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951     ac_init_help=recursive ;;
952   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953     ac_init_help=short ;;
954
955   -host | --host | --hos | --ho)
956     ac_prev=host_alias ;;
957   -host=* | --host=* | --hos=* | --ho=*)
958     host_alias=$ac_optarg ;;
959
960   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961     ac_prev=htmldir ;;
962   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963   | --ht=*)
964     htmldir=$ac_optarg ;;
965
966   -includedir | --includedir | --includedi | --included | --include \
967   | --includ | --inclu | --incl | --inc)
968     ac_prev=includedir ;;
969   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970   | --includ=* | --inclu=* | --incl=* | --inc=*)
971     includedir=$ac_optarg ;;
972
973   -infodir | --infodir | --infodi | --infod | --info | --inf)
974     ac_prev=infodir ;;
975   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976     infodir=$ac_optarg ;;
977
978   -libdir | --libdir | --libdi | --libd)
979     ac_prev=libdir ;;
980   -libdir=* | --libdir=* | --libdi=* | --libd=*)
981     libdir=$ac_optarg ;;
982
983   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984   | --libexe | --libex | --libe)
985     ac_prev=libexecdir ;;
986   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987   | --libexe=* | --libex=* | --libe=*)
988     libexecdir=$ac_optarg ;;
989
990   -localedir | --localedir | --localedi | --localed | --locale)
991     ac_prev=localedir ;;
992   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993     localedir=$ac_optarg ;;
994
995   -localstatedir | --localstatedir | --localstatedi | --localstated \
996   | --localstate | --localstat | --localsta | --localst | --locals)
997     ac_prev=localstatedir ;;
998   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
999   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1000     localstatedir=$ac_optarg ;;
1001
1002   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003     ac_prev=mandir ;;
1004   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005     mandir=$ac_optarg ;;
1006
1007   -nfp | --nfp | --nf)
1008     # Obsolete; use --without-fp.
1009     with_fp=no ;;
1010
1011   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012   | --no-cr | --no-c | -n)
1013     no_create=yes ;;
1014
1015   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017     no_recursion=yes ;;
1018
1019   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021   | --oldin | --oldi | --old | --ol | --o)
1022     ac_prev=oldincludedir ;;
1023   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026     oldincludedir=$ac_optarg ;;
1027
1028   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029     ac_prev=prefix ;;
1030   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031     prefix=$ac_optarg ;;
1032
1033   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034   | --program-pre | --program-pr | --program-p)
1035     ac_prev=program_prefix ;;
1036   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038     program_prefix=$ac_optarg ;;
1039
1040   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041   | --program-suf | --program-su | --program-s)
1042     ac_prev=program_suffix ;;
1043   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045     program_suffix=$ac_optarg ;;
1046
1047   -program-transform-name | --program-transform-name \
1048   | --program-transform-nam | --program-transform-na \
1049   | --program-transform-n | --program-transform- \
1050   | --program-transform | --program-transfor \
1051   | --program-transfo | --program-transf \
1052   | --program-trans | --program-tran \
1053   | --progr-tra | --program-tr | --program-t)
1054     ac_prev=program_transform_name ;;
1055   -program-transform-name=* | --program-transform-name=* \
1056   | --program-transform-nam=* | --program-transform-na=* \
1057   | --program-transform-n=* | --program-transform-=* \
1058   | --program-transform=* | --program-transfor=* \
1059   | --program-transfo=* | --program-transf=* \
1060   | --program-trans=* | --program-tran=* \
1061   | --progr-tra=* | --program-tr=* | --program-t=*)
1062     program_transform_name=$ac_optarg ;;
1063
1064   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065     ac_prev=pdfdir ;;
1066   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067     pdfdir=$ac_optarg ;;
1068
1069   -psdir | --psdir | --psdi | --psd | --ps)
1070     ac_prev=psdir ;;
1071   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072     psdir=$ac_optarg ;;
1073
1074   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075   | -silent | --silent | --silen | --sile | --sil)
1076     silent=yes ;;
1077
1078   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079     ac_prev=sbindir ;;
1080   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081   | --sbi=* | --sb=*)
1082     sbindir=$ac_optarg ;;
1083
1084   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086   | --sharedst | --shareds | --shared | --share | --shar \
1087   | --sha | --sh)
1088     ac_prev=sharedstatedir ;;
1089   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092   | --sha=* | --sh=*)
1093     sharedstatedir=$ac_optarg ;;
1094
1095   -site | --site | --sit)
1096     ac_prev=site ;;
1097   -site=* | --site=* | --sit=*)
1098     site=$ac_optarg ;;
1099
1100   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101     ac_prev=srcdir ;;
1102   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103     srcdir=$ac_optarg ;;
1104
1105   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106   | --syscon | --sysco | --sysc | --sys | --sy)
1107     ac_prev=sysconfdir ;;
1108   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110     sysconfdir=$ac_optarg ;;
1111
1112   -target | --target | --targe | --targ | --tar | --ta | --t)
1113     ac_prev=target_alias ;;
1114   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115     target_alias=$ac_optarg ;;
1116
1117   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118     verbose=yes ;;
1119
1120   -version | --version | --versio | --versi | --vers | -V)
1121     ac_init_version=: ;;
1122
1123   -with-* | --with-*)
1124     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125     # Reject names that are not valid shell variable names.
1126     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127       as_fn_error $? "invalid package name: $ac_useropt"
1128     ac_useropt_orig=$ac_useropt
1129     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130     case $ac_user_opts in
1131       *"
1132 "with_$ac_useropt"
1133 "*) ;;
1134       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135          ac_unrecognized_sep=', ';;
1136     esac
1137     eval with_$ac_useropt=\$ac_optarg ;;
1138
1139   -without-* | --without-*)
1140     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141     # Reject names that are not valid shell variable names.
1142     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143       as_fn_error $? "invalid package name: $ac_useropt"
1144     ac_useropt_orig=$ac_useropt
1145     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146     case $ac_user_opts in
1147       *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151          ac_unrecognized_sep=', ';;
1152     esac
1153     eval with_$ac_useropt=no ;;
1154
1155   --x)
1156     # Obsolete; use --with-x.
1157     with_x=yes ;;
1158
1159   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160   | --x-incl | --x-inc | --x-in | --x-i)
1161     ac_prev=x_includes ;;
1162   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164     x_includes=$ac_optarg ;;
1165
1166   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168     ac_prev=x_libraries ;;
1169   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171     x_libraries=$ac_optarg ;;
1172
1173   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1174 Try \`$0 --help' for more information"
1175     ;;
1176
1177   *=*)
1178     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179     # Reject names that are not valid shell variable names.
1180     case $ac_envvar in #(
1181       '' | [0-9]* | *[!_$as_cr_alnum]* )
1182       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1183     esac
1184     eval $ac_envvar=\$ac_optarg
1185     export $ac_envvar ;;
1186
1187   *)
1188     # FIXME: should be removed in autoconf 3.0.
1189     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1193     ;;
1194
1195   esac
1196 done
1197
1198 if test -n "$ac_prev"; then
1199   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200   as_fn_error $? "missing argument to $ac_option"
1201 fi
1202
1203 if test -n "$ac_unrecognized_opts"; then
1204   case $enable_option_checking in
1205     no) ;;
1206     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1207     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208   esac
1209 fi
1210
1211 # Check all directory arguments for consistency.
1212 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213                 datadir sysconfdir sharedstatedir localstatedir includedir \
1214                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215                 libdir localedir mandir
1216 do
1217   eval ac_val=\$$ac_var
1218   # Remove trailing slashes.
1219   case $ac_val in
1220     */ )
1221       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222       eval $ac_var=\$ac_val;;
1223   esac
1224   # Be sure to have absolute directory names.
1225   case $ac_val in
1226     [\\/$]* | ?:[\\/]* )  continue;;
1227     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228   esac
1229   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1230 done
1231
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1238
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241   if test "x$build_alias" = x; then
1242     cross_compiling=maybe
1243   elif test "x$build_alias" != "x$host_alias"; then
1244     cross_compiling=yes
1245   fi
1246 fi
1247
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250
1251 test "$silent" = yes && exec 6>/dev/null
1252
1253
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257   as_fn_error $? "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259   as_fn_error $? "pwd does not report name of working directory"
1260
1261
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264   ac_srcdir_defaulted=yes
1265   # Try the directory containing this script, then the parent directory.
1266   ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268          X"$as_myself" : 'X\(//\)[^/]' \| \
1269          X"$as_myself" : 'X\(//\)$' \| \
1270          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\/\)[^/].*/{
1277             s//\1/
1278             q
1279           }
1280           /^X\(\/\/\)$/{
1281             s//\1/
1282             q
1283           }
1284           /^X\(\/\).*/{
1285             s//\1/
1286             q
1287           }
1288           s/.*/./; q'`
1289   srcdir=$ac_confdir
1290   if test ! -r "$srcdir/$ac_unique_file"; then
1291     srcdir=..
1292   fi
1293 else
1294   ac_srcdir_defaulted=no
1295 fi
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1299 fi
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1303         pwd)`
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306   srcdir=.
1307 fi
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1311 case $srcdir in
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 esac
1314 for ac_var in $ac_precious_vars; do
1315   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316   eval ac_env_${ac_var}_value=\$${ac_var}
1317   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319 done
1320
1321 #
1322 # Report the --help message.
1323 #
1324 if test "$ac_init_help" = "long"; then
1325   # Omit some internal or obsolete options to make the list less imposing.
1326   # This message is too long to be a string in the A/UX 3.1 sh.
1327   cat <<_ACEOF
1328 \`configure' configures CCUnit 2.1 to adapt to many kinds of systems.
1329
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE.  See below for descriptions of some of the useful variables.
1334
1335 Defaults for the options are specified in brackets.
1336
1337 Configuration:
1338   -h, --help              display this help and exit
1339       --help=short        display options specific to this package
1340       --help=recursive    display the short help of all the included packages
1341   -V, --version           display version information and exit
1342   -q, --quiet, --silent   do not print \`checking ...' messages
1343       --cache-file=FILE   cache test results in FILE [disabled]
1344   -C, --config-cache      alias for \`--cache-file=config.cache'
1345   -n, --no-create         do not create output files
1346       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1347
1348 Installation directories:
1349   --prefix=PREFIX         install architecture-independent files in PREFIX
1350                           [$ac_default_prefix]
1351   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1352                           [PREFIX]
1353
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1358
1359 For better control, use the options below.
1360
1361 Fine tuning of the installation directories:
1362   --bindir=DIR            user executables [EPREFIX/bin]
1363   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1364   --libexecdir=DIR        program executables [EPREFIX/libexec]
1365   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1366   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1367   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1368   --libdir=DIR            object code libraries [EPREFIX/lib]
1369   --includedir=DIR        C header files [PREFIX/include]
1370   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1371   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1372   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1373   --infodir=DIR           info documentation [DATAROOTDIR/info]
1374   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1375   --mandir=DIR            man documentation [DATAROOTDIR/man]
1376   --docdir=DIR            documentation root [DATAROOTDIR/doc/ccunit]
1377   --htmldir=DIR           html documentation [DOCDIR]
1378   --dvidir=DIR            dvi documentation [DOCDIR]
1379   --pdfdir=DIR            pdf documentation [DOCDIR]
1380   --psdir=DIR             ps documentation [DOCDIR]
1381 _ACEOF
1382
1383   cat <<\_ACEOF
1384
1385 Program names:
1386   --program-prefix=PREFIX            prepend PREFIX to installed program names
1387   --program-suffix=SUFFIX            append SUFFIX to installed program names
1388   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1389
1390 System types:
1391   --build=BUILD     configure for building on BUILD [guessed]
1392   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1393 _ACEOF
1394 fi
1395
1396 if test -n "$ac_init_help"; then
1397   case $ac_init_help in
1398      short | recursive ) echo "Configuration of CCUnit 2.1:";;
1399    esac
1400   cat <<\_ACEOF
1401
1402 Optional Features:
1403   --disable-option-checking  ignore unrecognized --enable/--with options
1404   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1405   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1406   --enable-dependency-tracking
1407                           do not reject slow dependency extractors
1408   --disable-dependency-tracking
1409                           speeds up one-time build
1410   --enable-html-docs      enable HTML generation with doxygen (yes)
1411   --enable-latex-docs     enable LaTeX documentation generation with doxygen
1412                           (no)
1413   --enable-coverage       enable coverage testing
1414   --enable-japanese-doc   output japanese documents
1415   --enable-shared[=PKGS]  build shared libraries [default=yes]
1416   --enable-static[=PKGS]  build static libraries [default=yes]
1417   --enable-fast-install[=PKGS]
1418                           optimize for fast installation [default=yes]
1419   --disable-libtool-lock  avoid locking (might break parallel builds)
1420
1421 Optional Packages:
1422   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1423   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1424   --with-dmalloc          use dmalloc, as in http://www.dmalloc.com
1425   --enable-doxygen        enable documentation generation with doxygen (yes)
1426   --enable-dot            use 'dot' to generate graphs in doxygen (yes)
1427   --with-pic              try to use only PIC/non-PIC objects [default=use
1428                           both]
1429   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1430
1431 Some influential environment variables:
1432   CC          C compiler command
1433   CFLAGS      C compiler flags
1434   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1435               nonstandard directory <lib dir>
1436   LIBS        libraries to pass to the linker, e.g. -l<library>
1437   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1438               you have headers in a nonstandard directory <include dir>
1439   CPP         C preprocessor
1440
1441 Use these variables to override the choices made by `configure' or to help
1442 it to find libraries and programs with nonstandard names/locations.
1443
1444 Report bugs to <tsntsumi@users.sourceforge.jp>.
1445 CCUnit home page: <http://ccunit.sourceforge.jp>.
1446 _ACEOF
1447 ac_status=$?
1448 fi
1449
1450 if test "$ac_init_help" = "recursive"; then
1451   # If there are subdirs, report their specific --help.
1452   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453     test -d "$ac_dir" ||
1454       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455       continue
1456     ac_builddir=.
1457
1458 case "$ac_dir" in
1459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *)
1461   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462   # A ".." for each directory in $ac_dir_suffix.
1463   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464   case $ac_top_builddir_sub in
1465   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1467   esac ;;
1468 esac
1469 ac_abs_top_builddir=$ac_pwd
1470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471 # for backward compatibility:
1472 ac_top_builddir=$ac_top_build_prefix
1473
1474 case $srcdir in
1475   .)  # We are building in place.
1476     ac_srcdir=.
1477     ac_top_srcdir=$ac_top_builddir_sub
1478     ac_abs_top_srcdir=$ac_pwd ;;
1479   [\\/]* | ?:[\\/]* )  # Absolute name.
1480     ac_srcdir=$srcdir$ac_dir_suffix;
1481     ac_top_srcdir=$srcdir
1482     ac_abs_top_srcdir=$srcdir ;;
1483   *) # Relative name.
1484     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485     ac_top_srcdir=$ac_top_build_prefix$srcdir
1486     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1487 esac
1488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1489
1490     cd "$ac_dir" || { ac_status=$?; continue; }
1491     # Check for guested configure.
1492     if test -f "$ac_srcdir/configure.gnu"; then
1493       echo &&
1494       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495     elif test -f "$ac_srcdir/configure"; then
1496       echo &&
1497       $SHELL "$ac_srcdir/configure" --help=recursive
1498     else
1499       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1500     fi || ac_status=$?
1501     cd "$ac_pwd" || { ac_status=$?; break; }
1502   done
1503 fi
1504
1505 test -n "$ac_init_help" && exit $ac_status
1506 if $ac_init_version; then
1507   cat <<\_ACEOF
1508 CCUnit configure 2.1
1509 generated by GNU Autoconf 2.69
1510
1511 Copyright (C) 2012 Free Software Foundation, Inc.
1512 This configure script is free software; the Free Software Foundation
1513 gives unlimited permission to copy, distribute and modify it.
1514 _ACEOF
1515   exit
1516 fi
1517
1518 ## ------------------------ ##
1519 ## Autoconf initialization. ##
1520 ## ------------------------ ##
1521
1522 # ac_fn_c_try_compile LINENO
1523 # --------------------------
1524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_compile ()
1526 {
1527   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528   rm -f conftest.$ac_objext
1529   if { { ac_try="$ac_compile"
1530 case "(($ac_try" in
1531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532   *) ac_try_echo=$ac_try;;
1533 esac
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536   (eval "$ac_compile") 2>conftest.err
1537   ac_status=$?
1538   if test -s conftest.err; then
1539     grep -v '^ *+' conftest.err >conftest.er1
1540     cat conftest.er1 >&5
1541     mv -f conftest.er1 conftest.err
1542   fi
1543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544   test $ac_status = 0; } && {
1545          test -z "$ac_c_werror_flag" ||
1546          test ! -s conftest.err
1547        } && test -s conftest.$ac_objext; then :
1548   ac_retval=0
1549 else
1550   $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1552
1553         ac_retval=1
1554 fi
1555   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556   as_fn_set_status $ac_retval
1557
1558 } # ac_fn_c_try_compile
1559
1560 # ac_fn_c_try_cpp LINENO
1561 # ----------------------
1562 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_cpp ()
1564 {
1565   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566   if { { ac_try="$ac_cpp conftest.$ac_ext"
1567 case "(($ac_try" in
1568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569   *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1574   ac_status=$?
1575   if test -s conftest.err; then
1576     grep -v '^ *+' conftest.err >conftest.er1
1577     cat conftest.er1 >&5
1578     mv -f conftest.er1 conftest.err
1579   fi
1580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581   test $ac_status = 0; } > conftest.i && {
1582          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1583          test ! -s conftest.err
1584        }; then :
1585   ac_retval=0
1586 else
1587   $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1589
1590     ac_retval=1
1591 fi
1592   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593   as_fn_set_status $ac_retval
1594
1595 } # ac_fn_c_try_cpp
1596
1597 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1598 # -------------------------------------------------------
1599 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1600 # the include files in INCLUDES and setting the cache variable VAR
1601 # accordingly.
1602 ac_fn_c_check_header_mongrel ()
1603 {
1604   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605   if eval \${$3+:} false; then :
1606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607 $as_echo_n "checking for $2... " >&6; }
1608 if eval \${$3+:} false; then :
1609   $as_echo_n "(cached) " >&6
1610 fi
1611 eval ac_res=\$$3
1612                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1613 $as_echo "$ac_res" >&6; }
1614 else
1615   # Is the header compilable?
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1617 $as_echo_n "checking $2 usability... " >&6; }
1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619 /* end confdefs.h.  */
1620 $4
1621 #include <$2>
1622 _ACEOF
1623 if ac_fn_c_try_compile "$LINENO"; then :
1624   ac_header_compiler=yes
1625 else
1626   ac_header_compiler=no
1627 fi
1628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1630 $as_echo "$ac_header_compiler" >&6; }
1631
1632 # Is the header present?
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1634 $as_echo_n "checking $2 presence... " >&6; }
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h.  */
1637 #include <$2>
1638 _ACEOF
1639 if ac_fn_c_try_cpp "$LINENO"; then :
1640   ac_header_preproc=yes
1641 else
1642   ac_header_preproc=no
1643 fi
1644 rm -f conftest.err conftest.i conftest.$ac_ext
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1646 $as_echo "$ac_header_preproc" >&6; }
1647
1648 # So?  What about this header?
1649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1650   yes:no: )
1651     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1652 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1653     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1654 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1655     ;;
1656   no:yes:* )
1657     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1658 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1659     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1660 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1661     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1662 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1663     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1664 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1665     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1666 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1667 ( $as_echo "## -------------------------------------------- ##
1668 ## Report this to tsntsumi@users.sourceforge.jp ##
1669 ## -------------------------------------------- ##"
1670      ) | sed "s/^/$as_me: WARNING:     /" >&2
1671     ;;
1672 esac
1673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674 $as_echo_n "checking for $2... " >&6; }
1675 if eval \${$3+:} false; then :
1676   $as_echo_n "(cached) " >&6
1677 else
1678   eval "$3=\$ac_header_compiler"
1679 fi
1680 eval ac_res=\$$3
1681                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682 $as_echo "$ac_res" >&6; }
1683 fi
1684   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685
1686 } # ac_fn_c_check_header_mongrel
1687
1688 # ac_fn_c_try_run LINENO
1689 # ----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1691 # that executables *can* be run.
1692 ac_fn_c_try_run ()
1693 {
1694   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695   if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698   *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702   (eval "$ac_link") 2>&5
1703   ac_status=$?
1704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1706   { { case "(($ac_try" in
1707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708   *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712   (eval "$ac_try") 2>&5
1713   ac_status=$?
1714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715   test $ac_status = 0; }; }; then :
1716   ac_retval=0
1717 else
1718   $as_echo "$as_me: program exited with status $ac_status" >&5
1719        $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722        ac_retval=$ac_status
1723 fi
1724   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726   as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_try_run
1729
1730 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1731 # -------------------------------------------------------
1732 # Tests whether HEADER exists and can be compiled using the include files in
1733 # INCLUDES, setting the cache variable VAR accordingly.
1734 ac_fn_c_check_header_compile ()
1735 {
1736   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if eval \${$3+:} false; then :
1740   $as_echo_n "(cached) " >&6
1741 else
1742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h.  */
1744 $4
1745 #include <$2>
1746 _ACEOF
1747 if ac_fn_c_try_compile "$LINENO"; then :
1748   eval "$3=yes"
1749 else
1750   eval "$3=no"
1751 fi
1752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1753 fi
1754 eval ac_res=\$$3
1755                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1757   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758
1759 } # ac_fn_c_check_header_compile
1760
1761 # ac_fn_c_try_link LINENO
1762 # -----------------------
1763 # Try to link conftest.$ac_ext, and return whether this succeeded.
1764 ac_fn_c_try_link ()
1765 {
1766   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767   rm -f conftest.$ac_objext conftest$ac_exeext
1768   if { { ac_try="$ac_link"
1769 case "(($ac_try" in
1770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771   *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775   (eval "$ac_link") 2>conftest.err
1776   ac_status=$?
1777   if test -s conftest.err; then
1778     grep -v '^ *+' conftest.err >conftest.er1
1779     cat conftest.er1 >&5
1780     mv -f conftest.er1 conftest.err
1781   fi
1782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783   test $ac_status = 0; } && {
1784          test -z "$ac_c_werror_flag" ||
1785          test ! -s conftest.err
1786        } && test -s conftest$ac_exeext && {
1787          test "$cross_compiling" = yes ||
1788          test -x conftest$ac_exeext
1789        }; then :
1790   ac_retval=0
1791 else
1792   $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1794
1795         ac_retval=1
1796 fi
1797   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1798   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1799   # interfere with the next link command; also delete a directory that is
1800   # left behind by Apple's compiler.  We do this before executing the actions.
1801   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803   as_fn_set_status $ac_retval
1804
1805 } # ac_fn_c_try_link
1806
1807 # ac_fn_c_check_func LINENO FUNC VAR
1808 # ----------------------------------
1809 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1810 ac_fn_c_check_func ()
1811 {
1812   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if eval \${$3+:} false; then :
1816   $as_echo_n "(cached) " >&6
1817 else
1818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h.  */
1820 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1821    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1822 #define $2 innocuous_$2
1823
1824 /* System header to define __stub macros and hopefully few prototypes,
1825     which can conflict with char $2 (); below.
1826     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1827     <limits.h> exists even on freestanding compilers.  */
1828
1829 #ifdef __STDC__
1830 # include <limits.h>
1831 #else
1832 # include <assert.h>
1833 #endif
1834
1835 #undef $2
1836
1837 /* Override any GCC internal prototype to avoid an error.
1838    Use char because int might match the return type of a GCC
1839    builtin and then its argument prototype would still apply.  */
1840 #ifdef __cplusplus
1841 extern "C"
1842 #endif
1843 char $2 ();
1844 /* The GNU C library defines this for functions which it implements
1845     to always fail with ENOSYS.  Some functions are actually named
1846     something starting with __ and the normal name is an alias.  */
1847 #if defined __stub_$2 || defined __stub___$2
1848 choke me
1849 #endif
1850
1851 int
1852 main ()
1853 {
1854 return $2 ();
1855   ;
1856   return 0;
1857 }
1858 _ACEOF
1859 if ac_fn_c_try_link "$LINENO"; then :
1860   eval "$3=yes"
1861 else
1862   eval "$3=no"
1863 fi
1864 rm -f core conftest.err conftest.$ac_objext \
1865     conftest$ac_exeext conftest.$ac_ext
1866 fi
1867 eval ac_res=\$$3
1868                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871
1872 } # ac_fn_c_check_func
1873
1874 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1875 # -------------------------------------------
1876 # Tests whether TYPE exists after having included INCLUDES, setting cache
1877 # variable VAR accordingly.
1878 ac_fn_c_check_type ()
1879 {
1880   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval \${$3+:} false; then :
1884   $as_echo_n "(cached) " >&6
1885 else
1886   eval "$3=no"
1887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h.  */
1889 $4
1890 int
1891 main ()
1892 {
1893 if (sizeof ($2))
1894          return 0;
1895   ;
1896   return 0;
1897 }
1898 _ACEOF
1899 if ac_fn_c_try_compile "$LINENO"; then :
1900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h.  */
1902 $4
1903 int
1904 main ()
1905 {
1906 if (sizeof (($2)))
1907             return 0;
1908   ;
1909   return 0;
1910 }
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913
1914 else
1915   eval "$3=yes"
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 fi
1921 eval ac_res=\$$3
1922                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926 } # ac_fn_c_check_type
1927 cat >config.log <<_ACEOF
1928 This file contains any messages produced by compilers while
1929 running configure, to aid debugging if configure makes a mistake.
1930
1931 It was created by CCUnit $as_me 2.1, which was
1932 generated by GNU Autoconf 2.69.  Invocation command line was
1933
1934   $ $0 $@
1935
1936 _ACEOF
1937 exec 5>>config.log
1938 {
1939 cat <<_ASUNAME
1940 ## --------- ##
1941 ## Platform. ##
1942 ## --------- ##
1943
1944 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1945 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1946 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1947 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1948 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1949
1950 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1951 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1952
1953 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1954 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1955 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1956 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1957 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1958 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1959 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1960
1961 _ASUNAME
1962
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966   IFS=$as_save_IFS
1967   test -z "$as_dir" && as_dir=.
1968     $as_echo "PATH: $as_dir"
1969   done
1970 IFS=$as_save_IFS
1971
1972 } >&5
1973
1974 cat >&5 <<_ACEOF
1975
1976
1977 ## ----------- ##
1978 ## Core tests. ##
1979 ## ----------- ##
1980
1981 _ACEOF
1982
1983
1984 # Keep a trace of the command line.
1985 # Strip out --no-create and --no-recursion so they do not pile up.
1986 # Strip out --silent because we don't want to record it for future runs.
1987 # Also quote any args containing shell meta-characters.
1988 # Make two passes to allow for proper duplicate-argument suppression.
1989 ac_configure_args=
1990 ac_configure_args0=
1991 ac_configure_args1=
1992 ac_must_keep_next=false
1993 for ac_pass in 1 2
1994 do
1995   for ac_arg
1996   do
1997     case $ac_arg in
1998     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1999     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2000     | -silent | --silent | --silen | --sile | --sil)
2001       continue ;;
2002     *\'*)
2003       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2004     esac
2005     case $ac_pass in
2006     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2007     2)
2008       as_fn_append ac_configure_args1 " '$ac_arg'"
2009       if test $ac_must_keep_next = true; then
2010         ac_must_keep_next=false # Got value, back to normal.
2011       else
2012         case $ac_arg in
2013           *=* | --config-cache | -C | -disable-* | --disable-* \
2014           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2015           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2016           | -with-* | --with-* | -without-* | --without-* | --x)
2017             case "$ac_configure_args0 " in
2018               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2019             esac
2020             ;;
2021           -* ) ac_must_keep_next=true ;;
2022         esac
2023       fi
2024       as_fn_append ac_configure_args " '$ac_arg'"
2025       ;;
2026     esac
2027   done
2028 done
2029 { ac_configure_args0=; unset ac_configure_args0;}
2030 { ac_configure_args1=; unset ac_configure_args1;}
2031
2032 # When interrupted or exit'd, cleanup temporary files, and complete
2033 # config.log.  We remove comments because anyway the quotes in there
2034 # would cause problems or look ugly.
2035 # WARNING: Use '\'' to represent an apostrophe within the trap.
2036 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2037 trap 'exit_status=$?
2038   # Save into config.log some information that might help in debugging.
2039   {
2040     echo
2041
2042     $as_echo "## ---------------- ##
2043 ## Cache variables. ##
2044 ## ---------------- ##"
2045     echo
2046     # The following way of writing the cache mishandles newlines in values,
2047 (
2048   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2049     eval ac_val=\$$ac_var
2050     case $ac_val in #(
2051     *${as_nl}*)
2052       case $ac_var in #(
2053       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2055       esac
2056       case $ac_var in #(
2057       _ | IFS | as_nl) ;; #(
2058       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2059       *) { eval $ac_var=; unset $ac_var;} ;;
2060       esac ;;
2061     esac
2062   done
2063   (set) 2>&1 |
2064     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2065     *${as_nl}ac_space=\ *)
2066       sed -n \
2067         "s/'\''/'\''\\\\'\'''\''/g;
2068           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2069       ;; #(
2070     *)
2071       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2072       ;;
2073     esac |
2074     sort
2075 )
2076     echo
2077
2078     $as_echo "## ----------------- ##
2079 ## Output variables. ##
2080 ## ----------------- ##"
2081     echo
2082     for ac_var in $ac_subst_vars
2083     do
2084       eval ac_val=\$$ac_var
2085       case $ac_val in
2086       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2087       esac
2088       $as_echo "$ac_var='\''$ac_val'\''"
2089     done | sort
2090     echo
2091
2092     if test -n "$ac_subst_files"; then
2093       $as_echo "## ------------------- ##
2094 ## File substitutions. ##
2095 ## ------------------- ##"
2096       echo
2097       for ac_var in $ac_subst_files
2098       do
2099         eval ac_val=\$$ac_var
2100         case $ac_val in
2101         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2102         esac
2103         $as_echo "$ac_var='\''$ac_val'\''"
2104       done | sort
2105       echo
2106     fi
2107
2108     if test -s confdefs.h; then
2109       $as_echo "## ----------- ##
2110 ## confdefs.h. ##
2111 ## ----------- ##"
2112       echo
2113       cat confdefs.h
2114       echo
2115     fi
2116     test "$ac_signal" != 0 &&
2117       $as_echo "$as_me: caught signal $ac_signal"
2118     $as_echo "$as_me: exit $exit_status"
2119   } >&5
2120   rm -f core *.core core.conftest.* &&
2121     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2122     exit $exit_status
2123 ' 0
2124 for ac_signal in 1 2 13 15; do
2125   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2126 done
2127 ac_signal=0
2128
2129 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2130 rm -f -r conftest* confdefs.h
2131
2132 $as_echo "/* confdefs.h */" > confdefs.h
2133
2134 # Predefined preprocessor variables.
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_NAME "$PACKAGE_NAME"
2138 _ACEOF
2139
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2142 _ACEOF
2143
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2146 _ACEOF
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_STRING "$PACKAGE_STRING"
2150 _ACEOF
2151
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2154 _ACEOF
2155
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_URL "$PACKAGE_URL"
2158 _ACEOF
2159
2160
2161 # Let the site file select an alternate cache file if it wants to.
2162 # Prefer an explicitly selected file to automatically selected ones.
2163 ac_site_file1=NONE
2164 ac_site_file2=NONE
2165 if test -n "$CONFIG_SITE"; then
2166   # We do not want a PATH search for config.site.
2167   case $CONFIG_SITE in #((
2168     -*)  ac_site_file1=./$CONFIG_SITE;;
2169     */*) ac_site_file1=$CONFIG_SITE;;
2170     *)   ac_site_file1=./$CONFIG_SITE;;
2171   esac
2172 elif test "x$prefix" != xNONE; then
2173   ac_site_file1=$prefix/share/config.site
2174   ac_site_file2=$prefix/etc/config.site
2175 else
2176   ac_site_file1=$ac_default_prefix/share/config.site
2177   ac_site_file2=$ac_default_prefix/etc/config.site
2178 fi
2179 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2180 do
2181   test "x$ac_site_file" = xNONE && continue
2182   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2183     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2184 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2185     sed 's/^/| /' "$ac_site_file" >&5
2186     . "$ac_site_file" \
2187       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2189 as_fn_error $? "failed to load site script $ac_site_file
2190 See \`config.log' for more details" "$LINENO" 5; }
2191   fi
2192 done
2193
2194 if test -r "$cache_file"; then
2195   # Some versions of bash will fail to source /dev/null (special files
2196   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2197   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2198     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2199 $as_echo "$as_me: loading cache $cache_file" >&6;}
2200     case $cache_file in
2201       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2202       *)                      . "./$cache_file";;
2203     esac
2204   fi
2205 else
2206   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2207 $as_echo "$as_me: creating cache $cache_file" >&6;}
2208   >$cache_file
2209 fi
2210
2211 # Check that the precious variables saved in the cache have kept the same
2212 # value.
2213 ac_cache_corrupted=false
2214 for ac_var in $ac_precious_vars; do
2215   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2216   eval ac_new_set=\$ac_env_${ac_var}_set
2217   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2218   eval ac_new_val=\$ac_env_${ac_var}_value
2219   case $ac_old_set,$ac_new_set in
2220     set,)
2221       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2222 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2223       ac_cache_corrupted=: ;;
2224     ,set)
2225       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2226 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2227       ac_cache_corrupted=: ;;
2228     ,);;
2229     *)
2230       if test "x$ac_old_val" != "x$ac_new_val"; then
2231         # differences in whitespace do not lead to failure.
2232         ac_old_val_w=`echo x $ac_old_val`
2233         ac_new_val_w=`echo x $ac_new_val`
2234         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2235           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2236 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2237           ac_cache_corrupted=:
2238         else
2239           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2240 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2241           eval $ac_var=\$ac_old_val
2242         fi
2243         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2244 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2245         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2246 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2247       fi;;
2248   esac
2249   # Pass precious variables to config.status.
2250   if test "$ac_new_set" = set; then
2251     case $ac_new_val in
2252     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2253     *) ac_arg=$ac_var=$ac_new_val ;;
2254     esac
2255     case " $ac_configure_args " in
2256       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2257       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2258     esac
2259   fi
2260 done
2261 if $ac_cache_corrupted; then
2262   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2264   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2265 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2266   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2267 fi
2268 ## -------------------- ##
2269 ## Main body of script. ##
2270 ## -------------------- ##
2271
2272 ac_ext=c
2273 ac_cpp='$CPP $CPPFLAGS'
2274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2277
2278
2279
2280
2281 ac_aux_dir=
2282 for ac_dir in config "$srcdir"/config; do
2283   if test -f "$ac_dir/install-sh"; then
2284     ac_aux_dir=$ac_dir
2285     ac_install_sh="$ac_aux_dir/install-sh -c"
2286     break
2287   elif test -f "$ac_dir/install.sh"; then
2288     ac_aux_dir=$ac_dir
2289     ac_install_sh="$ac_aux_dir/install.sh -c"
2290     break
2291   elif test -f "$ac_dir/shtool"; then
2292     ac_aux_dir=$ac_dir
2293     ac_install_sh="$ac_aux_dir/shtool install -c"
2294     break
2295   fi
2296 done
2297 if test -z "$ac_aux_dir"; then
2298   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2299 fi
2300
2301 # These three variables are undocumented and unsupported,
2302 # and are intended to be withdrawn in a future Autoconf release.
2303 # They can cause serious problems if a builder's source tree is in a directory
2304 # whose full name contains unusual characters.
2305 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2306 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2307 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2308
2309
2310 ac_config_headers="$ac_config_headers config/config.h"
2311
2312
2313
2314 am__api_version='1.12'
2315
2316 # Find a good install program.  We prefer a C program (faster),
2317 # so one script is as good as another.  But avoid the broken or
2318 # incompatible versions:
2319 # SysV /etc/install, /usr/sbin/install
2320 # SunOS /usr/etc/install
2321 # IRIX /sbin/install
2322 # AIX /bin/install
2323 # AmigaOS /C/install, which installs bootblocks on floppy discs
2324 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2325 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2326 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2327 # OS/2's system install, which has a completely different semantic
2328 # ./install, which can be erroneously created by make from ./install.sh.
2329 # Reject install programs that cannot install multiple files.
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2331 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2332 if test -z "$INSTALL"; then
2333 if ${ac_cv_path_install+:} false; then :
2334   $as_echo_n "(cached) " >&6
2335 else
2336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 for as_dir in $PATH
2338 do
2339   IFS=$as_save_IFS
2340   test -z "$as_dir" && as_dir=.
2341     # Account for people who put trailing slashes in PATH elements.
2342 case $as_dir/ in #((
2343   ./ | .// | /[cC]/* | \
2344   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2345   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2346   /usr/ucb/* ) ;;
2347   *)
2348     # OSF1 and SCO ODT 3.0 have their own names for install.
2349     # Don't use installbsd from OSF since it installs stuff as root
2350     # by default.
2351     for ac_prog in ginstall scoinst install; do
2352       for ac_exec_ext in '' $ac_executable_extensions; do
2353         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2354           if test $ac_prog = install &&
2355             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2356             # AIX install.  It has an incompatible calling convention.
2357             :
2358           elif test $ac_prog = install &&
2359             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2360             # program-specific install script used by HP pwplus--don't use.
2361             :
2362           else
2363             rm -rf conftest.one conftest.two conftest.dir
2364             echo one > conftest.one
2365             echo two > conftest.two
2366             mkdir conftest.dir
2367             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2368               test -s conftest.one && test -s conftest.two &&
2369               test -s conftest.dir/conftest.one &&
2370               test -s conftest.dir/conftest.two
2371             then
2372               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2373               break 3
2374             fi
2375           fi
2376         fi
2377       done
2378     done
2379     ;;
2380 esac
2381
2382   done
2383 IFS=$as_save_IFS
2384
2385 rm -rf conftest.one conftest.two conftest.dir
2386
2387 fi
2388   if test "${ac_cv_path_install+set}" = set; then
2389     INSTALL=$ac_cv_path_install
2390   else
2391     # As a last resort, use the slow shell script.  Don't cache a
2392     # value for INSTALL within a source directory, because that will
2393     # break other packages using the cache if that directory is
2394     # removed, or if the value is a relative name.
2395     INSTALL=$ac_install_sh
2396   fi
2397 fi
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2399 $as_echo "$INSTALL" >&6; }
2400
2401 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2402 # It thinks the first close brace ends the variable substitution.
2403 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2404
2405 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2406
2407 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2408
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2410 $as_echo_n "checking whether build environment is sane... " >&6; }
2411 # Reject unsafe characters in $srcdir or the absolute working directory
2412 # name.  Accept space and tab only in the latter.
2413 am_lf='
2414 '
2415 case `pwd` in
2416   *[\\\"\#\$\&\'\`$am_lf]*)
2417     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2418 esac
2419 case $srcdir in
2420   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2421     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2422 esac
2423
2424 # Do 'set' in a subshell so we don't clobber the current shell's
2425 # arguments.  Must try -L first in case configure is actually a
2426 # symlink; some systems play weird games with the mod time of symlinks
2427 # (eg FreeBSD returns the mod time of the symlink's containing
2428 # directory).
2429 if (
2430    am_has_slept=no
2431    for am_try in 1 2; do
2432      echo "timestamp, slept: $am_has_slept" > conftest.file
2433      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2434      if test "$*" = "X"; then
2435         # -L didn't work.
2436         set X `ls -t "$srcdir/configure" conftest.file`
2437      fi
2438      if test "$*" != "X $srcdir/configure conftest.file" \
2439         && test "$*" != "X conftest.file $srcdir/configure"; then
2440
2441         # If neither matched, then we have a broken ls.  This can happen
2442         # if, for instance, CONFIG_SHELL is bash and it inherits a
2443         # broken ls alias from the environment.  This has actually
2444         # happened.  Such a system could not be considered "sane".
2445         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2446   alias in your environment" "$LINENO" 5
2447      fi
2448      if test "$2" = conftest.file || test $am_try -eq 2; then
2449        break
2450      fi
2451      # Just in case.
2452      sleep 1
2453      am_has_slept=yes
2454    done
2455    test "$2" = conftest.file
2456    )
2457 then
2458    # Ok.
2459    :
2460 else
2461    as_fn_error $? "newly created file is older than distributed files!
2462 Check your system clock" "$LINENO" 5
2463 fi
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2465 $as_echo "yes" >&6; }
2466 # If we didn't sleep, we still need to ensure time stamps of config.status and
2467 # generated files are strictly newer.
2468 am_sleep_pid=
2469 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2470   ( sleep 1 ) &
2471   am_sleep_pid=$!
2472 fi
2473
2474 rm -f conftest.file
2475
2476 test "$program_prefix" != NONE &&
2477   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2478 # Use a double $ so make ignores it.
2479 test "$program_suffix" != NONE &&
2480   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2481 # Double any \ or $.
2482 # By default was `s,x,x', remove it if useless.
2483 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2484 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2485
2486 # expand $ac_aux_dir to an absolute path
2487 am_aux_dir=`cd $ac_aux_dir && pwd`
2488
2489 if test x"${MISSING+set}" != xset; then
2490   case $am_aux_dir in
2491   *\ * | *\     *)
2492     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2493   *)
2494     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2495   esac
2496 fi
2497 # Use eval to expand $SHELL
2498 if eval "$MISSING --run true"; then
2499   am_missing_run="$MISSING --run "
2500 else
2501   am_missing_run=
2502   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2503 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2504 fi
2505
2506 if test x"${install_sh}" != xset; then
2507   case $am_aux_dir in
2508   *\ * | *\     *)
2509     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2510   *)
2511     install_sh="\${SHELL} $am_aux_dir/install-sh"
2512   esac
2513 fi
2514
2515 # Installed binaries are usually stripped using 'strip' when the user
2516 # run "make install-strip".  However 'strip' might not be the right
2517 # tool to use in cross-compilation environments, therefore Automake
2518 # will honor the 'STRIP' environment variable to overrule this program.
2519 if test "$cross_compiling" != no; then
2520   if test -n "$ac_tool_prefix"; then
2521   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2522 set dummy ${ac_tool_prefix}strip; ac_word=$2
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524 $as_echo_n "checking for $ac_word... " >&6; }
2525 if ${ac_cv_prog_STRIP+:} false; then :
2526   $as_echo_n "(cached) " >&6
2527 else
2528   if test -n "$STRIP"; then
2529   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2530 else
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 for as_dir in $PATH
2533 do
2534   IFS=$as_save_IFS
2535   test -z "$as_dir" && as_dir=.
2536     for ac_exec_ext in '' $ac_executable_extensions; do
2537   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2538     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2540     break 2
2541   fi
2542 done
2543   done
2544 IFS=$as_save_IFS
2545
2546 fi
2547 fi
2548 STRIP=$ac_cv_prog_STRIP
2549 if test -n "$STRIP"; then
2550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2551 $as_echo "$STRIP" >&6; }
2552 else
2553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2554 $as_echo "no" >&6; }
2555 fi
2556
2557
2558 fi
2559 if test -z "$ac_cv_prog_STRIP"; then
2560   ac_ct_STRIP=$STRIP
2561   # Extract the first word of "strip", so it can be a program name with args.
2562 set dummy strip; ac_word=$2
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564 $as_echo_n "checking for $ac_word... " >&6; }
2565 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2566   $as_echo_n "(cached) " >&6
2567 else
2568   if test -n "$ac_ct_STRIP"; then
2569   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2570 else
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574   IFS=$as_save_IFS
2575   test -z "$as_dir" && as_dir=.
2576     for ac_exec_ext in '' $ac_executable_extensions; do
2577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2578     ac_cv_prog_ac_ct_STRIP="strip"
2579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580     break 2
2581   fi
2582 done
2583   done
2584 IFS=$as_save_IFS
2585
2586 fi
2587 fi
2588 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2589 if test -n "$ac_ct_STRIP"; then
2590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2591 $as_echo "$ac_ct_STRIP" >&6; }
2592 else
2593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594 $as_echo "no" >&6; }
2595 fi
2596
2597   if test "x$ac_ct_STRIP" = x; then
2598     STRIP=":"
2599   else
2600     case $cross_compiling:$ac_tool_warned in
2601 yes:)
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2604 ac_tool_warned=yes ;;
2605 esac
2606     STRIP=$ac_ct_STRIP
2607   fi
2608 else
2609   STRIP="$ac_cv_prog_STRIP"
2610 fi
2611
2612 fi
2613 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2614
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2616 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2617 if test -z "$MKDIR_P"; then
2618   if ${ac_cv_path_mkdir+:} false; then :
2619   $as_echo_n "(cached) " >&6
2620 else
2621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2623 do
2624   IFS=$as_save_IFS
2625   test -z "$as_dir" && as_dir=.
2626     for ac_prog in mkdir gmkdir; do
2627          for ac_exec_ext in '' $ac_executable_extensions; do
2628            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2629            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2630              'mkdir (GNU coreutils) '* | \
2631              'mkdir (coreutils) '* | \
2632              'mkdir (fileutils) '4.1*)
2633                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2634                break 3;;
2635            esac
2636          done
2637        done
2638   done
2639 IFS=$as_save_IFS
2640
2641 fi
2642
2643   test -d ./--version && rmdir ./--version
2644   if test "${ac_cv_path_mkdir+set}" = set; then
2645     MKDIR_P="$ac_cv_path_mkdir -p"
2646   else
2647     # As a last resort, use the slow shell script.  Don't cache a
2648     # value for MKDIR_P within a source directory, because that will
2649     # break other packages using the cache if that directory is
2650     # removed, or if the value is a relative name.
2651     MKDIR_P="$ac_install_sh -d"
2652   fi
2653 fi
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2655 $as_echo "$MKDIR_P" >&6; }
2656
2657 for ac_prog in gawk mawk nawk awk
2658 do
2659   # Extract the first word of "$ac_prog", so it can be a program name with args.
2660 set dummy $ac_prog; ac_word=$2
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if ${ac_cv_prog_AWK+:} false; then :
2664   $as_echo_n "(cached) " >&6
2665 else
2666   if test -n "$AWK"; then
2667   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672   IFS=$as_save_IFS
2673   test -z "$as_dir" && as_dir=.
2674     for ac_exec_ext in '' $ac_executable_extensions; do
2675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2676     ac_cv_prog_AWK="$ac_prog"
2677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678     break 2
2679   fi
2680 done
2681   done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 AWK=$ac_cv_prog_AWK
2687 if test -n "$AWK"; then
2688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2689 $as_echo "$AWK" >&6; }
2690 else
2691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2693 fi
2694
2695
2696   test -n "$AWK" && break
2697 done
2698
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2700 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2701 set x ${MAKE-make}
2702 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2703 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2704   $as_echo_n "(cached) " >&6
2705 else
2706   cat >conftest.make <<\_ACEOF
2707 SHELL = /bin/sh
2708 all:
2709         @echo '@@@%%%=$(MAKE)=@@@%%%'
2710 _ACEOF
2711 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2712 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2713   *@@@%%%=?*=@@@%%%*)
2714     eval ac_cv_prog_make_${ac_make}_set=yes;;
2715   *)
2716     eval ac_cv_prog_make_${ac_make}_set=no;;
2717 esac
2718 rm -f conftest.make
2719 fi
2720 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2722 $as_echo "yes" >&6; }
2723   SET_MAKE=
2724 else
2725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2727   SET_MAKE="MAKE=${MAKE-make}"
2728 fi
2729
2730 rm -rf .tst 2>/dev/null
2731 mkdir .tst 2>/dev/null
2732 if test -d .tst; then
2733   am__leading_dot=.
2734 else
2735   am__leading_dot=_
2736 fi
2737 rmdir .tst 2>/dev/null
2738
2739 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2740   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2741   # is not polluted with repeated "-I."
2742   am__isrc=' -I$(srcdir)'
2743   # test to see if srcdir already configured
2744   if test -f $srcdir/config.status; then
2745     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2746   fi
2747 fi
2748
2749 # test whether we have cygpath
2750 if test -z "$CYGPATH_W"; then
2751   if (cygpath --version) >/dev/null 2>/dev/null; then
2752     CYGPATH_W='cygpath -w'
2753   else
2754     CYGPATH_W=echo
2755   fi
2756 fi
2757
2758
2759 # Define the identity of the package.
2760  PACKAGE='ccunit'
2761  VERSION='2.1'
2762
2763
2764 cat >>confdefs.h <<_ACEOF
2765 #define PACKAGE "$PACKAGE"
2766 _ACEOF
2767
2768
2769 cat >>confdefs.h <<_ACEOF
2770 #define VERSION "$VERSION"
2771 _ACEOF
2772
2773 # Some tools Automake needs.
2774
2775 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2776
2777
2778 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2779
2780
2781 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2782
2783
2784 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2785
2786
2787 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2788
2789 # For better backward compatibility.  To be removed once Automake 1.9.x
2790 # dies out for good.  For more background, see:
2791 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2792 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2793 mkdir_p='$(MKDIR_P)'
2794
2795 # We need awk for the "check" target.  The system "awk" is bad on
2796 # some platforms.
2797 # Always define AMTAR for backward compatibility.  Yes, it's still used
2798 # in the wild :-(  We should find a proper way to deprecate it ...
2799 AMTAR='$${TAR-tar}'
2800
2801 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2802
2803
2804
2805
2806
2807
2808 ac_config_commands="$ac_config_commands src/ccunit/config.h"
2809
2810
2811 DISTDOCDIR=$PACKAGE-$VERSION-doc
2812
2813 DISTDOCJADIR=$PACKAGE-$VERSION-docja
2814
2815
2816 ac_ext=c
2817 ac_cpp='$CPP $CPPFLAGS'
2818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2821
2822
2823 # Checks for programs.
2824 DEPDIR="${am__leading_dot}deps"
2825
2826 ac_config_commands="$ac_config_commands depfiles"
2827
2828
2829 am_make=${MAKE-make}
2830 cat > confinc << 'END'
2831 am__doit:
2832         @echo this is the am__doit target
2833 .PHONY: am__doit
2834 END
2835 # If we don't find an include directive, just comment out the code.
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2837 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2838 am__include="#"
2839 am__quote=
2840 _am_result=none
2841 # First try GNU make style include.
2842 echo "include confinc" > confmf
2843 # Ignore all kinds of additional output from 'make'.
2844 case `$am_make -s -f confmf 2> /dev/null` in #(
2845 *the\ am__doit\ target*)
2846   am__include=include
2847   am__quote=
2848   _am_result=GNU
2849   ;;
2850 esac
2851 # Now try BSD make style include.
2852 if test "$am__include" = "#"; then
2853    echo '.include "confinc"' > confmf
2854    case `$am_make -s -f confmf 2> /dev/null` in #(
2855    *the\ am__doit\ target*)
2856      am__include=.include
2857      am__quote="\""
2858      _am_result=BSD
2859      ;;
2860    esac
2861 fi
2862
2863
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2865 $as_echo "$_am_result" >&6; }
2866 rm -f confinc confmf
2867
2868 # Check whether --enable-dependency-tracking was given.
2869 if test "${enable_dependency_tracking+set}" = set; then :
2870   enableval=$enable_dependency_tracking;
2871 fi
2872
2873 if test "x$enable_dependency_tracking" != xno; then
2874   am_depcomp="$ac_aux_dir/depcomp"
2875   AMDEPBACKSLASH='\'
2876   am__nodep='_no'
2877 fi
2878  if test "x$enable_dependency_tracking" != xno; then
2879   AMDEP_TRUE=
2880   AMDEP_FALSE='#'
2881 else
2882   AMDEP_TRUE='#'
2883   AMDEP_FALSE=
2884 fi
2885
2886
2887 ac_ext=c
2888 ac_cpp='$CPP $CPPFLAGS'
2889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2892 if test -n "$ac_tool_prefix"; then
2893   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2894 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896 $as_echo_n "checking for $ac_word... " >&6; }
2897 if ${ac_cv_prog_CC+:} false; then :
2898   $as_echo_n "(cached) " >&6
2899 else
2900   if test -n "$CC"; then
2901   ac_cv_prog_CC="$CC" # Let the user override the test.
2902 else
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2905 do
2906   IFS=$as_save_IFS
2907   test -z "$as_dir" && as_dir=.
2908     for ac_exec_ext in '' $ac_executable_extensions; do
2909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2910     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2912     break 2
2913   fi
2914 done
2915   done
2916 IFS=$as_save_IFS
2917
2918 fi
2919 fi
2920 CC=$ac_cv_prog_CC
2921 if test -n "$CC"; then
2922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2923 $as_echo "$CC" >&6; }
2924 else
2925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 $as_echo "no" >&6; }
2927 fi
2928
2929
2930 fi
2931 if test -z "$ac_cv_prog_CC"; then
2932   ac_ct_CC=$CC
2933   # Extract the first word of "gcc", so it can be a program name with args.
2934 set dummy gcc; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2938   $as_echo_n "(cached) " >&6
2939 else
2940   if test -n "$ac_ct_CC"; then
2941   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946   IFS=$as_save_IFS
2947   test -z "$as_dir" && as_dir=.
2948     for ac_exec_ext in '' $ac_executable_extensions; do
2949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950     ac_cv_prog_ac_ct_CC="gcc"
2951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952     break 2
2953   fi
2954 done
2955   done
2956 IFS=$as_save_IFS
2957
2958 fi
2959 fi
2960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2961 if test -n "$ac_ct_CC"; then
2962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2963 $as_echo "$ac_ct_CC" >&6; }
2964 else
2965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2967 fi
2968
2969   if test "x$ac_ct_CC" = x; then
2970     CC=""
2971   else
2972     case $cross_compiling:$ac_tool_warned in
2973 yes:)
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2976 ac_tool_warned=yes ;;
2977 esac
2978     CC=$ac_ct_CC
2979   fi
2980 else
2981   CC="$ac_cv_prog_CC"
2982 fi
2983
2984 if test -z "$CC"; then
2985           if test -n "$ac_tool_prefix"; then
2986     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2987 set dummy ${ac_tool_prefix}cc; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if ${ac_cv_prog_CC+:} false; then :
2991   $as_echo_n "(cached) " >&6
2992 else
2993   if test -n "$CC"; then
2994   ac_cv_prog_CC="$CC" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999   IFS=$as_save_IFS
3000   test -z "$as_dir" && as_dir=.
3001     for ac_exec_ext in '' $ac_executable_extensions; do
3002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003     ac_cv_prog_CC="${ac_tool_prefix}cc"
3004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005     break 2
3006   fi
3007 done
3008   done
3009 IFS=$as_save_IFS
3010
3011 fi
3012 fi
3013 CC=$ac_cv_prog_CC
3014 if test -n "$CC"; then
3015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3016 $as_echo "$CC" >&6; }
3017 else
3018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 fi
3021
3022
3023   fi
3024 fi
3025 if test -z "$CC"; then
3026   # Extract the first word of "cc", so it can be a program name with args.
3027 set dummy cc; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_CC+:} false; then :
3031   $as_echo_n "(cached) " >&6
3032 else
3033   if test -n "$CC"; then
3034   ac_cv_prog_CC="$CC" # Let the user override the test.
3035 else
3036   ac_prog_rejected=no
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH
3039 do
3040   IFS=$as_save_IFS
3041   test -z "$as_dir" && as_dir=.
3042     for ac_exec_ext in '' $ac_executable_extensions; do
3043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3044     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3045        ac_prog_rejected=yes
3046        continue
3047      fi
3048     ac_cv_prog_CC="cc"
3049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050     break 2
3051   fi
3052 done
3053   done
3054 IFS=$as_save_IFS
3055
3056 if test $ac_prog_rejected = yes; then
3057   # We found a bogon in the path, so make sure we never use it.
3058   set dummy $ac_cv_prog_CC
3059   shift
3060   if test $# != 0; then
3061     # We chose a different compiler from the bogus one.
3062     # However, it has the same basename, so the bogon will be chosen
3063     # first if we set CC to just the basename; use the full file name.
3064     shift
3065     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3066   fi
3067 fi
3068 fi
3069 fi
3070 CC=$ac_cv_prog_CC
3071 if test -n "$CC"; then
3072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3073 $as_echo "$CC" >&6; }
3074 else
3075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076 $as_echo "no" >&6; }
3077 fi
3078
3079
3080 fi
3081 if test -z "$CC"; then
3082   if test -n "$ac_tool_prefix"; then
3083   for ac_prog in cl.exe
3084   do
3085     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3086 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if ${ac_cv_prog_CC+:} false; then :
3090   $as_echo_n "(cached) " >&6
3091 else
3092   if test -n "$CC"; then
3093   ac_cv_prog_CC="$CC" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3097 do
3098   IFS=$as_save_IFS
3099   test -z "$as_dir" && as_dir=.
3100     for ac_exec_ext in '' $ac_executable_extensions; do
3101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3102     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104     break 2
3105   fi
3106 done
3107   done
3108 IFS=$as_save_IFS
3109
3110 fi
3111 fi
3112 CC=$ac_cv_prog_CC
3113 if test -n "$CC"; then
3114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3115 $as_echo "$CC" >&6; }
3116 else
3117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3119 fi
3120
3121
3122     test -n "$CC" && break
3123   done
3124 fi
3125 if test -z "$CC"; then
3126   ac_ct_CC=$CC
3127   for ac_prog in cl.exe
3128 do
3129   # Extract the first word of "$ac_prog", so it can be a program name with args.
3130 set dummy $ac_prog; ac_word=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3134   $as_echo_n "(cached) " >&6
3135 else
3136   if test -n "$ac_ct_CC"; then
3137   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3138 else
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3141 do
3142   IFS=$as_save_IFS
3143   test -z "$as_dir" && as_dir=.
3144     for ac_exec_ext in '' $ac_executable_extensions; do
3145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146     ac_cv_prog_ac_ct_CC="$ac_prog"
3147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148     break 2
3149   fi
3150 done
3151   done
3152 IFS=$as_save_IFS
3153
3154 fi
3155 fi
3156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3157 if test -n "$ac_ct_CC"; then
3158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3159 $as_echo "$ac_ct_CC" >&6; }
3160 else
3161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3163 fi
3164
3165
3166   test -n "$ac_ct_CC" && break
3167 done
3168
3169   if test "x$ac_ct_CC" = x; then
3170     CC=""
3171   else
3172     case $cross_compiling:$ac_tool_warned in
3173 yes:)
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3176 ac_tool_warned=yes ;;
3177 esac
3178     CC=$ac_ct_CC
3179   fi
3180 fi
3181
3182 fi
3183
3184
3185 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187 as_fn_error $? "no acceptable C compiler found in \$PATH
3188 See \`config.log' for more details" "$LINENO" 5; }
3189
3190 # Provide some information about the compiler.
3191 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3192 set X $ac_compile
3193 ac_compiler=$2
3194 for ac_option in --version -v -V -qversion; do
3195   { { ac_try="$ac_compiler $ac_option >&5"
3196 case "(($ac_try" in
3197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198   *) ac_try_echo=$ac_try;;
3199 esac
3200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3201 $as_echo "$ac_try_echo"; } >&5
3202   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3203   ac_status=$?
3204   if test -s conftest.err; then
3205     sed '10a\
3206 ... rest of stderr output deleted ...
3207          10q' conftest.err >conftest.er1
3208     cat conftest.er1 >&5
3209   fi
3210   rm -f conftest.er1 conftest.err
3211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212   test $ac_status = 0; }
3213 done
3214
3215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3216 /* end confdefs.h.  */
3217
3218 int
3219 main ()
3220 {
3221
3222   ;
3223   return 0;
3224 }
3225 _ACEOF
3226 ac_clean_files_save=$ac_clean_files
3227 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3228 # Try to create an executable without -o first, disregard a.out.
3229 # It will help us diagnose broken compilers, and finding out an intuition
3230 # of exeext.
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3232 $as_echo_n "checking whether the C compiler works... " >&6; }
3233 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3234
3235 # The possible output files:
3236 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3237
3238 ac_rmfiles=
3239 for ac_file in $ac_files
3240 do
3241   case $ac_file in
3242     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3243     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3244   esac
3245 done
3246 rm -f $ac_rmfiles
3247
3248 if { { ac_try="$ac_link_default"
3249 case "(($ac_try" in
3250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251   *) ac_try_echo=$ac_try;;
3252 esac
3253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254 $as_echo "$ac_try_echo"; } >&5
3255   (eval "$ac_link_default") 2>&5
3256   ac_status=$?
3257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258   test $ac_status = 0; }; then :
3259   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3260 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3261 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3262 # so that the user can short-circuit this test for compilers unknown to
3263 # Autoconf.
3264 for ac_file in $ac_files ''
3265 do
3266   test -f "$ac_file" || continue
3267   case $ac_file in
3268     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3269         ;;
3270     [ab].out )
3271         # We found the default executable, but exeext='' is most
3272         # certainly right.
3273         break;;
3274     *.* )
3275         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3276         then :; else
3277            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3278         fi
3279         # We set ac_cv_exeext here because the later test for it is not
3280         # safe: cross compilers may not add the suffix if given an `-o'
3281         # argument, so we may need to know it at that point already.
3282         # Even if this section looks crufty: it has the advantage of
3283         # actually working.
3284         break;;
3285     * )
3286         break;;
3287   esac
3288 done
3289 test "$ac_cv_exeext" = no && ac_cv_exeext=
3290
3291 else
3292   ac_file=''
3293 fi
3294 if test -z "$ac_file"; then :
3295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3297 $as_echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3299
3300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302 as_fn_error 77 "C compiler cannot create executables
3303 See \`config.log' for more details" "$LINENO" 5; }
3304 else
3305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3306 $as_echo "yes" >&6; }
3307 fi
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3309 $as_echo_n "checking for C compiler default output file name... " >&6; }
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3311 $as_echo "$ac_file" >&6; }
3312 ac_exeext=$ac_cv_exeext
3313
3314 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3315 ac_clean_files=$ac_clean_files_save
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3317 $as_echo_n "checking for suffix of executables... " >&6; }
3318 if { { ac_try="$ac_link"
3319 case "(($ac_try" in
3320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321   *) ac_try_echo=$ac_try;;
3322 esac
3323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324 $as_echo "$ac_try_echo"; } >&5
3325   (eval "$ac_link") 2>&5
3326   ac_status=$?
3327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328   test $ac_status = 0; }; then :
3329   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3330 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3331 # work properly (i.e., refer to `conftest.exe'), while it won't with
3332 # `rm'.
3333 for ac_file in conftest.exe conftest conftest.*; do
3334   test -f "$ac_file" || continue
3335   case $ac_file in
3336     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3337     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3338           break;;
3339     * ) break;;
3340   esac
3341 done
3342 else
3343   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3346 See \`config.log' for more details" "$LINENO" 5; }
3347 fi
3348 rm -f conftest conftest$ac_cv_exeext
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3350 $as_echo "$ac_cv_exeext" >&6; }
3351
3352 rm -f conftest.$ac_ext
3353 EXEEXT=$ac_cv_exeext
3354 ac_exeext=$EXEEXT
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h.  */
3357 #include <stdio.h>
3358 int
3359 main ()
3360 {
3361 FILE *f = fopen ("conftest.out", "w");
3362  return ferror (f) || fclose (f) != 0;
3363
3364   ;
3365   return 0;
3366 }
3367 _ACEOF
3368 ac_clean_files="$ac_clean_files conftest.out"
3369 # Check that the compiler produces executables we can run.  If not, either
3370 # the compiler is broken, or we cross compile.
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3372 $as_echo_n "checking whether we are cross compiling... " >&6; }
3373 if test "$cross_compiling" != yes; then
3374   { { ac_try="$ac_link"
3375 case "(($ac_try" in
3376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377   *) ac_try_echo=$ac_try;;
3378 esac
3379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381   (eval "$ac_link") 2>&5
3382   ac_status=$?
3383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384   test $ac_status = 0; }
3385   if { ac_try='./conftest$ac_cv_exeext'
3386   { { case "(($ac_try" in
3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388   *) ac_try_echo=$ac_try;;
3389 esac
3390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391 $as_echo "$ac_try_echo"; } >&5
3392   (eval "$ac_try") 2>&5
3393   ac_status=$?
3394   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395   test $ac_status = 0; }; }; then
3396     cross_compiling=no
3397   else
3398     if test "$cross_compiling" = maybe; then
3399         cross_compiling=yes
3400     else
3401         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 as_fn_error $? "cannot run C compiled programs.
3404 If you meant to cross compile, use \`--host'.
3405 See \`config.log' for more details" "$LINENO" 5; }
3406     fi
3407   fi
3408 fi
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3410 $as_echo "$cross_compiling" >&6; }
3411
3412 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3413 ac_clean_files=$ac_clean_files_save
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3415 $as_echo_n "checking for suffix of object files... " >&6; }
3416 if ${ac_cv_objext+:} false; then :
3417   $as_echo_n "(cached) " >&6
3418 else
3419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h.  */
3421
3422 int
3423 main ()
3424 {
3425
3426   ;
3427   return 0;
3428 }
3429 _ACEOF
3430 rm -f conftest.o conftest.obj
3431 if { { ac_try="$ac_compile"
3432 case "(($ac_try" in
3433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434   *) ac_try_echo=$ac_try;;
3435 esac
3436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437 $as_echo "$ac_try_echo"; } >&5
3438   (eval "$ac_compile") 2>&5
3439   ac_status=$?
3440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441   test $ac_status = 0; }; then :
3442   for ac_file in conftest.o conftest.obj conftest.*; do
3443   test -f "$ac_file" || continue;
3444   case $ac_file in
3445     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3446     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3447        break;;
3448   esac
3449 done
3450 else
3451   $as_echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3453
3454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456 as_fn_error $? "cannot compute suffix of object files: cannot compile
3457 See \`config.log' for more details" "$LINENO" 5; }
3458 fi
3459 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3460 fi
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3462 $as_echo "$ac_cv_objext" >&6; }
3463 OBJEXT=$ac_cv_objext
3464 ac_objext=$OBJEXT
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3466 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3467 if ${ac_cv_c_compiler_gnu+:} false; then :
3468   $as_echo_n "(cached) " >&6
3469 else
3470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471 /* end confdefs.h.  */
3472
3473 int
3474 main ()
3475 {
3476 #ifndef __GNUC__
3477        choke me
3478 #endif
3479
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 if ac_fn_c_try_compile "$LINENO"; then :
3485   ac_compiler_gnu=yes
3486 else
3487   ac_compiler_gnu=no
3488 fi
3489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3490 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3491
3492 fi
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3494 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3495 if test $ac_compiler_gnu = yes; then
3496   GCC=yes
3497 else
3498   GCC=
3499 fi
3500 ac_test_CFLAGS=${CFLAGS+set}
3501 ac_save_CFLAGS=$CFLAGS
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3503 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3504 if ${ac_cv_prog_cc_g+:} false; then :
3505   $as_echo_n "(cached) " >&6
3506 else
3507   ac_save_c_werror_flag=$ac_c_werror_flag
3508    ac_c_werror_flag=yes
3509    ac_cv_prog_cc_g=no
3510    CFLAGS="-g"
3511    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h.  */
3513
3514 int
3515 main ()
3516 {
3517
3518   ;
3519   return 0;
3520 }
3521 _ACEOF
3522 if ac_fn_c_try_compile "$LINENO"; then :
3523   ac_cv_prog_cc_g=yes
3524 else
3525   CFLAGS=""
3526       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h.  */
3528
3529 int
3530 main ()
3531 {
3532
3533   ;
3534   return 0;
3535 }
3536 _ACEOF
3537 if ac_fn_c_try_compile "$LINENO"; then :
3538
3539 else
3540   ac_c_werror_flag=$ac_save_c_werror_flag
3541          CFLAGS="-g"
3542          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h.  */
3544
3545 int
3546 main ()
3547 {
3548
3549   ;
3550   return 0;
3551 }
3552 _ACEOF
3553 if ac_fn_c_try_compile "$LINENO"; then :
3554   ac_cv_prog_cc_g=yes
3555 fi
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 fi
3558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 fi
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561    ac_c_werror_flag=$ac_save_c_werror_flag
3562 fi
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3564 $as_echo "$ac_cv_prog_cc_g" >&6; }
3565 if test "$ac_test_CFLAGS" = set; then
3566   CFLAGS=$ac_save_CFLAGS
3567 elif test $ac_cv_prog_cc_g = yes; then
3568   if test "$GCC" = yes; then
3569     CFLAGS="-g -O2"
3570   else
3571     CFLAGS="-g"
3572   fi
3573 else
3574   if test "$GCC" = yes; then
3575     CFLAGS="-O2"
3576   else
3577     CFLAGS=
3578   fi
3579 fi
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3581 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3582 if ${ac_cv_prog_cc_c89+:} false; then :
3583   $as_echo_n "(cached) " >&6
3584 else
3585   ac_cv_prog_cc_c89=no
3586 ac_save_CC=$CC
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h.  */
3589 #include <stdarg.h>
3590 #include <stdio.h>
3591 struct stat;
3592 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3593 struct buf { int x; };
3594 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3595 static char *e (p, i)
3596      char **p;
3597      int i;
3598 {
3599   return p[i];
3600 }
3601 static char *f (char * (*g) (char **, int), char **p, ...)
3602 {
3603   char *s;
3604   va_list v;
3605   va_start (v,p);
3606   s = g (p, va_arg (v,int));
3607   va_end (v);
3608   return s;
3609 }
3610
3611 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3612    function prototypes and stuff, but not '\xHH' hex character constants.
3613    These don't provoke an error unfortunately, instead are silently treated
3614    as 'x'.  The following induces an error, until -std is added to get
3615    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3616    array size at least.  It's necessary to write '\x00'==0 to get something
3617    that's true only with -std.  */
3618 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3619
3620 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3621    inside strings and character constants.  */
3622 #define FOO(x) 'x'
3623 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3624
3625 int test (int i, double x);
3626 struct s1 {int (*f) (int a);};
3627 struct s2 {int (*f) (double a);};
3628 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3629 int argc;
3630 char **argv;
3631 int
3632 main ()
3633 {
3634 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3635   ;
3636   return 0;
3637 }
3638 _ACEOF
3639 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3640         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3641 do
3642   CC="$ac_save_CC $ac_arg"
3643   if ac_fn_c_try_compile "$LINENO"; then :
3644   ac_cv_prog_cc_c89=$ac_arg
3645 fi
3646 rm -f core conftest.err conftest.$ac_objext
3647   test "x$ac_cv_prog_cc_c89" != "xno" && break
3648 done
3649 rm -f conftest.$ac_ext
3650 CC=$ac_save_CC
3651
3652 fi
3653 # AC_CACHE_VAL
3654 case "x$ac_cv_prog_cc_c89" in
3655   x)
3656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3657 $as_echo "none needed" >&6; } ;;
3658   xno)
3659     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3660 $as_echo "unsupported" >&6; } ;;
3661   *)
3662     CC="$CC $ac_cv_prog_cc_c89"
3663     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3664 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3665 esac
3666 if test "x$ac_cv_prog_cc_c89" != xno; then :
3667
3668 fi
3669
3670 ac_ext=c
3671 ac_cpp='$CPP $CPPFLAGS'
3672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3675
3676 depcc="$CC"   am_compiler_list=
3677
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3679 $as_echo_n "checking dependency style of $depcc... " >&6; }
3680 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3681   $as_echo_n "(cached) " >&6
3682 else
3683   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3684   # We make a subdir and do the tests there.  Otherwise we can end up
3685   # making bogus files that we don't know about and never remove.  For
3686   # instance it was reported that on HP-UX the gcc test will end up
3687   # making a dummy file named 'D' -- because '-MD' means "put the output
3688   # in D".
3689   rm -rf conftest.dir
3690   mkdir conftest.dir
3691   # Copy depcomp to subdir because otherwise we won't find it if we're
3692   # using a relative directory.
3693   cp "$am_depcomp" conftest.dir
3694   cd conftest.dir
3695   # We will build objects and dependencies in a subdirectory because
3696   # it helps to detect inapplicable dependency modes.  For instance
3697   # both Tru64's cc and ICC support -MD to output dependencies as a
3698   # side effect of compilation, but ICC will put the dependencies in
3699   # the current directory while Tru64 will put them in the object
3700   # directory.
3701   mkdir sub
3702
3703   am_cv_CC_dependencies_compiler_type=none
3704   if test "$am_compiler_list" = ""; then
3705      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3706   fi
3707   am__universal=false
3708   case " $depcc " in #(
3709      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3710      esac
3711
3712   for depmode in $am_compiler_list; do
3713     # Setup a source with many dependencies, because some compilers
3714     # like to wrap large dependency lists on column 80 (with \), and
3715     # we should not choose a depcomp mode which is confused by this.
3716     #
3717     # We need to recreate these files for each test, as the compiler may
3718     # overwrite some of them when testing with obscure command lines.
3719     # This happens at least with the AIX C compiler.
3720     : > sub/conftest.c
3721     for i in 1 2 3 4 5 6; do
3722       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3723       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3724       # Solaris 10 /bin/sh.
3725       echo '/* dummy */' > sub/conftst$i.h
3726     done
3727     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3728
3729     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3730     # mode.  It turns out that the SunPro C++ compiler does not properly
3731     # handle '-M -o', and we need to detect this.  Also, some Intel
3732     # versions had trouble with output in subdirs.
3733     am__obj=sub/conftest.${OBJEXT-o}
3734     am__minus_obj="-o $am__obj"
3735     case $depmode in
3736     gcc)
3737       # This depmode causes a compiler race in universal mode.
3738       test "$am__universal" = false || continue
3739       ;;
3740     nosideeffect)
3741       # After this tag, mechanisms are not by side-effect, so they'll
3742       # only be used when explicitly requested.
3743       if test "x$enable_dependency_tracking" = xyes; then
3744         continue
3745       else
3746         break
3747       fi
3748       ;;
3749     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3750       # This compiler won't grok '-c -o', but also, the minuso test has
3751       # not run yet.  These depmodes are late enough in the game, and
3752       # so weak that their functioning should not be impacted.
3753       am__obj=conftest.${OBJEXT-o}
3754       am__minus_obj=
3755       ;;
3756     none) break ;;
3757     esac
3758     if depmode=$depmode \
3759        source=sub/conftest.c object=$am__obj \
3760        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3761        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3762          >/dev/null 2>conftest.err &&
3763        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3764        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3765        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3766        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3767       # icc doesn't choke on unknown options, it will just issue warnings
3768       # or remarks (even with -Werror).  So we grep stderr for any message
3769       # that says an option was ignored or not supported.
3770       # When given -MP, icc 7.0 and 7.1 complain thusly:
3771       #   icc: Command line warning: ignoring option '-M'; no argument required
3772       # The diagnosis changed in icc 8.0:
3773       #   icc: Command line remark: option '-MP' not supported
3774       if (grep 'ignoring option' conftest.err ||
3775           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3776         am_cv_CC_dependencies_compiler_type=$depmode
3777         break
3778       fi
3779     fi
3780   done
3781
3782   cd ..
3783   rm -rf conftest.dir
3784 else
3785   am_cv_CC_dependencies_compiler_type=none
3786 fi
3787
3788 fi
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3790 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3791 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3792
3793  if
3794   test "x$enable_dependency_tracking" != xno \
3795   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3796   am__fastdepCC_TRUE=
3797   am__fastdepCC_FALSE='#'
3798 else
3799   am__fastdepCC_TRUE='#'
3800   am__fastdepCC_FALSE=
3801 fi
3802
3803
3804
3805 ac_ext=c
3806 ac_cpp='$CPP $CPPFLAGS'
3807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3811 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3812 # On Suns, sometimes $CPP names a directory.
3813 if test -n "$CPP" && test -d "$CPP"; then
3814   CPP=
3815 fi
3816 if test -z "$CPP"; then
3817   if ${ac_cv_prog_CPP+:} false; then :
3818   $as_echo_n "(cached) " >&6
3819 else
3820       # Double quotes because CPP needs to be expanded
3821     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3822     do
3823       ac_preproc_ok=false
3824 for ac_c_preproc_warn_flag in '' yes
3825 do
3826   # Use a header file that comes with gcc, so configuring glibc
3827   # with a fresh cross-compiler works.
3828   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3829   # <limits.h> exists even on freestanding compilers.
3830   # On the NeXT, cc -E runs the code through the compiler's parser,
3831   # not just through cpp. "Syntax error" is here to catch this case.
3832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h.  */
3834 #ifdef __STDC__
3835 # include <limits.h>
3836 #else
3837 # include <assert.h>
3838 #endif
3839                      Syntax error
3840 _ACEOF
3841 if ac_fn_c_try_cpp "$LINENO"; then :
3842
3843 else
3844   # Broken: fails on valid input.
3845 continue
3846 fi
3847 rm -f conftest.err conftest.i conftest.$ac_ext
3848
3849   # OK, works on sane cases.  Now check whether nonexistent headers
3850   # can be detected and how.
3851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h.  */
3853 #include <ac_nonexistent.h>
3854 _ACEOF
3855 if ac_fn_c_try_cpp "$LINENO"; then :
3856   # Broken: success on invalid input.
3857 continue
3858 else
3859   # Passes both tests.
3860 ac_preproc_ok=:
3861 break
3862 fi
3863 rm -f conftest.err conftest.i conftest.$ac_ext
3864
3865 done
3866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3867 rm -f conftest.i conftest.err conftest.$ac_ext
3868 if $ac_preproc_ok; then :
3869   break
3870 fi
3871
3872     done
3873     ac_cv_prog_CPP=$CPP
3874
3875 fi
3876   CPP=$ac_cv_prog_CPP
3877 else
3878   ac_cv_prog_CPP=$CPP
3879 fi
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3881 $as_echo "$CPP" >&6; }
3882 ac_preproc_ok=false
3883 for ac_c_preproc_warn_flag in '' yes
3884 do
3885   # Use a header file that comes with gcc, so configuring glibc
3886   # with a fresh cross-compiler works.
3887   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3888   # <limits.h> exists even on freestanding compilers.
3889   # On the NeXT, cc -E runs the code through the compiler's parser,
3890   # not just through cpp. "Syntax error" is here to catch this case.
3891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h.  */
3893 #ifdef __STDC__
3894 # include <limits.h>
3895 #else
3896 # include <assert.h>
3897 #endif
3898                      Syntax error
3899 _ACEOF
3900 if ac_fn_c_try_cpp "$LINENO"; then :
3901
3902 else
3903   # Broken: fails on valid input.
3904 continue
3905 fi
3906 rm -f conftest.err conftest.i conftest.$ac_ext
3907
3908   # OK, works on sane cases.  Now check whether nonexistent headers
3909   # can be detected and how.
3910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h.  */
3912 #include <ac_nonexistent.h>
3913 _ACEOF
3914 if ac_fn_c_try_cpp "$LINENO"; then :
3915   # Broken: success on invalid input.
3916 continue
3917 else
3918   # Passes both tests.
3919 ac_preproc_ok=:
3920 break
3921 fi
3922 rm -f conftest.err conftest.i conftest.$ac_ext
3923
3924 done
3925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3926 rm -f conftest.i conftest.err conftest.$ac_ext
3927 if $ac_preproc_ok; then :
3928
3929 else
3930   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3932 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3933 See \`config.log' for more details" "$LINENO" 5; }
3934 fi
3935
3936 ac_ext=c
3937 ac_cpp='$CPP $CPPFLAGS'
3938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3941
3942
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3944 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3945 if ${ac_cv_path_GREP+:} false; then :
3946   $as_echo_n "(cached) " >&6
3947 else
3948   if test -z "$GREP"; then
3949   ac_path_GREP_found=false
3950   # Loop through the user's path and test for each of PROGNAME-LIST
3951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3953 do
3954   IFS=$as_save_IFS
3955   test -z "$as_dir" && as_dir=.
3956     for ac_prog in grep ggrep; do
3957     for ac_exec_ext in '' $ac_executable_extensions; do
3958       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3959       as_fn_executable_p "$ac_path_GREP" || continue
3960 # Check for GNU ac_path_GREP and select it if it is found.
3961   # Check for GNU $ac_path_GREP
3962 case `"$ac_path_GREP" --version 2>&1` in
3963 *GNU*)
3964   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3965 *)
3966   ac_count=0
3967   $as_echo_n 0123456789 >"conftest.in"
3968   while :
3969   do
3970     cat "conftest.in" "conftest.in" >"conftest.tmp"
3971     mv "conftest.tmp" "conftest.in"
3972     cp "conftest.in" "conftest.nl"
3973     $as_echo 'GREP' >> "conftest.nl"
3974     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3975     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3976     as_fn_arith $ac_count + 1 && ac_count=$as_val
3977     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3978       # Best one so far, save it but keep looking for a better one
3979       ac_cv_path_GREP="$ac_path_GREP"
3980       ac_path_GREP_max=$ac_count
3981     fi
3982     # 10*(2^10) chars as input seems more than enough
3983     test $ac_count -gt 10 && break
3984   done
3985   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3986 esac
3987
3988       $ac_path_GREP_found && break 3
3989     done
3990   done
3991   done
3992 IFS=$as_save_IFS
3993   if test -z "$ac_cv_path_GREP"; then
3994     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3995   fi
3996 else
3997   ac_cv_path_GREP=$GREP
3998 fi
3999
4000 fi
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4002 $as_echo "$ac_cv_path_GREP" >&6; }
4003  GREP="$ac_cv_path_GREP"
4004
4005
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4007 $as_echo_n "checking for egrep... " >&6; }
4008 if ${ac_cv_path_EGREP+:} false; then :
4009   $as_echo_n "(cached) " >&6
4010 else
4011   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4012    then ac_cv_path_EGREP="$GREP -E"
4013    else
4014      if test -z "$EGREP"; then
4015   ac_path_EGREP_found=false
4016   # Loop through the user's path and test for each of PROGNAME-LIST
4017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4019 do
4020   IFS=$as_save_IFS
4021   test -z "$as_dir" && as_dir=.
4022     for ac_prog in egrep; do
4023     for ac_exec_ext in '' $ac_executable_extensions; do
4024       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4025       as_fn_executable_p "$ac_path_EGREP" || continue
4026 # Check for GNU ac_path_EGREP and select it if it is found.
4027   # Check for GNU $ac_path_EGREP
4028 case `"$ac_path_EGREP" --version 2>&1` in
4029 *GNU*)
4030   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4031 *)
4032   ac_count=0
4033   $as_echo_n 0123456789 >"conftest.in"
4034   while :
4035   do
4036     cat "conftest.in" "conftest.in" >"conftest.tmp"
4037     mv "conftest.tmp" "conftest.in"
4038     cp "conftest.in" "conftest.nl"
4039     $as_echo 'EGREP' >> "conftest.nl"
4040     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4041     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4042     as_fn_arith $ac_count + 1 && ac_count=$as_val
4043     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4044       # Best one so far, save it but keep looking for a better one
4045       ac_cv_path_EGREP="$ac_path_EGREP"
4046       ac_path_EGREP_max=$ac_count
4047     fi
4048     # 10*(2^10) chars as input seems more than enough
4049     test $ac_count -gt 10 && break
4050   done
4051   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4052 esac
4053
4054       $ac_path_EGREP_found && break 3
4055     done
4056   done
4057   done
4058 IFS=$as_save_IFS
4059   if test -z "$ac_cv_path_EGREP"; then
4060     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4061   fi
4062 else
4063   ac_cv_path_EGREP=$EGREP
4064 fi
4065
4066    fi
4067 fi
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4069 $as_echo "$ac_cv_path_EGREP" >&6; }
4070  EGREP="$ac_cv_path_EGREP"
4071
4072
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4074 $as_echo_n "checking for ANSI C header files... " >&6; }
4075 if ${ac_cv_header_stdc+:} false; then :
4076   $as_echo_n "(cached) " >&6
4077 else
4078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h.  */
4080 #include <stdlib.h>
4081 #include <stdarg.h>
4082 #include <string.h>
4083 #include <float.h>
4084
4085 int
4086 main ()
4087 {
4088
4089   ;
4090   return 0;
4091 }
4092 _ACEOF
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094   ac_cv_header_stdc=yes
4095 else
4096   ac_cv_header_stdc=no
4097 fi
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099
4100 if test $ac_cv_header_stdc = yes; then
4101   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h.  */
4104 #include <string.h>
4105
4106 _ACEOF
4107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4108   $EGREP "memchr" >/dev/null 2>&1; then :
4109
4110 else
4111   ac_cv_header_stdc=no
4112 fi
4113 rm -f conftest*
4114
4115 fi
4116
4117 if test $ac_cv_header_stdc = yes; then
4118   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h.  */
4121 #include <stdlib.h>
4122
4123 _ACEOF
4124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4125   $EGREP "free" >/dev/null 2>&1; then :
4126
4127 else
4128   ac_cv_header_stdc=no
4129 fi
4130 rm -f conftest*
4131
4132 fi
4133
4134 if test $ac_cv_header_stdc = yes; then
4135   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4136   if test "$cross_compiling" = yes; then :
4137   :
4138 else
4139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h.  */
4141 #include <ctype.h>
4142 #include <stdlib.h>
4143 #if ((' ' & 0x0FF) == 0x020)
4144 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4145 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4146 #else
4147 # define ISLOWER(c) \
4148                    (('a' <= (c) && (c) <= 'i') \
4149                      || ('j' <= (c) && (c) <= 'r') \
4150                      || ('s' <= (c) && (c) <= 'z'))
4151 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4152 #endif
4153
4154 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4155 int
4156 main ()
4157 {
4158   int i;
4159   for (i = 0; i < 256; i++)
4160     if (XOR (islower (i), ISLOWER (i))
4161         || toupper (i) != TOUPPER (i))
4162       return 2;
4163   return 0;
4164 }
4165 _ACEOF
4166 if ac_fn_c_try_run "$LINENO"; then :
4167
4168 else
4169   ac_cv_header_stdc=no
4170 fi
4171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4172   conftest.$ac_objext conftest.beam conftest.$ac_ext
4173 fi
4174
4175 fi
4176 fi
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4178 $as_echo "$ac_cv_header_stdc" >&6; }
4179 if test $ac_cv_header_stdc = yes; then
4180
4181 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4182
4183 fi
4184
4185 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4186 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4187                   inttypes.h stdint.h unistd.h
4188 do :
4189   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4190 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4191 "
4192 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4193   cat >>confdefs.h <<_ACEOF
4194 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4195 _ACEOF
4196
4197 fi
4198
4199 done
4200
4201
4202
4203   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4204 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4205   MINIX=yes
4206 else
4207   MINIX=
4208 fi
4209
4210
4211   if test "$MINIX" = yes; then
4212
4213 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4214
4215
4216 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4217
4218
4219 $as_echo "#define _MINIX 1" >>confdefs.h
4220
4221   fi
4222
4223
4224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4225 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4226 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4227   $as_echo_n "(cached) " >&6
4228 else
4229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h.  */
4231
4232 #         define __EXTENSIONS__ 1
4233           $ac_includes_default
4234 int
4235 main ()
4236 {
4237
4238   ;
4239   return 0;
4240 }
4241 _ACEOF
4242 if ac_fn_c_try_compile "$LINENO"; then :
4243   ac_cv_safe_to_define___extensions__=yes
4244 else
4245   ac_cv_safe_to_define___extensions__=no
4246 fi
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248 fi
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4250 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4251   test $ac_cv_safe_to_define___extensions__ = yes &&
4252     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4253
4254   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4255
4256   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4257
4258   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4259
4260   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4261
4262
4263 ac_ext=c
4264 ac_cpp='$CPP $CPPFLAGS'
4265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4268 if test -n "$ac_tool_prefix"; then
4269   for ac_prog in gcc cc
4270   do
4271     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274 $as_echo_n "checking for $ac_word... " >&6; }
4275 if ${ac_cv_prog_CC+:} false; then :
4276   $as_echo_n "(cached) " >&6
4277 else
4278   if test -n "$CC"; then
4279   ac_cv_prog_CC="$CC" # Let the user override the test.
4280 else
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 for as_dir in $PATH
4283 do
4284   IFS=$as_save_IFS
4285   test -z "$as_dir" && as_dir=.
4286     for ac_exec_ext in '' $ac_executable_extensions; do
4287   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4288     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290     break 2
4291   fi
4292 done
4293   done
4294 IFS=$as_save_IFS
4295
4296 fi
4297 fi
4298 CC=$ac_cv_prog_CC
4299 if test -n "$CC"; then
4300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4301 $as_echo "$CC" >&6; }
4302 else
4303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304 $as_echo "no" >&6; }
4305 fi
4306
4307
4308     test -n "$CC" && break
4309   done
4310 fi
4311 if test -z "$CC"; then
4312   ac_ct_CC=$CC
4313   for ac_prog in gcc cc
4314 do
4315   # Extract the first word of "$ac_prog", so it can be a program name with args.
4316 set dummy $ac_prog; ac_word=$2
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318 $as_echo_n "checking for $ac_word... " >&6; }
4319 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4320   $as_echo_n "(cached) " >&6
4321 else
4322   if test -n "$ac_ct_CC"; then
4323   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4327 do
4328   IFS=$as_save_IFS
4329   test -z "$as_dir" && as_dir=.
4330     for ac_exec_ext in '' $ac_executable_extensions; do
4331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332     ac_cv_prog_ac_ct_CC="$ac_prog"
4333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334     break 2
4335   fi
4336 done
4337   done
4338 IFS=$as_save_IFS
4339
4340 fi
4341 fi
4342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4343 if test -n "$ac_ct_CC"; then
4344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4345 $as_echo "$ac_ct_CC" >&6; }
4346 else
4347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4349 fi
4350
4351
4352   test -n "$ac_ct_CC" && break
4353 done
4354
4355   if test "x$ac_ct_CC" = x; then
4356     CC=""
4357   else
4358     case $cross_compiling:$ac_tool_warned in
4359 yes:)
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4362 ac_tool_warned=yes ;;
4363 esac
4364     CC=$ac_ct_CC
4365   fi
4366 fi
4367
4368
4369 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4371 as_fn_error $? "no acceptable C compiler found in \$PATH
4372 See \`config.log' for more details" "$LINENO" 5; }
4373
4374 # Provide some information about the compiler.
4375 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4376 set X $ac_compile
4377 ac_compiler=$2
4378 for ac_option in --version -v -V -qversion; do
4379   { { ac_try="$ac_compiler $ac_option >&5"
4380 case "(($ac_try" in
4381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382   *) ac_try_echo=$ac_try;;
4383 esac
4384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4385 $as_echo "$ac_try_echo"; } >&5
4386   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4387   ac_status=$?
4388   if test -s conftest.err; then
4389     sed '10a\
4390 ... rest of stderr output deleted ...
4391          10q' conftest.err >conftest.er1
4392     cat conftest.er1 >&5
4393   fi
4394   rm -f conftest.er1 conftest.err
4395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4396   test $ac_status = 0; }
4397 done
4398
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4400 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4401 if ${ac_cv_c_compiler_gnu+:} false; then :
4402   $as_echo_n "(cached) " >&6
4403 else
4404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h.  */
4406
4407 int
4408 main ()
4409 {
4410 #ifndef __GNUC__
4411        choke me
4412 #endif
4413
4414   ;
4415   return 0;
4416 }
4417 _ACEOF
4418 if ac_fn_c_try_compile "$LINENO"; then :
4419   ac_compiler_gnu=yes
4420 else
4421   ac_compiler_gnu=no
4422 fi
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4425
4426 fi
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4428 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4429 if test $ac_compiler_gnu = yes; then
4430   GCC=yes
4431 else
4432   GCC=
4433 fi
4434 ac_test_CFLAGS=${CFLAGS+set}
4435 ac_save_CFLAGS=$CFLAGS
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4437 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4438 if ${ac_cv_prog_cc_g+:} false; then :
4439   $as_echo_n "(cached) " >&6
4440 else
4441   ac_save_c_werror_flag=$ac_c_werror_flag
4442    ac_c_werror_flag=yes
4443    ac_cv_prog_cc_g=no
4444    CFLAGS="-g"
4445    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h.  */
4447
4448 int
4449 main ()
4450 {
4451
4452   ;
4453   return 0;
4454 }
4455 _ACEOF
4456 if ac_fn_c_try_compile "$LINENO"; then :
4457   ac_cv_prog_cc_g=yes
4458 else
4459   CFLAGS=""
4460       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h.  */
4462
4463 int
4464 main ()
4465 {
4466
4467   ;
4468   return 0;
4469 }
4470 _ACEOF
4471 if ac_fn_c_try_compile "$LINENO"; then :
4472
4473 else
4474   ac_c_werror_flag=$ac_save_c_werror_flag
4475          CFLAGS="-g"
4476          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h.  */
4478
4479 int
4480 main ()
4481 {
4482
4483   ;
4484   return 0;
4485 }
4486 _ACEOF
4487 if ac_fn_c_try_compile "$LINENO"; then :
4488   ac_cv_prog_cc_g=yes
4489 fi
4490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4491 fi
4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4493 fi
4494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4495    ac_c_werror_flag=$ac_save_c_werror_flag
4496 fi
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4498 $as_echo "$ac_cv_prog_cc_g" >&6; }
4499 if test "$ac_test_CFLAGS" = set; then
4500   CFLAGS=$ac_save_CFLAGS
4501 elif test $ac_cv_prog_cc_g = yes; then
4502   if test "$GCC" = yes; then
4503     CFLAGS="-g -O2"
4504   else
4505     CFLAGS="-g"
4506   fi
4507 else
4508   if test "$GCC" = yes; then
4509     CFLAGS="-O2"
4510   else
4511     CFLAGS=
4512   fi
4513 fi
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4515 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4516 if ${ac_cv_prog_cc_c89+:} false; then :
4517   $as_echo_n "(cached) " >&6
4518 else
4519   ac_cv_prog_cc_c89=no
4520 ac_save_CC=$CC
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h.  */
4523 #include <stdarg.h>
4524 #include <stdio.h>
4525 struct stat;
4526 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4527 struct buf { int x; };
4528 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4529 static char *e (p, i)
4530      char **p;
4531      int i;
4532 {
4533   return p[i];
4534 }
4535 static char *f (char * (*g) (char **, int), char **p, ...)
4536 {
4537   char *s;
4538   va_list v;
4539   va_start (v,p);
4540   s = g (p, va_arg (v,int));
4541   va_end (v);
4542   return s;
4543 }
4544
4545 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4546    function prototypes and stuff, but not '\xHH' hex character constants.
4547    These don't provoke an error unfortunately, instead are silently treated
4548    as 'x'.  The following induces an error, until -std is added to get
4549    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4550    array size at least.  It's necessary to write '\x00'==0 to get something
4551    that's true only with -std.  */
4552 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4553
4554 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4555    inside strings and character constants.  */
4556 #define FOO(x) 'x'
4557 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4558
4559 int test (int i, double x);
4560 struct s1 {int (*f) (int a);};
4561 struct s2 {int (*f) (double a);};
4562 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4563 int argc;
4564 char **argv;
4565 int
4566 main ()
4567 {
4568 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4569   ;
4570   return 0;
4571 }
4572 _ACEOF
4573 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4574         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4575 do
4576   CC="$ac_save_CC $ac_arg"
4577   if ac_fn_c_try_compile "$LINENO"; then :
4578   ac_cv_prog_cc_c89=$ac_arg
4579 fi
4580 rm -f core conftest.err conftest.$ac_objext
4581   test "x$ac_cv_prog_cc_c89" != "xno" && break
4582 done
4583 rm -f conftest.$ac_ext
4584 CC=$ac_save_CC
4585
4586 fi
4587 # AC_CACHE_VAL
4588 case "x$ac_cv_prog_cc_c89" in
4589   x)
4590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4591 $as_echo "none needed" >&6; } ;;
4592   xno)
4593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4594 $as_echo "unsupported" >&6; } ;;
4595   *)
4596     CC="$CC $ac_cv_prog_cc_c89"
4597     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4598 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4599 esac
4600 if test "x$ac_cv_prog_cc_c89" != xno; then :
4601
4602 fi
4603
4604 ac_ext=c
4605 ac_cpp='$CPP $CPPFLAGS'
4606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4609
4610 depcc="$CC"   am_compiler_list=
4611
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4613 $as_echo_n "checking dependency style of $depcc... " >&6; }
4614 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4615   $as_echo_n "(cached) " >&6
4616 else
4617   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4618   # We make a subdir and do the tests there.  Otherwise we can end up
4619   # making bogus files that we don't know about and never remove.  For
4620   # instance it was reported that on HP-UX the gcc test will end up
4621   # making a dummy file named 'D' -- because '-MD' means "put the output
4622   # in D".
4623   rm -rf conftest.dir
4624   mkdir conftest.dir
4625   # Copy depcomp to subdir because otherwise we won't find it if we're
4626   # using a relative directory.
4627   cp "$am_depcomp" conftest.dir
4628   cd conftest.dir
4629   # We will build objects and dependencies in a subdirectory because
4630   # it helps to detect inapplicable dependency modes.  For instance
4631   # both Tru64's cc and ICC support -MD to output dependencies as a
4632   # side effect of compilation, but ICC will put the dependencies in
4633   # the current directory while Tru64 will put them in the object
4634   # directory.
4635   mkdir sub
4636
4637   am_cv_CC_dependencies_compiler_type=none
4638   if test "$am_compiler_list" = ""; then
4639      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4640   fi
4641   am__universal=false
4642   case " $depcc " in #(
4643      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4644      esac
4645
4646   for depmode in $am_compiler_list; do
4647     # Setup a source with many dependencies, because some compilers
4648     # like to wrap large dependency lists on column 80 (with \), and
4649     # we should not choose a depcomp mode which is confused by this.
4650     #
4651     # We need to recreate these files for each test, as the compiler may
4652     # overwrite some of them when testing with obscure command lines.
4653     # This happens at least with the AIX C compiler.
4654     : > sub/conftest.c
4655     for i in 1 2 3 4 5 6; do
4656       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4657       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4658       # Solaris 10 /bin/sh.
4659       echo '/* dummy */' > sub/conftst$i.h
4660     done
4661     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4662
4663     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4664     # mode.  It turns out that the SunPro C++ compiler does not properly
4665     # handle '-M -o', and we need to detect this.  Also, some Intel
4666     # versions had trouble with output in subdirs.
4667     am__obj=sub/conftest.${OBJEXT-o}
4668     am__minus_obj="-o $am__obj"
4669     case $depmode in
4670     gcc)
4671       # This depmode causes a compiler race in universal mode.
4672       test "$am__universal" = false || continue
4673       ;;
4674     nosideeffect)
4675       # After this tag, mechanisms are not by side-effect, so they'll
4676       # only be used when explicitly requested.
4677       if test "x$enable_dependency_tracking" = xyes; then
4678         continue
4679       else
4680         break
4681       fi
4682       ;;
4683     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4684       # This compiler won't grok '-c -o', but also, the minuso test has
4685       # not run yet.  These depmodes are late enough in the game, and
4686       # so weak that their functioning should not be impacted.
4687       am__obj=conftest.${OBJEXT-o}
4688       am__minus_obj=
4689       ;;
4690     none) break ;;
4691     esac
4692     if depmode=$depmode \
4693        source=sub/conftest.c object=$am__obj \
4694        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4695        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4696          >/dev/null 2>conftest.err &&
4697        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4698        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4699        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4700        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4701       # icc doesn't choke on unknown options, it will just issue warnings
4702       # or remarks (even with -Werror).  So we grep stderr for any message
4703       # that says an option was ignored or not supported.
4704       # When given -MP, icc 7.0 and 7.1 complain thusly:
4705       #   icc: Command line warning: ignoring option '-M'; no argument required
4706       # The diagnosis changed in icc 8.0:
4707       #   icc: Command line remark: option '-MP' not supported
4708       if (grep 'ignoring option' conftest.err ||
4709           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4710         am_cv_CC_dependencies_compiler_type=$depmode
4711         break
4712       fi
4713     fi
4714   done
4715
4716   cd ..
4717   rm -rf conftest.dir
4718 else
4719   am_cv_CC_dependencies_compiler_type=none
4720 fi
4721
4722 fi
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4724 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4725 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4726
4727  if
4728   test "x$enable_dependency_tracking" != xno \
4729   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4730   am__fastdepCC_TRUE=
4731   am__fastdepCC_FALSE='#'
4732 else
4733   am__fastdepCC_TRUE='#'
4734   am__fastdepCC_FALSE=
4735 fi
4736
4737
4738 if test "x$CC" != xcc; then
4739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4740 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4741 else
4742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4743 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4744 fi
4745 set dummy $CC; ac_cc=`$as_echo "$2" |
4746                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4747 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4748   $as_echo_n "(cached) " >&6
4749 else
4750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h.  */
4752
4753 int
4754 main ()
4755 {
4756
4757   ;
4758   return 0;
4759 }
4760 _ACEOF
4761 # Make sure it works both with $CC and with simple cc.
4762 # We do the test twice because some compilers refuse to overwrite an
4763 # existing .o file with -o, though they will create one.
4764 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4765 rm -f conftest2.*
4766 if { { case "(($ac_try" in
4767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768   *) ac_try_echo=$ac_try;;
4769 esac
4770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4771 $as_echo "$ac_try_echo"; } >&5
4772   (eval "$ac_try") 2>&5
4773   ac_status=$?
4774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4775   test $ac_status = 0; } &&
4776    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778   *) ac_try_echo=$ac_try;;
4779 esac
4780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4781 $as_echo "$ac_try_echo"; } >&5
4782   (eval "$ac_try") 2>&5
4783   ac_status=$?
4784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4785   test $ac_status = 0; };
4786 then
4787   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4788   if test "x$CC" != xcc; then
4789     # Test first that cc exists at all.
4790     if { ac_try='cc -c conftest.$ac_ext >&5'
4791   { { case "(($ac_try" in
4792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793   *) ac_try_echo=$ac_try;;
4794 esac
4795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4796 $as_echo "$ac_try_echo"; } >&5
4797   (eval "$ac_try") 2>&5
4798   ac_status=$?
4799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4800   test $ac_status = 0; }; }; then
4801       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4802       rm -f conftest2.*
4803       if { { case "(($ac_try" in
4804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805   *) ac_try_echo=$ac_try;;
4806 esac
4807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4808 $as_echo "$ac_try_echo"; } >&5
4809   (eval "$ac_try") 2>&5
4810   ac_status=$?
4811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4812   test $ac_status = 0; } &&
4813          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4815   *) ac_try_echo=$ac_try;;
4816 esac
4817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4818 $as_echo "$ac_try_echo"; } >&5
4819   (eval "$ac_try") 2>&5
4820   ac_status=$?
4821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4822   test $ac_status = 0; };
4823       then
4824         # cc works too.
4825         :
4826       else
4827         # cc exists but doesn't like -o.
4828         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4829       fi
4830     fi
4831   fi
4832 else
4833   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4834 fi
4835 rm -f core conftest*
4836
4837 fi
4838 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4840 $as_echo "yes" >&6; }
4841 else
4842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4844
4845 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4846
4847 fi
4848
4849 # AC_PROG_RANLIB
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4851 $as_echo_n "checking whether ln -s works... " >&6; }
4852 LN_S=$as_ln_s
4853 if test "$LN_S" = "ln -s"; then
4854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4855 $as_echo "yes" >&6; }
4856 else
4857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4858 $as_echo "no, using $LN_S" >&6; }
4859 fi
4860
4861
4862 if test -n "$ac_tool_prefix"; then
4863   for ac_prog in ar lib "link -lib"
4864   do
4865     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4866 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4868 $as_echo_n "checking for $ac_word... " >&6; }
4869 if ${ac_cv_prog_AR+:} false; then :
4870   $as_echo_n "(cached) " >&6
4871 else
4872   if test -n "$AR"; then
4873   ac_cv_prog_AR="$AR" # Let the user override the test.
4874 else
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4877 do
4878   IFS=$as_save_IFS
4879   test -z "$as_dir" && as_dir=.
4880     for ac_exec_ext in '' $ac_executable_extensions; do
4881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4882     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4884     break 2
4885   fi
4886 done
4887   done
4888 IFS=$as_save_IFS
4889
4890 fi
4891 fi
4892 AR=$ac_cv_prog_AR
4893 if test -n "$AR"; then
4894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4895 $as_echo "$AR" >&6; }
4896 else
4897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898 $as_echo "no" >&6; }
4899 fi
4900
4901
4902     test -n "$AR" && break
4903   done
4904 fi
4905 if test -z "$AR"; then
4906   ac_ct_AR=$AR
4907   for ac_prog in ar lib "link -lib"
4908 do
4909   # Extract the first word of "$ac_prog", so it can be a program name with args.
4910 set dummy $ac_prog; ac_word=$2
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912 $as_echo_n "checking for $ac_word... " >&6; }
4913 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4914   $as_echo_n "(cached) " >&6
4915 else
4916   if test -n "$ac_ct_AR"; then
4917   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4918 else
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 for as_dir in $PATH
4921 do
4922   IFS=$as_save_IFS
4923   test -z "$as_dir" && as_dir=.
4924     for ac_exec_ext in '' $ac_executable_extensions; do
4925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4926     ac_cv_prog_ac_ct_AR="$ac_prog"
4927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928     break 2
4929   fi
4930 done
4931   done
4932 IFS=$as_save_IFS
4933
4934 fi
4935 fi
4936 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4937 if test -n "$ac_ct_AR"; then
4938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4939 $as_echo "$ac_ct_AR" >&6; }
4940 else
4941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4943 fi
4944
4945
4946   test -n "$ac_ct_AR" && break
4947 done
4948
4949   if test "x$ac_ct_AR" = x; then
4950     AR="false"
4951   else
4952     case $cross_compiling:$ac_tool_warned in
4953 yes:)
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4956 ac_tool_warned=yes ;;
4957 esac
4958     AR=$ac_ct_AR
4959   fi
4960 fi
4961
4962 : ${AR=ar}
4963
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4965 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4966 if ${am_cv_ar_interface+:} false; then :
4967   $as_echo_n "(cached) " >&6
4968 else
4969   am_cv_ar_interface=ar
4970    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h.  */
4972 int some_variable = 0;
4973 _ACEOF
4974 if ac_fn_c_try_compile "$LINENO"; then :
4975   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4976       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4977   (eval $am_ar_try) 2>&5
4978   ac_status=$?
4979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4980   test $ac_status = 0; }
4981       if test "$ac_status" -eq 0; then
4982         am_cv_ar_interface=ar
4983       else
4984         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4985         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4986   (eval $am_ar_try) 2>&5
4987   ac_status=$?
4988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4989   test $ac_status = 0; }
4990         if test "$ac_status" -eq 0; then
4991           am_cv_ar_interface=lib
4992         else
4993           am_cv_ar_interface=unknown
4994         fi
4995       fi
4996       rm -f conftest.lib libconftest.a
4997
4998 fi
4999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5000
5001 fi
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5003 $as_echo "$am_cv_ar_interface" >&6; }
5004
5005 case $am_cv_ar_interface in
5006 ar)
5007   ;;
5008 lib)
5009   # Microsoft lib, so override with the ar-lib wrapper script.
5010   # FIXME: It is wrong to rewrite AR.
5011   # But if we don't then we get into trouble of one sort or another.
5012   # A longer-term fix would be to have automake use am__AR in this case,
5013   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5014   # similar.
5015   AR="$am_aux_dir/ar-lib $AR"
5016   ;;
5017 unknown)
5018   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5019   ;;
5020 esac
5021
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
5023 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
5024
5025 # Check whether --with-dmalloc was given.
5026 if test "${with_dmalloc+set}" = set; then :
5027   withval=$with_dmalloc; if test "$withval" = yes; then
5028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5029 $as_echo "yes" >&6; }
5030
5031 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
5032
5033   LIBS="$LIBS -ldmalloc"
5034   LDFLAGS="$LDFLAGS -g"
5035 else
5036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5038 fi
5039 else
5040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 $as_echo "no" >&6; }
5042 fi
5043
5044
5045
5046 # Check whether --with-doxygen was given.
5047 if test "${with_doxygen+set}" = set; then :
5048   withval=$with_doxygen; if test "x$withval" = xyes; then
5049   with_doxygen=doxygen
5050 else
5051   with_doxygen="${withval-doxygen}"
5052 fi
5053 else
5054   with_doxygen=doxygen
5055 fi
5056
5057
5058 # Check whether --with-dot was given.
5059 if test "${with_dot+set}" = set; then :
5060   withval=$with_dot; if test "x$withval" = xyes; then
5061   with_dot=dot
5062 else
5063   with_dot="${withval-dot}"
5064 fi
5065 else
5066   with_dot=dot
5067 fi
5068
5069 # Check whether --enable-html-docs was given.
5070 if test "${enable_html_docs+set}" = set; then :
5071   enableval=$enable_html_docs;
5072 else
5073    enable_html_docs=yes
5074 fi
5075
5076 # Check whether --enable-latex-docs was given.
5077 if test "${enable_latex_docs+set}" = set; then :
5078   enableval=$enable_latex_docs;
5079 else
5080    enable_latex_docs=no
5081 fi
5082
5083
5084 if test "x$with_doxygen" = xno; then
5085   enable_doc=no
5086 else
5087   # Extract the first word of "$with_doxygen", so it can be a program name with args.
5088 set dummy $with_doxygen; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if ${ac_cv_path_DOXYGEN+:} false; then :
5092   $as_echo_n "(cached) " >&6
5093 else
5094   case $DOXYGEN in
5095   [\\/]* | ?:[\\/]*)
5096   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5097   ;;
5098   *)
5099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5101 do
5102   IFS=$as_save_IFS
5103   test -z "$as_dir" && as_dir=.
5104     for ac_exec_ext in '' $ac_executable_extensions; do
5105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108     break 2
5109   fi
5110 done
5111   done
5112 IFS=$as_save_IFS
5113
5114   ;;
5115 esac
5116 fi
5117 DOXYGEN=$ac_cv_path_DOXYGEN
5118 if test -n "$DOXYGEN"; then
5119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
5120 $as_echo "$DOXYGEN" >&6; }
5121 else
5122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123 $as_echo "no" >&6; }
5124 fi
5125
5126
5127   if test x$DOXYGEN = x; then
5128     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find doxygen" >&5
5129 $as_echo "$as_me: WARNING: could not find doxygen" >&2;}
5130     enable_doc=no
5131   else
5132     enable_doc=yes
5133   fi
5134 fi
5135
5136  if test x$enable_doc = xyes; then
5137   DOC_TRUE=
5138   DOC_FALSE='#'
5139 else
5140   DOC_TRUE='#'
5141   DOC_FALSE=
5142 fi
5143
5144
5145 if test "x$with_dot" = xno; then
5146   enable_dot=no
5147 else
5148   # Extract the first word of "$with_dot", so it can be a program name with args.
5149 set dummy $with_dot; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_path_DOT+:} false; then :
5153   $as_echo_n "(cached) " >&6
5154 else
5155   case $DOT in
5156   [\\/]* | ?:[\\/]*)
5157   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5158   ;;
5159   *)
5160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5162 do
5163   IFS=$as_save_IFS
5164   test -z "$as_dir" && as_dir=.
5165     for ac_exec_ext in '' $ac_executable_extensions; do
5166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169     break 2
5170   fi
5171 done
5172   done
5173 IFS=$as_save_IFS
5174
5175   ;;
5176 esac
5177 fi
5178 DOT=$ac_cv_path_DOT
5179 if test -n "$DOT"; then
5180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
5181 $as_echo "$DOT" >&6; }
5182 else
5183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5185 fi
5186
5187
5188   if test x$DOT = x; then
5189     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find dot" >&5
5190 $as_echo "$as_me: WARNING: could not find dot" >&2;}
5191     enable_dot=no
5192   else
5193     enable_dot=yes
5194     DOT_PATH=`dirname $DOT`
5195   fi
5196 fi
5197
5198
5199
5200
5201
5202
5203 # Check whether --enable-coverage was given.
5204 if test "${enable_coverage+set}" = set; then :
5205   enableval=$enable_coverage;  if test ${enableval-yes} = yes; then
5206       COVERAGEFLAGS="-fprofile-arcs -ftest-coverage"
5207     fi
5208 fi
5209
5210
5211 # Check whether --enable-japanese-doc was given.
5212 if test "${enable_japanese_doc+set}" = set; then :
5213   enableval=$enable_japanese_doc;  case "${enableval}" in
5214     yes) enable_jadoc=yes;;
5215     no)  enable_jadoc=no;;
5216     *)   enable_jadoc=no;;
5217     esac
5218 else
5219   enable_jadoc=no
5220 fi
5221
5222  if test x$enable_jadoc = xyes; then
5223   ENABLE_JADOC_TRUE=
5224   ENABLE_JADOC_FALSE='#'
5225 else
5226   ENABLE_JADOC_TRUE='#'
5227   ENABLE_JADOC_FALSE=
5228 fi
5229
5230
5231 #AC_REQUIRE(AC_CANONICAL_HOST)
5232
5233 case `pwd` in
5234   *\ * | *\     *)
5235     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5236 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5237 esac
5238
5239
5240
5241 macro_version='2.2.8'
5242 macro_revision='1.3169'
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256 ltmain="$ac_aux_dir/ltmain.sh"
5257
5258 # Make sure we can run config.sub.
5259 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5260   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5261
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5263 $as_echo_n "checking build system type... " >&6; }
5264 if ${ac_cv_build+:} false; then :
5265   $as_echo_n "(cached) " >&6
5266 else
5267   ac_build_alias=$build_alias
5268 test "x$ac_build_alias" = x &&
5269   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5270 test "x$ac_build_alias" = x &&
5271   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5272 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5273   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5274
5275 fi
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5277 $as_echo "$ac_cv_build" >&6; }
5278 case $ac_cv_build in
5279 *-*-*) ;;
5280 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5281 esac
5282 build=$ac_cv_build
5283 ac_save_IFS=$IFS; IFS='-'
5284 set x $ac_cv_build
5285 shift
5286 build_cpu=$1
5287 build_vendor=$2
5288 shift; shift
5289 # Remember, the first character of IFS is used to create $*,
5290 # except with old shells:
5291 build_os=$*
5292 IFS=$ac_save_IFS
5293 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5294
5295
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5297 $as_echo_n "checking host system type... " >&6; }
5298 if ${ac_cv_host+:} false; then :
5299   $as_echo_n "(cached) " >&6
5300 else
5301   if test "x$host_alias" = x; then
5302   ac_cv_host=$ac_cv_build
5303 else
5304   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5305     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5306 fi
5307
5308 fi
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5310 $as_echo "$ac_cv_host" >&6; }
5311 case $ac_cv_host in
5312 *-*-*) ;;
5313 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5314 esac
5315 host=$ac_cv_host
5316 ac_save_IFS=$IFS; IFS='-'
5317 set x $ac_cv_host
5318 shift
5319 host_cpu=$1
5320 host_vendor=$2
5321 shift; shift
5322 # Remember, the first character of IFS is used to create $*,
5323 # except with old shells:
5324 host_os=$*
5325 IFS=$ac_save_IFS
5326 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5327
5328
5329 # Backslashify metacharacters that are still active within
5330 # double-quoted strings.
5331 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5332
5333 # Same as above, but do not quote variable references.
5334 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5335
5336 # Sed substitution to delay expansion of an escaped shell variable in a
5337 # double_quote_subst'ed string.
5338 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5339
5340 # Sed substitution to delay expansion of an escaped single quote.
5341 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5342
5343 # Sed substitution to avoid accidental globbing in evaled expressions
5344 no_glob_subst='s/\*/\\\*/g'
5345
5346 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5347 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5348 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5349
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5351 $as_echo_n "checking how to print strings... " >&6; }
5352 # Test print first, because it will be a builtin if present.
5353 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5354    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5355   ECHO='print -r --'
5356 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5357   ECHO='printf %s\n'
5358 else
5359   # Use this function as a fallback that always works.
5360   func_fallback_echo ()
5361   {
5362     eval 'cat <<_LTECHO_EOF
5363 $1
5364 _LTECHO_EOF'
5365   }
5366   ECHO='func_fallback_echo'
5367 fi
5368
5369 # func_echo_all arg...
5370 # Invoke $ECHO with all args, space-separated.
5371 func_echo_all ()
5372 {
5373     $ECHO ""
5374 }
5375
5376 case "$ECHO" in
5377   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5378 $as_echo "printf" >&6; } ;;
5379   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5380 $as_echo "print -r" >&6; } ;;
5381   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5382 $as_echo "cat" >&6; } ;;
5383 esac
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5399 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5400 if ${ac_cv_path_SED+:} false; then :
5401   $as_echo_n "(cached) " >&6
5402 else
5403             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5404      for ac_i in 1 2 3 4 5 6 7; do
5405        ac_script="$ac_script$as_nl$ac_script"
5406      done
5407      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5408      { ac_script=; unset ac_script;}
5409      if test -z "$SED"; then
5410   ac_path_SED_found=false
5411   # Loop through the user's path and test for each of PROGNAME-LIST
5412   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413 for as_dir in $PATH
5414 do
5415   IFS=$as_save_IFS
5416   test -z "$as_dir" && as_dir=.
5417     for ac_prog in sed gsed; do
5418     for ac_exec_ext in '' $ac_executable_extensions; do
5419       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5420       as_fn_executable_p "$ac_path_SED" || continue
5421 # Check for GNU ac_path_SED and select it if it is found.
5422   # Check for GNU $ac_path_SED
5423 case `"$ac_path_SED" --version 2>&1` in
5424 *GNU*)
5425   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5426 *)
5427   ac_count=0
5428   $as_echo_n 0123456789 >"conftest.in"
5429   while :
5430   do
5431     cat "conftest.in" "conftest.in" >"conftest.tmp"
5432     mv "conftest.tmp" "conftest.in"
5433     cp "conftest.in" "conftest.nl"
5434     $as_echo '' >> "conftest.nl"
5435     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5436     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5437     as_fn_arith $ac_count + 1 && ac_count=$as_val
5438     if test $ac_count -gt ${ac_path_SED_max-0}; then
5439       # Best one so far, save it but keep looking for a better one
5440       ac_cv_path_SED="$ac_path_SED"
5441       ac_path_SED_max=$ac_count
5442     fi
5443     # 10*(2^10) chars as input seems more than enough
5444     test $ac_count -gt 10 && break
5445   done
5446   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5447 esac
5448
5449       $ac_path_SED_found && break 3
5450     done
5451   done
5452   done
5453 IFS=$as_save_IFS
5454   if test -z "$ac_cv_path_SED"; then
5455     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5456   fi
5457 else
5458   ac_cv_path_SED=$SED
5459 fi
5460
5461 fi
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5463 $as_echo "$ac_cv_path_SED" >&6; }
5464  SED="$ac_cv_path_SED"
5465   rm -f conftest.sed
5466
5467 test -z "$SED" && SED=sed
5468 Xsed="$SED -e 1s/^X//"
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5481 $as_echo_n "checking for fgrep... " >&6; }
5482 if ${ac_cv_path_FGREP+:} false; then :
5483   $as_echo_n "(cached) " >&6
5484 else
5485   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5486    then ac_cv_path_FGREP="$GREP -F"
5487    else
5488      if test -z "$FGREP"; then
5489   ac_path_FGREP_found=false
5490   # Loop through the user's path and test for each of PROGNAME-LIST
5491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5493 do
5494   IFS=$as_save_IFS
5495   test -z "$as_dir" && as_dir=.
5496     for ac_prog in fgrep; do
5497     for ac_exec_ext in '' $ac_executable_extensions; do
5498       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5499       as_fn_executable_p "$ac_path_FGREP" || continue
5500 # Check for GNU ac_path_FGREP and select it if it is found.
5501   # Check for GNU $ac_path_FGREP
5502 case `"$ac_path_FGREP" --version 2>&1` in
5503 *GNU*)
5504   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5505 *)
5506   ac_count=0
5507   $as_echo_n 0123456789 >"conftest.in"
5508   while :
5509   do
5510     cat "conftest.in" "conftest.in" >"conftest.tmp"
5511     mv "conftest.tmp" "conftest.in"
5512     cp "conftest.in" "conftest.nl"
5513     $as_echo 'FGREP' >> "conftest.nl"
5514     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5515     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5516     as_fn_arith $ac_count + 1 && ac_count=$as_val
5517     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5518       # Best one so far, save it but keep looking for a better one
5519       ac_cv_path_FGREP="$ac_path_FGREP"
5520       ac_path_FGREP_max=$ac_count
5521     fi
5522     # 10*(2^10) chars as input seems more than enough
5523     test $ac_count -gt 10 && break
5524   done
5525   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5526 esac
5527
5528       $ac_path_FGREP_found && break 3
5529     done
5530   done
5531   done
5532 IFS=$as_save_IFS
5533   if test -z "$ac_cv_path_FGREP"; then
5534     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5535   fi
5536 else
5537   ac_cv_path_FGREP=$FGREP
5538 fi
5539
5540    fi
5541 fi
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5543 $as_echo "$ac_cv_path_FGREP" >&6; }
5544  FGREP="$ac_cv_path_FGREP"
5545
5546
5547 test -z "$GREP" && GREP=grep
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567 # Check whether --with-gnu-ld was given.
5568 if test "${with_gnu_ld+set}" = set; then :
5569   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5570 else
5571   with_gnu_ld=no
5572 fi
5573
5574 ac_prog=ld
5575 if test "$GCC" = yes; then
5576   # Check if gcc -print-prog-name=ld gives a path.
5577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5578 $as_echo_n "checking for ld used by $CC... " >&6; }
5579   case $host in
5580   *-*-mingw*)
5581     # gcc leaves a trailing carriage return which upsets mingw
5582     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5583   *)
5584     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5585   esac
5586   case $ac_prog in
5587     # Accept absolute paths.
5588     [\\/]* | ?:[\\/]*)
5589       re_direlt='/[^/][^/]*/\.\./'
5590       # Canonicalize the pathname of ld
5591       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5592       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5593         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5594       done
5595       test -z "$LD" && LD="$ac_prog"
5596       ;;
5597   "")
5598     # If it fails, then pretend we aren't using GCC.
5599     ac_prog=ld
5600     ;;
5601   *)
5602     # If it is relative, then search for the first ld in PATH.
5603     with_gnu_ld=unknown
5604     ;;
5605   esac
5606 elif test "$with_gnu_ld" = yes; then
5607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5608 $as_echo_n "checking for GNU ld... " >&6; }
5609 else
5610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5611 $as_echo_n "checking for non-GNU ld... " >&6; }
5612 fi
5613 if ${lt_cv_path_LD+:} false; then :
5614   $as_echo_n "(cached) " >&6
5615 else
5616   if test -z "$LD"; then
5617   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5618   for ac_dir in $PATH; do
5619     IFS="$lt_save_ifs"
5620     test -z "$ac_dir" && ac_dir=.
5621     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5622       lt_cv_path_LD="$ac_dir/$ac_prog"
5623       # Check to see if the program is GNU ld.  I'd rather use --version,
5624       # but apparently some variants of GNU ld only accept -v.
5625       # Break only if it was the GNU/non-GNU ld that we prefer.
5626       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5627       *GNU* | *'with BFD'*)
5628         test "$with_gnu_ld" != no && break
5629         ;;
5630       *)
5631         test "$with_gnu_ld" != yes && break
5632         ;;
5633       esac
5634     fi
5635   done
5636   IFS="$lt_save_ifs"
5637 else
5638   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5639 fi
5640 fi
5641
5642 LD="$lt_cv_path_LD"
5643 if test -n "$LD"; then
5644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5645 $as_echo "$LD" >&6; }
5646 else
5647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5649 fi
5650 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5652 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5653 if ${lt_cv_prog_gnu_ld+:} false; then :
5654   $as_echo_n "(cached) " >&6
5655 else
5656   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5657 case `$LD -v 2>&1 </dev/null` in
5658 *GNU* | *'with BFD'*)
5659   lt_cv_prog_gnu_ld=yes
5660   ;;
5661 *)
5662   lt_cv_prog_gnu_ld=no
5663   ;;
5664 esac
5665 fi
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5667 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5668 with_gnu_ld=$lt_cv_prog_gnu_ld
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5679 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5680 if ${lt_cv_path_NM+:} false; then :
5681   $as_echo_n "(cached) " >&6
5682 else
5683   if test -n "$NM"; then
5684   # Let the user override the test.
5685   lt_cv_path_NM="$NM"
5686 else
5687   lt_nm_to_check="${ac_tool_prefix}nm"
5688   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5689     lt_nm_to_check="$lt_nm_to_check nm"
5690   fi
5691   for lt_tmp_nm in $lt_nm_to_check; do
5692     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5693     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5694       IFS="$lt_save_ifs"
5695       test -z "$ac_dir" && ac_dir=.
5696       tmp_nm="$ac_dir/$lt_tmp_nm"
5697       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5698         # Check to see if the nm accepts a BSD-compat flag.
5699         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5700         #   nm: unknown option "B" ignored
5701         # Tru64's nm complains that /dev/null is an invalid object file
5702         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5703         */dev/null* | *'Invalid file or object type'*)
5704           lt_cv_path_NM="$tmp_nm -B"
5705           break
5706           ;;
5707         *)
5708           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5709           */dev/null*)
5710             lt_cv_path_NM="$tmp_nm -p"
5711             break
5712             ;;
5713           *)
5714             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5715             continue # so that we can try to find one that supports BSD flags
5716             ;;
5717           esac
5718           ;;
5719         esac
5720       fi
5721     done
5722     IFS="$lt_save_ifs"
5723   done
5724   : ${lt_cv_path_NM=no}
5725 fi
5726 fi
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5728 $as_echo "$lt_cv_path_NM" >&6; }
5729 if test "$lt_cv_path_NM" != "no"; then
5730   NM="$lt_cv_path_NM"
5731 else
5732   # Didn't find any BSD compatible name lister, look for dumpbin.
5733   if test -n "$DUMPBIN"; then :
5734     # Let the user override the test.
5735   else
5736     if test -n "$ac_tool_prefix"; then
5737   for ac_prog in dumpbin "link -dump"
5738   do
5739     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5740 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_prog_DUMPBIN+:} false; then :
5744   $as_echo_n "(cached) " >&6
5745 else
5746   if test -n "$DUMPBIN"; then
5747   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5748 else
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5751 do
5752   IFS=$as_save_IFS
5753   test -z "$as_dir" && as_dir=.
5754     for ac_exec_ext in '' $ac_executable_extensions; do
5755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758     break 2
5759   fi
5760 done
5761   done
5762 IFS=$as_save_IFS
5763
5764 fi
5765 fi
5766 DUMPBIN=$ac_cv_prog_DUMPBIN
5767 if test -n "$DUMPBIN"; then
5768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5769 $as_echo "$DUMPBIN" >&6; }
5770 else
5771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5773 fi
5774
5775
5776     test -n "$DUMPBIN" && break
5777   done
5778 fi
5779 if test -z "$DUMPBIN"; then
5780   ac_ct_DUMPBIN=$DUMPBIN
5781   for ac_prog in dumpbin "link -dump"
5782 do
5783   # Extract the first word of "$ac_prog", so it can be a program name with args.
5784 set dummy $ac_prog; ac_word=$2
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786 $as_echo_n "checking for $ac_word... " >&6; }
5787 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5788   $as_echo_n "(cached) " >&6
5789 else
5790   if test -n "$ac_ct_DUMPBIN"; then
5791   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5792 else
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 for as_dir in $PATH
5795 do
5796   IFS=$as_save_IFS
5797   test -z "$as_dir" && as_dir=.
5798     for ac_exec_ext in '' $ac_executable_extensions; do
5799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5800     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5802     break 2
5803   fi
5804 done
5805   done
5806 IFS=$as_save_IFS
5807
5808 fi
5809 fi
5810 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5811 if test -n "$ac_ct_DUMPBIN"; then
5812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5813 $as_echo "$ac_ct_DUMPBIN" >&6; }
5814 else
5815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816 $as_echo "no" >&6; }
5817 fi
5818
5819
5820   test -n "$ac_ct_DUMPBIN" && break
5821 done
5822
5823   if test "x$ac_ct_DUMPBIN" = x; then
5824     DUMPBIN=":"
5825   else
5826     case $cross_compiling:$ac_tool_warned in
5827 yes:)
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5830 ac_tool_warned=yes ;;
5831 esac
5832     DUMPBIN=$ac_ct_DUMPBIN
5833   fi
5834 fi
5835
5836     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5837     *COFF*)
5838       DUMPBIN="$DUMPBIN -symbols"
5839       ;;
5840     *)
5841       DUMPBIN=:
5842       ;;
5843     esac
5844   fi
5845
5846   if test "$DUMPBIN" != ":"; then
5847     NM="$DUMPBIN"
5848   fi
5849 fi
5850 test -z "$NM" && NM=nm
5851
5852
5853
5854
5855
5856
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5858 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5859 if ${lt_cv_nm_interface+:} false; then :
5860   $as_echo_n "(cached) " >&6
5861 else
5862   lt_cv_nm_interface="BSD nm"
5863   echo "int some_variable = 0;" > conftest.$ac_ext
5864   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5865   (eval "$ac_compile" 2>conftest.err)
5866   cat conftest.err >&5
5867   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5868   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5869   cat conftest.err >&5
5870   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5871   cat conftest.out >&5
5872   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5873     lt_cv_nm_interface="MS dumpbin"
5874   fi
5875   rm -f conftest*
5876 fi
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5878 $as_echo "$lt_cv_nm_interface" >&6; }
5879
5880 # find the maximum length of command line arguments
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5882 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5883 if ${lt_cv_sys_max_cmd_len+:} false; then :
5884   $as_echo_n "(cached) " >&6
5885 else
5886     i=0
5887   teststring="ABCD"
5888
5889   case $build_os in
5890   msdosdjgpp*)
5891     # On DJGPP, this test can blow up pretty badly due to problems in libc
5892     # (any single argument exceeding 2000 bytes causes a buffer overrun
5893     # during glob expansion).  Even if it were fixed, the result of this
5894     # check would be larger than it should be.
5895     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5896     ;;
5897
5898   gnu*)
5899     # Under GNU Hurd, this test is not required because there is
5900     # no limit to the length of command line arguments.
5901     # Libtool will interpret -1 as no limit whatsoever
5902     lt_cv_sys_max_cmd_len=-1;
5903     ;;
5904
5905   cygwin* | mingw* | cegcc*)
5906     # On Win9x/ME, this test blows up -- it succeeds, but takes
5907     # about 5 minutes as the teststring grows exponentially.
5908     # Worse, since 9x/ME are not pre-emptively multitasking,
5909     # you end up with a "frozen" computer, even though with patience
5910     # the test eventually succeeds (with a max line length of 256k).
5911     # Instead, let's just punt: use the minimum linelength reported by
5912     # all of the supported platforms: 8192 (on NT/2K/XP).
5913     lt_cv_sys_max_cmd_len=8192;
5914     ;;
5915
5916   mint*)
5917     # On MiNT this can take a long time and run out of memory.
5918     lt_cv_sys_max_cmd_len=8192;
5919     ;;
5920
5921   amigaos*)
5922     # On AmigaOS with pdksh, this test takes hours, literally.
5923     # So we just punt and use a minimum line length of 8192.
5924     lt_cv_sys_max_cmd_len=8192;
5925     ;;
5926
5927   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5928     # This has been around since 386BSD, at least.  Likely further.
5929     if test -x /sbin/sysctl; then
5930       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5931     elif test -x /usr/sbin/sysctl; then
5932       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5933     else
5934       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5935     fi
5936     # And add a safety zone
5937     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5938     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5939     ;;
5940
5941   interix*)
5942     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5943     lt_cv_sys_max_cmd_len=196608
5944     ;;
5945
5946   osf*)
5947     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5948     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5949     # nice to cause kernel panics so lets avoid the loop below.
5950     # First set a reasonable default.
5951     lt_cv_sys_max_cmd_len=16384
5952     #
5953     if test -x /sbin/sysconfig; then
5954       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5955         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5956       esac
5957     fi
5958     ;;
5959   sco3.2v5*)
5960     lt_cv_sys_max_cmd_len=102400
5961     ;;
5962   sysv5* | sco5v6* | sysv4.2uw2*)
5963     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5964     if test -n "$kargmax"; then
5965       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5966     else
5967       lt_cv_sys_max_cmd_len=32768
5968     fi
5969     ;;
5970   *)
5971     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5972     if test -n "$lt_cv_sys_max_cmd_len"; then
5973       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5974       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5975     else
5976       # Make teststring a little bigger before we do anything with it.
5977       # a 1K string should be a reasonable start.
5978       for i in 1 2 3 4 5 6 7 8 ; do
5979         teststring=$teststring$teststring
5980       done
5981       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5982       # If test is not a shell built-in, we'll probably end up computing a
5983       # maximum length that is only half of the actual maximum length, but
5984       # we can't tell.
5985       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5986                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5987               test $i != 17 # 1/2 MB should be enough
5988       do
5989         i=`expr $i + 1`
5990         teststring=$teststring$teststring
5991       done
5992       # Only check the string length outside the loop.
5993       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5994       teststring=
5995       # Add a significant safety factor because C++ compilers can tack on
5996       # massive amounts of additional arguments before passing them to the
5997       # linker.  It appears as though 1/2 is a usable value.
5998       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5999     fi
6000     ;;
6001   esac
6002
6003 fi
6004
6005 if test -n $lt_cv_sys_max_cmd_len ; then
6006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6007 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6008 else
6009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6010 $as_echo "none" >&6; }
6011 fi
6012 max_cmd_len=$lt_cv_sys_max_cmd_len
6013
6014
6015
6016
6017
6018
6019 : ${CP="cp -f"}
6020 : ${MV="mv -f"}
6021 : ${RM="rm -f"}
6022
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6024 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6025 # Try some XSI features
6026 xsi_shell=no
6027 ( _lt_dummy="a/b/c"
6028   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6029       = c,a/b,, \
6030     && eval 'test $(( 1 + 1 )) -eq 2 \
6031     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6032   && xsi_shell=yes
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6034 $as_echo "$xsi_shell" >&6; }
6035
6036
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6038 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6039 lt_shell_append=no
6040 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6041     >/dev/null 2>&1 \
6042   && lt_shell_append=yes
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6044 $as_echo "$lt_shell_append" >&6; }
6045
6046
6047 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6048   lt_unset=unset
6049 else
6050   lt_unset=false
6051 fi
6052
6053
6054
6055
6056
6057 # test EBCDIC or ASCII
6058 case `echo X|tr X '\101'` in
6059  A) # ASCII based system
6060     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6061   lt_SP2NL='tr \040 \012'
6062   lt_NL2SP='tr \015\012 \040\040'
6063   ;;
6064  *) # EBCDIC based system
6065   lt_SP2NL='tr \100 \n'
6066   lt_NL2SP='tr \r\n \100\100'
6067   ;;
6068 esac
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6079 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6080 if ${lt_cv_ld_reload_flag+:} false; then :
6081   $as_echo_n "(cached) " >&6
6082 else
6083   lt_cv_ld_reload_flag='-r'
6084 fi
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6086 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6087 reload_flag=$lt_cv_ld_reload_flag
6088 case $reload_flag in
6089 "" | " "*) ;;
6090 *) reload_flag=" $reload_flag" ;;
6091 esac
6092 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6093 case $host_os in
6094   darwin*)
6095     if test "$GCC" = yes; then
6096       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6097     else
6098       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6099     fi
6100     ;;
6101 esac
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111 if test -n "$ac_tool_prefix"; then
6112   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6113 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6115 $as_echo_n "checking for $ac_word... " >&6; }
6116 if ${ac_cv_prog_OBJDUMP+:} false; then :
6117   $as_echo_n "(cached) " >&6
6118 else
6119   if test -n "$OBJDUMP"; then
6120   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6121 else
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 for as_dir in $PATH
6124 do
6125   IFS=$as_save_IFS
6126   test -z "$as_dir" && as_dir=.
6127     for ac_exec_ext in '' $ac_executable_extensions; do
6128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6129     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6131     break 2
6132   fi
6133 done
6134   done
6135 IFS=$as_save_IFS
6136
6137 fi
6138 fi
6139 OBJDUMP=$ac_cv_prog_OBJDUMP
6140 if test -n "$OBJDUMP"; then
6141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6142 $as_echo "$OBJDUMP" >&6; }
6143 else
6144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145 $as_echo "no" >&6; }
6146 fi
6147
6148
6149 fi
6150 if test -z "$ac_cv_prog_OBJDUMP"; then
6151   ac_ct_OBJDUMP=$OBJDUMP
6152   # Extract the first word of "objdump", so it can be a program name with args.
6153 set dummy objdump; ac_word=$2
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6155 $as_echo_n "checking for $ac_word... " >&6; }
6156 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6157   $as_echo_n "(cached) " >&6
6158 else
6159   if test -n "$ac_ct_OBJDUMP"; then
6160   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6161 else
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in $PATH
6164 do
6165   IFS=$as_save_IFS
6166   test -z "$as_dir" && as_dir=.
6167     for ac_exec_ext in '' $ac_executable_extensions; do
6168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6169     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6171     break 2
6172   fi
6173 done
6174   done
6175 IFS=$as_save_IFS
6176
6177 fi
6178 fi
6179 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6180 if test -n "$ac_ct_OBJDUMP"; then
6181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6182 $as_echo "$ac_ct_OBJDUMP" >&6; }
6183 else
6184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185 $as_echo "no" >&6; }
6186 fi
6187
6188   if test "x$ac_ct_OBJDUMP" = x; then
6189     OBJDUMP="false"
6190   else
6191     case $cross_compiling:$ac_tool_warned in
6192 yes:)
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6195 ac_tool_warned=yes ;;
6196 esac
6197     OBJDUMP=$ac_ct_OBJDUMP
6198   fi
6199 else
6200   OBJDUMP="$ac_cv_prog_OBJDUMP"
6201 fi
6202
6203 test -z "$OBJDUMP" && OBJDUMP=objdump
6204
6205
6206
6207
6208
6209
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6211 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6212 if ${lt_cv_deplibs_check_method+:} false; then :
6213   $as_echo_n "(cached) " >&6
6214 else
6215   lt_cv_file_magic_cmd='$MAGIC_CMD'
6216 lt_cv_file_magic_test_file=
6217 lt_cv_deplibs_check_method='unknown'
6218 # Need to set the preceding variable on all platforms that support
6219 # interlibrary dependencies.
6220 # 'none' -- dependencies not supported.
6221 # `unknown' -- same as none, but documents that we really don't know.
6222 # 'pass_all' -- all dependencies passed with no checks.
6223 # 'test_compile' -- check by making test program.
6224 # 'file_magic [[regex]]' -- check by looking for files in library path
6225 # which responds to the $file_magic_cmd with a given extended regex.
6226 # If you have `file' or equivalent on your system and you're not sure
6227 # whether `pass_all' will *always* work, you probably want this one.
6228
6229 case $host_os in
6230 aix[4-9]*)
6231   lt_cv_deplibs_check_method=pass_all
6232   ;;
6233
6234 beos*)
6235   lt_cv_deplibs_check_method=pass_all
6236   ;;
6237
6238 bsdi[45]*)
6239   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6240   lt_cv_file_magic_cmd='/usr/bin/file -L'
6241   lt_cv_file_magic_test_file=/shlib/libc.so
6242   ;;
6243
6244 cygwin*)
6245   # func_win32_libid is a shell function defined in ltmain.sh
6246   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6247   lt_cv_file_magic_cmd='func_win32_libid'
6248   ;;
6249
6250 mingw* | pw32*)
6251   # Base MSYS/MinGW do not provide the 'file' command needed by
6252   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6253   # unless we find 'file', for example because we are cross-compiling.
6254   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6255   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6256     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6257     lt_cv_file_magic_cmd='func_win32_libid'
6258   else
6259     # Keep this pattern in sync with the one in func_win32_libid.
6260     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6261     lt_cv_file_magic_cmd='$OBJDUMP -f'
6262   fi
6263   ;;
6264
6265 cegcc*)
6266   # use the weaker test based on 'objdump'. See mingw*.
6267   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6268   lt_cv_file_magic_cmd='$OBJDUMP -f'
6269   ;;
6270
6271 darwin* | rhapsody*)
6272   lt_cv_deplibs_check_method=pass_all
6273   ;;
6274
6275 freebsd* | dragonfly*)
6276   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6277     case $host_cpu in
6278     i*86 )
6279       # Not sure whether the presence of OpenBSD here was a mistake.
6280       # Let's accept both of them until this is cleared up.
6281       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6282       lt_cv_file_magic_cmd=/usr/bin/file
6283       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6284       ;;
6285     esac
6286   else
6287     lt_cv_deplibs_check_method=pass_all
6288   fi
6289   ;;
6290
6291 gnu*)
6292   lt_cv_deplibs_check_method=pass_all
6293   ;;
6294
6295 haiku*)
6296   lt_cv_deplibs_check_method=pass_all
6297   ;;
6298
6299 hpux10.20* | hpux11*)
6300   lt_cv_file_magic_cmd=/usr/bin/file
6301   case $host_cpu in
6302   ia64*)
6303     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6304     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6305     ;;
6306   hppa*64*)
6307     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6308     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6309     ;;
6310   *)
6311     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6312     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6313     ;;
6314   esac
6315   ;;
6316
6317 interix[3-9]*)
6318   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6319   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6320   ;;
6321
6322 irix5* | irix6* | nonstopux*)
6323   case $LD in
6324   *-32|*"-32 ") libmagic=32-bit;;
6325   *-n32|*"-n32 ") libmagic=N32;;
6326   *-64|*"-64 ") libmagic=64-bit;;
6327   *) libmagic=never-match;;
6328   esac
6329   lt_cv_deplibs_check_method=pass_all
6330   ;;
6331
6332 # This must be Linux ELF.
6333 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6334   lt_cv_deplibs_check_method=pass_all
6335   ;;
6336
6337 netbsd*)
6338   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6339     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6340   else
6341     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6342   fi
6343   ;;
6344
6345 newos6*)
6346   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6347   lt_cv_file_magic_cmd=/usr/bin/file
6348   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6349   ;;
6350
6351 *nto* | *qnx*)
6352   lt_cv_deplibs_check_method=pass_all
6353   ;;
6354
6355 openbsd*)
6356   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6357     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6358   else
6359     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6360   fi
6361   ;;
6362
6363 osf3* | osf4* | osf5*)
6364   lt_cv_deplibs_check_method=pass_all
6365   ;;
6366
6367 rdos*)
6368   lt_cv_deplibs_check_method=pass_all
6369   ;;
6370
6371 solaris*)
6372   lt_cv_deplibs_check_method=pass_all
6373   ;;
6374
6375 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6376   lt_cv_deplibs_check_method=pass_all
6377   ;;
6378
6379 sysv4 | sysv4.3*)
6380   case $host_vendor in
6381   motorola)
6382     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]'
6383     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6384     ;;
6385   ncr)
6386     lt_cv_deplibs_check_method=pass_all
6387     ;;
6388   sequent)
6389     lt_cv_file_magic_cmd='/bin/file'
6390     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6391     ;;
6392   sni)
6393     lt_cv_file_magic_cmd='/bin/file'
6394     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6395     lt_cv_file_magic_test_file=/lib/libc.so
6396     ;;
6397   siemens)
6398     lt_cv_deplibs_check_method=pass_all
6399     ;;
6400   pc)
6401     lt_cv_deplibs_check_method=pass_all
6402     ;;
6403   esac
6404   ;;
6405
6406 tpf*)
6407   lt_cv_deplibs_check_method=pass_all
6408   ;;
6409 esac
6410
6411 fi
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6413 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6414 file_magic_cmd=$lt_cv_file_magic_cmd
6415 deplibs_check_method=$lt_cv_deplibs_check_method
6416 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429 if test -n "$ac_tool_prefix"; then
6430   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6431 set dummy ${ac_tool_prefix}ar; ac_word=$2
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if ${ac_cv_prog_AR+:} false; then :
6435   $as_echo_n "(cached) " >&6
6436 else
6437   if test -n "$AR"; then
6438   ac_cv_prog_AR="$AR" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443   IFS=$as_save_IFS
6444   test -z "$as_dir" && as_dir=.
6445     for ac_exec_ext in '' $ac_executable_extensions; do
6446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447     ac_cv_prog_AR="${ac_tool_prefix}ar"
6448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449     break 2
6450   fi
6451 done
6452   done
6453 IFS=$as_save_IFS
6454
6455 fi
6456 fi
6457 AR=$ac_cv_prog_AR
6458 if test -n "$AR"; then
6459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6460 $as_echo "$AR" >&6; }
6461 else
6462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6464 fi
6465
6466
6467 fi
6468 if test -z "$ac_cv_prog_AR"; then
6469   ac_ct_AR=$AR
6470   # Extract the first word of "ar", so it can be a program name with args.
6471 set dummy ar; ac_word=$2
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6475   $as_echo_n "(cached) " >&6
6476 else
6477   if test -n "$ac_ct_AR"; then
6478   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6479 else
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6482 do
6483   IFS=$as_save_IFS
6484   test -z "$as_dir" && as_dir=.
6485     for ac_exec_ext in '' $ac_executable_extensions; do
6486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6487     ac_cv_prog_ac_ct_AR="ar"
6488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489     break 2
6490   fi
6491 done
6492   done
6493 IFS=$as_save_IFS
6494
6495 fi
6496 fi
6497 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6498 if test -n "$ac_ct_AR"; then
6499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6500 $as_echo "$ac_ct_AR" >&6; }
6501 else
6502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6504 fi
6505
6506   if test "x$ac_ct_AR" = x; then
6507     AR="false"
6508   else
6509     case $cross_compiling:$ac_tool_warned in
6510 yes:)
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6513 ac_tool_warned=yes ;;
6514 esac
6515     AR=$ac_ct_AR
6516   fi
6517 else
6518   AR="$ac_cv_prog_AR"
6519 fi
6520
6521 test -z "$AR" && AR=ar
6522 test -z "$AR_FLAGS" && AR_FLAGS=cru
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534 if test -n "$ac_tool_prefix"; then
6535   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6536 set dummy ${ac_tool_prefix}strip; ac_word=$2
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if ${ac_cv_prog_STRIP+:} false; then :
6540   $as_echo_n "(cached) " >&6
6541 else
6542   if test -n "$STRIP"; then
6543   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6544 else
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6547 do
6548   IFS=$as_save_IFS
6549   test -z "$as_dir" && as_dir=.
6550     for ac_exec_ext in '' $ac_executable_extensions; do
6551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6552     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554     break 2
6555   fi
6556 done
6557   done
6558 IFS=$as_save_IFS
6559
6560 fi
6561 fi
6562 STRIP=$ac_cv_prog_STRIP
6563 if test -n "$STRIP"; then
6564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6565 $as_echo "$STRIP" >&6; }
6566 else
6567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6569 fi
6570
6571
6572 fi
6573 if test -z "$ac_cv_prog_STRIP"; then
6574   ac_ct_STRIP=$STRIP
6575   # Extract the first word of "strip", so it can be a program name with args.
6576 set dummy strip; ac_word=$2
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578 $as_echo_n "checking for $ac_word... " >&6; }
6579 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6580   $as_echo_n "(cached) " >&6
6581 else
6582   if test -n "$ac_ct_STRIP"; then
6583   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6584 else
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588   IFS=$as_save_IFS
6589   test -z "$as_dir" && as_dir=.
6590     for ac_exec_ext in '' $ac_executable_extensions; do
6591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6592     ac_cv_prog_ac_ct_STRIP="strip"
6593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594     break 2
6595   fi
6596 done
6597   done
6598 IFS=$as_save_IFS
6599
6600 fi
6601 fi
6602 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6603 if test -n "$ac_ct_STRIP"; then
6604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6605 $as_echo "$ac_ct_STRIP" >&6; }
6606 else
6607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 $as_echo "no" >&6; }
6609 fi
6610
6611   if test "x$ac_ct_STRIP" = x; then
6612     STRIP=":"
6613   else
6614     case $cross_compiling:$ac_tool_warned in
6615 yes:)
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6618 ac_tool_warned=yes ;;
6619 esac
6620     STRIP=$ac_ct_STRIP
6621   fi
6622 else
6623   STRIP="$ac_cv_prog_STRIP"
6624 fi
6625
6626 test -z "$STRIP" && STRIP=:
6627
6628
6629
6630
6631
6632
6633 if test -n "$ac_tool_prefix"; then
6634   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6635 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637 $as_echo_n "checking for $ac_word... " >&6; }
6638 if ${ac_cv_prog_RANLIB+:} false; then :
6639   $as_echo_n "(cached) " >&6
6640 else
6641   if test -n "$RANLIB"; then
6642   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6643 else
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6646 do
6647   IFS=$as_save_IFS
6648   test -z "$as_dir" && as_dir=.
6649     for ac_exec_ext in '' $ac_executable_extensions; do
6650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6651     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653     break 2
6654   fi
6655 done
6656   done
6657 IFS=$as_save_IFS
6658
6659 fi
6660 fi
6661 RANLIB=$ac_cv_prog_RANLIB
6662 if test -n "$RANLIB"; then
6663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6664 $as_echo "$RANLIB" >&6; }
6665 else
6666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 $as_echo "no" >&6; }
6668 fi
6669
6670
6671 fi
6672 if test -z "$ac_cv_prog_RANLIB"; then
6673   ac_ct_RANLIB=$RANLIB
6674   # Extract the first word of "ranlib", so it can be a program name with args.
6675 set dummy ranlib; ac_word=$2
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677 $as_echo_n "checking for $ac_word... " >&6; }
6678 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6679   $as_echo_n "(cached) " >&6
6680 else
6681   if test -n "$ac_ct_RANLIB"; then
6682   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6683 else
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH
6686 do
6687   IFS=$as_save_IFS
6688   test -z "$as_dir" && as_dir=.
6689     for ac_exec_ext in '' $ac_executable_extensions; do
6690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6691     ac_cv_prog_ac_ct_RANLIB="ranlib"
6692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6693     break 2
6694   fi
6695 done
6696   done
6697 IFS=$as_save_IFS
6698
6699 fi
6700 fi
6701 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6702 if test -n "$ac_ct_RANLIB"; then
6703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6704 $as_echo "$ac_ct_RANLIB" >&6; }
6705 else
6706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707 $as_echo "no" >&6; }
6708 fi
6709
6710   if test "x$ac_ct_RANLIB" = x; then
6711     RANLIB=":"
6712   else
6713     case $cross_compiling:$ac_tool_warned in
6714 yes:)
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6717 ac_tool_warned=yes ;;
6718 esac
6719     RANLIB=$ac_ct_RANLIB
6720   fi
6721 else
6722   RANLIB="$ac_cv_prog_RANLIB"
6723 fi
6724
6725 test -z "$RANLIB" && RANLIB=:
6726
6727
6728
6729
6730
6731
6732 # Determine commands to create old-style static archives.
6733 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6734 old_postinstall_cmds='chmod 644 $oldlib'
6735 old_postuninstall_cmds=
6736
6737 if test -n "$RANLIB"; then
6738   case $host_os in
6739   openbsd*)
6740     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6741     ;;
6742   *)
6743     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6744     ;;
6745   esac
6746   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6747 fi
6748
6749 case $host_os in
6750   darwin*)
6751     lock_old_archive_extraction=yes ;;
6752   *)
6753     lock_old_archive_extraction=no ;;
6754 esac
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794 # If no C compiler was specified, use CC.
6795 LTCC=${LTCC-"$CC"}
6796
6797 # If no C compiler flags were specified, use CFLAGS.
6798 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6799
6800 # Allow CC to be a program name with arguments.
6801 compiler=$CC
6802
6803
6804 # Check for command to grab the raw symbol name followed by C symbol from nm.
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6806 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6807 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6808   $as_echo_n "(cached) " >&6
6809 else
6810
6811 # These are sane defaults that work on at least a few old systems.
6812 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6813
6814 # Character class describing NM global symbol codes.
6815 symcode='[BCDEGRST]'
6816
6817 # Regexp to match symbols that can be accessed directly from C.
6818 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6819
6820 # Define system-specific variables.
6821 case $host_os in
6822 aix*)
6823   symcode='[BCDT]'
6824   ;;
6825 cygwin* | mingw* | pw32* | cegcc*)
6826   symcode='[ABCDGISTW]'
6827   ;;
6828 hpux*)
6829   if test "$host_cpu" = ia64; then
6830     symcode='[ABCDEGRST]'
6831   fi
6832   ;;
6833 irix* | nonstopux*)
6834   symcode='[BCDEGRST]'
6835   ;;
6836 osf*)
6837   symcode='[BCDEGQRST]'
6838   ;;
6839 solaris*)
6840   symcode='[BDRT]'
6841   ;;
6842 sco3.2v5*)
6843   symcode='[DT]'
6844   ;;
6845 sysv4.2uw2*)
6846   symcode='[DT]'
6847   ;;
6848 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6849   symcode='[ABDT]'
6850   ;;
6851 sysv4)
6852   symcode='[DFNSTU]'
6853   ;;
6854 esac
6855
6856 # If we're using GNU nm, then use its standard symbol codes.
6857 case `$NM -V 2>&1` in
6858 *GNU* | *'with BFD'*)
6859   symcode='[ABCDGIRSTW]' ;;
6860 esac
6861
6862 # Transform an extracted symbol line into a proper C declaration.
6863 # Some systems (esp. on ia64) link data and code symbols differently,
6864 # so use this general approach.
6865 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6866
6867 # Transform an extracted symbol line into symbol name and symbol address
6868 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6869 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'"
6870
6871 # Handle CRLF in mingw tool chain
6872 opt_cr=
6873 case $build_os in
6874 mingw*)
6875   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6876   ;;
6877 esac
6878
6879 # Try without a prefix underscore, then with it.
6880 for ac_symprfx in "" "_"; do
6881
6882   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6883   symxfrm="\\1 $ac_symprfx\\2 \\2"
6884
6885   # Write the raw and C identifiers.
6886   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6887     # Fake it for dumpbin and say T for any non-static function
6888     # and D for any global variable.
6889     # Also find C++ and __fastcall symbols from MSVC++,
6890     # which start with @ or ?.
6891     lt_cv_sys_global_symbol_pipe="$AWK '"\
6892 "     {last_section=section; section=\$ 3};"\
6893 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6894 "     \$ 0!~/External *\|/{next};"\
6895 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6896 "     {if(hide[section]) next};"\
6897 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6898 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6899 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6900 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6901 "     ' prfx=^$ac_symprfx"
6902   else
6903     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6904   fi
6905
6906   # Check to see that the pipe works correctly.
6907   pipe_works=no
6908
6909   rm -f conftest*
6910   cat > conftest.$ac_ext <<_LT_EOF
6911 #ifdef __cplusplus
6912 extern "C" {
6913 #endif
6914 char nm_test_var;
6915 void nm_test_func(void);
6916 void nm_test_func(void){}
6917 #ifdef __cplusplus
6918 }
6919 #endif
6920 int main(){nm_test_var='a';nm_test_func();return(0);}
6921 _LT_EOF
6922
6923   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6924   (eval $ac_compile) 2>&5
6925   ac_status=$?
6926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6927   test $ac_status = 0; }; then
6928     # Now try to grab the symbols.
6929     nlist=conftest.nm
6930     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6931   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6932   ac_status=$?
6933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6934   test $ac_status = 0; } && test -s "$nlist"; then
6935       # Try sorting and uniquifying the output.
6936       if sort "$nlist" | uniq > "$nlist"T; then
6937         mv -f "$nlist"T "$nlist"
6938       else
6939         rm -f "$nlist"T
6940       fi
6941
6942       # Make sure that we snagged all the symbols we need.
6943       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6944         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6945           cat <<_LT_EOF > conftest.$ac_ext
6946 #ifdef __cplusplus
6947 extern "C" {
6948 #endif
6949
6950 _LT_EOF
6951           # Now generate the symbol file.
6952           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6953
6954           cat <<_LT_EOF >> conftest.$ac_ext
6955
6956 /* The mapping between symbol names and symbols.  */
6957 const struct {
6958   const char *name;
6959   void       *address;
6960 }
6961 lt__PROGRAM__LTX_preloaded_symbols[] =
6962 {
6963   { "@PROGRAM@", (void *) 0 },
6964 _LT_EOF
6965           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6966           cat <<\_LT_EOF >> conftest.$ac_ext
6967   {0, (void *) 0}
6968 };
6969
6970 /* This works around a problem in FreeBSD linker */
6971 #ifdef FREEBSD_WORKAROUND
6972 static const void *lt_preloaded_setup() {
6973   return lt__PROGRAM__LTX_preloaded_symbols;
6974 }
6975 #endif
6976
6977 #ifdef __cplusplus
6978 }
6979 #endif
6980 _LT_EOF
6981           # Now try linking the two files.
6982           mv conftest.$ac_objext conftstm.$ac_objext
6983           lt_save_LIBS="$LIBS"
6984           lt_save_CFLAGS="$CFLAGS"
6985           LIBS="conftstm.$ac_objext"
6986           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6987           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6988   (eval $ac_link) 2>&5
6989   ac_status=$?
6990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6991   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6992             pipe_works=yes
6993           fi
6994           LIBS="$lt_save_LIBS"
6995           CFLAGS="$lt_save_CFLAGS"
6996         else
6997           echo "cannot find nm_test_func in $nlist" >&5
6998         fi
6999       else
7000         echo "cannot find nm_test_var in $nlist" >&5
7001       fi
7002     else
7003       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7004     fi
7005   else
7006     echo "$progname: failed program was:" >&5
7007     cat conftest.$ac_ext >&5
7008   fi
7009   rm -rf conftest* conftst*
7010
7011   # Do not use the global_symbol_pipe unless it works.
7012   if test "$pipe_works" = yes; then
7013     break
7014   else
7015     lt_cv_sys_global_symbol_pipe=
7016   fi
7017 done
7018
7019 fi
7020
7021 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7022   lt_cv_sys_global_symbol_to_cdecl=
7023 fi
7024 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7026 $as_echo "failed" >&6; }
7027 else
7028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7029 $as_echo "ok" >&6; }
7030 fi
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053 # Check whether --enable-libtool-lock was given.
7054 if test "${enable_libtool_lock+set}" = set; then :
7055   enableval=$enable_libtool_lock;
7056 fi
7057
7058 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7059
7060 # Some flags need to be propagated to the compiler or linker for good
7061 # libtool support.
7062 case $host in
7063 ia64-*-hpux*)
7064   # Find out which ABI we are using.
7065   echo 'int i;' > conftest.$ac_ext
7066   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7067   (eval $ac_compile) 2>&5
7068   ac_status=$?
7069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7070   test $ac_status = 0; }; then
7071     case `/usr/bin/file conftest.$ac_objext` in
7072       *ELF-32*)
7073         HPUX_IA64_MODE="32"
7074         ;;
7075       *ELF-64*)
7076         HPUX_IA64_MODE="64"
7077         ;;
7078     esac
7079   fi
7080   rm -rf conftest*
7081   ;;
7082 *-*-irix6*)
7083   # Find out which ABI we are using.
7084   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7085   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7086   (eval $ac_compile) 2>&5
7087   ac_status=$?
7088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7089   test $ac_status = 0; }; then
7090     if test "$lt_cv_prog_gnu_ld" = yes; then
7091       case `/usr/bin/file conftest.$ac_objext` in
7092         *32-bit*)
7093           LD="${LD-ld} -melf32bsmip"
7094           ;;
7095         *N32*)
7096           LD="${LD-ld} -melf32bmipn32"
7097           ;;
7098         *64-bit*)
7099           LD="${LD-ld} -melf64bmip"
7100         ;;
7101       esac
7102     else
7103       case `/usr/bin/file conftest.$ac_objext` in
7104         *32-bit*)
7105           LD="${LD-ld} -32"
7106           ;;
7107         *N32*)
7108           LD="${LD-ld} -n32"
7109           ;;
7110         *64-bit*)
7111           LD="${LD-ld} -64"
7112           ;;
7113       esac
7114     fi
7115   fi
7116   rm -rf conftest*
7117   ;;
7118
7119 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7120 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7121   # Find out which ABI we are using.
7122   echo 'int i;' > conftest.$ac_ext
7123   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7124   (eval $ac_compile) 2>&5
7125   ac_status=$?
7126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7127   test $ac_status = 0; }; then
7128     case `/usr/bin/file conftest.o` in
7129       *32-bit*)
7130         case $host in
7131           x86_64-*kfreebsd*-gnu)
7132             LD="${LD-ld} -m elf_i386_fbsd"
7133             ;;
7134           x86_64-*linux*)
7135             LD="${LD-ld} -m elf_i386"
7136             ;;
7137           ppc64-*linux*|powerpc64-*linux*)
7138             LD="${LD-ld} -m elf32ppclinux"
7139             ;;
7140           s390x-*linux*)
7141             LD="${LD-ld} -m elf_s390"
7142             ;;
7143           sparc64-*linux*)
7144             LD="${LD-ld} -m elf32_sparc"
7145             ;;
7146         esac
7147         ;;
7148       *64-bit*)
7149         case $host in
7150           x86_64-*kfreebsd*-gnu)
7151             LD="${LD-ld} -m elf_x86_64_fbsd"
7152             ;;
7153           x86_64-*linux*)
7154             LD="${LD-ld} -m elf_x86_64"
7155             ;;
7156           ppc*-*linux*|powerpc*-*linux*)
7157             LD="${LD-ld} -m elf64ppc"
7158             ;;
7159           s390*-*linux*|s390*-*tpf*)
7160             LD="${LD-ld} -m elf64_s390"
7161             ;;
7162           sparc*-*linux*)
7163             LD="${LD-ld} -m elf64_sparc"
7164             ;;
7165         esac
7166         ;;
7167     esac
7168   fi
7169   rm -rf conftest*
7170   ;;
7171
7172 *-*-sco3.2v5*)
7173   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7174   SAVE_CFLAGS="$CFLAGS"
7175   CFLAGS="$CFLAGS -belf"
7176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7177 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7178 if ${lt_cv_cc_needs_belf+:} false; then :
7179   $as_echo_n "(cached) " >&6
7180 else
7181   ac_ext=c
7182 ac_cpp='$CPP $CPPFLAGS'
7183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7186
7187      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h.  */
7189
7190 int
7191 main ()
7192 {
7193
7194   ;
7195   return 0;
7196 }
7197 _ACEOF
7198 if ac_fn_c_try_link "$LINENO"; then :
7199   lt_cv_cc_needs_belf=yes
7200 else
7201   lt_cv_cc_needs_belf=no
7202 fi
7203 rm -f core conftest.err conftest.$ac_objext \
7204     conftest$ac_exeext conftest.$ac_ext
7205      ac_ext=c
7206 ac_cpp='$CPP $CPPFLAGS'
7207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7210
7211 fi
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7213 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7214   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7215     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7216     CFLAGS="$SAVE_CFLAGS"
7217   fi
7218   ;;
7219 sparc*-*solaris*)
7220   # Find out which ABI we are using.
7221   echo 'int i;' > conftest.$ac_ext
7222   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7223   (eval $ac_compile) 2>&5
7224   ac_status=$?
7225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7226   test $ac_status = 0; }; then
7227     case `/usr/bin/file conftest.o` in
7228     *64-bit*)
7229       case $lt_cv_prog_gnu_ld in
7230       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7231       *)
7232         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7233           LD="${LD-ld} -64"
7234         fi
7235         ;;
7236       esac
7237       ;;
7238     esac
7239   fi
7240   rm -rf conftest*
7241   ;;
7242 esac
7243
7244 need_locks="$enable_libtool_lock"
7245
7246
7247   case $host_os in
7248     rhapsody* | darwin*)
7249     if test -n "$ac_tool_prefix"; then
7250   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7251 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7253 $as_echo_n "checking for $ac_word... " >&6; }
7254 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7255   $as_echo_n "(cached) " >&6
7256 else
7257   if test -n "$DSYMUTIL"; then
7258   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7259 else
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 for as_dir in $PATH
7262 do
7263   IFS=$as_save_IFS
7264   test -z "$as_dir" && as_dir=.
7265     for ac_exec_ext in '' $ac_executable_extensions; do
7266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7267     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7269     break 2
7270   fi
7271 done
7272   done
7273 IFS=$as_save_IFS
7274
7275 fi
7276 fi
7277 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7278 if test -n "$DSYMUTIL"; then
7279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7280 $as_echo "$DSYMUTIL" >&6; }
7281 else
7282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 $as_echo "no" >&6; }
7284 fi
7285
7286
7287 fi
7288 if test -z "$ac_cv_prog_DSYMUTIL"; then
7289   ac_ct_DSYMUTIL=$DSYMUTIL
7290   # Extract the first word of "dsymutil", so it can be a program name with args.
7291 set dummy dsymutil; ac_word=$2
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293 $as_echo_n "checking for $ac_word... " >&6; }
7294 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7295   $as_echo_n "(cached) " >&6
7296 else
7297   if test -n "$ac_ct_DSYMUTIL"; then
7298   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7299 else
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 for as_dir in $PATH
7302 do
7303   IFS=$as_save_IFS
7304   test -z "$as_dir" && as_dir=.
7305     for ac_exec_ext in '' $ac_executable_extensions; do
7306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7309     break 2
7310   fi
7311 done
7312   done
7313 IFS=$as_save_IFS
7314
7315 fi
7316 fi
7317 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7318 if test -n "$ac_ct_DSYMUTIL"; then
7319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7320 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7321 else
7322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7324 fi
7325
7326   if test "x$ac_ct_DSYMUTIL" = x; then
7327     DSYMUTIL=":"
7328   else
7329     case $cross_compiling:$ac_tool_warned in
7330 yes:)
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7333 ac_tool_warned=yes ;;
7334 esac
7335     DSYMUTIL=$ac_ct_DSYMUTIL
7336   fi
7337 else
7338   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7339 fi
7340
7341     if test -n "$ac_tool_prefix"; then
7342   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7343 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345 $as_echo_n "checking for $ac_word... " >&6; }
7346 if ${ac_cv_prog_NMEDIT+:} false; then :
7347   $as_echo_n "(cached) " >&6
7348 else
7349   if test -n "$NMEDIT"; then
7350   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7351 else
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7354 do
7355   IFS=$as_save_IFS
7356   test -z "$as_dir" && as_dir=.
7357     for ac_exec_ext in '' $ac_executable_extensions; do
7358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7359     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361     break 2
7362   fi
7363 done
7364   done
7365 IFS=$as_save_IFS
7366
7367 fi
7368 fi
7369 NMEDIT=$ac_cv_prog_NMEDIT
7370 if test -n "$NMEDIT"; then
7371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7372 $as_echo "$NMEDIT" >&6; }
7373 else
7374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7376 fi
7377
7378
7379 fi
7380 if test -z "$ac_cv_prog_NMEDIT"; then
7381   ac_ct_NMEDIT=$NMEDIT
7382   # Extract the first word of "nmedit", so it can be a program name with args.
7383 set dummy nmedit; ac_word=$2
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385 $as_echo_n "checking for $ac_word... " >&6; }
7386 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7387   $as_echo_n "(cached) " >&6
7388 else
7389   if test -n "$ac_ct_NMEDIT"; then
7390   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7391 else
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 for as_dir in $PATH
7394 do
7395   IFS=$as_save_IFS
7396   test -z "$as_dir" && as_dir=.
7397     for ac_exec_ext in '' $ac_executable_extensions; do
7398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7399     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7401     break 2
7402   fi
7403 done
7404   done
7405 IFS=$as_save_IFS
7406
7407 fi
7408 fi
7409 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7410 if test -n "$ac_ct_NMEDIT"; then
7411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7412 $as_echo "$ac_ct_NMEDIT" >&6; }
7413 else
7414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7416 fi
7417
7418   if test "x$ac_ct_NMEDIT" = x; then
7419     NMEDIT=":"
7420   else
7421     case $cross_compiling:$ac_tool_warned in
7422 yes:)
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7425 ac_tool_warned=yes ;;
7426 esac
7427     NMEDIT=$ac_ct_NMEDIT
7428   fi
7429 else
7430   NMEDIT="$ac_cv_prog_NMEDIT"
7431 fi
7432
7433     if test -n "$ac_tool_prefix"; then
7434   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7435 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if ${ac_cv_prog_LIPO+:} false; then :
7439   $as_echo_n "(cached) " >&6
7440 else
7441   if test -n "$LIPO"; then
7442   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7443 else
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447   IFS=$as_save_IFS
7448   test -z "$as_dir" && as_dir=.
7449     for ac_exec_ext in '' $ac_executable_extensions; do
7450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7451     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453     break 2
7454   fi
7455 done
7456   done
7457 IFS=$as_save_IFS
7458
7459 fi
7460 fi
7461 LIPO=$ac_cv_prog_LIPO
7462 if test -n "$LIPO"; then
7463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7464 $as_echo "$LIPO" >&6; }
7465 else
7466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7468 fi
7469
7470
7471 fi
7472 if test -z "$ac_cv_prog_LIPO"; then
7473   ac_ct_LIPO=$LIPO
7474   # Extract the first word of "lipo", so it can be a program name with args.
7475 set dummy lipo; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7479   $as_echo_n "(cached) " >&6
7480 else
7481   if test -n "$ac_ct_LIPO"; then
7482   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7483 else
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 for as_dir in $PATH
7486 do
7487   IFS=$as_save_IFS
7488   test -z "$as_dir" && as_dir=.
7489     for ac_exec_ext in '' $ac_executable_extensions; do
7490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7491     ac_cv_prog_ac_ct_LIPO="lipo"
7492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493     break 2
7494   fi
7495 done
7496   done
7497 IFS=$as_save_IFS
7498
7499 fi
7500 fi
7501 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7502 if test -n "$ac_ct_LIPO"; then
7503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7504 $as_echo "$ac_ct_LIPO" >&6; }
7505 else
7506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7508 fi
7509
7510   if test "x$ac_ct_LIPO" = x; then
7511     LIPO=":"
7512   else
7513     case $cross_compiling:$ac_tool_warned in
7514 yes:)
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7517 ac_tool_warned=yes ;;
7518 esac
7519     LIPO=$ac_ct_LIPO
7520   fi
7521 else
7522   LIPO="$ac_cv_prog_LIPO"
7523 fi
7524
7525     if test -n "$ac_tool_prefix"; then
7526   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7527 set dummy ${ac_tool_prefix}otool; ac_word=$2
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529 $as_echo_n "checking for $ac_word... " >&6; }
7530 if ${ac_cv_prog_OTOOL+:} false; then :
7531   $as_echo_n "(cached) " >&6
7532 else
7533   if test -n "$OTOOL"; then
7534   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7535 else
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 for as_dir in $PATH
7538 do
7539   IFS=$as_save_IFS
7540   test -z "$as_dir" && as_dir=.
7541     for ac_exec_ext in '' $ac_executable_extensions; do
7542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7543     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7545     break 2
7546   fi
7547 done
7548   done
7549 IFS=$as_save_IFS
7550
7551 fi
7552 fi
7553 OTOOL=$ac_cv_prog_OTOOL
7554 if test -n "$OTOOL"; then
7555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7556 $as_echo "$OTOOL" >&6; }
7557 else
7558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559 $as_echo "no" >&6; }
7560 fi
7561
7562
7563 fi
7564 if test -z "$ac_cv_prog_OTOOL"; then
7565   ac_ct_OTOOL=$OTOOL
7566   # Extract the first word of "otool", so it can be a program name with args.
7567 set dummy otool; ac_word=$2
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569 $as_echo_n "checking for $ac_word... " >&6; }
7570 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7571   $as_echo_n "(cached) " >&6
7572 else
7573   if test -n "$ac_ct_OTOOL"; then
7574   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7575 else
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 for as_dir in $PATH
7578 do
7579   IFS=$as_save_IFS
7580   test -z "$as_dir" && as_dir=.
7581     for ac_exec_ext in '' $ac_executable_extensions; do
7582   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7583     ac_cv_prog_ac_ct_OTOOL="otool"
7584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7585     break 2
7586   fi
7587 done
7588   done
7589 IFS=$as_save_IFS
7590
7591 fi
7592 fi
7593 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7594 if test -n "$ac_ct_OTOOL"; then
7595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7596 $as_echo "$ac_ct_OTOOL" >&6; }
7597 else
7598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599 $as_echo "no" >&6; }
7600 fi
7601
7602   if test "x$ac_ct_OTOOL" = x; then
7603     OTOOL=":"
7604   else
7605     case $cross_compiling:$ac_tool_warned in
7606 yes:)
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7609 ac_tool_warned=yes ;;
7610 esac
7611     OTOOL=$ac_ct_OTOOL
7612   fi
7613 else
7614   OTOOL="$ac_cv_prog_OTOOL"
7615 fi
7616
7617     if test -n "$ac_tool_prefix"; then
7618   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7619 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621 $as_echo_n "checking for $ac_word... " >&6; }
7622 if ${ac_cv_prog_OTOOL64+:} false; then :
7623   $as_echo_n "(cached) " >&6
7624 else
7625   if test -n "$OTOOL64"; then
7626   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7627 else
7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629 for as_dir in $PATH
7630 do
7631   IFS=$as_save_IFS
7632   test -z "$as_dir" && as_dir=.
7633     for ac_exec_ext in '' $ac_executable_extensions; do
7634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7635     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637     break 2
7638   fi
7639 done
7640   done
7641 IFS=$as_save_IFS
7642
7643 fi
7644 fi
7645 OTOOL64=$ac_cv_prog_OTOOL64
7646 if test -n "$OTOOL64"; then
7647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7648 $as_echo "$OTOOL64" >&6; }
7649 else
7650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651 $as_echo "no" >&6; }
7652 fi
7653
7654
7655 fi
7656 if test -z "$ac_cv_prog_OTOOL64"; then
7657   ac_ct_OTOOL64=$OTOOL64
7658   # Extract the first word of "otool64", so it can be a program name with args.
7659 set dummy otool64; ac_word=$2
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7663   $as_echo_n "(cached) " >&6
7664 else
7665   if test -n "$ac_ct_OTOOL64"; then
7666   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7667 else
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7670 do
7671   IFS=$as_save_IFS
7672   test -z "$as_dir" && as_dir=.
7673     for ac_exec_ext in '' $ac_executable_extensions; do
7674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7675     ac_cv_prog_ac_ct_OTOOL64="otool64"
7676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677     break 2
7678   fi
7679 done
7680   done
7681 IFS=$as_save_IFS
7682
7683 fi
7684 fi
7685 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7686 if test -n "$ac_ct_OTOOL64"; then
7687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7688 $as_echo "$ac_ct_OTOOL64" >&6; }
7689 else
7690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7692 fi
7693
7694   if test "x$ac_ct_OTOOL64" = x; then
7695     OTOOL64=":"
7696   else
7697     case $cross_compiling:$ac_tool_warned in
7698 yes:)
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7701 ac_tool_warned=yes ;;
7702 esac
7703     OTOOL64=$ac_ct_OTOOL64
7704   fi
7705 else
7706   OTOOL64="$ac_cv_prog_OTOOL64"
7707 fi
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7736 $as_echo_n "checking for -single_module linker flag... " >&6; }
7737 if ${lt_cv_apple_cc_single_mod+:} false; then :
7738   $as_echo_n "(cached) " >&6
7739 else
7740   lt_cv_apple_cc_single_mod=no
7741       if test -z "${LT_MULTI_MODULE}"; then
7742         # By default we will add the -single_module flag. You can override
7743         # by either setting the environment variable LT_MULTI_MODULE
7744         # non-empty at configure time, or by adding -multi_module to the
7745         # link flags.
7746         rm -rf libconftest.dylib*
7747         echo "int foo(void){return 1;}" > conftest.c
7748         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7749 -dynamiclib -Wl,-single_module conftest.c" >&5
7750         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7751           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7752         _lt_result=$?
7753         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7754           lt_cv_apple_cc_single_mod=yes
7755         else
7756           cat conftest.err >&5
7757         fi
7758         rm -rf libconftest.dylib*
7759         rm -f conftest.*
7760       fi
7761 fi
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7763 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7765 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7766 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7767   $as_echo_n "(cached) " >&6
7768 else
7769   lt_cv_ld_exported_symbols_list=no
7770       save_LDFLAGS=$LDFLAGS
7771       echo "_main" > conftest.sym
7772       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7773       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h.  */
7775
7776 int
7777 main ()
7778 {
7779
7780   ;
7781   return 0;
7782 }
7783 _ACEOF
7784 if ac_fn_c_try_link "$LINENO"; then :
7785   lt_cv_ld_exported_symbols_list=yes
7786 else
7787   lt_cv_ld_exported_symbols_list=no
7788 fi
7789 rm -f core conftest.err conftest.$ac_objext \
7790     conftest$ac_exeext conftest.$ac_ext
7791         LDFLAGS="$save_LDFLAGS"
7792
7793 fi
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7795 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7796     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7797 $as_echo_n "checking for -force_load linker flag... " >&6; }
7798 if ${lt_cv_ld_force_load+:} false; then :
7799   $as_echo_n "(cached) " >&6
7800 else
7801   lt_cv_ld_force_load=no
7802       cat > conftest.c << _LT_EOF
7803 int forced_loaded() { return 2;}
7804 _LT_EOF
7805       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7806       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7807       echo "$AR cru libconftest.a conftest.o" >&5
7808       $AR cru libconftest.a conftest.o 2>&5
7809       echo "$RANLIB libconftest.a" >&5
7810       $RANLIB libconftest.a 2>&5
7811       cat > conftest.c << _LT_EOF
7812 int main() { return 0;}
7813 _LT_EOF
7814       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7815       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7816       _lt_result=$?
7817       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7818         lt_cv_ld_force_load=yes
7819       else
7820         cat conftest.err >&5
7821       fi
7822         rm -f conftest.err libconftest.a conftest conftest.c
7823         rm -rf conftest.dSYM
7824
7825 fi
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7827 $as_echo "$lt_cv_ld_force_load" >&6; }
7828     case $host_os in
7829     rhapsody* | darwin1.[012])
7830       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7831     darwin1.*)
7832       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7833     darwin*) # darwin 5.x on
7834       # if running on 10.5 or later, the deployment target defaults
7835       # to the OS version, if on x86, and 10.4, the deployment
7836       # target defaults to 10.4. Don't you love it?
7837       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7838         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7839           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7840         10.[012]*)
7841           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7842         10.*)
7843           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7844       esac
7845     ;;
7846   esac
7847     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7848       _lt_dar_single_mod='$single_module'
7849     fi
7850     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7851       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7852     else
7853       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7854     fi
7855     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7856       _lt_dsymutil='~$DSYMUTIL $lib || :'
7857     else
7858       _lt_dsymutil=
7859     fi
7860     ;;
7861   esac
7862
7863 for ac_header in dlfcn.h
7864 do :
7865   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7866 "
7867 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7868   cat >>confdefs.h <<_ACEOF
7869 #define HAVE_DLFCN_H 1
7870 _ACEOF
7871
7872 fi
7873
7874 done
7875
7876
7877
7878
7879
7880 # Set options
7881 enable_dlopen=yes
7882 enable_win32_dll=yes
7883
7884 case $host in
7885 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7886   if test -n "$ac_tool_prefix"; then
7887   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7888 set dummy ${ac_tool_prefix}as; ac_word=$2
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890 $as_echo_n "checking for $ac_word... " >&6; }
7891 if ${ac_cv_prog_AS+:} false; then :
7892   $as_echo_n "(cached) " >&6
7893 else
7894   if test -n "$AS"; then
7895   ac_cv_prog_AS="$AS" # Let the user override the test.
7896 else
7897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898 for as_dir in $PATH
7899 do
7900   IFS=$as_save_IFS
7901   test -z "$as_dir" && as_dir=.
7902     for ac_exec_ext in '' $ac_executable_extensions; do
7903   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7904     ac_cv_prog_AS="${ac_tool_prefix}as"
7905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906     break 2
7907   fi
7908 done
7909   done
7910 IFS=$as_save_IFS
7911
7912 fi
7913 fi
7914 AS=$ac_cv_prog_AS
7915 if test -n "$AS"; then
7916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7917 $as_echo "$AS" >&6; }
7918 else
7919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7921 fi
7922
7923
7924 fi
7925 if test -z "$ac_cv_prog_AS"; then
7926   ac_ct_AS=$AS
7927   # Extract the first word of "as", so it can be a program name with args.
7928 set dummy as; ac_word=$2
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7930 $as_echo_n "checking for $ac_word... " >&6; }
7931 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7932   $as_echo_n "(cached) " >&6
7933 else
7934   if test -n "$ac_ct_AS"; then
7935   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7936 else
7937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938 for as_dir in $PATH
7939 do
7940   IFS=$as_save_IFS
7941   test -z "$as_dir" && as_dir=.
7942     for ac_exec_ext in '' $ac_executable_extensions; do
7943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7944     ac_cv_prog_ac_ct_AS="as"
7945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7946     break 2
7947   fi
7948 done
7949   done
7950 IFS=$as_save_IFS
7951
7952 fi
7953 fi
7954 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7955 if test -n "$ac_ct_AS"; then
7956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7957 $as_echo "$ac_ct_AS" >&6; }
7958 else
7959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 $as_echo "no" >&6; }
7961 fi
7962
7963   if test "x$ac_ct_AS" = x; then
7964     AS="false"
7965   else
7966     case $cross_compiling:$ac_tool_warned in
7967 yes:)
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7970 ac_tool_warned=yes ;;
7971 esac
7972     AS=$ac_ct_AS
7973   fi
7974 else
7975   AS="$ac_cv_prog_AS"
7976 fi
7977
7978   if test -n "$ac_tool_prefix"; then
7979   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7980 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982 $as_echo_n "checking for $ac_word... " >&6; }
7983 if ${ac_cv_prog_DLLTOOL+:} false; then :
7984   $as_echo_n "(cached) " >&6
7985 else
7986   if test -n "$DLLTOOL"; then
7987   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7988 else
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990 for as_dir in $PATH
7991 do
7992   IFS=$as_save_IFS
7993   test -z "$as_dir" && as_dir=.
7994     for ac_exec_ext in '' $ac_executable_extensions; do
7995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7996     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7998     break 2
7999   fi
8000 done
8001   done
8002 IFS=$as_save_IFS
8003
8004 fi
8005 fi
8006 DLLTOOL=$ac_cv_prog_DLLTOOL
8007 if test -n "$DLLTOOL"; then
8008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8009 $as_echo "$DLLTOOL" >&6; }
8010 else
8011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 $as_echo "no" >&6; }
8013 fi
8014
8015
8016 fi
8017 if test -z "$ac_cv_prog_DLLTOOL"; then
8018   ac_ct_DLLTOOL=$DLLTOOL
8019   # Extract the first word of "dlltool", so it can be a program name with args.
8020 set dummy dlltool; ac_word=$2
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8022 $as_echo_n "checking for $ac_word... " >&6; }
8023 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8024   $as_echo_n "(cached) " >&6
8025 else
8026   if test -n "$ac_ct_DLLTOOL"; then
8027   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8028 else
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH
8031 do
8032   IFS=$as_save_IFS
8033   test -z "$as_dir" && as_dir=.
8034     for ac_exec_ext in '' $ac_executable_extensions; do
8035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8036     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8038     break 2
8039   fi
8040 done
8041   done
8042 IFS=$as_save_IFS
8043
8044 fi
8045 fi
8046 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8047 if test -n "$ac_ct_DLLTOOL"; then
8048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8049 $as_echo "$ac_ct_DLLTOOL" >&6; }
8050 else
8051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8053 fi
8054
8055   if test "x$ac_ct_DLLTOOL" = x; then
8056     DLLTOOL="false"
8057   else
8058     case $cross_compiling:$ac_tool_warned in
8059 yes:)
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8062 ac_tool_warned=yes ;;
8063 esac
8064     DLLTOOL=$ac_ct_DLLTOOL
8065   fi
8066 else
8067   DLLTOOL="$ac_cv_prog_DLLTOOL"
8068 fi
8069
8070   if test -n "$ac_tool_prefix"; then
8071   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8072 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8074 $as_echo_n "checking for $ac_word... " >&6; }
8075 if ${ac_cv_prog_OBJDUMP+:} false; then :
8076   $as_echo_n "(cached) " >&6
8077 else
8078   if test -n "$OBJDUMP"; then
8079   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8080 else
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 for as_dir in $PATH
8083 do
8084   IFS=$as_save_IFS
8085   test -z "$as_dir" && as_dir=.
8086     for ac_exec_ext in '' $ac_executable_extensions; do
8087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8088     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090     break 2
8091   fi
8092 done
8093   done
8094 IFS=$as_save_IFS
8095
8096 fi
8097 fi
8098 OBJDUMP=$ac_cv_prog_OBJDUMP
8099 if test -n "$OBJDUMP"; then
8100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8101 $as_echo "$OBJDUMP" >&6; }
8102 else
8103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8105 fi
8106
8107
8108 fi
8109 if test -z "$ac_cv_prog_OBJDUMP"; then
8110   ac_ct_OBJDUMP=$OBJDUMP
8111   # Extract the first word of "objdump", so it can be a program name with args.
8112 set dummy objdump; ac_word=$2
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 $as_echo_n "checking for $ac_word... " >&6; }
8115 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8116   $as_echo_n "(cached) " >&6
8117 else
8118   if test -n "$ac_ct_OBJDUMP"; then
8119   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8120 else
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8123 do
8124   IFS=$as_save_IFS
8125   test -z "$as_dir" && as_dir=.
8126     for ac_exec_ext in '' $ac_executable_extensions; do
8127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8128     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130     break 2
8131   fi
8132 done
8133   done
8134 IFS=$as_save_IFS
8135
8136 fi
8137 fi
8138 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8139 if test -n "$ac_ct_OBJDUMP"; then
8140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8141 $as_echo "$ac_ct_OBJDUMP" >&6; }
8142 else
8143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8145 fi
8146
8147   if test "x$ac_ct_OBJDUMP" = x; then
8148     OBJDUMP="false"
8149   else
8150     case $cross_compiling:$ac_tool_warned in
8151 yes:)
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8154 ac_tool_warned=yes ;;
8155 esac
8156     OBJDUMP=$ac_ct_OBJDUMP
8157   fi
8158 else
8159   OBJDUMP="$ac_cv_prog_OBJDUMP"
8160 fi
8161
8162   ;;
8163 esac
8164
8165 test -z "$AS" && AS=as
8166
8167
8168
8169
8170
8171 test -z "$DLLTOOL" && DLLTOOL=dlltool
8172
8173
8174
8175
8176
8177 test -z "$OBJDUMP" && OBJDUMP=objdump
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187             # Check whether --enable-shared was given.
8188 if test "${enable_shared+set}" = set; then :
8189   enableval=$enable_shared; p=${PACKAGE-default}
8190     case $enableval in
8191     yes) enable_shared=yes ;;
8192     no) enable_shared=no ;;
8193     *)
8194       enable_shared=no
8195       # Look at the argument we got.  We use all the common list separators.
8196       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8197       for pkg in $enableval; do
8198         IFS="$lt_save_ifs"
8199         if test "X$pkg" = "X$p"; then
8200           enable_shared=yes
8201         fi
8202       done
8203       IFS="$lt_save_ifs"
8204       ;;
8205     esac
8206 else
8207   enable_shared=yes
8208 fi
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218   # Check whether --enable-static was given.
8219 if test "${enable_static+set}" = set; then :
8220   enableval=$enable_static; p=${PACKAGE-default}
8221     case $enableval in
8222     yes) enable_static=yes ;;
8223     no) enable_static=no ;;
8224     *)
8225      enable_static=no
8226       # Look at the argument we got.  We use all the common list separators.
8227       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8228       for pkg in $enableval; do
8229         IFS="$lt_save_ifs"
8230         if test "X$pkg" = "X$p"; then
8231           enable_static=yes
8232         fi
8233       done
8234       IFS="$lt_save_ifs"
8235       ;;
8236     esac
8237 else
8238   enable_static=yes
8239 fi
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250 # Check whether --with-pic was given.
8251 if test "${with_pic+set}" = set; then :
8252   withval=$with_pic; pic_mode="$withval"
8253 else
8254   pic_mode=default
8255 fi
8256
8257
8258 test -z "$pic_mode" && pic_mode=default
8259
8260
8261
8262
8263
8264
8265
8266   # Check whether --enable-fast-install was given.
8267 if test "${enable_fast_install+set}" = set; then :
8268   enableval=$enable_fast_install; p=${PACKAGE-default}
8269     case $enableval in
8270     yes) enable_fast_install=yes ;;
8271     no) enable_fast_install=no ;;
8272     *)
8273       enable_fast_install=no
8274       # Look at the argument we got.  We use all the common list separators.
8275       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8276       for pkg in $enableval; do
8277         IFS="$lt_save_ifs"
8278         if test "X$pkg" = "X$p"; then
8279           enable_fast_install=yes
8280         fi
8281       done
8282       IFS="$lt_save_ifs"
8283       ;;
8284     esac
8285 else
8286   enable_fast_install=yes
8287 fi
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299 # This can be used to rebuild libtool when needed
8300 LIBTOOL_DEPS="$ltmain"
8301
8302 # Always use our own libtool.
8303 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330 test -z "$LN_S" && LN_S="ln -s"
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345 if test -n "${ZSH_VERSION+set}" ; then
8346    setopt NO_GLOB_SUBST
8347 fi
8348
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8350 $as_echo_n "checking for objdir... " >&6; }
8351 if ${lt_cv_objdir+:} false; then :
8352   $as_echo_n "(cached) " >&6
8353 else
8354   rm -f .libs 2>/dev/null
8355 mkdir .libs 2>/dev/null
8356 if test -d .libs; then
8357   lt_cv_objdir=.libs
8358 else
8359   # MS-DOS does not allow filenames that begin with a dot.
8360   lt_cv_objdir=_libs
8361 fi
8362 rmdir .libs 2>/dev/null
8363 fi
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8365 $as_echo "$lt_cv_objdir" >&6; }
8366 objdir=$lt_cv_objdir
8367
8368
8369
8370
8371
8372 cat >>confdefs.h <<_ACEOF
8373 #define LT_OBJDIR "$lt_cv_objdir/"
8374 _ACEOF
8375
8376
8377
8378
8379 case $host_os in
8380 aix3*)
8381   # AIX sometimes has problems with the GCC collect2 program.  For some
8382   # reason, if we set the COLLECT_NAMES environment variable, the problems
8383   # vanish in a puff of smoke.
8384   if test "X${COLLECT_NAMES+set}" != Xset; then
8385     COLLECT_NAMES=
8386     export COLLECT_NAMES
8387   fi
8388   ;;
8389 esac
8390
8391 # Global variables:
8392 ofile=libtool
8393 can_build_shared=yes
8394
8395 # All known linkers require a `.a' archive for static linking (except MSVC,
8396 # which needs '.lib').
8397 libext=a
8398
8399 with_gnu_ld="$lt_cv_prog_gnu_ld"
8400
8401 old_CC="$CC"
8402 old_CFLAGS="$CFLAGS"
8403
8404 # Set sane defaults for various variables
8405 test -z "$CC" && CC=cc
8406 test -z "$LTCC" && LTCC=$CC
8407 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8408 test -z "$LD" && LD=ld
8409 test -z "$ac_objext" && ac_objext=o
8410
8411 for cc_temp in $compiler""; do
8412   case $cc_temp in
8413     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8414     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8415     \-*) ;;
8416     *) break;;
8417   esac
8418 done
8419 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8420
8421
8422 # Only perform the check for file, if the check method requires it
8423 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8424 case $deplibs_check_method in
8425 file_magic*)
8426   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8428 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8429 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8430   $as_echo_n "(cached) " >&6
8431 else
8432   case $MAGIC_CMD in
8433 [\\/*] |  ?:[\\/]*)
8434   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8435   ;;
8436 *)
8437   lt_save_MAGIC_CMD="$MAGIC_CMD"
8438   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8439   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8440   for ac_dir in $ac_dummy; do
8441     IFS="$lt_save_ifs"
8442     test -z "$ac_dir" && ac_dir=.
8443     if test -f $ac_dir/${ac_tool_prefix}file; then
8444       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8445       if test -n "$file_magic_test_file"; then
8446         case $deplibs_check_method in
8447         "file_magic "*)
8448           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8449           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8450           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8451             $EGREP "$file_magic_regex" > /dev/null; then
8452             :
8453           else
8454             cat <<_LT_EOF 1>&2
8455
8456 *** Warning: the command libtool uses to detect shared libraries,
8457 *** $file_magic_cmd, produces output that libtool cannot recognize.
8458 *** The result is that libtool may fail to recognize shared libraries
8459 *** as such.  This will affect the creation of libtool libraries that
8460 *** depend on shared libraries, but programs linked with such libtool
8461 *** libraries will work regardless of this problem.  Nevertheless, you
8462 *** may want to report the problem to your system manager and/or to
8463 *** bug-libtool@gnu.org
8464
8465 _LT_EOF
8466           fi ;;
8467         esac
8468       fi
8469       break
8470     fi
8471   done
8472   IFS="$lt_save_ifs"
8473   MAGIC_CMD="$lt_save_MAGIC_CMD"
8474   ;;
8475 esac
8476 fi
8477
8478 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8479 if test -n "$MAGIC_CMD"; then
8480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8481 $as_echo "$MAGIC_CMD" >&6; }
8482 else
8483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8485 fi
8486
8487
8488
8489
8490
8491 if test -z "$lt_cv_path_MAGIC_CMD"; then
8492   if test -n "$ac_tool_prefix"; then
8493     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8494 $as_echo_n "checking for file... " >&6; }
8495 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8496   $as_echo_n "(cached) " >&6
8497 else
8498   case $MAGIC_CMD in
8499 [\\/*] |  ?:[\\/]*)
8500   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8501   ;;
8502 *)
8503   lt_save_MAGIC_CMD="$MAGIC_CMD"
8504   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8505   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8506   for ac_dir in $ac_dummy; do
8507     IFS="$lt_save_ifs"
8508     test -z "$ac_dir" && ac_dir=.
8509     if test -f $ac_dir/file; then
8510       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8511       if test -n "$file_magic_test_file"; then
8512         case $deplibs_check_method in
8513         "file_magic "*)
8514           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8515           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8516           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8517             $EGREP "$file_magic_regex" > /dev/null; then
8518             :
8519           else
8520             cat <<_LT_EOF 1>&2
8521
8522 *** Warning: the command libtool uses to detect shared libraries,
8523 *** $file_magic_cmd, produces output that libtool cannot recognize.
8524 *** The result is that libtool may fail to recognize shared libraries
8525 *** as such.  This will affect the creation of libtool libraries that
8526 *** depend on shared libraries, but programs linked with such libtool
8527 *** libraries will work regardless of this problem.  Nevertheless, you
8528 *** may want to report the problem to your system manager and/or to
8529 *** bug-libtool@gnu.org
8530
8531 _LT_EOF
8532           fi ;;
8533         esac
8534       fi
8535       break
8536     fi
8537   done
8538   IFS="$lt_save_ifs"
8539   MAGIC_CMD="$lt_save_MAGIC_CMD"
8540   ;;
8541 esac
8542 fi
8543
8544 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8545 if test -n "$MAGIC_CMD"; then
8546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8547 $as_echo "$MAGIC_CMD" >&6; }
8548 else
8549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 $as_echo "no" >&6; }
8551 fi
8552
8553
8554   else
8555     MAGIC_CMD=:
8556   fi
8557 fi
8558
8559   fi
8560   ;;
8561 esac
8562
8563 # Use C for the default configuration in the libtool script
8564
8565 lt_save_CC="$CC"
8566 ac_ext=c
8567 ac_cpp='$CPP $CPPFLAGS'
8568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8571
8572
8573 # Source file extension for C test sources.
8574 ac_ext=c
8575
8576 # Object file extension for compiled C test sources.
8577 objext=o
8578 objext=$objext
8579
8580 # Code to be used in simple compile tests
8581 lt_simple_compile_test_code="int some_variable = 0;"
8582
8583 # Code to be used in simple link tests
8584 lt_simple_link_test_code='int main(){return(0);}'
8585
8586
8587
8588
8589
8590
8591
8592 # If no C compiler was specified, use CC.
8593 LTCC=${LTCC-"$CC"}
8594
8595 # If no C compiler flags were specified, use CFLAGS.
8596 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8597
8598 # Allow CC to be a program name with arguments.
8599 compiler=$CC
8600
8601 # Save the default compiler, since it gets overwritten when the other
8602 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8603 compiler_DEFAULT=$CC
8604
8605 # save warnings/boilerplate of simple test code
8606 ac_outfile=conftest.$ac_objext
8607 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8608 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8609 _lt_compiler_boilerplate=`cat conftest.err`
8610 $RM conftest*
8611
8612 ac_outfile=conftest.$ac_objext
8613 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8614 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8615 _lt_linker_boilerplate=`cat conftest.err`
8616 $RM -r conftest*
8617
8618
8619 ## CAVEAT EMPTOR:
8620 ## There is no encapsulation within the following macros, do not change
8621 ## the running order or otherwise move them around unless you know exactly
8622 ## what you are doing...
8623 if test -n "$compiler"; then
8624
8625 lt_prog_compiler_no_builtin_flag=
8626
8627 if test "$GCC" = yes; then
8628   case $cc_basename in
8629   nvcc*)
8630     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8631   *)
8632     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8633   esac
8634
8635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8636 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8637 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8638   $as_echo_n "(cached) " >&6
8639 else
8640   lt_cv_prog_compiler_rtti_exceptions=no
8641    ac_outfile=conftest.$ac_objext
8642    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8643    lt_compiler_flag="-fno-rtti -fno-exceptions"
8644    # Insert the option either (1) after the last *FLAGS variable, or
8645    # (2) before a word containing "conftest.", or (3) at the end.
8646    # Note that $ac_compile itself does not contain backslashes and begins
8647    # with a dollar sign (not a hyphen), so the echo should work correctly.
8648    # The option is referenced via a variable to avoid confusing sed.
8649    lt_compile=`echo "$ac_compile" | $SED \
8650    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8651    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8652    -e 's:$: $lt_compiler_flag:'`
8653    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8654    (eval "$lt_compile" 2>conftest.err)
8655    ac_status=$?
8656    cat conftest.err >&5
8657    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658    if (exit $ac_status) && test -s "$ac_outfile"; then
8659      # The compiler can only warn and ignore the option if not recognized
8660      # So say no if there are warnings other than the usual output.
8661      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8662      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8663      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8664        lt_cv_prog_compiler_rtti_exceptions=yes
8665      fi
8666    fi
8667    $RM conftest*
8668
8669 fi
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8671 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8672
8673 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8674     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8675 else
8676     :
8677 fi
8678
8679 fi
8680
8681
8682
8683
8684
8685
8686   lt_prog_compiler_wl=
8687 lt_prog_compiler_pic=
8688 lt_prog_compiler_static=
8689
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8691 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8692
8693   if test "$GCC" = yes; then
8694     lt_prog_compiler_wl='-Wl,'
8695     lt_prog_compiler_static='-static'
8696
8697     case $host_os in
8698       aix*)
8699       # All AIX code is PIC.
8700       if test "$host_cpu" = ia64; then
8701         # AIX 5 now supports IA64 processor
8702         lt_prog_compiler_static='-Bstatic'
8703       fi
8704       ;;
8705
8706     amigaos*)
8707       case $host_cpu in
8708       powerpc)
8709             # see comment about AmigaOS4 .so support
8710             lt_prog_compiler_pic='-fPIC'
8711         ;;
8712       m68k)
8713             # FIXME: we need at least 68020 code to build shared libraries, but
8714             # adding the `-m68020' flag to GCC prevents building anything better,
8715             # like `-m68040'.
8716             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8717         ;;
8718       esac
8719       ;;
8720
8721     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8722       # PIC is the default for these OSes.
8723       ;;
8724
8725     mingw* | cygwin* | pw32* | os2* | cegcc*)
8726       # This hack is so that the source file can tell whether it is being
8727       # built for inclusion in a dll (and should export symbols for example).
8728       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8729       # (--disable-auto-import) libraries
8730       lt_prog_compiler_pic='-DDLL_EXPORT'
8731       ;;
8732
8733     darwin* | rhapsody*)
8734       # PIC is the default on this platform
8735       # Common symbols not allowed in MH_DYLIB files
8736       lt_prog_compiler_pic='-fno-common'
8737       ;;
8738
8739     haiku*)
8740       # PIC is the default for Haiku.
8741       # The "-static" flag exists, but is broken.
8742       lt_prog_compiler_static=
8743       ;;
8744
8745     hpux*)
8746       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8747       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8748       # sets the default TLS model and affects inlining.
8749       case $host_cpu in
8750       hppa*64*)
8751         # +Z the default
8752         ;;
8753       *)
8754         lt_prog_compiler_pic='-fPIC'
8755         ;;
8756       esac
8757       ;;
8758
8759     interix[3-9]*)
8760       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8761       # Instead, we relocate shared libraries at runtime.
8762       ;;
8763
8764     msdosdjgpp*)
8765       # Just because we use GCC doesn't mean we suddenly get shared libraries
8766       # on systems that don't support them.
8767       lt_prog_compiler_can_build_shared=no
8768       enable_shared=no
8769       ;;
8770
8771     *nto* | *qnx*)
8772       # QNX uses GNU C++, but need to define -shared option too, otherwise
8773       # it will coredump.
8774       lt_prog_compiler_pic='-fPIC -shared'
8775       ;;
8776
8777     sysv4*MP*)
8778       if test -d /usr/nec; then
8779         lt_prog_compiler_pic=-Kconform_pic
8780       fi
8781       ;;
8782
8783     *)
8784       lt_prog_compiler_pic='-fPIC'
8785       ;;
8786     esac
8787
8788     case $cc_basename in
8789     nvcc*) # Cuda Compiler Driver 2.2
8790       lt_prog_compiler_wl='-Xlinker '
8791       lt_prog_compiler_pic='-Xcompiler -fPIC'
8792       ;;
8793     esac
8794   else
8795     # PORTME Check for flag to pass linker flags through the system compiler.
8796     case $host_os in
8797     aix*)
8798       lt_prog_compiler_wl='-Wl,'
8799       if test "$host_cpu" = ia64; then
8800         # AIX 5 now supports IA64 processor
8801         lt_prog_compiler_static='-Bstatic'
8802       else
8803         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8804       fi
8805       ;;
8806
8807     mingw* | cygwin* | pw32* | os2* | cegcc*)
8808       # This hack is so that the source file can tell whether it is being
8809       # built for inclusion in a dll (and should export symbols for example).
8810       lt_prog_compiler_pic='-DDLL_EXPORT'
8811       ;;
8812
8813     hpux9* | hpux10* | hpux11*)
8814       lt_prog_compiler_wl='-Wl,'
8815       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8816       # not for PA HP-UX.
8817       case $host_cpu in
8818       hppa*64*|ia64*)
8819         # +Z the default
8820         ;;
8821       *)
8822         lt_prog_compiler_pic='+Z'
8823         ;;
8824       esac
8825       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8826       lt_prog_compiler_static='${wl}-a ${wl}archive'
8827       ;;
8828
8829     irix5* | irix6* | nonstopux*)
8830       lt_prog_compiler_wl='-Wl,'
8831       # PIC (with -KPIC) is the default.
8832       lt_prog_compiler_static='-non_shared'
8833       ;;
8834
8835     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8836       case $cc_basename in
8837       # old Intel for x86_64 which still supported -KPIC.
8838       ecc*)
8839         lt_prog_compiler_wl='-Wl,'
8840         lt_prog_compiler_pic='-KPIC'
8841         lt_prog_compiler_static='-static'
8842         ;;
8843       # icc used to be incompatible with GCC.
8844       # ICC 10 doesn't accept -KPIC any more.
8845       icc* | ifort*)
8846         lt_prog_compiler_wl='-Wl,'
8847         lt_prog_compiler_pic='-fPIC'
8848         lt_prog_compiler_static='-static'
8849         ;;
8850       # Lahey Fortran 8.1.
8851       lf95*)
8852         lt_prog_compiler_wl='-Wl,'
8853         lt_prog_compiler_pic='--shared'
8854         lt_prog_compiler_static='--static'
8855         ;;
8856       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8857         # Portland Group compilers (*not* the Pentium gcc compiler,
8858         # which looks to be a dead project)
8859         lt_prog_compiler_wl='-Wl,'
8860         lt_prog_compiler_pic='-fpic'
8861         lt_prog_compiler_static='-Bstatic'
8862         ;;
8863       ccc*)
8864         lt_prog_compiler_wl='-Wl,'
8865         # All Alpha code is PIC.
8866         lt_prog_compiler_static='-non_shared'
8867         ;;
8868       xl* | bgxl* | bgf* | mpixl*)
8869         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8870         lt_prog_compiler_wl='-Wl,'
8871         lt_prog_compiler_pic='-qpic'
8872         lt_prog_compiler_static='-qstaticlink'
8873         ;;
8874       *)
8875         case `$CC -V 2>&1 | sed 5q` in
8876         *Sun\ F* | *Sun*Fortran*)
8877           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8878           lt_prog_compiler_pic='-KPIC'
8879           lt_prog_compiler_static='-Bstatic'
8880           lt_prog_compiler_wl=''
8881           ;;
8882         *Sun\ C*)
8883           # Sun C 5.9
8884           lt_prog_compiler_pic='-KPIC'
8885           lt_prog_compiler_static='-Bstatic'
8886           lt_prog_compiler_wl='-Wl,'
8887           ;;
8888         esac
8889         ;;
8890       esac
8891       ;;
8892
8893     newsos6)
8894       lt_prog_compiler_pic='-KPIC'
8895       lt_prog_compiler_static='-Bstatic'
8896       ;;
8897
8898     *nto* | *qnx*)
8899       # QNX uses GNU C++, but need to define -shared option too, otherwise
8900       # it will coredump.
8901       lt_prog_compiler_pic='-fPIC -shared'
8902       ;;
8903
8904     osf3* | osf4* | osf5*)
8905       lt_prog_compiler_wl='-Wl,'
8906       # All OSF/1 code is PIC.
8907       lt_prog_compiler_static='-non_shared'
8908       ;;
8909
8910     rdos*)
8911       lt_prog_compiler_static='-non_shared'
8912       ;;
8913
8914     solaris*)
8915       lt_prog_compiler_pic='-KPIC'
8916       lt_prog_compiler_static='-Bstatic'
8917       case $cc_basename in
8918       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8919         lt_prog_compiler_wl='-Qoption ld ';;
8920       *)
8921         lt_prog_compiler_wl='-Wl,';;
8922       esac
8923       ;;
8924
8925     sunos4*)
8926       lt_prog_compiler_wl='-Qoption ld '
8927       lt_prog_compiler_pic='-PIC'
8928       lt_prog_compiler_static='-Bstatic'
8929       ;;
8930
8931     sysv4 | sysv4.2uw2* | sysv4.3*)
8932       lt_prog_compiler_wl='-Wl,'
8933       lt_prog_compiler_pic='-KPIC'
8934       lt_prog_compiler_static='-Bstatic'
8935       ;;
8936
8937     sysv4*MP*)
8938       if test -d /usr/nec ;then
8939         lt_prog_compiler_pic='-Kconform_pic'
8940         lt_prog_compiler_static='-Bstatic'
8941       fi
8942       ;;
8943
8944     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8945       lt_prog_compiler_wl='-Wl,'
8946       lt_prog_compiler_pic='-KPIC'
8947       lt_prog_compiler_static='-Bstatic'
8948       ;;
8949
8950     unicos*)
8951       lt_prog_compiler_wl='-Wl,'
8952       lt_prog_compiler_can_build_shared=no
8953       ;;
8954
8955     uts4*)
8956       lt_prog_compiler_pic='-pic'
8957       lt_prog_compiler_static='-Bstatic'
8958       ;;
8959
8960     *)
8961       lt_prog_compiler_can_build_shared=no
8962       ;;
8963     esac
8964   fi
8965
8966 case $host_os in
8967   # For platforms which do not support PIC, -DPIC is meaningless:
8968   *djgpp*)
8969     lt_prog_compiler_pic=
8970     ;;
8971   *)
8972     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8973     ;;
8974 esac
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8976 $as_echo "$lt_prog_compiler_pic" >&6; }
8977
8978
8979
8980
8981
8982
8983 #
8984 # Check to make sure the PIC flag actually works.
8985 #
8986 if test -n "$lt_prog_compiler_pic"; then
8987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8988 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8989 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8990   $as_echo_n "(cached) " >&6
8991 else
8992   lt_cv_prog_compiler_pic_works=no
8993    ac_outfile=conftest.$ac_objext
8994    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8995    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8996    # Insert the option either (1) after the last *FLAGS variable, or
8997    # (2) before a word containing "conftest.", or (3) at the end.
8998    # Note that $ac_compile itself does not contain backslashes and begins
8999    # with a dollar sign (not a hyphen), so the echo should work correctly.
9000    # The option is referenced via a variable to avoid confusing sed.
9001    lt_compile=`echo "$ac_compile" | $SED \
9002    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9003    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9004    -e 's:$: $lt_compiler_flag:'`
9005    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9006    (eval "$lt_compile" 2>conftest.err)
9007    ac_status=$?
9008    cat conftest.err >&5
9009    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010    if (exit $ac_status) && test -s "$ac_outfile"; then
9011      # The compiler can only warn and ignore the option if not recognized
9012      # So say no if there are warnings other than the usual output.
9013      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9014      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9015      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9016        lt_cv_prog_compiler_pic_works=yes
9017      fi
9018    fi
9019    $RM conftest*
9020
9021 fi
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9023 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9024
9025 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9026     case $lt_prog_compiler_pic in
9027      "" | " "*) ;;
9028      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9029      esac
9030 else
9031     lt_prog_compiler_pic=
9032      lt_prog_compiler_can_build_shared=no
9033 fi
9034
9035 fi
9036
9037
9038
9039
9040
9041
9042 #
9043 # Check to make sure the static flag actually works.
9044 #
9045 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9047 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9048 if ${lt_cv_prog_compiler_static_works+:} false; then :
9049   $as_echo_n "(cached) " >&6
9050 else
9051   lt_cv_prog_compiler_static_works=no
9052    save_LDFLAGS="$LDFLAGS"
9053    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9054    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9055    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9056      # The linker can only warn and ignore the option if not recognized
9057      # So say no if there are warnings
9058      if test -s conftest.err; then
9059        # Append any errors to the config.log.
9060        cat conftest.err 1>&5
9061        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9062        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9063        if diff conftest.exp conftest.er2 >/dev/null; then
9064          lt_cv_prog_compiler_static_works=yes
9065        fi
9066      else
9067        lt_cv_prog_compiler_static_works=yes
9068      fi
9069    fi
9070    $RM -r conftest*
9071    LDFLAGS="$save_LDFLAGS"
9072
9073 fi
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9075 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9076
9077 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9078     :
9079 else
9080     lt_prog_compiler_static=
9081 fi
9082
9083
9084
9085
9086
9087
9088
9089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9090 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9091 if ${lt_cv_prog_compiler_c_o+:} false; then :
9092   $as_echo_n "(cached) " >&6
9093 else
9094   lt_cv_prog_compiler_c_o=no
9095    $RM -r conftest 2>/dev/null
9096    mkdir conftest
9097    cd conftest
9098    mkdir out
9099    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9100
9101    lt_compiler_flag="-o out/conftest2.$ac_objext"
9102    # Insert the option either (1) after the last *FLAGS variable, or
9103    # (2) before a word containing "conftest.", or (3) at the end.
9104    # Note that $ac_compile itself does not contain backslashes and begins
9105    # with a dollar sign (not a hyphen), so the echo should work correctly.
9106    lt_compile=`echo "$ac_compile" | $SED \
9107    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9108    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9109    -e 's:$: $lt_compiler_flag:'`
9110    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9111    (eval "$lt_compile" 2>out/conftest.err)
9112    ac_status=$?
9113    cat out/conftest.err >&5
9114    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9116    then
9117      # The compiler can only warn and ignore the option if not recognized
9118      # So say no if there are warnings
9119      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9120      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9121      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9122        lt_cv_prog_compiler_c_o=yes
9123      fi
9124    fi
9125    chmod u+w . 2>&5
9126    $RM conftest*
9127    # SGI C++ compiler will create directory out/ii_files/ for
9128    # template instantiation
9129    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9130    $RM out/* && rmdir out
9131    cd ..
9132    $RM -r conftest
9133    $RM conftest*
9134
9135 fi
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9137 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9138
9139
9140
9141
9142
9143
9144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9145 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9146 if ${lt_cv_prog_compiler_c_o+:} false; then :
9147   $as_echo_n "(cached) " >&6
9148 else
9149   lt_cv_prog_compiler_c_o=no
9150    $RM -r conftest 2>/dev/null
9151    mkdir conftest
9152    cd conftest
9153    mkdir out
9154    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9155
9156    lt_compiler_flag="-o out/conftest2.$ac_objext"
9157    # Insert the option either (1) after the last *FLAGS variable, or
9158    # (2) before a word containing "conftest.", or (3) at the end.
9159    # Note that $ac_compile itself does not contain backslashes and begins
9160    # with a dollar sign (not a hyphen), so the echo should work correctly.
9161    lt_compile=`echo "$ac_compile" | $SED \
9162    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9163    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9164    -e 's:$: $lt_compiler_flag:'`
9165    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9166    (eval "$lt_compile" 2>out/conftest.err)
9167    ac_status=$?
9168    cat out/conftest.err >&5
9169    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9171    then
9172      # The compiler can only warn and ignore the option if not recognized
9173      # So say no if there are warnings
9174      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9175      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9176      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9177        lt_cv_prog_compiler_c_o=yes
9178      fi
9179    fi
9180    chmod u+w . 2>&5
9181    $RM conftest*
9182    # SGI C++ compiler will create directory out/ii_files/ for
9183    # template instantiation
9184    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9185    $RM out/* && rmdir out
9186    cd ..
9187    $RM -r conftest
9188    $RM conftest*
9189
9190 fi
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9192 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9193
9194
9195
9196
9197 hard_links="nottested"
9198 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9199   # do not overwrite the value of need_locks provided by the user
9200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9201 $as_echo_n "checking if we can lock with hard links... " >&6; }
9202   hard_links=yes
9203   $RM conftest*
9204   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9205   touch conftest.a
9206   ln conftest.a conftest.b 2>&5 || hard_links=no
9207   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9209 $as_echo "$hard_links" >&6; }
9210   if test "$hard_links" = no; then
9211     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9212 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9213     need_locks=warn
9214   fi
9215 else
9216   need_locks=no
9217 fi
9218
9219
9220
9221
9222
9223
9224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9225 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9226
9227   runpath_var=
9228   allow_undefined_flag=
9229   always_export_symbols=no
9230   archive_cmds=
9231   archive_expsym_cmds=
9232   compiler_needs_object=no
9233   enable_shared_with_static_runtimes=no
9234   export_dynamic_flag_spec=
9235   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9236   hardcode_automatic=no
9237   hardcode_direct=no
9238   hardcode_direct_absolute=no
9239   hardcode_libdir_flag_spec=
9240   hardcode_libdir_flag_spec_ld=
9241   hardcode_libdir_separator=
9242   hardcode_minus_L=no
9243   hardcode_shlibpath_var=unsupported
9244   inherit_rpath=no
9245   link_all_deplibs=unknown
9246   module_cmds=
9247   module_expsym_cmds=
9248   old_archive_from_new_cmds=
9249   old_archive_from_expsyms_cmds=
9250   thread_safe_flag_spec=
9251   whole_archive_flag_spec=
9252   # include_expsyms should be a list of space-separated symbols to be *always*
9253   # included in the symbol list
9254   include_expsyms=
9255   # exclude_expsyms can be an extended regexp of symbols to exclude
9256   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9257   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9258   # as well as any symbol that contains `d'.
9259   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9260   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9261   # platforms (ab)use it in PIC code, but their linkers get confused if
9262   # the symbol is explicitly referenced.  Since portable code cannot
9263   # rely on this symbol name, it's probably fine to never include it in
9264   # preloaded symbol tables.
9265   # Exclude shared library initialization/finalization symbols.
9266   extract_expsyms_cmds=
9267
9268   case $host_os in
9269   cygwin* | mingw* | pw32* | cegcc*)
9270     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9271     # When not using gcc, we currently assume that we are using
9272     # Microsoft Visual C++.
9273     if test "$GCC" != yes; then
9274       with_gnu_ld=no
9275     fi
9276     ;;
9277   interix*)
9278     # we just hope/assume this is gcc and not c89 (= MSVC++)
9279     with_gnu_ld=yes
9280     ;;
9281   openbsd*)
9282     with_gnu_ld=no
9283     ;;
9284   esac
9285
9286   ld_shlibs=yes
9287
9288   # On some targets, GNU ld is compatible enough with the native linker
9289   # that we're better off using the native interface for both.
9290   lt_use_gnu_ld_interface=no
9291   if test "$with_gnu_ld" = yes; then
9292     case $host_os in
9293       aix*)
9294         # The AIX port of GNU ld has always aspired to compatibility
9295         # with the native linker.  However, as the warning in the GNU ld
9296         # block says, versions before 2.19.5* couldn't really create working
9297         # shared libraries, regardless of the interface used.
9298         case `$LD -v 2>&1` in
9299           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9300           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9301           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9302           *)
9303             lt_use_gnu_ld_interface=yes
9304             ;;
9305         esac
9306         ;;
9307       *)
9308         lt_use_gnu_ld_interface=yes
9309         ;;
9310     esac
9311   fi
9312
9313   if test "$lt_use_gnu_ld_interface" = yes; then
9314     # If archive_cmds runs LD, not CC, wlarc should be empty
9315     wlarc='${wl}'
9316
9317     # Set some defaults for GNU ld with shared library support. These
9318     # are reset later if shared libraries are not supported. Putting them
9319     # here allows them to be overridden if necessary.
9320     runpath_var=LD_RUN_PATH
9321     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9322     export_dynamic_flag_spec='${wl}--export-dynamic'
9323     # ancient GNU ld didn't support --whole-archive et. al.
9324     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9325       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9326     else
9327       whole_archive_flag_spec=
9328     fi
9329     supports_anon_versioning=no
9330     case `$LD -v 2>&1` in
9331       *GNU\ gold*) supports_anon_versioning=yes ;;
9332       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9333       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9334       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9335       *\ 2.11.*) ;; # other 2.11 versions
9336       *) supports_anon_versioning=yes ;;
9337     esac
9338
9339     # See if GNU ld supports shared libraries.
9340     case $host_os in
9341     aix[3-9]*)
9342       # On AIX/PPC, the GNU linker is very broken
9343       if test "$host_cpu" != ia64; then
9344         ld_shlibs=no
9345         cat <<_LT_EOF 1>&2
9346
9347 *** Warning: the GNU linker, at least up to release 2.19, is reported
9348 *** to be unable to reliably create shared libraries on AIX.
9349 *** Therefore, libtool is disabling shared libraries support.  If you
9350 *** really care for shared libraries, you may want to install binutils
9351 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9352 *** You will then need to restart the configuration process.
9353
9354 _LT_EOF
9355       fi
9356       ;;
9357
9358     amigaos*)
9359       case $host_cpu in
9360       powerpc)
9361             # see comment about AmigaOS4 .so support
9362             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9363             archive_expsym_cmds=''
9364         ;;
9365       m68k)
9366             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)'
9367             hardcode_libdir_flag_spec='-L$libdir'
9368             hardcode_minus_L=yes
9369         ;;
9370       esac
9371       ;;
9372
9373     beos*)
9374       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9375         allow_undefined_flag=unsupported
9376         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9377         # support --undefined.  This deserves some investigation.  FIXME
9378         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9379       else
9380         ld_shlibs=no
9381       fi
9382       ;;
9383
9384     cygwin* | mingw* | pw32* | cegcc*)
9385       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9386       # as there is no search path for DLLs.
9387       hardcode_libdir_flag_spec='-L$libdir'
9388       export_dynamic_flag_spec='${wl}--export-all-symbols'
9389       allow_undefined_flag=unsupported
9390       always_export_symbols=no
9391       enable_shared_with_static_runtimes=yes
9392       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9393
9394       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9395         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9396         # If the export-symbols file already is a .def file (1st line
9397         # is EXPORTS), use it as is; otherwise, prepend...
9398         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9399           cp $export_symbols $output_objdir/$soname.def;
9400         else
9401           echo EXPORTS > $output_objdir/$soname.def;
9402           cat $export_symbols >> $output_objdir/$soname.def;
9403         fi~
9404         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9405       else
9406         ld_shlibs=no
9407       fi
9408       ;;
9409
9410     haiku*)
9411       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9412       link_all_deplibs=yes
9413       ;;
9414
9415     interix[3-9]*)
9416       hardcode_direct=no
9417       hardcode_shlibpath_var=no
9418       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9419       export_dynamic_flag_spec='${wl}-E'
9420       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9421       # Instead, shared libraries are loaded at an image base (0x10000000 by
9422       # default) and relocated if they conflict, which is a slow very memory
9423       # consuming and fragmenting process.  To avoid this, we pick a random,
9424       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9425       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9426       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9427       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'
9428       ;;
9429
9430     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9431       tmp_diet=no
9432       if test "$host_os" = linux-dietlibc; then
9433         case $cc_basename in
9434           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9435         esac
9436       fi
9437       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9438          && test "$tmp_diet" = no
9439       then
9440         tmp_addflag=
9441         tmp_sharedflag='-shared'
9442         case $cc_basename,$host_cpu in
9443         pgcc*)                          # Portland Group C compiler
9444           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9445           tmp_addflag=' $pic_flag'
9446           ;;
9447         pgf77* | pgf90* | pgf95* | pgfortran*)
9448                                         # Portland Group f77 and f90 compilers
9449           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9450           tmp_addflag=' $pic_flag -Mnomain' ;;
9451         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9452           tmp_addflag=' -i_dynamic' ;;
9453         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9454           tmp_addflag=' -i_dynamic -nofor_main' ;;
9455         ifc* | ifort*)                  # Intel Fortran compiler
9456           tmp_addflag=' -nofor_main' ;;
9457         lf95*)                          # Lahey Fortran 8.1
9458           whole_archive_flag_spec=
9459           tmp_sharedflag='--shared' ;;
9460         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9461           tmp_sharedflag='-qmkshrobj'
9462           tmp_addflag= ;;
9463         nvcc*)  # Cuda Compiler Driver 2.2
9464           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9465           compiler_needs_object=yes
9466           ;;
9467         esac
9468         case `$CC -V 2>&1 | sed 5q` in
9469         *Sun\ C*)                       # Sun C 5.9
9470           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9471           compiler_needs_object=yes
9472           tmp_sharedflag='-G' ;;
9473         *Sun\ F*)                       # Sun Fortran 8.3
9474           tmp_sharedflag='-G' ;;
9475         esac
9476         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9477
9478         if test "x$supports_anon_versioning" = xyes; then
9479           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9480             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9481             echo "local: *; };" >> $output_objdir/$libname.ver~
9482             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9483         fi
9484
9485         case $cc_basename in
9486         xlf* | bgf* | bgxlf* | mpixlf*)
9487           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9488           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9489           hardcode_libdir_flag_spec=
9490           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9491           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9492           if test "x$supports_anon_versioning" = xyes; then
9493             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9494               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9495               echo "local: *; };" >> $output_objdir/$libname.ver~
9496               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9497           fi
9498           ;;
9499         esac
9500       else
9501         ld_shlibs=no
9502       fi
9503       ;;
9504
9505     netbsd*)
9506       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9507         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9508         wlarc=
9509       else
9510         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9511         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9512       fi
9513       ;;
9514
9515     solaris*)
9516       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9517         ld_shlibs=no
9518         cat <<_LT_EOF 1>&2
9519
9520 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9521 *** create shared libraries on Solaris systems.  Therefore, libtool
9522 *** is disabling shared libraries support.  We urge you to upgrade GNU
9523 *** binutils to release 2.9.1 or newer.  Another option is to modify
9524 *** your PATH or compiler configuration so that the native linker is
9525 *** used, and then restart.
9526
9527 _LT_EOF
9528       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9529         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9530         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9531       else
9532         ld_shlibs=no
9533       fi
9534       ;;
9535
9536     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9537       case `$LD -v 2>&1` in
9538         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9539         ld_shlibs=no
9540         cat <<_LT_EOF 1>&2
9541
9542 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9543 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9544 *** is disabling shared libraries support.  We urge you to upgrade GNU
9545 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9546 *** your PATH or compiler configuration so that the native linker is
9547 *** used, and then restart.
9548
9549 _LT_EOF
9550         ;;
9551         *)
9552           # For security reasons, it is highly recommended that you always
9553           # use absolute paths for naming shared libraries, and exclude the
9554           # DT_RUNPATH tag from executables and libraries.  But doing so
9555           # requires that you compile everything twice, which is a pain.
9556           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9557             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9558             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9559             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9560           else
9561             ld_shlibs=no
9562           fi
9563         ;;
9564       esac
9565       ;;
9566
9567     sunos4*)
9568       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9569       wlarc=
9570       hardcode_direct=yes
9571       hardcode_shlibpath_var=no
9572       ;;
9573
9574     *)
9575       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9576         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9577         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9578       else
9579         ld_shlibs=no
9580       fi
9581       ;;
9582     esac
9583
9584     if test "$ld_shlibs" = no; then
9585       runpath_var=
9586       hardcode_libdir_flag_spec=
9587       export_dynamic_flag_spec=
9588       whole_archive_flag_spec=
9589     fi
9590   else
9591     # PORTME fill in a description of your system's linker (not GNU ld)
9592     case $host_os in
9593     aix3*)
9594       allow_undefined_flag=unsupported
9595       always_export_symbols=yes
9596       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'
9597       # Note: this linker hardcodes the directories in LIBPATH if there
9598       # are no directories specified by -L.
9599       hardcode_minus_L=yes
9600       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9601         # Neither direct hardcoding nor static linking is supported with a
9602         # broken collect2.
9603         hardcode_direct=unsupported
9604       fi
9605       ;;
9606
9607     aix[4-9]*)
9608       if test "$host_cpu" = ia64; then
9609         # On IA64, the linker does run time linking by default, so we don't
9610         # have to do anything special.
9611         aix_use_runtimelinking=no
9612         exp_sym_flag='-Bexport'
9613         no_entry_flag=""
9614       else
9615         # If we're using GNU nm, then we don't want the "-C" option.
9616         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9617         # Also, AIX nm treats weak defined symbols like other global
9618         # defined symbols, whereas GNU nm marks them as "W".
9619         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9620           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9621         else
9622           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'
9623         fi
9624         aix_use_runtimelinking=no
9625
9626         # Test if we are trying to use run time linking or normal
9627         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9628         # need to do runtime linking.
9629         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9630           for ld_flag in $LDFLAGS; do
9631           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9632             aix_use_runtimelinking=yes
9633             break
9634           fi
9635           done
9636           ;;
9637         esac
9638
9639         exp_sym_flag='-bexport'
9640         no_entry_flag='-bnoentry'
9641       fi
9642
9643       # When large executables or shared objects are built, AIX ld can
9644       # have problems creating the table of contents.  If linking a library
9645       # or program results in "error TOC overflow" add -mminimal-toc to
9646       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9647       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9648
9649       archive_cmds=''
9650       hardcode_direct=yes
9651       hardcode_direct_absolute=yes
9652       hardcode_libdir_separator=':'
9653       link_all_deplibs=yes
9654       file_list_spec='${wl}-f,'
9655
9656       if test "$GCC" = yes; then
9657         case $host_os in aix4.[012]|aix4.[012].*)
9658         # We only want to do this on AIX 4.2 and lower, the check
9659         # below for broken collect2 doesn't work under 4.3+
9660           collect2name=`${CC} -print-prog-name=collect2`
9661           if test -f "$collect2name" &&
9662            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9663           then
9664           # We have reworked collect2
9665           :
9666           else
9667           # We have old collect2
9668           hardcode_direct=unsupported
9669           # It fails to find uninstalled libraries when the uninstalled
9670           # path is not listed in the libpath.  Setting hardcode_minus_L
9671           # to unsupported forces relinking
9672           hardcode_minus_L=yes
9673           hardcode_libdir_flag_spec='-L$libdir'
9674           hardcode_libdir_separator=
9675           fi
9676           ;;
9677         esac
9678         shared_flag='-shared'
9679         if test "$aix_use_runtimelinking" = yes; then
9680           shared_flag="$shared_flag "'${wl}-G'
9681         fi
9682       else
9683         # not using gcc
9684         if test "$host_cpu" = ia64; then
9685         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9686         # chokes on -Wl,-G. The following line is correct:
9687           shared_flag='-G'
9688         else
9689           if test "$aix_use_runtimelinking" = yes; then
9690             shared_flag='${wl}-G'
9691           else
9692             shared_flag='${wl}-bM:SRE'
9693           fi
9694         fi
9695       fi
9696
9697       export_dynamic_flag_spec='${wl}-bexpall'
9698       # It seems that -bexpall does not export symbols beginning with
9699       # underscore (_), so it is better to generate a list of symbols to export.
9700       always_export_symbols=yes
9701       if test "$aix_use_runtimelinking" = yes; then
9702         # Warning - without using the other runtime loading flags (-brtl),
9703         # -berok will link without error, but may produce a broken library.
9704         allow_undefined_flag='-berok'
9705         # Determine the default libpath from the value encoded in an
9706         # empty executable.
9707         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9708 /* end confdefs.h.  */
9709
9710 int
9711 main ()
9712 {
9713
9714   ;
9715   return 0;
9716 }
9717 _ACEOF
9718 if ac_fn_c_try_link "$LINENO"; then :
9719
9720 lt_aix_libpath_sed='
9721     /Import File Strings/,/^$/ {
9722         /^0/ {
9723             s/^0  *\(.*\)$/\1/
9724             p
9725         }
9726     }'
9727 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9728 # Check for a 64-bit object if we didn't find anything.
9729 if test -z "$aix_libpath"; then
9730   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9731 fi
9732 fi
9733 rm -f core conftest.err conftest.$ac_objext \
9734     conftest$ac_exeext conftest.$ac_ext
9735 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9736
9737         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9738         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9739       else
9740         if test "$host_cpu" = ia64; then
9741           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9742           allow_undefined_flag="-z nodefs"
9743           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"
9744         else
9745          # Determine the default libpath from the value encoded in an
9746          # empty executable.
9747          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h.  */
9749
9750 int
9751 main ()
9752 {
9753
9754   ;
9755   return 0;
9756 }
9757 _ACEOF
9758 if ac_fn_c_try_link "$LINENO"; then :
9759
9760 lt_aix_libpath_sed='
9761     /Import File Strings/,/^$/ {
9762         /^0/ {
9763             s/^0  *\(.*\)$/\1/
9764             p
9765         }
9766     }'
9767 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9768 # Check for a 64-bit object if we didn't find anything.
9769 if test -z "$aix_libpath"; then
9770   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9771 fi
9772 fi
9773 rm -f core conftest.err conftest.$ac_objext \
9774     conftest$ac_exeext conftest.$ac_ext
9775 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9776
9777          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9778           # Warning - without using the other run time loading flags,
9779           # -berok will link without error, but may produce a broken library.
9780           no_undefined_flag=' ${wl}-bernotok'
9781           allow_undefined_flag=' ${wl}-berok'
9782           if test "$with_gnu_ld" = yes; then
9783             # We only use this code for GNU lds that support --whole-archive.
9784             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9785           else
9786             # Exported symbols can be pulled into shared objects from archives
9787             whole_archive_flag_spec='$convenience'
9788           fi
9789           archive_cmds_need_lc=yes
9790           # This is similar to how AIX traditionally builds its shared libraries.
9791           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'
9792         fi
9793       fi
9794       ;;
9795
9796     amigaos*)
9797       case $host_cpu in
9798       powerpc)
9799             # see comment about AmigaOS4 .so support
9800             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9801             archive_expsym_cmds=''
9802         ;;
9803       m68k)
9804             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)'
9805             hardcode_libdir_flag_spec='-L$libdir'
9806             hardcode_minus_L=yes
9807         ;;
9808       esac
9809       ;;
9810
9811     bsdi[45]*)
9812       export_dynamic_flag_spec=-rdynamic
9813       ;;
9814
9815     cygwin* | mingw* | pw32* | cegcc*)
9816       # When not using gcc, we currently assume that we are using
9817       # Microsoft Visual C++.
9818       # hardcode_libdir_flag_spec is actually meaningless, as there is
9819       # no search path for DLLs.
9820       hardcode_libdir_flag_spec=' '
9821       allow_undefined_flag=unsupported
9822       # Tell ltmain to make .lib files, not .a files.
9823       libext=lib
9824       # Tell ltmain to make .dll files, not .so files.
9825       shrext_cmds=".dll"
9826       # FIXME: Setting linknames here is a bad hack.
9827       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9828       # The linker will automatically build a .lib file if we build a DLL.
9829       old_archive_from_new_cmds='true'
9830       # FIXME: Should let the user specify the lib program.
9831       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9832       fix_srcfile_path='`cygpath -w "$srcfile"`'
9833       enable_shared_with_static_runtimes=yes
9834       ;;
9835
9836     darwin* | rhapsody*)
9837
9838
9839   archive_cmds_need_lc=no
9840   hardcode_direct=no
9841   hardcode_automatic=yes
9842   hardcode_shlibpath_var=unsupported
9843   if test "$lt_cv_ld_force_load" = "yes"; then
9844     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9845   else
9846     whole_archive_flag_spec=''
9847   fi
9848   link_all_deplibs=yes
9849   allow_undefined_flag="$_lt_dar_allow_undefined"
9850   case $cc_basename in
9851      ifort*) _lt_dar_can_shared=yes ;;
9852      *) _lt_dar_can_shared=$GCC ;;
9853   esac
9854   if test "$_lt_dar_can_shared" = "yes"; then
9855     output_verbose_link_cmd=func_echo_all
9856     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9857     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9858     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}"
9859     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}"
9860
9861   else
9862   ld_shlibs=no
9863   fi
9864
9865       ;;
9866
9867     dgux*)
9868       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9869       hardcode_libdir_flag_spec='-L$libdir'
9870       hardcode_shlibpath_var=no
9871       ;;
9872
9873     freebsd1*)
9874       ld_shlibs=no
9875       ;;
9876
9877     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9878     # support.  Future versions do this automatically, but an explicit c++rt0.o
9879     # does not break anything, and helps significantly (at the cost of a little
9880     # extra space).
9881     freebsd2.2*)
9882       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9883       hardcode_libdir_flag_spec='-R$libdir'
9884       hardcode_direct=yes
9885       hardcode_shlibpath_var=no
9886       ;;
9887
9888     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9889     freebsd2*)
9890       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9891       hardcode_direct=yes
9892       hardcode_minus_L=yes
9893       hardcode_shlibpath_var=no
9894       ;;
9895
9896     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9897     freebsd* | dragonfly*)
9898       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9899       hardcode_libdir_flag_spec='-R$libdir'
9900       hardcode_direct=yes
9901       hardcode_shlibpath_var=no
9902       ;;
9903
9904     hpux9*)
9905       if test "$GCC" = yes; then
9906         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'
9907       else
9908         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'
9909       fi
9910       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9911       hardcode_libdir_separator=:
9912       hardcode_direct=yes
9913
9914       # hardcode_minus_L: Not really in the search PATH,
9915       # but as the default location of the library.
9916       hardcode_minus_L=yes
9917       export_dynamic_flag_spec='${wl}-E'
9918       ;;
9919
9920     hpux10*)
9921       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9922         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9923       else
9924         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9925       fi
9926       if test "$with_gnu_ld" = no; then
9927         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9928         hardcode_libdir_flag_spec_ld='+b $libdir'
9929         hardcode_libdir_separator=:
9930         hardcode_direct=yes
9931         hardcode_direct_absolute=yes
9932         export_dynamic_flag_spec='${wl}-E'
9933         # hardcode_minus_L: Not really in the search PATH,
9934         # but as the default location of the library.
9935         hardcode_minus_L=yes
9936       fi
9937       ;;
9938
9939     hpux11*)
9940       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9941         case $host_cpu in
9942         hppa*64*)
9943           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9944           ;;
9945         ia64*)
9946           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9947           ;;
9948         *)
9949           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9950           ;;
9951         esac
9952       else
9953         case $host_cpu in
9954         hppa*64*)
9955           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9956           ;;
9957         ia64*)
9958           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9959           ;;
9960         *)
9961
9962           # Older versions of the 11.00 compiler do not understand -b yet
9963           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9964           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9965 $as_echo_n "checking if $CC understands -b... " >&6; }
9966 if ${lt_cv_prog_compiler__b+:} false; then :
9967   $as_echo_n "(cached) " >&6
9968 else
9969   lt_cv_prog_compiler__b=no
9970    save_LDFLAGS="$LDFLAGS"
9971    LDFLAGS="$LDFLAGS -b"
9972    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9973    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9974      # The linker can only warn and ignore the option if not recognized
9975      # So say no if there are warnings
9976      if test -s conftest.err; then
9977        # Append any errors to the config.log.
9978        cat conftest.err 1>&5
9979        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9980        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9981        if diff conftest.exp conftest.er2 >/dev/null; then
9982          lt_cv_prog_compiler__b=yes
9983        fi
9984      else
9985        lt_cv_prog_compiler__b=yes
9986      fi
9987    fi
9988    $RM -r conftest*
9989    LDFLAGS="$save_LDFLAGS"
9990
9991 fi
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9993 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9994
9995 if test x"$lt_cv_prog_compiler__b" = xyes; then
9996     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9997 else
9998     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9999 fi
10000
10001           ;;
10002         esac
10003       fi
10004       if test "$with_gnu_ld" = no; then
10005         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10006         hardcode_libdir_separator=:
10007
10008         case $host_cpu in
10009         hppa*64*|ia64*)
10010           hardcode_direct=no
10011           hardcode_shlibpath_var=no
10012           ;;
10013         *)
10014           hardcode_direct=yes
10015           hardcode_direct_absolute=yes
10016           export_dynamic_flag_spec='${wl}-E'
10017
10018           # hardcode_minus_L: Not really in the search PATH,
10019           # but as the default location of the library.
10020           hardcode_minus_L=yes
10021           ;;
10022         esac
10023       fi
10024       ;;
10025
10026     irix5* | irix6* | nonstopux*)
10027       if test "$GCC" = yes; then
10028         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10029         # Try to use the -exported_symbol ld option, if it does not
10030         # work, assume that -exports_file does not work either and
10031         # implicitly export all symbols.
10032         save_LDFLAGS="$LDFLAGS"
10033         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10034         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10035 /* end confdefs.h.  */
10036 int foo(void) {}
10037 _ACEOF
10038 if ac_fn_c_try_link "$LINENO"; then :
10039   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10040
10041 fi
10042 rm -f core conftest.err conftest.$ac_objext \
10043     conftest$ac_exeext conftest.$ac_ext
10044         LDFLAGS="$save_LDFLAGS"
10045       else
10046         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10047         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10048       fi
10049       archive_cmds_need_lc='no'
10050       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10051       hardcode_libdir_separator=:
10052       inherit_rpath=yes
10053       link_all_deplibs=yes
10054       ;;
10055
10056     netbsd*)
10057       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10058         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10059       else
10060         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10061       fi
10062       hardcode_libdir_flag_spec='-R$libdir'
10063       hardcode_direct=yes
10064       hardcode_shlibpath_var=no
10065       ;;
10066
10067     newsos6)
10068       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10069       hardcode_direct=yes
10070       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10071       hardcode_libdir_separator=:
10072       hardcode_shlibpath_var=no
10073       ;;
10074
10075     *nto* | *qnx*)
10076       ;;
10077
10078     openbsd*)
10079       if test -f /usr/libexec/ld.so; then
10080         hardcode_direct=yes
10081         hardcode_shlibpath_var=no
10082         hardcode_direct_absolute=yes
10083         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10084           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10085           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10086           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10087           export_dynamic_flag_spec='${wl}-E'
10088         else
10089           case $host_os in
10090            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10091              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10092              hardcode_libdir_flag_spec='-R$libdir'
10093              ;;
10094            *)
10095              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10096              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10097              ;;
10098           esac
10099         fi
10100       else
10101         ld_shlibs=no
10102       fi
10103       ;;
10104
10105     os2*)
10106       hardcode_libdir_flag_spec='-L$libdir'
10107       hardcode_minus_L=yes
10108       allow_undefined_flag=unsupported
10109       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'
10110       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10111       ;;
10112
10113     osf3*)
10114       if test "$GCC" = yes; then
10115         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10116         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10117       else
10118         allow_undefined_flag=' -expect_unresolved \*'
10119         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10120       fi
10121       archive_cmds_need_lc='no'
10122       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10123       hardcode_libdir_separator=:
10124       ;;
10125
10126     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10127       if test "$GCC" = yes; then
10128         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10129         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10130         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10131       else
10132         allow_undefined_flag=' -expect_unresolved \*'
10133         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10134         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~
10135         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10136
10137         # Both c and cxx compiler support -rpath directly
10138         hardcode_libdir_flag_spec='-rpath $libdir'
10139       fi
10140       archive_cmds_need_lc='no'
10141       hardcode_libdir_separator=:
10142       ;;
10143
10144     solaris*)
10145       no_undefined_flag=' -z defs'
10146       if test "$GCC" = yes; then
10147         wlarc='${wl}'
10148         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10149         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10150           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10151       else
10152         case `$CC -V 2>&1` in
10153         *"Compilers 5.0"*)
10154           wlarc=''
10155           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10156           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10157           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10158           ;;
10159         *)
10160           wlarc='${wl}'
10161           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10162           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10163           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10164           ;;
10165         esac
10166       fi
10167       hardcode_libdir_flag_spec='-R$libdir'
10168       hardcode_shlibpath_var=no
10169       case $host_os in
10170       solaris2.[0-5] | solaris2.[0-5].*) ;;
10171       *)
10172         # The compiler driver will combine and reorder linker options,
10173         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10174         # but is careful enough not to reorder.
10175         # Supported since Solaris 2.6 (maybe 2.5.1?)
10176         if test "$GCC" = yes; then
10177           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10178         else
10179           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10180         fi
10181         ;;
10182       esac
10183       link_all_deplibs=yes
10184       ;;
10185
10186     sunos4*)
10187       if test "x$host_vendor" = xsequent; then
10188         # Use $CC to link under sequent, because it throws in some extra .o
10189         # files that make .init and .fini sections work.
10190         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10191       else
10192         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10193       fi
10194       hardcode_libdir_flag_spec='-L$libdir'
10195       hardcode_direct=yes
10196       hardcode_minus_L=yes
10197       hardcode_shlibpath_var=no
10198       ;;
10199
10200     sysv4)
10201       case $host_vendor in
10202         sni)
10203           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10204           hardcode_direct=yes # is this really true???
10205         ;;
10206         siemens)
10207           ## LD is ld it makes a PLAMLIB
10208           ## CC just makes a GrossModule.
10209           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10210           reload_cmds='$CC -r -o $output$reload_objs'
10211           hardcode_direct=no
10212         ;;
10213         motorola)
10214           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10216         ;;
10217       esac
10218       runpath_var='LD_RUN_PATH'
10219       hardcode_shlibpath_var=no
10220       ;;
10221
10222     sysv4.3*)
10223       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10224       hardcode_shlibpath_var=no
10225       export_dynamic_flag_spec='-Bexport'
10226       ;;
10227
10228     sysv4*MP*)
10229       if test -d /usr/nec; then
10230         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10231         hardcode_shlibpath_var=no
10232         runpath_var=LD_RUN_PATH
10233         hardcode_runpath_var=yes
10234         ld_shlibs=yes
10235       fi
10236       ;;
10237
10238     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10239       no_undefined_flag='${wl}-z,text'
10240       archive_cmds_need_lc=no
10241       hardcode_shlibpath_var=no
10242       runpath_var='LD_RUN_PATH'
10243
10244       if test "$GCC" = yes; then
10245         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10246         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10247       else
10248         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10249         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10250       fi
10251       ;;
10252
10253     sysv5* | sco3.2v5* | sco5v6*)
10254       # Note: We can NOT use -z defs as we might desire, because we do not
10255       # link with -lc, and that would cause any symbols used from libc to
10256       # always be unresolved, which means just about no library would
10257       # ever link correctly.  If we're not using GNU ld we use -z text
10258       # though, which does catch some bad symbols but isn't as heavy-handed
10259       # as -z defs.
10260       no_undefined_flag='${wl}-z,text'
10261       allow_undefined_flag='${wl}-z,nodefs'
10262       archive_cmds_need_lc=no
10263       hardcode_shlibpath_var=no
10264       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10265       hardcode_libdir_separator=':'
10266       link_all_deplibs=yes
10267       export_dynamic_flag_spec='${wl}-Bexport'
10268       runpath_var='LD_RUN_PATH'
10269
10270       if test "$GCC" = yes; then
10271         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10272         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10273       else
10274         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10275         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10276       fi
10277       ;;
10278
10279     uts4*)
10280       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10281       hardcode_libdir_flag_spec='-L$libdir'
10282       hardcode_shlibpath_var=no
10283       ;;
10284
10285     *)
10286       ld_shlibs=no
10287       ;;
10288     esac
10289
10290     if test x$host_vendor = xsni; then
10291       case $host in
10292       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10293         export_dynamic_flag_spec='${wl}-Blargedynsym'
10294         ;;
10295       esac
10296     fi
10297   fi
10298
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10300 $as_echo "$ld_shlibs" >&6; }
10301 test "$ld_shlibs" = no && can_build_shared=no
10302
10303 with_gnu_ld=$with_gnu_ld
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319 #
10320 # Do we need to explicitly link libc?
10321 #
10322 case "x$archive_cmds_need_lc" in
10323 x|xyes)
10324   # Assume -lc should be added
10325   archive_cmds_need_lc=yes
10326
10327   if test "$enable_shared" = yes && test "$GCC" = yes; then
10328     case $archive_cmds in
10329     *'~'*)
10330       # FIXME: we may have to deal with multi-command sequences.
10331       ;;
10332     '$CC '*)
10333       # Test whether the compiler implicitly links with -lc since on some
10334       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10335       # to ld, don't add -lc before -lgcc.
10336       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10337 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10338 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10339   $as_echo_n "(cached) " >&6
10340 else
10341   $RM conftest*
10342         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10343
10344         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10345   (eval $ac_compile) 2>&5
10346   ac_status=$?
10347   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10348   test $ac_status = 0; } 2>conftest.err; then
10349           soname=conftest
10350           lib=conftest
10351           libobjs=conftest.$ac_objext
10352           deplibs=
10353           wl=$lt_prog_compiler_wl
10354           pic_flag=$lt_prog_compiler_pic
10355           compiler_flags=-v
10356           linker_flags=-v
10357           verstring=
10358           output_objdir=.
10359           libname=conftest
10360           lt_save_allow_undefined_flag=$allow_undefined_flag
10361           allow_undefined_flag=
10362           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10363   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10364   ac_status=$?
10365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10366   test $ac_status = 0; }
10367           then
10368             lt_cv_archive_cmds_need_lc=no
10369           else
10370             lt_cv_archive_cmds_need_lc=yes
10371           fi
10372           allow_undefined_flag=$lt_save_allow_undefined_flag
10373         else
10374           cat conftest.err 1>&5
10375         fi
10376         $RM conftest*
10377
10378 fi
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10380 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10381       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10382       ;;
10383     esac
10384   fi
10385   ;;
10386 esac
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10545 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10546
10547 if test "$GCC" = yes; then
10548   case $host_os in
10549     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10550     *) lt_awk_arg="/^libraries:/" ;;
10551   esac
10552   case $host_os in
10553     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10554     *) lt_sed_strip_eq="s,=/,/,g" ;;
10555   esac
10556   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10557   case $lt_search_path_spec in
10558   *\;*)
10559     # if the path contains ";" then we assume it to be the separator
10560     # otherwise default to the standard path separator (i.e. ":") - it is
10561     # assumed that no part of a normal pathname contains ";" but that should
10562     # okay in the real world where ";" in dirpaths is itself problematic.
10563     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10564     ;;
10565   *)
10566     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10567     ;;
10568   esac
10569   # Ok, now we have the path, separated by spaces, we can step through it
10570   # and add multilib dir if necessary.
10571   lt_tmp_lt_search_path_spec=
10572   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10573   for lt_sys_path in $lt_search_path_spec; do
10574     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10575       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10576     else
10577       test -d "$lt_sys_path" && \
10578         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10579     fi
10580   done
10581   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10582 BEGIN {RS=" "; FS="/|\n";} {
10583   lt_foo="";
10584   lt_count=0;
10585   for (lt_i = NF; lt_i > 0; lt_i--) {
10586     if ($lt_i != "" && $lt_i != ".") {
10587       if ($lt_i == "..") {
10588         lt_count++;
10589       } else {
10590         if (lt_count == 0) {
10591           lt_foo="/" $lt_i lt_foo;
10592         } else {
10593           lt_count--;
10594         }
10595       }
10596     }
10597   }
10598   if (lt_foo != "") { lt_freq[lt_foo]++; }
10599   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10600 }'`
10601   # AWK program above erroneously prepends '/' to C:/dos/paths
10602   # for these hosts.
10603   case $host_os in
10604     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10605       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10606   esac
10607   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10608 else
10609   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10610 fi
10611 library_names_spec=
10612 libname_spec='lib$name'
10613 soname_spec=
10614 shrext_cmds=".so"
10615 postinstall_cmds=
10616 postuninstall_cmds=
10617 finish_cmds=
10618 finish_eval=
10619 shlibpath_var=
10620 shlibpath_overrides_runpath=unknown
10621 version_type=none
10622 dynamic_linker="$host_os ld.so"
10623 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10624 need_lib_prefix=unknown
10625 hardcode_into_libs=no
10626
10627 # when you set need_version to no, make sure it does not cause -set_version
10628 # flags to be left without arguments
10629 need_version=unknown
10630
10631 case $host_os in
10632 aix3*)
10633   version_type=linux
10634   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10635   shlibpath_var=LIBPATH
10636
10637   # AIX 3 has no versioning support, so we append a major version to the name.
10638   soname_spec='${libname}${release}${shared_ext}$major'
10639   ;;
10640
10641 aix[4-9]*)
10642   version_type=linux
10643   need_lib_prefix=no
10644   need_version=no
10645   hardcode_into_libs=yes
10646   if test "$host_cpu" = ia64; then
10647     # AIX 5 supports IA64
10648     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10649     shlibpath_var=LD_LIBRARY_PATH
10650   else
10651     # With GCC up to 2.95.x, collect2 would create an import file
10652     # for dependence libraries.  The import file would start with
10653     # the line `#! .'.  This would cause the generated library to
10654     # depend on `.', always an invalid library.  This was fixed in
10655     # development snapshots of GCC prior to 3.0.
10656     case $host_os in
10657       aix4 | aix4.[01] | aix4.[01].*)
10658       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10659            echo ' yes '
10660            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10661         :
10662       else
10663         can_build_shared=no
10664       fi
10665       ;;
10666     esac
10667     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10668     # soname into executable. Probably we can add versioning support to
10669     # collect2, so additional links can be useful in future.
10670     if test "$aix_use_runtimelinking" = yes; then
10671       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10672       # instead of lib<name>.a to let people know that these are not
10673       # typical AIX shared libraries.
10674       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10675     else
10676       # We preserve .a as extension for shared libraries through AIX4.2
10677       # and later when we are not doing run time linking.
10678       library_names_spec='${libname}${release}.a $libname.a'
10679       soname_spec='${libname}${release}${shared_ext}$major'
10680     fi
10681     shlibpath_var=LIBPATH
10682   fi
10683   ;;
10684
10685 amigaos*)
10686   case $host_cpu in
10687   powerpc)
10688     # Since July 2007 AmigaOS4 officially supports .so libraries.
10689     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10690     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691     ;;
10692   m68k)
10693     library_names_spec='$libname.ixlibrary $libname.a'
10694     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10695     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10696     ;;
10697   esac
10698   ;;
10699
10700 beos*)
10701   library_names_spec='${libname}${shared_ext}'
10702   dynamic_linker="$host_os ld.so"
10703   shlibpath_var=LIBRARY_PATH
10704   ;;
10705
10706 bsdi[45]*)
10707   version_type=linux
10708   need_version=no
10709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10710   soname_spec='${libname}${release}${shared_ext}$major'
10711   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10712   shlibpath_var=LD_LIBRARY_PATH
10713   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10714   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10715   # the default ld.so.conf also contains /usr/contrib/lib and
10716   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10717   # libtool to hard-code these into programs
10718   ;;
10719
10720 cygwin* | mingw* | pw32* | cegcc*)
10721   version_type=windows
10722   shrext_cmds=".dll"
10723   need_version=no
10724   need_lib_prefix=no
10725
10726   case $GCC,$host_os in
10727   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10728     library_names_spec='$libname.dll.a'
10729     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10730     postinstall_cmds='base_file=`basename \${file}`~
10731       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10732       dldir=$destdir/`dirname \$dlpath`~
10733       test -d \$dldir || mkdir -p \$dldir~
10734       $install_prog $dir/$dlname \$dldir/$dlname~
10735       chmod a+x \$dldir/$dlname~
10736       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10737         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10738       fi'
10739     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10740       dlpath=$dir/\$dldll~
10741        $RM \$dlpath'
10742     shlibpath_overrides_runpath=yes
10743
10744     case $host_os in
10745     cygwin*)
10746       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10747       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10748
10749       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10750       ;;
10751     mingw* | cegcc*)
10752       # MinGW DLLs use traditional 'lib' prefix
10753       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10754       ;;
10755     pw32*)
10756       # pw32 DLLs use 'pw' prefix rather than 'lib'
10757       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10758       ;;
10759     esac
10760     ;;
10761
10762   *)
10763     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10764     ;;
10765   esac
10766   dynamic_linker='Win32 ld.exe'
10767   # FIXME: first we should search . and the directory the executable is in
10768   shlibpath_var=PATH
10769   ;;
10770
10771 darwin* | rhapsody*)
10772   dynamic_linker="$host_os dyld"
10773   version_type=darwin
10774   need_lib_prefix=no
10775   need_version=no
10776   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10777   soname_spec='${libname}${release}${major}$shared_ext'
10778   shlibpath_overrides_runpath=yes
10779   shlibpath_var=DYLD_LIBRARY_PATH
10780   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10781
10782   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10783   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10784   ;;
10785
10786 dgux*)
10787   version_type=linux
10788   need_lib_prefix=no
10789   need_version=no
10790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10791   soname_spec='${libname}${release}${shared_ext}$major'
10792   shlibpath_var=LD_LIBRARY_PATH
10793   ;;
10794
10795 freebsd1*)
10796   dynamic_linker=no
10797   ;;
10798
10799 freebsd* | dragonfly*)
10800   # DragonFly does not have aout.  When/if they implement a new
10801   # versioning mechanism, adjust this.
10802   if test -x /usr/bin/objformat; then
10803     objformat=`/usr/bin/objformat`
10804   else
10805     case $host_os in
10806     freebsd[123]*) objformat=aout ;;
10807     *) objformat=elf ;;
10808     esac
10809   fi
10810   version_type=freebsd-$objformat
10811   case $version_type in
10812     freebsd-elf*)
10813       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10814       need_version=no
10815       need_lib_prefix=no
10816       ;;
10817     freebsd-*)
10818       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10819       need_version=yes
10820       ;;
10821   esac
10822   shlibpath_var=LD_LIBRARY_PATH
10823   case $host_os in
10824   freebsd2*)
10825     shlibpath_overrides_runpath=yes
10826     ;;
10827   freebsd3.[01]* | freebsdelf3.[01]*)
10828     shlibpath_overrides_runpath=yes
10829     hardcode_into_libs=yes
10830     ;;
10831   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10832   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10833     shlibpath_overrides_runpath=no
10834     hardcode_into_libs=yes
10835     ;;
10836   *) # from 4.6 on, and DragonFly
10837     shlibpath_overrides_runpath=yes
10838     hardcode_into_libs=yes
10839     ;;
10840   esac
10841   ;;
10842
10843 gnu*)
10844   version_type=linux
10845   need_lib_prefix=no
10846   need_version=no
10847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10848   soname_spec='${libname}${release}${shared_ext}$major'
10849   shlibpath_var=LD_LIBRARY_PATH
10850   hardcode_into_libs=yes
10851   ;;
10852
10853 haiku*)
10854   version_type=linux
10855   need_lib_prefix=no
10856   need_version=no
10857   dynamic_linker="$host_os runtime_loader"
10858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10859   soname_spec='${libname}${release}${shared_ext}$major'
10860   shlibpath_var=LIBRARY_PATH
10861   shlibpath_overrides_runpath=yes
10862   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10863   hardcode_into_libs=yes
10864   ;;
10865
10866 hpux9* | hpux10* | hpux11*)
10867   # Give a soname corresponding to the major version so that dld.sl refuses to
10868   # link against other versions.
10869   version_type=sunos
10870   need_lib_prefix=no
10871   need_version=no
10872   case $host_cpu in
10873   ia64*)
10874     shrext_cmds='.so'
10875     hardcode_into_libs=yes
10876     dynamic_linker="$host_os dld.so"
10877     shlibpath_var=LD_LIBRARY_PATH
10878     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10879     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880     soname_spec='${libname}${release}${shared_ext}$major'
10881     if test "X$HPUX_IA64_MODE" = X32; then
10882       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10883     else
10884       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10885     fi
10886     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10887     ;;
10888   hppa*64*)
10889     shrext_cmds='.sl'
10890     hardcode_into_libs=yes
10891     dynamic_linker="$host_os dld.sl"
10892     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10893     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10894     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10895     soname_spec='${libname}${release}${shared_ext}$major'
10896     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10897     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10898     ;;
10899   *)
10900     shrext_cmds='.sl'
10901     dynamic_linker="$host_os dld.sl"
10902     shlibpath_var=SHLIB_PATH
10903     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10904     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10905     soname_spec='${libname}${release}${shared_ext}$major'
10906     ;;
10907   esac
10908   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10909   postinstall_cmds='chmod 555 $lib'
10910   # or fails outright, so override atomically:
10911   install_override_mode=555
10912   ;;
10913
10914 interix[3-9]*)
10915   version_type=linux
10916   need_lib_prefix=no
10917   need_version=no
10918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10919   soname_spec='${libname}${release}${shared_ext}$major'
10920   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10921   shlibpath_var=LD_LIBRARY_PATH
10922   shlibpath_overrides_runpath=no
10923   hardcode_into_libs=yes
10924   ;;
10925
10926 irix5* | irix6* | nonstopux*)
10927   case $host_os in
10928     nonstopux*) version_type=nonstopux ;;
10929     *)
10930         if test "$lt_cv_prog_gnu_ld" = yes; then
10931                 version_type=linux
10932         else
10933                 version_type=irix
10934         fi ;;
10935   esac
10936   need_lib_prefix=no
10937   need_version=no
10938   soname_spec='${libname}${release}${shared_ext}$major'
10939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10940   case $host_os in
10941   irix5* | nonstopux*)
10942     libsuff= shlibsuff=
10943     ;;
10944   *)
10945     case $LD in # libtool.m4 will add one of these switches to LD
10946     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10947       libsuff= shlibsuff= libmagic=32-bit;;
10948     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10949       libsuff=32 shlibsuff=N32 libmagic=N32;;
10950     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10951       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10952     *) libsuff= shlibsuff= libmagic=never-match;;
10953     esac
10954     ;;
10955   esac
10956   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10957   shlibpath_overrides_runpath=no
10958   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10959   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10960   hardcode_into_libs=yes
10961   ;;
10962
10963 # No shared lib support for Linux oldld, aout, or coff.
10964 linux*oldld* | linux*aout* | linux*coff*)
10965   dynamic_linker=no
10966   ;;
10967
10968 # This must be Linux ELF.
10969 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10970   version_type=linux
10971   need_lib_prefix=no
10972   need_version=no
10973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974   soname_spec='${libname}${release}${shared_ext}$major'
10975   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10976   shlibpath_var=LD_LIBRARY_PATH
10977   shlibpath_overrides_runpath=no
10978
10979   # Some binutils ld are patched to set DT_RUNPATH
10980   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10981   $as_echo_n "(cached) " >&6
10982 else
10983   lt_cv_shlibpath_overrides_runpath=no
10984     save_LDFLAGS=$LDFLAGS
10985     save_libdir=$libdir
10986     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10987          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10988     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989 /* end confdefs.h.  */
10990
10991 int
10992 main ()
10993 {
10994
10995   ;
10996   return 0;
10997 }
10998 _ACEOF
10999 if ac_fn_c_try_link "$LINENO"; then :
11000   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11001   lt_cv_shlibpath_overrides_runpath=yes
11002 fi
11003 fi
11004 rm -f core conftest.err conftest.$ac_objext \
11005     conftest$ac_exeext conftest.$ac_ext
11006     LDFLAGS=$save_LDFLAGS
11007     libdir=$save_libdir
11008
11009 fi
11010
11011   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11012
11013   # This implies no fast_install, which is unacceptable.
11014   # Some rework will be needed to allow for fast_install
11015   # before this can be enabled.
11016   hardcode_into_libs=yes
11017
11018   # Append ld.so.conf contents to the search path
11019   if test -f /etc/ld.so.conf; then
11020     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;s/"//g;/^$/d' | tr '\n' ' '`
11021     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11022   fi
11023
11024   # We used to test for /lib/ld.so.1 and disable shared libraries on
11025   # powerpc, because MkLinux only supported shared libraries with the
11026   # GNU dynamic linker.  Since this was broken with cross compilers,
11027   # most powerpc-linux boxes support dynamic linking these days and
11028   # people can always --disable-shared, the test was removed, and we
11029   # assume the GNU/Linux dynamic linker is in use.
11030   dynamic_linker='GNU/Linux ld.so'
11031   ;;
11032
11033 netbsd*)
11034   version_type=sunos
11035   need_lib_prefix=no
11036   need_version=no
11037   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11038     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11039     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11040     dynamic_linker='NetBSD (a.out) ld.so'
11041   else
11042     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11043     soname_spec='${libname}${release}${shared_ext}$major'
11044     dynamic_linker='NetBSD ld.elf_so'
11045   fi
11046   shlibpath_var=LD_LIBRARY_PATH
11047   shlibpath_overrides_runpath=yes
11048   hardcode_into_libs=yes
11049   ;;
11050
11051 newsos6)
11052   version_type=linux
11053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11054   shlibpath_var=LD_LIBRARY_PATH
11055   shlibpath_overrides_runpath=yes
11056   ;;
11057
11058 *nto* | *qnx*)
11059   version_type=qnx
11060   need_lib_prefix=no
11061   need_version=no
11062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063   soname_spec='${libname}${release}${shared_ext}$major'
11064   shlibpath_var=LD_LIBRARY_PATH
11065   shlibpath_overrides_runpath=no
11066   hardcode_into_libs=yes
11067   dynamic_linker='ldqnx.so'
11068   ;;
11069
11070 openbsd*)
11071   version_type=sunos
11072   sys_lib_dlsearch_path_spec="/usr/lib"
11073   need_lib_prefix=no
11074   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11075   case $host_os in
11076     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11077     *)                          need_version=no  ;;
11078   esac
11079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11080   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11081   shlibpath_var=LD_LIBRARY_PATH
11082   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11083     case $host_os in
11084       openbsd2.[89] | openbsd2.[89].*)
11085         shlibpath_overrides_runpath=no
11086         ;;
11087       *)
11088         shlibpath_overrides_runpath=yes
11089         ;;
11090       esac
11091   else
11092     shlibpath_overrides_runpath=yes
11093   fi
11094   ;;
11095
11096 os2*)
11097   libname_spec='$name'
11098   shrext_cmds=".dll"
11099   need_lib_prefix=no
11100   library_names_spec='$libname${shared_ext} $libname.a'
11101   dynamic_linker='OS/2 ld.exe'
11102   shlibpath_var=LIBPATH
11103   ;;
11104
11105 osf3* | osf4* | osf5*)
11106   version_type=osf
11107   need_lib_prefix=no
11108   need_version=no
11109   soname_spec='${libname}${release}${shared_ext}$major'
11110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111   shlibpath_var=LD_LIBRARY_PATH
11112   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11113   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11114   ;;
11115
11116 rdos*)
11117   dynamic_linker=no
11118   ;;
11119
11120 solaris*)
11121   version_type=linux
11122   need_lib_prefix=no
11123   need_version=no
11124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11125   soname_spec='${libname}${release}${shared_ext}$major'
11126   shlibpath_var=LD_LIBRARY_PATH
11127   shlibpath_overrides_runpath=yes
11128   hardcode_into_libs=yes
11129   # ldd complains unless libraries are executable
11130   postinstall_cmds='chmod +x $lib'
11131   ;;
11132
11133 sunos4*)
11134   version_type=sunos
11135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11136   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11137   shlibpath_var=LD_LIBRARY_PATH
11138   shlibpath_overrides_runpath=yes
11139   if test "$with_gnu_ld" = yes; then
11140     need_lib_prefix=no
11141   fi
11142   need_version=yes
11143   ;;
11144
11145 sysv4 | sysv4.3*)
11146   version_type=linux
11147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11148   soname_spec='${libname}${release}${shared_ext}$major'
11149   shlibpath_var=LD_LIBRARY_PATH
11150   case $host_vendor in
11151     sni)
11152       shlibpath_overrides_runpath=no
11153       need_lib_prefix=no
11154       runpath_var=LD_RUN_PATH
11155       ;;
11156     siemens)
11157       need_lib_prefix=no
11158       ;;
11159     motorola)
11160       need_lib_prefix=no
11161       need_version=no
11162       shlibpath_overrides_runpath=no
11163       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11164       ;;
11165   esac
11166   ;;
11167
11168 sysv4*MP*)
11169   if test -d /usr/nec ;then
11170     version_type=linux
11171     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11172     soname_spec='$libname${shared_ext}.$major'
11173     shlibpath_var=LD_LIBRARY_PATH
11174   fi
11175   ;;
11176
11177 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11178   version_type=freebsd-elf
11179   need_lib_prefix=no
11180   need_version=no
11181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11182   soname_spec='${libname}${release}${shared_ext}$major'
11183   shlibpath_var=LD_LIBRARY_PATH
11184   shlibpath_overrides_runpath=yes
11185   hardcode_into_libs=yes
11186   if test "$with_gnu_ld" = yes; then
11187     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11188   else
11189     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11190     case $host_os in
11191       sco3.2v5*)
11192         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11193         ;;
11194     esac
11195   fi
11196   sys_lib_dlsearch_path_spec='/usr/lib'
11197   ;;
11198
11199 tpf*)
11200   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11201   version_type=linux
11202   need_lib_prefix=no
11203   need_version=no
11204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205   shlibpath_var=LD_LIBRARY_PATH
11206   shlibpath_overrides_runpath=no
11207   hardcode_into_libs=yes
11208   ;;
11209
11210 uts4*)
11211   version_type=linux
11212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11213   soname_spec='${libname}${release}${shared_ext}$major'
11214   shlibpath_var=LD_LIBRARY_PATH
11215   ;;
11216
11217 *)
11218   dynamic_linker=no
11219   ;;
11220 esac
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11222 $as_echo "$dynamic_linker" >&6; }
11223 test "$dynamic_linker" = no && can_build_shared=no
11224
11225 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11226 if test "$GCC" = yes; then
11227   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11228 fi
11229
11230 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11231   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11232 fi
11233 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11234   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11235 fi
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11329 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11330 hardcode_action=
11331 if test -n "$hardcode_libdir_flag_spec" ||
11332    test -n "$runpath_var" ||
11333    test "X$hardcode_automatic" = "Xyes" ; then
11334
11335   # We can hardcode non-existent directories.
11336   if test "$hardcode_direct" != no &&
11337      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11338      # have to relink, otherwise we might link with an installed library
11339      # when we should be linking with a yet-to-be-installed one
11340      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11341      test "$hardcode_minus_L" != no; then
11342     # Linking always hardcodes the temporary library directory.
11343     hardcode_action=relink
11344   else
11345     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11346     hardcode_action=immediate
11347   fi
11348 else
11349   # We cannot hardcode anything, or else we can only hardcode existing
11350   # directories.
11351   hardcode_action=unsupported
11352 fi
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11354 $as_echo "$hardcode_action" >&6; }
11355
11356 if test "$hardcode_action" = relink ||
11357    test "$inherit_rpath" = yes; then
11358   # Fast installation is not supported
11359   enable_fast_install=no
11360 elif test "$shlibpath_overrides_runpath" = yes ||
11361      test "$enable_shared" = no; then
11362   # Fast installation is not necessary
11363   enable_fast_install=needless
11364 fi
11365
11366
11367
11368
11369
11370
11371   if test "x$enable_dlopen" != xyes; then
11372   enable_dlopen=unknown
11373   enable_dlopen_self=unknown
11374   enable_dlopen_self_static=unknown
11375 else
11376   lt_cv_dlopen=no
11377   lt_cv_dlopen_libs=
11378
11379   case $host_os in
11380   beos*)
11381     lt_cv_dlopen="load_add_on"
11382     lt_cv_dlopen_libs=
11383     lt_cv_dlopen_self=yes
11384     ;;
11385
11386   mingw* | pw32* | cegcc*)
11387     lt_cv_dlopen="LoadLibrary"
11388     lt_cv_dlopen_libs=
11389     ;;
11390
11391   cygwin*)
11392     lt_cv_dlopen="dlopen"
11393     lt_cv_dlopen_libs=
11394     ;;
11395
11396   darwin*)
11397   # if libdl is installed we need to link against it
11398     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11399 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11400 if ${ac_cv_lib_dl_dlopen+:} false; then :
11401   $as_echo_n "(cached) " >&6
11402 else
11403   ac_check_lib_save_LIBS=$LIBS
11404 LIBS="-ldl  $LIBS"
11405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406 /* end confdefs.h.  */
11407
11408 /* Override any GCC internal prototype to avoid an error.
11409    Use char because int might match the return type of a GCC
11410    builtin and then its argument prototype would still apply.  */
11411 #ifdef __cplusplus
11412 extern "C"
11413 #endif
11414 char dlopen ();
11415 int
11416 main ()
11417 {
11418 return dlopen ();
11419   ;
11420   return 0;
11421 }
11422 _ACEOF
11423 if ac_fn_c_try_link "$LINENO"; then :
11424   ac_cv_lib_dl_dlopen=yes
11425 else
11426   ac_cv_lib_dl_dlopen=no
11427 fi
11428 rm -f core conftest.err conftest.$ac_objext \
11429     conftest$ac_exeext conftest.$ac_ext
11430 LIBS=$ac_check_lib_save_LIBS
11431 fi
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11433 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11434 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11435   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11436 else
11437
11438     lt_cv_dlopen="dyld"
11439     lt_cv_dlopen_libs=
11440     lt_cv_dlopen_self=yes
11441
11442 fi
11443
11444     ;;
11445
11446   *)
11447     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11448 if test "x$ac_cv_func_shl_load" = xyes; then :
11449   lt_cv_dlopen="shl_load"
11450 else
11451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11452 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11453 if ${ac_cv_lib_dld_shl_load+:} false; then :
11454   $as_echo_n "(cached) " >&6
11455 else
11456   ac_check_lib_save_LIBS=$LIBS
11457 LIBS="-ldld  $LIBS"
11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h.  */
11460
11461 /* Override any GCC internal prototype to avoid an error.
11462    Use char because int might match the return type of a GCC
11463    builtin and then its argument prototype would still apply.  */
11464 #ifdef __cplusplus
11465 extern "C"
11466 #endif
11467 char shl_load ();
11468 int
11469 main ()
11470 {
11471 return shl_load ();
11472   ;
11473   return 0;
11474 }
11475 _ACEOF
11476 if ac_fn_c_try_link "$LINENO"; then :
11477   ac_cv_lib_dld_shl_load=yes
11478 else
11479   ac_cv_lib_dld_shl_load=no
11480 fi
11481 rm -f core conftest.err conftest.$ac_objext \
11482     conftest$ac_exeext conftest.$ac_ext
11483 LIBS=$ac_check_lib_save_LIBS
11484 fi
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11486 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11487 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11488   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11489 else
11490   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11491 if test "x$ac_cv_func_dlopen" = xyes; then :
11492   lt_cv_dlopen="dlopen"
11493 else
11494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11495 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11496 if ${ac_cv_lib_dl_dlopen+:} false; then :
11497   $as_echo_n "(cached) " >&6
11498 else
11499   ac_check_lib_save_LIBS=$LIBS
11500 LIBS="-ldl  $LIBS"
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h.  */
11503
11504 /* Override any GCC internal prototype to avoid an error.
11505    Use char because int might match the return type of a GCC
11506    builtin and then its argument prototype would still apply.  */
11507 #ifdef __cplusplus
11508 extern "C"
11509 #endif
11510 char dlopen ();
11511 int
11512 main ()
11513 {
11514 return dlopen ();
11515   ;
11516   return 0;
11517 }
11518 _ACEOF
11519 if ac_fn_c_try_link "$LINENO"; then :
11520   ac_cv_lib_dl_dlopen=yes
11521 else
11522   ac_cv_lib_dl_dlopen=no
11523 fi
11524 rm -f core conftest.err conftest.$ac_objext \
11525     conftest$ac_exeext conftest.$ac_ext
11526 LIBS=$ac_check_lib_save_LIBS
11527 fi
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11529 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11530 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11531   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11532 else
11533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11534 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11535 if ${ac_cv_lib_svld_dlopen+:} false; then :
11536   $as_echo_n "(cached) " >&6
11537 else
11538   ac_check_lib_save_LIBS=$LIBS
11539 LIBS="-lsvld  $LIBS"
11540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541 /* end confdefs.h.  */
11542
11543 /* Override any GCC internal prototype to avoid an error.
11544    Use char because int might match the return type of a GCC
11545    builtin and then its argument prototype would still apply.  */
11546 #ifdef __cplusplus
11547 extern "C"
11548 #endif
11549 char dlopen ();
11550 int
11551 main ()
11552 {
11553 return dlopen ();
11554   ;
11555   return 0;
11556 }
11557 _ACEOF
11558 if ac_fn_c_try_link "$LINENO"; then :
11559   ac_cv_lib_svld_dlopen=yes
11560 else
11561   ac_cv_lib_svld_dlopen=no
11562 fi
11563 rm -f core conftest.err conftest.$ac_objext \
11564     conftest$ac_exeext conftest.$ac_ext
11565 LIBS=$ac_check_lib_save_LIBS
11566 fi
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11568 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11569 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11570   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11571 else
11572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11573 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11574 if ${ac_cv_lib_dld_dld_link+:} false; then :
11575   $as_echo_n "(cached) " >&6
11576 else
11577   ac_check_lib_save_LIBS=$LIBS
11578 LIBS="-ldld  $LIBS"
11579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h.  */
11581
11582 /* Override any GCC internal prototype to avoid an error.
11583    Use char because int might match the return type of a GCC
11584    builtin and then its argument prototype would still apply.  */
11585 #ifdef __cplusplus
11586 extern "C"
11587 #endif
11588 char dld_link ();
11589 int
11590 main ()
11591 {
11592 return dld_link ();
11593   ;
11594   return 0;
11595 }
11596 _ACEOF
11597 if ac_fn_c_try_link "$LINENO"; then :
11598   ac_cv_lib_dld_dld_link=yes
11599 else
11600   ac_cv_lib_dld_dld_link=no
11601 fi
11602 rm -f core conftest.err conftest.$ac_objext \
11603     conftest$ac_exeext conftest.$ac_ext
11604 LIBS=$ac_check_lib_save_LIBS
11605 fi
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11607 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11608 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11609   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11610 fi
11611
11612
11613 fi
11614
11615
11616 fi
11617
11618
11619 fi
11620
11621
11622 fi
11623
11624
11625 fi
11626
11627     ;;
11628   esac
11629
11630   if test "x$lt_cv_dlopen" != xno; then
11631     enable_dlopen=yes
11632   else
11633     enable_dlopen=no
11634   fi
11635
11636   case $lt_cv_dlopen in
11637   dlopen)
11638     save_CPPFLAGS="$CPPFLAGS"
11639     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11640
11641     save_LDFLAGS="$LDFLAGS"
11642     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11643
11644     save_LIBS="$LIBS"
11645     LIBS="$lt_cv_dlopen_libs $LIBS"
11646
11647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11648 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11649 if ${lt_cv_dlopen_self+:} false; then :
11650   $as_echo_n "(cached) " >&6
11651 else
11652           if test "$cross_compiling" = yes; then :
11653   lt_cv_dlopen_self=cross
11654 else
11655   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11656   lt_status=$lt_dlunknown
11657   cat > conftest.$ac_ext <<_LT_EOF
11658 #line $LINENO "configure"
11659 #include "confdefs.h"
11660
11661 #if HAVE_DLFCN_H
11662 #include <dlfcn.h>
11663 #endif
11664
11665 #include <stdio.h>
11666
11667 #ifdef RTLD_GLOBAL
11668 #  define LT_DLGLOBAL           RTLD_GLOBAL
11669 #else
11670 #  ifdef DL_GLOBAL
11671 #    define LT_DLGLOBAL         DL_GLOBAL
11672 #  else
11673 #    define LT_DLGLOBAL         0
11674 #  endif
11675 #endif
11676
11677 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11678    find out it does not work in some platform. */
11679 #ifndef LT_DLLAZY_OR_NOW
11680 #  ifdef RTLD_LAZY
11681 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11682 #  else
11683 #    ifdef DL_LAZY
11684 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11685 #    else
11686 #      ifdef RTLD_NOW
11687 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11688 #      else
11689 #        ifdef DL_NOW
11690 #          define LT_DLLAZY_OR_NOW      DL_NOW
11691 #        else
11692 #          define LT_DLLAZY_OR_NOW      0
11693 #        endif
11694 #      endif
11695 #    endif
11696 #  endif
11697 #endif
11698
11699 /* When -fvisbility=hidden is used, assume the code has been annotated
11700    correspondingly for the symbols needed.  */
11701 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11702 void fnord () __attribute__((visibility("default")));
11703 #endif
11704
11705 void fnord () { int i=42; }
11706 int main ()
11707 {
11708   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11709   int status = $lt_dlunknown;
11710
11711   if (self)
11712     {
11713       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11714       else
11715         {
11716           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11717           else puts (dlerror ());
11718         }
11719       /* dlclose (self); */
11720     }
11721   else
11722     puts (dlerror ());
11723
11724   return status;
11725 }
11726 _LT_EOF
11727   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11728   (eval $ac_link) 2>&5
11729   ac_status=$?
11730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11731   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11732     (./conftest; exit; ) >&5 2>/dev/null
11733     lt_status=$?
11734     case x$lt_status in
11735       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11736       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11737       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11738     esac
11739   else :
11740     # compilation failed
11741     lt_cv_dlopen_self=no
11742   fi
11743 fi
11744 rm -fr conftest*
11745
11746
11747 fi
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11749 $as_echo "$lt_cv_dlopen_self" >&6; }
11750
11751     if test "x$lt_cv_dlopen_self" = xyes; then
11752       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11753       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11754 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11755 if ${lt_cv_dlopen_self_static+:} false; then :
11756   $as_echo_n "(cached) " >&6
11757 else
11758           if test "$cross_compiling" = yes; then :
11759   lt_cv_dlopen_self_static=cross
11760 else
11761   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11762   lt_status=$lt_dlunknown
11763   cat > conftest.$ac_ext <<_LT_EOF
11764 #line $LINENO "configure"
11765 #include "confdefs.h"
11766
11767 #if HAVE_DLFCN_H
11768 #include <dlfcn.h>
11769 #endif
11770
11771 #include <stdio.h>
11772
11773 #ifdef RTLD_GLOBAL
11774 #  define LT_DLGLOBAL           RTLD_GLOBAL
11775 #else
11776 #  ifdef DL_GLOBAL
11777 #    define LT_DLGLOBAL         DL_GLOBAL
11778 #  else
11779 #    define LT_DLGLOBAL         0
11780 #  endif
11781 #endif
11782
11783 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11784    find out it does not work in some platform. */
11785 #ifndef LT_DLLAZY_OR_NOW
11786 #  ifdef RTLD_LAZY
11787 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11788 #  else
11789 #    ifdef DL_LAZY
11790 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11791 #    else
11792 #      ifdef RTLD_NOW
11793 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11794 #      else
11795 #        ifdef DL_NOW
11796 #          define LT_DLLAZY_OR_NOW      DL_NOW
11797 #        else
11798 #          define LT_DLLAZY_OR_NOW      0
11799 #        endif
11800 #      endif
11801 #    endif
11802 #  endif
11803 #endif
11804
11805 /* When -fvisbility=hidden is used, assume the code has been annotated
11806    correspondingly for the symbols needed.  */
11807 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11808 void fnord () __attribute__((visibility("default")));
11809 #endif
11810
11811 void fnord () { int i=42; }
11812 int main ()
11813 {
11814   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11815   int status = $lt_dlunknown;
11816
11817   if (self)
11818     {
11819       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11820       else
11821         {
11822           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11823           else puts (dlerror ());
11824         }
11825       /* dlclose (self); */
11826     }
11827   else
11828     puts (dlerror ());
11829
11830   return status;
11831 }
11832 _LT_EOF
11833   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11834   (eval $ac_link) 2>&5
11835   ac_status=$?
11836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11837   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11838     (./conftest; exit; ) >&5 2>/dev/null
11839     lt_status=$?
11840     case x$lt_status in
11841       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11842       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11843       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11844     esac
11845   else :
11846     # compilation failed
11847     lt_cv_dlopen_self_static=no
11848   fi
11849 fi
11850 rm -fr conftest*
11851
11852
11853 fi
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11855 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11856     fi
11857
11858     CPPFLAGS="$save_CPPFLAGS"
11859     LDFLAGS="$save_LDFLAGS"
11860     LIBS="$save_LIBS"
11861     ;;
11862   esac
11863
11864   case $lt_cv_dlopen_self in
11865   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11866   *) enable_dlopen_self=unknown ;;
11867   esac
11868
11869   case $lt_cv_dlopen_self_static in
11870   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11871   *) enable_dlopen_self_static=unknown ;;
11872   esac
11873 fi
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891 striplib=
11892 old_striplib=
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11894 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11895 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11896   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11897   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11899 $as_echo "yes" >&6; }
11900 else
11901 # FIXME - insert some real tests, host_os isn't really good enough
11902   case $host_os in
11903   darwin*)
11904     if test -n "$STRIP" ; then
11905       striplib="$STRIP -x"
11906       old_striplib="$STRIP -S"
11907       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11908 $as_echo "yes" >&6; }
11909     else
11910       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11911 $as_echo "no" >&6; }
11912     fi
11913     ;;
11914   *)
11915     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916 $as_echo "no" >&6; }
11917     ;;
11918   esac
11919 fi
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932   # Report which library types will actually be built
11933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11934 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11936 $as_echo "$can_build_shared" >&6; }
11937
11938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11939 $as_echo_n "checking whether to build shared libraries... " >&6; }
11940   test "$can_build_shared" = "no" && enable_shared=no
11941
11942   # On AIX, shared libraries and static libraries use the same namespace, and
11943   # are all built from PIC.
11944   case $host_os in
11945   aix3*)
11946     test "$enable_shared" = yes && enable_static=no
11947     if test -n "$RANLIB"; then
11948       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11949       postinstall_cmds='$RANLIB $lib'
11950     fi
11951     ;;
11952
11953   aix[4-9]*)
11954     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11955       test "$enable_shared" = yes && enable_static=no
11956     fi
11957     ;;
11958   esac
11959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11960 $as_echo "$enable_shared" >&6; }
11961
11962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11963 $as_echo_n "checking whether to build static libraries... " >&6; }
11964   # Make sure either enable_shared or enable_static is yes.
11965   test "$enable_shared" = yes || enable_static=yes
11966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11967 $as_echo "$enable_static" >&6; }
11968
11969
11970
11971
11972 fi
11973 ac_ext=c
11974 ac_cpp='$CPP $CPPFLAGS'
11975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11978
11979 CC="$lt_save_CC"
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993         ac_config_commands="$ac_config_commands libtool"
11994
11995
11996
11997
11998 # Only expand once:
11999
12000
12001
12002 # Checks for libraries.
12003
12004 # Checks for header files.
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12006 $as_echo_n "checking for ANSI C header files... " >&6; }
12007 if ${ac_cv_header_stdc+:} false; then :
12008   $as_echo_n "(cached) " >&6
12009 else
12010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h.  */
12012 #include <stdlib.h>
12013 #include <stdarg.h>
12014 #include <string.h>
12015 #include <float.h>
12016
12017 int
12018 main ()
12019 {
12020
12021   ;
12022   return 0;
12023 }
12024 _ACEOF
12025 if ac_fn_c_try_compile "$LINENO"; then :
12026   ac_cv_header_stdc=yes
12027 else
12028   ac_cv_header_stdc=no
12029 fi
12030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12031
12032 if test $ac_cv_header_stdc = yes; then
12033   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h.  */
12036 #include <string.h>
12037
12038 _ACEOF
12039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12040   $EGREP "memchr" >/dev/null 2>&1; then :
12041
12042 else
12043   ac_cv_header_stdc=no
12044 fi
12045 rm -f conftest*
12046
12047 fi
12048
12049 if test $ac_cv_header_stdc = yes; then
12050   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h.  */
12053 #include <stdlib.h>
12054
12055 _ACEOF
12056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12057   $EGREP "free" >/dev/null 2>&1; then :
12058
12059 else
12060   ac_cv_header_stdc=no
12061 fi
12062 rm -f conftest*
12063
12064 fi
12065
12066 if test $ac_cv_header_stdc = yes; then
12067   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12068   if test "$cross_compiling" = yes; then :
12069   :
12070 else
12071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h.  */
12073 #include <ctype.h>
12074 #include <stdlib.h>
12075 #if ((' ' & 0x0FF) == 0x020)
12076 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12077 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12078 #else
12079 # define ISLOWER(c) \
12080                    (('a' <= (c) && (c) <= 'i') \
12081                      || ('j' <= (c) && (c) <= 'r') \
12082                      || ('s' <= (c) && (c) <= 'z'))
12083 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12084 #endif
12085
12086 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12087 int
12088 main ()
12089 {
12090   int i;
12091   for (i = 0; i < 256; i++)
12092     if (XOR (islower (i), ISLOWER (i))
12093         || toupper (i) != TOUPPER (i))
12094       return 2;
12095   return 0;
12096 }
12097 _ACEOF
12098 if ac_fn_c_try_run "$LINENO"; then :
12099
12100 else
12101   ac_cv_header_stdc=no
12102 fi
12103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12104   conftest.$ac_objext conftest.beam conftest.$ac_ext
12105 fi
12106
12107 fi
12108 fi
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12110 $as_echo "$ac_cv_header_stdc" >&6; }
12111 if test $ac_cv_header_stdc = yes; then
12112
12113 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12114
12115 fi
12116
12117 for ac_header in limits.h stdlib.h string.h sys/time.h unistd.h
12118 do :
12119   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12120 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12121 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12122   cat >>confdefs.h <<_ACEOF
12123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12124 _ACEOF
12125
12126 fi
12127
12128 done
12129
12130
12131 # Checks for typedefs, structures, and compiler characteristics.
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12133 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12134 if ${ac_cv_header_stdbool_h+:} false; then :
12135   $as_echo_n "(cached) " >&6
12136 else
12137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h.  */
12139
12140              #include <stdbool.h>
12141              #ifndef bool
12142               "error: bool is not defined"
12143              #endif
12144              #ifndef false
12145               "error: false is not defined"
12146              #endif
12147              #if false
12148               "error: false is not 0"
12149              #endif
12150              #ifndef true
12151               "error: true is not defined"
12152              #endif
12153              #if true != 1
12154               "error: true is not 1"
12155              #endif
12156              #ifndef __bool_true_false_are_defined
12157               "error: __bool_true_false_are_defined is not defined"
12158              #endif
12159
12160              struct s { _Bool s: 1; _Bool t; } s;
12161
12162              char a[true == 1 ? 1 : -1];
12163              char b[false == 0 ? 1 : -1];
12164              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12165              char d[(bool) 0.5 == true ? 1 : -1];
12166              /* See body of main program for 'e'.  */
12167              char f[(_Bool) 0.0 == false ? 1 : -1];
12168              char g[true];
12169              char h[sizeof (_Bool)];
12170              char i[sizeof s.t];
12171              enum { j = false, k = true, l = false * true, m = true * 256 };
12172              /* The following fails for
12173                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
12174              _Bool n[m];
12175              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
12176              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
12177              /* Catch a bug in an HP-UX C compiler.  See
12178                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
12179                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
12180               */
12181              _Bool q = true;
12182              _Bool *pq = &q;
12183
12184 int
12185 main ()
12186 {
12187
12188              bool e = &s;
12189              *pq |= q;
12190              *pq |= ! q;
12191              /* Refer to every declared value, to avoid compiler optimizations.  */
12192              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
12193                      + !m + !n + !o + !p + !q + !pq);
12194
12195   ;
12196   return 0;
12197 }
12198 _ACEOF
12199 if ac_fn_c_try_compile "$LINENO"; then :
12200   ac_cv_header_stdbool_h=yes
12201 else
12202   ac_cv_header_stdbool_h=no
12203 fi
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205 fi
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
12207 $as_echo "$ac_cv_header_stdbool_h" >&6; }
12208    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
12209 if test "x$ac_cv_type__Bool" = xyes; then :
12210
12211 cat >>confdefs.h <<_ACEOF
12212 #define HAVE__BOOL 1
12213 _ACEOF
12214
12215
12216 fi
12217
12218
12219 if test $ac_cv_header_stdbool_h = yes; then
12220
12221 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
12222
12223 fi
12224
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12226 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12227 if ${ac_cv_c_const+:} false; then :
12228   $as_echo_n "(cached) " >&6
12229 else
12230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h.  */
12232
12233 int
12234 main ()
12235 {
12236
12237 #ifndef __cplusplus
12238   /* Ultrix mips cc rejects this sort of thing.  */
12239   typedef int charset[2];
12240   const charset cs = { 0, 0 };
12241   /* SunOS 4.1.1 cc rejects this.  */
12242   char const *const *pcpcc;
12243   char **ppc;
12244   /* NEC SVR4.0.2 mips cc rejects this.  */
12245   struct point {int x, y;};
12246   static struct point const zero = {0,0};
12247   /* AIX XL C 1.02.0.0 rejects this.
12248      It does not let you subtract one const X* pointer from another in
12249      an arm of an if-expression whose if-part is not a constant
12250      expression */
12251   const char *g = "string";
12252   pcpcc = &g + (g ? g-g : 0);
12253   /* HPUX 7.0 cc rejects these. */
12254   ++pcpcc;
12255   ppc = (char**) pcpcc;
12256   pcpcc = (char const *const *) ppc;
12257   { /* SCO 3.2v4 cc rejects this sort of thing.  */
12258     char tx;
12259     char *t = &tx;
12260     char const *s = 0 ? (char *) 0 : (char const *) 0;
12261
12262     *t++ = 0;
12263     if (s) return 0;
12264   }
12265   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12266     int x[] = {25, 17};
12267     const int *foo = &x[0];
12268     ++foo;
12269   }
12270   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12271     typedef const int *iptr;
12272     iptr p = 0;
12273     ++p;
12274   }
12275   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12276        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12277     struct s { int j; const int *ap[3]; } bx;
12278     struct s *b = &bx; b->j = 5;
12279   }
12280   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12281     const int foo = 10;
12282     if (!foo) return 0;
12283   }
12284   return !cs[0] && !zero.x;
12285 #endif
12286
12287   ;
12288   return 0;
12289 }
12290 _ACEOF
12291 if ac_fn_c_try_compile "$LINENO"; then :
12292   ac_cv_c_const=yes
12293 else
12294   ac_cv_c_const=no
12295 fi
12296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12297 fi
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12299 $as_echo "$ac_cv_c_const" >&6; }
12300 if test $ac_cv_c_const = no; then
12301
12302 $as_echo "#define const /**/" >>confdefs.h
12303
12304 fi
12305
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12307 $as_echo_n "checking for inline... " >&6; }
12308 if ${ac_cv_c_inline+:} false; then :
12309   $as_echo_n "(cached) " >&6
12310 else
12311   ac_cv_c_inline=no
12312 for ac_kw in inline __inline__ __inline; do
12313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h.  */
12315 #ifndef __cplusplus
12316 typedef int foo_t;
12317 static $ac_kw foo_t static_foo () {return 0; }
12318 $ac_kw foo_t foo () {return 0; }
12319 #endif
12320
12321 _ACEOF
12322 if ac_fn_c_try_compile "$LINENO"; then :
12323   ac_cv_c_inline=$ac_kw
12324 fi
12325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12326   test "$ac_cv_c_inline" != no && break
12327 done
12328
12329 fi
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12331 $as_echo "$ac_cv_c_inline" >&6; }
12332
12333 case $ac_cv_c_inline in
12334   inline | yes) ;;
12335   *)
12336     case $ac_cv_c_inline in
12337       no) ac_val=;;
12338       *) ac_val=$ac_cv_c_inline;;
12339     esac
12340     cat >>confdefs.h <<_ACEOF
12341 #ifndef __cplusplus
12342 #define inline $ac_val
12343 #endif
12344 _ACEOF
12345     ;;
12346 esac
12347
12348 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12349 if test "x$ac_cv_type_size_t" = xyes; then :
12350
12351 else
12352
12353 cat >>confdefs.h <<_ACEOF
12354 #define size_t unsigned int
12355 _ACEOF
12356
12357 fi
12358
12359
12360
12361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
12362 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
12363 if ${ac_cv_type_long_double_wider+:} false; then :
12364   $as_echo_n "(cached) " >&6
12365 else
12366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h.  */
12368 #include <float.h>
12369             long double const a[] =
12370               {
12371                  0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
12372                  LDBL_MIN, LDBL_MAX, LDBL_EPSILON
12373               };
12374             long double
12375             f (long double x)
12376             {
12377                return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
12378                         + (x ? f (x) : 'c'));
12379             }
12380
12381 int
12382 main ()
12383 {
12384 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
12385                    + (DBL_MANT_DIG < LDBL_MANT_DIG)
12386                    - (LDBL_MAX_EXP < DBL_MAX_EXP)
12387                    - (LDBL_MANT_DIG < DBL_MANT_DIG)))
12388             && (int) LDBL_EPSILON == 0
12389           )];
12390 test_array [0] = 0;
12391 return test_array [0];
12392
12393   ;
12394   return 0;
12395 }
12396 _ACEOF
12397 if ac_fn_c_try_compile "$LINENO"; then :
12398   ac_cv_type_long_double_wider=yes
12399 else
12400   ac_cv_type_long_double_wider=no
12401 fi
12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 fi
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
12405 $as_echo "$ac_cv_type_long_double_wider" >&6; }
12406   if test $ac_cv_type_long_double_wider = yes; then
12407
12408 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
12409
12410   fi
12411
12412     ac_cv_c_long_double=$ac_cv_type_long_double_wider
12413     if test $ac_cv_c_long_double = yes; then
12414
12415 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12416
12417     fi
12418
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12420 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12421 if ${ac_cv_header_time+:} false; then :
12422   $as_echo_n "(cached) " >&6
12423 else
12424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12425 /* end confdefs.h.  */
12426 #include <sys/types.h>
12427 #include <sys/time.h>
12428 #include <time.h>
12429
12430 int
12431 main ()
12432 {
12433 if ((struct tm *) 0)
12434 return 0;
12435   ;
12436   return 0;
12437 }
12438 _ACEOF
12439 if ac_fn_c_try_compile "$LINENO"; then :
12440   ac_cv_header_time=yes
12441 else
12442   ac_cv_header_time=no
12443 fi
12444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12445 fi
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12447 $as_echo "$ac_cv_header_time" >&6; }
12448 if test $ac_cv_header_time = yes; then
12449
12450 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12451
12452 fi
12453
12454 ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default"
12455 if test "x$ac_cv_type_u_char" = xyes; then :
12456
12457 cat >>confdefs.h <<_ACEOF
12458 #define HAVE_U_CHAR 1
12459 _ACEOF
12460
12461
12462 fi
12463 ac_fn_c_check_type "$LINENO" "u_short" "ac_cv_type_u_short" "$ac_includes_default"
12464 if test "x$ac_cv_type_u_short" = xyes; then :
12465
12466 cat >>confdefs.h <<_ACEOF
12467 #define HAVE_U_SHORT 1
12468 _ACEOF
12469
12470
12471 fi
12472 ac_fn_c_check_type "$LINENO" "u_int" "ac_cv_type_u_int" "$ac_includes_default"
12473 if test "x$ac_cv_type_u_int" = xyes; then :
12474
12475 cat >>confdefs.h <<_ACEOF
12476 #define HAVE_U_INT 1
12477 _ACEOF
12478
12479
12480 fi
12481 ac_fn_c_check_type "$LINENO" "u_long" "ac_cv_type_u_long" "$ac_includes_default"
12482 if test "x$ac_cv_type_u_long" = xyes; then :
12483
12484 cat >>confdefs.h <<_ACEOF
12485 #define HAVE_U_LONG 1
12486 _ACEOF
12487
12488
12489 fi
12490
12491 ac_fn_c_check_type "$LINENO" "quad_t" "ac_cv_type_quad_t" "$ac_includes_default"
12492 if test "x$ac_cv_type_quad_t" = xyes; then :
12493
12494 cat >>confdefs.h <<_ACEOF
12495 #define HAVE_QUAD_T 1
12496 _ACEOF
12497
12498 break
12499 fi
12500 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12501 if test "x$ac_cv_type_int64_t" = xyes; then :
12502
12503 cat >>confdefs.h <<_ACEOF
12504 #define HAVE_INT64_T 1
12505 _ACEOF
12506
12507 break
12508 fi
12509 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12510 if test "x$ac_cv_type_long_long" = xyes; then :
12511
12512 cat >>confdefs.h <<_ACEOF
12513 #define HAVE_LONG_LONG 1
12514 _ACEOF
12515
12516 break
12517 fi
12518
12519 ac_fn_c_check_type "$LINENO" "u_quad_t" "ac_cv_type_u_quad_t" "$ac_includes_default"
12520 if test "x$ac_cv_type_u_quad_t" = xyes; then :
12521
12522 cat >>confdefs.h <<_ACEOF
12523 #define HAVE_U_QUAD_T 1
12524 _ACEOF
12525
12526 break
12527 fi
12528 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
12529 if test "x$ac_cv_type_u_int64_t" = xyes; then :
12530
12531 cat >>confdefs.h <<_ACEOF
12532 #define HAVE_U_INT64_T 1
12533 _ACEOF
12534
12535 break
12536 fi
12537 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
12538 if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
12539
12540 cat >>confdefs.h <<_ACEOF
12541 #define HAVE_UNSIGNED_LONG_LONG 1
12542 _ACEOF
12543
12544 break
12545 fi
12546
12547
12548 # Checks for library functions.
12549 for ac_header in stdlib.h
12550 do :
12551   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12552 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12553   cat >>confdefs.h <<_ACEOF
12554 #define HAVE_STDLIB_H 1
12555 _ACEOF
12556
12557 fi
12558
12559 done
12560
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12562 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12563 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12564   $as_echo_n "(cached) " >&6
12565 else
12566   if test "$cross_compiling" = yes; then :
12567   ac_cv_func_malloc_0_nonnull=no
12568 else
12569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570 /* end confdefs.h.  */
12571 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12572 # include <stdlib.h>
12573 #else
12574 char *malloc ();
12575 #endif
12576
12577 int
12578 main ()
12579 {
12580 return ! malloc (0);
12581   ;
12582   return 0;
12583 }
12584 _ACEOF
12585 if ac_fn_c_try_run "$LINENO"; then :
12586   ac_cv_func_malloc_0_nonnull=yes
12587 else
12588   ac_cv_func_malloc_0_nonnull=no
12589 fi
12590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12591   conftest.$ac_objext conftest.beam conftest.$ac_ext
12592 fi
12593
12594 fi
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12596 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12597 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12598
12599 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12600
12601 else
12602   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12603
12604    case " $LIBOBJS " in
12605   *" malloc.$ac_objext "* ) ;;
12606   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12607  ;;
12608 esac
12609
12610
12611 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12612
12613 fi
12614
12615
12616 for ac_header in stdlib.h
12617 do :
12618   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12619 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12620   cat >>confdefs.h <<_ACEOF
12621 #define HAVE_STDLIB_H 1
12622 _ACEOF
12623
12624 fi
12625
12626 done
12627
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
12629 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
12630 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
12631   $as_echo_n "(cached) " >&6
12632 else
12633   if test "$cross_compiling" = yes; then :
12634   ac_cv_func_realloc_0_nonnull=no
12635 else
12636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12637 /* end confdefs.h.  */
12638 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12639 # include <stdlib.h>
12640 #else
12641 char *realloc ();
12642 #endif
12643
12644 int
12645 main ()
12646 {
12647 return ! realloc (0, 0);
12648   ;
12649   return 0;
12650 }
12651 _ACEOF
12652 if ac_fn_c_try_run "$LINENO"; then :
12653   ac_cv_func_realloc_0_nonnull=yes
12654 else
12655   ac_cv_func_realloc_0_nonnull=no
12656 fi
12657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12658   conftest.$ac_objext conftest.beam conftest.$ac_ext
12659 fi
12660
12661 fi
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
12663 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
12664 if test $ac_cv_func_realloc_0_nonnull = yes; then :
12665
12666 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
12667
12668 else
12669   $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
12670
12671    case " $LIBOBJS " in
12672   *" realloc.$ac_objext "* ) ;;
12673   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
12674  ;;
12675 esac
12676
12677
12678 $as_echo "#define realloc rpl_realloc" >>confdefs.h
12679
12680 fi
12681
12682
12683 for ac_func in vprintf
12684 do :
12685   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12686 if test "x$ac_cv_func_vprintf" = xyes; then :
12687   cat >>confdefs.h <<_ACEOF
12688 #define HAVE_VPRINTF 1
12689 _ACEOF
12690
12691 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12692 if test "x$ac_cv_func__doprnt" = xyes; then :
12693
12694 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12695
12696 fi
12697
12698 fi
12699 done
12700
12701
12702 for ac_func in gettimeofday memset strcasecmp strerror strncasecmp strrchr strstr
12703 do :
12704   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12705 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12706 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12707   cat >>confdefs.h <<_ACEOF
12708 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12709 _ACEOF
12710
12711 fi
12712 done
12713
12714 for ac_func in atexit on_exit
12715 do :
12716   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12717 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12718 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12719   cat >>confdefs.h <<_ACEOF
12720 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12721 _ACEOF
12722  break
12723 fi
12724 done
12725
12726 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
12727 if test "x$ac_cv_func_strdup" = xyes; then :
12728   $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
12729
12730 else
12731   case " $LIBOBJS " in
12732   *" strdup.$ac_objext "* ) ;;
12733   *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
12734  ;;
12735 esac
12736
12737 fi
12738
12739
12740
12741 # Initialize the test suite and build position independent wrappers.
12742 ac_config_files="$ac_config_files Makefile src/Makefile src/ccunit/Makefile src/tools/Makefile doc/Makefile doc/Doxyfile tests/Makefile examples/Makefile examples/complex/Makefile"
12743
12744
12745 cat >confcache <<\_ACEOF
12746 # This file is a shell script that caches the results of configure
12747 # tests run on this system so they can be shared between configure
12748 # scripts and configure runs, see configure's option --config-cache.
12749 # It is not useful on other systems.  If it contains results you don't
12750 # want to keep, you may remove or edit it.
12751 #
12752 # config.status only pays attention to the cache file if you give it
12753 # the --recheck option to rerun configure.
12754 #
12755 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12756 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12757 # following values.
12758
12759 _ACEOF
12760
12761 # The following way of writing the cache mishandles newlines in values,
12762 # but we know of no workaround that is simple, portable, and efficient.
12763 # So, we kill variables containing newlines.
12764 # Ultrix sh set writes to stderr and can't be redirected directly,
12765 # and sets the high bit in the cache file unless we assign to the vars.
12766 (
12767   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12768     eval ac_val=\$$ac_var
12769     case $ac_val in #(
12770     *${as_nl}*)
12771       case $ac_var in #(
12772       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12773 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12774       esac
12775       case $ac_var in #(
12776       _ | IFS | as_nl) ;; #(
12777       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12778       *) { eval $ac_var=; unset $ac_var;} ;;
12779       esac ;;
12780     esac
12781   done
12782
12783   (set) 2>&1 |
12784     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12785     *${as_nl}ac_space=\ *)
12786       # `set' does not quote correctly, so add quotes: double-quote
12787       # substitution turns \\\\ into \\, and sed turns \\ into \.
12788       sed -n \
12789         "s/'/'\\\\''/g;
12790           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12791       ;; #(
12792     *)
12793       # `set' quotes correctly as required by POSIX, so do not add quotes.
12794       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12795       ;;
12796     esac |
12797     sort
12798 ) |
12799   sed '
12800      /^ac_cv_env_/b end
12801      t clear
12802      :clear
12803      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12804      t end
12805      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12806      :end' >>confcache
12807 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12808   if test -w "$cache_file"; then
12809     if test "x$cache_file" != "x/dev/null"; then
12810       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12811 $as_echo "$as_me: updating cache $cache_file" >&6;}
12812       if test ! -f "$cache_file" || test -h "$cache_file"; then
12813         cat confcache >"$cache_file"
12814       else
12815         case $cache_file in #(
12816         */* | ?:*)
12817           mv -f confcache "$cache_file"$$ &&
12818           mv -f "$cache_file"$$ "$cache_file" ;; #(
12819         *)
12820           mv -f confcache "$cache_file" ;;
12821         esac
12822       fi
12823     fi
12824   else
12825     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12826 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12827   fi
12828 fi
12829 rm -f confcache
12830
12831 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12832 # Let make expand exec_prefix.
12833 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12834
12835 DEFS=-DHAVE_CONFIG_H
12836
12837 ac_libobjs=
12838 ac_ltlibobjs=
12839 U=
12840 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12841   # 1. Remove the extension, and $U if already installed.
12842   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12843   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12844   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12845   #    will be set to the directory where LIBOBJS objects are built.
12846   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12847   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12848 done
12849 LIBOBJS=$ac_libobjs
12850
12851 LTLIBOBJS=$ac_ltlibobjs
12852
12853
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12855 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12856    if test -n "$am_sleep_pid"; then
12857      # Hide warnings about reused PIDs.
12858      wait $am_sleep_pid 2>/dev/null
12859    fi
12860    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12861 $as_echo "done" >&6; }
12862  if test -n "$EXEEXT"; then
12863   am__EXEEXT_TRUE=
12864   am__EXEEXT_FALSE='#'
12865 else
12866   am__EXEEXT_TRUE='#'
12867   am__EXEEXT_FALSE=
12868 fi
12869
12870 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12871   as_fn_error $? "conditional \"AMDEP\" was never defined.
12872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12873 fi
12874 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12875   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12877 fi
12878 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12879   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12881 fi
12882 if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
12883   as_fn_error $? "conditional \"DOC\" was never defined.
12884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12885 fi
12886 if test -z "${ENABLE_JADOC_TRUE}" && test -z "${ENABLE_JADOC_FALSE}"; then
12887   as_fn_error $? "conditional \"ENABLE_JADOC\" was never defined.
12888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12889 fi
12890
12891 : "${CONFIG_STATUS=./config.status}"
12892 ac_write_fail=0
12893 ac_clean_files_save=$ac_clean_files
12894 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12896 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12897 as_write_fail=0
12898 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12899 #! $SHELL
12900 # Generated by $as_me.
12901 # Run this file to recreate the current configuration.
12902 # Compiler output produced by configure, useful for debugging
12903 # configure, is in config.log if it exists.
12904
12905 debug=false
12906 ac_cs_recheck=false
12907 ac_cs_silent=false
12908
12909 SHELL=\${CONFIG_SHELL-$SHELL}
12910 export SHELL
12911 _ASEOF
12912 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12913 ## -------------------- ##
12914 ## M4sh Initialization. ##
12915 ## -------------------- ##
12916
12917 # Be more Bourne compatible
12918 DUALCASE=1; export DUALCASE # for MKS sh
12919 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12920   emulate sh
12921   NULLCMD=:
12922   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12923   # is contrary to our usage.  Disable this feature.
12924   alias -g '${1+"$@"}'='"$@"'
12925   setopt NO_GLOB_SUBST
12926 else
12927   case `(set -o) 2>/dev/null` in #(
12928   *posix*) :
12929     set -o posix ;; #(
12930   *) :
12931      ;;
12932 esac
12933 fi
12934
12935
12936 as_nl='
12937 '
12938 export as_nl
12939 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12940 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12941 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12942 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12943 # Prefer a ksh shell builtin over an external printf program on Solaris,
12944 # but without wasting forks for bash or zsh.
12945 if test -z "$BASH_VERSION$ZSH_VERSION" \
12946     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12947   as_echo='print -r --'
12948   as_echo_n='print -rn --'
12949 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12950   as_echo='printf %s\n'
12951   as_echo_n='printf %s'
12952 else
12953   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12954     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12955     as_echo_n='/usr/ucb/echo -n'
12956   else
12957     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12958     as_echo_n_body='eval
12959       arg=$1;
12960       case $arg in #(
12961       *"$as_nl"*)
12962         expr "X$arg" : "X\\(.*\\)$as_nl";
12963         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12964       esac;
12965       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12966     '
12967     export as_echo_n_body
12968     as_echo_n='sh -c $as_echo_n_body as_echo'
12969   fi
12970   export as_echo_body
12971   as_echo='sh -c $as_echo_body as_echo'
12972 fi
12973
12974 # The user is always right.
12975 if test "${PATH_SEPARATOR+set}" != set; then
12976   PATH_SEPARATOR=:
12977   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12978     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12979       PATH_SEPARATOR=';'
12980   }
12981 fi
12982
12983
12984 # IFS
12985 # We need space, tab and new line, in precisely that order.  Quoting is
12986 # there to prevent editors from complaining about space-tab.
12987 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12988 # splitting by setting IFS to empty value.)
12989 IFS=" ""        $as_nl"
12990
12991 # Find who we are.  Look in the path if we contain no directory separator.
12992 as_myself=
12993 case $0 in #((
12994   *[\\/]* ) as_myself=$0 ;;
12995   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12996 for as_dir in $PATH
12997 do
12998   IFS=$as_save_IFS
12999   test -z "$as_dir" && as_dir=.
13000     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13001   done
13002 IFS=$as_save_IFS
13003
13004      ;;
13005 esac
13006 # We did not find ourselves, most probably we were run as `sh COMMAND'
13007 # in which case we are not to be found in the path.
13008 if test "x$as_myself" = x; then
13009   as_myself=$0
13010 fi
13011 if test ! -f "$as_myself"; then
13012   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13013   exit 1
13014 fi
13015
13016 # Unset variables that we do not need and which cause bugs (e.g. in
13017 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13018 # suppresses any "Segmentation fault" message there.  '((' could
13019 # trigger a bug in pdksh 5.2.14.
13020 for as_var in BASH_ENV ENV MAIL MAILPATH
13021 do eval test x\${$as_var+set} = xset \
13022   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13023 done
13024 PS1='$ '
13025 PS2='> '
13026 PS4='+ '
13027
13028 # NLS nuisances.
13029 LC_ALL=C
13030 export LC_ALL
13031 LANGUAGE=C
13032 export LANGUAGE
13033
13034 # CDPATH.
13035 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13036
13037
13038 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13039 # ----------------------------------------
13040 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13041 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13042 # script with STATUS, using 1 if that was 0.
13043 as_fn_error ()
13044 {
13045   as_status=$1; test $as_status -eq 0 && as_status=1
13046   if test "$4"; then
13047     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13048     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13049   fi
13050   $as_echo "$as_me: error: $2" >&2
13051   as_fn_exit $as_status
13052 } # as_fn_error
13053
13054
13055 # as_fn_set_status STATUS
13056 # -----------------------
13057 # Set $? to STATUS, without forking.
13058 as_fn_set_status ()
13059 {
13060   return $1
13061 } # as_fn_set_status
13062
13063 # as_fn_exit STATUS
13064 # -----------------
13065 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13066 as_fn_exit ()
13067 {
13068   set +e
13069   as_fn_set_status $1
13070   exit $1
13071 } # as_fn_exit
13072
13073 # as_fn_unset VAR
13074 # ---------------
13075 # Portably unset VAR.
13076 as_fn_unset ()
13077 {
13078   { eval $1=; unset $1;}
13079 }
13080 as_unset=as_fn_unset
13081 # as_fn_append VAR VALUE
13082 # ----------------------
13083 # Append the text in VALUE to the end of the definition contained in VAR. Take
13084 # advantage of any shell optimizations that allow amortized linear growth over
13085 # repeated appends, instead of the typical quadratic growth present in naive
13086 # implementations.
13087 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13088   eval 'as_fn_append ()
13089   {
13090     eval $1+=\$2
13091   }'
13092 else
13093   as_fn_append ()
13094   {
13095     eval $1=\$$1\$2
13096   }
13097 fi # as_fn_append
13098
13099 # as_fn_arith ARG...
13100 # ------------------
13101 # Perform arithmetic evaluation on the ARGs, and store the result in the
13102 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13103 # must be portable across $(()) and expr.
13104 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13105   eval 'as_fn_arith ()
13106   {
13107     as_val=$(( $* ))
13108   }'
13109 else
13110   as_fn_arith ()
13111   {
13112     as_val=`expr "$@" || test $? -eq 1`
13113   }
13114 fi # as_fn_arith
13115
13116
13117 if expr a : '\(a\)' >/dev/null 2>&1 &&
13118    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13119   as_expr=expr
13120 else
13121   as_expr=false
13122 fi
13123
13124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13125   as_basename=basename
13126 else
13127   as_basename=false
13128 fi
13129
13130 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13131   as_dirname=dirname
13132 else
13133   as_dirname=false
13134 fi
13135
13136 as_me=`$as_basename -- "$0" ||
13137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13138          X"$0" : 'X\(//\)$' \| \
13139          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13140 $as_echo X/"$0" |
13141     sed '/^.*\/\([^/][^/]*\)\/*$/{
13142             s//\1/
13143             q
13144           }
13145           /^X\/\(\/\/\)$/{
13146             s//\1/
13147             q
13148           }
13149           /^X\/\(\/\).*/{
13150             s//\1/
13151             q
13152           }
13153           s/.*/./; q'`
13154
13155 # Avoid depending upon Character Ranges.
13156 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13157 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13158 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13159 as_cr_digits='0123456789'
13160 as_cr_alnum=$as_cr_Letters$as_cr_digits
13161
13162 ECHO_C= ECHO_N= ECHO_T=
13163 case `echo -n x` in #(((((
13164 -n*)
13165   case `echo 'xy\c'` in
13166   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13167   xy)  ECHO_C='\c';;
13168   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13169        ECHO_T=' ';;
13170   esac;;
13171 *)
13172   ECHO_N='-n';;
13173 esac
13174
13175 rm -f conf$$ conf$$.exe conf$$.file
13176 if test -d conf$$.dir; then
13177   rm -f conf$$.dir/conf$$.file
13178 else
13179   rm -f conf$$.dir
13180   mkdir conf$$.dir 2>/dev/null
13181 fi
13182 if (echo >conf$$.file) 2>/dev/null; then
13183   if ln -s conf$$.file conf$$ 2>/dev/null; then
13184     as_ln_s='ln -s'
13185     # ... but there are two gotchas:
13186     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13187     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13188     # In both cases, we have to default to `cp -pR'.
13189     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13190       as_ln_s='cp -pR'
13191   elif ln conf$$.file conf$$ 2>/dev/null; then
13192     as_ln_s=ln
13193   else
13194     as_ln_s='cp -pR'
13195   fi
13196 else
13197   as_ln_s='cp -pR'
13198 fi
13199 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13200 rmdir conf$$.dir 2>/dev/null
13201
13202
13203 # as_fn_mkdir_p
13204 # -------------
13205 # Create "$as_dir" as a directory, including parents if necessary.
13206 as_fn_mkdir_p ()
13207 {
13208
13209   case $as_dir in #(
13210   -*) as_dir=./$as_dir;;
13211   esac
13212   test -d "$as_dir" || eval $as_mkdir_p || {
13213     as_dirs=
13214     while :; do
13215       case $as_dir in #(
13216       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13217       *) as_qdir=$as_dir;;
13218       esac
13219       as_dirs="'$as_qdir' $as_dirs"
13220       as_dir=`$as_dirname -- "$as_dir" ||
13221 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13222          X"$as_dir" : 'X\(//\)[^/]' \| \
13223          X"$as_dir" : 'X\(//\)$' \| \
13224          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13225 $as_echo X"$as_dir" |
13226     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13227             s//\1/
13228             q
13229           }
13230           /^X\(\/\/\)[^/].*/{
13231             s//\1/
13232             q
13233           }
13234           /^X\(\/\/\)$/{
13235             s//\1/
13236             q
13237           }
13238           /^X\(\/\).*/{
13239             s//\1/
13240             q
13241           }
13242           s/.*/./; q'`
13243       test -d "$as_dir" && break
13244     done
13245     test -z "$as_dirs" || eval "mkdir $as_dirs"
13246   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13247
13248
13249 } # as_fn_mkdir_p
13250 if mkdir -p . 2>/dev/null; then
13251   as_mkdir_p='mkdir -p "$as_dir"'
13252 else
13253   test -d ./-p && rmdir ./-p
13254   as_mkdir_p=false
13255 fi
13256
13257
13258 # as_fn_executable_p FILE
13259 # -----------------------
13260 # Test if FILE is an executable regular file.
13261 as_fn_executable_p ()
13262 {
13263   test -f "$1" && test -x "$1"
13264 } # as_fn_executable_p
13265 as_test_x='test -x'
13266 as_executable_p=as_fn_executable_p
13267
13268 # Sed expression to map a string onto a valid CPP name.
13269 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13270
13271 # Sed expression to map a string onto a valid variable name.
13272 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13273
13274
13275 exec 6>&1
13276 ## ----------------------------------- ##
13277 ## Main body of $CONFIG_STATUS script. ##
13278 ## ----------------------------------- ##
13279 _ASEOF
13280 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13281
13282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13283 # Save the log message, to keep $0 and so on meaningful, and to
13284 # report actual input values of CONFIG_FILES etc. instead of their
13285 # values after options handling.
13286 ac_log="
13287 This file was extended by CCUnit $as_me 2.1, which was
13288 generated by GNU Autoconf 2.69.  Invocation command line was
13289
13290   CONFIG_FILES    = $CONFIG_FILES
13291   CONFIG_HEADERS  = $CONFIG_HEADERS
13292   CONFIG_LINKS    = $CONFIG_LINKS
13293   CONFIG_COMMANDS = $CONFIG_COMMANDS
13294   $ $0 $@
13295
13296 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13297 "
13298
13299 _ACEOF
13300
13301 case $ac_config_files in *"
13302 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13303 esac
13304
13305 case $ac_config_headers in *"
13306 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13307 esac
13308
13309
13310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13311 # Files that config.status was made for.
13312 config_files="$ac_config_files"
13313 config_headers="$ac_config_headers"
13314 config_commands="$ac_config_commands"
13315
13316 _ACEOF
13317
13318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13319 ac_cs_usage="\
13320 \`$as_me' instantiates files and other configuration actions
13321 from templates according to the current configuration.  Unless the files
13322 and actions are specified as TAGs, all are instantiated by default.
13323
13324 Usage: $0 [OPTION]... [TAG]...
13325
13326   -h, --help       print this help, then exit
13327   -V, --version    print version number and configuration settings, then exit
13328       --config     print configuration, then exit
13329   -q, --quiet, --silent
13330                    do not print progress messages
13331   -d, --debug      don't remove temporary files
13332       --recheck    update $as_me by reconfiguring in the same conditions
13333       --file=FILE[:TEMPLATE]
13334                    instantiate the configuration file FILE
13335       --header=FILE[:TEMPLATE]
13336                    instantiate the configuration header FILE
13337
13338 Configuration files:
13339 $config_files
13340
13341 Configuration headers:
13342 $config_headers
13343
13344 Configuration commands:
13345 $config_commands
13346
13347 Report bugs to <tsntsumi@users.sourceforge.jp>.
13348 CCUnit home page: <http://ccunit.sourceforge.jp>."
13349
13350 _ACEOF
13351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13352 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13353 ac_cs_version="\\
13354 CCUnit config.status 2.1
13355 configured by $0, generated by GNU Autoconf 2.69,
13356   with options \\"\$ac_cs_config\\"
13357
13358 Copyright (C) 2012 Free Software Foundation, Inc.
13359 This config.status script is free software; the Free Software Foundation
13360 gives unlimited permission to copy, distribute and modify it."
13361
13362 ac_pwd='$ac_pwd'
13363 srcdir='$srcdir'
13364 INSTALL='$INSTALL'
13365 MKDIR_P='$MKDIR_P'
13366 AWK='$AWK'
13367 test -n "\$AWK" || AWK=awk
13368 _ACEOF
13369
13370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13371 # The default lists apply if the user does not specify any file.
13372 ac_need_defaults=:
13373 while test $# != 0
13374 do
13375   case $1 in
13376   --*=?*)
13377     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13378     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13379     ac_shift=:
13380     ;;
13381   --*=)
13382     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13383     ac_optarg=
13384     ac_shift=:
13385     ;;
13386   *)
13387     ac_option=$1
13388     ac_optarg=$2
13389     ac_shift=shift
13390     ;;
13391   esac
13392
13393   case $ac_option in
13394   # Handling of the options.
13395   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13396     ac_cs_recheck=: ;;
13397   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13398     $as_echo "$ac_cs_version"; exit ;;
13399   --config | --confi | --conf | --con | --co | --c )
13400     $as_echo "$ac_cs_config"; exit ;;
13401   --debug | --debu | --deb | --de | --d | -d )
13402     debug=: ;;
13403   --file | --fil | --fi | --f )
13404     $ac_shift
13405     case $ac_optarg in
13406     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13407     '') as_fn_error $? "missing file argument" ;;
13408     esac
13409     as_fn_append CONFIG_FILES " '$ac_optarg'"
13410     ac_need_defaults=false;;
13411   --header | --heade | --head | --hea )
13412     $ac_shift
13413     case $ac_optarg in
13414     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13415     esac
13416     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13417     ac_need_defaults=false;;
13418   --he | --h)
13419     # Conflict between --help and --header
13420     as_fn_error $? "ambiguous option: \`$1'
13421 Try \`$0 --help' for more information.";;
13422   --help | --hel | -h )
13423     $as_echo "$ac_cs_usage"; exit ;;
13424   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13425   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13426     ac_cs_silent=: ;;
13427
13428   # This is an error.
13429   -*) as_fn_error $? "unrecognized option: \`$1'
13430 Try \`$0 --help' for more information." ;;
13431
13432   *) as_fn_append ac_config_targets " $1"
13433      ac_need_defaults=false ;;
13434
13435   esac
13436   shift
13437 done
13438
13439 ac_configure_extra_args=
13440
13441 if $ac_cs_silent; then
13442   exec 6>/dev/null
13443   ac_configure_extra_args="$ac_configure_extra_args --silent"
13444 fi
13445
13446 _ACEOF
13447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13448 if \$ac_cs_recheck; then
13449   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13450   shift
13451   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13452   CONFIG_SHELL='$SHELL'
13453   export CONFIG_SHELL
13454   exec "\$@"
13455 fi
13456
13457 _ACEOF
13458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13459 exec 5>>config.log
13460 {
13461   echo
13462   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13463 ## Running $as_me. ##
13464 _ASBOX
13465   $as_echo "$ac_log"
13466 } >&5
13467
13468 _ACEOF
13469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13470 #
13471 # INIT-COMMANDS
13472 #
13473 PACKAGE="$PACKAGE"
13474 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13475
13476
13477 # The HP-UX ksh and POSIX shell print the target directory to stdout
13478 # if CDPATH is set.
13479 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13480
13481 sed_quote_subst='$sed_quote_subst'
13482 double_quote_subst='$double_quote_subst'
13483 delay_variable_subst='$delay_variable_subst'
13484 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13485 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13486 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13487 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13488 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13489 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13490 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13491 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13492 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13493 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13494 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13495 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13496 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13497 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13498 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13499 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13500 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13501 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13502 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13503 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13504 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13505 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13506 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13507 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13508 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13509 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13510 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13511 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13512 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13513 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13514 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13515 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13516 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13517 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13518 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13519 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13520 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13521 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13522 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13523 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13524 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13525 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13526 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13527 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13528 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13529 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13530 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13531 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13532 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13533 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13534 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13535 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13536 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13537 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13538 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13539 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13540 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13541 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13542 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13543 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13544 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13545 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13546 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13547 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13548 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13549 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13550 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13551 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13552 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13553 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13554 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13555 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13556 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13557 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13558 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13559 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13560 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13561 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13562 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13563 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13564 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13565 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13566 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13567 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13568 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13569 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13570 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13571 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13572 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13573 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13574 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13575 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13576 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13577 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13578 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13579 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13580 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13581 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13582 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13583 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13584 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13585 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13586 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13587 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13588 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13589 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13590 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13591 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13592 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13593 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13594 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13595 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13596 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13597 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13598 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13599 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13600 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13601 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13602 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13603 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13604 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13605 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13606
13607 LTCC='$LTCC'
13608 LTCFLAGS='$LTCFLAGS'
13609 compiler='$compiler_DEFAULT'
13610
13611 # A function that is used when there is no print builtin or printf.
13612 func_fallback_echo ()
13613 {
13614   eval 'cat <<_LTECHO_EOF
13615 \$1
13616 _LTECHO_EOF'
13617 }
13618
13619 # Quote evaled strings.
13620 for var in AS \
13621 DLLTOOL \
13622 OBJDUMP \
13623 SHELL \
13624 ECHO \
13625 SED \
13626 GREP \
13627 EGREP \
13628 FGREP \
13629 LD \
13630 NM \
13631 LN_S \
13632 lt_SP2NL \
13633 lt_NL2SP \
13634 reload_flag \
13635 deplibs_check_method \
13636 file_magic_cmd \
13637 AR \
13638 AR_FLAGS \
13639 STRIP \
13640 RANLIB \
13641 CC \
13642 CFLAGS \
13643 compiler \
13644 lt_cv_sys_global_symbol_pipe \
13645 lt_cv_sys_global_symbol_to_cdecl \
13646 lt_cv_sys_global_symbol_to_c_name_address \
13647 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13648 lt_prog_compiler_no_builtin_flag \
13649 lt_prog_compiler_wl \
13650 lt_prog_compiler_pic \
13651 lt_prog_compiler_static \
13652 lt_cv_prog_compiler_c_o \
13653 need_locks \
13654 DSYMUTIL \
13655 NMEDIT \
13656 LIPO \
13657 OTOOL \
13658 OTOOL64 \
13659 shrext_cmds \
13660 export_dynamic_flag_spec \
13661 whole_archive_flag_spec \
13662 compiler_needs_object \
13663 with_gnu_ld \
13664 allow_undefined_flag \
13665 no_undefined_flag \
13666 hardcode_libdir_flag_spec \
13667 hardcode_libdir_flag_spec_ld \
13668 hardcode_libdir_separator \
13669 fix_srcfile_path \
13670 exclude_expsyms \
13671 include_expsyms \
13672 file_list_spec \
13673 variables_saved_for_relink \
13674 libname_spec \
13675 library_names_spec \
13676 soname_spec \
13677 install_override_mode \
13678 finish_eval \
13679 old_striplib \
13680 striplib; do
13681     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13682     *[\\\\\\\`\\"\\\$]*)
13683       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13684       ;;
13685     *)
13686       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13687       ;;
13688     esac
13689 done
13690
13691 # Double-quote double-evaled strings.
13692 for var in reload_cmds \
13693 old_postinstall_cmds \
13694 old_postuninstall_cmds \
13695 old_archive_cmds \
13696 extract_expsyms_cmds \
13697 old_archive_from_new_cmds \
13698 old_archive_from_expsyms_cmds \
13699 archive_cmds \
13700 archive_expsym_cmds \
13701 module_cmds \
13702 module_expsym_cmds \
13703 export_symbols_cmds \
13704 prelink_cmds \
13705 postinstall_cmds \
13706 postuninstall_cmds \
13707 finish_cmds \
13708 sys_lib_search_path_spec \
13709 sys_lib_dlsearch_path_spec; do
13710     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13711     *[\\\\\\\`\\"\\\$]*)
13712       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13713       ;;
13714     *)
13715       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13716       ;;
13717     esac
13718 done
13719
13720 ac_aux_dir='$ac_aux_dir'
13721 xsi_shell='$xsi_shell'
13722 lt_shell_append='$lt_shell_append'
13723
13724 # See if we are running on zsh, and set the options which allow our
13725 # commands through without removal of \ escapes INIT.
13726 if test -n "\${ZSH_VERSION+set}" ; then
13727    setopt NO_GLOB_SUBST
13728 fi
13729
13730
13731     PACKAGE='$PACKAGE'
13732     VERSION='$VERSION'
13733     TIMESTAMP='$TIMESTAMP'
13734     RM='$RM'
13735     ofile='$ofile'
13736
13737
13738
13739
13740 _ACEOF
13741
13742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13743
13744 # Handling of arguments.
13745 for ac_config_target in $ac_config_targets
13746 do
13747   case $ac_config_target in
13748     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
13749     "src/ccunit/config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS src/ccunit/config.h" ;;
13750     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13751     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13752     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13753     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13754     "src/ccunit/Makefile") CONFIG_FILES="$CONFIG_FILES src/ccunit/Makefile" ;;
13755     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
13756     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13757     "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
13758     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13759     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13760     "examples/complex/Makefile") CONFIG_FILES="$CONFIG_FILES examples/complex/Makefile" ;;
13761
13762   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13763   esac
13764 done
13765
13766
13767 # If the user did not use the arguments to specify the items to instantiate,
13768 # then the envvar interface is used.  Set only those that are not.
13769 # We use the long form for the default assignment because of an extremely
13770 # bizarre bug on SunOS 4.1.3.
13771 if $ac_need_defaults; then
13772   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13773   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13774   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13775 fi
13776
13777 # Have a temporary directory for convenience.  Make it in the build tree
13778 # simply because there is no reason against having it here, and in addition,
13779 # creating and moving files from /tmp can sometimes cause problems.
13780 # Hook for its removal unless debugging.
13781 # Note that there is a small window in which the directory will not be cleaned:
13782 # after its creation but before its name has been assigned to `$tmp'.
13783 $debug ||
13784 {
13785   tmp= ac_tmp=
13786   trap 'exit_status=$?
13787   : "${ac_tmp:=$tmp}"
13788   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13789 ' 0
13790   trap 'as_fn_exit 1' 1 2 13 15
13791 }
13792 # Create a (secure) tmp directory for tmp files.
13793
13794 {
13795   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13796   test -d "$tmp"
13797 }  ||
13798 {
13799   tmp=./conf$$-$RANDOM
13800   (umask 077 && mkdir "$tmp")
13801 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13802 ac_tmp=$tmp
13803
13804 # Set up the scripts for CONFIG_FILES section.
13805 # No need to generate them if there are no CONFIG_FILES.
13806 # This happens for instance with `./config.status config.h'.
13807 if test -n "$CONFIG_FILES"; then
13808
13809
13810 ac_cr=`echo X | tr X '\015'`
13811 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13812 # But we know of no other shell where ac_cr would be empty at this
13813 # point, so we can use a bashism as a fallback.
13814 if test "x$ac_cr" = x; then
13815   eval ac_cr=\$\'\\r\'
13816 fi
13817 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13818 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13819   ac_cs_awk_cr='\\r'
13820 else
13821   ac_cs_awk_cr=$ac_cr
13822 fi
13823
13824 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13825 _ACEOF
13826
13827
13828 {
13829   echo "cat >conf$$subs.awk <<_ACEOF" &&
13830   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13831   echo "_ACEOF"
13832 } >conf$$subs.sh ||
13833   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13834 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13835 ac_delim='%!_!# '
13836 for ac_last_try in false false false false false :; do
13837   . ./conf$$subs.sh ||
13838     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13839
13840   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13841   if test $ac_delim_n = $ac_delim_num; then
13842     break
13843   elif $ac_last_try; then
13844     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13845   else
13846     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13847   fi
13848 done
13849 rm -f conf$$subs.sh
13850
13851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13852 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13853 _ACEOF
13854 sed -n '
13855 h
13856 s/^/S["/; s/!.*/"]=/
13857 p
13858 g
13859 s/^[^!]*!//
13860 :repl
13861 t repl
13862 s/'"$ac_delim"'$//
13863 t delim
13864 :nl
13865 h
13866 s/\(.\{148\}\)..*/\1/
13867 t more1
13868 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13869 p
13870 n
13871 b repl
13872 :more1
13873 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13874 p
13875 g
13876 s/.\{148\}//
13877 t nl
13878 :delim
13879 h
13880 s/\(.\{148\}\)..*/\1/
13881 t more2
13882 s/["\\]/\\&/g; s/^/"/; s/$/"/
13883 p
13884 b
13885 :more2
13886 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13887 p
13888 g
13889 s/.\{148\}//
13890 t delim
13891 ' <conf$$subs.awk | sed '
13892 /^[^""]/{
13893   N
13894   s/\n//
13895 }
13896 ' >>$CONFIG_STATUS || ac_write_fail=1
13897 rm -f conf$$subs.awk
13898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13899 _ACAWK
13900 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13901   for (key in S) S_is_set[key] = 1
13902   FS = "\a"
13903
13904 }
13905 {
13906   line = $ 0
13907   nfields = split(line, field, "@")
13908   substed = 0
13909   len = length(field[1])
13910   for (i = 2; i < nfields; i++) {
13911     key = field[i]
13912     keylen = length(key)
13913     if (S_is_set[key]) {
13914       value = S[key]
13915       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13916       len += length(value) + length(field[++i])
13917       substed = 1
13918     } else
13919       len += 1 + keylen
13920   }
13921
13922   print line
13923 }
13924
13925 _ACAWK
13926 _ACEOF
13927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13928 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13929   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13930 else
13931   cat
13932 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13933   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13934 _ACEOF
13935
13936 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13937 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13938 # trailing colons and then remove the whole line if VPATH becomes empty
13939 # (actually we leave an empty line to preserve line numbers).
13940 if test "x$srcdir" = x.; then
13941   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13942 h
13943 s///
13944 s/^/:/
13945 s/[      ]*$/:/
13946 s/:\$(srcdir):/:/g
13947 s/:\${srcdir}:/:/g
13948 s/:@srcdir@:/:/g
13949 s/^:*//
13950 s/:*$//
13951 x
13952 s/\(=[   ]*\).*/\1/
13953 G
13954 s/\n//
13955 s/^[^=]*=[       ]*$//
13956 }'
13957 fi
13958
13959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13960 fi # test -n "$CONFIG_FILES"
13961
13962 # Set up the scripts for CONFIG_HEADERS section.
13963 # No need to generate them if there are no CONFIG_HEADERS.
13964 # This happens for instance with `./config.status Makefile'.
13965 if test -n "$CONFIG_HEADERS"; then
13966 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13967 BEGIN {
13968 _ACEOF
13969
13970 # Transform confdefs.h into an awk script `defines.awk', embedded as
13971 # here-document in config.status, that substitutes the proper values into
13972 # config.h.in to produce config.h.
13973
13974 # Create a delimiter string that does not exist in confdefs.h, to ease
13975 # handling of long lines.
13976 ac_delim='%!_!# '
13977 for ac_last_try in false false :; do
13978   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13979   if test -z "$ac_tt"; then
13980     break
13981   elif $ac_last_try; then
13982     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13983   else
13984     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13985   fi
13986 done
13987
13988 # For the awk script, D is an array of macro values keyed by name,
13989 # likewise P contains macro parameters if any.  Preserve backslash
13990 # newline sequences.
13991
13992 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13993 sed -n '
13994 s/.\{148\}/&'"$ac_delim"'/g
13995 t rset
13996 :rset
13997 s/^[     ]*#[    ]*define[       ][      ]*/ /
13998 t def
13999 d
14000 :def
14001 s/\\$//
14002 t bsnl
14003 s/["\\]/\\&/g
14004 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14005 D["\1"]=" \3"/p
14006 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14007 d
14008 :bsnl
14009 s/["\\]/\\&/g
14010 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14011 D["\1"]=" \3\\\\\\n"\\/p
14012 t cont
14013 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14014 t cont
14015 d
14016 :cont
14017 n
14018 s/.\{148\}/&'"$ac_delim"'/g
14019 t clear
14020 :clear
14021 s/\\$//
14022 t bsnlc
14023 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14024 d
14025 :bsnlc
14026 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14027 b cont
14028 ' <confdefs.h | sed '
14029 s/'"$ac_delim"'/"\\\
14030 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14031
14032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14033   for (key in D) D_is_set[key] = 1
14034   FS = "\a"
14035 }
14036 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14037   line = \$ 0
14038   split(line, arg, " ")
14039   if (arg[1] == "#") {
14040     defundef = arg[2]
14041     mac1 = arg[3]
14042   } else {
14043     defundef = substr(arg[1], 2)
14044     mac1 = arg[2]
14045   }
14046   split(mac1, mac2, "(") #)
14047   macro = mac2[1]
14048   prefix = substr(line, 1, index(line, defundef) - 1)
14049   if (D_is_set[macro]) {
14050     # Preserve the white space surrounding the "#".
14051     print prefix "define", macro P[macro] D[macro]
14052     next
14053   } else {
14054     # Replace #undef with comments.  This is necessary, for example,
14055     # in the case of _POSIX_SOURCE, which is predefined and required
14056     # on some systems where configure will not decide to define it.
14057     if (defundef == "undef") {
14058       print "/*", prefix defundef, macro, "*/"
14059       next
14060     }
14061   }
14062 }
14063 { print }
14064 _ACAWK
14065 _ACEOF
14066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14067   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14068 fi # test -n "$CONFIG_HEADERS"
14069
14070
14071 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14072 shift
14073 for ac_tag
14074 do
14075   case $ac_tag in
14076   :[FHLC]) ac_mode=$ac_tag; continue;;
14077   esac
14078   case $ac_mode$ac_tag in
14079   :[FHL]*:*);;
14080   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14081   :[FH]-) ac_tag=-:-;;
14082   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14083   esac
14084   ac_save_IFS=$IFS
14085   IFS=:
14086   set x $ac_tag
14087   IFS=$ac_save_IFS
14088   shift
14089   ac_file=$1
14090   shift
14091
14092   case $ac_mode in
14093   :L) ac_source=$1;;
14094   :[FH])
14095     ac_file_inputs=
14096     for ac_f
14097     do
14098       case $ac_f in
14099       -) ac_f="$ac_tmp/stdin";;
14100       *) # Look for the file first in the build tree, then in the source tree
14101          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14102          # because $ac_f cannot contain `:'.
14103          test -f "$ac_f" ||
14104            case $ac_f in
14105            [\\/$]*) false;;
14106            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14107            esac ||
14108            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14109       esac
14110       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14111       as_fn_append ac_file_inputs " '$ac_f'"
14112     done
14113
14114     # Let's still pretend it is `configure' which instantiates (i.e., don't
14115     # use $as_me), people would be surprised to read:
14116     #    /* config.h.  Generated by config.status.  */
14117     configure_input='Generated from '`
14118           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14119         `' by configure.'
14120     if test x"$ac_file" != x-; then
14121       configure_input="$ac_file.  $configure_input"
14122       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14123 $as_echo "$as_me: creating $ac_file" >&6;}
14124     fi
14125     # Neutralize special characters interpreted by sed in replacement strings.
14126     case $configure_input in #(
14127     *\&* | *\|* | *\\* )
14128        ac_sed_conf_input=`$as_echo "$configure_input" |
14129        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14130     *) ac_sed_conf_input=$configure_input;;
14131     esac
14132
14133     case $ac_tag in
14134     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14135       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14136     esac
14137     ;;
14138   esac
14139
14140   ac_dir=`$as_dirname -- "$ac_file" ||
14141 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14142          X"$ac_file" : 'X\(//\)[^/]' \| \
14143          X"$ac_file" : 'X\(//\)$' \| \
14144          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14145 $as_echo X"$ac_file" |
14146     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14147             s//\1/
14148             q
14149           }
14150           /^X\(\/\/\)[^/].*/{
14151             s//\1/
14152             q
14153           }
14154           /^X\(\/\/\)$/{
14155             s//\1/
14156             q
14157           }
14158           /^X\(\/\).*/{
14159             s//\1/
14160             q
14161           }
14162           s/.*/./; q'`
14163   as_dir="$ac_dir"; as_fn_mkdir_p
14164   ac_builddir=.
14165
14166 case "$ac_dir" in
14167 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14168 *)
14169   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14170   # A ".." for each directory in $ac_dir_suffix.
14171   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14172   case $ac_top_builddir_sub in
14173   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14174   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14175   esac ;;
14176 esac
14177 ac_abs_top_builddir=$ac_pwd
14178 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14179 # for backward compatibility:
14180 ac_top_builddir=$ac_top_build_prefix
14181
14182 case $srcdir in
14183   .)  # We are building in place.
14184     ac_srcdir=.
14185     ac_top_srcdir=$ac_top_builddir_sub
14186     ac_abs_top_srcdir=$ac_pwd ;;
14187   [\\/]* | ?:[\\/]* )  # Absolute name.
14188     ac_srcdir=$srcdir$ac_dir_suffix;
14189     ac_top_srcdir=$srcdir
14190     ac_abs_top_srcdir=$srcdir ;;
14191   *) # Relative name.
14192     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14193     ac_top_srcdir=$ac_top_build_prefix$srcdir
14194     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14195 esac
14196 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14197
14198
14199   case $ac_mode in
14200   :F)
14201   #
14202   # CONFIG_FILE
14203   #
14204
14205   case $INSTALL in
14206   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14207   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14208   esac
14209   ac_MKDIR_P=$MKDIR_P
14210   case $MKDIR_P in
14211   [\\/$]* | ?:[\\/]* ) ;;
14212   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14213   esac
14214 _ACEOF
14215
14216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14217 # If the template does not know about datarootdir, expand it.
14218 # FIXME: This hack should be removed a few years after 2.60.
14219 ac_datarootdir_hack=; ac_datarootdir_seen=
14220 ac_sed_dataroot='
14221 /datarootdir/ {
14222   p
14223   q
14224 }
14225 /@datadir@/p
14226 /@docdir@/p
14227 /@infodir@/p
14228 /@localedir@/p
14229 /@mandir@/p'
14230 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14231 *datarootdir*) ac_datarootdir_seen=yes;;
14232 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14233   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14234 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14235 _ACEOF
14236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14237   ac_datarootdir_hack='
14238   s&@datadir@&$datadir&g
14239   s&@docdir@&$docdir&g
14240   s&@infodir@&$infodir&g
14241   s&@localedir@&$localedir&g
14242   s&@mandir@&$mandir&g
14243   s&\\\${datarootdir}&$datarootdir&g' ;;
14244 esac
14245 _ACEOF
14246
14247 # Neutralize VPATH when `$srcdir' = `.'.
14248 # Shell code in configure.ac might set extrasub.
14249 # FIXME: do we really want to maintain this feature?
14250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14251 ac_sed_extra="$ac_vpsub
14252 $extrasub
14253 _ACEOF
14254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14255 :t
14256 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14257 s|@configure_input@|$ac_sed_conf_input|;t t
14258 s&@top_builddir@&$ac_top_builddir_sub&;t t
14259 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14260 s&@srcdir@&$ac_srcdir&;t t
14261 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14262 s&@top_srcdir@&$ac_top_srcdir&;t t
14263 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14264 s&@builddir@&$ac_builddir&;t t
14265 s&@abs_builddir@&$ac_abs_builddir&;t t
14266 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14267 s&@INSTALL@&$ac_INSTALL&;t t
14268 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14269 $ac_datarootdir_hack
14270 "
14271 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14272   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14273
14274 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14275   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14276   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14277       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14278   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14279 which seems to be undefined.  Please make sure it is defined" >&5
14280 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14281 which seems to be undefined.  Please make sure it is defined" >&2;}
14282
14283   rm -f "$ac_tmp/stdin"
14284   case $ac_file in
14285   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14286   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14287   esac \
14288   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14289  ;;
14290   :H)
14291   #
14292   # CONFIG_HEADER
14293   #
14294   if test x"$ac_file" != x-; then
14295     {
14296       $as_echo "/* $configure_input  */" \
14297       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14298     } >"$ac_tmp/config.h" \
14299       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14300     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14301       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14302 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14303     else
14304       rm -f "$ac_file"
14305       mv "$ac_tmp/config.h" "$ac_file" \
14306         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14307     fi
14308   else
14309     $as_echo "/* $configure_input  */" \
14310       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14311       || as_fn_error $? "could not create -" "$LINENO" 5
14312   fi
14313 # Compute "$ac_file"'s index in $config_headers.
14314 _am_arg="$ac_file"
14315 _am_stamp_count=1
14316 for _am_header in $config_headers :; do
14317   case $_am_header in
14318     $_am_arg | $_am_arg:* )
14319       break ;;
14320     * )
14321       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14322   esac
14323 done
14324 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14325 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14326          X"$_am_arg" : 'X\(//\)[^/]' \| \
14327          X"$_am_arg" : 'X\(//\)$' \| \
14328          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14329 $as_echo X"$_am_arg" |
14330     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14331             s//\1/
14332             q
14333           }
14334           /^X\(\/\/\)[^/].*/{
14335             s//\1/
14336             q
14337           }
14338           /^X\(\/\/\)$/{
14339             s//\1/
14340             q
14341           }
14342           /^X\(\/\).*/{
14343             s//\1/
14344             q
14345           }
14346           s/.*/./; q'`/stamp-h$_am_stamp_count
14347  ;;
14348
14349   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14350 $as_echo "$as_me: executing $ac_file commands" >&6;}
14351  ;;
14352   esac
14353
14354
14355   case $ac_file$ac_mode in
14356     "src/ccunit/config.h":C) ac_prefix_conf_OUT=`echo src/ccunit/config.h`
14357 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
14358 ac_prefix_conf_PKG=`echo $PACKAGE`
14359 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
14360 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
14361 ac_prefix_conf_INP=`echo "config/config.h" | sed -e 's/ *//'`
14362 if test ".$ac_prefix_conf_INP" = "."; then
14363    for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
14364      case "$ac_file" in
14365         *.h) ac_prefix_conf_INP=$ac_file ;;
14366         *)
14367      esac
14368      test ".$ac_prefix_conf_INP" != "." && break
14369    done
14370 fi
14371 if test ".$ac_prefix_conf_INP" = "."; then
14372    case "$ac_prefix_conf_OUT" in
14373       */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
14374       ;;
14375       *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
14376       ;;
14377       *) ac_prefix_conf_INP=config.h
14378       ;;
14379    esac
14380 fi
14381 if test -z "$ac_prefix_conf_PKG" ; then
14382    as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
14383 else
14384   if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
14385      ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
14386   fi fi
14387   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
14388 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
14389   if test -f $ac_prefix_conf_INP ; then
14390     echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
14391     echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
14392     echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
14393     echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
14394     echo "#endif/" >>conftest.prefix
14395     echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
14396     echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
14397     echo "#endif/" >> conftest.prefix
14398     # now executing _script on _DEF input to create _OUT output file
14399     echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
14400     echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
14401     echo ' ' >>$tmp/pconfig.h
14402     echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
14403
14404     sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
14405     echo ' ' >>$tmp/pconfig.h
14406     echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
14407     echo "#endif" >>$tmp/pconfig.h
14408     if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
14409       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
14410 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
14411     else
14412       ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
14413 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14414          X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
14415          X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
14416          X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
14417 $as_echo X"$ac_prefix_conf_OUT" |
14418     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14419             s//\1/
14420             q
14421           }
14422           /^X\(\/\/\)[^/].*/{
14423             s//\1/
14424             q
14425           }
14426           /^X\(\/\/\)$/{
14427             s//\1/
14428             q
14429           }
14430           /^X\(\/\).*/{
14431             s//\1/
14432             q
14433           }
14434           s/.*/./; q'`
14435       as_dir="$ac_dir"; as_fn_mkdir_p
14436       rm -f "$ac_prefix_conf_OUT"
14437       mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
14438     fi
14439     cp conftest.prefix _configs.sed
14440   else
14441     as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
14442   fi
14443   rm -f conftest.*
14444 fi
14445  ;;
14446     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14447   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14448   # are listed without --file.  Let's play safe and only enable the eval
14449   # if we detect the quoting.
14450   case $CONFIG_FILES in
14451   *\'*) eval set x "$CONFIG_FILES" ;;
14452   *)   set x $CONFIG_FILES ;;
14453   esac
14454   shift
14455   for mf
14456   do
14457     # Strip MF so we end up with the name of the file.
14458     mf=`echo "$mf" | sed -e 's/:.*$//'`
14459     # Check whether this is an Automake generated Makefile or not.
14460     # We used to match only the files named 'Makefile.in', but
14461     # some people rename them; so instead we look at the file content.
14462     # Grep'ing the first line is not enough: some people post-process
14463     # each Makefile.in and add a new line on top of each file to say so.
14464     # Grep'ing the whole file is not good either: AIX grep has a line
14465     # limit of 2048, but all sed's we know have understand at least 4000.
14466     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14467       dirpart=`$as_dirname -- "$mf" ||
14468 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14469          X"$mf" : 'X\(//\)[^/]' \| \
14470          X"$mf" : 'X\(//\)$' \| \
14471          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14472 $as_echo X"$mf" |
14473     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14474             s//\1/
14475             q
14476           }
14477           /^X\(\/\/\)[^/].*/{
14478             s//\1/
14479             q
14480           }
14481           /^X\(\/\/\)$/{
14482             s//\1/
14483             q
14484           }
14485           /^X\(\/\).*/{
14486             s//\1/
14487             q
14488           }
14489           s/.*/./; q'`
14490     else
14491       continue
14492     fi
14493     # Extract the definition of DEPDIR, am__include, and am__quote
14494     # from the Makefile without running 'make'.
14495     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14496     test -z "$DEPDIR" && continue
14497     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14498     test -z "am__include" && continue
14499     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14500     # Find all dependency output files, they are included files with
14501     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14502     # simplest approach to changing $(DEPDIR) to its actual value in the
14503     # expansion.
14504     for file in `sed -n "
14505       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14506          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14507       # Make sure the directory exists.
14508       test -f "$dirpart/$file" && continue
14509       fdir=`$as_dirname -- "$file" ||
14510 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14511          X"$file" : 'X\(//\)[^/]' \| \
14512          X"$file" : 'X\(//\)$' \| \
14513          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14514 $as_echo X"$file" |
14515     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14516             s//\1/
14517             q
14518           }
14519           /^X\(\/\/\)[^/].*/{
14520             s//\1/
14521             q
14522           }
14523           /^X\(\/\/\)$/{
14524             s//\1/
14525             q
14526           }
14527           /^X\(\/\).*/{
14528             s//\1/
14529             q
14530           }
14531           s/.*/./; q'`
14532       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14533       # echo "creating $dirpart/$file"
14534       echo '# dummy' > "$dirpart/$file"
14535     done
14536   done
14537 }
14538  ;;
14539     "libtool":C)
14540
14541     # See if we are running on zsh, and set the options which allow our
14542     # commands through without removal of \ escapes.
14543     if test -n "${ZSH_VERSION+set}" ; then
14544       setopt NO_GLOB_SUBST
14545     fi
14546
14547     cfgfile="${ofile}T"
14548     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14549     $RM "$cfgfile"
14550
14551     cat <<_LT_EOF >> "$cfgfile"
14552 #! $SHELL
14553
14554 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14555 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14556 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14557 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14558 #
14559 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14560 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14561 #                 Inc.
14562 #   Written by Gordon Matzigkeit, 1996
14563 #
14564 #   This file is part of GNU Libtool.
14565 #
14566 # GNU Libtool is free software; you can redistribute it and/or
14567 # modify it under the terms of the GNU General Public License as
14568 # published by the Free Software Foundation; either version 2 of
14569 # the License, or (at your option) any later version.
14570 #
14571 # As a special exception to the GNU General Public License,
14572 # if you distribute this file as part of a program or library that
14573 # is built using GNU Libtool, you may include this file under the
14574 # same distribution terms that you use for the rest of that program.
14575 #
14576 # GNU Libtool is distributed in the hope that it will be useful,
14577 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14578 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14579 # GNU General Public License for more details.
14580 #
14581 # You should have received a copy of the GNU General Public License
14582 # along with GNU Libtool; see the file COPYING.  If not, a copy
14583 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14584 # obtained by writing to the Free Software Foundation, Inc.,
14585 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14586
14587
14588 # The names of the tagged configurations supported by this script.
14589 available_tags=""
14590
14591 # ### BEGIN LIBTOOL CONFIG
14592
14593 # Which release of libtool.m4 was used?
14594 macro_version=$macro_version
14595 macro_revision=$macro_revision
14596
14597 # Assembler program.
14598 AS=$lt_AS
14599
14600 # DLL creation program.
14601 DLLTOOL=$lt_DLLTOOL
14602
14603 # Object dumper program.
14604 OBJDUMP=$lt_OBJDUMP
14605
14606 # Whether or not to build shared libraries.
14607 build_libtool_libs=$enable_shared
14608
14609 # Whether or not to build static libraries.
14610 build_old_libs=$enable_static
14611
14612 # What type of objects to build.
14613 pic_mode=$pic_mode
14614
14615 # Whether or not to optimize for fast installation.
14616 fast_install=$enable_fast_install
14617
14618 # Shell to use when invoking shell scripts.
14619 SHELL=$lt_SHELL
14620
14621 # An echo program that protects backslashes.
14622 ECHO=$lt_ECHO
14623
14624 # The host system.
14625 host_alias=$host_alias
14626 host=$host
14627 host_os=$host_os
14628
14629 # The build system.
14630 build_alias=$build_alias
14631 build=$build
14632 build_os=$build_os
14633
14634 # A sed program that does not truncate output.
14635 SED=$lt_SED
14636
14637 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14638 Xsed="\$SED -e 1s/^X//"
14639
14640 # A grep program that handles long lines.
14641 GREP=$lt_GREP
14642
14643 # An ERE matcher.
14644 EGREP=$lt_EGREP
14645
14646 # A literal string matcher.
14647 FGREP=$lt_FGREP
14648
14649 # A BSD- or MS-compatible name lister.
14650 NM=$lt_NM
14651
14652 # Whether we need soft or hard links.
14653 LN_S=$lt_LN_S
14654
14655 # What is the maximum length of a command?
14656 max_cmd_len=$max_cmd_len
14657
14658 # Object file suffix (normally "o").
14659 objext=$ac_objext
14660
14661 # Executable file suffix (normally "").
14662 exeext=$exeext
14663
14664 # whether the shell understands "unset".
14665 lt_unset=$lt_unset
14666
14667 # turn spaces into newlines.
14668 SP2NL=$lt_lt_SP2NL
14669
14670 # turn newlines into spaces.
14671 NL2SP=$lt_lt_NL2SP
14672
14673 # Method to check whether dependent libraries are shared objects.
14674 deplibs_check_method=$lt_deplibs_check_method
14675
14676 # Command to use when deplibs_check_method == "file_magic".
14677 file_magic_cmd=$lt_file_magic_cmd
14678
14679 # The archiver.
14680 AR=$lt_AR
14681 AR_FLAGS=$lt_AR_FLAGS
14682
14683 # A symbol stripping program.
14684 STRIP=$lt_STRIP
14685
14686 # Commands used to install an old-style archive.
14687 RANLIB=$lt_RANLIB
14688 old_postinstall_cmds=$lt_old_postinstall_cmds
14689 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14690
14691 # Whether to use a lock for old archive extraction.
14692 lock_old_archive_extraction=$lock_old_archive_extraction
14693
14694 # A C compiler.
14695 LTCC=$lt_CC
14696
14697 # LTCC compiler flags.
14698 LTCFLAGS=$lt_CFLAGS
14699
14700 # Take the output of nm and produce a listing of raw symbols and C names.
14701 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14702
14703 # Transform the output of nm in a proper C declaration.
14704 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14705
14706 # Transform the output of nm in a C name address pair.
14707 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14708
14709 # Transform the output of nm in a C name address pair when lib prefix is needed.
14710 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14711
14712 # The name of the directory that contains temporary libtool files.
14713 objdir=$objdir
14714
14715 # Used to examine libraries when file_magic_cmd begins with "file".
14716 MAGIC_CMD=$MAGIC_CMD
14717
14718 # Must we lock files when doing compilation?
14719 need_locks=$lt_need_locks
14720
14721 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14722 DSYMUTIL=$lt_DSYMUTIL
14723
14724 # Tool to change global to local symbols on Mac OS X.
14725 NMEDIT=$lt_NMEDIT
14726
14727 # Tool to manipulate fat objects and archives on Mac OS X.
14728 LIPO=$lt_LIPO
14729
14730 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14731 OTOOL=$lt_OTOOL
14732
14733 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14734 OTOOL64=$lt_OTOOL64
14735
14736 # Old archive suffix (normally "a").
14737 libext=$libext
14738
14739 # Shared library suffix (normally ".so").
14740 shrext_cmds=$lt_shrext_cmds
14741
14742 # The commands to extract the exported symbol list from a shared archive.
14743 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14744
14745 # Variables whose values should be saved in libtool wrapper scripts and
14746 # restored at link time.
14747 variables_saved_for_relink=$lt_variables_saved_for_relink
14748
14749 # Do we need the "lib" prefix for modules?
14750 need_lib_prefix=$need_lib_prefix
14751
14752 # Do we need a version for libraries?
14753 need_version=$need_version
14754
14755 # Library versioning type.
14756 version_type=$version_type
14757
14758 # Shared library runtime path variable.
14759 runpath_var=$runpath_var
14760
14761 # Shared library path variable.
14762 shlibpath_var=$shlibpath_var
14763
14764 # Is shlibpath searched before the hard-coded library search path?
14765 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14766
14767 # Format of library name prefix.
14768 libname_spec=$lt_libname_spec
14769
14770 # List of archive names.  First name is the real one, the rest are links.
14771 # The last name is the one that the linker finds with -lNAME
14772 library_names_spec=$lt_library_names_spec
14773
14774 # The coded name of the library, if different from the real name.
14775 soname_spec=$lt_soname_spec
14776
14777 # Permission mode override for installation of shared libraries.
14778 install_override_mode=$lt_install_override_mode
14779
14780 # Command to use after installation of a shared archive.
14781 postinstall_cmds=$lt_postinstall_cmds
14782
14783 # Command to use after uninstallation of a shared archive.
14784 postuninstall_cmds=$lt_postuninstall_cmds
14785
14786 # Commands used to finish a libtool library installation in a directory.
14787 finish_cmds=$lt_finish_cmds
14788
14789 # As "finish_cmds", except a single script fragment to be evaled but
14790 # not shown.
14791 finish_eval=$lt_finish_eval
14792
14793 # Whether we should hardcode library paths into libraries.
14794 hardcode_into_libs=$hardcode_into_libs
14795
14796 # Compile-time system search path for libraries.
14797 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14798
14799 # Run-time system search path for libraries.
14800 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14801
14802 # Whether dlopen is supported.
14803 dlopen_support=$enable_dlopen
14804
14805 # Whether dlopen of programs is supported.
14806 dlopen_self=$enable_dlopen_self
14807
14808 # Whether dlopen of statically linked programs is supported.
14809 dlopen_self_static=$enable_dlopen_self_static
14810
14811 # Commands to strip libraries.
14812 old_striplib=$lt_old_striplib
14813 striplib=$lt_striplib
14814
14815
14816 # The linker used to build libraries.
14817 LD=$lt_LD
14818
14819 # How to create reloadable object files.
14820 reload_flag=$lt_reload_flag
14821 reload_cmds=$lt_reload_cmds
14822
14823 # Commands used to build an old-style archive.
14824 old_archive_cmds=$lt_old_archive_cmds
14825
14826 # A language specific compiler.
14827 CC=$lt_compiler
14828
14829 # Is the compiler the GNU compiler?
14830 with_gcc=$GCC
14831
14832 # Compiler flag to turn off builtin functions.
14833 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14834
14835 # How to pass a linker flag through the compiler.
14836 wl=$lt_lt_prog_compiler_wl
14837
14838 # Additional compiler flags for building library objects.
14839 pic_flag=$lt_lt_prog_compiler_pic
14840
14841 # Compiler flag to prevent dynamic linking.
14842 link_static_flag=$lt_lt_prog_compiler_static
14843
14844 # Does compiler simultaneously support -c and -o options?
14845 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14846
14847 # Whether or not to add -lc for building shared libraries.
14848 build_libtool_need_lc=$archive_cmds_need_lc
14849
14850 # Whether or not to disallow shared libs when runtime libs are static.
14851 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14852
14853 # Compiler flag to allow reflexive dlopens.
14854 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14855
14856 # Compiler flag to generate shared objects directly from archives.
14857 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14858
14859 # Whether the compiler copes with passing no objects directly.
14860 compiler_needs_object=$lt_compiler_needs_object
14861
14862 # Create an old-style archive from a shared archive.
14863 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14864
14865 # Create a temporary old-style archive to link instead of a shared archive.
14866 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14867
14868 # Commands used to build a shared archive.
14869 archive_cmds=$lt_archive_cmds
14870 archive_expsym_cmds=$lt_archive_expsym_cmds
14871
14872 # Commands used to build a loadable module if different from building
14873 # a shared archive.
14874 module_cmds=$lt_module_cmds
14875 module_expsym_cmds=$lt_module_expsym_cmds
14876
14877 # Whether we are building with GNU ld or not.
14878 with_gnu_ld=$lt_with_gnu_ld
14879
14880 # Flag that allows shared libraries with undefined symbols to be built.
14881 allow_undefined_flag=$lt_allow_undefined_flag
14882
14883 # Flag that enforces no undefined symbols.
14884 no_undefined_flag=$lt_no_undefined_flag
14885
14886 # Flag to hardcode \$libdir into a binary during linking.
14887 # This must work even if \$libdir does not exist
14888 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14889
14890 # If ld is used when linking, flag to hardcode \$libdir into a binary
14891 # during linking.  This must work even if \$libdir does not exist.
14892 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14893
14894 # Whether we need a single "-rpath" flag with a separated argument.
14895 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14896
14897 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14898 # DIR into the resulting binary.
14899 hardcode_direct=$hardcode_direct
14900
14901 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14902 # DIR into the resulting binary and the resulting library dependency is
14903 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14904 # library is relocated.
14905 hardcode_direct_absolute=$hardcode_direct_absolute
14906
14907 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14908 # into the resulting binary.
14909 hardcode_minus_L=$hardcode_minus_L
14910
14911 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14912 # into the resulting binary.
14913 hardcode_shlibpath_var=$hardcode_shlibpath_var
14914
14915 # Set to "yes" if building a shared library automatically hardcodes DIR
14916 # into the library and all subsequent libraries and executables linked
14917 # against it.
14918 hardcode_automatic=$hardcode_automatic
14919
14920 # Set to yes if linker adds runtime paths of dependent libraries
14921 # to runtime path list.
14922 inherit_rpath=$inherit_rpath
14923
14924 # Whether libtool must link a program against all its dependency libraries.
14925 link_all_deplibs=$link_all_deplibs
14926
14927 # Fix the shell variable \$srcfile for the compiler.
14928 fix_srcfile_path=$lt_fix_srcfile_path
14929
14930 # Set to "yes" if exported symbols are required.
14931 always_export_symbols=$always_export_symbols
14932
14933 # The commands to list exported symbols.
14934 export_symbols_cmds=$lt_export_symbols_cmds
14935
14936 # Symbols that should not be listed in the preloaded symbols.
14937 exclude_expsyms=$lt_exclude_expsyms
14938
14939 # Symbols that must always be exported.
14940 include_expsyms=$lt_include_expsyms
14941
14942 # Commands necessary for linking programs (against libraries) with templates.
14943 prelink_cmds=$lt_prelink_cmds
14944
14945 # Specify filename containing input files.
14946 file_list_spec=$lt_file_list_spec
14947
14948 # How to hardcode a shared library path into an executable.
14949 hardcode_action=$hardcode_action
14950
14951 # ### END LIBTOOL CONFIG
14952
14953 _LT_EOF
14954
14955   case $host_os in
14956   aix3*)
14957     cat <<\_LT_EOF >> "$cfgfile"
14958 # AIX sometimes has problems with the GCC collect2 program.  For some
14959 # reason, if we set the COLLECT_NAMES environment variable, the problems
14960 # vanish in a puff of smoke.
14961 if test "X${COLLECT_NAMES+set}" != Xset; then
14962   COLLECT_NAMES=
14963   export COLLECT_NAMES
14964 fi
14965 _LT_EOF
14966     ;;
14967   esac
14968
14969
14970 ltmain="$ac_aux_dir/ltmain.sh"
14971
14972
14973   # We use sed instead of cat because bash on DJGPP gets confused if
14974   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14975   # text mode, it properly converts lines to CR/LF.  This bash problem
14976   # is reportedly fixed, but why not run on old versions too?
14977   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14978     || (rm -f "$cfgfile"; exit 1)
14979
14980   case $xsi_shell in
14981   yes)
14982     cat << \_LT_EOF >> "$cfgfile"
14983
14984 # func_dirname file append nondir_replacement
14985 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14986 # otherwise set result to NONDIR_REPLACEMENT.
14987 func_dirname ()
14988 {
14989   case ${1} in
14990     */*) func_dirname_result="${1%/*}${2}" ;;
14991     *  ) func_dirname_result="${3}" ;;
14992   esac
14993 }
14994
14995 # func_basename file
14996 func_basename ()
14997 {
14998   func_basename_result="${1##*/}"
14999 }
15000
15001 # func_dirname_and_basename file append nondir_replacement
15002 # perform func_basename and func_dirname in a single function
15003 # call:
15004 #   dirname:  Compute the dirname of FILE.  If nonempty,
15005 #             add APPEND to the result, otherwise set result
15006 #             to NONDIR_REPLACEMENT.
15007 #             value returned in "$func_dirname_result"
15008 #   basename: Compute filename of FILE.
15009 #             value retuned in "$func_basename_result"
15010 # Implementation must be kept synchronized with func_dirname
15011 # and func_basename. For efficiency, we do not delegate to
15012 # those functions but instead duplicate the functionality here.
15013 func_dirname_and_basename ()
15014 {
15015   case ${1} in
15016     */*) func_dirname_result="${1%/*}${2}" ;;
15017     *  ) func_dirname_result="${3}" ;;
15018   esac
15019   func_basename_result="${1##*/}"
15020 }
15021
15022 # func_stripname prefix suffix name
15023 # strip PREFIX and SUFFIX off of NAME.
15024 # PREFIX and SUFFIX must not contain globbing or regex special
15025 # characters, hashes, percent signs, but SUFFIX may contain a leading
15026 # dot (in which case that matches only a dot).
15027 func_stripname ()
15028 {
15029   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15030   # positional parameters, so assign one to ordinary parameter first.
15031   func_stripname_result=${3}
15032   func_stripname_result=${func_stripname_result#"${1}"}
15033   func_stripname_result=${func_stripname_result%"${2}"}
15034 }
15035
15036 # func_opt_split
15037 func_opt_split ()
15038 {
15039   func_opt_split_opt=${1%%=*}
15040   func_opt_split_arg=${1#*=}
15041 }
15042
15043 # func_lo2o object
15044 func_lo2o ()
15045 {
15046   case ${1} in
15047     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15048     *)    func_lo2o_result=${1} ;;
15049   esac
15050 }
15051
15052 # func_xform libobj-or-source
15053 func_xform ()
15054 {
15055   func_xform_result=${1%.*}.lo
15056 }
15057
15058 # func_arith arithmetic-term...
15059 func_arith ()
15060 {
15061   func_arith_result=$(( $* ))
15062 }
15063
15064 # func_len string
15065 # STRING may not start with a hyphen.
15066 func_len ()
15067 {
15068   func_len_result=${#1}
15069 }
15070
15071 _LT_EOF
15072     ;;
15073   *) # Bourne compatible functions.
15074     cat << \_LT_EOF >> "$cfgfile"
15075
15076 # func_dirname file append nondir_replacement
15077 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15078 # otherwise set result to NONDIR_REPLACEMENT.
15079 func_dirname ()
15080 {
15081   # Extract subdirectory from the argument.
15082   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15083   if test "X$func_dirname_result" = "X${1}"; then
15084     func_dirname_result="${3}"
15085   else
15086     func_dirname_result="$func_dirname_result${2}"
15087   fi
15088 }
15089
15090 # func_basename file
15091 func_basename ()
15092 {
15093   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15094 }
15095
15096
15097 # func_stripname prefix suffix name
15098 # strip PREFIX and SUFFIX off of NAME.
15099 # PREFIX and SUFFIX must not contain globbing or regex special
15100 # characters, hashes, percent signs, but SUFFIX may contain a leading
15101 # dot (in which case that matches only a dot).
15102 # func_strip_suffix prefix name
15103 func_stripname ()
15104 {
15105   case ${2} in
15106     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15107     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15108   esac
15109 }
15110
15111 # sed scripts:
15112 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15113 my_sed_long_arg='1s/^-[^=]*=//'
15114
15115 # func_opt_split
15116 func_opt_split ()
15117 {
15118   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15119   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15120 }
15121
15122 # func_lo2o object
15123 func_lo2o ()
15124 {
15125   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15126 }
15127
15128 # func_xform libobj-or-source
15129 func_xform ()
15130 {
15131   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15132 }
15133
15134 # func_arith arithmetic-term...
15135 func_arith ()
15136 {
15137   func_arith_result=`expr "$@"`
15138 }
15139
15140 # func_len string
15141 # STRING may not start with a hyphen.
15142 func_len ()
15143 {
15144   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15145 }
15146
15147 _LT_EOF
15148 esac
15149
15150 case $lt_shell_append in
15151   yes)
15152     cat << \_LT_EOF >> "$cfgfile"
15153
15154 # func_append var value
15155 # Append VALUE to the end of shell variable VAR.
15156 func_append ()
15157 {
15158   eval "$1+=\$2"
15159 }
15160 _LT_EOF
15161     ;;
15162   *)
15163     cat << \_LT_EOF >> "$cfgfile"
15164
15165 # func_append var value
15166 # Append VALUE to the end of shell variable VAR.
15167 func_append ()
15168 {
15169   eval "$1=\$$1\$2"
15170 }
15171
15172 _LT_EOF
15173     ;;
15174   esac
15175
15176
15177   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15178     || (rm -f "$cfgfile"; exit 1)
15179
15180   mv -f "$cfgfile" "$ofile" ||
15181     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15182   chmod +x "$ofile"
15183
15184  ;;
15185
15186   esac
15187 done # for ac_tag
15188
15189
15190 as_fn_exit 0
15191 _ACEOF
15192 ac_clean_files=$ac_clean_files_save
15193
15194 test $ac_write_fail = 0 ||
15195   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15196
15197
15198 # configure is writing to config.log, and then calls config.status.
15199 # config.status does its own redirection, appending to config.log.
15200 # Unfortunately, on DOS this fails, as config.log is still kept open
15201 # by configure, so config.status won't be able to write to it; its
15202 # output is simply discarded.  So we exec the FD to /dev/null,
15203 # effectively closing config.log, so it can be properly (re)opened and
15204 # appended to by config.status.  When coming back to configure, we
15205 # need to make the FD available again.
15206 if test "$no_create" != yes; then
15207   ac_cs_success=:
15208   ac_config_status_args=
15209   test "$silent" = yes &&
15210     ac_config_status_args="$ac_config_status_args --quiet"
15211   exec 5>/dev/null
15212   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15213   exec 5>>config.log
15214   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15215   # would make configure fail if this is the last instruction.
15216   $ac_cs_success || as_fn_exit 1
15217 fi
15218 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15219   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15220 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15221 fi
15222