initial checkin
[platform/upstream/libtirpc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libtirpc 0.2.5.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     PATH=/empty FPATH=/empty; export PATH FPATH
205     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libtirpc'
589 PACKAGE_TARNAME='libtirpc'
590 PACKAGE_VERSION='0.2.5'
591 PACKAGE_STRING='libtirpc 0.2.5'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/auth_des.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_default_prefix=/usr
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 CPP
638 OTOOL64
639 OTOOL
640 LIPO
641 NMEDIT
642 DSYMUTIL
643 MANIFEST_TOOL
644 RANLIB
645 ac_ct_AR
646 AR
647 DLLTOOL
648 OBJDUMP
649 LN_S
650 NM
651 ac_ct_DUMPBIN
652 DUMPBIN
653 LD
654 FGREP
655 EGREP
656 GREP
657 SED
658 host_os
659 host_vendor
660 host_cpu
661 host
662 build_os
663 build_vendor
664 build_cpu
665 build
666 LIBTOOL
667 am__fastdepCC_FALSE
668 am__fastdepCC_TRUE
669 CCDEPMODE
670 am__nodep
671 AMDEPBACKSLASH
672 AMDEP_FALSE
673 AMDEP_TRUE
674 am__quote
675 am__include
676 DEPDIR
677 OBJEXT
678 EXEEXT
679 ac_ct_CC
680 CPPFLAGS
681 LDFLAGS
682 CFLAGS
683 CC
684 INET6_FALSE
685 INET6_TRUE
686 GSSAPI_LIBS
687 GSSAPI_CFLAGS
688 GSS_FALSE
689 GSS_TRUE
690 AM_BACKSLASH
691 AM_DEFAULT_VERBOSITY
692 AM_DEFAULT_V
693 AM_V
694 am__untar
695 am__tar
696 AMTAR
697 am__leading_dot
698 SET_MAKE
699 AWK
700 mkdir_p
701 MKDIR_P
702 INSTALL_STRIP_PROGRAM
703 STRIP
704 install_sh
705 MAKEINFO
706 AUTOHEADER
707 AUTOMAKE
708 AUTOCONF
709 ACLOCAL
710 VERSION
711 PACKAGE
712 CYGPATH_W
713 am__isrc
714 INSTALL_DATA
715 INSTALL_SCRIPT
716 INSTALL_PROGRAM
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 enable_silent_rules
759 enable_gssapi
760 enable_ipv6
761 enable_dependency_tracking
762 enable_shared
763 enable_static
764 with_pic
765 enable_fast_install
766 with_gnu_ld
767 with_sysroot
768 enable_libtool_lock
769 '
770       ac_precious_vars='build_alias
771 host_alias
772 target_alias
773 CC
774 CFLAGS
775 LDFLAGS
776 LIBS
777 CPPFLAGS
778 CPP'
779
780
781 # Initialize some variables set by options.
782 ac_init_help=
783 ac_init_version=false
784 ac_unrecognized_opts=
785 ac_unrecognized_sep=
786 # The variables have the same names as the options, with
787 # dashes changed to underlines.
788 cache_file=/dev/null
789 exec_prefix=NONE
790 no_create=
791 no_recursion=
792 prefix=NONE
793 program_prefix=NONE
794 program_suffix=NONE
795 program_transform_name=s,x,x,
796 silent=
797 site=
798 srcdir=
799 verbose=
800 x_includes=NONE
801 x_libraries=NONE
802
803 # Installation directory options.
804 # These are left unexpanded so users can "make install exec_prefix=/foo"
805 # and all the variables that are supposed to be based on exec_prefix
806 # by default will actually change.
807 # Use braces instead of parens because sh, perl, etc. also accept them.
808 # (The list follows the same order as the GNU Coding Standards.)
809 bindir='${exec_prefix}/bin'
810 sbindir='${exec_prefix}/sbin'
811 libexecdir='${exec_prefix}/libexec'
812 datarootdir='${prefix}/share'
813 datadir='${datarootdir}'
814 sysconfdir='${prefix}/etc'
815 sharedstatedir='${prefix}/com'
816 localstatedir='${prefix}/var'
817 includedir='${prefix}/include'
818 oldincludedir='/usr/include'
819 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820 infodir='${datarootdir}/info'
821 htmldir='${docdir}'
822 dvidir='${docdir}'
823 pdfdir='${docdir}'
824 psdir='${docdir}'
825 libdir='${exec_prefix}/lib'
826 localedir='${datarootdir}/locale'
827 mandir='${datarootdir}/man'
828
829 ac_prev=
830 ac_dashdash=
831 for ac_option
832 do
833   # If the previous option needs an argument, assign it.
834   if test -n "$ac_prev"; then
835     eval $ac_prev=\$ac_option
836     ac_prev=
837     continue
838   fi
839
840   case $ac_option in
841   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842   *=)   ac_optarg= ;;
843   *)    ac_optarg=yes ;;
844   esac
845
846   # Accept the important Cygnus configure options, so we can diagnose typos.
847
848   case $ac_dashdash$ac_option in
849   --)
850     ac_dashdash=yes ;;
851
852   -bindir | --bindir | --bindi | --bind | --bin | --bi)
853     ac_prev=bindir ;;
854   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855     bindir=$ac_optarg ;;
856
857   -build | --build | --buil | --bui | --bu)
858     ac_prev=build_alias ;;
859   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860     build_alias=$ac_optarg ;;
861
862   -cache-file | --cache-file | --cache-fil | --cache-fi \
863   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864     ac_prev=cache_file ;;
865   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867     cache_file=$ac_optarg ;;
868
869   --config-cache | -C)
870     cache_file=config.cache ;;
871
872   -datadir | --datadir | --datadi | --datad)
873     ac_prev=datadir ;;
874   -datadir=* | --datadir=* | --datadi=* | --datad=*)
875     datadir=$ac_optarg ;;
876
877   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878   | --dataroo | --dataro | --datar)
879     ac_prev=datarootdir ;;
880   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882     datarootdir=$ac_optarg ;;
883
884   -disable-* | --disable-*)
885     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886     # Reject names that are not valid shell variable names.
887     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888       as_fn_error $? "invalid feature name: $ac_useropt"
889     ac_useropt_orig=$ac_useropt
890     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891     case $ac_user_opts in
892       *"
893 "enable_$ac_useropt"
894 "*) ;;
895       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896          ac_unrecognized_sep=', ';;
897     esac
898     eval enable_$ac_useropt=no ;;
899
900   -docdir | --docdir | --docdi | --doc | --do)
901     ac_prev=docdir ;;
902   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903     docdir=$ac_optarg ;;
904
905   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906     ac_prev=dvidir ;;
907   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908     dvidir=$ac_optarg ;;
909
910   -enable-* | --enable-*)
911     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912     # Reject names that are not valid shell variable names.
913     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914       as_fn_error $? "invalid feature name: $ac_useropt"
915     ac_useropt_orig=$ac_useropt
916     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917     case $ac_user_opts in
918       *"
919 "enable_$ac_useropt"
920 "*) ;;
921       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922          ac_unrecognized_sep=', ';;
923     esac
924     eval enable_$ac_useropt=\$ac_optarg ;;
925
926   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928   | --exec | --exe | --ex)
929     ac_prev=exec_prefix ;;
930   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932   | --exec=* | --exe=* | --ex=*)
933     exec_prefix=$ac_optarg ;;
934
935   -gas | --gas | --ga | --g)
936     # Obsolete; use --with-gas.
937     with_gas=yes ;;
938
939   -help | --help | --hel | --he | -h)
940     ac_init_help=long ;;
941   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942     ac_init_help=recursive ;;
943   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944     ac_init_help=short ;;
945
946   -host | --host | --hos | --ho)
947     ac_prev=host_alias ;;
948   -host=* | --host=* | --hos=* | --ho=*)
949     host_alias=$ac_optarg ;;
950
951   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952     ac_prev=htmldir ;;
953   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954   | --ht=*)
955     htmldir=$ac_optarg ;;
956
957   -includedir | --includedir | --includedi | --included | --include \
958   | --includ | --inclu | --incl | --inc)
959     ac_prev=includedir ;;
960   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961   | --includ=* | --inclu=* | --incl=* | --inc=*)
962     includedir=$ac_optarg ;;
963
964   -infodir | --infodir | --infodi | --infod | --info | --inf)
965     ac_prev=infodir ;;
966   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967     infodir=$ac_optarg ;;
968
969   -libdir | --libdir | --libdi | --libd)
970     ac_prev=libdir ;;
971   -libdir=* | --libdir=* | --libdi=* | --libd=*)
972     libdir=$ac_optarg ;;
973
974   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975   | --libexe | --libex | --libe)
976     ac_prev=libexecdir ;;
977   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978   | --libexe=* | --libex=* | --libe=*)
979     libexecdir=$ac_optarg ;;
980
981   -localedir | --localedir | --localedi | --localed | --locale)
982     ac_prev=localedir ;;
983   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984     localedir=$ac_optarg ;;
985
986   -localstatedir | --localstatedir | --localstatedi | --localstated \
987   | --localstate | --localstat | --localsta | --localst | --locals)
988     ac_prev=localstatedir ;;
989   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991     localstatedir=$ac_optarg ;;
992
993   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994     ac_prev=mandir ;;
995   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996     mandir=$ac_optarg ;;
997
998   -nfp | --nfp | --nf)
999     # Obsolete; use --without-fp.
1000     with_fp=no ;;
1001
1002   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003   | --no-cr | --no-c | -n)
1004     no_create=yes ;;
1005
1006   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008     no_recursion=yes ;;
1009
1010   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012   | --oldin | --oldi | --old | --ol | --o)
1013     ac_prev=oldincludedir ;;
1014   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017     oldincludedir=$ac_optarg ;;
1018
1019   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020     ac_prev=prefix ;;
1021   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022     prefix=$ac_optarg ;;
1023
1024   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025   | --program-pre | --program-pr | --program-p)
1026     ac_prev=program_prefix ;;
1027   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029     program_prefix=$ac_optarg ;;
1030
1031   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032   | --program-suf | --program-su | --program-s)
1033     ac_prev=program_suffix ;;
1034   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036     program_suffix=$ac_optarg ;;
1037
1038   -program-transform-name | --program-transform-name \
1039   | --program-transform-nam | --program-transform-na \
1040   | --program-transform-n | --program-transform- \
1041   | --program-transform | --program-transfor \
1042   | --program-transfo | --program-transf \
1043   | --program-trans | --program-tran \
1044   | --progr-tra | --program-tr | --program-t)
1045     ac_prev=program_transform_name ;;
1046   -program-transform-name=* | --program-transform-name=* \
1047   | --program-transform-nam=* | --program-transform-na=* \
1048   | --program-transform-n=* | --program-transform-=* \
1049   | --program-transform=* | --program-transfor=* \
1050   | --program-transfo=* | --program-transf=* \
1051   | --program-trans=* | --program-tran=* \
1052   | --progr-tra=* | --program-tr=* | --program-t=*)
1053     program_transform_name=$ac_optarg ;;
1054
1055   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056     ac_prev=pdfdir ;;
1057   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058     pdfdir=$ac_optarg ;;
1059
1060   -psdir | --psdir | --psdi | --psd | --ps)
1061     ac_prev=psdir ;;
1062   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063     psdir=$ac_optarg ;;
1064
1065   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066   | -silent | --silent | --silen | --sile | --sil)
1067     silent=yes ;;
1068
1069   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070     ac_prev=sbindir ;;
1071   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072   | --sbi=* | --sb=*)
1073     sbindir=$ac_optarg ;;
1074
1075   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077   | --sharedst | --shareds | --shared | --share | --shar \
1078   | --sha | --sh)
1079     ac_prev=sharedstatedir ;;
1080   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083   | --sha=* | --sh=*)
1084     sharedstatedir=$ac_optarg ;;
1085
1086   -site | --site | --sit)
1087     ac_prev=site ;;
1088   -site=* | --site=* | --sit=*)
1089     site=$ac_optarg ;;
1090
1091   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092     ac_prev=srcdir ;;
1093   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094     srcdir=$ac_optarg ;;
1095
1096   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097   | --syscon | --sysco | --sysc | --sys | --sy)
1098     ac_prev=sysconfdir ;;
1099   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101     sysconfdir=$ac_optarg ;;
1102
1103   -target | --target | --targe | --targ | --tar | --ta | --t)
1104     ac_prev=target_alias ;;
1105   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106     target_alias=$ac_optarg ;;
1107
1108   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109     verbose=yes ;;
1110
1111   -version | --version | --versio | --versi | --vers | -V)
1112     ac_init_version=: ;;
1113
1114   -with-* | --with-*)
1115     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116     # Reject names that are not valid shell variable names.
1117     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118       as_fn_error $? "invalid package name: $ac_useropt"
1119     ac_useropt_orig=$ac_useropt
1120     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121     case $ac_user_opts in
1122       *"
1123 "with_$ac_useropt"
1124 "*) ;;
1125       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126          ac_unrecognized_sep=', ';;
1127     esac
1128     eval with_$ac_useropt=\$ac_optarg ;;
1129
1130   -without-* | --without-*)
1131     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132     # Reject names that are not valid shell variable names.
1133     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134       as_fn_error $? "invalid package name: $ac_useropt"
1135     ac_useropt_orig=$ac_useropt
1136     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137     case $ac_user_opts in
1138       *"
1139 "with_$ac_useropt"
1140 "*) ;;
1141       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142          ac_unrecognized_sep=', ';;
1143     esac
1144     eval with_$ac_useropt=no ;;
1145
1146   --x)
1147     # Obsolete; use --with-x.
1148     with_x=yes ;;
1149
1150   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151   | --x-incl | --x-inc | --x-in | --x-i)
1152     ac_prev=x_includes ;;
1153   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155     x_includes=$ac_optarg ;;
1156
1157   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159     ac_prev=x_libraries ;;
1160   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162     x_libraries=$ac_optarg ;;
1163
1164   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1165 Try \`$0 --help' for more information"
1166     ;;
1167
1168   *=*)
1169     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170     # Reject names that are not valid shell variable names.
1171     case $ac_envvar in #(
1172       '' | [0-9]* | *[!_$as_cr_alnum]* )
1173       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1174     esac
1175     eval $ac_envvar=\$ac_optarg
1176     export $ac_envvar ;;
1177
1178   *)
1179     # FIXME: should be removed in autoconf 3.0.
1180     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1184     ;;
1185
1186   esac
1187 done
1188
1189 if test -n "$ac_prev"; then
1190   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191   as_fn_error $? "missing argument to $ac_option"
1192 fi
1193
1194 if test -n "$ac_unrecognized_opts"; then
1195   case $enable_option_checking in
1196     no) ;;
1197     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1198     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199   esac
1200 fi
1201
1202 # Check all directory arguments for consistency.
1203 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204                 datadir sysconfdir sharedstatedir localstatedir includedir \
1205                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206                 libdir localedir mandir
1207 do
1208   eval ac_val=\$$ac_var
1209   # Remove trailing slashes.
1210   case $ac_val in
1211     */ )
1212       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213       eval $ac_var=\$ac_val;;
1214   esac
1215   # Be sure to have absolute directory names.
1216   case $ac_val in
1217     [\\/$]* | ?:[\\/]* )  continue;;
1218     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219   esac
1220   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1221 done
1222
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1226 build=$build_alias
1227 host=$host_alias
1228 target=$target_alias
1229
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232   if test "x$build_alias" = x; then
1233     cross_compiling=maybe
1234   elif test "x$build_alias" != "x$host_alias"; then
1235     cross_compiling=yes
1236   fi
1237 fi
1238
1239 ac_tool_prefix=
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241
1242 test "$silent" = yes && exec 6>/dev/null
1243
1244
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248   as_fn_error $? "working directory cannot be determined"
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250   as_fn_error $? "pwd does not report name of working directory"
1251
1252
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255   ac_srcdir_defaulted=yes
1256   # Try the directory containing this script, then the parent directory.
1257   ac_confdir=`$as_dirname -- "$as_myself" ||
1258 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259          X"$as_myself" : 'X\(//\)[^/]' \| \
1260          X"$as_myself" : 'X\(//\)$' \| \
1261          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1262 $as_echo X"$as_myself" |
1263     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\/\)[^/].*/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\/\)$/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\).*/{
1276             s//\1/
1277             q
1278           }
1279           s/.*/./; q'`
1280   srcdir=$ac_confdir
1281   if test ! -r "$srcdir/$ac_unique_file"; then
1282     srcdir=..
1283   fi
1284 else
1285   ac_srcdir_defaulted=no
1286 fi
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1290 fi
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 ac_abs_confdir=`(
1293         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1294         pwd)`
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297   srcdir=.
1298 fi
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1302 case $srcdir in
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304 esac
1305 for ac_var in $ac_precious_vars; do
1306   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307   eval ac_env_${ac_var}_value=\$${ac_var}
1308   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 done
1311
1312 #
1313 # Report the --help message.
1314 #
1315 if test "$ac_init_help" = "long"; then
1316   # Omit some internal or obsolete options to make the list less imposing.
1317   # This message is too long to be a string in the A/UX 3.1 sh.
1318   cat <<_ACEOF
1319 \`configure' configures libtirpc 0.2.5 to adapt to many kinds of systems.
1320
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE.  See below for descriptions of some of the useful variables.
1325
1326 Defaults for the options are specified in brackets.
1327
1328 Configuration:
1329   -h, --help              display this help and exit
1330       --help=short        display options specific to this package
1331       --help=recursive    display the short help of all the included packages
1332   -V, --version           display version information and exit
1333   -q, --quiet, --silent   do not print \`checking ...' messages
1334       --cache-file=FILE   cache test results in FILE [disabled]
1335   -C, --config-cache      alias for \`--cache-file=config.cache'
1336   -n, --no-create         do not create output files
1337       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1338
1339 Installation directories:
1340   --prefix=PREFIX         install architecture-independent files in PREFIX
1341                           [$ac_default_prefix]
1342   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1343                           [PREFIX]
1344
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1349
1350 For better control, use the options below.
1351
1352 Fine tuning of the installation directories:
1353   --bindir=DIR            user executables [EPREFIX/bin]
1354   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1355   --libexecdir=DIR        program executables [EPREFIX/libexec]
1356   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1357   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1358   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1359   --libdir=DIR            object code libraries [EPREFIX/lib]
1360   --includedir=DIR        C header files [PREFIX/include]
1361   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1362   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1363   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1364   --infodir=DIR           info documentation [DATAROOTDIR/info]
1365   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1366   --mandir=DIR            man documentation [DATAROOTDIR/man]
1367   --docdir=DIR            documentation root [DATAROOTDIR/doc/libtirpc]
1368   --htmldir=DIR           html documentation [DOCDIR]
1369   --dvidir=DIR            dvi documentation [DOCDIR]
1370   --pdfdir=DIR            pdf documentation [DOCDIR]
1371   --psdir=DIR             ps documentation [DOCDIR]
1372 _ACEOF
1373
1374   cat <<\_ACEOF
1375
1376 Program names:
1377   --program-prefix=PREFIX            prepend PREFIX to installed program names
1378   --program-suffix=SUFFIX            append SUFFIX to installed program names
1379   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1380
1381 System types:
1382   --build=BUILD     configure for building on BUILD [guessed]
1383   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1384 _ACEOF
1385 fi
1386
1387 if test -n "$ac_init_help"; then
1388   case $ac_init_help in
1389      short | recursive ) echo "Configuration of libtirpc 0.2.5:";;
1390    esac
1391   cat <<\_ACEOF
1392
1393 Optional Features:
1394   --disable-option-checking  ignore unrecognized --enable/--with options
1395   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1396   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1397   --enable-silent-rules   less verbose build output (undo: "make V=1")
1398   --disable-silent-rules  verbose build output (undo: "make V=0")
1399   --disable-gssapi        Disable GSSAPI support [default=no]
1400   --disable-ipv6          Disable IPv6 support [default=no]
1401   --enable-dependency-tracking
1402                           do not reject slow dependency extractors
1403   --disable-dependency-tracking
1404                           speeds up one-time build
1405   --enable-shared[=PKGS]  build shared libraries [default=yes]
1406   --enable-static[=PKGS]  build static libraries [default=yes]
1407   --enable-fast-install[=PKGS]
1408                           optimize for fast installation [default=yes]
1409   --disable-libtool-lock  avoid locking (might break parallel builds)
1410
1411 Optional Packages:
1412   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1413   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1414   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1415                           both]
1416   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1417   --with-sysroot=DIR Search for dependent libraries within DIR
1418                         (or the compiler's sysroot if not specified).
1419
1420 Some influential environment variables:
1421   CC          C compiler command
1422   CFLAGS      C compiler flags
1423   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1424               nonstandard directory <lib dir>
1425   LIBS        libraries to pass to the linker, e.g. -l<library>
1426   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1427               you have headers in a nonstandard directory <include dir>
1428   CPP         C preprocessor
1429
1430 Use these variables to override the choices made by `configure' or to help
1431 it to find libraries and programs with nonstandard names/locations.
1432
1433 Report bugs to the package provider.
1434 _ACEOF
1435 ac_status=$?
1436 fi
1437
1438 if test "$ac_init_help" = "recursive"; then
1439   # If there are subdirs, report their specific --help.
1440   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1441     test -d "$ac_dir" ||
1442       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1443       continue
1444     ac_builddir=.
1445
1446 case "$ac_dir" in
1447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 *)
1449   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1450   # A ".." for each directory in $ac_dir_suffix.
1451   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1452   case $ac_top_builddir_sub in
1453   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1455   esac ;;
1456 esac
1457 ac_abs_top_builddir=$ac_pwd
1458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1459 # for backward compatibility:
1460 ac_top_builddir=$ac_top_build_prefix
1461
1462 case $srcdir in
1463   .)  # We are building in place.
1464     ac_srcdir=.
1465     ac_top_srcdir=$ac_top_builddir_sub
1466     ac_abs_top_srcdir=$ac_pwd ;;
1467   [\\/]* | ?:[\\/]* )  # Absolute name.
1468     ac_srcdir=$srcdir$ac_dir_suffix;
1469     ac_top_srcdir=$srcdir
1470     ac_abs_top_srcdir=$srcdir ;;
1471   *) # Relative name.
1472     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1473     ac_top_srcdir=$ac_top_build_prefix$srcdir
1474     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1475 esac
1476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477
1478     cd "$ac_dir" || { ac_status=$?; continue; }
1479     # Check for guested configure.
1480     if test -f "$ac_srcdir/configure.gnu"; then
1481       echo &&
1482       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1483     elif test -f "$ac_srcdir/configure"; then
1484       echo &&
1485       $SHELL "$ac_srcdir/configure" --help=recursive
1486     else
1487       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1488     fi || ac_status=$?
1489     cd "$ac_pwd" || { ac_status=$?; break; }
1490   done
1491 fi
1492
1493 test -n "$ac_init_help" && exit $ac_status
1494 if $ac_init_version; then
1495   cat <<\_ACEOF
1496 libtirpc configure 0.2.5
1497 generated by GNU Autoconf 2.69
1498
1499 Copyright (C) 2012 Free Software Foundation, Inc.
1500 This configure script is free software; the Free Software Foundation
1501 gives unlimited permission to copy, distribute and modify it.
1502 _ACEOF
1503   exit
1504 fi
1505
1506 ## ------------------------ ##
1507 ## Autoconf initialization. ##
1508 ## ------------------------ ##
1509
1510 # ac_fn_c_try_compile LINENO
1511 # --------------------------
1512 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1513 ac_fn_c_try_compile ()
1514 {
1515   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516   rm -f conftest.$ac_objext
1517   if { { ac_try="$ac_compile"
1518 case "(($ac_try" in
1519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520   *) ac_try_echo=$ac_try;;
1521 esac
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523 $as_echo "$ac_try_echo"; } >&5
1524   (eval "$ac_compile") 2>conftest.err
1525   ac_status=$?
1526   if test -s conftest.err; then
1527     grep -v '^ *+' conftest.err >conftest.er1
1528     cat conftest.er1 >&5
1529     mv -f conftest.er1 conftest.err
1530   fi
1531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532   test $ac_status = 0; } && {
1533          test -z "$ac_c_werror_flag" ||
1534          test ! -s conftest.err
1535        } && test -s conftest.$ac_objext; then :
1536   ac_retval=0
1537 else
1538   $as_echo "$as_me: failed program was:" >&5
1539 sed 's/^/| /' conftest.$ac_ext >&5
1540
1541         ac_retval=1
1542 fi
1543   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1544   as_fn_set_status $ac_retval
1545
1546 } # ac_fn_c_try_compile
1547
1548 # ac_fn_c_try_link LINENO
1549 # -----------------------
1550 # Try to link conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_link ()
1552 {
1553   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554   rm -f conftest.$ac_objext conftest$ac_exeext
1555   if { { ac_try="$ac_link"
1556 case "(($ac_try" in
1557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558   *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562   (eval "$ac_link") 2>conftest.err
1563   ac_status=$?
1564   if test -s conftest.err; then
1565     grep -v '^ *+' conftest.err >conftest.er1
1566     cat conftest.er1 >&5
1567     mv -f conftest.er1 conftest.err
1568   fi
1569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570   test $ac_status = 0; } && {
1571          test -z "$ac_c_werror_flag" ||
1572          test ! -s conftest.err
1573        } && test -s conftest$ac_exeext && {
1574          test "$cross_compiling" = yes ||
1575          test -x conftest$ac_exeext
1576        }; then :
1577   ac_retval=0
1578 else
1579   $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1581
1582         ac_retval=1
1583 fi
1584   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1585   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1586   # interfere with the next link command; also delete a directory that is
1587   # left behind by Apple's compiler.  We do this before executing the actions.
1588   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1589   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590   as_fn_set_status $ac_retval
1591
1592 } # ac_fn_c_try_link
1593
1594 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1595 # -------------------------------------------------------
1596 # Tests whether HEADER exists and can be compiled using the include files in
1597 # INCLUDES, setting the cache variable VAR accordingly.
1598 ac_fn_c_check_header_compile ()
1599 {
1600   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1602 $as_echo_n "checking for $2... " >&6; }
1603 if eval \${$3+:} false; then :
1604   $as_echo_n "(cached) " >&6
1605 else
1606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607 /* end confdefs.h.  */
1608 $4
1609 #include <$2>
1610 _ACEOF
1611 if ac_fn_c_try_compile "$LINENO"; then :
1612   eval "$3=yes"
1613 else
1614   eval "$3=no"
1615 fi
1616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1617 fi
1618 eval ac_res=\$$3
1619                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620 $as_echo "$ac_res" >&6; }
1621   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622
1623 } # ac_fn_c_check_header_compile
1624
1625 # ac_fn_c_try_cpp LINENO
1626 # ----------------------
1627 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_cpp ()
1629 {
1630   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631   if { { ac_try="$ac_cpp conftest.$ac_ext"
1632 case "(($ac_try" in
1633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634   *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1639   ac_status=$?
1640   if test -s conftest.err; then
1641     grep -v '^ *+' conftest.err >conftest.er1
1642     cat conftest.er1 >&5
1643     mv -f conftest.er1 conftest.err
1644   fi
1645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646   test $ac_status = 0; } > conftest.i && {
1647          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1648          test ! -s conftest.err
1649        }; then :
1650   ac_retval=0
1651 else
1652   $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655     ac_retval=1
1656 fi
1657   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658   as_fn_set_status $ac_retval
1659
1660 } # ac_fn_c_try_cpp
1661
1662 # ac_fn_c_try_run LINENO
1663 # ----------------------
1664 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1665 # that executables *can* be run.
1666 ac_fn_c_try_run ()
1667 {
1668   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669   if { { ac_try="$ac_link"
1670 case "(($ac_try" in
1671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672   *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676   (eval "$ac_link") 2>&5
1677   ac_status=$?
1678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1680   { { case "(($ac_try" in
1681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682   *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686   (eval "$ac_try") 2>&5
1687   ac_status=$?
1688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689   test $ac_status = 0; }; }; then :
1690   ac_retval=0
1691 else
1692   $as_echo "$as_me: program exited with status $ac_status" >&5
1693        $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1695
1696        ac_retval=$ac_status
1697 fi
1698   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700   as_fn_set_status $ac_retval
1701
1702 } # ac_fn_c_try_run
1703
1704 # ac_fn_c_check_func LINENO FUNC VAR
1705 # ----------------------------------
1706 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1707 ac_fn_c_check_func ()
1708 {
1709   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713   $as_echo_n "(cached) " >&6
1714 else
1715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h.  */
1717 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1719 #define $2 innocuous_$2
1720
1721 /* System header to define __stub macros and hopefully few prototypes,
1722     which can conflict with char $2 (); below.
1723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1724     <limits.h> exists even on freestanding compilers.  */
1725
1726 #ifdef __STDC__
1727 # include <limits.h>
1728 #else
1729 # include <assert.h>
1730 #endif
1731
1732 #undef $2
1733
1734 /* Override any GCC internal prototype to avoid an error.
1735    Use char because int might match the return type of a GCC
1736    builtin and then its argument prototype would still apply.  */
1737 #ifdef __cplusplus
1738 extern "C"
1739 #endif
1740 char $2 ();
1741 /* The GNU C library defines this for functions which it implements
1742     to always fail with ENOSYS.  Some functions are actually named
1743     something starting with __ and the normal name is an alias.  */
1744 #if defined __stub_$2 || defined __stub___$2
1745 choke me
1746 #endif
1747
1748 int
1749 main ()
1750 {
1751 return $2 ();
1752   ;
1753   return 0;
1754 }
1755 _ACEOF
1756 if ac_fn_c_try_link "$LINENO"; then :
1757   eval "$3=yes"
1758 else
1759   eval "$3=no"
1760 fi
1761 rm -f core conftest.err conftest.$ac_objext \
1762     conftest$ac_exeext conftest.$ac_ext
1763 fi
1764 eval ac_res=\$$3
1765                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 $as_echo "$ac_res" >&6; }
1767   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768
1769 } # ac_fn_c_check_func
1770
1771 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1772 # -------------------------------------------------------
1773 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1774 # the include files in INCLUDES and setting the cache variable VAR
1775 # accordingly.
1776 ac_fn_c_check_header_mongrel ()
1777 {
1778   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779   if eval \${$3+:} false; then :
1780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if eval \${$3+:} false; then :
1783   $as_echo_n "(cached) " >&6
1784 fi
1785 eval ac_res=\$$3
1786                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 else
1789   # Is the header compilable?
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1791 $as_echo_n "checking $2 usability... " >&6; }
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h.  */
1794 $4
1795 #include <$2>
1796 _ACEOF
1797 if ac_fn_c_try_compile "$LINENO"; then :
1798   ac_header_compiler=yes
1799 else
1800   ac_header_compiler=no
1801 fi
1802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1804 $as_echo "$ac_header_compiler" >&6; }
1805
1806 # Is the header present?
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1808 $as_echo_n "checking $2 presence... " >&6; }
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h.  */
1811 #include <$2>
1812 _ACEOF
1813 if ac_fn_c_try_cpp "$LINENO"; then :
1814   ac_header_preproc=yes
1815 else
1816   ac_header_preproc=no
1817 fi
1818 rm -f conftest.err conftest.i conftest.$ac_ext
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1820 $as_echo "$ac_header_preproc" >&6; }
1821
1822 # So?  What about this header?
1823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1824   yes:no: )
1825     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1826 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1827     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1828 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1829     ;;
1830   no:yes:* )
1831     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1832 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1833     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1834 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1835     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1836 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1837     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1838 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1839     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1840 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1841     ;;
1842 esac
1843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if eval \${$3+:} false; then :
1846   $as_echo_n "(cached) " >&6
1847 else
1848   eval "$3=\$ac_header_compiler"
1849 fi
1850 eval ac_res=\$$3
1851                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852 $as_echo "$ac_res" >&6; }
1853 fi
1854   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855
1856 } # ac_fn_c_check_header_mongrel
1857 cat >config.log <<_ACEOF
1858 This file contains any messages produced by compilers while
1859 running configure, to aid debugging if configure makes a mistake.
1860
1861 It was created by libtirpc $as_me 0.2.5, which was
1862 generated by GNU Autoconf 2.69.  Invocation command line was
1863
1864   $ $0 $@
1865
1866 _ACEOF
1867 exec 5>>config.log
1868 {
1869 cat <<_ASUNAME
1870 ## --------- ##
1871 ## Platform. ##
1872 ## --------- ##
1873
1874 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1875 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1876 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1877 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1878 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1879
1880 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1881 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1882
1883 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1884 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1885 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1886 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1887 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1888 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1889 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1890
1891 _ASUNAME
1892
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1895 do
1896   IFS=$as_save_IFS
1897   test -z "$as_dir" && as_dir=.
1898     $as_echo "PATH: $as_dir"
1899   done
1900 IFS=$as_save_IFS
1901
1902 } >&5
1903
1904 cat >&5 <<_ACEOF
1905
1906
1907 ## ----------- ##
1908 ## Core tests. ##
1909 ## ----------- ##
1910
1911 _ACEOF
1912
1913
1914 # Keep a trace of the command line.
1915 # Strip out --no-create and --no-recursion so they do not pile up.
1916 # Strip out --silent because we don't want to record it for future runs.
1917 # Also quote any args containing shell meta-characters.
1918 # Make two passes to allow for proper duplicate-argument suppression.
1919 ac_configure_args=
1920 ac_configure_args0=
1921 ac_configure_args1=
1922 ac_must_keep_next=false
1923 for ac_pass in 1 2
1924 do
1925   for ac_arg
1926   do
1927     case $ac_arg in
1928     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1929     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1930     | -silent | --silent | --silen | --sile | --sil)
1931       continue ;;
1932     *\'*)
1933       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1934     esac
1935     case $ac_pass in
1936     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1937     2)
1938       as_fn_append ac_configure_args1 " '$ac_arg'"
1939       if test $ac_must_keep_next = true; then
1940         ac_must_keep_next=false # Got value, back to normal.
1941       else
1942         case $ac_arg in
1943           *=* | --config-cache | -C | -disable-* | --disable-* \
1944           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1945           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1946           | -with-* | --with-* | -without-* | --without-* | --x)
1947             case "$ac_configure_args0 " in
1948               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1949             esac
1950             ;;
1951           -* ) ac_must_keep_next=true ;;
1952         esac
1953       fi
1954       as_fn_append ac_configure_args " '$ac_arg'"
1955       ;;
1956     esac
1957   done
1958 done
1959 { ac_configure_args0=; unset ac_configure_args0;}
1960 { ac_configure_args1=; unset ac_configure_args1;}
1961
1962 # When interrupted or exit'd, cleanup temporary files, and complete
1963 # config.log.  We remove comments because anyway the quotes in there
1964 # would cause problems or look ugly.
1965 # WARNING: Use '\'' to represent an apostrophe within the trap.
1966 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1967 trap 'exit_status=$?
1968   # Save into config.log some information that might help in debugging.
1969   {
1970     echo
1971
1972     $as_echo "## ---------------- ##
1973 ## Cache variables. ##
1974 ## ---------------- ##"
1975     echo
1976     # The following way of writing the cache mishandles newlines in values,
1977 (
1978   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1979     eval ac_val=\$$ac_var
1980     case $ac_val in #(
1981     *${as_nl}*)
1982       case $ac_var in #(
1983       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1984 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1985       esac
1986       case $ac_var in #(
1987       _ | IFS | as_nl) ;; #(
1988       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1989       *) { eval $ac_var=; unset $ac_var;} ;;
1990       esac ;;
1991     esac
1992   done
1993   (set) 2>&1 |
1994     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1995     *${as_nl}ac_space=\ *)
1996       sed -n \
1997         "s/'\''/'\''\\\\'\'''\''/g;
1998           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1999       ;; #(
2000     *)
2001       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2002       ;;
2003     esac |
2004     sort
2005 )
2006     echo
2007
2008     $as_echo "## ----------------- ##
2009 ## Output variables. ##
2010 ## ----------------- ##"
2011     echo
2012     for ac_var in $ac_subst_vars
2013     do
2014       eval ac_val=\$$ac_var
2015       case $ac_val in
2016       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2017       esac
2018       $as_echo "$ac_var='\''$ac_val'\''"
2019     done | sort
2020     echo
2021
2022     if test -n "$ac_subst_files"; then
2023       $as_echo "## ------------------- ##
2024 ## File substitutions. ##
2025 ## ------------------- ##"
2026       echo
2027       for ac_var in $ac_subst_files
2028       do
2029         eval ac_val=\$$ac_var
2030         case $ac_val in
2031         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2032         esac
2033         $as_echo "$ac_var='\''$ac_val'\''"
2034       done | sort
2035       echo
2036     fi
2037
2038     if test -s confdefs.h; then
2039       $as_echo "## ----------- ##
2040 ## confdefs.h. ##
2041 ## ----------- ##"
2042       echo
2043       cat confdefs.h
2044       echo
2045     fi
2046     test "$ac_signal" != 0 &&
2047       $as_echo "$as_me: caught signal $ac_signal"
2048     $as_echo "$as_me: exit $exit_status"
2049   } >&5
2050   rm -f core *.core core.conftest.* &&
2051     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2052     exit $exit_status
2053 ' 0
2054 for ac_signal in 1 2 13 15; do
2055   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2056 done
2057 ac_signal=0
2058
2059 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2060 rm -f -r conftest* confdefs.h
2061
2062 $as_echo "/* confdefs.h */" > confdefs.h
2063
2064 # Predefined preprocessor variables.
2065
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_NAME "$PACKAGE_NAME"
2068 _ACEOF
2069
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2072 _ACEOF
2073
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2076 _ACEOF
2077
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_STRING "$PACKAGE_STRING"
2080 _ACEOF
2081
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2084 _ACEOF
2085
2086 cat >>confdefs.h <<_ACEOF
2087 #define PACKAGE_URL "$PACKAGE_URL"
2088 _ACEOF
2089
2090
2091 # Let the site file select an alternate cache file if it wants to.
2092 # Prefer an explicitly selected file to automatically selected ones.
2093 ac_site_file1=NONE
2094 ac_site_file2=NONE
2095 if test -n "$CONFIG_SITE"; then
2096   # We do not want a PATH search for config.site.
2097   case $CONFIG_SITE in #((
2098     -*)  ac_site_file1=./$CONFIG_SITE;;
2099     */*) ac_site_file1=$CONFIG_SITE;;
2100     *)   ac_site_file1=./$CONFIG_SITE;;
2101   esac
2102 elif test "x$prefix" != xNONE; then
2103   ac_site_file1=$prefix/share/config.site
2104   ac_site_file2=$prefix/etc/config.site
2105 else
2106   ac_site_file1=$ac_default_prefix/share/config.site
2107   ac_site_file2=$ac_default_prefix/etc/config.site
2108 fi
2109 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2110 do
2111   test "x$ac_site_file" = xNONE && continue
2112   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2113     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2114 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2115     sed 's/^/| /' "$ac_site_file" >&5
2116     . "$ac_site_file" \
2117       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2119 as_fn_error $? "failed to load site script $ac_site_file
2120 See \`config.log' for more details" "$LINENO" 5; }
2121   fi
2122 done
2123
2124 if test -r "$cache_file"; then
2125   # Some versions of bash will fail to source /dev/null (special files
2126   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2127   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2128     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2129 $as_echo "$as_me: loading cache $cache_file" >&6;}
2130     case $cache_file in
2131       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2132       *)                      . "./$cache_file";;
2133     esac
2134   fi
2135 else
2136   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2137 $as_echo "$as_me: creating cache $cache_file" >&6;}
2138   >$cache_file
2139 fi
2140
2141 # Check that the precious variables saved in the cache have kept the same
2142 # value.
2143 ac_cache_corrupted=false
2144 for ac_var in $ac_precious_vars; do
2145   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2146   eval ac_new_set=\$ac_env_${ac_var}_set
2147   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2148   eval ac_new_val=\$ac_env_${ac_var}_value
2149   case $ac_old_set,$ac_new_set in
2150     set,)
2151       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2152 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2153       ac_cache_corrupted=: ;;
2154     ,set)
2155       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2156 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2157       ac_cache_corrupted=: ;;
2158     ,);;
2159     *)
2160       if test "x$ac_old_val" != "x$ac_new_val"; then
2161         # differences in whitespace do not lead to failure.
2162         ac_old_val_w=`echo x $ac_old_val`
2163         ac_new_val_w=`echo x $ac_new_val`
2164         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2165           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2166 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2167           ac_cache_corrupted=:
2168         else
2169           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2170 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2171           eval $ac_var=\$ac_old_val
2172         fi
2173         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2174 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2175         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2176 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2177       fi;;
2178   esac
2179   # Pass precious variables to config.status.
2180   if test "$ac_new_set" = set; then
2181     case $ac_new_val in
2182     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2183     *) ac_arg=$ac_var=$ac_new_val ;;
2184     esac
2185     case " $ac_configure_args " in
2186       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2187       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2188     esac
2189   fi
2190 done
2191 if $ac_cache_corrupted; then
2192   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2194   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2195 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2196   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2197 fi
2198 ## -------------------- ##
2199 ## Main body of script. ##
2200 ## -------------------- ##
2201
2202 ac_ext=c
2203 ac_cpp='$CPP $CPPFLAGS'
2204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2207
2208
2209 am__api_version='1.13'
2210
2211 ac_aux_dir=
2212 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2213   if test -f "$ac_dir/install-sh"; then
2214     ac_aux_dir=$ac_dir
2215     ac_install_sh="$ac_aux_dir/install-sh -c"
2216     break
2217   elif test -f "$ac_dir/install.sh"; then
2218     ac_aux_dir=$ac_dir
2219     ac_install_sh="$ac_aux_dir/install.sh -c"
2220     break
2221   elif test -f "$ac_dir/shtool"; then
2222     ac_aux_dir=$ac_dir
2223     ac_install_sh="$ac_aux_dir/shtool install -c"
2224     break
2225   fi
2226 done
2227 if test -z "$ac_aux_dir"; then
2228   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2229 fi
2230
2231 # These three variables are undocumented and unsupported,
2232 # and are intended to be withdrawn in a future Autoconf release.
2233 # They can cause serious problems if a builder's source tree is in a directory
2234 # whose full name contains unusual characters.
2235 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2236 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2237 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2238
2239
2240 # Find a good install program.  We prefer a C program (faster),
2241 # so one script is as good as another.  But avoid the broken or
2242 # incompatible versions:
2243 # SysV /etc/install, /usr/sbin/install
2244 # SunOS /usr/etc/install
2245 # IRIX /sbin/install
2246 # AIX /bin/install
2247 # AmigaOS /C/install, which installs bootblocks on floppy discs
2248 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2249 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2250 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2251 # OS/2's system install, which has a completely different semantic
2252 # ./install, which can be erroneously created by make from ./install.sh.
2253 # Reject install programs that cannot install multiple files.
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2255 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2256 if test -z "$INSTALL"; then
2257 if ${ac_cv_path_install+:} false; then :
2258   $as_echo_n "(cached) " >&6
2259 else
2260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 for as_dir in $PATH
2262 do
2263   IFS=$as_save_IFS
2264   test -z "$as_dir" && as_dir=.
2265     # Account for people who put trailing slashes in PATH elements.
2266 case $as_dir/ in #((
2267   ./ | .// | /[cC]/* | \
2268   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2269   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2270   /usr/ucb/* ) ;;
2271   *)
2272     # OSF1 and SCO ODT 3.0 have their own names for install.
2273     # Don't use installbsd from OSF since it installs stuff as root
2274     # by default.
2275     for ac_prog in ginstall scoinst install; do
2276       for ac_exec_ext in '' $ac_executable_extensions; do
2277         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2278           if test $ac_prog = install &&
2279             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2280             # AIX install.  It has an incompatible calling convention.
2281             :
2282           elif test $ac_prog = install &&
2283             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2284             # program-specific install script used by HP pwplus--don't use.
2285             :
2286           else
2287             rm -rf conftest.one conftest.two conftest.dir
2288             echo one > conftest.one
2289             echo two > conftest.two
2290             mkdir conftest.dir
2291             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2292               test -s conftest.one && test -s conftest.two &&
2293               test -s conftest.dir/conftest.one &&
2294               test -s conftest.dir/conftest.two
2295             then
2296               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2297               break 3
2298             fi
2299           fi
2300         fi
2301       done
2302     done
2303     ;;
2304 esac
2305
2306   done
2307 IFS=$as_save_IFS
2308
2309 rm -rf conftest.one conftest.two conftest.dir
2310
2311 fi
2312   if test "${ac_cv_path_install+set}" = set; then
2313     INSTALL=$ac_cv_path_install
2314   else
2315     # As a last resort, use the slow shell script.  Don't cache a
2316     # value for INSTALL within a source directory, because that will
2317     # break other packages using the cache if that directory is
2318     # removed, or if the value is a relative name.
2319     INSTALL=$ac_install_sh
2320   fi
2321 fi
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2323 $as_echo "$INSTALL" >&6; }
2324
2325 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2326 # It thinks the first close brace ends the variable substitution.
2327 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2328
2329 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2330
2331 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2332
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2334 $as_echo_n "checking whether build environment is sane... " >&6; }
2335 # Reject unsafe characters in $srcdir or the absolute working directory
2336 # name.  Accept space and tab only in the latter.
2337 am_lf='
2338 '
2339 case `pwd` in
2340   *[\\\"\#\$\&\'\`$am_lf]*)
2341     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2342 esac
2343 case $srcdir in
2344   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2345     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2346 esac
2347
2348 # Do 'set' in a subshell so we don't clobber the current shell's
2349 # arguments.  Must try -L first in case configure is actually a
2350 # symlink; some systems play weird games with the mod time of symlinks
2351 # (eg FreeBSD returns the mod time of the symlink's containing
2352 # directory).
2353 if (
2354    am_has_slept=no
2355    for am_try in 1 2; do
2356      echo "timestamp, slept: $am_has_slept" > conftest.file
2357      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2358      if test "$*" = "X"; then
2359         # -L didn't work.
2360         set X `ls -t "$srcdir/configure" conftest.file`
2361      fi
2362      if test "$*" != "X $srcdir/configure conftest.file" \
2363         && test "$*" != "X conftest.file $srcdir/configure"; then
2364
2365         # If neither matched, then we have a broken ls.  This can happen
2366         # if, for instance, CONFIG_SHELL is bash and it inherits a
2367         # broken ls alias from the environment.  This has actually
2368         # happened.  Such a system could not be considered "sane".
2369         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2370   alias in your environment" "$LINENO" 5
2371      fi
2372      if test "$2" = conftest.file || test $am_try -eq 2; then
2373        break
2374      fi
2375      # Just in case.
2376      sleep 1
2377      am_has_slept=yes
2378    done
2379    test "$2" = conftest.file
2380    )
2381 then
2382    # Ok.
2383    :
2384 else
2385    as_fn_error $? "newly created file is older than distributed files!
2386 Check your system clock" "$LINENO" 5
2387 fi
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2389 $as_echo "yes" >&6; }
2390 # If we didn't sleep, we still need to ensure time stamps of config.status and
2391 # generated files are strictly newer.
2392 am_sleep_pid=
2393 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2394   ( sleep 1 ) &
2395   am_sleep_pid=$!
2396 fi
2397
2398 rm -f conftest.file
2399
2400 test "$program_prefix" != NONE &&
2401   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2402 # Use a double $ so make ignores it.
2403 test "$program_suffix" != NONE &&
2404   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2405 # Double any \ or $.
2406 # By default was `s,x,x', remove it if useless.
2407 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2408 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2409
2410 # expand $ac_aux_dir to an absolute path
2411 am_aux_dir=`cd $ac_aux_dir && pwd`
2412
2413 if test x"${MISSING+set}" != xset; then
2414   case $am_aux_dir in
2415   *\ * | *\     *)
2416     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2417   *)
2418     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2419   esac
2420 fi
2421 # Use eval to expand $SHELL
2422 if eval "$MISSING --is-lightweight"; then
2423   am_missing_run="$MISSING "
2424 else
2425   am_missing_run=
2426   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2427 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2428 fi
2429
2430 if test x"${install_sh}" != xset; then
2431   case $am_aux_dir in
2432   *\ * | *\     *)
2433     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2434   *)
2435     install_sh="\${SHELL} $am_aux_dir/install-sh"
2436   esac
2437 fi
2438
2439 # Installed binaries are usually stripped using 'strip' when the user
2440 # run "make install-strip".  However 'strip' might not be the right
2441 # tool to use in cross-compilation environments, therefore Automake
2442 # will honor the 'STRIP' environment variable to overrule this program.
2443 if test "$cross_compiling" != no; then
2444   if test -n "$ac_tool_prefix"; then
2445   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}strip; ac_word=$2
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2448 $as_echo_n "checking for $ac_word... " >&6; }
2449 if ${ac_cv_prog_STRIP+:} false; then :
2450   $as_echo_n "(cached) " >&6
2451 else
2452   if test -n "$STRIP"; then
2453   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458   IFS=$as_save_IFS
2459   test -z "$as_dir" && as_dir=.
2460     for ac_exec_ext in '' $ac_executable_extensions; do
2461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2462     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2464     break 2
2465   fi
2466 done
2467   done
2468 IFS=$as_save_IFS
2469
2470 fi
2471 fi
2472 STRIP=$ac_cv_prog_STRIP
2473 if test -n "$STRIP"; then
2474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2475 $as_echo "$STRIP" >&6; }
2476 else
2477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2478 $as_echo "no" >&6; }
2479 fi
2480
2481
2482 fi
2483 if test -z "$ac_cv_prog_STRIP"; then
2484   ac_ct_STRIP=$STRIP
2485   # Extract the first word of "strip", so it can be a program name with args.
2486 set dummy strip; ac_word=$2
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2488 $as_echo_n "checking for $ac_word... " >&6; }
2489 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2490   $as_echo_n "(cached) " >&6
2491 else
2492   if test -n "$ac_ct_STRIP"; then
2493   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2497 do
2498   IFS=$as_save_IFS
2499   test -z "$as_dir" && as_dir=.
2500     for ac_exec_ext in '' $ac_executable_extensions; do
2501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2502     ac_cv_prog_ac_ct_STRIP="strip"
2503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2504     break 2
2505   fi
2506 done
2507   done
2508 IFS=$as_save_IFS
2509
2510 fi
2511 fi
2512 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2513 if test -n "$ac_ct_STRIP"; then
2514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2515 $as_echo "$ac_ct_STRIP" >&6; }
2516 else
2517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2518 $as_echo "no" >&6; }
2519 fi
2520
2521   if test "x$ac_ct_STRIP" = x; then
2522     STRIP=":"
2523   else
2524     case $cross_compiling:$ac_tool_warned in
2525 yes:)
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2528 ac_tool_warned=yes ;;
2529 esac
2530     STRIP=$ac_ct_STRIP
2531   fi
2532 else
2533   STRIP="$ac_cv_prog_STRIP"
2534 fi
2535
2536 fi
2537 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2538
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2540 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2541 if test -z "$MKDIR_P"; then
2542   if ${ac_cv_path_mkdir+:} false; then :
2543   $as_echo_n "(cached) " >&6
2544 else
2545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2547 do
2548   IFS=$as_save_IFS
2549   test -z "$as_dir" && as_dir=.
2550     for ac_prog in mkdir gmkdir; do
2551          for ac_exec_ext in '' $ac_executable_extensions; do
2552            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2553            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2554              'mkdir (GNU coreutils) '* | \
2555              'mkdir (coreutils) '* | \
2556              'mkdir (fileutils) '4.1*)
2557                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2558                break 3;;
2559            esac
2560          done
2561        done
2562   done
2563 IFS=$as_save_IFS
2564
2565 fi
2566
2567   test -d ./--version && rmdir ./--version
2568   if test "${ac_cv_path_mkdir+set}" = set; then
2569     MKDIR_P="$ac_cv_path_mkdir -p"
2570   else
2571     # As a last resort, use the slow shell script.  Don't cache a
2572     # value for MKDIR_P within a source directory, because that will
2573     # break other packages using the cache if that directory is
2574     # removed, or if the value is a relative name.
2575     MKDIR_P="$ac_install_sh -d"
2576   fi
2577 fi
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2579 $as_echo "$MKDIR_P" >&6; }
2580
2581 for ac_prog in gawk mawk nawk awk
2582 do
2583   # Extract the first word of "$ac_prog", so it can be a program name with args.
2584 set dummy $ac_prog; ac_word=$2
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2586 $as_echo_n "checking for $ac_word... " >&6; }
2587 if ${ac_cv_prog_AWK+:} false; then :
2588   $as_echo_n "(cached) " >&6
2589 else
2590   if test -n "$AWK"; then
2591   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
2596   IFS=$as_save_IFS
2597   test -z "$as_dir" && as_dir=.
2598     for ac_exec_ext in '' $ac_executable_extensions; do
2599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2600     ac_cv_prog_AWK="$ac_prog"
2601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2602     break 2
2603   fi
2604 done
2605   done
2606 IFS=$as_save_IFS
2607
2608 fi
2609 fi
2610 AWK=$ac_cv_prog_AWK
2611 if test -n "$AWK"; then
2612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2613 $as_echo "$AWK" >&6; }
2614 else
2615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2616 $as_echo "no" >&6; }
2617 fi
2618
2619
2620   test -n "$AWK" && break
2621 done
2622
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2624 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2625 set x ${MAKE-make}
2626 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2627 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2628   $as_echo_n "(cached) " >&6
2629 else
2630   cat >conftest.make <<\_ACEOF
2631 SHELL = /bin/sh
2632 all:
2633         @echo '@@@%%%=$(MAKE)=@@@%%%'
2634 _ACEOF
2635 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2636 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2637   *@@@%%%=?*=@@@%%%*)
2638     eval ac_cv_prog_make_${ac_make}_set=yes;;
2639   *)
2640     eval ac_cv_prog_make_${ac_make}_set=no;;
2641 esac
2642 rm -f conftest.make
2643 fi
2644 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2646 $as_echo "yes" >&6; }
2647   SET_MAKE=
2648 else
2649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2651   SET_MAKE="MAKE=${MAKE-make}"
2652 fi
2653
2654 rm -rf .tst 2>/dev/null
2655 mkdir .tst 2>/dev/null
2656 if test -d .tst; then
2657   am__leading_dot=.
2658 else
2659   am__leading_dot=_
2660 fi
2661 rmdir .tst 2>/dev/null
2662
2663 # Check whether --enable-silent-rules was given.
2664 if test "${enable_silent_rules+set}" = set; then :
2665   enableval=$enable_silent_rules;
2666 fi
2667
2668 case $enable_silent_rules in # (((
2669   yes) AM_DEFAULT_VERBOSITY=0;;
2670    no) AM_DEFAULT_VERBOSITY=1;;
2671     *) AM_DEFAULT_VERBOSITY=1;;
2672 esac
2673 am_make=${MAKE-make}
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2675 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2676 if ${am_cv_make_support_nested_variables+:} false; then :
2677   $as_echo_n "(cached) " >&6
2678 else
2679   if $as_echo 'TRUE=$(BAR$(V))
2680 BAR0=false
2681 BAR1=true
2682 V=1
2683 am__doit:
2684         @$(TRUE)
2685 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2686   am_cv_make_support_nested_variables=yes
2687 else
2688   am_cv_make_support_nested_variables=no
2689 fi
2690 fi
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2692 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2693 if test $am_cv_make_support_nested_variables = yes; then
2694     AM_V='$(V)'
2695   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2696 else
2697   AM_V=$AM_DEFAULT_VERBOSITY
2698   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2699 fi
2700 AM_BACKSLASH='\'
2701
2702 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2703   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2704   # is not polluted with repeated "-I."
2705   am__isrc=' -I$(srcdir)'
2706   # test to see if srcdir already configured
2707   if test -f $srcdir/config.status; then
2708     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2709   fi
2710 fi
2711
2712 # test whether we have cygpath
2713 if test -z "$CYGPATH_W"; then
2714   if (cygpath --version) >/dev/null 2>/dev/null; then
2715     CYGPATH_W='cygpath -w'
2716   else
2717     CYGPATH_W=echo
2718   fi
2719 fi
2720
2721
2722 # Define the identity of the package.
2723  PACKAGE='libtirpc'
2724  VERSION='0.2.5'
2725
2726
2727 cat >>confdefs.h <<_ACEOF
2728 #define PACKAGE "$PACKAGE"
2729 _ACEOF
2730
2731
2732 cat >>confdefs.h <<_ACEOF
2733 #define VERSION "$VERSION"
2734 _ACEOF
2735
2736 # Some tools Automake needs.
2737
2738 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2739
2740
2741 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2742
2743
2744 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2745
2746
2747 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2748
2749
2750 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2751
2752 # For better backward compatibility.  To be removed once Automake 1.9.x
2753 # dies out for good.  For more background, see:
2754 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2755 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2756 mkdir_p='$(MKDIR_P)'
2757
2758 # We need awk for the "check" target.  The system "awk" is bad on
2759 # some platforms.
2760 # Always define AMTAR for backward compatibility.  Yes, it's still used
2761 # in the wild :-(  We should find a proper way to deprecate it ...
2762 AMTAR='$${TAR-tar}'
2763
2764
2765 # We'll loop over all known methods to create a tar archive until one works.
2766 _am_tools='gnutar  pax cpio none'
2767
2768 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2769
2770
2771
2772
2773
2774
2775 # Check whether --enable-silent-rules was given.
2776 if test "${enable_silent_rules+set}" = set; then :
2777   enableval=$enable_silent_rules;
2778 fi
2779
2780 case $enable_silent_rules in # (((
2781   yes) AM_DEFAULT_VERBOSITY=0;;
2782    no) AM_DEFAULT_VERBOSITY=1;;
2783     *) AM_DEFAULT_VERBOSITY=0;;
2784 esac
2785 am_make=${MAKE-make}
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2787 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2788 if ${am_cv_make_support_nested_variables+:} false; then :
2789   $as_echo_n "(cached) " >&6
2790 else
2791   if $as_echo 'TRUE=$(BAR$(V))
2792 BAR0=false
2793 BAR1=true
2794 V=1
2795 am__doit:
2796         @$(TRUE)
2797 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2798   am_cv_make_support_nested_variables=yes
2799 else
2800   am_cv_make_support_nested_variables=no
2801 fi
2802 fi
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2804 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2805 if test $am_cv_make_support_nested_variables = yes; then
2806     AM_V='$(V)'
2807   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2808 else
2809   AM_V=$AM_DEFAULT_VERBOSITY
2810   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2811 fi
2812 AM_BACKSLASH='\'
2813
2814
2815
2816
2817 # Check whether --enable-gssapi was given.
2818 if test "${enable_gssapi+set}" = set; then :
2819   enableval=$enable_gssapi;
2820 else
2821   enable_gssapi=yes
2822 fi
2823
2824  if test x$enable_gssapi = xyes; then
2825   GSS_TRUE=
2826   GSS_FALSE='#'
2827 else
2828   GSS_TRUE='#'
2829   GSS_FALSE=
2830 fi
2831
2832
2833 if test x$enable_gssapi = xyes; then
2834         GSSAPI_CFLAGS=`krb5-config --cflags gssapi`
2835         GSSAPI_LIBS=`krb5-config --libs gssapi`
2836
2837
2838 fi
2839 # Check whether --enable-ipv6 was given.
2840 if test "${enable_ipv6+set}" = set; then :
2841   enableval=$enable_ipv6;
2842 else
2843   enable_ipv6=yes
2844 fi
2845
2846  if test "x$disable_ipv6" != xno; then
2847   INET6_TRUE=
2848   INET6_FALSE='#'
2849 else
2850   INET6_TRUE='#'
2851   INET6_FALSE=
2852 fi
2853
2854 if test "x$enable_ipv6" != xno; then
2855
2856 $as_echo "#define INET6 1" >>confdefs.h
2857
2858 fi
2859
2860 ac_ext=c
2861 ac_cpp='$CPP $CPPFLAGS'
2862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2865 if test -n "$ac_tool_prefix"; then
2866   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2867 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869 $as_echo_n "checking for $ac_word... " >&6; }
2870 if ${ac_cv_prog_CC+:} false; then :
2871   $as_echo_n "(cached) " >&6
2872 else
2873   if test -n "$CC"; then
2874   ac_cv_prog_CC="$CC" # Let the user override the test.
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2878 do
2879   IFS=$as_save_IFS
2880   test -z "$as_dir" && as_dir=.
2881     for ac_exec_ext in '' $ac_executable_extensions; do
2882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2883     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885     break 2
2886   fi
2887 done
2888   done
2889 IFS=$as_save_IFS
2890
2891 fi
2892 fi
2893 CC=$ac_cv_prog_CC
2894 if test -n "$CC"; then
2895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2896 $as_echo "$CC" >&6; }
2897 else
2898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899 $as_echo "no" >&6; }
2900 fi
2901
2902
2903 fi
2904 if test -z "$ac_cv_prog_CC"; then
2905   ac_ct_CC=$CC
2906   # Extract the first word of "gcc", so it can be a program name with args.
2907 set dummy gcc; ac_word=$2
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909 $as_echo_n "checking for $ac_word... " >&6; }
2910 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2911   $as_echo_n "(cached) " >&6
2912 else
2913   if test -n "$ac_ct_CC"; then
2914   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2915 else
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH
2918 do
2919   IFS=$as_save_IFS
2920   test -z "$as_dir" && as_dir=.
2921     for ac_exec_ext in '' $ac_executable_extensions; do
2922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2923     ac_cv_prog_ac_ct_CC="gcc"
2924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925     break 2
2926   fi
2927 done
2928   done
2929 IFS=$as_save_IFS
2930
2931 fi
2932 fi
2933 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2934 if test -n "$ac_ct_CC"; then
2935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2936 $as_echo "$ac_ct_CC" >&6; }
2937 else
2938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 $as_echo "no" >&6; }
2940 fi
2941
2942   if test "x$ac_ct_CC" = x; then
2943     CC=""
2944   else
2945     case $cross_compiling:$ac_tool_warned in
2946 yes:)
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2949 ac_tool_warned=yes ;;
2950 esac
2951     CC=$ac_ct_CC
2952   fi
2953 else
2954   CC="$ac_cv_prog_CC"
2955 fi
2956
2957 if test -z "$CC"; then
2958           if test -n "$ac_tool_prefix"; then
2959     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2960 set dummy ${ac_tool_prefix}cc; ac_word=$2
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962 $as_echo_n "checking for $ac_word... " >&6; }
2963 if ${ac_cv_prog_CC+:} false; then :
2964   $as_echo_n "(cached) " >&6
2965 else
2966   if test -n "$CC"; then
2967   ac_cv_prog_CC="$CC" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2971 do
2972   IFS=$as_save_IFS
2973   test -z "$as_dir" && as_dir=.
2974     for ac_exec_ext in '' $ac_executable_extensions; do
2975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2976     ac_cv_prog_CC="${ac_tool_prefix}cc"
2977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978     break 2
2979   fi
2980 done
2981   done
2982 IFS=$as_save_IFS
2983
2984 fi
2985 fi
2986 CC=$ac_cv_prog_CC
2987 if test -n "$CC"; then
2988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2989 $as_echo "$CC" >&6; }
2990 else
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 $as_echo "no" >&6; }
2993 fi
2994
2995
2996   fi
2997 fi
2998 if test -z "$CC"; then
2999   # Extract the first word of "cc", so it can be a program name with args.
3000 set dummy cc; ac_word=$2
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 $as_echo_n "checking for $ac_word... " >&6; }
3003 if ${ac_cv_prog_CC+:} false; then :
3004   $as_echo_n "(cached) " >&6
3005 else
3006   if test -n "$CC"; then
3007   ac_cv_prog_CC="$CC" # Let the user override the test.
3008 else
3009   ac_prog_rejected=no
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013   IFS=$as_save_IFS
3014   test -z "$as_dir" && as_dir=.
3015     for ac_exec_ext in '' $ac_executable_extensions; do
3016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3018        ac_prog_rejected=yes
3019        continue
3020      fi
3021     ac_cv_prog_CC="cc"
3022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023     break 2
3024   fi
3025 done
3026   done
3027 IFS=$as_save_IFS
3028
3029 if test $ac_prog_rejected = yes; then
3030   # We found a bogon in the path, so make sure we never use it.
3031   set dummy $ac_cv_prog_CC
3032   shift
3033   if test $# != 0; then
3034     # We chose a different compiler from the bogus one.
3035     # However, it has the same basename, so the bogon will be chosen
3036     # first if we set CC to just the basename; use the full file name.
3037     shift
3038     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3039   fi
3040 fi
3041 fi
3042 fi
3043 CC=$ac_cv_prog_CC
3044 if test -n "$CC"; then
3045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3046 $as_echo "$CC" >&6; }
3047 else
3048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 $as_echo "no" >&6; }
3050 fi
3051
3052
3053 fi
3054 if test -z "$CC"; then
3055   if test -n "$ac_tool_prefix"; then
3056   for ac_prog in cl.exe
3057   do
3058     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3059 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if ${ac_cv_prog_CC+:} false; then :
3063   $as_echo_n "(cached) " >&6
3064 else
3065   if test -n "$CC"; then
3066   ac_cv_prog_CC="$CC" # Let the user override the test.
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3070 do
3071   IFS=$as_save_IFS
3072   test -z "$as_dir" && as_dir=.
3073     for ac_exec_ext in '' $ac_executable_extensions; do
3074   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3075     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077     break 2
3078   fi
3079 done
3080   done
3081 IFS=$as_save_IFS
3082
3083 fi
3084 fi
3085 CC=$ac_cv_prog_CC
3086 if test -n "$CC"; then
3087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3088 $as_echo "$CC" >&6; }
3089 else
3090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 $as_echo "no" >&6; }
3092 fi
3093
3094
3095     test -n "$CC" && break
3096   done
3097 fi
3098 if test -z "$CC"; then
3099   ac_ct_CC=$CC
3100   for ac_prog in cl.exe
3101 do
3102   # Extract the first word of "$ac_prog", so it can be a program name with args.
3103 set dummy $ac_prog; ac_word=$2
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3107   $as_echo_n "(cached) " >&6
3108 else
3109   if test -n "$ac_ct_CC"; then
3110   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3114 do
3115   IFS=$as_save_IFS
3116   test -z "$as_dir" && as_dir=.
3117     for ac_exec_ext in '' $ac_executable_extensions; do
3118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119     ac_cv_prog_ac_ct_CC="$ac_prog"
3120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121     break 2
3122   fi
3123 done
3124   done
3125 IFS=$as_save_IFS
3126
3127 fi
3128 fi
3129 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3130 if test -n "$ac_ct_CC"; then
3131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3132 $as_echo "$ac_ct_CC" >&6; }
3133 else
3134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3136 fi
3137
3138
3139   test -n "$ac_ct_CC" && break
3140 done
3141
3142   if test "x$ac_ct_CC" = x; then
3143     CC=""
3144   else
3145     case $cross_compiling:$ac_tool_warned in
3146 yes:)
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3149 ac_tool_warned=yes ;;
3150 esac
3151     CC=$ac_ct_CC
3152   fi
3153 fi
3154
3155 fi
3156
3157
3158 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160 as_fn_error $? "no acceptable C compiler found in \$PATH
3161 See \`config.log' for more details" "$LINENO" 5; }
3162
3163 # Provide some information about the compiler.
3164 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3165 set X $ac_compile
3166 ac_compiler=$2
3167 for ac_option in --version -v -V -qversion; do
3168   { { ac_try="$ac_compiler $ac_option >&5"
3169 case "(($ac_try" in
3170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171   *) ac_try_echo=$ac_try;;
3172 esac
3173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3174 $as_echo "$ac_try_echo"; } >&5
3175   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3176   ac_status=$?
3177   if test -s conftest.err; then
3178     sed '10a\
3179 ... rest of stderr output deleted ...
3180          10q' conftest.err >conftest.er1
3181     cat conftest.er1 >&5
3182   fi
3183   rm -f conftest.er1 conftest.err
3184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185   test $ac_status = 0; }
3186 done
3187
3188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189 /* end confdefs.h.  */
3190
3191 int
3192 main ()
3193 {
3194
3195   ;
3196   return 0;
3197 }
3198 _ACEOF
3199 ac_clean_files_save=$ac_clean_files
3200 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3201 # Try to create an executable without -o first, disregard a.out.
3202 # It will help us diagnose broken compilers, and finding out an intuition
3203 # of exeext.
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3205 $as_echo_n "checking whether the C compiler works... " >&6; }
3206 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3207
3208 # The possible output files:
3209 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3210
3211 ac_rmfiles=
3212 for ac_file in $ac_files
3213 do
3214   case $ac_file in
3215     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3216     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3217   esac
3218 done
3219 rm -f $ac_rmfiles
3220
3221 if { { ac_try="$ac_link_default"
3222 case "(($ac_try" in
3223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224   *) ac_try_echo=$ac_try;;
3225 esac
3226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3227 $as_echo "$ac_try_echo"; } >&5
3228   (eval "$ac_link_default") 2>&5
3229   ac_status=$?
3230   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3231   test $ac_status = 0; }; then :
3232   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3233 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3234 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3235 # so that the user can short-circuit this test for compilers unknown to
3236 # Autoconf.
3237 for ac_file in $ac_files ''
3238 do
3239   test -f "$ac_file" || continue
3240   case $ac_file in
3241     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3242         ;;
3243     [ab].out )
3244         # We found the default executable, but exeext='' is most
3245         # certainly right.
3246         break;;
3247     *.* )
3248         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3249         then :; else
3250            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3251         fi
3252         # We set ac_cv_exeext here because the later test for it is not
3253         # safe: cross compilers may not add the suffix if given an `-o'
3254         # argument, so we may need to know it at that point already.
3255         # Even if this section looks crufty: it has the advantage of
3256         # actually working.
3257         break;;
3258     * )
3259         break;;
3260   esac
3261 done
3262 test "$ac_cv_exeext" = no && ac_cv_exeext=
3263
3264 else
3265   ac_file=''
3266 fi
3267 if test -z "$ac_file"; then :
3268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 $as_echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3272
3273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 as_fn_error 77 "C compiler cannot create executables
3276 See \`config.log' for more details" "$LINENO" 5; }
3277 else
3278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3279 $as_echo "yes" >&6; }
3280 fi
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3282 $as_echo_n "checking for C compiler default output file name... " >&6; }
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3284 $as_echo "$ac_file" >&6; }
3285 ac_exeext=$ac_cv_exeext
3286
3287 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3288 ac_clean_files=$ac_clean_files_save
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3290 $as_echo_n "checking for suffix of executables... " >&6; }
3291 if { { ac_try="$ac_link"
3292 case "(($ac_try" in
3293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294   *) ac_try_echo=$ac_try;;
3295 esac
3296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297 $as_echo "$ac_try_echo"; } >&5
3298   (eval "$ac_link") 2>&5
3299   ac_status=$?
3300   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301   test $ac_status = 0; }; then :
3302   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3303 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3304 # work properly (i.e., refer to `conftest.exe'), while it won't with
3305 # `rm'.
3306 for ac_file in conftest.exe conftest conftest.*; do
3307   test -f "$ac_file" || continue
3308   case $ac_file in
3309     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3310     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3311           break;;
3312     * ) break;;
3313   esac
3314 done
3315 else
3316   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3318 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3319 See \`config.log' for more details" "$LINENO" 5; }
3320 fi
3321 rm -f conftest conftest$ac_cv_exeext
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3323 $as_echo "$ac_cv_exeext" >&6; }
3324
3325 rm -f conftest.$ac_ext
3326 EXEEXT=$ac_cv_exeext
3327 ac_exeext=$EXEEXT
3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329 /* end confdefs.h.  */
3330 #include <stdio.h>
3331 int
3332 main ()
3333 {
3334 FILE *f = fopen ("conftest.out", "w");
3335  return ferror (f) || fclose (f) != 0;
3336
3337   ;
3338   return 0;
3339 }
3340 _ACEOF
3341 ac_clean_files="$ac_clean_files conftest.out"
3342 # Check that the compiler produces executables we can run.  If not, either
3343 # the compiler is broken, or we cross compile.
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3345 $as_echo_n "checking whether we are cross compiling... " >&6; }
3346 if test "$cross_compiling" != yes; then
3347   { { ac_try="$ac_link"
3348 case "(($ac_try" in
3349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350   *) ac_try_echo=$ac_try;;
3351 esac
3352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353 $as_echo "$ac_try_echo"; } >&5
3354   (eval "$ac_link") 2>&5
3355   ac_status=$?
3356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357   test $ac_status = 0; }
3358   if { ac_try='./conftest$ac_cv_exeext'
3359   { { case "(($ac_try" in
3360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361   *) ac_try_echo=$ac_try;;
3362 esac
3363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364 $as_echo "$ac_try_echo"; } >&5
3365   (eval "$ac_try") 2>&5
3366   ac_status=$?
3367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368   test $ac_status = 0; }; }; then
3369     cross_compiling=no
3370   else
3371     if test "$cross_compiling" = maybe; then
3372         cross_compiling=yes
3373     else
3374         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3376 as_fn_error $? "cannot run C compiled programs.
3377 If you meant to cross compile, use \`--host'.
3378 See \`config.log' for more details" "$LINENO" 5; }
3379     fi
3380   fi
3381 fi
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3383 $as_echo "$cross_compiling" >&6; }
3384
3385 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3386 ac_clean_files=$ac_clean_files_save
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3388 $as_echo_n "checking for suffix of object files... " >&6; }
3389 if ${ac_cv_objext+:} false; then :
3390   $as_echo_n "(cached) " >&6
3391 else
3392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393 /* end confdefs.h.  */
3394
3395 int
3396 main ()
3397 {
3398
3399   ;
3400   return 0;
3401 }
3402 _ACEOF
3403 rm -f conftest.o conftest.obj
3404 if { { ac_try="$ac_compile"
3405 case "(($ac_try" in
3406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407   *) ac_try_echo=$ac_try;;
3408 esac
3409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410 $as_echo "$ac_try_echo"; } >&5
3411   (eval "$ac_compile") 2>&5
3412   ac_status=$?
3413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414   test $ac_status = 0; }; then :
3415   for ac_file in conftest.o conftest.obj conftest.*; do
3416   test -f "$ac_file" || continue;
3417   case $ac_file in
3418     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3419     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3420        break;;
3421   esac
3422 done
3423 else
3424   $as_echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3426
3427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3429 as_fn_error $? "cannot compute suffix of object files: cannot compile
3430 See \`config.log' for more details" "$LINENO" 5; }
3431 fi
3432 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3433 fi
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3435 $as_echo "$ac_cv_objext" >&6; }
3436 OBJEXT=$ac_cv_objext
3437 ac_objext=$OBJEXT
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3439 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3440 if ${ac_cv_c_compiler_gnu+:} false; then :
3441   $as_echo_n "(cached) " >&6
3442 else
3443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h.  */
3445
3446 int
3447 main ()
3448 {
3449 #ifndef __GNUC__
3450        choke me
3451 #endif
3452
3453   ;
3454   return 0;
3455 }
3456 _ACEOF
3457 if ac_fn_c_try_compile "$LINENO"; then :
3458   ac_compiler_gnu=yes
3459 else
3460   ac_compiler_gnu=no
3461 fi
3462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3463 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3464
3465 fi
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3467 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3468 if test $ac_compiler_gnu = yes; then
3469   GCC=yes
3470 else
3471   GCC=
3472 fi
3473 ac_test_CFLAGS=${CFLAGS+set}
3474 ac_save_CFLAGS=$CFLAGS
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3476 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3477 if ${ac_cv_prog_cc_g+:} false; then :
3478   $as_echo_n "(cached) " >&6
3479 else
3480   ac_save_c_werror_flag=$ac_c_werror_flag
3481    ac_c_werror_flag=yes
3482    ac_cv_prog_cc_g=no
3483    CFLAGS="-g"
3484    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h.  */
3486
3487 int
3488 main ()
3489 {
3490
3491   ;
3492   return 0;
3493 }
3494 _ACEOF
3495 if ac_fn_c_try_compile "$LINENO"; then :
3496   ac_cv_prog_cc_g=yes
3497 else
3498   CFLAGS=""
3499       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h.  */
3501
3502 int
3503 main ()
3504 {
3505
3506   ;
3507   return 0;
3508 }
3509 _ACEOF
3510 if ac_fn_c_try_compile "$LINENO"; then :
3511
3512 else
3513   ac_c_werror_flag=$ac_save_c_werror_flag
3514          CFLAGS="-g"
3515          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h.  */
3517
3518 int
3519 main ()
3520 {
3521
3522   ;
3523   return 0;
3524 }
3525 _ACEOF
3526 if ac_fn_c_try_compile "$LINENO"; then :
3527   ac_cv_prog_cc_g=yes
3528 fi
3529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3530 fi
3531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532 fi
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534    ac_c_werror_flag=$ac_save_c_werror_flag
3535 fi
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3537 $as_echo "$ac_cv_prog_cc_g" >&6; }
3538 if test "$ac_test_CFLAGS" = set; then
3539   CFLAGS=$ac_save_CFLAGS
3540 elif test $ac_cv_prog_cc_g = yes; then
3541   if test "$GCC" = yes; then
3542     CFLAGS="-g -O2"
3543   else
3544     CFLAGS="-g"
3545   fi
3546 else
3547   if test "$GCC" = yes; then
3548     CFLAGS="-O2"
3549   else
3550     CFLAGS=
3551   fi
3552 fi
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3554 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3555 if ${ac_cv_prog_cc_c89+:} false; then :
3556   $as_echo_n "(cached) " >&6
3557 else
3558   ac_cv_prog_cc_c89=no
3559 ac_save_CC=$CC
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h.  */
3562 #include <stdarg.h>
3563 #include <stdio.h>
3564 struct stat;
3565 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3566 struct buf { int x; };
3567 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3568 static char *e (p, i)
3569      char **p;
3570      int i;
3571 {
3572   return p[i];
3573 }
3574 static char *f (char * (*g) (char **, int), char **p, ...)
3575 {
3576   char *s;
3577   va_list v;
3578   va_start (v,p);
3579   s = g (p, va_arg (v,int));
3580   va_end (v);
3581   return s;
3582 }
3583
3584 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3585    function prototypes and stuff, but not '\xHH' hex character constants.
3586    These don't provoke an error unfortunately, instead are silently treated
3587    as 'x'.  The following induces an error, until -std is added to get
3588    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3589    array size at least.  It's necessary to write '\x00'==0 to get something
3590    that's true only with -std.  */
3591 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3592
3593 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3594    inside strings and character constants.  */
3595 #define FOO(x) 'x'
3596 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3597
3598 int test (int i, double x);
3599 struct s1 {int (*f) (int a);};
3600 struct s2 {int (*f) (double a);};
3601 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3602 int argc;
3603 char **argv;
3604 int
3605 main ()
3606 {
3607 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3608   ;
3609   return 0;
3610 }
3611 _ACEOF
3612 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3613         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3614 do
3615   CC="$ac_save_CC $ac_arg"
3616   if ac_fn_c_try_compile "$LINENO"; then :
3617   ac_cv_prog_cc_c89=$ac_arg
3618 fi
3619 rm -f core conftest.err conftest.$ac_objext
3620   test "x$ac_cv_prog_cc_c89" != "xno" && break
3621 done
3622 rm -f conftest.$ac_ext
3623 CC=$ac_save_CC
3624
3625 fi
3626 # AC_CACHE_VAL
3627 case "x$ac_cv_prog_cc_c89" in
3628   x)
3629     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3630 $as_echo "none needed" >&6; } ;;
3631   xno)
3632     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3633 $as_echo "unsupported" >&6; } ;;
3634   *)
3635     CC="$CC $ac_cv_prog_cc_c89"
3636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3637 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3638 esac
3639 if test "x$ac_cv_prog_cc_c89" != xno; then :
3640
3641 fi
3642
3643 ac_ext=c
3644 ac_cpp='$CPP $CPPFLAGS'
3645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3648 DEPDIR="${am__leading_dot}deps"
3649
3650 ac_config_commands="$ac_config_commands depfiles"
3651
3652
3653 am_make=${MAKE-make}
3654 cat > confinc << 'END'
3655 am__doit:
3656         @echo this is the am__doit target
3657 .PHONY: am__doit
3658 END
3659 # If we don't find an include directive, just comment out the code.
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3661 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3662 am__include="#"
3663 am__quote=
3664 _am_result=none
3665 # First try GNU make style include.
3666 echo "include confinc" > confmf
3667 # Ignore all kinds of additional output from 'make'.
3668 case `$am_make -s -f confmf 2> /dev/null` in #(
3669 *the\ am__doit\ target*)
3670   am__include=include
3671   am__quote=
3672   _am_result=GNU
3673   ;;
3674 esac
3675 # Now try BSD make style include.
3676 if test "$am__include" = "#"; then
3677    echo '.include "confinc"' > confmf
3678    case `$am_make -s -f confmf 2> /dev/null` in #(
3679    *the\ am__doit\ target*)
3680      am__include=.include
3681      am__quote="\""
3682      _am_result=BSD
3683      ;;
3684    esac
3685 fi
3686
3687
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3689 $as_echo "$_am_result" >&6; }
3690 rm -f confinc confmf
3691
3692 # Check whether --enable-dependency-tracking was given.
3693 if test "${enable_dependency_tracking+set}" = set; then :
3694   enableval=$enable_dependency_tracking;
3695 fi
3696
3697 if test "x$enable_dependency_tracking" != xno; then
3698   am_depcomp="$ac_aux_dir/depcomp"
3699   AMDEPBACKSLASH='\'
3700   am__nodep='_no'
3701 fi
3702  if test "x$enable_dependency_tracking" != xno; then
3703   AMDEP_TRUE=
3704   AMDEP_FALSE='#'
3705 else
3706   AMDEP_TRUE='#'
3707   AMDEP_FALSE=
3708 fi
3709
3710
3711
3712 depcc="$CC"   am_compiler_list=
3713
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3715 $as_echo_n "checking dependency style of $depcc... " >&6; }
3716 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3717   $as_echo_n "(cached) " >&6
3718 else
3719   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3720   # We make a subdir and do the tests there.  Otherwise we can end up
3721   # making bogus files that we don't know about and never remove.  For
3722   # instance it was reported that on HP-UX the gcc test will end up
3723   # making a dummy file named 'D' -- because '-MD' means "put the output
3724   # in D".
3725   rm -rf conftest.dir
3726   mkdir conftest.dir
3727   # Copy depcomp to subdir because otherwise we won't find it if we're
3728   # using a relative directory.
3729   cp "$am_depcomp" conftest.dir
3730   cd conftest.dir
3731   # We will build objects and dependencies in a subdirectory because
3732   # it helps to detect inapplicable dependency modes.  For instance
3733   # both Tru64's cc and ICC support -MD to output dependencies as a
3734   # side effect of compilation, but ICC will put the dependencies in
3735   # the current directory while Tru64 will put them in the object
3736   # directory.
3737   mkdir sub
3738
3739   am_cv_CC_dependencies_compiler_type=none
3740   if test "$am_compiler_list" = ""; then
3741      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3742   fi
3743   am__universal=false
3744   case " $depcc " in #(
3745      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3746      esac
3747
3748   for depmode in $am_compiler_list; do
3749     # Setup a source with many dependencies, because some compilers
3750     # like to wrap large dependency lists on column 80 (with \), and
3751     # we should not choose a depcomp mode which is confused by this.
3752     #
3753     # We need to recreate these files for each test, as the compiler may
3754     # overwrite some of them when testing with obscure command lines.
3755     # This happens at least with the AIX C compiler.
3756     : > sub/conftest.c
3757     for i in 1 2 3 4 5 6; do
3758       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3759       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3760       # Solaris 10 /bin/sh.
3761       echo '/* dummy */' > sub/conftst$i.h
3762     done
3763     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3764
3765     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3766     # mode.  It turns out that the SunPro C++ compiler does not properly
3767     # handle '-M -o', and we need to detect this.  Also, some Intel
3768     # versions had trouble with output in subdirs.
3769     am__obj=sub/conftest.${OBJEXT-o}
3770     am__minus_obj="-o $am__obj"
3771     case $depmode in
3772     gcc)
3773       # This depmode causes a compiler race in universal mode.
3774       test "$am__universal" = false || continue
3775       ;;
3776     nosideeffect)
3777       # After this tag, mechanisms are not by side-effect, so they'll
3778       # only be used when explicitly requested.
3779       if test "x$enable_dependency_tracking" = xyes; then
3780         continue
3781       else
3782         break
3783       fi
3784       ;;
3785     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3786       # This compiler won't grok '-c -o', but also, the minuso test has
3787       # not run yet.  These depmodes are late enough in the game, and
3788       # so weak that their functioning should not be impacted.
3789       am__obj=conftest.${OBJEXT-o}
3790       am__minus_obj=
3791       ;;
3792     none) break ;;
3793     esac
3794     if depmode=$depmode \
3795        source=sub/conftest.c object=$am__obj \
3796        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3797        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3798          >/dev/null 2>conftest.err &&
3799        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3800        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3801        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3802        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3803       # icc doesn't choke on unknown options, it will just issue warnings
3804       # or remarks (even with -Werror).  So we grep stderr for any message
3805       # that says an option was ignored or not supported.
3806       # When given -MP, icc 7.0 and 7.1 complain thusly:
3807       #   icc: Command line warning: ignoring option '-M'; no argument required
3808       # The diagnosis changed in icc 8.0:
3809       #   icc: Command line remark: option '-MP' not supported
3810       if (grep 'ignoring option' conftest.err ||
3811           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3812         am_cv_CC_dependencies_compiler_type=$depmode
3813         break
3814       fi
3815     fi
3816   done
3817
3818   cd ..
3819   rm -rf conftest.dir
3820 else
3821   am_cv_CC_dependencies_compiler_type=none
3822 fi
3823
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3826 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3827 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3828
3829  if
3830   test "x$enable_dependency_tracking" != xno \
3831   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3832   am__fastdepCC_TRUE=
3833   am__fastdepCC_FALSE='#'
3834 else
3835   am__fastdepCC_TRUE='#'
3836   am__fastdepCC_FALSE=
3837 fi
3838
3839
3840
3841 case `pwd` in
3842   *\ * | *\     *)
3843     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3844 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3845 esac
3846
3847
3848
3849 macro_version='2.4.2'
3850 macro_revision='1.3337'
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864 ltmain="$ac_aux_dir/ltmain.sh"
3865
3866 # Make sure we can run config.sub.
3867 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3868   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3869
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3871 $as_echo_n "checking build system type... " >&6; }
3872 if ${ac_cv_build+:} false; then :
3873   $as_echo_n "(cached) " >&6
3874 else
3875   ac_build_alias=$build_alias
3876 test "x$ac_build_alias" = x &&
3877   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3878 test "x$ac_build_alias" = x &&
3879   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3880 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3881   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3882
3883 fi
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3885 $as_echo "$ac_cv_build" >&6; }
3886 case $ac_cv_build in
3887 *-*-*) ;;
3888 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3889 esac
3890 build=$ac_cv_build
3891 ac_save_IFS=$IFS; IFS='-'
3892 set x $ac_cv_build
3893 shift
3894 build_cpu=$1
3895 build_vendor=$2
3896 shift; shift
3897 # Remember, the first character of IFS is used to create $*,
3898 # except with old shells:
3899 build_os=$*
3900 IFS=$ac_save_IFS
3901 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3902
3903
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3905 $as_echo_n "checking host system type... " >&6; }
3906 if ${ac_cv_host+:} false; then :
3907   $as_echo_n "(cached) " >&6
3908 else
3909   if test "x$host_alias" = x; then
3910   ac_cv_host=$ac_cv_build
3911 else
3912   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3913     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3914 fi
3915
3916 fi
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3918 $as_echo "$ac_cv_host" >&6; }
3919 case $ac_cv_host in
3920 *-*-*) ;;
3921 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3922 esac
3923 host=$ac_cv_host
3924 ac_save_IFS=$IFS; IFS='-'
3925 set x $ac_cv_host
3926 shift
3927 host_cpu=$1
3928 host_vendor=$2
3929 shift; shift
3930 # Remember, the first character of IFS is used to create $*,
3931 # except with old shells:
3932 host_os=$*
3933 IFS=$ac_save_IFS
3934 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3935
3936
3937 # Backslashify metacharacters that are still active within
3938 # double-quoted strings.
3939 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3940
3941 # Same as above, but do not quote variable references.
3942 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3943
3944 # Sed substitution to delay expansion of an escaped shell variable in a
3945 # double_quote_subst'ed string.
3946 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3947
3948 # Sed substitution to delay expansion of an escaped single quote.
3949 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3950
3951 # Sed substitution to avoid accidental globbing in evaled expressions
3952 no_glob_subst='s/\*/\\\*/g'
3953
3954 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3955 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3956 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3957
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3959 $as_echo_n "checking how to print strings... " >&6; }
3960 # Test print first, because it will be a builtin if present.
3961 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3962    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3963   ECHO='print -r --'
3964 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3965   ECHO='printf %s\n'
3966 else
3967   # Use this function as a fallback that always works.
3968   func_fallback_echo ()
3969   {
3970     eval 'cat <<_LTECHO_EOF
3971 $1
3972 _LTECHO_EOF'
3973   }
3974   ECHO='func_fallback_echo'
3975 fi
3976
3977 # func_echo_all arg...
3978 # Invoke $ECHO with all args, space-separated.
3979 func_echo_all ()
3980 {
3981     $ECHO ""
3982 }
3983
3984 case "$ECHO" in
3985   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3986 $as_echo "printf" >&6; } ;;
3987   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3988 $as_echo "print -r" >&6; } ;;
3989   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3990 $as_echo "cat" >&6; } ;;
3991 esac
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4007 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4008 if ${ac_cv_path_SED+:} false; then :
4009   $as_echo_n "(cached) " >&6
4010 else
4011             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4012      for ac_i in 1 2 3 4 5 6 7; do
4013        ac_script="$ac_script$as_nl$ac_script"
4014      done
4015      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4016      { ac_script=; unset ac_script;}
4017      if test -z "$SED"; then
4018   ac_path_SED_found=false
4019   # Loop through the user's path and test for each of PROGNAME-LIST
4020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 for as_dir in $PATH
4022 do
4023   IFS=$as_save_IFS
4024   test -z "$as_dir" && as_dir=.
4025     for ac_prog in sed gsed; do
4026     for ac_exec_ext in '' $ac_executable_extensions; do
4027       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4028       as_fn_executable_p "$ac_path_SED" || continue
4029 # Check for GNU ac_path_SED and select it if it is found.
4030   # Check for GNU $ac_path_SED
4031 case `"$ac_path_SED" --version 2>&1` in
4032 *GNU*)
4033   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4034 *)
4035   ac_count=0
4036   $as_echo_n 0123456789 >"conftest.in"
4037   while :
4038   do
4039     cat "conftest.in" "conftest.in" >"conftest.tmp"
4040     mv "conftest.tmp" "conftest.in"
4041     cp "conftest.in" "conftest.nl"
4042     $as_echo '' >> "conftest.nl"
4043     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4044     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4045     as_fn_arith $ac_count + 1 && ac_count=$as_val
4046     if test $ac_count -gt ${ac_path_SED_max-0}; then
4047       # Best one so far, save it but keep looking for a better one
4048       ac_cv_path_SED="$ac_path_SED"
4049       ac_path_SED_max=$ac_count
4050     fi
4051     # 10*(2^10) chars as input seems more than enough
4052     test $ac_count -gt 10 && break
4053   done
4054   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4055 esac
4056
4057       $ac_path_SED_found && break 3
4058     done
4059   done
4060   done
4061 IFS=$as_save_IFS
4062   if test -z "$ac_cv_path_SED"; then
4063     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4064   fi
4065 else
4066   ac_cv_path_SED=$SED
4067 fi
4068
4069 fi
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4071 $as_echo "$ac_cv_path_SED" >&6; }
4072  SED="$ac_cv_path_SED"
4073   rm -f conftest.sed
4074
4075 test -z "$SED" && SED=sed
4076 Xsed="$SED -e 1s/^X//"
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4089 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4090 if ${ac_cv_path_GREP+:} false; then :
4091   $as_echo_n "(cached) " >&6
4092 else
4093   if test -z "$GREP"; then
4094   ac_path_GREP_found=false
4095   # Loop through the user's path and test for each of PROGNAME-LIST
4096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4098 do
4099   IFS=$as_save_IFS
4100   test -z "$as_dir" && as_dir=.
4101     for ac_prog in grep ggrep; do
4102     for ac_exec_ext in '' $ac_executable_extensions; do
4103       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4104       as_fn_executable_p "$ac_path_GREP" || continue
4105 # Check for GNU ac_path_GREP and select it if it is found.
4106   # Check for GNU $ac_path_GREP
4107 case `"$ac_path_GREP" --version 2>&1` in
4108 *GNU*)
4109   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4110 *)
4111   ac_count=0
4112   $as_echo_n 0123456789 >"conftest.in"
4113   while :
4114   do
4115     cat "conftest.in" "conftest.in" >"conftest.tmp"
4116     mv "conftest.tmp" "conftest.in"
4117     cp "conftest.in" "conftest.nl"
4118     $as_echo 'GREP' >> "conftest.nl"
4119     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4120     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4121     as_fn_arith $ac_count + 1 && ac_count=$as_val
4122     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4123       # Best one so far, save it but keep looking for a better one
4124       ac_cv_path_GREP="$ac_path_GREP"
4125       ac_path_GREP_max=$ac_count
4126     fi
4127     # 10*(2^10) chars as input seems more than enough
4128     test $ac_count -gt 10 && break
4129   done
4130   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4131 esac
4132
4133       $ac_path_GREP_found && break 3
4134     done
4135   done
4136   done
4137 IFS=$as_save_IFS
4138   if test -z "$ac_cv_path_GREP"; then
4139     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4140   fi
4141 else
4142   ac_cv_path_GREP=$GREP
4143 fi
4144
4145 fi
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4147 $as_echo "$ac_cv_path_GREP" >&6; }
4148  GREP="$ac_cv_path_GREP"
4149
4150
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4152 $as_echo_n "checking for egrep... " >&6; }
4153 if ${ac_cv_path_EGREP+:} false; then :
4154   $as_echo_n "(cached) " >&6
4155 else
4156   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4157    then ac_cv_path_EGREP="$GREP -E"
4158    else
4159      if test -z "$EGREP"; then
4160   ac_path_EGREP_found=false
4161   # Loop through the user's path and test for each of PROGNAME-LIST
4162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4164 do
4165   IFS=$as_save_IFS
4166   test -z "$as_dir" && as_dir=.
4167     for ac_prog in egrep; do
4168     for ac_exec_ext in '' $ac_executable_extensions; do
4169       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4170       as_fn_executable_p "$ac_path_EGREP" || continue
4171 # Check for GNU ac_path_EGREP and select it if it is found.
4172   # Check for GNU $ac_path_EGREP
4173 case `"$ac_path_EGREP" --version 2>&1` in
4174 *GNU*)
4175   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4176 *)
4177   ac_count=0
4178   $as_echo_n 0123456789 >"conftest.in"
4179   while :
4180   do
4181     cat "conftest.in" "conftest.in" >"conftest.tmp"
4182     mv "conftest.tmp" "conftest.in"
4183     cp "conftest.in" "conftest.nl"
4184     $as_echo 'EGREP' >> "conftest.nl"
4185     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4186     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4187     as_fn_arith $ac_count + 1 && ac_count=$as_val
4188     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4189       # Best one so far, save it but keep looking for a better one
4190       ac_cv_path_EGREP="$ac_path_EGREP"
4191       ac_path_EGREP_max=$ac_count
4192     fi
4193     # 10*(2^10) chars as input seems more than enough
4194     test $ac_count -gt 10 && break
4195   done
4196   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4197 esac
4198
4199       $ac_path_EGREP_found && break 3
4200     done
4201   done
4202   done
4203 IFS=$as_save_IFS
4204   if test -z "$ac_cv_path_EGREP"; then
4205     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4206   fi
4207 else
4208   ac_cv_path_EGREP=$EGREP
4209 fi
4210
4211    fi
4212 fi
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4214 $as_echo "$ac_cv_path_EGREP" >&6; }
4215  EGREP="$ac_cv_path_EGREP"
4216
4217
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4219 $as_echo_n "checking for fgrep... " >&6; }
4220 if ${ac_cv_path_FGREP+:} false; then :
4221   $as_echo_n "(cached) " >&6
4222 else
4223   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4224    then ac_cv_path_FGREP="$GREP -F"
4225    else
4226      if test -z "$FGREP"; then
4227   ac_path_FGREP_found=false
4228   # Loop through the user's path and test for each of PROGNAME-LIST
4229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4231 do
4232   IFS=$as_save_IFS
4233   test -z "$as_dir" && as_dir=.
4234     for ac_prog in fgrep; do
4235     for ac_exec_ext in '' $ac_executable_extensions; do
4236       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4237       as_fn_executable_p "$ac_path_FGREP" || continue
4238 # Check for GNU ac_path_FGREP and select it if it is found.
4239   # Check for GNU $ac_path_FGREP
4240 case `"$ac_path_FGREP" --version 2>&1` in
4241 *GNU*)
4242   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4243 *)
4244   ac_count=0
4245   $as_echo_n 0123456789 >"conftest.in"
4246   while :
4247   do
4248     cat "conftest.in" "conftest.in" >"conftest.tmp"
4249     mv "conftest.tmp" "conftest.in"
4250     cp "conftest.in" "conftest.nl"
4251     $as_echo 'FGREP' >> "conftest.nl"
4252     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4253     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4254     as_fn_arith $ac_count + 1 && ac_count=$as_val
4255     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4256       # Best one so far, save it but keep looking for a better one
4257       ac_cv_path_FGREP="$ac_path_FGREP"
4258       ac_path_FGREP_max=$ac_count
4259     fi
4260     # 10*(2^10) chars as input seems more than enough
4261     test $ac_count -gt 10 && break
4262   done
4263   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4264 esac
4265
4266       $ac_path_FGREP_found && break 3
4267     done
4268   done
4269   done
4270 IFS=$as_save_IFS
4271   if test -z "$ac_cv_path_FGREP"; then
4272     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4273   fi
4274 else
4275   ac_cv_path_FGREP=$FGREP
4276 fi
4277
4278    fi
4279 fi
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4281 $as_echo "$ac_cv_path_FGREP" >&6; }
4282  FGREP="$ac_cv_path_FGREP"
4283
4284
4285 test -z "$GREP" && GREP=grep
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305 # Check whether --with-gnu-ld was given.
4306 if test "${with_gnu_ld+set}" = set; then :
4307   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4308 else
4309   with_gnu_ld=no
4310 fi
4311
4312 ac_prog=ld
4313 if test "$GCC" = yes; then
4314   # Check if gcc -print-prog-name=ld gives a path.
4315   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4316 $as_echo_n "checking for ld used by $CC... " >&6; }
4317   case $host in
4318   *-*-mingw*)
4319     # gcc leaves a trailing carriage return which upsets mingw
4320     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4321   *)
4322     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4323   esac
4324   case $ac_prog in
4325     # Accept absolute paths.
4326     [\\/]* | ?:[\\/]*)
4327       re_direlt='/[^/][^/]*/\.\./'
4328       # Canonicalize the pathname of ld
4329       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4330       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4331         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4332       done
4333       test -z "$LD" && LD="$ac_prog"
4334       ;;
4335   "")
4336     # If it fails, then pretend we aren't using GCC.
4337     ac_prog=ld
4338     ;;
4339   *)
4340     # If it is relative, then search for the first ld in PATH.
4341     with_gnu_ld=unknown
4342     ;;
4343   esac
4344 elif test "$with_gnu_ld" = yes; then
4345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4346 $as_echo_n "checking for GNU ld... " >&6; }
4347 else
4348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4349 $as_echo_n "checking for non-GNU ld... " >&6; }
4350 fi
4351 if ${lt_cv_path_LD+:} false; then :
4352   $as_echo_n "(cached) " >&6
4353 else
4354   if test -z "$LD"; then
4355   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4356   for ac_dir in $PATH; do
4357     IFS="$lt_save_ifs"
4358     test -z "$ac_dir" && ac_dir=.
4359     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4360       lt_cv_path_LD="$ac_dir/$ac_prog"
4361       # Check to see if the program is GNU ld.  I'd rather use --version,
4362       # but apparently some variants of GNU ld only accept -v.
4363       # Break only if it was the GNU/non-GNU ld that we prefer.
4364       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4365       *GNU* | *'with BFD'*)
4366         test "$with_gnu_ld" != no && break
4367         ;;
4368       *)
4369         test "$with_gnu_ld" != yes && break
4370         ;;
4371       esac
4372     fi
4373   done
4374   IFS="$lt_save_ifs"
4375 else
4376   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4377 fi
4378 fi
4379
4380 LD="$lt_cv_path_LD"
4381 if test -n "$LD"; then
4382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4383 $as_echo "$LD" >&6; }
4384 else
4385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4387 fi
4388 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4390 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4391 if ${lt_cv_prog_gnu_ld+:} false; then :
4392   $as_echo_n "(cached) " >&6
4393 else
4394   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4395 case `$LD -v 2>&1 </dev/null` in
4396 *GNU* | *'with BFD'*)
4397   lt_cv_prog_gnu_ld=yes
4398   ;;
4399 *)
4400   lt_cv_prog_gnu_ld=no
4401   ;;
4402 esac
4403 fi
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4405 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4406 with_gnu_ld=$lt_cv_prog_gnu_ld
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4417 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4418 if ${lt_cv_path_NM+:} false; then :
4419   $as_echo_n "(cached) " >&6
4420 else
4421   if test -n "$NM"; then
4422   # Let the user override the test.
4423   lt_cv_path_NM="$NM"
4424 else
4425   lt_nm_to_check="${ac_tool_prefix}nm"
4426   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4427     lt_nm_to_check="$lt_nm_to_check nm"
4428   fi
4429   for lt_tmp_nm in $lt_nm_to_check; do
4430     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4431     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4432       IFS="$lt_save_ifs"
4433       test -z "$ac_dir" && ac_dir=.
4434       tmp_nm="$ac_dir/$lt_tmp_nm"
4435       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4436         # Check to see if the nm accepts a BSD-compat flag.
4437         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4438         #   nm: unknown option "B" ignored
4439         # Tru64's nm complains that /dev/null is an invalid object file
4440         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4441         */dev/null* | *'Invalid file or object type'*)
4442           lt_cv_path_NM="$tmp_nm -B"
4443           break
4444           ;;
4445         *)
4446           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4447           */dev/null*)
4448             lt_cv_path_NM="$tmp_nm -p"
4449             break
4450             ;;
4451           *)
4452             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4453             continue # so that we can try to find one that supports BSD flags
4454             ;;
4455           esac
4456           ;;
4457         esac
4458       fi
4459     done
4460     IFS="$lt_save_ifs"
4461   done
4462   : ${lt_cv_path_NM=no}
4463 fi
4464 fi
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4466 $as_echo "$lt_cv_path_NM" >&6; }
4467 if test "$lt_cv_path_NM" != "no"; then
4468   NM="$lt_cv_path_NM"
4469 else
4470   # Didn't find any BSD compatible name lister, look for dumpbin.
4471   if test -n "$DUMPBIN"; then :
4472     # Let the user override the test.
4473   else
4474     if test -n "$ac_tool_prefix"; then
4475   for ac_prog in dumpbin "link -dump"
4476   do
4477     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4478 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4480 $as_echo_n "checking for $ac_word... " >&6; }
4481 if ${ac_cv_prog_DUMPBIN+:} false; then :
4482   $as_echo_n "(cached) " >&6
4483 else
4484   if test -n "$DUMPBIN"; then
4485   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4486 else
4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 for as_dir in $PATH
4489 do
4490   IFS=$as_save_IFS
4491   test -z "$as_dir" && as_dir=.
4492     for ac_exec_ext in '' $ac_executable_extensions; do
4493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4494     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4496     break 2
4497   fi
4498 done
4499   done
4500 IFS=$as_save_IFS
4501
4502 fi
4503 fi
4504 DUMPBIN=$ac_cv_prog_DUMPBIN
4505 if test -n "$DUMPBIN"; then
4506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4507 $as_echo "$DUMPBIN" >&6; }
4508 else
4509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510 $as_echo "no" >&6; }
4511 fi
4512
4513
4514     test -n "$DUMPBIN" && break
4515   done
4516 fi
4517 if test -z "$DUMPBIN"; then
4518   ac_ct_DUMPBIN=$DUMPBIN
4519   for ac_prog in dumpbin "link -dump"
4520 do
4521   # Extract the first word of "$ac_prog", so it can be a program name with args.
4522 set dummy $ac_prog; ac_word=$2
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4524 $as_echo_n "checking for $ac_word... " >&6; }
4525 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4526   $as_echo_n "(cached) " >&6
4527 else
4528   if test -n "$ac_ct_DUMPBIN"; then
4529   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4530 else
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH
4533 do
4534   IFS=$as_save_IFS
4535   test -z "$as_dir" && as_dir=.
4536     for ac_exec_ext in '' $ac_executable_extensions; do
4537   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4538     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4540     break 2
4541   fi
4542 done
4543   done
4544 IFS=$as_save_IFS
4545
4546 fi
4547 fi
4548 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4549 if test -n "$ac_ct_DUMPBIN"; then
4550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4551 $as_echo "$ac_ct_DUMPBIN" >&6; }
4552 else
4553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4554 $as_echo "no" >&6; }
4555 fi
4556
4557
4558   test -n "$ac_ct_DUMPBIN" && break
4559 done
4560
4561   if test "x$ac_ct_DUMPBIN" = x; then
4562     DUMPBIN=":"
4563   else
4564     case $cross_compiling:$ac_tool_warned in
4565 yes:)
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4568 ac_tool_warned=yes ;;
4569 esac
4570     DUMPBIN=$ac_ct_DUMPBIN
4571   fi
4572 fi
4573
4574     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4575     *COFF*)
4576       DUMPBIN="$DUMPBIN -symbols"
4577       ;;
4578     *)
4579       DUMPBIN=:
4580       ;;
4581     esac
4582   fi
4583
4584   if test "$DUMPBIN" != ":"; then
4585     NM="$DUMPBIN"
4586   fi
4587 fi
4588 test -z "$NM" && NM=nm
4589
4590
4591
4592
4593
4594
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4596 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4597 if ${lt_cv_nm_interface+:} false; then :
4598   $as_echo_n "(cached) " >&6
4599 else
4600   lt_cv_nm_interface="BSD nm"
4601   echo "int some_variable = 0;" > conftest.$ac_ext
4602   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4603   (eval "$ac_compile" 2>conftest.err)
4604   cat conftest.err >&5
4605   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4606   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4607   cat conftest.err >&5
4608   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4609   cat conftest.out >&5
4610   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4611     lt_cv_nm_interface="MS dumpbin"
4612   fi
4613   rm -f conftest*
4614 fi
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4616 $as_echo "$lt_cv_nm_interface" >&6; }
4617
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4619 $as_echo_n "checking whether ln -s works... " >&6; }
4620 LN_S=$as_ln_s
4621 if test "$LN_S" = "ln -s"; then
4622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4623 $as_echo "yes" >&6; }
4624 else
4625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4626 $as_echo "no, using $LN_S" >&6; }
4627 fi
4628
4629 # find the maximum length of command line arguments
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4631 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4632 if ${lt_cv_sys_max_cmd_len+:} false; then :
4633   $as_echo_n "(cached) " >&6
4634 else
4635     i=0
4636   teststring="ABCD"
4637
4638   case $build_os in
4639   msdosdjgpp*)
4640     # On DJGPP, this test can blow up pretty badly due to problems in libc
4641     # (any single argument exceeding 2000 bytes causes a buffer overrun
4642     # during glob expansion).  Even if it were fixed, the result of this
4643     # check would be larger than it should be.
4644     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4645     ;;
4646
4647   gnu*)
4648     # Under GNU Hurd, this test is not required because there is
4649     # no limit to the length of command line arguments.
4650     # Libtool will interpret -1 as no limit whatsoever
4651     lt_cv_sys_max_cmd_len=-1;
4652     ;;
4653
4654   cygwin* | mingw* | cegcc*)
4655     # On Win9x/ME, this test blows up -- it succeeds, but takes
4656     # about 5 minutes as the teststring grows exponentially.
4657     # Worse, since 9x/ME are not pre-emptively multitasking,
4658     # you end up with a "frozen" computer, even though with patience
4659     # the test eventually succeeds (with a max line length of 256k).
4660     # Instead, let's just punt: use the minimum linelength reported by
4661     # all of the supported platforms: 8192 (on NT/2K/XP).
4662     lt_cv_sys_max_cmd_len=8192;
4663     ;;
4664
4665   mint*)
4666     # On MiNT this can take a long time and run out of memory.
4667     lt_cv_sys_max_cmd_len=8192;
4668     ;;
4669
4670   amigaos*)
4671     # On AmigaOS with pdksh, this test takes hours, literally.
4672     # So we just punt and use a minimum line length of 8192.
4673     lt_cv_sys_max_cmd_len=8192;
4674     ;;
4675
4676   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4677     # This has been around since 386BSD, at least.  Likely further.
4678     if test -x /sbin/sysctl; then
4679       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4680     elif test -x /usr/sbin/sysctl; then
4681       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4682     else
4683       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4684     fi
4685     # And add a safety zone
4686     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4687     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4688     ;;
4689
4690   interix*)
4691     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4692     lt_cv_sys_max_cmd_len=196608
4693     ;;
4694
4695   os2*)
4696     # The test takes a long time on OS/2.
4697     lt_cv_sys_max_cmd_len=8192
4698     ;;
4699
4700   osf*)
4701     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4702     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4703     # nice to cause kernel panics so lets avoid the loop below.
4704     # First set a reasonable default.
4705     lt_cv_sys_max_cmd_len=16384
4706     #
4707     if test -x /sbin/sysconfig; then
4708       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4709         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4710       esac
4711     fi
4712     ;;
4713   sco3.2v5*)
4714     lt_cv_sys_max_cmd_len=102400
4715     ;;
4716   sysv5* | sco5v6* | sysv4.2uw2*)
4717     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4718     if test -n "$kargmax"; then
4719       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4720     else
4721       lt_cv_sys_max_cmd_len=32768
4722     fi
4723     ;;
4724   *)
4725     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4726     if test -n "$lt_cv_sys_max_cmd_len"; then
4727       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4728       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4729     else
4730       # Make teststring a little bigger before we do anything with it.
4731       # a 1K string should be a reasonable start.
4732       for i in 1 2 3 4 5 6 7 8 ; do
4733         teststring=$teststring$teststring
4734       done
4735       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4736       # If test is not a shell built-in, we'll probably end up computing a
4737       # maximum length that is only half of the actual maximum length, but
4738       # we can't tell.
4739       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4740                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4741               test $i != 17 # 1/2 MB should be enough
4742       do
4743         i=`expr $i + 1`
4744         teststring=$teststring$teststring
4745       done
4746       # Only check the string length outside the loop.
4747       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4748       teststring=
4749       # Add a significant safety factor because C++ compilers can tack on
4750       # massive amounts of additional arguments before passing them to the
4751       # linker.  It appears as though 1/2 is a usable value.
4752       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4753     fi
4754     ;;
4755   esac
4756
4757 fi
4758
4759 if test -n $lt_cv_sys_max_cmd_len ; then
4760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4761 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4762 else
4763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4764 $as_echo "none" >&6; }
4765 fi
4766 max_cmd_len=$lt_cv_sys_max_cmd_len
4767
4768
4769
4770
4771
4772
4773 : ${CP="cp -f"}
4774 : ${MV="mv -f"}
4775 : ${RM="rm -f"}
4776
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4778 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4779 # Try some XSI features
4780 xsi_shell=no
4781 ( _lt_dummy="a/b/c"
4782   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4783       = c,a/b,b/c, \
4784     && eval 'test $(( 1 + 1 )) -eq 2 \
4785     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4786   && xsi_shell=yes
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4788 $as_echo "$xsi_shell" >&6; }
4789
4790
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4792 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4793 lt_shell_append=no
4794 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4795     >/dev/null 2>&1 \
4796   && lt_shell_append=yes
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4798 $as_echo "$lt_shell_append" >&6; }
4799
4800
4801 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4802   lt_unset=unset
4803 else
4804   lt_unset=false
4805 fi
4806
4807
4808
4809
4810
4811 # test EBCDIC or ASCII
4812 case `echo X|tr X '\101'` in
4813  A) # ASCII based system
4814     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4815   lt_SP2NL='tr \040 \012'
4816   lt_NL2SP='tr \015\012 \040\040'
4817   ;;
4818  *) # EBCDIC based system
4819   lt_SP2NL='tr \100 \n'
4820   lt_NL2SP='tr \r\n \100\100'
4821   ;;
4822 esac
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4833 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4834 if ${lt_cv_to_host_file_cmd+:} false; then :
4835   $as_echo_n "(cached) " >&6
4836 else
4837   case $host in
4838   *-*-mingw* )
4839     case $build in
4840       *-*-mingw* ) # actually msys
4841         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4842         ;;
4843       *-*-cygwin* )
4844         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4845         ;;
4846       * ) # otherwise, assume *nix
4847         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4848         ;;
4849     esac
4850     ;;
4851   *-*-cygwin* )
4852     case $build in
4853       *-*-mingw* ) # actually msys
4854         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4855         ;;
4856       *-*-cygwin* )
4857         lt_cv_to_host_file_cmd=func_convert_file_noop
4858         ;;
4859       * ) # otherwise, assume *nix
4860         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4861         ;;
4862     esac
4863     ;;
4864   * ) # unhandled hosts (and "normal" native builds)
4865     lt_cv_to_host_file_cmd=func_convert_file_noop
4866     ;;
4867 esac
4868
4869 fi
4870
4871 to_host_file_cmd=$lt_cv_to_host_file_cmd
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4873 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4874
4875
4876
4877
4878
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4880 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4881 if ${lt_cv_to_tool_file_cmd+:} false; then :
4882   $as_echo_n "(cached) " >&6
4883 else
4884   #assume ordinary cross tools, or native build.
4885 lt_cv_to_tool_file_cmd=func_convert_file_noop
4886 case $host in
4887   *-*-mingw* )
4888     case $build in
4889       *-*-mingw* ) # actually msys
4890         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4891         ;;
4892     esac
4893     ;;
4894 esac
4895
4896 fi
4897
4898 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4900 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4901
4902
4903
4904
4905
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4907 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4908 if ${lt_cv_ld_reload_flag+:} false; then :
4909   $as_echo_n "(cached) " >&6
4910 else
4911   lt_cv_ld_reload_flag='-r'
4912 fi
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4914 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4915 reload_flag=$lt_cv_ld_reload_flag
4916 case $reload_flag in
4917 "" | " "*) ;;
4918 *) reload_flag=" $reload_flag" ;;
4919 esac
4920 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4921 case $host_os in
4922   cygwin* | mingw* | pw32* | cegcc*)
4923     if test "$GCC" != yes; then
4924       reload_cmds=false
4925     fi
4926     ;;
4927   darwin*)
4928     if test "$GCC" = yes; then
4929       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4930     else
4931       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4932     fi
4933     ;;
4934 esac
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944 if test -n "$ac_tool_prefix"; then
4945   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4946 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if ${ac_cv_prog_OBJDUMP+:} false; then :
4950   $as_echo_n "(cached) " >&6
4951 else
4952   if test -n "$OBJDUMP"; then
4953   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4957 do
4958   IFS=$as_save_IFS
4959   test -z "$as_dir" && as_dir=.
4960     for ac_exec_ext in '' $ac_executable_extensions; do
4961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964     break 2
4965   fi
4966 done
4967   done
4968 IFS=$as_save_IFS
4969
4970 fi
4971 fi
4972 OBJDUMP=$ac_cv_prog_OBJDUMP
4973 if test -n "$OBJDUMP"; then
4974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4975 $as_echo "$OBJDUMP" >&6; }
4976 else
4977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4979 fi
4980
4981
4982 fi
4983 if test -z "$ac_cv_prog_OBJDUMP"; then
4984   ac_ct_OBJDUMP=$OBJDUMP
4985   # Extract the first word of "objdump", so it can be a program name with args.
4986 set dummy objdump; ac_word=$2
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4988 $as_echo_n "checking for $ac_word... " >&6; }
4989 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4990   $as_echo_n "(cached) " >&6
4991 else
4992   if test -n "$ac_ct_OBJDUMP"; then
4993   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4994 else
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH
4997 do
4998   IFS=$as_save_IFS
4999   test -z "$as_dir" && as_dir=.
5000     for ac_exec_ext in '' $ac_executable_extensions; do
5001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5002     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5004     break 2
5005   fi
5006 done
5007   done
5008 IFS=$as_save_IFS
5009
5010 fi
5011 fi
5012 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5013 if test -n "$ac_ct_OBJDUMP"; then
5014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5015 $as_echo "$ac_ct_OBJDUMP" >&6; }
5016 else
5017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5018 $as_echo "no" >&6; }
5019 fi
5020
5021   if test "x$ac_ct_OBJDUMP" = x; then
5022     OBJDUMP="false"
5023   else
5024     case $cross_compiling:$ac_tool_warned in
5025 yes:)
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5028 ac_tool_warned=yes ;;
5029 esac
5030     OBJDUMP=$ac_ct_OBJDUMP
5031   fi
5032 else
5033   OBJDUMP="$ac_cv_prog_OBJDUMP"
5034 fi
5035
5036 test -z "$OBJDUMP" && OBJDUMP=objdump
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5047 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5048 if ${lt_cv_deplibs_check_method+:} false; then :
5049   $as_echo_n "(cached) " >&6
5050 else
5051   lt_cv_file_magic_cmd='$MAGIC_CMD'
5052 lt_cv_file_magic_test_file=
5053 lt_cv_deplibs_check_method='unknown'
5054 # Need to set the preceding variable on all platforms that support
5055 # interlibrary dependencies.
5056 # 'none' -- dependencies not supported.
5057 # `unknown' -- same as none, but documents that we really don't know.
5058 # 'pass_all' -- all dependencies passed with no checks.
5059 # 'test_compile' -- check by making test program.
5060 # 'file_magic [[regex]]' -- check by looking for files in library path
5061 # which responds to the $file_magic_cmd with a given extended regex.
5062 # If you have `file' or equivalent on your system and you're not sure
5063 # whether `pass_all' will *always* work, you probably want this one.
5064
5065 case $host_os in
5066 aix[4-9]*)
5067   lt_cv_deplibs_check_method=pass_all
5068   ;;
5069
5070 beos*)
5071   lt_cv_deplibs_check_method=pass_all
5072   ;;
5073
5074 bsdi[45]*)
5075   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5076   lt_cv_file_magic_cmd='/usr/bin/file -L'
5077   lt_cv_file_magic_test_file=/shlib/libc.so
5078   ;;
5079
5080 cygwin*)
5081   # func_win32_libid is a shell function defined in ltmain.sh
5082   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5083   lt_cv_file_magic_cmd='func_win32_libid'
5084   ;;
5085
5086 mingw* | pw32*)
5087   # Base MSYS/MinGW do not provide the 'file' command needed by
5088   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5089   # unless we find 'file', for example because we are cross-compiling.
5090   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5091   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5092     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5093     lt_cv_file_magic_cmd='func_win32_libid'
5094   else
5095     # Keep this pattern in sync with the one in func_win32_libid.
5096     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5097     lt_cv_file_magic_cmd='$OBJDUMP -f'
5098   fi
5099   ;;
5100
5101 cegcc*)
5102   # use the weaker test based on 'objdump'. See mingw*.
5103   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5104   lt_cv_file_magic_cmd='$OBJDUMP -f'
5105   ;;
5106
5107 darwin* | rhapsody*)
5108   lt_cv_deplibs_check_method=pass_all
5109   ;;
5110
5111 freebsd* | dragonfly*)
5112   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5113     case $host_cpu in
5114     i*86 )
5115       # Not sure whether the presence of OpenBSD here was a mistake.
5116       # Let's accept both of them until this is cleared up.
5117       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5118       lt_cv_file_magic_cmd=/usr/bin/file
5119       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5120       ;;
5121     esac
5122   else
5123     lt_cv_deplibs_check_method=pass_all
5124   fi
5125   ;;
5126
5127 gnu*)
5128   lt_cv_deplibs_check_method=pass_all
5129   ;;
5130
5131 haiku*)
5132   lt_cv_deplibs_check_method=pass_all
5133   ;;
5134
5135 hpux10.20* | hpux11*)
5136   lt_cv_file_magic_cmd=/usr/bin/file
5137   case $host_cpu in
5138   ia64*)
5139     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5140     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5141     ;;
5142   hppa*64*)
5143     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]'
5144     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5145     ;;
5146   *)
5147     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5148     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5149     ;;
5150   esac
5151   ;;
5152
5153 interix[3-9]*)
5154   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5155   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5156   ;;
5157
5158 irix5* | irix6* | nonstopux*)
5159   case $LD in
5160   *-32|*"-32 ") libmagic=32-bit;;
5161   *-n32|*"-n32 ") libmagic=N32;;
5162   *-64|*"-64 ") libmagic=64-bit;;
5163   *) libmagic=never-match;;
5164   esac
5165   lt_cv_deplibs_check_method=pass_all
5166   ;;
5167
5168 # This must be glibc/ELF.
5169 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5170   lt_cv_deplibs_check_method=pass_all
5171   ;;
5172
5173 netbsd*)
5174   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5175     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5176   else
5177     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5178   fi
5179   ;;
5180
5181 newos6*)
5182   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5183   lt_cv_file_magic_cmd=/usr/bin/file
5184   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5185   ;;
5186
5187 *nto* | *qnx*)
5188   lt_cv_deplibs_check_method=pass_all
5189   ;;
5190
5191 openbsd*)
5192   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5193     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5194   else
5195     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5196   fi
5197   ;;
5198
5199 osf3* | osf4* | osf5*)
5200   lt_cv_deplibs_check_method=pass_all
5201   ;;
5202
5203 rdos*)
5204   lt_cv_deplibs_check_method=pass_all
5205   ;;
5206
5207 solaris*)
5208   lt_cv_deplibs_check_method=pass_all
5209   ;;
5210
5211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5212   lt_cv_deplibs_check_method=pass_all
5213   ;;
5214
5215 sysv4 | sysv4.3*)
5216   case $host_vendor in
5217   motorola)
5218     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]'
5219     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5220     ;;
5221   ncr)
5222     lt_cv_deplibs_check_method=pass_all
5223     ;;
5224   sequent)
5225     lt_cv_file_magic_cmd='/bin/file'
5226     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5227     ;;
5228   sni)
5229     lt_cv_file_magic_cmd='/bin/file'
5230     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5231     lt_cv_file_magic_test_file=/lib/libc.so
5232     ;;
5233   siemens)
5234     lt_cv_deplibs_check_method=pass_all
5235     ;;
5236   pc)
5237     lt_cv_deplibs_check_method=pass_all
5238     ;;
5239   esac
5240   ;;
5241
5242 tpf*)
5243   lt_cv_deplibs_check_method=pass_all
5244   ;;
5245 esac
5246
5247 fi
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5249 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5250
5251 file_magic_glob=
5252 want_nocaseglob=no
5253 if test "$build" = "$host"; then
5254   case $host_os in
5255   mingw* | pw32*)
5256     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5257       want_nocaseglob=yes
5258     else
5259       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5260     fi
5261     ;;
5262   esac
5263 fi
5264
5265 file_magic_cmd=$lt_cv_file_magic_cmd
5266 deplibs_check_method=$lt_cv_deplibs_check_method
5267 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290 if test -n "$ac_tool_prefix"; then
5291   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5292 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if ${ac_cv_prog_DLLTOOL+:} false; then :
5296   $as_echo_n "(cached) " >&6
5297 else
5298   if test -n "$DLLTOOL"; then
5299   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5300 else
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5303 do
5304   IFS=$as_save_IFS
5305   test -z "$as_dir" && as_dir=.
5306     for ac_exec_ext in '' $ac_executable_extensions; do
5307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5308     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310     break 2
5311   fi
5312 done
5313   done
5314 IFS=$as_save_IFS
5315
5316 fi
5317 fi
5318 DLLTOOL=$ac_cv_prog_DLLTOOL
5319 if test -n "$DLLTOOL"; then
5320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5321 $as_echo "$DLLTOOL" >&6; }
5322 else
5323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5325 fi
5326
5327
5328 fi
5329 if test -z "$ac_cv_prog_DLLTOOL"; then
5330   ac_ct_DLLTOOL=$DLLTOOL
5331   # Extract the first word of "dlltool", so it can be a program name with args.
5332 set dummy dlltool; ac_word=$2
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334 $as_echo_n "checking for $ac_word... " >&6; }
5335 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5336   $as_echo_n "(cached) " >&6
5337 else
5338   if test -n "$ac_ct_DLLTOOL"; then
5339   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5340 else
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH
5343 do
5344   IFS=$as_save_IFS
5345   test -z "$as_dir" && as_dir=.
5346     for ac_exec_ext in '' $ac_executable_extensions; do
5347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5348     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5350     break 2
5351   fi
5352 done
5353   done
5354 IFS=$as_save_IFS
5355
5356 fi
5357 fi
5358 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5359 if test -n "$ac_ct_DLLTOOL"; then
5360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5361 $as_echo "$ac_ct_DLLTOOL" >&6; }
5362 else
5363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5365 fi
5366
5367   if test "x$ac_ct_DLLTOOL" = x; then
5368     DLLTOOL="false"
5369   else
5370     case $cross_compiling:$ac_tool_warned in
5371 yes:)
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5374 ac_tool_warned=yes ;;
5375 esac
5376     DLLTOOL=$ac_ct_DLLTOOL
5377   fi
5378 else
5379   DLLTOOL="$ac_cv_prog_DLLTOOL"
5380 fi
5381
5382 test -z "$DLLTOOL" && DLLTOOL=dlltool
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5394 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5395 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5396   $as_echo_n "(cached) " >&6
5397 else
5398   lt_cv_sharedlib_from_linklib_cmd='unknown'
5399
5400 case $host_os in
5401 cygwin* | mingw* | pw32* | cegcc*)
5402   # two different shell functions defined in ltmain.sh
5403   # decide which to use based on capabilities of $DLLTOOL
5404   case `$DLLTOOL --help 2>&1` in
5405   *--identify-strict*)
5406     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5407     ;;
5408   *)
5409     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5410     ;;
5411   esac
5412   ;;
5413 *)
5414   # fallback: assume linklib IS sharedlib
5415   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5416   ;;
5417 esac
5418
5419 fi
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5421 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5422 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5423 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5424
5425
5426
5427
5428
5429
5430
5431
5432 if test -n "$ac_tool_prefix"; then
5433   for ac_prog in ar
5434   do
5435     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438 $as_echo_n "checking for $ac_word... " >&6; }
5439 if ${ac_cv_prog_AR+:} false; then :
5440   $as_echo_n "(cached) " >&6
5441 else
5442   if test -n "$AR"; then
5443   ac_cv_prog_AR="$AR" # Let the user override the test.
5444 else
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 for as_dir in $PATH
5447 do
5448   IFS=$as_save_IFS
5449   test -z "$as_dir" && as_dir=.
5450     for ac_exec_ext in '' $ac_executable_extensions; do
5451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5452     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5454     break 2
5455   fi
5456 done
5457   done
5458 IFS=$as_save_IFS
5459
5460 fi
5461 fi
5462 AR=$ac_cv_prog_AR
5463 if test -n "$AR"; then
5464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5465 $as_echo "$AR" >&6; }
5466 else
5467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; }
5469 fi
5470
5471
5472     test -n "$AR" && break
5473   done
5474 fi
5475 if test -z "$AR"; then
5476   ac_ct_AR=$AR
5477   for ac_prog in ar
5478 do
5479   # Extract the first word of "$ac_prog", so it can be a program name with args.
5480 set dummy $ac_prog; ac_word=$2
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482 $as_echo_n "checking for $ac_word... " >&6; }
5483 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5484   $as_echo_n "(cached) " >&6
5485 else
5486   if test -n "$ac_ct_AR"; then
5487   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5488 else
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 for as_dir in $PATH
5491 do
5492   IFS=$as_save_IFS
5493   test -z "$as_dir" && as_dir=.
5494     for ac_exec_ext in '' $ac_executable_extensions; do
5495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5496     ac_cv_prog_ac_ct_AR="$ac_prog"
5497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498     break 2
5499   fi
5500 done
5501   done
5502 IFS=$as_save_IFS
5503
5504 fi
5505 fi
5506 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5507 if test -n "$ac_ct_AR"; then
5508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5509 $as_echo "$ac_ct_AR" >&6; }
5510 else
5511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5513 fi
5514
5515
5516   test -n "$ac_ct_AR" && break
5517 done
5518
5519   if test "x$ac_ct_AR" = x; then
5520     AR="false"
5521   else
5522     case $cross_compiling:$ac_tool_warned in
5523 yes:)
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5526 ac_tool_warned=yes ;;
5527 esac
5528     AR=$ac_ct_AR
5529   fi
5530 fi
5531
5532 : ${AR=ar}
5533 : ${AR_FLAGS=cru}
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5546 $as_echo_n "checking for archiver @FILE support... " >&6; }
5547 if ${lt_cv_ar_at_file+:} false; then :
5548   $as_echo_n "(cached) " >&6
5549 else
5550   lt_cv_ar_at_file=no
5551    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h.  */
5553
5554 int
5555 main ()
5556 {
5557
5558   ;
5559   return 0;
5560 }
5561 _ACEOF
5562 if ac_fn_c_try_compile "$LINENO"; then :
5563   echo conftest.$ac_objext > conftest.lst
5564       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5565       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5566   (eval $lt_ar_try) 2>&5
5567   ac_status=$?
5568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5569   test $ac_status = 0; }
5570       if test "$ac_status" -eq 0; then
5571         # Ensure the archiver fails upon bogus file names.
5572         rm -f conftest.$ac_objext libconftest.a
5573         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5574   (eval $lt_ar_try) 2>&5
5575   ac_status=$?
5576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5577   test $ac_status = 0; }
5578         if test "$ac_status" -ne 0; then
5579           lt_cv_ar_at_file=@
5580         fi
5581       fi
5582       rm -f conftest.* libconftest.a
5583
5584 fi
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586
5587 fi
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5589 $as_echo "$lt_cv_ar_at_file" >&6; }
5590
5591 if test "x$lt_cv_ar_at_file" = xno; then
5592   archiver_list_spec=
5593 else
5594   archiver_list_spec=$lt_cv_ar_at_file
5595 fi
5596
5597
5598
5599
5600
5601
5602
5603 if test -n "$ac_tool_prefix"; then
5604   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5605 set dummy ${ac_tool_prefix}strip; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if ${ac_cv_prog_STRIP+:} false; then :
5609   $as_echo_n "(cached) " >&6
5610 else
5611   if test -n "$STRIP"; then
5612   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5613 else
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5616 do
5617   IFS=$as_save_IFS
5618   test -z "$as_dir" && as_dir=.
5619     for ac_exec_ext in '' $ac_executable_extensions; do
5620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623     break 2
5624   fi
5625 done
5626   done
5627 IFS=$as_save_IFS
5628
5629 fi
5630 fi
5631 STRIP=$ac_cv_prog_STRIP
5632 if test -n "$STRIP"; then
5633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5634 $as_echo "$STRIP" >&6; }
5635 else
5636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5638 fi
5639
5640
5641 fi
5642 if test -z "$ac_cv_prog_STRIP"; then
5643   ac_ct_STRIP=$STRIP
5644   # Extract the first word of "strip", so it can be a program name with args.
5645 set dummy strip; ac_word=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5649   $as_echo_n "(cached) " >&6
5650 else
5651   if test -n "$ac_ct_STRIP"; then
5652   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5653 else
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH
5656 do
5657   IFS=$as_save_IFS
5658   test -z "$as_dir" && as_dir=.
5659     for ac_exec_ext in '' $ac_executable_extensions; do
5660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5661     ac_cv_prog_ac_ct_STRIP="strip"
5662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663     break 2
5664   fi
5665 done
5666   done
5667 IFS=$as_save_IFS
5668
5669 fi
5670 fi
5671 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5672 if test -n "$ac_ct_STRIP"; then
5673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5674 $as_echo "$ac_ct_STRIP" >&6; }
5675 else
5676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677 $as_echo "no" >&6; }
5678 fi
5679
5680   if test "x$ac_ct_STRIP" = x; then
5681     STRIP=":"
5682   else
5683     case $cross_compiling:$ac_tool_warned in
5684 yes:)
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5687 ac_tool_warned=yes ;;
5688 esac
5689     STRIP=$ac_ct_STRIP
5690   fi
5691 else
5692   STRIP="$ac_cv_prog_STRIP"
5693 fi
5694
5695 test -z "$STRIP" && STRIP=:
5696
5697
5698
5699
5700
5701
5702 if test -n "$ac_tool_prefix"; then
5703   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5704 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if ${ac_cv_prog_RANLIB+:} false; then :
5708   $as_echo_n "(cached) " >&6
5709 else
5710   if test -n "$RANLIB"; then
5711   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5712 else
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH
5715 do
5716   IFS=$as_save_IFS
5717   test -z "$as_dir" && as_dir=.
5718     for ac_exec_ext in '' $ac_executable_extensions; do
5719   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5720     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722     break 2
5723   fi
5724 done
5725   done
5726 IFS=$as_save_IFS
5727
5728 fi
5729 fi
5730 RANLIB=$ac_cv_prog_RANLIB
5731 if test -n "$RANLIB"; then
5732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5733 $as_echo "$RANLIB" >&6; }
5734 else
5735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5737 fi
5738
5739
5740 fi
5741 if test -z "$ac_cv_prog_RANLIB"; then
5742   ac_ct_RANLIB=$RANLIB
5743   # Extract the first word of "ranlib", so it can be a program name with args.
5744 set dummy ranlib; ac_word=$2
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746 $as_echo_n "checking for $ac_word... " >&6; }
5747 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5748   $as_echo_n "(cached) " >&6
5749 else
5750   if test -n "$ac_ct_RANLIB"; then
5751   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5752 else
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH
5755 do
5756   IFS=$as_save_IFS
5757   test -z "$as_dir" && as_dir=.
5758     for ac_exec_ext in '' $ac_executable_extensions; do
5759   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5760     ac_cv_prog_ac_ct_RANLIB="ranlib"
5761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762     break 2
5763   fi
5764 done
5765   done
5766 IFS=$as_save_IFS
5767
5768 fi
5769 fi
5770 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5771 if test -n "$ac_ct_RANLIB"; then
5772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5773 $as_echo "$ac_ct_RANLIB" >&6; }
5774 else
5775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776 $as_echo "no" >&6; }
5777 fi
5778
5779   if test "x$ac_ct_RANLIB" = x; then
5780     RANLIB=":"
5781   else
5782     case $cross_compiling:$ac_tool_warned in
5783 yes:)
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5786 ac_tool_warned=yes ;;
5787 esac
5788     RANLIB=$ac_ct_RANLIB
5789   fi
5790 else
5791   RANLIB="$ac_cv_prog_RANLIB"
5792 fi
5793
5794 test -z "$RANLIB" && RANLIB=:
5795
5796
5797
5798
5799
5800
5801 # Determine commands to create old-style static archives.
5802 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5803 old_postinstall_cmds='chmod 644 $oldlib'
5804 old_postuninstall_cmds=
5805
5806 if test -n "$RANLIB"; then
5807   case $host_os in
5808   openbsd*)
5809     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5810     ;;
5811   *)
5812     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5813     ;;
5814   esac
5815   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5816 fi
5817
5818 case $host_os in
5819   darwin*)
5820     lock_old_archive_extraction=yes ;;
5821   *)
5822     lock_old_archive_extraction=no ;;
5823 esac
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863 # If no C compiler was specified, use CC.
5864 LTCC=${LTCC-"$CC"}
5865
5866 # If no C compiler flags were specified, use CFLAGS.
5867 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5868
5869 # Allow CC to be a program name with arguments.
5870 compiler=$CC
5871
5872
5873 # Check for command to grab the raw symbol name followed by C symbol from nm.
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5875 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5876 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5877   $as_echo_n "(cached) " >&6
5878 else
5879
5880 # These are sane defaults that work on at least a few old systems.
5881 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5882
5883 # Character class describing NM global symbol codes.
5884 symcode='[BCDEGRST]'
5885
5886 # Regexp to match symbols that can be accessed directly from C.
5887 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5888
5889 # Define system-specific variables.
5890 case $host_os in
5891 aix*)
5892   symcode='[BCDT]'
5893   ;;
5894 cygwin* | mingw* | pw32* | cegcc*)
5895   symcode='[ABCDGISTW]'
5896   ;;
5897 hpux*)
5898   if test "$host_cpu" = ia64; then
5899     symcode='[ABCDEGRST]'
5900   fi
5901   ;;
5902 irix* | nonstopux*)
5903   symcode='[BCDEGRST]'
5904   ;;
5905 osf*)
5906   symcode='[BCDEGQRST]'
5907   ;;
5908 solaris*)
5909   symcode='[BDRT]'
5910   ;;
5911 sco3.2v5*)
5912   symcode='[DT]'
5913   ;;
5914 sysv4.2uw2*)
5915   symcode='[DT]'
5916   ;;
5917 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5918   symcode='[ABDT]'
5919   ;;
5920 sysv4)
5921   symcode='[DFNSTU]'
5922   ;;
5923 esac
5924
5925 # If we're using GNU nm, then use its standard symbol codes.
5926 case `$NM -V 2>&1` in
5927 *GNU* | *'with BFD'*)
5928   symcode='[ABCDGIRSTW]' ;;
5929 esac
5930
5931 # Transform an extracted symbol line into a proper C declaration.
5932 # Some systems (esp. on ia64) link data and code symbols differently,
5933 # so use this general approach.
5934 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5935
5936 # Transform an extracted symbol line into symbol name and symbol address
5937 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5938 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'"
5939
5940 # Handle CRLF in mingw tool chain
5941 opt_cr=
5942 case $build_os in
5943 mingw*)
5944   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5945   ;;
5946 esac
5947
5948 # Try without a prefix underscore, then with it.
5949 for ac_symprfx in "" "_"; do
5950
5951   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5952   symxfrm="\\1 $ac_symprfx\\2 \\2"
5953
5954   # Write the raw and C identifiers.
5955   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5956     # Fake it for dumpbin and say T for any non-static function
5957     # and D for any global variable.
5958     # Also find C++ and __fastcall symbols from MSVC++,
5959     # which start with @ or ?.
5960     lt_cv_sys_global_symbol_pipe="$AWK '"\
5961 "     {last_section=section; section=\$ 3};"\
5962 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5963 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5964 "     \$ 0!~/External *\|/{next};"\
5965 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5966 "     {if(hide[section]) next};"\
5967 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5968 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5969 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5970 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5971 "     ' prfx=^$ac_symprfx"
5972   else
5973     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5974   fi
5975   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5976
5977   # Check to see that the pipe works correctly.
5978   pipe_works=no
5979
5980   rm -f conftest*
5981   cat > conftest.$ac_ext <<_LT_EOF
5982 #ifdef __cplusplus
5983 extern "C" {
5984 #endif
5985 char nm_test_var;
5986 void nm_test_func(void);
5987 void nm_test_func(void){}
5988 #ifdef __cplusplus
5989 }
5990 #endif
5991 int main(){nm_test_var='a';nm_test_func();return(0);}
5992 _LT_EOF
5993
5994   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5995   (eval $ac_compile) 2>&5
5996   ac_status=$?
5997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5998   test $ac_status = 0; }; then
5999     # Now try to grab the symbols.
6000     nlist=conftest.nm
6001     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6002   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6003   ac_status=$?
6004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6005   test $ac_status = 0; } && test -s "$nlist"; then
6006       # Try sorting and uniquifying the output.
6007       if sort "$nlist" | uniq > "$nlist"T; then
6008         mv -f "$nlist"T "$nlist"
6009       else
6010         rm -f "$nlist"T
6011       fi
6012
6013       # Make sure that we snagged all the symbols we need.
6014       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6015         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6016           cat <<_LT_EOF > conftest.$ac_ext
6017 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6018 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6019 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6020    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6021 # define LT_DLSYM_CONST
6022 #elif defined(__osf__)
6023 /* This system does not cope well with relocations in const data.  */
6024 # define LT_DLSYM_CONST
6025 #else
6026 # define LT_DLSYM_CONST const
6027 #endif
6028
6029 #ifdef __cplusplus
6030 extern "C" {
6031 #endif
6032
6033 _LT_EOF
6034           # Now generate the symbol file.
6035           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6036
6037           cat <<_LT_EOF >> conftest.$ac_ext
6038
6039 /* The mapping between symbol names and symbols.  */
6040 LT_DLSYM_CONST struct {
6041   const char *name;
6042   void       *address;
6043 }
6044 lt__PROGRAM__LTX_preloaded_symbols[] =
6045 {
6046   { "@PROGRAM@", (void *) 0 },
6047 _LT_EOF
6048           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6049           cat <<\_LT_EOF >> conftest.$ac_ext
6050   {0, (void *) 0}
6051 };
6052
6053 /* This works around a problem in FreeBSD linker */
6054 #ifdef FREEBSD_WORKAROUND
6055 static const void *lt_preloaded_setup() {
6056   return lt__PROGRAM__LTX_preloaded_symbols;
6057 }
6058 #endif
6059
6060 #ifdef __cplusplus
6061 }
6062 #endif
6063 _LT_EOF
6064           # Now try linking the two files.
6065           mv conftest.$ac_objext conftstm.$ac_objext
6066           lt_globsym_save_LIBS=$LIBS
6067           lt_globsym_save_CFLAGS=$CFLAGS
6068           LIBS="conftstm.$ac_objext"
6069           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6070           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6071   (eval $ac_link) 2>&5
6072   ac_status=$?
6073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6074   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6075             pipe_works=yes
6076           fi
6077           LIBS=$lt_globsym_save_LIBS
6078           CFLAGS=$lt_globsym_save_CFLAGS
6079         else
6080           echo "cannot find nm_test_func in $nlist" >&5
6081         fi
6082       else
6083         echo "cannot find nm_test_var in $nlist" >&5
6084       fi
6085     else
6086       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6087     fi
6088   else
6089     echo "$progname: failed program was:" >&5
6090     cat conftest.$ac_ext >&5
6091   fi
6092   rm -rf conftest* conftst*
6093
6094   # Do not use the global_symbol_pipe unless it works.
6095   if test "$pipe_works" = yes; then
6096     break
6097   else
6098     lt_cv_sys_global_symbol_pipe=
6099   fi
6100 done
6101
6102 fi
6103
6104 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6105   lt_cv_sys_global_symbol_to_cdecl=
6106 fi
6107 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6109 $as_echo "failed" >&6; }
6110 else
6111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6112 $as_echo "ok" >&6; }
6113 fi
6114
6115 # Response file support.
6116 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6117   nm_file_list_spec='@'
6118 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6119   nm_file_list_spec='@'
6120 fi
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6149 $as_echo_n "checking for sysroot... " >&6; }
6150
6151 # Check whether --with-sysroot was given.
6152 if test "${with_sysroot+set}" = set; then :
6153   withval=$with_sysroot;
6154 else
6155   with_sysroot=no
6156 fi
6157
6158
6159 lt_sysroot=
6160 case ${with_sysroot} in #(
6161  yes)
6162    if test "$GCC" = yes; then
6163      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6164    fi
6165    ;; #(
6166  /*)
6167    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6168    ;; #(
6169  no|'')
6170    ;; #(
6171  *)
6172    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6173 $as_echo "${with_sysroot}" >&6; }
6174    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6175    ;;
6176 esac
6177
6178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6179 $as_echo "${lt_sysroot:-no}" >&6; }
6180
6181
6182
6183
6184
6185 # Check whether --enable-libtool-lock was given.
6186 if test "${enable_libtool_lock+set}" = set; then :
6187   enableval=$enable_libtool_lock;
6188 fi
6189
6190 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6191
6192 # Some flags need to be propagated to the compiler or linker for good
6193 # libtool support.
6194 case $host in
6195 ia64-*-hpux*)
6196   # Find out which ABI we are using.
6197   echo 'int i;' > conftest.$ac_ext
6198   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6199   (eval $ac_compile) 2>&5
6200   ac_status=$?
6201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6202   test $ac_status = 0; }; then
6203     case `/usr/bin/file conftest.$ac_objext` in
6204       *ELF-32*)
6205         HPUX_IA64_MODE="32"
6206         ;;
6207       *ELF-64*)
6208         HPUX_IA64_MODE="64"
6209         ;;
6210     esac
6211   fi
6212   rm -rf conftest*
6213   ;;
6214 *-*-irix6*)
6215   # Find out which ABI we are using.
6216   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6217   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6218   (eval $ac_compile) 2>&5
6219   ac_status=$?
6220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6221   test $ac_status = 0; }; then
6222     if test "$lt_cv_prog_gnu_ld" = yes; then
6223       case `/usr/bin/file conftest.$ac_objext` in
6224         *32-bit*)
6225           LD="${LD-ld} -melf32bsmip"
6226           ;;
6227         *N32*)
6228           LD="${LD-ld} -melf32bmipn32"
6229           ;;
6230         *64-bit*)
6231           LD="${LD-ld} -melf64bmip"
6232         ;;
6233       esac
6234     else
6235       case `/usr/bin/file conftest.$ac_objext` in
6236         *32-bit*)
6237           LD="${LD-ld} -32"
6238           ;;
6239         *N32*)
6240           LD="${LD-ld} -n32"
6241           ;;
6242         *64-bit*)
6243           LD="${LD-ld} -64"
6244           ;;
6245       esac
6246     fi
6247   fi
6248   rm -rf conftest*
6249   ;;
6250
6251 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6252 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6253   # Find out which ABI we are using.
6254   echo 'int i;' > conftest.$ac_ext
6255   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6256   (eval $ac_compile) 2>&5
6257   ac_status=$?
6258   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6259   test $ac_status = 0; }; then
6260     case `/usr/bin/file conftest.o` in
6261       *32-bit*)
6262         case $host in
6263           x86_64-*kfreebsd*-gnu)
6264             LD="${LD-ld} -m elf_i386_fbsd"
6265             ;;
6266           x86_64-*linux*)
6267             LD="${LD-ld} -m elf_i386"
6268             ;;
6269           powerpc64le-*linux*)
6270             LD="${LD-ld} -m elf32lppclinux"
6271             ;;
6272           powerpc64-*linux*)
6273             LD="${LD-ld} -m elf32ppclinux"
6274             ;;
6275           s390x-*linux*)
6276             LD="${LD-ld} -m elf_s390"
6277             ;;
6278           sparc64-*linux*)
6279             LD="${LD-ld} -m elf32_sparc"
6280             ;;
6281         esac
6282         ;;
6283       *64-bit*)
6284         case $host in
6285           x86_64-*kfreebsd*-gnu)
6286             LD="${LD-ld} -m elf_x86_64_fbsd"
6287             ;;
6288           x86_64-*linux*)
6289             LD="${LD-ld} -m elf_x86_64"
6290             ;;
6291           powerpcle-*linux*)
6292             LD="${LD-ld} -m elf64lppc"
6293             ;;
6294           powerpc-*linux*)
6295             LD="${LD-ld} -m elf64ppc"
6296             ;;
6297           s390*-*linux*|s390*-*tpf*)
6298             LD="${LD-ld} -m elf64_s390"
6299             ;;
6300           sparc*-*linux*)
6301             LD="${LD-ld} -m elf64_sparc"
6302             ;;
6303         esac
6304         ;;
6305     esac
6306   fi
6307   rm -rf conftest*
6308   ;;
6309
6310 *-*-sco3.2v5*)
6311   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6312   SAVE_CFLAGS="$CFLAGS"
6313   CFLAGS="$CFLAGS -belf"
6314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6315 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6316 if ${lt_cv_cc_needs_belf+:} false; then :
6317   $as_echo_n "(cached) " >&6
6318 else
6319   ac_ext=c
6320 ac_cpp='$CPP $CPPFLAGS'
6321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6324
6325      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h.  */
6327
6328 int
6329 main ()
6330 {
6331
6332   ;
6333   return 0;
6334 }
6335 _ACEOF
6336 if ac_fn_c_try_link "$LINENO"; then :
6337   lt_cv_cc_needs_belf=yes
6338 else
6339   lt_cv_cc_needs_belf=no
6340 fi
6341 rm -f core conftest.err conftest.$ac_objext \
6342     conftest$ac_exeext conftest.$ac_ext
6343      ac_ext=c
6344 ac_cpp='$CPP $CPPFLAGS'
6345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6348
6349 fi
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6351 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6352   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6353     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6354     CFLAGS="$SAVE_CFLAGS"
6355   fi
6356   ;;
6357 *-*solaris*)
6358   # Find out which ABI we are using.
6359   echo 'int i;' > conftest.$ac_ext
6360   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6361   (eval $ac_compile) 2>&5
6362   ac_status=$?
6363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6364   test $ac_status = 0; }; then
6365     case `/usr/bin/file conftest.o` in
6366     *64-bit*)
6367       case $lt_cv_prog_gnu_ld in
6368       yes*)
6369         case $host in
6370         i?86-*-solaris*)
6371           LD="${LD-ld} -m elf_x86_64"
6372           ;;
6373         sparc*-*-solaris*)
6374           LD="${LD-ld} -m elf64_sparc"
6375           ;;
6376         esac
6377         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6378         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6379           LD="${LD-ld}_sol2"
6380         fi
6381         ;;
6382       *)
6383         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6384           LD="${LD-ld} -64"
6385         fi
6386         ;;
6387       esac
6388       ;;
6389     esac
6390   fi
6391   rm -rf conftest*
6392   ;;
6393 esac
6394
6395 need_locks="$enable_libtool_lock"
6396
6397 if test -n "$ac_tool_prefix"; then
6398   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6399 set dummy ${ac_tool_prefix}mt; ac_word=$2
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6403   $as_echo_n "(cached) " >&6
6404 else
6405   if test -n "$MANIFEST_TOOL"; then
6406   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6407 else
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 for as_dir in $PATH
6410 do
6411   IFS=$as_save_IFS
6412   test -z "$as_dir" && as_dir=.
6413     for ac_exec_ext in '' $ac_executable_extensions; do
6414   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6415     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417     break 2
6418   fi
6419 done
6420   done
6421 IFS=$as_save_IFS
6422
6423 fi
6424 fi
6425 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6426 if test -n "$MANIFEST_TOOL"; then
6427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6428 $as_echo "$MANIFEST_TOOL" >&6; }
6429 else
6430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6432 fi
6433
6434
6435 fi
6436 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6437   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6438   # Extract the first word of "mt", so it can be a program name with args.
6439 set dummy mt; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6443   $as_echo_n "(cached) " >&6
6444 else
6445   if test -n "$ac_ct_MANIFEST_TOOL"; then
6446   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451   IFS=$as_save_IFS
6452   test -z "$as_dir" && as_dir=.
6453     for ac_exec_ext in '' $ac_executable_extensions; do
6454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6455     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457     break 2
6458   fi
6459 done
6460   done
6461 IFS=$as_save_IFS
6462
6463 fi
6464 fi
6465 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6466 if test -n "$ac_ct_MANIFEST_TOOL"; then
6467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6468 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6469 else
6470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6472 fi
6473
6474   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6475     MANIFEST_TOOL=":"
6476   else
6477     case $cross_compiling:$ac_tool_warned in
6478 yes:)
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6481 ac_tool_warned=yes ;;
6482 esac
6483     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6484   fi
6485 else
6486   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6487 fi
6488
6489 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6491 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6492 if ${lt_cv_path_mainfest_tool+:} false; then :
6493   $as_echo_n "(cached) " >&6
6494 else
6495   lt_cv_path_mainfest_tool=no
6496   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6497   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6498   cat conftest.err >&5
6499   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6500     lt_cv_path_mainfest_tool=yes
6501   fi
6502   rm -f conftest*
6503 fi
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6505 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6506 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6507   MANIFEST_TOOL=:
6508 fi
6509
6510
6511
6512
6513
6514
6515   case $host_os in
6516     rhapsody* | darwin*)
6517     if test -n "$ac_tool_prefix"; then
6518   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6519 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521 $as_echo_n "checking for $ac_word... " >&6; }
6522 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6523   $as_echo_n "(cached) " >&6
6524 else
6525   if test -n "$DSYMUTIL"; then
6526   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6527 else
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $PATH
6530 do
6531   IFS=$as_save_IFS
6532   test -z "$as_dir" && as_dir=.
6533     for ac_exec_ext in '' $ac_executable_extensions; do
6534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6535     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6537     break 2
6538   fi
6539 done
6540   done
6541 IFS=$as_save_IFS
6542
6543 fi
6544 fi
6545 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6546 if test -n "$DSYMUTIL"; then
6547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6548 $as_echo "$DSYMUTIL" >&6; }
6549 else
6550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6552 fi
6553
6554
6555 fi
6556 if test -z "$ac_cv_prog_DSYMUTIL"; then
6557   ac_ct_DSYMUTIL=$DSYMUTIL
6558   # Extract the first word of "dsymutil", so it can be a program name with args.
6559 set dummy dsymutil; ac_word=$2
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561 $as_echo_n "checking for $ac_word... " >&6; }
6562 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6563   $as_echo_n "(cached) " >&6
6564 else
6565   if test -n "$ac_ct_DSYMUTIL"; then
6566   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6567 else
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 for as_dir in $PATH
6570 do
6571   IFS=$as_save_IFS
6572   test -z "$as_dir" && as_dir=.
6573     for ac_exec_ext in '' $ac_executable_extensions; do
6574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6575     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6577     break 2
6578   fi
6579 done
6580   done
6581 IFS=$as_save_IFS
6582
6583 fi
6584 fi
6585 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6586 if test -n "$ac_ct_DSYMUTIL"; then
6587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6588 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6589 else
6590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6592 fi
6593
6594   if test "x$ac_ct_DSYMUTIL" = x; then
6595     DSYMUTIL=":"
6596   else
6597     case $cross_compiling:$ac_tool_warned in
6598 yes:)
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6601 ac_tool_warned=yes ;;
6602 esac
6603     DSYMUTIL=$ac_ct_DSYMUTIL
6604   fi
6605 else
6606   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6607 fi
6608
6609     if test -n "$ac_tool_prefix"; then
6610   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6611 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6613 $as_echo_n "checking for $ac_word... " >&6; }
6614 if ${ac_cv_prog_NMEDIT+:} false; then :
6615   $as_echo_n "(cached) " >&6
6616 else
6617   if test -n "$NMEDIT"; then
6618   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6619 else
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6622 do
6623   IFS=$as_save_IFS
6624   test -z "$as_dir" && as_dir=.
6625     for ac_exec_ext in '' $ac_executable_extensions; do
6626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6627     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6629     break 2
6630   fi
6631 done
6632   done
6633 IFS=$as_save_IFS
6634
6635 fi
6636 fi
6637 NMEDIT=$ac_cv_prog_NMEDIT
6638 if test -n "$NMEDIT"; then
6639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6640 $as_echo "$NMEDIT" >&6; }
6641 else
6642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6644 fi
6645
6646
6647 fi
6648 if test -z "$ac_cv_prog_NMEDIT"; then
6649   ac_ct_NMEDIT=$NMEDIT
6650   # Extract the first word of "nmedit", so it can be a program name with args.
6651 set dummy nmedit; ac_word=$2
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653 $as_echo_n "checking for $ac_word... " >&6; }
6654 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6655   $as_echo_n "(cached) " >&6
6656 else
6657   if test -n "$ac_ct_NMEDIT"; then
6658   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6659 else
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 for as_dir in $PATH
6662 do
6663   IFS=$as_save_IFS
6664   test -z "$as_dir" && as_dir=.
6665     for ac_exec_ext in '' $ac_executable_extensions; do
6666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6667     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6669     break 2
6670   fi
6671 done
6672   done
6673 IFS=$as_save_IFS
6674
6675 fi
6676 fi
6677 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6678 if test -n "$ac_ct_NMEDIT"; then
6679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6680 $as_echo "$ac_ct_NMEDIT" >&6; }
6681 else
6682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683 $as_echo "no" >&6; }
6684 fi
6685
6686   if test "x$ac_ct_NMEDIT" = x; then
6687     NMEDIT=":"
6688   else
6689     case $cross_compiling:$ac_tool_warned in
6690 yes:)
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6693 ac_tool_warned=yes ;;
6694 esac
6695     NMEDIT=$ac_ct_NMEDIT
6696   fi
6697 else
6698   NMEDIT="$ac_cv_prog_NMEDIT"
6699 fi
6700
6701     if test -n "$ac_tool_prefix"; then
6702   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6703 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_prog_LIPO+:} false; then :
6707   $as_echo_n "(cached) " >&6
6708 else
6709   if test -n "$LIPO"; then
6710   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6711 else
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH
6714 do
6715   IFS=$as_save_IFS
6716   test -z "$as_dir" && as_dir=.
6717     for ac_exec_ext in '' $ac_executable_extensions; do
6718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6719     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721     break 2
6722   fi
6723 done
6724   done
6725 IFS=$as_save_IFS
6726
6727 fi
6728 fi
6729 LIPO=$ac_cv_prog_LIPO
6730 if test -n "$LIPO"; then
6731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6732 $as_echo "$LIPO" >&6; }
6733 else
6734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6736 fi
6737
6738
6739 fi
6740 if test -z "$ac_cv_prog_LIPO"; then
6741   ac_ct_LIPO=$LIPO
6742   # Extract the first word of "lipo", so it can be a program name with args.
6743 set dummy lipo; ac_word=$2
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6745 $as_echo_n "checking for $ac_word... " >&6; }
6746 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6747   $as_echo_n "(cached) " >&6
6748 else
6749   if test -n "$ac_ct_LIPO"; then
6750   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6751 else
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6754 do
6755   IFS=$as_save_IFS
6756   test -z "$as_dir" && as_dir=.
6757     for ac_exec_ext in '' $ac_executable_extensions; do
6758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6759     ac_cv_prog_ac_ct_LIPO="lipo"
6760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6761     break 2
6762   fi
6763 done
6764   done
6765 IFS=$as_save_IFS
6766
6767 fi
6768 fi
6769 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6770 if test -n "$ac_ct_LIPO"; then
6771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6772 $as_echo "$ac_ct_LIPO" >&6; }
6773 else
6774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6775 $as_echo "no" >&6; }
6776 fi
6777
6778   if test "x$ac_ct_LIPO" = x; then
6779     LIPO=":"
6780   else
6781     case $cross_compiling:$ac_tool_warned in
6782 yes:)
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6785 ac_tool_warned=yes ;;
6786 esac
6787     LIPO=$ac_ct_LIPO
6788   fi
6789 else
6790   LIPO="$ac_cv_prog_LIPO"
6791 fi
6792
6793     if test -n "$ac_tool_prefix"; then
6794   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6795 set dummy ${ac_tool_prefix}otool; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if ${ac_cv_prog_OTOOL+:} false; then :
6799   $as_echo_n "(cached) " >&6
6800 else
6801   if test -n "$OTOOL"; then
6802   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6803 else
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6806 do
6807   IFS=$as_save_IFS
6808   test -z "$as_dir" && as_dir=.
6809     for ac_exec_ext in '' $ac_executable_extensions; do
6810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6811     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813     break 2
6814   fi
6815 done
6816   done
6817 IFS=$as_save_IFS
6818
6819 fi
6820 fi
6821 OTOOL=$ac_cv_prog_OTOOL
6822 if test -n "$OTOOL"; then
6823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6824 $as_echo "$OTOOL" >&6; }
6825 else
6826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827 $as_echo "no" >&6; }
6828 fi
6829
6830
6831 fi
6832 if test -z "$ac_cv_prog_OTOOL"; then
6833   ac_ct_OTOOL=$OTOOL
6834   # Extract the first word of "otool", so it can be a program name with args.
6835 set dummy otool; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6839   $as_echo_n "(cached) " >&6
6840 else
6841   if test -n "$ac_ct_OTOOL"; then
6842   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6846 do
6847   IFS=$as_save_IFS
6848   test -z "$as_dir" && as_dir=.
6849     for ac_exec_ext in '' $ac_executable_extensions; do
6850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851     ac_cv_prog_ac_ct_OTOOL="otool"
6852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853     break 2
6854   fi
6855 done
6856   done
6857 IFS=$as_save_IFS
6858
6859 fi
6860 fi
6861 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6862 if test -n "$ac_ct_OTOOL"; then
6863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6864 $as_echo "$ac_ct_OTOOL" >&6; }
6865 else
6866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6868 fi
6869
6870   if test "x$ac_ct_OTOOL" = x; then
6871     OTOOL=":"
6872   else
6873     case $cross_compiling:$ac_tool_warned in
6874 yes:)
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6877 ac_tool_warned=yes ;;
6878 esac
6879     OTOOL=$ac_ct_OTOOL
6880   fi
6881 else
6882   OTOOL="$ac_cv_prog_OTOOL"
6883 fi
6884
6885     if test -n "$ac_tool_prefix"; then
6886   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6887 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889 $as_echo_n "checking for $ac_word... " >&6; }
6890 if ${ac_cv_prog_OTOOL64+:} false; then :
6891   $as_echo_n "(cached) " >&6
6892 else
6893   if test -n "$OTOOL64"; then
6894   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6895 else
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899   IFS=$as_save_IFS
6900   test -z "$as_dir" && as_dir=.
6901     for ac_exec_ext in '' $ac_executable_extensions; do
6902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6903     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6905     break 2
6906   fi
6907 done
6908   done
6909 IFS=$as_save_IFS
6910
6911 fi
6912 fi
6913 OTOOL64=$ac_cv_prog_OTOOL64
6914 if test -n "$OTOOL64"; then
6915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6916 $as_echo "$OTOOL64" >&6; }
6917 else
6918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919 $as_echo "no" >&6; }
6920 fi
6921
6922
6923 fi
6924 if test -z "$ac_cv_prog_OTOOL64"; then
6925   ac_ct_OTOOL64=$OTOOL64
6926   # Extract the first word of "otool64", so it can be a program name with args.
6927 set dummy otool64; ac_word=$2
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6929 $as_echo_n "checking for $ac_word... " >&6; }
6930 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6931   $as_echo_n "(cached) " >&6
6932 else
6933   if test -n "$ac_ct_OTOOL64"; then
6934   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6935 else
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 for as_dir in $PATH
6938 do
6939   IFS=$as_save_IFS
6940   test -z "$as_dir" && as_dir=.
6941     for ac_exec_ext in '' $ac_executable_extensions; do
6942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6943     ac_cv_prog_ac_ct_OTOOL64="otool64"
6944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6945     break 2
6946   fi
6947 done
6948   done
6949 IFS=$as_save_IFS
6950
6951 fi
6952 fi
6953 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6954 if test -n "$ac_ct_OTOOL64"; then
6955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6956 $as_echo "$ac_ct_OTOOL64" >&6; }
6957 else
6958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959 $as_echo "no" >&6; }
6960 fi
6961
6962   if test "x$ac_ct_OTOOL64" = x; then
6963     OTOOL64=":"
6964   else
6965     case $cross_compiling:$ac_tool_warned in
6966 yes:)
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6969 ac_tool_warned=yes ;;
6970 esac
6971     OTOOL64=$ac_ct_OTOOL64
6972   fi
6973 else
6974   OTOOL64="$ac_cv_prog_OTOOL64"
6975 fi
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7004 $as_echo_n "checking for -single_module linker flag... " >&6; }
7005 if ${lt_cv_apple_cc_single_mod+:} false; then :
7006   $as_echo_n "(cached) " >&6
7007 else
7008   lt_cv_apple_cc_single_mod=no
7009       if test -z "${LT_MULTI_MODULE}"; then
7010         # By default we will add the -single_module flag. You can override
7011         # by either setting the environment variable LT_MULTI_MODULE
7012         # non-empty at configure time, or by adding -multi_module to the
7013         # link flags.
7014         rm -rf libconftest.dylib*
7015         echo "int foo(void){return 1;}" > conftest.c
7016         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7017 -dynamiclib -Wl,-single_module conftest.c" >&5
7018         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7019           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7020         _lt_result=$?
7021         # If there is a non-empty error log, and "single_module"
7022         # appears in it, assume the flag caused a linker warning
7023         if test -s conftest.err && $GREP single_module conftest.err; then
7024           cat conftest.err >&5
7025         # Otherwise, if the output was created with a 0 exit code from
7026         # the compiler, it worked.
7027         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7028           lt_cv_apple_cc_single_mod=yes
7029         else
7030           cat conftest.err >&5
7031         fi
7032         rm -rf libconftest.dylib*
7033         rm -f conftest.*
7034       fi
7035 fi
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7037 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7038
7039     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7040 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7041 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7042   $as_echo_n "(cached) " >&6
7043 else
7044   lt_cv_ld_exported_symbols_list=no
7045       save_LDFLAGS=$LDFLAGS
7046       echo "_main" > conftest.sym
7047       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7048       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h.  */
7050
7051 int
7052 main ()
7053 {
7054
7055   ;
7056   return 0;
7057 }
7058 _ACEOF
7059 if ac_fn_c_try_link "$LINENO"; then :
7060   lt_cv_ld_exported_symbols_list=yes
7061 else
7062   lt_cv_ld_exported_symbols_list=no
7063 fi
7064 rm -f core conftest.err conftest.$ac_objext \
7065     conftest$ac_exeext conftest.$ac_ext
7066         LDFLAGS="$save_LDFLAGS"
7067
7068 fi
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7070 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7071
7072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7073 $as_echo_n "checking for -force_load linker flag... " >&6; }
7074 if ${lt_cv_ld_force_load+:} false; then :
7075   $as_echo_n "(cached) " >&6
7076 else
7077   lt_cv_ld_force_load=no
7078       cat > conftest.c << _LT_EOF
7079 int forced_loaded() { return 2;}
7080 _LT_EOF
7081       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7082       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7083       echo "$AR cru libconftest.a conftest.o" >&5
7084       $AR cru libconftest.a conftest.o 2>&5
7085       echo "$RANLIB libconftest.a" >&5
7086       $RANLIB libconftest.a 2>&5
7087       cat > conftest.c << _LT_EOF
7088 int main() { return 0;}
7089 _LT_EOF
7090       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7091       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7092       _lt_result=$?
7093       if test -s conftest.err && $GREP force_load conftest.err; then
7094         cat conftest.err >&5
7095       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7096         lt_cv_ld_force_load=yes
7097       else
7098         cat conftest.err >&5
7099       fi
7100         rm -f conftest.err libconftest.a conftest conftest.c
7101         rm -rf conftest.dSYM
7102
7103 fi
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7105 $as_echo "$lt_cv_ld_force_load" >&6; }
7106     case $host_os in
7107     rhapsody* | darwin1.[012])
7108       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7109     darwin1.*)
7110       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7111     darwin*) # darwin 5.x on
7112       # if running on 10.5 or later, the deployment target defaults
7113       # to the OS version, if on x86, and 10.4, the deployment
7114       # target defaults to 10.4. Don't you love it?
7115       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7116         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7117           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7118         10.[012]*)
7119           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7120         10.*)
7121           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7122       esac
7123     ;;
7124   esac
7125     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7126       _lt_dar_single_mod='$single_module'
7127     fi
7128     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7129       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7130     else
7131       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7132     fi
7133     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7134       _lt_dsymutil='~$DSYMUTIL $lib || :'
7135     else
7136       _lt_dsymutil=
7137     fi
7138     ;;
7139   esac
7140
7141 ac_ext=c
7142 ac_cpp='$CPP $CPPFLAGS'
7143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7147 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7148 # On Suns, sometimes $CPP names a directory.
7149 if test -n "$CPP" && test -d "$CPP"; then
7150   CPP=
7151 fi
7152 if test -z "$CPP"; then
7153   if ${ac_cv_prog_CPP+:} false; then :
7154   $as_echo_n "(cached) " >&6
7155 else
7156       # Double quotes because CPP needs to be expanded
7157     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7158     do
7159       ac_preproc_ok=false
7160 for ac_c_preproc_warn_flag in '' yes
7161 do
7162   # Use a header file that comes with gcc, so configuring glibc
7163   # with a fresh cross-compiler works.
7164   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7165   # <limits.h> exists even on freestanding compilers.
7166   # On the NeXT, cc -E runs the code through the compiler's parser,
7167   # not just through cpp. "Syntax error" is here to catch this case.
7168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h.  */
7170 #ifdef __STDC__
7171 # include <limits.h>
7172 #else
7173 # include <assert.h>
7174 #endif
7175                      Syntax error
7176 _ACEOF
7177 if ac_fn_c_try_cpp "$LINENO"; then :
7178
7179 else
7180   # Broken: fails on valid input.
7181 continue
7182 fi
7183 rm -f conftest.err conftest.i conftest.$ac_ext
7184
7185   # OK, works on sane cases.  Now check whether nonexistent headers
7186   # can be detected and how.
7187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h.  */
7189 #include <ac_nonexistent.h>
7190 _ACEOF
7191 if ac_fn_c_try_cpp "$LINENO"; then :
7192   # Broken: success on invalid input.
7193 continue
7194 else
7195   # Passes both tests.
7196 ac_preproc_ok=:
7197 break
7198 fi
7199 rm -f conftest.err conftest.i conftest.$ac_ext
7200
7201 done
7202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7203 rm -f conftest.i conftest.err conftest.$ac_ext
7204 if $ac_preproc_ok; then :
7205   break
7206 fi
7207
7208     done
7209     ac_cv_prog_CPP=$CPP
7210
7211 fi
7212   CPP=$ac_cv_prog_CPP
7213 else
7214   ac_cv_prog_CPP=$CPP
7215 fi
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7217 $as_echo "$CPP" >&6; }
7218 ac_preproc_ok=false
7219 for ac_c_preproc_warn_flag in '' yes
7220 do
7221   # Use a header file that comes with gcc, so configuring glibc
7222   # with a fresh cross-compiler works.
7223   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7224   # <limits.h> exists even on freestanding compilers.
7225   # On the NeXT, cc -E runs the code through the compiler's parser,
7226   # not just through cpp. "Syntax error" is here to catch this case.
7227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228 /* end confdefs.h.  */
7229 #ifdef __STDC__
7230 # include <limits.h>
7231 #else
7232 # include <assert.h>
7233 #endif
7234                      Syntax error
7235 _ACEOF
7236 if ac_fn_c_try_cpp "$LINENO"; then :
7237
7238 else
7239   # Broken: fails on valid input.
7240 continue
7241 fi
7242 rm -f conftest.err conftest.i conftest.$ac_ext
7243
7244   # OK, works on sane cases.  Now check whether nonexistent headers
7245   # can be detected and how.
7246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h.  */
7248 #include <ac_nonexistent.h>
7249 _ACEOF
7250 if ac_fn_c_try_cpp "$LINENO"; then :
7251   # Broken: success on invalid input.
7252 continue
7253 else
7254   # Passes both tests.
7255 ac_preproc_ok=:
7256 break
7257 fi
7258 rm -f conftest.err conftest.i conftest.$ac_ext
7259
7260 done
7261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7262 rm -f conftest.i conftest.err conftest.$ac_ext
7263 if $ac_preproc_ok; then :
7264
7265 else
7266   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7268 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7269 See \`config.log' for more details" "$LINENO" 5; }
7270 fi
7271
7272 ac_ext=c
7273 ac_cpp='$CPP $CPPFLAGS'
7274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7277
7278
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7280 $as_echo_n "checking for ANSI C header files... " >&6; }
7281 if ${ac_cv_header_stdc+:} false; then :
7282   $as_echo_n "(cached) " >&6
7283 else
7284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h.  */
7286 #include <stdlib.h>
7287 #include <stdarg.h>
7288 #include <string.h>
7289 #include <float.h>
7290
7291 int
7292 main ()
7293 {
7294
7295   ;
7296   return 0;
7297 }
7298 _ACEOF
7299 if ac_fn_c_try_compile "$LINENO"; then :
7300   ac_cv_header_stdc=yes
7301 else
7302   ac_cv_header_stdc=no
7303 fi
7304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305
7306 if test $ac_cv_header_stdc = yes; then
7307   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h.  */
7310 #include <string.h>
7311
7312 _ACEOF
7313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7314   $EGREP "memchr" >/dev/null 2>&1; then :
7315
7316 else
7317   ac_cv_header_stdc=no
7318 fi
7319 rm -f conftest*
7320
7321 fi
7322
7323 if test $ac_cv_header_stdc = yes; then
7324   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h.  */
7327 #include <stdlib.h>
7328
7329 _ACEOF
7330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7331   $EGREP "free" >/dev/null 2>&1; then :
7332
7333 else
7334   ac_cv_header_stdc=no
7335 fi
7336 rm -f conftest*
7337
7338 fi
7339
7340 if test $ac_cv_header_stdc = yes; then
7341   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7342   if test "$cross_compiling" = yes; then :
7343   :
7344 else
7345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h.  */
7347 #include <ctype.h>
7348 #include <stdlib.h>
7349 #if ((' ' & 0x0FF) == 0x020)
7350 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7351 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7352 #else
7353 # define ISLOWER(c) \
7354                    (('a' <= (c) && (c) <= 'i') \
7355                      || ('j' <= (c) && (c) <= 'r') \
7356                      || ('s' <= (c) && (c) <= 'z'))
7357 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7358 #endif
7359
7360 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7361 int
7362 main ()
7363 {
7364   int i;
7365   for (i = 0; i < 256; i++)
7366     if (XOR (islower (i), ISLOWER (i))
7367         || toupper (i) != TOUPPER (i))
7368       return 2;
7369   return 0;
7370 }
7371 _ACEOF
7372 if ac_fn_c_try_run "$LINENO"; then :
7373
7374 else
7375   ac_cv_header_stdc=no
7376 fi
7377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7378   conftest.$ac_objext conftest.beam conftest.$ac_ext
7379 fi
7380
7381 fi
7382 fi
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7384 $as_echo "$ac_cv_header_stdc" >&6; }
7385 if test $ac_cv_header_stdc = yes; then
7386
7387 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7388
7389 fi
7390
7391 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7392 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7393                   inttypes.h stdint.h unistd.h
7394 do :
7395   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7396 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7397 "
7398 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7399   cat >>confdefs.h <<_ACEOF
7400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7401 _ACEOF
7402
7403 fi
7404
7405 done
7406
7407
7408 for ac_header in dlfcn.h
7409 do :
7410   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7411 "
7412 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7413   cat >>confdefs.h <<_ACEOF
7414 #define HAVE_DLFCN_H 1
7415 _ACEOF
7416
7417 fi
7418
7419 done
7420
7421
7422
7423
7424
7425 # Set options
7426
7427
7428
7429         enable_dlopen=no
7430
7431
7432   enable_win32_dll=no
7433
7434
7435             # Check whether --enable-shared was given.
7436 if test "${enable_shared+set}" = set; then :
7437   enableval=$enable_shared; p=${PACKAGE-default}
7438     case $enableval in
7439     yes) enable_shared=yes ;;
7440     no) enable_shared=no ;;
7441     *)
7442       enable_shared=no
7443       # Look at the argument we got.  We use all the common list separators.
7444       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7445       for pkg in $enableval; do
7446         IFS="$lt_save_ifs"
7447         if test "X$pkg" = "X$p"; then
7448           enable_shared=yes
7449         fi
7450       done
7451       IFS="$lt_save_ifs"
7452       ;;
7453     esac
7454 else
7455   enable_shared=yes
7456 fi
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466   # Check whether --enable-static was given.
7467 if test "${enable_static+set}" = set; then :
7468   enableval=$enable_static; p=${PACKAGE-default}
7469     case $enableval in
7470     yes) enable_static=yes ;;
7471     no) enable_static=no ;;
7472     *)
7473      enable_static=no
7474       # Look at the argument we got.  We use all the common list separators.
7475       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7476       for pkg in $enableval; do
7477         IFS="$lt_save_ifs"
7478         if test "X$pkg" = "X$p"; then
7479           enable_static=yes
7480         fi
7481       done
7482       IFS="$lt_save_ifs"
7483       ;;
7484     esac
7485 else
7486   enable_static=yes
7487 fi
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498 # Check whether --with-pic was given.
7499 if test "${with_pic+set}" = set; then :
7500   withval=$with_pic; lt_p=${PACKAGE-default}
7501     case $withval in
7502     yes|no) pic_mode=$withval ;;
7503     *)
7504       pic_mode=default
7505       # Look at the argument we got.  We use all the common list separators.
7506       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7507       for lt_pkg in $withval; do
7508         IFS="$lt_save_ifs"
7509         if test "X$lt_pkg" = "X$lt_p"; then
7510           pic_mode=yes
7511         fi
7512       done
7513       IFS="$lt_save_ifs"
7514       ;;
7515     esac
7516 else
7517   pic_mode=default
7518 fi
7519
7520
7521 test -z "$pic_mode" && pic_mode=default
7522
7523
7524
7525
7526
7527
7528
7529   # Check whether --enable-fast-install was given.
7530 if test "${enable_fast_install+set}" = set; then :
7531   enableval=$enable_fast_install; p=${PACKAGE-default}
7532     case $enableval in
7533     yes) enable_fast_install=yes ;;
7534     no) enable_fast_install=no ;;
7535     *)
7536       enable_fast_install=no
7537       # Look at the argument we got.  We use all the common list separators.
7538       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7539       for pkg in $enableval; do
7540         IFS="$lt_save_ifs"
7541         if test "X$pkg" = "X$p"; then
7542           enable_fast_install=yes
7543         fi
7544       done
7545       IFS="$lt_save_ifs"
7546       ;;
7547     esac
7548 else
7549   enable_fast_install=yes
7550 fi
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562 # This can be used to rebuild libtool when needed
7563 LIBTOOL_DEPS="$ltmain"
7564
7565 # Always use our own libtool.
7566 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597 test -z "$LN_S" && LN_S="ln -s"
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612 if test -n "${ZSH_VERSION+set}" ; then
7613    setopt NO_GLOB_SUBST
7614 fi
7615
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7617 $as_echo_n "checking for objdir... " >&6; }
7618 if ${lt_cv_objdir+:} false; then :
7619   $as_echo_n "(cached) " >&6
7620 else
7621   rm -f .libs 2>/dev/null
7622 mkdir .libs 2>/dev/null
7623 if test -d .libs; then
7624   lt_cv_objdir=.libs
7625 else
7626   # MS-DOS does not allow filenames that begin with a dot.
7627   lt_cv_objdir=_libs
7628 fi
7629 rmdir .libs 2>/dev/null
7630 fi
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7632 $as_echo "$lt_cv_objdir" >&6; }
7633 objdir=$lt_cv_objdir
7634
7635
7636
7637
7638
7639 cat >>confdefs.h <<_ACEOF
7640 #define LT_OBJDIR "$lt_cv_objdir/"
7641 _ACEOF
7642
7643
7644
7645
7646 case $host_os in
7647 aix3*)
7648   # AIX sometimes has problems with the GCC collect2 program.  For some
7649   # reason, if we set the COLLECT_NAMES environment variable, the problems
7650   # vanish in a puff of smoke.
7651   if test "X${COLLECT_NAMES+set}" != Xset; then
7652     COLLECT_NAMES=
7653     export COLLECT_NAMES
7654   fi
7655   ;;
7656 esac
7657
7658 # Global variables:
7659 ofile=libtool
7660 can_build_shared=yes
7661
7662 # All known linkers require a `.a' archive for static linking (except MSVC,
7663 # which needs '.lib').
7664 libext=a
7665
7666 with_gnu_ld="$lt_cv_prog_gnu_ld"
7667
7668 old_CC="$CC"
7669 old_CFLAGS="$CFLAGS"
7670
7671 # Set sane defaults for various variables
7672 test -z "$CC" && CC=cc
7673 test -z "$LTCC" && LTCC=$CC
7674 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7675 test -z "$LD" && LD=ld
7676 test -z "$ac_objext" && ac_objext=o
7677
7678 for cc_temp in $compiler""; do
7679   case $cc_temp in
7680     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7681     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7682     \-*) ;;
7683     *) break;;
7684   esac
7685 done
7686 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7687
7688
7689 # Only perform the check for file, if the check method requires it
7690 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7691 case $deplibs_check_method in
7692 file_magic*)
7693   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7695 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7696 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7697   $as_echo_n "(cached) " >&6
7698 else
7699   case $MAGIC_CMD in
7700 [\\/*] |  ?:[\\/]*)
7701   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7702   ;;
7703 *)
7704   lt_save_MAGIC_CMD="$MAGIC_CMD"
7705   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7706   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7707   for ac_dir in $ac_dummy; do
7708     IFS="$lt_save_ifs"
7709     test -z "$ac_dir" && ac_dir=.
7710     if test -f $ac_dir/${ac_tool_prefix}file; then
7711       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7712       if test -n "$file_magic_test_file"; then
7713         case $deplibs_check_method in
7714         "file_magic "*)
7715           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7716           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7717           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7718             $EGREP "$file_magic_regex" > /dev/null; then
7719             :
7720           else
7721             cat <<_LT_EOF 1>&2
7722
7723 *** Warning: the command libtool uses to detect shared libraries,
7724 *** $file_magic_cmd, produces output that libtool cannot recognize.
7725 *** The result is that libtool may fail to recognize shared libraries
7726 *** as such.  This will affect the creation of libtool libraries that
7727 *** depend on shared libraries, but programs linked with such libtool
7728 *** libraries will work regardless of this problem.  Nevertheless, you
7729 *** may want to report the problem to your system manager and/or to
7730 *** bug-libtool@gnu.org
7731
7732 _LT_EOF
7733           fi ;;
7734         esac
7735       fi
7736       break
7737     fi
7738   done
7739   IFS="$lt_save_ifs"
7740   MAGIC_CMD="$lt_save_MAGIC_CMD"
7741   ;;
7742 esac
7743 fi
7744
7745 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7746 if test -n "$MAGIC_CMD"; then
7747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7748 $as_echo "$MAGIC_CMD" >&6; }
7749 else
7750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 $as_echo "no" >&6; }
7752 fi
7753
7754
7755
7756
7757
7758 if test -z "$lt_cv_path_MAGIC_CMD"; then
7759   if test -n "$ac_tool_prefix"; then
7760     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7761 $as_echo_n "checking for file... " >&6; }
7762 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7763   $as_echo_n "(cached) " >&6
7764 else
7765   case $MAGIC_CMD in
7766 [\\/*] |  ?:[\\/]*)
7767   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7768   ;;
7769 *)
7770   lt_save_MAGIC_CMD="$MAGIC_CMD"
7771   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7772   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7773   for ac_dir in $ac_dummy; do
7774     IFS="$lt_save_ifs"
7775     test -z "$ac_dir" && ac_dir=.
7776     if test -f $ac_dir/file; then
7777       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7778       if test -n "$file_magic_test_file"; then
7779         case $deplibs_check_method in
7780         "file_magic "*)
7781           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7782           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7783           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7784             $EGREP "$file_magic_regex" > /dev/null; then
7785             :
7786           else
7787             cat <<_LT_EOF 1>&2
7788
7789 *** Warning: the command libtool uses to detect shared libraries,
7790 *** $file_magic_cmd, produces output that libtool cannot recognize.
7791 *** The result is that libtool may fail to recognize shared libraries
7792 *** as such.  This will affect the creation of libtool libraries that
7793 *** depend on shared libraries, but programs linked with such libtool
7794 *** libraries will work regardless of this problem.  Nevertheless, you
7795 *** may want to report the problem to your system manager and/or to
7796 *** bug-libtool@gnu.org
7797
7798 _LT_EOF
7799           fi ;;
7800         esac
7801       fi
7802       break
7803     fi
7804   done
7805   IFS="$lt_save_ifs"
7806   MAGIC_CMD="$lt_save_MAGIC_CMD"
7807   ;;
7808 esac
7809 fi
7810
7811 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7812 if test -n "$MAGIC_CMD"; then
7813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7814 $as_echo "$MAGIC_CMD" >&6; }
7815 else
7816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7818 fi
7819
7820
7821   else
7822     MAGIC_CMD=:
7823   fi
7824 fi
7825
7826   fi
7827   ;;
7828 esac
7829
7830 # Use C for the default configuration in the libtool script
7831
7832 lt_save_CC="$CC"
7833 ac_ext=c
7834 ac_cpp='$CPP $CPPFLAGS'
7835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7838
7839
7840 # Source file extension for C test sources.
7841 ac_ext=c
7842
7843 # Object file extension for compiled C test sources.
7844 objext=o
7845 objext=$objext
7846
7847 # Code to be used in simple compile tests
7848 lt_simple_compile_test_code="int some_variable = 0;"
7849
7850 # Code to be used in simple link tests
7851 lt_simple_link_test_code='int main(){return(0);}'
7852
7853
7854
7855
7856
7857
7858
7859 # If no C compiler was specified, use CC.
7860 LTCC=${LTCC-"$CC"}
7861
7862 # If no C compiler flags were specified, use CFLAGS.
7863 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7864
7865 # Allow CC to be a program name with arguments.
7866 compiler=$CC
7867
7868 # Save the default compiler, since it gets overwritten when the other
7869 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7870 compiler_DEFAULT=$CC
7871
7872 # save warnings/boilerplate of simple test code
7873 ac_outfile=conftest.$ac_objext
7874 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7875 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7876 _lt_compiler_boilerplate=`cat conftest.err`
7877 $RM conftest*
7878
7879 ac_outfile=conftest.$ac_objext
7880 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7881 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7882 _lt_linker_boilerplate=`cat conftest.err`
7883 $RM -r conftest*
7884
7885
7886 if test -n "$compiler"; then
7887
7888 lt_prog_compiler_no_builtin_flag=
7889
7890 if test "$GCC" = yes; then
7891   case $cc_basename in
7892   nvcc*)
7893     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7894   *)
7895     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7896   esac
7897
7898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7899 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7900 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7901   $as_echo_n "(cached) " >&6
7902 else
7903   lt_cv_prog_compiler_rtti_exceptions=no
7904    ac_outfile=conftest.$ac_objext
7905    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7906    lt_compiler_flag="-fno-rtti -fno-exceptions"
7907    # Insert the option either (1) after the last *FLAGS variable, or
7908    # (2) before a word containing "conftest.", or (3) at the end.
7909    # Note that $ac_compile itself does not contain backslashes and begins
7910    # with a dollar sign (not a hyphen), so the echo should work correctly.
7911    # The option is referenced via a variable to avoid confusing sed.
7912    lt_compile=`echo "$ac_compile" | $SED \
7913    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7914    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7915    -e 's:$: $lt_compiler_flag:'`
7916    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7917    (eval "$lt_compile" 2>conftest.err)
7918    ac_status=$?
7919    cat conftest.err >&5
7920    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921    if (exit $ac_status) && test -s "$ac_outfile"; then
7922      # The compiler can only warn and ignore the option if not recognized
7923      # So say no if there are warnings other than the usual output.
7924      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7925      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7926      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7927        lt_cv_prog_compiler_rtti_exceptions=yes
7928      fi
7929    fi
7930    $RM conftest*
7931
7932 fi
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7934 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7935
7936 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7937     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7938 else
7939     :
7940 fi
7941
7942 fi
7943
7944
7945
7946
7947
7948
7949   lt_prog_compiler_wl=
7950 lt_prog_compiler_pic=
7951 lt_prog_compiler_static=
7952
7953
7954   if test "$GCC" = yes; then
7955     lt_prog_compiler_wl='-Wl,'
7956     lt_prog_compiler_static='-static'
7957
7958     case $host_os in
7959       aix*)
7960       # All AIX code is PIC.
7961       if test "$host_cpu" = ia64; then
7962         # AIX 5 now supports IA64 processor
7963         lt_prog_compiler_static='-Bstatic'
7964       fi
7965       ;;
7966
7967     amigaos*)
7968       case $host_cpu in
7969       powerpc)
7970             # see comment about AmigaOS4 .so support
7971             lt_prog_compiler_pic='-fPIC'
7972         ;;
7973       m68k)
7974             # FIXME: we need at least 68020 code to build shared libraries, but
7975             # adding the `-m68020' flag to GCC prevents building anything better,
7976             # like `-m68040'.
7977             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7978         ;;
7979       esac
7980       ;;
7981
7982     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7983       # PIC is the default for these OSes.
7984       ;;
7985
7986     mingw* | cygwin* | pw32* | os2* | cegcc*)
7987       # This hack is so that the source file can tell whether it is being
7988       # built for inclusion in a dll (and should export symbols for example).
7989       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7990       # (--disable-auto-import) libraries
7991       lt_prog_compiler_pic='-DDLL_EXPORT'
7992       ;;
7993
7994     darwin* | rhapsody*)
7995       # PIC is the default on this platform
7996       # Common symbols not allowed in MH_DYLIB files
7997       lt_prog_compiler_pic='-fno-common'
7998       ;;
7999
8000     haiku*)
8001       # PIC is the default for Haiku.
8002       # The "-static" flag exists, but is broken.
8003       lt_prog_compiler_static=
8004       ;;
8005
8006     hpux*)
8007       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8008       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8009       # sets the default TLS model and affects inlining.
8010       case $host_cpu in
8011       hppa*64*)
8012         # +Z the default
8013         ;;
8014       *)
8015         lt_prog_compiler_pic='-fPIC'
8016         ;;
8017       esac
8018       ;;
8019
8020     interix[3-9]*)
8021       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8022       # Instead, we relocate shared libraries at runtime.
8023       ;;
8024
8025     msdosdjgpp*)
8026       # Just because we use GCC doesn't mean we suddenly get shared libraries
8027       # on systems that don't support them.
8028       lt_prog_compiler_can_build_shared=no
8029       enable_shared=no
8030       ;;
8031
8032     *nto* | *qnx*)
8033       # QNX uses GNU C++, but need to define -shared option too, otherwise
8034       # it will coredump.
8035       lt_prog_compiler_pic='-fPIC -shared'
8036       ;;
8037
8038     sysv4*MP*)
8039       if test -d /usr/nec; then
8040         lt_prog_compiler_pic=-Kconform_pic
8041       fi
8042       ;;
8043
8044     *)
8045       lt_prog_compiler_pic='-fPIC'
8046       ;;
8047     esac
8048
8049     case $cc_basename in
8050     nvcc*) # Cuda Compiler Driver 2.2
8051       lt_prog_compiler_wl='-Xlinker '
8052       if test -n "$lt_prog_compiler_pic"; then
8053         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8054       fi
8055       ;;
8056     esac
8057   else
8058     # PORTME Check for flag to pass linker flags through the system compiler.
8059     case $host_os in
8060     aix*)
8061       lt_prog_compiler_wl='-Wl,'
8062       if test "$host_cpu" = ia64; then
8063         # AIX 5 now supports IA64 processor
8064         lt_prog_compiler_static='-Bstatic'
8065       else
8066         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8067       fi
8068       ;;
8069
8070     mingw* | cygwin* | pw32* | os2* | cegcc*)
8071       # This hack is so that the source file can tell whether it is being
8072       # built for inclusion in a dll (and should export symbols for example).
8073       lt_prog_compiler_pic='-DDLL_EXPORT'
8074       ;;
8075
8076     hpux9* | hpux10* | hpux11*)
8077       lt_prog_compiler_wl='-Wl,'
8078       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8079       # not for PA HP-UX.
8080       case $host_cpu in
8081       hppa*64*|ia64*)
8082         # +Z the default
8083         ;;
8084       *)
8085         lt_prog_compiler_pic='+Z'
8086         ;;
8087       esac
8088       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8089       lt_prog_compiler_static='${wl}-a ${wl}archive'
8090       ;;
8091
8092     irix5* | irix6* | nonstopux*)
8093       lt_prog_compiler_wl='-Wl,'
8094       # PIC (with -KPIC) is the default.
8095       lt_prog_compiler_static='-non_shared'
8096       ;;
8097
8098     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8099       case $cc_basename in
8100       # old Intel for x86_64 which still supported -KPIC.
8101       ecc*)
8102         lt_prog_compiler_wl='-Wl,'
8103         lt_prog_compiler_pic='-KPIC'
8104         lt_prog_compiler_static='-static'
8105         ;;
8106       # icc used to be incompatible with GCC.
8107       # ICC 10 doesn't accept -KPIC any more.
8108       icc* | ifort*)
8109         lt_prog_compiler_wl='-Wl,'
8110         lt_prog_compiler_pic='-fPIC'
8111         lt_prog_compiler_static='-static'
8112         ;;
8113       # Lahey Fortran 8.1.
8114       lf95*)
8115         lt_prog_compiler_wl='-Wl,'
8116         lt_prog_compiler_pic='--shared'
8117         lt_prog_compiler_static='--static'
8118         ;;
8119       nagfor*)
8120         # NAG Fortran compiler
8121         lt_prog_compiler_wl='-Wl,-Wl,,'
8122         lt_prog_compiler_pic='-PIC'
8123         lt_prog_compiler_static='-Bstatic'
8124         ;;
8125       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8126         # Portland Group compilers (*not* the Pentium gcc compiler,
8127         # which looks to be a dead project)
8128         lt_prog_compiler_wl='-Wl,'
8129         lt_prog_compiler_pic='-fpic'
8130         lt_prog_compiler_static='-Bstatic'
8131         ;;
8132       ccc*)
8133         lt_prog_compiler_wl='-Wl,'
8134         # All Alpha code is PIC.
8135         lt_prog_compiler_static='-non_shared'
8136         ;;
8137       xl* | bgxl* | bgf* | mpixl*)
8138         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8139         lt_prog_compiler_wl='-Wl,'
8140         lt_prog_compiler_pic='-qpic'
8141         lt_prog_compiler_static='-qstaticlink'
8142         ;;
8143       *)
8144         case `$CC -V 2>&1 | sed 5q` in
8145         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8146           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8147           lt_prog_compiler_pic='-KPIC'
8148           lt_prog_compiler_static='-Bstatic'
8149           lt_prog_compiler_wl=''
8150           ;;
8151         *Sun\ F* | *Sun*Fortran*)
8152           lt_prog_compiler_pic='-KPIC'
8153           lt_prog_compiler_static='-Bstatic'
8154           lt_prog_compiler_wl='-Qoption ld '
8155           ;;
8156         *Sun\ C*)
8157           # Sun C 5.9
8158           lt_prog_compiler_pic='-KPIC'
8159           lt_prog_compiler_static='-Bstatic'
8160           lt_prog_compiler_wl='-Wl,'
8161           ;;
8162         *Intel*\ [CF]*Compiler*)
8163           lt_prog_compiler_wl='-Wl,'
8164           lt_prog_compiler_pic='-fPIC'
8165           lt_prog_compiler_static='-static'
8166           ;;
8167         *Portland\ Group*)
8168           lt_prog_compiler_wl='-Wl,'
8169           lt_prog_compiler_pic='-fpic'
8170           lt_prog_compiler_static='-Bstatic'
8171           ;;
8172         esac
8173         ;;
8174       esac
8175       ;;
8176
8177     newsos6)
8178       lt_prog_compiler_pic='-KPIC'
8179       lt_prog_compiler_static='-Bstatic'
8180       ;;
8181
8182     *nto* | *qnx*)
8183       # QNX uses GNU C++, but need to define -shared option too, otherwise
8184       # it will coredump.
8185       lt_prog_compiler_pic='-fPIC -shared'
8186       ;;
8187
8188     osf3* | osf4* | osf5*)
8189       lt_prog_compiler_wl='-Wl,'
8190       # All OSF/1 code is PIC.
8191       lt_prog_compiler_static='-non_shared'
8192       ;;
8193
8194     rdos*)
8195       lt_prog_compiler_static='-non_shared'
8196       ;;
8197
8198     solaris*)
8199       lt_prog_compiler_pic='-KPIC'
8200       lt_prog_compiler_static='-Bstatic'
8201       case $cc_basename in
8202       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8203         lt_prog_compiler_wl='-Qoption ld ';;
8204       *)
8205         lt_prog_compiler_wl='-Wl,';;
8206       esac
8207       ;;
8208
8209     sunos4*)
8210       lt_prog_compiler_wl='-Qoption ld '
8211       lt_prog_compiler_pic='-PIC'
8212       lt_prog_compiler_static='-Bstatic'
8213       ;;
8214
8215     sysv4 | sysv4.2uw2* | sysv4.3*)
8216       lt_prog_compiler_wl='-Wl,'
8217       lt_prog_compiler_pic='-KPIC'
8218       lt_prog_compiler_static='-Bstatic'
8219       ;;
8220
8221     sysv4*MP*)
8222       if test -d /usr/nec ;then
8223         lt_prog_compiler_pic='-Kconform_pic'
8224         lt_prog_compiler_static='-Bstatic'
8225       fi
8226       ;;
8227
8228     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8229       lt_prog_compiler_wl='-Wl,'
8230       lt_prog_compiler_pic='-KPIC'
8231       lt_prog_compiler_static='-Bstatic'
8232       ;;
8233
8234     unicos*)
8235       lt_prog_compiler_wl='-Wl,'
8236       lt_prog_compiler_can_build_shared=no
8237       ;;
8238
8239     uts4*)
8240       lt_prog_compiler_pic='-pic'
8241       lt_prog_compiler_static='-Bstatic'
8242       ;;
8243
8244     *)
8245       lt_prog_compiler_can_build_shared=no
8246       ;;
8247     esac
8248   fi
8249
8250 case $host_os in
8251   # For platforms which do not support PIC, -DPIC is meaningless:
8252   *djgpp*)
8253     lt_prog_compiler_pic=
8254     ;;
8255   *)
8256     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8257     ;;
8258 esac
8259
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8261 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8262 if ${lt_cv_prog_compiler_pic+:} false; then :
8263   $as_echo_n "(cached) " >&6
8264 else
8265   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8266 fi
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8268 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8269 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8270
8271 #
8272 # Check to make sure the PIC flag actually works.
8273 #
8274 if test -n "$lt_prog_compiler_pic"; then
8275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8276 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8277 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8278   $as_echo_n "(cached) " >&6
8279 else
8280   lt_cv_prog_compiler_pic_works=no
8281    ac_outfile=conftest.$ac_objext
8282    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8283    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8284    # Insert the option either (1) after the last *FLAGS variable, or
8285    # (2) before a word containing "conftest.", or (3) at the end.
8286    # Note that $ac_compile itself does not contain backslashes and begins
8287    # with a dollar sign (not a hyphen), so the echo should work correctly.
8288    # The option is referenced via a variable to avoid confusing sed.
8289    lt_compile=`echo "$ac_compile" | $SED \
8290    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8291    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8292    -e 's:$: $lt_compiler_flag:'`
8293    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8294    (eval "$lt_compile" 2>conftest.err)
8295    ac_status=$?
8296    cat conftest.err >&5
8297    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298    if (exit $ac_status) && test -s "$ac_outfile"; then
8299      # The compiler can only warn and ignore the option if not recognized
8300      # So say no if there are warnings other than the usual output.
8301      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8302      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8303      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8304        lt_cv_prog_compiler_pic_works=yes
8305      fi
8306    fi
8307    $RM conftest*
8308
8309 fi
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8311 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8312
8313 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8314     case $lt_prog_compiler_pic in
8315      "" | " "*) ;;
8316      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8317      esac
8318 else
8319     lt_prog_compiler_pic=
8320      lt_prog_compiler_can_build_shared=no
8321 fi
8322
8323 fi
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335 #
8336 # Check to make sure the static flag actually works.
8337 #
8338 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8340 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8341 if ${lt_cv_prog_compiler_static_works+:} false; then :
8342   $as_echo_n "(cached) " >&6
8343 else
8344   lt_cv_prog_compiler_static_works=no
8345    save_LDFLAGS="$LDFLAGS"
8346    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8347    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8348    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8349      # The linker can only warn and ignore the option if not recognized
8350      # So say no if there are warnings
8351      if test -s conftest.err; then
8352        # Append any errors to the config.log.
8353        cat conftest.err 1>&5
8354        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8355        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8356        if diff conftest.exp conftest.er2 >/dev/null; then
8357          lt_cv_prog_compiler_static_works=yes
8358        fi
8359      else
8360        lt_cv_prog_compiler_static_works=yes
8361      fi
8362    fi
8363    $RM -r conftest*
8364    LDFLAGS="$save_LDFLAGS"
8365
8366 fi
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8368 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8369
8370 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8371     :
8372 else
8373     lt_prog_compiler_static=
8374 fi
8375
8376
8377
8378
8379
8380
8381
8382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8383 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8384 if ${lt_cv_prog_compiler_c_o+:} false; then :
8385   $as_echo_n "(cached) " >&6
8386 else
8387   lt_cv_prog_compiler_c_o=no
8388    $RM -r conftest 2>/dev/null
8389    mkdir conftest
8390    cd conftest
8391    mkdir out
8392    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8393
8394    lt_compiler_flag="-o out/conftest2.$ac_objext"
8395    # Insert the option either (1) after the last *FLAGS variable, or
8396    # (2) before a word containing "conftest.", or (3) at the end.
8397    # Note that $ac_compile itself does not contain backslashes and begins
8398    # with a dollar sign (not a hyphen), so the echo should work correctly.
8399    lt_compile=`echo "$ac_compile" | $SED \
8400    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8401    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8402    -e 's:$: $lt_compiler_flag:'`
8403    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8404    (eval "$lt_compile" 2>out/conftest.err)
8405    ac_status=$?
8406    cat out/conftest.err >&5
8407    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8409    then
8410      # The compiler can only warn and ignore the option if not recognized
8411      # So say no if there are warnings
8412      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8413      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8414      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8415        lt_cv_prog_compiler_c_o=yes
8416      fi
8417    fi
8418    chmod u+w . 2>&5
8419    $RM conftest*
8420    # SGI C++ compiler will create directory out/ii_files/ for
8421    # template instantiation
8422    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8423    $RM out/* && rmdir out
8424    cd ..
8425    $RM -r conftest
8426    $RM conftest*
8427
8428 fi
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8430 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8431
8432
8433
8434
8435
8436
8437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8438 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8439 if ${lt_cv_prog_compiler_c_o+:} false; then :
8440   $as_echo_n "(cached) " >&6
8441 else
8442   lt_cv_prog_compiler_c_o=no
8443    $RM -r conftest 2>/dev/null
8444    mkdir conftest
8445    cd conftest
8446    mkdir out
8447    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8448
8449    lt_compiler_flag="-o out/conftest2.$ac_objext"
8450    # Insert the option either (1) after the last *FLAGS variable, or
8451    # (2) before a word containing "conftest.", or (3) at the end.
8452    # Note that $ac_compile itself does not contain backslashes and begins
8453    # with a dollar sign (not a hyphen), so the echo should work correctly.
8454    lt_compile=`echo "$ac_compile" | $SED \
8455    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8456    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8457    -e 's:$: $lt_compiler_flag:'`
8458    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8459    (eval "$lt_compile" 2>out/conftest.err)
8460    ac_status=$?
8461    cat out/conftest.err >&5
8462    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8464    then
8465      # The compiler can only warn and ignore the option if not recognized
8466      # So say no if there are warnings
8467      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8468      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8469      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8470        lt_cv_prog_compiler_c_o=yes
8471      fi
8472    fi
8473    chmod u+w . 2>&5
8474    $RM conftest*
8475    # SGI C++ compiler will create directory out/ii_files/ for
8476    # template instantiation
8477    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8478    $RM out/* && rmdir out
8479    cd ..
8480    $RM -r conftest
8481    $RM conftest*
8482
8483 fi
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8485 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8486
8487
8488
8489
8490 hard_links="nottested"
8491 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8492   # do not overwrite the value of need_locks provided by the user
8493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8494 $as_echo_n "checking if we can lock with hard links... " >&6; }
8495   hard_links=yes
8496   $RM conftest*
8497   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8498   touch conftest.a
8499   ln conftest.a conftest.b 2>&5 || hard_links=no
8500   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8502 $as_echo "$hard_links" >&6; }
8503   if test "$hard_links" = no; then
8504     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8505 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8506     need_locks=warn
8507   fi
8508 else
8509   need_locks=no
8510 fi
8511
8512
8513
8514
8515
8516
8517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8518 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8519
8520   runpath_var=
8521   allow_undefined_flag=
8522   always_export_symbols=no
8523   archive_cmds=
8524   archive_expsym_cmds=
8525   compiler_needs_object=no
8526   enable_shared_with_static_runtimes=no
8527   export_dynamic_flag_spec=
8528   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8529   hardcode_automatic=no
8530   hardcode_direct=no
8531   hardcode_direct_absolute=no
8532   hardcode_libdir_flag_spec=
8533   hardcode_libdir_separator=
8534   hardcode_minus_L=no
8535   hardcode_shlibpath_var=unsupported
8536   inherit_rpath=no
8537   link_all_deplibs=unknown
8538   module_cmds=
8539   module_expsym_cmds=
8540   old_archive_from_new_cmds=
8541   old_archive_from_expsyms_cmds=
8542   thread_safe_flag_spec=
8543   whole_archive_flag_spec=
8544   # include_expsyms should be a list of space-separated symbols to be *always*
8545   # included in the symbol list
8546   include_expsyms=
8547   # exclude_expsyms can be an extended regexp of symbols to exclude
8548   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8549   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8550   # as well as any symbol that contains `d'.
8551   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8552   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8553   # platforms (ab)use it in PIC code, but their linkers get confused if
8554   # the symbol is explicitly referenced.  Since portable code cannot
8555   # rely on this symbol name, it's probably fine to never include it in
8556   # preloaded symbol tables.
8557   # Exclude shared library initialization/finalization symbols.
8558   extract_expsyms_cmds=
8559
8560   case $host_os in
8561   cygwin* | mingw* | pw32* | cegcc*)
8562     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8563     # When not using gcc, we currently assume that we are using
8564     # Microsoft Visual C++.
8565     if test "$GCC" != yes; then
8566       with_gnu_ld=no
8567     fi
8568     ;;
8569   interix*)
8570     # we just hope/assume this is gcc and not c89 (= MSVC++)
8571     with_gnu_ld=yes
8572     ;;
8573   openbsd*)
8574     with_gnu_ld=no
8575     ;;
8576   esac
8577
8578   ld_shlibs=yes
8579
8580   # On some targets, GNU ld is compatible enough with the native linker
8581   # that we're better off using the native interface for both.
8582   lt_use_gnu_ld_interface=no
8583   if test "$with_gnu_ld" = yes; then
8584     case $host_os in
8585       aix*)
8586         # The AIX port of GNU ld has always aspired to compatibility
8587         # with the native linker.  However, as the warning in the GNU ld
8588         # block says, versions before 2.19.5* couldn't really create working
8589         # shared libraries, regardless of the interface used.
8590         case `$LD -v 2>&1` in
8591           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8592           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8593           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8594           *)
8595             lt_use_gnu_ld_interface=yes
8596             ;;
8597         esac
8598         ;;
8599       *)
8600         lt_use_gnu_ld_interface=yes
8601         ;;
8602     esac
8603   fi
8604
8605   if test "$lt_use_gnu_ld_interface" = yes; then
8606     # If archive_cmds runs LD, not CC, wlarc should be empty
8607     wlarc='${wl}'
8608
8609     # Set some defaults for GNU ld with shared library support. These
8610     # are reset later if shared libraries are not supported. Putting them
8611     # here allows them to be overridden if necessary.
8612     runpath_var=LD_RUN_PATH
8613     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8614     export_dynamic_flag_spec='${wl}--export-dynamic'
8615     # ancient GNU ld didn't support --whole-archive et. al.
8616     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8617       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8618     else
8619       whole_archive_flag_spec=
8620     fi
8621     supports_anon_versioning=no
8622     case `$LD -v 2>&1` in
8623       *GNU\ gold*) supports_anon_versioning=yes ;;
8624       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8625       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8626       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8627       *\ 2.11.*) ;; # other 2.11 versions
8628       *) supports_anon_versioning=yes ;;
8629     esac
8630
8631     # See if GNU ld supports shared libraries.
8632     case $host_os in
8633     aix[3-9]*)
8634       # On AIX/PPC, the GNU linker is very broken
8635       if test "$host_cpu" != ia64; then
8636         ld_shlibs=no
8637         cat <<_LT_EOF 1>&2
8638
8639 *** Warning: the GNU linker, at least up to release 2.19, is reported
8640 *** to be unable to reliably create shared libraries on AIX.
8641 *** Therefore, libtool is disabling shared libraries support.  If you
8642 *** really care for shared libraries, you may want to install binutils
8643 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8644 *** You will then need to restart the configuration process.
8645
8646 _LT_EOF
8647       fi
8648       ;;
8649
8650     amigaos*)
8651       case $host_cpu in
8652       powerpc)
8653             # see comment about AmigaOS4 .so support
8654             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8655             archive_expsym_cmds=''
8656         ;;
8657       m68k)
8658             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)'
8659             hardcode_libdir_flag_spec='-L$libdir'
8660             hardcode_minus_L=yes
8661         ;;
8662       esac
8663       ;;
8664
8665     beos*)
8666       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8667         allow_undefined_flag=unsupported
8668         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8669         # support --undefined.  This deserves some investigation.  FIXME
8670         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8671       else
8672         ld_shlibs=no
8673       fi
8674       ;;
8675
8676     cygwin* | mingw* | pw32* | cegcc*)
8677       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8678       # as there is no search path for DLLs.
8679       hardcode_libdir_flag_spec='-L$libdir'
8680       export_dynamic_flag_spec='${wl}--export-all-symbols'
8681       allow_undefined_flag=unsupported
8682       always_export_symbols=no
8683       enable_shared_with_static_runtimes=yes
8684       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8685       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8686
8687       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8688         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8689         # If the export-symbols file already is a .def file (1st line
8690         # is EXPORTS), use it as is; otherwise, prepend...
8691         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8692           cp $export_symbols $output_objdir/$soname.def;
8693         else
8694           echo EXPORTS > $output_objdir/$soname.def;
8695           cat $export_symbols >> $output_objdir/$soname.def;
8696         fi~
8697         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8698       else
8699         ld_shlibs=no
8700       fi
8701       ;;
8702
8703     haiku*)
8704       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8705       link_all_deplibs=yes
8706       ;;
8707
8708     interix[3-9]*)
8709       hardcode_direct=no
8710       hardcode_shlibpath_var=no
8711       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8712       export_dynamic_flag_spec='${wl}-E'
8713       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8714       # Instead, shared libraries are loaded at an image base (0x10000000 by
8715       # default) and relocated if they conflict, which is a slow very memory
8716       # consuming and fragmenting process.  To avoid this, we pick a random,
8717       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8718       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8719       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8720       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'
8721       ;;
8722
8723     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8724       tmp_diet=no
8725       if test "$host_os" = linux-dietlibc; then
8726         case $cc_basename in
8727           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8728         esac
8729       fi
8730       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8731          && test "$tmp_diet" = no
8732       then
8733         tmp_addflag=' $pic_flag'
8734         tmp_sharedflag='-shared'
8735         case $cc_basename,$host_cpu in
8736         pgcc*)                          # Portland Group C compiler
8737           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'
8738           tmp_addflag=' $pic_flag'
8739           ;;
8740         pgf77* | pgf90* | pgf95* | pgfortran*)
8741                                         # Portland Group f77 and f90 compilers
8742           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'
8743           tmp_addflag=' $pic_flag -Mnomain' ;;
8744         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8745           tmp_addflag=' -i_dynamic' ;;
8746         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8747           tmp_addflag=' -i_dynamic -nofor_main' ;;
8748         ifc* | ifort*)                  # Intel Fortran compiler
8749           tmp_addflag=' -nofor_main' ;;
8750         lf95*)                          # Lahey Fortran 8.1
8751           whole_archive_flag_spec=
8752           tmp_sharedflag='--shared' ;;
8753         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8754           tmp_sharedflag='-qmkshrobj'
8755           tmp_addflag= ;;
8756         nvcc*)  # Cuda Compiler Driver 2.2
8757           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'
8758           compiler_needs_object=yes
8759           ;;
8760         esac
8761         case `$CC -V 2>&1 | sed 5q` in
8762         *Sun\ C*)                       # Sun C 5.9
8763           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'
8764           compiler_needs_object=yes
8765           tmp_sharedflag='-G' ;;
8766         *Sun\ F*)                       # Sun Fortran 8.3
8767           tmp_sharedflag='-G' ;;
8768         esac
8769         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8770
8771         if test "x$supports_anon_versioning" = xyes; then
8772           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8773             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8774             echo "local: *; };" >> $output_objdir/$libname.ver~
8775             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8776         fi
8777
8778         case $cc_basename in
8779         xlf* | bgf* | bgxlf* | mpixlf*)
8780           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8781           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8782           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8783           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8784           if test "x$supports_anon_versioning" = xyes; then
8785             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8786               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8787               echo "local: *; };" >> $output_objdir/$libname.ver~
8788               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8789           fi
8790           ;;
8791         esac
8792       else
8793         ld_shlibs=no
8794       fi
8795       ;;
8796
8797     netbsd*)
8798       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8799         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8800         wlarc=
8801       else
8802         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8803         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8804       fi
8805       ;;
8806
8807     solaris*)
8808       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8809         ld_shlibs=no
8810         cat <<_LT_EOF 1>&2
8811
8812 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8813 *** create shared libraries on Solaris systems.  Therefore, libtool
8814 *** is disabling shared libraries support.  We urge you to upgrade GNU
8815 *** binutils to release 2.9.1 or newer.  Another option is to modify
8816 *** your PATH or compiler configuration so that the native linker is
8817 *** used, and then restart.
8818
8819 _LT_EOF
8820       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8821         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8822         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8823       else
8824         ld_shlibs=no
8825       fi
8826       ;;
8827
8828     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8829       case `$LD -v 2>&1` in
8830         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8831         ld_shlibs=no
8832         cat <<_LT_EOF 1>&2
8833
8834 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8835 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8836 *** is disabling shared libraries support.  We urge you to upgrade GNU
8837 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8838 *** your PATH or compiler configuration so that the native linker is
8839 *** used, and then restart.
8840
8841 _LT_EOF
8842         ;;
8843         *)
8844           # For security reasons, it is highly recommended that you always
8845           # use absolute paths for naming shared libraries, and exclude the
8846           # DT_RUNPATH tag from executables and libraries.  But doing so
8847           # requires that you compile everything twice, which is a pain.
8848           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8849             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8850             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8851             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8852           else
8853             ld_shlibs=no
8854           fi
8855         ;;
8856       esac
8857       ;;
8858
8859     sunos4*)
8860       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8861       wlarc=
8862       hardcode_direct=yes
8863       hardcode_shlibpath_var=no
8864       ;;
8865
8866     *)
8867       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8868         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8869         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8870       else
8871         ld_shlibs=no
8872       fi
8873       ;;
8874     esac
8875
8876     if test "$ld_shlibs" = no; then
8877       runpath_var=
8878       hardcode_libdir_flag_spec=
8879       export_dynamic_flag_spec=
8880       whole_archive_flag_spec=
8881     fi
8882   else
8883     # PORTME fill in a description of your system's linker (not GNU ld)
8884     case $host_os in
8885     aix3*)
8886       allow_undefined_flag=unsupported
8887       always_export_symbols=yes
8888       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'
8889       # Note: this linker hardcodes the directories in LIBPATH if there
8890       # are no directories specified by -L.
8891       hardcode_minus_L=yes
8892       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8893         # Neither direct hardcoding nor static linking is supported with a
8894         # broken collect2.
8895         hardcode_direct=unsupported
8896       fi
8897       ;;
8898
8899     aix[4-9]*)
8900       if test "$host_cpu" = ia64; then
8901         # On IA64, the linker does run time linking by default, so we don't
8902         # have to do anything special.
8903         aix_use_runtimelinking=no
8904         exp_sym_flag='-Bexport'
8905         no_entry_flag=""
8906       else
8907         # If we're using GNU nm, then we don't want the "-C" option.
8908         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8909         # Also, AIX nm treats weak defined symbols like other global
8910         # defined symbols, whereas GNU nm marks them as "W".
8911         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8912           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'
8913         else
8914           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'
8915         fi
8916         aix_use_runtimelinking=no
8917
8918         # Test if we are trying to use run time linking or normal
8919         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8920         # need to do runtime linking.
8921         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8922           for ld_flag in $LDFLAGS; do
8923           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8924             aix_use_runtimelinking=yes
8925             break
8926           fi
8927           done
8928           ;;
8929         esac
8930
8931         exp_sym_flag='-bexport'
8932         no_entry_flag='-bnoentry'
8933       fi
8934
8935       # When large executables or shared objects are built, AIX ld can
8936       # have problems creating the table of contents.  If linking a library
8937       # or program results in "error TOC overflow" add -mminimal-toc to
8938       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8939       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8940
8941       archive_cmds=''
8942       hardcode_direct=yes
8943       hardcode_direct_absolute=yes
8944       hardcode_libdir_separator=':'
8945       link_all_deplibs=yes
8946       file_list_spec='${wl}-f,'
8947
8948       if test "$GCC" = yes; then
8949         case $host_os in aix4.[012]|aix4.[012].*)
8950         # We only want to do this on AIX 4.2 and lower, the check
8951         # below for broken collect2 doesn't work under 4.3+
8952           collect2name=`${CC} -print-prog-name=collect2`
8953           if test -f "$collect2name" &&
8954            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8955           then
8956           # We have reworked collect2
8957           :
8958           else
8959           # We have old collect2
8960           hardcode_direct=unsupported
8961           # It fails to find uninstalled libraries when the uninstalled
8962           # path is not listed in the libpath.  Setting hardcode_minus_L
8963           # to unsupported forces relinking
8964           hardcode_minus_L=yes
8965           hardcode_libdir_flag_spec='-L$libdir'
8966           hardcode_libdir_separator=
8967           fi
8968           ;;
8969         esac
8970         shared_flag='-shared'
8971         if test "$aix_use_runtimelinking" = yes; then
8972           shared_flag="$shared_flag "'${wl}-G'
8973         fi
8974       else
8975         # not using gcc
8976         if test "$host_cpu" = ia64; then
8977         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8978         # chokes on -Wl,-G. The following line is correct:
8979           shared_flag='-G'
8980         else
8981           if test "$aix_use_runtimelinking" = yes; then
8982             shared_flag='${wl}-G'
8983           else
8984             shared_flag='${wl}-bM:SRE'
8985           fi
8986         fi
8987       fi
8988
8989       export_dynamic_flag_spec='${wl}-bexpall'
8990       # It seems that -bexpall does not export symbols beginning with
8991       # underscore (_), so it is better to generate a list of symbols to export.
8992       always_export_symbols=yes
8993       if test "$aix_use_runtimelinking" = yes; then
8994         # Warning - without using the other runtime loading flags (-brtl),
8995         # -berok will link without error, but may produce a broken library.
8996         allow_undefined_flag='-berok'
8997         # Determine the default libpath from the value encoded in an
8998         # empty executable.
8999         if test "${lt_cv_aix_libpath+set}" = set; then
9000   aix_libpath=$lt_cv_aix_libpath
9001 else
9002   if ${lt_cv_aix_libpath_+:} false; then :
9003   $as_echo_n "(cached) " >&6
9004 else
9005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h.  */
9007
9008 int
9009 main ()
9010 {
9011
9012   ;
9013   return 0;
9014 }
9015 _ACEOF
9016 if ac_fn_c_try_link "$LINENO"; then :
9017
9018   lt_aix_libpath_sed='
9019       /Import File Strings/,/^$/ {
9020           /^0/ {
9021               s/^0  *\([^ ]*\) *$/\1/
9022               p
9023           }
9024       }'
9025   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9026   # Check for a 64-bit object if we didn't find anything.
9027   if test -z "$lt_cv_aix_libpath_"; then
9028     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9029   fi
9030 fi
9031 rm -f core conftest.err conftest.$ac_objext \
9032     conftest$ac_exeext conftest.$ac_ext
9033   if test -z "$lt_cv_aix_libpath_"; then
9034     lt_cv_aix_libpath_="/usr/lib:/lib"
9035   fi
9036
9037 fi
9038
9039   aix_libpath=$lt_cv_aix_libpath_
9040 fi
9041
9042         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9043         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"
9044       else
9045         if test "$host_cpu" = ia64; then
9046           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9047           allow_undefined_flag="-z nodefs"
9048           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"
9049         else
9050          # Determine the default libpath from the value encoded in an
9051          # empty executable.
9052          if test "${lt_cv_aix_libpath+set}" = set; then
9053   aix_libpath=$lt_cv_aix_libpath
9054 else
9055   if ${lt_cv_aix_libpath_+:} false; then :
9056   $as_echo_n "(cached) " >&6
9057 else
9058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h.  */
9060
9061 int
9062 main ()
9063 {
9064
9065   ;
9066   return 0;
9067 }
9068 _ACEOF
9069 if ac_fn_c_try_link "$LINENO"; then :
9070
9071   lt_aix_libpath_sed='
9072       /Import File Strings/,/^$/ {
9073           /^0/ {
9074               s/^0  *\([^ ]*\) *$/\1/
9075               p
9076           }
9077       }'
9078   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9079   # Check for a 64-bit object if we didn't find anything.
9080   if test -z "$lt_cv_aix_libpath_"; then
9081     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9082   fi
9083 fi
9084 rm -f core conftest.err conftest.$ac_objext \
9085     conftest$ac_exeext conftest.$ac_ext
9086   if test -z "$lt_cv_aix_libpath_"; then
9087     lt_cv_aix_libpath_="/usr/lib:/lib"
9088   fi
9089
9090 fi
9091
9092   aix_libpath=$lt_cv_aix_libpath_
9093 fi
9094
9095          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9096           # Warning - without using the other run time loading flags,
9097           # -berok will link without error, but may produce a broken library.
9098           no_undefined_flag=' ${wl}-bernotok'
9099           allow_undefined_flag=' ${wl}-berok'
9100           if test "$with_gnu_ld" = yes; then
9101             # We only use this code for GNU lds that support --whole-archive.
9102             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9103           else
9104             # Exported symbols can be pulled into shared objects from archives
9105             whole_archive_flag_spec='$convenience'
9106           fi
9107           archive_cmds_need_lc=yes
9108           # This is similar to how AIX traditionally builds its shared libraries.
9109           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'
9110         fi
9111       fi
9112       ;;
9113
9114     amigaos*)
9115       case $host_cpu in
9116       powerpc)
9117             # see comment about AmigaOS4 .so support
9118             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9119             archive_expsym_cmds=''
9120         ;;
9121       m68k)
9122             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)'
9123             hardcode_libdir_flag_spec='-L$libdir'
9124             hardcode_minus_L=yes
9125         ;;
9126       esac
9127       ;;
9128
9129     bsdi[45]*)
9130       export_dynamic_flag_spec=-rdynamic
9131       ;;
9132
9133     cygwin* | mingw* | pw32* | cegcc*)
9134       # When not using gcc, we currently assume that we are using
9135       # Microsoft Visual C++.
9136       # hardcode_libdir_flag_spec is actually meaningless, as there is
9137       # no search path for DLLs.
9138       case $cc_basename in
9139       cl*)
9140         # Native MSVC
9141         hardcode_libdir_flag_spec=' '
9142         allow_undefined_flag=unsupported
9143         always_export_symbols=yes
9144         file_list_spec='@'
9145         # Tell ltmain to make .lib files, not .a files.
9146         libext=lib
9147         # Tell ltmain to make .dll files, not .so files.
9148         shrext_cmds=".dll"
9149         # FIXME: Setting linknames here is a bad hack.
9150         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9151         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9152             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9153           else
9154             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9155           fi~
9156           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9157           linknames='
9158         # The linker will not automatically build a static lib if we build a DLL.
9159         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9160         enable_shared_with_static_runtimes=yes
9161         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9162         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9163         # Don't use ranlib
9164         old_postinstall_cmds='chmod 644 $oldlib'
9165         postlink_cmds='lt_outputfile="@OUTPUT@"~
9166           lt_tool_outputfile="@TOOL_OUTPUT@"~
9167           case $lt_outputfile in
9168             *.exe|*.EXE) ;;
9169             *)
9170               lt_outputfile="$lt_outputfile.exe"
9171               lt_tool_outputfile="$lt_tool_outputfile.exe"
9172               ;;
9173           esac~
9174           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9175             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9176             $RM "$lt_outputfile.manifest";
9177           fi'
9178         ;;
9179       *)
9180         # Assume MSVC wrapper
9181         hardcode_libdir_flag_spec=' '
9182         allow_undefined_flag=unsupported
9183         # Tell ltmain to make .lib files, not .a files.
9184         libext=lib
9185         # Tell ltmain to make .dll files, not .so files.
9186         shrext_cmds=".dll"
9187         # FIXME: Setting linknames here is a bad hack.
9188         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9189         # The linker will automatically build a .lib file if we build a DLL.
9190         old_archive_from_new_cmds='true'
9191         # FIXME: Should let the user specify the lib program.
9192         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9193         enable_shared_with_static_runtimes=yes
9194         ;;
9195       esac
9196       ;;
9197
9198     darwin* | rhapsody*)
9199
9200
9201   archive_cmds_need_lc=no
9202   hardcode_direct=no
9203   hardcode_automatic=yes
9204   hardcode_shlibpath_var=unsupported
9205   if test "$lt_cv_ld_force_load" = "yes"; then
9206     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\"`'
9207
9208   else
9209     whole_archive_flag_spec=''
9210   fi
9211   link_all_deplibs=yes
9212   allow_undefined_flag="$_lt_dar_allow_undefined"
9213   case $cc_basename in
9214      ifort*) _lt_dar_can_shared=yes ;;
9215      *) _lt_dar_can_shared=$GCC ;;
9216   esac
9217   if test "$_lt_dar_can_shared" = "yes"; then
9218     output_verbose_link_cmd=func_echo_all
9219     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9220     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9221     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}"
9222     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}"
9223
9224   else
9225   ld_shlibs=no
9226   fi
9227
9228       ;;
9229
9230     dgux*)
9231       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9232       hardcode_libdir_flag_spec='-L$libdir'
9233       hardcode_shlibpath_var=no
9234       ;;
9235
9236     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9237     # support.  Future versions do this automatically, but an explicit c++rt0.o
9238     # does not break anything, and helps significantly (at the cost of a little
9239     # extra space).
9240     freebsd2.2*)
9241       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9242       hardcode_libdir_flag_spec='-R$libdir'
9243       hardcode_direct=yes
9244       hardcode_shlibpath_var=no
9245       ;;
9246
9247     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9248     freebsd2.*)
9249       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9250       hardcode_direct=yes
9251       hardcode_minus_L=yes
9252       hardcode_shlibpath_var=no
9253       ;;
9254
9255     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9256     freebsd* | dragonfly*)
9257       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9258       hardcode_libdir_flag_spec='-R$libdir'
9259       hardcode_direct=yes
9260       hardcode_shlibpath_var=no
9261       ;;
9262
9263     hpux9*)
9264       if test "$GCC" = yes; then
9265         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9266       else
9267         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'
9268       fi
9269       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9270       hardcode_libdir_separator=:
9271       hardcode_direct=yes
9272
9273       # hardcode_minus_L: Not really in the search PATH,
9274       # but as the default location of the library.
9275       hardcode_minus_L=yes
9276       export_dynamic_flag_spec='${wl}-E'
9277       ;;
9278
9279     hpux10*)
9280       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9281         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9282       else
9283         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9284       fi
9285       if test "$with_gnu_ld" = no; then
9286         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9287         hardcode_libdir_separator=:
9288         hardcode_direct=yes
9289         hardcode_direct_absolute=yes
9290         export_dynamic_flag_spec='${wl}-E'
9291         # hardcode_minus_L: Not really in the search PATH,
9292         # but as the default location of the library.
9293         hardcode_minus_L=yes
9294       fi
9295       ;;
9296
9297     hpux11*)
9298       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9299         case $host_cpu in
9300         hppa*64*)
9301           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9302           ;;
9303         ia64*)
9304           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9305           ;;
9306         *)
9307           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9308           ;;
9309         esac
9310       else
9311         case $host_cpu in
9312         hppa*64*)
9313           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9314           ;;
9315         ia64*)
9316           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9317           ;;
9318         *)
9319
9320           # Older versions of the 11.00 compiler do not understand -b yet
9321           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9322           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9323 $as_echo_n "checking if $CC understands -b... " >&6; }
9324 if ${lt_cv_prog_compiler__b+:} false; then :
9325   $as_echo_n "(cached) " >&6
9326 else
9327   lt_cv_prog_compiler__b=no
9328    save_LDFLAGS="$LDFLAGS"
9329    LDFLAGS="$LDFLAGS -b"
9330    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9331    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9332      # The linker can only warn and ignore the option if not recognized
9333      # So say no if there are warnings
9334      if test -s conftest.err; then
9335        # Append any errors to the config.log.
9336        cat conftest.err 1>&5
9337        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9338        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9339        if diff conftest.exp conftest.er2 >/dev/null; then
9340          lt_cv_prog_compiler__b=yes
9341        fi
9342      else
9343        lt_cv_prog_compiler__b=yes
9344      fi
9345    fi
9346    $RM -r conftest*
9347    LDFLAGS="$save_LDFLAGS"
9348
9349 fi
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9351 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9352
9353 if test x"$lt_cv_prog_compiler__b" = xyes; then
9354     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9355 else
9356     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9357 fi
9358
9359           ;;
9360         esac
9361       fi
9362       if test "$with_gnu_ld" = no; then
9363         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9364         hardcode_libdir_separator=:
9365
9366         case $host_cpu in
9367         hppa*64*|ia64*)
9368           hardcode_direct=no
9369           hardcode_shlibpath_var=no
9370           ;;
9371         *)
9372           hardcode_direct=yes
9373           hardcode_direct_absolute=yes
9374           export_dynamic_flag_spec='${wl}-E'
9375
9376           # hardcode_minus_L: Not really in the search PATH,
9377           # but as the default location of the library.
9378           hardcode_minus_L=yes
9379           ;;
9380         esac
9381       fi
9382       ;;
9383
9384     irix5* | irix6* | nonstopux*)
9385       if test "$GCC" = yes; then
9386         archive_cmds='$CC -shared $pic_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'
9387         # Try to use the -exported_symbol ld option, if it does not
9388         # work, assume that -exports_file does not work either and
9389         # implicitly export all symbols.
9390         # This should be the same for all languages, so no per-tag cache variable.
9391         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9392 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9393 if ${lt_cv_irix_exported_symbol+:} false; then :
9394   $as_echo_n "(cached) " >&6
9395 else
9396   save_LDFLAGS="$LDFLAGS"
9397            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9398            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9399 /* end confdefs.h.  */
9400 int foo (void) { return 0; }
9401 _ACEOF
9402 if ac_fn_c_try_link "$LINENO"; then :
9403   lt_cv_irix_exported_symbol=yes
9404 else
9405   lt_cv_irix_exported_symbol=no
9406 fi
9407 rm -f core conftest.err conftest.$ac_objext \
9408     conftest$ac_exeext conftest.$ac_ext
9409            LDFLAGS="$save_LDFLAGS"
9410 fi
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9412 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9413         if test "$lt_cv_irix_exported_symbol" = yes; then
9414           archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
9415         fi
9416       else
9417         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'
9418         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'
9419       fi
9420       archive_cmds_need_lc='no'
9421       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9422       hardcode_libdir_separator=:
9423       inherit_rpath=yes
9424       link_all_deplibs=yes
9425       ;;
9426
9427     netbsd*)
9428       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9429         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9430       else
9431         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9432       fi
9433       hardcode_libdir_flag_spec='-R$libdir'
9434       hardcode_direct=yes
9435       hardcode_shlibpath_var=no
9436       ;;
9437
9438     newsos6)
9439       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9440       hardcode_direct=yes
9441       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9442       hardcode_libdir_separator=:
9443       hardcode_shlibpath_var=no
9444       ;;
9445
9446     *nto* | *qnx*)
9447       ;;
9448
9449     openbsd*)
9450       if test -f /usr/libexec/ld.so; then
9451         hardcode_direct=yes
9452         hardcode_shlibpath_var=no
9453         hardcode_direct_absolute=yes
9454         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9455           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9456           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9457           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9458           export_dynamic_flag_spec='${wl}-E'
9459         else
9460           case $host_os in
9461            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9462              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9463              hardcode_libdir_flag_spec='-R$libdir'
9464              ;;
9465            *)
9466              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9467              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9468              ;;
9469           esac
9470         fi
9471       else
9472         ld_shlibs=no
9473       fi
9474       ;;
9475
9476     os2*)
9477       hardcode_libdir_flag_spec='-L$libdir'
9478       hardcode_minus_L=yes
9479       allow_undefined_flag=unsupported
9480       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'
9481       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9482       ;;
9483
9484     osf3*)
9485       if test "$GCC" = yes; then
9486         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9487         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'
9488       else
9489         allow_undefined_flag=' -expect_unresolved \*'
9490         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'
9491       fi
9492       archive_cmds_need_lc='no'
9493       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9494       hardcode_libdir_separator=:
9495       ;;
9496
9497     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9498       if test "$GCC" = yes; then
9499         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9500         archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
9501         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9502       else
9503         allow_undefined_flag=' -expect_unresolved \*'
9504         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'
9505         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~
9506         $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'
9507
9508         # Both c and cxx compiler support -rpath directly
9509         hardcode_libdir_flag_spec='-rpath $libdir'
9510       fi
9511       archive_cmds_need_lc='no'
9512       hardcode_libdir_separator=:
9513       ;;
9514
9515     solaris*)
9516       no_undefined_flag=' -z defs'
9517       if test "$GCC" = yes; then
9518         wlarc='${wl}'
9519         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9520         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9521           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9522       else
9523         case `$CC -V 2>&1` in
9524         *"Compilers 5.0"*)
9525           wlarc=''
9526           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9527           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9528           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9529           ;;
9530         *)
9531           wlarc='${wl}'
9532           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9533           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9534           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9535           ;;
9536         esac
9537       fi
9538       hardcode_libdir_flag_spec='-R$libdir'
9539       hardcode_shlibpath_var=no
9540       case $host_os in
9541       solaris2.[0-5] | solaris2.[0-5].*) ;;
9542       *)
9543         # The compiler driver will combine and reorder linker options,
9544         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9545         # but is careful enough not to reorder.
9546         # Supported since Solaris 2.6 (maybe 2.5.1?)
9547         if test "$GCC" = yes; then
9548           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9549         else
9550           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9551         fi
9552         ;;
9553       esac
9554       link_all_deplibs=yes
9555       ;;
9556
9557     sunos4*)
9558       if test "x$host_vendor" = xsequent; then
9559         # Use $CC to link under sequent, because it throws in some extra .o
9560         # files that make .init and .fini sections work.
9561         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9562       else
9563         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9564       fi
9565       hardcode_libdir_flag_spec='-L$libdir'
9566       hardcode_direct=yes
9567       hardcode_minus_L=yes
9568       hardcode_shlibpath_var=no
9569       ;;
9570
9571     sysv4)
9572       case $host_vendor in
9573         sni)
9574           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9575           hardcode_direct=yes # is this really true???
9576         ;;
9577         siemens)
9578           ## LD is ld it makes a PLAMLIB
9579           ## CC just makes a GrossModule.
9580           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9581           reload_cmds='$CC -r -o $output$reload_objs'
9582           hardcode_direct=no
9583         ;;
9584         motorola)
9585           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9586           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9587         ;;
9588       esac
9589       runpath_var='LD_RUN_PATH'
9590       hardcode_shlibpath_var=no
9591       ;;
9592
9593     sysv4.3*)
9594       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9595       hardcode_shlibpath_var=no
9596       export_dynamic_flag_spec='-Bexport'
9597       ;;
9598
9599     sysv4*MP*)
9600       if test -d /usr/nec; then
9601         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9602         hardcode_shlibpath_var=no
9603         runpath_var=LD_RUN_PATH
9604         hardcode_runpath_var=yes
9605         ld_shlibs=yes
9606       fi
9607       ;;
9608
9609     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9610       no_undefined_flag='${wl}-z,text'
9611       archive_cmds_need_lc=no
9612       hardcode_shlibpath_var=no
9613       runpath_var='LD_RUN_PATH'
9614
9615       if test "$GCC" = yes; then
9616         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9617         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9618       else
9619         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9620         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9621       fi
9622       ;;
9623
9624     sysv5* | sco3.2v5* | sco5v6*)
9625       # Note: We can NOT use -z defs as we might desire, because we do not
9626       # link with -lc, and that would cause any symbols used from libc to
9627       # always be unresolved, which means just about no library would
9628       # ever link correctly.  If we're not using GNU ld we use -z text
9629       # though, which does catch some bad symbols but isn't as heavy-handed
9630       # as -z defs.
9631       no_undefined_flag='${wl}-z,text'
9632       allow_undefined_flag='${wl}-z,nodefs'
9633       archive_cmds_need_lc=no
9634       hardcode_shlibpath_var=no
9635       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9636       hardcode_libdir_separator=':'
9637       link_all_deplibs=yes
9638       export_dynamic_flag_spec='${wl}-Bexport'
9639       runpath_var='LD_RUN_PATH'
9640
9641       if test "$GCC" = yes; then
9642         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9643         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9644       else
9645         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9646         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9647       fi
9648       ;;
9649
9650     uts4*)
9651       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9652       hardcode_libdir_flag_spec='-L$libdir'
9653       hardcode_shlibpath_var=no
9654       ;;
9655
9656     *)
9657       ld_shlibs=no
9658       ;;
9659     esac
9660
9661     if test x$host_vendor = xsni; then
9662       case $host in
9663       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9664         export_dynamic_flag_spec='${wl}-Blargedynsym'
9665         ;;
9666       esac
9667     fi
9668   fi
9669
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9671 $as_echo "$ld_shlibs" >&6; }
9672 test "$ld_shlibs" = no && can_build_shared=no
9673
9674 with_gnu_ld=$with_gnu_ld
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690 #
9691 # Do we need to explicitly link libc?
9692 #
9693 case "x$archive_cmds_need_lc" in
9694 x|xyes)
9695   # Assume -lc should be added
9696   archive_cmds_need_lc=yes
9697
9698   if test "$enable_shared" = yes && test "$GCC" = yes; then
9699     case $archive_cmds in
9700     *'~'*)
9701       # FIXME: we may have to deal with multi-command sequences.
9702       ;;
9703     '$CC '*)
9704       # Test whether the compiler implicitly links with -lc since on some
9705       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9706       # to ld, don't add -lc before -lgcc.
9707       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9708 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9709 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9710   $as_echo_n "(cached) " >&6
9711 else
9712   $RM conftest*
9713         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9714
9715         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9716   (eval $ac_compile) 2>&5
9717   ac_status=$?
9718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9719   test $ac_status = 0; } 2>conftest.err; then
9720           soname=conftest
9721           lib=conftest
9722           libobjs=conftest.$ac_objext
9723           deplibs=
9724           wl=$lt_prog_compiler_wl
9725           pic_flag=$lt_prog_compiler_pic
9726           compiler_flags=-v
9727           linker_flags=-v
9728           verstring=
9729           output_objdir=.
9730           libname=conftest
9731           lt_save_allow_undefined_flag=$allow_undefined_flag
9732           allow_undefined_flag=
9733           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9734   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9735   ac_status=$?
9736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9737   test $ac_status = 0; }
9738           then
9739             lt_cv_archive_cmds_need_lc=no
9740           else
9741             lt_cv_archive_cmds_need_lc=yes
9742           fi
9743           allow_undefined_flag=$lt_save_allow_undefined_flag
9744         else
9745           cat conftest.err 1>&5
9746         fi
9747         $RM conftest*
9748
9749 fi
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9751 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9752       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9753       ;;
9754     esac
9755   fi
9756   ;;
9757 esac
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9911 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9912
9913 if test "$GCC" = yes; then
9914   case $host_os in
9915     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9916     *) lt_awk_arg="/^libraries:/" ;;
9917   esac
9918   case $host_os in
9919     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9920     *) lt_sed_strip_eq="s,=/,/,g" ;;
9921   esac
9922   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9923   case $lt_search_path_spec in
9924   *\;*)
9925     # if the path contains ";" then we assume it to be the separator
9926     # otherwise default to the standard path separator (i.e. ":") - it is
9927     # assumed that no part of a normal pathname contains ";" but that should
9928     # okay in the real world where ";" in dirpaths is itself problematic.
9929     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9930     ;;
9931   *)
9932     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9933     ;;
9934   esac
9935   # Ok, now we have the path, separated by spaces, we can step through it
9936   # and add multilib dir if necessary.
9937   lt_tmp_lt_search_path_spec=
9938   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9939   for lt_sys_path in $lt_search_path_spec; do
9940     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9941       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9942     else
9943       test -d "$lt_sys_path" && \
9944         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9945     fi
9946   done
9947   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9948 BEGIN {RS=" "; FS="/|\n";} {
9949   lt_foo="";
9950   lt_count=0;
9951   for (lt_i = NF; lt_i > 0; lt_i--) {
9952     if ($lt_i != "" && $lt_i != ".") {
9953       if ($lt_i == "..") {
9954         lt_count++;
9955       } else {
9956         if (lt_count == 0) {
9957           lt_foo="/" $lt_i lt_foo;
9958         } else {
9959           lt_count--;
9960         }
9961       }
9962     }
9963   }
9964   if (lt_foo != "") { lt_freq[lt_foo]++; }
9965   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9966 }'`
9967   # AWK program above erroneously prepends '/' to C:/dos/paths
9968   # for these hosts.
9969   case $host_os in
9970     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9971       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9972   esac
9973   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9974 else
9975   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9976 fi
9977 library_names_spec=
9978 libname_spec='lib$name'
9979 soname_spec=
9980 shrext_cmds=".so"
9981 postinstall_cmds=
9982 postuninstall_cmds=
9983 finish_cmds=
9984 finish_eval=
9985 shlibpath_var=
9986 shlibpath_overrides_runpath=unknown
9987 version_type=none
9988 dynamic_linker="$host_os ld.so"
9989 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9990 need_lib_prefix=unknown
9991 hardcode_into_libs=no
9992
9993 # when you set need_version to no, make sure it does not cause -set_version
9994 # flags to be left without arguments
9995 need_version=unknown
9996
9997 case $host_os in
9998 aix3*)
9999   version_type=linux # correct to gnu/linux during the next big refactor
10000   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10001   shlibpath_var=LIBPATH
10002
10003   # AIX 3 has no versioning support, so we append a major version to the name.
10004   soname_spec='${libname}${release}${shared_ext}$major'
10005   ;;
10006
10007 aix[4-9]*)
10008   version_type=linux # correct to gnu/linux during the next big refactor
10009   need_lib_prefix=no
10010   need_version=no
10011   hardcode_into_libs=yes
10012   if test "$host_cpu" = ia64; then
10013     # AIX 5 supports IA64
10014     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10015     shlibpath_var=LD_LIBRARY_PATH
10016   else
10017     # With GCC up to 2.95.x, collect2 would create an import file
10018     # for dependence libraries.  The import file would start with
10019     # the line `#! .'.  This would cause the generated library to
10020     # depend on `.', always an invalid library.  This was fixed in
10021     # development snapshots of GCC prior to 3.0.
10022     case $host_os in
10023       aix4 | aix4.[01] | aix4.[01].*)
10024       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10025            echo ' yes '
10026            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10027         :
10028       else
10029         can_build_shared=no
10030       fi
10031       ;;
10032     esac
10033     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10034     # soname into executable. Probably we can add versioning support to
10035     # collect2, so additional links can be useful in future.
10036     if test "$aix_use_runtimelinking" = yes; then
10037       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10038       # instead of lib<name>.a to let people know that these are not
10039       # typical AIX shared libraries.
10040       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10041     else
10042       # We preserve .a as extension for shared libraries through AIX4.2
10043       # and later when we are not doing run time linking.
10044       library_names_spec='${libname}${release}.a $libname.a'
10045       soname_spec='${libname}${release}${shared_ext}$major'
10046     fi
10047     shlibpath_var=LIBPATH
10048   fi
10049   ;;
10050
10051 amigaos*)
10052   case $host_cpu in
10053   powerpc)
10054     # Since July 2007 AmigaOS4 officially supports .so libraries.
10055     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10057     ;;
10058   m68k)
10059     library_names_spec='$libname.ixlibrary $libname.a'
10060     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10061     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'
10062     ;;
10063   esac
10064   ;;
10065
10066 beos*)
10067   library_names_spec='${libname}${shared_ext}'
10068   dynamic_linker="$host_os ld.so"
10069   shlibpath_var=LIBRARY_PATH
10070   ;;
10071
10072 bsdi[45]*)
10073   version_type=linux # correct to gnu/linux during the next big refactor
10074   need_version=no
10075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10076   soname_spec='${libname}${release}${shared_ext}$major'
10077   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10078   shlibpath_var=LD_LIBRARY_PATH
10079   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10080   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10081   # the default ld.so.conf also contains /usr/contrib/lib and
10082   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10083   # libtool to hard-code these into programs
10084   ;;
10085
10086 cygwin* | mingw* | pw32* | cegcc*)
10087   version_type=windows
10088   shrext_cmds=".dll"
10089   need_version=no
10090   need_lib_prefix=no
10091
10092   case $GCC,$cc_basename in
10093   yes,*)
10094     # gcc
10095     library_names_spec='$libname.dll.a'
10096     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10097     postinstall_cmds='base_file=`basename \${file}`~
10098       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10099       dldir=$destdir/`dirname \$dlpath`~
10100       test -d \$dldir || mkdir -p \$dldir~
10101       $install_prog $dir/$dlname \$dldir/$dlname~
10102       chmod a+x \$dldir/$dlname~
10103       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10104         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10105       fi'
10106     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10107       dlpath=$dir/\$dldll~
10108        $RM \$dlpath'
10109     shlibpath_overrides_runpath=yes
10110
10111     case $host_os in
10112     cygwin*)
10113       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10114       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10115
10116       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10117       ;;
10118     mingw* | cegcc*)
10119       # MinGW DLLs use traditional 'lib' prefix
10120       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10121       ;;
10122     pw32*)
10123       # pw32 DLLs use 'pw' prefix rather than 'lib'
10124       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10125       ;;
10126     esac
10127     dynamic_linker='Win32 ld.exe'
10128     ;;
10129
10130   *,cl*)
10131     # Native MSVC
10132     libname_spec='$name'
10133     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10134     library_names_spec='${libname}.dll.lib'
10135
10136     case $build_os in
10137     mingw*)
10138       sys_lib_search_path_spec=
10139       lt_save_ifs=$IFS
10140       IFS=';'
10141       for lt_path in $LIB
10142       do
10143         IFS=$lt_save_ifs
10144         # Let DOS variable expansion print the short 8.3 style file name.
10145         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10146         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10147       done
10148       IFS=$lt_save_ifs
10149       # Convert to MSYS style.
10150       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10151       ;;
10152     cygwin*)
10153       # Convert to unix form, then to dos form, then back to unix form
10154       # but this time dos style (no spaces!) so that the unix form looks
10155       # like /cygdrive/c/PROGRA~1:/cygdr...
10156       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10157       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10158       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10159       ;;
10160     *)
10161       sys_lib_search_path_spec="$LIB"
10162       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10163         # It is most probably a Windows format PATH.
10164         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10165       else
10166         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10167       fi
10168       # FIXME: find the short name or the path components, as spaces are
10169       # common. (e.g. "Program Files" -> "PROGRA~1")
10170       ;;
10171     esac
10172
10173     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10174     postinstall_cmds='base_file=`basename \${file}`~
10175       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10176       dldir=$destdir/`dirname \$dlpath`~
10177       test -d \$dldir || mkdir -p \$dldir~
10178       $install_prog $dir/$dlname \$dldir/$dlname'
10179     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10180       dlpath=$dir/\$dldll~
10181        $RM \$dlpath'
10182     shlibpath_overrides_runpath=yes
10183     dynamic_linker='Win32 link.exe'
10184     ;;
10185
10186   *)
10187     # Assume MSVC wrapper
10188     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10189     dynamic_linker='Win32 ld.exe'
10190     ;;
10191   esac
10192   # FIXME: first we should search . and the directory the executable is in
10193   shlibpath_var=PATH
10194   ;;
10195
10196 darwin* | rhapsody*)
10197   dynamic_linker="$host_os dyld"
10198   version_type=darwin
10199   need_lib_prefix=no
10200   need_version=no
10201   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10202   soname_spec='${libname}${release}${major}$shared_ext'
10203   shlibpath_overrides_runpath=yes
10204   shlibpath_var=DYLD_LIBRARY_PATH
10205   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10206
10207   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10208   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10209   ;;
10210
10211 dgux*)
10212   version_type=linux # correct to gnu/linux during the next big refactor
10213   need_lib_prefix=no
10214   need_version=no
10215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10216   soname_spec='${libname}${release}${shared_ext}$major'
10217   shlibpath_var=LD_LIBRARY_PATH
10218   ;;
10219
10220 freebsd* | dragonfly*)
10221   # DragonFly does not have aout.  When/if they implement a new
10222   # versioning mechanism, adjust this.
10223   if test -x /usr/bin/objformat; then
10224     objformat=`/usr/bin/objformat`
10225   else
10226     case $host_os in
10227     freebsd[23].*) objformat=aout ;;
10228     *) objformat=elf ;;
10229     esac
10230   fi
10231   version_type=freebsd-$objformat
10232   case $version_type in
10233     freebsd-elf*)
10234       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10235       need_version=no
10236       need_lib_prefix=no
10237       ;;
10238     freebsd-*)
10239       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10240       need_version=yes
10241       ;;
10242   esac
10243   shlibpath_var=LD_LIBRARY_PATH
10244   case $host_os in
10245   freebsd2.*)
10246     shlibpath_overrides_runpath=yes
10247     ;;
10248   freebsd3.[01]* | freebsdelf3.[01]*)
10249     shlibpath_overrides_runpath=yes
10250     hardcode_into_libs=yes
10251     ;;
10252   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10253   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10254     shlibpath_overrides_runpath=no
10255     hardcode_into_libs=yes
10256     ;;
10257   *) # from 4.6 on, and DragonFly
10258     shlibpath_overrides_runpath=yes
10259     hardcode_into_libs=yes
10260     ;;
10261   esac
10262   ;;
10263
10264 gnu*)
10265   version_type=linux # correct to gnu/linux during the next big refactor
10266   need_lib_prefix=no
10267   need_version=no
10268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10269   soname_spec='${libname}${release}${shared_ext}$major'
10270   shlibpath_var=LD_LIBRARY_PATH
10271   shlibpath_overrides_runpath=no
10272   hardcode_into_libs=yes
10273   ;;
10274
10275 haiku*)
10276   version_type=linux # correct to gnu/linux during the next big refactor
10277   need_lib_prefix=no
10278   need_version=no
10279   dynamic_linker="$host_os runtime_loader"
10280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10281   soname_spec='${libname}${release}${shared_ext}$major'
10282   shlibpath_var=LIBRARY_PATH
10283   shlibpath_overrides_runpath=yes
10284   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10285   hardcode_into_libs=yes
10286   ;;
10287
10288 hpux9* | hpux10* | hpux11*)
10289   # Give a soname corresponding to the major version so that dld.sl refuses to
10290   # link against other versions.
10291   version_type=sunos
10292   need_lib_prefix=no
10293   need_version=no
10294   case $host_cpu in
10295   ia64*)
10296     shrext_cmds='.so'
10297     hardcode_into_libs=yes
10298     dynamic_linker="$host_os dld.so"
10299     shlibpath_var=LD_LIBRARY_PATH
10300     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10301     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10302     soname_spec='${libname}${release}${shared_ext}$major'
10303     if test "X$HPUX_IA64_MODE" = X32; then
10304       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10305     else
10306       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10307     fi
10308     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10309     ;;
10310   hppa*64*)
10311     shrext_cmds='.sl'
10312     hardcode_into_libs=yes
10313     dynamic_linker="$host_os dld.sl"
10314     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10315     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10316     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10317     soname_spec='${libname}${release}${shared_ext}$major'
10318     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10319     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10320     ;;
10321   *)
10322     shrext_cmds='.sl'
10323     dynamic_linker="$host_os dld.sl"
10324     shlibpath_var=SHLIB_PATH
10325     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10326     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10327     soname_spec='${libname}${release}${shared_ext}$major'
10328     ;;
10329   esac
10330   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10331   postinstall_cmds='chmod 555 $lib'
10332   # or fails outright, so override atomically:
10333   install_override_mode=555
10334   ;;
10335
10336 interix[3-9]*)
10337   version_type=linux # correct to gnu/linux during the next big refactor
10338   need_lib_prefix=no
10339   need_version=no
10340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10341   soname_spec='${libname}${release}${shared_ext}$major'
10342   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10343   shlibpath_var=LD_LIBRARY_PATH
10344   shlibpath_overrides_runpath=no
10345   hardcode_into_libs=yes
10346   ;;
10347
10348 irix5* | irix6* | nonstopux*)
10349   case $host_os in
10350     nonstopux*) version_type=nonstopux ;;
10351     *)
10352         if test "$lt_cv_prog_gnu_ld" = yes; then
10353                 version_type=linux # correct to gnu/linux during the next big refactor
10354         else
10355                 version_type=irix
10356         fi ;;
10357   esac
10358   need_lib_prefix=no
10359   need_version=no
10360   soname_spec='${libname}${release}${shared_ext}$major'
10361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10362   case $host_os in
10363   irix5* | nonstopux*)
10364     libsuff= shlibsuff=
10365     ;;
10366   *)
10367     case $LD in # libtool.m4 will add one of these switches to LD
10368     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10369       libsuff= shlibsuff= libmagic=32-bit;;
10370     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10371       libsuff=32 shlibsuff=N32 libmagic=N32;;
10372     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10373       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10374     *) libsuff= shlibsuff= libmagic=never-match;;
10375     esac
10376     ;;
10377   esac
10378   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10379   shlibpath_overrides_runpath=no
10380   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10381   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10382   hardcode_into_libs=yes
10383   ;;
10384
10385 # No shared lib support for Linux oldld, aout, or coff.
10386 linux*oldld* | linux*aout* | linux*coff*)
10387   dynamic_linker=no
10388   ;;
10389
10390 # This must be glibc/ELF.
10391 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10392   version_type=linux # correct to gnu/linux during the next big refactor
10393   need_lib_prefix=no
10394   need_version=no
10395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10396   soname_spec='${libname}${release}${shared_ext}$major'
10397   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10398   shlibpath_var=LD_LIBRARY_PATH
10399   shlibpath_overrides_runpath=no
10400
10401   # Some binutils ld are patched to set DT_RUNPATH
10402   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10403   $as_echo_n "(cached) " >&6
10404 else
10405   lt_cv_shlibpath_overrides_runpath=no
10406     save_LDFLAGS=$LDFLAGS
10407     save_libdir=$libdir
10408     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10409          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10410     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10411 /* end confdefs.h.  */
10412
10413 int
10414 main ()
10415 {
10416
10417   ;
10418   return 0;
10419 }
10420 _ACEOF
10421 if ac_fn_c_try_link "$LINENO"; then :
10422   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10423   lt_cv_shlibpath_overrides_runpath=yes
10424 fi
10425 fi
10426 rm -f core conftest.err conftest.$ac_objext \
10427     conftest$ac_exeext conftest.$ac_ext
10428     LDFLAGS=$save_LDFLAGS
10429     libdir=$save_libdir
10430
10431 fi
10432
10433   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10434
10435   # This implies no fast_install, which is unacceptable.
10436   # Some rework will be needed to allow for fast_install
10437   # before this can be enabled.
10438   hardcode_into_libs=yes
10439
10440   # Add ABI-specific directories to the system library path.
10441   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10442
10443   # Append ld.so.conf contents to the search path
10444   if test -f /etc/ld.so.conf; then
10445     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' ' '`
10446     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10447
10448   fi
10449
10450   # We used to test for /lib/ld.so.1 and disable shared libraries on
10451   # powerpc, because MkLinux only supported shared libraries with the
10452   # GNU dynamic linker.  Since this was broken with cross compilers,
10453   # most powerpc-linux boxes support dynamic linking these days and
10454   # people can always --disable-shared, the test was removed, and we
10455   # assume the GNU/Linux dynamic linker is in use.
10456   dynamic_linker='GNU/Linux ld.so'
10457   ;;
10458
10459 netbsd*)
10460   version_type=sunos
10461   need_lib_prefix=no
10462   need_version=no
10463   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10464     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10465     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10466     dynamic_linker='NetBSD (a.out) ld.so'
10467   else
10468     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10469     soname_spec='${libname}${release}${shared_ext}$major'
10470     dynamic_linker='NetBSD ld.elf_so'
10471   fi
10472   shlibpath_var=LD_LIBRARY_PATH
10473   shlibpath_overrides_runpath=yes
10474   hardcode_into_libs=yes
10475   ;;
10476
10477 newsos6)
10478   version_type=linux # correct to gnu/linux during the next big refactor
10479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10480   shlibpath_var=LD_LIBRARY_PATH
10481   shlibpath_overrides_runpath=yes
10482   ;;
10483
10484 *nto* | *qnx*)
10485   version_type=qnx
10486   need_lib_prefix=no
10487   need_version=no
10488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10489   soname_spec='${libname}${release}${shared_ext}$major'
10490   shlibpath_var=LD_LIBRARY_PATH
10491   shlibpath_overrides_runpath=no
10492   hardcode_into_libs=yes
10493   dynamic_linker='ldqnx.so'
10494   ;;
10495
10496 openbsd*)
10497   version_type=sunos
10498   sys_lib_dlsearch_path_spec="/usr/lib"
10499   need_lib_prefix=no
10500   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10501   case $host_os in
10502     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10503     *)                          need_version=no  ;;
10504   esac
10505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10506   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10507   shlibpath_var=LD_LIBRARY_PATH
10508   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10509     case $host_os in
10510       openbsd2.[89] | openbsd2.[89].*)
10511         shlibpath_overrides_runpath=no
10512         ;;
10513       *)
10514         shlibpath_overrides_runpath=yes
10515         ;;
10516       esac
10517   else
10518     shlibpath_overrides_runpath=yes
10519   fi
10520   ;;
10521
10522 os2*)
10523   libname_spec='$name'
10524   shrext_cmds=".dll"
10525   need_lib_prefix=no
10526   library_names_spec='$libname${shared_ext} $libname.a'
10527   dynamic_linker='OS/2 ld.exe'
10528   shlibpath_var=LIBPATH
10529   ;;
10530
10531 osf3* | osf4* | osf5*)
10532   version_type=osf
10533   need_lib_prefix=no
10534   need_version=no
10535   soname_spec='${libname}${release}${shared_ext}$major'
10536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10537   shlibpath_var=LD_LIBRARY_PATH
10538   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10539   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10540   ;;
10541
10542 rdos*)
10543   dynamic_linker=no
10544   ;;
10545
10546 solaris*)
10547   version_type=linux # correct to gnu/linux during the next big refactor
10548   need_lib_prefix=no
10549   need_version=no
10550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551   soname_spec='${libname}${release}${shared_ext}$major'
10552   shlibpath_var=LD_LIBRARY_PATH
10553   shlibpath_overrides_runpath=yes
10554   hardcode_into_libs=yes
10555   # ldd complains unless libraries are executable
10556   postinstall_cmds='chmod +x $lib'
10557   ;;
10558
10559 sunos4*)
10560   version_type=sunos
10561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10562   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10563   shlibpath_var=LD_LIBRARY_PATH
10564   shlibpath_overrides_runpath=yes
10565   if test "$with_gnu_ld" = yes; then
10566     need_lib_prefix=no
10567   fi
10568   need_version=yes
10569   ;;
10570
10571 sysv4 | sysv4.3*)
10572   version_type=linux # correct to gnu/linux during the next big refactor
10573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10574   soname_spec='${libname}${release}${shared_ext}$major'
10575   shlibpath_var=LD_LIBRARY_PATH
10576   case $host_vendor in
10577     sni)
10578       shlibpath_overrides_runpath=no
10579       need_lib_prefix=no
10580       runpath_var=LD_RUN_PATH
10581       ;;
10582     siemens)
10583       need_lib_prefix=no
10584       ;;
10585     motorola)
10586       need_lib_prefix=no
10587       need_version=no
10588       shlibpath_overrides_runpath=no
10589       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10590       ;;
10591   esac
10592   ;;
10593
10594 sysv4*MP*)
10595   if test -d /usr/nec ;then
10596     version_type=linux # correct to gnu/linux during the next big refactor
10597     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10598     soname_spec='$libname${shared_ext}.$major'
10599     shlibpath_var=LD_LIBRARY_PATH
10600   fi
10601   ;;
10602
10603 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10604   version_type=freebsd-elf
10605   need_lib_prefix=no
10606   need_version=no
10607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10608   soname_spec='${libname}${release}${shared_ext}$major'
10609   shlibpath_var=LD_LIBRARY_PATH
10610   shlibpath_overrides_runpath=yes
10611   hardcode_into_libs=yes
10612   if test "$with_gnu_ld" = yes; then
10613     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10614   else
10615     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10616     case $host_os in
10617       sco3.2v5*)
10618         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10619         ;;
10620     esac
10621   fi
10622   sys_lib_dlsearch_path_spec='/usr/lib'
10623   ;;
10624
10625 tpf*)
10626   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10627   version_type=linux # correct to gnu/linux during the next big refactor
10628   need_lib_prefix=no
10629   need_version=no
10630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10631   shlibpath_var=LD_LIBRARY_PATH
10632   shlibpath_overrides_runpath=no
10633   hardcode_into_libs=yes
10634   ;;
10635
10636 uts4*)
10637   version_type=linux # correct to gnu/linux during the next big refactor
10638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10639   soname_spec='${libname}${release}${shared_ext}$major'
10640   shlibpath_var=LD_LIBRARY_PATH
10641   ;;
10642
10643 *)
10644   dynamic_linker=no
10645   ;;
10646 esac
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10648 $as_echo "$dynamic_linker" >&6; }
10649 test "$dynamic_linker" = no && can_build_shared=no
10650
10651 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10652 if test "$GCC" = yes; then
10653   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10654 fi
10655
10656 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10657   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10658 fi
10659 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10660   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10661 fi
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10755 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10756 hardcode_action=
10757 if test -n "$hardcode_libdir_flag_spec" ||
10758    test -n "$runpath_var" ||
10759    test "X$hardcode_automatic" = "Xyes" ; then
10760
10761   # We can hardcode non-existent directories.
10762   if test "$hardcode_direct" != no &&
10763      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10764      # have to relink, otherwise we might link with an installed library
10765      # when we should be linking with a yet-to-be-installed one
10766      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10767      test "$hardcode_minus_L" != no; then
10768     # Linking always hardcodes the temporary library directory.
10769     hardcode_action=relink
10770   else
10771     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10772     hardcode_action=immediate
10773   fi
10774 else
10775   # We cannot hardcode anything, or else we can only hardcode existing
10776   # directories.
10777   hardcode_action=unsupported
10778 fi
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10780 $as_echo "$hardcode_action" >&6; }
10781
10782 if test "$hardcode_action" = relink ||
10783    test "$inherit_rpath" = yes; then
10784   # Fast installation is not supported
10785   enable_fast_install=no
10786 elif test "$shlibpath_overrides_runpath" = yes ||
10787      test "$enable_shared" = no; then
10788   # Fast installation is not necessary
10789   enable_fast_install=needless
10790 fi
10791
10792
10793
10794
10795
10796
10797   if test "x$enable_dlopen" != xyes; then
10798   enable_dlopen=unknown
10799   enable_dlopen_self=unknown
10800   enable_dlopen_self_static=unknown
10801 else
10802   lt_cv_dlopen=no
10803   lt_cv_dlopen_libs=
10804
10805   case $host_os in
10806   beos*)
10807     lt_cv_dlopen="load_add_on"
10808     lt_cv_dlopen_libs=
10809     lt_cv_dlopen_self=yes
10810     ;;
10811
10812   mingw* | pw32* | cegcc*)
10813     lt_cv_dlopen="LoadLibrary"
10814     lt_cv_dlopen_libs=
10815     ;;
10816
10817   cygwin*)
10818     lt_cv_dlopen="dlopen"
10819     lt_cv_dlopen_libs=
10820     ;;
10821
10822   darwin*)
10823   # if libdl is installed we need to link against it
10824     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10825 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10826 if ${ac_cv_lib_dl_dlopen+:} false; then :
10827   $as_echo_n "(cached) " >&6
10828 else
10829   ac_check_lib_save_LIBS=$LIBS
10830 LIBS="-ldl  $LIBS"
10831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832 /* end confdefs.h.  */
10833
10834 /* Override any GCC internal prototype to avoid an error.
10835    Use char because int might match the return type of a GCC
10836    builtin and then its argument prototype would still apply.  */
10837 #ifdef __cplusplus
10838 extern "C"
10839 #endif
10840 char dlopen ();
10841 int
10842 main ()
10843 {
10844 return dlopen ();
10845   ;
10846   return 0;
10847 }
10848 _ACEOF
10849 if ac_fn_c_try_link "$LINENO"; then :
10850   ac_cv_lib_dl_dlopen=yes
10851 else
10852   ac_cv_lib_dl_dlopen=no
10853 fi
10854 rm -f core conftest.err conftest.$ac_objext \
10855     conftest$ac_exeext conftest.$ac_ext
10856 LIBS=$ac_check_lib_save_LIBS
10857 fi
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10859 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10860 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10861   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10862 else
10863
10864     lt_cv_dlopen="dyld"
10865     lt_cv_dlopen_libs=
10866     lt_cv_dlopen_self=yes
10867
10868 fi
10869
10870     ;;
10871
10872   *)
10873     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10874 if test "x$ac_cv_func_shl_load" = xyes; then :
10875   lt_cv_dlopen="shl_load"
10876 else
10877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10878 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10879 if ${ac_cv_lib_dld_shl_load+:} false; then :
10880   $as_echo_n "(cached) " >&6
10881 else
10882   ac_check_lib_save_LIBS=$LIBS
10883 LIBS="-ldld  $LIBS"
10884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10885 /* end confdefs.h.  */
10886
10887 /* Override any GCC internal prototype to avoid an error.
10888    Use char because int might match the return type of a GCC
10889    builtin and then its argument prototype would still apply.  */
10890 #ifdef __cplusplus
10891 extern "C"
10892 #endif
10893 char shl_load ();
10894 int
10895 main ()
10896 {
10897 return shl_load ();
10898   ;
10899   return 0;
10900 }
10901 _ACEOF
10902 if ac_fn_c_try_link "$LINENO"; then :
10903   ac_cv_lib_dld_shl_load=yes
10904 else
10905   ac_cv_lib_dld_shl_load=no
10906 fi
10907 rm -f core conftest.err conftest.$ac_objext \
10908     conftest$ac_exeext conftest.$ac_ext
10909 LIBS=$ac_check_lib_save_LIBS
10910 fi
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10912 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10913 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10914   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10915 else
10916   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10917 if test "x$ac_cv_func_dlopen" = xyes; then :
10918   lt_cv_dlopen="dlopen"
10919 else
10920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10921 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10922 if ${ac_cv_lib_dl_dlopen+:} false; then :
10923   $as_echo_n "(cached) " >&6
10924 else
10925   ac_check_lib_save_LIBS=$LIBS
10926 LIBS="-ldl  $LIBS"
10927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h.  */
10929
10930 /* Override any GCC internal prototype to avoid an error.
10931    Use char because int might match the return type of a GCC
10932    builtin and then its argument prototype would still apply.  */
10933 #ifdef __cplusplus
10934 extern "C"
10935 #endif
10936 char dlopen ();
10937 int
10938 main ()
10939 {
10940 return dlopen ();
10941   ;
10942   return 0;
10943 }
10944 _ACEOF
10945 if ac_fn_c_try_link "$LINENO"; then :
10946   ac_cv_lib_dl_dlopen=yes
10947 else
10948   ac_cv_lib_dl_dlopen=no
10949 fi
10950 rm -f core conftest.err conftest.$ac_objext \
10951     conftest$ac_exeext conftest.$ac_ext
10952 LIBS=$ac_check_lib_save_LIBS
10953 fi
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10955 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10956 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10957   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10958 else
10959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10960 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10961 if ${ac_cv_lib_svld_dlopen+:} false; then :
10962   $as_echo_n "(cached) " >&6
10963 else
10964   ac_check_lib_save_LIBS=$LIBS
10965 LIBS="-lsvld  $LIBS"
10966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10967 /* end confdefs.h.  */
10968
10969 /* Override any GCC internal prototype to avoid an error.
10970    Use char because int might match the return type of a GCC
10971    builtin and then its argument prototype would still apply.  */
10972 #ifdef __cplusplus
10973 extern "C"
10974 #endif
10975 char dlopen ();
10976 int
10977 main ()
10978 {
10979 return dlopen ();
10980   ;
10981   return 0;
10982 }
10983 _ACEOF
10984 if ac_fn_c_try_link "$LINENO"; then :
10985   ac_cv_lib_svld_dlopen=yes
10986 else
10987   ac_cv_lib_svld_dlopen=no
10988 fi
10989 rm -f core conftest.err conftest.$ac_objext \
10990     conftest$ac_exeext conftest.$ac_ext
10991 LIBS=$ac_check_lib_save_LIBS
10992 fi
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10994 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10995 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10996   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10997 else
10998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10999 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11000 if ${ac_cv_lib_dld_dld_link+:} false; then :
11001   $as_echo_n "(cached) " >&6
11002 else
11003   ac_check_lib_save_LIBS=$LIBS
11004 LIBS="-ldld  $LIBS"
11005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006 /* end confdefs.h.  */
11007
11008 /* Override any GCC internal prototype to avoid an error.
11009    Use char because int might match the return type of a GCC
11010    builtin and then its argument prototype would still apply.  */
11011 #ifdef __cplusplus
11012 extern "C"
11013 #endif
11014 char dld_link ();
11015 int
11016 main ()
11017 {
11018 return dld_link ();
11019   ;
11020   return 0;
11021 }
11022 _ACEOF
11023 if ac_fn_c_try_link "$LINENO"; then :
11024   ac_cv_lib_dld_dld_link=yes
11025 else
11026   ac_cv_lib_dld_dld_link=no
11027 fi
11028 rm -f core conftest.err conftest.$ac_objext \
11029     conftest$ac_exeext conftest.$ac_ext
11030 LIBS=$ac_check_lib_save_LIBS
11031 fi
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11033 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11034 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11035   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11036 fi
11037
11038
11039 fi
11040
11041
11042 fi
11043
11044
11045 fi
11046
11047
11048 fi
11049
11050
11051 fi
11052
11053     ;;
11054   esac
11055
11056   if test "x$lt_cv_dlopen" != xno; then
11057     enable_dlopen=yes
11058   else
11059     enable_dlopen=no
11060   fi
11061
11062   case $lt_cv_dlopen in
11063   dlopen)
11064     save_CPPFLAGS="$CPPFLAGS"
11065     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11066
11067     save_LDFLAGS="$LDFLAGS"
11068     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11069
11070     save_LIBS="$LIBS"
11071     LIBS="$lt_cv_dlopen_libs $LIBS"
11072
11073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11074 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11075 if ${lt_cv_dlopen_self+:} false; then :
11076   $as_echo_n "(cached) " >&6
11077 else
11078           if test "$cross_compiling" = yes; then :
11079   lt_cv_dlopen_self=cross
11080 else
11081   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11082   lt_status=$lt_dlunknown
11083   cat > conftest.$ac_ext <<_LT_EOF
11084 #line $LINENO "configure"
11085 #include "confdefs.h"
11086
11087 #if HAVE_DLFCN_H
11088 #include <dlfcn.h>
11089 #endif
11090
11091 #include <stdio.h>
11092
11093 #ifdef RTLD_GLOBAL
11094 #  define LT_DLGLOBAL           RTLD_GLOBAL
11095 #else
11096 #  ifdef DL_GLOBAL
11097 #    define LT_DLGLOBAL         DL_GLOBAL
11098 #  else
11099 #    define LT_DLGLOBAL         0
11100 #  endif
11101 #endif
11102
11103 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11104    find out it does not work in some platform. */
11105 #ifndef LT_DLLAZY_OR_NOW
11106 #  ifdef RTLD_LAZY
11107 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11108 #  else
11109 #    ifdef DL_LAZY
11110 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11111 #    else
11112 #      ifdef RTLD_NOW
11113 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11114 #      else
11115 #        ifdef DL_NOW
11116 #          define LT_DLLAZY_OR_NOW      DL_NOW
11117 #        else
11118 #          define LT_DLLAZY_OR_NOW      0
11119 #        endif
11120 #      endif
11121 #    endif
11122 #  endif
11123 #endif
11124
11125 /* When -fvisbility=hidden is used, assume the code has been annotated
11126    correspondingly for the symbols needed.  */
11127 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11128 int fnord () __attribute__((visibility("default")));
11129 #endif
11130
11131 int fnord () { return 42; }
11132 int main ()
11133 {
11134   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11135   int status = $lt_dlunknown;
11136
11137   if (self)
11138     {
11139       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11140       else
11141         {
11142           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11143           else puts (dlerror ());
11144         }
11145       /* dlclose (self); */
11146     }
11147   else
11148     puts (dlerror ());
11149
11150   return status;
11151 }
11152 _LT_EOF
11153   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11154   (eval $ac_link) 2>&5
11155   ac_status=$?
11156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11157   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11158     (./conftest; exit; ) >&5 2>/dev/null
11159     lt_status=$?
11160     case x$lt_status in
11161       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11162       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11163       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11164     esac
11165   else :
11166     # compilation failed
11167     lt_cv_dlopen_self=no
11168   fi
11169 fi
11170 rm -fr conftest*
11171
11172
11173 fi
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11175 $as_echo "$lt_cv_dlopen_self" >&6; }
11176
11177     if test "x$lt_cv_dlopen_self" = xyes; then
11178       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11179       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11180 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11181 if ${lt_cv_dlopen_self_static+:} false; then :
11182   $as_echo_n "(cached) " >&6
11183 else
11184           if test "$cross_compiling" = yes; then :
11185   lt_cv_dlopen_self_static=cross
11186 else
11187   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11188   lt_status=$lt_dlunknown
11189   cat > conftest.$ac_ext <<_LT_EOF
11190 #line $LINENO "configure"
11191 #include "confdefs.h"
11192
11193 #if HAVE_DLFCN_H
11194 #include <dlfcn.h>
11195 #endif
11196
11197 #include <stdio.h>
11198
11199 #ifdef RTLD_GLOBAL
11200 #  define LT_DLGLOBAL           RTLD_GLOBAL
11201 #else
11202 #  ifdef DL_GLOBAL
11203 #    define LT_DLGLOBAL         DL_GLOBAL
11204 #  else
11205 #    define LT_DLGLOBAL         0
11206 #  endif
11207 #endif
11208
11209 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11210    find out it does not work in some platform. */
11211 #ifndef LT_DLLAZY_OR_NOW
11212 #  ifdef RTLD_LAZY
11213 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11214 #  else
11215 #    ifdef DL_LAZY
11216 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11217 #    else
11218 #      ifdef RTLD_NOW
11219 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11220 #      else
11221 #        ifdef DL_NOW
11222 #          define LT_DLLAZY_OR_NOW      DL_NOW
11223 #        else
11224 #          define LT_DLLAZY_OR_NOW      0
11225 #        endif
11226 #      endif
11227 #    endif
11228 #  endif
11229 #endif
11230
11231 /* When -fvisbility=hidden is used, assume the code has been annotated
11232    correspondingly for the symbols needed.  */
11233 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11234 int fnord () __attribute__((visibility("default")));
11235 #endif
11236
11237 int fnord () { return 42; }
11238 int main ()
11239 {
11240   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11241   int status = $lt_dlunknown;
11242
11243   if (self)
11244     {
11245       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11246       else
11247         {
11248           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11249           else puts (dlerror ());
11250         }
11251       /* dlclose (self); */
11252     }
11253   else
11254     puts (dlerror ());
11255
11256   return status;
11257 }
11258 _LT_EOF
11259   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11260   (eval $ac_link) 2>&5
11261   ac_status=$?
11262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11263   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11264     (./conftest; exit; ) >&5 2>/dev/null
11265     lt_status=$?
11266     case x$lt_status in
11267       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11268       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11269       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11270     esac
11271   else :
11272     # compilation failed
11273     lt_cv_dlopen_self_static=no
11274   fi
11275 fi
11276 rm -fr conftest*
11277
11278
11279 fi
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11281 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11282     fi
11283
11284     CPPFLAGS="$save_CPPFLAGS"
11285     LDFLAGS="$save_LDFLAGS"
11286     LIBS="$save_LIBS"
11287     ;;
11288   esac
11289
11290   case $lt_cv_dlopen_self in
11291   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11292   *) enable_dlopen_self=unknown ;;
11293   esac
11294
11295   case $lt_cv_dlopen_self_static in
11296   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11297   *) enable_dlopen_self_static=unknown ;;
11298   esac
11299 fi
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317 striplib=
11318 old_striplib=
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11320 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11321 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11322   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11323   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11325 $as_echo "yes" >&6; }
11326 else
11327 # FIXME - insert some real tests, host_os isn't really good enough
11328   case $host_os in
11329   darwin*)
11330     if test -n "$STRIP" ; then
11331       striplib="$STRIP -x"
11332       old_striplib="$STRIP -S"
11333       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11334 $as_echo "yes" >&6; }
11335     else
11336       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337 $as_echo "no" >&6; }
11338     fi
11339     ;;
11340   *)
11341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11342 $as_echo "no" >&6; }
11343     ;;
11344   esac
11345 fi
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358   # Report which library types will actually be built
11359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11360 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11362 $as_echo "$can_build_shared" >&6; }
11363
11364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11365 $as_echo_n "checking whether to build shared libraries... " >&6; }
11366   test "$can_build_shared" = "no" && enable_shared=no
11367
11368   # On AIX, shared libraries and static libraries use the same namespace, and
11369   # are all built from PIC.
11370   case $host_os in
11371   aix3*)
11372     test "$enable_shared" = yes && enable_static=no
11373     if test -n "$RANLIB"; then
11374       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11375       postinstall_cmds='$RANLIB $lib'
11376     fi
11377     ;;
11378
11379   aix[4-9]*)
11380     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11381       test "$enable_shared" = yes && enable_static=no
11382     fi
11383     ;;
11384   esac
11385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11386 $as_echo "$enable_shared" >&6; }
11387
11388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11389 $as_echo_n "checking whether to build static libraries... " >&6; }
11390   # Make sure either enable_shared or enable_static is yes.
11391   test "$enable_shared" = yes || enable_static=yes
11392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11393 $as_echo "$enable_static" >&6; }
11394
11395
11396
11397
11398 fi
11399 ac_ext=c
11400 ac_cpp='$CPP $CPPFLAGS'
11401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11404
11405 CC="$lt_save_CC"
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421         ac_config_commands="$ac_config_commands libtool"
11422
11423
11424
11425
11426 # Only expand once:
11427
11428
11429 ac_header_dirent=no
11430 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11431   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11433 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11434 if eval \${$as_ac_Header+:} false; then :
11435   $as_echo_n "(cached) " >&6
11436 else
11437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438 /* end confdefs.h.  */
11439 #include <sys/types.h>
11440 #include <$ac_hdr>
11441
11442 int
11443 main ()
11444 {
11445 if ((DIR *) 0)
11446 return 0;
11447   ;
11448   return 0;
11449 }
11450 _ACEOF
11451 if ac_fn_c_try_compile "$LINENO"; then :
11452   eval "$as_ac_Header=yes"
11453 else
11454   eval "$as_ac_Header=no"
11455 fi
11456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11457 fi
11458 eval ac_res=\$$as_ac_Header
11459                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11460 $as_echo "$ac_res" >&6; }
11461 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11462   cat >>confdefs.h <<_ACEOF
11463 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11464 _ACEOF
11465
11466 ac_header_dirent=$ac_hdr; break
11467 fi
11468
11469 done
11470 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11471 if test $ac_header_dirent = dirent.h; then
11472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11473 $as_echo_n "checking for library containing opendir... " >&6; }
11474 if ${ac_cv_search_opendir+:} false; then :
11475   $as_echo_n "(cached) " >&6
11476 else
11477   ac_func_search_save_LIBS=$LIBS
11478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h.  */
11480
11481 /* Override any GCC internal prototype to avoid an error.
11482    Use char because int might match the return type of a GCC
11483    builtin and then its argument prototype would still apply.  */
11484 #ifdef __cplusplus
11485 extern "C"
11486 #endif
11487 char opendir ();
11488 int
11489 main ()
11490 {
11491 return opendir ();
11492   ;
11493   return 0;
11494 }
11495 _ACEOF
11496 for ac_lib in '' dir; do
11497   if test -z "$ac_lib"; then
11498     ac_res="none required"
11499   else
11500     ac_res=-l$ac_lib
11501     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11502   fi
11503   if ac_fn_c_try_link "$LINENO"; then :
11504   ac_cv_search_opendir=$ac_res
11505 fi
11506 rm -f core conftest.err conftest.$ac_objext \
11507     conftest$ac_exeext
11508   if ${ac_cv_search_opendir+:} false; then :
11509   break
11510 fi
11511 done
11512 if ${ac_cv_search_opendir+:} false; then :
11513
11514 else
11515   ac_cv_search_opendir=no
11516 fi
11517 rm conftest.$ac_ext
11518 LIBS=$ac_func_search_save_LIBS
11519 fi
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11521 $as_echo "$ac_cv_search_opendir" >&6; }
11522 ac_res=$ac_cv_search_opendir
11523 if test "$ac_res" != no; then :
11524   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11525
11526 fi
11527
11528 else
11529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11530 $as_echo_n "checking for library containing opendir... " >&6; }
11531 if ${ac_cv_search_opendir+:} false; then :
11532   $as_echo_n "(cached) " >&6
11533 else
11534   ac_func_search_save_LIBS=$LIBS
11535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536 /* end confdefs.h.  */
11537
11538 /* Override any GCC internal prototype to avoid an error.
11539    Use char because int might match the return type of a GCC
11540    builtin and then its argument prototype would still apply.  */
11541 #ifdef __cplusplus
11542 extern "C"
11543 #endif
11544 char opendir ();
11545 int
11546 main ()
11547 {
11548 return opendir ();
11549   ;
11550   return 0;
11551 }
11552 _ACEOF
11553 for ac_lib in '' x; do
11554   if test -z "$ac_lib"; then
11555     ac_res="none required"
11556   else
11557     ac_res=-l$ac_lib
11558     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11559   fi
11560   if ac_fn_c_try_link "$LINENO"; then :
11561   ac_cv_search_opendir=$ac_res
11562 fi
11563 rm -f core conftest.err conftest.$ac_objext \
11564     conftest$ac_exeext
11565   if ${ac_cv_search_opendir+:} false; then :
11566   break
11567 fi
11568 done
11569 if ${ac_cv_search_opendir+:} false; then :
11570
11571 else
11572   ac_cv_search_opendir=no
11573 fi
11574 rm conftest.$ac_ext
11575 LIBS=$ac_func_search_save_LIBS
11576 fi
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11578 $as_echo "$ac_cv_search_opendir" >&6; }
11579 ac_res=$ac_cv_search_opendir
11580 if test "$ac_res" != no; then :
11581   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11582
11583 fi
11584
11585 fi
11586
11587
11588 for ac_header in arpa/inet.h fcntl.h libintl.h limits.h locale.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h unistd.h
11589 do :
11590   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11591 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11592 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11593   cat >>confdefs.h <<_ACEOF
11594 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11595 _ACEOF
11596
11597 fi
11598
11599 done
11600
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
11602 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
11603 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
11604   $as_echo_n "(cached) " >&6
11605 else
11606   ac_check_lib_save_LIBS=$LIBS
11607 LIBS="-lpthread  $LIBS"
11608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11609 /* end confdefs.h.  */
11610
11611 /* Override any GCC internal prototype to avoid an error.
11612    Use char because int might match the return type of a GCC
11613    builtin and then its argument prototype would still apply.  */
11614 #ifdef __cplusplus
11615 extern "C"
11616 #endif
11617 char pthread_create ();
11618 int
11619 main ()
11620 {
11621 return pthread_create ();
11622   ;
11623   return 0;
11624 }
11625 _ACEOF
11626 if ac_fn_c_try_link "$LINENO"; then :
11627   ac_cv_lib_pthread_pthread_create=yes
11628 else
11629   ac_cv_lib_pthread_pthread_create=no
11630 fi
11631 rm -f core conftest.err conftest.$ac_objext \
11632     conftest$ac_exeext conftest.$ac_ext
11633 LIBS=$ac_check_lib_save_LIBS
11634 fi
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
11636 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
11637 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
11638   cat >>confdefs.h <<_ACEOF
11639 #define HAVE_LIBPTHREAD 1
11640 _ACEOF
11641
11642   LIBS="-lpthread $LIBS"
11643
11644 fi
11645
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_get_default_domain in -lnsl" >&5
11647 $as_echo_n "checking for yp_get_default_domain in -lnsl... " >&6; }
11648 if ${ac_cv_lib_nsl_yp_get_default_domain+:} false; then :
11649   $as_echo_n "(cached) " >&6
11650 else
11651   ac_check_lib_save_LIBS=$LIBS
11652 LIBS="-lnsl  $LIBS"
11653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11654 /* end confdefs.h.  */
11655
11656 /* Override any GCC internal prototype to avoid an error.
11657    Use char because int might match the return type of a GCC
11658    builtin and then its argument prototype would still apply.  */
11659 #ifdef __cplusplus
11660 extern "C"
11661 #endif
11662 char yp_get_default_domain ();
11663 int
11664 main ()
11665 {
11666 return yp_get_default_domain ();
11667   ;
11668   return 0;
11669 }
11670 _ACEOF
11671 if ac_fn_c_try_link "$LINENO"; then :
11672   ac_cv_lib_nsl_yp_get_default_domain=yes
11673 else
11674   ac_cv_lib_nsl_yp_get_default_domain=no
11675 fi
11676 rm -f core conftest.err conftest.$ac_objext \
11677     conftest$ac_exeext conftest.$ac_ext
11678 LIBS=$ac_check_lib_save_LIBS
11679 fi
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
11681 $as_echo "$ac_cv_lib_nsl_yp_get_default_domain" >&6; }
11682 if test "x$ac_cv_lib_nsl_yp_get_default_domain" = xyes; then :
11683   cat >>confdefs.h <<_ACEOF
11684 #define HAVE_LIBNSL 1
11685 _ACEOF
11686
11687   LIBS="-lnsl $LIBS"
11688
11689 fi
11690
11691
11692
11693 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile doc/Makefile"
11694
11695 ac_config_files="$ac_config_files libtirpc.pc"
11696
11697 cat >confcache <<\_ACEOF
11698 # This file is a shell script that caches the results of configure
11699 # tests run on this system so they can be shared between configure
11700 # scripts and configure runs, see configure's option --config-cache.
11701 # It is not useful on other systems.  If it contains results you don't
11702 # want to keep, you may remove or edit it.
11703 #
11704 # config.status only pays attention to the cache file if you give it
11705 # the --recheck option to rerun configure.
11706 #
11707 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11708 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11709 # following values.
11710
11711 _ACEOF
11712
11713 # The following way of writing the cache mishandles newlines in values,
11714 # but we know of no workaround that is simple, portable, and efficient.
11715 # So, we kill variables containing newlines.
11716 # Ultrix sh set writes to stderr and can't be redirected directly,
11717 # and sets the high bit in the cache file unless we assign to the vars.
11718 (
11719   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11720     eval ac_val=\$$ac_var
11721     case $ac_val in #(
11722     *${as_nl}*)
11723       case $ac_var in #(
11724       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11725 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11726       esac
11727       case $ac_var in #(
11728       _ | IFS | as_nl) ;; #(
11729       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11730       *) { eval $ac_var=; unset $ac_var;} ;;
11731       esac ;;
11732     esac
11733   done
11734
11735   (set) 2>&1 |
11736     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11737     *${as_nl}ac_space=\ *)
11738       # `set' does not quote correctly, so add quotes: double-quote
11739       # substitution turns \\\\ into \\, and sed turns \\ into \.
11740       sed -n \
11741         "s/'/'\\\\''/g;
11742           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11743       ;; #(
11744     *)
11745       # `set' quotes correctly as required by POSIX, so do not add quotes.
11746       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11747       ;;
11748     esac |
11749     sort
11750 ) |
11751   sed '
11752      /^ac_cv_env_/b end
11753      t clear
11754      :clear
11755      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11756      t end
11757      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11758      :end' >>confcache
11759 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11760   if test -w "$cache_file"; then
11761     if test "x$cache_file" != "x/dev/null"; then
11762       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11763 $as_echo "$as_me: updating cache $cache_file" >&6;}
11764       if test ! -f "$cache_file" || test -h "$cache_file"; then
11765         cat confcache >"$cache_file"
11766       else
11767         case $cache_file in #(
11768         */* | ?:*)
11769           mv -f confcache "$cache_file"$$ &&
11770           mv -f "$cache_file"$$ "$cache_file" ;; #(
11771         *)
11772           mv -f confcache "$cache_file" ;;
11773         esac
11774       fi
11775     fi
11776   else
11777     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11778 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11779   fi
11780 fi
11781 rm -f confcache
11782
11783 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11784 # Let make expand exec_prefix.
11785 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11786
11787 # Transform confdefs.h into DEFS.
11788 # Protect against shell expansion while executing Makefile rules.
11789 # Protect against Makefile macro expansion.
11790 #
11791 # If the first sed substitution is executed (which looks for macros that
11792 # take arguments), then branch to the quote section.  Otherwise,
11793 # look for a macro that doesn't take arguments.
11794 ac_script='
11795 :mline
11796 /\\$/{
11797  N
11798  s,\\\n,,
11799  b mline
11800 }
11801 t clear
11802 :clear
11803 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
11804 t quote
11805 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
11806 t quote
11807 b any
11808 :quote
11809 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11810 s/\[/\\&/g
11811 s/\]/\\&/g
11812 s/\$/$$/g
11813 H
11814 :any
11815 ${
11816         g
11817         s/^\n//
11818         s/\n/ /g
11819         p
11820 }
11821 '
11822 DEFS=`sed -n "$ac_script" confdefs.h`
11823
11824
11825 ac_libobjs=
11826 ac_ltlibobjs=
11827 U=
11828 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11829   # 1. Remove the extension, and $U if already installed.
11830   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11831   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11832   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11833   #    will be set to the directory where LIBOBJS objects are built.
11834   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11835   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11836 done
11837 LIBOBJS=$ac_libobjs
11838
11839 LTLIBOBJS=$ac_ltlibobjs
11840
11841
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11843 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11844    if test -n "$am_sleep_pid"; then
11845      # Hide warnings about reused PIDs.
11846      wait $am_sleep_pid 2>/dev/null
11847    fi
11848    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11849 $as_echo "done" >&6; }
11850  if test -n "$EXEEXT"; then
11851   am__EXEEXT_TRUE=
11852   am__EXEEXT_FALSE='#'
11853 else
11854   am__EXEEXT_TRUE='#'
11855   am__EXEEXT_FALSE=
11856 fi
11857
11858 if test -z "${GSS_TRUE}" && test -z "${GSS_FALSE}"; then
11859   as_fn_error $? "conditional \"GSS\" was never defined.
11860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11861 fi
11862 if test -z "${INET6_TRUE}" && test -z "${INET6_FALSE}"; then
11863   as_fn_error $? "conditional \"INET6\" was never defined.
11864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11865 fi
11866 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11867   as_fn_error $? "conditional \"AMDEP\" was never defined.
11868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11869 fi
11870 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11871   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11873 fi
11874
11875 : "${CONFIG_STATUS=./config.status}"
11876 ac_write_fail=0
11877 ac_clean_files_save=$ac_clean_files
11878 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11880 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11881 as_write_fail=0
11882 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11883 #! $SHELL
11884 # Generated by $as_me.
11885 # Run this file to recreate the current configuration.
11886 # Compiler output produced by configure, useful for debugging
11887 # configure, is in config.log if it exists.
11888
11889 debug=false
11890 ac_cs_recheck=false
11891 ac_cs_silent=false
11892
11893 SHELL=\${CONFIG_SHELL-$SHELL}
11894 export SHELL
11895 _ASEOF
11896 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11897 ## -------------------- ##
11898 ## M4sh Initialization. ##
11899 ## -------------------- ##
11900
11901 # Be more Bourne compatible
11902 DUALCASE=1; export DUALCASE # for MKS sh
11903 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11904   emulate sh
11905   NULLCMD=:
11906   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11907   # is contrary to our usage.  Disable this feature.
11908   alias -g '${1+"$@"}'='"$@"'
11909   setopt NO_GLOB_SUBST
11910 else
11911   case `(set -o) 2>/dev/null` in #(
11912   *posix*) :
11913     set -o posix ;; #(
11914   *) :
11915      ;;
11916 esac
11917 fi
11918
11919
11920 as_nl='
11921 '
11922 export as_nl
11923 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11924 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11925 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11926 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11927 # Prefer a ksh shell builtin over an external printf program on Solaris,
11928 # but without wasting forks for bash or zsh.
11929 if test -z "$BASH_VERSION$ZSH_VERSION" \
11930     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11931   as_echo='print -r --'
11932   as_echo_n='print -rn --'
11933 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11934   as_echo='printf %s\n'
11935   as_echo_n='printf %s'
11936 else
11937   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11938     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11939     as_echo_n='/usr/ucb/echo -n'
11940   else
11941     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11942     as_echo_n_body='eval
11943       arg=$1;
11944       case $arg in #(
11945       *"$as_nl"*)
11946         expr "X$arg" : "X\\(.*\\)$as_nl";
11947         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11948       esac;
11949       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11950     '
11951     export as_echo_n_body
11952     as_echo_n='sh -c $as_echo_n_body as_echo'
11953   fi
11954   export as_echo_body
11955   as_echo='sh -c $as_echo_body as_echo'
11956 fi
11957
11958 # The user is always right.
11959 if test "${PATH_SEPARATOR+set}" != set; then
11960   PATH_SEPARATOR=:
11961   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11962     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11963       PATH_SEPARATOR=';'
11964   }
11965 fi
11966
11967
11968 # IFS
11969 # We need space, tab and new line, in precisely that order.  Quoting is
11970 # there to prevent editors from complaining about space-tab.
11971 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11972 # splitting by setting IFS to empty value.)
11973 IFS=" ""        $as_nl"
11974
11975 # Find who we are.  Look in the path if we contain no directory separator.
11976 as_myself=
11977 case $0 in #((
11978   *[\\/]* ) as_myself=$0 ;;
11979   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11980 for as_dir in $PATH
11981 do
11982   IFS=$as_save_IFS
11983   test -z "$as_dir" && as_dir=.
11984     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11985   done
11986 IFS=$as_save_IFS
11987
11988      ;;
11989 esac
11990 # We did not find ourselves, most probably we were run as `sh COMMAND'
11991 # in which case we are not to be found in the path.
11992 if test "x$as_myself" = x; then
11993   as_myself=$0
11994 fi
11995 if test ! -f "$as_myself"; then
11996   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11997   exit 1
11998 fi
11999
12000 # Unset variables that we do not need and which cause bugs (e.g. in
12001 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12002 # suppresses any "Segmentation fault" message there.  '((' could
12003 # trigger a bug in pdksh 5.2.14.
12004 for as_var in BASH_ENV ENV MAIL MAILPATH
12005 do eval test x\${$as_var+set} = xset \
12006   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12007 done
12008 PS1='$ '
12009 PS2='> '
12010 PS4='+ '
12011
12012 # NLS nuisances.
12013 LC_ALL=C
12014 export LC_ALL
12015 LANGUAGE=C
12016 export LANGUAGE
12017
12018 # CDPATH.
12019 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12020
12021
12022 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12023 # ----------------------------------------
12024 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12025 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12026 # script with STATUS, using 1 if that was 0.
12027 as_fn_error ()
12028 {
12029   as_status=$1; test $as_status -eq 0 && as_status=1
12030   if test "$4"; then
12031     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12032     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12033   fi
12034   $as_echo "$as_me: error: $2" >&2
12035   as_fn_exit $as_status
12036 } # as_fn_error
12037
12038
12039 # as_fn_set_status STATUS
12040 # -----------------------
12041 # Set $? to STATUS, without forking.
12042 as_fn_set_status ()
12043 {
12044   return $1
12045 } # as_fn_set_status
12046
12047 # as_fn_exit STATUS
12048 # -----------------
12049 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12050 as_fn_exit ()
12051 {
12052   set +e
12053   as_fn_set_status $1
12054   exit $1
12055 } # as_fn_exit
12056
12057 # as_fn_unset VAR
12058 # ---------------
12059 # Portably unset VAR.
12060 as_fn_unset ()
12061 {
12062   { eval $1=; unset $1;}
12063 }
12064 as_unset=as_fn_unset
12065 # as_fn_append VAR VALUE
12066 # ----------------------
12067 # Append the text in VALUE to the end of the definition contained in VAR. Take
12068 # advantage of any shell optimizations that allow amortized linear growth over
12069 # repeated appends, instead of the typical quadratic growth present in naive
12070 # implementations.
12071 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12072   eval 'as_fn_append ()
12073   {
12074     eval $1+=\$2
12075   }'
12076 else
12077   as_fn_append ()
12078   {
12079     eval $1=\$$1\$2
12080   }
12081 fi # as_fn_append
12082
12083 # as_fn_arith ARG...
12084 # ------------------
12085 # Perform arithmetic evaluation on the ARGs, and store the result in the
12086 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12087 # must be portable across $(()) and expr.
12088 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12089   eval 'as_fn_arith ()
12090   {
12091     as_val=$(( $* ))
12092   }'
12093 else
12094   as_fn_arith ()
12095   {
12096     as_val=`expr "$@" || test $? -eq 1`
12097   }
12098 fi # as_fn_arith
12099
12100
12101 if expr a : '\(a\)' >/dev/null 2>&1 &&
12102    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12103   as_expr=expr
12104 else
12105   as_expr=false
12106 fi
12107
12108 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12109   as_basename=basename
12110 else
12111   as_basename=false
12112 fi
12113
12114 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12115   as_dirname=dirname
12116 else
12117   as_dirname=false
12118 fi
12119
12120 as_me=`$as_basename -- "$0" ||
12121 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12122          X"$0" : 'X\(//\)$' \| \
12123          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12124 $as_echo X/"$0" |
12125     sed '/^.*\/\([^/][^/]*\)\/*$/{
12126             s//\1/
12127             q
12128           }
12129           /^X\/\(\/\/\)$/{
12130             s//\1/
12131             q
12132           }
12133           /^X\/\(\/\).*/{
12134             s//\1/
12135             q
12136           }
12137           s/.*/./; q'`
12138
12139 # Avoid depending upon Character Ranges.
12140 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12141 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12142 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12143 as_cr_digits='0123456789'
12144 as_cr_alnum=$as_cr_Letters$as_cr_digits
12145
12146 ECHO_C= ECHO_N= ECHO_T=
12147 case `echo -n x` in #(((((
12148 -n*)
12149   case `echo 'xy\c'` in
12150   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12151   xy)  ECHO_C='\c';;
12152   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12153        ECHO_T=' ';;
12154   esac;;
12155 *)
12156   ECHO_N='-n';;
12157 esac
12158
12159 rm -f conf$$ conf$$.exe conf$$.file
12160 if test -d conf$$.dir; then
12161   rm -f conf$$.dir/conf$$.file
12162 else
12163   rm -f conf$$.dir
12164   mkdir conf$$.dir 2>/dev/null
12165 fi
12166 if (echo >conf$$.file) 2>/dev/null; then
12167   if ln -s conf$$.file conf$$ 2>/dev/null; then
12168     as_ln_s='ln -s'
12169     # ... but there are two gotchas:
12170     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12171     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12172     # In both cases, we have to default to `cp -pR'.
12173     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12174       as_ln_s='cp -pR'
12175   elif ln conf$$.file conf$$ 2>/dev/null; then
12176     as_ln_s=ln
12177   else
12178     as_ln_s='cp -pR'
12179   fi
12180 else
12181   as_ln_s='cp -pR'
12182 fi
12183 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12184 rmdir conf$$.dir 2>/dev/null
12185
12186
12187 # as_fn_mkdir_p
12188 # -------------
12189 # Create "$as_dir" as a directory, including parents if necessary.
12190 as_fn_mkdir_p ()
12191 {
12192
12193   case $as_dir in #(
12194   -*) as_dir=./$as_dir;;
12195   esac
12196   test -d "$as_dir" || eval $as_mkdir_p || {
12197     as_dirs=
12198     while :; do
12199       case $as_dir in #(
12200       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12201       *) as_qdir=$as_dir;;
12202       esac
12203       as_dirs="'$as_qdir' $as_dirs"
12204       as_dir=`$as_dirname -- "$as_dir" ||
12205 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12206          X"$as_dir" : 'X\(//\)[^/]' \| \
12207          X"$as_dir" : 'X\(//\)$' \| \
12208          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12209 $as_echo X"$as_dir" |
12210     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12211             s//\1/
12212             q
12213           }
12214           /^X\(\/\/\)[^/].*/{
12215             s//\1/
12216             q
12217           }
12218           /^X\(\/\/\)$/{
12219             s//\1/
12220             q
12221           }
12222           /^X\(\/\).*/{
12223             s//\1/
12224             q
12225           }
12226           s/.*/./; q'`
12227       test -d "$as_dir" && break
12228     done
12229     test -z "$as_dirs" || eval "mkdir $as_dirs"
12230   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12231
12232
12233 } # as_fn_mkdir_p
12234 if mkdir -p . 2>/dev/null; then
12235   as_mkdir_p='mkdir -p "$as_dir"'
12236 else
12237   test -d ./-p && rmdir ./-p
12238   as_mkdir_p=false
12239 fi
12240
12241
12242 # as_fn_executable_p FILE
12243 # -----------------------
12244 # Test if FILE is an executable regular file.
12245 as_fn_executable_p ()
12246 {
12247   test -f "$1" && test -x "$1"
12248 } # as_fn_executable_p
12249 as_test_x='test -x'
12250 as_executable_p=as_fn_executable_p
12251
12252 # Sed expression to map a string onto a valid CPP name.
12253 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12254
12255 # Sed expression to map a string onto a valid variable name.
12256 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12257
12258
12259 exec 6>&1
12260 ## ----------------------------------- ##
12261 ## Main body of $CONFIG_STATUS script. ##
12262 ## ----------------------------------- ##
12263 _ASEOF
12264 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12265
12266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12267 # Save the log message, to keep $0 and so on meaningful, and to
12268 # report actual input values of CONFIG_FILES etc. instead of their
12269 # values after options handling.
12270 ac_log="
12271 This file was extended by libtirpc $as_me 0.2.5, which was
12272 generated by GNU Autoconf 2.69.  Invocation command line was
12273
12274   CONFIG_FILES    = $CONFIG_FILES
12275   CONFIG_HEADERS  = $CONFIG_HEADERS
12276   CONFIG_LINKS    = $CONFIG_LINKS
12277   CONFIG_COMMANDS = $CONFIG_COMMANDS
12278   $ $0 $@
12279
12280 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12281 "
12282
12283 _ACEOF
12284
12285 case $ac_config_files in *"
12286 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12287 esac
12288
12289
12290
12291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12292 # Files that config.status was made for.
12293 config_files="$ac_config_files"
12294 config_commands="$ac_config_commands"
12295
12296 _ACEOF
12297
12298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12299 ac_cs_usage="\
12300 \`$as_me' instantiates files and other configuration actions
12301 from templates according to the current configuration.  Unless the files
12302 and actions are specified as TAGs, all are instantiated by default.
12303
12304 Usage: $0 [OPTION]... [TAG]...
12305
12306   -h, --help       print this help, then exit
12307   -V, --version    print version number and configuration settings, then exit
12308       --config     print configuration, then exit
12309   -q, --quiet, --silent
12310                    do not print progress messages
12311   -d, --debug      don't remove temporary files
12312       --recheck    update $as_me by reconfiguring in the same conditions
12313       --file=FILE[:TEMPLATE]
12314                    instantiate the configuration file FILE
12315
12316 Configuration files:
12317 $config_files
12318
12319 Configuration commands:
12320 $config_commands
12321
12322 Report bugs to the package provider."
12323
12324 _ACEOF
12325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12326 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12327 ac_cs_version="\\
12328 libtirpc config.status 0.2.5
12329 configured by $0, generated by GNU Autoconf 2.69,
12330   with options \\"\$ac_cs_config\\"
12331
12332 Copyright (C) 2012 Free Software Foundation, Inc.
12333 This config.status script is free software; the Free Software Foundation
12334 gives unlimited permission to copy, distribute and modify it."
12335
12336 ac_pwd='$ac_pwd'
12337 srcdir='$srcdir'
12338 INSTALL='$INSTALL'
12339 MKDIR_P='$MKDIR_P'
12340 AWK='$AWK'
12341 test -n "\$AWK" || AWK=awk
12342 _ACEOF
12343
12344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12345 # The default lists apply if the user does not specify any file.
12346 ac_need_defaults=:
12347 while test $# != 0
12348 do
12349   case $1 in
12350   --*=?*)
12351     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12352     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12353     ac_shift=:
12354     ;;
12355   --*=)
12356     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12357     ac_optarg=
12358     ac_shift=:
12359     ;;
12360   *)
12361     ac_option=$1
12362     ac_optarg=$2
12363     ac_shift=shift
12364     ;;
12365   esac
12366
12367   case $ac_option in
12368   # Handling of the options.
12369   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12370     ac_cs_recheck=: ;;
12371   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12372     $as_echo "$ac_cs_version"; exit ;;
12373   --config | --confi | --conf | --con | --co | --c )
12374     $as_echo "$ac_cs_config"; exit ;;
12375   --debug | --debu | --deb | --de | --d | -d )
12376     debug=: ;;
12377   --file | --fil | --fi | --f )
12378     $ac_shift
12379     case $ac_optarg in
12380     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12381     '') as_fn_error $? "missing file argument" ;;
12382     esac
12383     as_fn_append CONFIG_FILES " '$ac_optarg'"
12384     ac_need_defaults=false;;
12385   --he | --h |  --help | --hel | -h )
12386     $as_echo "$ac_cs_usage"; exit ;;
12387   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12388   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12389     ac_cs_silent=: ;;
12390
12391   # This is an error.
12392   -*) as_fn_error $? "unrecognized option: \`$1'
12393 Try \`$0 --help' for more information." ;;
12394
12395   *) as_fn_append ac_config_targets " $1"
12396      ac_need_defaults=false ;;
12397
12398   esac
12399   shift
12400 done
12401
12402 ac_configure_extra_args=
12403
12404 if $ac_cs_silent; then
12405   exec 6>/dev/null
12406   ac_configure_extra_args="$ac_configure_extra_args --silent"
12407 fi
12408
12409 _ACEOF
12410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12411 if \$ac_cs_recheck; then
12412   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12413   shift
12414   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12415   CONFIG_SHELL='$SHELL'
12416   export CONFIG_SHELL
12417   exec "\$@"
12418 fi
12419
12420 _ACEOF
12421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12422 exec 5>>config.log
12423 {
12424   echo
12425   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12426 ## Running $as_me. ##
12427 _ASBOX
12428   $as_echo "$ac_log"
12429 } >&5
12430
12431 _ACEOF
12432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12433 #
12434 # INIT-COMMANDS
12435 #
12436 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12437
12438
12439 # The HP-UX ksh and POSIX shell print the target directory to stdout
12440 # if CDPATH is set.
12441 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12442
12443 sed_quote_subst='$sed_quote_subst'
12444 double_quote_subst='$double_quote_subst'
12445 delay_variable_subst='$delay_variable_subst'
12446 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12447 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12448 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12449 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12450 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12451 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12452 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12453 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12454 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12455 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12456 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12457 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12458 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12459 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12460 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12461 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12462 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12463 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12464 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12465 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12466 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12467 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12468 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12469 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12470 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12471 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12472 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12473 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12474 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12475 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12476 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12477 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12478 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12479 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12480 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12481 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12482 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12483 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12484 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12485 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12486 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12487 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12488 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12489 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12490 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12491 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12492 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12493 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12494 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12495 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12496 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12497 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12498 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12499 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12500 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12501 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12502 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"`'
12503 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12504 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12505 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12506 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12507 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12508 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12509 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12510 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12511 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12512 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12513 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12514 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12515 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12516 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12517 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12518 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12519 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12520 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12521 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12522 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12523 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12524 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12525 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12526 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12527 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12528 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12529 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12530 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12531 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12532 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12533 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12534 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12535 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12536 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12537 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12538 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12539 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12540 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12541 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12542 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12543 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12544 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12545 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12546 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12547 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12548 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12549 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12550 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12551 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12552 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12553 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12554 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12555 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12556 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12557 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12558 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12559 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12560 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12561 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12562 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12563 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12564 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12565 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12566 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12567 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12568 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12569 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12570 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12571 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12572 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12573 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12574 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12575 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12576
12577 LTCC='$LTCC'
12578 LTCFLAGS='$LTCFLAGS'
12579 compiler='$compiler_DEFAULT'
12580
12581 # A function that is used when there is no print builtin or printf.
12582 func_fallback_echo ()
12583 {
12584   eval 'cat <<_LTECHO_EOF
12585 \$1
12586 _LTECHO_EOF'
12587 }
12588
12589 # Quote evaled strings.
12590 for var in SHELL \
12591 ECHO \
12592 PATH_SEPARATOR \
12593 SED \
12594 GREP \
12595 EGREP \
12596 FGREP \
12597 LD \
12598 NM \
12599 LN_S \
12600 lt_SP2NL \
12601 lt_NL2SP \
12602 reload_flag \
12603 OBJDUMP \
12604 deplibs_check_method \
12605 file_magic_cmd \
12606 file_magic_glob \
12607 want_nocaseglob \
12608 DLLTOOL \
12609 sharedlib_from_linklib_cmd \
12610 AR \
12611 AR_FLAGS \
12612 archiver_list_spec \
12613 STRIP \
12614 RANLIB \
12615 CC \
12616 CFLAGS \
12617 compiler \
12618 lt_cv_sys_global_symbol_pipe \
12619 lt_cv_sys_global_symbol_to_cdecl \
12620 lt_cv_sys_global_symbol_to_c_name_address \
12621 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12622 nm_file_list_spec \
12623 lt_prog_compiler_no_builtin_flag \
12624 lt_prog_compiler_pic \
12625 lt_prog_compiler_wl \
12626 lt_prog_compiler_static \
12627 lt_cv_prog_compiler_c_o \
12628 need_locks \
12629 MANIFEST_TOOL \
12630 DSYMUTIL \
12631 NMEDIT \
12632 LIPO \
12633 OTOOL \
12634 OTOOL64 \
12635 shrext_cmds \
12636 export_dynamic_flag_spec \
12637 whole_archive_flag_spec \
12638 compiler_needs_object \
12639 with_gnu_ld \
12640 allow_undefined_flag \
12641 no_undefined_flag \
12642 hardcode_libdir_flag_spec \
12643 hardcode_libdir_separator \
12644 exclude_expsyms \
12645 include_expsyms \
12646 file_list_spec \
12647 variables_saved_for_relink \
12648 libname_spec \
12649 library_names_spec \
12650 soname_spec \
12651 install_override_mode \
12652 finish_eval \
12653 old_striplib \
12654 striplib; do
12655     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12656     *[\\\\\\\`\\"\\\$]*)
12657       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12658       ;;
12659     *)
12660       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12661       ;;
12662     esac
12663 done
12664
12665 # Double-quote double-evaled strings.
12666 for var in reload_cmds \
12667 old_postinstall_cmds \
12668 old_postuninstall_cmds \
12669 old_archive_cmds \
12670 extract_expsyms_cmds \
12671 old_archive_from_new_cmds \
12672 old_archive_from_expsyms_cmds \
12673 archive_cmds \
12674 archive_expsym_cmds \
12675 module_cmds \
12676 module_expsym_cmds \
12677 export_symbols_cmds \
12678 prelink_cmds \
12679 postlink_cmds \
12680 postinstall_cmds \
12681 postuninstall_cmds \
12682 finish_cmds \
12683 sys_lib_search_path_spec \
12684 sys_lib_dlsearch_path_spec; do
12685     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12686     *[\\\\\\\`\\"\\\$]*)
12687       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12688       ;;
12689     *)
12690       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12691       ;;
12692     esac
12693 done
12694
12695 ac_aux_dir='$ac_aux_dir'
12696 xsi_shell='$xsi_shell'
12697 lt_shell_append='$lt_shell_append'
12698
12699 # See if we are running on zsh, and set the options which allow our
12700 # commands through without removal of \ escapes INIT.
12701 if test -n "\${ZSH_VERSION+set}" ; then
12702    setopt NO_GLOB_SUBST
12703 fi
12704
12705
12706     PACKAGE='$PACKAGE'
12707     VERSION='$VERSION'
12708     TIMESTAMP='$TIMESTAMP'
12709     RM='$RM'
12710     ofile='$ofile'
12711
12712
12713
12714
12715 _ACEOF
12716
12717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12718
12719 # Handling of arguments.
12720 for ac_config_target in $ac_config_targets
12721 do
12722   case $ac_config_target in
12723     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12724     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12725     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12726     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12727     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12728     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12729     "libtirpc.pc") CONFIG_FILES="$CONFIG_FILES libtirpc.pc" ;;
12730
12731   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12732   esac
12733 done
12734
12735
12736 # If the user did not use the arguments to specify the items to instantiate,
12737 # then the envvar interface is used.  Set only those that are not.
12738 # We use the long form for the default assignment because of an extremely
12739 # bizarre bug on SunOS 4.1.3.
12740 if $ac_need_defaults; then
12741   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12742   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12743 fi
12744
12745 # Have a temporary directory for convenience.  Make it in the build tree
12746 # simply because there is no reason against having it here, and in addition,
12747 # creating and moving files from /tmp can sometimes cause problems.
12748 # Hook for its removal unless debugging.
12749 # Note that there is a small window in which the directory will not be cleaned:
12750 # after its creation but before its name has been assigned to `$tmp'.
12751 $debug ||
12752 {
12753   tmp= ac_tmp=
12754   trap 'exit_status=$?
12755   : "${ac_tmp:=$tmp}"
12756   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12757 ' 0
12758   trap 'as_fn_exit 1' 1 2 13 15
12759 }
12760 # Create a (secure) tmp directory for tmp files.
12761
12762 {
12763   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12764   test -d "$tmp"
12765 }  ||
12766 {
12767   tmp=./conf$$-$RANDOM
12768   (umask 077 && mkdir "$tmp")
12769 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12770 ac_tmp=$tmp
12771
12772 # Set up the scripts for CONFIG_FILES section.
12773 # No need to generate them if there are no CONFIG_FILES.
12774 # This happens for instance with `./config.status config.h'.
12775 if test -n "$CONFIG_FILES"; then
12776
12777
12778 ac_cr=`echo X | tr X '\015'`
12779 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12780 # But we know of no other shell where ac_cr would be empty at this
12781 # point, so we can use a bashism as a fallback.
12782 if test "x$ac_cr" = x; then
12783   eval ac_cr=\$\'\\r\'
12784 fi
12785 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12786 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12787   ac_cs_awk_cr='\\r'
12788 else
12789   ac_cs_awk_cr=$ac_cr
12790 fi
12791
12792 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12793 _ACEOF
12794
12795
12796 {
12797   echo "cat >conf$$subs.awk <<_ACEOF" &&
12798   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12799   echo "_ACEOF"
12800 } >conf$$subs.sh ||
12801   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12802 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12803 ac_delim='%!_!# '
12804 for ac_last_try in false false false false false :; do
12805   . ./conf$$subs.sh ||
12806     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12807
12808   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12809   if test $ac_delim_n = $ac_delim_num; then
12810     break
12811   elif $ac_last_try; then
12812     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12813   else
12814     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12815   fi
12816 done
12817 rm -f conf$$subs.sh
12818
12819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12820 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12821 _ACEOF
12822 sed -n '
12823 h
12824 s/^/S["/; s/!.*/"]=/
12825 p
12826 g
12827 s/^[^!]*!//
12828 :repl
12829 t repl
12830 s/'"$ac_delim"'$//
12831 t delim
12832 :nl
12833 h
12834 s/\(.\{148\}\)..*/\1/
12835 t more1
12836 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12837 p
12838 n
12839 b repl
12840 :more1
12841 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12842 p
12843 g
12844 s/.\{148\}//
12845 t nl
12846 :delim
12847 h
12848 s/\(.\{148\}\)..*/\1/
12849 t more2
12850 s/["\\]/\\&/g; s/^/"/; s/$/"/
12851 p
12852 b
12853 :more2
12854 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12855 p
12856 g
12857 s/.\{148\}//
12858 t delim
12859 ' <conf$$subs.awk | sed '
12860 /^[^""]/{
12861   N
12862   s/\n//
12863 }
12864 ' >>$CONFIG_STATUS || ac_write_fail=1
12865 rm -f conf$$subs.awk
12866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12867 _ACAWK
12868 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12869   for (key in S) S_is_set[key] = 1
12870   FS = "\a"
12871
12872 }
12873 {
12874   line = $ 0
12875   nfields = split(line, field, "@")
12876   substed = 0
12877   len = length(field[1])
12878   for (i = 2; i < nfields; i++) {
12879     key = field[i]
12880     keylen = length(key)
12881     if (S_is_set[key]) {
12882       value = S[key]
12883       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12884       len += length(value) + length(field[++i])
12885       substed = 1
12886     } else
12887       len += 1 + keylen
12888   }
12889
12890   print line
12891 }
12892
12893 _ACAWK
12894 _ACEOF
12895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12896 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12897   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12898 else
12899   cat
12900 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12901   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12902 _ACEOF
12903
12904 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12905 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12906 # trailing colons and then remove the whole line if VPATH becomes empty
12907 # (actually we leave an empty line to preserve line numbers).
12908 if test "x$srcdir" = x.; then
12909   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12910 h
12911 s///
12912 s/^/:/
12913 s/[      ]*$/:/
12914 s/:\$(srcdir):/:/g
12915 s/:\${srcdir}:/:/g
12916 s/:@srcdir@:/:/g
12917 s/^:*//
12918 s/:*$//
12919 x
12920 s/\(=[   ]*\).*/\1/
12921 G
12922 s/\n//
12923 s/^[^=]*=[       ]*$//
12924 }'
12925 fi
12926
12927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12928 fi # test -n "$CONFIG_FILES"
12929
12930
12931 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
12932 shift
12933 for ac_tag
12934 do
12935   case $ac_tag in
12936   :[FHLC]) ac_mode=$ac_tag; continue;;
12937   esac
12938   case $ac_mode$ac_tag in
12939   :[FHL]*:*);;
12940   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12941   :[FH]-) ac_tag=-:-;;
12942   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12943   esac
12944   ac_save_IFS=$IFS
12945   IFS=:
12946   set x $ac_tag
12947   IFS=$ac_save_IFS
12948   shift
12949   ac_file=$1
12950   shift
12951
12952   case $ac_mode in
12953   :L) ac_source=$1;;
12954   :[FH])
12955     ac_file_inputs=
12956     for ac_f
12957     do
12958       case $ac_f in
12959       -) ac_f="$ac_tmp/stdin";;
12960       *) # Look for the file first in the build tree, then in the source tree
12961          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12962          # because $ac_f cannot contain `:'.
12963          test -f "$ac_f" ||
12964            case $ac_f in
12965            [\\/$]*) false;;
12966            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12967            esac ||
12968            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12969       esac
12970       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12971       as_fn_append ac_file_inputs " '$ac_f'"
12972     done
12973
12974     # Let's still pretend it is `configure' which instantiates (i.e., don't
12975     # use $as_me), people would be surprised to read:
12976     #    /* config.h.  Generated by config.status.  */
12977     configure_input='Generated from '`
12978           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12979         `' by configure.'
12980     if test x"$ac_file" != x-; then
12981       configure_input="$ac_file.  $configure_input"
12982       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12983 $as_echo "$as_me: creating $ac_file" >&6;}
12984     fi
12985     # Neutralize special characters interpreted by sed in replacement strings.
12986     case $configure_input in #(
12987     *\&* | *\|* | *\\* )
12988        ac_sed_conf_input=`$as_echo "$configure_input" |
12989        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12990     *) ac_sed_conf_input=$configure_input;;
12991     esac
12992
12993     case $ac_tag in
12994     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12995       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12996     esac
12997     ;;
12998   esac
12999
13000   ac_dir=`$as_dirname -- "$ac_file" ||
13001 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13002          X"$ac_file" : 'X\(//\)[^/]' \| \
13003          X"$ac_file" : 'X\(//\)$' \| \
13004          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13005 $as_echo X"$ac_file" |
13006     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13007             s//\1/
13008             q
13009           }
13010           /^X\(\/\/\)[^/].*/{
13011             s//\1/
13012             q
13013           }
13014           /^X\(\/\/\)$/{
13015             s//\1/
13016             q
13017           }
13018           /^X\(\/\).*/{
13019             s//\1/
13020             q
13021           }
13022           s/.*/./; q'`
13023   as_dir="$ac_dir"; as_fn_mkdir_p
13024   ac_builddir=.
13025
13026 case "$ac_dir" in
13027 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13028 *)
13029   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13030   # A ".." for each directory in $ac_dir_suffix.
13031   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13032   case $ac_top_builddir_sub in
13033   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13034   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13035   esac ;;
13036 esac
13037 ac_abs_top_builddir=$ac_pwd
13038 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13039 # for backward compatibility:
13040 ac_top_builddir=$ac_top_build_prefix
13041
13042 case $srcdir in
13043   .)  # We are building in place.
13044     ac_srcdir=.
13045     ac_top_srcdir=$ac_top_builddir_sub
13046     ac_abs_top_srcdir=$ac_pwd ;;
13047   [\\/]* | ?:[\\/]* )  # Absolute name.
13048     ac_srcdir=$srcdir$ac_dir_suffix;
13049     ac_top_srcdir=$srcdir
13050     ac_abs_top_srcdir=$srcdir ;;
13051   *) # Relative name.
13052     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13053     ac_top_srcdir=$ac_top_build_prefix$srcdir
13054     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13055 esac
13056 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13057
13058
13059   case $ac_mode in
13060   :F)
13061   #
13062   # CONFIG_FILE
13063   #
13064
13065   case $INSTALL in
13066   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13067   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13068   esac
13069   ac_MKDIR_P=$MKDIR_P
13070   case $MKDIR_P in
13071   [\\/$]* | ?:[\\/]* ) ;;
13072   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13073   esac
13074 _ACEOF
13075
13076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13077 # If the template does not know about datarootdir, expand it.
13078 # FIXME: This hack should be removed a few years after 2.60.
13079 ac_datarootdir_hack=; ac_datarootdir_seen=
13080 ac_sed_dataroot='
13081 /datarootdir/ {
13082   p
13083   q
13084 }
13085 /@datadir@/p
13086 /@docdir@/p
13087 /@infodir@/p
13088 /@localedir@/p
13089 /@mandir@/p'
13090 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13091 *datarootdir*) ac_datarootdir_seen=yes;;
13092 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13093   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13094 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13095 _ACEOF
13096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13097   ac_datarootdir_hack='
13098   s&@datadir@&$datadir&g
13099   s&@docdir@&$docdir&g
13100   s&@infodir@&$infodir&g
13101   s&@localedir@&$localedir&g
13102   s&@mandir@&$mandir&g
13103   s&\\\${datarootdir}&$datarootdir&g' ;;
13104 esac
13105 _ACEOF
13106
13107 # Neutralize VPATH when `$srcdir' = `.'.
13108 # Shell code in configure.ac might set extrasub.
13109 # FIXME: do we really want to maintain this feature?
13110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13111 ac_sed_extra="$ac_vpsub
13112 $extrasub
13113 _ACEOF
13114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13115 :t
13116 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13117 s|@configure_input@|$ac_sed_conf_input|;t t
13118 s&@top_builddir@&$ac_top_builddir_sub&;t t
13119 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13120 s&@srcdir@&$ac_srcdir&;t t
13121 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13122 s&@top_srcdir@&$ac_top_srcdir&;t t
13123 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13124 s&@builddir@&$ac_builddir&;t t
13125 s&@abs_builddir@&$ac_abs_builddir&;t t
13126 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13127 s&@INSTALL@&$ac_INSTALL&;t t
13128 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13129 $ac_datarootdir_hack
13130 "
13131 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13132   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13133
13134 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13135   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13136   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13137       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13138   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13139 which seems to be undefined.  Please make sure it is defined" >&5
13140 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13141 which seems to be undefined.  Please make sure it is defined" >&2;}
13142
13143   rm -f "$ac_tmp/stdin"
13144   case $ac_file in
13145   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13146   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13147   esac \
13148   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13149  ;;
13150
13151
13152   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13153 $as_echo "$as_me: executing $ac_file commands" >&6;}
13154  ;;
13155   esac
13156
13157
13158   case $ac_file$ac_mode in
13159     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13160   # Older Autoconf quotes --file arguments for eval, but not when files
13161   # are listed without --file.  Let's play safe and only enable the eval
13162   # if we detect the quoting.
13163   case $CONFIG_FILES in
13164   *\'*) eval set x "$CONFIG_FILES" ;;
13165   *)   set x $CONFIG_FILES ;;
13166   esac
13167   shift
13168   for mf
13169   do
13170     # Strip MF so we end up with the name of the file.
13171     mf=`echo "$mf" | sed -e 's/:.*$//'`
13172     # Check whether this is an Automake generated Makefile or not.
13173     # We used to match only the files named 'Makefile.in', but
13174     # some people rename them; so instead we look at the file content.
13175     # Grep'ing the first line is not enough: some people post-process
13176     # each Makefile.in and add a new line on top of each file to say so.
13177     # Grep'ing the whole file is not good either: AIX grep has a line
13178     # limit of 2048, but all sed's we know have understand at least 4000.
13179     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13180       dirpart=`$as_dirname -- "$mf" ||
13181 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13182          X"$mf" : 'X\(//\)[^/]' \| \
13183          X"$mf" : 'X\(//\)$' \| \
13184          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13185 $as_echo X"$mf" |
13186     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13187             s//\1/
13188             q
13189           }
13190           /^X\(\/\/\)[^/].*/{
13191             s//\1/
13192             q
13193           }
13194           /^X\(\/\/\)$/{
13195             s//\1/
13196             q
13197           }
13198           /^X\(\/\).*/{
13199             s//\1/
13200             q
13201           }
13202           s/.*/./; q'`
13203     else
13204       continue
13205     fi
13206     # Extract the definition of DEPDIR, am__include, and am__quote
13207     # from the Makefile without running 'make'.
13208     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13209     test -z "$DEPDIR" && continue
13210     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13211     test -z "$am__include" && continue
13212     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13213     # Find all dependency output files, they are included files with
13214     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13215     # simplest approach to changing $(DEPDIR) to its actual value in the
13216     # expansion.
13217     for file in `sed -n "
13218       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13219          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13220       # Make sure the directory exists.
13221       test -f "$dirpart/$file" && continue
13222       fdir=`$as_dirname -- "$file" ||
13223 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13224          X"$file" : 'X\(//\)[^/]' \| \
13225          X"$file" : 'X\(//\)$' \| \
13226          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13227 $as_echo X"$file" |
13228     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13229             s//\1/
13230             q
13231           }
13232           /^X\(\/\/\)[^/].*/{
13233             s//\1/
13234             q
13235           }
13236           /^X\(\/\/\)$/{
13237             s//\1/
13238             q
13239           }
13240           /^X\(\/\).*/{
13241             s//\1/
13242             q
13243           }
13244           s/.*/./; q'`
13245       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13246       # echo "creating $dirpart/$file"
13247       echo '# dummy' > "$dirpart/$file"
13248     done
13249   done
13250 }
13251  ;;
13252     "libtool":C)
13253
13254     # See if we are running on zsh, and set the options which allow our
13255     # commands through without removal of \ escapes.
13256     if test -n "${ZSH_VERSION+set}" ; then
13257       setopt NO_GLOB_SUBST
13258     fi
13259
13260     cfgfile="${ofile}T"
13261     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13262     $RM "$cfgfile"
13263
13264     cat <<_LT_EOF >> "$cfgfile"
13265 #! $SHELL
13266
13267 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13268 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13269 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13270 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13271 #
13272 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13273 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13274 #                 Foundation, Inc.
13275 #   Written by Gordon Matzigkeit, 1996
13276 #
13277 #   This file is part of GNU Libtool.
13278 #
13279 # GNU Libtool is free software; you can redistribute it and/or
13280 # modify it under the terms of the GNU General Public License as
13281 # published by the Free Software Foundation; either version 2 of
13282 # the License, or (at your option) any later version.
13283 #
13284 # As a special exception to the GNU General Public License,
13285 # if you distribute this file as part of a program or library that
13286 # is built using GNU Libtool, you may include this file under the
13287 # same distribution terms that you use for the rest of that program.
13288 #
13289 # GNU Libtool is distributed in the hope that it will be useful,
13290 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13291 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13292 # GNU General Public License for more details.
13293 #
13294 # You should have received a copy of the GNU General Public License
13295 # along with GNU Libtool; see the file COPYING.  If not, a copy
13296 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13297 # obtained by writing to the Free Software Foundation, Inc.,
13298 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13299
13300
13301 # The names of the tagged configurations supported by this script.
13302 available_tags=""
13303
13304 # ### BEGIN LIBTOOL CONFIG
13305
13306 # Which release of libtool.m4 was used?
13307 macro_version=$macro_version
13308 macro_revision=$macro_revision
13309
13310 # Whether or not to build shared libraries.
13311 build_libtool_libs=$enable_shared
13312
13313 # Whether or not to build static libraries.
13314 build_old_libs=$enable_static
13315
13316 # What type of objects to build.
13317 pic_mode=$pic_mode
13318
13319 # Whether or not to optimize for fast installation.
13320 fast_install=$enable_fast_install
13321
13322 # Shell to use when invoking shell scripts.
13323 SHELL=$lt_SHELL
13324
13325 # An echo program that protects backslashes.
13326 ECHO=$lt_ECHO
13327
13328 # The PATH separator for the build system.
13329 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13330
13331 # The host system.
13332 host_alias=$host_alias
13333 host=$host
13334 host_os=$host_os
13335
13336 # The build system.
13337 build_alias=$build_alias
13338 build=$build
13339 build_os=$build_os
13340
13341 # A sed program that does not truncate output.
13342 SED=$lt_SED
13343
13344 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13345 Xsed="\$SED -e 1s/^X//"
13346
13347 # A grep program that handles long lines.
13348 GREP=$lt_GREP
13349
13350 # An ERE matcher.
13351 EGREP=$lt_EGREP
13352
13353 # A literal string matcher.
13354 FGREP=$lt_FGREP
13355
13356 # A BSD- or MS-compatible name lister.
13357 NM=$lt_NM
13358
13359 # Whether we need soft or hard links.
13360 LN_S=$lt_LN_S
13361
13362 # What is the maximum length of a command?
13363 max_cmd_len=$max_cmd_len
13364
13365 # Object file suffix (normally "o").
13366 objext=$ac_objext
13367
13368 # Executable file suffix (normally "").
13369 exeext=$exeext
13370
13371 # whether the shell understands "unset".
13372 lt_unset=$lt_unset
13373
13374 # turn spaces into newlines.
13375 SP2NL=$lt_lt_SP2NL
13376
13377 # turn newlines into spaces.
13378 NL2SP=$lt_lt_NL2SP
13379
13380 # convert \$build file names to \$host format.
13381 to_host_file_cmd=$lt_cv_to_host_file_cmd
13382
13383 # convert \$build files to toolchain format.
13384 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13385
13386 # An object symbol dumper.
13387 OBJDUMP=$lt_OBJDUMP
13388
13389 # Method to check whether dependent libraries are shared objects.
13390 deplibs_check_method=$lt_deplibs_check_method
13391
13392 # Command to use when deplibs_check_method = "file_magic".
13393 file_magic_cmd=$lt_file_magic_cmd
13394
13395 # How to find potential files when deplibs_check_method = "file_magic".
13396 file_magic_glob=$lt_file_magic_glob
13397
13398 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13399 want_nocaseglob=$lt_want_nocaseglob
13400
13401 # DLL creation program.
13402 DLLTOOL=$lt_DLLTOOL
13403
13404 # Command to associate shared and link libraries.
13405 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13406
13407 # The archiver.
13408 AR=$lt_AR
13409
13410 # Flags to create an archive.
13411 AR_FLAGS=$lt_AR_FLAGS
13412
13413 # How to feed a file listing to the archiver.
13414 archiver_list_spec=$lt_archiver_list_spec
13415
13416 # A symbol stripping program.
13417 STRIP=$lt_STRIP
13418
13419 # Commands used to install an old-style archive.
13420 RANLIB=$lt_RANLIB
13421 old_postinstall_cmds=$lt_old_postinstall_cmds
13422 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13423
13424 # Whether to use a lock for old archive extraction.
13425 lock_old_archive_extraction=$lock_old_archive_extraction
13426
13427 # A C compiler.
13428 LTCC=$lt_CC
13429
13430 # LTCC compiler flags.
13431 LTCFLAGS=$lt_CFLAGS
13432
13433 # Take the output of nm and produce a listing of raw symbols and C names.
13434 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13435
13436 # Transform the output of nm in a proper C declaration.
13437 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13438
13439 # Transform the output of nm in a C name address pair.
13440 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13441
13442 # Transform the output of nm in a C name address pair when lib prefix is needed.
13443 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13444
13445 # Specify filename containing input files for \$NM.
13446 nm_file_list_spec=$lt_nm_file_list_spec
13447
13448 # The root where to search for dependent libraries,and in which our libraries should be installed.
13449 lt_sysroot=$lt_sysroot
13450
13451 # The name of the directory that contains temporary libtool files.
13452 objdir=$objdir
13453
13454 # Used to examine libraries when file_magic_cmd begins with "file".
13455 MAGIC_CMD=$MAGIC_CMD
13456
13457 # Must we lock files when doing compilation?
13458 need_locks=$lt_need_locks
13459
13460 # Manifest tool.
13461 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13462
13463 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13464 DSYMUTIL=$lt_DSYMUTIL
13465
13466 # Tool to change global to local symbols on Mac OS X.
13467 NMEDIT=$lt_NMEDIT
13468
13469 # Tool to manipulate fat objects and archives on Mac OS X.
13470 LIPO=$lt_LIPO
13471
13472 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13473 OTOOL=$lt_OTOOL
13474
13475 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13476 OTOOL64=$lt_OTOOL64
13477
13478 # Old archive suffix (normally "a").
13479 libext=$libext
13480
13481 # Shared library suffix (normally ".so").
13482 shrext_cmds=$lt_shrext_cmds
13483
13484 # The commands to extract the exported symbol list from a shared archive.
13485 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13486
13487 # Variables whose values should be saved in libtool wrapper scripts and
13488 # restored at link time.
13489 variables_saved_for_relink=$lt_variables_saved_for_relink
13490
13491 # Do we need the "lib" prefix for modules?
13492 need_lib_prefix=$need_lib_prefix
13493
13494 # Do we need a version for libraries?
13495 need_version=$need_version
13496
13497 # Library versioning type.
13498 version_type=$version_type
13499
13500 # Shared library runtime path variable.
13501 runpath_var=$runpath_var
13502
13503 # Shared library path variable.
13504 shlibpath_var=$shlibpath_var
13505
13506 # Is shlibpath searched before the hard-coded library search path?
13507 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13508
13509 # Format of library name prefix.
13510 libname_spec=$lt_libname_spec
13511
13512 # List of archive names.  First name is the real one, the rest are links.
13513 # The last name is the one that the linker finds with -lNAME
13514 library_names_spec=$lt_library_names_spec
13515
13516 # The coded name of the library, if different from the real name.
13517 soname_spec=$lt_soname_spec
13518
13519 # Permission mode override for installation of shared libraries.
13520 install_override_mode=$lt_install_override_mode
13521
13522 # Command to use after installation of a shared archive.
13523 postinstall_cmds=$lt_postinstall_cmds
13524
13525 # Command to use after uninstallation of a shared archive.
13526 postuninstall_cmds=$lt_postuninstall_cmds
13527
13528 # Commands used to finish a libtool library installation in a directory.
13529 finish_cmds=$lt_finish_cmds
13530
13531 # As "finish_cmds", except a single script fragment to be evaled but
13532 # not shown.
13533 finish_eval=$lt_finish_eval
13534
13535 # Whether we should hardcode library paths into libraries.
13536 hardcode_into_libs=$hardcode_into_libs
13537
13538 # Compile-time system search path for libraries.
13539 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13540
13541 # Run-time system search path for libraries.
13542 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13543
13544 # Whether dlopen is supported.
13545 dlopen_support=$enable_dlopen
13546
13547 # Whether dlopen of programs is supported.
13548 dlopen_self=$enable_dlopen_self
13549
13550 # Whether dlopen of statically linked programs is supported.
13551 dlopen_self_static=$enable_dlopen_self_static
13552
13553 # Commands to strip libraries.
13554 old_striplib=$lt_old_striplib
13555 striplib=$lt_striplib
13556
13557
13558 # The linker used to build libraries.
13559 LD=$lt_LD
13560
13561 # How to create reloadable object files.
13562 reload_flag=$lt_reload_flag
13563 reload_cmds=$lt_reload_cmds
13564
13565 # Commands used to build an old-style archive.
13566 old_archive_cmds=$lt_old_archive_cmds
13567
13568 # A language specific compiler.
13569 CC=$lt_compiler
13570
13571 # Is the compiler the GNU compiler?
13572 with_gcc=$GCC
13573
13574 # Compiler flag to turn off builtin functions.
13575 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13576
13577 # Additional compiler flags for building library objects.
13578 pic_flag=$lt_lt_prog_compiler_pic
13579
13580 # How to pass a linker flag through the compiler.
13581 wl=$lt_lt_prog_compiler_wl
13582
13583 # Compiler flag to prevent dynamic linking.
13584 link_static_flag=$lt_lt_prog_compiler_static
13585
13586 # Does compiler simultaneously support -c and -o options?
13587 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13588
13589 # Whether or not to add -lc for building shared libraries.
13590 build_libtool_need_lc=$archive_cmds_need_lc
13591
13592 # Whether or not to disallow shared libs when runtime libs are static.
13593 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13594
13595 # Compiler flag to allow reflexive dlopens.
13596 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13597
13598 # Compiler flag to generate shared objects directly from archives.
13599 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13600
13601 # Whether the compiler copes with passing no objects directly.
13602 compiler_needs_object=$lt_compiler_needs_object
13603
13604 # Create an old-style archive from a shared archive.
13605 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13606
13607 # Create a temporary old-style archive to link instead of a shared archive.
13608 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13609
13610 # Commands used to build a shared archive.
13611 archive_cmds=$lt_archive_cmds
13612 archive_expsym_cmds=$lt_archive_expsym_cmds
13613
13614 # Commands used to build a loadable module if different from building
13615 # a shared archive.
13616 module_cmds=$lt_module_cmds
13617 module_expsym_cmds=$lt_module_expsym_cmds
13618
13619 # Whether we are building with GNU ld or not.
13620 with_gnu_ld=$lt_with_gnu_ld
13621
13622 # Flag that allows shared libraries with undefined symbols to be built.
13623 allow_undefined_flag=$lt_allow_undefined_flag
13624
13625 # Flag that enforces no undefined symbols.
13626 no_undefined_flag=$lt_no_undefined_flag
13627
13628 # Flag to hardcode \$libdir into a binary during linking.
13629 # This must work even if \$libdir does not exist
13630 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13631
13632 # Whether we need a single "-rpath" flag with a separated argument.
13633 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13634
13635 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13636 # DIR into the resulting binary.
13637 hardcode_direct=$hardcode_direct
13638
13639 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13640 # DIR into the resulting binary and the resulting library dependency is
13641 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13642 # library is relocated.
13643 hardcode_direct_absolute=$hardcode_direct_absolute
13644
13645 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13646 # into the resulting binary.
13647 hardcode_minus_L=$hardcode_minus_L
13648
13649 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13650 # into the resulting binary.
13651 hardcode_shlibpath_var=$hardcode_shlibpath_var
13652
13653 # Set to "yes" if building a shared library automatically hardcodes DIR
13654 # into the library and all subsequent libraries and executables linked
13655 # against it.
13656 hardcode_automatic=$hardcode_automatic
13657
13658 # Set to yes if linker adds runtime paths of dependent libraries
13659 # to runtime path list.
13660 inherit_rpath=$inherit_rpath
13661
13662 # Whether libtool must link a program against all its dependency libraries.
13663 link_all_deplibs=$link_all_deplibs
13664
13665 # Set to "yes" if exported symbols are required.
13666 always_export_symbols=$always_export_symbols
13667
13668 # The commands to list exported symbols.
13669 export_symbols_cmds=$lt_export_symbols_cmds
13670
13671 # Symbols that should not be listed in the preloaded symbols.
13672 exclude_expsyms=$lt_exclude_expsyms
13673
13674 # Symbols that must always be exported.
13675 include_expsyms=$lt_include_expsyms
13676
13677 # Commands necessary for linking programs (against libraries) with templates.
13678 prelink_cmds=$lt_prelink_cmds
13679
13680 # Commands necessary for finishing linking programs.
13681 postlink_cmds=$lt_postlink_cmds
13682
13683 # Specify filename containing input files.
13684 file_list_spec=$lt_file_list_spec
13685
13686 # How to hardcode a shared library path into an executable.
13687 hardcode_action=$hardcode_action
13688
13689 # ### END LIBTOOL CONFIG
13690
13691 _LT_EOF
13692
13693   case $host_os in
13694   aix3*)
13695     cat <<\_LT_EOF >> "$cfgfile"
13696 # AIX sometimes has problems with the GCC collect2 program.  For some
13697 # reason, if we set the COLLECT_NAMES environment variable, the problems
13698 # vanish in a puff of smoke.
13699 if test "X${COLLECT_NAMES+set}" != Xset; then
13700   COLLECT_NAMES=
13701   export COLLECT_NAMES
13702 fi
13703 _LT_EOF
13704     ;;
13705   esac
13706
13707
13708 ltmain="$ac_aux_dir/ltmain.sh"
13709
13710
13711   # We use sed instead of cat because bash on DJGPP gets confused if
13712   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13713   # text mode, it properly converts lines to CR/LF.  This bash problem
13714   # is reportedly fixed, but why not run on old versions too?
13715   sed '$q' "$ltmain" >> "$cfgfile" \
13716      || (rm -f "$cfgfile"; exit 1)
13717
13718   if test x"$xsi_shell" = xyes; then
13719   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13720 func_dirname ()\
13721 {\
13722 \    case ${1} in\
13723 \      */*) func_dirname_result="${1%/*}${2}" ;;\
13724 \      *  ) func_dirname_result="${3}" ;;\
13725 \    esac\
13726 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13727   && mv -f "$cfgfile.tmp" "$cfgfile" \
13728     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13729 test 0 -eq $? || _lt_function_replace_fail=:
13730
13731
13732   sed -e '/^func_basename ()$/,/^} # func_basename /c\
13733 func_basename ()\
13734 {\
13735 \    func_basename_result="${1##*/}"\
13736 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13737   && mv -f "$cfgfile.tmp" "$cfgfile" \
13738     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13739 test 0 -eq $? || _lt_function_replace_fail=:
13740
13741
13742   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13743 func_dirname_and_basename ()\
13744 {\
13745 \    case ${1} in\
13746 \      */*) func_dirname_result="${1%/*}${2}" ;;\
13747 \      *  ) func_dirname_result="${3}" ;;\
13748 \    esac\
13749 \    func_basename_result="${1##*/}"\
13750 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13751   && mv -f "$cfgfile.tmp" "$cfgfile" \
13752     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13753 test 0 -eq $? || _lt_function_replace_fail=:
13754
13755
13756   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13757 func_stripname ()\
13758 {\
13759 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13760 \    # positional parameters, so assign one to ordinary parameter first.\
13761 \    func_stripname_result=${3}\
13762 \    func_stripname_result=${func_stripname_result#"${1}"}\
13763 \    func_stripname_result=${func_stripname_result%"${2}"}\
13764 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13765   && mv -f "$cfgfile.tmp" "$cfgfile" \
13766     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13767 test 0 -eq $? || _lt_function_replace_fail=:
13768
13769
13770   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13771 func_split_long_opt ()\
13772 {\
13773 \    func_split_long_opt_name=${1%%=*}\
13774 \    func_split_long_opt_arg=${1#*=}\
13775 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13776   && mv -f "$cfgfile.tmp" "$cfgfile" \
13777     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13778 test 0 -eq $? || _lt_function_replace_fail=:
13779
13780
13781   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13782 func_split_short_opt ()\
13783 {\
13784 \    func_split_short_opt_arg=${1#??}\
13785 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13786 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13787   && mv -f "$cfgfile.tmp" "$cfgfile" \
13788     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13789 test 0 -eq $? || _lt_function_replace_fail=:
13790
13791
13792   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13793 func_lo2o ()\
13794 {\
13795 \    case ${1} in\
13796 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13797 \      *)    func_lo2o_result=${1} ;;\
13798 \    esac\
13799 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13800   && mv -f "$cfgfile.tmp" "$cfgfile" \
13801     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13802 test 0 -eq $? || _lt_function_replace_fail=:
13803
13804
13805   sed -e '/^func_xform ()$/,/^} # func_xform /c\
13806 func_xform ()\
13807 {\
13808     func_xform_result=${1%.*}.lo\
13809 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13810   && mv -f "$cfgfile.tmp" "$cfgfile" \
13811     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13812 test 0 -eq $? || _lt_function_replace_fail=:
13813
13814
13815   sed -e '/^func_arith ()$/,/^} # func_arith /c\
13816 func_arith ()\
13817 {\
13818     func_arith_result=$(( $* ))\
13819 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13820   && mv -f "$cfgfile.tmp" "$cfgfile" \
13821     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13822 test 0 -eq $? || _lt_function_replace_fail=:
13823
13824
13825   sed -e '/^func_len ()$/,/^} # func_len /c\
13826 func_len ()\
13827 {\
13828     func_len_result=${#1}\
13829 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13830   && mv -f "$cfgfile.tmp" "$cfgfile" \
13831     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13832 test 0 -eq $? || _lt_function_replace_fail=:
13833
13834 fi
13835
13836 if test x"$lt_shell_append" = xyes; then
13837   sed -e '/^func_append ()$/,/^} # func_append /c\
13838 func_append ()\
13839 {\
13840     eval "${1}+=\\${2}"\
13841 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13842   && mv -f "$cfgfile.tmp" "$cfgfile" \
13843     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13844 test 0 -eq $? || _lt_function_replace_fail=:
13845
13846
13847   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13848 func_append_quoted ()\
13849 {\
13850 \    func_quote_for_eval "${2}"\
13851 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13852 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13853   && mv -f "$cfgfile.tmp" "$cfgfile" \
13854     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13855 test 0 -eq $? || _lt_function_replace_fail=:
13856
13857
13858   # Save a `func_append' function call where possible by direct use of '+='
13859   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13860     && mv -f "$cfgfile.tmp" "$cfgfile" \
13861       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13862   test 0 -eq $? || _lt_function_replace_fail=:
13863 else
13864   # Save a `func_append' function call even when '+=' is not available
13865   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13866     && mv -f "$cfgfile.tmp" "$cfgfile" \
13867       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13868   test 0 -eq $? || _lt_function_replace_fail=:
13869 fi
13870
13871 if test x"$_lt_function_replace_fail" = x":"; then
13872   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13873 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13874 fi
13875
13876
13877    mv -f "$cfgfile" "$ofile" ||
13878     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13879   chmod +x "$ofile"
13880
13881  ;;
13882
13883   esac
13884 done # for ac_tag
13885
13886
13887 as_fn_exit 0
13888 _ACEOF
13889 ac_clean_files=$ac_clean_files_save
13890
13891 test $ac_write_fail = 0 ||
13892   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13893
13894
13895 # configure is writing to config.log, and then calls config.status.
13896 # config.status does its own redirection, appending to config.log.
13897 # Unfortunately, on DOS this fails, as config.log is still kept open
13898 # by configure, so config.status won't be able to write to it; its
13899 # output is simply discarded.  So we exec the FD to /dev/null,
13900 # effectively closing config.log, so it can be properly (re)opened and
13901 # appended to by config.status.  When coming back to configure, we
13902 # need to make the FD available again.
13903 if test "$no_create" != yes; then
13904   ac_cs_success=:
13905   ac_config_status_args=
13906   test "$silent" = yes &&
13907     ac_config_status_args="$ac_config_status_args --quiet"
13908   exec 5>/dev/null
13909   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13910   exec 5>>config.log
13911   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13912   # would make configure fail if this is the last instruction.
13913   $ac_cs_success || as_fn_exit 1
13914 fi
13915 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13916   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13917 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13918 fi
13919